]> sourceware.org Git - glibc.git/blob - ChangeLog
Add GLIBC_2.3.4.
[glibc.git] / ChangeLog
1 2004-01-15 Richard Henderson <rth@redhat.com>
2
3 * sysdeps/unix/alpha/sysdep.h: Revert last change.
4
5 2004-01-15 Richard Henderson <rth@redhat.com>
6
7 * sysdeps/alpha/dl-machine.h (RTLD_START): Use _dl_argv_internal.
8
9 * sysdeps/unix/alpha/sysdep.h [PIC] (SYSCALL_ERROR_HANDLER): Use
10 !samegp relocation.
11
12 2004-01-15 Richard Henderson <rth@redhat.com>
13
14 * sysdeps/unix/sysv/linux/alpha/Makefile [stdlib]: Process
15 ucontext-offsets.sym.
16 * sysdeps/unix/sysv/linux/alpha/getcontext.S: New file.
17 * sysdeps/unix/sysv/linux/alpha/makecontext.S: New file.
18 * sysdeps/unix/sysv/linux/alpha/setcontext.S: New file.
19 * sysdeps/unix/sysv/linux/alpha/swapcontext.S: New file.
20 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: New file.
21
22 2004-01-15 Richard Henderson <rth@redhat.com>
23
24 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Prefix stubs with
25 __syscall_, move nop inside, adjust users by +4.
26
27 2004-01-14 Steven Munroe <sjmunroe@us.ibm.com>
28
29 * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
30 (_symbol_version): Use C_SYMBOL_DOT_NAME to create '.'ed symbols.
31 (_default_symbol_version): Use C_SYMBOL_DOT_NAME to create '.'ed
32 symbols.
33 * sysdeps/powerpc/Makefile: Add rtld-global-offsets.sym to
34 gen-as-const-headers.
35 * sysdeps/powerpc/elf/rtld-global-offsets.sym: New file.
36 * sysdeps/powerpc/sysdep.h: Define v# symbols for vector registers.
37 Define PPC_FEATURE_* masks for Aux Vector AT_HWCAP.
38 * sysdeps/unix/sysv/linux/kernel-features.h
39 (__ASSUME_SWAPCONTEXT_SYSCALL): Define for PPC and 2.6.0 kernels.
40 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h [!__WORDSIZE == 32]:
41 Declare mcontext_t inline and include altivec state for 64-bit.
42 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Add GLIBC_2.3.4
43 versions for setcontext, getcontext, and swapcontext.
44
45 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Add GLIBC_2.3.4
46 versions for setcontext, getcontext, swapcontext, and makecontext.
47 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
48 (__getcontext): Upgrade to save Altivec regs and version GLIBC_2_3_4.
49 [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)](__novec_getcontext):
50 Compatible with GLIBC_2.3.3 release.
51 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
52 (__makecontext): Use parm save area instead of compiler_dw to hold
53 context pointer.
54 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
55 (__setcontext): Upgrade to restore Altivec regs and version
56 GLIBC_2_3_4.
57 [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)](__novec_setcontext):
58 Compatible with GLIBC_2.3.3 release.
59 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
60 (__swapcontext): Upgrade to swap Altivec regs and version GLIBC_2_3_4.
61 [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)](__novec_swapcontext):
62 Compatible with GLIBC_2.3.3 release.
63 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h
64 (SIGCONTEXT_V_REGS_PTR, SIGCONTEXT_V_RESERVE): Defined.
65
66
67 2004-01-12 Steven Munroe <sjmunroe@us.ibm.com>
68
69 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Add GLIBC_2.3.4
70 versions for setcontext, getcontext, swapcontext, and makecontext.
71 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
72 (__getcontext): Upgrade to save Altivec regs and version GLIBC_2_3_4.
73 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)](__novec_getcontext):
74 Compatible with GLIBC_2.3.3 release.
75 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
76 (__makecontext): Upgrade to align for Altivec regs and version
77 GLIBC_2_3_4.
78 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)](__novec_makecontext):
79 Compatible with GLIBC_2.3.3 release.
80 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
81 (__setcontext): Upgrade to restore Altivec regs and version
82 GLIBC_2_3_4.
83 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)](__novec_setcontext):
84 Compatible with GLIBC_2.3.3 release.
85 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
86 (__swapcontext): Upgrade to swap Altivec regs and version GLIBC_2_3_4.
87 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)]
88 (__novec_swapcontext): Compatible with GLIBC_2.3.3 release.
89 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h:
90 (_UC_VSCR, _UC_VRSAVE): Define.
91 (_FRAME_BACKCHAIN, _FRAME_LR_SAVE,_FRAME_PARM_SAVE1,_FRAME_PARM_SAVE2,
92 _FRAME_PARM_SAVE3, _FRAME_PARM_SAVE4): Defined.
93
94 2004-01-15 Ulrich Drepper <drepper@redhat.com>
95
96 * elf/rtld.c: Handle platforms with HP_TIMING_NONAVAIL defined.
97
98 2004-01-16 Alfred M. Szmidt <ams@kemisten.nu>
99
100 * sysdeps/generic/dl-execstack.c (_dl_make_stack_executable): Adjust
101 parameter type.
102
103 2004-01-15 Ulrich Drepper <drepper@redhat.com>
104
105 * elf/elf.h: Fix typo in comment.
106
107 * sysdeps/generic/dl-sysdep.c: Initialize __libc_stack_end.
108 * elf/rtld.c: Initialize _dl_argv to allow aliasing.
109
110 * resolv/resolv.h: Add RES_USEBSTRING.
111 * resolv/res_debug.c (p_option): Add handling for RES_USE_INET6,
112 RES_ROTATE, RES_NOCHECKNAME, and RES_USEBSTRING.
113 * resolv/res_init.c (res_setioptions): Recognize ip6-bytestring.
114 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Only perform
115 bytestring IPv6 lookup with RES_USEBSTRING option is selected.
116 Otherwise use the two nibble formats.
117
118 2004-01-14 Ulrich Drepper <drepper@redhat.com>
119
120 * configure.in: Define HAVE_Z_RELRO if the linker supports -z relro.
121 * config.h.in: Add entry for HAVE_Z_RELRO.
122 * include/libc-symbols.h: Define attribute_relro.
123 * elf/dl-load.c: Add attribute_relro to env_path_list, capstr, ncapstr,
124 max_capstrlen, and max_dirnamelen definitions.
125 * elf/rtld.c: Add attribute_relro to _dl_argc, _dl_argv, _dl_skip_args,
126 load_time, start_time, library_path, preloadlist, version_info,
127 any_debug.
128 Remove rtld_total_time. Make it a local variable. Pass pointer to
129 it to print_statistics. Change print_statistics accordingly.
130 * sysdeps/generic/dl-sysdep.c: Add attribute_relro to _dl_auxv. Use
131 attribute_relro instead of explicitly assigning variable to the
132 .data.rel.ro section for __libc_enable_secure and __libc_stack_end.
133 * sysdeps/generic/ldsodefs.h: Declare __libc_stack_end, _dl_argc,
134 _dl_argv, _dl_argv_internal with attribute_relro.
135
136 2004-01-13 Segher Boessenkool <boessen@de.ibm.com>
137
138 * Makerules (gen-as-const): Don't silently continue on failure.
139
140 2004-01-14 Steven Munroe <sjmunroe@us.ibm.com>
141
142 * sysdeps/generic/dl-sysdep.c: Define __libc_stack_end with
143 rtld_hidden_data_def.
144
145 2004-01-14 Ulrich Drepper <drepper@redhat.com>
146
147 * libio/libio.h: Add const to function tables types.
148 * libio/libioP.h: Likewise.
149 * login/utmp-private.h: Likewise.
150 * libio/fileops.c: Add const to jump table variable definition.
151 * libio/genops.c: Likewise.
152 * libio/iofopncook.c: Likewise.
153 * libio/iopopen.c: Likewise.
154 * libio/memstream.c: Likewise.
155 * libio/obprintf.c: Likewise.
156 * libio/oldfileops.c: Likewise.
157 * libio/oldiopopen.c: Likewise.
158 * libio/strops.c: Likewise.
159 * libio/vsnprintf.c: Likewise.
160 * libio/vswprintf.c: Likewise.
161 * libio/wfileops.c: Likewise.
162 * libio/wstrops.c: Likewise.
163 * login/getutent_r.c: Likewise.
164 * login/getutid_r.c Likewise.
165 * login/getutline_r.c: Likewise.
166 * sysdeps/generic/utmp_file.c: Likewise.
167
168 2004-01-09 Bruno Haible <bruno@clisp.org>
169
170 * intl/gmo.h (MO_REVISION_NUMBER_WITH_SYSDEP_I): New definition.
171 * intl/loadmsgcat.c (get_sysdep_segment_value): Handle "I".
172 (_nl_load_domain): Treat major revision 1 like major revision 0.
173
174 2004-01-11 Bruno Haible <bruno@clisp.org>
175
176 * stdio-common/vfprintf.c (vfprintf): Disallow the 'I' flag after
177 width or precision has been seen.
178
179 2004-01-08 Bruno Haible <bruno@clisp.org>
180
181 * intl/loadmsgcat.c (_nl_load_domain): When a string pair uses a system
182 dependent segment not known to this version of the library, ignore
183 the string pair instead of crashing.
184
185 2004-01-13 Ulrich Drepper <drepper@redhat.com>
186
187 * configure.in: Rewrite test to give gcc to clean up after itself.
188 Patch by Greg Schafer.
189
190 * posix/regex.c: Support crappy compilers and platforms which have
191 problems with alloca.
192 * posix/regex_internal.h: Likewise.
193 Patch by Paolo Bonzini.
194
195 2004-01-12 Paolo Bonzini <bonzini@gnu.org>
196
197 * posix/regcomp.c [_LIBC && !RE_ENABLE_I18N]:
198 Drop code to support this, it is never true.
199 (build_range_exp) [!_LIBC]: Do not create a range
200 in MBCSET for a single-byte character set.
201 (build_range_exp) [_LIBC]: Do not create a range
202 in MBCSET for a single-byte character set without
203 collation elements.
204 (init_dfa): Do not conditionalize on _LIBC, it
205 just makes the code less clear.
206 (parse_bracket_exp): Use NON_MATCH variable in
207 addition to "mbcset->non_match", not as an
208 alternative.
209 (build_charclass_op): rename NOT parameter to
210 NON_MATCH, use it instead of declaring a variable.
211 (parse_bracket_exp) [!_LIBC]: Pass NULL for MBCSET
212 if the character set is single-byte.
213
214 2004-01-14 Jakub Jelinek <jakub@redhat.com>
215
216 * posix/regcomp.c (peek_token_bracket): Check remaining
217 string length before re_string_peek_byte (x, 1).
218 (parse_bracket_symbol): Likewise.
219 * posix/regex_internal.h (re_string_is_single_byte_char): Return
220 true at last byte in the string.
221 * posix/bug-regex22.c (main): Add new test.
222
223 2004-01-13 Ulrich Drepper <drepper@redhat.com>
224
225 * sysdeps/generic/dl-sysdep.c: Move __libc_enable_secure into
226 .data.rel.ro.
227
228 * sysdeps/x86_64/dl-machine.h: Include <tls.h>.
229
230 * elf/rtld.c (_dl_start_final): Initialze __libc_stack_end here.
231 * sysdeps/generic/dl-sysdep.c: Define __libc_stack_end with
232 rtld_hidden_def and move into .data.rel.ro section.
233 * sysdeps/generic/ldsodefs.h: Declare __libc_stack_end with
234 rtld_hidden_proto.
235 * sysdeps/generic/libc-start.c: Only initialize __libc_stack_end here
236 if !SHARED.
237
238 2004-01-13 Richard Henderson <rth@redhat.com>
239
240 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Fix typo.
241
242 2004-01-13 Ulrich Drepper <drepper@redhat.com>
243
244 * sysdeps/unix/sysv/linux/dl-execstack.c
245 (_dl_make_stack_executable): Move common code in front. Use
246 __builtin_expect.
247
248 * sysdeps/unix/sysv/linux/dl-execstack.c: Change interface. Add
249 challenge for caller.
250 * sysdeps/generic/ldsodefs.h: Change declaration and type of hook
251 member in rtld_global appropriately.
252 * elf/dl-support.c: Likewise.
253 * elf/dl-load.c (_dl_map_object_from_fd): Take additional paramter.
254 Pass it on to the changed function.
255 (_dl_map_object): Pass new parameter to _dl_map_object_from_fd.
256
257 2004-01-13 Richard Henderson <rth@redhat.com>
258
259 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_xxx_8_int):
260 Cast old up to uint64_t before back down to inner width.
261 (__arch_compare_and_exchange_xxx_16_int): Likewise.
262 (__arch_compare_and_exchange_xxx_32_int): Likewise.
263 (__arch_compare_and_exchange_xxx_64_int): Likewise.
264 (__arch_compare_and_exchange_val_8_int): Cast result to
265 the type of the memory.
266 (__arch_compare_and_exchange_val_16_int): Likewise.
267 (__arch_compare_and_exchange_val_32_int): Likewise.
268 (__arch_compare_and_exchange_val_64_int): Likewise.
269 (atomic_compare_and_exchange_bool_acq): Use __atomic_bool_bysize.
270 (atomic_compare_and_exchange_bool_rel): Likewise.
271
272 * sysdeps/unix/alpha/sysdep.h: Select inline_syscall_r0_asm
273 based on HAVE___THREAD instead of USE_TLS.
274
275 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ADJTIMEX32): New.
276 (__adjtimex_tv64): Use it.
277
278 * sysdeps/unix/sysv/linux/alpha/semctl.c (__new_semctl): Cast
279 to void* rather than directly to the compatibility structure type.
280 * sysdeps/unix/sysv/linux/alpha/shmctl.c (__new_shmctl): Likewise.
281
282 * sysdeps/unix/sysv/linux/alpha/sigaction.c (struct kernel_sigaction):
283 Forward declare.
284
285 2004-01-13 Richard Henderson <rth@redhat.com>
286
287 * Versions.def (libm): Add GLIBC_2.3.3.
288 * sysdeps/alpha/fpu/Versions: Add __c1_c*f and c*f to GLIBC_2.3.3.
289 * sysdeps/alpha/fpu/cabsf.c, sysdeps/alpha/fpu/cargf.c,
290 sysdeps/alpha/fpu/cfloat-compat.h, sysdeps/alpha/fpu/cimagf.c,
291 sysdeps/alpha/fpu/conjf.c, sysdeps/alpha/fpu/crealf.c,
292 sysdeps/alpha/fpu/s_cacosf.c, sysdeps/alpha/fpu/s_cacoshf.c,
293 sysdeps/alpha/fpu/s_casinf.c, sysdeps/alpha/fpu/s_casinhf.c,
294 sysdeps/alpha/fpu/s_catanf.c, sysdeps/alpha/fpu/s_catanhf.c,
295 sysdeps/alpha/fpu/s_ccosf.c, sysdeps/alpha/fpu/s_ccoshf.c,
296 sysdeps/alpha/fpu/s_cexpf.c, sysdeps/alpha/fpu/s_clog10f.c,
297 sysdeps/alpha/fpu/s_clogf.c, sysdeps/alpha/fpu/s_cpowf.c,
298 sysdeps/alpha/fpu/s_cprojf.c, sysdeps/alpha/fpu/s_csinf.c,
299 sysdeps/alpha/fpu/s_csinhf.c, sysdeps/alpha/fpu/s_csqrtf.c,
300 sysdeps/alpha/fpu/s_ctanf.c, sysdeps/alpha/fpu/s_ctanhf.c: New files.
301 * sysdeps/alpha/fpu/bits/mathdef.h: Rename complex float
302 functions for gcc 3.3.
303
304 * sysdeps/generic/s_cacosf.c, sysdeps/generic/s_cacoshf.c,
305 sysdeps/generic/s_casinf.c, sysdeps/generic/s_casinhf.c,
306 sysdeps/generic/s_catanf.c, sysdeps/generic/s_catanhf.c,
307 sysdeps/generic/s_ccosf.c, sysdeps/generic/s_ccoshf.c,
308 sysdeps/generic/s_cexpf.c, sysdeps/generic/s_clog10f.c,
309 sysdeps/generic/s_clogf.c, sysdeps/generic/s_cpowf.c,
310 sysdeps/generic/s_cprojf.c, sysdeps/generic/s_csinf.c,
311 sysdeps/generic/s_csinhf.c, sysdeps/generic/s_csqrtf.c,
312 sysdeps/generic/s_ctanf.c, sysdeps/generic/s_ctanhf.c: Don't
313 weak_alias if the function name has been #defined.
314
315 * math/cabsf.c: Move ...
316 * sysdeps/generic/cabsf.c: ... here.
317 * math/cargf.c: Move ...
318 * sysdeps/generic/cargf.c: ... here.
319 * math/cimagf.c: Move ...
320 * sysdeps/generic/cimagf.c: ... here.
321 * math/conjf.c: Move ...
322 * sysdeps/generic/conjf.c: ... here.
323 * math/crealf.c: Move ...
324 * sysdeps/generic/crealf.c: ... here.
325
326 2004-01-13 Ulrich Drepper <drepper@redhat.com>
327
328 * Makeconfig: Define relro-LDFLAGS if have-z-relro==yes. Add it to
329 LDFLAGS.so and LDFLAGS-rtld.
330 (+link): Add relro-LDFLAGS.
331 * Makeconfig (shlib.lds): Place __libc_subfreeres, __libc_atexit, and
332 __libc_thread_subfreeres sections after .jcr section.
333 * config.make.in: Add have-z-relro.
334 * configure.in: Add check for -z relro option.
335 * include/link.h (struct link_map): Add relro_addr and relro_size
336 members.
337 * elf/dl-load.c (_dl_map_object_from_fd): Recognize PT_GNU_RELRO.
338 * elf/dl-reloc.c (_dl_relocate_object): At the end, make relro
339 part of loaded segments read-only.
340 * elf/elf.h: Define PT_GNU_RELRO.
341 * elf/rtld.c (_dl_start): Recognize PT_GNU_RELRO of ld.so.
342 (dl_main): Recognize PT_GNU_RELRO of the application. Call
343 _dl_debug_initialize and initialize l_info[DT_DEBUG] before
344 relocations.
345
346 2004-01-12 Jakub Jelinek <jakub@redhat.com>
347
348 * sysdeps/x86_64/strcspn.S: Fix typo in last patch.
349
350 2004-01-11 Andreas Jaeger <aj@suse.de>
351
352 * sysdeps/x86_64/__longjmp.S: Add cfi directives.
353
354 2004-01-10 Andreas Jaeger <aj@suse.de>
355
356 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Add cfi directives.
357 * sysdeps/unix/x86_64/sysdep.S (__syscall_error): Likewise.
358 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
359 * sysdeps/x86_64/strcspn.S: Likewise.
360 * sysdeps/x86_64/strspn.S: Likewise.
361
362 2004-01-08 Jakub Jelinek <jakub@redhat.com>
363
364 * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Add cfi_endproc
365 right before syscall and cfi_startproc before PSEUDO_END.
366 Clear %rbp in thread_start.
367
368 2004-01-05 Jakub Jelinek <jakub@redhat.com>
369
370 * posix/regcomp.c (regcomp): Fix comment typo.
371 (regfree): Free preg->translate, clear buffer, allocated, fastmap
372 and translate fields.
373
374 * posix/regcomp.c (build_charclass, buld_charclass_op): Change first
375 argument to unsigned RE_TRANSLATE_TYPE.
376 * posix/regex_internal.h (re_string_t): Change trans type to
377 unsigned RE_TRANSLATE_TYPE.
378 * posix/regex_internal.c (re_string_construct_common): Cast
379 trans to unsigned RE_TRANSLATE_TYPE.
380 (re_string_peek_byte_case, re_string_fetch_byte_case): Avoid fast
381 path if pstr->trans. Never translate the character through
382 pstr->trans.
383 * posix/Makefile (tests): Add bug-regex22.
384 (bug-regex22-ENV): Set.
385 * posix/bug-regex22.c: New test.
386
387 2004-01-02 Paolo Bonzini <bonzini@gnu.org>
388
389 * posix/regex_internal.c (re_node_set_add_intersect,
390 re_node_set_merge): Rewritten.
391 (re_node_set_insert, re_node_set_remove_at):
392 Avoid memmove, we know what direction we should copy and that we
393 are copying 32-bit words.
394 (re_node_set_compare): Iterate backwards.
395
396 2003-12-30 Paul Eggert <eggert@twinsun.com>
397
398 * time/mktime.c (verify): New macro.
399 (time_t_is_integer, twos_complement_arithmetic,
400 right_shift_propagates_sign, base_year_is_a_multiple_of_100,
401 C99_integer_division): Document these longstanding assumptions in the
402 code, and verify them at compile-time.
403
404 2004-01-02 Jakub Jelinek <jakub@redhat.com>
405
406 * posix/regex_internal.h (re_match_context_t): Add dfa member.
407 * posix/regexec.c (match_ctx_free_subtops, search_cur_bkref_entry,
408 match_ctx_add_sublast, sift_ctx_init, acquire_init_state_context,
409 prune_impossible_nodes, check_halt_state_context, proceed_next_node,
410 sift_states_backward, update_cur_sifted_state, check_dst_limits,
411 check_dst_limits_calc_pos, sift_states_bkref, transit_state,
412 check_subexp_matching_top, transit_state_sb, transit_state_mb,
413 transit_state_bkref, get_subexp, get_subexp_sub, check_arrival,
414 check_arrival_add_next_nodes, expand_bkref_cache, check_node_accept):
415 Remove dfa parameter. Get dfa from mctx. Adjust callers.
416 (re_search_internal): Initialize mctx.dfa.
417
418 * posix/regex_internal.c (re_node_set_insert): Remove unused variables.
419
420 * posix/regex_internal.h (re_dfa_t): Add syntax field.
421 * posix/regcomp.c (parse): Initialize dfa->syntax.
422 * posix/regexec.c (acquire_init_state_context,
423 prune_impossible_nodes, check_matching, check_halt_state_context,
424 proceed_next_node, sift_states_iter_mb, sift_states_backward,
425 update_cur_sifted_state, sift_states_bkref, transit_state,
426 transit_state_sb, transit_state_mb, transit_state_bkref,
427 get_subexp, get_subexp_sub, check_arrival, expand_bkref_cache,
428 build_trtable): Remove preg argument, add dfa argument instead
429 and remove dfa = preg->buffer initialization in the body.
430 Adjust all callers.
431 (check_node_accept_bytes, group_nodes_into_DFAstates,
432 check_node_accept): Likewise. Use dfa->syntax instead of
433 preg->syntax.
434 (check_arrival_add_next_nodes): Remove preg argument.
435
436 * posix/regex_internal.h (re_match_context_t): Make input
437 re_string_t instead of a pointer to it.
438 * posix/regex_internal.c (re_string_construct_common): Don't clear
439 pstr here...
440 (re_string_construct): ... but only here.
441 * posix/regexec.c (match_ctx_init): Remove input argument. Don't
442 initialize fields to zero.
443 (re_search_internal): Move input into mctx.input.
444 (acquire_init_state_context, check_matching,
445 check_halt_state_context, proceed_next_node,
446 clean_state_log_if_needed, sift_states_bkref, sift_states_iter_mb,
447 transit_state, transit_state_sb, transit_state_mb,
448 transit_state_bkref, get_subexp, check_arrival,
449 check_arrival_add_next_nodes, check_node_accept, extend_buffers):
450 Change mctx->input into &mctx->input and mctx->input->field into
451 mctx->input.field.
452
453 2004-01-02 Jakub Jelinek <jakub@redhat.com>
454 Paolo Bonzini <bonzini@gnu.org>
455
456 * posix/regex_internal.h (re_const_bitset_ptr_t): New type.
457 (re_string_t): Add newline_anchor, word_char and word_ops_used fields.
458 (re_dfa_t): Change word_char type to bitset. Add word_ops_used field.
459 (re_string_context_at, re_string_reconstruct): Remove last argument.
460 * posix/regex_internal.c (re_string_allocate): Initialize
461 pstr->word_char and pstr->word_ops_used.
462 (re_string_context_at): Remove newline_anchor argument.
463 Use input->newline_anchor instead, swap && conditions.
464 Only use IS_WIDE_WORD_CHAR if input->word_ops_used != 0.
465 Use input->word_char bitmap instead of IS_WORD_CHAR.
466 (re_string_reconstruct): Likewise.
467 Adjust re_string_context_at caller.
468 * posix/regexec.c (acquire_init_state_context,
469 check_halt_state_context, transit_state, transit_state_sb,
470 transit_state_mb, transit_state_bkref, check_arrival,
471 check_node_accept): Adjust re_string_context_at and
472 re_string_reconstruct callers.
473 (re_search_internal): Likewise. Set input.newline_anchor.
474 (build_trtable): Use dfa->word_char bitmap instead of IS_WORD_CHAR.
475 * posix/regcomp.c (init_word_char): Change return type to void.
476 Set dfa->word_ops_used.
477 (free_dfa_content): Don't free dfa->word_char.
478 (parse_expression): Remove error handling for init_word_char.
479
480 2004-01-01 Paolo Bonzini <bonzini@gnu.org>
481
482 * posix/regex_internal.h (re_dfastate_t): Fix size of the CONTEXT
483 bitfield.
484
485 * posix/regex_internal.c (re_node_set_insert): Rewrite.
486
487 2004-01-01 Ulrich Drepper <drepper@redhat.com>
488
489 * posix/getconf.c: Update copyright year.
490 * nss/getent.c: Likewise.
491 * nscd/nscd_nischeck.c: Likewise.
492 * iconv/iconvconfig.c: Likewise.
493 * iconv/iconv_prog.c: Likewise.
494 * elf/ldconfig.c: Likewise.
495 * catgets/gencat.c: Likewise.
496 * csu/version.c: Likewise.
497 * elf/ldd.bash.in: Likewise.
498 * elf/sprof.c (print_version): Likewise.
499 * locale/programs/locale.c: Likewise.
500 * locale/programs/localedef.c: Likewise.
501 * nscd/nscd.c (print_version): Likewise.
502 * debug/xtrace.sh: Likewise.
503 * malloc/memusage.sh: Likewise.
504 * malloc/mtrace.pl: Likewise.
505
506 2004-01-01 Petter Reinholdtsen <pere@hungry.com>
507
508 * stdlib/strfmon.c: Make formatting of left-justified currency
509 values match the the POSIX standard. When using format string
510 "[%-14#5.4n]" to print -123.45, the result should be
511 "[-$ 123.4500 ]", not "[-$123.4500 ]".
512
513 2004-01-01 Andreas Jaeger <aj@suse.de>
514
515 * resolv/Makefile (generated): New.
516
517 2003-12-31 Joseph S. Myers <jsm@polyomino.org.uk>
518
519 * CONFORMANCE: Update.
520
521 2003-12-30 Paul Eggert <eggert@twinsun.com>
522
523 * time/mktime.c: (my_mktime_localtime_r):
524 Remove. All uses changed to __localtime_r.
525 (__localtime_r) [!defined _LIBC]: New macro. Include "time_r.h" to
526 get its implementation.
527 Fix compile-command to allow for TIME_R_POSIX.
528
529 * time/strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r):
530 Remove. All uses changed to __localtime_r and __gmtime_r.
531 (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
532 Include "time_r.h" to get their implementations.
533
534 * time/timegm.c: Allow use in GNU applications outside glibc.
535 [defined HAVE_CONFIG_H]: Include <config.h>.
536 [!defined _LIBC]: Include "timegm.h", <time_r.h>.
537 Define __gmtime_r, and declare __mktime_internal.
538 (timegm): Define via a prototype, since we can safely assume C89 now.
539
540 * time/mktime.c (check_result): Use less-confusing report format.
541 "long" -> "long int", as per usual GNU style.
542 (main): Likewise.
543 Don't loop if the iteration overflows time_t.
544 Allow a negative step in the iteration.
545
546 * time/mktime.c: Assume freestanding C89 or better.
547 (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove;
548 assume they're 1.
549 (__P): Remove; not used.
550 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
551 (mktime, not_equal_tm, print_tm, check_result, main): Use prototypes.
552 Prototypes use const * where appropriate.
553 (main) [DEBUG]: Fix typo in testing code uncovered by above changes,
554 which caused the testing code to dump core on some hosts.
555
556 2003-12-31 Ulrich Drepper <drepper@redhat.com>
557
558 * locale/setlocale.c (setlocale): Avoid duplicating locale names
559 if we can reuse old strings.
560
561 * inet/rcmd.c: Provide better error message in case of unknown
562 host. Remove USE_IN_LIBIO.
563
564 * nscd/nscd.init: Updated version, more conforming with current
565 init file standards.
566
567 * nscd/nscd-client.h (_PATH_NSCDPID): Move the file into
568 /var/run/nscd directory.
569 (_PATH_NSCDSOCKET): Likewise.
570
571 * test-skeleton.c (timeout_handler): Fix error message.
572
573 * elf/dl-dst.h (DL_DST_REQUIRED): Avoid the complex operations if
574 CNT == 0.
575
576 2003-12-30 Jakub Jelinek <jakub@redhat.com>
577
578 * posix/regexec.c (get_subexp): Only set bkref_str after the first
579 loop, use buf + bkref_str_off in the loop instead.
580 * posix/bug-regex11.c (tests): Add 3 new tests.
581
582 * posix/regexec.c (clean_state_log_if_need): Rename to...
583 (clean_state_log_if_needed): ...this.
584 (transit_state_mb, get_subexp_sub): Adjust callers.
585
586 * sunrpc/pmap_clnt.c (pmap_set): Do CLNT_DESTROY even if CLNT_CALL
587 failed. Reported by Steve Grubb.
588
589 2003-12-29 Ulrich Drepper <drepper@redhat.com>
590
591 * elf/elf.h: Add a few definitions from Solaris 9.
592
593 2003-12-29 Andreas Schwab <schwab@suse.de>
594
595 * stdio-common/Makefile (CFLAGS-errlist.c, CFLAGS-siglist.c): Add
596 $(fno_unit_at_a_time) to avoid reordering assembler output.
597
598 2003-12-29 Jakub Jelinek <jakub@redhat.com>
599
600 * posix/regexec.c (re_copy_regs): Revert comment change.
601 Avoid memory leak if realloc fails.
602 (proceed_next_node): Return -2 if re_node_set_insert fails.
603 Return -2 if push_fail_stack fails.
604 (push_fail_stack): Change fs->alloc only after successful realloc.
605 (pop_fail_stack): Formatting.
606 (set_regs): If proceed_next_node returns -2, free eps_via_nodes and fs.
607 (check_arrival_add_next_nodes): Merge identical statements
608 from if branches.
609
610 * signal/Makefile (tests): Add tst-raise.
611 * signal/tst-raise.c: New test.
612
613 2003-12-28 Ulrich Drepper <drepper@redhat.com>
614
615 * posix/regcomp.c (mark_opt_subexp_iter): Declare IDX as int.
616
617 * posix/regexec.c (re_copy_regs): Fix testing for failed allocation.
618 (push_fail_stack): Add missing check for failed memory allocation.
619
620 * libio/libio.h: Use __builtin_expect in _IO_getc_unlocked,
621 _IO_peekc_unlocked, _IO_putc_unlocked, _IO_getwc_unlocked, and
622 _IO_putwc_unlocked.
623
624 2003-12-28 Andreas Jaeger <aj@suse.de>
625
626 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_y0): Raise only
627 overflow for 0 as argument. Raise Invalid exception for negative args.
628 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
629 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_y0): Likewise.
630 * sysdeps/ieee754/ldb-128/e_jnl.c (__ieee754_ynl): Likewise.
631 * sysdeps/ieee754/ldb-128/e_j0l.c (__ieee754_y0l): Likewise.
632 * sysdeps/ieee754/ldb-128/e_j1l.c (__ieee754_y1l): Likewise.
633 * sysdeps/ieee754/ldb-96/e_jnl.c (__ieee754_ynl): Likewise.
634 * sysdeps/ieee754/ldb-96/e_j0l.c (__ieee754_y0l): Likewise.
635 * sysdeps/ieee754/ldb-96/e_j1l.c (__ieee754_y1l): Likewise.
636 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
637 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Likewise.
638 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Likewise.
639
640 * math/libm-test.inc (yn_test): Expect invalid exception for
641 negative arguments.
642 (y0_test): Likewise.
643 (y1_test): Likewise.
644
645 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not raise
646 execptions for exp(NaN).
647
648 2003-12-23 Paolo Bonzini <bonzini@gnu.org>
649
650 * posix/regex_internal.c (re_dfa_add_node): Initialize opt_subexp.
651 * posix/regex_internal.h (re_token_type_t): Put OP_DUP_PLUS
652 among the tokens, rather than among the epsilon-transiting nodes.
653 (re_token_t): Add the opt_subexp flag.
654 * posix/regcomp.c (optimize_utf8, calc_first,
655 calc_next, calc_epsdest): Don't consider OP_DUP_PLUS.
656 (mark_opt_subexp, mark_opt_subexp_iter): New functions.
657 (parse_dup_op): Mostly rewritten, lowering OP_DUP_PLUS to
658 OP_DUP_ASTERISK and marking optional subexpressions
659 as such using mark_opt_subexp.
660 * posix/regexec.c (set_regs): Initialize PREV_INDEX_MATCH
661 and pass it to update_regs.
662 (update_regs): Use the PREV_INDEX_MATCH parameter, together
663 with the opt_subexp flag, in order to discard a final empty
664 match of a repeated subexpression.
665 * posix/BOOST.tests: Adjust test vectors.
666 * posix/PCRE.tests: Likewise.
667 * posix/rxspencer/tests: Likewise.
668
669 2000-05-22 Jakub Jelinek <jakub@redhat.com>
670
671 * sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Avoid using ?:
672 with omitted middle operand.
673
674 2003-12-22 Jakub Jelinek <jakub@redhat.com>
675
676 * posix/regcomp.c: Remove C99-ism.
677 * posix/tst-rxspencer.c: Likewise.
678 Based on a patch by Alex Davis <alex14641@yahoo.com>.
679
680 2003-12-17 Paolo Bonzini <bonzini@gnu.org>
681
682 * posix/regex_internal.h [!_LIBC] (internal_function): Define.
683 (re_string_allocate, re_string_construct, re_string_reconstruct,
684 re_string_realloc_buffers, build_wcs_buffer,
685 build_wcs_upper_buffer, build_upper_buffer,
686 re_string_translate_buffer, re_string_destruct,
687 re_string_elem_size_at, re_string_char_size_at,
688 re_string_wchar_at, re_string_context_at,
689 re_node_set_alloc, re_node_set_init_1
690 re_node_set_init_2, re_node_set_init_copy,
691 re_node_set_add_intersect, re_node_set_init_union,
692 re_node_set_merge, re_node_set_insert
693 re_node_set_compare, re_node_set_contains
694 re_node_set_remove_at, re_dfa_add_node,
695 re_acquire_state, re_acquire_state_context,
696 free_state): Add internal_function to declaration.
697
698 * posix/regexec.c (match_ctx_init, match_ctx_clean,
699 match_ctx_free, match_ctx_free_subtops,
700 match_ctx_add_entry, search_cur_bkref_entry,
701 match_ctx_clear_flag, match_ctx_add_subtop,
702 match_ctx_add_sublast, sift_ctx_init,
703 re_search_internal, re_search_2_stub, re_search_stub,
704 re_copy_regs, acquire_init_state_context,
705 prune_impossible_nodes, check_matching,
706 check_halt_node_context, check_halt_state_context
707 update_regs, proceed_next_node, push_fail_stack,
708 pop_fail_stack, set_regs, free_fail_stack_return,
709 sift_states_iter_mb, sift_states_backward
710 update_cur_sifted_state, add_epsilon_src_nodes,
711 sub_epsilon_src_nodes, check_dst_limits,
712 check_dst_limits_calc_pos, check_subexp_limits,
713 sift_states_bkref, clean_state_log_if_need,
714 merge_state_array, transit_state,
715 check_subexp_matching_top, transit_state_sb,
716 transit_state_mb, transit_state_bkref,
717 get_subexp, get_subexp_sub, find_subexp_node,
718 check_arrival, check_arrival_add_next_nodes,
719 find_collation_sequence_value, check_arrival_expand_ecl,
720 check_arrival_expand_ecl_sub, expand_bkref_cache,
721 build_trtable, check_node_accept_bytes, extend_buffers,
722 group_nodes_into_DFAstates, check_node_accept): Likewise.
723
724 * posix/regex_internal.c (re_string_construct_common,
725 re_string_skip_chars, create_newstate_common,
726 register_state, create_ci_newstate, create_cd_newstate,
727 calc_state_hash): Likewise.
728 (re_string_peek_byte_case, re_fetch_byte_case): Change
729 declaration from ANSI to K&R.
730
731 2003-12-16 Paolo Bonzini <bonzini@gnu.org>
732
733 * posix/regexec.c (build_trtable): Don't allocate the trtable
734 until state->word_trtable is known. Don't hardcode UINT_BITS
735 iterations on each bitset item.
736
737 2003-12-22 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
738
739 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init):
740 Initialize REF before passing it to _dl_lookup_symbol.
741
742 2003-12-21 Roland McGrath <roland@frob.com>
743
744 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Define with attribute_hidden.
745
746 2003-12-21 Jakub Jelinek <jakub@redhat.com>
747
748 * posix/regcomp.c (duplicate_node, duplicate_node_closure): Revert
749 2003-11-24 changes.
750 * posix/regexec.c (group_nodes_into_DFAstates): For CHARACTER with
751 NEXT_{,NOT}WORD_CONSTRAINT check word_char bit.
752 * posix/bug-regex19.c (tests): Add new tests.
753
754 * posix/regexec.c (check_dst_limits_calc_pos): Fix formatting.
755
756 * posix/regcomp.c (parse_dup_op): Return NULL if dup_elem is NULL,
757 after checking syntax. Optimize.
758 (calc_first): Fix comment.
759 * posix/bug-regex13.c (tests): Add new tests.
760
761 2003-12-21 Roland McGrath <roland@redhat.com>
762
763 * manual/arith.texi (Parsing of Integers): Typo fix.
764
765 2003-12-20 Roland McGrath <roland@frob.com>
766
767 * sysdeps/generic/ifreq.c (__ifreq) [_HAVE_SA_LEN]: Fix typo:
768 add missing dereference of IFREQS before counting loop.
769
770 2003-12-21 Andreas Schwab <schwab@suse.de>
771
772 * sysdeps/m68k/m68020/bits/atomic.h: Avoid matching memory
773 constraints.
774
775 2003-12-20 Ulrich Drepper <drepper@redhat.com>
776
777 * elf/rtld.c (dl_main): Optimize order of subexpressions in if().
778
779 2003-12-18 Ulrich Drepper <drepper@redhat.com>
780
781 * stdio-common/printf_fp.c: Add support to use alternative decimal
782 digits.
783 * stdio-common/vfprintf.c (vfprintf): Pass use_outdigits flags to
784 __printf_fp. Patch by Hamed Malek <hamed@bamdad.org>.
785
786 2003-12-18 Carlos O'Donell <carlos@baldric.uwo.ca>
787
788 * sysdeps/unix/sysv/linux/hppa/clone.S (__clone) [PIC]: Save PIC,
789 reload PIC if we need to call __syscall_error, cleanup asm.
790
791 2003-12-17 Carlos O'Donell <carlos@baldric.uwo.ca>
792
793 * sysdeps/hppa/fpu/fclrexcpt.c (feclearexcept): Right shift
794 FE_ALL_EXCEPT before complimenting.
795 * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Use asm 'ma,' completer,
796 and gcc '+r' constraint.
797 * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
798 * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
799 * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Read raised
800 exception bits, OR with envp, pass to fesetenv.
801 * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Add delayed
802 exception flushing, FE_UNDERFLOW is DBL_MIN/3.0, FE_INEXACT is
803 triggered by M_PI/69.69 converted to single precision.
804 * sysdeps/hppa/fpu/fsetexcptflg.c (fesetexceptflag): Set enable
805 bits not raised exception bits.
806
807 * sysdeps/hppa/Makefile: Add dl-symaddr and dl-fptr to the
808 correct build strings.
809 * sysdeps/hppa/dl-fptr.h: New file.
810 * sysdeps/hppa/dl-fptr.c: Removed.
811 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Use _dl_make_ftpr,
812 remove const qualifier for map.
813 (_dl_function_address): Removed.
814 * sysdeps/hppa/dl-lookupcfg.h: DL_LOOKUP_ADDRESS must clear
815 PLABEL32 bits, define DL_AUTO_FUNCTION_ADDRESS and
816 DL_STATIC_FUNCTION_ADDRESS, DL_DT_INIT_ADDRESS and
817 DL_DT_FINI_ADDRESS use the previous two macros.
818
819 2003-12-17 Jakub Jelinek <jakub@redhat.com>
820
821 * malloc/mtrace.c (tr_old_memalign_hook): New variable.
822 (tr_memalignhook): New function.
823 (mtrace): Register tr_memalignhook.
824 (muntrace): Deregister tr_memalignhook.
825 * malloc/malloc.c (__posix_memalign): If __memalign_hook != NULL,
826 call it directly instead of memalign_internal.
827
828 2003-12-17 Ulrich Drepper <drepper@redhat.com>
829
830 * misc/mntent_r.c: Change encoding to match recently changed decoder.
831 Patch by Alexander Achenbach <xela@slit.de>.
832
833 2003-12-16 Steven Munroe <sjmunroe@us.ibm.com>
834
835 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Correct definition of
836 vrregset_t.
837
838 2003-12-16 Steven Munroe <sjmunroe@us.ibm.com>
839
840 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [!__PPC64_ELF_H]: Extend
841 conditional to include typedef elf_vrreg_t.
842
843 2003-12-17 Paolo Bonzini <bonzini@gnu.org>
844
845 * posix/regexec.c (re_search_internal): Limit search to the
846 beginning of the buffer if the initial states are empty for
847 contexts that do not include CONTEXT_BEGBUF or, if
848 !preg->newline_anchor, that do not include any one of
849 CONTEXT_BEGBUF and CONTEXT_NEWLINE.
850
851 2003-12-17 Andreas Jaeger <aj@suse.de>
852
853 * sysdeps/generic/system.c (__libc_system): Fix typo, reported by
854 Kevin Pedretti <pedretti@ieee.org>.
855
856 2003-12-17 Ulrich Drepper <drepper@redhat.com>
857
858 * elf/rtld.c: Don't use strong_alias to define _rtld_local. This
859 removes the visibility attributes which might be defined earlier
860 for some gcc versions. Instead spell out what strong_alias does
861 plus the visibility.
862
863 2003-12-16 Petter Reinholdtsen <pere@hungry.com>
864
865 * posix/regex_internal.h: Make sure the regex code compile
866 with non-GCC compilers by hiding attributes.
867
868 2003-12-16 Jakub Jelinek <jakub@redhat.com>
869 Paolo Bonzini <bonzini@gnu.org>
870
871 * posix/regexec.c (group_nodes_into_DFAstates): Never produce
872 dests_ch items that are empty.
873
874 2003-12-14 Paolo Bonzini <bonzini@gnu.org>
875
876 * posix/regexec.c (check_arrival): Remove duplicate test.
877
878 2003-12-15 Ulrich Drepper <drepper@redhat.com>
879
880 * posix/regcomp.c: Make !RE_ENABLE_I18N work again.
881 * posix/regex_internal.c: Likewise.
882 * posix/regexec.c: Likewise.
883 Patch by Paolo Bonzini.
884
885 2003-12-14 Paolo Bonzini <bonzini@gnu.org>
886
887 * posix/regex_internal.c (re_acquire_state_context):
888 Compare the node sets after all the other comparisons.
889
890 2003-12-13 Paolo Bonzini <bonzini@gnu.org>
891
892 * posix/regexec.c (find_subexp_node, check_arrival,
893 check_arrival_add_next_nodes, check_arrival_expand_ecl,
894 check_arrival_expand_ecl_sub, expand_bkref_cache):
895 Rename the FL_OPEN parameter to TYPE, which is either
896 OP_OPEN_SUBEXP or OP_CLOSE_SUBEXP. Callers adjusted.
897
898 2003-12-12 Andreas Jaeger <aj@suse.de>
899
900 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Pass also 6th argument
901 to syscall.
902
903 2003-12-11 Ulrich Drepper <drepper@redhat.com>
904
905 * sysdeps/unix/sysv/linux/kernel-features.h: Remove __ASSUME_VSYSCALL.
906 There might always be processes which have no vDSO.
907 * sysdeps/generic/dl-sysdep.c: Remove __ASSUME_VSYSCALL uses.
908 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
909
910 2003-12-11 Carlos O'Donell <carlos@baldric.uwo.ca>
911
912 * sysdeps/generic/dl-fptr.c (COMPARE_AND_SWAP): Pass new and old
913 in the right order.
914
915 2003-12-01 Jes Sorensen <jes@wildopensource.com>
916
917 * rt/tst-clock.c (do_test): Print message when skipping
918 CLOCK_PROCESS_CPUTIME_ID test.
919
920 * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c: New file.
921 Provide CLOCK_PROCESS_CPUTIME_ID only if /proc/sal/itc_drift is 0.
922
923 2003-12-02 David Mosberger <davidm@hpl.hp.com>
924
925 * sysdeps/ia64/elf/initfini.c: Add unwind info.
926
927 * sysdeps/ia64/dl-machine.h (elf_machine_matches_host): Mark with
928 attribute "unused".
929 (elf_machine_dynamic): Mark with attributes "unused" and "const".
930 (elf_machine_runtime_setup): Likewise.
931
932 * sysdeps/generic/dl-fptr.c (make_fptr_table): Mark with
933 attribute "always_inline".
934 * sysdeps/ia64/dl-machine.h (__ia64_init_bootstrap_fdesc_table):
935 Likewise.
936
937 * configure.in: Check whether compiler has libunwind support.
938 * config.make.in (have-cc-with-libunwind): New variable.
939 * config.h.in (HAVE_CC_WITH_LIBUNWIND): New macro.
940 * Makeconfig (gnulib): If have-cc-with-libunwind is "yes", also
941 mention -lunwind.
942
943 2003-11-12 David Mosberger <davidm@hpl.hp.com>
944
945 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Define DO_CALL_VIA_BREAK.
946 Redefine DO_CALL to use vdso if supported, otherwise DO_CALL_VIA_BREAK.
947 Likewise for DO_INLINE_SYSCALL. Make INTERNAL_SYSCALL use
948 DO_INLINE_SYSCALL.
949
950 * sysdeps/unix/sysv/linux/ia64/vfork.S: Use DO_CALL_VIA_BREAK()
951 instead of DO_CALL().
952
953 * sysdeps/unix/sysv/linux/ia64/clone2.S: Use break directly instead
954 of DO_CALL().
955
956 * sysdeps/unix/sysv/linux/ia64/brk.S (__curbrk): Restructure it
957 to take advantage of DO_CALL() macro.
958 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Likewise.
959 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Likewise.
960
961 * elf/rtld.c (dl_main): Restrict dl_sysinfo_dso check to first
962 program header. On ia64, the check failed previously because
963 there are two program headers.
964
965 2003-12-10 Andreas Jaeger <aj@suse.de>
966 Ruediger Oertel <ro@suse.de>
967
968 * sysdeps/alpha/fpu/e_sqrt.c: Mark sqrt_data as used.
969
970 2003-12-07 Ulrich Drepper <drepper@redhat.com>
971
972 * sysdeps/i386/fpu/s_nexttowardf.c: Construct overflow value correctly.
973 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
974 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
975 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
976 * sysdeps/generic/s_nexttowardf.c: Likewise.
977 * math/Makefile (tests): Add bug-nexttoward.
978 * math/bug-nexttoward.c: New file.
979
980 * sysdeps/generic/s_nextafter.c: Make sure overflow exception is set.
981 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
982 * math/bug-nextafter.c (main): Add tests for overflow and negative
983 values.
984
985 2003-12-06 Ulrich Drepper <drepper@redhat.com>
986
987 * math/Makefile (tests): Add bug-nextafter.
988 * math/bug-nextafter.c: New file.
989 * sysdeps/generic/s_nextafter.c: Construct overflow value correctly.
990 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
991 * math/libm-test.inc (nextafter_test): Add test for overflow after
992 +/-FLT_MAX etc.
993
994 2003-12-04 Steven Munroe <sjmunroe@us.ibm.com>
995
996 * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Add masking
997 of fenv.
998 * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag): Likewise.
999
1000 2003-12-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
1001
1002 * sysdeps/s390/s390-32/elf/setjmp.S (setjmp, __setjmp): Add END
1003 statements.
1004 * sysdeps/s390/s390-64/elf/setjmp.S (setjmp, __setjmp): Likewise.
1005 * sysdeps/s390/s390-32/sysdep.h (ENTRY): Add cfi_startproc directive.
1006 (END): Add cfi_endproc directive.
1007 * sysdeps/s390/s390-64/sysdep.h (ENTRY, END): Likewise.
1008 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Remove
1009 cfi_startproc and cfi_endproc directive.
1010 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
1011 * sysdeps/s390/s390-32/addmul_1.S (__mpn_addmul_1): Add CFI directives.
1012 * sysdeps/s390/s390-32/add_n.S (__mpn_add_n): Likewise.
1013 * sysdeps/s390/s390-64/add_n.S (__mpn_add_n): Likewise.
1014 * sysdeps/s390/s390-32/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1015 Likewise.
1016 * sysdeps/s390/s390-64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1017 Likewise.
1018 * sysdeps/s390/s390-32/mul_1.S (__mpn_mul_1): Likewise.
1019 * sysdeps/s390/s390-32/sub_n.S (__mpn_sub_n): Likewise.
1020 * sysdeps/s390/s390-64/sub_n.S (__mpn_sub_n): Likewise.
1021 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64): Likewise.
1022 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap): Likewise.
1023 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap): Likewise.
1024 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Likewise.
1025 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
1026 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
1027 Likewise.
1028 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
1029 Likewise.
1030 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Add CFI
1031 directives. Move thread_start out of ENTRY/PSEUDO_END block to
1032 make backchain terminate.
1033 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
1034
1035 * sysdeps/s390/s390-32/backtrace.c (trace_arg): New structure.
1036 (unwind_backtrace, unwind_getip): New variables.
1037 (init, __backchain_backtrace, backtrace_helper): New functions.
1038 (__backtrace): Use unwind info for backtrace instead of backchain
1039 walking if the unwind functions can be found.
1040 * sysdeps/s390/s390-64/backtrace.c: Likewise.
1041
1042 * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: New file.
1043
1044 * sysdeps/unix/sysv/linux/s390/sys/procfs.h (ELF_NGREG32): New #define.
1045 (elf_greg_t32, elf_gregset_t32, elf_fpregset_t32): New types.
1046 (elf_prstatus32, elf_prpsinfo32): New structures.
1047 (prgregset32_t, prfpregset32_t, prstatus32_t, prpsinfo32_t): New types.
1048
1049 * scripts/data/c++-types-s390-linux-gnu.data: New file.
1050 * scripts/data/c++-types-s390x-linux-gnu.data: New file.
1051
1052 2003-11-30 Petter Reinholdtsen <pere@hungry.com>
1053
1054 * stdlib/strfmon.c: Correct formatting of international currency
1055 values. The international currency formatting should prefer the
1056 int_* values if they are set for a locale, and use the domestic
1057 values if the int_* values are unset.
1058
1059 2003-12-03 Jakub Jelinek <jakub@redhat.com>
1060
1061 * posix/Makefile (distribute): Add BOOST.tests.
1062 (tests): Add tst-boost, depend on tst-boost-mem.
1063 (generated): Add tst-boost-mem and tst-boost.mtrace.
1064 (tst-boost-ARGS, tst-boost-ENV): Set.
1065 ($(objpfx)tst-boost-mem): New.
1066 * posix/tst-boost.c: New test.
1067 * posix/BOOST.tests: New file.
1068
1069 * posix/Makefile (distribute): Add PCRE.tests.
1070 (tests): Add tst-pcre, depend on tst-pcre-mem.
1071 (generated): Add tst-pcre-mem and tst-pcre.mtrace.
1072 (tst-pcre-ARGS, tst-pcre-ENV): Set.
1073 ($(objpfx)tst-pcre-mem): New.
1074 * posix/tst-pcre.c: New test.
1075 * posix/PCRE.tests: New file.
1076
1077 2003-12-02 Jakub Jelinek <jakub@redhat.com>
1078
1079 * intl/locale.alias: Use nb_NO instead of no_NO for bokm.l.
1080
1081 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
1082 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
1083
1084 2003-12-03 Ulrich Drepper <drepper@redhat.com>
1085
1086 * locale/programs/locarchive.c (enlarge_archive): Print size info
1087 only in verbose mode.
1088
1089 * locale/iso-3166.def: Three letter code of Romania changed.
1090
1091 2003-12-02 Roland McGrath <roland@redhat.com>
1092
1093 * scripts/config.sub: Update from master, timestamp='2003-10-20'.
1094 * scripts/config.guess: Update from master, timestamp='2003-10-20'.
1095
1096 2003-11-30 Andreas Jaeger <aj@suse.de>
1097
1098 * config.make.in (fno-unit-at-a-time): Define.
1099
1100 * configure.in: Add test for -fno-unit-at-a-time.
1101 Fix text for -fpie.
1102
1103 * csu/Makefile (CFLAGS-initfini.s): Add $(fno_unit_at_a_time).
1104 * locale/Makefile (CFLAGS-loadlocale.c): Likewise.
1105
1106 2003-12-01 Automatic
1107
1108 * version.h (VERSION): Bump to 2.3.3.
1109
1110 2003-11-30 Andreas Jaeger <aj@suse.de>
1111
1112 * stdio-common/vfprintf.c: Do not inline buffered_vfprintf to
1113 decrease stack usage.
1114
1115 2003-11-30 Andreas Schwab <schwab@suse.de>
1116
1117 * sysdeps/unix/sysv/linux/m68k/sysdep.h (PSEUDO_ERRVAL)
1118 (PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
1119
1120 2003-11-29 Ulrich Drepper <drepper@redhat.com>
1121
1122 * misc/mntent_r.c (decode_name): Be compatible with util-linux and
1123 recognize \134 as well.
1124
1125 2003-10-09 H.J. Lu <hongjiu.lu@intel.com>
1126
1127 * sysdeps/ia64/fpu/fraiseexcpt.c: Don't include <asm/fpu.h>.
1128
1129 2003-10-08 H.J. Lu <hongjiu.lu@intel.com>
1130
1131 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Don't include
1132 <asm/fpu.h>.
1133 (struct ia64_fpreg): New definition.
1134
1135 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Don't include
1136 <asm/elf.h>.
1137 (ELF_NGREG): New #define.
1138 (ELF_NFPREG): Likewise.
1139 (elf_greg_t): New type.
1140 (elf_gregset_t): Likewise.
1141 (elf_fpreg_t): Likewise.
1142 (elf_fpregset_t): Likewise.
1143
1144 2003-10-08 H.J. Lu <hongjiu.lu@intel.com>
1145
1146 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Include
1147 <sys/ucontext.h>.
1148 (__ptrace_request): Add PTRACE_GETREGS and PTRACE_SETREGS.
1149 (pt_all_user_regs): New type.
1150
1151 2003-10-10 Simon Josefsson <jas@extundo.com>
1152
1153 * argp/argp-namefrob.h [!_LIBC]: Include mempcpy.h, strcase.h,
1154 strchrnul.h, strndup.h (from gnulib).
1155 * argp/argp-parse.c: Add alloca.h include snippet verbatim from
1156 Autoconf manual.
1157 * argp/argp-help.c: Replace alloca.h include snipper with verbatim
1158 Autoconf manual version.
1159 * argp/argp.h: Map __restrict to restrict or empty string when
1160 necessary, copied verbatim from posix/regex.h.
1161
1162 2003-10-09 Steven Munroe <sjmunroe@us.ibm.com>
1163
1164 * Makefile: Allow for c++-types-$(config-machine)-$(config-os).data in
1165 addition to c++-types-$(base-machine)-$(config-os).data.
1166 * scripts/data/c++-types-powerpc-linux-gnu.data: New file.
1167 * scripts/data/c++-types-powerpc64-linux-gnu.data: New file.
1168
1169 2003-11-28 Ulrich Drepper <drepper@redhat.com>
1170
1171 * misc/mntent_r.c (decode_name): Fix decoding of tab, add decoding
1172 of newline.
1173 * manual/sysinfo.texi (mtab): Adjust description accordingly.
1174 Reported by Andries.Brouwer@cwi.nl.
1175
1176 * sysdeps/x86_64/fpu/libm-test-ulps: Add some more minor changes
1177 to compensate other setup.
1178
1179 2003-11-27 Andreas Jaeger <aj@suse.de>
1180
1181 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for new atan2 test.
1182
1183 * math/libm-test.inc (atan2_test): Add test that run infinitly.
1184 Reported by "Willus" <etc231etc231@willus.com>.
1185
1186 2003-11-27 Michael Matz <matz@suse.de>
1187
1188 * sysdeps/ieee754/dbl-64/mpsqrt.c (fastiroot): Fix 64-bit problem
1189 with wrong types.
1190
1191 2003-11-28 Jakub Jelinek <jakub@redhat.com>
1192
1193 * posix/regexec.c (acquire_init_state_context): Make inline.
1194 Add always_inline attribute.
1195 (check_matching): Add BE macro. Move if (cur_state->has_backref)
1196 into if (dfa->nbackref).
1197 (sift_states_backward): Fix comment.
1198 (transit_state): Add BE macro. Move if (next_state->has_backref)
1199 into if (dfa->nbackref && next_state). Don't check for next_state
1200 != NULL twice.
1201 * posix/regcomp.c (peek_token): Use opr.ctx_type instead of opr.idx
1202 for ANCHOR.
1203 (parse_expression): Only call init_word_char if word context will be
1204 needed.
1205
1206 * posix/bug-regex11.c (tests): Add new tests.
1207
1208 * posix/tst-regex.c: Include getopt.h.
1209 (timing): New variable.
1210 (main): Set timing to 1 if --timing argument is present.
1211 Add 2 new tests.
1212 (run_test, run_test_backwards): Handle timing.
1213
1214 2003-11-27 Jakub Jelinek <jakub@redhat.com>
1215
1216 * posix/regex_internal.h (re_string_t): Remove mbs_case field.
1217 Add offsets, valid_raw_len, raw_len, raw_stop, mbs_allocated and
1218 offsets_needed fields. Change icase, is_utf8 and map_notascii
1219 type from int bitfield to unsigned char.
1220 (MBS_ALLOCATED, MBS_CASE_ALLOCATED): Remove.
1221 (build_wcs_upper_buffer): Change prototype to return int.
1222 (re_string_peek_byte_case, re_string_fetch_byte_case): Remove
1223 defines, add prototypes.
1224 * posix/regex_internal.c (re_string_allocate): Don't initialize
1225 stop here. Don't initialize mbs_case. Set valid_raw_len.
1226 Use mbs_allocated instead of MBS_* macros.
1227 (re_string_construct): Don't initialize stop and valid_len here.
1228 Don't initialize mbs_case. Use mbs_allocated instead of MBS_*
1229 macros. Reallocate buffers if build_wcs_upper_buffer converted
1230 too few bytes. Set valid_len to bufs_len only for single byte
1231 no translation and set in that case valid_raw_len as well.
1232 (re_string_realloc_buffers): Reallocate offsets if not NULL.
1233 Use mbs_allocated instead of MBS_ALLOCATED. Don't reallocate
1234 mbs_case.
1235 (re_string_construct_common): Initialize raw_len, mbs_allocated,
1236 stop and raw_stop.
1237 (build_wcs_buffer): Apply pstr->trans before mbrtowc instead of
1238 after it. Set valid_raw_len. Don't set mbs_case.
1239 (build_wcs_upper_buffer): Return REG_NOERROR or REG_ESPACE.
1240 Only use the fast path if !pstr->offsets_needed. Apply pstr->trans
1241 before mbrtowc instead of after it. If upper case character
1242 uses different number of bytes than lower case, goto to the
1243 slow path. Don't call towupper unnecessarily twice. Set
1244 valid_raw_len as well. Handle in the slow path the case if
1245 lower and upper case use different number of characters.
1246 Don't set mbs_case.
1247 (re_string_skip_chars): Use valid_raw_len instead of valid_len.
1248 (build_upper_buffer): Don't set mbs_case. Add BE macro. Set
1249 valid_raw_len.
1250 (re_string_translate_buffer): Set mbs instead of mbs_case. Set
1251 valid_raw_len.
1252 (re_string_reconstruct): Use raw_len/raw_stop to initialize
1253 len/stop. Clear valid_raw_len and offsets_needed when clearing
1254 valid_len. Use mbs_allocated instead of MBS_* macros.
1255 Check original offset against valid_raw_len instead of valid_len.
1256 Remove mbs_case handling. Adjust valid_raw_len together with
1257 valid_len. If is_utf8 and looking for tip context, apply
1258 pstr->trans first. If buffers start with partial multi-byte
1259 character, initialize mbs array as well if mbs_allocated.
1260 Check return value of build_wcs_upper_buffer.
1261 (re_string_peek_byte_case): New function.
1262 (re_string_fetch_byte_case): New function.
1263 (re_string_destruct): Use mbs_allocated instead of MBS_ALLOCATED.
1264 Don't free mbs_case. Free offsets.
1265 * posix/regcomp.c (init_dfa): Only check if charset name is UTF-8
1266 if mb_cur_max == 6.
1267 * posix/regexec.c (re_search_internal): Initialize input.raw_stop
1268 as well. Use valid_raw_len instead of valid_len when looking
1269 through fastmap. Adjust registers through input.offsets.
1270 (extend_buffers): Allow build_wcs_upper_buffer to fail.
1271 * posix/bug-regex18.c (tests): Enable #ifdefed out tests. Add new
1272 tests.
1273
1274 2003-11-26 Jakub Jelinek <jakub@redhat.com>
1275
1276 * posix/regexec.c (check_subexp_limits): Only check close
1277 subexpression limitation if one is found. Formatting.
1278 (sift_states_backward, check_arrival, check_arrival_add_next_nodes):
1279 Formatting.
1280 * posix/bug-regex11.c (tests): Enable most #ifdefed out tests.
1281 Add new test.
1282
1283 2003-11-26 Ulrich Drepper <drepper@redhat.com>
1284
1285 * sysdeps/unix/sysv/linux/kernel-features.h
1286 (__ASSUME_PROT_GROWSUPDOWN): Define for 2.6.1 and up.
1287 * sysdeps/unix/sysv/linux/dl-execstack.c: Omit compatibility code
1288 if __ASSUME_PROT_GROWSUPDOWN is defined.
1289
1290 2003-11-26 Andreas Jaeger <aj@suse.de>
1291
1292 * sysdeps/unix/sysv/linux/dl-execstack.c
1293 (_dl_make_stack_executable): Set dl_stack_flags always for
1294 success.
1295
1296 2003-06-22 Petter Reinholdtsen <pere@hungry.com>
1297
1298 * locale/program/ld-monetary.c: Only check the first three
1299 characters in int_curr_symbol against ISO-4217, to make the
1300 separator character used by a locale independent of the content
1301 in iso-4217.def.
1302 * locale/iso-4217.def: Remove the space character from all
1303 currency values to get the new test code in ld-monetary.c working.
1304
1305 2003-11-21 David Mosberger <davidm@hpl.hp.com>
1306
1307 * elf/soinit.c (_fini): Put _fini() in .init_array section if
1308 HAVE_INITFINI_ARRAY is defined.
1309
1310 2003-11-25 Ulrich Drepper <drepper@redhat.com>
1311
1312 * sysdeps/i386/fpu/bits/mathinline.h: Introduce __libc_sqrtl symbol.
1313 Define it appropriately after last change. Use it where __sqrtl
1314 was used.
1315
1316 2003-11-25 H.J. Lu <hongjiu.lu@intel.com>
1317
1318 * sysdeps/i386/fpu/bits/mathinline.h (sqrt): Don't inline
1319 sqrt for gcc 3.3 and above.
1320
1321 2003-11-25 Ulrich Drepper <drepper@redhat.com>
1322
1323 * posix/runptests.c (main): Make errors fatal.
1324 * posix/PTESTS: One test in GA135 and GA136 check functionality
1325 which seems not guaranteed.
1326
1327 2003-11-25 Jakub Jelinek <jakub@redhat.com>
1328
1329 * posix/regexec.c (re_search_internal): If prune_impossible_nodes
1330 returned REG_NOMATCH, set match_last to -1. Don't initialize
1331 pmatch[0] needlessly. Fix comment.
1332 (prune_impossible_nodes): Don't segfault on NULL state_log entry.
1333 (set_regs): Fix comment.
1334 * posix/regcomp.c (parse_bracket_exp): Only set has_plural_match
1335 if adding both SIMPLE_BRACKET and COMPLEX_BRACKET.
1336 (build_charclass_op): Set has_plural_match if adding both
1337 SIMPLE_BRACKET and COMPLEX_BRACKET.
1338 * posix/bug-regex11.c (tests): Fix register values for one commented
1339 out test. Add new tests.
1340
1341 * posix/regex_internal.c (re_string_allocate): Make sure init_len
1342 is at least dfa->mb_cur_max.
1343 (re_string_reconstruct): If is_utf8, don't fall back into
1344 re_string_skip_chars just because idx points into a middle of
1345 valid UTF-8 character. Instead, set the wcs bytes which correspond
1346 to the partial character bytes to WEOF.
1347 * posix/regexec.c (re_search_internal): Allocate input.bufs_len + 1
1348 instead of dfa->nodes_len + 1 state_log entries initially.
1349 * posix/bug-regex20.c (main): Uncomment backwards case insensitive
1350 tests.
1351
1352 2003-11-24 Jakub Jelinek <jakub@redhat.com>
1353
1354 * posix/regex_internal.h (re_token_t): Add word_char bit. Add
1355 comment.
1356 (re_dfa_t): Add sb_char field.
1357 (bitset_mask): New function.
1358 * posix/regcomp.c (free_dfa_content): Free sb_char.
1359 (init_dfa): Don't initialize word_char unnecessarily.
1360 Initialize sb_char.
1361 (duplicate_node): Don't duplicate !word_char CHARACTERs with
1362 NEXT_WORD_CONSTRAINT constraint or word_char CHARACTERs with
1363 NEXT_NOTWORD_CONSTRAINT. Return -1 in *new_idx instead.
1364 (duplicate_node_closure): Handle clone_dest == -1 from
1365 duplicate_node.
1366 (peek_token): Initialize word_char bit.
1367 (parse_expression, parse_dup_op): Add comments.
1368 (parse_bracket_exp): Don't set bitmask bits for multi-byte char
1369 starting bytes here at the beginning. Mask off the bits right
1370 before creating SIMPLE_BRACKET.
1371 (build_charclass_op): Likewise.
1372 * posix/regexec.c (group_nodes_into_DFAstates) <case OP_PERIOD>: Only
1373 set accept bits for single-byte characters.
1374 (group_nodes_into_DFAstates): Don't rely on characters 0 .. 127
1375 being single byte encoded and the rest multi-byte.
1376 * posix/bug-regex19.c (tests): Add new tests.
1377 (do_mb_tests): Initialize t to *test.
1378 (main): Fail even on do_mb_tests errors.
1379
1380 2003-11-23 Ulrich Drepper <drepper@redhat.com>
1381
1382 * posix/regexec.c: Correct several memory allocation problems.
1383 Add more BE.
1384 * posix/regex_internal.c: Likewise.
1385 * posix/regcomp.c: Likewise.
1386
1387 * posix/regexec.c: Add const in a number of places.
1388 * posix/regex_internal.h: Make EPSILON_BIT a macro to help
1389 debugging. Its value isn't important.
1390
1391 2003-11-22 Ulrich Drepper <drepper@redhat.com>
1392
1393 * posix/PTESTS: Fix first test of GA143.
1394
1395 2003-11-21 Ulrich Drepper <drepper@redhat.com>
1396
1397 * posix/regex_internal.c (re_dfa_add_node): Add BE, reallocation
1398 isn't likely.
1399
1400 * locale/programs/charmap.c (charmap_read): If encoding is found
1401 not ASCII compatible, set enc_not_ascii_compatible.
1402 * locale/programs/charmap.h: Declare enc_not_ascii_compatible.
1403 * locale/programs/ld-ctype.c (ctype_startup): If
1404 enc_not_ascii_compatible is set, initialize to_nonascii to 1.
1405
1406 2003-11-22 Jakub Jelinek <jakub@redhat.com>
1407
1408 * elf/rtld.c (process_envvars): Only honor LD_USE_LOAD_BIAS
1409 if !__libc_enable_secure.
1410
1411 * sysdeps/generic/ldsodefs.h (_dl_use_load_bias): New _rtld_global
1412 field.
1413 * elf/rtld.c (_rtld_global): Initialize _dl_use_load_bias field.
1414 (dl_main): Set GL(dl_use_load_bias) default.
1415 (process_envvars): Set GL(dl_use_load_bias) from LD_USE_LOAD_BIAS.
1416 Add EXTRA_LD_ENVVARS_13.
1417 * elf/dl-support.c (_dl_use_load_bias): New variable.
1418 * elf/dl-load.c (_dl_map_object_from_fd): Mask c->mapstart
1419 with GL(dl_use_load_bias).
1420 * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add
1421 LD_USE_LOAD_BIAS.
1422 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Remove.
1423 (EXTRA_LD_ENVVARS_LINUX): Renamed to...
1424 (EXTRA_LD_ENVVARS_13): ... this. Remove case at the beginning.
1425 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS):
1426 Don't undefine first. Remove EXTRA_LD_ENVVARS_LINUX.
1427
1428 2003-11-21 Ulrich Drepper <drepper@redhat.com>
1429
1430 * posix/regcomp.c (duplicate_node): Remove unnecessary local variable.
1431
1432 * posix/regcomp.c (re_dfa_add_tree_node): Make fourth parameter a
1433 pointer. Adjust callers.
1434
1435 * posix/regcomp.c (fetch_token): Change interface to match
1436 peek_token. This avoids some copying and reduces code size.
1437
1438 2003-11-21 Jakub Jelinek <jakub@redhat.com>
1439
1440 * posix/bug-regex19.c (tests): Add more tests.
1441
1442 * posix/bug-regex11.c: And one more commented out test.
1443
1444 * posix/tst-rxspencer.c (mb_tests): Don't run identical multi-byte
1445 tests multiple times unnecessarily.
1446
1447 * posix/bug-regex19.c (BRE, ERE): Define.
1448 (tests): Add many new tests, remove UTF-8 ones.
1449 (do_one_test, do_mb_tests): New functions.
1450 (main): Rewritten using do_one_test and do_mb_tests.
1451
1452 2003-11-20 Ulrich Drepper <drepper@redhat.com>
1453
1454 * posix/PTESTS: Fix first test in GA143.
1455
1456 2003-11-20 Jakub Jelinek <jakub@redhat.com>
1457
1458 * posix/regex_internal.h (re_dfastate_t): Remove trtable_search.
1459 Add word_trtable.
1460 * posix/regex_internal.c (create_newstate_common, free_state):
1461 Don't free trtable_search.
1462 * posix/regexec.c (check_matching): Remove fl_search argument.
1463 (transit_state_sb): Likewise. #ifdef out as unused.
1464 (build_trtable): Remove fl_search argument. Set state->word_trtable
1465 and state->trtable. Build separate word and non-word tables if
1466 multi-byte and they differ for some character.
1467 (transit_state): Remove fl_search argument. Don't update
1468 state->trtable here. Handle state->word_trtable.
1469 #ifdef out unused call to transit_state_sb.
1470 (re_search_internal): Update check_matching caller.
1471 (group_nodes_into_DFAstates): Don't clear non-ascii chars in accepts
1472 bitmask for multi-byte locales.
1473 * posix/bug-regex19.c (tests): Enable some commented out tests, add
1474 2 new tests.
1475 * posix/tst-rxspencer.c (mb_tests): Don't test [[=b=]] for now as
1476 multi-byte. Don't run identical multi-byte tests multiple times
1477 unnecessarily.
1478 (main): Check setlocale return value.
1479 * posix/Makefile (tst-rxspencer-ARGS): Add --utf8 argument.
1480 (tst-rxspencer-ENV): Remove MALLOC_TRACE, add LOCPATH.
1481 ($(objpfx)tst-rxspencer-mem): Run another tst-rxspencer test
1482 here, without --utf8 argument but with MALLOC_TRACE.
1483
1484 2003-11-19 Jakub Jelinek <jakub@redhat.com>
1485
1486 * posix/regexec.c (extend_buffers): Don't allocate
1487 twice as big state_log as needed. Don't modify pstr->valid_len
1488 for mb_cur_max == 1 !icase !trans.
1489
1490 * posix/regcomp.c (free_bin_tree): Removed.
1491 (create_tree): Add dfa argument. Don't call re_malloc for
1492 each tree, instead allocate from str_tree_storage.
1493 (re_dfa_add_tree_node): New function.
1494 (free_dfa_content): Handle freeing if dfa->nodes == NULL
1495 or dfa->state_table == NULL.
1496 (re_compile_internal): Call free_dfa_content if init_dfa
1497 fails. Call free_workarea_compile, re_string_destruct
1498 and free_dfa_content for most of the other failure paths.
1499 (init_dfa): Initialize str_tree_storage_idx.
1500 Don't clear any fields on allocation failure.
1501 (free_workarea_compile): Free str_tree_storage chunks
1502 instead of free_bin_tree (dfa->str_tree).
1503 (parse): Call re_dfa_add_tree_node instead of re_dfa_add_node
1504 followed by create_tree. Add dfa argument to remaining
1505 create_tree calls. Remove new_idx variable. Remove calls
1506 to free_bin_tree.
1507 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp,
1508 parse_dup_op, parse_bracket_exp, build_charclass_op): Likewise.
1509 (duplicate_tree): Remove calls to free_bin_tree, add dfa
1510 argument to create_tree.
1511 * posix/regex_internal.h (BIN_TREE_STORAGE_SIZE): Define.
1512 (bin_tree_storage_t): New type.
1513 (re_dfa_t): Add str_tree_storage and str_tree_storage_idx
1514 fields.
1515 * posix/Makefile (tests): Add bug-regex21.
1516 (generated): Add bug-regex21-mem, bug-regex21.mtrace,
1517 tst-rxspencer-mem and tst-rxspencer.mtrace.
1518 (tests): Depend on $(objpfx)bug-regex21-mem
1519 and $(objpfx)tst-rxspencer-mem.
1520 (bug-regex21-ENV, tst-rxspencer-ENV): Set.
1521 ($(objpfx)bug-regex21-mem, $(objpfx)tst-rxspencer-mem): New.
1522 * posix/tst-rxspencer.c (main): Add call to mtrace.
1523 Free line at the end.
1524 * posix/bug-regex21.c: New test.
1525
1526 2003-11-19 Ulrich Drepper <drepper@redhat.com>
1527
1528 * posix/bug-regex20.c: Correct invalid UTF-8 sequences.
1529
1530 * posix/regex_internal.c (build_wcs_upper_buffer): If mbrtowc
1531 fails, just use the byte, do no fancy conversions.
1532
1533 * posix/regex_internal.h (re_string_first_byte): Use ->valid_len
1534 not ->len.
1535 (re_string_is_single_byte_char): Likewise.
1536
1537 2003-11-18 Ulrich Drepper <drepper@redhat.com>
1538
1539 * posix/regexec.c (get_subexp): After calling get_subexp_sub
1540 reload buf and bkref_str. Little optimization by avoiding memcmp.
1541
1542 2003-11-14 David Mosberger <davidm@hpl.hp.com>
1543
1544 * sysdeps/unix/sysv/linux/ia64/sysdep.h
1545 (GAS_ALIGN_BREAKS_UNWIND_INFO): Define this macro to indicate
1546 that all existing GAS versions have a problem with .align inside
1547 a function.
1548 * sysdeps/ia64/memccpy.S: Work around GAS_ALIGN_BREAKS_UNWIND_INFO bug.
1549 * sysdeps/ia64/memcpy.S: Likewise.
1550 * sysdeps/ia64/memset.S: Likewise.
1551 * sysdeps/ia64/memmove.S: Likewise. Also move the jump-table to
1552 out of .text into .rodata, where it belongs.
1553
1554 * sysdeps/unix/sysv/linux/ia64/pipe.S: There is no need to
1555 save/restore input-arguments, because they're necessarily
1556 preserved by the kernel to support syscall-restart.
1557
1558 2003-11-18 Jakub Jelinek <jakub@redhat.com>
1559
1560 * posix/regex_internal.h (re_token_type_t): Remove unused ALT,
1561 END_OF_RE_TOKEN_T and SUBEXP. Reorder values. Add OP_UTF8_PERIOD
1562 and EPSILON_BIT.
1563 (IS_EPSILON_NODE): Just test if EPSILON_BIT is set.
1564 (ACCEPT_MB_NODE): Return 1 for OP_UTF8_PERIOD as well.
1565 * posix/regex_internal.c (create_ci_newstate, create_cd_newstate):
1566 Handle OP_UTF8_PERIOD.
1567 (re_string_reconstruct): Set valid_len for single byte char searching
1568 with no translation and case sensitivity.
1569 * posix/regcomp.c (re_compile_fastmap_iter, calc_first): Handle
1570 OP_UTF8_PERIOD.
1571 (re_compile_internal): Don't call optimize_utf8 if preg->translate
1572 != NULL.
1573 (optimize_utf8): Remove BACK_SLASH case.
1574 Transform OP_PERIOD into OP_UTF8_PERIOD if the searching can be
1575 optimized.
1576 (parse_bracket_exp): Don't create SIMPLE_BRACKET if it doesn't have
1577 any bits set and COMPLEX_BRACKET is used.
1578 * posix/regexec.c (transit_state_mb): Fix comment typo.
1579 (group_nodes_into_DFAstates, check_node_accept): Handle
1580 OP_UTF8_PERIOD.
1581 (check_node_accept_bytes): Likewise. Reorder slightly so that
1582 re_string_char_size_at and re_string_elem_size_at are called
1583 only when needed.
1584 * posix/bug-regex20.c (BRE, ERE): Define.
1585 (tests): Use them to make lines shorter. Expect . to be
1586 optimized. Add lots of new tests.
1587 (main): Run (ATM just case sensitive) test with backwards searching
1588 as well.
1589
1590 2003-11-18 Jakub Jelinek <jakub@redhat.com>
1591
1592 * io/bug-ftw4.c: Include string.h.
1593 * posix/fnmatch.c (mbsinit): Remove define.
1594
1595 2003-11-17 Jakub Jelinek <jakub@redhat.com>
1596
1597 * posix/regcomp.c (optimize_utf8): Optimize multi-byte chars as
1598 well.
1599 * posix/bug-regex20.c (tests): Add new tests. Multi-byte char
1600 followed by dup operator is expected to be optimized.
1601
1602 * posix/regexec.c (check_node_accept_bytes): Move nrules and j
1603 variables to the block where they are only used, initialize
1604 nrules only immediately before using it.
1605
1606 2003-11-15 Andreas Jaeger <aj@suse.de>
1607
1608 * sysdeps/x86_64/fpu/s_scalbnl.S: New file.
1609 * sysdeps/x86_64/fpu/s_truncl.S: New file.
1610 * sysdeps/x86_64/fpu/s_nearbyintl.S: New file.
1611 * sysdeps/x86_64/fpu/s_floorl.S: New file.
1612 * sysdeps/x86_64/fpu/s_ilogbl.S: New file.
1613 * sysdeps/x86_64/fpu/e_remainderl.S: New file.
1614
1615 * math/libm-test.inc (floor_test): Test also ±0.25.
1616 (ceil_test): Test -0.25.
1617
1618 2003-11-17 Ulrich Drepper <drepper@redhat.com>
1619
1620 * sysdeps/posix/getaddrinfo.c: Add support for destination address
1621 selection according to RFC 3484.
1622
1623 2003-11-15 Ulrich Drepper <drepper@redhat.com>
1624
1625 * posix/regex_internal.h: Add forward declaration of re_dfa_t.
1626 Replace last two parameters of re_string_allocate and
1627 re_string_construct with pointer to DFA.
1628 (re_dfa_t): Add map_notascii field.
1629 * posix/regcomp.c (re_compile_internal): Add call of
1630 re_string_construct.
1631 (init_dfa): Initialize map_notascii.
1632 * posix/regex_internal.c: Adjust definitions of re_string_allocate
1633 and re_string_construct.
1634 Pass DFA to re_string_construct. Adjust definition. Initialize
1635 map_notascii field.
1636 (build_wcs_upper_buffer): If map_notascii is zero use simplified
1637 method to map ASCII values to upper case.
1638 * posix/regex.c: Include localeinfo.h.
1639 * posix/regexec.c: Adjust call of re_string_allocate.
1640
1641 * locale/langinfo.h: Add _NL_CTYPE_MAP_TO_NONASCII.
1642 * locale/localeinfo.h (LIMAGIC): Change value.
1643 * locale/categories.def. Add entry for _NL_CTYPE_MAP_TO_NONASCII.
1644 * locale/C-ctype.h: Likewise.
1645 * locale/programs/ld-ctype.c: Compute whether any mapping maps from
1646 ASCII to non-ASCII value. Write out that value.
1647
1648 * wcsmbs/mbsinit.c: Undef mbsinit and __mbsinit.
1649 * include/wchar.h: Provide inline versions of mbsinit and __mbsinit.
1650
1651 2003-11-14 Jakub Jelinek <jakub@redhat.com>
1652
1653 * posix/tst-rxspencer.c (check_match): @ without any following
1654 characters must match only end of string.
1655 (main): Fix filename in error message.
1656
1657 2003-11-12 David Mosberger <davidm@hpl.hp.com>
1658
1659 * sysdeps/ia64/dl-machine.h: Force inlining of
1660 elf_machine_runtime_setup().
1661
1662 2003-11-13 Andreas Jaeger <aj@suse.de>
1663
1664 * math/Makefile (CFLAGS-test-float.c): Add -fno-builtin.
1665 (CFLAGS-test-double.c): Likewise.
1666 (CFLAGS-test-ldouble.c): Likewise.
1667 (CPPFLAGS-test-ifloat.c): Likewise.
1668 (CPPFLAGS-test-idouble.c): Likewise.
1669 (CPPFLAGS-test-ildoubl.c): Likewise.
1670
1671 * math/libm-test.inc (ceil_test): Test ceil (0.25).
1672
1673 2003-11-04 Ulrich Drepper <drepper@redhat.com>
1674
1675 * sysdeps/unix/sysv/linux/ifaddrs.c: Make sure it's the kernel who
1676 sends the netlink data.
1677 * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
1678
1679 2003-11-13 Jakub Jelinek <jakub@redhat.com>
1680
1681 * posix/regcomp.c (optimize_utf8): Optimize even if SIMPLE_BRACKET
1682 with no bits set for >= 0x80 chars is seen.
1683 * posix/bug-regex20.c (tests): Add new tests. Expect [ABC] to be
1684 optimized.
1685 (main): Run all tests with RE_ICASE as well.
1686
1687 2003-11-13 Ulrich Drepper <drepper@redhat.com>
1688
1689 * posix/Makefile: Add rules to build and run tst-rxspencer.
1690 (distribute): Add rxspencer/tests and rxspencer/COPYRIGHT.
1691 * posix/tst-rxspencer.c: New file.
1692 * posix/rxspencer/tests: New file.
1693 * posix/rxspencer/COPYRIGHT: New file.
1694 Patch mostly by Jakub Jelinek.
1695
1696 * posix/regcomp.c (parse_bracket_exp): Don't check for range if
1697 this is no option given the first token.
1698
1699 * posix/regcomp.c (parse_bracket_exp): Fix test for EOS after
1700 hyphen in range expression. Return EBRACK in this case.
1701
1702 * posix/regcomp.c (parse_bracket_element): Reject hyphens unless
1703 we expect them or it's the last element in the bracket expression.
1704 Indicated by new parameter. Adjust all callers.
1705
1706 * posix/runtests.c (run_a_test): If regcomp failed, reset last_pattern.
1707 Prettier error messages.
1708
1709 * posix/regcomp.c (parse_dup_op): Fail with REG_BADBR is first
1710 number in {,} expression is larger.
1711
1712 2003-11-13 Andreas Jaeger <aj@suse.de>
1713
1714 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
1715 Define appropriately for x86_64.
1716 (__ASSUME_UTIMES): Likewise.
1717 (__ASSUME_CLONE_THREAD_FLAGS): Likewise.
1718
1719 * sysdeps/x86_64/fpu/s_ceill.S: New file.
1720
1721 2003-11-13 Ulrich Drepper <drepper@redhat.com>
1722
1723 * posix/regcomp.c (parse_expression): In BRE consecutive
1724 duplications are not allowed.
1725
1726 2003-11-12 Ulrich Drepper <drepper@redhat.com>
1727
1728 * posix/regcomp.c (parse_bracket_exp): If end of expression is
1729 seen, return EBRACK error, not BADPAT.
1730
1731 * posix/regcomp.c (parse_expression): If token is OP_OPEN_DUP_NUM
1732 and RE_CONTEXT_INVALID_DUP syntax flag is set, fail.
1733 * posix/regex.h (RE_CONTEXT_INVALUD_OPS): New macro.
1734 (RE_SYNTAX_POSIX_BASIC): Use RE_CONTEXT_INVALUD_OPS.
1735
1736 * posix/regcomp.c (parse_sub_exp): In case of not-matching ( )
1737 return REG_EPAREN.
1738
1739 * posix/PTESTS: Cleanup. Fix typoes. Correct bugs in 2003.2.
1740 * posix/runptests.c (main): Handle comments.
1741 * posix/PTESTS2C.sed: Handle comments.
1742
1743 2003-11-12 Jakub Jelinek <jakub@redhat.com>
1744
1745 * posix/regcomp.c (optimize_utf8): New function.
1746 (re_compile_fastmap_iter): Use dfa->mb_cur_max > 1 instead
1747 of !icase.
1748 (re_compile_internal): Call optimize_utf8 if not case insensitive
1749 and in UTF-8 locale.
1750 * posix/regex_internal.h: Ifdef out some prototypes if
1751 RE_NO_INTERNAL_PROTOTYPES is defined to shut up warnings.
1752 * posix/Makefile (tests): Add bug-regex20.
1753 (bug-regex20-ENV): Add LOCPATH.
1754 * posix/bug-regex20.c: New test.
1755
1756 2003-11-12 Jakub Jelinek <jakub@redhat.com>
1757
1758 * io/ftw.c (NFTW_NEW_NAME, NFTW_OLD_NAME): Add prototypes.
1759
1760 2003-11-12 Jakub Jelinek <jakub@redhat.com>
1761
1762 * posix/tst-regex.c (umemlen): New variable.
1763 (test_expr): Add expectedicase argument. Test case insensitive
1764 searches as well as backwards searches (case sensitive and
1765 insensitive) too.
1766 (run_test): Add icase argument. Use it to compute regcomp flags.
1767 (run_test_backwards): New function.
1768 (main): Cast read to size_t to avoid warning. Set umemlen.
1769 Add expectedicase arguments to test_expr.
1770 * posix/regex_internal.c (re_string_reconstruct): If is_utf8,
1771 find previous character by walking back instead of converting
1772 all chars from beginning.
1773
1774 2003-11-12 Jakub Jelinek <jakub@redhat.com>
1775
1776 * posix/regex_internal.h (struct re_string_t): Add is_utf8
1777 and mb_cur_max fields.
1778 (struct re_dfa_t): Likewise. Reorder fields to make structure
1779 smaller on 64-bit arches.
1780 (re_string_allocate, re_string_construct): Add mb_cur_max and
1781 is_utf8 arguments.
1782 (re_string_char_size_at, re_string_wchar_at): Use pstr->mb_cur_max
1783 instead of MB_CUR_MAX.
1784 * posix/regcomp.c (re_compile_fastmap_iter): Use dfa->mb_cur_max
1785 instead of MB_CUR_MAX.
1786 (re_compile_internal): Pass new arguments to re_string_construct.
1787 (init_dfa): Initialize mb_cur_max and is_utf8 fields.
1788 (peek_token, peek_token_bracket): Use input->mb_cur_max instead
1789 of MB_CUR_MAX.
1790 (parse_expression, parse_bracket_exp, parse_charclass_op): Use
1791 dfa->mb_cur_max instead of MB_CUR_MAX.
1792 * posix/regex_internal.c (re_string_construct_common): Add
1793 mb_cur_max and is_utf8 arguments. Initialize fields with them.
1794 (re_string_allocate, re_string_construct): Add mb_cur_max and
1795 is_utf8 arguments, pass them to re_string_construct_common.
1796 Use mb_cur_max instead of MB_CUR_MAX.
1797 (re_string_realloc_buffers): Use pstr->mb_cur_max instead of
1798 MB_CUR_MAX.
1799 (re_string_reconstruct): Likewise.
1800 (re_string_context_at): Use input->mb_cur_max instead of
1801 MB_CUR_MAX.
1802 (create_ci_newstate, create_cd_newstate): Use dfa->mb_cur_max
1803 instead of MB_CUR_MAX.
1804 * posix/regexec.c (re_search_internal): Likewise.
1805 Pass new arguments to re_string_allocate.
1806 (check_matching, transit_state_sb): Use dfa->mb_cur_max instead of
1807 MB_CUR_MAX.
1808 (extend_buffers): Use pstr->mb_cur_max instead of MB_CUR_MAX.
1809
1810 2003-11-12 Jakub Jelinek <jakub@redhat.com>
1811
1812 * posix/Makefile (tests): Add bug-regex19.
1813 (bug-regex19-ENV): Add LOCPATH.
1814 * posix/bug-regex19.c: New test.
1815
1816 2003-11-11 Jakub Jelinek <jakub@redhat.com>
1817
1818 * posix/regcomp.c (re_compile_fastmap_iter): Handle RE_ICASE
1819 with MB_CUR_MAX > 1 locales in the fastmap.
1820
1821 2003-11-11 Jakub Jelinek <jakub@redhat.com>
1822
1823 * posix/regex_internal.c (build_wcs_buffer): Fix comment typo.
1824 (build_wcs_upper_buffer): Likewise. Use towupper for wchar_t instead
1825 of toupper.
1826 * posix/Makefile (tests): Add bug-regex17 and bug-regex18.
1827 (bug-regex17-ENV, bug-regex18-ENV): Add LOCPATH.
1828 * posix/bug-regex17.c: New file
1829 * posix/bug-regex18.c: New file.
1830
1831 2003-10-08 Thorsten Kukuk <kukuk@suse.de>
1832
1833 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (pread, pwrite):
1834 Define __NR_pread/__NR_pwrite if not done in kernel headers
1835
1836 2003-11-11 Roland McGrath <roland@redhat.com>
1837
1838 * manual/xtract-typefun.awk: Swallow [(){}*] from function names.
1839
1840 * manual/Makefile (info): Don't depend on dir-add.info.
1841 (libc.dvi libc.pdf libc.info): Depend on dir-add.texi.
1842 (dir-add.info): Target removed, replaced with ...
1843 (dir-add.texi): New target.
1844 (distribute): Add it.
1845 (install): Remove variant with --section arguments.
1846 Let the @dircategory directives do their work.
1847 (mostlyclean): Don't remove dir-add.info here.
1848 (realclean): Remove dir-add.texi here.
1849 * manual/libc.texinfo: @include dir-add.texi
1850 * configure.in: Remove check for old Debian install-info.
1851 * configure: Regenerated.
1852 * config.make.in (OLD_DEBIAN_INSTALL_INFO): Variable removed.
1853
1854 2003-11-08 Andreas Schwab <schwab@suse.de>
1855
1856 * scripts/data/c++-types-ia64-linux-gnu.data: New file.
1857
1858 2003-11-10 Carlos O'Donell <carlos@baldric.uwo.ca>
1859
1860 * io/ftwtest-sh: Fix nested sed commands.
1861
1862 2003-11-10 Jakub Jelinek <jakub@redhat.com>
1863
1864 * posix/regex_internal.h (re_string_char_size_at): Don't look beyond
1865 valid_len wide chars.
1866
1867 2003-11-09 Roland McGrath <roland@redhat.com>
1868
1869 * manual/examples/dir2.c (one): Add const to argument type.
1870 Reported by J de Haan <j.de.haan@home.nl>.
1871
1872 2003-11-07 Ulrich Drepper <drepper@redhat.com>
1873
1874 * po/pl.po: Update from translation team.
1875
1876 2003-11-07 Jakub Jelinek <jakub@redhat.com>
1877
1878 * io/ftw.c (NFTW_OLD_NAME, NFTW_NEW_NAME): Define.
1879 (ftw_dir, ftw_startup): Add __attribute ((noinline)).
1880 (NFTW_OLD_NAME, NFTW_NEW_NAME): New functions.
1881 (NFTW_NAME): Only define if !_LIBC, add versioned_symbol
1882 and compat_symbol.
1883 * io/ftw64.c (NFTW_OLD_NAME, NFTW_NEW_NAME): Define.
1884 * io/Versions (libc): Export nftw@@GLIBC_2.3.3
1885 and nftw64@@GLIBC_2.3.3.
1886
1887 * io/ftw.h (FTW_ACTIONRETVAL): New flag.
1888 (FTW_CONTINUE, FTW_STOP, FTW_SKIP_SUBTREE, FTW_SKIP_SIBLINGS): New.
1889 * io/ftw.c (ftw_dir): Add old_dir argument.
1890 Clear result if it was FTW_SKIP_SIBLINGS after processing all
1891 dir entries. Change cwd back if old_dir != NULL.
1892 (process_entry): Adjust caller. Don't change cwd back here.
1893 Change FTW_SKIP_SUBTREE result to 0.
1894 (ftw_startup): Adjust ftw_dir caller.
1895 Clear result if it was FTW_SKIP_SUBTREE or FTW_SKIP_SIBLINGS.
1896 * io/ftwtest.c (skip_subtree, skip_siblings): New variables.
1897 (options, main): Add --skip-subtree and --skip-siblings options.
1898 (cb): Use return FTW_CONTINUE instead of return 0.
1899 Handle --skip-subtree and --skip-siblings.
1900 * io/ftwtest-sh: Add tests for FTW_ACTIONRETVAL.
1901 * manual/filesys.texi: Document FTW_ACTIONRETVAL.
1902
1903 2003-11-04 Jakub Jelinek <jakub@redhat.com>
1904
1905 * io/ftw.c (ftw_dir): Close dir if callback with FTW_D type returns
1906 non-zero.
1907 * io/Makefile (tests): Add bug-ftw4.
1908 * io/bug-ftw4.c: New test.
1909
1910 2003-10-27 Daniel Jacobowitz <drow@mvista.com>
1911
1912 * libio/libioP.h [_IO_USE_OLD_IO_FILE]
1913 (struct _IO_FILE_complete_plus): New type.
1914 * libio/oldiofopen.c (_IO_old_fopen): Use _IO_FILE_complete_plus.
1915 * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
1916 * libio/oldiopopen.c (struct _IO_proc_file, _IO_old_popen): Likewise.
1917 Call _IO_old_init instead of _IO_init.
1918
1919 2003-11-03 Ulrich Drepper <drepper@redhat.com>
1920
1921 * intl/locale.alias: nb_NO is now the correct name, not no_NO.
1922
1923 * locale/iso-639.def: Add Blin.
1924 Patch by Daniel Yacob <locales@geez.org>.
1925
1926 2003-10-31 Steven Munroe <sjmunroe@us.ibm.com>
1927
1928 * sysdeps/powerpc/powerpc32/strncmp.S: New File.
1929 * sysdeps/powerpc/powerpc64/strncmp.S: New File.
1930
1931 2003-11-01 Randolph Chung <tausq@debian.org>
1932
1933 * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
1934 LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
1935 Add missing parentheses.
1936
1937 2003-11-01 Roland McGrath <roland@redhat.com>
1938
1939 * libio/bug-ftell.c (do_test): Add a cast.
1940
1941 2003-09-26 Daniel Jacobowitz <drow@mvista.com>
1942
1943 * Makerules (shlib.lds): Make sure that ld doesn't try to link
1944 anything while generating the linker script.
1945
1946 2003-10-31 Roland McGrath <roland@redhat.com>
1947
1948 * locale/lc-ctype.c (_nl_postload_ctype): Update _nl_global_locale's
1949 special members.
1950
1951 2003-10-29 Ulrich Drepper <drepper@redhat.com>
1952
1953 * po/be.po: Update from translation team.
1954
1955 2003-10-27 Ulrich Drepper <drepper@redhat.com>
1956
1957 * elf/rtld.c (map_doit): Pass __RTLD_OPENEXEC in last parameter to
1958 _dl_map_object.
1959
1960 * elf/sprof.c (load_shobj): Use l_map_start not l_addr to locate
1961 ELF header.
1962
1963 * inet/rcmd.c (__validuser2_sa): Remove unnecessary code to skip
1964 rest of line. We use getline which means this cannot happen.
1965
1966 2003-10-26 Ulrich Drepper <drepper@redhat.com>
1967
1968 * sysdeps/unix/sysv/linux/internal_statvfs.c (__internal_statvfs):
1969 Avoid infinite loops in case the mounts file is hosed.
1970 * io/Makefile: Add rules to build and run tst-statvfs.
1971 * io/tst-statvfs.c: New file.
1972
1973 * include/dlfcn.h (__RTLD_OPENEXEC): Define.
1974 * elf/dl-load.c (_dl_map_object_from_fd): Don't allow loading
1975 executables unless __RTLD_OPENEXEC flag is present.
1976 * elf/rtld.c (dl_main): Pass __RTLD_OPENEXEC flag to
1977 _dl_map_object when loading the executable.
1978
1979 * sysdeps/generic/glob.c (glob): Handle GLOB_BRACE and escaping
1980 correctly.
1981 * posix/globtest.sh: Add tests for GLOB_BRACE and escaping.
1982
1983 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Default
1984 reverse lookup format for IPv6 addresses is using bitstring and
1985 .ip6.arpa suffix.
1986 * resolv/ns_name.c: Implement encoding and decoding bitstring in
1987 hex format.
1988
1989 2003-10-23 Jakub Jelinek <jakub@redhat.com>
1990
1991 * locale/programs/locale.c (show_info): Fix printing word values on
1992 64-bit big-endian architectures.
1993
1994 2003-10-19 Bruno Haible <bruno@clisp.org>
1995
1996 * intl/hash-string.c (hash_string): Zero-extend each char from the
1997 string; the old code did a sign-extend on some platforms.
1998
1999 2003-10-22 Steven Munroe <sjmunroe@us.ibm.com>
2000
2001 * sysdeps/powerpc/powerpc32/Makefile (+cflags, asm-CPPFLAGS): Don't
2002 append options to these.
2003 * sysdeps/powerpc/powerpc64/Makefile (+cflags, asm-CPPFLAGS): Likewise.
2004
2005 2003-10-18 Carlos O'Donell <carlos@baldric.uwo.ca>
2006
2007 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Fix merge error.
2008
2009 2003-10-15 Roland McGrath <roland@redhat.com>
2010
2011 * elf/dl-iteratephdr.c [! SHARED] (dl_iterate_phdr): New function.
2012 Fake an entry for the main executable and then call __dl_iterate_phdr.
2013 * elf/Makefile (routines): Remove dl-iteratephdr-static.
2014 (elide-routines.os): Likewise.
2015 (CFLAGS-dl-iterate-phdr-static.c): Variable removed.
2016 * sysdeps/generic/dl-iteratephdr-static.c: File removed.
2017 * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: File removed.
2018
2019 2003-10-15 Jakub Jelinek <jakub@redhat.com>
2020
2021 * elf/rtld.c (print_statistics): Print also number of relative
2022 relocations.
2023
2024 2003-10-12 Carlos O'Donell <carlos@baldric.uwo.ca>
2025
2026 * sysdeps/hppa/sysdep.h: Undef JUMPTARGET before use.
2027 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Define PSEUDO_ERRVAL,
2028 SYSCALL_ERROR_LABEL under all conditions, INTERNAL_SYSCALL_DECL,
2029 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO, INTERNAL_SYSCALL,
2030 and undef JUMPTARGET before use.
2031 [PIC]: Save pic register around syscall.
2032 * sysdeps/unix/sysv/linux/hppa/sysdep.c (syscall):
2033 Cleanup asm statment.
2034
2035 2003-10-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2036
2037 * sysdeps/unix/sysv/linux/sh/sysdep.h (DO_CALL): Add SYSCALL_INST_PAD
2038 after trapa instruction.
2039
2040 2003-10-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2041
2042 * sysdeps/unix/sysv/linux/sh/syscalls.list: Add waitpid.
2043
2044 2003-10-10 Carlos O'Donell <carlos@baldric.uwo.ca>
2045
2046 * sysdeps/hppa/Makefile (CFLAGS-malloc.c): Variable removed.
2047
2048 2003-10-09 Roland McGrath <roland@redhat.com>
2049
2050 * elf/rtld.c (dl_main): Don't set l_name for sysinfo DSO, since there
2051 is no file to name.
2052
2053 2003-10-08 Jakub Jelinek <jakub@redhat.com>
2054
2055 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Don't generate
2056 two identical copies of strings.
2057
2058 2003-10-06 Ulrich Drepper <drepper@redhat.com>
2059
2060 * posix/bug-regex11.c: Add some more tests which fail so far.
2061 Disable them. Patch by Paolo Bonzini <bonzini@gnu.org>.
2062
2063 2003-10-05 Paolo Bonzini <bonzini@gnu.org>
2064
2065 * posix/bug-regex11.c: Add more backreference-related test cases.
2066 (main): Show the failing regex in the error messages.
2067 * posix/regexec.c (check_dst_limits_calc_pos):
2068 Simplify some nested conditionals. Replace if's with a switch
2069 statement.
2070 (check_dst_limits_calc_pos <TYPE_BKREF>): Rename parameter NODE to
2071 FROM_NODE, it shadows a local variable; don't recurse if FROM_NODE
2072 does not change in the recursive invocation, fixing an infinite loop
2073 in the ()\1*\1* regex.
2074 (sift_states_backward): Fix function comment.
2075 * posix/regcomp.c (calc_epsdest): Add an assertion.
2076
2077 2003-10-06 Ulrich Drepper <drepper@redhat.com>
2078
2079 * manual/examples/testopt.c: Fix warnings. Better error message
2080 for missing -c argument.
2081 Patch mostly by Gitonga Marete <bgmarete@comcast.net>.
2082
2083 * timezone/asia: Update from tzdata2003d.
2084 * timezone/australasia: Likewise.
2085 * timezone/backward: Likewise.
2086 * timezone/europe: Likewise.
2087 * timezone/iso3166.tab: Likewise.
2088 * timezone/northamerica: Likewise.
2089 * timezone/southamerica: Likewise.
2090 * timezone/zone.tab: Likewise.
2091
2092 2003-10-05 Jakub Jelinek <jakub@redhat.com>
2093
2094 * sysdeps/ia64/backtrace.c: New file.
2095 * sysdeps/x86_64/backtrace.c: New file.
2096 * sysdeps/generic/unwind.h (_Unwind_Trace_Fn): New type.
2097 (_Unwind_Backtrace): New prototype.
2098
2099 2003-10-03 Ulrich Drepper <drepper@redhat.com>
2100
2101 * sysdeps/i386/elf/bsd-setjmp.S: Use linkonce section for PIC stub.
2102 * sysdeps/i386/elf/setjmp.S: Likewise.
2103
2104 2003-10-02 Roland McGrath <roland@redhat.com>
2105
2106 * argp/argp-help.c (__argp_short_program_name): Move inside [! _LIBC].
2107 * argp/argp-namefrob.h
2108 [_LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME]
2109 (__argp_short_program_name): Don't declare fn, define it as a macro.
2110
2111 2003-08-22 Simon Josefsson <jas@extundo.com>
2112
2113 * argp/argp-fmtstream.h [!__attribute__]: Define to nothing.
2114
2115 * argp/argp-help.c: Don't include malloc.h, some platforms
2116 complain and it doesn't appear to be used.
2117 [!_LIBC && HAVE_STRERROR_R && !HAVE_DECL_STRERROR_R]: Declare
2118 strerror_r.
2119 [!_LIBC && !HAVE_STRERROR_R && !HAVE_DECL_STRERROR]: Declare
2120 strerror.
2121 (hol_entry_long_iterate): Change __attribute to __attribute__.
2122 (_help, __argp_error, __argp_failure) [!_LIBC && (HAVE_FLOCKFILE
2123 && HAVE_FUNLOCKFILE)]: Protect call to flockfile and funlockfile.
2124 (__argp_basename) [!_LIBC]: New. Taken from LSH, by Niels Möller,
2125 modified after comments from Ulrich Drepper.
2126 (__argp_short_program_name): Ditto.
2127 (__argp_state_help, __argp_error, __argp_failure): Use it.
2128 (__argp_failure): Use strerror when necessary.
2129
2130 * argp/argp-namefrob.h (__flockfile, __funlockfile, __mempcpy)
2131 (__strchrnul, __strerror_r, __strndup) [!_LIBC]: Remove __-prefix.
2132 (clearerr_unlocked, feof_unlocked, ferror_unlocked)
2133 (fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked)
2134 (fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked)
2135 (putc_unlocked, putchar_unlocked) [!_LIBC && !HAVE_DECL_*]: Map to
2136 non-unlocked functions.
2137 [!_LIBC]: Add prototypes for __argp_basename and
2138 __argp_short_program_name.
2139
2140 * argp/argp-parse.c (argp_default_parser): Only use
2141 program_invocation{_short,}_name if declared.
2142 (parser_init): Use __argp_short_program_name.
2143
2144 * argp/argp-xinl.c [_LIBC || HAVE_FEATURES_H]: Add CPP check for
2145 '#include features.h'.
2146
2147 * argp/argp.h [!__attribute__]: Define to nothing.
2148
2149 2003-09-26 Paolo Bonzini <bonzini@gnu.org>
2150
2151 * posix/regcomp.c (parse_sub_exp): Pass RE_CARET_ANCHORS_HERE
2152 for the first token in a subexpression as well.
2153
2154 2003-10-02 Jakub Jelinek <jakub@redhat.com>
2155
2156 * posix/regcomp.c (peek_token): Add 2003-09-20 changes for anchor
2157 handling again.
2158 (parse_reg_exp): Likewise.
2159 * posix/regex.h (RE_CARET_ANCHORS_HERE): Define.
2160
2161 * posix/bug-regex11.c (tests): Add new tests.
2162 * posix/bug-regex12.c (tests): Add new test.
2163
2164 2003-10-01 Thorsten Kukuk <kukuk@suse.de>
2165
2166 * elf/dl-reloc.c (_dl_allocate_static_tls): Move definition of
2167 variables only used if TLS_DTV_AT_TP is defined into the #if branch.
2168
2169 2003-10-02 Jeroen Dekkers <jeroen@dekkers.cx>
2170
2171 * sysdeps/mach/hurd/malloc-machine.h: Copy the tsd code from
2172 the old thread-m.h header too.
2173
2174 2003-10-02 Ulrich Drepper <drepper@redhat.com>
2175
2176 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ): Go
2177 back to 131027 since this is what the kernel enforces.
2178
2179 * inet/getnameinfo.c: Move domain out of nrl_domainname scope and
2180 define it with libc_freeres_ptr.
2181
2182 2003-10-01 Roland McGrath <roland@redhat.com>
2183
2184 * elf/rtld.c (dl_main): Add cast in last change.
2185
2186 2003-09-10 Chris Demetriou <cgd@broadcom.com>
2187
2188 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Remove
2189 "#if 0" surrounding most of contents.
2190 (SYSCALL_ERROR_LABEL): Define.
2191 (__SYSCALL_CLOBBERS): Add $10.
2192 (internal_syscall7): Remove.
2193 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
2194
2195 2003-09-30 Ulrich Drepper <drepper@redhat.com>
2196
2197 * elf/rtld.c (dl_main): Also set l_map_start.
2198
2199 2003-09-30 Daniel Jacobowitz <drow@mvista.com>
2200
2201 * elf/rtld.c (dl_main): Set l_libname and l_name for the sysinfo DSO
2202 to work around kernel problem.
2203
2204 2003-09-27 Wolfram Gloger <wg@malloc.de>
2205
2206 * malloc/malloc.c: Include <malloc-machine.h> earlier instead of
2207 "thread-m.h", so that default parameters can be overridden in a
2208 system-specific malloc-machine.h. Remove extra ; from extern "C"
2209 closing brace.
2210 * sysdeps/generic/malloc-machine.h: New file.
2211 * sysdeps/mach/hurd/malloc-machine.h: New file.
2212 * malloc/thread-m.h: Removed.
2213 * malloc/Makefile: Remove CFLAGS-malloc.c parameter addition, it
2214 is in sysdeps/generic/malloc-machine.h now.
2215
2216 2003-09-29 Ulrich Drepper <drepper@redhat.com>
2217
2218 * elf/dl-reloc.c (_dl_allocate_static_tls): Move definition of
2219 variables only used if TLS_TCB_AT_TP is defined into the #if
2220 branch.
2221
2222 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __extension__ as
2223 well to cover using long long in C90.
2224
2225 2003-09-28 Alfred M. Szmidt <ams@kemisten.nu>
2226
2227 * sysdeps/mach/hurd/bits/libc-lock.h (__libc_cleanup_pop):
2228 Redefine and use __libc_cleanup_region_end instead.
2229
2230 2003-09-29 Thorsten Kukuk <kukuk@suse.de>
2231
2232 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Use __inline and
2233 fix prototypes for picky C++ compilers.
2234
2235 2003-09-27 Ulrich Drepper <drepper@redhat.com>
2236
2237 * sysdeps/unix/sysv/linux/ustat.c (ustat): Set errno to EINVAL if
2238 the device ID is invalid and return -1.
2239 * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
2240
2241 2003-09-26 Andreas Schwab <schwab@suse.de>
2242
2243 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Pass fourth argument to
2244 rt_sigprocmask system call.
2245
2246 2003-09-25 Roland McGrath <roland@redhat.com>
2247
2248 * sysdeps/unix/sysv/linux/dl-execstack.c (_dl_make_stack_executable):
2249 Don't check for zero __libc_stack_end, it should be initialized.
2250 [_STACK_GROWS_DOWN] [PROT_GROWSDOWN]: Try using PROT_GROWSDOWN flag
2251 and fall back if it fails with EINVAL.
2252 [_STACK_GROWS_UP] [PROT_GROWSUP]: Likewise for PROT_GROWSUP.
2253
2254 2003-09-25 Jakub Jelinek <jakub@redhat.com>
2255
2256 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
2257 sysdeps/i386/dl-procinfo.c instead of
2258 sysdeps/unix/sysv/linux/i386/dl-procinfo.c.
2259 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Avoid using
2260 #include_next.
2261
2262 2003-09-25 Ulrich Drepper <drepper@redhat.com>
2263
2264 * posix/regcomp.c (peek_token): Remove recent changes for anchor
2265 handling again.
2266 (parse_reg_exp): Likewise.
2267 * posix/regex.h: Remove RE_CARET_ANCHORS_HERE.
2268
2269 * csu/Makefile ($(objpfx)version-info.h): Fix sed script to handle
2270 banners.
2271
2272 * nis/nis_table.c (nis_list): Always strdup string used with
2273 ibreq->ibr_name. Add several NULL pointer checks.
2274
2275 * nis/nss_nisplus/nisplus-alias.c: Add check for NULL return value
2276 of nis_list.
2277 * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2278 * nis/nss_nisplus/nisplus-grp.c: Likewise.
2279 * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2280 * nis/nss_nisplus/nisplus-netgrp.c: Likewise.
2281 * nis/nss_nisplus/nisplus-network.c: Likewise.
2282 * nis/nss_nisplus/nisplus-proto.c: Likewise.
2283 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
2284 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2285 * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2286 * nis/nss_nisplus/nisplus-service.c: Likewise.
2287 * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2288
2289 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Define PROT_GROWSDOWN
2290 and PROT_GROWSUP.
2291 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
2292 * sysdeps/unix/sysv/linux/cris/bits/mman.h: Likewise.
2293 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
2294 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
2295 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
2296 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
2297 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
2298 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
2299 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
2300 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
2301 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
2302
2303 2003-09-25 Jakub Jelinek <jakub@redhat.com>
2304
2305 * misc/syslog.c: Include locale.h.
2306 (vsyslog): Add date always in C locale %h %e %T format.
2307
2308 2003-09-24 Paul Eggert <eggert@twinsun.com>
2309
2310 * argp/argp-fmtstream.c (__argp_fmtstream_ensure): Check for
2311 size_t overflow when reallocating storage.
2312 * argp/argp-help.c (make_hol, hol_append): Likewise.
2313 (SIZE_MAX): New macro.
2314
2315 2003-08-07 Alfred M. Szmidt <ams@kemisten.nu>
2316
2317 * sysdeps/mach/hurd/bits/libc-lock.h
2318 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
2319
2320 2003-08-01 Alfred M. Szmidt <ams@kemisten.nu>
2321
2322 * sysdeps/i386/dl-procinfo.h: New file, contents taken from ...
2323 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: ... here.
2324 #include_next dl-procinfo.h to get them.
2325 (_DL_HWCAP_COUNT): Moved to sysdeps/i386/dl-procinfo.h.
2326 (_DL_PLATFORMS_COUNT): Likewise.
2327 (_DL_FIRST_PLATFORM): Likewise.
2328 (_DL_HWCAP_PLATFORM): Likewise.
2329 (HWCAP_I386_FPU, HWCAP_I386_VME, HWCAP_I386_DE, HWCAP_I386_PSE,
2330 HWCAP_I386_TSC, HWCAP_I386_MSR, HWCAP_I386_PAE, HWCAP_I386_MCE,
2331 HWCAP_I386_CX8, HWCAP_I386_APIC, HWCAP_I386_SEP, HWCAP_I386_MTRR,
2332 HWCAP_I386_PGE, HWCAP_I386_MCA, HWCAP_I386_CMOV,
2333 HWCAP_I386_FCMOV, HWCAP_I386_MMX, HWCAP_I386_OSFXSR,
2334 HWCAP_I386_XMM, HWCAP_I386_XMM2, HWCAP_I386_AMD3D,
2335 HWCAP_IMPORTANT): Likewise.
2336 (_DL_PROCINFO_H_): Likewise.
2337 (_dl_hwcap_string, _dl_platform_string, _dl_string_hwcap): Likewise.
2338 (_dl_string_platform): Likewise.
2339 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Moved to ...
2340 * sysdeps/i386/dl-procinfo.c: ... here, new file.
2341
2342 2003-09-24 Ulrich Drepper <drepper@redhat.com>
2343
2344 * sysdeps/unix/sysv/linux/dl-execstack.c
2345 (_dl_make_stack_executable): Remember that we changed the permission.
2346
2347 * sysdeps/ia64/dl-machine.h (RTLD_START): Remove setting of
2348 __libc_stack_end. Patch by David Mosberger.
2349
2350 2003-09-24 Jakub Jelinek <jakub@redhat.com>
2351
2352 * elf/Versions (ld): Export __libc_stack_end@GLIBC_2.1 instead of
2353 __libc_stack_end@GLIBC_PRIVATE.
2354
2355 * sysdeps/generic/dl-sysdep.c (DL_STACK_END): Define if not defined.
2356 (_dl_sysdep_start): Set __libc_stack_end here.
2357 * sysdeps/alpha/dl-machine.h (RTLD_START): Remove setting of
2358 __libc_stack_end.
2359 * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
2360 * sysdeps/cris/dl-machine.h (RTLD_START): Likewise.
2361 * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
2362 * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
2363 * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
2364 * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
2365 * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
2366 * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
2367 * sysdeps/ia64/dl-machine.h (DL_STACK_END): Define.
2368 * sysdeps/sparc/sparc32/dl-machine.h (DL_STACK_END): Define.
2369 (RTLD_START): Remove setting of __libc_stack_end.
2370 * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Define.
2371 (RTLD_START): Remove setting of __libc_stack_end.
2372
2373 2003-09-24 Ulrich Drepper <drepper@redhat.com>
2374
2375 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add gnu_dev_ prefix to
2376 function definitions. Adjust macro expansions accordingly.
2377 * sysdeps/unix/sysv/linux/Versions: Add gnu_dev_ prefix to major,
2378 minor, makedev name.
2379 * sysdeps/unix/sysv/linux/makedev.c: Likewise.
2380
2381 2003-09-24 Jakub Jelinek <jakub@redhat.com>
2382
2383 * sysdeps/unix/sysv/linux/sys/sysmacros.h (major, minor, makedev):
2384 Add __THROW.
2385
2386 2003-09-24 Jakub Jelinek <jakub@redhat.com>
2387
2388 * nscd/Makefile (others): Add nscd before including ../Rules.
2389
2390 2003-09-24 Ulrich Drepper <drepper@redhat.com>
2391
2392 * nscd/Makefile: Add rules to build nscd as a PIE.
2393 * configure.in: Check for -fpie and -pie compiler options.
2394 * config.make.in (have-fpie): Define.
2395
2396 2003-09-23 Ulrich Drepper <drepper@redhat.com>
2397
2398 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Adjust for larger
2399 kernel dev_t size.
2400 * sysdeps/unix/sysv/linux/alpha/sys/sysmacros.h: Removed.
2401 * sysdeps/unix/sysv/linux/sparc/sys/sysmacros.h: Removed.
2402 * sysdeps/unix/sysv/linux/makedev.c: New file.
2403 * sysdeps/unix/sysv/linux/Dist: Add makedev.c.
2404 * sysdeps/unix/sysv/linux/Makefile [subdir=misc]
2405 (sysdep_routines): Add makedev.
2406 * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.3.3): Add
2407 major, minor, makedev.
2408 * sysdeps/unix/sysv/linux/ustat.c (ustat): Adjust for 32-bit
2409 kernel dev_t.
2410 * sysdeps/unix/sysv/linux/alpha/ustat.c: Removed.
2411 * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
2412 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Removed.
2413 Code by Alexander Viro <aviro@redhat.com>.
2414
2415 2003-09-23 Ulrich Drepper <drepper@redhat.com>
2416
2417 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions [libc]
2418 (GLIBC_2.3.3): Add setcontext, getcontext, swapcontext, and
2419 makecontext.
2420 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Correct change
2421 for include Altivec support for PPC32. It was not compatible.
2422 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: Adjust
2423 offsets for ucontext_t change.
2424 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Adjust
2425 for ucontext_t change. Add compatibility code.
2426 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Likewise.
2427 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
2428 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
2429 Patch by Paul Mackerras <paulus@samba.org>.
2430
2431 2003-02-25 Randolph Chung <tausq@debian.org>
2432
2433 * sysdeps/hppa/Makefile: Include compat code in build.
2434 * sysdeps/hppa/libgcc-compat.c: New file.
2435 * sysdeps/hppa/Dist: Add libgcc-compat.c.
2436 * sysdeps/hppa/Versions [GLIBC_2.2]: Add __clz_tab.
2437
2438 2003-09-23 Roland McGrath <roland@redhat.com>
2439
2440 * elf/rtld.c (dl_main): In rtld_is_main case, reinitialize
2441 GL(dl_stack_flags) according to rtld's own PT_GNU_STACK.
2442 Move GL(dl_make_stack_executable_hook) initialization up.
2443 * elf/tst-execstack-prog.c: New file.
2444 * elf/Makefile (tests-execstack-yes): Add it.
2445 (LDFLAGS-tst-execstack-prog): New variable.
2446
2447 2003-09-23 Jakub Jelinek <jakub@redhat.com>
2448
2449 * sysdeps/x86_64/dl-machine.h (RTLD_START): Set __libc_stack_end
2450 before calling _dl_start, using %rip relative access.
2451 Use %rip relative access to _dl_skip_args, _rtld_local._dl_loaded
2452 and _dl_fini.
2453
2454 2003-09-23 Roland McGrath <roland@redhat.com>
2455
2456 * sysdeps/i386/dl-machine.h (RTLD_START): Set __libc_stack_end before
2457 calling _dl_start, using GOTOFF access.
2458
2459 * configure.in (libc_cv_z_execstack): New check.
2460 * configure: Regenerated.
2461 * config.make.in (have-z-execstack): New variable set by it.
2462 * elf/tst-execstack.c: New file.
2463 * elf/tst-execstack-mod.c: New file.
2464 * elf/tst-execstack-needed.c: New file.
2465 * elf/Makefile (tests-execstack-yes, modules-execstack-yes): New
2466 variables.
2467 (tests, modules-names): Conditionally include them.
2468 (distribute): Add tst-execstack-mod.c here.
2469 ($(objpfx)tst-execstack, $(objpfx)tst-execstack.out): New targets.
2470 (LDFLAGS-tst-execstack, LDFLAGS-tst-execstack-mod): New variables.
2471 ($(objpfx)tst-execstack-needed): New target.
2472 (LDFLAGS-tst-execstack-needed): New variable.
2473
2474 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add _dl_stack_flags
2475 and _dl_make_stack_executable_hook. Declare _dl_make_stack_executable.
2476 * elf/rtld.c (_rtld_global): Add initializer for _dl_stack_flags.
2477 (dl_main): Reset _dl_stack_flags according to PT_GNU_STACK phdr.
2478 Initialize _dl_make_stack_executable_hook.
2479 * elf/dl-support.c: Define those new variables.
2480 (_dl_non_dynamic_init): Scan phdrs for PT_GNU_STACK.
2481 (_dl_phdr): Fix type.
2482 * elf/dl-load.c (_dl_map_object_from_fd): Grok PT_GNU_STACK phdr and
2483 enable execute permission for the stack if necessary.
2484 * sysdeps/generic/dl-execstack.c: New file.
2485 * elf/Makefile (dl-routines): Add it.
2486 * elf/Versions (ld: GLIBC_PRIVATE): Add _dl_make_stack_executable.
2487 * sysdeps/unix/sysv/linux/dl-execstack.c: New file.
2488
2489 2003-09-23 Ulrich Drepper <drepper@redhat.com>
2490
2491 * sysdeps/posix/sprofil.c (pc_to_index): Remove inline marker.
2492
2493 2003-09-20 Alfred M. Szmidt <ams@kemisten.nu>
2494
2495 * sysdeps/generic/utmp_file.c (setutent_file, LOCK_FILE,
2496 UNLOCK_FILE, setutent_file): Use fcntl_not_cancel instead of
2497 __fcntl_nocancel.
2498
2499 2003-09-22 Ulrich Drepper <drepper@redhat.com>
2500
2501 * malloc/malloc.c: Include <stdint.h>.
2502
2503 2003-09-20 Paolo Bonzini <bonzini@gnu.org>
2504
2505 * posix/regcomp.c (build_word_op): Rename like...
2506 (build_charclass_op): ...this. Accept two extra parameters,
2507 CLASS_NAME and EXTRA. Add EXTRA to the result, not only _.
2508 (peek_token): Accept \s and \S as OP_SPACE and OP_NOTSPACE.
2509 (parse_expression): Replace build_word_op with
2510 build_charclass_op, add new arguments, accept OP_SPACE
2511 and OP_NOTSPACE.
2512 * posix/regex_internal.h (re_token_type_t): Add OP_SPACE
2513 and OP_NOTSPACE.
2514
2515 * posix/regcomp.c (peek_token): Don't look back for ( or |
2516 to check whether to treat a caret as special. It fails
2517 for the (extended) regex \(^.
2518 (parse, parse_reg_exp): Pass RE_CARET_ANCHORS_HERE to fetch_token.
2519 * posix/regex.h: Define RE_CARET_ANCHORS_HERE.
2520
2521 * posix/regexec.c: Check out of bounds value before shifting.
2522
2523 * posix/regex_internal.h: Define __attribute for non-gcc.
2524
2525 2003-09-22 Jakub Jelinek <jakub@redhat.com>
2526
2527 * include/atomic.h (atomic_compare_and_exchange_val_rel,
2528 atomic_compare_and_exchange_bool_rel): Swap oldval/newval arguments
2529 to avoid confusion.
2530
2531 * sysdeps/unix/opendir.c: Include string.h.
2532
2533 2003-09-22 Ulrich Drepper <drepper@redhat.com>
2534
2535 * timezone/zdump.c: Update from tzcode2003c.
2536 * timezone/zic.c: Likewise.
2537 * timezone/leapseconds: Update from tzdata2003c.
2538
2539 2003-09-19 Ulrich Drepper <drepper@redhat.com>
2540
2541 * elf/Makefile ($(objpfx)librtld.os): Create link map also for
2542 final build to ease quality control.
2543
2544 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): If compiled for
2545 ld.so, don't include NULL buffer pointer handling.
2546
2547 2003-09-19 Jakub Jelinek <jakub@redhat.com>
2548
2549 * dlfcn/dlopen.c (dlopen): Add static_link_warning.
2550
2551 2003-09-18 Jakub Jelinek <jakub@redhat.com>
2552
2553 * libio/memstream.c (open_memstream): Use _IO_init instead of
2554 _IO_old_init.
2555
2556 2003-09-17 Ulrich Drepper <drepper@redhat.com>
2557
2558 * sysdeps/generic/wordexp.c (eval_expr_val): Use strtol since we
2559 have to recognize octal and hexadecimal numbers as well. Simplify
2560 function, signs are handled in strtol.
2561 * posix/wordexp-test.c: Add tests for octal and hexadecimal
2562 numbers in arithmetic expressions.
2563
2564 2003-09-17 Jakub Jelinek <jakub@redhat.com>
2565
2566 * elf/Makefile (distribute): Add tst-alignmod.c.
2567 (tests): Add tst-align.
2568 (modules-names): Add tst-alignmod.
2569 (CFLAGS-tst-align.c, CFLAGS-tst-alignmod.c): Add
2570 $(stack-align-test-flags).
2571 ($(objpfx)tst-align): Depend on libdl.
2572 ($(objpfx)tst-align.out): Depend on tst-alignmod.so.
2573 * elf/tst-align.c: New file.
2574 * elf/tst-alignmod.c: New file.
2575 * misc/Makefile (CFLAGS-tst-tsearch.c): Add $(stack-align-test-flags).
2576 * misc/tst-tsearch.c: Include tst-stack-align.h.
2577 (stack_align_check): New array.
2578 (cmp_fn, walk_action): Use TEST_STACK_ALIGN ().
2579 (main): Report error if stack was not enough aligned
2580 in cmp_fn or walk_action.
2581 * stdlib/Makefile (CFLAGS-tst-qsort.c): Add $(stack-align-test-flags).
2582 * stdlib/tst-qsort.c: Include tst-stack-align.h.
2583 (align_check): New var.
2584 (compare): Use TEST_STACK_ALIGN () macro.
2585 (main): Report error if stack was not enough aligned in compare.
2586 * sysdeps/i386/i686/Makefile (stack-align-test-flags): Remove
2587 unneeded -mpreferred-stack-boundary=4.
2588 * sysdeps/x86_64/tst-stack-align.h: New file.
2589
2590 * libio/memstream.c (_IO_wmem_jumps): Remove unused structure.
2591 (_IO_wmem_sync, _IO_wmem_finish): Remove unused functions.
2592
2593 2003-09-17 Philip Blundell <philb@gnu.org>
2594
2595 * sysdeps/arm/dl-machine.h (CALL_ROUTINE): Deleted.
2596 (BX): Define.
2597 (ELF_MACHINE_RUNTIME_TRAMPOLINE): Optimise a little.
2598
2599 * sysdeps/arm/sysdep.h (DO_RET): New.
2600
2601 * sysdeps/unix/sysv/linux/arm/vfork.S: Add #error if __NR_vfork
2602 required but not defined. Improve test of error code.
2603
2604 2003-09-17 Jakub Jelinek <jakub@redhat.com>
2605
2606 * sysdeps/i386/Makefile (stack-align-test-flags): Add
2607 -malign-double -mpreferred-stack-boundary=4.
2608
2609 2003-09-17 Ulrich Drepper <drepper@redhat.com>
2610
2611 * sysdeps/posix/utimes.c (__utimes): Truncate instead of round.
2612 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Likewise.
2613
2614 2003-09-15 Jakub Jelinek <jakub@redhat.com>
2615
2616 * sysdeps/i386/Makefile (sysdep-CFLAGS): If not in math or csu
2617 subdir, add -mpreferred-stack-boundary=4, with few exceptions.
2618
2619 2003-09-17 Jakub Jelinek <jakub@redhat.com>
2620
2621 * Makeconfig (stack-align-test-flags): Set.
2622 * stdlib/Makefile (CFLAGS-tst-bsearch.c): Add
2623 $(stack-align-test-flags).
2624 * stdlib/tst-bsearch.c: Include tst-stack-align.h.
2625 (align_check): New var.
2626 (comp): Use TEST_STACK_ALIGN macro.
2627 (do_test): Fail if align_check != 1.
2628 * sysdeps/generic/tst-stack-align.h: New file.
2629 * sysdeps/i386/i686/Makefile (stack-align-test-flags): Add -msse.
2630 * sysdeps/i386/i686/tst-stack-align.h: New file.
2631
2632 2003-09-17 Ulrich Drepper <drepper@redhat.com>
2633
2634 * sysdeps/unix/sysv/linux/i386/clone.S: Make sure child gets a
2635 stack which is aligned (mod 16).
2636
2637 2003-09-17 Uwe Reimann <Uwe_Reimann@gmx.net>
2638 Hans-Peter Nilsson <hp@axis.com>
2639
2640 * sysdeps/cris/dl-machine.h (elf_machine_type_class): Classify
2641 R_CRIS_GLOB_DAT as ELF_RTYPE_CLASS_PLT. Clarify comment.
2642
2643 2003-09-17 Jakub Jelinek <jakub@redhat.com>
2644
2645 * dirent/scandir.c: Include bits/libc-lock.h.
2646 (struct scandir_cancel_struct): New type.
2647 (cancel_handler): New function.
2648 (SCANDIR): Add __libc_cleanup_{push,pop}, save state into
2649 scandir_cancel_struct.
2650
2651 2003-09-16 Ulrich Drepper <drepper@redhat.com>
2652
2653 * sysdeps/unix/sysv/linux/Dist: Remove internal_statvfs.c.
2654 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
2655 Add internal_statvfs.
2656 * sysdeps/unix/sysv/linux/fstatvfs.c: Call __internal_statvfs
2657 instead of including "internal_statvfs.c".
2658 * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
2659 * sysdeps/unix/sysv/linux/internal_statvfs.c: Make it a real function.
2660 Add code to avoid the stat calls on all the reported mount points
2661 when we can determine mismatch in advance.
2662 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add AUTOFS_SUPER_MAGIC and
2663 USBDEVFS_SUPER_MAGIC.
2664
2665 2003-09-16 Jakub Jelinek <jakub@redhat.com>
2666
2667 * posix/Versions (sched_getaffinity, sched_setaffinity): Change
2668 from GLIBC_2.3.2 to GLIBC_2.3.3 symbol version.
2669
2670 2003-09-16 Bruno Haible <bruno@clisp.org>
2671
2672 * intl/tst-gettext2.sh: Set GCONV_PATH and LOCPATH only after
2673 invoking msgfmt, not before.
2674
2675 2003-09-15 Jakub Jelinek <jakub@redhat.com>
2676
2677 * argp/argp.h (argp_parse, __argp_parse): Remove __THROW.
2678 * argp/Makefile (CFLAGS-argp-help.c, CFLAGS-argp-parse.c): Add
2679 $(uses-callbacks).
2680 * dirent/Makefile (CFLAGS-scandir.c, CFLAGS-scandir64.c): Likewise.
2681 * elf/Makefile (CFLAGS-dl-iterate-phdr.c,
2682 CFLAGS-dl-iterate-phdr-static.c): Add $(uses-callbacks).
2683 * elf/dl-iteratephdr.c (cancel_handler): New function.
2684 (__dl_iterate_phdr): Add __libc_cleanup_{push,pop}.
2685 * elf/link.h (dl_iterate_phdr): Remove __THROW.
2686 * io/Makefile (CFLAGS-fts.c): Merge into one assignment.
2687 Add $(uses-callbacks).
2688 (CFLAGS-ftw.c, CFLAGS-ftw64.c): Add $(uses-callbacks).
2689 * misc/Makefile (CFLAGS-tsearch.c, CFLAGS-lsearch.c): Change
2690 $(exceptions) to $(uses-callbacks).
2691 * Makeconfig (uses-callbacks): Set to $(exceptions).
2692 * posix/Makefile (CFLAGS-glob.c, CFLAGS-glob64.c): Add
2693 $(uses-callbacks).
2694 * stdlib/Makefile (CFLAGS-bsearch.c, CFLAGS-msort.c, CFLAGS-qsort.c):
2695 Likewise.
2696
2697 2003-09-15 Andreas Schwab <schwab@suse.de>
2698
2699 * sysdeps/m68k/setjmp.c: Add hidden_def.
2700
2701 2003-09-14 Ulrich Drepper <drepper@redhat.com>
2702
2703 * libio/memstream.c (open_memstream): Don't allow wide char operations.
2704
2705 * dirent/dirent.h: Remove __THROW from scandir.
2706
2707 2003-09-14 Philip Blundell <philb@gnu.org>
2708
2709 * sysdeps/unix/sysv/linux/arm/mmap.S: Use sys_mmap2 if it's known
2710 to be available.
2711
2712 * sysdeps/unix/sysv/linux/arm/mmap64.S: Optimise code a little.
2713
2714 * sysdeps/arm/memset.S: Rewrite.
2715
2716 2003-09-12 Jakub Jelinek <jakub@redhat.com>
2717
2718 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New.
2719 (__SSIZE_T_TYPE): Define to __SWORD_TYPE for gcc 2.95.x and
2720 __SLONGWORD_TYPE otherwise.
2721
2722 2003-09-14 Ulrich Drepper <drepper@redhat.com>
2723
2724 * io/Makefile (CFLAGS-ftw.c): Add -fexceptions.
2725 (CFLAGS-ftw64.c): Likewise.
2726
2727 2003-09-13 Ulrich Drepper <drepper@redhat.com>
2728
2729 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Add -fexceptions.
2730 (CFLAGS-nscd_getgr_r.c): Likewise.
2731 (CFLAGS-nscd_gethst_r.c): Likewise.
2732
2733 2003-09-12 Ulrich Drepper <drepper@redhat.com>
2734
2735 * sysdeps/unix/sysv/linux/if_index.c: Use only non-cancelable
2736 interfaces.
2737
2738 * grp/Makefile (CFLAGS-getgrgid_r.c, CFLAGS-getgrnam_r.c,
2739 CFLAGS-fgetgrent.c, CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c,
2740 CFLAGS-initgroups.c, CFLAGS-getgrgid.c): Add -fexceptions.
2741 * inet/Makefile (CFLAGS-either_ntoh.c, CFLAGS-either_hton.c,
2742 CFLAGS-getnetgrent.c, CFLAGS-getnetgrent_r.c): Likewise.
2743 * io/Makefile (CFLAGS-posix_fallocate.c, CFLAGS-posix_fallocate64.c):
2744 Likewise.
2745 * misc/Makefile (CFLAGS-err.c): Likewise.
2746 * posix/Makefile (CFLAGS-getaddrinfo.c, CFLAGS-spawn.c,
2747 CFLAGS-spawnp.c, CFLAGS-spawni.c, CFLAGS-pause.c, CFLAGS-glob.c,
2748 CFLAGS-glob64.c): Likewise.
2749 * pwd/Makefile (CFLAGS-getpw.c): Likewise.
2750 * shadow/Makefile (CFLAGS-fgetspent.c, CFLAGS-fgetspent_r.c,
2751 CFLAGS-putspent.c, CFLAGS-getspnam.c, CFLAGS-getspnam_r.c): Likewise.
2752 * stdio-common/Makefile (CFLAGS-cuserid.c): Likewise.
2753 * sunrpc/Makefile (CFLAGS-openchild.c): Likewise.
2754
2755 * stdlib/Makefile (CFLAGS-mkstemp.c): Remove definition.
2756
2757 * libio/stdio.h: Remove __THROW from cuserid prototype.
2758
2759 * locale/loadarchive.c: Use only non-cancelable interfaces.
2760 * resolv/herror.c (herror): Likewise.
2761
2762 * malloc/hooks.c: Before using IO stream mark stream so it uses
2763 only non-cancelable interfaces.
2764 * malloc/malloc.c: Likewise.
2765 * posix/getopt.c: Likewise.
2766
2767
2768 2003-09-11 Jakub Jelinek <jakub@redhat.com>
2769
2770 * Makerules (LDFLAGS-c.so): Remove -u __register_frame.
2771
2772 2003-09-12 Ulrich Drepper <drepper@redhat.com>
2773
2774 * stdio-common/stdio_ext.h: Mark most functions with __THROW.
2775
2776 * misc/err.h: Remove __THROW from all prototypes.
2777
2778 * posix/getopt.h (__THROW): Define if not already defined. Add
2779 __THROW to the getopt functions.
2780
2781 2003-09-11 Ulrich Drepper <drepper@redhat.com>
2782
2783 * io/Makefile (CFLAGS-lockf.c): Add -fexceptions.
2784 (CFLAGS-fts.c): Likewise.
2785 * io/fcntl.h: Remove __THROW from lockf prototypes.
2786 * io/fts.h: Remove most __THROW.
2787
2788 2003-09-11 H.J. Lu <hongjiu.lu@intel.com>
2789
2790 * elf/tls-macros.h (TLS_IE): Add a stop bit for ia64.
2791 (TLS_LD): Likewise.
2792 (TLS_GD): Likewise.
2793
2794 2003-09-11 Jakub Jelinek <jakub@redhat.com>
2795
2796 * libio/fileops.c (_IO_new_file_overflow): Add INTUSE to
2797 _IO_free_backup_area call.
2798
2799 2003-09-10 Chris Demetriou <cgd@broadcom.com>
2800
2801 * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Fix
2802 syscall invocation.
2803 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
2804 * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
2805 Also, only assert off_t size is 4 for N32 and O32, and clean up
2806 white space.
2807 * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
2808
2809 2003-09-10 Roland McGrath <roland@redhat.com>
2810
2811 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr):
2812 Don't use c_ispeed under [! _HAVE_STRUCT_TERMIOS_C_ISPEED].
2813 Don't use c_ospeed under [! _HAVE_STRUCT_TERMIOS_C_OSPEED].
2814 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
2815 Reported by Daniel Jacobowitz <drow@mvista.com>.
2816
2817 2003-09-10 Jakub Jelinek <jakub@redhat.com>
2818
2819 * string/Makefile (strop-tests): Add memccpy.
2820 * string/test-memccpy.c: New test.
2821
2822 2003-09-09 Jakub Jelinek <jakub@redhat.com>
2823
2824 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT): Add
2825 siginfo_t * argument before, change into struct ucontext *.
2826 (SIGCONTEXT_EXTRA_ARGS): Define to _si,.
2827 (GET_PC, GET_FRAME, GET_STACK): Adjust for ctx being a pointer
2828 instead of structure.
2829 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (REGISTER_DUMP):
2830 Likewise.
2831
2832 2003-09-09 Ulrich Drepper <drepper@redhat.com>
2833
2834 * string/stratcliff.c (main): Check memccpy.
2835
2836 2003-04-11 Jes Sorensen <jes@wildopensource.com>
2837
2838 * sysdeps/ia64/memccpy.S: When recovering for src_aligned and the
2839 character is found during recovery, use correct register when
2840 determining the position of the found character.
2841
2842 2003-04-01 Jes Sorensen <jes@wildopensource.com>
2843
2844 * sysdeps/ia64/memccpy.S: Use speculatively loads for readahead to
2845 avoid segfaults when reading from unmapped pages. For aligned
2846 reload and continue, for misaligned, roll back and use byte copy.
2847 Save ar.ec on entry and restore on exit.
2848
2849 2003-09-09 Chris Demetriou <cgd@broadcom.com>
2850
2851 * sysdeps/unix/mips/sysdep.h (PSEUDO_END): Undef before defining.
2852
2853 2003-09-08 Chris Demetriou <cgd@broadcom.com>
2854
2855 * sysdeps/mips/mips64/n32/Implies: Move ieee754/ldbl-128 to
2856 the top of the list.
2857 * sysdeps/mips/mips64/n64/Implies: Likewise.
2858
2859 2003-09-08 Roland McGrath <roland@frob.com>
2860
2861 * sysdeps/unix/sysv/linux/speed.c
2862 (cfsetospeed): Only set c_ospeed under [_HAVE_STRUCT_TERMIOS_C_OSPEED].
2863 (cfsetispeed): Only set c_ispeed under [_HAVE_STRUCT_TERMIOS_C_ISPEED].
2864 * sysdeps/unix/sysv/linux/bits/termios.h
2865 (_HAVE_STRUCT_TERMIOS_C_ISPEED, _HAVE_STRUCT_TERMIOS_C_OSPEED): Define.
2866 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2867 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2868
2869 2003-09-08 Ulrich Drepper <drepper@redhat.com>
2870
2871 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Undo last change.
2872 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
2873
2874 2003-09-08 Jakub Jelinek <jakub@redhat.com>
2875
2876 * sysdeps/generic/bits/types.h (__quad_t): Make long int if 64-bit.
2877 (__u_quad_t): Make unsigned long int if 64-bit.
2878 (__SQUAD_TYPE): Make long int if 64-bit.
2879 (__UQUAD_TYPE): Make unsigned long int if 64-bit.
2880 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Remove.
2881
2882 2003-09-08 Ulrich Drepper <drepper@redhat.com>
2883
2884 * Makefile (tests): Run check-c++-types.sh if possible.
2885 * scripts/check-c++-types.h: New file.
2886 * scripts/data/c++-types-i386-linux-gnu.data: New file.
2887
2888 2003-09-08 Andreas Jaeger <aj@suse.de>
2889
2890 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
2891 Use struct sigcontext.
2892
2893 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
2894 Use struct sigcontext.
2895 (GET_PC): Adopt.
2896 (GET_FRAME): Likewise.
2897 (GET_STACK): Likewise.
2898
2899 2003-09-08 Wolfram Gloger <wg@malloc.de>
2900
2901 * malloc/malloc.c (sYSMALLOc): Move foreign sbrk accounting into
2902 contiguous case. Bug report from Prem Gopalan <prem@mazunetworks.com>.
2903 (mALLOPt): Avoid requirement of C99.
2904
2905 2003-09-08 Ulrich Drepper <drepper@redhat.com>
2906
2907 * libio/bug-ftell.c: Include <sys/types.h>.
2908 (main): Mark cp as const.
2909
2910 2003-09-07 Jakub Jelinek <jakub@redhat.com>
2911
2912 * sysdeps/unix/sysv/linux/syscalls.list (fcntl): Remove.
2913 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: Remove.
2914
2915 2003-09-05 Roland McGrath <roland@redhat.com>
2916
2917 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Fill in c_ispeed
2918 and c_ospeed fields.
2919 * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Set c_ospeed field.
2920 (cfsetispeed): Set c_ispeed field.
2921 * sysdeps/unix/sysv/linux/tcsetattr.c (IBAUD0): Define unconditionally
2922 to match corresponding speed.c code.
2923
2924 2003-09-06 Ulrich Drepper <drepper@redhat.com>
2925
2926 * libio/wfileops.c (_IO_wfile_underflow): Mark beginning of the
2927 narrow character buffer.
2928 * libio/Makefile: Add rules to build and run bug-ftell.
2929 * libio/bug-ftell.c: New file.
2930
2931 * stdio-common/vfprintf.c: Don't use the first grouping number twice.
2932
2933 * stdio-common/vfscanf.c (vfscanf): Fix recognition of characters
2934 matching the decimal point and possibly leading the thousands
2935 separator. This caused the recognition of thousands separators to
2936 always fail.
2937
2938 2003-09-05 Ulrich Drepper <drepper@redhat.com>
2939
2940 * libio/fileops.c (_IO_new_file_overflow): Handle switching to
2941 write mode from read in backup buffer.
2942 * libio/Makefile (tests): Add bug-ungetc2.
2943 * libio/bug-ungetc2.c: New file.
2944
2945 2003-09-05 Roland McGrath <roland@redhat.com>
2946
2947 * nss/getXXbyYY.c (FUNCTION_NAME): Remove unused variable.
2948
2949 2003-09-04 Roland McGrath <roland@frob.com>
2950
2951 * sysdeps/mach/hurd/mmap.c (__mmap): If io_map fails with MIG_BAD_ID,
2952 EOPNOTSUPP, or ENOSYS, change it to ENODEV.
2953
2954 2003-09-04 H.J. Lu <hongjiu.lu@intel.com>
2955
2956 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ):
2957 Fix a typo.
2958
2959 2003-09-05 Andreas Jaeger <aj@suse.de>
2960
2961 * sysdeps/i386/bits/string.h (__memrchr): Do addition in assembler
2962 to make it conforming C.
2963 * sysdeps/i386/i486/bits/string.h (__memrchr): Likewise.
2964
2965 * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Change
2966 prototype to use variable argument lists and get the possible one
2967 argument via va_arg.
2968 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Likewise.
2969 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: New.
2970
2971 2003-09-04 Ulrich Drepper <drepper@redhat.com>
2972
2973 * posix/unistd.h: Add back __THROW to sysconf, pathconf, fpathconf.
2974
2975 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
2976 Report correct value for vxfs.
2977 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define VXFS_SUPER_MAGIC.
2978
2979 * gmon/gmon.c: Use only not-cancelable syscalls to write profiling
2980 data.
2981
2982 * sysdeps/generic/utmp_file.c: Use not-cancelable syscalls all
2983 over the place. It would be allowed to have these functions as
2984 cancellation points but the cleanup would be ugly and a lot of
2985 work.
2986
2987 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Define.
2988 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Define.
2989
2990 * include/fcntl.h (__fcntl_nocancel): Declare.
2991 * sysdeps/unix/sysv/linux/fcntl.c: New file.
2992 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Only enable
2993 cancellation if absolutely needed.
2994 (__fcntl_nocancel): Define.
2995
2996 * posix/unistd.h (gethostid): Remove __THROW. Clarify comment.
2997 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gethostid.c): Add
2998 -fexceptions.
2999 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use
3000 extend_alloca.
3001
3002 * resolv/res_init.c (__res_nclose): Use close_not_cancel_no_status
3003 instead of __close.
3004
3005 * nss/getXXbyYY.c (FUNCTION_NAME): Add a few casts. Remove
3006 unnecessary errno handling.
3007
3008 * nss/getXXbyYY_r.c (INTERNAL): Use better variable name.
3009 Initialize it in all cases. Change it to be a bit more like the
3010 code we had before.
3011
3012 2003-09-04 Jakub Jelinek <jakub@redhat.com>
3013
3014 * libio/fileops.c (_IO_file_read, _IO_new_file_write): Add
3015 __builtin_expect.
3016 (_IO_file_open): Likewise. Use close_not_cancel.
3017
3018 2003-09-04 Ulrich Drepper <drepper@redhat.com>
3019
3020 * libio/libio.h: Define _IO_FLAGS2_NOTCANCEL.
3021 * libio/fileops.c [_LIBC]: Remove close macro.
3022 (_IO_file_open): If _IO_FLAGS2_NOTCANCEL is set, use open_not_cancel.
3023 (_IO_new_file_open): Recognize 'c' flag in mode string.
3024 (_IO_file_read): If _IO_FLAGS2_NOTCANCEL is set use read_not_cancel.
3025 (_IO_new_file_write): If _IO_FLAGS2_NOTCANCEL is set use
3026 write_not_cancel.
3027 * iconv/gconv_conf.c: Use fopen with 'c' mode flag.
3028 * inet/rcmd.c: Likewise.
3029 * inet/ruserpass.c: Likewise.
3030 * intl/localealias.c: Likewise.
3031 * malloc/mtrace.c: Likewise.
3032 * misc/getpass.c: Likewise.
3033 * misc/getttyent.c: Likewise.
3034 * misc/mntent_r.c: Likewise.
3035 * misc/getusershell.c: Likewise.
3036 * nss/nsswitch.c: Likewise.
3037 * resolv/res_hconf.c: Likewise.
3038 * resolv/res_init.c: Likewise.
3039 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
3040 * time/getdate.c: Likewise.
3041 * time/tzfile.c: Likewise.
3042 * misc/fstab.h: Undo last change.
3043 * misc/mntent.h: Likewise.
3044 * misc/Makefile: Remove CFLAGS-mntent_r.c, CFLAGS-mntent.c, and
3045 CFLAGS-fstab.c definition.
3046
3047 2003-09-04 Jakub Jelinek <jakub@redhat.com>
3048
3049 * sysdeps/generic/unwind.h (_Unwind_GetBSP): Add prototype.
3050
3051 2003-09-03 Ulrich Drepper <drepper@redhat.com>
3052
3053 * nss/getXXbyYY_r.c (INTERNAL): Explicitly set errno and avoid
3054 returning ERANGE if this wasn't intended.
3055
3056 2003-09-03 Jakub Jelinek <jakub@redhat.com>
3057
3058 * intl/loadmsgcat.c (open, close, read, mmap, munmap): Define as
3059 function-like macros.
3060
3061 2003-09-03 Ulrich Drepper <drepper@redhat.com>
3062
3063 * grp/Makefile (CFLAGS-getgrent_r.c): Add -fexceptions.
3064 (CFLAGS-getgrent.c): Likewise.
3065 * pwd/Makefile (CFLAGS-getpwent_r.c): Add -fexceptions.
3066 (CFLAGS-getpwent.c): Likewise.
3067 * shadow/Makefile (CFLAGS-getspent_r.c): Add -fexceptions.
3068 (CFLAGS-getspent.c): Likewise.
3069
3070 * inet/Makefile: Add -fexceptions to CFLAGS for the various
3071 getXXent and getXXbyYY functions.
3072
3073 * locale/loadlocale.c: Use not-cancelable variants of open, close,
3074 and read.
3075
3076 2003-09-02 Jakub Jelinek <jakub@redhat.com>
3077
3078 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
3079 rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait, rt_sigqueueinfo and
3080 rt_sigpending.
3081 * sysdeps/unix/sysv/linux/alpha/sigaction.c (__syscall_rt_sigaction):
3082 New prototype.
3083 * sysdeps/unix/sysv/linux/arm/syscalls.list (__syscall_*): Remove
3084 unused __syscall_ stubs.
3085 * sysdeps/unix/sysv/linux/arm/Makefile (sysdep_routines): Remove
3086 rt_*.
3087 * sysdeps/unix/sysv/linux/cris/Makefile: Removed.
3088 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list
3089 (__syscall_recvfrom, __syscall_sendto): Remove unused aliases.
3090 * sysdeps/unix/sysv/linux/mips/syscalls.list (__syscall_*): Remove
3091 unused __syscall_ stubs.
3092 * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Remove rt_*.
3093 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
3094 (__syscall_*): Remove unused __syscall_ stubs.
3095 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
3096 (__syscall_*): Likewise.
3097 * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines): Remove
3098 rt_*.
3099 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__syscall_*):
3100 Remove unused __syscall_ stubs.
3101 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_routines): Remove rt_*.
3102 * sysdeps/unix/sysv/linux/rt_sigaction.c: Removed.
3103 * sysdeps/unix/sysv/linux/rt_sigpending.c: Removed.
3104 * sysdeps/unix/sysv/linux/rt_sigprocmask.c: Removed.
3105 * sysdeps/unix/sysv/linux/rt_sigqueueinfo.c: Removed.
3106 * sysdeps/unix/sysv/linux/rt_sigreturn.c: Removed.
3107 * sysdeps/unix/sysv/linux/rt_sigsuspend.c: Removed.
3108 * sysdeps/unix/sysv/linux/rt_sigtimedwait.c: Removed.
3109 * sysdeps/unix/sysv/linux/s_pread64.c: Removed.
3110 * sysdeps/unix/sysv/linux/s_pwrite64.c: Removed.
3111 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Remove unused
3112 __syscall_* prototypes.
3113 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Likewise.
3114 * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
3115 * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
3116 * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
3117 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
3118 * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
3119 * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
3120 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
3121 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
3122 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
3123 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
3124 * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
3125 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
3126 * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
3127 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
3128 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
3129 * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
3130 * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
3131 * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
3132 * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
3133 * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
3134 * sysdeps/unix/sysv/linux/i386/lockf64.c: Likewise.
3135 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
3136 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
3137 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
3138 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
3139 * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
3140 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
3141 * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
3142 * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
3143 * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
3144 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
3145 * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
3146 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
3147 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
3148 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
3149 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
3150 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
3151 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
3152 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
3153 * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
3154 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
3155 * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
3156 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
3157 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3158 * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
3159 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3160 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
3161 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
3162 * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
3163 * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
3164 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
3165 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
3166 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
3167 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
3168 * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
3169 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c: Likewise.
3170 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
3171 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
3172 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
3173 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
3174 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c: Likewise.
3175 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
3176 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
3177 * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
3178 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
3179 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
3180 * sysdeps/unix/sysv/linux/execve.c: Likewise.
3181 * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
3182 * sysdeps/unix/sysv/linux/reboot.c: Likewise.
3183 * sysdeps/unix/sysv/linux/_exit.c: Likewise.
3184 * sysdeps/unix/sysv/linux/ftruncate64.c: Likewise.
3185 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
3186 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
3187 * sysdeps/unix/sysv/linux/gai_sigqueue.c: Likewise.
3188 * sysdeps/unix/sysv/linux/readahead.c: Likewise.
3189 * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
3190 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
3191 * sysdeps/unix/sysv/linux/getdents.c: Likewise.
3192 * sysdeps/unix/sysv/linux/readv.c: Likewise.
3193 * sysdeps/unix/sysv/linux/getpriority.c: Likewise.
3194 * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
3195 * sysdeps/unix/sysv/linux/ipc_priv.h: Likewise.
3196 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
3197 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
3198 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
3199 * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
3200 * sysdeps/unix/sysv/linux/ustat.c: Likewise.
3201 * sysdeps/unix/sysv/linux/poll.c: Likewise.
3202 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
3203 * sysdeps/unix/sysv/linux/writev.c: Likewise.
3204 * sysdeps/unix/sysv/linux/pread.c: Likewise.
3205 * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
3206 * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
3207 * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
3208 * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
3209 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
3210 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
3211 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
3212 * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
3213 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
3214 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
3215
3216 2003-09-02 Jakub Jelinek <jakub@redhat.com>
3217
3218 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Revert last change.
3219 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: New file.
3220 * sysdeps/unix/sysv/linux/sparc/syscalls.list: New file.
3221
3222 2003-09-02 Ulrich Drepper <drepper@redhat.com>
3223
3224 * stdio-common/Makefile (CFLAGS-vprintf.c): Add -fexceptions.
3225
3226 * intl/loadmsgcat.c: For _LIBC, call not cancelable versions of
3227 open, close, and read.
3228
3229 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Also define
3230 *_nocancel name.
3231
3232 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add waitpid.
3233
3234 * libio/Makefile (CFLAGS-oldtmpfile.c): Add -fexceptions.
3235 * sysdeps/generic/tmpfile.c (tmpfile): Use __unlink instead of remove.
3236 * libio/oldtmpfile.c (__old_tmpfile): Likewise.
3237
3238 * misc/Makefile (CFLAGS-getusershell.c): Add -fexceptions.
3239
3240 * io/Makefile (CFLAGS-statfs.c): Add -fexceptions.
3241 (CFLAGS-fstatfs.c): Likewise.
3242 (CFLAGS-statvfs.c): Likewise.
3243 (CFLAGS-fstatvfs.c): Likewise.
3244
3245 2003-09-01 Ulrich Drepper <drepper@redhat.com>
3246
3247 * misc/Makefile (CFLAGS-getsysstats.c): Add -fexceptions.
3248 * posix/unistd.h: Remove __THROW from pathconf, fpathconf,
3249 sysconf.
3250 * posix/Makefile (CFLAGS-sysconf.c): Add -fexceptions.
3251 (CFLAGS-pathconf.c): Likewise.
3252 (CFLAGS-fpathconf.c): Likewise.
3253
3254 * misc/Makefile (CFLAGS-fstab.c): Add -fexceptions.
3255 * misc/fstab.h: Remove all __THROW.
3256 * misc/Makefile (CFLAGS-mntent.c): Add -fexceptions.
3257 (CFLAGS-mntent_r.c): Likewise.
3258 * misc/mntent.h: Remove most __THROW.
3259
3260 * misc/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
3261 (CFLAGS-mkstemp64.c): Likewise.
3262
3263 * sysdeps/generic/wordexp.c (parse_comm): Disable cancellation
3264 around call to exec_comm.
3265 * posix/wordexp.h: Remove __THROW from wordexp.
3266 * posix/Makefile (CFLAGS-wordexp.c): Add -fexceptions.
3267
3268 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Use
3269 not-cancelable functions.
3270
3271 * libio/Makefile (CFLAGS-oldiofopen.c): Add -fexceptions.
3272 (CFLAGS-iofopen.c): Likewise.
3273 (CFLAGS-iofopen64.c): Likewise.
3274
3275 * stdlib/fmtmsg.c (fmtmsg): Disable cancellation around output
3276 functions.
3277 * stdlib/Makefile (CFLAGS-fmtmsg.c): Add -fexceptions.
3278 * stdlib/fmtmsg.h: Remove __THROW from fmtmsg.
3279
3280 * stdlib/stdlib.h: Remove __THROW from posix_openpt and getpt.
3281 * login/Makefile (CFLAGS-getpt.c): Add -fexceptions.
3282
3283 2003-09-01 Thorsten Kukuk <kukuk@suse.de>
3284
3285 * nis/nss_compat/compat-spwd.c (getspnam_plususer): Return
3286 NSS_STATUS_SUCCESS if entry was found.
3287 (getspent_next_file): Store user in blacklist after entry
3288 was found, use innetgr.
3289
3290 2003-09-01 Jakub Jelinek <jakub@redhat.com>
3291
3292 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: New.
3293 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: New.
3294
3295 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Fix tls offset
3296 computation for TCB_AT_TP. Support l_firstbyte_offset != 0 for
3297 DTV_AT_TP, optimize.
3298
3299 2003-08-31 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3300
3301 * sysdeps/unix/sysv/linux/sh/Versions: Add posix_fadvise64 and
3302 posix_fallocate64 at GLIBC_2.3.3.
3303 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO_ERRVAL): Define.
3304 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
3305
3306 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
3307
3308 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove __syscall_
3309 functions.
3310
3311 2003-08-31 Ulrich Drepper <drepper@redhat.com>
3312
3313 * libio/libioP.h (_IO_acquire_lock_fct): Define as inline function.
3314 Code by Richard Henderson.
3315
3316 2003-08-31 Philip Blundell <philb@gnu.org>
3317
3318 * sysdeps/unix/sysv/linux/arm/Versions: Add posix_fadvise64 and
3319 posix_fallocate64 at GLIBC_2.3.3.
3320
3321 2003-08-31 Ulrich Drepper <drepper@redhat.com>
3322
3323 * sysdeps/x86_64/bsd-_setjmp.S: Use HIDDEN_JUMPTARGET.
3324 * include/setjmp.h: Add libc_hidden_proto for __sigsetjmp.
3325
3326 2003-08-30 Jakub Jelinek <jakub@redhat.com>
3327
3328 * sysdeps/generic/sysdep.h (cfi_window_save, CFI_WINDOW_SAVE): Define.
3329 * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Allow file to be
3330 included multiple times.
3331 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Pass
3332 ptid, tls, ctid arguments to the kernel.
3333 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
3334 Use INTERNAL_SYSCALL instead of __syscall_getpagesize.
3335 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
3336 (__libc_sigaction): Use INLINE_SYSCALL instead of
3337 __syscall_rt_sigaction.
3338 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
3339 (__syscall_getgroups, __syscall_getpagesize, __syscall__llseek,
3340 __syscall_setfsgid, __syscall_setfsuid, __syscall_setgid,
3341 __syscall_setgroups, __syscall_setregid, __syscall_setreuid,
3342 __syscall_ipc, __syscall_setuid, __syscall_rt_sigaction,
3343 __syscall_rt_sigpending, __syscall_rt_sigprocmask,
3344 __syscall_rt_sigqueueinfo, __syscall_rt_sigsuspend,
3345 __syscall_rt_sigtimedwait): Remove unneeded syscall stubs.
3346 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (sysdep_routines):
3347 Remove rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait,
3348 rt_sigqueueinfo, rt_sigaction and rt_sigpending.
3349 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3350 (__CLONE_SYSCALL_STRING): Define.
3351 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Add
3352 CFI directives.
3353 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3354 (__CLONE_SYSCALL_STRING): Define.
3355 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_CLONE_SYSCALL):
3356 Define.
3357 * sysdeps/unix/sysv/linux/sparc/system.c: New file.
3358
3359 2003-08-30 Ulrich Drepper <drepper@redhat.com>
3360
3361 * sunrpc/rpc/clnt.h: Remove a few __THROW.
3362 * sunrpc/Makefile (CFLAGS-auth_unix.c): Add -fexceptions.
3363 (CFLAGS-key_call.c): Likewise.
3364 (CFLAGS-pmap_rmt.c): Likewise.
3365 (CFLAGS-clnt_perr.c): Likewise.
3366 * sunrpc/rpc/auth.h: Remove serveral __THROW.
3367
3368 * inet/Makefile (CFLAGS-gethstbyad_r.c): Add -fexceptions.
3369 (CFLAGS-gethstbynm_r.c): Likewise.
3370 (CFLAGS-gethstbynm2_r.c): Likewise.
3371 (CFLAGS-rcmd.c): Likewise.
3372 * resolv/Makefile (CFLAGS-res_hconf.c): Add -fexceptions.
3373
3374 * argp/Makefile (CFLAGS-argp-help.c): Add -fexceptions.
3375 (CFLAGS-argp-fmtstream.c): Likewise.
3376 * argp/argp.h: Remove a number of __THROW.
3377
3378 * misc/sys/syslog.h (vsyslog): Remove __THROW.
3379
3380 * misc/Makefile (CFLAGS-getpass.c): Add -fexceptions.
3381 * misc/getpass.c (getpass): Add cleanup handler to ensure the
3382 stream is closed even if the thread is canceled.
3383 (call_fclose): New function.
3384 * posix/unistd.h: Remove __THROW from getpass prototype.
3385
3386 * posix/Makefile (CFLAGS-getopt.c): Add -fexceptions.
3387
3388 * signal/signal.h (psignal): Remove __THROW.
3389 * stdio-common/Makefile (CFLAGS-psignal.c): Add -fexceptions.
3390
3391 * misc/Makefile (CFLAGS-error.c): Define.
3392 * misc/error.c (error): Disable cancellation handling around the
3393 actual output. The message should in any case be printed.
3394 (error_at_line): Likewise.
3395
3396 * misc/error.h: Protect parameter names with leading __.
3397
3398 2003-08-28 Carlos O'Donell <carlos@baldric.uwo.ca>
3399
3400 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Add semtimedop.
3401
3402 2003-08-29 Jakub Jelinek <jakub@redhat.com>
3403
3404 * libio/iofgetpos64.c (_IO_new_fgetpos64): Move lock release to the
3405 end.
3406
3407 2003-08-29 Ulrich Drepper <drepper@redhat.com>
3408
3409 * libio/stdio.h: Remove a few more __THROW.
3410
3411 2003-08-29 Jakub Jelinek <jakub@redhat.com>
3412
3413 * libio/Makefile: Compile fputc.c, fputwc.c, freopen64.c, freopen.c,
3414 fseek.c, fseeko64.c, fseeko.c, ftello64.c, ftello.c, fwide.c, getc.c,
3415 getchar.c, getwc.c, getwchar.c, iofclose.c, iofflush.c, iofgetpos64.c,
3416 iofgetpos.c, iofgets.c, iofgetws.c, iofputs.c, iofputws.c, iofread.c,
3417 iofsetpos64.c, iofsetpos.c, ioftell.c, iofwrite.c, iogetdelim.c,
3418 iogetline.c, iogets.c, iogetwline.c, ioputs.c, ioseekoff.c,
3419 ioseekpos.c, iosetbuffer.c, iosetvbuf.c, ioungetc.c, ioungetwc.c,
3420 oldfileops.c, oldiofclose.c, oldiofgetpos64.c, oldiofgetpos.c,
3421 oldiofsetpos64.c, oldiofsetpos.c, peekc.c, putc.c, putchar.c, putwc.c,
3422 putwchar.c and rewind.c with exceptions.
3423 * sysdeps/generic/bits/stdio-lock.h (_IO_acquire_lock,
3424 _IO_release_lock): Define.
3425 * libio/fileops.c (_IO_new_file_underflow): Use it.
3426 * libio/fputc.c (fputc): Likewise.
3427 * libio/fputwc.c (fputwc): Likewise.
3428 * libio/freopen64.c (freopen64):
3429 * libio/freopen.c (freopen): Likewise.
3430 * libio/fseek.c (fseek): Likewise.
3431 * libio/fseeko64.c (fseeko64): Likewise.
3432 * libio/fseeko.c (fseeko): Likewise.
3433 * libio/ftello64.c (ftello64): Likewise.
3434 * libio/ftello.c (ftello): Likewise.
3435 * libio/fwide.c (fwide): Likewise.
3436 * libio/getc.c (_IO_getc): Likewise.
3437 * libio/getchar.c (getchar): Likewise.
3438 * libio/getwc.c (_IO_getwc): Likewise.
3439 * libio/getwchar.c (getwchar): Likewise.
3440 * libio/iofclose.c (_IO_new_fclose):
3441 * libio/iofflush.c (_IO_fflush): Likewise.
3442 * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
3443 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
3444 * libio/iofgets.c (_IO_fgets): Likewise.
3445 * libio/iofgetws.c (fgetws): Likewise.
3446 * libio/iofputs.c (_IO_fputs): Likewise.
3447 * libio/iofputws.c (fputws): Likewise.
3448 * libio/iofread.c (_IO_fread): Likewise.
3449 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
3450 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
3451 * libio/ioftell.c (_IO_ftell): Likewise.
3452 * libio/iofwrite.c (_IO_fwrite): Likewise.
3453 * libio/iogetdelim.c (_IO_getdelim): Likewise.
3454 * libio/iogets.c (_IO_gets): Likewise.
3455 * libio/ioputs.c (_IO_puts): Likewise.
3456 * libio/ioseekoff.c (_IO_seekoff): Likewise.
3457 * libio/ioseekpos.c (_IO_seekpos): Likewise.
3458 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
3459 * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
3460 * libio/ioungetc.c (_IO_ungetc): Likewise.
3461 * libio/ioungetwc.c (ungetwc): Likewise.
3462 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
3463 * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
3464 * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
3465 * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
3466 * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
3467 * libio/peekc.c (_IO_peekc_locked): Likewise.
3468 * libio/putc.c (_IO_putc): Likewise.
3469 * libio/putchar.c (putchar): Likewise.
3470 * libio/putwc.c (putwc): Likewise.
3471 * libio/putwchar.c (putwchar): Likewise.
3472 * libio/rewind.c (rewind): Likewise.
3473 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
3474
3475 2003-08-29 Ulrich Drepper <drepper@redhat.com>
3476
3477 * signal/signal.h: sighold, sigrelse, sigignore, sigset were
3478 available in XPG4.2.
3479
3480 2003-08-27 Phil Knirsch <pknirsch@redhat.com>
3481 Jakub Jelinek <jakub@redhat.com>
3482
3483 * sunrpc/svc.c (svc_getreqset): Fix fds_bits reading on 64-bit
3484 big endian arches. Don't read beyond end of fds_bits array.
3485
3486 2003-04-27 Bruno Haible <bruno@clisp.org>
3487
3488 * manual/message.texi (Advanced gettext functions): Add information
3489 about Korean, Portuguese, Latvian. Gaeilge is also known as Irish.
3490 Add section about Lithuanian, reported by Ricardas Cepas
3491 <rch@richard.eu.org>.
3492 Add information about Croatian.
3493 Ukrainian is like Russian, reported by Andy Rysin <arysin@yahoo.com>.
3494 Remove remark about continuation lines that is not true for PO files.
3495 Fix formula for Slovenian, reported by Roman Maurer
3496 <roman.maurer@amis.net>.
3497
3498 2003-08-27 Ulrich Drepper <drepper@redhat.com>
3499
3500 * math/math_private.h: Declare __copysignf.
3501 * sysdeps/ieee754/flt-32/s_scalbnf.c: Use __copysignf instead of
3502 copysignf.
3503
3504 * sysdeps/x86_64/fpu/bits/mathinline.h: Define __signbitf,
3505 __signbit, and __signbitl inline functions.
3506
3507 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Use
3508 HIDDEN_JUMPTARGET instead of JUMPTARGET to call exit().
3509
3510 * sysdeps/x86_64/bsd-_setjmp.S [PIC]: Jump to __GI___sigsetjmp.
3511 * sysdeps/x86_64/setjmp.S: Add libc_hidden_def for __sigsetjmp.
3512
3513 2003-08-27 Jakub Jelinek <jakub@redhat.com>
3514
3515 * inet/inet_mkadr.c (inet_makeaddr): Optimize.
3516
3517 2003-08-27 Ulrich Drepper <drepper@redhat.com>
3518
3519 * include/stdio.h: Add declarations for __builtin_fwrite and
3520 __builtin_fwrite_unlocked.
3521
3522 2003-08-27 Jakub Jelinek <jakub@redhat.com>
3523
3524 * sysdeps/unix/opendir.c (__opendir): Make sure even struct dirent64
3525 fits into allocation. Add padding on 32-bit arches so that
3526 dirp->data is enough aligned for struct dirent64.
3527 Avoid clearing of the buffer, just clear DIR structure.
3528
3529 2003-08-26 Ulrich Drepper <drepper@redhat.com>
3530
3531 * nss/nsswitch.c: Add libc_hidden_def for __nss_lookup_function.
3532 * nss/nsswitch.h: Add libc_hidden_proto for __nss_lookup_function.
3533
3534 2003-08-26 Steven Munroe <sjmunroe@us.ibm.com>
3535
3536 * sysdeps/powerpc/powerpc64/elf/Makefile: New file.
3537
3538 2003-08-26 Jakub Jelinek <jakub@redhat.com>
3539
3540 * login/programs/utmpdump.c (print_entry): Cast tv_usec to long
3541 to match format string.
3542 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (union semun): Add
3543 __old_buf.
3544 (__new_semctl): Shut up warning.
3545 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
3546 (_dl_string_hwcap): Add __attribute__ ((always_inline)).
3547
3548 2003-08-26 Jakub Jelinek <jakub@redhat.com>
3549
3550 * elf/ldconfig.c (search_dir): When checking for GNU-style .so
3551 link file use the real file name, not the resolved name we got by
3552 following the symlinks.
3553
3554 2003-08-25 Ulrich Drepper <drepper@redhat.com>
3555
3556 * libio/oldfileops.c (_IO_old_file_init): Initialize _mode field
3557 if the object size is large enough.
3558
3559 2003-08-25 Jakub Jelinek <jakub@redhat.com>
3560
3561 * elf/ldconfig.c (search_dir): Treat symlink as regular file
3562 if it won't point to itself unless it is .so symlink for the linker.
3563
3564 2003-08-25 Ulrich Drepper <drepper@redhat.com>
3565
3566 * libio/libio.h (_IO_fwide): In the mode==0 optimization, don't
3567 use _mode if _IO_fwide_maybe_incompatible.
3568 * libio/iofwide.c (_IO_fwide): Move the test for mode == 0 after
3569 the compatibility test.
3570
3571 2003-08-25 Jakub Jelinek <jakub@redhat.com>
3572
3573 * elf/cache.c (save_cache): Don't write beyond end of file_entries
3574 buffer.
3575 Duplicate last old cache entry if the count would be odd.
3576
3577 2003-08-25 Andreas Jaeger <aj@suse.de>
3578
3579 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Cast arguments of
3580 __LONG_LONG_PAIR to long.
3581
3582 2003-08-25 Philip Blundell <philb@gnu.org>
3583
3584 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define.
3585 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
3586
3587 2003-08-18 Alfred M. Szmidt <ams@kemisten.nu>
3588
3589 * sysdeps/generic/bits/libc-lock.h (__libc_cleanup_pop): Redefine
3590 and use __libc_cleanup_region_end instead.
3591
3592 2003-08-25 Ulrich Drepper <drepper@redhat.com>
3593
3594 * elf/ldconfig.c (search_dir): Revert patch of 2003-7-21.
3595
3596 2003-08-22 Ulrich Drepper <drepper@redhat.com>
3597
3598 * io/fcntl.h (posix_fallocate): Change type of third parameter to
3599 off_t.
3600 (posix_fallocate64): Change type of third parameter to off64_t.
3601 * sysdeps/generic/posix_fallocate.c: Adjust for type change.
3602 * sysdeps/posix/posix_fallocate.c: Likewise.
3603 * sysdeps/generic/posix_fallocate64.c: Likewise.
3604 * sysdeps/posix/posix_fallocate64.c: Likewise. Add compatibility
3605 code for 32-bit platforms.
3606 * sysdeps/unix/sysv/linux/i386/Versions: Add new version for
3607 posix_fallocate64.
3608 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Likewise.
3609 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
3610 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
3611
3612 2003-08-19 Ulrich Drepper <drepper@redhat.com>
3613
3614 * string/bits/string2.h (__STRING2_COPY_TYPE): Add attribute to
3615 the type, not to name.
3616
3617 * stdio-common/test-vfprintf.c (main): Don't write temporary file
3618 into source directory.
3619
3620 * malloc/malloc.c (_int_free): Add cheap test for some invalid
3621 block sizes.
3622
3623 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo in
3624 syscall name.
3625
3626 2003-08-18 Ulrich Drepper <drepper@redhat.com>
3627
3628 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Fold EISDIR error
3629 into EINVAL.
3630
3631 2003-08-18 H.J. Lu <hongjiu.lu@intel.com>
3632
3633 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Use _dl_reloc_bad_type.
3634 (elf_machine_lazy_rel): Likewise.
3635
3636 2003-08-18 Art Haas <ahaas@airmail.net>
3637
3638 * malloc/malloc.h: Remove unneeded ';' where closing the C++
3639 extern block.
3640
3641 2003-08-18 Ulrich Drepper <drepper@redhat.com>
3642
3643 * sysdeps/ia64/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Support
3644 loading big binaries where @gprel(sym) cannot be handled in 'add'
3645 but instead has to be used with 'movl'.
3646
3647 2003-08-17 Juergen Kreileder <jk@blackdown.de>
3648 Andreas Jaeger <aj@suse.de>
3649
3650 * sysdeps/x86_64/bits/byteswap.h: New file.
3651
3652 2003-08-17 Andreas Jaeger <aj@suse.de>
3653
3654 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo.
3655
3656 2003-08-16 Jakub Jelinek <jakub@redhat.com>
3657
3658 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_ERRVAL,
3659 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
3660 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_ERRVAL,
3661 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
3662 * sysdeps/unix/alpha/sysdep.h (PSEUDO_ERRVAL,
3663 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
3664 * sysdeps/unix/mips/sysdep.h (PSEUDO_ERRVAL,
3665 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
3666 * sysdeps/unix/sparc/sysdep.h (PSEUDO_ERRVAL,
3667 ret_ERRVAL): Define.
3668 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_ERRVAL,
3669 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
3670 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO_ERRVAL,
3671 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
3672 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO_ERRVAL):
3673 Define.
3674 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_ERRVAL,
3675 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
3676 * sysdeps/unix/sysdep.h (PSEUDO_END_ERRVAL): Define.
3677
3678 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64,
3679 posix_fadvise64_64): Remove.
3680 * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64): Add
3681 V flag.
3682 * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64):
3683 Likewise.
3684 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
3685 (posix_fadvise64): Likewise.
3686 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
3687 (posix_fadvise64): Likewise.
3688 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
3689 (posix_fadvise64): Likewise.
3690 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64):
3691 Likewise.
3692 * sysdeps/unix/sysv/linux/i386/posix_fadvise64_64.S: Moved to...
3693 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: ...here.
3694 (__posix_fadvise64_l64): Fix a typo in fadvise64 syscall invocation.
3695 (__posix_fadvise64_l32): New function.
3696 * sysdeps/unix/sysv/linux/i386/Makefile: Revert last change.
3697 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Export
3698 posix_fadvise64@@GLIBC_2.3.3.
3699 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
3700 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
3701 * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Return
3702 error value.
3703 * sysdeps/unix/sysv/linux/posix_fadvise64.c: New file.
3704
3705 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3706 (SYSCALL_ERROR_HANDLER): Use TLS errno/__libc_errno if USE___THREAD.
3707
3708 2003-08-15 Jakub Jelinek <jakub@redhat.com>
3709
3710 * sysdeps/sparc/sparc32/dl-machine.h (WEAKADDR): Remove.
3711 (elf_machine_matches_host): Remove weak extern stuff.
3712 Use GL(dl_hwcap) unconditionally and GL(dl_hwcap_mask) if SHARED.
3713 (elf_machine_runtime_setup, sparc_fixup_plt): Remove weak extern
3714 stuff. Use GL(dl_hwcap) unconditionally.
3715
3716 2003-08-16 Alan Modra <amodra@bigpond.net.au>
3717
3718 * sysdeps/powerpc/powerpc64/elf/start.S: Add a nop after
3719 __libc_start_main branch.
3720
3721 2003-08-16 Jakub Jelinek <jakub@redhat.com>,
3722 Andreas Jaeger <aj@suse.de>
3723
3724 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS
3725 instead of setting errno.
3726 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
3727
3728 2003-08-16 Andreas Jaeger <aj@suse.de>
3729
3730 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype.
3731 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
3732
3733 2003-08-15 Ulrich Drepper <drepper@redhat.com>
3734
3735 * io/fcntl.h (posix_fadvise64): Change type of third parameter to
3736 off_t.
3737 * sysdeps/unix/sysv/linux/posix_fadvise.c: Adjust definition.
3738 * sysdeps/unix/make-syscalls.sh: Recognize V prefix to the parameter
3739 description indicating the error value is returned, not -1.
3740 * sysdeps/unix/sysv/linux/kernel-features.h: Add definition of
3741 __ASSUME_FADVISE64_64_SYSCALL.
3742 * sysdeps/unix/sysv/linux/syscalls.list: Don't define madvise and
3743 posix_madvise in one file. Have posix_madvise defined with error
3744 value returned.
3745 Define posix_fadvise64_64 entry. Add version info to posix_fadvise64
3746 entry.
3747 * sysdeps/unix/sysv/linux/i386/posix_fadvise.S: New file.
3748 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_ERRVAL,
3749 PSEUDO_END_ERRVAL, and ret_ERRVAL.
3750 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
3751 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
3752 * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.3.3]: Add
3753 posix_fadvise64.
3754
3755 * posix/Makefile (routines): Add posix_madvise.
3756 * sysdeps/generic/madvise.c: Don't define posix_madvise.
3757 * sysdeps/generic/posix_madvise.c: New file.
3758 * sysdeps/unix/sysv/aix/posix_madvise.c: New file.
3759 * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (subdir_routines):
3760 Add posix_fadvise64_64.
3761
3762 2003-08-15 Jakub Jelinek <jakub@redhat.com>
3763
3764 * assert/assert.h (assert_perror): Use __builtin_expect for gcc >=
3765 3.0, not for !gcc or gcc < 3.0.
3766
3767 2003-08-11 Carlos O'Donell <carlos@baldric.uwo.ca>
3768
3769 * dlfcn/default.c (main): Cast dlsym loaded value to same type as main.
3770 Address passed to test_in_mod1 and test_in_mod2 without casting.
3771 * dlfcn/defaultmod1.c: Change prototype of test_in_mod1.
3772 (test_in_mod1): Cast dlsym loaded value to same type as mainp.
3773 * dlfcn/defaultmod2.c: Change prototype of test_in_mod2.
3774 (test_in_mod2): Cast dlsym loaded value to same type as mainp.
3775
3776 2003-08-15 Jakub Jelinek <jakub@redhat.com>
3777
3778 * sysdeps/sparc/sparc32/elf/configure.in (libc_cv_sparc32_tls):
3779 Change quotes before using [].
3780
3781 * sysdeps/unix/sysv/linux/sparc/sys/user.h: New file.
3782
3783 * sysdeps/sparc/sparc32/bits/atomic.h (__sparc32_atomic_lock):
3784 Renamed to...
3785 (__sparc32_atomic_locks): ...this. Change into 64-byte array.
3786 (__sparc32_atomic_do_lock, __sparc32_atomic_do_unlock): Add addr
3787 argument. Select one of 64 locks from address bits.
3788 (atomic_compare_and_exchange_val_acq,
3789 atomic_compare_and_exchange_bool_acq): Pass memory address to
3790 __sparc32_atomic_do_{,un}lock.
3791
3792 2003-08-14 Ulrich Drepper <drepper@redhat.com>
3793
3794 * assert/assert.h (assert): Use !! in front of expression to allow
3795 use of pointers.
3796
3797 * iconvdata/cp932.c: Fixed checking of a few border of code areas.
3798 Changed conversion of JIS X 0201 from using a table to calculating.
3799 * iconvdata/euc-jp-ms.c: Fixed conversion table and rewrote
3800 conversion routine. Changed CHARSET_NAME definition from EUCJP-MS to
3801 EUC-JP-MS.
3802 * iconvdata/tst-tables.sh: Add CP932 and EUC-JP-MS.
3803 * iconvdata/CP932.irreversible: New file.
3804 * iconvdata/EUC-JP-MS.irreversible: New file.
3805 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
3806
3807 2003-08-13 Ulrich Drepper <drepper@redhat.com>
3808
3809 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add time syscall.
3810
3811 * elf/Makefile: Use LC_ALL=C in a few cases where we call external
3812 text processing tools.
3813
3814 * sysdeps/pthread/aio_misc.h (struct waitlist): Don't add caller_pid
3815 element unless BROKEN_THREAD_SIGNALS is defined.
3816 (struct requestlist): Likewise.
3817 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Don't fill in
3818 caller_pid of new request unless BROKEN_THREAD_SIGNALS is defined.
3819 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
3820 * sysdeps/pthread/aio_notify.c (__aio_notify_only): Remove caller_pid
3821 parameter unless BROKEN_THREAD_SIGNALS is defined. Adjust callers.
3822 Pass current PID to __aio_sigqueue.
3823 * sysdeps/pthread/lio_listio.c (lio_listio): Adjust __aio_notify_only
3824 call. Don't initialize caller_pid field of waitlist element.
3825
3826 2003-08-12 Jakub Jelinek <jakub@redhat.com>
3827
3828 * libio/libioP.h (_IO_vtable_offset): Define.
3829 * libio/freopen.c (freopen): Use it.
3830 * libio/ioputs.c (_IO_puts): Likewise.
3831 * libio/freopen64.c (freopen64): Likewise.
3832 * libio/genops.c (__underflow, __uflow, _IO_flush_all_lockp):
3833 Likewise.
3834 * libio/iofclose.c (_IO_new_fclose): Likewise.
3835 * libio/iofputs.c (_IO_fputs): Likewise.
3836 * libio/ioftell.c (_IO_ftell): Likewise.
3837 * libio/iofwrite.c (_IO_fwrite): Likewise.
3838 * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
3839 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
3840 * stdio-common/vfprintf.c (ORIENT, vfprintf): Likewise.
3841 * stdio-common/vfscanf.c (ORIENT): Likewise.
3842
3843 2003-08-11 Ulrich Drepper <drepper@redhat.com>
3844
3845 * assert/assert.h: Use __builtin_expect in assert and
3846 assert_perror definitions if possible.
3847
3848 2003-08-07 Jakub Jelinek <jakub@redhat.com>
3849
3850 * sysdeps/generic/ldsodefs.h (_rtld_global): Add
3851 _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
3852 * elf/rtld.c (rtld_lock_default_lock_recursive,
3853 rtld_lock_default_unlock_recursive): New functions.
3854 (dl_main): Initialize _dl_rtld_lock_recursive and
3855 _dl_rtld_unlock_recursive.
3856
3857 2003-08-05 Jakub Jelinek <jakub@redhat.com>
3858
3859 * elf/ldconfig.c (main): Append SLIBDIR and LIBDIR to
3860 config_file directories instead of prepending.
3861
3862 2003-08-02 Ulrich Drepper <drepper@redhat.com>
3863
3864 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3865 __ASSUME_CLONE_STOPPED.
3866
3867 2003-08-01 Ulrich Drepper <drepper@redhat.com>
3868
3869 * sysdeps/generic/bits/libc-lock.h
3870 (__libc_cleanup_push,__libc_cleanup_pop): Define even here.
3871
3872 2003-08-01 Roland McGrath <roland@frob.com>
3873
3874 * sysdeps/mach/hurd/getdents.c: Just use sysdeps/generic/getdents.c.
3875
3876 2003-07-31 Jakub Jelinek <jakub@redhat.com>
3877
3878 * sysdeps/generic/bits/types.h (__ssize_t): Use __SSIZE_T_TYPE
3879 instead of __SWORD_TYPE.
3880 * sysdeps/generic/bits/typesizes.h (__SSIZE_T_TYPE): Define.
3881 * sysdeps/mach/hurd/bits/typesizes.h (__SSIZE_T_TYPE): Define.
3882 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h (__SSIZE_T_TYPE):
3883 Define.
3884 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__SSIZE_T_TYPE):
3885 Define.
3886 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__SSIZE_T_TYPE):
3887 Define.
3888 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New file.
3889
3890 * dlfcn/dlerror.c (once): New.
3891 (dlerror): Call __libc_once.
3892 (_dlerror_run): Remove once.
3893
3894 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
3895 Sync with 2.5.7 and 2.5.73 kernel changes.
3896
3897 * dlfcn/eval.c (funcall): Add noinline attribute to shut up warnings.
3898 * elf/rtld.c (dl_main): Cast ElfW(Addr) arguments with %Zx/%Zd
3899 formats to size_t.
3900 * elf/dl-lookup.c (_dl_debug_bindings): Likewise.
3901 * elf/tst-tls6.c (do_test): Use %zd format for l_tls_modid.
3902 * elf/tst-tls8.c (do_test): Use %zd format for modid1 and modid2.
3903 * gmon/tst-sprofil.c (main): Add parens to shut up warning.
3904 * iconv/tst-iconv3.c (main): Use %td instead of %zd for pointer
3905 difference argument.
3906 * stdio-common/tst-wc-printf.c (main): Cast arguments with %C
3907 format to wint_t.
3908 * stdlib/tst-limits.c (main): For WORD_BIT and LONG_BIT, use
3909 %d format and cast expected value to int.
3910 * sysdeps/generic/libc-start.c (STATIC): Add
3911 __attribute__((always_inline) if LIBC_START_MAIN is already defined.
3912 * sysdeps/powerpc/fpu/w_sqrt.c (a_nan, a_inf): Change from uint32_t
3913 to ieee_float_shape_type.
3914 (__sqrt): Avoid type punning.
3915 * sysdeps/powerpc/fpu/w_sqrtf.c (a_nan, a_inf): Change from uint32_t
3916 to ieee_float_shape_type.
3917 (__sqrtf): Avoid type punning.
3918 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Don't define
3919 refsym if in dl-conflict.c.
3920 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
3921 * sysdeps/unix/sysv/linux/i386/semctl.c (union semun): Add __old_buf.
3922 (__new_semctl): Shut up warning.
3923 * sysdeps/unix/sysv/linux/semctl.c (union semun): Add __old_buf.
3924 (__new_semctl): Shut up warning.
3925 * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Wrap long lines.
3926 Change old into union of __old_shmid_ds and __old_shminfo structs.
3927 Adjust all users.
3928 * wcsmbs/wcsmbs-tst1.c (main): Cast arguments with %C format to wint_t.
3929
3930 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Fix actime and
3931 modtime computation.
3932 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
3933 * sysdeps/posix/utimes.c (__utimes): Likewise.
3934
3935 2003-07-30 Jakub Jelinek <jakub@redhat.com>
3936
3937 * elf/dl-reloc.c (_dl_allocate_static_tls): Don't return any value,
3938 call dl_signal_error directly. If already relocated, call
3939 GL(dl_init_static_tls) directly, otherwise queue it for later.
3940 (CHECK_STATIC_TLS): Undo 2003-07-24 change.
3941 * elf/rtld.c (dl_main): Initialize GL(dl_init_static_tls).
3942 * elf/dl-open.c (dl_open_worker): Call GL_dl_init_static_tls
3943 for all static TLS initializations delayed in _dl_allocate_static_tls.
3944 * elf/dl-support.c (_dl_init_static_tls): New variable.
3945 * include/link.h (struct link_map): Add l_need_tls_init.
3946 * sysdeps/generic/ldsodefs.h (_rtld_global): Add _dl_init_static_tls.
3947 (_dl_nothread_init_static_tls): New prototype.
3948 (_dl_allocate_static_tls): Adjust prototype.
3949
3950 * elf/tls-macros.h (VAR_INT_DEF): Add alignment directive.
3951
3952 2003-07-31 Alexandre Oliva <aoliva@redhat.com>
3953
3954 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
3955 elf_machine_rel_relative, elf_machine_rela_relative): Don't assume
3956 reloc_addr is aligned.
3957 * sysdeps/alpha/dl-machine.h (elf_machine_rela,
3958 elf_machine_rela_relative): Adjust.
3959 * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela,
3960 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
3961 * sysdeps/cris/dl-machine.h (elf_machine_rela,
3962 elf_machine_rela_relative): Adjust.
3963 * sysdeps/hppa/dl-machine.h (elf_machine_rela,
3964 elf_machine_rela_relative): Adjust.
3965 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela,
3966 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
3967 * sysdeps/ia64/dl-machine.h (elf_machine_rela,
3968 elf_machine_rela_relative): Adjust.
3969 * sysdeps/m68k/dl-machine.h (elf_machine_rela,
3970 elf_machine_rela_relative): Adjust.
3971 * sysdeps/mips/dl-machine.h (elf_machine_rela,
3972 elf_machine_rela_relative): Adjust.
3973 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela,
3974 elf_machine_rela_relative): Adjust.
3975 * sysdeps/powerpc/powerpc64/dl-machine.h
3976 (elf_machine_rela_relative, elf_machine_rela): Adjust.
3977 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela,
3978 elf_machine_rela_relative): Adjust.
3979 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela,
3980 elf_machine_rela_relative): Adjust.
3981 * sysdeps/sh/dl-machine.h (elf_machine_rela,
3982 elf_machine_rela_relative): Adjust.
3983 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
3984 elf_machine_rela_relative): Adjust.
3985 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
3986 elf_machine_rela_relative): Adjust.
3987 * sysdeps/x86_64/dl-machine.h (elf_machine_rela,
3988 elf_machine_rela_relative): Adjust.
3989
3990 2003-07-29 Ulrich Drepper <drepper@redhat.com>
3991
3992 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Restore
3993 alignment of TCB used before the last change so that it matches
3994 ld's output for IE code.
3995
3996 2003-07-29 Jakub Jelinek <jakub@redhat.com>
3997
3998 * include/ctype.h (__ctype_b_loc, __ctype_toupper_loc,
3999 __ctype_tolower_loc): Avoid "dereferencing type-punned pointer will
4000 break strict-aliasing rules" warnings.
4001
4002 2003-07-29 Roland McGrath <roland@redhat.com>
4003
4004 * elf/Makefile: Revert accidental changes in last commit.
4005 * elf/dl-support.c: Likewise.
4006
4007 * rt/tst-timer2.c: New file.
4008 * rt/Makefile (tests): Add it.
4009
4010 2003-07-25 Jakub Jelinek <jakub@redhat.com>
4011
4012 * elf/dl-support.c (_dl_hwcap): Add nocommon attribute.
4013
4014 2003-07-29 Roland McGrath <roland@redhat.com>
4015
4016 * elf/Makefile (tests) [$(build-shared) = yes]:
4017 Depend on $(test-modules).
4018 * dlfcn/Makefile: Likewise.
4019
4020 2003-07-28 Roland McGrath <roland@redhat.com>
4021
4022 * sysdeps/generic/bits/types.h (__STD_TYPE): New macro.
4023 Use that instead of `typedef' when using __*_TYPE macros in rhs.
4024
4025 * elf/tst-tls14.c [USE_TLS && HAVE___THREAD]: Conditionalize on this.
4026 * elf/tst-tlsmod14a.c: Likewise.
4027
4028 * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h>
4029 before <linux/sysctl.h>.
4030
4031 2003-07-27 Ulrich Drepper <drepper@redhat.com>
4032
4033 * sysdeps/unix/sysv/syscalls.list: time syscall never fails.
4034 * sysdeps/unix/sysv/linux/x86_64/time.S: time syscall never fails.
4035 * sysdeps/unix/sysv/i386/time.S: time syscall never fails.
4036 * sysdeps/unix/syscalls.list: umask syscall never fails.
4037
4038 2003-07-27 Andreas Jaeger <aj@suse.de>
4039
4040 * sysdeps/unix/sysv/linux/init-first.c: Mark init as used.
4041
4042 2003-07-25 Jakub Jelinek <jakub@redhat.com>
4043
4044 * sysdeps/unix/sysv/linux/a.out.h: Replace with i386 version.
4045 Include bits/a.out.h.
4046 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4047 bits/a.out.h.
4048 * sysdeps/unix/sysv/linux/bits/a.out.h: New file.
4049 * sysdeps/unix/sysv/linux/i386/bits/a.out.h: New file.
4050 * sysdeps/unix/sysv/linux/m68k/bits/a.out.h: New file.
4051 * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: New file.
4052 * sysdeps/unix/sysv/linux/alpha/a.out.h: New file.
4053 * sysdeps/unix/sysv/linux/alpha/bits/a.out.h: New file.
4054 * sysdeps/unix/sysv/linux/sparc/a.out.h: New file.
4055 * sysdeps/unix/sysv/linux/sparc/bits/a.out.h: New file.
4056
4057 2003-07-24 Jakub Jelinek <jakub@redhat.com>
4058
4059 * sysdeps/pthread/aio_cancel.c (aio_cancel): Return AIO_ALLDONE
4060 if aiocbp != NULL and has already completed. Return -1/EINVAL if
4061 aiocbp->aio_fildes does not match fildes.
4062
4063 2003-07-24 Ulrich Drepper <drepper@redhat.com>
4064
4065 * timezone/zic.c (rpytime): Replace cheap overflow check with a
4066 functioning one.
4067
4068 * include/link.h (struct link_map): Add l_tls_firstbyte_offset field.
4069 * sysdeps/generic/dl-tls.c [TLS_TCB_AT_TP] (_dl_determine_tlsoffset):
4070 Fix calculation of offsets to take misalignment of first byte in
4071 file into account.
4072 * elf/dl-load.c (_dl_map_object_from_fd): Initialize
4073 l_tls_firstbyte_offset field.
4074 * elf/rtld.c (_dl_start_final, _dl_start, dl_main): Likewise.
4075 * elf/dl-reloc.c (_dl_allocate_static_tls): Change return type to int.
4076 Take l_tls_firstbyte_offset information into account.
4077 (CHECK_STATIC_TLS): _dl_allocate_static_tls can fail now.
4078 * sysdeps/generic/ldsodefs.h: Adjust _dl_allocate_static_tls prototype.
4079 * elf/Makefile: Add rules to build and run tst-tls14.
4080 * elf/tst-tls14.c: New file.
4081 * elf/tst-tlsmod14a.c: New file.
4082 * elf/tst-tlsmod14b.c: New file.
4083
4084 2003-07-23 Jakub Jelinek <jakub@redhat.com>
4085
4086 * sysdeps/pthread/lio_listio.c (LIO_OPCODE_BASE): Define.
4087 (lio_listio): Use it.
4088 * sysdeps/pthread/lio_listio64.c: Include lio_listio.c instead of
4089 after few defines to avoid duplication.
4090
4091 2003-07-22 Jakub Jelinek <jakub@redhat.com>
4092
4093 * include/stdio.h (__libc_fatal): Add libc_hidden_proto.
4094 * include/dlfcn.h (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
4095 Likewise.
4096 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
4097 Add libc_hidden_def.
4098 * sysdeps/generic/libc_fatal.c (__libc_fatal): Likewise.
4099 * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
4100 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Likewise.
4101 * elf/Versions (libc): Export __libc_dlopen_mode@@GLIBC_PRIVATE,
4102 __libc_dlsym@@GLIBC_PRIVATE and __libc_dlclose@@GLIBC_PRIVATE.
4103 * libio/Versions (libc): Export __libc_fatal@@GLIBC_PRIVATE.
4104 * sysdeps/generic/unwind-dw2.c: Readd #ifs removed during last
4105 change.
4106 * sysdeps/generic/unwind.inc: Removed.
4107
4108 * include/resolv.h (__resp): Declare. Define to __libc_resp
4109 if in libc.so.
4110 (_res): If USE___THREAD, define to (*__resp).
4111 * resolv/res_libc.c (_res): Normal .bss variable with compat_symbol
4112 even if USE___THREAD.
4113 (__resp): New __thread variable.
4114 (__libc_resp): New alias.
4115 * resolv/Versions (libc): Export _res@GLIBC_2.0 even if
4116 USE_TLS && HAVE___THREAD. Export __resp@@GLIBC_PRIVATE.
4117 * sysdeps/generic/res-state.c (__res_state): Return __resp
4118 if USE___THREAD.
4119
4120 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
4121
4122 * elf/dl-support.c (_dl_hwcap): New variable.
4123 (_dl_aux_init): Initialize GL(dl_hwcap) for static binaries.
4124
4125 * sysdeps/i386/fpu/fclrexcpt.c: Include <unistd.h>, <ldsodefs.h>
4126 and <dl-procinfo.h>.
4127 (__feclearexcept): Clear MXCSR if needed.
4128 * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
4129
4130 * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Document
4131 that newer hardware needs more than these macros.
4132
4133 * sysdeps/i386/setfpucw.c: New file.
4134
4135 2003-07-22 Jakub Jelinek <jakub@redhat.com>
4136
4137 * elf/Makefile (CFLAGS-ldconfig.c): Define IS_IN_ldconfig.
4138 * elf/ldconfig.c: Include dl-procinfo.c.
4139 (PROCINFO_CLASS): Define.
4140 * sysdeps/generic/ldsodefs.h (PROCINFO_CLASS): Define.
4141 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: New file.
4142 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: New file.
4143 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (PROCINFO_CLASS):
4144 Define if not yet defined. Use it instead of EXTERN. Undefine
4145 at the end of the file.
4146 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (PROCINFO_CLASS):
4147 Likewise.
4148 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c
4149 (PROCINFO_CLASS): Likewise.
4150 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c
4151 (PROCINFO_CLASS): Likewise.
4152
4153 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
4154
4155 * elf/ldconfig.c (main): Issue a fatal error if relative path
4156 is used to build cache.
4157
4158 2003-07-22 Ulrich Drepper <drepper@redhat.com>
4159
4160 * elf/readlib.c (process_file): Avoid possible overflow in assignment.
4161
4162 2003-07-21 Art Haas <ahaas@airmail.net>
4163
4164 * manual/charset.texi (Converting a Character): Fix example code so a
4165 valid pointer is returned.
4166
4167 2003-07-22 Andreas Jaeger <aj@suse.de>
4168
4169 * elf/readlib.c (process_file): Check that file is a shared
4170 object.
4171
4172 * elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
4173 will not optimize it away.
4174 (__DTOR_END__): Likewise.
4175 (__CTOR_END__): Likewise.
4176
4177 * include/libc-symbols.h (_elf_set_element): Use attribute used so
4178 that gcc will not optimize it away.
4179 (link_warning): Likewise.
4180
4181 2003-07-22 Ulrich Drepper <drepper@redhat.com>
4182
4183 * wcsmbs/wcpncpy.c (__wcpncpy): Correct destination pointer handling.
4184 * wcsmbs/Makefile (tests): Add tst-wcpncpy.
4185 * wcsmbs/tst-wcpncpy.c: New file.
4186
4187 2003-07-21 Ulrich Drepper <drepper@redhat.com>
4188
4189 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_STOPPED): Define.
4190
4191 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of
4192 stmxcsr and ldmxcsr.
4193
4194 * Makerules (build-module-helper): Add -z defs unless explicitly said
4195 not to do it.
4196 * dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs
4197 which has undefined symbols.
4198 * elf/Makefile: Likewise.
4199
4200 * sysdeps/i386/fpu/fedisblxcpt.c: Use dl_hwcap, not dl_hwcap_mask.
4201 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
4202 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
4203 * sysdeps/i386/fpu/fesetround.c: Likewise.
4204 * sysdeps/i386/fpu/ftestexcept.c: Likewise.
4205
4206 2003-07-21 HJ Lu <hongjiu.lu@intel.com>
4207
4208 * elf/ldconfig.c (search_dir): Treat symlink as regular file
4209 if it won't point to itself.
4210
4211 2003-07-20 Ulrich Drepper <drepper@redhat.com>
4212
4213 * sysdeps/ia64/hp-timing.h (REPEAT_READ): Cast to long int not to int.
4214
4215 2003-07-20 Andreas Jaeger <aj@suse.de>
4216
4217 * iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called
4218 STANDARD_TO_LOOP_ERR_HANDLER.
4219 * iconvdata/euc-jp-ms.c (BODY): Likewise.
4220
4221 2003-07-19 Ulrich Drepper <drepper@redhat.com>
4222
4223 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO): Fix typo.
4224
4225 * sysdeps/unix/sysv/linux/syscalls.list: Remove affinity syscalls.
4226
4227 2003-07-16 Daniel Jacobowitz <drow@mvista.com>
4228 Andreas Jaeger <aj@suse.de>
4229
4230 * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to
4231 256K, remove unneeded declaration of __getpagesize.
4232
4233 2003-07-16 Andreas Schwab <schwab@suse.de>
4234
4235 * sysdeps/unix/sysv/linux/futimes.c: Include <string.h>.
4236
4237 2003-07-15 Ulrich Drepper <drepper@redhat.com>
4238
4239 * io/test-utime.c (main): Make test yet more robust.
4240
4241 2003-07-14 Ulrich Drepper <drepper@redhat.com>
4242
4243 More cancellation handling fixups.
4244 * sysdeps/unix/sysv/linux/not-cancel.h: Add waitpid_not_cancel.
4245 * sysdeps/generic/not-cancel.h: Likewise.
4246 * catgets/open_catalog.c: Use not-cancelable syscalls.
4247 * time/Makefile (CFLAGS-getdate.c): Add -fexceptions.
4248 * sysdeps/unix/sysv/linux/llseek.c: Must not be cancelable.
4249 * sysdeps/unix/syscalls.list: Don't mark lseek as cancelable.
4250 * dlfcn/dlfcn.h: Mark dlopen with __THROW again.
4251 * io/fcntl.h: Don't mark posix_fallocate with __THROW.
4252 * libio/fileops.c: Use not-cancelable syscalls for fclose.
4253 * libio/iopopen.c: Use no-cancelable syscalls.
4254 * libio/stdio.h: Mark popen and pclose with __THROW again.
4255 * misc/Makefile (CFLAGS-syslog.c): Add -fexceptions.
4256 * misc/syslog.c: Fix locking and cancellation cleanup handling.
4257 * posix/unistd.h: Mark ttyname and ttyname_r again with __THROW.
4258 * stdio-common/Makefile (CFLAGS-tmpfile.c, CFLAGS-tmpfile64.c,
4259 CFLAGS-tempname.c): Add -fexceptions.
4260 * stdlib/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
4261 * string/string.h: Mark strerror and strerror_r with _THROW again.
4262 * sysdeps/generic/unwind.inc: New file. Copied from gcc.
4263 * sysdeps/generic/unwind-dw2.c: Update from gcc version. Remove
4264 #ifs since we now need all the code compiled.
4265 * sysdeps/posix/spawni.c: Use close_not_cancel instead of close.
4266 * sysdeps/unix/closedir.c: Use not-cancelable syscalls.
4267 * sysdeps/unix/opendir.c: Likewise.
4268
4269 * iconvdata/Makefile (modules): Add CP932 and EUC-JP-MS.
4270 Add rule for EUC-JP-MS dependency.
4271 * iconvdata/cp932.c: New file.
4272 * iconvdata/eucjp-ms.c: New file.
4273 * iconvdata/gconv-modules: Add entries for CP932 and EUC-JP-MS.
4274 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
4275
4276 2003-07-15 Jakub Jelinek <jakub@redhat.com>
4277
4278 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket): Add
4279 cfi directives.
4280
4281 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4282
4283 * sysdeps/unix/sysv/linux/kernel-features.h
4284 (__ASSUME_FIXED_CLONE_SYSCALL): New macro.
4285 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Use it.
4286
4287 * sysdeps/unix/sysv/linux/utimes.c: Include sysdep.h.
4288
4289 2003-07-14 Ulrich Drepper <drepper@redhat.com>
4290
4291 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4292 __ASSUME_TGKILL for Alpha appropriately.
4293
4294 2003-07-12 Ulrich Drepper <drepper@redhat.com>
4295
4296 * sysdeps/unix/sysv/linux/bits/statfs.h (_STATFS_F_FRSIZE): Define.
4297 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h (_STATFS_F_FRSIZE):
4298 Likewise.
4299 * sysdeps/unix/sysv/linux/s390/bits/statfs.h (_STATFS_F_FRSIZE):
4300 Likewise.
4301
4302 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4303 __ASSUME_UTIMES for x86 and kernels > 2.5.75.
4304
4305 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with
4306 second parameter == NULL.
4307 * sysdeps/unix/sysv/linux/utimes.c: New file.
4308
4309 2003-07-12 Jakub Jelinek <jakub@redhat.com>
4310
4311 * sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h.
4312 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix
4313 a typo.
4314
4315 2003-07-12 Ulrich Drepper <drepper@redhat.com>
4316
4317 * time/sys/time.h: Namespace cleanup.
4318 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4319 __ASSUME_UTIMES for the architectures which always had the syscall.
4320 * sysdeps/unix/sysv/linux/futimes.c: New file.
4321
4322 2003-07-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4323
4324 * sysdeps/unix/sysv/linux/sh/socket.S: Save and restore the PR
4325 register across CENABLE and CDISABLE.
4326
4327 2003-07-11 Jakub Jelinek <jakub@redhat.com>
4328
4329 * sysdeps/unix/sysv/linux/sigwait.c: Include string.h.
4330 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
4331 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
4332 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Cast value to unsigned
4333 int before assigning to max to avoid warnings.
4334
4335 2003-07-11 Jakub Jelinek <jakub@redhat.com>
4336
4337 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket): Add
4338 cfi directives.
4339 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Likewise.
4340 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
4341
4342 2003-07-10 Jakub Jelinek <jakub@redhat.com>
4343
4344 * sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of
4345 .data.rel.ro.local to "aw".
4346
4347 2003-07-10 Ulrich Drepper <drepper@redhat.com>
4348
4349 * sysdeps/m68k/Makefile: Remove CLFAGS-.oS addition.
4350 * Makeconfig (CFLAGS-.oS): Use PIC-ccflag instead of pic-ccflag.
4351 (PIC-ccflag): Define.
4352
4353 2003-07-04 Jakub Jelinek <jakub@redhat.com>
4354
4355 * sysdeps/s390/s390-32/elf/start.S: Emit position independent code
4356 if PIC.
4357 * sysdeps/s390/s390-64/elf/start.S: Likewise.
4358
4359 2003-07-07 Jakub Jelinek <jakub@redhat.com>
4360
4361 * sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address)
4362 into .data.rel.ro.local section if PIC to avoid DT_TEXTREL.
4363
4364 2003-07-07 Ulrich Drepper <drepper@redhat.com>
4365
4366 * sysdeps/unix/sysv/linux/kernel-features.h: Version
4367 __ASSUME_CORRECT_SI_PID and __ASSUME_TGKILL if possible.
4368
4369 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
4370 compilation with HAVE_AUX_SECURE defined.
4371
4372 2003-07-05 Richard Henderson <rth@redhat.com>
4373
4374 * sysdeps/alpha/elf/initfini.c: Avoid .ent/.end.
4375
4376 2003-07-03 Ulrich Drepper <drepper@redhat.com>
4377
4378 * configure.in: Also check for .cfi_rel_offset pseudo-op.
4379
4380 2003-07-03 Jakub Jelinek <jakub@redhat.com>
4381
4382 * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency): Fix a
4383 typo.
4384
4385 2003-07-03 Ulrich Drepper <drepper@redhat.com>
4386
4387 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_CLKTCK):
4388 Define.
4389 * sysdeps/unix/sysv/linux/prof-freq.h: New file.
4390
4391 2003-07-02 Jakub Jelinek <jakub@redhat.com>
4392
4393 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Protect new_sysinfo
4394 decl and use with #ifdef NEED_DL_SYSINFO.
4395
4396 2003-07-02 Ulrich Drepper <drepper@redhat.com>
4397
4398 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't set
4399 GL(dl_sysinfo) unles GL(dl_sysinfo_dso) is also set.
4400 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4401 __ASSUME_VSYSCALL only for 2.5.69 and up since this is when the
4402 vsyscall DSO was added.
4403
4404 * posix/bits/posix1_lim.h (_POSIX_NGROUPS_MAX): Define to 8 or 0
4405 depending on selected standard.
4406 (NGROUPS_MAX): Define to 8 if not defined.
4407
4408 2003-07-02 Andreas Jaeger <aj@suse.de>
4409
4410 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: New file.
4411
4412 2003-05-04 H.J. Lu <hongjiu.lu@intel.com>
4413
4414 * malloc/arena.c (arena_get2): Add atomic_write_barrier.
4415 * malloc/thread-m.h: Include <atomic.h>.
4416 (atomic_full_barrier): Provide default.
4417 (atomic_read_barrier): Likewise.
4418 (atomic_write_barrier): Likewise.
4419 * sysdeps/ia64/bits/atomic.h (atomic_full_barrier): New #define.
4420
4421 2003-06-30 Ulrich Drepper <drepper@redhat.com>
4422
4423 * sysdeps/generic/sysdep.h: Define cfi_rel_offset and CFI_REL_OFFSET.
4424
4425 2003-06-30 Richard Henderson <rth@redhat.com>
4426
4427 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_bool_*_int):
4428 Invert the sense of the return value.
4429 (__arch_exchange_16_int): Fix paste-o.
4430 (__arch_exchange_{32,64}_int): Fix think-o.
4431
4432 * sysdeps/unix/sysv/linux/alpha/clone.S: Load child_tid properly.
4433
4434 2003-06-30 Richard Henderson <rth@redhat.com>
4435
4436 * include/sys/resource.h (__getrusage): Mark hidden.
4437 * include/sys/time.h (__settimeofday, __setitimer, __utimes): Likewise.
4438 * include/sys/wait.h (__wait4): Likewise.
4439
4440 2003-06-17 Guido Guenther <agx@sigxcpu.org>
4441
4442 * sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT
4443 case.
4444 (xstat_conv): Rename to __xstat_conv and remove static inline.
4445 (xstat64_conv): Likewise.
4446
4447 2003-06-29 Ulrich Drepper <drepper@redhat.com>
4448
4449 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Handle parameter
4450 values which cannot be handled in one nanosleep call.
4451
4452 2003-06-25 Alfred M. Szmidt <ams@kemisten.nu>
4453
4454 * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros.
4455 (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them.
4456
4457 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix.
4458
4459 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
4460
4461 * sysdeps/unix/sysv/linux/net/if_arp.h: Sync with kernel header,
4462 fix typo.
4463
4464 2003-06-26 Steven Munroe <sjmunroe@us.ibm.com>
4465
4466 * sysdeps/unix/sysv/linux/xstatconv.h [!STAT_IS_KERNEL_STAT]:
4467 Conditionalize function definitions that use struct kernel_stat.
4468 * sysdeps/unix/sysv/linux/fxstat.c: Remove __syscall_fstat extern.
4469 * sysdeps/unix/sysv/linux/lxstat.c: Remove __syscall_lstat extern.
4470 * sysdeps/unix/sysv/linux/xstat.c: Remove __syscall_stat extern.
4471
4472 2003-06-28 Ulrich Drepper <drepper@redhat.com>
4473
4474 * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Add real
4475 implementation.
4476
4477 2003-06-07 Thorsten Kukuk <kukuk@suse.de>
4478
4479 * nis/nss_compat/compat-grp.c: Remove unused nis_first variable.
4480 (getgrent_next_file): Don't store group name to early in blacklist.
4481
4482 * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Save strlen result
4483 and use memcpy instead of strcpy.
4484
4485 2003-06-28 Ulrich Drepper <drepper@redhat.com>
4486
4487 * nis/nss_compat/compat-grp.c: Optimize several little things. Use
4488 stream unlocked.
4489 * nis/nss_compat/compat-initgroups.c: Likewise.
4490 * nis/nss_compat/compat-pwd.c: Likewise.
4491 * nis/nss_compat/compat-spwd.c: Likewise.
4492
4493 2003-06-27 Thorsten Kukuk <kukuk@suse.de>
4494
4495 * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+
4496 functions, dlopen corresponding NSS module instead.
4497
4498 2003-06-27 Jeroen Dekkers <jeroen@dekkers.cx>
4499
4500 * sysdeps/mach/hurd/alpha/init-first.c: Remove call to __libc_init.
4501 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
4502 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
4503 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
4504
4505 2003-06-27 Ulrich Drepper <drepper@redhat.com>
4506
4507 * rt/Makefile (CFLAGS-librt-cancellation.c): Define.
4508
4509 2003-06-26 Roland McGrath <roland@frob.com>
4510
4511 * sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME.
4512 * sysdeps/mach/configure: Regenerated.
4513 * sysdeps/mach/hurd/times.c (times_init): Function removed.
4514 (__times): Assume `creation_time' field is available.
4515 * sysdeps/mach/hurd/Makefile [$(subdir) = csu] (sysdep_routines):
4516 Don't append set-init.
4517 * sysdeps/mach/hurd/set-init.c: File removed.
4518
4519 2003-06-26 Roland McGrath <roland@redhat.com>
4520
4521 * elf/elf.h (AT_SECURE): New macro.
4522 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Grok it,
4523 set __libc_enable_secure.
4524 (_dl_show_auxv): Add AT_SECURE to name table.
4525 * elf/dl-support.c (_dl_aux_init): Grok AT_SECURE, set
4526 __libc_enable_secure and __libc_enable_secure_decided.
4527 * sysdeps/unix/sysv/linux/ldsodefs.h
4528 [__ASSUME_AT_SECURE] (HAVE_AUX_SECURE): Define it.
4529 * sysdeps/unix/sysv/linux/kernel-features.h
4530 [__LINUX_KERNEL_VERSION >= 132426] (__ASSUME_AT_SECURE): Define it.
4531
4532 2003-06-26 Ulrich Drepper <drepper@redhat.com>
4533
4534 * io/test-utime.c: If _STATBUF_ST_NSEC is defined, adjust lower
4535 boundary test to take rounding of nanoseconds into account.
4536
4537 * sysdeps/unix/sysv/linux/bits/stat.h: Define _STATBUF_ST_NSEC.
4538 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
4539 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise.
4540 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
4541 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
4542 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
4543 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4544
4545 2003-06-26 Andreas Schwab <schwab@suse.de>
4546
4547 * sysdeps/m68k/fpu/bits/mathinline.h: Don't inline frexp.
4548 * sysdeps/m68k/fpu/s_frexp.c: Put implementation here.
4549 * sysdeps/m68k/fpu/s_frexpl.c: Fix to handle unnormalized numbers.
4550
4551 2003-06-17 Thorsten Kukuk <kukuk@suse.de>
4552
4553 * nis/Makefile: Remove NIS/NIS+ files from nss_compat module.
4554 * nis/nss_compat/compat-grp.c: Don't use our own NIS/NIS+ functions,
4555 dlopen corresponding NSS module instead.
4556 * nis/nss_compat/compat-pwd.c: Likewise.
4557 * nis/nss_compat/compat-spwd.c: Likewise.
4558 * nis/nss_compat/compat-initgroups.c: Disabled for now.
4559 * nss/Versions: Export __nss_lookup_function.
4560
4561 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4562
4563 * sysdeps/unix/sysv/linux/kernel-features.h: Update kernel features
4564 for the SH architecture.
4565
4566 2003-06-25 Thorsten Kukuk <kukuk@suse.de>
4567
4568 * csu/Makefile: Use CPPFLAGS to find correct linux/version.h.
4569
4570 2003-06-25 Andreas Jaeger <aj@suse.de>
4571
4572 * stdlib/tst-strtod.c (main): Declare constant long double as
4573 suggested by Jakub Jelinek and Andreas Schwab.
4574
4575 * posix/tst-nanosleep.c: Include <time.h> for nanosleep
4576 declaration.
4577
4578 * stdio-common/tst-fphex.c: Fix format string.
4579
4580 * posix/transbug.c: Include <string.h> for memset and strlen
4581 declarations.
4582
4583 * stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration.
4584
4585 * stdlib/tst-strtod.c (main): Pass long double value.
4586
4587 * test-skeleton.c: Include <time.h> for nanosleep declaration.
4588
4589 2003-06-25 Ulrich Drepper <drepper@redhat.com>
4590
4591 * include/time.h: Don't define CLOCK_IDFIELD_SIZE if _ISOMAC is
4592 defined.
4593
4594 2003-06-11 Jakub Jelinek <jakub@redhat.com>
4595
4596 * elf/Versions (libc): Add _dl_open_hook@GLIBC_PRIVATE.
4597 * elf/dl-libc.c (struct dl_open_hook): New.
4598 (_dl_open_hook): New variable.
4599 (do_dlsym_private): New function.
4600 (__libc_dlopen_mode) [!SHARED]: Lookup _dl_open_hook@GLIBC_PRIVATE
4601 and initialize it if found.
4602 (__libc_dlopen_mode) [SHARED]: If _dl_open_hook is non-NULL,
4603 call dlopen_mode hook.
4604 (__libc_dlsym) [SHARED]: If _dl_open_hook is non-NULL,
4605 call dlsym hook.
4606 (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL,
4607 call dlclose hook.
4608
4609 2003-06-25 Ulrich Drepper <drepper@redhat.com>
4610
4611 * sysdeps/unix/sysv/linux/cris/sysdep.h (INLINE_SYSCALL): Cast
4612 result to long int so that extensions to long long int work.
4613 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
4614
4615 2003-06-19 Jakub Jelinek <jakub@redhat.com>
4616
4617 * elf/ldconfig.c (main): Use add_system_dir instead of add_dir.
4618 * sysdeps/generic/dl-cache.h (add_system_dir): Define.
4619 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: Include sparc
4620 dl-cache.h.
4621 * sysdeps/unix/sysv/linux/s390/dl-cache.h: New file.
4622 * sysdeps/unix/sysv/linux/mips/dl-cache.h: New file.
4623 * sysdeps/unix/sysv/linux/powerpc/dl-cache.h: New file.
4624 * sysdeps/unix/sysv/linux/sparc/dl-cache.h: New file.
4625
4626 2003-06-19 Jakub Jelinek <jakub@redhat.com>
4627
4628 * test-skeleton.c (timeout_handler): If waitpid returned 0,
4629 retry once after a second. If killed == 0, assume
4630 WTERMSIG (status) == SIGKILL.
4631
4632 2003-06-18 Roland McGrath <roland@redhat.com>
4633
4634 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Catch uninitialized
4635 elements in the table instead of printing an empty name string.
4636
4637 2003-06-05 Roland McGrath <roland@redhat.com>
4638
4639 * elf/elf.h (PT_GNU_STACK): New macro.
4640
4641 2003-06-24 Ulrich Drepper <drepper@redhat.com>
4642
4643 * include/time.h: Define CLOCK_IDFIELD_SIZE.
4644 * sysdeps/posix/clock_getres.c: Recognize thread CPU clock IDs.
4645 * sysdeps/unix/clock_gettime.c: Likewise.
4646 * sysdeps/unix/clock_settime.c: Likewise.
4647 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Adjust for new
4648 clock id for thread CPU clocks.
4649
4650 * sysdeps/unix/sysv/linux/fstatfs64.c (__fstatfs64): Add support
4651 for the fstatfs64 syscall.
4652 * sysdeps/unix/sysv/linux/statfs64.c (__statfs64): Add support for
4653 the statfs64 syscall.
4654
4655 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4656 __ASSUME_STATFS64 appropriately.
4657
4658 * sysdeps/unix/sysv/linux/internal_statvfs.c: Use f_frsize field
4659 from statfs structure if it has been filled in.
4660
4661 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_frsize
4662 field.
4663 (struct statfs64): Likewise.
4664 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: Likewise.
4665 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
4666
4667 2003-06-24 Richard Henderson <rth@redhat.com>
4668
4669 * sysdeps/unix/sysv/linux/alpha/syscalls.list (pread, pwrite): Use
4670 the 64-bit syscall name.
4671
4672 * sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue.
4673
4674 * sysdeps/alpha/fpu/bits/mathinline.h: Honor
4675 __LIBC_INTERNAL_MATH_INLINES. Implement __signbitf, __signbit.
4676
4677 * sysdeps/unix/sysv/linux/alpha/clone.S: Use HIDDEN_JUMPTARGET.
4678 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use
4679 libc_hidden_def.
4680 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
4681 * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use libc_hidden_proto
4682 on them.
4683
4684 * sysdeps/alpha/bits/atomic.h: New file.
4685
4686 2003-06-24 Andreas Schwab <schwab@suse.de>
4687
4688 * sysdeps/m68k/fpu/libm-test-ulps: Update.
4689
4690 2003-06-24 Andreas Jaeger <aj@suse.de>
4691
4692 * sysdeps/unix/sysv/linux/x86_64/stat.h (_STAT_VER_LINUX): Avoid
4693 redeclaration with 32-bit code.
4694
4695 2003-05-19 Ed Connell <ed.connell@sas.com>
4696
4697 * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain
4698 floating point mask.
4699 * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise.
4700
4701 2003-06-23 Ulrich Drepper <drepper@redhat.com>
4702
4703 * sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex,
4704 __aio_enqueue_request, __aio_find_req, __aio_find_req_fd,
4705 __aio_free_request, __aio_notify, and __aio_sigqueue as hidden.
4706
4707 * sysdeps/pthread/aio_suspend.c (aio_suspend): Set errno to the result
4708 of pthread_cond_wait if there was an error. Use pthread_cleanup_*
4709 instead of __libc_cleanup_region_*.
4710
4711 2003-06-20 Richard Henderson <rth@redhat.com>
4712
4713 * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases.
4714 * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New.
4715
4716 2003-06-20 Richard Henderson <rth@redhat.com>
4717
4718 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
4719 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
4720 Unset for alpha.
4721 (__ASSUME_TIMEVAL64): Set for alpha.
4722 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
4723 adjtimex, osf_sigprocmask, old_adjtimex.
4724 * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
4725 __ASSUME_TIMEVAL64. Reorg tv64 functions to avoid uninit variable.
4726 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
4727 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
4728 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
4729 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
4730 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
4731 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
4732 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
4733 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
4734 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
4735 PIC code sequence.
4736 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
4737 * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
4738 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
4739 * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
4740 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
4741 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
4742 sys_ustat, sys_mknod, adjtimex, old_adjtimex.
4743 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
4744 defer to __syscall_name; error for rt_sigaction.
4745 * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
4746
4747 2003-06-18 Ulrich Drepper <drepper@redhat.com>
4748
4749 * malloc/malloc.c (public_mALLINFo): Initialize malloc if it
4750 hasn't happened yet.
4751
4752 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
4753 Fix completely broken implementation. The second parameter is of
4754 type struct ucontext*.
4755
4756 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always
4757 inline.
4758
4759 * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash.
4760 * sysdeps/generic/dl-hash.h: Likewise.
4761
4762 * sysdeps/generic/memcmp.c: Remove inline from
4763 memcmp_common_alignment and memcmp_not_common_alignment definition.
4764
4765 * intl/localealias.c (read_alias_file): Determine whether line is
4766 read incompletely early, before we modify the line.
4767
4768 2003-06-17 Jakub Jelinek <jakub@redhat.com>
4769
4770 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela)
4771 <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
4772
4773 2003-06-17 Paul Mackerras <paulus@samba.org>
4774
4775 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file.
4776 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: New file.
4777 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: New file.
4778 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: New file.
4779 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: New file.
4780 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Adjust.
4781
4782 2003-06-17 Jakub Jelinek <jakub@redhat.com>
4783
4784 * posix/regcomp.c (build_word_op): Use alnum instead of alpha class.
4785
4786 2003-06-17 Ulrich Drepper <drepper@redhat.com>
4787
4788 * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
4789 takes care of enabling cancellation.
4790
4791 * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
4792 cancelable. It's not correct to disable cancellation. Instead of
4793 a cleanup handler.
4794
4795 * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
4796 and part of the incoming set, create a temporary set without this
4797 signal.
4798 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
4799 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
4800
4801 * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
4802 returning because seconds==0. Add __builtin_expect.
4803
4804 2003-06-16 Ulrich Drepper <drepper@redhat.com>
4805
4806 * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
4807
4808 * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
4809 variable.
4810
4811 2003-06-16 Thorsten Kukuk <kukuk@suse.de>
4812
4813 * include/libc-symbols.h: Add static_link_warning macro.
4814 * grp/initgroups.c: Print linker warning if this function
4815 is called in a static linked binary.
4816 * nss/getXXbyYY.c: Likewise.
4817 * nss/getXXbyYY_r.c: Likewise.
4818 * nss/getXXent.c: Likewise.
4819 * nss/getXXent_r.c: Likewise.
4820 * sysdeps/posix/getaddrinfo.c: Likewise.
4821
4822 2003-06-16 Bruno Haible <bruno@clisp.org>
4823
4824 * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
4825 LATIN-9.
4826 (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
4827 (IBM1047): Add alias IBM-1047.
4828 (GBK): Add aliases MS936, WINDOWS-936.
4829
4830 2003-06-16 Jakub Jelinek <jakub@redhat.com>
4831
4832 * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
4833 defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
4834 (__xstat64_conv): Change xstat_conv to __xstat_conv.
4835
4836 2003-06-16 Ulrich Drepper <drepper@redhat.com>
4837
4838 * locale/iso-639.def: Update from current official ISO 639.
4839
4840 * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
4841
4842 2003-06-15 Andreas Jaeger <aj@suse.de>
4843
4844 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
4845 of MXCSR.
4846 * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
4847 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
4848 Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
4849
4850 * math/tgmath.h (carg): Handle real arguments.
4851 (conj): Likewise.
4852 (cproj): Likewise.
4853 (cimag): Likewise.
4854 (creal): Likewise.
4855
4856 * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
4857 (tests): Add test-tgmath-ret.
4858 * math/test-tgmath-ret.c: New file.
4859
4860 * math/tgmath.h (ilogb): Return always an int.
4861
4862 2003-06-16 Ulrich Drepper <drepper@redhat.com>
4863
4864 * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
4865 computation so that prelinking works.
4866
4867 2003-06-15 Ulrich Drepper <drepper@redhat.com>
4868
4869 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
4870 linker's map.
4871 * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
4872 dynamic linker's map.
4873
4874 Fix cancellation point handling wrt exception based cleanup.
4875 * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
4876 * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
4877 with exceptions.
4878 * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
4879 sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
4880 * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
4881 exceptions.
4882 * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
4883 sigwait.c, and sigwaitinfo.c with exceptions.
4884 * stdlib/Makefile: Compile system.c with exceptions.
4885 * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
4886 * termios/Makefile: Compile tcdrain.c with exceptions.
4887 * sysdeps/generic/lockf.c: Add comment explaining the cancellation
4888 situation.
4889 * sysdeps/generic/pselect.c: Likewise.
4890 * sysdeps/posix/sigpause.c: Likewise.
4891 * sysdeps/posix/system.c: Likewise.
4892 * sysdeps/posix/waitid.c: Likewise.
4893 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
4894 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
4895 * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
4896 INTERNAL_SYSCALL to not use push inside asm statement so that
4897 unwind info is correct around the syscall.
4898 * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
4899 * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
4900
4901 2003-06-15 Andreas Jaeger <aj@suse.de>
4902
4903 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
4904 Add CFI directives.
4905
4906 2003-06-15 Guido Guenther <agx@sigxcpu.org>
4907
4908 * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
4909 create $(objpfx).
4910
4911 2003-06-14 Ulrich Drepper <drepper@redhat.com>
4912
4913 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
4914 not close.
4915
4916 * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
4917 * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
4918 definition.
4919
4920 * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
4921 * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
4922 * inet/Makefile (routines): Add inet6_option.
4923 * inet/inet6_option.c: New file.
4924 * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
4925 inet6_option_init, inet6_option_append, inet6_option_alloc,
4926 inet6_option_next, and inet6_option_find.
4927
4928 2003-06-13 Ulrich Drepper <drepper@redhat.com>
4929
4930 * inet/netinet/ip6.h (struct ip6_ext): Define.
4931
4932 * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
4933
4934 Fixing gcc 3.3 warnings, part II.
4935 * argp/argp-help.c (hol_entry_long_iterate): Always inline.
4936 * elf/dl-load.c (cache_rpath): Don't inline.
4937 * iconvdata/cns11642l2.h: Always inline all functions.
4938 * iconvdata/iso-ir-165.h: Likewise.
4939 * locale/Makefile (aux): Add coll-lookup.
4940 * locale/coll-lookup.c: New file.
4941 * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
4942 (collseq_table_lookup): Likewise.
4943 * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
4944 * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
4945 change.
4946 * posix/regcomp.c: Likewise.
4947 * posix/regexec.c: Likewise.
4948 * locale/programs/3level.h (*_get): Always inline.
4949 * locale/programs/locfile.h: Move definition of handle_copy to...
4950 * locale/programs/locfile.c: ...here.
4951 * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
4952 (obstack_int32_grow_fast): Likewise.
4953 (utf8_encode): Likewise.
4954 (find_element): Avoid aliasing problems.
4955 (insert_value): Likewise.
4956 (collate_read): Likewise.
4957 * nss/getent.c (print_hosts): Don't inline
4958 (print_networks): Likewise.
4959 (print_shadow): Likewise.
4960 (build_doc): Likewise.
4961 * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
4962 inline.
4963 * posix/regcomp.c (re_set_fastmap): Always inline.
4964 (seek_collating_symbol_entry): Likewise.
4965 (lookup_collation_sequence_value): Likewise.
4966 (build_range_exp): Likewise.
4967 (build_collating_symbol): Likewise.
4968 * posix/regexec.c (acquire_init_state_context): Don't inline.
4969 (clean_state_log_if_need): Likewise.
4970 * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
4971 adjust all callers.
4972 (evConsTime): Likewise.
4973 (evAddTime): Likewise.
4974 (evSubTime): Likewise.
4975 (evNowTime): Likewise.
4976 (evTimeSpec): Removed.
4977 (__libc_res_nsend): Avoid aliasing problem.
4978 * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
4979 * sysdeps/unix/sysv/linux/ifreq.c: ...here.
4980 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
4981 Always inline.
4982 (_dl_string_platform): Likewise.
4983 * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
4984 (wcwidth_table_lookup): Likewise.
4985 (wctrans_table_lookup): Likewise.
4986
4987 * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
4988
4989 2003-06-12 Ulrich Drepper <drepper@redhat.com>
4990
4991 * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
4992
4993 2003-05-29 Jim Meyering <jim@meyering.net>
4994
4995 * time/strftime.c (my_strftime) [!defined _NL_CURRENT
4996 && HAVE_STRFTIME]: Use underlying_strftime for %r.
4997 Suggested by Daniel Yacob <locales@geez.org>.
4998
4999 2003-06-12 Steven Munroe <sjmunroe@us.ibm.com>
5000
5001 * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
5002 @got notation with @toc.
5003 * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
5004 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
5005
5006 2003-06-12 Ulrich Drepper <drepper@redhat.com>
5007
5008 * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
5009 if only PF_INET address is needed.
5010
5011 * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
5012 case of an error.
5013
5014 * scripts/config.guess: Update from upstream version.
5015 * scripts/config.sub: Likewise.
5016
5017 2003-06-12 Jakub Jelinek <jakub@redhat.com>
5018
5019 * locale/programs/ld-time.c (time_output): Also copy the era format,
5020 not only the name.
5021
5022 2003-06-12 H.J. Lu <hongjiu.lu@intel.com>
5023
5024 * posix/transbug.c (run_test): Return 1 for failure.
5025 (do_test): Compare only if run_test is successful.
5026
5027 2003-06-12 Simon Josefsson <jas@extundo.com>
5028
5029 * argp/argp.h [!__THROW]: Define if undefined.
5030
5031 2003-06-12 Ulrich Drepper <drepper@redhat.com>
5032
5033 * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
5034 more than four parameters.
5035 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
5036
5037 2003-06-12 Jakub Jelinek <jakub@redhat.com>
5038
5039 * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
5040 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
5041 * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
5042
5043 * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
5044
5045 2003-06-12 Roland McGrath <roland@redhat.com>
5046
5047 * Makerules ($(objpfx)stubs): Rewrite sed magic.
5048
5049 2003-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
5050
5051 * posix/regcomp.c (parse_expression): Deliver translation to
5052 build_word_op, and build_charclass.
5053 (build_charclass): Apply translation for character classes too.
5054 (build_word_op): Deliver translation to build_charclass.
5055 * posix/transbug.c: New file.
5056 * posix/Makefile (tests): Add transbug.
5057
5058 2003-06-04 Paolo Bonzini <bonzini@gnu.org>
5059
5060 * posix/regexec.c (group_nodes_into_DFAstates): Check for
5061 NEXT_ENDBUF_CONSTRAINT. Move check for constraints which do a
5062 'continue' before the others.
5063
5064 2003-06-11 Ulrich Drepper <drepper@redhat.com>
5065
5066 * dirent/scandir.c (SCANDIR): Reset errno after calling selector
5067 function [PR libc/5045].
5068
5069 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
5070 also for P4.
5071
5072 * time/tzfile.c: Add a couple of __builtin_expect.
5073
5074 Remove warnings gcc 3.3 shows.
5075 * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
5076 * elf/dl-load.c (fillin_rpath): Likewise.
5077 (add_path): Likewise.
5078 * elf/dl-version.c (find_needed): Always inline.
5079 * elf/do-lookup.c (FCT): Don't inline.
5080 * iconv/Makefile: Extend vpath to intl subdir.
5081 (iconvconfig-modules): Add hash-string.
5082 * iconv/gconv_charset.h (strip): Don't inline.
5083 (upstr): Always inline.
5084 Move __gconv_compare_alias prototype to...
5085 * iconv/gconv_int.h: ...here.
5086 * iconv/gconv_db.c: Don't include gconv_charset.h.
5087 * iconv/gconv_conf.c (add_alias): Don't inline.
5088 (insert_module): Likewise.
5089 * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
5090 (internal_ucs4_loop_unaligned): Likewise.
5091 (internal_ucs4_loop_single): Likewise.
5092 (ucs4_internal_loop): Likewise.
5093 (ucs4_internal_loop_unaligned): Likewise.
5094 (ucs4_internal_loop_single): Likewise.
5095 (internal_ucs4le_loop): Always inline.
5096 (internal_ucs4le_loop_unaligned): Likewise.
5097 (internal_ucs4le_loop_single): Likewise.
5098 (ucs4le_internal_loop): Likewise.
5099 (ucs4le_internal_loop_unaligned): Likewise.
5100 (ucs4le_internal_loop_single): Likewise.
5101 * iconv/loop.c: Always inline the defined functions.
5102 * iconvdata/cns11642.h: Likewise.
5103 * iconvdata/cns11642l1.h: Likewise.
5104 * iconvdata/euc-kr.c: Likewise.
5105 * iconvdata/gb2312.h: Likewise.
5106 * iconvdata/jis0201.h: Likewise.
5107 * iconvdata/jis0208.h: Likewise.
5108 * iconvdata/jis0212.h: Likewise.
5109 * iconvdata/jisx0213.h: Likewise.
5110 * iconvdata/ksc5601.h: Likewise.
5111 * iconvdata/utf-7.c (base64): Don't inline.
5112 * include/libc-symbols.h (symbol_set_first_element): Add cast
5113 (symbol_set_end_p): Likewise.
5114 * include/set-hooks (RUN_HOOK): Likewise.
5115 * inet/Makefile (aux): Add ifreq.
5116 * intl/Makefile (aux): Add some entries from routines. Add
5117 hash-string.
5118 * intl/hash-string.c: New file.
5119 * intl/hash-string.h: Remove hash_string definition. Declare
5120 __hash_string.
5121 * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
5122 * iconv/iconvconfig.c (new_name): Likewise.
5123 * intl/dcigettext.c (_nl_find_msg): Likewise.
5124 * intl/loadmsgcat.c (_nl_load_domain): Likewise.
5125 * io/ftw.c (open_dir_stream): Always inline.
5126 (process_entry): Don't inline.
5127 * locale/findlocale.c: Include gconv_int.h.
5128 * locale/setlocale.c (new_composite_name): Don't inline.
5129 * locale/weight.h (findidx): Always inline.
5130 * locale/weightwc.h (findidx): Likewise.
5131 * locale/programs/linereader.c (lr_ignore_rest): Define here.
5132 * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
5133 just declare it.
5134 (lr_getc): Always inline.
5135 (lr_ungetc): Likewise.
5136 * nss/nss_files/files-parse.c (parse_list): Likewise.
5137 * stdio-common/Makefile (aux): Add printf-parsemb and
5138 printf-parsewc.
5139 * stdio-common/_itoa.h (_itoa_word): Always inline.
5140 (_fitoa_word, _fitoa): Don't define here, only declare.
5141 * stdio-common/_itoa.c (_iftoa_word): Add here.
5142 (_fitoa): Likewise.
5143 * stdio-common/_itowa.h (_itowa_word): Always inline.
5144 * stdio-common/printf-parse.h (read_int): Don't inline.
5145 (find_spec): Don't define.
5146 Declare __find_specmb and __find_specwc.
5147 (parse_one_spec): Don't define.
5148 Declare __parse_one_specmb and __parse_one_specwc.
5149 * stdio-common/printf-parsemb.c: New file.
5150 * stdio-common/printf-parsewc.c: New file.
5151 * stdio-common/vfprintf.c: Update calls to find_spec and
5152 parse_one_spec for new names.
5153 * stdio-common/printf-prs.c: Likewise. Define DONT_NEED_READ_INT.
5154 * stdlib/Makefile (aux): Add grouping and groupingwc.
5155 * stdlib/grouping.c: New file.
5156 * stdlib/groupingwc.c: New file.
5157 * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
5158 Just prototype.
5159 * stdlib/rpmatch.c (try): Don't inline.
5160 * stdlib/strtod.c (round_and_return): Don't line.
5161 (str_to_mpn): Likewise.
5162 (__mpn_lshift_1): Always inline. Optimize only for constant count.
5163 Adjust for name change of correctly_grouped_prefix.
5164 * sysdeps/generic/strtol.c: Adjust for name change of
5165 correctly_grouped_prefix.
5166 * string/strxfrm.c (utf8_encode): Don't inline.
5167 * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
5168 * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
5169 * sysdeps/generic/ifreq.c: New file.
5170 * sysdeps/unix/sysv/linux/ifreq.c: New file.
5171 * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
5172 * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
5173 * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
5174 * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
5175 (fde_split): Likewise.
5176 (fde_merge): Likewise.
5177 (end_fde_sort): Likewise.
5178 (init_object): Likewise.
5179 (binary_search_unencoded_fdes): Likewise.
5180 (binary_search_single_encoding_fdes): Likewise.
5181 (binary_search_mixed_encoding_fdes): Likewise.
5182 * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
5183 * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
5184 * sysdeps/posix/sprofil.c (profil_count): Don't inline.
5185 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
5186 Add xstatconv.
5187 * sysdeps/unix/sysv/linux/xstatconv.h: New file.
5188 * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
5189 Export them. Prepend __ to name.
5190 * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
5191 * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
5192 conversion functions.
5193 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
5194 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
5195 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
5196 * sysdeps/unix/sysv/linux/xstat.c: Likewise.
5197 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
5198 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
5199 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
5200 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
5201 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
5202 __statfs_filesize_max, __statfs_symlinks): Define here. __ prepended
5203 to name. Change callers.
5204 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
5205 __statfs_filesize_max, __statfs_symlinks): Don't define here, just
5206 declare.
5207 * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
5208 * time/tzfile.c (decode): Always inline.
5209 * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
5210 Remove cast in tomb function call.
5211 * wcsmbs/wcsrtombs.c Likewise.
5212 * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
5213 tomb function call.
5214
5215 2003-06-10 Ulrich Drepper <drepper@redhat.com>
5216
5217 * po/zh_CN.po: Update from translation team.
5218
5219 2003-06-10 Jakub Jelinek <jakub@redhat.com>
5220
5221 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
5222 IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
5223
5224 2003-06-10 Ulrich Drepper <drepper@redhat.com>
5225
5226 * inet/Makefile (aux): Add check_pf.
5227 * include/ifaddrs.h: Add prototype for __check_pf.
5228 * sysdeps/generic/check_pf.c: New file.
5229 * sysdeps/unix/sysv/linux/check_pf.c: New file.
5230 * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
5231 from no_netlink_support. Export.
5232 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
5233 call __check_pf.
5234
5235 * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
5236
5237 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
5238 from getifaddr calls.
5239
5240 2003-06-09 Jakub Jelinek <jakub@redhat.com>
5241
5242 * sysdeps/unix/sysv/linux/kernel-features.h
5243 (__ASSUME_SETRESGID_SYSCALL): Define.
5244 * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
5245 instead of __ASSUME_SETRESUID_SYSCALL.
5246 (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
5247 defined.
5248 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
5249 inline syscall if __NR_setresuid32 is defined.
5250 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
5251 __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
5252 * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
5253 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
5254 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
5255 code handling non-existant setresgid32 syscall with
5256 #if __ASSUME_SETRESGID_SYSCALL == 0.
5257
5258 2003-06-09 Andreas Schwab <schwab@suse.de>
5259
5260 * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
5261 ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
5262 $(objpfx)rpc-proto.d.
5263 (rpcsvc-dt-files, rpcsvc-depfiles): Define. Include
5264 $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
5265 ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
5266
5267 2003-06-08 Ulrich Drepper <drepper@redhat.com>
5268
5269 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
5270 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
5271 defined drop compatibility code.
5272 * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
5273 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
5274 defined drop compatibility code.
5275 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
5276 setresuid32 syscall directly if possible.
5277 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
5278 setresgid32 syscall directly if possible.
5279 * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
5280 compliant. Don't change sgid.
5281 * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
5282 compliant. Don't change suid.
5283
5284 * config.h.in: Add have-forced-unwind.
5285 * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
5286
5287 2003-06-07 Ulrich Drepper <drepper@redhat.com>
5288
5289 * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
5290 returned status from child matches.
5291
5292 * Makeconfig (gnulib): Add -lgcc_eh once again.
5293
5294 2003-06-06 Ulrich Drepper <drepper@redhat.com>
5295
5296 * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
5297
5298 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
5299 %edx for first parameter. This means no pushl and therefore the
5300 unwind info isn't screwed up.
5301
5302 2003-06-04 Richard Henderson <rth@redhat.com>
5303
5304 * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
5305 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
5306 * sysdeps/alpha/elf/start.S: Likewise. Remove pointless allocation.
5307 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
5308 entry sequence and explicit relocs. Add unwind info for sigreturn
5309 and rt_sigreturn.
5310 * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
5311
5312 * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
5313 Annotate some parameters.
5314 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
5315
5316 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
5317
5318 * include/libc-symbols.h (symbol_set_declare): Use arrays
5319 of unspecified size.
5320
5321 2003-06-04 Jakub Jelinek <jakub@redhat.com>
5322
5323 * config.make.in (ASFLAGS-config): New.
5324 * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
5325 * configure.in (libc_cv_as_noexecstack): New check.
5326 (ASFLAGS_config): Substitute.
5327
5328 2003-06-04 Jakub Jelinek <jakub@redhat.com>
5329
5330 * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
5331 hypot, logb): Protect with #ifdef __FAST_MATH__.
5332
5333 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
5334
5335 * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
5336 #ifdef __FAST_MATH__.
5337
5338 2003-06-03 Ulrich Drepper <drepper@redhat.com>
5339
5340 * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
5341 DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
5342 * posix/globtest.sh: Adjust for this change.
5343
5344 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
5345 to get the actual PID value used in the records passed up.
5346 (getifaddrs): Don't initialize nh.pid here.
5347
5348 2003-06-02 Ulrich Drepper <drepper@redhat.com>
5349
5350 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
5351 optimization.
5352
5353 * po/zh_CN.po: Update from translation team.
5354
5355 * posix/getconf.c (main): Also recognize names without the
5356 _POSIX_ prefix.
5357
5358 * elf/Makefile (CFLAGS-dl-lookup.c): Define.
5359
5360 2003-06-02 Bernd Schmidt <bernds@redhat.com>
5361
5362 * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
5363 ldexpf, ldexpl): Only define if __FAST_MATH__.
5364
5365 2003-06-02 Richard C. Bilson <rcbilson@plg.uwaterloo.ca>
5366
5367 Replace hard-coded offsets into struct sigcontext with generated file.
5368 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
5369 * sysdeps/unix/sysv/linux/ia64/Makefile
5370 [$(subdir) = stdlib] (gen-as-const-headers): Add it.
5371 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
5372 defining SC_* macros here.
5373
5374 2003-06-02 Jakub Jelinek <jakub@redhat.com>
5375
5376 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
5377
5378 2003-06-01 Jakub Jelinek <jakub@redhat.com>
5379
5380 * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
5381
5382 2003-06-01 Ulrich Drepper <drepper@redhat.com>
5383
5384 * test-skeleton.c (main): Request getopt to not reorder the
5385 command line.
5386
5387 * elf/Makefile (CFLAGS-dl-runtime.c): Define.
5388
5389 * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
5390 stpncpy.
5391
5392 2003-05-31 Ulrich Drepper <drepper@redhat.com>
5393
5394 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
5395
5396 2003-05-31 Jakub Jelinek <jakub@redhat.com>
5397
5398 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
5399 New function.
5400 (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
5401 RESOLVE_CONFLICT_FIND_MAP. If RESOLVE_CONFLICT_FIND_MAP is defined,
5402 call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
5403
5404 2003-05-31 Ulrich Drepper <drepper@redhat.com>
5405
5406 * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
5407 CFI directives.
5408
5409 * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
5410
5411 * libio/fileops.c (_IO_file_open): Don't mark as inline.
5412
5413 * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
5414 attribute used.
5415
5416 2003-05-30 Ulrich Drepper <drepper@redhat.com>
5417
5418 * scripts/config.guess: Update from master copy.
5419 * scripts/config.sub: Likewise.
5420
5421 2003-05-30 Guido Guenther <agx@sigxcpu.org>
5422
5423 * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
5424 SETUP_GP64 and friends.
5425 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
5426 names in internal_syscall{6,7}.
5427 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
5428 * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
5429 number of syscall arguments.
5430 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5431 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
5432 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
5433
5434 2003-05-30 Andreas Jaeger <aj@suse.de>
5435
5436 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
5437 Add CFI directives.
5438
5439 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
5440 directives.
5441
5442 * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
5443
5444 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
5445 Add CFI directives.
5446
5447 2003-05-30 Jakub Jelinek <jakub@redhat.com>
5448
5449 * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
5450 SHARED.
5451
5452 2003-05-11 Andreas Schwab <schwab@suse.de>
5453
5454 * Makerules: Always use -MP together with -MD.
5455 (sed-remove-dotot): Substitute $(..) also at start of line.
5456 ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
5457 Generated defines with a single compiler call.
5458 Use $(sed-remove-dotdot).
5459 * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
5460 of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
5461 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
5462 Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
5463 * sysdeps/unix/sysv/linux/mips/Makefile
5464 ($(objpfx)syscall-%.h): Likewise.
5465
5466 2003-05-28 Roland McGrath <roland@redhat.com>
5467
5468 * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
5469
5470 2003-05-26 Aldy Hernandez <aldyh@redhat.com>
5471
5472 * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
5473
5474 2003-05-28 Roland McGrath <roland@redhat.com>
5475
5476 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
5477 rt_sigprocmask system call.
5478 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
5479 From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
5480
5481 2003-05-28 Ulrich Drepper <drepper@redhat.com>
5482
5483 * include/libc-symbols.h: Define hidden attribute for real also if
5484 LIBC_NONSHARED is defined. Patch by Jakub Jelinek.
5485
5486 * csu/Makefile: Add rules to build Scrt1.o.
5487 * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
5488 * sysdeps/x86_64/elf/start.S: Likewise.
5489
5490 2003-05-27 Jakub Jelinek <jakub@redhat.com>
5491
5492 * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
5493 pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
5494 * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
5495 pa_short_int, pa_u_short_int and pa_float.
5496
5497 2003-05-26 Jakub Jelinek <jakub@redhat.com>
5498
5499 * libio/strops.c (_IO_str_init_static): Change into a wrapper around
5500 _IO_str_init_static_internal.
5501 (_IO_str_init_static_internal): Moved from _IO_str_init_static,
5502 change size argument to _IO_size_t, don't limit sprintf to 64M.
5503 (_IO_str_init_readonly): Call _IO_str_init_static_internal.
5504 * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
5505 _IO_size_t, don't limit swprintf to 256M.
5506 (_IO_wstr_init_readonly): Remove.
5507 * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
5508 Adjust prototypes.
5509 (_IO_wstr_init_readonly): Remove prototype.
5510 * libio/iovsprintf.c (_IO_vsprintf): Use
5511 _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
5512 * libio/iovsscanf.c (_IO_vsscanf): Likewise.
5513 * libio/memstream.c (open_memstream): Likewise.
5514 * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
5515 * libio/vasprintf.c (_IO_vasprintf): Likewise.
5516 * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
5517 * stdio-common/tst-sprintf.c (main): Add new test.
5518
5519 2003-05-26 Ulrich Drepper <drepper@redhat.com>
5520
5521 * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
5522 other implementation in respect of multiple uses of parameter with
5523 different types.
5524
5525 2003-05-25 Ulrich Drepper <drepper@redhat.com>
5526
5527 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5528 __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
5529
5530 2003-05-22 Andreas Jaeger <aj@suse.de>
5531
5532 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
5533 directives.
5534 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
5535 * sysdeps/x86_64/strtok.S: Likewise.
5536
5537 2003-05-20 Guido Guenther <agx@sigxcpu.org>
5538
5539 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
5540 to -60 and define SI_TKILL.
5541
5542 2003-05-21 H.J. Lu <hongjiu.lu@intel.com>
5543
5544 * math/test-fenv.c (feexcp_nomask_test): Fix comment.
5545 (feexcp_mask_test): Likewise.
5546
5547 2003-05-21 Ulrich Drepper <drepper@redhat.com>
5548
5549 * locale/programs/locale.c (main): Fix typo in last patch.
5550
5551 * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
5552 __init_array_start, __init_array_end, __fini_array_start, and
5553 __fini_array_end as hidden.
5554
5555 2003-05-21 Petter Reinholdtsen <pere@hungry.com>
5556
5557 * locale/programs/locale.c (main): Report an error if setlocale()
5558 fails [PR libc/2254].
5559
5560 2003-05-21 Jakub Jelinek <jakub@redhat.com>
5561
5562 * sysdeps/unix/sysv/linux/s390/system.c: New file.
5563
5564 2003-05-21 Jakub Jelinek <jakub@redhat.com>
5565
5566 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
5567 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
5568 LOADARGS_6): Don't error if syscall argument is a string literal.
5569 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
5570 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
5571 LOADARGS_6): Likewise.
5572
5573 2003-05-21 Andreas Jaeger <aj@suse.de>
5574
5575 * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
5576 cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
5577 cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
5578
5579 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
5580 (ENTRY): Likewise.
5581 (END): Likewise.
5582
5583 * configure.in: Test for asm cfi directives.
5584
5585 * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
5586
5587 2003-05-17 Andreas Jaeger <aj@suse.de>
5588
5589 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
5590
5591 * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
5592
5593 2003-05-16 Ulrich Drepper <drepper@redhat.com>
5594
5595 * rt/Makefile (tests): Add tst-clock_nanosleep.
5596 * rt/tst-clock_nanosleep.c: New file.
5597 * posix/Makefile (tests): Add tst-nanosleep.
5598 * posix/tst-nanosleep.c: New file.
5599
5600 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
5601
5602 * include/features.h (__USE_XOPEN2K): Define also for
5603 _POSIX_C_SOURCE>=200112L.
5604
5605 * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
5606 SI_TKILL code into SI_USER.
5607 * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
5608
5609 * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
5610
5611 2003-05-15 Jakub Jelinek <jakub@redhat.com>
5612
5613 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
5614 Remove sym argument, always use refsym.
5615 (__process_machine_rela): Adjust callers.
5616 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
5617 Likewise.
5618 * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
5619 Adjust prototype.
5620 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
5621
5622 2003-05-15 Ulrich Drepper <drepper@redhat.com>
5623
5624 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
5625 (DL_NEED_SYSINFO -> NEED_DL_SYSINFO). If aux value is not known
5626 print numeric values.
5627
5628 2003-05-12 Thorsten Kukuk <kukuk@suse.de>
5629
5630 * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
5631
5632 2003-05-14 Andreas Schwab <schwab@suse.de>
5633
5634 * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
5635
5636 2003-05-14 Jakub Jelinek <jakub@redhat.com>
5637
5638 * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
5639 even if no DT_NEEDED is present.
5640
5641 2003-05-13 David Mosberger <davidm@hpl.hp.com>
5642
5643 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
5644 2003-03-27: setjmp is NOT a leaf-routine (due to the call to
5645 __sigjmp_save) so we can't keep the saved unat value in a scratch
5646 register (r16). Use loc2 instead.
5647
5648 2003-05-13 Ulrich Drepper <drepper@redhat.com>
5649
5650 * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
5651 binaries it has to be relocatable.
5652
5653 * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
5654
5655 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
5656
5657 * sysdeps/powerpc/bits/atomic.h
5658 (__arch_compare_and_exchange_bool_8_rel): Define.
5659 (__arch_compare_and_exchange_bool_16_rel): Define.
5660 (__ARCH_REL_INSTR): Define if not already defined.
5661 (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
5662 (__arch_atomic_decrement_if_positive_32):
5663 Add "memory" to clobber list.
5664 (__arch_compare_and_exchange_val_32_acq): Remove release sync.
5665 (__arch_compare_and_exchange_val_32_rel): Define.
5666 (__arch_atomic_exchange_32): Remove.
5667 (__arch_atomic_exchange_32_acq): Define.
5668 (__arch_atomic_exchange_32_rel): Define.
5669 (atomic_compare_and_exchange_val_rel): Define.
5670 (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
5671 (atomic_exchange_rel): Define.
5672 * sysdeps/powerpc/powerpc32/bits/atomic.h
5673 (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
5674 (__arch_compare_and_exchange_bool_32_rel): Define.
5675 (__arch_compare_and_exchange_bool_64_rel): Define.
5676 (__arch_compare_and_exchange_val_64_rel): Define.
5677 (__arch_atomic_exchange_64): Remove.
5678 (__arch_atomic_exchange_64_acq): Define.
5679 (__arch_atomic_exchange_64_rel): Define.
5680 * sysdeps/powerpc/powerpc64/bits/atomic.h
5681 (__arch_compare_and_exchange_bool_32_rel): Define.
5682 (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
5683 (__arch_compare_and_exchange_bool_64_rel): Define.
5684 (__arch_compare_and_exchange_val_64_acq): Remove release sync.
5685 (__arch_compare_and_exchange_val_64_rel): Define.
5686 (__arch_atomic_exchange_64): Remove.
5687 (__arch_atomic_exchange_64_acq): Define.
5688 (__arch_atomic_exchange_64_rel): Define.
5689 (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
5690 (__arch_atomic_decrement_if_positive_64):
5691 Add "memory" to clobber list.
5692 [!UP](__ARCH_REL_INSTR): Define as lwsync.
5693
5694 2003-05-11 Andreas Schwab <schwab@suse.de>
5695
5696 * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
5697
5698 2003-05-11 Ulrich Drepper <drepper@redhat.com>
5699
5700 * time/tst-strftime.c (do_test): Add tests for - flag.
5701
5702 2003-05-11 Jim Meyering <jim@meyering.net>
5703
5704 * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
5705 the space-padded-by-default conversion specifiers, %e, %k, %l.
5706
5707 2003-05-11 Andreas Schwab <schwab@suse.de>
5708
5709 * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
5710
5711 2003-05-10 Ulrich Drepper <drepper@redhat.com>
5712
5713 * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
5714 already defined and when really needed.
5715 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
5716
5717 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
5718
5719 * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
5720 headers, add defines from kernel header, move it from here...
5721 * inet/netinet/igmp.h: ... to here.
5722 * inet/Makefile (headers): Add netinet/igmp.h.
5723 * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
5724 * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
5725
5726 2003-05-10 Ulrich Drepper <drepper@redhat.com>
5727
5728 * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
5729 use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
5730
5731 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
5732
5733 * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
5734 (remove __THROW from possible cancellation points).
5735
5736 2003-05-10 Ulrich Drepper <drepper@redhat.com>
5737
5738 * posix/sched.h (CPU_SETSIZE): Define.
5739
5740 2003-05-09 Ulrich Drepper <drepper@redhat.com>
5741
5742 * Makeconfig (gnulib): Remove -lgcc_eh again.
5743
5744 * posix/sched.h: Change prototypes of sched_getaffinity and
5745 sched_setaffinity. Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
5746 * sysdeps/generic/sched_getaffinity.c: Adjust definition.
5747 * sysdeps/generic/sched_setaffinity.c: Likewise.
5748 * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
5749 __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
5750 __CPU_CLR, and __CPU_ISSET.
5751 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
5752 * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
5753 * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
5754
5755 * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
5756 (atomic_exchange_rel): New #define.
5757 * sysdeps/ia64/bits/atomic.h: Likewise.
5758 * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
5759 atomic_exchange.
5760 * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
5761 * sysdeps/powerpc/bits/atomic.h: Likewise.
5762 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
5763 * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
5764 * sysdeps/x86_64/bits/atomic.h: Likewise.
5765 * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
5766
5767 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
5768
5769 2003-05-08 Ulrich Drepper <drepper@redhat.com>
5770
5771 * malloc/thread-m.h: Remove special handling of thread_atfork if
5772 HAVE_register_atfork_malloc is defined.
5773
5774 2003-05-07 Andreas Jaeger <aj@suse.de>
5775
5776 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
5777 information.
5778
5779 2003-05-06 Ulrich Drepper <drepper@redhat.com>
5780
5781 * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
5782 * libio/oldiofopen.c (_IO_old_fopen): Likewise.
5783 * libio/libioP.h: Declare _IO_old_init.
5784 * libio/genops.c (_IO_no_init): Split in two. New function
5785 _IO_old_init.
5786
5787 2003-05-05 Ulrich Drepper <drepper@redhat.com>
5788
5789 * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
5790 variable.
5791 (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
5792 is nonzero.
5793 * include/unistd.h: Declare __libc_enable_secure_decided.
5794 * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
5795 and AT_EGID. If all found, set __libc_enable_secure and
5796 __libc_enable_secure_decided.
5797
5798 * sysdeps/generic/libc-start.c [!SHARED]: Call
5799 __libc_check_standard_fds after __libc_init_first.
5800
5801 2003-05-05 Roland McGrath <roland@redhat.com>
5802
5803 * Makerules (common-before-compile): New variable.
5804 ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
5805 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise. Move this rule
5806 to after all setting of before-compile.
5807
5808 2003-05-05 Jakub Jelinek <jakub@redhat.com>
5809
5810 * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
5811 __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
5812 * sysdeps/powerpc/powerpc32/bits/atomic.h
5813 (__arch_compare_and_exchange_val_64_acq): Likewise.
5814 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
5815 (__arch_compare_and_exchange_val_8_acq,
5816 __arch_compare_and_exchange_val_16_acq,
5817 __arch_compare_and_exchange_val_64_acq): Likewise.
5818 * sysdeps/sparc/sparc64/bits/atomic.h
5819 (__arch_compare_and_exchange_val_8_acq,
5820 __arch_compare_and_exchange_val_16_acq): Likewise.
5821 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
5822 __arch_compare_and_exchange_val_16_acq,
5823 __arch_compare_and_exchange_val_64_acq): Likewise.
5824 * sysdeps/unix/sysv/linux/sh/bits/atomic.h
5825 (__arch_compare_and_exchange_val_64_acq): Likewise.
5826 * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
5827 up warning.
5828 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
5829
5830 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
5831 (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
5832 Return long instead of int.
5833 (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
5834 0xfffff001u with -4095UL.
5835
5836 2003-05-05 Andreas Jaeger <aj@suse.de>
5837
5838 * sysdeps/x86_64/fpu_control.h: New from i386.
5839
5840 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
5841 Define if not defined.
5842
5843 * sunrpc/Makefile (generated-dirs): New variable.
5844 * resolv/Makefile (generated): New variable.
5845
5846 2003-05-04 Roland McGrath <roland@redhat.com>
5847
5848 * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
5849 Depend on $(before-compile).
5850
5851 * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
5852 pattern rule. The implicit rule could be ruled out when $(objpfx)
5853 didn't exist at the time of its consideration (ugh!).
5854
5855 * Makerules (+make-deps): Fix target matching.
5856 Use $(sed-remove-dotdot).
5857
5858 2003-05-03 Ulrich Drepper <drepper@redhat.com>
5859
5860 * nscd/nscd.c (main): Parse config file right after parsing
5861 parameters. Then, if get_stats is true, call receive_print_stats.
5862 Drop parameter from nscd_init call.
5863 (get_stats): New variable.
5864 (parse_opt): Set get_stats, don't call receive_print_stats here.
5865 * nscd/nscd.h: Declare dbs, stat_user, and stat_uid. Adjust nscd_init
5866 prototype.
5867 * nscd/connections.c (stat_user, stat_uid): New variables.
5868 (dbs): Make global.
5869 (nscd_init): Don't read configuration file here. Drop parameter.
5870 (handle_request): Cleanup handling of non-database lookup requests.
5871 * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
5872 Get UID of the specified user. Use xstrdup instead of strdup.
5873 * nscd/nscd_stat.c (receive_print_stats): Check UID. If not zero,
5874 check stat_user.
5875 * nscd/Makefile (nscd-modules): Add xstrdup.
5876 * nscd/nscd.conf: Document stat-user entry.
5877
5878 2003-05-03 H.J. Lu <hongjiu.lu@intel.com>
5879
5880 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
5881 if not defined.
5882
5883 2003-04-22 Roland McGrath <roland@redhat.com>
5884
5885 * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
5886 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
5887 dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
5888 * elf/dl-support.c: Update defn.
5889 * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
5890 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
5891 Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
5892 (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
5893 * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
5894 set, set up a link_map for the preloaded, prelinked object.
5895
5896 2003-05-03 Roland McGrath <roland@redhat.com>
5897
5898 * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
5899 * stdio-common/Makefile: ... not here.
5900
5901 * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
5902 * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
5903
5904 2003-05-02 Ulrich Drepper <drepper@redhat.com>
5905
5906 * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
5907
5908 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
5909
5910 * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
5911 comparing ftab elements.
5912 (_dl_unmap): Fix typo in test.
5913 (_dl_make_fptr): Fix typos introduced in last change.
5914
5915 * sysdeps/generic/dl-fptr.c: Put back one optimization from the
5916 original patch. Use non-exported symbols. Mark translatable
5917 strings. Pretty printing.
5918
5919 2003-05-02 Roland McGrath <roland@redhat.com>
5920
5921 * Makerules (do-stamp): Do $(make-target-directory).
5922
5923 2003-04-07 H.J. Lu <hjl@gnu.org>
5924
5925 * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
5926
5927 2003-04-03 H.J. Lu <hjl@gnu.org>
5928
5929 * sysdeps/ia64/dl-fptr.c: Moved to ...
5930 * sysdeps/generic/dl-fptr.c: Here.
5931
5932 * sysdeps/generic/dl-fptr.h: New.
5933 * sysdeps/ia64/dl-fptr.h: New.
5934
5935 * sysdeps/ia64/dl-symaddr.c: Moved to ...
5936 * sysdeps/generic/dl-symaddr.c: here.
5937
5938 * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
5939 (IA64_BOOT_FPTR_TABLE_LEN): Removed.
5940 (ia64_fdesc): Likewise.
5941 (ia64_fdesc_table): Likewise.
5942 (__ia64_make_fptr): Likewise.
5943 (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
5944 with _dl_boot_fptr_table.
5945 (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
5946 `struct fdesc'.
5947 (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
5948
5949 2003-05-01 Roland McGrath <roland@redhat.com>
5950
5951 * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
5952 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
5953
5954 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
5955 Use $(make-target-directory).
5956 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
5957
5958 * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
5959 (compile-command.S): Don't use ifndef. Append $(compile-mkdep-flags).
5960 (compile-command.s, compile-command.c): Likewise.
5961 ($(objpfx)%.d): All such pattern rules removed.
5962 ($(+sysdir_pfx)sysd-rules): Don't generate them.
5963 ($(common-objpfx)dummy.d): Target removed.
5964 (make-dummy-dep): Variable removed.
5965 (generate-md5): Likewise.
5966 (%.d: %.dt): New pattern rule.
5967 (+depfiles): Use $(wildcard) function to get just existing *.d files
5968 and .d files for existing *.dt files.
5969 (common-clean): Remove all *.d and *.dt files.
5970 (before-compile): Add $(objpfx). when it doesn't exist,
5971 regardless of $(no_deps).
5972 * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
5973 (rtld-depfiles): Use .os.d instead of .d names.
5974 Include existing *.d files and .d files for existing *.dt files.
5975
5976 * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
5977 Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
5978
5979 * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
5980 Do s-*.d includes only if we have some syscall routines in this subdir.
5981
5982 * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
5983 @nobits. The former is accepted by gas on any ELF platform.
5984
5985 2003-05-01 Ulrich Drepper <drepper@redhat.com>
5986
5987 * sysdeps/unix/sysv/linux/semtimedop.c: New file.
5988
5989 * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
5990
5991 2003-04-29 Andreas Schwab <schwab@suse.de>
5992
5993 * string/test-strcat.c (do_one_test): Fix attribute name.
5994
5995 2003-04-30 Alexandre Oliva <aoliva@redhat.com>
5996
5997 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
5998 uc_flags long for all ABIs.
5999
6000 2003-04-30 Andreas Jaeger <aj@suse.de>
6001
6002 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
6003 (DR_CONTROL_RESERVED): Use correct value for 64-bit.
6004 Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
6005 Add bi-arch support.
6006
6007 2003-04-30 Ulrich Drepper <drepper@redhat.com>
6008
6009 * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
6010 (__posix_memalign): Use __memalign_internal instead of memalign.
6011
6012 2003-04-29 Roland McGrath <roland@redhat.com>
6013
6014 * configure.in: Search for AUTOCONF unconditionally.
6015 Just don't complain about missing it under --without-cvs.
6016
6017 * include/libc-symbols.h (__symbol_set_attribute): New macro,
6018 give hidden for [SHARED] and weak for [! SHARED].
6019 (symbol_set_declare): Use that. Never need weak_extern these days.
6020 * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
6021 Depend on $(..)Makerules.
6022
6023 2003-04-29 Ulrich Drepper <drepper@redhat.com>
6024
6025 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
6026 variants of socket, bind, recvmsg, and sendto.
6027
6028 * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
6029
6030 * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
6031 * signal/sigaddset.c: Add libc_hidden_def.
6032 * signal/sigdelset.c: Likewise.
6033
6034 2003-04-29 Jakub Jelinek <jakub@redhat.com>
6035
6036 * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
6037 to the end of the file.
6038
6039 * configure.in: Change __oline__ to $LINENO.
6040 (HAVE_BUILTIN_REDIRECTION): New check.
6041 * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
6042 * include/libc-symbols.h (libc_hidden_builtin_proto,
6043 libc_hidden_builtin_def, libc_hidden_builtin_weak,
6044 libc_hidden_builtin_ver): Define.
6045 * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
6046 strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
6047 strspn, strstr): Add libc_hidden_builtin_proto.
6048 * intl/plural.y: Include string.h.
6049 * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
6050 libc_hidden_builtin_def.
6051 * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
6052 * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
6053 * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
6054 * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
6055 * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
6056 * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
6057 * sysdeps/alpha/memchr.S (memchr): Likewise.
6058 * sysdeps/alpha/memset.S (memset): Likewise.
6059 * sysdeps/alpha/strcat.S (strcat): Likewise.
6060 * sysdeps/alpha/strchr.S (strchr): Likewise.
6061 * sysdeps/alpha/strcmp.S (strcmp): Likewise.
6062 * sysdeps/alpha/strcpy.S (strcpy): Likewise.
6063 * sysdeps/alpha/strlen.S (strlen): Likewise.
6064 * sysdeps/alpha/strncmp.S (strncmp): Likewise.
6065 * sysdeps/alpha/strncpy.S (strncpy): Likewise.
6066 * sysdeps/alpha/strrchr.S (strrchr): Likewise.
6067 * sysdeps/arm/memset.S (memset): Likewise.
6068 * sysdeps/arm/strlen.S (strlen): Likewise.
6069 * sysdeps/generic/memchr.c (memchr): Likewise.
6070 * sysdeps/generic/memcpy.c (memcpy): Likewise.
6071 * sysdeps/generic/memmove.c (memmove): Likewise.
6072 * sysdeps/generic/memset.c (memset): Likewise.
6073 * sysdeps/generic/strcat.c (strcat): Likewise.
6074 * sysdeps/generic/strchr.c (strchr): Likewise.
6075 * sysdeps/generic/strcmp.c (strcmp): Likewise.
6076 * sysdeps/generic/strcpy.c (strcpy): Likewise.
6077 * sysdeps/generic/strcspn.c (strcspn): Likewise.
6078 * sysdeps/generic/strlen.c (strlen): Likewise.
6079 * sysdeps/generic/strncmp.c (strncmp): Likewise.
6080 * sysdeps/generic/strncpy.c (strncpy): Likewise.
6081 * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
6082 * sysdeps/generic/strrchr.c (strrchr): Likewise.
6083 * sysdeps/generic/strspn.c (strspn): Likewise.
6084 * sysdeps/generic/strstr.c (strstr): Likewise.
6085 * sysdeps/i386/i486/strcat.S (strcat): Likewise.
6086 * sysdeps/i386/i486/strlen.S (strlen): Likewise.
6087 * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
6088 * sysdeps/i386/i586/memset.S (memset): Likewise.
6089 * sysdeps/i386/i586/strchr.S (strchr): Likewise.
6090 * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
6091 * sysdeps/i386/i586/strlen.S (strlen): Likewise.
6092 * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
6093 * sysdeps/i386/i686/memmove.S (memmove): Likewise.
6094 * sysdeps/i386/i686/memset.S (memset): Likewise.
6095 * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
6096 * sysdeps/i386/memchr.S (memchr): Likewise.
6097 * sysdeps/i386/memset.c (memset): Likewise.
6098 * sysdeps/i386/strchr.S (strchr): Likewise.
6099 * sysdeps/i386/strcspn.S (strcspn): Likewise.
6100 * sysdeps/i386/strlen.c (strlen): Likewise.
6101 * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
6102 * sysdeps/i386/strrchr.S (strrchr): Likewise.
6103 * sysdeps/i386/strspn.S (strspn): Likewise.
6104 * sysdeps/ia64/memchr.S (memchr): Likewise.
6105 * sysdeps/ia64/memcpy.S (memcpy): Likewise.
6106 * sysdeps/ia64/memmove.S (memmove): Likewise.
6107 * sysdeps/ia64/memset.S (memset): Likewise.
6108 * sysdeps/ia64/strcat.S (strcat): Likewise.
6109 * sysdeps/ia64/strchr.S (strchr): Likewise.
6110 * sysdeps/ia64/strcmp.S (strcmp): Likewise.
6111 * sysdeps/ia64/strcpy.S (strcpy): Likewise.
6112 * sysdeps/ia64/strlen.S (strlen): Likewise.
6113 * sysdeps/ia64/strncmp.S (strncmp): Likewise.
6114 * sysdeps/ia64/strncpy.S (strncpy): Likewise.
6115 * sysdeps/m68k/memchr.S (memchr): Likewise.
6116 * sysdeps/m68k/strchr.S (strchr): Likewise.
6117 * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
6118 * sysdeps/mips/mips64/memset.S (memset): Likewise.
6119 * sysdeps/mips/memcpy.S (memcpy): Likewise.
6120 * sysdeps/mips/memset.S (memset): Likewise.
6121 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
6122 * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
6123 * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
6124 * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
6125 * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
6126 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
6127 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
6128 * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
6129 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
6130 * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
6131 * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
6132 * sysdeps/powerpc/strcat.c (strcat): Likewise.
6133 * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
6134 * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
6135 * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
6136 * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
6137 * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
6138 * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
6139 * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
6140 * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
6141 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
6142 * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
6143 * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
6144 * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
6145 * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
6146 * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
6147 * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
6148 * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
6149 * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
6150 * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
6151 * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
6152 * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
6153 * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
6154 * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
6155 * sysdeps/sh/memcpy.S (memcpy): Likewise.
6156 * sysdeps/sh/memset.S (memset): Likewise.
6157 * sysdeps/sh/strlen.S (strlen): Likewise.
6158 * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
6159 * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
6160 * sysdeps/s390/s390-32/memset.S (memset): Likewise.
6161 * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
6162 * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
6163 * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
6164 * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
6165 * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
6166 * sysdeps/s390/s390-64/memset.S (memset): Likewise.
6167 * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
6168 * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
6169 * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
6170 * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
6171 * sysdeps/x86_64/memset.S (memset): Likewise.
6172 * sysdeps/x86_64/strcat.S (strcat): Likewise.
6173 * sysdeps/x86_64/strchr.S (strchr): Likewise.
6174 * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
6175 * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
6176 * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
6177 * sysdeps/x86_64/strlen.S (strlen): Likewise.
6178 * sysdeps/x86_64/strspn.S (strspn): Likewise.
6179 * string/string-inlines.c: Move...
6180 * sysdeps/generic/string-inlines.c: ...here.
6181 (__memcpy_g, __strchr_g): Remove.
6182 (__NO_INLINE__): Define before including <string.h>,
6183 undefine after. Include bits/string.h and bits/string2.h.
6184 * sysdeps/i386/i486/string-inlines.c: New file.
6185 * sysdeps/i386/string-inlines.c: New file.
6186 * sysdeps/i386/i486/Versions: Remove.
6187 All GLIBC_2.1.1 symbols moved...
6188 * sysdeps/i386/Versions (libc): ...here.
6189
6190 2003-04-29 Ulrich Drepper <drepper@redhat.com>
6191
6192 * sysdeps/i386/fpu/Makefile: New file.
6193 * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
6194 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
6195 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
6196 * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
6197 [PR libc/4987].
6198
6199 2003-04-28 Ulrich Drepper <drepper@redhat.com>
6200
6201 * nscd/nscd_getgr_r.c: Compact code a bit. Add some __builtin_expect.
6202 * nscd/nscd_getpw_r.c: Likewise.
6203 * nscd/nscd_gethst_r.c: Likewise.
6204
6205 2003-04-27 Ulrich Drepper <drepper@redhat.com>
6206
6207 * nscd/pwdcache.c: Initialize .version element in result.
6208 * nscd/grpcache.c: Likewise.
6209 * nscd/pwdcache.c: Likewise.
6210
6211 2003-04-27 Andreas Schwab <schwab@suse.de>
6212
6213 * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
6214 subdirectory.
6215
6216 2003-04-27 Andreas Schwab <schwab@suse.de>
6217
6218 * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
6219
6220 2003-04-27 Ulrich Drepper <drepper@redhat.com>
6221
6222 * nscd/connections.c (client_queued): New variable.
6223 (nscd_run): Revamp the loop. Don't call poll except for cleanup
6224 threads. Keep track of the number of delays caused because of busy
6225 worker threads.
6226 * nscd/nscd.h: Declare client_queued.
6227 * nscd/nscd_stat.c: Transmit and print client_queued information.
6228
6229 * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
6230
6231 * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
6232 define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
6233
6234 2003-04-26 Ulrich Drepper <drepper@redhat.com>
6235
6236 * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
6237 tracking of freed memory in static TLS block.
6238 * elf/Makefile: Add rules to build and run tst-tls13.
6239 * elf/tst-tls13.c: New file.
6240 * elf/tst-tlsmod13.c: New file.
6241 * elf/tst-tlsmod13a.c: New file.
6242
6243 * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
6244
6245 * elf/dl-reloc.c: Pretty printing.
6246
6247 2003-04-26 Roland McGrath <roland@redhat.com>
6248
6249 * Makerules ($(common-objpfx)shlib.lds): New target.
6250 (common-generated): Add it.
6251 (build-shlib, build-module): Use that instead of generating every time.
6252 ($(common-objpfx)libc.so): Depend on it.
6253 (lib%.so rule): Likewise.
6254 (build-module-helper-objlist): Remove %.lds.
6255 (LDSEDCMD-c.so): Variable removed.
6256 * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
6257 Depend on $(common-objpfx)shlib.lds.
6258 * dlfcn/Makefile ($(test-modules)): Likewise.
6259
6260 2003-04-26 Roland McGrath <roland@frob.com>
6261
6262 * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
6263
6264 2003-04-26 Andreas Schwab <schwab@suse.de>
6265
6266 * elf/dl-close.c (remove_slotinfo): Fix missing parens.
6267
6268 2003-04-25 Ulrich Drepper <drepper@redhat.com>
6269
6270 * nscd/cache.c (cache_search): Keep track of how many chain links
6271 we searched and update table statistics.
6272 (cache_add): Keep track of how many values are in the table.
6273 (prune_cache): Likewise. Keep track of locking success.
6274 Print messages about removed entries in separate pass.
6275 * nscd/connections.c (handle_request): Don't print debug message here.
6276 The caller will do it. Keep track of locking success.
6277 (nscd_run): Print debug message. Also print PID of the client process.
6278 * nscd/nscd.c (start_time): New variable.
6279 (main): Remember start time.
6280 * nscd/nscd.h: Declare start_time.
6281 (struct database): Add more members for new statistics.
6282 * nscd/nscd_stat.c: Add support for sending, receiving, and printing
6283 of new statistics.
6284
6285 * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
6286
6287 2003-04-22 Jakub Jelinek <jakub@redhat.com>
6288
6289 * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
6290 * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
6291 * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
6292 NO_TLS_OFFSET.
6293 * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
6294 * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
6295 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
6296 * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
6297 TLS_TCB_SIZE.
6298
6299 2003-04-24 Ulrich Drepper <drepper@redhat.com>
6300
6301 * nss/getent.c: Implement alternative host database lookup via
6302 getaddrinfo.
6303
6304 * include/ifaddrs.h: New file.
6305 * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
6306 AI_ADDRCONFIG...
6307 * resolv/netdb.h: ...here.
6308 * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
6309 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
6310 * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
6311 AI_ADDRCONFIG.
6312
6313 2003-04-24 Roland McGrath <roland@redhat.com>
6314
6315 * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
6316
6317 2003-04-24 Jakub Jelinek <jakub@redhat.com>
6318
6319 * elf/dl-reloc.c (allocate_static_tls): Rename to...
6320 (_dl_allocate_static_tls): ... this function. No longer static.
6321 (CHECK_STATIC_TLS): Adjust.
6322 * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
6323 * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
6324 Add SYM_MAP argument.
6325 (elf_machine_rela): Adjust caller. Declare SYM_MAP unconditionally.
6326 Check if SYM_MAP != NULL for R_PPC_DTPREL32. Only handle 32-bit
6327 TLS relocs here. #ifdef out relocs which never appear in
6328 .gnu.conflict section from dl-conflict.c processing.
6329 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
6330 Add SYM_MAP argument. Handle 16-bit TLS relocs here.
6331
6332 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
6333 out relocs which never appear in .gnu.conflict section from
6334 dl-conflict.c processing.
6335 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
6336 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
6337 * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
6338 Use r_type in RESOLVE macro.
6339
6340 2003-04-23 Ulrich Drepper <drepper@redhat.com>
6341
6342 * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
6343 NULL. Remove code made redundant by this assumption.
6344 (__yp_unbind): Add call to free. Adjust all callers.
6345
6346 * nis/ypclnt.c (yp_all): Free the dom_binding object after
6347 unbinding it.
6348
6349 * grp/initgroups.c (getgrouplist): Don't copy too much into the
6350 user buffer if more groups are found than fit into it.
6351
6352 * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
6353 extend_alloca.
6354
6355 2003-04-23 Jakub Jelinek <jakub@redhat.com>
6356
6357 * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
6358 not rc == errno. Use extend_alloca.
6359
6360 * elf/tst-tls12.c (main): Fix declaration.
6361 * elf/tst-tls10.c (dummy): Make hidden instead of static.
6362 * elf/tst-tlsmod7.c (dummy): Likewise.
6363 * elf/tst-tlsmod8.c (dummy): Likewise.
6364 * elf/tst-tlsmod9.c (dummy): Likewise.
6365
6366 2003-04-22 Roland McGrath <roland@redhat.com>
6367
6368 * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
6369 (open_not_cancel): Make last argument non-optional.
6370 * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
6371 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
6372 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
6373
6374 * include/tls.h: Protect against multiple inclusion.
6375
6376 2003-04-22 Ulrich Drepper <drepper@redhat.com>
6377
6378 * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
6379 * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
6380 open_socket. Not static anymore.
6381 (nscd_gethst_r): Use __nscd_open_socket.
6382 * nscd/nscd_getgr_r.c (open_socket): Removed.
6383 (nscd_getgr_r): Use __nscd_open_socket.
6384 * nscd/nscd_getpw_r.c (open_socket): Removed.
6385 (nscd_getpw_r): Use __nscd_open_socket.
6386
6387 * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
6388 * nscd/connections.c (handle_request): Add cast to avoid warning.
6389
6390 2003-04-21 Ulrich Drepper <drepper@redhat.com>
6391
6392 * signal/sigfillset.c: Moved to...
6393 * sysdeps/generic/sigfillset.c: ...here. If SIGCANCEL is defined
6394 do not set the corresponding bit.
6395
6396 * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
6397 SIGCANCEL.
6398 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
6399 * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
6400 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
6401 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
6402 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
6403
6404 2003-04-20 Ulrich Drepper <drepper@redhat.com>
6405
6406 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
6407 first syscall parameter to const char*.
6408
6409 2003-04-19 Ulrich Drepper <drepper@redhat.com>
6410
6411 * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
6412
6413 * configure.in: Add AC_PROG_CXX.
6414 * config.make.in (CXX): Define.
6415
6416 * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
6417 __len to size_t to avoid warnings.
6418
6419 2003-04-18 Jes Sorensen <jes@wildopensource.com>
6420
6421 * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
6422 2.5.67.
6423 * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6424
6425 2003-04-19 Ulrich Drepper <drepper@redhat.com>
6426
6427 * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
6428 UNREGISTER_ATFORK if d == NULL.
6429
6430 * catgets/nl_types.h: Remove __THROW marker from cancellation points.
6431 * dirent/dirent.h: Likewise.
6432 * dlfcn/dlfcn.h: Likewise.
6433 * grp/grp.h: Likewise.
6434 * iconv/iconv.h: Likewise.
6435 * io/fcntl.h: Likewise.
6436 * io/ftw.h: Likewise.
6437 * libio/stdio.h: Likewise.
6438 * misc/sys/mman.h: Likewise.
6439 * misc/sys/select.h: Likewise.
6440 * misc/sys/syslog.h: Likewise.
6441 * misc/sys/uio.h: Likewise.
6442 * posix/spawn.h: Likewise.
6443 * posix/unistd.h: Likewise.
6444 * posix/sys/wait.h: Likewise.
6445 * pwd/pwd.h: Likewise.
6446 * resolv/netdb.h: Likewise.
6447 * rt/aio.h: Likewise.
6448 * shadow/shadow.h: Likewise.
6449 * signal/signal.h: Likewise.
6450 * socket/sys/socket.h: Likewise.
6451 * stdlib/stdlib.h: Likewise.
6452 * streams/stropts.h: Likewise.
6453 * string/string.h: Likewise.
6454 * sysdeps/gnu/utmpx.h: Likewise.
6455 * sysvipc/sys/msg.h: Likewise.
6456 * termios/termios.h: Likewise.
6457 * time/time.h: Likewise.
6458 * wcsmbs/wchar.h: Likewise.
6459 * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
6460 functions.
6461 * misc/daemon.c: Likewise.
6462 * sysdeps/generic/backtracesymsfd.c: Likewise.
6463 * sysdeps/generic/check_fds.c: Likewise.
6464 * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
6465 * sysdeps/unix/sysv/linux/not-cancel.h: New file.
6466 * sysdeps/generic/not-cancel.h: New file.
6467 * csu/Makefile (distribute): Add not-cancel.h.
6468 * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
6469 * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
6470 for assert.c and assert-perr.c to include <fatal-prepare.h>.
6471 * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
6472
6473 * sysdeps/posix/remove.c (remove): Rewrite. No need to restore
6474 errno and unlink first.
6475
6476 * io/ftw.c (ftw_dir): In all places assume fchdir is available.
6477
6478 2003-04-18 Ulrich Drepper <drepper@redhat.com>
6479
6480 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
6481 INTERNAL_SYSCALL instead of INLINE_SYSCALL.
6482
6483 2003-04-17 Ulrich Drepper <drepper@redhat.com>
6484
6485 * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
6486
6487 * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
6488 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
6489 replace.
6490
6491 * signal/Makefile (tests): Add tst-sigsimple.
6492 * signal/tst-sigsimple.c: New file.
6493
6494 2003-04-16 Jakub Jelinek <jakub@redhat.com>
6495
6496 * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
6497 tst-tls10.h.
6498 (tests): Add tst-tls1[0-2].
6499 (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
6500 ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
6501 ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
6502 ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
6503 ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
6504 ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
6505 ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
6506 * elf/tst-tls10.c: New test.
6507 * elf/tst-tls11.c: New test.
6508 * elf/tst-tls12.c: New test.
6509 * elf/tst-tls10.h: New file.
6510 * elf/tst-tlsmod7.c: New file.
6511 * elf/tst-tlsmod8.c: New file.
6512 * elf/tst-tlsmod9.c: New file.
6513 * elf/tst-tlsmod10.c: New file.
6514 * elf/tst-tlsmod11.c: New file.
6515 * elf/tst-tlsmod12.c: New file.
6516
6517 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
6518
6519 * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
6520 * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
6521 * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
6522
6523 2003-04-17 Ulrich Drepper <drepper@redhat.com>
6524
6525 * posix/regex.h: Include <sys/types.h>.
6526
6527 * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
6528 The signal number must be checked.
6529 * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
6530 The signal number must be checked [PR libc/5004].
6531
6532 * sysdeps/unix/sysv/linux/system.c: If compiled without threads
6533 don't do anything fancy.
6534
6535 * sysdeps/generic/bits/libc-lock.h: Define
6536 __rtld_lock_define_initialized_recursive.
6537
6538 * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
6539 contacting nscd if NOT_USENSCD_NAME > 0.
6540 * nss/nsswitch.c (__nss_disable_nscd): New function.
6541 * nss/nsswitch.h: Declare it.
6542 * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
6543 * nscd/nscd.c (main): Call __nss_disable_nscd.
6544
6545 2003-04-16 Ulrich Drepper <drepper@redhat.com>
6546
6547 * stdio-common/perror.c (perror): We don't need to set the offset
6548 to _IO_pos_bad, this is how streams are initialized.
6549
6550 * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
6551 (time_output): If necessary, allocate new buffer for .name string if
6552 padding is required.
6553
6554 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
6555 before copying. This might leave holes in the list. Adjust
6556 pointers if necessary.
6557 (netlink_receive): Allocate only one block.
6558 (free_netlink_handle): Adjust appropriately.
6559 (getifaddrs): Lots of cleanups.
6560
6561 * string/test-strncpy.c (do_one_test): Mark start and stop as
6562 possibly unused.
6563 * string/test-memchr.c: Likewise.
6564 * string/test-memcmp.c: Likewise.
6565 * string/test-memcpy.c: Likewise.
6566 * string/test-memmove.c: Likewise.
6567 * string/test-memset.c: Likewise.
6568 * string/test-strcat.c: Likewise.
6569 * string/test-strchr.c: Likewise.
6570 * string/test-strcmp.c: Likewise.
6571 * string/test-strcpy.c: Likewise.
6572 * string/test-strlen.c: Likewise.
6573 * string/test-strncmp.c: Likewise.
6574 * string/test-strpbrk.c: Likewise.
6575 * string/test-strrchr.c: Likewise.
6576 * string/test-strspn.c: Likewise.
6577
6578 2003-04-15 Roland McGrath <roland@redhat.com>
6579
6580 * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
6581
6582 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
6583 INTUSE(__register_frame_info_bases).
6584
6585 2003-04-15 Ulrich Drepper <drepper@redhat.com>
6586
6587 * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
6588 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
6589 AT_SYSINFO_EH_FRAME. Adjust string width.
6590 (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
6591 * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
6592 Add _dl_sysinfo_eh_frame field.
6593 * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
6594 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
6595 variable.
6596 [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
6597 if _dl_sysinfo_eh_frame is non-NULL.
6598
6599 * Makeconfig (gnulib): Add -lgcc_eh.
6600
6601 * config.h.in: Define HAVE_FORCED_UNWIND.
6602
6603 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
6604
6605 * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
6606 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
6607
6608 2003-04-15 Jakub Jelinek <jakub@redhat.com>
6609
6610 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
6611 checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
6612 against local symbol in conflict processing.
6613
6614 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
6615
6616 * sysdeps/powerpc/bits/atomic.h
6617 [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
6618 [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
6619 as abort stub.
6620 (__arch_compare_and_exchange_val_32_acq): Define.
6621 (atomic_compare_and_exchange_val_acq): Define.
6622
6623 2003-04-15 Ulrich Drepper <drepper@redhat.com>
6624
6625 * include/atomic.h: Pretty printing.
6626
6627 2003-04-14 Ulrich Drepper <drepper@redhat.com>
6628
6629 * stdio-common/vfscanf.c: Add casts to avoid warnings.
6630
6631 2003-04-14 Jakub Jelinek <jakub@redhat.com>
6632
6633 * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
6634 * sysdeps/x86_64/bits/atomic.h: Likewise.
6635
6636 2003-04-14 Ulrich Drepper <drepper@redhat.com>
6637
6638 * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
6639 POPARGS_1 to emit labels for the mov instructions.
6640
6641 2003-04-14 Jakub Jelinek <jakub@redhat.com>
6642
6643 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
6644
6645 2003-04-14 Roland McGrath <roland@redhat.com>
6646
6647 * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
6648 compiler warning.
6649
6650 * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
6651
6652 2003-04-14 Ulrich Drepper <drepper@redhat.com>
6653
6654 * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
6655 position. Reported by jreiser@BitWagon.com.
6656
6657 2003-04-13 Ulrich Drepper <drepper@redhat.com>
6658
6659 * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
6660 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
6661 * sysdeps/generic/unwind-dw2.c: Likewise.
6662 * sysdeps/generic/unwind-pe.h: Likewise.
6663
6664 2003-04-13 Alexandre Oliva <aoliva@redhat.com>
6665
6666 * sysdeps/unix/sysv/linux/mips/profil-counter: New.
6667 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
6668 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
6669 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
6670 (mcontext_t): Make it match the 32-bit mips kernel in o32.
6671 * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
6672 the mips and mips64 headers.
6673 (struct user): Port to n32/n64.
6674
6675 2003-04-12 Ulrich Drepper <drepper@redhat.com>
6676
6677 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
6678 avoid warning.
6679
6680 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
6681 __ASSUME_VSYSCALL is defined don't add restorer.
6682 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6683 __ASSUME_VSYSCALL for 2.5.53.
6684
6685 2003-04-11 Ulrich Drepper <drepper@redhat.com>
6686
6687 * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
6688 Remove HAVE_CANCELBUF code. Replace with code using the new
6689 initializers for unwind-based cleanup handling.
6690 * sysdeps/generic/unwind.h: Update from latest gcc version.
6691 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
6692 places to allow unwind data generation.
6693 * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
6694 * sysdeps/x86_64/bits/setjmp.h: Likewise.
6695 * sysdeps/sh/bits/setjmp.h: Likewise.
6696 * sysdeps/powerpc/bits/setjmp.h: Likewise.
6697 * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
6698 * sysdeps/alpha/bits/setjmp.h: Likewise.
6699
6700 2003-04-11 Roland McGrath <roland@redhat.com>
6701
6702 * csu/tst-empty.c: New file.
6703 * csu/Makefile (tests, tests-static): Add it.
6704
6705 2003-04-11 Jakub Jelinek <jakub@redhat.com>
6706
6707 * string/test-strcmp.c (do_random_tests): Test whether return value
6708 has been promoted to wordsize if the ABI requires caller to do so.
6709 * string/test-strncmp.c (do_random_tests): Likewise.
6710 * string/test-memcmp.c (do_random_tests): Likewise.
6711
6712 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
6713 before returning.
6714
6715 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
6716 (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
6717 is not defined, but the prctl constants are.
6718
6719 * string/tester.c (test_strcmp): Fix a typo.
6720
6721 2003-04-09 Ulrich Drepper <drepper@redhat.com>
6722
6723 * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
6724 * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
6725
6726 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
6727
6728 * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
6729 NewABI.
6730 (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
6731 NewABI.
6732 * sysdeps/mips/mips64/memcpy.S: Adjust register naming
6733 conventions.
6734 * sysdeps/mips/mips64/memset.S: Likewise.
6735 * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
6736 Use t0 instead of t4 as temporary.
6737
6738 2003-04-07 Ulrich Drepper <drepper@redhat.com>
6739
6740 * elf/ldconfig.c (parse_conf): Ignore leading whitespace. Use
6741 feof_unlocked instead of feof.
6742 (add_dir): Ignore trailing whitespace.
6743
6744 2003-04-07 Jakub Jelinek <jakub@redhat.com>
6745
6746 * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
6747 sum of SIZE1 and SIZE2 arguments.
6748
6749 2003-04-06 Ulrich Drepper <drepper@redhat.com>
6750
6751 * iconv/iconv_prog.c (process_block): Don't print message about
6752 invalid input if the -c option is used.
6753 (main): Correctly append IGNORE string for -c option.
6754
6755 2003-04-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6756
6757 * sysdeps/sh/bits/atomic.h: Moved to ...
6758 * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here. Add comments.
6759 (__arch_compare_and_exchange_val_*_acq): Add parens around macro
6760 arguments.
6761 (atomic_bit_set, atomic_bit_test_set): Likewise.
6762 (atomic_exchange_and_add): Likewise. Don't evaluate VALUE argument
6763 twice.
6764 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
6765
6766 2003-04-06 Roland McGrath <roland@redhat.com>
6767
6768 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
6769 restoration as done for setcontext yesterday.
6770
6771 2003-04-06 Jakub Jelinek <jakub@redhat.com>
6772
6773 * elf/rtld.c: Revert 2003-03-14 change.
6774 * elf/dl-conflict.c (_dl_resolve_conflicts): Move
6775 #if ! ELF_MACHINE_NO_RELA conditional into the routine.
6776
6777 2003-04-05 Ulrich Drepper <drepper@redhat.com>
6778
6779 * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
6780
6781 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6782 Always initialize *signgamp before returning an error.
6783
6784 2003-04-05 Roland McGrath <roland@redhat.com>
6785
6786 * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
6787 below the stack pointer even if switching to the same context we are
6788 running right now.
6789
6790 2003-04-05 Ulrich Drepper <drepper@redhat.com>
6791
6792 * catgets/gencat.c (read_input_file): Make sure that \n is not
6793 alone on the line before testing for continuation.
6794
6795 * math/test-tgmath.c (compile_test): Initialize c.
6796
6797 2003-04-05 Alexandre Oliva <aoliva@redhat.com>
6798
6799 * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
6800 * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
6801 * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
6802 on mips n32.
6803 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
6804 XSTAT_IS_XSTAT64 must not be used for mips n64. Use 64-bit data
6805 structure on n32 as well.
6806 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
6807 data types on n32 and n64.
6808
6809 2003-04-05 Ulrich Drepper <drepper@redhat.com>
6810
6811 * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
6812 after getting them.
6813
6814 * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
6815 HAVE_register_atfork_malloc is defined use __register_atfork_malloc
6816 instead of __register_atfork.
6817
6818 2003-04-05 Jakub Jelinek <jakub@redhat.com>
6819
6820 * stdio-common/reg-printf.c (__register_printf_function): Calloc
6821 instead of malloc __printf_arginfo_table and __printf_function_table.
6822 Reported by John Reiser <jreiser@BitWagon.com>.
6823
6824 2003-04-04 Steven Munroe <sjmunroe@us.ibm.com>
6825
6826 * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
6827 * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
6828
6829 * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
6830 defining.
6831
6832 2003-04-04 Alexandre Oliva <aoliva@redhat.com>
6833
6834 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
6835 for n64 abi.
6836
6837 2003-04-03 Roland McGrath <roland@redhat.com>
6838
6839 * configure.in: Fix up use of compilation flags to match the build:
6840 For .s files, $ASFLAGS;
6841 For .S files, $CPPFLAGS $ASFLAGS;
6842 For .c files, $CFLAGS $CPPFLAGS;
6843 when linking, add $LDFLAGS.
6844 * configure: Regenerated.
6845
6846 2003-04-03 Jakub Jelinek <jakub@redhat.com>
6847
6848 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
6849 for atomic_compare_and_exchange_bool_acq failure.
6850
6851 2003-04-03 Ulrich Drepper <drepper@redhat.com>
6852
6853 * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
6854 _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
6855 _POSXI2_LOCALEDEF to 200112L. Remove _POSIX2_C_VERSION.
6856 Remove declaration of pthread_atfork.
6857
6858 2003-04-02 Ulrich Drepper <drepper@redhat.com>
6859
6860 * locale/iso-639.def: Add many more languages from the current ISO 639.
6861
6862 * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
6863 * sysdeps/generic/semtimedop.c: New file.
6864 * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
6865 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
6866 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6867 * sysvipc/Makefile (routines): Add semtimedop.
6868 * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
6869 * sysvipc/sys/sem.h: Declare semtimedop.
6870
6871 2003-04-02 Daniel Jacobowitz <drow@mvista.com>
6872
6873 * configure.in: Check for __register_frame_info in both
6874 -lgcc and -lgcc_eh.
6875 * configure: Regenerated.
6876
6877 2003-04-01 Roland McGrath <roland@redhat.com>
6878
6879 * scripts/abilist.awk: Allow dots in soname suffix.
6880
6881 * scripts/abilist.awk (emit): Fix bailout condition.
6882
6883 2003-04-01 Jakub Jelinek <jakub@redhat.com>
6884
6885 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
6886 IA-64 version.
6887
6888 * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
6889 register as input to asm.
6890
6891 2003-04-01 Jakub Jelinek <jakub@redhat.com>
6892
6893 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
6894
6895 2003-04-01 Andreas Jaeger <aj@suse.de>
6896
6897 * configure.in: Output as/ld as name if version is too old.
6898
6899 2003-03-31 Daniel Jacobowitz <drow@mvista.com>
6900
6901 * configure.in: Don't require an installed C library in the test
6902 for ".set" assembler support.
6903
6904 2003-03-31 Roland McGrath <roland@redhat.com>
6905
6906 * signal/tst-sigset.c: New file.
6907 * signal/Makefile (tests): Add it.
6908
6909 2003-03-31 Ulrich Drepper <drepper@redhat.com>
6910
6911 * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
6912 * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
6913 * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
6914 * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
6915 (__SIGRTMAX): Adjust accordingly.
6916 * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
6917 second compatibility symbol set.
6918 * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
6919
6920 2003-03-31 Andreas Schwab <schwab@suse.de>
6921
6922 * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
6923 Define.
6924 (atomic_decrement_and_test): Fix test.
6925
6926 2003-03-31 Jakub Jelinek <jakub@redhat.com>
6927
6928 * sysdeps/sparc/sparc32/bits/atomic.h: New file.
6929 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
6930 * sysdeps/sparc/sparc64/bits/atomic.h: New file.
6931 * sysdeps/sparc/sparc32/atomicity.h: Removed.
6932 * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
6933 * sysdeps/sparc/sparc64/atomicity.h: Removed.
6934
6935 2003-03-30 Roland McGrath <roland@redhat.com>
6936
6937 * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
6938
6939 * intl/po2test.sed: Anchor substitution regexps to fix last change.
6940
6941 2003-03-29 Paolo Bonzini <bonzini@gnu.org>
6942
6943 * intl/po2test.sed: Unify the transformations for msgid and msgstr
6944 and remove a useless s/// command.
6945
6946 2003-03-27 David Mosberger <davidm@hpl.hp.com>
6947
6948 * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
6949 directive into empty .prologue region to ensure that call-chain
6950 is terminated even for the first instruction.
6951
6952 * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
6953 to terminate call-chain right from the get-go.
6954
6955 * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
6956 stop bit between compare & branch.
6957
6958 2003-03-29 Ulrich Drepper <drepper@redhat.com>
6959
6960 * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
6961 point correctly [PR libc/4993].
6962
6963 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
6964 netlink_open calls if netlink is known to not be available.
6965
6966 2003-03-29 Alexandre Oliva <aoliva@redhat.com>
6967
6968 * configure.in: Add mips64* support.
6969 * sysdeps/mips/bits/endian.h: Make it bi-endian.
6970 * sysdeps/mips/mipsel/bits/endian.h: Removed.
6971 * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
6972 * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
6973 * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
6974 * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
6975 * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
6976 * sysdeps/mips/Implies: Moved wordsize-32 to...
6977 * sysdeps/mips/mips32/Implies: New file.
6978 * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
6979 ret_NOERRNO): New.
6980 (ret, PSEUDO_END): Moved past END.
6981 (PSEUDO): Moved to...
6982 * sysdeps/unix/mips/mips32/sysdep.h: New file.
6983 * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
6984 * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
6985 * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
6986 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
6987 * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
6988
6989 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
6990 Re-introduce ENTRY.
6991
6992 2003-03-28 Thorsten Kukuk <kukuk@suse.de>
6993
6994 * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
6995 * inet/test-ifaddrs.c: Allow AF_PACKET.
6996 * sysdeps/unix/sysv/linux/kernel-features.h: Add
6997 __ASSUME_NETLINK_SUPPORT.
6998
6999 2003-03-28 Ulrich Drepper <drepper@redhat.com>
7000
7001 * elf/vismain.c (do_test): Comment out tests which fail in the moment.
7002
7003 2003-03-26 H.J. Lu <hjl@gnu.org>
7004
7005 * elf/vismod.h (getvarlocal1): Return const char **.
7006 (getvarinmod1): Likewise.
7007 (getvaritcpt1): Likewise.
7008 (getvarlocal2): Likewise.
7009 (getvarinmod2): Likewise.
7010 (getvaritcpt2): Likewise.
7011 (getvaritcpt3): Likewise.
7012 * elf/vismain.c (do_test): Adjusted.
7013 * elf/vismod1.c (getvarlocal1): Return address.
7014 (getvarinmod1): Likewise.
7015 (getvaritcpt1): Likewise.
7016 * elf/vismod2.c (getvarlocal2): Likewise.
7017 (getvarinmod2): Likewise.
7018 (getvaritcpt2): Likewise.
7019 * elf/vismod3.c (getvaritcpt3): Likewise.
7020
7021 2003-03-28 Roland McGrath <roland@redhat.com>
7022
7023 * elf/vismain.c (do_test): Print both addresses when they don't match.
7024
7025 * scripts/abilist.awk: If given -v filename_regexp and/or -v
7026 libname_regexp when parsing names, then produce output only
7027 for those matching the given regexps. In combine mode, save all
7028 stanzas for a final sorting by stanza header at the end.
7029 Emit a blank line between stanzas.
7030
7031 * scripts/abilist.awk: When given -v combine=1, do parse_names and
7032 emit a single output stream with lib name in stanza header lines.
7033
7034 * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
7035
7036 2003-03-27 Roland McGrath <roland@redhat.com>
7037
7038 * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
7039 (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
7040
7041 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7042
7043 * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
7044 Return old value. Make asm output reg constraint earlyclobber.
7045 Renamed from...
7046 (__arch_compare_and_exchange_8_acq): ... this.
7047 (__arch_compare_and_exchange_val_16_acq):
7048 Return old value. Make asm output reg constraint earlyclobber.
7049 Renamed from...
7050 (__arch_compare_and_exchange_16_acq): ... this.
7051 (__arch_compare_and_exchange_val_32_acq):
7052 Return old value. Make asm output reg constraint earlyclobber.
7053 Renamed from...
7054 (__arch_compare_and_exchange_32_acq): ... this.
7055 (__arch_compare_and_exchange_val_64_acq):
7056 Renamed from...
7057 (__arch_compare_and_exchange_64_acq): ... this.
7058 (atomic_exchange_and_add): Use local variables and
7059 __arch_compare_and_exchange_val_64_acq.
7060 (atomic_add): Likewise.
7061 (atomic_add_negative, atomic_add_zero): Use local variables.
7062
7063 2003-03-28 Alexandre Oliva <aoliva@redhat.com>
7064
7065 * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
7066
7067 2003-03-27 Ulrich Drepper <drepper@redhat.com>
7068
7069 * Makefile: Remove libmd5crypt goal.
7070
7071 2003-03-25 Jakub Jelinek <jakub@redhat.com>
7072
7073 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
7074 special handling of relocations against local symbols.
7075
7076 2003-03-27 Steven Munroe <sjmunroe@us.ibm.com>
7077
7078 * sysdeps/powerpc/bits/atomic.h
7079 (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
7080 [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
7081 Define PPC64 specific version.
7082 [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
7083 Change (mem) constraint to "b".
7084 [__powerpc64__] (__arch_atomic_exchange_and add_64):
7085 Replace addi with add. Change (value) contraint to "r".
7086 Change (mem) constraint to "b".
7087 [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
7088 (__arch_atomic_exchange_32): Change (mem) constraint to "b".
7089 (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
7090 (__arch_atomic_decrement_if_positive_32): New macro.
7091 (atomic_decrement_if_positive): Use __arch* macros.
7092
7093 2003-03-27 Jakub Jelinek <jakub@redhat.com>
7094
7095 * sysdeps/ia64/fpu/libm-test-ulps: Update.
7096
7097 2003-03-27 Roland McGrath <roland@redhat.com>
7098
7099 * scripts/rpm2dynsym.sh: New file.
7100 * Makefile (distribute): Add it.
7101
7102 2003-03-27 David Mosberger <davidm@hpl.hp.com>
7103
7104 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
7105 ar.unat before returning. Add missing .mem.offset directives
7106 to ensure file gets assembled without warnings.
7107 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
7108
7109 2003-03-27 Jakub Jelinek <jakub@redhat.com>
7110
7111 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
7112 Return -1 instead of 0 if clock_getres failed.
7113
7114 2003-03-27 Roland McGrath <roland@redhat.com>
7115
7116 * scripts/abilist.awk: If variable `parse_names' is set, grok the file
7117 header lines and write out foo.symlist files for each foo.so.NN listed.
7118
7119 * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
7120 This symbol is exported, and we don't want to hide it.
7121 Add libc_hidden_proto instead.
7122 (_IO_file_jumps): Add libc_hidden_proto.
7123 * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
7124 Remove INTVARDEF.
7125 * libio/fileops.c (_IO_file_jumps): Likewise.
7126 * libio/stdfiles.c: Don't use INTUSE on them.
7127 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
7128 * libio/iofopen.c (__fopen_internal): Likewise.
7129 * libio/freopen.c (freopen): Likewise.
7130 * libio/freopen64.c (freopen64): Likewise.
7131 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
7132
7133 * Makerules (check-abi) [$(enable-check-abi) = warn]:
7134 Ignore exit status from diff.
7135 * configure.in (enable_check_abi): Document possible value "warn".
7136 Change default to no for now.
7137 * configure: Regenerated.
7138
7139 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
7140 macro calls and a #include <stub-tag.h> at the end.
7141 * Makerules ($(objpfx)stubs): Tweak sed commands.
7142
7143 * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
7144 caller column for *xattr syscalls, since they are in sysdeps/generic.
7145
7146 * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
7147 * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
7148
7149 2003-03-26 Roland McGrath <roland@redhat.com>
7150
7151 * Makerules (check-abi-config): Use /thread instead of /tls when
7152 use-thread and not just use-tls is set.
7153
7154 * Makerules (update-abi): Put quotes around $(update-abi-config).
7155
7156 * elf/Makefile (check-abi): Depend on check-abi-ld.
7157 (update-abi): Depend on update-abi-ld.
7158
7159 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
7160
7161 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
7162 do not check for errors (unless testing for 32bit variant).
7163 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
7164
7165 2003-03-27 Philip Blundell <philb@gnu.org>
7166
7167 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
7168 unconditional mov. Remove nop.
7169
7170 * sysdeps/unix/sysv/linux/kernel-features.h
7171 (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
7172 * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
7173 when __ASSUME_VFORK_SYSCALL is defined.
7174 * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
7175 __ASSUME_MMAP2_SYSCALL.
7176 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
7177 __ASSUME_REALTIME_SIGNALS.
7178
7179 2003-03-26 Ulrich Drepper <drepper@redhat.com>
7180
7181 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
7182 only if DL_NO_COPY_RELOCS is not defined.
7183 * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
7184
7185 2003-03-26 Roland McGrath <roland@redhat.com>
7186
7187 * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
7188 SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
7189 * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
7190 (sysdep_routines): Add stub-syscalls.
7191 ($(objpfx)stub-syscalls.c): New target.
7192 (generated): Add stub-syscalls.c.
7193
7194 * tls.make.c: Also define use-tls according to USE_TLS macro.
7195
7196 2003-03-26 Ulrich Drepper <drepper@redhat.com>
7197
7198 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
7199 no-op padding element.
7200 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
7201 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
7202 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
7203 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
7204
7205 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
7206
7207 * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
7208 condition check for the return value of getgroups32.
7209
7210 2003-03-26 Jakub Jelinek <jakub@redhat.com>
7211
7212 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
7213 Fix a typo.
7214 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
7215 PSEUDO_END_NOERRNO): Define.
7216 * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
7217 Define to PSEUDO_END.
7218
7219 2003-03-26 Ulrich Drepper <drepper@redhat.com>
7220
7221 * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
7222
7223 2003-03-25 Jiro SEKIBA <jir@yamato.ibm.com>
7224
7225 * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
7226 * iconvdata/bug-iconv4.c: New file.
7227 * iconvdata/Makefile (tests): Add bug-iconv4.
7228
7229 2003-03-25 H.J. Lu <hjl@gnu.org>
7230
7231 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
7232 symbols twice.
7233 (_dl_lookup_versioned_symbol): Likewise.
7234
7235 2003-03-26 Jakub Jelinek <jakub@redhat.com>
7236
7237 * csu/tst-atomic.c (do_test): Add some new
7238 atomic_compare_and_exchange_val_acq, atomic_add_zero,
7239 atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
7240 * include/atomic.h (atomic_add_negative, atomic_add_zero):
7241 Prefix local variable so that it doesn't clash with the one
7242 in atomic_exchange_and_add.
7243 * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
7244 pointers.
7245 (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
7246 * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
7247 value into register.
7248 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
7249 Cast newval to long.
7250 * sysdeps/x86_64/bits/atomic.h
7251 (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
7252 long.
7253 (atomic_exchange): Cast newvalue to long if sizeof == 8.
7254 (atomic_exchange_and_add): Cast value to long if sizeof == 8.
7255 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
7256 (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
7257
7258 2003-03-21 Martin Schwidefsky <schwidefskyde.ibm.com>
7259
7260 * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
7261 bit from backtrace addresses.
7262
7263 2003-03-21 Andreas Schwab <schwab@suse.de>
7264
7265 * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
7266 __chown symbols.
7267
7268 2003-03-25 Roland McGrath <roland@redhat.com>
7269
7270 * config.make.in (enable-check-abi): New variable from configure.
7271 * configure.in (enable_check_abi): New substituted variable,
7272 controlled by --{enable,disable}-check-abi (default yes).
7273 * configure: Regenerated.
7274 * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
7275 on check-abi dependency.
7276
7277 2003-03-26 Andreas Schwab <schwab@suse.de>
7278
7279 * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
7280 * include/atomic.h: Likewise.
7281
7282 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
7283
7284 2003-03-25 Roland McGrath <roland@redhat.com>
7285
7286 * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
7287 (__arch_atomic_exchange_64): New macro.
7288 (atomic_exchange): Use them.
7289 (__arch_atomic_exchange_and_add_32): New macro.
7290 (__arch_atomic_exchange_and_add_64): New macro.
7291 (atomic_exchange_and_add): Use them.
7292 Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
7293
7294 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
7295
7296 * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
7297 Define.
7298 * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
7299 ISA tests.
7300 (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
7301 (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
7302 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
7303 to decide whether to add padding.
7304 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
7305 to decide whether to add padding.
7306 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
7307 old_kernel_sigaction): Likewise.
7308
7309 2003-03-25 Ulrich Drepper <drepper@redhat.com>
7310
7311 * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
7312 atomic_add_zero were supposed to do.
7313 * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
7314 to x86 behavior.
7315
7316 * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
7317 This matches the new timer implementation.
7318 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
7319 Likewise.
7320 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
7321 Likewise.
7322 * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
7323 timer info for what the kernel provides these days.
7324 (struct sigevent): Add _tid field.
7325 Define SIGEV_THREAD_ID.
7326 Remove struct __pthread_attr_s forward declaration.
7327 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
7328 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
7329 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
7330 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
7331
7332 * Versions.def (librt): Add GLIBC_2.3.3.
7333
7334 * abilist/libpthread.abilist: Update for nptl.
7335
7336 2003-03-24 Jon Grimm <jgrimm@us.ibm.com>
7337
7338 * inet/netinet/in.h: Add IPPROTO_SCTP.
7339
7340 2003-03-24 Ulrich Drepper <drepper@redhat.com>
7341
7342 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
7343
7344 2003-03-24 Philip Blundell <philb@gnu.org>
7345
7346 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
7347 Remove a1 from clobber list.
7348
7349 2003-03-24 Ulrich Drepper <drepper@redhat.com>
7350
7351 * timezone/antarctica: Update from tzdata2003a.
7352 * timezone/asia: Likewise.
7353 * timezone/australasia: Likewise.
7354 * timezone/europe: Likewise.
7355 * timezone/iso3166.tab: Likewise.
7356 * timezone/northamerica: Likewise.
7357 * timezone/southamerica: Likewise.
7358 * timezone/zone.tab: Likewise.
7359
7360 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
7361
7362 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
7363
7364 2003-03-23 Ulrich Drepper <drepper@redhat.com>
7365
7366 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
7367 unwanted expansion by definining to ret. Patch by Ian Wienand.
7368
7369 * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
7370 the parameter description to denote no error checking. Generate
7371 appropriate pseudo asm code.
7372 * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
7373 * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
7374 getpgrp, and getppid with 'E'.
7375 * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
7376 PSEUDO_END_NOERRNO, and ret_NOERRNO.
7377 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
7378 * sysdeps/unix/sysdep.h: Likewise.
7379 * sysdeps/unix/alpha/sysdep.h: Likewise.
7380 * sysdeps/unix/sparc/sysdep.h: Likewise.
7381 * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
7382 * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
7383 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
7384 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
7385 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
7386 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
7387 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
7388 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
7389 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
7390 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
7391 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7392
7393 2003-03-23 Roland McGrath <roland@redhat.com>
7394
7395 * Makeconfig (+includes): Don't use $(last-includes).
7396
7397 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
7398
7399 * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
7400 * sysdeps/unix/sysv/linux/configure: Rebuilt.
7401
7402 2003-03-23 Jakub Jelinek <jakub@redhat.com>
7403
7404 * sysdeps/alpha/fpu/libm-test-ulps: Update.
7405 * sysdeps/arm/libm-test-ulps: Update.
7406 * sysdeps/hppa/fpu/libm-test-ulps: Update.
7407 * sysdeps/ia64/fpu/libm-test-ulps: Update.
7408 * sysdeps/mips/fpu/libm-test-ulps: Update.
7409 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
7410 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7411 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
7412 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
7413 * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
7414 * sysdeps/s390/fpu/libm-test-ulps: Update.
7415 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7416
7417 2003-03-22 Roland McGrath <roland@redhat.com>
7418
7419 * include/atomic.h: Put parens around all macro arguments.
7420 (__atomic_val_bysize, __atomic_bool_bysize): New macros.
7421 (atomic_compare_and_exchange_val_acq): Use it.
7422 (atomic_compare_and_exchange_bool_acq): Likewise.
7423 (atomic_increment_and_test): Invert sense of test.
7424 (atomic_decrement_and_test): Likewise.
7425 * csu/tst-atomic.c: Update those tests to match.
7426
7427 2003-03-22 Jakub Jelinek <jakub@redhat.com>
7428
7429 * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
7430 Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
7431 (atomic_compare_and_exchange_bool_acq): Add comment. Don't use
7432 __oldval variable in the macro, since it might be macro argument.
7433 (atomic_decrement_if_positive): Initialize __memp, remove setting
7434 of non-existent variable.
7435 (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
7436 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
7437 using atomic_compare_and_exchange_val_acq.
7438 (atomic_decrement_if_positive, atomic_bit_test_set): Define.
7439 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
7440 Renamed from...
7441 (__arch_compare_and_exchange_bool_8_acq): ... this.
7442 (__arch_compare_and_exchange_val_16_acq): Renamed from...
7443 (__arch_compare_and_exchange_bool_16_acq): ... this.
7444 (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed
7445 from...
7446 (__arch_compare_and_exchange_bool_32_acq): ... this.
7447 (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed
7448 from...
7449 (__arch_compare_and_exchange_bool_64_acq): ... this.
7450 (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
7451 variables types instead of assuming int.
7452 Change prefix of local variables to __arch.
7453 * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
7454 Remove.
7455 (atomic_compare_and_exchange_val_acq,
7456 atomic_compare_and_exchange_bool_acq): Define.
7457
7458 * csu/tst-atomic.c: New test.
7459 * csu/tst-atomic-long.c: New test.
7460 * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
7461
7462 * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
7463
7464 * sysdeps/s390/Versions: Add trailing newline.
7465
7466 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
7467 if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
7468
7469 2003-03-22 Andreas Schwab <schwab@suse.de>
7470
7471 * sysdeps/m68k/fpu/libm-test-ulps: Update.
7472
7473 * sysdeps/m68k/m68020/bits/atomic.h: New file.
7474 * sysdeps/m68k/m68020/atomicity.h: Removed.
7475
7476 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
7477
7478 * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
7479 data structures and macros. Protect from multiple inclusion.
7480
7481 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
7482 typo in #if test.
7483
7484 2003-03-21 Andreas Jaeger <aj@suse.de>
7485
7486 * sysdeps/i386/fpu/libm-test-ulps: Update.
7487
7488 * math/libm-test.inc (tgamma_test): Recompute some constants with
7489 36 digits precision.
7490 (lgamma_test): Likewise.
7491 (ccos_test): Likewise.
7492 (ccosh_test): Likewise.
7493 (clog10_test): Likewise.
7494 (csin_test): Likewise.
7495 (csinh_test): Likewise.
7496 (ctan_test): Likewise.
7497 (ctanh_test): Likewise.
7498
7499 2003-03-19 Jakub Jelinek <jakub@redhat.com>
7500
7501 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
7502
7503 2003-03-21 Roland McGrath <roland@redhat.com>
7504
7505 * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
7506 constraint to permit non-constant BIT argument.
7507 (atomic_bit_test_set): Likewise.
7508 * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
7509 (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32.
7510 For quadword case, use "i" constraint if __builtin_constant_p and < 32
7511 or "r" constraint otherwise.
7512
7513 * configure.in: Move AC_PROG_CC and other program-finding before all
7514 the version checks.
7515 * configure: Regenerated.
7516
7517 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
7518
7519 * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
7520 unaligned copying of 8-15 bytes. From Chris Demetriou
7521 <cgd@broadcom.com>. Fix label names.
7522 * sysdeps/mips/mips64/memset.S: Fix label names. Make similar
7523 change as to memcpy.S.
7524 * sysdeps/mips/memcpy.S: Formatting changes.
7525 * sysdeps/mips/memset.S: Likewise.
7526
7527 2003-03-21 Roland McGrath <roland@redhat.com>
7528
7529 * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
7530
7531 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
7532
7533 * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
7534 * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
7535
7536 2003-03-21 Roland McGrath <roland@redhat.com>
7537
7538 * sysdeps/i386/i486/bits/atomic.h
7539 (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
7540 version of the macro to avoid compile-time warnings.
7541 [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
7542 (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
7543 (atomic_increment, atomic_decrement): Likewise.
7544
7545 2003-03-21 Ulrich Drepper <drepper@redhat.com>
7546
7547 * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
7548 * sysdeps/i386/i486/bits/atomic.h: Likewise.
7549
7550 2003-03-21 Roland McGrath <roland@redhat.com>
7551
7552 * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
7553
7554 2003-03-20 Ulrich Drepper <drepper@redhat.com>
7555
7556 * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
7557 atomic_compare_and_exchange_val_rel,
7558 atomic_compare_and_exchange_bool_acq, and
7559 atomic_compare_and_exchange_bool_rel instead of
7560 atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
7561 * sysdeps/i386/i486/bits/atomic.h: Define
7562 __arch_compare_and_exchange_val_*_acq instead of
7563 __arch_compare_and_exchange_*_acq.
7564 * sysdeps/x86_64/bits/atomic.h: Likewise.
7565 * sysdeps/ia64/bits/atomic.h: Define
7566 __arch_compare_and_exchange_bool_*_acq instead of
7567 __arch_compare_and_exchange_*_acq.
7568 * sysdeps/powerpc/bits/atomic.h: Likewise.
7569 * sysdeps/s390/bits/atomic.h: Likewise.
7570 * gmon/mcount.c: Adjust for new form of compare&exchange macros.
7571 * malloc/set-freeres.c: Likewise.
7572 * nscd/cache.c: Likewise.
7573 * stdlib/cxa_finalize.c: Likewise.
7574 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
7575
7576 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
7577
7578 * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
7579 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
7580 * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
7581
7582 * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
7583 into high and low halves on n64.
7584 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
7585 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
7586 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
7587
7588 2003-03-20 Ulrich Drepper <drepper@redhat.com>
7589
7590 * include/atomic.h (atomic_decrement_if_positive): Adjust for the
7591 correct atomic_compare_and_exchange_acq semantics.
7592
7593 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
7594
7595 * sysdeps/mips/ieee754.h: Remove excess #endif.
7596
7597 2003-03-20 Roland McGrath <roland@redhat.com>
7598
7599 * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
7600 variable. Remove superfluous memory clobber.
7601
7602 * include/atomic.h: Syntax braino fix.
7603
7604 * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
7605 in decimal. Don't bail if niced at start. Just check that nice call
7606 bumps the total at all.
7607
7608 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
7609
7610 * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
7611 including pc, gp, sp and fp, as long long.
7612 * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
7613 * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
7614 Add gp argument, and set gp in the jmpbuf to it.
7615 * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
7616
7617 2003-03-20 Ulrich Drepper <drepper@redhat.com>
7618
7619 * include/atomic.h: Define atomic_exchange and
7620 atomic_decrement_if_positive if not already defined. Add some
7621 __builtin_expect.
7622 * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
7623 * sysdeps/x86_64/bits/atomic.h: Likewise.
7624 * sysdeps/ia64/bits/atomic.h: Pretty printing. Define atomic_exchange.
7625 * sysdeps/powerpc/bits/atomic.h: Pretty printing. Define
7626 atomic_exchange, atomic_exchange_and_add, and
7627 atomic_decrement_if_positive
7628
7629 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
7630
7631 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
7632 with a single instruction.
7633
7634 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
7635 properly for n64.
7636 (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
7637 type.
7638 (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
7639 Word before comparing with gotsym. Take reloc_addr argument as
7640 void*. Remove the code added for the compiler to drop any
7641 alignment assumptions.
7642
7643 2003-03-19 Ulrich Drepper <drepper@redhat.com>
7644
7645 * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
7646 * include/atomic.h: New file.
7647 * sysdeps/i386/i486/bits/atomic.h: New file.
7648 * sysdeps/x86_64/bits/atomic.h: New file.
7649 * sysdeps/s390/bits/atomic.h: New file.
7650 * sysdeps/sh/bits/atomic.h: New file.
7651 * sysdeps/ia64/bits/atomic.h: New file.
7652 * sysdeps/powerpc/bits/atomic.h: New file.
7653 * sysdeps/generic/bits/atomic.h: New file.
7654 * sysdeps/i386/i486/atomicity.h: Removed.
7655 * sysdeps/x86_64/atomicity.h: Removed.
7656 * sysdeps/s390/s390-32/atomicity.h: Removed.
7657 * sysdeps/s390/s390-64/atomicity.h: Removed.
7658 * sysdeps/ia64/atomicity.h: Removed.
7659 * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
7660 * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
7661 * elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust
7662 use of macros from atomicity.h to new names and semantics.
7663 * gmon_mcount.c: Likewise.
7664 * malloc/set-freeres.c: Likewise.
7665 * nscd/cache.c: Likewise.
7666 * stdlib/cxa_finalize.c: Likewise.
7667 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
7668
7669 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
7670
7671 * sysdeps/mips/ieee754.h: New file, suitable to replace both
7672 ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
7673 mips-specific for now.
7674
7675 2003-03-19 Ulrich Drepper <drepper@redhat.com>
7676
7677 * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
7678 hexdigits correctly. Reported by Fred Tydeman <tydeman@tybor.com>.
7679 * stdlib/tst-strtod.c: Add test for the bug.
7680
7681 * posix/tst-nice.c (do_test): Remove invalid of return value.
7682 Don't run test if initial level != 0.
7683
7684 2003-03-19 Amos Waterland <apw@us.ibm.com>
7685
7686 * posix/tst-nice.c: New file.
7687 * posix/Makefile (tests): Add tst-nice.
7688
7689 2003-03-18 Roland McGrath <roland@redhat.com>
7690
7691 * abilist: New directory of libfoo.abilist files maintained using
7692 scripts/merge-abilist.awk and "make update-abi" rules.
7693 * Makefile (distribute): Add abilist/*.abilist.
7694 * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
7695 Depend on check-abi.
7696
7697 * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
7698 * configure: Regenerated.
7699
7700 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
7701
7702 2003-03-18 Ulrich Drepper <drepper@redhat.com>
7703
7704 * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
7705 correctly.
7706
7707 2003-03-18 Steven Munroe <sjmunroe@us.ibm.com>
7708
7709 * sysdeps/powerpc/powerpc64/memcpy.S: New file.
7710
7711 2003-03-18 Ulrich Drepper <drepper@redhat.com>
7712
7713 * Versions.def: Add GLIBC_2.3.3 for libpthread.
7714
7715 2003-03-17 Ulrich Drepper <drepper@redhat.com>
7716
7717 * sysdeps/generic/libc-start.c [!SHARED &&
7718 !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
7719
7720 2003-03-17 Roland McGrath <roland@redhat.com>
7721
7722 * include/ctype.h: Revert last change.
7723
7724 2003-03-17 Ulrich Drepper <drepper@redhat.com>
7725
7726 * argp/tst-argp1.c: Use test-skeleton.c.
7727 * locale/tst-C-locale.c: Likewise.
7728
7729 2003-03-17 Alexandre Oliva <aoliva@redhat.com>
7730
7731 * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
7732 * sysdeps/mips/mips64/n64/Implies: New file.
7733 * sysdeps/mips/mips64/n64/Makefile: New file.
7734 * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
7735 * sysdeps/mips/mips64/n32/Implies: New file.
7736 * sysdeps/mips/mips64/n32/Makefile: New file.
7737 * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
7738 * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
7739 * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
7740 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
7741 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
7742 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
7743 * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
7744 * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
7745 * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
7746 * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
7747 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
7748 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
7749 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
7750 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
7751
7752 * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
7753 lib64 for mips64/n64 and lib32 for mips64/n32.
7754 (ldd_rewrite_script): Needed for all mips64 configurations.
7755 * sysdeps/unix/sysv/linux/configure: Rebuilt.
7756 * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
7757 * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
7758
7759 * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
7760 well.
7761
7762 * sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
7763 asm/unistd.h into asm-unistd.h.
7764 * sysdeps/unix/sysv/linux/mips/configure: Generated.
7765 * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
7766 of syscall list.
7767 * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
7768 * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
7769 asm/unistd.h.
7770
7771 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
7772 * sysdeps/unix/sysv/linux/mips/ptrace.c: New file. Use long
7773 long type for registers on n32.
7774
7775 * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
7776 3 ABIs.
7777 * sysdeps/mips/mips64/gmp-mparam.h: New file. Define
7778 BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
7779 * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
7780 (__sigsetjmp_aux): Use them. Adjust for all 3 ABIs.
7781 * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
7782 * sysdeps/unix/mips/brk.S: Likewise.
7783 * sysdeps/unix/mips/sysdep.S: Likewise.
7784 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
7785 * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
7786 * sysdeps/mips/sys/ucontext.h: Likewise.
7787 * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
7788 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
7789 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
7790 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
7791 * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
7792 * sysdeps/mips/mips64/setjmp.S: Likewise.
7793 * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
7794 * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
7795 64-bit types.
7796
7797 2003-03-16 Ulrich Drepper <drepper@redhat.com>
7798
7799 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
7800 not at function level.
7801 * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
7802
7803 2003-03-15 Roland McGrath <roland@redhat.com>
7804
7805 * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
7806 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
7807 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
7808 * nis/nis_table.c (__create_ib_request): Likewise.
7809
7810 * posix/fnmatch_loop.c: Add casts for signedness.
7811 * nss/nss_files/files-hosts.c: Likewise.
7812 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7813 * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
7814 * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
7815
7816 * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
7817 get errors into the log file.
7818 (libc_cv_broken_visibility_attribute): Likewise.
7819 (libc_cv_broken_alias_attribute): Likewise.
7820 (libc_cv_asm_weak_directive): Likewise.
7821 (libc_cv_need_minus_P): Likewise.
7822 (libc_cv_dot_text): Likewise.
7823 (libc_cv_asm_global_directive): Likewise.
7824 (libc_cv_asm_type_prefix): Likewise.
7825 * configure: Regenerated.
7826
7827 * nscd/cache.c (cache_search): Give first arg type `request_type'.
7828 * nscd/nscd.h: Update decl.
7829
7830 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
7831 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7832 * elf/dl-close.c (_dl_close): Likewise.
7833 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
7834 * io/fts.c (fts_build): Likewise.
7835 * elf/cache.c (add_to_cache): Likewise.
7836 * locale/programs/locarchive.c (show_archive_content): Likewise.
7837
7838 * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
7839
7840 * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
7841 happy.
7842 (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
7843
7844 2003-03-15 Ulrich Drepper <drepper@redhat.com>
7845
7846 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
7847 code for most parts.
7848
7849 2003-03-15 Roland McGrath <roland@redhat.com>
7850
7851 * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
7852 * sysdeps/unix/sysv/linux/system.c: ... here.
7853 (FORK): Don't #define if already #define'd.
7854 * sysdeps/unix/sysv/linux/s390/system.c: File removed.
7855 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
7856 (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
7857
7858 * dlfcn/tst-dlinfo.c: New file.
7859 * dlfcn/Makefile (tests): Add tst-dlinfo.
7860 ($(objpfx)tst-dlinfo): New target.
7861
7862 * dlfcn/dlinfo.c: New file.
7863 * dlfcn/Makefile (libdl-routines): Add it.
7864 * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
7865 * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
7866 [__USE_GNU] (RTLD_DI_*): New enum constants.
7867 [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
7868 * elf/dl-load.c (cache_rpath): New inline function.
7869 (_dl_map_object): Use it.
7870 (_dl_rtld_di_serinfo): New function.
7871 * sysdeps/generic/ldsodefs.h: Declare it.
7872 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
7873
7874 * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
7875 (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
7876 (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
7877 (__libc_start_main): Just call the generic one for most of the work.
7878
7879 * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
7880 static function by that name instead of BP_SYM (__libc_start_main).
7881 [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
7882 [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
7883 [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
7884
7885 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
7886 Use this macro for extra AT_* cases.
7887 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
7888 New macro, guts from ...
7889 (__aux_init_cache): ... here, function removed.
7890 (DL_PLATFORM_INIT): Don't define this.
7891
7892 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
7893 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
7894
7895 * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
7896
7897 2003-03-14 Roland McGrath <roland@redhat.com>
7898
7899 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
7900
7901 2003-03-14 Jakub Jelinek <jakub@redhat.com>
7902
7903 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
7904
7905 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
7906 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
7907
7908 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
7909
7910 * sysdeps/mips/fpu/bits/mathdef.h: New.
7911 (__NO_LONG_DOUBLE_MATH): Define for o32.
7912
7913 * sysdeps/mips/sys/asm.h: Formatting changes.
7914 (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
7915 (CPADD): Define for all of them.
7916 (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
7917 SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
7918 NARGSAVE): Define per ABI spec.
7919 (END): Don't redefine.
7920 (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
7921 LONG_SRAV): Remove duplicate definitions.
7922 (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
7923 PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
7924 PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
7925 (PTR_LA): Define for all 3 ABIs.
7926
7927 * sysdeps/mips/dl-machine.h: Include sys/asm.h.
7928 (elf_machine_matches_host): Prevent linking of o32 and n32
7929 together.
7930 (elf_machine_dynamic): Document assumption on $gp.
7931 (STRINGXP, STRINGXV, STRINGV_): New macros.
7932 (elf_machine_load_address): Use them to stringize PTR_LA and
7933 PTR_SUBU.
7934 (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
7935 ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
7936 (_dl_runtime_resolve): Adjust it for all 3 ABIs.
7937 (__dl_runtime_resolve): Cast the symtab initializer to the
7938 right type.
7939 (RTLD_START): Use it. Adjust it for all 3 ABIs.
7940 (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
7941 Handle 64-bit R_MIPS_REL composite relocation and accept
7942 R_MIPS_64 relocations to shift addend size to 64 bits.
7943 Document assumption regarding local GOT entries. Document
7944 backward-compatibility departing from the ABI behavior in
7945 applying relocations that reference section symbols, no longer
7946 used. Support relocations to mis-aligned offsets.
7947 * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
7948
7949 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
7950
7951 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
7952 (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
7953 * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
7954 restore_rt functions. Use them.
7955
7956 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
7957 .set mips2 on new abis.
7958
7959 2003-03-13 Ulrich Drepper <drepper@redhat.com>
7960
7961 * posix/getconf.c: Recognize POSIX2_SYMLINKS.
7962 * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
7963 * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
7964 * sysdeps/posix/pathconf.c: Likewise.
7965 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
7966 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
7967 * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
7968
7969 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
7970 words.
7971
7972 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
7973
7974 * include/gmp.h: Include/gmp-mparam.h.
7975 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
7976 gmp-impl.h.
7977
7978 * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
7979 ELF_MACHINE_NO_RELA is set.
7980 * elf/rtld.c (dl_main): No prelink support for REL-only.
7981
7982 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
7983 FLAG_MIPS64_LIBN64): Define.
7984 * elf/cache.c (print_entry): Handle mips64 n32 and n64.
7985
7986 * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
7987 * sysdeps/mips/memset.S: Likewise.
7988 * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
7989 depending on the ABI.
7990
7991 * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
7992 Don't .set mips2 on new abi.
7993 (compare_and_swap): Likewise. Support 64-bit longs on n64.
7994
7995 * stdlib/fpioconst.h: Include gmp.h with angle brackets.
7996
7997 2003-03-13 Roland McGrath <roland@redhat.com>
7998
7999 * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
8000 found. Reported by Alexandre Oliva <aoliva@redhat.com>.
8001
8002 2003-03-13 Alexandre Oliva <aoliva@redhat.com>
8003
8004 * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
8005 literals long long.
8006 * stdlib/fpioconst.c: Likewise.
8007 * stdlib/strtod.c: Likewise.
8008
8009 * sysdeps/mips/add_n.S: Use L macro for local labels.
8010 * sysdeps/mips/addmul_1.S: Likewise.
8011 * sysdeps/mips/lshift.S: Likewise.
8012 * sysdeps/mips/memcpy.S: Likewise.
8013 * sysdeps/mips/memset.S: Likewise.
8014 * sysdeps/mips/mul_1.S: Likewise.
8015 * sysdeps/mips/rshift.S: Likewise.
8016 * sysdeps/mips/sub_n.S: Likewise.
8017 * sysdeps/mips/submul_1.S: Likewise.
8018 * sysdeps/mips/mips64/add_n.S: Likewise.
8019 * sysdeps/mips/mips64/addmul_1.S: Likewise.
8020 * sysdeps/mips/mips64/lshift.S: Likewise.
8021 * sysdeps/mips/mips64/mul_1.S: Likewise.
8022 * sysdeps/mips/mips64/rshift.S: Likewise.
8023 * sysdeps/mips/mips64/sub_n.S: Likewise.
8024 * sysdeps/mips/mips64/submul_1.S: Likewise.
8025 * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
8026 conventions. Define END as in sys/asm.h.
8027 * sysdeps/unix/mips/sysdep.S: Likewise.
8028 * sysdeps/unix/mips/wait.S: Likewise.
8029 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
8030
8031 * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
8032 Cast shifted values that may be too narrow to mp_limb_t.
8033 * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
8034 Likewise.
8035 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
8036 Likewise.
8037 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
8038 (__mpn_extract_long_double): Likewise.
8039 * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
8040 (__mpn_construct_long_double): Likewise.
8041 * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
8042 (__mpn_extract_long_double): Likewise.
8043 * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
8044 (__mpn_construct_long_double): Likewise.
8045
8046 2003-03-13 Roland McGrath <roland@redhat.com>
8047
8048 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
8049 entries in the map file match too.
8050
8051 2003-03-13 Guido Guenther <agx@sigxcpu.org>
8052
8053 * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
8054 label .Lthread_start since current binutils don't allow branches
8055 to globally visible symbols.
8056
8057 2003-03-13 Jakub Jelinek <jakub@redhat.com>
8058
8059 * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
8060 ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
8061 ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
8062 (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments
8063 clobbered by the syscall.
8064 (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
8065 ASM_ARGS_6): Change constraints from r to index of corresponding
8066 output register.
8067 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
8068 ptid and ctid to match kernel.
8069 * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
8070
8071 2003-03-12 Steven Munroe <sjmunroe@us.ibm.com>
8072
8073 * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
8074 AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64.
8075 * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
8076
8077 2003-03-11 Roland McGrath <roland@redhat.com>
8078
8079 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
8080 Check SYM_MAP rather than SYM as definedness check.
8081 Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
8082 Don't handle R_PPC64_REL24 reloc.
8083 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
8084
8085 * sysdeps/powerpc/powerpc64/dl-machine.h
8086 [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
8087 block, so we cover all the TPREL16* flavors without 6 ||s.
8088 [USE_TLS] (elf_machine_tprel): New function.
8089 (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
8090 and handle TPREL16 relocs too. Return rather than break for DTPREL64.
8091 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
8092
8093 2003-03-11 Ralf Baechle <ralf@linux-mips.org>
8094
8095 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
8096 instead of jalr to invoke subroutine so restoring the $gp register
8097 will work properly.
8098
8099 2003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
8100
8101 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
8102 to __NR_pread if not defined.
8103 (__NR_pwrite64): Define to __NR_pwrite if not defined.
8104
8105 2003-03-11 Jakub Jelinek <jakub@redhat.com>
8106
8107 * sysdeps/unix/sysv/linux/ia64/system.c: New file.
8108 * sysdeps/unix/sysv/linux/kernel-features.h
8109 (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
8110 kernel >= 2.5.64.
8111
8112 2003-03-11 Jakub Jelinek <jakub@redhat.com>
8113
8114 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
8115 allocate space even for the trailing '/'.
8116 Reported by John Reiser <jreiser@BitWagon.com>.
8117
8118 * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
8119 ASM_CLOBBERS_6): Define.
8120 (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
8121 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
8122 to match IA-32 order.
8123 * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
8124
8125 2003-03-10 Steven Munroe <sjmunroe@us.ibm.com>
8126
8127 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
8128 Copy extra params for NPTL to registers used in clone syscall.
8129
8130 2003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
8131
8132 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
8133 call names for pread and pwrite.
8134
8135 2003-03-10 Roland McGrath <roland@redhat.com>
8136
8137 * dlfcn/Makefile (libdl-routines): Add dladdr1.
8138 * dlfcn/dladdr1.c: New file.
8139 * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
8140 [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
8141 * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
8142 a const ElfNN_Sym ** to fill in.
8143 * include/dlfcn.h: Update decl. Include <link.h>.
8144 * dlfcn/dladdr.c (dladdr): Update caller.
8145 * malloc/mtrace.c (tr_where): Likewise.
8146 * sysdeps/generic/elf/backtracesyms.c: Likewise.
8147 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
8148 * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
8149 * Versions.def (libdl): Define GLIBC_2.3.3 set.
8150
8151 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
8152 assembler command.
8153 * sysdeps/unix/Makefile (compile-syscall): New variable.
8154 Pass -g0 to compiler for assembling syscall stubs from stdin.
8155
8156 * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
8157 (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
8158 Define these to do nothing.
8159
8160 * configure.in: New check for -g on .S files.
8161 * configure: Regenerated.
8162 * config.make.in (have-cpp-asm-debuginfo): New variable.
8163 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
8164 * Makeconfig (ASFLAGS): New variable, if undefined and
8165 $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
8166 * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
8167
8168 2003-03-09 Roland McGrath <roland@redhat.com>
8169
8170 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
8171 used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>.
8172
8173 2003-03-09 Ulrich Drepper <drepper@redhat.com>
8174
8175 * po/fi.po: Update from translation team.
8176 * po/ca.po: Likewise.
8177 * po/da.po: Likewise.
8178
8179 2003-03-08 Ulrich Drepper <drepper@redhat.com>
8180
8181 * rt/tst-aio7.c (do_test): Change BYTES into a #define.
8182
8183 2003-03-07 Ulrich Drepper <drepper@redhat.com>
8184
8185 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
8186
8187 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
8188
8189 2003-03-07 Roland McGrath <roland@redhat.com>
8190
8191 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
8192 * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
8193
8194 2003-03-04 Guido Guenther <agx@sigxcpu.org>
8195
8196 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
8197 stubs, we have INLINE_SYSCALL.
8198 * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
8199 MAP_NONBLOCK.
8200
8201 2003-03-06 Roland McGrath <roland@redhat.com>
8202
8203 * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1
8204 permanent extent and add a comment about testing its implicit teardown.
8205
8206 2003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
8207
8208 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
8209
8210 2003-03-05 Ulrich Drepper <drepper@redhat.com>
8211
8212 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
8213 reversed __builtin_expect expectation.
8214
8215 2003-03-05 Roland McGrath <roland@redhat.com>
8216
8217 * stdio-common/sscanf.c: Use prototype defn with ... syntax.
8218 * libio/swscanf.c: Likewise.
8219 * libio/swprintf.c: Likewise.
8220
8221 2003-03-04 Roland McGrath <roland@redhat.com>
8222
8223 * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
8224 (elf_machine_rela): Always use RESOLVE_MAP, needed for
8225 R_PPC64_JMP_SLOT as well as TLS cases.
8226 (BIT_INSERT): Move parenthesis where it ought to have been.
8227 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
8228
8229 * posix/confstr.c (confstr): Correct STRING_LEN values for
8230 _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
8231 break. Reported by Alexandre Julliard <julliard@winehq.com>.
8232
8233 2003-03-04 Jakub Jelinek <jakub@redhat.com>
8234
8235 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
8236
8237 2003-03-04 Ulrich Drepper <drepper@redhat.com>
8238
8239 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
8240 clone parameters.
8241
8242 * po/sv.po: Update from translation team.
8243
8244 2003-03-04 Andreas Jaeger <aj@suse.de>
8245 Ulrich Drepper <drepper@redhat.com>
8246
8247 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
8248
8249 2003-03-03 Ulrich Drepper <drepper@redhat.com>
8250
8251 * sysdeps/generic/dl-sysdep.h: Add double include protection.
8252
8253 * po/tr.po: Update from translation team.
8254
8255 * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
8256 are holes between the segments. Only call mprotect to set
8257 proection to PROT_NONE if there are some.
8258
8259 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
8260 Update comment.
8261
8262 * include/sched.h (__clone2): Use ... instead of adding all the
8263 new parameters.
8264
8265 2003-03-03 Roland McGrath <roland@redhat.com>
8266
8267 * elf/dl-load.c (struct filebuf): Fix typo in last change.
8268
8269 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
8270 PI_STATIC_AND_HIDDEN.
8271
8272 2003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au>
8273
8274 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
8275 flags.
8276 * include/sched.h: Update clone2 prototype.
8277
8278 2003-03-03 Andreas Jaeger <aj@suse.de>
8279
8280 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
8281 (llrint): Use it to correct return type.
8282 (lrint): Likewise.
8283 (lround): Likewise.
8284 (llround): Likewise.
8285
8286 2003-03-03 Ulrich Drepper <drepper@redhat.com>
8287
8288 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
8289 byte filebuf size.
8290
8291 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
8292 if ccs parameter isn't valid. Reported by Andreas Schwab.
8293
8294 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
8295
8296 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
8297 for system call numbers > 255.
8298 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
8299 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
8300 INTERNAL_SYSCALL): Likewise.
8301 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
8302 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
8303 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
8304 INTERNAL_SYSCALL): Likewise.
8305
8306 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
8307
8308 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
8309 array if it is the initial dtv.
8310
8311 2003-03-03 Ulrich Drepper <drepper@redhat.com>
8312
8313 * po/es.po: Update from translation team.
8314 * po/fr.po: Likewise.
8315 * po/gl.po: Likewise.
8316 * po/sk.po: Likewise.
8317 * po/sv.po: Likewise.
8318
8319 * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
8320 * misc/sys/mman.h: Add prototype for remap_file_pages.
8321 * sysdeps/generic/remap_file_pages.c: New file.
8322 * misc/Makefile (routines): Add remap_file_pages.
8323 * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
8324
8325 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
8326 and MAP_NONBLOCK.
8327 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8328 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
8329 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
8330 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
8331 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
8332 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
8333 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
8334 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
8335
8336 2003-03-03 Roland McGrath <roland@redhat.com>
8337
8338 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
8339 * sysdeps/ia64/dl-machine.h: Likewise.
8340 * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
8341 argument type.
8342 * sysdeps/ia64/dl-lookupcfg.h: Update decl.
8343
8344 * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
8345 * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
8346 * locale/Versions (libc: GLIBC_2.3): Move those to ...
8347 * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
8348 * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
8349 * Versions.def (libc): Add GLIBC_2.3.3 set.
8350
8351 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
8352 * sysdeps/ia64/dl-machine.h: Update decl.
8353
8354 2003-03-03 Andreas Jaeger <aj@suse.de>
8355
8356 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
8357
8358 2003-03-02 Roland McGrath <roland@redhat.com>
8359
8360 * scripts/abilist.awk: Reject data items with apparent 0 size.
8361
8362 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
8363 after foo.* as if it were a duplicate.
8364
8365 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
8366
8367 2003-03-02 Ulrich Drepper <drepper@redhat.com>
8368
8369 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
8370
8371 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
8372 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
8373 if not already defined. Use SYSDEP_GETRES to allow other files to
8374 provide alternative implementations.
8375 * sysdeps/unix/sysv/linux/clock_getres.c: New file
8376 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
8377 if not already defined. Use SYSDEP_GETTIME to allow other files to
8378 provide alternative implementations.
8379 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
8380 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
8381 if not already defined. Use SYSDEP_GETTIME to allow other files to
8382 provide alternative implementations.
8383 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
8384 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
8385 other files to provide alternative implementations. Rearrange
8386 tests for invalid parameters.
8387 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
8388 * sysdeps/unix/sysv/linux/sysconf.c: New file.
8389 * sysdeps/unix/sysv/linux/kernel-features.h: Define
8390 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
8391 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
8392 _POSIX_MONOTONIC_CLOCK.
8393
8394 2003-03-02 Roland McGrath <roland@redhat.com>
8395
8396 * scripts/merge-abilist.awk: More checks for bogus input.
8397 Uniquify duplicate config names.
8398
8399 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
8400
8401 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
8402 from dl_reloc_overflow, make global.
8403 (__process_machine_rela): Update callers.
8404 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
8405 Add attribute_hidden to __process_machine_rela decl.
8406 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
8407
8408 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
8409 variable.
8410
8411 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
8412 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
8413 (elf_machine_rela): Clean up.
8414
8415 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
8416
8417 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
8418 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
8419 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
8420 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
8421 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
8422 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
8423 new relocs for TLS.
8424
8425 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
8426 macros out of [SHARED].
8427 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
8428
8429 * elf/elf.h: Define R_PPC_* relocs for TLS support.
8430 Clean up R_PPC64_* macro definition comments.
8431
8432 * configure.in: In "running configure fragment for" message,
8433 omit $srcdir from the name if we prepended it.
8434 * configure: Regenerated.
8435
8436 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
8437 From Jakub Jelinek <jakub@redhat.com>.
8438
8439 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
8440 which duplicated the O_DIRECT defn.
8441
8442 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
8443
8444 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
8445 random functions.
8446
8447 2003-03-01 Andreas Schwab <schwab@suse.de>
8448
8449 * resolv/Makefile (tests): Don't depend on
8450 $(objpfx)mtrace-tst-leaks when cross compiling.
8451
8452 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
8453 __libc_stack_end through GOT since it is a global symbol.
8454
8455 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
8456
8457 * argp/argp.h: Fix a typo.
8458 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
8459
8460 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
8461
8462 2003-02-27 Pat Rankin <rankin@pactechdata.com>
8463
8464 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
8465 char *.
8466 (get_subexp): Likewise.
8467
8468 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
8469
8470 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
8471
8472 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
8473
8474 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
8475
8476 2003-02-27 Roland McGrath <roland@redhat.com>
8477
8478 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
8479 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
8480 repeat it and avoids the test for the common case.
8481 Clean up and fix calculations for TLS relocs.
8482
8483 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
8484 * sysdeps/powerpc/dl-tls.h: ... here.
8485 (TLS_TP_OFFSET): New macro.
8486
8487 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
8488
8489 2003-02-27 Ulrich Drepper <drepper@redhat.com>
8490
8491 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
8492 code generation changes in recent gcc.
8493
8494 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
8495
8496 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
8497 Rename argument to avoid symbol conflict.
8498
8499 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
8500 [__USE_GNU] (O_DIRECT): New macro.
8501
8502 2003-02-24 David Mosberger <davidm@hpl.hp.com>
8503
8504 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
8505 unwind info.
8506
8507 2003-02-27 Ulrich Drepper <drepper@redhat.com>
8508
8509 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
8510 initializer anymore now that res_thread_freeres is more careful.
8511
8512 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
8513 except the PKTINFO. Reset interface in PKTINFO.
8514 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
8515
8516 2003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
8517
8518 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
8519 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
8520 Define.
8521 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
8522 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
8523 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
8524 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
8525
8526 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
8527 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
8528
8529 2003-02-25 Andreas Jaeger <aj@suse.de>
8530
8531 * manual/memory.texi (Malloc Tunable Parameters): Clarify
8532 behaviour of M_MMAP_THRESHOLD.
8533
8534 2003-02-25 Roland McGrath <roland@redhat.com>
8535
8536 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
8537 zero, inidicating _res was not initialized yet.
8538
8539 2003-02-24 Ulrich Drepper <drepper@redhat.com>
8540
8541 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
8542 test.
8543
8544 2003-02-24 Roland McGrath <roland@redhat.com>
8545
8546 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
8547
8548 2003-02-23 Roland McGrath <roland@redhat.com>
8549
8550 * sysdeps/posix/pause.c: New file.
8551 * sysdeps/unix/common/pause.c: File removed.
8552
8553 2003-02-23 Ulrich Drepper <drepper@redhat.com>
8554
8555 * sysdeps/generic/bits/confname.h: Remove #ifs.
8556
8557 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
8558 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
8559
8560 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
8561 element to -1.
8562
8563 2003-02-22 Ulrich Drepper <drepper@redhat.com>
8564
8565 * sysdeps/generic/dl-sysdep.c: Avoid warning.
8566
8567 2003-02-22 Roland McGrath <roland@redhat.com>
8568
8569 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
8570 * resolv/Makefile (tests): Add tst-leaks.
8571 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
8572 (tst-leaks-ENV): New variable.
8573 ($(objpfx)mtrace-tst-leaks): New target.
8574 (tests): Depend on it.
8575
8576 * include/libc-internal.h: Declare __libc_thread_freeres.
8577
8578 * Makerules: Fix last change to use $($(subdir)-version) when set.
8579
8580 * Makerules (install-lib-nosubdir): Depend on installed
8581 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
8582 regardless of the libfoo.so target's dependencies.
8583
8584 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
8585 Use that in $(MAKE) calls.
8586
8587 2003-02-22 Ulrich Drepper <drepper@redhat.com>
8588
8589 * catgets/gencat.c (read_input_file): Collision between
8590 auto-assigned numbers and user-defined nubmers is not fatal.
8591 Handle it.
8592 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
8593 * catgets/Makefile: Add rules to run test2.msg test.
8594 * catgets/test2.msg: New file.
8595
8596 * catgets/gencat.c (main): Return 1 if messages have been printed.
8597
8598 * iconv/iconv_prog.c (main): Unify messages.
8599
8600 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
8601 when shifting retval.
8602 * stdlib/tst-strtod.c (main): Add strtold test case.
8603 Reported by Fred J. Tydeman <tydeman@tybor.com>.
8604
8605 2003-02-21 Roland McGrath <roland@redhat.com>
8606
8607 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
8608 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
8609 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
8610
8611 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
8612 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
8613 (res_thread_freeres): New function, on __libc_thread_subfreeres and
8614 __libc_subfreeres.
8615
8616 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
8617 * malloc/thread-freeres.c: New file.
8618 * malloc/Makefile (aux): Add it.
8619 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
8620 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
8621 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
8622
8623 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
8624 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
8625
8626 2003-02-21 Roland McGrath <roland@frob.com>
8627
8628 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
8629
8630 * iconvdata/Makefile (tests): Add bug-iconv3 only if
8631 [$(have-thread-library) = yes].
8632
8633 2003-02-21 Ulrich Drepper <drepper@redhat.com>
8634
8635 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
8636
8637 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
8638 not chechk for errors (unless testing for 32bit variant).
8639 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
8640 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
8641 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
8642
8643 2003-02-21 Jakub Jelinek <jakub@redhat.com>
8644
8645 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
8646 Check for signed overflow, not unsigned.
8647
8648 * sysdeps/sparc/sparc64/elf/configure.in: New file.
8649 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
8650 Use -fcall-used-g6, not -fcall-used-g7.
8651
8652 2003-02-21 Andreas Jaeger <aj@suse.de>
8653
8654 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
8655 mode.
8656
8657 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
8658 clear whole mxcsr but only exceptions.
8659
8660 2003-02-21 Roland McGrath <roland@redhat.com>
8661
8662 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
8663 for libfoo.so that need $(make-link) rules.
8664
8665 2003-02-21 Roland McGrath <roland@frob.com>
8666
8667 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
8668 to match existing struct stat layout in mig protocols.
8669
8670 2003-02-20 Ulrich Drepper <drepper@redhat.com>
8671
8672 * version.h (VERSION): Bump to 2.3.2.
8673
8674 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
8675 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
8676 and dl-sysdep.h.
8677 * sysdeps/generic/Dist: Add sysdep-cancel.h.
8678 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
8679 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
8680 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
8681 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
8682 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
8683 ucontext_i.h.
8684 * Makefile (distribute): Add include/stubs-prologue.h,
8685 include/gnu/stubs.h, scripts/merge-abilist.awk, and
8686 scripts/extract-abilist.awk.
8687
8688 2003-02-20 Roland McGrath <roland@redhat.com>
8689
8690 * math/Makefile (distribute): Don't add generated files.
8691
8692 2003-02-20 Ulrich Drepper <drepper@redhat.com>
8693
8694 * math/Makefile: Rearrange variable definitions slightly to get
8695 definition in the right order.
8696
8697 2003-02-20 Roland McGrath <roland@redhat.com>
8698
8699 * Makerules: Clean up conditional around include of tls.make.
8700 * Make-dist: Export generating=t to prevent using that.
8701 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
8702
8703 2003-02-20 Ulrich Drepper <drepper@redhat.com>
8704
8705 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
8706 around in search if port IPPORT_RESERVED/2 has been test.
8707
8708 2003-02-20 Paolo Bonzini <bonzini@gnu.org>
8709
8710 * posix/regcomp.c: Remove inclusions.
8711 * posix/regexec.c: Likewise.
8712 * posix/regex_internal.c: Likewise.
8713 * posix/regex_internal.h: Add inclusions here.
8714 * posix/regex.c: Only include sys/types.h before regex.h. Include
8715 regex_internal.h here. Include regex_internal.c before regcomp.c
8716 and regexec.c (might expose more opportunities to the C compiler).
8717
8718 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
8719
8720 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
8721 [!_LIBC] (__wcrtomb): New definition.
8722 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
8723 HAVE_LOCALE_H as well.
8724
8725 2003-02-20 Ulrich Drepper <drepper@redhat.com>
8726
8727 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
8728 patch to check for system call errors.
8729
8730 2002-07-24 Philip Blundell <philb@gnu.org>
8731
8732 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
8733 on unknown systems.
8734
8735 2003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8736
8737 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
8738 * sysdeps/unix/sysv/linux/kernel-features.h
8739 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
8740 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
8741 if possible.
8742 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
8743 interprocedure branches.
8744 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
8745 * sysdeps/powerpc/nofpu/Dist: ...here.
8746 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
8747 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
8748 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
8749 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
8750 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
8751
8752 2003-02-18 Alan Modra <amodra@bigpond.net.au>
8753
8754 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
8755
8756 2003-02-20 Philip Blundell <philb@gnu.org>
8757
8758 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
8759 missing arguments to INTERNAL_SYSCALL_ERROR_P and
8760 INTERNAL_SYSCALL_ERRNO.
8761
8762 2003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
8763
8764 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
8765 for __ASSUME_32BITUIDS.
8766
8767 2003-02-20 Andreas Schwab <schwab@suse.de>
8768
8769 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
8770 POSIX_MADV_* constants.
8771
8772 2003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8773
8774 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
8775 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
8776 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
8777 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
8778
8779 2003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
8780
8781 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
8782
8783 2003-02-16 Roland McGrath <roland@redhat.com>
8784
8785 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
8786
8787 2003-02-19 Ulrich Drepper <drepper@redhat.com>
8788
8789 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
8790 decimal input digits.
8791 * stdlib/tst-strtod.c (main): Add test for strtof bug.
8792
8793 2003-02-18 Ulrich Drepper <drepper@redhat.com>
8794
8795 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
8796 invalid file descriptors and missing access permissions.
8797
8798 2003-02-17 Ulrich Drepper <drepper@redhat.com>
8799
8800 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
8801 been found.
8802
8803 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
8804 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
8805 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
8806 and LOGIN_NAME_MAX.
8807
8808 2003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
8809 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8810
8811 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
8812 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
8813 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
8814 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
8815 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
8816
8817 2003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8818
8819 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
8820 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
8821 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
8822 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
8823 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
8824 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
8825
8826 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
8827 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
8828 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
8829 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
8830
8831 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
8832 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
8833 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
8834 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
8835
8836 2003-02-14 Thorsten Kukuk <kukuk@suse.de>
8837
8838 * nss/getent.c (print_hosts): Print all IP addresses of one host.
8839
8840 2003-02-15 Roland McGrath <roland@frob.com>
8841
8842 * sysdeps/mach/hurd/tls.h: New file.
8843 * sysdeps/mach/hurd/i386/tls.h: New file.
8844
8845 * mach/errsystems.awk: Include <errno.h> in generated output.
8846
8847 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
8848 use target mach-before-compile instead of generated.
8849 (mach-before-compile): New target.
8850 * Makerules: Disable use of tls.make if $(generating) is set.
8851 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
8852 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
8853 mach-shortcuts.h so mach/ generation happens before hurd/.
8854
8855 2003-02-14 Ulrich Drepper <drepper@redhat.com>
8856
8857 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
8858 of demorm correctly if low word is zero.
8859 Reported by Fred J. Tydeman <tydeman@tybor.com>.
8860 * math/libm-test.inc (nextafter_test): New test, but disabled due
8861 to gcc bug.
8862
8863 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
8864 counter and only call __exit_thread if this is not the last thread.
8865
8866 2003-02-13 Jakub Jelinek <jakub@redhat.com>
8867
8868 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
8869 subtracting map->l_tls_offset.
8870
8871 2003-02-12 Ulrich Drepper <drepper@redhat.com>
8872
8873 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
8874 _CS_GNU_LIBPTHREAD_VERSION.
8875 * posix/conststr.c: Handle these new values.
8876 * posix/getconf.c: Likewise.
8877
8878 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
8879 masking of version index.
8880 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
8881
8882 2003-02-11 Ulrich Drepper <drepper@redhat.com>
8883
8884 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
8885 correctly. Reported by Thorsten Kukuk.
8886
8887 2003-02-10 Ulrich Drepper <drepper@redhat.com>
8888
8889 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
8890 _BSD_SOURCE to compiler.
8891 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
8892 Patches by Alan Modra.
8893
8894 2003-02-08 Ulrich Drepper <drepper@redhat.com>
8895
8896 * io/ftwtest.c: Get current working directory before and after the
8897 nftw call and make sure they match.
8898
8899 2003-02-08 Jim Meyering <jim@meyering.net>
8900
8901 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
8902 the current directory, not just when DIR contains a slash.
8903 Reported by Manoj Srivastava.
8904
8905 2003-02-07 Jim Meyering <jim@meyering.net>
8906
8907 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
8908 Include autoconf-recommended block of dirent/NAMELEN-related
8909 definitions and includes. Use NAMELEN throughout, rather than
8910 _D_EXACT_NAMLEN.
8911 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
8912 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
8913 (stpcpy): Declare, if necessary.
8914 (mempcpy): Define, if necessary.
8915 [!_LIBC] (__stpcpy, __mempcpy): Define.
8916 [!_LIBC] (LXSTAT, XSTAT): Define.
8917 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
8918 (find_object): Don't use c99-style struct initializer.
8919 Tweak wording in a couple comments.
8920
8921 2003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8922
8923 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
8924 for SH.
8925 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
8926 after the trapa instruction.
8927 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
8928 parameters.
8929 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
8930 (NEED_SYSCALL_INST_PAD): Define.
8931 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
8932 avoid to use definition for the kernel.
8933 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
8934 Save and restore the frame pointer.
8935 (SYSCALL_INST_PAD): Define.
8936 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
8937 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
8938 after trapa instruction.
8939 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
8940 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
8941
8942 2003-02-07 Jakub Jelinek <jakub@redhat.com>
8943
8944 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
8945 so that it can have aliases.
8946 * inet/herrno.c (h_errno): Put it into .bss not .data section.
8947
8948 2003-02-07 Ulrich Drepper <drepper@redhat.com>
8949
8950 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
8951 (profile_fixup): Likewise.
8952 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
8953
8954 2002-11-24 Robert Love <rml@tech9.net>
8955
8956 * posix/sched.h: Second parameter of sched_setaffinity and
8957 sched_getaffinity is `unsigned int', not `unsigned long'.
8958 * sysdeps/generic/sched_setaffinity.c: Likewise.
8959 * sysdeps/generic/sched_getaffinity.c: Likewise.
8960
8961 2003-02-05 Ulrich Drepper <drepper@redhat.com>
8962
8963 * debug/catchsegv.sh: Fix typo in error messsage.
8964 Reported by John Levon <levon@movementarian.org>.
8965
8966 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
8967 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
8968 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
8969 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
8970 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
8971 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
8972 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
8973
8974 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
8975 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
8976
8977 2003-02-05 Jim Meyering <jim@meyering.net>
8978
8979 Fix a heap-corrupting bug.
8980 * io/ftw.c: Include <limits.h>.
8981 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
8982 (process_entry): Allocate enough space to hold the resulting
8983 file name. Don't presume that 2*dirbufsize is enough.
8984 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
8985 it is guaranteed to be defined.
8986
8987 2003-02-04 Ulrich Drepper <drepper@redhat.com>
8988
8989 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
8990 * iconvdata/bug-iconv3.c: New file.
8991
8992 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
8993
8994 * sysdeps/unix/sysv/linux/s390/system.c: New file.
8995
8996 2003-02-03 Jakub Jelinek <jakub@redhat.com>
8997
8998 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
8999 check.
9000 * config.h.in (BROKEN_SPARC_WDISP22): Add.
9001
9002 2003-02-03 Ulrich Drepper <drepper@redhat.com>
9003
9004 * sysdeps/i386/i686/memmove.S: New file.
9005
9006 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
9007
9008 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
9009 Include kernel-features.h
9010 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
9011 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
9012 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
9013 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
9014
9015 2003-02-02 Jakub Jelinek <jakub@redhat.com>
9016
9017 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
9018
9019 2003-01-25 Jim Meyering <jim@meyering.net>
9020
9021 * io/ftw.c (object_compare): Compare inode numbers before device
9022 numbers, since the former are much more likely to differ.
9023
9024 2003-02-01 Ulrich Drepper <drepper@redhat.com>
9025
9026 * time/tzfile.c (__tzfile_compute): Change return value type to
9027 void. Adjust return statements.
9028 * include/time.h (__tzfile_compute): Adjust prototype.
9029
9030 2003-02-01 Jim Meyering <jim@meyering.net>
9031
9032 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
9033 always returns 1.
9034
9035 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
9036
9037 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
9038 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
9039
9040 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
9041
9042 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
9043 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
9044 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
9045 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
9046 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
9047 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
9048 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
9049 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
9050
9051 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
9052
9053 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
9054 back to 2.4.19 for powerpc64.
9055 * sysdeps/unix/sysv/linux/kernel-features.h
9056 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
9057 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
9058
9059 2003-02-01 Ulrich Drepper <drepper@redhat.com>
9060
9061 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
9062 platforms with strange alignment requirements on wchar_t.
9063
9064 2003-01-31 Andreas Schwab <schwab@suse.de>
9065
9066 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
9067 aliases, already added by make-syscalls.sh.
9068 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
9069 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
9070 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
9071 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
9072 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
9073 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
9074 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9075 * sysdeps/unix/inet/syscalls.list: Likewise.
9076 * sysdeps/unix/syscalls.list: Likewise.
9077
9078 2003-01-31 Andreas Schwab <schwab@suse.de>
9079
9080 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
9081 any more.
9082
9083 2003-01-30 Jakub Jelinek <jakub@redhat.com>
9084
9085 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
9086 not l to load tls from stack.
9087
9088 2003-01-30 Roland McGrath <roland@redhat.com>
9089
9090 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
9091 null argument before all else.
9092 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
9093
9094 2003-01-30 Jakub Jelinek <jakub@redhat.com>
9095
9096 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
9097 Move to RESOLVE protected part of the header.
9098 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
9099 Likewise.
9100
9101 2003-01-30 Ulrich Drepper <drepper@redhat.com>
9102
9103 * stdio-common/Makefile (tests): Add bug15.
9104 (bug15-ENV): Define.
9105 * stdio-common/bug15.c: New file.
9106
9107 2002-10-07 Wolfram Gloger <wg@malloc.de>
9108
9109 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
9110 to foreign sbrk()'s if arena is contiguous. Bug report from
9111 Bruno Haible <bruno@clisp.org>.
9112
9113 2003-01-30 Jakub Jelinek <jakub@redhat.com>
9114
9115 * sysdeps/s390/libc-tls.c: Include stdlib.h.
9116
9117 2003-01-30 Jakub Jelinek <jakub@redhat.com>
9118
9119 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
9120 ps.__count.
9121
9122 2003-01-30 Ulrich Drepper <drepper@redhat.com>
9123
9124 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
9125 restoring of %r6.
9126 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
9127 64-bit load.
9128 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
9129
9130 2003-01-30 Jakub Jelinek <jakub@redhat.com>
9131
9132 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
9133 (allocate_static_tls): ...here. Add __attribute_noinline__.
9134 Don't return on failure.
9135 (_dl_reloc_bad_type): Add __attribute_noinline__.
9136 * elf/do-rel.h (elf_dynamic_do_rel): Add
9137 __attribute__((always_inline)).
9138 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
9139 elf_machine_rel_relative, elf_machine_rela_relative,
9140 elf_machine_lazy_rel): Add prototypes with
9141 __attribute__((always_inline)).
9142
9143 2003-01-29 David Mosberger <davidm@hpl.hp.com>
9144
9145 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
9146
9147 2003-01-29 Roland McGrath <roland@redhat.com>
9148
9149 * configure.in: Barf if configured in $srcdir.
9150
9151 2003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
9152
9153 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
9154 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
9155
9156 2003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
9157
9158 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
9159 clone parameters to match the order used on ia32.
9160 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
9161
9162 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
9163
9164 * elf/elf.h: Add new s390 relocs.
9165 * elf/tls-macros.h: Add s390 versions.
9166 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
9167 * sysdeps/s390/dl-tls.h: New file.
9168 * sysdeps/s390/libc-tls.c: New file.
9169 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
9170 relocs for class PLT.
9171 (elf_machine_rela): Handle TLS relocs.
9172 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9173 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
9174 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
9175 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
9176 CLONE_CHILD_*TID flags.
9177 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
9178 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
9179 bit offset.
9180 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
9181 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
9182 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
9183 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
9184 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
9185 Likewise.
9186 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
9187 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
9188 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
9189 variants.
9190 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
9191 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
9192 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
9193 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
9194 variants.
9195
9196 2003-01-28 Ulrich Drepper <drepper@redhat.com>
9197
9198 * sysdeps/unix/common/pause.c (do_pause): New function. Split
9199 from __libc_pause. Implement using sigsuspend.
9200 (__libc_pause): Call do_pause to do the real work.
9201
9202 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
9203 sig_or_mask parameter is is_sig != 0.
9204
9205 2003-01-21 Philip Blundell <philb@gnu.org>
9206
9207 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
9208
9209 2003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
9210
9211 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
9212
9213 2003-01-27 Ulrich Drepper <drepper@redhat.com>
9214
9215 * stdio-common/bug14.c: Use official name for the locale.
9216
9217 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
9218 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
9219 instead of __libc_cleanup_region_end.
9220
9221 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
9222 as first parameter to __libc_cleanup_region_start.
9223
9224 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
9225 (__fe_nomask_env): Use __prctl not prctl.
9226 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
9227 prctl syscall.
9228
9229 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
9230
9231 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
9232
9233 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
9234 wrap-around in test.
9235
9236 2003-01-26 Andreas Schwab <schwab@suse.de>
9237
9238 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
9239 compatibility symbols. Remove INTDEF for __divdi3.
9240 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
9241 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
9242 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
9243 define.
9244 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
9245
9246 2003-01-24 Jakub Jelinek <jakub@redhat.com>
9247
9248 * elf/tls-macros.h: Add SPARC 32-bit definitions.
9249 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
9250 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
9251 for the first half of the header. Include tls.h.
9252 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
9253 relocs too.
9254 (elf_machine_rela): Handle TLS relocs.
9255 * sysdeps/sparc/dl-tls.h: New file.
9256
9257 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
9258 support.
9259
9260 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
9261 * sysdeps/sparc/sparc32/memchr.S: Likewise.
9262 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
9263 * sysdeps/sparc/sparc32/strcat.S: Likewise.
9264 * sysdeps/sparc/sparc32/strchr.S: Likewise.
9265 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
9266 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
9267 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
9268 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9269 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
9270 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
9271 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
9272 * sysdeps/sparc/sparc64/strcat.S: Likewise.
9273 * sysdeps/sparc/sparc64/strchr.S: Likewise.
9274 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
9275 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
9276 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
9277 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
9278 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
9279 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9280
9281 2003-01-24 Andreas Schwab <schwab@suse.de>
9282
9283 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
9284 elements, and process them backwards.
9285 * elf/Makefile ($(objpfx)tst-array4): New target.
9286 ($(objpfx)tst-array4.out): Likewise.
9287 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
9288 * elf/tst-array4.c: New file.
9289 * elf/tst-array4.exp: Likewise.
9290
9291 2003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
9292
9293 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
9294
9295 2003-01-27 Guido Guenther <agx@sigxcpu.org>
9296
9297 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
9298 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
9299 cancellation handling and handle both __NR_pread64 and __NR_pread.
9300 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
9301 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
9302 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
9303 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
9304 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
9305 case, use register names consistently.
9306
9307 2003-01-27 Wolfram Gloger <wg@malloc.de>
9308
9309 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
9310 pointer, not of the computed chunk. Bug report from Carlos
9311 O'Donell <carlos@baldric.uwo.ca>.
9312
9313 2003-01-25 Andreas Schwab <schwab@suse.de>
9314
9315 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
9316 addressing to save GOT entries.
9317
9318 2003-01-21 Jakub Jelinek <jakub@redhat.com>
9319
9320 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
9321 inline_syscall1, inline_syscall2, inline_syscall3,
9322 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
9323 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
9324 __attribute__((unused)) to ChEcK.
9325
9326 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
9327
9328 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
9329 Fix inline assembler constraints.
9330 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
9331 Likewise.
9332
9333 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
9334 -fPIC.
9335
9336 2003-01-20 Segher Boessenkool <segher@koffie.nl>
9337
9338 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
9339 compute the cosine, not the sine, even if x > 0.8.
9340
9341 2003-01-19 Ulrich Drepper <drepper@redhat.com>
9342
9343 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
9344 _nss_nis_setspent. Work around the different prototypes.
9345 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
9346 internal_nis_endrpcent.
9347 (internal_nis_endrpcent): Change return type to void. Change callers.
9348 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
9349 _nss_nis_setpwent. Work around the different prototypes.
9350 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
9351 of the function to...
9352 (internal_nis_endprotoent): ... here. New function.
9353 (internal_nis_setprotoent): Use internal_nis_endprotoent.
9354 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
9355 _nss_nis_setnetent. Work around the different prototypes.
9356 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
9357 of the function to...
9358 (internal_nis_endnetgrent): ... here. New function.
9359 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
9360
9361 2003-01-19 Jim Meyering <jim@meyering.net>
9362
9363 * time/strftime.c: (widen): Merge nearly-identical definitions.
9364 (nl_get_alt_digit) [! defined my_strftime]: Define.
9365 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
9366 _nl_get_alt_digit and _nl_get_walt_digit.
9367
9368 2003-01-19 Ulrich Drepper <drepper@redhat.com>
9369
9370 * time/strftime.c (my_strftime): Handle very large width
9371 specifications for numeric values correctly. Improve checks for
9372 overflow.
9373 * time/Makefile (tests): Add tst-strftime.
9374 * time/tst-strftime.c: New file.
9375
9376 2003-01-18 Ulrich Drepper <drepper@redhat.com>
9377
9378 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
9379 _nss_nis_sethostent. Work around the different prototypes.
9380 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
9381 _nss_nis_setgrent. Work around the different prototypes.
9382 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
9383 function. Split out from _nss_nis_endetherent.
9384 (internal_nis_setetherent): Use internal_nis_endetherent instead of
9385 duplicating the code.
9386 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
9387 of _nss_nis_setaliasent.
9388 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
9389 internal_nis_endservent code, don't duplicate it.
9390
9391 * inet/rexec.c (rexec_af): Protect socket operations with
9392 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
9393 * inet/rcmd.c (rcmd_af): Likewise.
9394
9395 2003-01-17 Roland McGrath <roland@redhat.com>
9396
9397 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
9398 Add test of value 0.80190127184058835.
9399
9400 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
9401
9402 2003-01-17 Richard Henderson <rth@redhat.com>
9403
9404 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
9405 relocs for class PLT.
9406 * sysdeps/alpha/libc-tls.c: New file.
9407 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
9408 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
9409
9410 2003-01-17 Jakub Jelinek <jakub@redhat.com>
9411
9412 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
9413 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
9414 on _dl_static_lock.
9415
9416 2003-01-17 Andreas Jaeger <aj@suse.de>
9417
9418 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
9419
9420 2003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
9421
9422 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
9423 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
9424 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
9425 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
9426 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
9427 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
9428 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
9429 is 2.4.21.
9430
9431 2003-01-16 Ulrich Drepper <drepper@redhat.com>
9432
9433 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
9434 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
9435 buffers.
9436
9437 * sysdeps/generic/sysconf.c: Unconditionally implement
9438 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
9439 * sysdeps/posix/sysconf.c: Likewise.
9440
9441 2003-01-16 Jakub Jelinek <jakub@redhat.com>
9442
9443 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
9444 set *err to the returned error, not to REG_ESPACE unconditionally.
9445 (build_word_op): Likewise.
9446 * posix/Makefile (tests): Add bug-regex16.
9447 * posix/bug-regex16.c: New test.
9448
9449 2003-01-16 Jakub Jelinek <jakub@redhat.com>
9450
9451 * elf/dl-load.c (_dl_map_object_from_fd): Use
9452 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
9453 been already initialized.
9454
9455 2003-01-15 Dmitry V. Levin <ldv@altlinux.org>
9456
9457 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
9458
9459 2003-01-16 Jakub Jelinek <jakub@redhat.com>
9460
9461 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
9462 allocated too. Reported by Al Viro <aviro@redhat.com>.
9463
9464 2003-01-16 Roland McGrath <roland@redhat.com>
9465
9466 Tweak merged .abilist file format to merge duplicate symbols in
9467 different sets into multi-version stanzas with new "| SET regexp..."
9468 header continuation lines.
9469 * scripts/merge-abilist.awk: Rewritten for new format.
9470 * scripts/extract-abilist.awk: Likewise.
9471
9472 2003-01-15 Ulrich Drepper <drepper@redhat.com>
9473
9474 * nscd/connections.c (nscd_run): Remove bogus return which isn't
9475 necessary with gcc 3.2+.
9476 (nscd_init): Don't use error() to print message, use dbg_log.
9477
9478 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
9479 expected size into state.
9480 (UNPACK_BYTES): Do the reverse.
9481 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
9482 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
9483 Reported by Al Viro <aviro@redhat.com>.
9484
9485 * stdio-common/Makefile (tests): Add bug14.
9486 * stdio-common/bug14.c: New file.
9487
9488 * stdio-common/vfscanf.c: When recognizing multibyte characters in
9489 string reset the byte counter after mbrtowc reported it is not a
9490 partial character. Reported by Al Viro <aviro@redhat.com>.
9491
9492 2003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
9493
9494 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
9495 sysdep-cancel.h, not sysdep.h.
9496
9497 2003-01-15 Ulrich Drepper <drepper@redhat.com>
9498
9499 * nscd/connections.c (nscd_run): Protect accept call with
9500 TEMP_FAILURE_RETRY.
9501
9502 2003-01-15 Andreas Schwab <schwab@suse.de>
9503
9504 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
9505 (common-generated): Add s-proto-bp.d.
9506 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
9507 of bp thunks.
9508 * sysdeps/unix/s-proto-bp.S: New file.
9509 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
9510 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
9511 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
9512
9513 2003-01-15 Roland McGrath <roland@redhat.com>
9514
9515 * Makerules: Use -include for tls.make, suppresses warning.
9516 Move gen-as-const-headers rules up so before-compile is set in time.
9517 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
9518
9519 2003-01-15 Ulrich Drepper <drepper@redhat.com>
9520
9521 * nscd/nscd.c (main): Make code to close all file descriptors
9522 faster and more robust.
9523
9524 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
9525 request with one writev call. Protect all read calls with
9526 TEMP_FAILURE_RETRY.
9527 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
9528 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
9529
9530 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
9531 Protect writev calls with TEMP_FAILURE_RETRY.
9532 * nscd/grpcache.c: Likewise.
9533 * nscd/pwdcache.c: Likewise.
9534
9535 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
9536 IPv6 address in debug output.
9537
9538 2003-01-14 Roland McGrath <roland@redhat.com>
9539
9540 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
9541 $(objpfx) directories, and get rid of vpath directives. The previous
9542 arrangement resulted in files being written to the source directories
9543 when run in a clean build. Find all .abilist files in $(..)abilist/.
9544 (update-abi-%): Likewise.
9545 (generated): Don't add .symlist files, they'll be intermediates.
9546
9547 * sysdeps/generic/init-first.c: Add a comment.
9548
9549 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
9550
9551 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
9552 #includes and expressions.
9553
9554 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
9555 config list when it already contains cpu-.*-os.* without / part.
9556
9557 * Makerules (sed-remove-dotdot): New variable.
9558 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
9559 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
9560 (check-abi-config): New variable, append /tls or /notls to the tuple.
9561 (check-abi-%): Use that for -v config value.
9562 Find .abilist files in abilist/libfoo.abilist, not in subdir.
9563 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
9564
9565 2003-01-14 Ulrich Drepper <drepper@redhat.com>
9566
9567 * manual/install.texi: Correct description of header preparation for
9568 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
9569
9570 2003-01-14 Guido Guenther <agx@sigxcpu.org>
9571
9572 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
9573 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
9574 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
9575
9576 2003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
9577
9578 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
9579 (INTERNAL_SYSCALL): Make use of ERR parameter.
9580 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
9581 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
9582 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
9583 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
9584
9585 2003-01-14 Ulrich Drepper <drepper@redhat.com>
9586
9587 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
9588 == IPPROTO_TCP.
9589 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
9590
9591 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
9592 Fix entry for bit 31.
9593
9594 * iconvdata/Makefile: Add rules to build IBM866NAV.
9595 * iconvdata/ibm866nav.c: New file.
9596 * iconvdata/tst-tables.sh: Add IBM866NAV.
9597 * iconvdata/gconv-modules: Add entries for IBM866NAV.
9598
9599 2003-01-13 Ulrich Drepper <drepper@redhat.com>
9600
9601 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
9602 to test void* parameters.
9603
9604 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
9605 source pointer before dereferencing.
9606 (__STRING_SMALLL_GET32): Likewise.
9607 (__memset_gc): Add missing parenthesis around macro arguments.
9608 Patch by Denis Zaitsev <zzz@cd-club.ru>.
9609
9610 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
9611 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
9612
9613 2003-01-14 Jakub Jelinek <jakub@redhat.com>
9614
9615 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
9616 defining.
9617
9618 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
9619
9620 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
9621 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
9622 here.
9623 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
9624
9625 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
9626
9627 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
9628 from here...
9629 (PSEUDO): ... to here.
9630 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
9631 from here...
9632 (PSEUDO): ... to here.
9633
9634 2003-01-13 Ulrich Drepper <drepper@redhat.com>
9635
9636 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
9637 dirent64 instead of struct dirent for dirent. Call readdir64
9638 instead of readdir.
9639
9640 * locale/programs/locfile.c (siblings_uncached): Use struct
9641 dirent64 instead of struct dirent for other_dentry. Call
9642 readdir64 instead of readdir.
9643
9644 * elf/ldconfig.c (direntry): Change type to struct dirent64.
9645 (search_dir): Use readdir64 instead of readdir.
9646 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
9647
9648 2003-01-12 Roland McGrath <roland@redhat.com>
9649
9650 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
9651 not strtol. The former is usable in ld.so, the latter not.
9652
9653 * include/fcntl.h: Declare __libc_creat.
9654
9655 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
9656 libhurduser-link.so-no-z-defs): New variables.
9657
9658 * malloc/malloc.c: Revert last change.
9659 * malloc/malloc.h (_int_*): Move these decls to ...
9660 * include/malloc.h: ... here. Add attribute_hidden.
9661 (_int_valloc): Declare it too.
9662
9663 2003-01-12 Ulrich Drepper <drepper@redhat.com>
9664
9665 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
9666 search for removed searchlist. Reported by Roland McGrath.
9667
9668 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
9669 given as start file.
9670
9671 * io/ftw.c (ftw_startup): Use correct name in check for symlink
9672 without existing target. Patch by Jim Meyering.
9673
9674 * Makerules (build-shlib-helper): Don't use -z defs linker option
9675 if no-z-defs is defined either.
9676
9677 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
9678
9679 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
9680 file.
9681
9682 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
9683
9684 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
9685 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
9686
9687 2003-01-12 Ulrich Drepper <drepper@redhat.com>
9688
9689 * io/ftwtest-sh: Add test case for relative path with /. at the end.
9690
9691 2003-01-12 Jim Meyering <jim@meyering.net>
9692
9693 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
9694 use the basename if we've already chdir'd into its parent directory.
9695
9696 2003-01-12 Ulrich Drepper <drepper@redhat.com>
9697
9698 * io/ftw.c (process_entry): Use relative path when using chdir()
9699 to change directory after call to ftw_dir.
9700 * io/ftwtest-sh: Add test for relative path argument to nftw()
9701 with FTW_CHDIR option.
9702
9703 2003-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9704
9705 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
9706 Define for powerpc.
9707 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
9708 into account.
9709 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
9710 (INTERNAL_SYSCALL): Make use of ERR parameter.
9711 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
9712 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
9713 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
9714 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
9715
9716 2003-01-09 Richard Henderson <rth@redhat.com>
9717
9718 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
9719 DTPREL64 and TPREL64 without loadbase applied.
9720
9721 2003-01-09 Richard Henderson <rth@redhat.com>
9722
9723 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
9724 for NOT_IN_libc.
9725
9726 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
9727 * sysdeps/unix/alpha/sysdep.h: ... here.
9728 (PSEUDO_LOADGP): Remove.
9729 (PSEUDO_PROLOGUE): Load GP in non-pic case.
9730 (SYSCALL_ERROR_LABEL): New.
9731 (PSEUDO): Use it in error branch.
9732 (PSEUDO_END): Add $syscall_error label.
9733
9734 2003-01-12 Andreas Jaeger <aj@suse.de>
9735
9736 * math/bits/mathcalls.h: Round is a const function.
9737
9738 2003-01-11 Jim Meyering <jim@meyering.net>
9739
9740 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
9741 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
9742 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
9743 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
9744 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
9745 [!_LIBC] (internal_function, dirent64, MAX): Define.
9746 (__set_errno): Define if not already defined.
9747 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
9748 the basename, not the entire file name.
9749 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
9750 the basename, not the entire file name.
9751
9752 2003-01-12 Ulrich Drepper <drepper@redhat.com>
9753
9754 * string/tester.c (test_strcpy): Disable last added strcpy until
9755 it is fixed.
9756
9757 2003-01-11 Philip Blundell <philb@gnu.org>
9758
9759 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
9760
9761 2003-01-11 Andreas Schwab <schwab@suse.de>
9762
9763 * Makerules: Add vpath for %.dynsym and %.so so that the
9764 implicit rule chaining for check-abi works.
9765
9766 2003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9767
9768 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
9769 Add non-PIC case.
9770
9771 2003-01-11 Jakub Jelinek <jakub@redhat.com>
9772
9773 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
9774 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
9775 gp is used early.
9776 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
9777 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
9778 Ensure libc.so in DT_NEEDED.
9779 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
9780 CHECK_STATIC_TLS before l_tls_offset use.
9781 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
9782 Likewise.
9783 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
9784 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
9785 Allocate TLS_PRE_TCB_SIZE bytes below result.
9786 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
9787 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
9788 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
9789 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
9790 bytes below result and add tcb_offset to memsz.
9791 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
9792 * sysdeps/ia64/dl-machine.h: Include tls.h.
9793 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
9794 too.
9795 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
9796 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
9797 * sysdeps/ia64/libc-tls.c: New file.
9798
9799 2003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
9800
9801 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
9802 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
9803 Fix type. Move definition out of #if.
9804 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
9805 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
9806 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
9807 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
9808 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
9809 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
9810 support.
9811 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
9812 ftruncate64, pread64, pwrite64, truncate64 entries.
9813 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
9814 (INLINE_SYSCALL): New version that supports function call like
9815 syscalls. Add __builtin_expect.
9816 (LOADARGS_n): Add argument size safety checks.
9817 (INTERNAL_SYSCALL): New Macro.
9818 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
9819 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
9820 redefinition of elf_fpreg_t and elf_fpregset_t.
9821
9822 2003-01-12 Ulrich Drepper <drepper@redhat.com>
9823
9824 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
9825 simplify test for unloading. If loader of a DSO is unloaded do not
9826 use its scope anymore. Fall back to own scope and adjust opencounts.
9827 Fix several comments.
9828 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
9829 the l_searchlist, not only for l_initfini.
9830
9831 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
9832 dependencies if objects cannot be removed. Remove object with the
9833 definition as not unloadable if necessary.
9834
9835 * elf/reldep6.c: Create relocation dependency before closing the first
9836 module.
9837
9838 2003-01-10 Guido Günther <agx@sigxcpu.org>
9839
9840 * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
9841 * sysdeps/unix/mips/brk.S: Likewise.
9842 * sysdeps/unix/mips/pipe.S: Likewise.
9843
9844 2003-01-10 Andreas Schwab <schwab@suse.de>
9845
9846 * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
9847
9848 * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
9849 are known to have the vfork syscall.
9850
9851 * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
9852
9853 * sysdeps/unix/sysv/linux/kernel-features.h
9854 (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
9855 (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
9856 (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
9857
9858 2003-01-09 Jakub Jelinek <jakub@redhat.com>
9859
9860 * elf/Makefile: Add rules to build and run reldep9 test.
9861 * elf/reldep9.c: New file.
9862 * elf/reldep9mod1.c: New file.
9863 * elf/reldep9mod2.c: New file.
9864 * elf/reldep9mod3.c: New file.
9865
9866 2003-01-09 Jakub Jelinek <jakub@redhat.com>
9867
9868 * elf/Makefile: Add rules to build and run nodelete2 test.
9869 * elf/nodelete2.c: New file.
9870 * elf/nodel2mod1.c: New file.
9871 * elf/nodel2mod2.c: New file.
9872 * elf/nodel2mod3.c: New file.
9873
9874 2003-01-09 Jakub Jelinek <jakub@redhat.com>
9875
9876 * posix/test-vfork.c (noop): Add __attribute_noinline__.
9877 * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
9878 * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
9879 defining it.
9880 * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
9881 * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
9882 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
9883 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
9884 * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
9885
9886 2003-01-09 Andreas Schwab <schwab@suse.de>
9887
9888 * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
9889
9890 2003-01-08 Ulrich Drepper <drepper@redhat.com>
9891
9892 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
9893 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
9894 argument.
9895 (INTERNAL_SYSCALL_DECL): Define.
9896
9897 2003-01-06 Jakub Jelinek <jakub@redhat.com>
9898
9899 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
9900 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
9901 argument.
9902 (INTERNAL_SYSCALL_DECL): Define.
9903 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
9904 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
9905 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
9906 (INLINE_SYSCALL): Adjust.
9907 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
9908 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
9909 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
9910 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9911 * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
9912 add err argument to INTERNAL_SYSCALL* macros.
9913 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
9914 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
9915 * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
9916 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
9917 Likewise.
9918 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
9919 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
9920 INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
9921
9922 2003-01-07 Ulrich Drepper <drepper@redhat.com>
9923
9924 Unify symbols in user namespace exported by libc.so and libc.a.
9925 * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
9926 argp_fmtstream_free, and argp_fmtstream_printf.
9927 * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
9928 argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
9929 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
9930 argp_fmtstream_point.
9931 * gmon/gmon.c: Don't define write_profiling.
9932 * libio/genops.c: Don't define _cleanup.
9933
9934 * intl/explodename.c (_nl_find_language.c): Mark as static.
9935 * intl/loadinfo.h: Remove _nl_find_language prototype.
9936
9937 * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
9938 * libio/libioP.h: Remove declaration.
9939
9940 * libio/iopopen.c (_IO_proc_jumps): Mark as static.
9941 * libio/libioP.h: Remove declaration.
9942
9943 * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
9944 * sysdeps/generic/framestate.c: Define STATIC before including
9945 unwind-dw2.c.
9946
9947 * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
9948
9949 2003-01-06 Philip Blundell <philb@gnu.org>
9950
9951 * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
9952 [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
9953
9954 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
9955 directive.
9956 (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
9957 (SYSCALL_ERROR): New.
9958 (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
9959 handling code.
9960 (INTERNAL_SYSCALL): Define.
9961 (INLINE_SYSCALL): Use it.
9962 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
9963 * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
9964 SYSCALL_ERROR in place of __syscall_error.
9965
9966 2003-01-07 Jakub Jelinek <jakub@redhat.com>
9967
9968 * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
9969 __bswap_32, __bswap_64): Put x into temporary variable
9970 to avoid warnings.
9971 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
9972 (inline) functions.
9973 * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
9974 __bswap_32, __bswap_64): Put x into temporary variable
9975 to avoid warnings.
9976 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
9977 (inline) functions.
9978 * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
9979 Likewise.
9980
9981 2003-01-07 Jakub Jelinek <jakub@redhat.com>
9982
9983 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
9984 alias.
9985
9986 2003-01-07 Jakub Jelinek <jakub@redhat.com>
9987
9988 * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
9989 * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
9990
9991 2003-01-07 Ulrich Drepper <drepper@redhat.com>
9992
9993 * math/libm-test.inc (significand_test): New function.
9994 (main): Call it.
9995
9996 2003-01-06 Roland McGrath <roland@redhat.com>
9997
9998 * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
9999 arguments.
10000 (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
10001 (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
10002 (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
10003
10004 * string/tester.c (test_strcpy): Add test with `void *' arguments.
10005
10006 2003-01-06 Ulrich Drepper <drepper@redhat.com>
10007
10008 * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
10009 return significand and not the exponent.
10010 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
10011
10012 * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
10013 taking address of iov in INTERNAL_SYSCALL call. Patch by Franz Sirl.
10014
10015 * malloc/malloc.c: Mark all _int_* functions as static.
10016
10017 2003-01-06 Jakub Jelinek <jakub@redhat.com>
10018
10019 * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
10020 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
10021 handling.
10022 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
10023
10024 2003-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10025
10026 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
10027 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
10028 support.
10029 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
10030 ftruncate64, truncate64, pread64 and pwrite64 entries.
10031 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
10032 (INLINE_SYSCALL): Add __builtin_expect.
10033 (LOADARGS_n): Add argument size safety checks.
10034 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
10035 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
10036 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
10037 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
10038 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
10039 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
10040
10041 2003-01-06 Jakub Jelinek <jakub@redhat.com>
10042
10043 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
10044 * sysdeps/generic/creat.c: Include sysdep-cancel.h.
10045 (LIBC_CANCEL_HANDLED): Add.
10046
10047 * sysdeps/unix/sysv/linux/alpha/sysdep.h
10048 (inline_syscall_r0_constraint): Rename to...
10049 (inline_syscall_r0_out_constraint): ... this. Add =.
10050 (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
10051
10052 2003-01-06 Andreas Schwab <schwab@suse.de>
10053
10054 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
10055 sure this is always inlined.
10056 (elf_machine_rela): Likewise.
10057
10058 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
10059
10060 2003-01-04 Roland McGrath <roland@redhat.com>
10061
10062 * Makeconfig (+mkdep): Add -MP flag.
10063 Suggested by Art Haas <ahaas@airmail.net>.
10064
10065 2003-01-05 Andreas Schwab <schwab@suse.de>
10066
10067 * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
10068
10069 2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
10070
10071 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
10072 SYSCALL_ERROR_HANDLER.
10073 * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
10074 * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
10075 Add support for cancellation handling.
10076 * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
10077 SYSCALL_ERROR_HANDLER.
10078 * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
10079 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
10080 Add support for cancellation handling.
10081 (SYSCALL_ERROR_HANDLER): Define PIC variants.
10082
10083 2003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10084
10085 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
10086 __syscall_pread64 and __syscall_pwrite64 cancelable.
10087 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
10088 (INTERNAL_SYSCALL): New macro.
10089 (LOADARGS_0, LOADARGS_1): Fix.
10090
10091 2003-01-05 Ulrich Drepper <drepper@redhat.com>
10092
10093 * Makerules (build-shlip-helper): Unless told otherwise, add
10094 -Wl,-z,defs to linker command line.
10095 * rt/Makefile (librt.so): Link with ld.so.
10096 * dlfcn/Makefile (libdl.so): Likewise.
10097
10098 2003-01-05 Jakub Jelinek <jakub@redhat.com>
10099
10100 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
10101 cancellation handling.
10102 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
10103 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
10104
10105 2003-01-04 Ulrich Drepper <drepper@redhat.com>
10106
10107 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
10108 order of parameters passed to kill.
10109
10110 2003-01-04 Andreas Schwab <schwab@suse.de>
10111
10112 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
10113
10114 2003-01-03 Paul Eggert <eggert@twinsun.com>
10115
10116 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
10117 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
10118 when compiling Bison 1.875's `bitset bset = obstack_alloc
10119 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
10120
10121 2003-01-04 Ulrich Drepper <drepper@redhat.com>
10122
10123 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove
10124 unnecessary code.
10125 Correct reference counter in case SIGQUIT handler installation failed.
10126
10127 2003-01-03 Ulrich Drepper <drepper@redhat.com>
10128
10129 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
10130 Define using _Pragma(weak ...).
10131
10132 2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
10133
10134 * resolv/res_libc.c: Provide declaration for __res_init_weak and
10135 reorder declarations.
10136
10137 2003-01-03 Art Haas <ahaas@airmail.net>
10138
10139 * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
10140 initializer syntax to C99.
10141 * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
10142 * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
10143 * localedata/tests-mbwc/dat_iswctype.c: Likewise.
10144 * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
10145 * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
10146 * localedata/tests-mbwc/dat_iswlower.c: Likewise.
10147 * localedata/tests-mbwc/dat_iswprint.c: Likewise.
10148 * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
10149 * localedata/tests-mbwc/dat_iswspace.c: Likewise.
10150 * localedata/tests-mbwc/dat_iswupper.c: Likewise.
10151 * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
10152 * localedata/tests-mbwc/dat_mblen.c: Likewise.
10153 * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
10154 * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
10155 * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
10156 * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
10157 * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
10158 * localedata/tests-mbwc/dat_strcoll.c: Likewise.
10159 * localedata/tests-mbwc/dat_strfmon.c: Likewise.
10160 * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
10161 * localedata/tests-mbwc/dat_swscanf.c: Likewise.
10162 * localedata/tests-mbwc/dat_towctrans.c: Likewise.
10163 * localedata/tests-mbwc/dat_towlower.c: Likewise.
10164 * localedata/tests-mbwc/dat_towupper.c: Likewise.
10165 * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
10166 * localedata/tests-mbwc/dat_wcscat.c: Likewise.
10167 * localedata/tests-mbwc/dat_wcschr.c: Likewise.
10168 * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
10169 * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
10170 * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
10171 * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
10172 * localedata/tests-mbwc/dat_wcslen.c: Likewise.
10173 * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
10174 * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
10175 * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
10176 * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
10177 * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
10178 * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
10179 * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
10180 * localedata/tests-mbwc/dat_wcstod.c: Likewise.
10181 * localedata/tests-mbwc/dat_wcstok.c: Likewise.
10182 * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
10183 * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
10184 * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
10185 * localedata/tests-mbwc/dat_wctob.c: Likewise.
10186 * localedata/tests-mbwc/dat_wctomb.c: Likewise.
10187 * localedata/tests-mbwc/dat_wctrans.c: Likewise.
10188 * localedata/tests-mbwc/dat_wctype.c: Likewise.
10189 * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
10190
10191 2003-01-03 Richard Henderson <rth@redhat.com>
10192
10193 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
10194 (inline_syscall_r0_constraint): New.
10195 (inline_syscall[0-6]): Use them.
10196
10197 2003-01-03 Jakub Jelinek <jakub@redhat.com>
10198
10199 * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
10200 Add rtld_hidden_proto.
10201 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
10202 (_dl_allocate_tls): Likewise. Remove INTDEF.
10203
10204 2002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
10205
10206 * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu
10207 Morita <toshiyasu.morita@hsa.hitachi.com>.
10208 * sysdeps/sh/memcpy.S: Likewise.
10209
10210 2003-01-02 Ulrich Drepper <drepper@redhat.com>
10211
10212 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
10213 any, but unify the test.
10214
10215 2003-01-02 Jakub Jelinek <jakub@redhat.com>
10216
10217 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
10218 sigaction): Protect weak_alias and libc_hidden_weak with
10219 #ifndef LIBC_SIGACTION.
10220 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
10221 sigaction): Likewise.
10222 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
10223 sigaction): Likewise.
10224 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
10225 sigaction): Likewise.
10226 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
10227 sigaction): Likewise.
10228 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
10229 sigaction): Likewise.
10230 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
10231 sigaction): Likewise.
10232 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
10233 sigaction): Likewise. Remove SIGCANCEL handling here.
10234 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
10235 Likewise.
10236
10237 2003-01-02 Art Haas <ahaas@airmail.net>
10238
10239 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
10240
10241 2003-01-02 Ulrich Drepper <drepper@redhat.com>
10242
10243 * posix/getconf.c: Update copyright year.
10244 * nss/getent.c: Likewise.
10245 * nscd/nscd_nischeck.c: Likewise.
10246 * iconv/iconvconfig.c: Likewise.
10247 * iconv/iconv_prog.c: Likewise.
10248 * elf/ldconfig.c: Likewise.
10249 * catgets/gencat.c: Likewise.
10250 * csu/version.c: Likewise.
10251 * elf/ldd.bash.in: Likewise.
10252 * elf/sprof.c (print_version): Likewise.
10253 * locale/programs/locale.c: Likewise.
10254 * locale/programs/localedef.c: Likewise.
10255 * nscd/nscd.c (print_version): Likewise.
10256 * debug/xtrace.sh: Likewise.
10257 * malloc/memusage.sh: Likewise.
10258 * malloc/mtrace.pl: Likewise.
10259
10260 2003-01-01 Jakub Jelinek <jakub@redhat.com>
10261
10262 * io/sys/stat.h: Include time.h with __need_timespec even if
10263 __USE_MISC is defined but __USE_XOPEN is not.
10264
10265 2003-01-01 Andreas Jaeger <aj@suse.de>
10266
10267 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
10268 type to avoid strict aliasing problem.
10269 (_nss_dns_gethostbyname2_r): Likewise.
10270 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
10271 (_nss_dns_getnetbyname_r): Likewise.
10272 * resolv/gethnamaddr.c (_gethtent): Likewise.
10273 (gethostbyname2): Likewise.
10274
10275 2002-12-31 Ulrich Drepper <drepper@redhat.com>
10276
10277 * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
10278 to avoid using the exported symbols. Define aliases with the
10279 original names separately.
10280
10281 * include/time.h: Add libc_hidden_proto for __strftime_l.
10282 * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
10283 * time/strftime.c: Always use libc_hidden_def if _LIBC.
10284
10285 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
10286 * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
10287
10288 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
10289 tr_break.
10290
10291 * csu/Makefile (routines): Add dso_handle.
10292 * csu/dso_handle.c: New file.
10293
10294 2002-12-31 Roland McGrath <roland@redhat.com>
10295
10296 * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
10297 Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
10298 (S-CPPFLAGS): Add -DASSEMBLER here instead.
10299 (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
10300
10301 2002-12-31 Ulrich Drepper <drepper@redhat.com>
10302
10303 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
10304 is available.
10305
10306 2002-12-31 Andreas Jaeger <aj@suse.de>
10307
10308 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
10309 with Linux kernel.
10310 * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
10311 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
10312 * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
10313
10314 * sysdeps/unix/sysv/linux/kernel_stat.h
10315 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
10316
10317 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
10318 __unused[1-3] since they're needed by some platforms. Handle
10319 _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
10320
10321 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
10322 for structs stat and stat64.
10323 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
10324 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
10325 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
10326 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
10327
10328 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
10329
10330 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
10331 nsec resolution changes.
10332 (xstat64_conv): Likewise.
10333 (xstat32_conv): Likewise.
10334
10335 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
10336 struct kernel_stat.
10337
10338 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
10339 structs stat and stat64.
10340
10341 * time/time.h (__timespec_defined): Define for __USE_MISC.
10342
10343 2002-12-31 Ulrich Drepper <drepper@redhat.com>
10344
10345 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
10346 and __libc_current_sigrtmax.
10347
10348 2002-12-31 Jakub Jelinek <jakub@redhat.com>
10349
10350 * include/errno.h (__errno_location): Add prototype.
10351 Use libc_hidden_proto unconditionally.
10352 * include/netdb.h (__h_errno_location): Use libc_hidden_proto
10353 unconditionally.
10354 * include/resolv.h (__res_state): Likewise.
10355
10356 * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
10357 * include/sys/socket.h (accept): Add libc_hidden_proto.
10358 * include/errno.h (__errno_location): Likewise.
10359 * include/netdb.h (__h_errno_location): Likewise.
10360 * include/resolv.h (__res_state): Likewise.
10361 * include/unistd.h (__lseek): Likewise.
10362 * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
10363 * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
10364 * sysdeps/generic/res-state.c (__res_state): Likewise.
10365 * sysdeps/generic/accept.c (accept): Likewise.
10366 * sysdeps/generic/lseek.c (__lseek): Likewise.
10367 * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
10368 __libc_current_sigrtmax): Likewise.
10369 * sysdeps/mach/hurd/accept.c (accept): Likewise.
10370 * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
10371 * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
10372 * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
10373 * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
10374 * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
10375 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
10376 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
10377 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
10378 alias to llseek.
10379 (__GI_accept): New alias to accept.
10380 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
10381 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
10382 New alias to llseek.
10383 (__GI_accept): New alias to accept.
10384 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
10385 Likewise.
10386 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
10387 Likewise.
10388 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
10389
10390 * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
10391 strong_alias (name, __GI_name).
10392 * sysdeps/arm/bsd-_setjmp.S : Likewise.
10393 * sysdeps/hppa/bsd-_setjmp.S : Likewise.
10394 * sysdeps/i386/bsd-_setjmp.S : Likewise.
10395 * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
10396 * sysdeps/mips/bsd-_setjmp.S : Likewise.
10397 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
10398 * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
10399 * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
10400 * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
10401 * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
10402 * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
10403 * sysdeps/sh/bsd-_setjmp.S : Likewise.
10404 * sysdeps/sparc/sparc32/setjmp.S : Likewise.
10405 * sysdeps/unix/arm/fork.S : Likewise.
10406 * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
10407 * sysdeps/unix/bsd/i386/vfork.S : Likewise.
10408 * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
10409 * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
10410 * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
10411 * sysdeps/unix/bsd/vax/vfork.S : Likewise.
10412 * sysdeps/unix/i386/fork.S : Likewise.
10413 * sysdeps/unix/mips/fork.S : Likewise.
10414 * sysdeps/unix/sparc/fork.S : Likewise.
10415 * sysdeps/unix/sparc/vfork.S : Likewise.
10416 * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
10417 * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
10418 * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
10419 * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
10420 * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
10421 * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
10422 * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
10423 * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
10424 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
10425 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
10426 * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
10427 * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
10428 * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
10429 * sysdeps/unix/fork.S : Likewise.
10430 * sysdeps/vax/bsd-_setjmp.S : Likewise.
10431 * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
10432
10433 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
10434 inclusion.
10435
10436 2002-12-31 Ulrich Drepper <drepper@redhat.com>
10437
10438 * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
10439 * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
10440 * sysdeps/mach/hurd/fork.c: Likewise.
10441 * sysdeps/unix/sysv/aix/fork.c: Likewise.
10442 * sysdeps/unix/fork.S: Add __GI___fork alias.
10443 * sysdeps/unix/arm/fork.S: Likewise.
10444 * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
10445 * sysdeps/unix/i386/fork.S: Likewise.
10446 * sysdeps/unix/mips/fork.S: Likewise.
10447 * sysdeps/unix/sparc/fork.S: Likewise.
10448 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
10449 * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
10450 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
10451 * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
10452 * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
10453 * sysdeps/unix/bsd/i386/vfork.S: Likewise.
10454 * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
10455 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
10456 * sysdeps/unix/bsd/vax/vfork.S: Likewise.
10457 * sysdeps/unix/sparc/vfork.S: Likewise.
10458 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
10459 * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
10460 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
10461 * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
10462 * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
10463 * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
10464 * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
10465 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
10466
10467 * include/time.h: Add libc_hidden_proto for __nanosleep.
10468 * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
10469 * sysdeps/mach/nanosleep.c: Likewise.
10470 * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
10471 * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
10472
10473 * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
10474 _IO_list_unlock, and _IO_list_resetlock.
10475 * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
10476 _IO_list_unlock, and _IO_list_resetlock.
10477
10478 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
10479 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
10480 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
10481 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
10482
10483 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
10484 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
10485 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
10486 __GI___longjmp alias.
10487
10488 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
10489 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
10490 * sysdeps/arm/bsd-_setjmp.S: Likewise.
10491 * sysdeps/generic/bsd-_setjmp.c: Likewise.
10492 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
10493 * sysdeps/i386/bsd-_setjmp.S: Likewise.
10494 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
10495 * sysdeps/mips/bsd-_setjmp.S: Likewise.
10496 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
10497 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
10498 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
10499 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
10500 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
10501 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
10502 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
10503 * sysdeps/sh/bsd-_setjmp.S: Likewise.
10504 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
10505 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
10506 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
10507 * sysdeps/vax/bsd-_setjmp.S: Likewise.
10508 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
10509
10510 2002-12-30 Ulrich Drepper <drepper@redhat.com>
10511
10512 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
10513
10514 2002-12-30 Roland McGrath <roland@redhat.com>
10515
10516 * Rules (generated): Target removed.
10517 * mach/Makefile (generated): Define it here instead.
10518
10519 * math/Makefile (generated): Add m_*l and m_*f variants too.
10520
10521 2002-12-30 Ulrich Drepper <drepper@redhat.com>
10522
10523 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
10524 the to-be-deleted objects right away instead of later separately.
10525 The latter fails because the scope data structures of the DSO
10526 might already be gone.
10527
10528 * elf/Makefile: Add rules to build and run reldep8 test.
10529 * elf/reldep8.c: New file.
10530 * elf/reldep8mod1.c: New file.
10531 * elf/reldep8mod2.c: New file.
10532 * elf/reldep8mod3.c: New file.
10533 Contributed by Jakub Jelinek.
10534
10535 2002-12-24 GOTO Masanori <gotom@debian.or.jp>
10536
10537 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
10538 checking of return value ENOSYS from getdents64.
10539
10540 2002-12-28 Andreas Schwab <schwab@suse.de>
10541
10542 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
10543 ($(common-objpfx)s-%.d): Generalized from
10544 $(common-objpfx)s-proto.d rule.
10545 (common-generated): Add s-proto-cancel.d.
10546 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
10547 cancellable syscalls.
10548 * sysdeps/unix/s-proto-cancel.S: New file.
10549
10550 2002-12-29 Roland McGrath <roland@redhat.com>
10551
10552 * resolv/res_libc.c: Move _res defn magic after res_init defn
10553 so _res macro is in effect for that code.
10554
10555 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
10556 pattern for prepending $(..) so it doesn't affect $(foo).
10557
10558 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
10559
10560 2002-12-29 Jakub Jelinek <jakub@redhat.com>
10561
10562 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
10563 in hwcap.
10564
10565 2002-12-28 Ulrich Drepper <drepper@redhat.com>
10566
10567 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
10568
10569 2002-12-28 Andreas Jaeger <aj@suse.de>
10570
10571 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
10572 avoid warning.
10573 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
10574
10575 2002-12-27 Jakub Jelinek <jakub@redhat.com>
10576
10577 * inet/herrno.c (__h_errno_location): Remove.
10578 * inet/Makefile (routines): Add herrno-loc.
10579 * resolv/res_libc.c (__res_state): Remove.
10580 * resolv/Makefile (routines): Add res-state.
10581 * sysdeps/generic/herrno-loc.c: New file.
10582 * sysdeps/generic/res-state.c: New file.
10583
10584 2002-12-27 Jakub Jelinek <jakub@redhat.com>
10585
10586 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
10587 Only define if USE_DL_SYSINFO is defined.
10588
10589 2002-12-22 Jakub Jelinek <jakub@redhat.com>
10590
10591 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
10592 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
10593 Define. Patch by Richard Henderson and Jes Sorensen.
10594 (PSEUDO): Remove unnecessary ;;.
10595 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
10596 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
10597 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
10598 if not initializing thread pointer.
10599 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
10600 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
10601 make it weak also if NONTLS_INIT_TP.
10602 * sysdeps/unix/common/pause.c: Handle cancellation.
10603 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
10604 (LOADSYSCALL): Remove.
10605 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
10606 (SYSCALL_ERROR_HANDLER): Use it.
10607 (PSEUDO): Don't jump around error handler.
10608 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
10609 jump around error handler.
10610 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
10611 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
10612 to __syscall_error_handler on failure.
10613 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
10614 (LOADSYSCALL): Remove.
10615 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
10616 (SYSCALL_ERROR_HANDLER): Use it.
10617 (PSEUDO): Don't jump around error handler.
10618 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
10619 jump around error handler.
10620 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
10621 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
10622 to __syscall_error_handler on failure.
10623
10624 2002-12-27 Roland McGrath <roland@redhat.com>
10625
10626 * scripts/gen-as-const.awk: New file.
10627 * Makefile (distribute): Add it.
10628 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
10629 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
10630 to the list.
10631 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
10632
10633 2002-12-27 Andreas Schwab <schwab@suse.de>
10634
10635 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
10636
10637 2002-12-27 Jakub Jelinek <jakub@redhat.com>
10638
10639 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
10640 _environ is NULL.
10641
10642 2002-12-27 Andreas Schwab <schwab@suse.de>
10643
10644 * Makerules ($(common-objpfx)%.make): Filter through
10645 $(sed-remove-objpfx).
10646
10647 2002-12-23 Roland McGrath <roland@redhat.com>
10648
10649 * scripts/abilist.awk: Produce a more compact format, divided into
10650 stanzas for each version set, the set name listed only once.
10651 * scripts/extract-abilist.awk: New file.
10652 * scripts/merge-abilist.awk: New file.
10653 * Makerules (check-abi-%, update-abi-%): New pattern rules.
10654 (update-abi, check-abi): New targets.
10655 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
10656
10657 2002-12-19 Roland McGrath <roland@redhat.com>
10658
10659 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
10660
10661 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
10662 INTERNAL_SYSCALL.
10663
10664 2002-12-21 Andreas Schwab <schwab@suse.de>
10665
10666 * elf/check-textrel.c (handle_file): Swap p_type.
10667
10668 2002-12-21 Andreas Schwab <schwab@suse.de>
10669
10670 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
10671 (INLINE_SYSCALL): Use it.
10672 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
10673 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
10674
10675 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
10676 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
10677
10678 2002-12-20 Art Haas <ahaas@airmail.net>
10679
10680 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
10681 syntax to C99.
10682
10683 2002-12-21 Philip Blundell <philb@gnu.org>
10684
10685 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
10686 top as seventh arg to __libc_start_main.
10687 Reported by paulnash@wildseed.com.
10688
10689 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
10690
10691 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
10692 compatibility cruft when new enough kernel is assumed.
10693
10694 2002-12-20 Jakub Jelinek <jakub@redhat.com>
10695
10696 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
10697 instead of INLINE_SYSCALL.
10698
10699 2002-12-20 Ulrich Drepper <drepper@redhat.com>
10700
10701 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
10702 typo.
10703
10704 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
10705 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
10706 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
10707 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
10708 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
10709 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
10710 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
10711 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
10712 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
10713 Patch by William Lee Irwin <wli@holomorphy.com>.
10714
10715 2002-12-20 Andreas Schwab <schwab@suse.de>
10716
10717 * locale/programs/ld-measurement.c (measurement_output): Fix
10718 index calculation.
10719
10720 2002-12-20 Ulrich Drepper <drepper@redhat.com>
10721
10722 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
10723 Redefine _IO_flockifle and _IO_funlockfile as inlines.
10724
10725 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
10726 builds add "tls" in the search path.
10727 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
10728 (path_hwcap): Recognize "tls".
10729
10730 2002-12-19 Ulrich Drepper <drepper@redhat.com>
10731
10732 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
10733 __waitpid instead of waitpid.
10734
10735 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
10736 int $0x80.
10737 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
10738 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
10739 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
10740
10741 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
10742 information for system calls.
10743
10744 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
10745 for ld.so.
10746
10747 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
10748
10749 2002-12-19 Roland McGrath <roland@redhat.com>
10750
10751 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
10752 * iconvdata/ibm922.h: Likewise.
10753 * iconvdata/ibm930.h: Likewise.
10754 * iconvdata/ibm932.h: Likewise.
10755 * iconvdata/ibm933.h: Likewise.
10756 * iconvdata/ibm935.h: Likewise.
10757 * iconvdata/ibm937.h: Likewise.
10758 * iconvdata/ibm939.h: Likewise.
10759 * iconvdata/ibm943.h: Likewise.
10760 * iconvdata/isiri-3342.h: Likewise.
10761
10762 2002-12-19 Ulrich Drepper <drepper@redhat.com>
10763
10764 * test-skeleton.c (main): Make sure correct value is seen as
10765 argv[0] after adjustment of argv, and argc.
10766
10767 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
10768 RTLD_CORRECT_DYNAMIC_WEAK is defined.
10769
10770 2002-12-19 Jakub Jelinek <jakub@redhat.com>
10771
10772 * nscd/connections.c (nscd_run): Shut up warning.
10773 * tst-ungetc.c (assert): Undefined before redefining.
10774
10775 2002-12-19 Ulrich Drepper <drepper@redhat.com>
10776
10777 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
10778 is used.
10779
10780 2002-12-17 Art Haas <ahaas@airmail.net>
10781
10782 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
10783 * iconvdata/cp775.h: Likewise.
10784 * iconvdata/ibm1046.h: Likewise.
10785 * iconvdata/ibm1124.h: Likewise.
10786 * iconvdata/ibm1129.h: Likewise.
10787 * iconvdata/ibm1132.h: Likewise.
10788 * iconvdata/ibm1133.h: Likewise.
10789 * iconvdata/ibm1160.h: Likewise.
10790 * iconvdata/ibm1161.h: Likewise.
10791 * iconvdata/ibm1162.h: Likewise.
10792 * iconvdata/ibm1163.h: Likewise.
10793 * iconvdata/ibm1164.h: Likewise.
10794
10795 2002-12-19 Ulrich Drepper <drepper@redhat.com>
10796
10797 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
10798 __ASSUME_CLONE_THREAD_FLAGS is defined.
10799 * sysdeps/unix/sysv/linux/kernel-features.h
10800 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
10801
10802 2002-12-18 Ulrich Drepper <drepper@redhat.com>
10803
10804 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
10805 of asm.
10806 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
10807
10808 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
10809 _dl_sysinfo.
10810 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
10811 code.
10812 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
10813 _rtld_global.
10814 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
10815 code.
10816 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
10817 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
10818 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
10819 Add _dl_sysinfo.
10820
10821 2002-12-18 Jakub Jelinek <jakub@redhat.com>
10822
10823 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
10824 __libc_writev to...
10825 [libc: GLIBC_PRIVATE]: ...here.
10826 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
10827 __libc_msgsnd to...
10828 [libc: GLIBC_PRIVATE]: ...here.
10829
10830 2002-12-18 Ulrich Drepper <drepper@redhat.com>
10831
10832 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
10833 Use it instead of directly int $0x80.
10834 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
10835 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
10836 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
10837 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
10838 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
10839 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
10840
10841 2002-12-17 Ulrich Drepper <drepper@redhat.com>
10842
10843 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
10844
10845 * elf/elf.h (AT_SYSINFO): New define.
10846 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
10847 AT_SYSINFO.
10848
10849 2002-12-17 Jakub Jelinek <jakub@redhat.com>
10850
10851 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
10852 Make cancelable.
10853 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
10854 Likewise.
10855 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
10856 Likewise.
10857 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
10858 Likewise.
10859 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
10860 Likewise.
10861 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
10862
10863 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
10864 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
10865 available, otherwise __libc_maybe_call.
10866 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
10867 cancellation handling.
10868 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
10869
10870 2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
10871
10872 * posix/regcomp.c (free_workarea_compile): Free the new member
10873 ORG_INDICES.
10874 (analyze): Initialize ORG_INDICES.
10875 (duplicate_node_closure): Search for a existing node, which is
10876 duplicated from the node ORG_DEST and satisfies the constraint
10877 CONSTRAINT. And use it to avoid inifimite loop.
10878 (search_duplicated_node): New function.
10879 (duplicate_node): Store the index of the original node.
10880 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
10881 if needed.
10882 * posix/regex_internal.h (re_dfa_t): Add new members.
10883
10884 2002-12-17 Ulrich Drepper <drepper@redhat.com>
10885
10886 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
10887
10888 2002-12-16 Ulrich Drepper <drepper@redhat.com>
10889
10890 * sysdeps/posix/system.c (do_system): Add support for installation
10891 of cancellation handlers.
10892 * sysdeps/unix/sysv/linux/i386/system.c: New file.
10893
10894 * stdlib/Makefile (tests): Add tst-system.
10895 * stdlib/tst-system.c: New file.
10896
10897 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
10898 CENABLE]: Don't lose content of %ebx.
10899
10900 2002-12-17 Jakub Jelinek <jakub@redhat.com>
10901
10902 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
10903 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
10904
10905 2002-12-16 Ulrich Drepper <drepper@redhat.com>
10906
10907 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
10908 fails to return a function pointer don't use it.
10909
10910 2002-12-16 Art Haas <ahaas@airmail.net>
10911
10912 * io/ftw.c: Convert GCC extension initializer syntax to C99.
10913 * iconvdata/iso-ir-165.c: Likewise.
10914 * iconvdata/jis0208.c: Likewise.
10915 * iconvdata/jis0212.c: Likewise.
10916
10917 2002-12-16 Ulrich Drepper <drepper@redhat.com>
10918
10919 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
10920 epoll_ctl, and epoll_wait.
10921 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
10922 epoll_create, epoll_ctl, and epoll_wait.
10923 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
10924 Davide Libenzi <davidel@xmailserver.org>.
10925 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
10926 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
10927 Add sys/epoll.h.
10928
10929 2002-12-16 Art Haas <ahaas@airmail.net>
10930
10931 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
10932 syntax to C99
10933 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
10934 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
10935 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
10936
10937 2002-12-16 Ulrich Drepper <drepper@redhat.com>
10938
10939 * stdio-common/Makefile (routines): Remove lockfile. Add
10940 flockfile, ftrylockfile, and funlockfile.
10941 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
10942 * sysdeps/generic/flockfile.c: New file.
10943 * sysdeps/generic/ftrylockfile.c: New file.
10944 * sysdeps/generic/funlockfile.c: New file.
10945
10946 2002-12-16 Jakub Jelinek <jakub@redhat.com>
10947
10948 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
10949 macros instead of doing the calls directly.
10950 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
10951 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
10952 targets.
10953
10954 2002-12-16 Jakub Jelinek <jakub@redhat.com>
10955
10956 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
10957 * sysdeps/ieee754/bits/nan.h: Likewise.
10958
10959 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
10960 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
10961
10962 2002-12-16 Roland McGrath <roland@redhat.com>
10963
10964 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
10965 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
10966 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
10967
10968 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
10969 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
10970 s_putpmsg.
10971 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
10972 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
10973 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
10974 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
10975 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
10976 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
10977 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
10978 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
10979
10980 2002-12-13 Paul Eggert <eggert@twinsun.com>
10981
10982 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
10983 is now u_int, not int.
10984 (struct XDR.x_handy): Now u_int, not int.
10985 * sunrpc/xdr_mem.c: Include <limits.h>.
10986 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
10987 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
10988 x_handy is now unsigned, not signed.
10989 Do not decrement x_handy if no change is made.
10990 (xdrmem_setpos): Check for int overflow.
10991 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
10992 (xdr_sizeof): Remove cast that is now unnecessary, now that
10993 x_handy is unsigned.
10994
10995 2002-12-15 Art Haas <ahaas@airmail.net>
10996
10997 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
10998 * iconvdata/gap.awk: Likewise.
10999 * iconvdata/gen-8bit-gap-1.sh: Likewise.
11000 * iconvdata/gen-8bit-gap.sh: Likewise.
11001 * locale/C-address.c: Likewise.
11002 * locale/C-collate.c: Likewise.
11003 * locale/C-ctype.c: Likewise.
11004 * locale/C-identification.c: Likewise.
11005 * locale/C-measurement.c: Likewise.
11006 * locale/C-messages.c: Likewise.
11007 * locale/C-monetary.c: Likewise.
11008 * locale/C-name.c: Likewise.
11009 * locale/C-numeric.c: Likewise.
11010 * locale/C-paper.c: Likewise.
11011 * locale/C-telephone.c: Likewise.
11012 * locale/C-time.c: Likewise.
11013 * nscd/connections.c: Likewise.
11014 * nscd/grpcache.c: Likewise.
11015 * nscd/hstcache.c: Likewise.
11016 * nscd/pwdcache.c: Likewise.
11017 * stdio-common/vfprintf.c: Likewise.
11018 * stdlib/random.c: Likewise.
11019 * sysdeps/generic/siglist.c: Likewise.
11020 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
11021 * sysdeps/ieee754/bits/nan.h: Likewise.
11022 * sysdeps/posix/sprofil.c: Likewise.
11023 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
11024 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
11025 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
11026
11027 2002-12-15 Roland McGrath <roland@redhat.com>
11028
11029 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
11030
11031 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
11032 <tls.h> here, no need for it.
11033 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
11034
11035 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
11036 parameter, not varargs parameter.
11037
11038 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
11039 argument so it's not an unused variable.
11040
11041 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
11042 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
11043 for users.
11044
11045 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
11046
11047 2002-12-15 Ulrich Drepper <drepper@redhat.com>
11048
11049 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
11050 original __libc_fcntl code. Just renamed.
11051
11052 2002-12-15 Andreas Schwab <schwab@suse.de>
11053
11054 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
11055
11056 2002-12-14 Olaf Hering <olh@suse.de>
11057
11058 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
11059 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
11060
11061 2002-12-15 Ulrich Drepper <drepper@redhat.com>
11062
11063 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
11064
11065 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
11066 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
11067
11068 * sysdeps/unix/sysv/linux/open64.c: New file.
11069
11070 * sysdeps/generic/pselect.c: Add support for cancellation handling.
11071 * sysdeps/posix/open64.c: Likewise.
11072 * sysdeps/posix/sigpause.c: Likewise.
11073 * sysdeps/posix/sigwait.c: Likewise.
11074 * sysdeps/posix/system.c: Likewise.
11075 * sysdeps/posix/waitid.c: Likewise.
11076 * sysdeps/unix/sysv/linux/accept.S: Likewise.
11077 * sysdeps/unix/sysv/linux/connect.S: Likewise.
11078 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
11079 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
11080 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
11081 * sysdeps/unix/sysv/linux/poll.c: Likewise.
11082 * sysdeps/unix/sysv/linux/pread.c: Likewise.
11083 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
11084 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
11085 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
11086 * sysdeps/unix/sysv/linux/readv.c: Likewise.
11087 * sysdeps/unix/sysv/linux/recv.S: Likewise.
11088 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
11089 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
11090 * sysdeps/unix/sysv/linux/send.S: Likewise.
11091 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
11092 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
11093 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
11094 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
11095 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
11096 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
11097 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
11098 * sysdeps/unix/sysv/linux/wait.c: Likewise.
11099 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
11100 * sysdeps/unix/sysv/linux/writev.c: Likewise.
11101 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
11102 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
11103
11104 2002-12-14 Jakub Jelinek <jakub@redhat.com>
11105
11106 * sysdeps/generic/sysdep-cancel.h: New file.
11107 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
11108 cancelable syscall.
11109 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
11110 recvmsg, send, sendmsg, sendto): Make cancelable.
11111 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
11112 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
11113 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
11114 sendto, osf_select): Likewise.
11115 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
11116 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
11117 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
11118 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
11119 sendto): Likewise.
11120 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
11121 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
11122 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
11123 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
11124 sendto): Likewise.
11125 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
11126 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
11127 sendto, select): Likewise.
11128 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
11129 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
11130 Likewise.
11131 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
11132 select, fcntl): Likewise.
11133 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
11134 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
11135 read, readv, select, sigsuspend, write, writev): Likewise.
11136
11137 2002-12-14 Jakub Jelinek <jakub@redhat.com>
11138
11139 * dirent/bug-readdir1.c: Include unistd.h.
11140
11141 2002-12-13 Jakub Jelinek <jakub@redhat.com>
11142
11143 * locale/programs/locale.c: Include locarchive.h.
11144 (ARCHIVE_NAME): Define.
11145 (write_archive_locales): New function.
11146 (write_locales): Use it. Ensure the same locale is not printed
11147 multiple times in verbose mode.
11148 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
11149 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
11150 functions.
11151 (struct nameent): New type.
11152 (nameentcmp): New function.
11153
11154 2002-12-14 Jakub Jelinek <jakub@redhat.com>
11155
11156 * posix/regex_internal.c (re_string_context_at): Guard wide char
11157 code with #ifdef RE_ENABLE_I18N.
11158
11159 2002-11-22 Paolo Bonzini <bonzini@gnu.org>
11160
11161 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
11162
11163 2002-12-13 Roland McGrath <roland@redhat.com>
11164
11165 * posix/bug-regex15.c: New file.
11166 * posix/Makefile (tests): Add it.
11167
11168 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
11169 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
11170
11171 2002-12-13 Ulrich Drepper <drepper@redhat.com>
11172
11173 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
11174
11175 * misc/syslog.c (log_cleanup): Don't use parameter in
11176 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
11177 pass NULL instead of a pointer to syslog_lock.
11178
11179 2002-12-12 Ulrich Drepper <drepper@redhat.com>
11180
11181 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
11182 linker map for all iconv modules.
11183 (distribute): Add gconv.map.
11184 * iconvdata/gconv.map: New file.
11185
11186 * elf/Makefile: Also check all iconv modules for text relocations.
11187
11188 * stdlib/Makefile: Remove code to automatically import GMP.
11189
11190 * elf/Makefile (tests): Add rules to build and run check-textrel.
11191 * elf/check-textrel.c: New file.
11192
11193 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
11194 directive.
11195
11196 2002-12-11 Jakub Jelinek <jakub@redhat.com>
11197
11198 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
11199 not st.st[am]time.
11200
11201 2002-04-30 Bruno Haible <bruno@clisp.org>
11202
11203 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
11204 the encoding if it already has slashes.
11205 Reported by Perry Rapp <prapp@erols.com>.
11206
11207 2002-12-11 Roland McGrath <roland@redhat.com>
11208
11209 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
11210 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
11211 Turn off PIC for compiling this file.
11212
11213 2002-12-11 Ulrich Drepper <drepper@redhat.com>
11214
11215 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
11216 definitions. Not needed.
11217 [_LIBC]: Use definitions from libc-lock.h instead of referencing
11218 pthread routines directly.
11219 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
11220 mutex_init calls.
11221 (arena_get2): Don't look at return value of mutex_lock.
11222
11223 2002-12-11 Roland McGrath <roland@redhat.com>
11224
11225 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
11226 elf-init.o instead of compiling a PIC version.
11227
11228 2002-12-11 Bruno Haible <bruno@clisp.org>
11229
11230 * intl/gettext.h: Renamed to ...
11231 * intl/gmo.h: ... here.
11232 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
11233 * intl/gettextP.h: Update.
11234 * intl/loadmsgcat.c: Update.
11235
11236 * intl/gettextP.h (PARAMS): Make more portable.
11237 (attribute_hidden): Define as empty macro if not already defined.
11238 * intl/hash-string.h (PARAMS): Make more portable.
11239 * intl/loadinfo.h (PARAMS): Likewise.
11240 * intl/plural-exp.h (PARAMS): Likewise.
11241 (attribute_hidden): Move definition near the definition of
11242 internal_function.
11243
11244 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
11245 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
11246
11247 2002-07-13 Bruno Haible <bruno@clisp.org>
11248
11249 * intl/dcigettext.c (freea): New macro.
11250 (FREE_BLOCKS): Free also the registered blocks.
11251 (DCIGETTEXT): Free the 'search' variable.
11252 Reported by Andreas Fischer <a.fischer@asentics.de>.
11253
11254 2002-04-27 Bruno Haible <bruno@clisp.org>
11255
11256 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
11257 * intl/dcigettext.c: Likewise.
11258 * intl/dcgettext.c: Likewise.
11259 * intl/dgettext.c: Likewise.
11260 * intl/gettext.c: Likewise.
11261 * intl/dcngettext.c: Likewise.
11262 * intl/dngettext.c: Likewise.
11263 * intl/ngettext.c: Likewise.
11264 * intl/textdomain.c: Likewise.
11265 * intl/bindtextdom.c: Likewise.
11266 * intl/plural-exp.h: Likewise.
11267
11268 2002-01-02 Bruno Haible <bruno@clisp.org>
11269
11270 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
11271
11272 2001-04-30 Bruno Haible <bruno@clisp.org>
11273
11274 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
11275 default macro definitions. Needed for mingw32.
11276
11277 2002-12-10 Ulrich Drepper <drepper@redhat.com>
11278
11279 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
11280 __builtin_constant_p to macro parameter.
11281
11282 * sysdeps/generic/sigpause.c: Define all functions as weak.
11283 * sysdeps/posix/sigpause.c: Likewise.
11284
11285 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
11286 type size_t.
11287
11288 2002-12-10 Jakub Jelinek <jakub@redhat.com>
11289
11290 * elf/tst-array1.c (preinit_array, init_array, fini_array):
11291 Explicitly align the array to sizeof (void *).
11292 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
11293
11294 * include/libc-symbols.h: Fix a comment typo.
11295
11296 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
11297 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
11298 Likewise.
11299 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
11300 Likewise.
11301 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
11302 (__libc_sigsuspend): Likewise.
11303 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
11304 (__libc_sigsuspend): Likewise.
11305 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
11306 (creat): New weak alias.
11307
11308 2002-12-10 Roland McGrath <roland@redhat.com>
11309
11310 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
11311 contributes a manual chapter.
11312 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
11313 around xref to it.
11314
11315 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
11316 and move contents to ...
11317 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
11318 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
11319 it instead of duplicating its contents.
11320 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
11321
11322 2002-12-09 Jakub Jelinek <jakub@redhat.com>
11323
11324 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
11325 defined.
11326 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
11327 function.
11328 (EXTRA_LD_ENVVARS): Use it.
11329 (DL_OSVERSION_INIT): Define.
11330 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
11331 dl-librecon.h.
11332 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
11333
11334 2002-12-10 Ulrich Drepper <drepper@redhat.com>
11335
11336 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
11337
11338 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
11339 call. It is not allowed to destroy pthread mutexes which are
11340 still in use even though it is safe for our implementations. If
11341 somebody still uses the descriptor it is a bug.
11342
11343 2002-12-09 Richard Henderson <rth@redhat.com>
11344
11345 * csu/abi-note.S: Use .p2align, not .align.
11346
11347 2002-12-09 Ulrich Drepper <drepper@redhat.com>
11348
11349 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
11350 __libc_select aliases.
11351
11352 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
11353 alias.
11354
11355 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
11356
11357 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
11358
11359 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
11360
11361 * sysdeps/unix/syscalls.list: Define __libc_select alias.
11362
11363 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
11364
11365 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
11366 __libc___xpg_sigpause aliases.
11367
11368 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
11369
11370 * misc/error.c: Remove use of USE_IN_LIBIO.
11371
11372 2002-12-08 Roland McGrath <roland@redhat.com>
11373
11374 * elf/Makefile (tests): Uncomment tst-array[123].
11375 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
11376 * csu/elf-init.c: New file.
11377 * csu/Makefile (routines, static-only-routines): Add elf-init.
11378 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
11379 and __libc_csu_fini in place of _fini.
11380 * sysdeps/arm/elf/start.S: Likewise.
11381 * sysdeps/cris/elf/start.S: Likewise.
11382 * sysdeps/hppa/elf/start.S: Likewise.
11383 * sysdeps/i386/elf/start.S: Likewise.
11384 * sysdeps/ia64/elf/start.S: Likewise.
11385 * sysdeps/m68k/elf/start.S: Likewise.
11386 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
11387 * sysdeps/mips/elf/start.S: Likewise.
11388 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
11389 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
11390 * sysdeps/s390/s390-32/elf/start.S: Likewise.
11391 * sysdeps/s390/s390-64/elf/start.S: Likewise.
11392 * sysdeps/sh/elf/start.S: Likewise.
11393 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11394 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11395 * sysdeps/x86_64/elf/start.S: Likewise.
11396
11397 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
11398 struct containing function ptr and value, free it.
11399 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
11400 It's not safe to let the new thread use the SIGEV pointer.
11401
11402 2001-10-20 Paul Eggert <eggert@twinsun.com>
11403
11404 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
11405 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
11406 Use strerror_r that is only a macro, even if it is not a function.
11407 (strerror): Check for HAVE_DECL_STRERROR before declaring.
11408 (private_strerror): Use prototypes, not old-style function definition.
11409 (print_errno_message): New function.
11410 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
11411 char*-flavored one.
11412 (error_tail, error, error_at_line): Use it.
11413
11414 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
11415
11416 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
11417
11418 2002-12-08 Ulrich Drepper <drepper@redhat.com>
11419
11420 * scripts/output-format.sed: Fix bug in one of the s expressions
11421 which used / for one too many things.
11422
11423 * include/unistd.h: Declare __libc_close.
11424
11425 2002-12-07 Ulrich Drepper <drepper@redhat.com>
11426
11427 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
11428
11429 2002-12-07 Roland McGrath <roland@redhat.com>
11430
11431 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
11432 from 2002-12-06, but remove unnecessary memset call without removing
11433 necessary copy of initialization image.
11434
11435 * Makerules ($(common-objpfx)format.lds): New target.
11436 (common-generated): Add it.
11437 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
11438 * scripts/output-format.sed: New file.
11439 * Makefile (distribute): Add it.
11440
11441 2002-12-07 Ulrich Drepper <drepper@redhat.com>
11442
11443 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
11444 Reported by Art Haas <ahaas@airmail.net>.
11445
11446 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
11447
11448 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
11449
11450 2002-12-07 Jakub Jelinek <jakub@redhat.com>
11451
11452 * string/test-strncpy.c (do_random_tests): Improve test coverage.
11453
11454 2002-12-06 Ulrich Drepper <drepper@redhat.com>
11455
11456 * test-skeleton.c (timeout_handler): Allow expected signal to be
11457 SIGALRM.
11458
11459 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
11460
11461 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
11462
11463 2002-12-07 Jakub Jelinek <jakub@redhat.com>
11464
11465 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
11466 (SYSCALL_ERROR_HANDLER): Fix a pasto.
11467 Reported by Jeff Bailey <jbailey@nisa.net>.
11468
11469 2002-12-06 Ulrich Drepper <drepper@redhat.com>
11470
11471 * sysdeps/generic/libc-tls.c: Undo last patch.
11472
11473 * include/wctype.h: Define iswalnum with libc_hidden_proto.
11474
11475 * include/signal.h: Define raise with libc_hidden_proto.
11476
11477 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
11478 __execve instead of snprintf and execve.
11479
11480 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
11481 again a bit.
11482
11483 2002-12-06 Jakub Jelinek <jakub@redhat.com>
11484
11485 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
11486 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
11487
11488 2002-12-06 Ulrich Drepper <drepper@redhat.com>
11489
11490 * misc/syslog.c (log_cleanup): New function.
11491 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
11492 (closelog): Likewise.
11493
11494 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
11495 * elf/dl-iteratephdr.c: Likewise.
11496 * elf/dl-lookup.c: Likewise.
11497 * elf/dl-misc.c: Likewise.
11498 * elf/dl-open.c: Likewise.
11499 * elf/dl-support.c: Likewise.
11500 * elf/rtld.c: Likewise.
11501 * sysdeps/generic/ldsodefs.h: Likewise.
11502 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
11503 * sysdeps/mach/bits/libc-lock.h: Likewise.
11504 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
11505
11506 2002-12-06 Roland McGrath <roland@redhat.com>
11507
11508 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
11509
11510 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
11511 (malloc_starter, memalign_starter, free_starter): Don't define these.
11512 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
11513 Don't declare them either.
11514 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
11515 __pthread_initialize, so no need to set hooks to *_starter.
11516 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
11517 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
11518 (__libc_malloc_pthread_startup): New function.
11519 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
11520
11521 * malloc/hooks.c (memalign_starter): New function.
11522 * malloc/malloc.c: Declare it.
11523 * malloc/arena.c (save_memalign_hook): New variable.
11524 (ptmalloc_init): Set __memalign_hook to memalign_starter.
11525
11526 * elf/dl-minimal.c (free): Clear the memory.
11527 (calloc): Just call malloc, knowing all memory it returns is cleared.
11528
11529 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
11530 malloc and memset; calloc can avoid the zeroing when redundant.
11531 (_dl_tls_setup): Likewise.
11532 * elf/dl-load.c (decompose_rpath): Likewise.
11533 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
11534 call, since memory from sbrk at startup is already zero.
11535
11536 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
11537 error string for failure, null for success. Update callers.
11538 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
11539 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
11540
11541 2002-12-05 Jakub Jelinek <jakub@redhat.com>
11542
11543 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
11544 args to i:iipi.
11545 (readahead): Change args to i:iii.
11546 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
11547 Change args to i:iii.
11548 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
11549 args to i:iiii.
11550
11551 2002-12-05 Roland McGrath <roland@redhat.com>
11552
11553 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
11554 call all functions rather than none.
11555 Reported by Mark P. Mitchell <mark@codesourcery.com>.
11556
11557 2002-12-04 Roland McGrath <roland@redhat.com>
11558
11559 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
11560 on _nl_current_LC_* variables.
11561
11562 2002-12-05 Ulrich Drepper <drepper@redhat.com>
11563
11564 * dirent/bug-readdir1.c (main): Don't call closedir, just close
11565 the file descriptor. This is testing what the bug report was about.
11566
11567 2002-12-04 Ulrich Drepper <drepper@redhat.com>
11568
11569 * po/be.po: New file.
11570
11571 * argp/Makefile (tests): Add tst-argp1.
11572
11573 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
11574 Change type of _attribute to void*.
11575 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
11576 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
11577 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
11578 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
11579 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
11580
11581 2002-12-04 Roland McGrath <roland@redhat.com>
11582
11583 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
11584 members to the end, so a libpthread compiled with !USE_TLS will still
11585 find other members properly.
11586
11587 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
11588 operand for DEST memory. Fix dummy input operand to use SRC.
11589 Reported by Davin McCall <davmac@ozonline.com.au>.
11590
11591 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
11592 alignment when initializing the DTV entry.
11593
11594 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
11595 when TLS has not been set up, try to set it up if we can.
11596 * elf/tst-tls4.c: Revert last change.
11597 * elf/tst-tls5.c: Likewise.
11598 * elf/tst-tls6.c: Likewise.
11599 * elf/tst-tls7.c: Likewise.
11600 * elf/tst-tls8.c: Likewise.
11601 * elf/tst-tls9.c: Likewise.
11602
11603 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
11604 * sysdeps/generic/ldsodefs.h: Declare it.
11605 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
11606 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
11607 function, broken out of __libc_setup_tls.
11608 (init_static_tls): Likewise.
11609 (__libc_setup_tls): Call them.
11610 (_dl_tls_setup): New function, uses new subroutines.
11611
11612 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
11613 Clear the pointer when returning true.
11614 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
11615 first element of the slotinfo list too.
11616
11617 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
11618 [SHARED].
11619
11620 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
11621 (_dl_determine_tlsoffset): Likewise.
11622
11623 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
11624 startup_error_tsd, made global.
11625 (dl_main): Update initialization.
11626 * elf/dl-tsd.c: Likewise.
11627 * sysdeps/generic/ldsodefs.h: Declare it.
11628
11629 2002-12-03 Ulrich Drepper <drepper@redhat.com>
11630
11631 * manual/texinfo.tex: Update from latest upstream version.
11632
11633 2002-12-03 Roland McGrath <roland@redhat.com>
11634
11635 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
11636 area surplus in calculation for sbrk call.
11637
11638 * iconvdata/cp1125.c: New file.
11639 * iconvdata/Makefile (distribute): Add it.
11640 (modules): Add CP1125.
11641 (gen-8bit-gap-modules): Add cp1125.
11642 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
11643 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
11644
11645 2002-12-03 Andreas Jaeger <aj@suse.de>
11646
11647 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
11648
11649 2002-12-03 Ulrich Drepper <drepper@redhat.com>
11650
11651 * sysdeps/posix/system.c (do_system): Make signal handler
11652 installation thread safe.
11653
11654 2002-12-02 Roland McGrath <roland@redhat.com>
11655
11656 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
11657 caller from EXTRA to -.
11658 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
11659 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
11660 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
11661
11662 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
11663
11664 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
11665 bits of RM are cleared.
11666
11667 2002-12-02 Roland McGrath <roland@redhat.com>
11668
11669 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
11670 TLS setup is required.
11671 * elf/tst-tls5.c: Likewise.
11672 * elf/tst-tls6.c: Likewise.
11673 * elf/tst-tls7.c: Likewise.
11674 * elf/tst-tls8.c: Likewise.
11675 * elf/tst-tls9.c: Likewise.
11676
11677 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
11678 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
11679 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
11680 for being null before calling free_slotinfo.
11681 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
11682 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
11683
11684 2002-11-30 Bruno Haible <bruno@clisp.org>
11685
11686 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
11687 (struct __gconv_step): New field __btowc_fct.
11688 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
11689 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
11690 __BUILTIN_TRANS.
11691 (__gconv_btwoc_ascii): New declaration.
11692 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
11693 (__gconv_btwoc_ascii): New function.
11694 * iconv/gconv_builtin.h: Add BtowcFct argument to all
11695 BUILTIN_TRANSFORMATION invocations.
11696 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
11697 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
11698 * iconv/gconv_builtin.c (map): New field btowc_fct.
11699 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
11700 btowc_fct field.
11701 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
11702 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
11703 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
11704 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
11705 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
11706 (gconv_init): Initialize __btowc_fct field.
11707 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
11708 * iconv/loop.c: Document ONEBYTE_BODY.
11709 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
11710 Undefine ONEBYTE_BODY at the end.
11711 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
11712 * iconvdata/8bit-gap.c (NONNUL): New macro.
11713 (BODY for FROM_LOOP): Use it.
11714 (ONEBYTE_BODY): New macro.
11715 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
11716 (NONNUL): New macro.
11717 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
11718 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
11719 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
11720 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
11721 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
11722 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
11723 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
11724 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
11725 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
11726 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
11727 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
11728 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
11729 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
11730 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
11731 * iconvdata/ibm932.c: Include <stdbool.h>.
11732 (TRUE, FALSE): Remove macros.
11733 (BODY for FROM_LOOP): Remove unused variable rp1.
11734 (ONEBYTE_BODY): New macro.
11735 (BODY for TO_LOOP): Use bool.
11736 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
11737 * iconvdata/ibm943.c: Include <stdbool.h>.
11738 (TRUE, FALSE): Remove macros.
11739 (BODY for FROM_LOOP): Remove unused variable rp1.
11740 (ONEBYTE_BODY): New macro.
11741 (BODY for TO_LOOP): Use bool.
11742 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
11743 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
11744 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
11745 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
11746 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
11747 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
11748 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
11749 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
11750 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
11751 * iconvdata/gbbig5.c: Tweak comment.
11752
11753 2002-12-02 Ulrich Drepper <drepper@redhat.com>
11754
11755 * po/fi.po: Update from translation team.
11756
11757 2002-12-01 Roland McGrath <roland@redhat.com>
11758
11759 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
11760 testing getdents64 return value.
11761
11762 * scripts/versions.awk: Don't pass -n flag to sort command.
11763
11764 * posix/bug-regex13.c: Include <string.h>.
11765
11766 * sysdeps/generic/libc-start.c (__libc_start_main): Do
11767 DL_SYSDEP_OSCHECK here.
11768 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
11769 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
11770
11771 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
11772 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
11773
11774 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
11775 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
11776
11777 * include/link.h: Comment typo fix.
11778
11779 2002-12-01 Roland McGrath <roland@frob.com>
11780
11781 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
11782 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
11783 _POSIX_MEMORY_PROTECTION): Likewise.
11784 (_POSIX_POLL, _POSIX_SELECT): Removed.
11785
11786 2002-11-28 Ulrich Drepper <drepper@redhat.com>
11787
11788 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
11789 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
11790
11791 2002-11-28 Jakub Jelinek <jakub@redhat.com>
11792
11793 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
11794 USE___THREAD.
11795 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
11796 "=v" constraints.
11797
11798 2002-11-28 Ulrich Drepper <drepper@redhat.com>
11799
11800 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
11801 branch prediction buffers by using unpaired call/ret.
11802
11803 2002-11-27 Ulrich Drepper <drepper@redhat.com>
11804
11805 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
11806 first parameters constraint string.
11807 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
11808
11809 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
11810
11811 * posix/regcomp.c (parse_expression): Set the bit since the back
11812 reference is used in the regular expression.
11813 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
11814 of malloc failure.
11815 (re_node_set_init_copy): Likewise.
11816 * posix/regex_internal.h (state_array_t): New structure.
11817 (re_sub_match_last_t): Likewise.
11818 (re_sub_match_top_t): Likewise.
11819 (re_match_context_t): Add new members.
11820 (re_dfa_t): Likewise.
11821 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
11822 to check the matching is really correct, and retry if failed.
11823 Move the routin pruning the impossible nodes from here, ...
11824 (prune_impossible_nodes): To this function.
11825 (check_matching): Invoke check_subexp_matching_top, and replace
11826 redundant checking with transit_state_bkref invocation.
11827 (proceed_next_node): Replace strncmp with memcmp. Reported by
11828 Paolo Bonzini <bonzini@gnu.org>.
11829 (update_cur_sifted_state): Remove search_subexp invocation.
11830 (search_subexp): Remove this function.
11831 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
11832 optimization.
11833 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
11834 Remove unused invocation of match_ctx_add_entry.
11835 (transit_state): Invoke check_subexp_matching_top.
11836 (check_subexp_matching_top): New function.
11837 (transit_state_bkref): Remove unused array.
11838 Merge transit_state_bkref_loop.
11839 (transit_state_bkref_loop): Use get_subexp instead of
11840 sift_states_backward. Use search_cur_bkref_entry for optimization.
11841 Merge this function to transit_state_bkref.
11842 (get_subexp): New function.
11843 (get_subexp_sub): Likewise.
11844 (find_subexp_node): Likewise.
11845 (check_arrival): Likewise.
11846 (check_arrival_expand_ecl): Likewise.
11847 (check_arrival_expand_ecl_sub): Likewise.
11848 (expand_bkref_cache): Likewise.
11849 (match_ctx_init): Initialize new members.
11850 (match_ctx_clean): New function.
11851 (match_ctx_free): Release new members.
11852 (match_ctx_free_subtops): New function.
11853 (match_ctx_add_entry): Fix indent.
11854 (search_cur_bkref_entry): New function.
11855 (match_ctx_add_subtop): Likewise.
11856 (match_ctx_add_sublast): Likewise.
11857
11858 2002-11-25 Ulrich Drepper <drepper@redhat.com>
11859
11860 * iconv/Makefile (tests): Remove tst-iconv4.c
11861 * iconv/tst-iconv4.c: Moved to...
11862 * iconvdata/tst-iconv4.c: ...here. New file.
11863 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
11864
11865 2002-11-25 Roland McGrath <roland@redhat.com>
11866
11867 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
11868 Grok AF_LINK if defined.
11869 From Momchil Velikov <velco@fadata.bg>.
11870
11871 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
11872 brdaddr, or dstaddr, just set those pointers to null and don't fail.
11873 Reported by Momchil Velikov <velco@fadata.bg>.
11874
11875 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
11876 is > sizeof IFR->ifa_addr, advance past the whole longer length.
11877 (__ifreq): Count up NIFS that way too.
11878 Reported by Momchil Velikov <velco@fadata.bg>.
11879
11880 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
11881
11882 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
11883 and <fpu_control.h>.
11884
11885 2002-11-24 Ulrich Drepper <drepper@redhat.com>
11886
11887 * elf/elf.h (EM_ST19): Fix typo.
11888
11889 2002-11-25 Jakub Jelinek <jakub@redhat.com>
11890
11891 * include/errno.h (__set_errno): Define as errno = val
11892 unconditionally.
11893
11894 2002-11-24 Roland McGrath <roland@redhat.com>
11895
11896 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
11897 * sysdeps/posix/writev.c: Likewise.
11898 From Momchil Velikov <velco@fadata.bg>.
11899
11900 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
11901 calling *GL(dl_error_catch_tsd) for a thread-local location.
11902 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
11903 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
11904 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
11905
11906 * libio/iofflush.c: Add libc_hidden_def.
11907 * libio/iofwrite.c: Likewise.
11908 * sysdeps/generic/sigtimedwait.c: Likewise.
11909 * sysdeps/generic/sigwaitinfo.c: Likewise.
11910 * sysdeps/posix/sigwait.c: Likewise.
11911 Reported by Momchil Velikov <velco@fadata.bg>.
11912
11913 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
11914 to match <arpa/inet.h> declaration.
11915 * inet/inet_netof.c (inet_netof): Likewise.
11916 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
11917 Reported by Momchil Velikov <velco@fadata.bg>.
11918
11919 * configure.in: Skip AUTOCONF check under --without-cvs.
11920 * configure: Regenerated.
11921
11922 * posix/Makefile (headers): Add bits/pthreadtypes.h.
11923 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
11924 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
11925
11926 2002-11-24 Andreas Schwab <schwab@suse.de>
11927
11928 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
11929 with six arguments.
11930
11931 2002-11-19 Jim Meyering <jim@meyering.net>
11932
11933 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
11934 as `static'.
11935 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
11936
11937 2002-11-23 Roland McGrath <roland@redhat.com>
11938
11939 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
11940 Just produce hex output for datum sizes.
11941
11942 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
11943 Reported by Luca Barbieri <ldb@ldb.ods.org>.
11944
11945 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
11946
11947 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
11948 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
11949 and __unused3 fields.
11950 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
11951 [__WORDSIZE == 32]: Only PPC32 requires __unused1
11952 and __unused2 fields.
11953 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
11954 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
11955 __unused3, and __unused4 fields.
11956
11957 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
11958 obtain lowest address for profiling in __monstartup call.
11959
11960 2002-11-21 Roland McGrath <roland@redhat.com>
11961
11962 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
11963 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
11964
11965 * locale/localeinfo.h (struct locale_data): Revert last change.
11966
11967 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
11968 From Ian Wienand <ianw@gelato.unsw.edu.au>.
11969
11970 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
11971 __NR_pread64 if not defined.
11972 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
11973 From Ian Wienand <ianw@gelato.unsw.edu.au>.
11974
11975 2002-11-21 Roland McGrath <roland@frob.com>
11976
11977 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
11978 __libc_multiple_libcs here. Call __setfpucw.
11979
11980 2002-11-21 Ulrich Drepper <drepper@redhat.com>
11981
11982 * elf/Makefile (tests): Don't run test-arrayX tests for now.
11983
11984 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
11985 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
11986 CLONE_CHILD_*TID flags.
11987
11988 2002-11-20 Andreas Jaeger <aj@suse.de>
11989
11990 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
11991 We pass struct ucontext on x86-64.
11992 (GET_PC): Adjust.
11993 (GET_FRAME): Adjust.
11994 (GET_STACK): Adjust.
11995
11996 2002-11-20 Roland McGrath <roland@redhat.com>
11997
11998 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
11999 conditionalize [! DO_VERSIONING] #error.
12000
12001 * scripts/abilist.awk: Grok function descriptor symbols.
12002
12003 * intl/tst-gettext.c (main): Check return values from setlocale.
12004 Add necessary unsetenv's to make LANG=existing-locale check work.
12005
12006 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
12007 so aborted prior runs don't confuse things.
12008
12009 * locale/localeinfo.h (struct locale_data: union locale_data_value):
12010 Use uintptr_t instead of unsigned int for `word' member.
12011 (_NL_CURRENT_WORD): Cast to uint32_t.
12012
12013 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
12014 value.
12015
12016 2002-11-20 Ulrich Drepper <drepper@redhat.com>
12017
12018 * elf/tls-macros.h: Add IA-64 definitions.
12019 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
12020
12021 * iconv/Makefile (tests): Add tst-iconv4.
12022 * iconv/tst-iconv4.c: New file.
12023
12024 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
12025 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
12026 __GCONV_INCOMPLETE_INPUT.
12027 (ucs4le_internal_loop): Likewise.
12028 (ucs4le_internal_loop_unaligned): Likewise.
12029 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
12030 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
12031 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
12032
12033 * iconv/loop.c (LOOPFCT): First test for empty input then for full
12034 output buffer.
12035
12036 * inet/getnameinfo.c: Use extend_alloca where appropriate.
12037 * sysdeps/posix/getaddrinfo.c: Likewise.
12038
12039 * include/alloca.h (extend_alloca): New define. Based on stack
12040 direction it'll try to append to the previouls allocated buffer.
12041
12042 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
12043
12044 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
12045 use the same service for AF_INET and AF_INET6.
12046
12047 2002-11-19 Ulrich Drepper <drepper@redhat.com>
12048
12049 * intl/localealias.c (read_alias_file): Use only about 400 bytes
12050 of stack space instead of 16k.
12051
12052 2002-11-18 Wolfram Gloger <wg@malloc.de>
12053
12054 * malloc/arena.c
12055 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
12056 nothing if not initialized. Bug report from Marcus Brinkmann
12057 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
12058
12059 2002-11-19 Roland McGrath <roland@redhat.com>
12060
12061 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
12062 sched_setaffinity.
12063
12064 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
12065 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
12066 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
12067 * configure: Regenerated.
12068
12069 2002-11-19 Ulrich Drepper <drepper@redhat.com>
12070
12071 * include/dlfcn.h: __libc_dlopen is now a macro calling
12072 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
12073 (__libc_dlopen_mode): New prototype.
12074 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
12075 new parameter. Store new parameter in mode field of structure passed
12076 to do_dlopen.
12077 (struct do_dlopen_args): Add new field mode.
12078 (do_dlopen): Pass mode from parameter structure to _dl_open.
12079
12080 2002-11-11 Randolf Chung <tausq@debian.org>
12081
12082 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
12083 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
12084 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
12085
12086 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
12087
12088 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
12089 Set -mdisable-fpregs for this file.
12090
12091 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
12092
12093 * sysdeps/unix/sysv/linux/configure.in:
12094 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
12095 from gcc-3.0 era for backwards compatibility.
12096 * sysdeps/unix/sysv/linux/configure: Regenerate.
12097
12098 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
12099 Define mcontext_t as a sigcontext.
12100
12101 2002-11-18 Roland McGrath <roland@redhat.com>
12102
12103 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
12104 Free memory in `last_result' if it was used.
12105
12106 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
12107 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
12108 Do the parsing inline instead of copying strings and calling
12109 inet_network, and properly skip all alias names not matching the form.
12110
12111 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
12112
12113 2002-11-17 Ulrich Drepper <drepper@redhat.com>
12114
12115 * manual/pattern.texi (Wordexp Example): Fix sample code.
12116
12117 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
12118 childs stack which will be loaded into the %esi register.
12119
12120 2002-11-14 Paul Eggert <eggert@twinsun.com>
12121
12122 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
12123 overflow when skipping the question part and when unpacking aliases.
12124
12125 2002-11-15 Roland McGrath <roland@redhat.com>
12126
12127 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
12128 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
12129 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
12130
12131 2002-11-15 Jakub Jelinek <jakub@redhat.com>
12132
12133 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
12134 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
12135
12136 2002-11-15 Roland McGrath <roland@redhat.com>
12137
12138 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
12139 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
12140 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
12141 (+make-include-of-dep): New canned sequence.
12142
12143 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
12144 From Dmitry V. Levin <ldv@altlinux.org>.
12145
12146 2002-11-14 Roland McGrath <roland@redhat.com>
12147
12148 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
12149 * inet/herrno.c (__libc_h_errno): Likewise.
12150 * resolv/res_libc.c (__libc_res): Likewise.
12151 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
12152 (__res_state) [! USE___THREAD]: Don't define as weak.
12153 * csu/Versions: Revert last change.
12154 * resolv/Versions: Revert last change.
12155
12156 * Makerules ($(common-objpfx)%.make): New pattern rule.
12157 * tls.make.c: New file.
12158 * Makefile (distribute): Add it.
12159
12160 * sysdeps/generic/errno.c [! USE___THREAD]
12161 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
12162 with compat_symbol so they are not link-time visible.
12163 [! USE___THREAD] (__libc_errno): New alias for errno.
12164 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
12165 Add __libc_errno here.
12166 * inet/herrno.c [USE___THREAD]: Use this conditional
12167 in place of [USE_TLS && HAVE___THREAD].
12168 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
12169 (h_errno, _h_errno): Declare these with compat_symbol so they are not
12170 link-time visible.
12171 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
12172 * resolv/res_libc.c [! USE___THREAD]
12173 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
12174 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
12175 (__libc_res): Define as alias for _res.
12176 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
12177 Add __libc_h_errno and __libc_res here.
12178
12179 2002-11-14 Jakub Jelinek <jakub@redhat.com>
12180
12181 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
12182 * resolv/Versions (h_errno, _res): Likewise.
12183
12184 2002-11-14 Roland McGrath <roland@redhat.com>
12185
12186 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
12187 (%.symlist): Likewise.
12188
12189 2002-11-13 Roland McGrath <roland@redhat.com>
12190
12191 * scripts/abilist.awk: New file.
12192 * Makefile (distribute): Add it.
12193 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
12194 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
12195 [$(subdir) = elf] (tests): Depend on libc.symlist.
12196 (generated, common-generated): Add those files.
12197
12198 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
12199 * configure: Regenerated.
12200 * config.make.in (OBJDUMP): New variable, substituted by configure.
12201
12202 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
12203 (mallochook, reallochook): Set them up.
12204 (checkhdr): Check HDR->magic2 value.
12205 (freehook): Reset HDR->magic2.
12206 (memalignhook): New static function.
12207 (old_memalign_hook): New static variable.
12208 (mcheck, reallochook): Set __memalign_hook to memalignhook.
12209
12210 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
12211 for the new TCB.
12212
12213 2002-11-13 Andreas Jaeger <aj@suse.de>
12214
12215 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
12216 attribute.
12217 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12218
12219 2002-11-11 Paul Eggert <eggert@twinsun.com>
12220
12221 * manual/crypt.texi (Cryptographic Functions): Mention that
12222 the MD5 one-way algorithm is compatible with BSD's.
12223
12224 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
12225
12226 * posix/regex_internal.c (re_string_skip_chars): Also return the last
12227 wide character.
12228 (re_string_reconstruct): Calculate the context by itself when the
12229 offset points out of the valid range.
12230 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
12231 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
12232 (IS_WIDE_WORD_CHAR): New macro.
12233 (IS_WIDE_NEWLINE): New macro.
12234
12235 2002-11-12 Andreas Jaeger <aj@suse.de>
12236
12237 * sysdeps/x86_64/strchr.S: Don't use one register for two
12238 purposes, this fixes a bug noticed by test-strchr.c.
12239
12240 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
12241 correctly.
12242
12243 2002-11-12 Roland McGrath <roland@redhat.com>
12244
12245 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
12246 (_G_IO_NO_BACKWARD_COMPAT): Define it.
12247
12248 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
12249 instead of <pt-machine.h>.
12250 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
12251 testandset.
12252 From Ian Wienand <ianw@gelato.unsw.edu.au>.
12253
12254 2002-11-10 Roland McGrath <roland@redhat.com>
12255
12256 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
12257 Call fputs instead of fwprintf (simpler to follow in debugger).
12258
12259 * crypt/md5-crypt.c: Doc fix.
12260
12261 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
12262 the beginning of generated target commands.
12263
12264 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
12265 dependencies for these in case implicit rule search skipped the
12266 nonexistent source directory.
12267 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
12268 files with $(object-suffixes) as targets too.
12269 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
12270 and a target for it using $(make-target-directory).
12271
12272 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
12273
12274 2002-11-10 Roland McGrath <roland@frob.com>
12275
12276 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
12277 * sysdeps/generic/bits/pthreadtypes.h: ... here.
12278
12279 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
12280 l_start == 0 and l_len == 1 as we do l_len == 0.
12281
12282 2002-11-10 Ulrich Drepper <drepper@redhat.com>
12283
12284 * po/da.po: Update from translation team.
12285
12286 2002-11-10 Roland McGrath <roland@redhat.com>
12287
12288 * config.make.in (includedir): New variable, substituted by configure.
12289 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
12290 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
12291
12292 2002-11-10 Andreas Jaeger <aj@suse.de>
12293
12294 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
12295 REG_OLDMASK and REG_CR2 to synch with kernel header.
12296 (NGREG): Increase.
12297
12298 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
12299 aliasing problem.
12300 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
12301 * nss/getnssent_r.c (__nss_getent_r): Likewise.
12302 (__nss_setent): Likewise.
12303 (__nss_getent_r): Likewise.
12304 * inet/getnetgrent_r.c (innetgr): Likewise.
12305 (__internal_setnetgrent_reuse): Likewise.
12306 (internal_getnetgrent_r): Likewise.
12307 * inet/ether_hton.c (ether_hostton): Likewise.
12308 * inet/ether_ntoh.c (ether_ntohost): Likewise.
12309 * sunrpc/netname.c (netname2user): Likewise.
12310 * sunrpc/publickey.c (getpublickey): Likewise.
12311 (getsecretkey): Likewise.
12312
12313 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
12314
12315 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
12316 error in range calculation.
12317
12318 2002-10-09 Jakub Jelinek <jakub@redhat.com>
12319
12320 * string/test-strspn.c (do_test): Ensure zero termination.
12321 * string/test-strpbrk.c (do_test): Likewise.
12322 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
12323 * string/test-strncpy.c (stupid_strncpy): Likewise.
12324 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
12325
12326 2002-10-08 Roland McGrath <roland@redhat.com>
12327
12328 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
12329 nonzero characters.
12330
12331 2002-09-22 H.J. Lu <hjl@gnu.org>
12332
12333 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
12334 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
12335 only if __NR_mmap2 is defined.
12336
12337 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
12338 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
12339 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
12340 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
12341
12342 2002-11-08 Jakub Jelinek <jakub@redhat.com>
12343
12344 * posix/bug-regex13.c (tests): Add new test.
12345
12346 * string/test-strchr.c (stupid_strchr): New function.
12347 (do_random_tests): Make sure the string is zero terminated.
12348 * string/test-strpbrk.c (stupid_strpbrk): New function.
12349 (do_random_tests): Make sure the string is zero terminated.
12350 * string/test-strcmp.c (stupid_strcmp): New function.
12351 (do_random_tests): Make sure the strings are zero terminated.
12352 * string/test-strspn.c (stupid_strspn): New function.
12353 (simple_strspn): Rename rej argument to acc.
12354 (do_random_tests): Make sure the string is zero terminated.
12355 * string/test-strcspn.c (stupid_strcspn): New function.
12356 * string/test-strncpy.c (stupid_strncpy): New function.
12357 * string/test-stpncpy.c (stupid_stpncpy): New function.
12358 * string/test-strncmp.c (stupid_strncmp): New function.
12359 (do_random_tests): Make sure the strings are zero terminated.
12360 * string/test-string.h (impl_t): Change test into long.
12361 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
12362
12363 2002-11-08 Roland McGrath <roland@redhat.com>
12364
12365 * sysdeps/ia64/elf/configure.in: Add TLS check.
12366 From Ian Wienand <ianw@cse.unsw.edu.au>.
12367 * sysdeps/ia64/elf/configure: Regenerated.
12368
12369 2002-11-07 Roland McGrath <roland@redhat.com>
12370
12371 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
12372 place of _IO_new_do_write.
12373 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
12374 #undef before versioned_symbol use.
12375
12376 2002-11-07 Richard Henderson <rth@redhat.com>
12377
12378 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
12379 * configure: Regenerated.
12380 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
12381 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
12382 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
12383 _dl_fini via gp-relative relocations.
12384 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
12385
12386 * elf/tls-macros.h: Add alpha versions.
12387 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
12388 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
12389 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
12390 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
12391 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
12392 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
12393 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
12394 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
12395 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
12396 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
12397 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
12398 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
12399 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
12400 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
12401 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
12402 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
12403 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
12404 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
12405
12406 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
12407 Kill argument registers across the inline syscall.
12408
12409 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
12410
12411 * linuxthreads/sysdeps/alpha/tls.h: New file.
12412 * sysdeps/alpha/dl-tls.h: New file.
12413
12414 2002-10-29 David Mosberger <davidm@hpl.hp.com>
12415
12416 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
12417 (gmon_initializer): New function.
12418 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
12419 __gmon_start__ here. Call it from gmon_initializer() instead.
12420
12421 2002-03-12 H.J. Lu <hjl@gnu.org>
12422
12423 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
12424 tst-array2, and tst-array3.
12425 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
12426 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
12427 ($(objpfx)tst-array1.out): New target.
12428 ($(objpfx)tst-array2): Likewise.
12429 ($(objpfx)tst-array2.out): Likewise.
12430 ($(objpfx)tst-array3.out): Likewise.
12431 * elf/tst-array1.c: New file.
12432 * elf/tst-array1.exp: Likewise.
12433 * elf/tst-array2.c: Likewise.
12434 * elf/tst-array2dep.c: Likewise.
12435 * elf/tst-array2.exp: Likewise.
12436 * elf/tst-array3.c: Likewise.
12437
12438 2002-10-28 David Mosberger <davidm@hpl.hp.com>
12439
12440 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
12441 Don't add L->l_addr to array entry values.
12442
12443 2002-11-07 Jakub Jelinek <jakub@redhat.com>
12444
12445 * string/test-string.h: New file.
12446 * string/test-strlen.c: New file.
12447 * string/test-string.h: New file.
12448 * string/test-strcmp.c: New file.
12449 * string/test-strchr.c: New file.
12450 * string/test-strrchr.c: New file.
12451 * string/test-strcpy.c: New file.
12452 * string/test-stpcpy.c: New file.
12453 * string/test-strncpy.c: New file.
12454 * string/test-stpncpy.c: New file.
12455 * string/test-strpbrk.c: New file.
12456 * string/test-strcspn.c: New file.
12457 * string/test-strspn.c: New file.
12458 * string/test-strcat.c: New file.
12459 * string/test-strncmp.c: New file.
12460 * string/test-memchr.c: New file.
12461 * string/test-memcmp.c: New file.
12462 * string/test-memset.c: New file.
12463 * string/test-memcpy.c: New file.
12464 * string/test-mempcpy.c: New file.
12465 * string/test-memmove.c: New file.
12466 * string/Makefile (strop-tests): New variable.
12467 (tests): Add strop-tests.
12468 (distribute): Add test-string.h.
12469
12470 2002-11-06 Ulrich Drepper <drepper@redhat.com>
12471
12472 * posix/regcomp.c: Use tabs instead of spaces.
12473 * posix/regexec.c: Likewise.
12474 * posix/regex_internal.h: Likewise.
12475
12476 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
12477
12478 2002-11-06 Jakub Jelinek <jakub@redhat.com>
12479
12480 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
12481 here.
12482 (regcomp): Don't set can_be_null here.
12483 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
12484 (re_compile_internal): Clear can_be_null, set regs_allocated.
12485
12486 * posix/regcomp.c (re_set_fastmap): New function.
12487 (re_compile_fastmap_iter): Use it. Remove redundant type ==
12488 COMPLEX_BRACKET check.
12489 * posix/regexec.c (re_search_internal): Optimize searching with
12490 fastmap. Call re_string_reconstruct even if match_first is
12491 smaller than raw_mbs_idx.
12492
12493 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
12494
12495 * posix/regcomp (free_dfa_content): Use free_state.
12496 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
12497 pointers in case that realloc failed.
12498 (re_node_set_merge): Likewise.
12499 (register_state): Likewise.
12500 (create_newstate_common): Invoke memory release functions in case of
12501 error conditions.
12502 (create_ci_newstate): Likewise.
12503 (create_cd_newstate): Likewise.
12504 (free_state): New function.
12505 * posix/regexec.c (re_search_internal): Invoke memory release
12506 functions in case of error conditions.
12507 (sift_states_backward): Likewise.
12508 (merge_state_array): Likewise.
12509 (add_epsilon_src_nodes): Likewise.
12510 (sub_epsilon_src_nodes): Likewise.
12511 (search_subexp): Likewise.
12512 (sift_states_bkref): Likewise.
12513 (transit_state_sb): Likewise.
12514 (transit_state_mb): Likewise.
12515 (transit_state_bkref_loop): Likewise.
12516 (group_nodes_into_DFAstates): Likewise.
12517 (push_fail_stack): Don't edit pointers in case that realloc failed.
12518 (extend_buffers): Likewise.
12519 (match_ctx_add_entry): Likewise.
12520
12521 2002-11-06 Roland McGrath <roland@redhat.com>
12522
12523 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
12524 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
12525
12526 * configure.in: Add checks on as and ld for binutils 2.13 or later.
12527 * configure: Regenerated.
12528
12529 2002-11-06 Ulrich Drepper <drepper@redhat.com>
12530
12531 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
12532 If re_compile_internal failed free fastmap buffer.
12533 (free_dfa_content): Broken out of regfree function. Frees all dfa
12534 related data.
12535 (regfree): Add free_dfa_content.
12536 (re_compile_internal): If any of the called functions fails free
12537 all dfa related memory.
12538
12539 2002-11-05 Ulrich Drepper <drepper@redhat.com>
12540
12541 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
12542 warnings from the kernel headers.
12543
12544 2002-11-05 Roland McGrath <roland@redhat.com>
12545
12546 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
12547 From Johannes Stezenbach <js@convergence.de>.
12548
12549 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
12550 #errlist-compat magic comment to give 123 as size.
12551 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
12552 (libc: GLIBC_2.2): ... here.
12553 (libc: GLIBC_2.3): Likewise.
12554
12555 2002-11-05 Ulrich Drepper <drepper@redhat.com>
12556
12557 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
12558 which happens at the beginning so that we can unload modules in
12559 __libc_freeres.
12560
12561 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
12562
12563 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
12564 under [__USE_MISC || _ASM].
12565
12566 * elf/elf.h: Remove the obsolete SH TLS relocations.
12567
12568 2002-11-05 Ulrich Drepper <drepper@redhat.com>
12569
12570 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
12571
12572 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12573
12574 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
12575 __NR_pread64 and __NR_pwrite64.
12576 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
12577 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
12578 and __NR_pwrite64.
12579 Revert change to use INLINE_SYSCALL.
12580 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
12581 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
12582 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
12583 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
12584 INLINE_SYSCALL.
12585 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
12586
12587 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
12588 Update clobber list and add a comment about the syscall ABI.
12589
12590 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
12591 s_pwrite64, s_ftruncate, s_truncate): Re-add.
12592
12593 2002-11-05 Jakub Jelinek <jakub@redhat.com>
12594
12595 * iconv/gconv_dl.c (free_mem): Clear loaded.
12596 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
12597 cleanup if any.
12598
12599 2002-11-05 Ulrich Drepper <drepper@redhat.com>
12600
12601 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
12602
12603 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
12604 as old code without locking. _IO_seekoff calls this function after
12605 locking the stream.
12606 * libio/ioseekpos.c: Likewise for _IO_seekpos.
12607 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
12608 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
12609 prototypes.
12610 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
12611 of _IO_seekoff_internal.
12612 (_IO_rewind): Likewise.
12613 * libio/ioftell.c: Likewise.
12614 * libio/ftello.c: Likewise.
12615 * libio/ftello64.c: Likewise.
12616 * libio/iofgetpos.c: Likewise.
12617 * libio/iofgetpos64.c: Likewise.
12618 * libio/oldiofgetpos.c: Likewise.
12619 * libio/oldiofgetpos64.c: Likewise.
12620 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
12621 _IO_seekpos_internal.
12622 * libio/iofsetpos64.c: Likewise.
12623 * libio/oldiofsetpos.c: Likewise.
12624 * libio/oldiofsetpos64.c: Likewise.
12625
12626 2002-11-04 Roland McGrath <roland@redhat.com>
12627
12628 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
12629 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
12630 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
12631 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
12632 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
12633 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
12634 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
12635 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
12636 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
12637 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
12638 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
12639 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
12640 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
12641 Remove these, no longer used.
12642
12643 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12644
12645 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
12646 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
12647 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
12648 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
12649 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
12650 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
12651 syscall stubs.
12652
12653 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
12654 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
12655 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
12656 and __NR_pread.
12657 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
12658 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
12659 and __NR_pwrite.
12660 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
12661
12662 2002-11-03 Roland McGrath <roland@redhat.com>
12663
12664 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
12665 `_dl_tls_static_used'.
12666 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
12667 (__libc_setup_tls): Initialize it. Let the initial value of
12668 _dl_tls_static_size indicate some surplus space in the computed value.
12669 * elf/dl-open.c (_dl_tls_static_size): New variable.
12670 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
12671 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
12672 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
12673 (CHECK_STATIC_TLS): Use it.
12674 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
12675 closed objects occupied a trailing contiguous chunk of static TLS area.
12676
12677 2002-10-18 Bruno Haible <bruno@clisp.org>
12678
12679 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
12680
12681 2002-11-04 Ulrich Drepper <drepper@redhat.com>
12682
12683 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
12684 _wide_data->_IO_read_end if adjustment can be made in the current
12685 buffer.
12686
12687 * sysdeps/unix/sysv/linux/fexecve.c: New file.
12688
12689 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
12690 wide oriented streams are used.
12691
12692 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
12693 service hasn't been used [PR libc/4744].
12694
12695 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
12696 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
12697
12698 * manual/examples/dir.c: Don't include <stddef.h>.
12699 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
12700 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
12701
12702 2002-11-02 H.J. Lu <hjl@gnu.org>
12703
12704 * stdio-common/reg-printf.c: Include <stddef.h>.
12705
12706 2002-11-03 Ulrich Drepper <drepper@redhat.com>
12707
12708 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
12709
12710 * po/ca.po: Update from translation team.
12711 * po/es.po: Likewise.
12712
12713 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
12714 is defined write out memory map.
12715 * sysdeps/unix/sysv/linux/segfault.c: New file.
12716
12717 2002-11-02 Roland McGrath <roland@redhat.com>
12718
12719 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
12720 pointers that can alias.
12721 Reported by Daniel Jacobowitz <drow@mvista.com>.
12722
12723 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
12724
12725 2002-11-02 Roland McGrath <roland@redhat.com>
12726
12727 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
12728 description to be clearer and to say that *RESULT is set to ENTRY.
12729
12730 2002-10-30 Jakub Jelinek <jakub@redhat.com>
12731
12732 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
12733 dests_ch arrays together. Alloca or malloc dest_states,
12734 dest_states_word and dest_states_nl arrays together. Free memory on
12735 error exit.
12736
12737 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
12738
12739 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
12740 and current_saltbits.
12741
12742 2002-11-02 Roland McGrath <roland@redhat.com>
12743
12744 * stdio-common/reg-printf.c: Include <stdlib.h>.
12745
12746 2002-11-02 H.J. Lu <hjl@gnu.org>
12747
12748 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
12749 caller to EXTRA instead of execve.
12750
12751 2002-11-01 Roland McGrath <roland@redhat.com>
12752
12753 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
12754 in place of [!(USE_TLS && HAVE___THREAD)].
12755 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
12756
12757 2002-10-31 Roger Sayle <roger@eyesopen.com>
12758
12759 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
12760 New macros.
12761 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
12762
12763 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
12764 without defining FP_ROUNDMODE.
12765
12766 2002-10-29 Jakub Jelinek <jakub@redhat.com>
12767
12768 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
12769 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
12770 declare_symbol.
12771 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
12772 (OLD_SIGLIST_SIZE): Define.
12773 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
12774 (OLD_SIGLIST_SIZE): Define.
12775 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
12776
12777 2002-11-01 Jakub Jelinek <jakub@redhat.com>
12778
12779 * sysdeps/ia64/strncpy.S: Fix recovery code.
12780
12781 2002-10-30 Jakub Jelinek <jakub@redhat.com>
12782
12783 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
12784 New macros.
12785 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
12786 text_set_element.
12787 * elf/dl-libc.c (free_mem): Likewise.
12788 * iconv/gconv_conf.c (free_mem): Likewise.
12789 * iconv/gconv_db.c (free_mem): Likewise.
12790 * iconv/gconv_dl.c (free_mem): Likewise.
12791 * iconv/gconv_cache.c (free_mem): Likewise.
12792 * intl/finddomain.c (free_mem): Likewise.
12793 * intl/dcigettext.c (free_mem): Likewise.
12794 * locale/setlocale.c (free_mem): Likewise.
12795 * misc/fstab.c (fstab_free): Likewise.
12796 * nss/nsswitch.c (free_mem): Likewise.
12797 * posix/regcomp.c (free_mem): Likewise.
12798 * resolv/gai_misc.c (free_res): Likewise.
12799 * stdlib/fmtmsg.c (free_mem): Likewise.
12800 * sunrpc/clnt_perr.c (free_mem): Likewise.
12801 * sysdeps/generic/setenv.c (free_mem): Likewise.
12802 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
12803 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
12804 * time/tzset.c (free_mem): Likewise.
12805 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
12806 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
12807 * malloc/set-freeres.c (__libc_freeres): Likewise.
12808
12809 * login/getutent.c: Include stdlib.h instead of stddef.h.
12810 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
12811 (__getutent): Allocate buffer the first time it is run.
12812 * login/getutid.c: Include stdlib.h instead of stddef.h.
12813 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
12814 (__getutid): Allocate buffer the first time it is run.
12815 * login/getutline.c: Include stdlib.h instead of stddef.h.
12816 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
12817 (__getutline): Allocate buffer the first time it is run.
12818 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
12819 (mtrace): Allocate malloc_trace_buffer.
12820 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
12821 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
12822 * string/strerror.c: Include libintl.h and errno.h.
12823 (buf): New variable.
12824 (strerror): Only allocate buffer if actually needed (unknown error).
12825 * time/tzfile.c (transitions): Add libc_freeres_ptr.
12826 (freeres): Remove.
12827
12828 2002-10-25 Jakub Jelinek <jakub@redhat.com>
12829
12830 * include/libc-symbols.h (libc_freeres_ptr): New macro.
12831 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
12832 symbol_set_define.
12833 (__libc_freeres): Free all pointers in that section.
12834 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
12835 commands when creating .lds script.
12836 (LDSEDCMD-c.so): New variable.
12837 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
12838 (rcmd_af): Use strdup to allocate ahostbuf.
12839 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
12840 (rexec_af): Use strdup to allocate ahostbuf.
12841 * stdio-common/reg-printf.c (printf_funcs): Remove.
12842 (__printf_arginfo_table): Change into printf_arginfo_function **.
12843 Add libc_freeres_ptr.
12844 (__register_printf_function): Allocate __printf_arginfo_table
12845 and __printf_function_table the first time it is called.
12846 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
12847 printf_arginfo_function **.
12848 (parse_one_spec): Add __builtin_expect.
12849 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
12850 (free_mem): Remove.
12851 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
12852 (free_mem): Remove.
12853 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
12854 (string_space, map): Add libc_freeres_ptr.
12855 (free_mem): Remove.
12856 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
12857 (free_mem): Remove.
12858 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
12859 (free_mem): Remove.
12860 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
12861 (buffer): Add libc_freeres_ptr.
12862 (free_mem): Remove for _LIBC.
12863 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
12864 (free_mem): Remove.
12865 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
12866 (free_mem): Remove.
12867 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
12868 (free_mem): Remove.
12869 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
12870 (free_mem): Remove.
12871 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
12872 (free_mem): Remove.
12873 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
12874 (free_mem): Remove.
12875 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
12876 libc_freeres_ptr.
12877 (free_mem): Remove.
12878 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
12879 libc_freeres_ptr.
12880 (free_mem): Remove.
12881
12882 2002-10-30 Jakub Jelinek <jakub@redhat.com>
12883
12884 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
12885 instead of duplicating the whole function in libc.
12886
12887 2002-10-31 Roland McGrath <roland@redhat.com>
12888
12889 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
12890 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
12891
12892 2002-10-30 Jakub Jelinek <jakub@redhat.com>
12893
12894 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
12895 32bit-predefine when creating .new32 list and -U for each
12896 32bit-predefine when creating .new64 list.
12897 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
12898
12899 2002-10-29 Andreas Schwab <schwab@suse.de>
12900
12901 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
12902 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
12903
12904 2002-10-25 Roland McGrath <roland@redhat.com>
12905
12906 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
12907 * sysdeps/unix/sysv/linux/configure: Regenerated.
12908
12909 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
12910 _dl_starting_up decl.
12911
12912 2002-10-20 H.J. Lu <hjl@gnu.org>
12913
12914 * sysdeps/unix/sysv/linux/configure.in: Don't check
12915 /lib/modules/`uname -r`/build/include for kernel headers if
12916 cross compiling.
12917 * sysdeps/unix/sysv/linux/configure: Regenerated.
12918
12919 2002-10-25 Roland McGrath <roland@redhat.com>
12920
12921 * math/math.h (M_LOG2El): Correct the value.
12922 From Stephen L Moshier <steve@moshier.net>.
12923
12924 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
12925 conditional from __libc_multiple_libcs access. Remove kludge for weak
12926 symbol access with old compilers we no longer support.
12927 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
12928 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
12929
12930 2002-10-25 Roland McGrath <roland@redhat.com>
12931
12932 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
12933 implement SV_RESETHAND by translating it to SA_RESETHAND.
12934
12935 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
12936
12937 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
12938 type on ELF64 platforms.
12939
12940 2002-10-24 Ulrich Drepper <drepper@redhat.com>
12941
12942 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
12943
12944 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
12945
12946 2002-10-24 Jakub Jelinek <jakub@redhat.com>
12947
12948 * elf/dl-misc.c: Include <sysdep.h>.
12949 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
12950
12951 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
12952 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
12953 (INLINE_SYSCALL): Use that.
12954 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
12955 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
12956 (INLINE_SYSCALL): Use that.
12957 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
12958 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
12959 (INLINE_SYSCALL): Use that.
12960 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
12961 dl-sysdep.h.
12962 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
12963 (__INTERNAL_SYSCALL_STRING): Define.
12964 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
12965 dl-sysdep.h.
12966 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
12967 (__INTERNAL_SYSCALL_STRING): Define.
12968 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
12969 __SYSCALL_STRING to inline_syscall*.
12970 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
12971 New macros.
12972 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
12973 inline_syscall4, inline_syscall5, inline_syscall6): Add string
12974 argument.
12975
12976 2002-10-24 Roland McGrath <roland@redhat.com>
12977
12978 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
12979 * sysdeps/unix/sysv/linux/init-first.c: Not here.
12980 * sysdeps/powerpc/elf/libc-start.c: Or here.
12981 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
12982 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
12983 * sysdeps/unix/sysv/aix/init-first.c: Or here.
12984 * sysdeps/generic/libc-start.c: Or here.
12985 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
12986 access with [! SHARED].
12987 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
12988
12989 * libio/bug-wfflush.c: New file.
12990 * libio/Makefile (tests): Add bug-wfflush.
12991
12992 2002-10-23 Roland McGrath <roland@redhat.com>
12993
12994 * stdio-common/tst-fphex.c: New file.
12995 * stdio-common/Makefile (tests): Add tst-fphex.
12996 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
12997 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
12998 chars always before the value digits.
12999 Reported by James Antill <james.antill@redhat.com>.
13000
13001 2002-10-24 Jakub Jelinek <jakub@redhat.com>
13002
13003 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
13004 (free_mem): New function.
13005 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
13006 if not cross compiling.
13007 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
13008 (bug-regex14-ENV): Set.
13009 (bug-regex14-mem): New target.
13010 * posix/bug-regex14.c: New file.
13011
13012 2002-10-23 Roland McGrath <roland@redhat.com>
13013
13014 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
13015 target, so we don't touch it when the link fails.
13016
13017 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
13018 Check for the result overflowing off_t and fail with EOVERFLOW.
13019 * libio/ioftell.c (_IO_ftell): Likewise.
13020 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
13021
13022 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
13023 use a temporary timeval on the stack for gettimeofday and copy it.
13024 * login/logout.c (logout): Likewise.
13025 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
13026
13027 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
13028 Use __SWORD_TYPE instead of int for member types.
13029 (struct statfs64): Likewise.
13030 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
13031 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
13032 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
13033 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
13034 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
13035
13036 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
13037 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
13038 (ST_NODIRATIME): Restore fixed value of 2048.
13039 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
13040 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
13041
13042 Rearranged <bits/types.h> definitions to reduce duplication.
13043 * sysdeps/generic/bits/types.h: Rewritten, using macros from
13044 <bits/wordsize.h> and new header <bits/typesizes.h>.
13045 * posix/Makefile (headers): Add bits/typesizes.h here.
13046 * sysdeps/generic/bits/typesizes.h: New file.
13047 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
13048 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
13049 * sysdeps/mach/hurd/bits/typesizes.h: New file.
13050 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
13051 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
13052 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
13053 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
13054 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
13055 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
13056 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
13057 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
13058 <bits/pthreadtypes.h> here, not in <bits/types.h>.
13059 * signal/signal.h: Likewise.
13060
13061 * streams/stropts.h: Include <bits/xtitypes.h>.
13062 * streams/Makefile (headers): Add bits/xtitypes.h here.
13063 * sysdeps/generic/bits/xtitypes.h: New file.
13064 * sysdeps/s390/bits/xtitypes.h: New file.
13065 * sysdeps/ia64/bits/xtitypes.h: New file.
13066 * sysdeps/x86_64/bits/xtitypes.h: New file.
13067
13068 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
13069 * sysdeps/generic/bits/ipctypes.h: New file.
13070 * sysdeps/mips/bits/ipctypes.h: New file.
13071 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
13072 * sysdeps/gnu/bits/msq.h: Likewise.
13073 * sysvipc/sys/ipc.h: Likewise.
13074
13075 2002-10-22 Ulrich Drepper <drepper@redhat.com>
13076
13077 * elf/dl-load.c (struct filebuf): For buf element to have the
13078 alignment of ElfXX_Ehdr since this is what will be stored in it.
13079
13080 2002-10-22 Jakub Jelinek <jakub@redhat.com>
13081
13082 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
13083 into pointer to locrec_offset.
13084 (add_locale_to_archive): Adjust callers. Free normalized_name right
13085 before returning, not immediately after add_locale, pass it to
13086 add_alias if not NULL instead of name. Rename second normalized_name
13087 occurence to nnormalized_codeset_name.
13088
13089 * locale/programs/locarchive.c (enlarge_archive): Make sure
13090 string_size is always a multiple of 4.
13091 Reported by Andreas Schwab <schwab@suse.de>.
13092
13093 2002-10-21 Andreas Schwab <schwab@suse.de>
13094
13095 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
13096 caller to EXTRA instead of execve, since the latter has a
13097 higher-priority implementation in linuxthreads.
13098
13099 2002-10-21 Roland McGrath <roland@redhat.com>
13100
13101 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
13102 slotinfo list's len member to the proper size, not just 1.
13103 Initialize static_map.l_tls_initimage.
13104
13105 * elf/dl-open.c (dl_open_worker): Fix loop searching for
13106 dtv_slotinfo_list element containing new modules' l_tls_modid.
13107
13108 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
13109 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
13110 * elf/Makefile (tests): Add tst-tls9.
13111 (tests-static): Add tst-tls9-static.
13112 (tst-tls9-static-ENV): New variable.
13113 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
13114
13115 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
13116 modids used by partially loaded modules being closed can't be known.
13117
13118 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
13119
13120 * posix/Makefile: Add a test case for the bug reported by Aharon
13121 Robbins <arnold@skeeve.com>.
13122 * posix/bug-regex13.c: New file.
13123 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
13124
13125 2002-10-21 Ulrich Drepper <drepper@redhat.com>
13126
13127 * csu/gmon-start.c: Pretty printing.
13128
13129 2002-10-19 Art Haas <ahaas@neosoft.com>
13130
13131 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
13132 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
13133 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
13134 * configure: Regenerated.
13135
13136 2002-10-19 Roland McGrath <roland@redhat.com>
13137
13138 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
13139 and then set $subdirs directly, because the new Autoconf breaks
13140 compatibility in every way imaginable and insists on whining
13141 about usage that worked since the dawn of time.
13142 * configure: Regenerated.
13143
13144 * configure: Regenerated (using Autoconf 2.54).
13145 * sysdeps/alpha/elf/configure: Likewise.
13146 * sysdeps/generic/configure: Likewise.
13147 * sysdeps/i386/elf/configure: Likewise.
13148 * sysdeps/ia64/elf/configure: Likewise.
13149 * sysdeps/mach/hurd/configure: Likewise.
13150 * sysdeps/mach/configure: Likewise.
13151 * sysdeps/unix/configure: Likewise.
13152 * sysdeps/unix/common/configure: Likewise.
13153 * sysdeps/unix/sysv/aix/configure: Likewise.
13154 * sysdeps/unix/sysv/linux/configure: Likewise.
13155 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
13156 * sysdeps/x86_64/elf/configure: Likewise.
13157
13158 * config.make.in: Nix completely-soft nonsense.
13159 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
13160 of machine directories instead of fpu subdirectory.
13161 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
13162 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
13163 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
13164 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
13165 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
13166 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
13167 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
13168 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
13169 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
13170 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
13171 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
13172 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
13173 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
13174 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
13175 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
13176 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
13177 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
13178 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
13179 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
13180 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
13181 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
13182 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
13183 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
13184 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
13185 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
13186 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
13187 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
13188 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
13189 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
13190 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
13191 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
13192 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
13193 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
13194 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
13195 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
13196 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
13197 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
13198 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
13199 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
13200 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
13201
13202 2002-10-19 Bruno Haible <bruno@clisp.org>
13203
13204 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
13205
13206 2002-10-18 Roland McGrath <roland@redhat.com>
13207
13208 * io/Makefile (routines): Add lchmod.
13209 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
13210 * sysdeps/generic/lchmod.c: New file.
13211 * sysdeps/mach/hurd/lchmod.c: New file.
13212 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
13213
13214 2002-10-18 Art Haas <ahaas@neosoft.com>
13215
13216 * configure.in: Remove remaining AC_FD_CC macros, and replace
13217 AC_FD_MSG with AS_MESSAGE_FD.
13218
13219 2002-10-18 Roland McGrath <roland@redhat.com>
13220
13221 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
13222 typos: VALUE -> FINALADDR.
13223
13224 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
13225 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
13226 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
13227 (inline_syscall6): Move these macros ...
13228 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
13229
13230 * configure.in (libc_link_dests, libc_link_sources): Remove these
13231 variables and the AC_LINK_FILES call.
13232
13233 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
13234 change to put new symbols here instead of in GLIBC_2.2.
13235 * sysdeps/powerpc/Subdirs: Move this file ...
13236 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
13237
13238 2002-10-07 Roland McGrath <roland@redhat.com>
13239
13240 * sysdeps/generic/bits/time.h: Replaced with contents of the
13241 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
13242 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
13243 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
13244 macros is ok even for architectures that don't now implement them.
13245 * sysdeps/mach/hurd/bits/time.h: File removed.
13246 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
13247 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
13248 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
13249 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
13250 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
13251
13252 2002-10-18 Jeff Bailey <jbailey@gnu.org>
13253
13254 * configure.in: Replace obsolete AC_OUTPUT syntax with
13255 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
13256
13257 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
13258 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
13259
13260 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
13261 * sysdeps/alpha/elf/configure.in: Likewise.
13262 * sysdeps/i386/elf/configure.in: Likewise.
13263 * sysdeps/mach/hurd/configure.in: Likewise.
13264 * sysdeps/x86_64/elf/configure.in: Likewise.
13265
13266 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
13267
13268 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
13269 * sysdeps/generic/configure.in: Likewise.
13270 * sysdeps/i386/elf/configure.in: Likewise.
13271 * sysdeps/ia64/elf/configure.in: Likewise.
13272 * sysdeps/mach/configure.in: Likewise.
13273 * sysdeps/mach/hurd/configure.in: Likewise.
13274 * sysdeps/unix/configure.in: Likewise.
13275 * sysdeps/unix/common/configure.in: Likewise.
13276 * sysdeps/unix/sysv/aix/configure.in: Likewise.
13277 * sysdeps/unix/sysv/linux/configure.in: Likewise.
13278 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
13279 * sysdeps/x86_64/elf/configure.in: Likewise.
13280
13281 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
13282 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
13283 that it's obvious when extra autoconf machinery is being dragged in.
13284
13285 2002-10-18 Roland McGrath <roland@redhat.com>
13286
13287 * configure.in: Remove bogus echo included in
13288 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
13289 * configure: Regenerated.
13290
13291 2002-10-18 Jakub Jelinek <jakub@redhat.com>
13292
13293 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
13294 (statfs_filesize_max): New function.
13295 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
13296 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
13297 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
13298 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
13299 statfs_filesize_max.
13300 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
13301 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
13302 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
13303
13304 2002-10-17 Roland McGrath <roland@redhat.com>
13305
13306 * configure.in (MIG): Just AC_SUBST it here.
13307 * configure: Regenerated.
13308 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
13309 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
13310 * sysdeps/mach/configure: Regenerated.
13311
13312 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
13313 and AC_PROVIDE([_AS_CR_PREPARE]).
13314
13315 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
13316 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
13317
13318 * elf/dl-support.c: Move _dl_tls_* variables to ...
13319 * sysdeps/generic/libc-tls.c: ... here.
13320
13321 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
13322 allow IDX to be one past the current last slotinfo entry.
13323 (_dl_close): Pass IMAP->l_init_called for that parameter.
13324
13325 2002-10-07 Andreas Schwab <schwab@suse.de>
13326
13327 * aclocal.m4: Fix for autoconf 2.53.
13328 * configure.in: Likewise. Require autoconf 2.53.
13329
13330 2002-10-08 Richard Henderson <rth@redhat.com>
13331
13332 * soft-fp/op-4.h: Handle carry correctly in
13333 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
13334 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
13335 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
13336
13337 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
13338
13339 * configure.in: Compute completely-soft.
13340 * config.make.in: Make completely-soft available to sub-makes.
13341 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
13342 gcc-double-routines. Add sim-full.c. Add fenv_const and
13343 fe_nomask to libm-support.
13344 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
13345 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
13346 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
13347 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
13348 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
13349 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
13350 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
13351 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
13352 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
13353 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
13354 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
13355 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
13356 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
13357 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
13358 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
13359 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
13360 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
13361 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
13362 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
13363 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
13364 __sim_round_mode.
13365 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
13366 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
13367 FP_HANDLE_EXCEPTIONS.
13368 Define FP_ROUNDMODE.
13369 Redefine FP_* macros to correspond to the FE_* bit positions.
13370 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
13371 Define externs for __sim_exceptions, __sim_disabled_exceptions,
13372 __sim_round_mode, __simulate_exceptions.
13373 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
13374 * sysdeps/powerpc/bits/fenv.h: ...to here.
13375
13376 2002-10-06 Jakub Jelinek <jakub@redhat.com>
13377
13378 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
13379 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
13380 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
13381 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
13382 __builtin_expect.
13383
13384 2002-10-15 Jakub Jelinek <jakub@redhat.com>
13385
13386 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
13387 __libc_res_nsend): New prototypes.
13388 * resolv/res_query.c (QUERYSIZE): Define.
13389 (__libc_res_nquery): Renamed from res_nquery. Added answerp
13390 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
13391 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
13392 res_nsend, pass answerp.
13393 (res_nquery): Changed into wrapper around __libc_res_nquery.
13394 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
13395 argument. Call __libc_res_nquerydomain and __libc_res_nquery
13396 instead of the non-__libc_ variants, pass them answerp.
13397 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
13398 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
13399 Added answerp argument. Call __libc_res_nquery instead of
13400 res_nquery, pass answerp.
13401 (res_nquerydomain): Changed into wrapper around
13402 __libc_res_nquerydomain.
13403 * resolv/res_send.c: Include sys/ioctl.h.
13404 (MAXPACKET): Define.
13405 (send_vc): Change arguments. Reallocate answer buffer if it is
13406 too small.
13407 (send_dg): Likewise.
13408 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
13409 Reallocate answer buffer if it is too small and hooks are in use.
13410 Adjust calls to send_vc and send_dg.
13411 (res_nsend): Changed into wrapper around __libc_res_nsend.
13412 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
13413 just 1K answer buffer on the stack, use __libc_res_nsearch instead
13414 of res_nsearch.
13415 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
13416 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
13417 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
13418 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
13419 (gethostbyaddr): Similarly with __libc_res_nquery.
13420 * resolv/Versions (libresolv): Export __libc_res_nquery and
13421 __libc_res_nsearch at GLIBC_PRIVATE.
13422
13423 2002-10-17 Roland McGrath <roland@redhat.com>
13424
13425 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
13426 * configure: Regenerated.
13427
13428 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
13429 before performing the reloc, not after.
13430 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
13431
13432 2002-10-17 Ulrich Drepper <drepper@redhat.com>
13433
13434 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
13435 * locale/programs/linereader.c (lr_open): Likewise.
13436 * locale/programs/charmap-dir.c (charmap_open): Likewise.
13437 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
13438
13439 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
13440
13441 * posix/bug-regex11.c: Add a test case for the bug reported by
13442 Paolo Bonzini <bonzini@gnu.org>.
13443 * posix/regexec.c (sift_states_bkref): Use correct destination of
13444 the back reference.
13445
13446 2002-10-17 Roland McGrath <roland@redhat.com>
13447
13448 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
13449 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
13450 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
13451 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
13452 Call it after performing TPOFF relocs.
13453 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13454 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13455 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
13456
13457 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
13458 when closing a partially-initialized object.
13459
13460 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
13461 instead of _dl_fatal_printf when we see PT_TLS.
13462
13463 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
13464 instead of $(libof-$<).
13465
13466 2002-10-16 Roland McGrath <roland@redhat.com>
13467
13468 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
13469 instead of += to append, to be sure $(lib) gets expanded at defn time.
13470 (libof-$(cpp-src)): New variable, define this instead.
13471 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
13472 (lib): Don't use override.
13473 (CPPFLAGS-$(lib)): New variable, put -D's here.
13474 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
13475 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
13476 LIB found by $(libof-*) for basename, target, or source.
13477 * Makerules (CPPFLAGS-nonlib): New variable.
13478 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
13479 * locale/Makefile (lib): Likewise.
13480 * sunrpc/Makefile (lib): Likewise.
13481
13482 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
13483 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
13484 * sysdeps/unix/sysv/linux/pathconf.h: New file.
13485 (statfs_link_max): New function, guts from fpathconf.c.
13486 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
13487 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
13488 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
13489 to use the linux/pathconf.c code by #include rather than duplication.
13490 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
13491
13492 2002-10-16 Jakub Jelinek <jakub@redhat.com>
13493
13494 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
13495 Use __libc_errno only for libc itself.
13496
13497 2002-10-16 Andreas Jaeger <aj@suse.de>
13498
13499 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
13500
13501 2002-10-16 Ulrich Drepper <drepper@redhat.com>
13502
13503 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
13504 Use __libc_errno only for libc itself.
13505
13506 2002-10-15 Roland McGrath <roland@redhat.com>
13507 Jakub Jelinek <jakub@redhat.com>
13508
13509 * sysdeps/unix/sysv/linux/Makefile
13510 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
13511 sparc/Makefile to produce a bi-arch file as needed.
13512 That's now parameterized by the variable $(64bit-predefine).
13513 Use LC_ALL=C for `comm' commands in that rule.
13514 No longer conditional on [$(no_syscall_list_h)].
13515 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
13516 (64bit-predefine): New variable.
13517 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
13518 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
13519 * sysdeps/unix/sysv/linux/powerpc/Makefile
13520 (64bit-predefine): New variable.
13521
13522 2002-10-15 Roland McGrath <roland@redhat.com>
13523
13524 * sysdeps/unix/sysv/linux/Makefile
13525 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
13526
13527 * login/utmp-private.h: Declare __libc_utmp_lock.
13528 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
13529 and call __libc_utmp_jump_table functions directly, instead of using
13530 __setutent et al.
13531
13532 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
13533 * sysdeps/unix/sysv/linux/configure: Regenerated.
13534
13535 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
13536 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
13537 Use int32_t for ll_time.
13538 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
13539 Use int32_t instead of long int for ut_session.
13540 Use an anonymous struct with 32-bit fields for ut_tv.
13541 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
13542 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
13543 here as in utmp.h for `struct utmp'.
13544 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
13545 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
13546 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
13547 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
13548 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
13549 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
13550
13551 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
13552 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
13553 All the following files were identical or equivalent to it.
13554 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
13555 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
13556 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
13557 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
13558 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
13559 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
13560 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
13561 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
13562 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
13563 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
13564
13565 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
13566 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
13567 Other than the previously incorrect sign of msg_iovlen, this is a
13568 no-op on 32-bit platforms. On 64-bit platforms it makes this header
13569 match their layouts as well, so the following are now identical to it.
13570 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
13571 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
13572 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
13573 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
13574 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
13575
13576 2002-10-15 Ulrich Drepper <drepper@redhat.com>
13577
13578 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
13579 Define for 2.4+ kernels.
13580
13581 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
13582 are known to have the vfork syscall. Don't confuse the CPUs
13583 branch prediction unit by jumping to the return address.
13584
13585 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
13586 support for reiserfs and xfs.
13587
13588 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
13589 XFS link count.
13590 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
13591 and XFS_LINK_MAX.
13592 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
13593
13594 2002-10-16 Jakub Jelinek <jakub@redhat.com>
13595
13596 * include/libc-symbols.h (attribute_tls_model_ie): Define.
13597 * include/errno.h (errno): Define to __libc_errno in libc.so.
13598 Add attribute_tls_model_ie.
13599 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
13600 Add attribute_tls_model_ie.
13601 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
13602 attribute_tls_model_ie.
13603 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
13604 (h_errno): Define.
13605 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
13606 (_res): Define.
13607 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
13608 attribute_tls_model_ie.
13609 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
13610 __thread.
13611 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
13612 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
13613 __libc_errno in USE___THREAD case.
13614 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
13615 Likewise.
13616 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
13617 __attribute__((tls_model (""))).
13618 * configure: Rebuilt.
13619 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
13620
13621 2002-10-15 Ulrich Drepper <drepper@redhat.com>
13622
13623 * timezone/asia: Update from tzdata2002d.
13624 * timezone/australasia: Likewise.
13625 * timezone/iso3166.tab: Likewise.
13626 * timezone/southamerica: Likewise.
13627 * timezone/zone-tab: Likewise.
13628
13629 2002-10-15 Roland McGrath <roland@redhat.com>
13630
13631 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
13632 Adjust TCB pointer before calling free, so we get the whole block.
13633
13634 2002-10-14 Roland McGrath <roland@redhat.com>
13635
13636 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
13637 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
13638 extern using attribute_hidden instead of static, avoids warning.
13639
13640 2002-10-09 Jakub Jelinek <jakub@redhat.com>
13641
13642 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
13643 * sysdeps/unix/sysv/linux/configure: Rebuilt.
13644
13645 2002-10-14 Ulrich Drepper <drepper@redhat.com>
13646
13647 * po/sv.po: Update from translation team.
13648
13649 2002-10-12 H.J. Lu <hjl@gnu.org>
13650
13651 * sunrpc/thrsvc.c (PROCQUIT): New.
13652 (struct rpc_arg): New.
13653 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
13654 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
13655 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
13656 (main): Modified for struct rpc_arg *.
13657
13658 2002-10-14 Ulrich Drepper <drepper@redhat.com>
13659
13660 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
13661
13662 2002-10-14 Jakub Jelinek <jakub@redhat.com>
13663
13664 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
13665 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
13666 in ld.so even if __thread is supported.
13667
13668 2002-10-13 Jakub Jelinek <jakub@redhat.com>
13669
13670 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
13671 Add hack to prevent the compiler from clobbering the signal context.
13672 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
13673 Likewise.
13674 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
13675 Likewise.
13676
13677 2002-10-14 Andreas Jaeger <aj@suse.de>
13678
13679 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
13680 Guido Guenther <agx@sigxcpu.org>.
13681
13682 2002-10-14 Ulrich Drepper <drepper@redhat.com>
13683
13684 * po/sk.po: Update from translation team.
13685
13686 2002-09-26 Roland McGrath <roland@redhat.com>
13687
13688 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
13689 dynamic string tag.
13690 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
13691 DL_DST_LIB based on $(slibdir).
13692
13693 2002-10-13 Roland McGrath <roland@frob.com>
13694
13695 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
13696
13697 * sysdeps/mach/hurd/getresuid.c: New file.
13698 * sysdeps/mach/hurd/getresgid.c: New file.
13699 * sysdeps/mach/hurd/setresuid.c: New file.
13700 * sysdeps/mach/hurd/setresgid.c: New file.
13701
13702 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
13703 setresgid): Declare them.
13704 * NEWS: Mention it.
13705 * include/unistd.h
13706 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
13707 add libc_hidden_proto.
13708 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
13709 getresuid, getresgid, setresuid, setresgid here.
13710 * Versions.def (libc): Define GLIBC_2.3.2 set.
13711 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
13712 Add libc_hidden_def.
13713 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
13714 * sysdeps/generic/setresgid.c: New file.
13715 * sysdeps/generic/setresuid.c: New file.
13716 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
13717 (sysdep_routines): Don't add getresuid and getresgid here.
13718 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
13719 (sysdep_routines): Don't add setresuid and setresgid here.
13720 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
13721 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
13722 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
13723 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
13724 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
13725 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
13726 * posix/Makefile (routines): Add them all here instead.
13727 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
13728 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
13729 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
13730 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
13731 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
13732 [! __NR_setresuid]: Include generic file.
13733 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
13734 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
13735 [! __NR_setresuid]: Include generic file.
13736 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
13737 Caller is - now, not EXTRA.
13738 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
13739 (setresuid, setresgid, getresuid, getresgid): Likewise.
13740 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
13741 Add these calls here.
13742 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
13743 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
13744 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
13745 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
13746 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
13747 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
13748 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
13749 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
13750 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
13751
13752 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
13753 (sysdep_routines): Add setfsuid and setfsgid here.
13754 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
13755 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
13756 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
13757 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
13758 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
13759 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
13760 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
13761 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
13762
13763 * hurd/errno.c: Renamed to ...
13764 * hurd/errno-loc.c: ... this.
13765 * hurd/Makefile (routines): errno -> errno-loc
13766
13767 2002-10-13 Ulrich Drepper <drepper@redhat.com>
13768
13769 * po/de.po: Update from translation team.
13770
13771 * MakeTAGS: Add -E flag to xgettext runs.
13772
13773 2002-10-12 Ulrich Drepper <drepper@redhat.com>
13774
13775 * po/fr.po: Update from translation team.
13776
13777 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
13778 Optimize a bit for use in glibc.
13779
13780 2002-10-12 Roland McGrath <roland@redhat.com>
13781
13782 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
13783 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
13784
13785 2002-10-12 Ulrich Drepper <drepper@redhat.com>
13786
13787 * po/sv.po: Update from translation team.
13788
13789 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
13790
13791 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
13792 OP_CONTEXT_NODE.
13793 (regfree): Likewise.
13794 (create_initial_state): Likewise.
13795 (analyze): Remove the substitutions which became useless.
13796 (calc_first): Likewise.
13797 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
13798 epsilon destination.
13799 (duplicate_node_closure): New function.
13800 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
13801 (calc_inveclosure): Likewise.
13802 (calc_eclosure): Likewise.
13803 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
13804 direct invocation of duplicate_node.
13805 (parse): Don't use comma operator in the return to avoid compiler
13806 warning.
13807 (parse_reg_exp): Likewise.
13808 (parse_branch): Likewise.
13809 (parse_expression): Likewise.
13810 (parse_sub_exp): Likewise.
13811 (parse_dup_op): Likewise.
13812 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
13813 which became useless.
13814 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
13815 (create_cd_newstate): Likewise.
13816 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
13817 (re_token_t): Likewise.
13818 (re_dfa_t): Likewise.
13819 (re_node_set_remove): New macro.
13820 * posix/regexec.c (check_matching): Remove the handling
13821 OP_CONTEXT_NODE.
13822 (check_halt_node_context): Likewise.
13823 (proceed_next_node): Likewise.
13824 (pop_fail_stack): Fix the memory leak.
13825 (set_regs): Likewise.
13826 (free_fail_stack_return): New function.
13827 (sift_states_backward): Fix the memory leak. Remove the handling
13828 OP_CONTEXT_NODE.
13829 (update_cur_sifted_state): Append some if clause to avoid redundant
13830 call.
13831 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
13832 back reference.
13833 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
13834 (check_subexp_limits): Likewise.
13835 (search_subexp): Likewise.
13836 (sift_states_bkref): Likewise.
13837 (transit_state_mb): Likewise.
13838 (transit_state_bkref_loop): Likewise.
13839 (transit_state_bkref_loop): Likewise.
13840 (group_nodes_into_DFAstates): Likewise.
13841 (check_node_accept): Likewise.
13842 (sift_ctx_init): Add initializing.
13843
13844 2002-10-12 Ulrich Drepper <drepper@redhat.com>
13845
13846 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
13847 __builtin_expect.
13848
13849 2002-10-11 Ulrich Drepper <drepper@redhat.com>
13850
13851 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
13852 duplicated variable c.
13853
13854 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
13855 if possible.
13856
13857 * sysdeps/unix/sysv/linux/i386/sysdep.h
13858 (INTERNAL_SYSCALL_ERROR_P): New define.
13859 (INTERNAL_SYSCALL_ERRNO): Likewise.
13860
13861 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
13862 Add hack to prevent the compiler from clobbering the signal context.
13863
13864 2002-10-11 Roland McGrath <roland@redhat.com>
13865
13866 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
13867 Fix typos.
13868
13869 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
13870 * sysdeps/sh/dl-lookupcfg.h: File removed.
13871 * sysdeps/i386/dl-lookupcfg.h: File removed.
13872
13873 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
13874 missing labels and ; from last change.
13875
13876 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
13877 number literals, so they are doubles instead of ints.
13878
13879 2002-10-09 Roland McGrath <roland@redhat.com>
13880
13881 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
13882 changed from [USE_TLS && HAVE___THREAD].
13883
13884 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
13885 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
13886 * sysdeps/x86_64/dl-machine.h
13887 (elf_machine_type_class, elf_machine_rela): Likewise.
13888 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
13889 Likewise.
13890
13891 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
13892 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
13893 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
13894
13895 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
13896 instead of ___tls_get_addr.
13897 (___tls_get_addr_internal): Add attribute_hidden to decl.
13898
13899 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
13900 _dl_error_catch_tsd.
13901 * elf/rtld.c (startup_error_tsd): New function.
13902 (dl_main): Point _dl_error_catch_tsd at that.
13903 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
13904 use new function pointer instead.
13905 * elf/dl-tsd.c: New file.
13906 * elf/Makefile (routines): Add it.
13907
13908 2002-10-07 Roland McGrath <roland@redhat.com>
13909
13910 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
13911 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
13912 take _dl_load_lock around calling __writev.
13913
13914 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
13915 (INLINE_SYSCALL): Use that.
13916
13917 * sysdeps/generic/dl-sysdep.h: New file.
13918 * sysdeps/mach/hurd/dl-sysdep.h: New file.
13919 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
13920 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
13921 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
13922 access it directly.
13923 * elf/dl-minimal.c (__errno_location): Removed.
13924 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
13925 Use GOTOFF access for errno.
13926 * sysdeps/unix/sysv/linux/i386/sysdep.h
13927 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
13928
13929 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
13930 Use PC-relative access for errno.
13931 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
13932 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
13933
13934 * include/tls.h: New file.
13935 (USE___THREAD): New macro.
13936 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
13937 libc or libpthread.
13938 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
13939 changed from [USE_TLS && HAVE___THREAD].
13940 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
13941 * sysdeps/unix/i386/sysdep.S: Likewise.
13942 * sysdeps/unix/x86_64/sysdep.S: Likewise.
13943 * include/errno.h: Likewise.
13944 * include/netdb.h: Likewise.
13945 * include/resolv.h: Likewise.
13946
13947 * sysdeps/generic/errno.c: New file.
13948 * csu/Makefile (aux): New variable, list errno.
13949 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
13950 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
13951 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
13952 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
13953 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
13954 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
13955 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
13956 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
13957 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
13958 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
13959 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
13960 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
13961 * sysdeps/unix/alpha/sysdep.S: Likewise.
13962 * sysdeps/generic/start.c: Likewise.
13963 * sysdeps/unix/start.c: Likewise.
13964 * sysdeps/unix/arm/start.c: Likewise.
13965 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
13966 * sysdeps/unix/sparc/start.c: Likewise.
13967 * sysdeps/unix/sysv/irix4/start.c: Likewise.
13968 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
13969
13970 * manual/search.texi (Tree Search Function, Hash Search Function):
13971 Mention search.h clearly.
13972
13973 2002-10-05 Roland McGrath <roland@redhat.com>
13974
13975 * elf/dl-fxstat64.c: File removed.
13976 * elf/dl-xstat64.c: File removed.
13977 * elf/Makefile (rtld-routines): Remove them.
13978 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
13979 Instead, use strong_alias instead of versioned_symbol in the
13980 !SHLIB_COMPAT case.
13981 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
13982 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
13983
13984 * include/shlib-compat.h
13985 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
13986 [! NOT_IN_libc] (IS_IN_libc): Define it.
13987 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
13988 * elf/Makefile (CPPFLAGS-.os): Likewise.
13989
13990 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
13991 Return the status instead of calling exit.
13992
13993 * Makeconfig (CFLAGS): Prepend -std=gnu99.
13994 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
13995 Remove superfluous rm command, whose @ plus make bugs hid
13996 all these commands from the make output.
13997
13998 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
13999 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
14000 Use that file's contents instead of literal echo's for the prologue.
14001 * include/features.h: Include <gnu/stubs.h> unconditionally.
14002 * include/gnu/stubs.h: New file.
14003
14004 2002-09-30 Roland McGrath <roland@redhat.com>
14005
14006 * elf/rtld-Rules: New file.
14007 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
14008 $(objpfx)rtld-libc.a): New targets.
14009 (generated): Add them.
14010 (reloc-link): Remove -o $@ from the variable.
14011 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
14012 (distribute): Add rtld-Rules.
14013 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
14014 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
14015 (common-mostlyclean, common-clean): Clean up rtld-* files.
14016 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
14017
14018 2003-05-20 Jakub Jelinek <jakub@redhat.com>
14019
14020 * elf/dynamic-link.h (elf_get_dynamic_info): Add temp argument.
14021 If temp != NULL, copy dynamic entries which need relocation to temp
14022 array before relocating.
14023 (DL_RO_DYN_TEMP_CNT): Define.
14024 * elf/dl-load.c (_dl_map_object_from_fd): Adjust caller.
14025 * elf/rtld.c (_dl_start): Likewise.
14026 (dl_main): Likewise. Add dyn_temp static variable.
14027
14028 2002-10-11 Roland McGrath <roland@redhat.com>
14029
14030 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
14031 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
14032
14033 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
14034 proper set of no-op insn prefixes.
14035
14036 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
14037
14038 2002-10-11 Ulrich Drepper <drepper@redhat.com>
14039
14040 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
14041 __pthread_kill_other_threads_np.
14042
14043 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
14044
14045 2002-10-08 Roland McGrath <roland@redhat.com>
14046
14047 * locale/newlocale.c (__newlocale): If setting all categories to "C",
14048 just return &_nl_C_locobj instead of copying it.
14049 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
14050 * locale/duplocale.c (__duplocale): Likewise.
14051
14052 2002-10-07 Roland McGrath <roland@frob.com>
14053
14054 * config.h.in (HAVE_I386_SET_GDT): New #undef.
14055 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
14056 * sysdeps/mach/configure: Regenerated.
14057
14058 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14059
14060 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
14061 Add all necessary register outputs for syscall-clobbered registers.
14062
14063 2002-10-02 David Mosberger <davidm@hpl.hp.com>
14064
14065 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
14066 Itanium 2 (and Itanium).
14067 Fix unwind directives and make it fit in 80 columns.
14068 * sysdeps/ia64/memset.S: Likewise.
14069 * sysdeps/ia64/memcpy.S: Likewise.
14070 Move jump table to .rodata section.
14071
14072 2002-10-03 Roland McGrath <roland@frob.com>
14073
14074 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
14075 clobbers to asm.
14076
14077 2002-10-10 Andreas Jaeger <aj@suse.de>
14078
14079 * sysdeps/x86_64/_mcount.S: Restore correct registers.
14080
14081 2002-10-10 Ulrich Drepper <drepper@redhat.com>
14082
14083 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
14084
14085 2002-10-09 Ulrich Drepper <drepper@redhat.com>
14086
14087 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
14088 _dl_allocate_tls_init. Add rtld_hidden_proto.
14089 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
14090 rtld_hidden_def.
14091 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
14092
14093 * version.h (VERSION): Bump to 2.3.1.
14094
14095 * Make-dist: Add back one of the tar invocations removed before.
14096
14097 * stdlib/Makefile (distribute): Add allocalim.h.
14098
14099 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
14100 (__libc_tsd_address): Use correct variable name.
14101 Patch by Stefan Jones <stefan.jones@multigig.com>.
14102
14103 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
14104 Reported by edwardsg@sgi.com [PR libc/4678].
14105
14106 * Versions.def (libc): Add GLIBC_2.3.1.
14107 (libpthread): Add GLIBC_2.3.1.
14108
14109 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
14110 and __sigtimedwait.
14111 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
14112 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
14113 libc_hidden_def.
14114 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
14115 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
14116
14117 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
14118 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
14119 and make old name an alias.
14120 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
14121 and make old name an alias.
14122 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
14123 __libc_msgsnd.
14124
14125 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
14126 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
14127 __libc_writev.
14128 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
14129 old name an alias.
14130 * sysdeps/posix/readv.c: Likewise
14131 * sysdeps/unix/sysv/aix/readv.c: Likewise.
14132 * sysdeps/unix/sysv/linux/readv.c: Likewise.
14133 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
14134 old name an alias.
14135 * sysdeps/posix/writev.c: Likewise
14136 * sysdeps/unix/sysv/aix/writev.c: Likewise.
14137 * sysdeps/unix/sysv/linux/writev.c: Likewise.
14138
14139 * include/sys/wait.h: Declare __waitid.
14140 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
14141 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
14142 name an alias.
14143 * sysdeps/posix/waitid.c: Likewise.
14144 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
14145
14146 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
14147
14148 2002-10-07 Jakub Jelinek <jakub@redhat.com>
14149
14150 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
14151 prototypes.
14152 (__MAX_ALLOCA_CUTOFF): Define.
14153 Include allocalim.h.
14154 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
14155 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
14156 host_buffer depending on __libc_use_alloca.
14157 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
14158 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
14159 net_buffer depending on __libc_use_alloca.
14160 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
14161 buf depending on __libc_use_alloca.
14162 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
14163 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
14164 instead of hardcoded constants.
14165 Pass proper size argument to alloca and compute end for wide char
14166 version.
14167 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
14168 instead of hardcoded constants.
14169 * string/strcoll.c (strcoll): Likewise.
14170 * string/strxfrm.c (strxfrm): Likewise.
14171 * sysdeps/posix/readv.c (__readv): Likewise.
14172 * sysdeps/posix/writev.c (__writev): Likewise.
14173 * sysdeps/generic/allocalim.h: New file.
14174
14175 2002-10-08 Roland McGrath <roland@redhat.com>
14176
14177 * configure.in (aux_missing warning): Change "too old" to
14178 "incompatible versions", since for autoconf it's "too new" right now.
14179 * configure: Regenerated.
14180
14181 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
14182 one found doesn't work on our configure.in.
14183 * configure: Regenerated.
14184 * config.make.in (AUTOCONF): New substituted variable.
14185 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
14186 (autoconf-it): ... here, use that instead of defining conditionally.
14187 Use $(AUTOCONF) instead of literal autoconf.
14188 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
14189 with this condition.
14190 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
14191
14192 2002-10-08 Ulrich Drepper <drepper@redhat.com>
14193
14194 * Make-dist (dist): Cleanup a bit. We are not interested in the
14195 14 char filename limit anymore. Remove intermediate files and
14196 symlinks.
14197
14198 2002-10-05 Ulrich Drepper <drepper@redhat.com>
14199
14200 * po/sk.po: Update from translation team.
14201 * po/tr.po: Likewise.
14202 * po/gl.po: Likewise.
14203
14204 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
14205
14206 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
14207
14208 2002-10-03 Ulrich Drepper <drepper@redhat.com>
14209
14210 * version.h (RELEASE): Change to stable.
14211
14212 2002-10-03 Jakub Jelinek <jakub@redhat.com>
14213
14214 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
14215 __syscall_exit_group): New prototypes.
14216
14217 2002-10-03 Ulrich Drepper <drepper@redhat.com>
14218
14219 * glibc 2.3 released.
14220
14221
14222 See ChangeLog.13 for earlier changes.
This page took 0.67951 seconds and 5 git commands to generate.