]> sourceware.org Git - glibc.git/blob - ChangeLog
Update.
[glibc.git] / ChangeLog
1 2004-02-12 Ulrich Drepper <drepper@redhat.com>
2
3 * locale/programs/locale.c (show_locale_vars): Don't print a value
4 for LANG if it is not set.
5
6 2004-02-11 Jakub Jelinek <jakub@redhat.com>
7
8 * posix/regexec.c (check_node_accept_bytes): Return 0 if char_len is 0.
9 (find_collation_sequence_value): Don't look beyond end of
10 SYMB_EXTRAMB table.
11 * posix/Makefile (tests): Add bug-regex23.
12 (bug-regex23-ENV): New.
13 * posix/bug-regex23.c: New file.
14
15 2004-02-10 Roland McGrath <roland@frob.com>
16
17 * sysdeps/mach/hurd/times.c (__times): Use union instead of cast.
18 * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Likewise.
19
20 * sysdeps/mach/hurd/configure.in: Move `retcode' check to ...
21 * sysdeps/mach/configure.in: ... here.
22 * sysdeps/mach/hurd/configure: Regenerated.
23 * sysdeps/mach/configure.in: Regenerated.
24
25 2004-02-10 Ulrich Drepper <drepper@redhat.com>
26
27 * sysdeps/generic/setenv.c (__add_to_environ): Don't let the
28 temporary copies of the variables accumulate on the stack.
29
30 * stdio-common/_i18n_number.h: Finish last patch.
31
32 2004-02-09 Ulrich Drepper <drepper@redhat.com>
33
34 * sysdeps/i386/i686/memcmp.S: New file. Patch by HJ Lu.
35
36 2003-12-05 Roland McGrath <roland@redhat.com>
37
38 * sysdeps/unix/sysv/linux/i386/syscalls.list: Turn vm86 into vm86old
39 for vm86@GLIBC_2.0 version. Add new vm86@GLIBC_2.3.4.
40 * sysdeps/unix/sysv/linux/i386/Versions (libc: GLIBC_2.3.4): Add vm86.
41 * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Update vm86 prototype.
42
43 2004-02-09 Ulrich Drepper <drepper@redhat.com>
44
45 * nis/ypclnt.c: Cleanup last patch.
46
47 2004-02-09 Andreas Jaeger <aj@suse.de>
48
49 * configure.in: Remove glibcbug creation.
50 * configure: Regenerated.
51
52 * sysdeps/x86_64/fpu/s_copysignf.S: Only load 4 bytes.
53
54 2004-02-03 Thorsten Kukuk <kukuk@suse.de>
55
56 * nis/ypclnt.c (__yp_bind_client_create): New, small chunk
57 of duplicated code from __yp_bind.
58 (__yp_bind_file): New, binding dir code from __yp_bind.
59 (__yp_bind_client_create): New, ypbind code from __yp_bind.
60 (__ypclnt_call): New, make NIS query.
61 (do_ypcall): At first use cached data, then try data from
62 binding directory, after this ask ypbind for a working ypserv.
63 Based on a patch from Jeff Bastian <jmbastia@ti.com> and
64 Chris Barrera <cbarrera@ti.com>
65
66 2004-01-19 Roland McGrath <roland@redhat.com>
67
68 * configure.in: Don't set CCVERSION.
69 * configure: Regenerated.
70 * glibcbug.in: File removed.
71 * Makefile (install-bin-script): Remove glibcbug.
72 (glibcbug): Target removed.
73 (distclean-1): Don't rm glibcbug.
74 (distribute): Remove glibcbug.in.
75
76 2004-02-09 Roland McGrath <roland@redhat.com>
77
78 * time/tzset.c (tzset_internal): Cap hour in POSIX $TZ rule format to
79 24, not 23.
80
81 2004-01-29 Roland McGrath <roland@redhat.com>
82
83 * io/ftwtest-sh: Use $tmp consistently, not literal /tmp.
84 Reported by Kevin P. Fleming <kpfleming@backtobasicsmgmt.com>.
85
86 2004-02-09 Ulrich Drepper <drepper@redhat.com>
87
88 * libio/genops.c (_IO_cleanup): Do not use locking when flushing
89 the buffers. Some thread might be using a stream.
90
91 2004-02-09 Andreas Jaeger <aj@suse.de>
92
93 * sysdeps/x86_64/memcpy.S: Fix alignment [BZ #7].
94 Patch by Jan Beulich <jbeulich@novell.com>.
95
96 2004-02-09 Andreas Schwab <schwab@suse.de>
97
98 * include/rpc/rpc.h: Declare thread variables with their correct type.
99 * sunrpc/clnt_perr.c: Don't cast thread variables.
100 * sunrpc/clnt_raw.c: Likewise.
101 * sunrpc/clnt_simp.c: Likewise.
102 * sunrpc/key_call.c: Likewise.
103 * sunrpc/svcauth_des.c: Likewise.
104 * sunrpc/svc.c: Likewise.
105 * sunrpc/svc_raw.c: Likewise.
106 * sunrpc/svc_simple.c: Likewise.
107
108 2004-02-09 Ulrich Drepper <drepper@redhat.com>
109
110 * stdio-common/_i18n_number.h: Support printing localized decimal
111 point and thousand separator.
112 * wctype/wctrans.c: Add __wctrans alias.
113 * include/wctype.h: Declare __wctrans.
114 Based on a patch by Hamed Malek.
115
116 * sysdeps/i386/fpu/fclrexcpt.c (__feclearexcept): Don't touch bits
117 other than the status bits [BZ #10].
118
119 2004-02-08 Ulrich Drepper <drepper@redhat.com>
120
121 Make stream locking operations really work.
122 * misc/Makefile (CFLAGS-mntent_r.c): Define.
123 * shadow/Makefile (CFLAGS-fgetspent_r.c): Define.
124 (CFLAGS-putspent.c): Define.
125 * grp/Makefile (CFLAGS-fgetgrent_r.c): Define.
126 (CFLAGS-putgrent.c): Define.
127 * pwd/Makefile (CFLAGS-fgetpwent_r.c): Define.
128 Reported by Shunichi Sagawa <s-sagawa@jp.fujitsu.com>.
129
130 * elf/dl-load.c (lose): Use noinline attribute instead of silly
131 alloca to prevent inlining.
132 * elf/dl-runtime.c (fixup): Likewise.
133 (profile_fixup): Likewise.
134
135 * stdio-common/printf_size.c: Undo parts of patch from 2000-2-11.
136 Initialize width correctly.
137
138 2004-02-07 Andreas Jaeger <aj@suse.de>
139
140 * iconv/gconv_simple.c (ucs4le_internal_loop): Remove cast used as
141 lvalue.
142 (internal_ucs4le_loop_single): Likewise.
143 (ucs4_internal_loop): Likewise.
144 (BODY): Likewise.
145 (internal_ucs4_loop_single): Likewise.
146 * iconvdata/iso8859-1.c (BODY): Likewise.
147 * iconvdata/cp1255.c (EMIT_SHIFT_TO_INIT): Likewise.
148 * iconvdata/cp1258.c (EMIT_SHIFT_TO_INIT): Likewise.
149 * iconvdata/gb18030.c (BODY): Likewise.
150 * iconvdata/armscii-8.c (BODY): Likewise.
151 * stdlib/msort.c (msort_with_tmp): Likewise.
152
153 * iconv/gconv_open.c (__gconv_open): Remove conditional expression
154 as lvalue.
155
156 2004-02-06 Steven Munroe <sjmunroe@us.ibm.com>
157
158 * sysdeps/powerpc/powerpc32/dl-machine.c: Declare __cache_line_size as
159 weak extern.
160 (__elf_machine_runtime_setup): Invalidate the instruction cache over
161 the whole range of the PLT.
162
163 2004-02-06 Andreas Schwab <schwab@suse.de>
164
165 * posix/regcomp.c (build_range_exp): Fix off-by-one.
166 (parse_bracket_exp): Likewise.
167
168 2004-02-05 Ulrich Drepper <drepper@redhat.com>
169
170 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Define
171 _HAVE_STAT_NSEC and _HAVE_STAT64_NSEC. Patch by Anton Blanchard.
172
173 2004-02-02 Paolo Bonzini <bonzini@gnu.org>
174
175 * posix/regexec.c (check_matching): Add P_MATCH_FIRST parameter.
176 (re_search_internal): Pass new parameter to check_matching.
177 (check_matching): Unless a parenthesized group is found at the
178 beginning of the regexp, advance P_MATCH_FIRST until we entered
179 a state different from the initial state.
180
181 2004-02-01 Ulrich Drepper <drepper@redhat.com>
182
183 * math/libm-test.inc (lround_test): Add new test.
184 (llround_test): Likewise.
185 (lrint_test): Likewise.
186 (llrint_test): Likewise.
187 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Fix special case
188 with result taking up 20 bits.
189 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
190 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise..
191 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Fix special
192 case with result taking up 31 bits.
193 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
194
195 * po/nl.po: Update from translation team.
196
197 2004-01-30 Andreas Schwab <schwab@suse.de>
198
199 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_BREAK,
200 FPE_DECOVF, FPE_DECDIV, FPE_DECERR, FPE_INVASC, FPE_INVDEC,
201 SEGV_PSTKOVF): Remove underscore prefix from definition.
202
203 2004-01-28 Paolo Bonzini <bonzini@gnu.org>
204
205 Merge regex changes in gawk.
206 * posix/regcomp.c (build_range_exp) [!_LIBC]: Check validity
207 of collation elements.
208 * posix/regex.c: Include limits.h.
209 * posix/regex.h: Document REG_ECOLLATE correctly.
210 * posix/regex_internal.h [!_LIBC && !ENABLE_NLS]: Disable NLS.
211
212 2004-01-24 Andreas Jaeger <aj@suse.de>
213
214 * malloc/obstack.h: Import gnulib version.
215 * malloc/obstack.c: Likewise.
216
217 2004-01-26 David Mosberger <davidm@hpl.hp.com>
218
219 * elf/link.h (struct dl_phdr_info): Fix typo in comment.
220 * elf/rtld.c (dl_main): After incrementing dl_nloaded, also
221 increment dl_load_adds.
222 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Replace GL(dl_load_subs)
223 with equivalent GL(dl_load_adds - GL(dl_nloaded).
224 (dl_iterate_phdr): Likewise.
225 * elf/dl-close.c (_dl_close): Delete increment of GL(dl_load_subs).
226 * elf/dl-support.c: Remove global variable _dl_load_subs.
227 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
228 _dl_load_subs member.
229
230 2004-01-27 Jakub Jelinek <jakub@redhat.com>
231
232 * elf/rtld.c (_dl_start_final): Don't set l_relro_* here.
233 (_dl_start): And neither here.
234 (dl_main): Set GL(dl_loaded)->l_relro_* and
235 GL(dl_rtld_map)->l_relro_*.
236
237 2004-01-23 David Mosberger <davidm@hpl.hp.com>
238
239 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add members
240 _dl_load_adds and _dl_load_subs.
241 * elf/dl-support.c (_dl_load_adds): New variable.
242 (_dl_load_subs): Likewise.
243 * elf/dl-object.c (_dl_new_object): Increment dl_load_adds.
244 * elf/dl-close.c (_dl_close): Increment dl_load_subs.
245 * elf/link.h (struct dl_phdr_info): Add members dlpi_adds and
246 dlpi_subs.
247 * include/link.h: Likewise.
248 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Initialize dlpi_adds
249 and dlpi_subs members.
250 (dl_iterate_phdr): Likewise.
251 * elf/tst-dlmodcount.c: New file.
252 * elf/Makefile (distribute): Mention tst-dlmodcount.c.
253 (tests): If build-shared, mention tst-dlmodcount.
254 ($(objpfx)tst-dlmodcount): If build-shared, build and
255 run tst-dlmodcount.
256
257 2004-01-22 Jakub Jelinek <jakub@redhat.com>
258
259 * elf/dl-reloc.c (_dl_relocate_object): Move PT_GNU_RELRO protection
260 into...
261 (_dl_protect_relro): New routine.
262 * sysdeps/generic/ldsodefs.h (_dl_protect_relro): New prototype.
263 * elf/rtld.c (_dl_start_final): Copy l_relro_addr and l_relro_size
264 from bootstrap_map.
265 (_dl_main): Don't set GL(_dl_loaded)->l_relro_{addr,size} here.
266 Call _dl_protect_relro for libraries if prelinking.
267
268 2004-01-23 Richard Henderson <rth@redhat.com>
269
270 * Versions.def (libm): Replace GLIBC_2.3.3 with GLIBC_2.3.4.
271 * sysdeps/alpha/fpu/Versions (libm): Likewise.
272 * sysdeps/alpha/fpu/cfloat-compat.h (cfloat_versions): Likewise.
273 * sysdeps/alpha/fpu/s_clog10f.c (clog10f): Likewise.
274
275 2004-01-22 Andreas Jaeger <aj@suse.de>
276
277 * sysdeps/ieee754/dbl-64/e_pow.c (log2): Rename to my_log2 to
278 avoid warnings for builtin function log2.
279
280 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Add proper unwind
281 information.
282
283 2004-01-20 Ulrich Drepper <drepper@redhat.com>
284
285 * sysdeps/unix/sysv/linux/sys/epoll.h: Add EPOLLONESHOT.
286 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
287 Patch by Davide Libenzi.
288
289 * sysdeps/unix/sysv/linux/kernel-features.h: Define
290 __ASSUME_NO_CLONE_DETACHED for 2.6.2+ kernels.
291
292 * catgets/Makefile ($(objpfx)de.msg): Run sed in C locale.
293
294 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use off64_t
295 instead of loff_t. Include <fcntl.h>.
296 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Add readahead prototype.
297 * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Likewise.
298 * sysdeps/unix/sysv/linux/cris/bits/fcntl.h: Likewise.
299 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h: Likewise.
300 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
301 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
302 * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: Likewise.
303 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
304 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
305 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
306 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
307 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
308
309 * elf/dl-load.c: Don't add attribute_relro to max_dirnamelen.
310
311 * sysdeps/generic/inttypes.h: Fix PRI*FAST{16,32} macros.
312
313 2003-12-31 Bruno Haible <bruno@clisp.org>
314
315 * iconvdata/iso_6937-2.c (to_ucs4): Map 0x7E to U+007E, not U+203E.
316 Map 0xA6 to U+0023. Map 0xA8 to U+00A4.
317 (to_ucs4_comb): Map 0xC5 0x20 to U+00AF.
318 (from_ucs4): Map U+00ED to 0xC2 0x69, not 0xC2 0xE9.
319 (BODY for TO_LOOP): Don't map U+02DC. Map U+02DD to 0xCD 0x20, not
320 0x00 0x20. Don't map U+2500..U+25E3.
321
322 2004-01-19 Jakub Jelinek <jakub@redhat.com>
323
324 * posix/regexec.c (get_subexp): Remove bkref_str variable.
325 Extend buffers if needed before comparisons.
326 (get_subexp_sub): Handle clean_state_log_if_needed failure.
327
328 2004-01-17 Ulrich Drepper <drepper@redhat.com>
329
330 * sysdeps/i386/i486/bits/atomic.h (atomic_add): Fix test for using
331 atomic_decrement. Patch by Davin McCall.
332
333 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
334
335 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions)
336 (__sim_disabled_exceptions, __sim_round_mode): Declare with
337 hidden data and nocommon.
338 * sysdeps/powerpc/nofpu/soft-supp.h (__sim_exceptions)
339 (__sim_disabled_exceptions, __sim_round_mode): Use
340 libc_hidden_proto.
341 * sysdeps/powerpc/soft-fp/sfp-machine.h (__sim_exceptions)
342 (__sim_disabled_exceptions, __sim_round_mode): Likewise.
343
344 2004-01-16 Ulrich Drepper <drepper@redhat.com>
345
346 * elf/elf.h: Define PT_IA_64_HP_OPT_ANOT, PT_IA_64_HP_HSL_ANOT, and
347 PT_IA_64_HP_STACK.
348
349 2004-01-16 Richard Henderson <rth@redhat.com>
350
351 * include/unistd.h (__libc_enable_secure): Mark attribute_relro.
352 (__libc_enable_secure_internal): Likewise.
353
354 * elf/dl-load.c: Don't declare __libc_stack_end.
355 * sysdeps/generic/libc-start.c: Likewise.
356 * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
357 * sysdeps/generic/segfault.c: Likewise. Include ldsodefs.h.
358 * sysdeps/generic/backtrace.c: Likewise.
359
360 2004-01-15 Ulrich Drepper <drepper@redhat.com>
361
362 * Versions.def: Add GLIBC_2.3.4.
363
364 2004-01-15 Richard Henderson <rth@redhat.com>
365
366 * sysdeps/unix/alpha/sysdep.h: Revert last change.
367
368 2004-01-15 Richard Henderson <rth@redhat.com>
369
370 * sysdeps/alpha/dl-machine.h (RTLD_START): Use _dl_argv_internal.
371
372 * sysdeps/unix/alpha/sysdep.h [PIC] (SYSCALL_ERROR_HANDLER): Use
373 !samegp relocation.
374
375 2004-01-15 Richard Henderson <rth@redhat.com>
376
377 * sysdeps/unix/sysv/linux/alpha/Makefile [stdlib]: Process
378 ucontext-offsets.sym.
379 * sysdeps/unix/sysv/linux/alpha/getcontext.S: New file.
380 * sysdeps/unix/sysv/linux/alpha/makecontext.S: New file.
381 * sysdeps/unix/sysv/linux/alpha/setcontext.S: New file.
382 * sysdeps/unix/sysv/linux/alpha/swapcontext.S: New file.
383 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: New file.
384
385 2004-01-15 Richard Henderson <rth@redhat.com>
386
387 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Prefix stubs with
388 __syscall_, move nop inside, adjust users by +4.
389
390 2004-01-14 Steven Munroe <sjmunroe@us.ibm.com>
391
392 * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
393 (_symbol_version): Use C_SYMBOL_DOT_NAME to create '.'ed symbols.
394 (_default_symbol_version): Use C_SYMBOL_DOT_NAME to create '.'ed
395 symbols.
396 * sysdeps/powerpc/Makefile: Add rtld-global-offsets.sym to
397 gen-as-const-headers.
398 * sysdeps/powerpc/elf/rtld-global-offsets.sym: New file.
399 * sysdeps/powerpc/sysdep.h: Define v# symbols for vector registers.
400 Define PPC_FEATURE_* masks for Aux Vector AT_HWCAP.
401 * sysdeps/unix/sysv/linux/kernel-features.h
402 (__ASSUME_SWAPCONTEXT_SYSCALL): Define for PPC and 2.6.0 kernels.
403 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h [!__WORDSIZE == 32]:
404 Declare mcontext_t inline and include altivec state for 64-bit.
405 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Add GLIBC_2.3.4
406 versions for setcontext, getcontext, and swapcontext.
407
408 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Add GLIBC_2.3.4
409 versions for setcontext, getcontext, swapcontext, and makecontext.
410 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
411 (__getcontext): Upgrade to save Altivec regs and version GLIBC_2_3_4.
412 [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] (__novec_getcontext):
413 Compatible with GLIBC_2.3.3 release.
414 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
415 (__makecontext): Use parm save area instead of compiler_dw to hold
416 context pointer.
417 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
418 (__setcontext): Upgrade to restore Altivec regs and version
419 GLIBC_2_3_4.
420 [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] (__novec_setcontext):
421 Compatible with GLIBC_2.3.3 release.
422 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
423 (__swapcontext): Upgrade to swap Altivec regs and version GLIBC_2_3_4.
424 [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] (__novec_swapcontext):
425 Compatible with GLIBC_2.3.3 release.
426 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h
427 (SIGCONTEXT_V_REGS_PTR, SIGCONTEXT_V_RESERVE): Defined.
428
429 2004-01-12 Steven Munroe <sjmunroe@us.ibm.com>
430
431 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Add GLIBC_2.3.4
432 versions for setcontext, getcontext, swapcontext, and makecontext.
433 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
434 (__getcontext): Upgrade to save Altivec regs and version GLIBC_2_3_4.
435 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)] (__novec_getcontext):
436 Compatible with GLIBC_2.3.3 release.
437 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
438 (__makecontext): Upgrade to align for Altivec regs and version
439 GLIBC_2_3_4.
440 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)] (__novec_makecontext):
441 Compatible with GLIBC_2.3.3 release.
442 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
443 (__setcontext): Upgrade to restore Altivec regs and version
444 GLIBC_2_3_4.
445 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)] (__novec_setcontext):
446 Compatible with GLIBC_2.3.3 release.
447 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
448 (__swapcontext): Upgrade to swap Altivec regs and version GLIBC_2_3_4.
449 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)]
450 (__novec_swapcontext): Compatible with GLIBC_2.3.3 release.
451 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h:
452 (_UC_VSCR, _UC_VRSAVE): Define.
453 (_FRAME_BACKCHAIN, _FRAME_LR_SAVE,_FRAME_PARM_SAVE1,_FRAME_PARM_SAVE2,
454 _FRAME_PARM_SAVE3, _FRAME_PARM_SAVE4): Defined.
455
456 2004-01-15 Ulrich Drepper <drepper@redhat.com>
457
458 * elf/rtld.c: Handle platforms with HP_TIMING_NONAVAIL defined.
459
460 2004-01-16 Alfred M. Szmidt <ams@kemisten.nu>
461
462 * sysdeps/generic/dl-execstack.c (_dl_make_stack_executable): Adjust
463 parameter type.
464
465 2004-01-15 Ulrich Drepper <drepper@redhat.com>
466
467 * elf/elf.h: Fix typo in comment.
468
469 * sysdeps/generic/dl-sysdep.c: Initialize __libc_stack_end.
470 * elf/rtld.c: Initialize _dl_argv to allow aliasing.
471
472 * resolv/resolv.h: Add RES_USEBSTRING.
473 * resolv/res_debug.c (p_option): Add handling for RES_USE_INET6,
474 RES_ROTATE, RES_NOCHECKNAME, and RES_USEBSTRING.
475 * resolv/res_init.c (res_setioptions): Recognize ip6-bytestring.
476 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Only perform
477 bytestring IPv6 lookup with RES_USEBSTRING option is selected.
478 Otherwise use the two nibble formats.
479
480 2004-01-14 Ulrich Drepper <drepper@redhat.com>
481
482 * configure.in: Define HAVE_Z_RELRO if the linker supports -z relro.
483 * config.h.in: Add entry for HAVE_Z_RELRO.
484 * include/libc-symbols.h: Define attribute_relro.
485 * elf/dl-load.c: Add attribute_relro to env_path_list, capstr, ncapstr,
486 max_capstrlen, and max_dirnamelen definitions.
487 * elf/rtld.c: Add attribute_relro to _dl_argc, _dl_argv, _dl_skip_args,
488 load_time, start_time, library_path, preloadlist, version_info,
489 any_debug.
490 Remove rtld_total_time. Make it a local variable. Pass pointer to
491 it to print_statistics. Change print_statistics accordingly.
492 * sysdeps/generic/dl-sysdep.c: Add attribute_relro to _dl_auxv. Use
493 attribute_relro instead of explicitly assigning variable to the
494 .data.rel.ro section for __libc_enable_secure and __libc_stack_end.
495 * sysdeps/generic/ldsodefs.h: Declare __libc_stack_end, _dl_argc,
496 _dl_argv, _dl_argv_internal with attribute_relro.
497
498 2004-01-13 Segher Boessenkool <boessen@de.ibm.com>
499
500 * Makerules (gen-as-const): Don't silently continue on failure.
501
502 2004-01-14 Steven Munroe <sjmunroe@us.ibm.com>
503
504 * sysdeps/generic/dl-sysdep.c: Define __libc_stack_end with
505 rtld_hidden_data_def.
506
507 2004-01-14 Ulrich Drepper <drepper@redhat.com>
508
509 * libio/libio.h: Add const to function tables types.
510 * libio/libioP.h: Likewise.
511 * login/utmp-private.h: Likewise.
512 * libio/fileops.c: Add const to jump table variable definition.
513 * libio/genops.c: Likewise.
514 * libio/iofopncook.c: Likewise.
515 * libio/iopopen.c: Likewise.
516 * libio/memstream.c: Likewise.
517 * libio/obprintf.c: Likewise.
518 * libio/oldfileops.c: Likewise.
519 * libio/oldiopopen.c: Likewise.
520 * libio/strops.c: Likewise.
521 * libio/vsnprintf.c: Likewise.
522 * libio/vswprintf.c: Likewise.
523 * libio/wfileops.c: Likewise.
524 * libio/wstrops.c: Likewise.
525 * login/getutent_r.c: Likewise.
526 * login/getutid_r.c Likewise.
527 * login/getutline_r.c: Likewise.
528 * sysdeps/generic/utmp_file.c: Likewise.
529
530 2004-01-09 Bruno Haible <bruno@clisp.org>
531
532 * intl/gmo.h (MO_REVISION_NUMBER_WITH_SYSDEP_I): New definition.
533 * intl/loadmsgcat.c (get_sysdep_segment_value): Handle "I".
534 (_nl_load_domain): Treat major revision 1 like major revision 0.
535
536 2004-01-11 Bruno Haible <bruno@clisp.org>
537
538 * stdio-common/vfprintf.c (vfprintf): Disallow the 'I' flag after
539 width or precision has been seen.
540
541 2004-01-08 Bruno Haible <bruno@clisp.org>
542
543 * intl/loadmsgcat.c (_nl_load_domain): When a string pair uses a system
544 dependent segment not known to this version of the library, ignore
545 the string pair instead of crashing.
546
547 2004-01-13 Ulrich Drepper <drepper@redhat.com>
548
549 * configure.in: Rewrite test to give gcc to clean up after itself.
550 Patch by Greg Schafer.
551
552 * posix/regex.c: Support crappy compilers and platforms which have
553 problems with alloca.
554 * posix/regex_internal.h: Likewise.
555 Patch by Paolo Bonzini.
556
557 2004-01-12 Paolo Bonzini <bonzini@gnu.org>
558
559 * posix/regcomp.c [_LIBC && !RE_ENABLE_I18N]:
560 Drop code to support this, it is never true.
561 (build_range_exp) [!_LIBC]: Do not create a range
562 in MBCSET for a single-byte character set.
563 (build_range_exp) [_LIBC]: Do not create a range
564 in MBCSET for a single-byte character set without
565 collation elements.
566 (init_dfa): Do not conditionalize on _LIBC, it
567 just makes the code less clear.
568 (parse_bracket_exp): Use NON_MATCH variable in
569 addition to "mbcset->non_match", not as an
570 alternative.
571 (build_charclass_op): rename NOT parameter to
572 NON_MATCH, use it instead of declaring a variable.
573 (parse_bracket_exp) [!_LIBC]: Pass NULL for MBCSET
574 if the character set is single-byte.
575
576 2004-01-14 Jakub Jelinek <jakub@redhat.com>
577
578 * posix/regcomp.c (peek_token_bracket): Check remaining
579 string length before re_string_peek_byte (x, 1).
580 (parse_bracket_symbol): Likewise.
581 * posix/regex_internal.h (re_string_is_single_byte_char): Return
582 true at last byte in the string.
583 * posix/bug-regex22.c (main): Add new test.
584
585 2004-01-13 Ulrich Drepper <drepper@redhat.com>
586
587 * sysdeps/generic/dl-sysdep.c: Move __libc_enable_secure into
588 .data.rel.ro.
589
590 * sysdeps/x86_64/dl-machine.h: Include <tls.h>.
591
592 * elf/rtld.c (_dl_start_final): Initialze __libc_stack_end here.
593 * sysdeps/generic/dl-sysdep.c: Define __libc_stack_end with
594 rtld_hidden_def and move into .data.rel.ro section.
595 * sysdeps/generic/ldsodefs.h: Declare __libc_stack_end with
596 rtld_hidden_proto.
597 * sysdeps/generic/libc-start.c: Only initialize __libc_stack_end here
598 if !SHARED.
599
600 2004-01-13 Richard Henderson <rth@redhat.com>
601
602 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Fix typo.
603
604 2004-01-13 Ulrich Drepper <drepper@redhat.com>
605
606 * sysdeps/unix/sysv/linux/dl-execstack.c
607 (_dl_make_stack_executable): Move common code in front. Use
608 __builtin_expect.
609
610 * sysdeps/unix/sysv/linux/dl-execstack.c: Change interface. Add
611 challenge for caller.
612 * sysdeps/generic/ldsodefs.h: Change declaration and type of hook
613 member in rtld_global appropriately.
614 * elf/dl-support.c: Likewise.
615 * elf/dl-load.c (_dl_map_object_from_fd): Take additional paramter.
616 Pass it on to the changed function.
617 (_dl_map_object): Pass new parameter to _dl_map_object_from_fd.
618
619 2004-01-13 Richard Henderson <rth@redhat.com>
620
621 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_xxx_8_int):
622 Cast old up to uint64_t before back down to inner width.
623 (__arch_compare_and_exchange_xxx_16_int): Likewise.
624 (__arch_compare_and_exchange_xxx_32_int): Likewise.
625 (__arch_compare_and_exchange_xxx_64_int): Likewise.
626 (__arch_compare_and_exchange_val_8_int): Cast result to
627 the type of the memory.
628 (__arch_compare_and_exchange_val_16_int): Likewise.
629 (__arch_compare_and_exchange_val_32_int): Likewise.
630 (__arch_compare_and_exchange_val_64_int): Likewise.
631 (atomic_compare_and_exchange_bool_acq): Use __atomic_bool_bysize.
632 (atomic_compare_and_exchange_bool_rel): Likewise.
633
634 * sysdeps/unix/alpha/sysdep.h: Select inline_syscall_r0_asm
635 based on HAVE___THREAD instead of USE_TLS.
636
637 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ADJTIMEX32): New.
638 (__adjtimex_tv64): Use it.
639
640 * sysdeps/unix/sysv/linux/alpha/semctl.c (__new_semctl): Cast
641 to void* rather than directly to the compatibility structure type.
642 * sysdeps/unix/sysv/linux/alpha/shmctl.c (__new_shmctl): Likewise.
643
644 * sysdeps/unix/sysv/linux/alpha/sigaction.c (struct kernel_sigaction):
645 Forward declare.
646
647 2004-01-13 Richard Henderson <rth@redhat.com>
648
649 * Versions.def (libm): Add GLIBC_2.3.3.
650 * sysdeps/alpha/fpu/Versions: Add __c1_c*f and c*f to GLIBC_2.3.3.
651 * sysdeps/alpha/fpu/cabsf.c, sysdeps/alpha/fpu/cargf.c,
652 sysdeps/alpha/fpu/cfloat-compat.h, sysdeps/alpha/fpu/cimagf.c,
653 sysdeps/alpha/fpu/conjf.c, sysdeps/alpha/fpu/crealf.c,
654 sysdeps/alpha/fpu/s_cacosf.c, sysdeps/alpha/fpu/s_cacoshf.c,
655 sysdeps/alpha/fpu/s_casinf.c, sysdeps/alpha/fpu/s_casinhf.c,
656 sysdeps/alpha/fpu/s_catanf.c, sysdeps/alpha/fpu/s_catanhf.c,
657 sysdeps/alpha/fpu/s_ccosf.c, sysdeps/alpha/fpu/s_ccoshf.c,
658 sysdeps/alpha/fpu/s_cexpf.c, sysdeps/alpha/fpu/s_clog10f.c,
659 sysdeps/alpha/fpu/s_clogf.c, sysdeps/alpha/fpu/s_cpowf.c,
660 sysdeps/alpha/fpu/s_cprojf.c, sysdeps/alpha/fpu/s_csinf.c,
661 sysdeps/alpha/fpu/s_csinhf.c, sysdeps/alpha/fpu/s_csqrtf.c,
662 sysdeps/alpha/fpu/s_ctanf.c, sysdeps/alpha/fpu/s_ctanhf.c: New files.
663 * sysdeps/alpha/fpu/bits/mathdef.h: Rename complex float
664 functions for gcc 3.3.
665
666 * sysdeps/generic/s_cacosf.c, sysdeps/generic/s_cacoshf.c,
667 sysdeps/generic/s_casinf.c, sysdeps/generic/s_casinhf.c,
668 sysdeps/generic/s_catanf.c, sysdeps/generic/s_catanhf.c,
669 sysdeps/generic/s_ccosf.c, sysdeps/generic/s_ccoshf.c,
670 sysdeps/generic/s_cexpf.c, sysdeps/generic/s_clog10f.c,
671 sysdeps/generic/s_clogf.c, sysdeps/generic/s_cpowf.c,
672 sysdeps/generic/s_cprojf.c, sysdeps/generic/s_csinf.c,
673 sysdeps/generic/s_csinhf.c, sysdeps/generic/s_csqrtf.c,
674 sysdeps/generic/s_ctanf.c, sysdeps/generic/s_ctanhf.c: Don't
675 weak_alias if the function name has been #defined.
676
677 * math/cabsf.c: Move ...
678 * sysdeps/generic/cabsf.c: ... here.
679 * math/cargf.c: Move ...
680 * sysdeps/generic/cargf.c: ... here.
681 * math/cimagf.c: Move ...
682 * sysdeps/generic/cimagf.c: ... here.
683 * math/conjf.c: Move ...
684 * sysdeps/generic/conjf.c: ... here.
685 * math/crealf.c: Move ...
686 * sysdeps/generic/crealf.c: ... here.
687
688 2004-01-13 Ulrich Drepper <drepper@redhat.com>
689
690 * Makeconfig: Define relro-LDFLAGS if have-z-relro==yes. Add it to
691 LDFLAGS.so and LDFLAGS-rtld.
692 (+link): Add relro-LDFLAGS.
693 * Makeconfig (shlib.lds): Place __libc_subfreeres, __libc_atexit, and
694 __libc_thread_subfreeres sections after .jcr section.
695 * config.make.in: Add have-z-relro.
696 * configure.in: Add check for -z relro option.
697 * include/link.h (struct link_map): Add relro_addr and relro_size
698 members.
699 * elf/dl-load.c (_dl_map_object_from_fd): Recognize PT_GNU_RELRO.
700 * elf/dl-reloc.c (_dl_relocate_object): At the end, make relro
701 part of loaded segments read-only.
702 * elf/elf.h: Define PT_GNU_RELRO.
703 * elf/rtld.c (_dl_start): Recognize PT_GNU_RELRO of ld.so.
704 (dl_main): Recognize PT_GNU_RELRO of the application. Call
705 _dl_debug_initialize and initialize l_info[DT_DEBUG] before
706 relocations.
707
708 2004-01-12 Jakub Jelinek <jakub@redhat.com>
709
710 * sysdeps/x86_64/strcspn.S: Fix typo in last patch.
711
712 2004-01-11 Andreas Jaeger <aj@suse.de>
713
714 * sysdeps/x86_64/__longjmp.S: Add cfi directives.
715
716 2004-01-10 Andreas Jaeger <aj@suse.de>
717
718 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Add cfi directives.
719 * sysdeps/unix/x86_64/sysdep.S (__syscall_error): Likewise.
720 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
721 * sysdeps/x86_64/strcspn.S: Likewise.
722 * sysdeps/x86_64/strspn.S: Likewise.
723
724 2004-01-08 Jakub Jelinek <jakub@redhat.com>
725
726 * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Add cfi_endproc
727 right before syscall and cfi_startproc before PSEUDO_END.
728 Clear %rbp in thread_start.
729
730 2004-01-05 Jakub Jelinek <jakub@redhat.com>
731
732 * posix/regcomp.c (regcomp): Fix comment typo.
733 (regfree): Free preg->translate, clear buffer, allocated, fastmap
734 and translate fields.
735
736 * posix/regcomp.c (build_charclass, buld_charclass_op): Change first
737 argument to unsigned RE_TRANSLATE_TYPE.
738 * posix/regex_internal.h (re_string_t): Change trans type to
739 unsigned RE_TRANSLATE_TYPE.
740 * posix/regex_internal.c (re_string_construct_common): Cast
741 trans to unsigned RE_TRANSLATE_TYPE.
742 (re_string_peek_byte_case, re_string_fetch_byte_case): Avoid fast
743 path if pstr->trans. Never translate the character through
744 pstr->trans.
745 * posix/Makefile (tests): Add bug-regex22.
746 (bug-regex22-ENV): Set.
747 * posix/bug-regex22.c: New test.
748
749 2004-01-02 Paolo Bonzini <bonzini@gnu.org>
750
751 * posix/regex_internal.c (re_node_set_add_intersect,
752 re_node_set_merge): Rewritten.
753 (re_node_set_insert, re_node_set_remove_at):
754 Avoid memmove, we know what direction we should copy and that we
755 are copying 32-bit words.
756 (re_node_set_compare): Iterate backwards.
757
758 2003-12-30 Paul Eggert <eggert@twinsun.com>
759
760 * time/mktime.c (verify): New macro.
761 (time_t_is_integer, twos_complement_arithmetic,
762 right_shift_propagates_sign, base_year_is_a_multiple_of_100,
763 C99_integer_division): Document these longstanding assumptions in the
764 code, and verify them at compile-time.
765
766 2004-01-02 Jakub Jelinek <jakub@redhat.com>
767
768 * posix/regex_internal.h (re_match_context_t): Add dfa member.
769 * posix/regexec.c (match_ctx_free_subtops, search_cur_bkref_entry,
770 match_ctx_add_sublast, sift_ctx_init, acquire_init_state_context,
771 prune_impossible_nodes, check_halt_state_context, proceed_next_node,
772 sift_states_backward, update_cur_sifted_state, check_dst_limits,
773 check_dst_limits_calc_pos, sift_states_bkref, transit_state,
774 check_subexp_matching_top, transit_state_sb, transit_state_mb,
775 transit_state_bkref, get_subexp, get_subexp_sub, check_arrival,
776 check_arrival_add_next_nodes, expand_bkref_cache, check_node_accept):
777 Remove dfa parameter. Get dfa from mctx. Adjust callers.
778 (re_search_internal): Initialize mctx.dfa.
779
780 * posix/regex_internal.c (re_node_set_insert): Remove unused variables.
781
782 * posix/regex_internal.h (re_dfa_t): Add syntax field.
783 * posix/regcomp.c (parse): Initialize dfa->syntax.
784 * posix/regexec.c (acquire_init_state_context,
785 prune_impossible_nodes, check_matching, check_halt_state_context,
786 proceed_next_node, sift_states_iter_mb, sift_states_backward,
787 update_cur_sifted_state, sift_states_bkref, transit_state,
788 transit_state_sb, transit_state_mb, transit_state_bkref,
789 get_subexp, get_subexp_sub, check_arrival, expand_bkref_cache,
790 build_trtable): Remove preg argument, add dfa argument instead
791 and remove dfa = preg->buffer initialization in the body.
792 Adjust all callers.
793 (check_node_accept_bytes, group_nodes_into_DFAstates,
794 check_node_accept): Likewise. Use dfa->syntax instead of
795 preg->syntax.
796 (check_arrival_add_next_nodes): Remove preg argument.
797
798 * posix/regex_internal.h (re_match_context_t): Make input
799 re_string_t instead of a pointer to it.
800 * posix/regex_internal.c (re_string_construct_common): Don't clear
801 pstr here...
802 (re_string_construct): ... but only here.
803 * posix/regexec.c (match_ctx_init): Remove input argument. Don't
804 initialize fields to zero.
805 (re_search_internal): Move input into mctx.input.
806 (acquire_init_state_context, check_matching,
807 check_halt_state_context, proceed_next_node,
808 clean_state_log_if_needed, sift_states_bkref, sift_states_iter_mb,
809 transit_state, transit_state_sb, transit_state_mb,
810 transit_state_bkref, get_subexp, check_arrival,
811 check_arrival_add_next_nodes, check_node_accept, extend_buffers):
812 Change mctx->input into &mctx->input and mctx->input->field into
813 mctx->input.field.
814
815 2004-01-02 Jakub Jelinek <jakub@redhat.com>
816 Paolo Bonzini <bonzini@gnu.org>
817
818 * posix/regex_internal.h (re_const_bitset_ptr_t): New type.
819 (re_string_t): Add newline_anchor, word_char and word_ops_used fields.
820 (re_dfa_t): Change word_char type to bitset. Add word_ops_used field.
821 (re_string_context_at, re_string_reconstruct): Remove last argument.
822 * posix/regex_internal.c (re_string_allocate): Initialize
823 pstr->word_char and pstr->word_ops_used.
824 (re_string_context_at): Remove newline_anchor argument.
825 Use input->newline_anchor instead, swap && conditions.
826 Only use IS_WIDE_WORD_CHAR if input->word_ops_used != 0.
827 Use input->word_char bitmap instead of IS_WORD_CHAR.
828 (re_string_reconstruct): Likewise.
829 Adjust re_string_context_at caller.
830 * posix/regexec.c (acquire_init_state_context,
831 check_halt_state_context, transit_state, transit_state_sb,
832 transit_state_mb, transit_state_bkref, check_arrival,
833 check_node_accept): Adjust re_string_context_at and
834 re_string_reconstruct callers.
835 (re_search_internal): Likewise. Set input.newline_anchor.
836 (build_trtable): Use dfa->word_char bitmap instead of IS_WORD_CHAR.
837 * posix/regcomp.c (init_word_char): Change return type to void.
838 Set dfa->word_ops_used.
839 (free_dfa_content): Don't free dfa->word_char.
840 (parse_expression): Remove error handling for init_word_char.
841
842 2004-01-01 Paolo Bonzini <bonzini@gnu.org>
843
844 * posix/regex_internal.h (re_dfastate_t): Fix size of the CONTEXT
845 bitfield.
846
847 * posix/regex_internal.c (re_node_set_insert): Rewrite.
848
849 2004-01-01 Ulrich Drepper <drepper@redhat.com>
850
851 * posix/getconf.c: Update copyright year.
852 * nss/getent.c: Likewise.
853 * nscd/nscd_nischeck.c: Likewise.
854 * iconv/iconvconfig.c: Likewise.
855 * iconv/iconv_prog.c: Likewise.
856 * elf/ldconfig.c: Likewise.
857 * catgets/gencat.c: Likewise.
858 * csu/version.c: Likewise.
859 * elf/ldd.bash.in: Likewise.
860 * elf/sprof.c (print_version): Likewise.
861 * locale/programs/locale.c: Likewise.
862 * locale/programs/localedef.c: Likewise.
863 * nscd/nscd.c (print_version): Likewise.
864 * debug/xtrace.sh: Likewise.
865 * malloc/memusage.sh: Likewise.
866 * malloc/mtrace.pl: Likewise.
867
868 2004-01-01 Petter Reinholdtsen <pere@hungry.com>
869
870 * stdlib/strfmon.c: Make formatting of left-justified currency
871 values match the the POSIX standard. When using format string
872 "[%-14#5.4n]" to print -123.45, the result should be
873 "[-$ 123.4500 ]", not "[-$123.4500 ]".
874
875 2004-01-01 Andreas Jaeger <aj@suse.de>
876
877 * resolv/Makefile (generated): New.
878
879 2003-12-31 Joseph S. Myers <jsm@polyomino.org.uk>
880
881 * CONFORMANCE: Update.
882
883 2003-12-30 Paul Eggert <eggert@twinsun.com>
884
885 * time/mktime.c: (my_mktime_localtime_r):
886 Remove. All uses changed to __localtime_r.
887 (__localtime_r) [!defined _LIBC]: New macro. Include "time_r.h" to
888 get its implementation.
889 Fix compile-command to allow for TIME_R_POSIX.
890
891 * time/strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r):
892 Remove. All uses changed to __localtime_r and __gmtime_r.
893 (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
894 Include "time_r.h" to get their implementations.
895
896 * time/timegm.c: Allow use in GNU applications outside glibc.
897 [defined HAVE_CONFIG_H]: Include <config.h>.
898 [!defined _LIBC]: Include "timegm.h", <time_r.h>.
899 Define __gmtime_r, and declare __mktime_internal.
900 (timegm): Define via a prototype, since we can safely assume C89 now.
901
902 * time/mktime.c (check_result): Use less-confusing report format.
903 "long" -> "long int", as per usual GNU style.
904 (main): Likewise.
905 Don't loop if the iteration overflows time_t.
906 Allow a negative step in the iteration.
907
908 * time/mktime.c: Assume freestanding C89 or better.
909 (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove;
910 assume they're 1.
911 (__P): Remove; not used.
912 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
913 (mktime, not_equal_tm, print_tm, check_result, main): Use prototypes.
914 Prototypes use const * where appropriate.
915 (main) [DEBUG]: Fix typo in testing code uncovered by above changes,
916 which caused the testing code to dump core on some hosts.
917
918 2003-12-31 Ulrich Drepper <drepper@redhat.com>
919
920 * locale/setlocale.c (setlocale): Avoid duplicating locale names
921 if we can reuse old strings.
922
923 * inet/rcmd.c: Provide better error message in case of unknown
924 host. Remove USE_IN_LIBIO.
925
926 * nscd/nscd.init: Updated version, more conforming with current
927 init file standards.
928
929 * nscd/nscd-client.h (_PATH_NSCDPID): Move the file into
930 /var/run/nscd directory.
931 (_PATH_NSCDSOCKET): Likewise.
932
933 * test-skeleton.c (timeout_handler): Fix error message.
934
935 * elf/dl-dst.h (DL_DST_REQUIRED): Avoid the complex operations if
936 CNT == 0.
937
938 2003-12-30 Jakub Jelinek <jakub@redhat.com>
939
940 * posix/regexec.c (get_subexp): Only set bkref_str after the first
941 loop, use buf + bkref_str_off in the loop instead.
942 * posix/bug-regex11.c (tests): Add 3 new tests.
943
944 * posix/regexec.c (clean_state_log_if_need): Rename to...
945 (clean_state_log_if_needed): ...this.
946 (transit_state_mb, get_subexp_sub): Adjust callers.
947
948 * sunrpc/pmap_clnt.c (pmap_set): Do CLNT_DESTROY even if CLNT_CALL
949 failed. Reported by Steve Grubb.
950
951 2003-12-29 Ulrich Drepper <drepper@redhat.com>
952
953 * elf/elf.h: Add a few definitions from Solaris 9.
954
955 2003-12-29 Andreas Schwab <schwab@suse.de>
956
957 * stdio-common/Makefile (CFLAGS-errlist.c, CFLAGS-siglist.c): Add
958 $(fno_unit_at_a_time) to avoid reordering assembler output.
959
960 2003-12-29 Jakub Jelinek <jakub@redhat.com>
961
962 * posix/regexec.c (re_copy_regs): Revert comment change.
963 Avoid memory leak if realloc fails.
964 (proceed_next_node): Return -2 if re_node_set_insert fails.
965 Return -2 if push_fail_stack fails.
966 (push_fail_stack): Change fs->alloc only after successful realloc.
967 (pop_fail_stack): Formatting.
968 (set_regs): If proceed_next_node returns -2, free eps_via_nodes and fs.
969 (check_arrival_add_next_nodes): Merge identical statements
970 from if branches.
971
972 * signal/Makefile (tests): Add tst-raise.
973 * signal/tst-raise.c: New test.
974
975 2003-12-28 Ulrich Drepper <drepper@redhat.com>
976
977 * posix/regcomp.c (mark_opt_subexp_iter): Declare IDX as int.
978
979 * posix/regexec.c (re_copy_regs): Fix testing for failed allocation.
980 (push_fail_stack): Add missing check for failed memory allocation.
981
982 * libio/libio.h: Use __builtin_expect in _IO_getc_unlocked,
983 _IO_peekc_unlocked, _IO_putc_unlocked, _IO_getwc_unlocked, and
984 _IO_putwc_unlocked.
985
986 2003-12-28 Andreas Jaeger <aj@suse.de>
987
988 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_y0): Raise only
989 overflow for 0 as argument. Raise Invalid exception for negative args.
990 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
991 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_y0): Likewise.
992 * sysdeps/ieee754/ldb-128/e_jnl.c (__ieee754_ynl): Likewise.
993 * sysdeps/ieee754/ldb-128/e_j0l.c (__ieee754_y0l): Likewise.
994 * sysdeps/ieee754/ldb-128/e_j1l.c (__ieee754_y1l): Likewise.
995 * sysdeps/ieee754/ldb-96/e_jnl.c (__ieee754_ynl): Likewise.
996 * sysdeps/ieee754/ldb-96/e_j0l.c (__ieee754_y0l): Likewise.
997 * sysdeps/ieee754/ldb-96/e_j1l.c (__ieee754_y1l): Likewise.
998 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
999 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Likewise.
1000 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Likewise.
1001
1002 * math/libm-test.inc (yn_test): Expect invalid exception for
1003 negative arguments.
1004 (y0_test): Likewise.
1005 (y1_test): Likewise.
1006
1007 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not raise
1008 execptions for exp(NaN).
1009
1010 2003-12-23 Paolo Bonzini <bonzini@gnu.org>
1011
1012 * posix/regex_internal.c (re_dfa_add_node): Initialize opt_subexp.
1013 * posix/regex_internal.h (re_token_type_t): Put OP_DUP_PLUS
1014 among the tokens, rather than among the epsilon-transiting nodes.
1015 (re_token_t): Add the opt_subexp flag.
1016 * posix/regcomp.c (optimize_utf8, calc_first,
1017 calc_next, calc_epsdest): Don't consider OP_DUP_PLUS.
1018 (mark_opt_subexp, mark_opt_subexp_iter): New functions.
1019 (parse_dup_op): Mostly rewritten, lowering OP_DUP_PLUS to
1020 OP_DUP_ASTERISK and marking optional subexpressions
1021 as such using mark_opt_subexp.
1022 * posix/regexec.c (set_regs): Initialize PREV_INDEX_MATCH
1023 and pass it to update_regs.
1024 (update_regs): Use the PREV_INDEX_MATCH parameter, together
1025 with the opt_subexp flag, in order to discard a final empty
1026 match of a repeated subexpression.
1027 * posix/BOOST.tests: Adjust test vectors.
1028 * posix/PCRE.tests: Likewise.
1029 * posix/rxspencer/tests: Likewise.
1030
1031 2000-05-22 Jakub Jelinek <jakub@redhat.com>
1032
1033 * sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Avoid using ?:
1034 with omitted middle operand.
1035
1036 2003-12-22 Jakub Jelinek <jakub@redhat.com>
1037
1038 * posix/regcomp.c: Remove C99-ism.
1039 * posix/tst-rxspencer.c: Likewise.
1040 Based on a patch by Alex Davis <alex14641@yahoo.com>.
1041
1042 2003-12-17 Paolo Bonzini <bonzini@gnu.org>
1043
1044 * posix/regex_internal.h [!_LIBC] (internal_function): Define.
1045 (re_string_allocate, re_string_construct, re_string_reconstruct,
1046 re_string_realloc_buffers, build_wcs_buffer,
1047 build_wcs_upper_buffer, build_upper_buffer,
1048 re_string_translate_buffer, re_string_destruct,
1049 re_string_elem_size_at, re_string_char_size_at,
1050 re_string_wchar_at, re_string_context_at,
1051 re_node_set_alloc, re_node_set_init_1
1052 re_node_set_init_2, re_node_set_init_copy,
1053 re_node_set_add_intersect, re_node_set_init_union,
1054 re_node_set_merge, re_node_set_insert
1055 re_node_set_compare, re_node_set_contains
1056 re_node_set_remove_at, re_dfa_add_node,
1057 re_acquire_state, re_acquire_state_context,
1058 free_state): Add internal_function to declaration.
1059
1060 * posix/regexec.c (match_ctx_init, match_ctx_clean,
1061 match_ctx_free, match_ctx_free_subtops,
1062 match_ctx_add_entry, search_cur_bkref_entry,
1063 match_ctx_clear_flag, match_ctx_add_subtop,
1064 match_ctx_add_sublast, sift_ctx_init,
1065 re_search_internal, re_search_2_stub, re_search_stub,
1066 re_copy_regs, acquire_init_state_context,
1067 prune_impossible_nodes, check_matching,
1068 check_halt_node_context, check_halt_state_context
1069 update_regs, proceed_next_node, push_fail_stack,
1070 pop_fail_stack, set_regs, free_fail_stack_return,
1071 sift_states_iter_mb, sift_states_backward
1072 update_cur_sifted_state, add_epsilon_src_nodes,
1073 sub_epsilon_src_nodes, check_dst_limits,
1074 check_dst_limits_calc_pos, check_subexp_limits,
1075 sift_states_bkref, clean_state_log_if_need,
1076 merge_state_array, transit_state,
1077 check_subexp_matching_top, transit_state_sb,
1078 transit_state_mb, transit_state_bkref,
1079 get_subexp, get_subexp_sub, find_subexp_node,
1080 check_arrival, check_arrival_add_next_nodes,
1081 find_collation_sequence_value, check_arrival_expand_ecl,
1082 check_arrival_expand_ecl_sub, expand_bkref_cache,
1083 build_trtable, check_node_accept_bytes, extend_buffers,
1084 group_nodes_into_DFAstates, check_node_accept): Likewise.
1085
1086 * posix/regex_internal.c (re_string_construct_common,
1087 re_string_skip_chars, create_newstate_common,
1088 register_state, create_ci_newstate, create_cd_newstate,
1089 calc_state_hash): Likewise.
1090 (re_string_peek_byte_case, re_fetch_byte_case): Change
1091 declaration from ANSI to K&R.
1092
1093 2003-12-16 Paolo Bonzini <bonzini@gnu.org>
1094
1095 * posix/regexec.c (build_trtable): Don't allocate the trtable
1096 until state->word_trtable is known. Don't hardcode UINT_BITS
1097 iterations on each bitset item.
1098
1099 2003-12-22 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1100
1101 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init):
1102 Initialize REF before passing it to _dl_lookup_symbol.
1103
1104 2003-12-21 Roland McGrath <roland@frob.com>
1105
1106 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Define with attribute_hidden.
1107
1108 2003-12-21 Jakub Jelinek <jakub@redhat.com>
1109
1110 * posix/regcomp.c (duplicate_node, duplicate_node_closure): Revert
1111 2003-11-24 changes.
1112 * posix/regexec.c (group_nodes_into_DFAstates): For CHARACTER with
1113 NEXT_{,NOT}WORD_CONSTRAINT check word_char bit.
1114 * posix/bug-regex19.c (tests): Add new tests.
1115
1116 * posix/regexec.c (check_dst_limits_calc_pos): Fix formatting.
1117
1118 * posix/regcomp.c (parse_dup_op): Return NULL if dup_elem is NULL,
1119 after checking syntax. Optimize.
1120 (calc_first): Fix comment.
1121 * posix/bug-regex13.c (tests): Add new tests.
1122
1123 2003-12-21 Roland McGrath <roland@redhat.com>
1124
1125 * manual/arith.texi (Parsing of Integers): Typo fix.
1126
1127 2003-12-20 Roland McGrath <roland@frob.com>
1128
1129 * sysdeps/generic/ifreq.c (__ifreq) [_HAVE_SA_LEN]: Fix typo:
1130 add missing dereference of IFREQS before counting loop.
1131
1132 2003-12-21 Andreas Schwab <schwab@suse.de>
1133
1134 * sysdeps/m68k/m68020/bits/atomic.h: Avoid matching memory
1135 constraints.
1136
1137 2003-12-20 Ulrich Drepper <drepper@redhat.com>
1138
1139 * elf/rtld.c (dl_main): Optimize order of subexpressions in if().
1140
1141 2003-12-18 Ulrich Drepper <drepper@redhat.com>
1142
1143 * stdio-common/printf_fp.c: Add support to use alternative decimal
1144 digits.
1145 * stdio-common/vfprintf.c (vfprintf): Pass use_outdigits flags to
1146 __printf_fp. Patch by Hamed Malek <hamed@bamdad.org>.
1147
1148 2003-12-18 Carlos O'Donell <carlos@baldric.uwo.ca>
1149
1150 * sysdeps/unix/sysv/linux/hppa/clone.S (__clone) [PIC]: Save PIC,
1151 reload PIC if we need to call __syscall_error, cleanup asm.
1152
1153 2003-12-17 Carlos O'Donell <carlos@baldric.uwo.ca>
1154
1155 * sysdeps/hppa/fpu/fclrexcpt.c (feclearexcept): Right shift
1156 FE_ALL_EXCEPT before complimenting.
1157 * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Use asm 'ma,' completer,
1158 and gcc '+r' constraint.
1159 * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
1160 * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
1161 * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Read raised
1162 exception bits, OR with envp, pass to fesetenv.
1163 * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Add delayed
1164 exception flushing, FE_UNDERFLOW is DBL_MIN/3.0, FE_INEXACT is
1165 triggered by M_PI/69.69 converted to single precision.
1166 * sysdeps/hppa/fpu/fsetexcptflg.c (fesetexceptflag): Set enable
1167 bits not raised exception bits.
1168
1169 * sysdeps/hppa/Makefile: Add dl-symaddr and dl-fptr to the
1170 correct build strings.
1171 * sysdeps/hppa/dl-fptr.h: New file.
1172 * sysdeps/hppa/dl-fptr.c: Removed.
1173 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Use _dl_make_ftpr,
1174 remove const qualifier for map.
1175 (_dl_function_address): Removed.
1176 * sysdeps/hppa/dl-lookupcfg.h: DL_LOOKUP_ADDRESS must clear
1177 PLABEL32 bits, define DL_AUTO_FUNCTION_ADDRESS and
1178 DL_STATIC_FUNCTION_ADDRESS, DL_DT_INIT_ADDRESS and
1179 DL_DT_FINI_ADDRESS use the previous two macros.
1180
1181 2003-12-17 Jakub Jelinek <jakub@redhat.com>
1182
1183 * malloc/mtrace.c (tr_old_memalign_hook): New variable.
1184 (tr_memalignhook): New function.
1185 (mtrace): Register tr_memalignhook.
1186 (muntrace): Deregister tr_memalignhook.
1187 * malloc/malloc.c (__posix_memalign): If __memalign_hook != NULL,
1188 call it directly instead of memalign_internal.
1189
1190 2003-12-17 Ulrich Drepper <drepper@redhat.com>
1191
1192 * misc/mntent_r.c: Change encoding to match recently changed decoder.
1193 Patch by Alexander Achenbach <xela@slit.de>.
1194
1195 2003-12-16 Steven Munroe <sjmunroe@us.ibm.com>
1196
1197 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Correct definition of
1198 vrregset_t.
1199
1200 2003-12-16 Steven Munroe <sjmunroe@us.ibm.com>
1201
1202 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [!__PPC64_ELF_H]: Extend
1203 conditional to include typedef elf_vrreg_t.
1204
1205 2003-12-17 Paolo Bonzini <bonzini@gnu.org>
1206
1207 * posix/regexec.c (re_search_internal): Limit search to the
1208 beginning of the buffer if the initial states are empty for
1209 contexts that do not include CONTEXT_BEGBUF or, if
1210 !preg->newline_anchor, that do not include any one of
1211 CONTEXT_BEGBUF and CONTEXT_NEWLINE.
1212
1213 2003-12-17 Andreas Jaeger <aj@suse.de>
1214
1215 * sysdeps/generic/system.c (__libc_system): Fix typo, reported by
1216 Kevin Pedretti <pedretti@ieee.org>.
1217
1218 2003-12-17 Ulrich Drepper <drepper@redhat.com>
1219
1220 * elf/rtld.c: Don't use strong_alias to define _rtld_local. This
1221 removes the visibility attributes which might be defined earlier
1222 for some gcc versions. Instead spell out what strong_alias does
1223 plus the visibility.
1224
1225 2003-12-16 Petter Reinholdtsen <pere@hungry.com>
1226
1227 * posix/regex_internal.h: Make sure the regex code compile
1228 with non-GCC compilers by hiding attributes.
1229
1230 2003-12-16 Jakub Jelinek <jakub@redhat.com>
1231 Paolo Bonzini <bonzini@gnu.org>
1232
1233 * posix/regexec.c (group_nodes_into_DFAstates): Never produce
1234 dests_ch items that are empty.
1235
1236 2003-12-14 Paolo Bonzini <bonzini@gnu.org>
1237
1238 * posix/regexec.c (check_arrival): Remove duplicate test.
1239
1240 2003-12-15 Ulrich Drepper <drepper@redhat.com>
1241
1242 * posix/regcomp.c: Make !RE_ENABLE_I18N work again.
1243 * posix/regex_internal.c: Likewise.
1244 * posix/regexec.c: Likewise.
1245 Patch by Paolo Bonzini.
1246
1247 2003-12-14 Paolo Bonzini <bonzini@gnu.org>
1248
1249 * posix/regex_internal.c (re_acquire_state_context):
1250 Compare the node sets after all the other comparisons.
1251
1252 2003-12-13 Paolo Bonzini <bonzini@gnu.org>
1253
1254 * posix/regexec.c (find_subexp_node, check_arrival,
1255 check_arrival_add_next_nodes, check_arrival_expand_ecl,
1256 check_arrival_expand_ecl_sub, expand_bkref_cache):
1257 Rename the FL_OPEN parameter to TYPE, which is either
1258 OP_OPEN_SUBEXP or OP_CLOSE_SUBEXP. Callers adjusted.
1259
1260 2003-12-12 Andreas Jaeger <aj@suse.de>
1261
1262 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Pass also 6th argument
1263 to syscall.
1264
1265 2003-12-11 Ulrich Drepper <drepper@redhat.com>
1266
1267 * sysdeps/unix/sysv/linux/kernel-features.h: Remove __ASSUME_VSYSCALL.
1268 There might always be processes which have no vDSO.
1269 * sysdeps/generic/dl-sysdep.c: Remove __ASSUME_VSYSCALL uses.
1270 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
1271
1272 2003-12-11 Carlos O'Donell <carlos@baldric.uwo.ca>
1273
1274 * sysdeps/generic/dl-fptr.c (COMPARE_AND_SWAP): Pass new and old
1275 in the right order.
1276
1277 2003-12-01 Jes Sorensen <jes@wildopensource.com>
1278
1279 * rt/tst-clock.c (do_test): Print message when skipping
1280 CLOCK_PROCESS_CPUTIME_ID test.
1281
1282 * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c: New file.
1283 Provide CLOCK_PROCESS_CPUTIME_ID only if /proc/sal/itc_drift is 0.
1284
1285 2003-12-02 David Mosberger <davidm@hpl.hp.com>
1286
1287 * sysdeps/ia64/elf/initfini.c: Add unwind info.
1288
1289 * sysdeps/ia64/dl-machine.h (elf_machine_matches_host): Mark with
1290 attribute "unused".
1291 (elf_machine_dynamic): Mark with attributes "unused" and "const".
1292 (elf_machine_runtime_setup): Likewise.
1293
1294 * sysdeps/generic/dl-fptr.c (make_fptr_table): Mark with
1295 attribute "always_inline".
1296 * sysdeps/ia64/dl-machine.h (__ia64_init_bootstrap_fdesc_table):
1297 Likewise.
1298
1299 * configure.in: Check whether compiler has libunwind support.
1300 * config.make.in (have-cc-with-libunwind): New variable.
1301 * config.h.in (HAVE_CC_WITH_LIBUNWIND): New macro.
1302 * Makeconfig (gnulib): If have-cc-with-libunwind is "yes", also
1303 mention -lunwind.
1304
1305 2003-11-12 David Mosberger <davidm@hpl.hp.com>
1306
1307 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Define DO_CALL_VIA_BREAK.
1308 Redefine DO_CALL to use vdso if supported, otherwise DO_CALL_VIA_BREAK.
1309 Likewise for DO_INLINE_SYSCALL. Make INTERNAL_SYSCALL use
1310 DO_INLINE_SYSCALL.
1311
1312 * sysdeps/unix/sysv/linux/ia64/vfork.S: Use DO_CALL_VIA_BREAK()
1313 instead of DO_CALL().
1314
1315 * sysdeps/unix/sysv/linux/ia64/clone2.S: Use break directly instead
1316 of DO_CALL().
1317
1318 * sysdeps/unix/sysv/linux/ia64/brk.S (__curbrk): Restructure it
1319 to take advantage of DO_CALL() macro.
1320 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Likewise.
1321 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Likewise.
1322
1323 * elf/rtld.c (dl_main): Restrict dl_sysinfo_dso check to first
1324 program header. On ia64, the check failed previously because
1325 there are two program headers.
1326
1327 2003-12-10 Andreas Jaeger <aj@suse.de>
1328 Ruediger Oertel <ro@suse.de>
1329
1330 * sysdeps/alpha/fpu/e_sqrt.c: Mark sqrt_data as used.
1331
1332 2003-12-07 Ulrich Drepper <drepper@redhat.com>
1333
1334 * sysdeps/i386/fpu/s_nexttowardf.c: Construct overflow value correctly.
1335 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
1336 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
1337 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
1338 * sysdeps/generic/s_nexttowardf.c: Likewise.
1339 * math/Makefile (tests): Add bug-nexttoward.
1340 * math/bug-nexttoward.c: New file.
1341
1342 * sysdeps/generic/s_nextafter.c: Make sure overflow exception is set.
1343 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
1344 * math/bug-nextafter.c (main): Add tests for overflow and negative
1345 values.
1346
1347 2003-12-06 Ulrich Drepper <drepper@redhat.com>
1348
1349 * math/Makefile (tests): Add bug-nextafter.
1350 * math/bug-nextafter.c: New file.
1351 * sysdeps/generic/s_nextafter.c: Construct overflow value correctly.
1352 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
1353 * math/libm-test.inc (nextafter_test): Add test for overflow after
1354 +/-FLT_MAX etc.
1355
1356 2003-12-04 Steven Munroe <sjmunroe@us.ibm.com>
1357
1358 * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Add masking
1359 of fenv.
1360 * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag): Likewise.
1361
1362 2003-12-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
1363
1364 * sysdeps/s390/s390-32/elf/setjmp.S (setjmp, __setjmp): Add END
1365 statements.
1366 * sysdeps/s390/s390-64/elf/setjmp.S (setjmp, __setjmp): Likewise.
1367 * sysdeps/s390/s390-32/sysdep.h (ENTRY): Add cfi_startproc directive.
1368 (END): Add cfi_endproc directive.
1369 * sysdeps/s390/s390-64/sysdep.h (ENTRY, END): Likewise.
1370 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Remove
1371 cfi_startproc and cfi_endproc directive.
1372 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
1373 * sysdeps/s390/s390-32/addmul_1.S (__mpn_addmul_1): Add CFI directives.
1374 * sysdeps/s390/s390-32/add_n.S (__mpn_add_n): Likewise.
1375 * sysdeps/s390/s390-64/add_n.S (__mpn_add_n): Likewise.
1376 * sysdeps/s390/s390-32/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1377 Likewise.
1378 * sysdeps/s390/s390-64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1379 Likewise.
1380 * sysdeps/s390/s390-32/mul_1.S (__mpn_mul_1): Likewise.
1381 * sysdeps/s390/s390-32/sub_n.S (__mpn_sub_n): Likewise.
1382 * sysdeps/s390/s390-64/sub_n.S (__mpn_sub_n): Likewise.
1383 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64): Likewise.
1384 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap): Likewise.
1385 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap): Likewise.
1386 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Likewise.
1387 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
1388 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
1389 Likewise.
1390 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
1391 Likewise.
1392 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Add CFI
1393 directives. Move thread_start out of ENTRY/PSEUDO_END block to
1394 make backchain terminate.
1395 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
1396
1397 * sysdeps/s390/s390-32/backtrace.c (trace_arg): New structure.
1398 (unwind_backtrace, unwind_getip): New variables.
1399 (init, __backchain_backtrace, backtrace_helper): New functions.
1400 (__backtrace): Use unwind info for backtrace instead of backchain
1401 walking if the unwind functions can be found.
1402 * sysdeps/s390/s390-64/backtrace.c: Likewise.
1403
1404 * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: New file.
1405
1406 * sysdeps/unix/sysv/linux/s390/sys/procfs.h (ELF_NGREG32): New #define.
1407 (elf_greg_t32, elf_gregset_t32, elf_fpregset_t32): New types.
1408 (elf_prstatus32, elf_prpsinfo32): New structures.
1409 (prgregset32_t, prfpregset32_t, prstatus32_t, prpsinfo32_t): New types.
1410
1411 * scripts/data/c++-types-s390-linux-gnu.data: New file.
1412 * scripts/data/c++-types-s390x-linux-gnu.data: New file.
1413
1414 2003-11-30 Petter Reinholdtsen <pere@hungry.com>
1415
1416 * stdlib/strfmon.c: Correct formatting of international currency
1417 values. The international currency formatting should prefer the
1418 int_* values if they are set for a locale, and use the domestic
1419 values if the int_* values are unset.
1420
1421 2003-12-03 Jakub Jelinek <jakub@redhat.com>
1422
1423 * posix/Makefile (distribute): Add BOOST.tests.
1424 (tests): Add tst-boost, depend on tst-boost-mem.
1425 (generated): Add tst-boost-mem and tst-boost.mtrace.
1426 (tst-boost-ARGS, tst-boost-ENV): Set.
1427 ($(objpfx)tst-boost-mem): New.
1428 * posix/tst-boost.c: New test.
1429 * posix/BOOST.tests: New file.
1430
1431 * posix/Makefile (distribute): Add PCRE.tests.
1432 (tests): Add tst-pcre, depend on tst-pcre-mem.
1433 (generated): Add tst-pcre-mem and tst-pcre.mtrace.
1434 (tst-pcre-ARGS, tst-pcre-ENV): Set.
1435 ($(objpfx)tst-pcre-mem): New.
1436 * posix/tst-pcre.c: New test.
1437 * posix/PCRE.tests: New file.
1438
1439 2003-12-02 Jakub Jelinek <jakub@redhat.com>
1440
1441 * intl/locale.alias: Use nb_NO instead of no_NO for bokm.l.
1442
1443 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
1444 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
1445
1446 2003-12-03 Ulrich Drepper <drepper@redhat.com>
1447
1448 * locale/programs/locarchive.c (enlarge_archive): Print size info
1449 only in verbose mode.
1450
1451 * locale/iso-3166.def: Three letter code of Romania changed.
1452
1453 2003-12-02 Roland McGrath <roland@redhat.com>
1454
1455 * scripts/config.sub: Update from master, timestamp='2003-10-20'.
1456 * scripts/config.guess: Update from master, timestamp='2003-10-20'.
1457
1458 2003-11-30 Andreas Jaeger <aj@suse.de>
1459
1460 * config.make.in (fno-unit-at-a-time): Define.
1461
1462 * configure.in: Add test for -fno-unit-at-a-time.
1463 Fix text for -fpie.
1464
1465 * csu/Makefile (CFLAGS-initfini.s): Add $(fno_unit_at_a_time).
1466 * locale/Makefile (CFLAGS-loadlocale.c): Likewise.
1467
1468 2003-12-01 Automatic
1469
1470 * version.h (VERSION): Bump to 2.3.3.
1471
1472 2003-11-30 Andreas Jaeger <aj@suse.de>
1473
1474 * stdio-common/vfprintf.c: Do not inline buffered_vfprintf to
1475 decrease stack usage.
1476
1477 2003-11-30 Andreas Schwab <schwab@suse.de>
1478
1479 * sysdeps/unix/sysv/linux/m68k/sysdep.h (PSEUDO_ERRVAL)
1480 (PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
1481
1482 2003-11-29 Ulrich Drepper <drepper@redhat.com>
1483
1484 * misc/mntent_r.c (decode_name): Be compatible with util-linux and
1485 recognize \134 as well.
1486
1487 2003-10-09 H.J. Lu <hongjiu.lu@intel.com>
1488
1489 * sysdeps/ia64/fpu/fraiseexcpt.c: Don't include <asm/fpu.h>.
1490
1491 2003-10-08 H.J. Lu <hongjiu.lu@intel.com>
1492
1493 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Don't include
1494 <asm/fpu.h>.
1495 (struct ia64_fpreg): New definition.
1496
1497 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Don't include
1498 <asm/elf.h>.
1499 (ELF_NGREG): New #define.
1500 (ELF_NFPREG): Likewise.
1501 (elf_greg_t): New type.
1502 (elf_gregset_t): Likewise.
1503 (elf_fpreg_t): Likewise.
1504 (elf_fpregset_t): Likewise.
1505
1506 2003-10-08 H.J. Lu <hongjiu.lu@intel.com>
1507
1508 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Include
1509 <sys/ucontext.h>.
1510 (__ptrace_request): Add PTRACE_GETREGS and PTRACE_SETREGS.
1511 (pt_all_user_regs): New type.
1512
1513 2003-10-10 Simon Josefsson <jas@extundo.com>
1514
1515 * argp/argp-namefrob.h [!_LIBC]: Include mempcpy.h, strcase.h,
1516 strchrnul.h, strndup.h (from gnulib).
1517 * argp/argp-parse.c: Add alloca.h include snippet verbatim from
1518 Autoconf manual.
1519 * argp/argp-help.c: Replace alloca.h include snipper with verbatim
1520 Autoconf manual version.
1521 * argp/argp.h: Map __restrict to restrict or empty string when
1522 necessary, copied verbatim from posix/regex.h.
1523
1524 2003-10-09 Steven Munroe <sjmunroe@us.ibm.com>
1525
1526 * Makefile: Allow for c++-types-$(config-machine)-$(config-os).data in
1527 addition to c++-types-$(base-machine)-$(config-os).data.
1528 * scripts/data/c++-types-powerpc-linux-gnu.data: New file.
1529 * scripts/data/c++-types-powerpc64-linux-gnu.data: New file.
1530
1531 2003-11-28 Ulrich Drepper <drepper@redhat.com>
1532
1533 * misc/mntent_r.c (decode_name): Fix decoding of tab, add decoding
1534 of newline.
1535 * manual/sysinfo.texi (mtab): Adjust description accordingly.
1536 Reported by Andries.Brouwer@cwi.nl.
1537
1538 * sysdeps/x86_64/fpu/libm-test-ulps: Add some more minor changes
1539 to compensate other setup.
1540
1541 2003-11-27 Andreas Jaeger <aj@suse.de>
1542
1543 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for new atan2 test.
1544
1545 * math/libm-test.inc (atan2_test): Add test that run infinitly.
1546 Reported by "Willus" <etc231etc231@willus.com>.
1547
1548 2003-11-27 Michael Matz <matz@suse.de>
1549
1550 * sysdeps/ieee754/dbl-64/mpsqrt.c (fastiroot): Fix 64-bit problem
1551 with wrong types.
1552
1553 2003-11-28 Jakub Jelinek <jakub@redhat.com>
1554
1555 * posix/regexec.c (acquire_init_state_context): Make inline.
1556 Add always_inline attribute.
1557 (check_matching): Add BE macro. Move if (cur_state->has_backref)
1558 into if (dfa->nbackref).
1559 (sift_states_backward): Fix comment.
1560 (transit_state): Add BE macro. Move if (next_state->has_backref)
1561 into if (dfa->nbackref && next_state). Don't check for next_state
1562 != NULL twice.
1563 * posix/regcomp.c (peek_token): Use opr.ctx_type instead of opr.idx
1564 for ANCHOR.
1565 (parse_expression): Only call init_word_char if word context will be
1566 needed.
1567
1568 * posix/bug-regex11.c (tests): Add new tests.
1569
1570 * posix/tst-regex.c: Include getopt.h.
1571 (timing): New variable.
1572 (main): Set timing to 1 if --timing argument is present.
1573 Add 2 new tests.
1574 (run_test, run_test_backwards): Handle timing.
1575
1576 2003-11-27 Jakub Jelinek <jakub@redhat.com>
1577
1578 * posix/regex_internal.h (re_string_t): Remove mbs_case field.
1579 Add offsets, valid_raw_len, raw_len, raw_stop, mbs_allocated and
1580 offsets_needed fields. Change icase, is_utf8 and map_notascii
1581 type from int bitfield to unsigned char.
1582 (MBS_ALLOCATED, MBS_CASE_ALLOCATED): Remove.
1583 (build_wcs_upper_buffer): Change prototype to return int.
1584 (re_string_peek_byte_case, re_string_fetch_byte_case): Remove
1585 defines, add prototypes.
1586 * posix/regex_internal.c (re_string_allocate): Don't initialize
1587 stop here. Don't initialize mbs_case. Set valid_raw_len.
1588 Use mbs_allocated instead of MBS_* macros.
1589 (re_string_construct): Don't initialize stop and valid_len here.
1590 Don't initialize mbs_case. Use mbs_allocated instead of MBS_*
1591 macros. Reallocate buffers if build_wcs_upper_buffer converted
1592 too few bytes. Set valid_len to bufs_len only for single byte
1593 no translation and set in that case valid_raw_len as well.
1594 (re_string_realloc_buffers): Reallocate offsets if not NULL.
1595 Use mbs_allocated instead of MBS_ALLOCATED. Don't reallocate
1596 mbs_case.
1597 (re_string_construct_common): Initialize raw_len, mbs_allocated,
1598 stop and raw_stop.
1599 (build_wcs_buffer): Apply pstr->trans before mbrtowc instead of
1600 after it. Set valid_raw_len. Don't set mbs_case.
1601 (build_wcs_upper_buffer): Return REG_NOERROR or REG_ESPACE.
1602 Only use the fast path if !pstr->offsets_needed. Apply pstr->trans
1603 before mbrtowc instead of after it. If upper case character
1604 uses different number of bytes than lower case, goto to the
1605 slow path. Don't call towupper unnecessarily twice. Set
1606 valid_raw_len as well. Handle in the slow path the case if
1607 lower and upper case use different number of characters.
1608 Don't set mbs_case.
1609 (re_string_skip_chars): Use valid_raw_len instead of valid_len.
1610 (build_upper_buffer): Don't set mbs_case. Add BE macro. Set
1611 valid_raw_len.
1612 (re_string_translate_buffer): Set mbs instead of mbs_case. Set
1613 valid_raw_len.
1614 (re_string_reconstruct): Use raw_len/raw_stop to initialize
1615 len/stop. Clear valid_raw_len and offsets_needed when clearing
1616 valid_len. Use mbs_allocated instead of MBS_* macros.
1617 Check original offset against valid_raw_len instead of valid_len.
1618 Remove mbs_case handling. Adjust valid_raw_len together with
1619 valid_len. If is_utf8 and looking for tip context, apply
1620 pstr->trans first. If buffers start with partial multi-byte
1621 character, initialize mbs array as well if mbs_allocated.
1622 Check return value of build_wcs_upper_buffer.
1623 (re_string_peek_byte_case): New function.
1624 (re_string_fetch_byte_case): New function.
1625 (re_string_destruct): Use mbs_allocated instead of MBS_ALLOCATED.
1626 Don't free mbs_case. Free offsets.
1627 * posix/regcomp.c (init_dfa): Only check if charset name is UTF-8
1628 if mb_cur_max == 6.
1629 * posix/regexec.c (re_search_internal): Initialize input.raw_stop
1630 as well. Use valid_raw_len instead of valid_len when looking
1631 through fastmap. Adjust registers through input.offsets.
1632 (extend_buffers): Allow build_wcs_upper_buffer to fail.
1633 * posix/bug-regex18.c (tests): Enable #ifdefed out tests. Add new
1634 tests.
1635
1636 2003-11-26 Jakub Jelinek <jakub@redhat.com>
1637
1638 * posix/regexec.c (check_subexp_limits): Only check close
1639 subexpression limitation if one is found. Formatting.
1640 (sift_states_backward, check_arrival, check_arrival_add_next_nodes):
1641 Formatting.
1642 * posix/bug-regex11.c (tests): Enable most #ifdefed out tests.
1643 Add new test.
1644
1645 2003-11-26 Ulrich Drepper <drepper@redhat.com>
1646
1647 * sysdeps/unix/sysv/linux/kernel-features.h
1648 (__ASSUME_PROT_GROWSUPDOWN): Define for 2.6.1 and up.
1649 * sysdeps/unix/sysv/linux/dl-execstack.c: Omit compatibility code
1650 if __ASSUME_PROT_GROWSUPDOWN is defined.
1651
1652 2003-11-26 Andreas Jaeger <aj@suse.de>
1653
1654 * sysdeps/unix/sysv/linux/dl-execstack.c
1655 (_dl_make_stack_executable): Set dl_stack_flags always for
1656 success.
1657
1658 2003-06-22 Petter Reinholdtsen <pere@hungry.com>
1659
1660 * locale/program/ld-monetary.c: Only check the first three
1661 characters in int_curr_symbol against ISO-4217, to make the
1662 separator character used by a locale independent of the content
1663 in iso-4217.def.
1664 * locale/iso-4217.def: Remove the space character from all
1665 currency values to get the new test code in ld-monetary.c working.
1666
1667 2003-11-21 David Mosberger <davidm@hpl.hp.com>
1668
1669 * elf/soinit.c (_fini): Put _fini() in .init_array section if
1670 HAVE_INITFINI_ARRAY is defined.
1671
1672 2003-11-25 Ulrich Drepper <drepper@redhat.com>
1673
1674 * sysdeps/i386/fpu/bits/mathinline.h: Introduce __libc_sqrtl symbol.
1675 Define it appropriately after last change. Use it where __sqrtl
1676 was used.
1677
1678 2003-11-25 H.J. Lu <hongjiu.lu@intel.com>
1679
1680 * sysdeps/i386/fpu/bits/mathinline.h (sqrt): Don't inline
1681 sqrt for gcc 3.3 and above.
1682
1683 2003-11-25 Ulrich Drepper <drepper@redhat.com>
1684
1685 * posix/runptests.c (main): Make errors fatal.
1686 * posix/PTESTS: One test in GA135 and GA136 check functionality
1687 which seems not guaranteed.
1688
1689 2003-11-25 Jakub Jelinek <jakub@redhat.com>
1690
1691 * posix/regexec.c (re_search_internal): If prune_impossible_nodes
1692 returned REG_NOMATCH, set match_last to -1. Don't initialize
1693 pmatch[0] needlessly. Fix comment.
1694 (prune_impossible_nodes): Don't segfault on NULL state_log entry.
1695 (set_regs): Fix comment.
1696 * posix/regcomp.c (parse_bracket_exp): Only set has_plural_match
1697 if adding both SIMPLE_BRACKET and COMPLEX_BRACKET.
1698 (build_charclass_op): Set has_plural_match if adding both
1699 SIMPLE_BRACKET and COMPLEX_BRACKET.
1700 * posix/bug-regex11.c (tests): Fix register values for one commented
1701 out test. Add new tests.
1702
1703 * posix/regex_internal.c (re_string_allocate): Make sure init_len
1704 is at least dfa->mb_cur_max.
1705 (re_string_reconstruct): If is_utf8, don't fall back into
1706 re_string_skip_chars just because idx points into a middle of
1707 valid UTF-8 character. Instead, set the wcs bytes which correspond
1708 to the partial character bytes to WEOF.
1709 * posix/regexec.c (re_search_internal): Allocate input.bufs_len + 1
1710 instead of dfa->nodes_len + 1 state_log entries initially.
1711 * posix/bug-regex20.c (main): Uncomment backwards case insensitive
1712 tests.
1713
1714 2003-11-24 Jakub Jelinek <jakub@redhat.com>
1715
1716 * posix/regex_internal.h (re_token_t): Add word_char bit. Add
1717 comment.
1718 (re_dfa_t): Add sb_char field.
1719 (bitset_mask): New function.
1720 * posix/regcomp.c (free_dfa_content): Free sb_char.
1721 (init_dfa): Don't initialize word_char unnecessarily.
1722 Initialize sb_char.
1723 (duplicate_node): Don't duplicate !word_char CHARACTERs with
1724 NEXT_WORD_CONSTRAINT constraint or word_char CHARACTERs with
1725 NEXT_NOTWORD_CONSTRAINT. Return -1 in *new_idx instead.
1726 (duplicate_node_closure): Handle clone_dest == -1 from
1727 duplicate_node.
1728 (peek_token): Initialize word_char bit.
1729 (parse_expression, parse_dup_op): Add comments.
1730 (parse_bracket_exp): Don't set bitmask bits for multi-byte char
1731 starting bytes here at the beginning. Mask off the bits right
1732 before creating SIMPLE_BRACKET.
1733 (build_charclass_op): Likewise.
1734 * posix/regexec.c (group_nodes_into_DFAstates) <case OP_PERIOD>: Only
1735 set accept bits for single-byte characters.
1736 (group_nodes_into_DFAstates): Don't rely on characters 0 .. 127
1737 being single byte encoded and the rest multi-byte.
1738 * posix/bug-regex19.c (tests): Add new tests.
1739 (do_mb_tests): Initialize t to *test.
1740 (main): Fail even on do_mb_tests errors.
1741
1742 2003-11-23 Ulrich Drepper <drepper@redhat.com>
1743
1744 * posix/regexec.c: Correct several memory allocation problems.
1745 Add more BE.
1746 * posix/regex_internal.c: Likewise.
1747 * posix/regcomp.c: Likewise.
1748
1749 * posix/regexec.c: Add const in a number of places.
1750 * posix/regex_internal.h: Make EPSILON_BIT a macro to help
1751 debugging. Its value isn't important.
1752
1753 2003-11-22 Ulrich Drepper <drepper@redhat.com>
1754
1755 * posix/PTESTS: Fix first test of GA143.
1756
1757 2003-11-21 Ulrich Drepper <drepper@redhat.com>
1758
1759 * posix/regex_internal.c (re_dfa_add_node): Add BE, reallocation
1760 isn't likely.
1761
1762 * locale/programs/charmap.c (charmap_read): If encoding is found
1763 not ASCII compatible, set enc_not_ascii_compatible.
1764 * locale/programs/charmap.h: Declare enc_not_ascii_compatible.
1765 * locale/programs/ld-ctype.c (ctype_startup): If
1766 enc_not_ascii_compatible is set, initialize to_nonascii to 1.
1767
1768 2003-11-22 Jakub Jelinek <jakub@redhat.com>
1769
1770 * elf/rtld.c (process_envvars): Only honor LD_USE_LOAD_BIAS
1771 if !__libc_enable_secure.
1772
1773 * sysdeps/generic/ldsodefs.h (_dl_use_load_bias): New _rtld_global
1774 field.
1775 * elf/rtld.c (_rtld_global): Initialize _dl_use_load_bias field.
1776 (dl_main): Set GL(dl_use_load_bias) default.
1777 (process_envvars): Set GL(dl_use_load_bias) from LD_USE_LOAD_BIAS.
1778 Add EXTRA_LD_ENVVARS_13.
1779 * elf/dl-support.c (_dl_use_load_bias): New variable.
1780 * elf/dl-load.c (_dl_map_object_from_fd): Mask c->mapstart
1781 with GL(dl_use_load_bias).
1782 * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add
1783 LD_USE_LOAD_BIAS.
1784 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Remove.
1785 (EXTRA_LD_ENVVARS_LINUX): Renamed to...
1786 (EXTRA_LD_ENVVARS_13): ... this. Remove case at the beginning.
1787 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS):
1788 Don't undefine first. Remove EXTRA_LD_ENVVARS_LINUX.
1789
1790 2003-11-21 Ulrich Drepper <drepper@redhat.com>
1791
1792 * posix/regcomp.c (duplicate_node): Remove unnecessary local variable.
1793
1794 * posix/regcomp.c (re_dfa_add_tree_node): Make fourth parameter a
1795 pointer. Adjust callers.
1796
1797 * posix/regcomp.c (fetch_token): Change interface to match
1798 peek_token. This avoids some copying and reduces code size.
1799
1800 2003-11-21 Jakub Jelinek <jakub@redhat.com>
1801
1802 * posix/bug-regex19.c (tests): Add more tests.
1803
1804 * posix/bug-regex11.c: And one more commented out test.
1805
1806 * posix/tst-rxspencer.c (mb_tests): Don't run identical multi-byte
1807 tests multiple times unnecessarily.
1808
1809 * posix/bug-regex19.c (BRE, ERE): Define.
1810 (tests): Add many new tests, remove UTF-8 ones.
1811 (do_one_test, do_mb_tests): New functions.
1812 (main): Rewritten using do_one_test and do_mb_tests.
1813
1814 2003-11-20 Ulrich Drepper <drepper@redhat.com>
1815
1816 * posix/PTESTS: Fix first test in GA143.
1817
1818 2003-11-20 Jakub Jelinek <jakub@redhat.com>
1819
1820 * posix/regex_internal.h (re_dfastate_t): Remove trtable_search.
1821 Add word_trtable.
1822 * posix/regex_internal.c (create_newstate_common, free_state):
1823 Don't free trtable_search.
1824 * posix/regexec.c (check_matching): Remove fl_search argument.
1825 (transit_state_sb): Likewise. #ifdef out as unused.
1826 (build_trtable): Remove fl_search argument. Set state->word_trtable
1827 and state->trtable. Build separate word and non-word tables if
1828 multi-byte and they differ for some character.
1829 (transit_state): Remove fl_search argument. Don't update
1830 state->trtable here. Handle state->word_trtable.
1831 #ifdef out unused call to transit_state_sb.
1832 (re_search_internal): Update check_matching caller.
1833 (group_nodes_into_DFAstates): Don't clear non-ascii chars in accepts
1834 bitmask for multi-byte locales.
1835 * posix/bug-regex19.c (tests): Enable some commented out tests, add
1836 2 new tests.
1837 * posix/tst-rxspencer.c (mb_tests): Don't test [[=b=]] for now as
1838 multi-byte. Don't run identical multi-byte tests multiple times
1839 unnecessarily.
1840 (main): Check setlocale return value.
1841 * posix/Makefile (tst-rxspencer-ARGS): Add --utf8 argument.
1842 (tst-rxspencer-ENV): Remove MALLOC_TRACE, add LOCPATH.
1843 ($(objpfx)tst-rxspencer-mem): Run another tst-rxspencer test
1844 here, without --utf8 argument but with MALLOC_TRACE.
1845
1846 2003-11-19 Jakub Jelinek <jakub@redhat.com>
1847
1848 * posix/regexec.c (extend_buffers): Don't allocate
1849 twice as big state_log as needed. Don't modify pstr->valid_len
1850 for mb_cur_max == 1 !icase !trans.
1851
1852 * posix/regcomp.c (free_bin_tree): Removed.
1853 (create_tree): Add dfa argument. Don't call re_malloc for
1854 each tree, instead allocate from str_tree_storage.
1855 (re_dfa_add_tree_node): New function.
1856 (free_dfa_content): Handle freeing if dfa->nodes == NULL
1857 or dfa->state_table == NULL.
1858 (re_compile_internal): Call free_dfa_content if init_dfa
1859 fails. Call free_workarea_compile, re_string_destruct
1860 and free_dfa_content for most of the other failure paths.
1861 (init_dfa): Initialize str_tree_storage_idx.
1862 Don't clear any fields on allocation failure.
1863 (free_workarea_compile): Free str_tree_storage chunks
1864 instead of free_bin_tree (dfa->str_tree).
1865 (parse): Call re_dfa_add_tree_node instead of re_dfa_add_node
1866 followed by create_tree. Add dfa argument to remaining
1867 create_tree calls. Remove new_idx variable. Remove calls
1868 to free_bin_tree.
1869 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp,
1870 parse_dup_op, parse_bracket_exp, build_charclass_op): Likewise.
1871 (duplicate_tree): Remove calls to free_bin_tree, add dfa
1872 argument to create_tree.
1873 * posix/regex_internal.h (BIN_TREE_STORAGE_SIZE): Define.
1874 (bin_tree_storage_t): New type.
1875 (re_dfa_t): Add str_tree_storage and str_tree_storage_idx
1876 fields.
1877 * posix/Makefile (tests): Add bug-regex21.
1878 (generated): Add bug-regex21-mem, bug-regex21.mtrace,
1879 tst-rxspencer-mem and tst-rxspencer.mtrace.
1880 (tests): Depend on $(objpfx)bug-regex21-mem
1881 and $(objpfx)tst-rxspencer-mem.
1882 (bug-regex21-ENV, tst-rxspencer-ENV): Set.
1883 ($(objpfx)bug-regex21-mem, $(objpfx)tst-rxspencer-mem): New.
1884 * posix/tst-rxspencer.c (main): Add call to mtrace.
1885 Free line at the end.
1886 * posix/bug-regex21.c: New test.
1887
1888 2003-11-19 Ulrich Drepper <drepper@redhat.com>
1889
1890 * posix/bug-regex20.c: Correct invalid UTF-8 sequences.
1891
1892 * posix/regex_internal.c (build_wcs_upper_buffer): If mbrtowc
1893 fails, just use the byte, do no fancy conversions.
1894
1895 * posix/regex_internal.h (re_string_first_byte): Use ->valid_len
1896 not ->len.
1897 (re_string_is_single_byte_char): Likewise.
1898
1899 2003-11-18 Ulrich Drepper <drepper@redhat.com>
1900
1901 * posix/regexec.c (get_subexp): After calling get_subexp_sub
1902 reload buf and bkref_str. Little optimization by avoiding memcmp.
1903
1904 2003-11-14 David Mosberger <davidm@hpl.hp.com>
1905
1906 * sysdeps/unix/sysv/linux/ia64/sysdep.h
1907 (GAS_ALIGN_BREAKS_UNWIND_INFO): Define this macro to indicate
1908 that all existing GAS versions have a problem with .align inside
1909 a function.
1910 * sysdeps/ia64/memccpy.S: Work around GAS_ALIGN_BREAKS_UNWIND_INFO bug.
1911 * sysdeps/ia64/memcpy.S: Likewise.
1912 * sysdeps/ia64/memset.S: Likewise.
1913 * sysdeps/ia64/memmove.S: Likewise. Also move the jump-table to
1914 out of .text into .rodata, where it belongs.
1915
1916 * sysdeps/unix/sysv/linux/ia64/pipe.S: There is no need to
1917 save/restore input-arguments, because they're necessarily
1918 preserved by the kernel to support syscall-restart.
1919
1920 2003-11-18 Jakub Jelinek <jakub@redhat.com>
1921
1922 * posix/regex_internal.h (re_token_type_t): Remove unused ALT,
1923 END_OF_RE_TOKEN_T and SUBEXP. Reorder values. Add OP_UTF8_PERIOD
1924 and EPSILON_BIT.
1925 (IS_EPSILON_NODE): Just test if EPSILON_BIT is set.
1926 (ACCEPT_MB_NODE): Return 1 for OP_UTF8_PERIOD as well.
1927 * posix/regex_internal.c (create_ci_newstate, create_cd_newstate):
1928 Handle OP_UTF8_PERIOD.
1929 (re_string_reconstruct): Set valid_len for single byte char searching
1930 with no translation and case sensitivity.
1931 * posix/regcomp.c (re_compile_fastmap_iter, calc_first): Handle
1932 OP_UTF8_PERIOD.
1933 (re_compile_internal): Don't call optimize_utf8 if preg->translate
1934 != NULL.
1935 (optimize_utf8): Remove BACK_SLASH case.
1936 Transform OP_PERIOD into OP_UTF8_PERIOD if the searching can be
1937 optimized.
1938 (parse_bracket_exp): Don't create SIMPLE_BRACKET if it doesn't have
1939 any bits set and COMPLEX_BRACKET is used.
1940 * posix/regexec.c (transit_state_mb): Fix comment typo.
1941 (group_nodes_into_DFAstates, check_node_accept): Handle
1942 OP_UTF8_PERIOD.
1943 (check_node_accept_bytes): Likewise. Reorder slightly so that
1944 re_string_char_size_at and re_string_elem_size_at are called
1945 only when needed.
1946 * posix/bug-regex20.c (BRE, ERE): Define.
1947 (tests): Use them to make lines shorter. Expect . to be
1948 optimized. Add lots of new tests.
1949 (main): Run (ATM just case sensitive) test with backwards searching
1950 as well.
1951
1952 2003-11-18 Jakub Jelinek <jakub@redhat.com>
1953
1954 * io/bug-ftw4.c: Include string.h.
1955 * posix/fnmatch.c (mbsinit): Remove define.
1956
1957 2003-11-17 Jakub Jelinek <jakub@redhat.com>
1958
1959 * posix/regcomp.c (optimize_utf8): Optimize multi-byte chars as
1960 well.
1961 * posix/bug-regex20.c (tests): Add new tests. Multi-byte char
1962 followed by dup operator is expected to be optimized.
1963
1964 * posix/regexec.c (check_node_accept_bytes): Move nrules and j
1965 variables to the block where they are only used, initialize
1966 nrules only immediately before using it.
1967
1968 2003-11-15 Andreas Jaeger <aj@suse.de>
1969
1970 * sysdeps/x86_64/fpu/s_scalbnl.S: New file.
1971 * sysdeps/x86_64/fpu/s_truncl.S: New file.
1972 * sysdeps/x86_64/fpu/s_nearbyintl.S: New file.
1973 * sysdeps/x86_64/fpu/s_floorl.S: New file.
1974 * sysdeps/x86_64/fpu/s_ilogbl.S: New file.
1975 * sysdeps/x86_64/fpu/e_remainderl.S: New file.
1976
1977 * math/libm-test.inc (floor_test): Test also ±0.25.
1978 (ceil_test): Test -0.25.
1979
1980 2003-11-17 Ulrich Drepper <drepper@redhat.com>
1981
1982 * sysdeps/posix/getaddrinfo.c: Add support for destination address
1983 selection according to RFC 3484.
1984
1985 2003-11-15 Ulrich Drepper <drepper@redhat.com>
1986
1987 * posix/regex_internal.h: Add forward declaration of re_dfa_t.
1988 Replace last two parameters of re_string_allocate and
1989 re_string_construct with pointer to DFA.
1990 (re_dfa_t): Add map_notascii field.
1991 * posix/regcomp.c (re_compile_internal): Add call of
1992 re_string_construct.
1993 (init_dfa): Initialize map_notascii.
1994 * posix/regex_internal.c: Adjust definitions of re_string_allocate
1995 and re_string_construct.
1996 Pass DFA to re_string_construct. Adjust definition. Initialize
1997 map_notascii field.
1998 (build_wcs_upper_buffer): If map_notascii is zero use simplified
1999 method to map ASCII values to upper case.
2000 * posix/regex.c: Include localeinfo.h.
2001 * posix/regexec.c: Adjust call of re_string_allocate.
2002
2003 * locale/langinfo.h: Add _NL_CTYPE_MAP_TO_NONASCII.
2004 * locale/localeinfo.h (LIMAGIC): Change value.
2005 * locale/categories.def. Add entry for _NL_CTYPE_MAP_TO_NONASCII.
2006 * locale/C-ctype.h: Likewise.
2007 * locale/programs/ld-ctype.c: Compute whether any mapping maps from
2008 ASCII to non-ASCII value. Write out that value.
2009
2010 * wcsmbs/mbsinit.c: Undef mbsinit and __mbsinit.
2011 * include/wchar.h: Provide inline versions of mbsinit and __mbsinit.
2012
2013 2003-11-14 Jakub Jelinek <jakub@redhat.com>
2014
2015 * posix/tst-rxspencer.c (check_match): @ without any following
2016 characters must match only end of string.
2017 (main): Fix filename in error message.
2018
2019 2003-11-12 David Mosberger <davidm@hpl.hp.com>
2020
2021 * sysdeps/ia64/dl-machine.h: Force inlining of
2022 elf_machine_runtime_setup().
2023
2024 2003-11-13 Andreas Jaeger <aj@suse.de>
2025
2026 * math/Makefile (CFLAGS-test-float.c): Add -fno-builtin.
2027 (CFLAGS-test-double.c): Likewise.
2028 (CFLAGS-test-ldouble.c): Likewise.
2029 (CPPFLAGS-test-ifloat.c): Likewise.
2030 (CPPFLAGS-test-idouble.c): Likewise.
2031 (CPPFLAGS-test-ildoubl.c): Likewise.
2032
2033 * math/libm-test.inc (ceil_test): Test ceil (0.25).
2034
2035 2003-11-04 Ulrich Drepper <drepper@redhat.com>
2036
2037 * sysdeps/unix/sysv/linux/ifaddrs.c: Make sure it's the kernel who
2038 sends the netlink data.
2039 * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
2040
2041 2003-11-13 Jakub Jelinek <jakub@redhat.com>
2042
2043 * posix/regcomp.c (optimize_utf8): Optimize even if SIMPLE_BRACKET
2044 with no bits set for >= 0x80 chars is seen.
2045 * posix/bug-regex20.c (tests): Add new tests. Expect [ABC] to be
2046 optimized.
2047 (main): Run all tests with RE_ICASE as well.
2048
2049 2003-11-13 Ulrich Drepper <drepper@redhat.com>
2050
2051 * posix/Makefile: Add rules to build and run tst-rxspencer.
2052 (distribute): Add rxspencer/tests and rxspencer/COPYRIGHT.
2053 * posix/tst-rxspencer.c: New file.
2054 * posix/rxspencer/tests: New file.
2055 * posix/rxspencer/COPYRIGHT: New file.
2056 Patch mostly by Jakub Jelinek.
2057
2058 * posix/regcomp.c (parse_bracket_exp): Don't check for range if
2059 this is no option given the first token.
2060
2061 * posix/regcomp.c (parse_bracket_exp): Fix test for EOS after
2062 hyphen in range expression. Return EBRACK in this case.
2063
2064 * posix/regcomp.c (parse_bracket_element): Reject hyphens unless
2065 we expect them or it's the last element in the bracket expression.
2066 Indicated by new parameter. Adjust all callers.
2067
2068 * posix/runtests.c (run_a_test): If regcomp failed, reset last_pattern.
2069 Prettier error messages.
2070
2071 * posix/regcomp.c (parse_dup_op): Fail with REG_BADBR is first
2072 number in {,} expression is larger.
2073
2074 2003-11-13 Andreas Jaeger <aj@suse.de>
2075
2076 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
2077 Define appropriately for x86_64.
2078 (__ASSUME_UTIMES): Likewise.
2079 (__ASSUME_CLONE_THREAD_FLAGS): Likewise.
2080
2081 * sysdeps/x86_64/fpu/s_ceill.S: New file.
2082
2083 2003-11-13 Ulrich Drepper <drepper@redhat.com>
2084
2085 * posix/regcomp.c (parse_expression): In BRE consecutive
2086 duplications are not allowed.
2087
2088 2003-11-12 Ulrich Drepper <drepper@redhat.com>
2089
2090 * posix/regcomp.c (parse_bracket_exp): If end of expression is
2091 seen, return EBRACK error, not BADPAT.
2092
2093 * posix/regcomp.c (parse_expression): If token is OP_OPEN_DUP_NUM
2094 and RE_CONTEXT_INVALID_DUP syntax flag is set, fail.
2095 * posix/regex.h (RE_CONTEXT_INVALUD_OPS): New macro.
2096 (RE_SYNTAX_POSIX_BASIC): Use RE_CONTEXT_INVALUD_OPS.
2097
2098 * posix/regcomp.c (parse_sub_exp): In case of not-matching ( )
2099 return REG_EPAREN.
2100
2101 * posix/PTESTS: Cleanup. Fix typoes. Correct bugs in 2003.2.
2102 * posix/runptests.c (main): Handle comments.
2103 * posix/PTESTS2C.sed: Handle comments.
2104
2105 2003-11-12 Jakub Jelinek <jakub@redhat.com>
2106
2107 * posix/regcomp.c (optimize_utf8): New function.
2108 (re_compile_fastmap_iter): Use dfa->mb_cur_max > 1 instead
2109 of !icase.
2110 (re_compile_internal): Call optimize_utf8 if not case insensitive
2111 and in UTF-8 locale.
2112 * posix/regex_internal.h: Ifdef out some prototypes if
2113 RE_NO_INTERNAL_PROTOTYPES is defined to shut up warnings.
2114 * posix/Makefile (tests): Add bug-regex20.
2115 (bug-regex20-ENV): Add LOCPATH.
2116 * posix/bug-regex20.c: New test.
2117
2118 2003-11-12 Jakub Jelinek <jakub@redhat.com>
2119
2120 * io/ftw.c (NFTW_NEW_NAME, NFTW_OLD_NAME): Add prototypes.
2121
2122 2003-11-12 Jakub Jelinek <jakub@redhat.com>
2123
2124 * posix/tst-regex.c (umemlen): New variable.
2125 (test_expr): Add expectedicase argument. Test case insensitive
2126 searches as well as backwards searches (case sensitive and
2127 insensitive) too.
2128 (run_test): Add icase argument. Use it to compute regcomp flags.
2129 (run_test_backwards): New function.
2130 (main): Cast read to size_t to avoid warning. Set umemlen.
2131 Add expectedicase arguments to test_expr.
2132 * posix/regex_internal.c (re_string_reconstruct): If is_utf8,
2133 find previous character by walking back instead of converting
2134 all chars from beginning.
2135
2136 2003-11-12 Jakub Jelinek <jakub@redhat.com>
2137
2138 * posix/regex_internal.h (struct re_string_t): Add is_utf8
2139 and mb_cur_max fields.
2140 (struct re_dfa_t): Likewise. Reorder fields to make structure
2141 smaller on 64-bit arches.
2142 (re_string_allocate, re_string_construct): Add mb_cur_max and
2143 is_utf8 arguments.
2144 (re_string_char_size_at, re_string_wchar_at): Use pstr->mb_cur_max
2145 instead of MB_CUR_MAX.
2146 * posix/regcomp.c (re_compile_fastmap_iter): Use dfa->mb_cur_max
2147 instead of MB_CUR_MAX.
2148 (re_compile_internal): Pass new arguments to re_string_construct.
2149 (init_dfa): Initialize mb_cur_max and is_utf8 fields.
2150 (peek_token, peek_token_bracket): Use input->mb_cur_max instead
2151 of MB_CUR_MAX.
2152 (parse_expression, parse_bracket_exp, parse_charclass_op): Use
2153 dfa->mb_cur_max instead of MB_CUR_MAX.
2154 * posix/regex_internal.c (re_string_construct_common): Add
2155 mb_cur_max and is_utf8 arguments. Initialize fields with them.
2156 (re_string_allocate, re_string_construct): Add mb_cur_max and
2157 is_utf8 arguments, pass them to re_string_construct_common.
2158 Use mb_cur_max instead of MB_CUR_MAX.
2159 (re_string_realloc_buffers): Use pstr->mb_cur_max instead of
2160 MB_CUR_MAX.
2161 (re_string_reconstruct): Likewise.
2162 (re_string_context_at): Use input->mb_cur_max instead of
2163 MB_CUR_MAX.
2164 (create_ci_newstate, create_cd_newstate): Use dfa->mb_cur_max
2165 instead of MB_CUR_MAX.
2166 * posix/regexec.c (re_search_internal): Likewise.
2167 Pass new arguments to re_string_allocate.
2168 (check_matching, transit_state_sb): Use dfa->mb_cur_max instead of
2169 MB_CUR_MAX.
2170 (extend_buffers): Use pstr->mb_cur_max instead of MB_CUR_MAX.
2171
2172 2003-11-12 Jakub Jelinek <jakub@redhat.com>
2173
2174 * posix/Makefile (tests): Add bug-regex19.
2175 (bug-regex19-ENV): Add LOCPATH.
2176 * posix/bug-regex19.c: New test.
2177
2178 2003-11-11 Jakub Jelinek <jakub@redhat.com>
2179
2180 * posix/regcomp.c (re_compile_fastmap_iter): Handle RE_ICASE
2181 with MB_CUR_MAX > 1 locales in the fastmap.
2182
2183 2003-11-11 Jakub Jelinek <jakub@redhat.com>
2184
2185 * posix/regex_internal.c (build_wcs_buffer): Fix comment typo.
2186 (build_wcs_upper_buffer): Likewise. Use towupper for wchar_t instead
2187 of toupper.
2188 * posix/Makefile (tests): Add bug-regex17 and bug-regex18.
2189 (bug-regex17-ENV, bug-regex18-ENV): Add LOCPATH.
2190 * posix/bug-regex17.c: New file
2191 * posix/bug-regex18.c: New file.
2192
2193 2003-10-08 Thorsten Kukuk <kukuk@suse.de>
2194
2195 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (pread, pwrite):
2196 Define __NR_pread/__NR_pwrite if not done in kernel headers
2197
2198 2003-11-11 Roland McGrath <roland@redhat.com>
2199
2200 * manual/xtract-typefun.awk: Swallow [(){}*] from function names.
2201
2202 * manual/Makefile (info): Don't depend on dir-add.info.
2203 (libc.dvi libc.pdf libc.info): Depend on dir-add.texi.
2204 (dir-add.info): Target removed, replaced with ...
2205 (dir-add.texi): New target.
2206 (distribute): Add it.
2207 (install): Remove variant with --section arguments.
2208 Let the @dircategory directives do their work.
2209 (mostlyclean): Don't remove dir-add.info here.
2210 (realclean): Remove dir-add.texi here.
2211 * manual/libc.texinfo: @include dir-add.texi
2212 * configure.in: Remove check for old Debian install-info.
2213 * configure: Regenerated.
2214 * config.make.in (OLD_DEBIAN_INSTALL_INFO): Variable removed.
2215
2216 2003-11-08 Andreas Schwab <schwab@suse.de>
2217
2218 * scripts/data/c++-types-ia64-linux-gnu.data: New file.
2219
2220 2003-11-10 Carlos O'Donell <carlos@baldric.uwo.ca>
2221
2222 * io/ftwtest-sh: Fix nested sed commands.
2223
2224 2003-11-10 Jakub Jelinek <jakub@redhat.com>
2225
2226 * posix/regex_internal.h (re_string_char_size_at): Don't look beyond
2227 valid_len wide chars.
2228
2229 2003-11-09 Roland McGrath <roland@redhat.com>
2230
2231 * manual/examples/dir2.c (one): Add const to argument type.
2232 Reported by J de Haan <j.de.haan@home.nl>.
2233
2234 2003-11-07 Ulrich Drepper <drepper@redhat.com>
2235
2236 * po/pl.po: Update from translation team.
2237
2238 2003-11-07 Jakub Jelinek <jakub@redhat.com>
2239
2240 * io/ftw.c (NFTW_OLD_NAME, NFTW_NEW_NAME): Define.
2241 (ftw_dir, ftw_startup): Add __attribute ((noinline)).
2242 (NFTW_OLD_NAME, NFTW_NEW_NAME): New functions.
2243 (NFTW_NAME): Only define if !_LIBC, add versioned_symbol
2244 and compat_symbol.
2245 * io/ftw64.c (NFTW_OLD_NAME, NFTW_NEW_NAME): Define.
2246 * io/Versions (libc): Export nftw@@GLIBC_2.3.3
2247 and nftw64@@GLIBC_2.3.3.
2248
2249 * io/ftw.h (FTW_ACTIONRETVAL): New flag.
2250 (FTW_CONTINUE, FTW_STOP, FTW_SKIP_SUBTREE, FTW_SKIP_SIBLINGS): New.
2251 * io/ftw.c (ftw_dir): Add old_dir argument.
2252 Clear result if it was FTW_SKIP_SIBLINGS after processing all
2253 dir entries. Change cwd back if old_dir != NULL.
2254 (process_entry): Adjust caller. Don't change cwd back here.
2255 Change FTW_SKIP_SUBTREE result to 0.
2256 (ftw_startup): Adjust ftw_dir caller.
2257 Clear result if it was FTW_SKIP_SUBTREE or FTW_SKIP_SIBLINGS.
2258 * io/ftwtest.c (skip_subtree, skip_siblings): New variables.
2259 (options, main): Add --skip-subtree and --skip-siblings options.
2260 (cb): Use return FTW_CONTINUE instead of return 0.
2261 Handle --skip-subtree and --skip-siblings.
2262 * io/ftwtest-sh: Add tests for FTW_ACTIONRETVAL.
2263 * manual/filesys.texi: Document FTW_ACTIONRETVAL.
2264
2265 2003-11-04 Jakub Jelinek <jakub@redhat.com>
2266
2267 * io/ftw.c (ftw_dir): Close dir if callback with FTW_D type returns
2268 non-zero.
2269 * io/Makefile (tests): Add bug-ftw4.
2270 * io/bug-ftw4.c: New test.
2271
2272 2003-10-27 Daniel Jacobowitz <drow@mvista.com>
2273
2274 * libio/libioP.h [_IO_USE_OLD_IO_FILE]
2275 (struct _IO_FILE_complete_plus): New type.
2276 * libio/oldiofopen.c (_IO_old_fopen): Use _IO_FILE_complete_plus.
2277 * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
2278 * libio/oldiopopen.c (struct _IO_proc_file, _IO_old_popen): Likewise.
2279 Call _IO_old_init instead of _IO_init.
2280
2281 2003-11-03 Ulrich Drepper <drepper@redhat.com>
2282
2283 * intl/locale.alias: nb_NO is now the correct name, not no_NO.
2284
2285 * locale/iso-639.def: Add Blin.
2286 Patch by Daniel Yacob <locales@geez.org>.
2287
2288 2003-10-31 Steven Munroe <sjmunroe@us.ibm.com>
2289
2290 * sysdeps/powerpc/powerpc32/strncmp.S: New File.
2291 * sysdeps/powerpc/powerpc64/strncmp.S: New File.
2292
2293 2003-11-01 Randolph Chung <tausq@debian.org>
2294
2295 * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
2296 LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
2297 Add missing parentheses.
2298
2299 2003-11-01 Roland McGrath <roland@redhat.com>
2300
2301 * libio/bug-ftell.c (do_test): Add a cast.
2302
2303 2003-09-26 Daniel Jacobowitz <drow@mvista.com>
2304
2305 * Makerules (shlib.lds): Make sure that ld doesn't try to link
2306 anything while generating the linker script.
2307
2308 2003-10-31 Roland McGrath <roland@redhat.com>
2309
2310 * locale/lc-ctype.c (_nl_postload_ctype): Update _nl_global_locale's
2311 special members.
2312
2313 2003-10-29 Ulrich Drepper <drepper@redhat.com>
2314
2315 * po/be.po: Update from translation team.
2316
2317 2003-10-27 Ulrich Drepper <drepper@redhat.com>
2318
2319 * elf/rtld.c (map_doit): Pass __RTLD_OPENEXEC in last parameter to
2320 _dl_map_object.
2321
2322 * elf/sprof.c (load_shobj): Use l_map_start not l_addr to locate
2323 ELF header.
2324
2325 * inet/rcmd.c (__validuser2_sa): Remove unnecessary code to skip
2326 rest of line. We use getline which means this cannot happen.
2327
2328 2003-10-26 Ulrich Drepper <drepper@redhat.com>
2329
2330 * sysdeps/unix/sysv/linux/internal_statvfs.c (__internal_statvfs):
2331 Avoid infinite loops in case the mounts file is hosed.
2332 * io/Makefile: Add rules to build and run tst-statvfs.
2333 * io/tst-statvfs.c: New file.
2334
2335 * include/dlfcn.h (__RTLD_OPENEXEC): Define.
2336 * elf/dl-load.c (_dl_map_object_from_fd): Don't allow loading
2337 executables unless __RTLD_OPENEXEC flag is present.
2338 * elf/rtld.c (dl_main): Pass __RTLD_OPENEXEC flag to
2339 _dl_map_object when loading the executable.
2340
2341 * sysdeps/generic/glob.c (glob): Handle GLOB_BRACE and escaping
2342 correctly.
2343 * posix/globtest.sh: Add tests for GLOB_BRACE and escaping.
2344
2345 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Default
2346 reverse lookup format for IPv6 addresses is using bitstring and
2347 .ip6.arpa suffix.
2348 * resolv/ns_name.c: Implement encoding and decoding bitstring in
2349 hex format.
2350
2351 2003-10-23 Jakub Jelinek <jakub@redhat.com>
2352
2353 * locale/programs/locale.c (show_info): Fix printing word values on
2354 64-bit big-endian architectures.
2355
2356 2003-10-19 Bruno Haible <bruno@clisp.org>
2357
2358 * intl/hash-string.c (hash_string): Zero-extend each char from the
2359 string; the old code did a sign-extend on some platforms.
2360
2361 2003-10-22 Steven Munroe <sjmunroe@us.ibm.com>
2362
2363 * sysdeps/powerpc/powerpc32/Makefile (+cflags, asm-CPPFLAGS): Don't
2364 append options to these.
2365 * sysdeps/powerpc/powerpc64/Makefile (+cflags, asm-CPPFLAGS): Likewise.
2366
2367 2003-10-18 Carlos O'Donell <carlos@baldric.uwo.ca>
2368
2369 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Fix merge error.
2370
2371 2003-10-15 Roland McGrath <roland@redhat.com>
2372
2373 * elf/dl-iteratephdr.c [! SHARED] (dl_iterate_phdr): New function.
2374 Fake an entry for the main executable and then call __dl_iterate_phdr.
2375 * elf/Makefile (routines): Remove dl-iteratephdr-static.
2376 (elide-routines.os): Likewise.
2377 (CFLAGS-dl-iterate-phdr-static.c): Variable removed.
2378 * sysdeps/generic/dl-iteratephdr-static.c: File removed.
2379 * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: File removed.
2380
2381 2003-10-15 Jakub Jelinek <jakub@redhat.com>
2382
2383 * elf/rtld.c (print_statistics): Print also number of relative
2384 relocations.
2385
2386 2003-10-12 Carlos O'Donell <carlos@baldric.uwo.ca>
2387
2388 * sysdeps/hppa/sysdep.h: Undef JUMPTARGET before use.
2389 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Define PSEUDO_ERRVAL,
2390 SYSCALL_ERROR_LABEL under all conditions, INTERNAL_SYSCALL_DECL,
2391 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO, INTERNAL_SYSCALL,
2392 and undef JUMPTARGET before use.
2393 [PIC]: Save pic register around syscall.
2394 * sysdeps/unix/sysv/linux/hppa/sysdep.c (syscall):
2395 Cleanup asm statment.
2396
2397 2003-10-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2398
2399 * sysdeps/unix/sysv/linux/sh/sysdep.h (DO_CALL): Add SYSCALL_INST_PAD
2400 after trapa instruction.
2401
2402 2003-10-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2403
2404 * sysdeps/unix/sysv/linux/sh/syscalls.list: Add waitpid.
2405
2406 2003-10-10 Carlos O'Donell <carlos@baldric.uwo.ca>
2407
2408 * sysdeps/hppa/Makefile (CFLAGS-malloc.c): Variable removed.
2409
2410 2003-10-09 Roland McGrath <roland@redhat.com>
2411
2412 * elf/rtld.c (dl_main): Don't set l_name for sysinfo DSO, since there
2413 is no file to name.
2414
2415 2003-10-08 Jakub Jelinek <jakub@redhat.com>
2416
2417 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Don't generate
2418 two identical copies of strings.
2419
2420 2003-10-06 Ulrich Drepper <drepper@redhat.com>
2421
2422 * posix/bug-regex11.c: Add some more tests which fail so far.
2423 Disable them. Patch by Paolo Bonzini <bonzini@gnu.org>.
2424
2425 2003-10-05 Paolo Bonzini <bonzini@gnu.org>
2426
2427 * posix/bug-regex11.c: Add more backreference-related test cases.
2428 (main): Show the failing regex in the error messages.
2429 * posix/regexec.c (check_dst_limits_calc_pos):
2430 Simplify some nested conditionals. Replace if's with a switch
2431 statement.
2432 (check_dst_limits_calc_pos <TYPE_BKREF>): Rename parameter NODE to
2433 FROM_NODE, it shadows a local variable; don't recurse if FROM_NODE
2434 does not change in the recursive invocation, fixing an infinite loop
2435 in the ()\1*\1* regex.
2436 (sift_states_backward): Fix function comment.
2437 * posix/regcomp.c (calc_epsdest): Add an assertion.
2438
2439 2003-10-06 Ulrich Drepper <drepper@redhat.com>
2440
2441 * manual/examples/testopt.c: Fix warnings. Better error message
2442 for missing -c argument.
2443 Patch mostly by Gitonga Marete <bgmarete@comcast.net>.
2444
2445 * timezone/asia: Update from tzdata2003d.
2446 * timezone/australasia: Likewise.
2447 * timezone/backward: Likewise.
2448 * timezone/europe: Likewise.
2449 * timezone/iso3166.tab: Likewise.
2450 * timezone/northamerica: Likewise.
2451 * timezone/southamerica: Likewise.
2452 * timezone/zone.tab: Likewise.
2453
2454 2003-10-05 Jakub Jelinek <jakub@redhat.com>
2455
2456 * sysdeps/ia64/backtrace.c: New file.
2457 * sysdeps/x86_64/backtrace.c: New file.
2458 * sysdeps/generic/unwind.h (_Unwind_Trace_Fn): New type.
2459 (_Unwind_Backtrace): New prototype.
2460
2461 2003-10-03 Ulrich Drepper <drepper@redhat.com>
2462
2463 * sysdeps/i386/elf/bsd-setjmp.S: Use linkonce section for PIC stub.
2464 * sysdeps/i386/elf/setjmp.S: Likewise.
2465
2466 2003-10-02 Roland McGrath <roland@redhat.com>
2467
2468 * argp/argp-help.c (__argp_short_program_name): Move inside [! _LIBC].
2469 * argp/argp-namefrob.h
2470 [_LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME]
2471 (__argp_short_program_name): Don't declare fn, define it as a macro.
2472
2473 2003-08-22 Simon Josefsson <jas@extundo.com>
2474
2475 * argp/argp-fmtstream.h [!__attribute__]: Define to nothing.
2476
2477 * argp/argp-help.c: Don't include malloc.h, some platforms
2478 complain and it doesn't appear to be used.
2479 [!_LIBC && HAVE_STRERROR_R && !HAVE_DECL_STRERROR_R]: Declare
2480 strerror_r.
2481 [!_LIBC && !HAVE_STRERROR_R && !HAVE_DECL_STRERROR]: Declare
2482 strerror.
2483 (hol_entry_long_iterate): Change __attribute to __attribute__.
2484 (_help, __argp_error, __argp_failure) [!_LIBC && (HAVE_FLOCKFILE
2485 && HAVE_FUNLOCKFILE)]: Protect call to flockfile and funlockfile.
2486 (__argp_basename) [!_LIBC]: New. Taken from LSH, by Niels Möller,
2487 modified after comments from Ulrich Drepper.
2488 (__argp_short_program_name): Ditto.
2489 (__argp_state_help, __argp_error, __argp_failure): Use it.
2490 (__argp_failure): Use strerror when necessary.
2491
2492 * argp/argp-namefrob.h (__flockfile, __funlockfile, __mempcpy)
2493 (__strchrnul, __strerror_r, __strndup) [!_LIBC]: Remove __-prefix.
2494 (clearerr_unlocked, feof_unlocked, ferror_unlocked)
2495 (fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked)
2496 (fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked)
2497 (putc_unlocked, putchar_unlocked) [!_LIBC && !HAVE_DECL_*]: Map to
2498 non-unlocked functions.
2499 [!_LIBC]: Add prototypes for __argp_basename and
2500 __argp_short_program_name.
2501
2502 * argp/argp-parse.c (argp_default_parser): Only use
2503 program_invocation{_short,}_name if declared.
2504 (parser_init): Use __argp_short_program_name.
2505
2506 * argp/argp-xinl.c [_LIBC || HAVE_FEATURES_H]: Add CPP check for
2507 '#include features.h'.
2508
2509 * argp/argp.h [!__attribute__]: Define to nothing.
2510
2511 2003-09-26 Paolo Bonzini <bonzini@gnu.org>
2512
2513 * posix/regcomp.c (parse_sub_exp): Pass RE_CARET_ANCHORS_HERE
2514 for the first token in a subexpression as well.
2515
2516 2003-10-02 Jakub Jelinek <jakub@redhat.com>
2517
2518 * posix/regcomp.c (peek_token): Add 2003-09-20 changes for anchor
2519 handling again.
2520 (parse_reg_exp): Likewise.
2521 * posix/regex.h (RE_CARET_ANCHORS_HERE): Define.
2522
2523 * posix/bug-regex11.c (tests): Add new tests.
2524 * posix/bug-regex12.c (tests): Add new test.
2525
2526 2003-10-01 Thorsten Kukuk <kukuk@suse.de>
2527
2528 * elf/dl-reloc.c (_dl_allocate_static_tls): Move definition of
2529 variables only used if TLS_DTV_AT_TP is defined into the #if branch.
2530
2531 2003-10-02 Jeroen Dekkers <jeroen@dekkers.cx>
2532
2533 * sysdeps/mach/hurd/malloc-machine.h: Copy the tsd code from
2534 the old thread-m.h header too.
2535
2536 2003-10-02 Ulrich Drepper <drepper@redhat.com>
2537
2538 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ): Go
2539 back to 131027 since this is what the kernel enforces.
2540
2541 * inet/getnameinfo.c: Move domain out of nrl_domainname scope and
2542 define it with libc_freeres_ptr.
2543
2544 2003-10-01 Roland McGrath <roland@redhat.com>
2545
2546 * elf/rtld.c (dl_main): Add cast in last change.
2547
2548 2003-09-10 Chris Demetriou <cgd@broadcom.com>
2549
2550 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Remove
2551 "#if 0" surrounding most of contents.
2552 (SYSCALL_ERROR_LABEL): Define.
2553 (__SYSCALL_CLOBBERS): Add $10.
2554 (internal_syscall7): Remove.
2555 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
2556
2557 2003-09-30 Ulrich Drepper <drepper@redhat.com>
2558
2559 * elf/rtld.c (dl_main): Also set l_map_start.
2560
2561 2003-09-30 Daniel Jacobowitz <drow@mvista.com>
2562
2563 * elf/rtld.c (dl_main): Set l_libname and l_name for the sysinfo DSO
2564 to work around kernel problem.
2565
2566 2003-09-27 Wolfram Gloger <wg@malloc.de>
2567
2568 * malloc/malloc.c: Include <malloc-machine.h> earlier instead of
2569 "thread-m.h", so that default parameters can be overridden in a
2570 system-specific malloc-machine.h. Remove extra ; from extern "C"
2571 closing brace.
2572 * sysdeps/generic/malloc-machine.h: New file.
2573 * sysdeps/mach/hurd/malloc-machine.h: New file.
2574 * malloc/thread-m.h: Removed.
2575 * malloc/Makefile: Remove CFLAGS-malloc.c parameter addition, it
2576 is in sysdeps/generic/malloc-machine.h now.
2577
2578 2003-09-29 Ulrich Drepper <drepper@redhat.com>
2579
2580 * elf/dl-reloc.c (_dl_allocate_static_tls): Move definition of
2581 variables only used if TLS_TCB_AT_TP is defined into the #if
2582 branch.
2583
2584 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __extension__ as
2585 well to cover using long long in C90.
2586
2587 2003-09-28 Alfred M. Szmidt <ams@kemisten.nu>
2588
2589 * sysdeps/mach/hurd/bits/libc-lock.h (__libc_cleanup_pop):
2590 Redefine and use __libc_cleanup_region_end instead.
2591
2592 2003-09-29 Thorsten Kukuk <kukuk@suse.de>
2593
2594 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Use __inline and
2595 fix prototypes for picky C++ compilers.
2596
2597 2003-09-27 Ulrich Drepper <drepper@redhat.com>
2598
2599 * sysdeps/unix/sysv/linux/ustat.c (ustat): Set errno to EINVAL if
2600 the device ID is invalid and return -1.
2601 * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
2602
2603 2003-09-26 Andreas Schwab <schwab@suse.de>
2604
2605 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Pass fourth argument to
2606 rt_sigprocmask system call.
2607
2608 2003-09-25 Roland McGrath <roland@redhat.com>
2609
2610 * sysdeps/unix/sysv/linux/dl-execstack.c (_dl_make_stack_executable):
2611 Don't check for zero __libc_stack_end, it should be initialized.
2612 [_STACK_GROWS_DOWN] [PROT_GROWSDOWN]: Try using PROT_GROWSDOWN flag
2613 and fall back if it fails with EINVAL.
2614 [_STACK_GROWS_UP] [PROT_GROWSUP]: Likewise for PROT_GROWSUP.
2615
2616 2003-09-25 Jakub Jelinek <jakub@redhat.com>
2617
2618 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
2619 sysdeps/i386/dl-procinfo.c instead of
2620 sysdeps/unix/sysv/linux/i386/dl-procinfo.c.
2621 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Avoid using
2622 #include_next.
2623
2624 2003-09-25 Ulrich Drepper <drepper@redhat.com>
2625
2626 * posix/regcomp.c (peek_token): Remove recent changes for anchor
2627 handling again.
2628 (parse_reg_exp): Likewise.
2629 * posix/regex.h: Remove RE_CARET_ANCHORS_HERE.
2630
2631 * csu/Makefile ($(objpfx)version-info.h): Fix sed script to handle
2632 banners.
2633
2634 * nis/nis_table.c (nis_list): Always strdup string used with
2635 ibreq->ibr_name. Add several NULL pointer checks.
2636
2637 * nis/nss_nisplus/nisplus-alias.c: Add check for NULL return value
2638 of nis_list.
2639 * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2640 * nis/nss_nisplus/nisplus-grp.c: Likewise.
2641 * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2642 * nis/nss_nisplus/nisplus-netgrp.c: Likewise.
2643 * nis/nss_nisplus/nisplus-network.c: Likewise.
2644 * nis/nss_nisplus/nisplus-proto.c: Likewise.
2645 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
2646 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2647 * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2648 * nis/nss_nisplus/nisplus-service.c: Likewise.
2649 * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2650
2651 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Define PROT_GROWSDOWN
2652 and PROT_GROWSUP.
2653 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
2654 * sysdeps/unix/sysv/linux/cris/bits/mman.h: Likewise.
2655 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
2656 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
2657 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
2658 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
2659 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
2660 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
2661 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
2662 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
2663 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
2664
2665 2003-09-25 Jakub Jelinek <jakub@redhat.com>
2666
2667 * misc/syslog.c: Include locale.h.
2668 (vsyslog): Add date always in C locale %h %e %T format.
2669
2670 2003-09-24 Paul Eggert <eggert@twinsun.com>
2671
2672 * argp/argp-fmtstream.c (__argp_fmtstream_ensure): Check for
2673 size_t overflow when reallocating storage.
2674 * argp/argp-help.c (make_hol, hol_append): Likewise.
2675 (SIZE_MAX): New macro.
2676
2677 2003-08-07 Alfred M. Szmidt <ams@kemisten.nu>
2678
2679 * sysdeps/mach/hurd/bits/libc-lock.h
2680 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
2681
2682 2003-08-01 Alfred M. Szmidt <ams@kemisten.nu>
2683
2684 * sysdeps/i386/dl-procinfo.h: New file, contents taken from ...
2685 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: ... here.
2686 #include_next dl-procinfo.h to get them.
2687 (_DL_HWCAP_COUNT): Moved to sysdeps/i386/dl-procinfo.h.
2688 (_DL_PLATFORMS_COUNT): Likewise.
2689 (_DL_FIRST_PLATFORM): Likewise.
2690 (_DL_HWCAP_PLATFORM): Likewise.
2691 (HWCAP_I386_FPU, HWCAP_I386_VME, HWCAP_I386_DE, HWCAP_I386_PSE,
2692 HWCAP_I386_TSC, HWCAP_I386_MSR, HWCAP_I386_PAE, HWCAP_I386_MCE,
2693 HWCAP_I386_CX8, HWCAP_I386_APIC, HWCAP_I386_SEP, HWCAP_I386_MTRR,
2694 HWCAP_I386_PGE, HWCAP_I386_MCA, HWCAP_I386_CMOV,
2695 HWCAP_I386_FCMOV, HWCAP_I386_MMX, HWCAP_I386_OSFXSR,
2696 HWCAP_I386_XMM, HWCAP_I386_XMM2, HWCAP_I386_AMD3D,
2697 HWCAP_IMPORTANT): Likewise.
2698 (_DL_PROCINFO_H_): Likewise.
2699 (_dl_hwcap_string, _dl_platform_string, _dl_string_hwcap): Likewise.
2700 (_dl_string_platform): Likewise.
2701 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Moved to ...
2702 * sysdeps/i386/dl-procinfo.c: ... here, new file.
2703
2704 2003-09-24 Ulrich Drepper <drepper@redhat.com>
2705
2706 * sysdeps/unix/sysv/linux/dl-execstack.c
2707 (_dl_make_stack_executable): Remember that we changed the permission.
2708
2709 * sysdeps/ia64/dl-machine.h (RTLD_START): Remove setting of
2710 __libc_stack_end. Patch by David Mosberger.
2711
2712 2003-09-24 Jakub Jelinek <jakub@redhat.com>
2713
2714 * elf/Versions (ld): Export __libc_stack_end@GLIBC_2.1 instead of
2715 __libc_stack_end@GLIBC_PRIVATE.
2716
2717 * sysdeps/generic/dl-sysdep.c (DL_STACK_END): Define if not defined.
2718 (_dl_sysdep_start): Set __libc_stack_end here.
2719 * sysdeps/alpha/dl-machine.h (RTLD_START): Remove setting of
2720 __libc_stack_end.
2721 * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
2722 * sysdeps/cris/dl-machine.h (RTLD_START): Likewise.
2723 * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
2724 * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
2725 * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
2726 * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
2727 * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
2728 * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
2729 * sysdeps/ia64/dl-machine.h (DL_STACK_END): Define.
2730 * sysdeps/sparc/sparc32/dl-machine.h (DL_STACK_END): Define.
2731 (RTLD_START): Remove setting of __libc_stack_end.
2732 * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Define.
2733 (RTLD_START): Remove setting of __libc_stack_end.
2734
2735 2003-09-24 Ulrich Drepper <drepper@redhat.com>
2736
2737 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add gnu_dev_ prefix to
2738 function definitions. Adjust macro expansions accordingly.
2739 * sysdeps/unix/sysv/linux/Versions: Add gnu_dev_ prefix to major,
2740 minor, makedev name.
2741 * sysdeps/unix/sysv/linux/makedev.c: Likewise.
2742
2743 2003-09-24 Jakub Jelinek <jakub@redhat.com>
2744
2745 * sysdeps/unix/sysv/linux/sys/sysmacros.h (major, minor, makedev):
2746 Add __THROW.
2747
2748 2003-09-24 Jakub Jelinek <jakub@redhat.com>
2749
2750 * nscd/Makefile (others): Add nscd before including ../Rules.
2751
2752 2003-09-24 Ulrich Drepper <drepper@redhat.com>
2753
2754 * nscd/Makefile: Add rules to build nscd as a PIE.
2755 * configure.in: Check for -fpie and -pie compiler options.
2756 * config.make.in (have-fpie): Define.
2757
2758 2003-09-23 Ulrich Drepper <drepper@redhat.com>
2759
2760 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Adjust for larger
2761 kernel dev_t size.
2762 * sysdeps/unix/sysv/linux/alpha/sys/sysmacros.h: Removed.
2763 * sysdeps/unix/sysv/linux/sparc/sys/sysmacros.h: Removed.
2764 * sysdeps/unix/sysv/linux/makedev.c: New file.
2765 * sysdeps/unix/sysv/linux/Dist: Add makedev.c.
2766 * sysdeps/unix/sysv/linux/Makefile [subdir=misc]
2767 (sysdep_routines): Add makedev.
2768 * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.3.3): Add
2769 major, minor, makedev.
2770 * sysdeps/unix/sysv/linux/ustat.c (ustat): Adjust for 32-bit
2771 kernel dev_t.
2772 * sysdeps/unix/sysv/linux/alpha/ustat.c: Removed.
2773 * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
2774 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Removed.
2775 Code by Alexander Viro <aviro@redhat.com>.
2776
2777 2003-09-23 Ulrich Drepper <drepper@redhat.com>
2778
2779 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions [libc]
2780 (GLIBC_2.3.3): Add setcontext, getcontext, swapcontext, and
2781 makecontext.
2782 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Correct change
2783 for include Altivec support for PPC32. It was not compatible.
2784 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: Adjust
2785 offsets for ucontext_t change.
2786 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Adjust
2787 for ucontext_t change. Add compatibility code.
2788 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Likewise.
2789 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
2790 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
2791 Patch by Paul Mackerras <paulus@samba.org>.
2792
2793 2003-02-25 Randolph Chung <tausq@debian.org>
2794
2795 * sysdeps/hppa/Makefile: Include compat code in build.
2796 * sysdeps/hppa/libgcc-compat.c: New file.
2797 * sysdeps/hppa/Dist: Add libgcc-compat.c.
2798 * sysdeps/hppa/Versions [GLIBC_2.2]: Add __clz_tab.
2799
2800 2003-09-23 Roland McGrath <roland@redhat.com>
2801
2802 * elf/rtld.c (dl_main): In rtld_is_main case, reinitialize
2803 GL(dl_stack_flags) according to rtld's own PT_GNU_STACK.
2804 Move GL(dl_make_stack_executable_hook) initialization up.
2805 * elf/tst-execstack-prog.c: New file.
2806 * elf/Makefile (tests-execstack-yes): Add it.
2807 (LDFLAGS-tst-execstack-prog): New variable.
2808
2809 2003-09-23 Jakub Jelinek <jakub@redhat.com>
2810
2811 * sysdeps/x86_64/dl-machine.h (RTLD_START): Set __libc_stack_end
2812 before calling _dl_start, using %rip relative access.
2813 Use %rip relative access to _dl_skip_args, _rtld_local._dl_loaded
2814 and _dl_fini.
2815
2816 2003-09-23 Roland McGrath <roland@redhat.com>
2817
2818 * sysdeps/i386/dl-machine.h (RTLD_START): Set __libc_stack_end before
2819 calling _dl_start, using GOTOFF access.
2820
2821 * configure.in (libc_cv_z_execstack): New check.
2822 * configure: Regenerated.
2823 * config.make.in (have-z-execstack): New variable set by it.
2824 * elf/tst-execstack.c: New file.
2825 * elf/tst-execstack-mod.c: New file.
2826 * elf/tst-execstack-needed.c: New file.
2827 * elf/Makefile (tests-execstack-yes, modules-execstack-yes): New
2828 variables.
2829 (tests, modules-names): Conditionally include them.
2830 (distribute): Add tst-execstack-mod.c here.
2831 ($(objpfx)tst-execstack, $(objpfx)tst-execstack.out): New targets.
2832 (LDFLAGS-tst-execstack, LDFLAGS-tst-execstack-mod): New variables.
2833 ($(objpfx)tst-execstack-needed): New target.
2834 (LDFLAGS-tst-execstack-needed): New variable.
2835
2836 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add _dl_stack_flags
2837 and _dl_make_stack_executable_hook. Declare _dl_make_stack_executable.
2838 * elf/rtld.c (_rtld_global): Add initializer for _dl_stack_flags.
2839 (dl_main): Reset _dl_stack_flags according to PT_GNU_STACK phdr.
2840 Initialize _dl_make_stack_executable_hook.
2841 * elf/dl-support.c: Define those new variables.
2842 (_dl_non_dynamic_init): Scan phdrs for PT_GNU_STACK.
2843 (_dl_phdr): Fix type.
2844 * elf/dl-load.c (_dl_map_object_from_fd): Grok PT_GNU_STACK phdr and
2845 enable execute permission for the stack if necessary.
2846 * sysdeps/generic/dl-execstack.c: New file.
2847 * elf/Makefile (dl-routines): Add it.
2848 * elf/Versions (ld: GLIBC_PRIVATE): Add _dl_make_stack_executable.
2849 * sysdeps/unix/sysv/linux/dl-execstack.c: New file.
2850
2851 2003-09-23 Ulrich Drepper <drepper@redhat.com>
2852
2853 * sysdeps/posix/sprofil.c (pc_to_index): Remove inline marker.
2854
2855 2003-09-20 Alfred M. Szmidt <ams@kemisten.nu>
2856
2857 * sysdeps/generic/utmp_file.c (setutent_file, LOCK_FILE,
2858 UNLOCK_FILE, setutent_file): Use fcntl_not_cancel instead of
2859 __fcntl_nocancel.
2860
2861 2003-09-22 Ulrich Drepper <drepper@redhat.com>
2862
2863 * malloc/malloc.c: Include <stdint.h>.
2864
2865 2003-09-20 Paolo Bonzini <bonzini@gnu.org>
2866
2867 * posix/regcomp.c (build_word_op): Rename like...
2868 (build_charclass_op): ...this. Accept two extra parameters,
2869 CLASS_NAME and EXTRA. Add EXTRA to the result, not only _.
2870 (peek_token): Accept \s and \S as OP_SPACE and OP_NOTSPACE.
2871 (parse_expression): Replace build_word_op with
2872 build_charclass_op, add new arguments, accept OP_SPACE
2873 and OP_NOTSPACE.
2874 * posix/regex_internal.h (re_token_type_t): Add OP_SPACE
2875 and OP_NOTSPACE.
2876
2877 * posix/regcomp.c (peek_token): Don't look back for ( or |
2878 to check whether to treat a caret as special. It fails
2879 for the (extended) regex \(^.
2880 (parse, parse_reg_exp): Pass RE_CARET_ANCHORS_HERE to fetch_token.
2881 * posix/regex.h: Define RE_CARET_ANCHORS_HERE.
2882
2883 * posix/regexec.c: Check out of bounds value before shifting.
2884
2885 * posix/regex_internal.h: Define __attribute for non-gcc.
2886
2887 2003-09-22 Jakub Jelinek <jakub@redhat.com>
2888
2889 * include/atomic.h (atomic_compare_and_exchange_val_rel,
2890 atomic_compare_and_exchange_bool_rel): Swap oldval/newval arguments
2891 to avoid confusion.
2892
2893 * sysdeps/unix/opendir.c: Include string.h.
2894
2895 2003-09-22 Ulrich Drepper <drepper@redhat.com>
2896
2897 * timezone/zdump.c: Update from tzcode2003c.
2898 * timezone/zic.c: Likewise.
2899 * timezone/leapseconds: Update from tzdata2003c.
2900
2901 2003-09-19 Ulrich Drepper <drepper@redhat.com>
2902
2903 * elf/Makefile ($(objpfx)librtld.os): Create link map also for
2904 final build to ease quality control.
2905
2906 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): If compiled for
2907 ld.so, don't include NULL buffer pointer handling.
2908
2909 2003-09-19 Jakub Jelinek <jakub@redhat.com>
2910
2911 * dlfcn/dlopen.c (dlopen): Add static_link_warning.
2912
2913 2003-09-18 Jakub Jelinek <jakub@redhat.com>
2914
2915 * libio/memstream.c (open_memstream): Use _IO_init instead of
2916 _IO_old_init.
2917
2918 2003-09-17 Ulrich Drepper <drepper@redhat.com>
2919
2920 * sysdeps/generic/wordexp.c (eval_expr_val): Use strtol since we
2921 have to recognize octal and hexadecimal numbers as well. Simplify
2922 function, signs are handled in strtol.
2923 * posix/wordexp-test.c: Add tests for octal and hexadecimal
2924 numbers in arithmetic expressions.
2925
2926 2003-09-17 Jakub Jelinek <jakub@redhat.com>
2927
2928 * elf/Makefile (distribute): Add tst-alignmod.c.
2929 (tests): Add tst-align.
2930 (modules-names): Add tst-alignmod.
2931 (CFLAGS-tst-align.c, CFLAGS-tst-alignmod.c): Add
2932 $(stack-align-test-flags).
2933 ($(objpfx)tst-align): Depend on libdl.
2934 ($(objpfx)tst-align.out): Depend on tst-alignmod.so.
2935 * elf/tst-align.c: New file.
2936 * elf/tst-alignmod.c: New file.
2937 * misc/Makefile (CFLAGS-tst-tsearch.c): Add $(stack-align-test-flags).
2938 * misc/tst-tsearch.c: Include tst-stack-align.h.
2939 (stack_align_check): New array.
2940 (cmp_fn, walk_action): Use TEST_STACK_ALIGN ().
2941 (main): Report error if stack was not enough aligned
2942 in cmp_fn or walk_action.
2943 * stdlib/Makefile (CFLAGS-tst-qsort.c): Add $(stack-align-test-flags).
2944 * stdlib/tst-qsort.c: Include tst-stack-align.h.
2945 (align_check): New var.
2946 (compare): Use TEST_STACK_ALIGN () macro.
2947 (main): Report error if stack was not enough aligned in compare.
2948 * sysdeps/i386/i686/Makefile (stack-align-test-flags): Remove
2949 unneeded -mpreferred-stack-boundary=4.
2950 * sysdeps/x86_64/tst-stack-align.h: New file.
2951
2952 * libio/memstream.c (_IO_wmem_jumps): Remove unused structure.
2953 (_IO_wmem_sync, _IO_wmem_finish): Remove unused functions.
2954
2955 2003-09-17 Philip Blundell <philb@gnu.org>
2956
2957 * sysdeps/arm/dl-machine.h (CALL_ROUTINE): Deleted.
2958 (BX): Define.
2959 (ELF_MACHINE_RUNTIME_TRAMPOLINE): Optimise a little.
2960
2961 * sysdeps/arm/sysdep.h (DO_RET): New.
2962
2963 * sysdeps/unix/sysv/linux/arm/vfork.S: Add #error if __NR_vfork
2964 required but not defined. Improve test of error code.
2965
2966 2003-09-17 Jakub Jelinek <jakub@redhat.com>
2967
2968 * sysdeps/i386/Makefile (stack-align-test-flags): Add
2969 -malign-double -mpreferred-stack-boundary=4.
2970
2971 2003-09-17 Ulrich Drepper <drepper@redhat.com>
2972
2973 * sysdeps/posix/utimes.c (__utimes): Truncate instead of round.
2974 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Likewise.
2975
2976 2003-09-15 Jakub Jelinek <jakub@redhat.com>
2977
2978 * sysdeps/i386/Makefile (sysdep-CFLAGS): If not in math or csu
2979 subdir, add -mpreferred-stack-boundary=4, with few exceptions.
2980
2981 2003-09-17 Jakub Jelinek <jakub@redhat.com>
2982
2983 * Makeconfig (stack-align-test-flags): Set.
2984 * stdlib/Makefile (CFLAGS-tst-bsearch.c): Add
2985 $(stack-align-test-flags).
2986 * stdlib/tst-bsearch.c: Include tst-stack-align.h.
2987 (align_check): New var.
2988 (comp): Use TEST_STACK_ALIGN macro.
2989 (do_test): Fail if align_check != 1.
2990 * sysdeps/generic/tst-stack-align.h: New file.
2991 * sysdeps/i386/i686/Makefile (stack-align-test-flags): Add -msse.
2992 * sysdeps/i386/i686/tst-stack-align.h: New file.
2993
2994 2003-09-17 Ulrich Drepper <drepper@redhat.com>
2995
2996 * sysdeps/unix/sysv/linux/i386/clone.S: Make sure child gets a
2997 stack which is aligned (mod 16).
2998
2999 2003-09-17 Uwe Reimann <Uwe_Reimann@gmx.net>
3000 Hans-Peter Nilsson <hp@axis.com>
3001
3002 * sysdeps/cris/dl-machine.h (elf_machine_type_class): Classify
3003 R_CRIS_GLOB_DAT as ELF_RTYPE_CLASS_PLT. Clarify comment.
3004
3005 2003-09-17 Jakub Jelinek <jakub@redhat.com>
3006
3007 * dirent/scandir.c: Include bits/libc-lock.h.
3008 (struct scandir_cancel_struct): New type.
3009 (cancel_handler): New function.
3010 (SCANDIR): Add __libc_cleanup_{push,pop}, save state into
3011 scandir_cancel_struct.
3012
3013 2003-09-16 Ulrich Drepper <drepper@redhat.com>
3014
3015 * sysdeps/unix/sysv/linux/Dist: Remove internal_statvfs.c.
3016 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3017 Add internal_statvfs.
3018 * sysdeps/unix/sysv/linux/fstatvfs.c: Call __internal_statvfs
3019 instead of including "internal_statvfs.c".
3020 * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
3021 * sysdeps/unix/sysv/linux/internal_statvfs.c: Make it a real function.
3022 Add code to avoid the stat calls on all the reported mount points
3023 when we can determine mismatch in advance.
3024 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add AUTOFS_SUPER_MAGIC and
3025 USBDEVFS_SUPER_MAGIC.
3026
3027 2003-09-16 Jakub Jelinek <jakub@redhat.com>
3028
3029 * posix/Versions (sched_getaffinity, sched_setaffinity): Change
3030 from GLIBC_2.3.2 to GLIBC_2.3.3 symbol version.
3031
3032 2003-09-16 Bruno Haible <bruno@clisp.org>
3033
3034 * intl/tst-gettext2.sh: Set GCONV_PATH and LOCPATH only after
3035 invoking msgfmt, not before.
3036
3037 2003-09-15 Jakub Jelinek <jakub@redhat.com>
3038
3039 * argp/argp.h (argp_parse, __argp_parse): Remove __THROW.
3040 * argp/Makefile (CFLAGS-argp-help.c, CFLAGS-argp-parse.c): Add
3041 $(uses-callbacks).
3042 * dirent/Makefile (CFLAGS-scandir.c, CFLAGS-scandir64.c): Likewise.
3043 * elf/Makefile (CFLAGS-dl-iterate-phdr.c,
3044 CFLAGS-dl-iterate-phdr-static.c): Add $(uses-callbacks).
3045 * elf/dl-iteratephdr.c (cancel_handler): New function.
3046 (__dl_iterate_phdr): Add __libc_cleanup_{push,pop}.
3047 * elf/link.h (dl_iterate_phdr): Remove __THROW.
3048 * io/Makefile (CFLAGS-fts.c): Merge into one assignment.
3049 Add $(uses-callbacks).
3050 (CFLAGS-ftw.c, CFLAGS-ftw64.c): Add $(uses-callbacks).
3051 * misc/Makefile (CFLAGS-tsearch.c, CFLAGS-lsearch.c): Change
3052 $(exceptions) to $(uses-callbacks).
3053 * Makeconfig (uses-callbacks): Set to $(exceptions).
3054 * posix/Makefile (CFLAGS-glob.c, CFLAGS-glob64.c): Add
3055 $(uses-callbacks).
3056 * stdlib/Makefile (CFLAGS-bsearch.c, CFLAGS-msort.c, CFLAGS-qsort.c):
3057 Likewise.
3058
3059 2003-09-15 Andreas Schwab <schwab@suse.de>
3060
3061 * sysdeps/m68k/setjmp.c: Add hidden_def.
3062
3063 2003-09-14 Ulrich Drepper <drepper@redhat.com>
3064
3065 * libio/memstream.c (open_memstream): Don't allow wide char operations.
3066
3067 * dirent/dirent.h: Remove __THROW from scandir.
3068
3069 2003-09-14 Philip Blundell <philb@gnu.org>
3070
3071 * sysdeps/unix/sysv/linux/arm/mmap.S: Use sys_mmap2 if it's known
3072 to be available.
3073
3074 * sysdeps/unix/sysv/linux/arm/mmap64.S: Optimise code a little.
3075
3076 * sysdeps/arm/memset.S: Rewrite.
3077
3078 2003-09-12 Jakub Jelinek <jakub@redhat.com>
3079
3080 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New.
3081 (__SSIZE_T_TYPE): Define to __SWORD_TYPE for gcc 2.95.x and
3082 __SLONGWORD_TYPE otherwise.
3083
3084 2003-09-14 Ulrich Drepper <drepper@redhat.com>
3085
3086 * io/Makefile (CFLAGS-ftw.c): Add -fexceptions.
3087 (CFLAGS-ftw64.c): Likewise.
3088
3089 2003-09-13 Ulrich Drepper <drepper@redhat.com>
3090
3091 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Add -fexceptions.
3092 (CFLAGS-nscd_getgr_r.c): Likewise.
3093 (CFLAGS-nscd_gethst_r.c): Likewise.
3094
3095 2003-09-12 Ulrich Drepper <drepper@redhat.com>
3096
3097 * sysdeps/unix/sysv/linux/if_index.c: Use only non-cancelable
3098 interfaces.
3099
3100 * grp/Makefile (CFLAGS-getgrgid_r.c, CFLAGS-getgrnam_r.c,
3101 CFLAGS-fgetgrent.c, CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c,
3102 CFLAGS-initgroups.c, CFLAGS-getgrgid.c): Add -fexceptions.
3103 * inet/Makefile (CFLAGS-either_ntoh.c, CFLAGS-either_hton.c,
3104 CFLAGS-getnetgrent.c, CFLAGS-getnetgrent_r.c): Likewise.
3105 * io/Makefile (CFLAGS-posix_fallocate.c, CFLAGS-posix_fallocate64.c):
3106 Likewise.
3107 * misc/Makefile (CFLAGS-err.c): Likewise.
3108 * posix/Makefile (CFLAGS-getaddrinfo.c, CFLAGS-spawn.c,
3109 CFLAGS-spawnp.c, CFLAGS-spawni.c, CFLAGS-pause.c, CFLAGS-glob.c,
3110 CFLAGS-glob64.c): Likewise.
3111 * pwd/Makefile (CFLAGS-getpw.c): Likewise.
3112 * shadow/Makefile (CFLAGS-fgetspent.c, CFLAGS-fgetspent_r.c,
3113 CFLAGS-putspent.c, CFLAGS-getspnam.c, CFLAGS-getspnam_r.c): Likewise.
3114 * stdio-common/Makefile (CFLAGS-cuserid.c): Likewise.
3115 * sunrpc/Makefile (CFLAGS-openchild.c): Likewise.
3116
3117 * stdlib/Makefile (CFLAGS-mkstemp.c): Remove definition.
3118
3119 * libio/stdio.h: Remove __THROW from cuserid prototype.
3120
3121 * locale/loadarchive.c: Use only non-cancelable interfaces.
3122 * resolv/herror.c (herror): Likewise.
3123
3124 * malloc/hooks.c: Before using IO stream mark stream so it uses
3125 only non-cancelable interfaces.
3126 * malloc/malloc.c: Likewise.
3127 * posix/getopt.c: Likewise.
3128
3129
3130 2003-09-11 Jakub Jelinek <jakub@redhat.com>
3131
3132 * Makerules (LDFLAGS-c.so): Remove -u __register_frame.
3133
3134 2003-09-12 Ulrich Drepper <drepper@redhat.com>
3135
3136 * stdio-common/stdio_ext.h: Mark most functions with __THROW.
3137
3138 * misc/err.h: Remove __THROW from all prototypes.
3139
3140 * posix/getopt.h (__THROW): Define if not already defined. Add
3141 __THROW to the getopt functions.
3142
3143 2003-09-11 Ulrich Drepper <drepper@redhat.com>
3144
3145 * io/Makefile (CFLAGS-lockf.c): Add -fexceptions.
3146 (CFLAGS-fts.c): Likewise.
3147 * io/fcntl.h: Remove __THROW from lockf prototypes.
3148 * io/fts.h: Remove most __THROW.
3149
3150 2003-09-11 H.J. Lu <hongjiu.lu@intel.com>
3151
3152 * elf/tls-macros.h (TLS_IE): Add a stop bit for ia64.
3153 (TLS_LD): Likewise.
3154 (TLS_GD): Likewise.
3155
3156 2003-09-11 Jakub Jelinek <jakub@redhat.com>
3157
3158 * libio/fileops.c (_IO_new_file_overflow): Add INTUSE to
3159 _IO_free_backup_area call.
3160
3161 2003-09-10 Chris Demetriou <cgd@broadcom.com>
3162
3163 * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Fix
3164 syscall invocation.
3165 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
3166 * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
3167 Also, only assert off_t size is 4 for N32 and O32, and clean up
3168 white space.
3169 * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
3170
3171 2003-09-10 Roland McGrath <roland@redhat.com>
3172
3173 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr):
3174 Don't use c_ispeed under [! _HAVE_STRUCT_TERMIOS_C_ISPEED].
3175 Don't use c_ospeed under [! _HAVE_STRUCT_TERMIOS_C_OSPEED].
3176 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
3177 Reported by Daniel Jacobowitz <drow@mvista.com>.
3178
3179 2003-09-10 Jakub Jelinek <jakub@redhat.com>
3180
3181 * string/Makefile (strop-tests): Add memccpy.
3182 * string/test-memccpy.c: New test.
3183
3184 2003-09-09 Jakub Jelinek <jakub@redhat.com>
3185
3186 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT): Add
3187 siginfo_t * argument before, change into struct ucontext *.
3188 (SIGCONTEXT_EXTRA_ARGS): Define to _si,.
3189 (GET_PC, GET_FRAME, GET_STACK): Adjust for ctx being a pointer
3190 instead of structure.
3191 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (REGISTER_DUMP):
3192 Likewise.
3193
3194 2003-09-09 Ulrich Drepper <drepper@redhat.com>
3195
3196 * string/stratcliff.c (main): Check memccpy.
3197
3198 2003-04-11 Jes Sorensen <jes@wildopensource.com>
3199
3200 * sysdeps/ia64/memccpy.S: When recovering for src_aligned and the
3201 character is found during recovery, use correct register when
3202 determining the position of the found character.
3203
3204 2003-04-01 Jes Sorensen <jes@wildopensource.com>
3205
3206 * sysdeps/ia64/memccpy.S: Use speculatively loads for readahead to
3207 avoid segfaults when reading from unmapped pages. For aligned
3208 reload and continue, for misaligned, roll back and use byte copy.
3209 Save ar.ec on entry and restore on exit.
3210
3211 2003-09-09 Chris Demetriou <cgd@broadcom.com>
3212
3213 * sysdeps/unix/mips/sysdep.h (PSEUDO_END): Undef before defining.
3214
3215 2003-09-08 Chris Demetriou <cgd@broadcom.com>
3216
3217 * sysdeps/mips/mips64/n32/Implies: Move ieee754/ldbl-128 to
3218 the top of the list.
3219 * sysdeps/mips/mips64/n64/Implies: Likewise.
3220
3221 2003-09-08 Roland McGrath <roland@frob.com>
3222
3223 * sysdeps/unix/sysv/linux/speed.c
3224 (cfsetospeed): Only set c_ospeed under [_HAVE_STRUCT_TERMIOS_C_OSPEED].
3225 (cfsetispeed): Only set c_ispeed under [_HAVE_STRUCT_TERMIOS_C_ISPEED].
3226 * sysdeps/unix/sysv/linux/bits/termios.h
3227 (_HAVE_STRUCT_TERMIOS_C_ISPEED, _HAVE_STRUCT_TERMIOS_C_OSPEED): Define.
3228 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3229 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3230
3231 2003-09-08 Ulrich Drepper <drepper@redhat.com>
3232
3233 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Undo last change.
3234 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
3235
3236 2003-09-08 Jakub Jelinek <jakub@redhat.com>
3237
3238 * sysdeps/generic/bits/types.h (__quad_t): Make long int if 64-bit.
3239 (__u_quad_t): Make unsigned long int if 64-bit.
3240 (__SQUAD_TYPE): Make long int if 64-bit.
3241 (__UQUAD_TYPE): Make unsigned long int if 64-bit.
3242 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Remove.
3243
3244 2003-09-08 Ulrich Drepper <drepper@redhat.com>
3245
3246 * Makefile (tests): Run check-c++-types.sh if possible.
3247 * scripts/check-c++-types.h: New file.
3248 * scripts/data/c++-types-i386-linux-gnu.data: New file.
3249
3250 2003-09-08 Andreas Jaeger <aj@suse.de>
3251
3252 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
3253 Use struct sigcontext.
3254
3255 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
3256 Use struct sigcontext.
3257 (GET_PC): Adopt.
3258 (GET_FRAME): Likewise.
3259 (GET_STACK): Likewise.
3260
3261 2003-09-08 Wolfram Gloger <wg@malloc.de>
3262
3263 * malloc/malloc.c (sYSMALLOc): Move foreign sbrk accounting into
3264 contiguous case. Bug report from Prem Gopalan <prem@mazunetworks.com>.
3265 (mALLOPt): Avoid requirement of C99.
3266
3267 2003-09-08 Ulrich Drepper <drepper@redhat.com>
3268
3269 * libio/bug-ftell.c: Include <sys/types.h>.
3270 (main): Mark cp as const.
3271
3272 2003-09-07 Jakub Jelinek <jakub@redhat.com>
3273
3274 * sysdeps/unix/sysv/linux/syscalls.list (fcntl): Remove.
3275 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: Remove.
3276
3277 2003-09-05 Roland McGrath <roland@redhat.com>
3278
3279 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Fill in c_ispeed
3280 and c_ospeed fields.
3281 * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Set c_ospeed field.
3282 (cfsetispeed): Set c_ispeed field.
3283 * sysdeps/unix/sysv/linux/tcsetattr.c (IBAUD0): Define unconditionally
3284 to match corresponding speed.c code.
3285
3286 2003-09-06 Ulrich Drepper <drepper@redhat.com>
3287
3288 * libio/wfileops.c (_IO_wfile_underflow): Mark beginning of the
3289 narrow character buffer.
3290 * libio/Makefile: Add rules to build and run bug-ftell.
3291 * libio/bug-ftell.c: New file.
3292
3293 * stdio-common/vfprintf.c: Don't use the first grouping number twice.
3294
3295 * stdio-common/vfscanf.c (vfscanf): Fix recognition of characters
3296 matching the decimal point and possibly leading the thousands
3297 separator. This caused the recognition of thousands separators to
3298 always fail.
3299
3300 2003-09-05 Ulrich Drepper <drepper@redhat.com>
3301
3302 * libio/fileops.c (_IO_new_file_overflow): Handle switching to
3303 write mode from read in backup buffer.
3304 * libio/Makefile (tests): Add bug-ungetc2.
3305 * libio/bug-ungetc2.c: New file.
3306
3307 2003-09-05 Roland McGrath <roland@redhat.com>
3308
3309 * nss/getXXbyYY.c (FUNCTION_NAME): Remove unused variable.
3310
3311 2003-09-04 Roland McGrath <roland@frob.com>
3312
3313 * sysdeps/mach/hurd/mmap.c (__mmap): If io_map fails with MIG_BAD_ID,
3314 EOPNOTSUPP, or ENOSYS, change it to ENODEV.
3315
3316 2003-09-04 H.J. Lu <hongjiu.lu@intel.com>
3317
3318 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ):
3319 Fix a typo.
3320
3321 2003-09-05 Andreas Jaeger <aj@suse.de>
3322
3323 * sysdeps/i386/bits/string.h (__memrchr): Do addition in assembler
3324 to make it conforming C.
3325 * sysdeps/i386/i486/bits/string.h (__memrchr): Likewise.
3326
3327 * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Change
3328 prototype to use variable argument lists and get the possible one
3329 argument via va_arg.
3330 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Likewise.
3331 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: New.
3332
3333 2003-09-04 Ulrich Drepper <drepper@redhat.com>
3334
3335 * posix/unistd.h: Add back __THROW to sysconf, pathconf, fpathconf.
3336
3337 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
3338 Report correct value for vxfs.
3339 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define VXFS_SUPER_MAGIC.
3340
3341 * gmon/gmon.c: Use only not-cancelable syscalls to write profiling
3342 data.
3343
3344 * sysdeps/generic/utmp_file.c: Use not-cancelable syscalls all
3345 over the place. It would be allowed to have these functions as
3346 cancellation points but the cleanup would be ugly and a lot of
3347 work.
3348
3349 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Define.
3350 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Define.
3351
3352 * include/fcntl.h (__fcntl_nocancel): Declare.
3353 * sysdeps/unix/sysv/linux/fcntl.c: New file.
3354 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Only enable
3355 cancellation if absolutely needed.
3356 (__fcntl_nocancel): Define.
3357
3358 * posix/unistd.h (gethostid): Remove __THROW. Clarify comment.
3359 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gethostid.c): Add
3360 -fexceptions.
3361 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use
3362 extend_alloca.
3363
3364 * resolv/res_init.c (__res_nclose): Use close_not_cancel_no_status
3365 instead of __close.
3366
3367 * nss/getXXbyYY.c (FUNCTION_NAME): Add a few casts. Remove
3368 unnecessary errno handling.
3369
3370 * nss/getXXbyYY_r.c (INTERNAL): Use better variable name.
3371 Initialize it in all cases. Change it to be a bit more like the
3372 code we had before.
3373
3374 2003-09-04 Jakub Jelinek <jakub@redhat.com>
3375
3376 * libio/fileops.c (_IO_file_read, _IO_new_file_write): Add
3377 __builtin_expect.
3378 (_IO_file_open): Likewise. Use close_not_cancel.
3379
3380 2003-09-04 Ulrich Drepper <drepper@redhat.com>
3381
3382 * libio/libio.h: Define _IO_FLAGS2_NOTCANCEL.
3383 * libio/fileops.c [_LIBC]: Remove close macro.
3384 (_IO_file_open): If _IO_FLAGS2_NOTCANCEL is set, use open_not_cancel.
3385 (_IO_new_file_open): Recognize 'c' flag in mode string.
3386 (_IO_file_read): If _IO_FLAGS2_NOTCANCEL is set use read_not_cancel.
3387 (_IO_new_file_write): If _IO_FLAGS2_NOTCANCEL is set use
3388 write_not_cancel.
3389 * iconv/gconv_conf.c: Use fopen with 'c' mode flag.
3390 * inet/rcmd.c: Likewise.
3391 * inet/ruserpass.c: Likewise.
3392 * intl/localealias.c: Likewise.
3393 * malloc/mtrace.c: Likewise.
3394 * misc/getpass.c: Likewise.
3395 * misc/getttyent.c: Likewise.
3396 * misc/mntent_r.c: Likewise.
3397 * misc/getusershell.c: Likewise.
3398 * nss/nsswitch.c: Likewise.
3399 * resolv/res_hconf.c: Likewise.
3400 * resolv/res_init.c: Likewise.
3401 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
3402 * time/getdate.c: Likewise.
3403 * time/tzfile.c: Likewise.
3404 * misc/fstab.h: Undo last change.
3405 * misc/mntent.h: Likewise.
3406 * misc/Makefile: Remove CFLAGS-mntent_r.c, CFLAGS-mntent.c, and
3407 CFLAGS-fstab.c definition.
3408
3409 2003-09-04 Jakub Jelinek <jakub@redhat.com>
3410
3411 * sysdeps/generic/unwind.h (_Unwind_GetBSP): Add prototype.
3412
3413 2003-09-03 Ulrich Drepper <drepper@redhat.com>
3414
3415 * nss/getXXbyYY_r.c (INTERNAL): Explicitly set errno and avoid
3416 returning ERANGE if this wasn't intended.
3417
3418 2003-09-03 Jakub Jelinek <jakub@redhat.com>
3419
3420 * intl/loadmsgcat.c (open, close, read, mmap, munmap): Define as
3421 function-like macros.
3422
3423 2003-09-03 Ulrich Drepper <drepper@redhat.com>
3424
3425 * grp/Makefile (CFLAGS-getgrent_r.c): Add -fexceptions.
3426 (CFLAGS-getgrent.c): Likewise.
3427 * pwd/Makefile (CFLAGS-getpwent_r.c): Add -fexceptions.
3428 (CFLAGS-getpwent.c): Likewise.
3429 * shadow/Makefile (CFLAGS-getspent_r.c): Add -fexceptions.
3430 (CFLAGS-getspent.c): Likewise.
3431
3432 * inet/Makefile: Add -fexceptions to CFLAGS for the various
3433 getXXent and getXXbyYY functions.
3434
3435 * locale/loadlocale.c: Use not-cancelable variants of open, close,
3436 and read.
3437
3438 2003-09-02 Jakub Jelinek <jakub@redhat.com>
3439
3440 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
3441 rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait, rt_sigqueueinfo and
3442 rt_sigpending.
3443 * sysdeps/unix/sysv/linux/alpha/sigaction.c (__syscall_rt_sigaction):
3444 New prototype.
3445 * sysdeps/unix/sysv/linux/arm/syscalls.list (__syscall_*): Remove
3446 unused __syscall_ stubs.
3447 * sysdeps/unix/sysv/linux/arm/Makefile (sysdep_routines): Remove
3448 rt_*.
3449 * sysdeps/unix/sysv/linux/cris/Makefile: Removed.
3450 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list
3451 (__syscall_recvfrom, __syscall_sendto): Remove unused aliases.
3452 * sysdeps/unix/sysv/linux/mips/syscalls.list (__syscall_*): Remove
3453 unused __syscall_ stubs.
3454 * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Remove rt_*.
3455 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
3456 (__syscall_*): Remove unused __syscall_ stubs.
3457 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
3458 (__syscall_*): Likewise.
3459 * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines): Remove
3460 rt_*.
3461 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__syscall_*):
3462 Remove unused __syscall_ stubs.
3463 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_routines): Remove rt_*.
3464 * sysdeps/unix/sysv/linux/rt_sigaction.c: Removed.
3465 * sysdeps/unix/sysv/linux/rt_sigpending.c: Removed.
3466 * sysdeps/unix/sysv/linux/rt_sigprocmask.c: Removed.
3467 * sysdeps/unix/sysv/linux/rt_sigqueueinfo.c: Removed.
3468 * sysdeps/unix/sysv/linux/rt_sigreturn.c: Removed.
3469 * sysdeps/unix/sysv/linux/rt_sigsuspend.c: Removed.
3470 * sysdeps/unix/sysv/linux/rt_sigtimedwait.c: Removed.
3471 * sysdeps/unix/sysv/linux/s_pread64.c: Removed.
3472 * sysdeps/unix/sysv/linux/s_pwrite64.c: Removed.
3473 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Remove unused
3474 __syscall_* prototypes.
3475 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Likewise.
3476 * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
3477 * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
3478 * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
3479 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
3480 * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
3481 * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
3482 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
3483 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
3484 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
3485 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
3486 * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
3487 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
3488 * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
3489 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
3490 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
3491 * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
3492 * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
3493 * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
3494 * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
3495 * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
3496 * sysdeps/unix/sysv/linux/i386/lockf64.c: Likewise.
3497 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
3498 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
3499 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
3500 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
3501 * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
3502 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
3503 * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
3504 * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
3505 * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
3506 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
3507 * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
3508 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
3509 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
3510 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
3511 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
3512 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
3513 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
3514 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
3515 * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
3516 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
3517 * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
3518 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
3519 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3520 * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
3521 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3522 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
3523 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
3524 * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
3525 * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
3526 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
3527 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
3528 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
3529 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
3530 * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
3531 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c: Likewise.
3532 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
3533 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
3534 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
3535 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
3536 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c: Likewise.
3537 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
3538 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
3539 * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
3540 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
3541 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
3542 * sysdeps/unix/sysv/linux/execve.c: Likewise.
3543 * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
3544 * sysdeps/unix/sysv/linux/reboot.c: Likewise.
3545 * sysdeps/unix/sysv/linux/_exit.c: Likewise.
3546 * sysdeps/unix/sysv/linux/ftruncate64.c: Likewise.
3547 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
3548 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
3549 * sysdeps/unix/sysv/linux/gai_sigqueue.c: Likewise.
3550 * sysdeps/unix/sysv/linux/readahead.c: Likewise.
3551 * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
3552 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
3553 * sysdeps/unix/sysv/linux/getdents.c: Likewise.
3554 * sysdeps/unix/sysv/linux/readv.c: Likewise.
3555 * sysdeps/unix/sysv/linux/getpriority.c: Likewise.
3556 * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
3557 * sysdeps/unix/sysv/linux/ipc_priv.h: Likewise.
3558 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
3559 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
3560 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
3561 * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
3562 * sysdeps/unix/sysv/linux/ustat.c: Likewise.
3563 * sysdeps/unix/sysv/linux/poll.c: Likewise.
3564 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
3565 * sysdeps/unix/sysv/linux/writev.c: Likewise.
3566 * sysdeps/unix/sysv/linux/pread.c: Likewise.
3567 * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
3568 * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
3569 * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
3570 * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
3571 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
3572 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
3573 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
3574 * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
3575 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
3576 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
3577
3578 2003-09-02 Jakub Jelinek <jakub@redhat.com>
3579
3580 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Revert last change.
3581 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: New file.
3582 * sysdeps/unix/sysv/linux/sparc/syscalls.list: New file.
3583
3584 2003-09-02 Ulrich Drepper <drepper@redhat.com>
3585
3586 * stdio-common/Makefile (CFLAGS-vprintf.c): Add -fexceptions.
3587
3588 * intl/loadmsgcat.c: For _LIBC, call not cancelable versions of
3589 open, close, and read.
3590
3591 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Also define
3592 *_nocancel name.
3593
3594 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add waitpid.
3595
3596 * libio/Makefile (CFLAGS-oldtmpfile.c): Add -fexceptions.
3597 * sysdeps/generic/tmpfile.c (tmpfile): Use __unlink instead of remove.
3598 * libio/oldtmpfile.c (__old_tmpfile): Likewise.
3599
3600 * misc/Makefile (CFLAGS-getusershell.c): Add -fexceptions.
3601
3602 * io/Makefile (CFLAGS-statfs.c): Add -fexceptions.
3603 (CFLAGS-fstatfs.c): Likewise.
3604 (CFLAGS-statvfs.c): Likewise.
3605 (CFLAGS-fstatvfs.c): Likewise.
3606
3607 2003-09-01 Ulrich Drepper <drepper@redhat.com>
3608
3609 * misc/Makefile (CFLAGS-getsysstats.c): Add -fexceptions.
3610 * posix/unistd.h: Remove __THROW from pathconf, fpathconf,
3611 sysconf.
3612 * posix/Makefile (CFLAGS-sysconf.c): Add -fexceptions.
3613 (CFLAGS-pathconf.c): Likewise.
3614 (CFLAGS-fpathconf.c): Likewise.
3615
3616 * misc/Makefile (CFLAGS-fstab.c): Add -fexceptions.
3617 * misc/fstab.h: Remove all __THROW.
3618 * misc/Makefile (CFLAGS-mntent.c): Add -fexceptions.
3619 (CFLAGS-mntent_r.c): Likewise.
3620 * misc/mntent.h: Remove most __THROW.
3621
3622 * misc/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
3623 (CFLAGS-mkstemp64.c): Likewise.
3624
3625 * sysdeps/generic/wordexp.c (parse_comm): Disable cancellation
3626 around call to exec_comm.
3627 * posix/wordexp.h: Remove __THROW from wordexp.
3628 * posix/Makefile (CFLAGS-wordexp.c): Add -fexceptions.
3629
3630 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Use
3631 not-cancelable functions.
3632
3633 * libio/Makefile (CFLAGS-oldiofopen.c): Add -fexceptions.
3634 (CFLAGS-iofopen.c): Likewise.
3635 (CFLAGS-iofopen64.c): Likewise.
3636
3637 * stdlib/fmtmsg.c (fmtmsg): Disable cancellation around output
3638 functions.
3639 * stdlib/Makefile (CFLAGS-fmtmsg.c): Add -fexceptions.
3640 * stdlib/fmtmsg.h: Remove __THROW from fmtmsg.
3641
3642 * stdlib/stdlib.h: Remove __THROW from posix_openpt and getpt.
3643 * login/Makefile (CFLAGS-getpt.c): Add -fexceptions.
3644
3645 2003-09-01 Thorsten Kukuk <kukuk@suse.de>
3646
3647 * nis/nss_compat/compat-spwd.c (getspnam_plususer): Return
3648 NSS_STATUS_SUCCESS if entry was found.
3649 (getspent_next_file): Store user in blacklist after entry
3650 was found, use innetgr.
3651
3652 2003-09-01 Jakub Jelinek <jakub@redhat.com>
3653
3654 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: New.
3655 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: New.
3656
3657 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Fix tls offset
3658 computation for TCB_AT_TP. Support l_firstbyte_offset != 0 for
3659 DTV_AT_TP, optimize.
3660
3661 2003-08-31 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3662
3663 * sysdeps/unix/sysv/linux/sh/Versions: Add posix_fadvise64 and
3664 posix_fallocate64 at GLIBC_2.3.3.
3665 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO_ERRVAL): Define.
3666 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
3667
3668 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
3669
3670 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove __syscall_
3671 functions.
3672
3673 2003-08-31 Ulrich Drepper <drepper@redhat.com>
3674
3675 * libio/libioP.h (_IO_acquire_lock_fct): Define as inline function.
3676 Code by Richard Henderson.
3677
3678 2003-08-31 Philip Blundell <philb@gnu.org>
3679
3680 * sysdeps/unix/sysv/linux/arm/Versions: Add posix_fadvise64 and
3681 posix_fallocate64 at GLIBC_2.3.3.
3682
3683 2003-08-31 Ulrich Drepper <drepper@redhat.com>
3684
3685 * sysdeps/x86_64/bsd-_setjmp.S: Use HIDDEN_JUMPTARGET.
3686 * include/setjmp.h: Add libc_hidden_proto for __sigsetjmp.
3687
3688 2003-08-30 Jakub Jelinek <jakub@redhat.com>
3689
3690 * sysdeps/generic/sysdep.h (cfi_window_save, CFI_WINDOW_SAVE): Define.
3691 * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Allow file to be
3692 included multiple times.
3693 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Pass
3694 ptid, tls, ctid arguments to the kernel.
3695 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
3696 Use INTERNAL_SYSCALL instead of __syscall_getpagesize.
3697 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
3698 (__libc_sigaction): Use INLINE_SYSCALL instead of
3699 __syscall_rt_sigaction.
3700 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
3701 (__syscall_getgroups, __syscall_getpagesize, __syscall__llseek,
3702 __syscall_setfsgid, __syscall_setfsuid, __syscall_setgid,
3703 __syscall_setgroups, __syscall_setregid, __syscall_setreuid,
3704 __syscall_ipc, __syscall_setuid, __syscall_rt_sigaction,
3705 __syscall_rt_sigpending, __syscall_rt_sigprocmask,
3706 __syscall_rt_sigqueueinfo, __syscall_rt_sigsuspend,
3707 __syscall_rt_sigtimedwait): Remove unneeded syscall stubs.
3708 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (sysdep_routines):
3709 Remove rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait,
3710 rt_sigqueueinfo, rt_sigaction and rt_sigpending.
3711 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3712 (__CLONE_SYSCALL_STRING): Define.
3713 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Add
3714 CFI directives.
3715 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3716 (__CLONE_SYSCALL_STRING): Define.
3717 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_CLONE_SYSCALL):
3718 Define.
3719 * sysdeps/unix/sysv/linux/sparc/system.c: New file.
3720
3721 2003-08-30 Ulrich Drepper <drepper@redhat.com>
3722
3723 * sunrpc/rpc/clnt.h: Remove a few __THROW.
3724 * sunrpc/Makefile (CFLAGS-auth_unix.c): Add -fexceptions.
3725 (CFLAGS-key_call.c): Likewise.
3726 (CFLAGS-pmap_rmt.c): Likewise.
3727 (CFLAGS-clnt_perr.c): Likewise.
3728 * sunrpc/rpc/auth.h: Remove serveral __THROW.
3729
3730 * inet/Makefile (CFLAGS-gethstbyad_r.c): Add -fexceptions.
3731 (CFLAGS-gethstbynm_r.c): Likewise.
3732 (CFLAGS-gethstbynm2_r.c): Likewise.
3733 (CFLAGS-rcmd.c): Likewise.
3734 * resolv/Makefile (CFLAGS-res_hconf.c): Add -fexceptions.
3735
3736 * argp/Makefile (CFLAGS-argp-help.c): Add -fexceptions.
3737 (CFLAGS-argp-fmtstream.c): Likewise.
3738 * argp/argp.h: Remove a number of __THROW.
3739
3740 * misc/sys/syslog.h (vsyslog): Remove __THROW.
3741
3742 * misc/Makefile (CFLAGS-getpass.c): Add -fexceptions.
3743 * misc/getpass.c (getpass): Add cleanup handler to ensure the
3744 stream is closed even if the thread is canceled.
3745 (call_fclose): New function.
3746 * posix/unistd.h: Remove __THROW from getpass prototype.
3747
3748 * posix/Makefile (CFLAGS-getopt.c): Add -fexceptions.
3749
3750 * signal/signal.h (psignal): Remove __THROW.
3751 * stdio-common/Makefile (CFLAGS-psignal.c): Add -fexceptions.
3752
3753 * misc/Makefile (CFLAGS-error.c): Define.
3754 * misc/error.c (error): Disable cancellation handling around the
3755 actual output. The message should in any case be printed.
3756 (error_at_line): Likewise.
3757
3758 * misc/error.h: Protect parameter names with leading __.
3759
3760 2003-08-28 Carlos O'Donell <carlos@baldric.uwo.ca>
3761
3762 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Add semtimedop.
3763
3764 2003-08-29 Jakub Jelinek <jakub@redhat.com>
3765
3766 * libio/iofgetpos64.c (_IO_new_fgetpos64): Move lock release to the
3767 end.
3768
3769 2003-08-29 Ulrich Drepper <drepper@redhat.com>
3770
3771 * libio/stdio.h: Remove a few more __THROW.
3772
3773 2003-08-29 Jakub Jelinek <jakub@redhat.com>
3774
3775 * libio/Makefile: Compile fputc.c, fputwc.c, freopen64.c, freopen.c,
3776 fseek.c, fseeko64.c, fseeko.c, ftello64.c, ftello.c, fwide.c, getc.c,
3777 getchar.c, getwc.c, getwchar.c, iofclose.c, iofflush.c, iofgetpos64.c,
3778 iofgetpos.c, iofgets.c, iofgetws.c, iofputs.c, iofputws.c, iofread.c,
3779 iofsetpos64.c, iofsetpos.c, ioftell.c, iofwrite.c, iogetdelim.c,
3780 iogetline.c, iogets.c, iogetwline.c, ioputs.c, ioseekoff.c,
3781 ioseekpos.c, iosetbuffer.c, iosetvbuf.c, ioungetc.c, ioungetwc.c,
3782 oldfileops.c, oldiofclose.c, oldiofgetpos64.c, oldiofgetpos.c,
3783 oldiofsetpos64.c, oldiofsetpos.c, peekc.c, putc.c, putchar.c, putwc.c,
3784 putwchar.c and rewind.c with exceptions.
3785 * sysdeps/generic/bits/stdio-lock.h (_IO_acquire_lock,
3786 _IO_release_lock): Define.
3787 * libio/fileops.c (_IO_new_file_underflow): Use it.
3788 * libio/fputc.c (fputc): Likewise.
3789 * libio/fputwc.c (fputwc): Likewise.
3790 * libio/freopen64.c (freopen64):
3791 * libio/freopen.c (freopen): Likewise.
3792 * libio/fseek.c (fseek): Likewise.
3793 * libio/fseeko64.c (fseeko64): Likewise.
3794 * libio/fseeko.c (fseeko): Likewise.
3795 * libio/ftello64.c (ftello64): Likewise.
3796 * libio/ftello.c (ftello): Likewise.
3797 * libio/fwide.c (fwide): Likewise.
3798 * libio/getc.c (_IO_getc): Likewise.
3799 * libio/getchar.c (getchar): Likewise.
3800 * libio/getwc.c (_IO_getwc): Likewise.
3801 * libio/getwchar.c (getwchar): Likewise.
3802 * libio/iofclose.c (_IO_new_fclose):
3803 * libio/iofflush.c (_IO_fflush): Likewise.
3804 * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
3805 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
3806 * libio/iofgets.c (_IO_fgets): Likewise.
3807 * libio/iofgetws.c (fgetws): Likewise.
3808 * libio/iofputs.c (_IO_fputs): Likewise.
3809 * libio/iofputws.c (fputws): Likewise.
3810 * libio/iofread.c (_IO_fread): Likewise.
3811 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
3812 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
3813 * libio/ioftell.c (_IO_ftell): Likewise.
3814 * libio/iofwrite.c (_IO_fwrite): Likewise.
3815 * libio/iogetdelim.c (_IO_getdelim): Likewise.
3816 * libio/iogets.c (_IO_gets): Likewise.
3817 * libio/ioputs.c (_IO_puts): Likewise.
3818 * libio/ioseekoff.c (_IO_seekoff): Likewise.
3819 * libio/ioseekpos.c (_IO_seekpos): Likewise.
3820 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
3821 * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
3822 * libio/ioungetc.c (_IO_ungetc): Likewise.
3823 * libio/ioungetwc.c (ungetwc): Likewise.
3824 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
3825 * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
3826 * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
3827 * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
3828 * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
3829 * libio/peekc.c (_IO_peekc_locked): Likewise.
3830 * libio/putc.c (_IO_putc): Likewise.
3831 * libio/putchar.c (putchar): Likewise.
3832 * libio/putwc.c (putwc): Likewise.
3833 * libio/putwchar.c (putwchar): Likewise.
3834 * libio/rewind.c (rewind): Likewise.
3835 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
3836
3837 2003-08-29 Ulrich Drepper <drepper@redhat.com>
3838
3839 * signal/signal.h: sighold, sigrelse, sigignore, sigset were
3840 available in XPG4.2.
3841
3842 2003-08-27 Phil Knirsch <pknirsch@redhat.com>
3843 Jakub Jelinek <jakub@redhat.com>
3844
3845 * sunrpc/svc.c (svc_getreqset): Fix fds_bits reading on 64-bit
3846 big endian arches. Don't read beyond end of fds_bits array.
3847
3848 2003-04-27 Bruno Haible <bruno@clisp.org>
3849
3850 * manual/message.texi (Advanced gettext functions): Add information
3851 about Korean, Portuguese, Latvian. Gaeilge is also known as Irish.
3852 Add section about Lithuanian, reported by Ricardas Cepas
3853 <rch@richard.eu.org>.
3854 Add information about Croatian.
3855 Ukrainian is like Russian, reported by Andy Rysin <arysin@yahoo.com>.
3856 Remove remark about continuation lines that is not true for PO files.
3857 Fix formula for Slovenian, reported by Roman Maurer
3858 <roman.maurer@amis.net>.
3859
3860 2003-08-27 Ulrich Drepper <drepper@redhat.com>
3861
3862 * math/math_private.h: Declare __copysignf.
3863 * sysdeps/ieee754/flt-32/s_scalbnf.c: Use __copysignf instead of
3864 copysignf.
3865
3866 * sysdeps/x86_64/fpu/bits/mathinline.h: Define __signbitf,
3867 __signbit, and __signbitl inline functions.
3868
3869 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Use
3870 HIDDEN_JUMPTARGET instead of JUMPTARGET to call exit().
3871
3872 * sysdeps/x86_64/bsd-_setjmp.S [PIC]: Jump to __GI___sigsetjmp.
3873 * sysdeps/x86_64/setjmp.S: Add libc_hidden_def for __sigsetjmp.
3874
3875 2003-08-27 Jakub Jelinek <jakub@redhat.com>
3876
3877 * inet/inet_mkadr.c (inet_makeaddr): Optimize.
3878
3879 2003-08-27 Ulrich Drepper <drepper@redhat.com>
3880
3881 * include/stdio.h: Add declarations for __builtin_fwrite and
3882 __builtin_fwrite_unlocked.
3883
3884 2003-08-27 Jakub Jelinek <jakub@redhat.com>
3885
3886 * sysdeps/unix/opendir.c (__opendir): Make sure even struct dirent64
3887 fits into allocation. Add padding on 32-bit arches so that
3888 dirp->data is enough aligned for struct dirent64.
3889 Avoid clearing of the buffer, just clear DIR structure.
3890
3891 2003-08-26 Ulrich Drepper <drepper@redhat.com>
3892
3893 * nss/nsswitch.c: Add libc_hidden_def for __nss_lookup_function.
3894 * nss/nsswitch.h: Add libc_hidden_proto for __nss_lookup_function.
3895
3896 2003-08-26 Steven Munroe <sjmunroe@us.ibm.com>
3897
3898 * sysdeps/powerpc/powerpc64/elf/Makefile: New file.
3899
3900 2003-08-26 Jakub Jelinek <jakub@redhat.com>
3901
3902 * login/programs/utmpdump.c (print_entry): Cast tv_usec to long
3903 to match format string.
3904 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (union semun): Add
3905 __old_buf.
3906 (__new_semctl): Shut up warning.
3907 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
3908 (_dl_string_hwcap): Add __attribute__ ((always_inline)).
3909
3910 2003-08-26 Jakub Jelinek <jakub@redhat.com>
3911
3912 * elf/ldconfig.c (search_dir): When checking for GNU-style .so
3913 link file use the real file name, not the resolved name we got by
3914 following the symlinks.
3915
3916 2003-08-25 Ulrich Drepper <drepper@redhat.com>
3917
3918 * libio/oldfileops.c (_IO_old_file_init): Initialize _mode field
3919 if the object size is large enough.
3920
3921 2003-08-25 Jakub Jelinek <jakub@redhat.com>
3922
3923 * elf/ldconfig.c (search_dir): Treat symlink as regular file
3924 if it won't point to itself unless it is .so symlink for the linker.
3925
3926 2003-08-25 Ulrich Drepper <drepper@redhat.com>
3927
3928 * libio/libio.h (_IO_fwide): In the mode==0 optimization, don't
3929 use _mode if _IO_fwide_maybe_incompatible.
3930 * libio/iofwide.c (_IO_fwide): Move the test for mode == 0 after
3931 the compatibility test.
3932
3933 2003-08-25 Jakub Jelinek <jakub@redhat.com>
3934
3935 * elf/cache.c (save_cache): Don't write beyond end of file_entries
3936 buffer.
3937 Duplicate last old cache entry if the count would be odd.
3938
3939 2003-08-25 Andreas Jaeger <aj@suse.de>
3940
3941 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Cast arguments of
3942 __LONG_LONG_PAIR to long.
3943
3944 2003-08-25 Philip Blundell <philb@gnu.org>
3945
3946 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define.
3947 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
3948
3949 2003-08-18 Alfred M. Szmidt <ams@kemisten.nu>
3950
3951 * sysdeps/generic/bits/libc-lock.h (__libc_cleanup_pop): Redefine
3952 and use __libc_cleanup_region_end instead.
3953
3954 2003-08-25 Ulrich Drepper <drepper@redhat.com>
3955
3956 * elf/ldconfig.c (search_dir): Revert patch of 2003-7-21.
3957
3958 2003-08-22 Ulrich Drepper <drepper@redhat.com>
3959
3960 * io/fcntl.h (posix_fallocate): Change type of third parameter to
3961 off_t.
3962 (posix_fallocate64): Change type of third parameter to off64_t.
3963 * sysdeps/generic/posix_fallocate.c: Adjust for type change.
3964 * sysdeps/posix/posix_fallocate.c: Likewise.
3965 * sysdeps/generic/posix_fallocate64.c: Likewise.
3966 * sysdeps/posix/posix_fallocate64.c: Likewise. Add compatibility
3967 code for 32-bit platforms.
3968 * sysdeps/unix/sysv/linux/i386/Versions: Add new version for
3969 posix_fallocate64.
3970 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Likewise.
3971 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
3972 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
3973
3974 2003-08-19 Ulrich Drepper <drepper@redhat.com>
3975
3976 * string/bits/string2.h (__STRING2_COPY_TYPE): Add attribute to
3977 the type, not to name.
3978
3979 * stdio-common/test-vfprintf.c (main): Don't write temporary file
3980 into source directory.
3981
3982 * malloc/malloc.c (_int_free): Add cheap test for some invalid
3983 block sizes.
3984
3985 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo in
3986 syscall name.
3987
3988 2003-08-18 Ulrich Drepper <drepper@redhat.com>
3989
3990 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Fold EISDIR error
3991 into EINVAL.
3992
3993 2003-08-18 H.J. Lu <hongjiu.lu@intel.com>
3994
3995 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Use _dl_reloc_bad_type.
3996 (elf_machine_lazy_rel): Likewise.
3997
3998 2003-08-18 Art Haas <ahaas@airmail.net>
3999
4000 * malloc/malloc.h: Remove unneeded ';' where closing the C++
4001 extern block.
4002
4003 2003-08-18 Ulrich Drepper <drepper@redhat.com>
4004
4005 * sysdeps/ia64/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Support
4006 loading big binaries where @gprel(sym) cannot be handled in 'add'
4007 but instead has to be used with 'movl'.
4008
4009 2003-08-17 Juergen Kreileder <jk@blackdown.de>
4010 Andreas Jaeger <aj@suse.de>
4011
4012 * sysdeps/x86_64/bits/byteswap.h: New file.
4013
4014 2003-08-17 Andreas Jaeger <aj@suse.de>
4015
4016 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo.
4017
4018 2003-08-16 Jakub Jelinek <jakub@redhat.com>
4019
4020 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_ERRVAL,
4021 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
4022 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_ERRVAL,
4023 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
4024 * sysdeps/unix/alpha/sysdep.h (PSEUDO_ERRVAL,
4025 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
4026 * sysdeps/unix/mips/sysdep.h (PSEUDO_ERRVAL,
4027 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
4028 * sysdeps/unix/sparc/sysdep.h (PSEUDO_ERRVAL,
4029 ret_ERRVAL): Define.
4030 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_ERRVAL,
4031 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
4032 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO_ERRVAL,
4033 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
4034 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO_ERRVAL):
4035 Define.
4036 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_ERRVAL,
4037 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
4038 * sysdeps/unix/sysdep.h (PSEUDO_END_ERRVAL): Define.
4039
4040 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64,
4041 posix_fadvise64_64): Remove.
4042 * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64): Add
4043 V flag.
4044 * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64):
4045 Likewise.
4046 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
4047 (posix_fadvise64): Likewise.
4048 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
4049 (posix_fadvise64): Likewise.
4050 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4051 (posix_fadvise64): Likewise.
4052 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64):
4053 Likewise.
4054 * sysdeps/unix/sysv/linux/i386/posix_fadvise64_64.S: Moved to...
4055 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: ...here.
4056 (__posix_fadvise64_l64): Fix a typo in fadvise64 syscall invocation.
4057 (__posix_fadvise64_l32): New function.
4058 * sysdeps/unix/sysv/linux/i386/Makefile: Revert last change.
4059 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Export
4060 posix_fadvise64@@GLIBC_2.3.3.
4061 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
4062 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
4063 * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Return
4064 error value.
4065 * sysdeps/unix/sysv/linux/posix_fadvise64.c: New file.
4066
4067 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4068 (SYSCALL_ERROR_HANDLER): Use TLS errno/__libc_errno if USE___THREAD.
4069
4070 2003-08-15 Jakub Jelinek <jakub@redhat.com>
4071
4072 * sysdeps/sparc/sparc32/dl-machine.h (WEAKADDR): Remove.
4073 (elf_machine_matches_host): Remove weak extern stuff.
4074 Use GL(dl_hwcap) unconditionally and GL(dl_hwcap_mask) if SHARED.
4075 (elf_machine_runtime_setup, sparc_fixup_plt): Remove weak extern
4076 stuff. Use GL(dl_hwcap) unconditionally.
4077
4078 2003-08-16 Alan Modra <amodra@bigpond.net.au>
4079
4080 * sysdeps/powerpc/powerpc64/elf/start.S: Add a nop after
4081 __libc_start_main branch.
4082
4083 2003-08-16 Jakub Jelinek <jakub@redhat.com>,
4084 Andreas Jaeger <aj@suse.de>
4085
4086 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS
4087 instead of setting errno.
4088 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
4089
4090 2003-08-16 Andreas Jaeger <aj@suse.de>
4091
4092 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype.
4093 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
4094
4095 2003-08-15 Ulrich Drepper <drepper@redhat.com>
4096
4097 * io/fcntl.h (posix_fadvise64): Change type of third parameter to
4098 off_t.
4099 * sysdeps/unix/sysv/linux/posix_fadvise.c: Adjust definition.
4100 * sysdeps/unix/make-syscalls.sh: Recognize V prefix to the parameter
4101 description indicating the error value is returned, not -1.
4102 * sysdeps/unix/sysv/linux/kernel-features.h: Add definition of
4103 __ASSUME_FADVISE64_64_SYSCALL.
4104 * sysdeps/unix/sysv/linux/syscalls.list: Don't define madvise and
4105 posix_madvise in one file. Have posix_madvise defined with error
4106 value returned.
4107 Define posix_fadvise64_64 entry. Add version info to posix_fadvise64
4108 entry.
4109 * sysdeps/unix/sysv/linux/i386/posix_fadvise.S: New file.
4110 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_ERRVAL,
4111 PSEUDO_END_ERRVAL, and ret_ERRVAL.
4112 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
4113 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
4114 * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.3.3]: Add
4115 posix_fadvise64.
4116
4117 * posix/Makefile (routines): Add posix_madvise.
4118 * sysdeps/generic/madvise.c: Don't define posix_madvise.
4119 * sysdeps/generic/posix_madvise.c: New file.
4120 * sysdeps/unix/sysv/aix/posix_madvise.c: New file.
4121 * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (subdir_routines):
4122 Add posix_fadvise64_64.
4123
4124 2003-08-15 Jakub Jelinek <jakub@redhat.com>
4125
4126 * assert/assert.h (assert_perror): Use __builtin_expect for gcc >=
4127 3.0, not for !gcc or gcc < 3.0.
4128
4129 2003-08-11 Carlos O'Donell <carlos@baldric.uwo.ca>
4130
4131 * dlfcn/default.c (main): Cast dlsym loaded value to same type as main.
4132 Address passed to test_in_mod1 and test_in_mod2 without casting.
4133 * dlfcn/defaultmod1.c: Change prototype of test_in_mod1.
4134 (test_in_mod1): Cast dlsym loaded value to same type as mainp.
4135 * dlfcn/defaultmod2.c: Change prototype of test_in_mod2.
4136 (test_in_mod2): Cast dlsym loaded value to same type as mainp.
4137
4138 2003-08-15 Jakub Jelinek <jakub@redhat.com>
4139
4140 * sysdeps/sparc/sparc32/elf/configure.in (libc_cv_sparc32_tls):
4141 Change quotes before using [].
4142
4143 * sysdeps/unix/sysv/linux/sparc/sys/user.h: New file.
4144
4145 * sysdeps/sparc/sparc32/bits/atomic.h (__sparc32_atomic_lock):
4146 Renamed to...
4147 (__sparc32_atomic_locks): ...this. Change into 64-byte array.
4148 (__sparc32_atomic_do_lock, __sparc32_atomic_do_unlock): Add addr
4149 argument. Select one of 64 locks from address bits.
4150 (atomic_compare_and_exchange_val_acq,
4151 atomic_compare_and_exchange_bool_acq): Pass memory address to
4152 __sparc32_atomic_do_{,un}lock.
4153
4154 2003-08-14 Ulrich Drepper <drepper@redhat.com>
4155
4156 * assert/assert.h (assert): Use !! in front of expression to allow
4157 use of pointers.
4158
4159 * iconvdata/cp932.c: Fixed checking of a few border of code areas.
4160 Changed conversion of JIS X 0201 from using a table to calculating.
4161 * iconvdata/euc-jp-ms.c: Fixed conversion table and rewrote
4162 conversion routine. Changed CHARSET_NAME definition from EUCJP-MS to
4163 EUC-JP-MS.
4164 * iconvdata/tst-tables.sh: Add CP932 and EUC-JP-MS.
4165 * iconvdata/CP932.irreversible: New file.
4166 * iconvdata/EUC-JP-MS.irreversible: New file.
4167 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
4168
4169 2003-08-13 Ulrich Drepper <drepper@redhat.com>
4170
4171 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add time syscall.
4172
4173 * elf/Makefile: Use LC_ALL=C in a few cases where we call external
4174 text processing tools.
4175
4176 * sysdeps/pthread/aio_misc.h (struct waitlist): Don't add caller_pid
4177 element unless BROKEN_THREAD_SIGNALS is defined.
4178 (struct requestlist): Likewise.
4179 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Don't fill in
4180 caller_pid of new request unless BROKEN_THREAD_SIGNALS is defined.
4181 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
4182 * sysdeps/pthread/aio_notify.c (__aio_notify_only): Remove caller_pid
4183 parameter unless BROKEN_THREAD_SIGNALS is defined. Adjust callers.
4184 Pass current PID to __aio_sigqueue.
4185 * sysdeps/pthread/lio_listio.c (lio_listio): Adjust __aio_notify_only
4186 call. Don't initialize caller_pid field of waitlist element.
4187
4188 2003-08-12 Jakub Jelinek <jakub@redhat.com>
4189
4190 * libio/libioP.h (_IO_vtable_offset): Define.
4191 * libio/freopen.c (freopen): Use it.
4192 * libio/ioputs.c (_IO_puts): Likewise.
4193 * libio/freopen64.c (freopen64): Likewise.
4194 * libio/genops.c (__underflow, __uflow, _IO_flush_all_lockp):
4195 Likewise.
4196 * libio/iofclose.c (_IO_new_fclose): Likewise.
4197 * libio/iofputs.c (_IO_fputs): Likewise.
4198 * libio/ioftell.c (_IO_ftell): Likewise.
4199 * libio/iofwrite.c (_IO_fwrite): Likewise.
4200 * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
4201 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
4202 * stdio-common/vfprintf.c (ORIENT, vfprintf): Likewise.
4203 * stdio-common/vfscanf.c (ORIENT): Likewise.
4204
4205 2003-08-11 Ulrich Drepper <drepper@redhat.com>
4206
4207 * assert/assert.h: Use __builtin_expect in assert and
4208 assert_perror definitions if possible.
4209
4210 2003-08-07 Jakub Jelinek <jakub@redhat.com>
4211
4212 * sysdeps/generic/ldsodefs.h (_rtld_global): Add
4213 _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
4214 * elf/rtld.c (rtld_lock_default_lock_recursive,
4215 rtld_lock_default_unlock_recursive): New functions.
4216 (dl_main): Initialize _dl_rtld_lock_recursive and
4217 _dl_rtld_unlock_recursive.
4218
4219 2003-08-05 Jakub Jelinek <jakub@redhat.com>
4220
4221 * elf/ldconfig.c (main): Append SLIBDIR and LIBDIR to
4222 config_file directories instead of prepending.
4223
4224 2003-08-02 Ulrich Drepper <drepper@redhat.com>
4225
4226 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4227 __ASSUME_CLONE_STOPPED.
4228
4229 2003-08-01 Ulrich Drepper <drepper@redhat.com>
4230
4231 * sysdeps/generic/bits/libc-lock.h
4232 (__libc_cleanup_push,__libc_cleanup_pop): Define even here.
4233
4234 2003-08-01 Roland McGrath <roland@frob.com>
4235
4236 * sysdeps/mach/hurd/getdents.c: Just use sysdeps/generic/getdents.c.
4237
4238 2003-07-31 Jakub Jelinek <jakub@redhat.com>
4239
4240 * sysdeps/generic/bits/types.h (__ssize_t): Use __SSIZE_T_TYPE
4241 instead of __SWORD_TYPE.
4242 * sysdeps/generic/bits/typesizes.h (__SSIZE_T_TYPE): Define.
4243 * sysdeps/mach/hurd/bits/typesizes.h (__SSIZE_T_TYPE): Define.
4244 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h (__SSIZE_T_TYPE):
4245 Define.
4246 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__SSIZE_T_TYPE):
4247 Define.
4248 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__SSIZE_T_TYPE):
4249 Define.
4250 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New file.
4251
4252 * dlfcn/dlerror.c (once): New.
4253 (dlerror): Call __libc_once.
4254 (_dlerror_run): Remove once.
4255
4256 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
4257 Sync with 2.5.7 and 2.5.73 kernel changes.
4258
4259 * dlfcn/eval.c (funcall): Add noinline attribute to shut up warnings.
4260 * elf/rtld.c (dl_main): Cast ElfW(Addr) arguments with %Zx/%Zd
4261 formats to size_t.
4262 * elf/dl-lookup.c (_dl_debug_bindings): Likewise.
4263 * elf/tst-tls6.c (do_test): Use %zd format for l_tls_modid.
4264 * elf/tst-tls8.c (do_test): Use %zd format for modid1 and modid2.
4265 * gmon/tst-sprofil.c (main): Add parens to shut up warning.
4266 * iconv/tst-iconv3.c (main): Use %td instead of %zd for pointer
4267 difference argument.
4268 * stdio-common/tst-wc-printf.c (main): Cast arguments with %C
4269 format to wint_t.
4270 * stdlib/tst-limits.c (main): For WORD_BIT and LONG_BIT, use
4271 %d format and cast expected value to int.
4272 * sysdeps/generic/libc-start.c (STATIC): Add
4273 __attribute__((always_inline) if LIBC_START_MAIN is already defined.
4274 * sysdeps/powerpc/fpu/w_sqrt.c (a_nan, a_inf): Change from uint32_t
4275 to ieee_float_shape_type.
4276 (__sqrt): Avoid type punning.
4277 * sysdeps/powerpc/fpu/w_sqrtf.c (a_nan, a_inf): Change from uint32_t
4278 to ieee_float_shape_type.
4279 (__sqrtf): Avoid type punning.
4280 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Don't define
4281 refsym if in dl-conflict.c.
4282 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
4283 * sysdeps/unix/sysv/linux/i386/semctl.c (union semun): Add __old_buf.
4284 (__new_semctl): Shut up warning.
4285 * sysdeps/unix/sysv/linux/semctl.c (union semun): Add __old_buf.
4286 (__new_semctl): Shut up warning.
4287 * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Wrap long lines.
4288 Change old into union of __old_shmid_ds and __old_shminfo structs.
4289 Adjust all users.
4290 * wcsmbs/wcsmbs-tst1.c (main): Cast arguments with %C format to wint_t.
4291
4292 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Fix actime and
4293 modtime computation.
4294 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
4295 * sysdeps/posix/utimes.c (__utimes): Likewise.
4296
4297 2003-07-30 Jakub Jelinek <jakub@redhat.com>
4298
4299 * elf/dl-reloc.c (_dl_allocate_static_tls): Don't return any value,
4300 call dl_signal_error directly. If already relocated, call
4301 GL(dl_init_static_tls) directly, otherwise queue it for later.
4302 (CHECK_STATIC_TLS): Undo 2003-07-24 change.
4303 * elf/rtld.c (dl_main): Initialize GL(dl_init_static_tls).
4304 * elf/dl-open.c (dl_open_worker): Call GL_dl_init_static_tls
4305 for all static TLS initializations delayed in _dl_allocate_static_tls.
4306 * elf/dl-support.c (_dl_init_static_tls): New variable.
4307 * include/link.h (struct link_map): Add l_need_tls_init.
4308 * sysdeps/generic/ldsodefs.h (_rtld_global): Add _dl_init_static_tls.
4309 (_dl_nothread_init_static_tls): New prototype.
4310 (_dl_allocate_static_tls): Adjust prototype.
4311
4312 * elf/tls-macros.h (VAR_INT_DEF): Add alignment directive.
4313
4314 2003-07-31 Alexandre Oliva <aoliva@redhat.com>
4315
4316 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
4317 elf_machine_rel_relative, elf_machine_rela_relative): Don't assume
4318 reloc_addr is aligned.
4319 * sysdeps/alpha/dl-machine.h (elf_machine_rela,
4320 elf_machine_rela_relative): Adjust.
4321 * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela,
4322 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
4323 * sysdeps/cris/dl-machine.h (elf_machine_rela,
4324 elf_machine_rela_relative): Adjust.
4325 * sysdeps/hppa/dl-machine.h (elf_machine_rela,
4326 elf_machine_rela_relative): Adjust.
4327 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela,
4328 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
4329 * sysdeps/ia64/dl-machine.h (elf_machine_rela,
4330 elf_machine_rela_relative): Adjust.
4331 * sysdeps/m68k/dl-machine.h (elf_machine_rela,
4332 elf_machine_rela_relative): Adjust.
4333 * sysdeps/mips/dl-machine.h (elf_machine_rela,
4334 elf_machine_rela_relative): Adjust.
4335 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela,
4336 elf_machine_rela_relative): Adjust.
4337 * sysdeps/powerpc/powerpc64/dl-machine.h
4338 (elf_machine_rela_relative, elf_machine_rela): Adjust.
4339 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela,
4340 elf_machine_rela_relative): Adjust.
4341 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela,
4342 elf_machine_rela_relative): Adjust.
4343 * sysdeps/sh/dl-machine.h (elf_machine_rela,
4344 elf_machine_rela_relative): Adjust.
4345 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
4346 elf_machine_rela_relative): Adjust.
4347 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
4348 elf_machine_rela_relative): Adjust.
4349 * sysdeps/x86_64/dl-machine.h (elf_machine_rela,
4350 elf_machine_rela_relative): Adjust.
4351
4352 2003-07-29 Ulrich Drepper <drepper@redhat.com>
4353
4354 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Restore
4355 alignment of TCB used before the last change so that it matches
4356 ld's output for IE code.
4357
4358 2003-07-29 Jakub Jelinek <jakub@redhat.com>
4359
4360 * include/ctype.h (__ctype_b_loc, __ctype_toupper_loc,
4361 __ctype_tolower_loc): Avoid "dereferencing type-punned pointer will
4362 break strict-aliasing rules" warnings.
4363
4364 2003-07-29 Roland McGrath <roland@redhat.com>
4365
4366 * elf/Makefile: Revert accidental changes in last commit.
4367 * elf/dl-support.c: Likewise.
4368
4369 * rt/tst-timer2.c: New file.
4370 * rt/Makefile (tests): Add it.
4371
4372 2003-07-25 Jakub Jelinek <jakub@redhat.com>
4373
4374 * elf/dl-support.c (_dl_hwcap): Add nocommon attribute.
4375
4376 2003-07-29 Roland McGrath <roland@redhat.com>
4377
4378 * elf/Makefile (tests) [$(build-shared) = yes]:
4379 Depend on $(test-modules).
4380 * dlfcn/Makefile: Likewise.
4381
4382 2003-07-28 Roland McGrath <roland@redhat.com>
4383
4384 * sysdeps/generic/bits/types.h (__STD_TYPE): New macro.
4385 Use that instead of `typedef' when using __*_TYPE macros in rhs.
4386
4387 * elf/tst-tls14.c [USE_TLS && HAVE___THREAD]: Conditionalize on this.
4388 * elf/tst-tlsmod14a.c: Likewise.
4389
4390 * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h>
4391 before <linux/sysctl.h>.
4392
4393 2003-07-27 Ulrich Drepper <drepper@redhat.com>
4394
4395 * sysdeps/unix/sysv/syscalls.list: time syscall never fails.
4396 * sysdeps/unix/sysv/linux/x86_64/time.S: time syscall never fails.
4397 * sysdeps/unix/sysv/i386/time.S: time syscall never fails.
4398 * sysdeps/unix/syscalls.list: umask syscall never fails.
4399
4400 2003-07-27 Andreas Jaeger <aj@suse.de>
4401
4402 * sysdeps/unix/sysv/linux/init-first.c: Mark init as used.
4403
4404 2003-07-25 Jakub Jelinek <jakub@redhat.com>
4405
4406 * sysdeps/unix/sysv/linux/a.out.h: Replace with i386 version.
4407 Include bits/a.out.h.
4408 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4409 bits/a.out.h.
4410 * sysdeps/unix/sysv/linux/bits/a.out.h: New file.
4411 * sysdeps/unix/sysv/linux/i386/bits/a.out.h: New file.
4412 * sysdeps/unix/sysv/linux/m68k/bits/a.out.h: New file.
4413 * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: New file.
4414 * sysdeps/unix/sysv/linux/alpha/a.out.h: New file.
4415 * sysdeps/unix/sysv/linux/alpha/bits/a.out.h: New file.
4416 * sysdeps/unix/sysv/linux/sparc/a.out.h: New file.
4417 * sysdeps/unix/sysv/linux/sparc/bits/a.out.h: New file.
4418
4419 2003-07-24 Jakub Jelinek <jakub@redhat.com>
4420
4421 * sysdeps/pthread/aio_cancel.c (aio_cancel): Return AIO_ALLDONE
4422 if aiocbp != NULL and has already completed. Return -1/EINVAL if
4423 aiocbp->aio_fildes does not match fildes.
4424
4425 2003-07-24 Ulrich Drepper <drepper@redhat.com>
4426
4427 * timezone/zic.c (rpytime): Replace cheap overflow check with a
4428 functioning one.
4429
4430 * include/link.h (struct link_map): Add l_tls_firstbyte_offset field.
4431 * sysdeps/generic/dl-tls.c [TLS_TCB_AT_TP] (_dl_determine_tlsoffset):
4432 Fix calculation of offsets to take misalignment of first byte in
4433 file into account.
4434 * elf/dl-load.c (_dl_map_object_from_fd): Initialize
4435 l_tls_firstbyte_offset field.
4436 * elf/rtld.c (_dl_start_final, _dl_start, dl_main): Likewise.
4437 * elf/dl-reloc.c (_dl_allocate_static_tls): Change return type to int.
4438 Take l_tls_firstbyte_offset information into account.
4439 (CHECK_STATIC_TLS): _dl_allocate_static_tls can fail now.
4440 * sysdeps/generic/ldsodefs.h: Adjust _dl_allocate_static_tls prototype.
4441 * elf/Makefile: Add rules to build and run tst-tls14.
4442 * elf/tst-tls14.c: New file.
4443 * elf/tst-tlsmod14a.c: New file.
4444 * elf/tst-tlsmod14b.c: New file.
4445
4446 2003-07-23 Jakub Jelinek <jakub@redhat.com>
4447
4448 * sysdeps/pthread/lio_listio.c (LIO_OPCODE_BASE): Define.
4449 (lio_listio): Use it.
4450 * sysdeps/pthread/lio_listio64.c: Include lio_listio.c instead of
4451 after few defines to avoid duplication.
4452
4453 2003-07-22 Jakub Jelinek <jakub@redhat.com>
4454
4455 * include/stdio.h (__libc_fatal): Add libc_hidden_proto.
4456 * include/dlfcn.h (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
4457 Likewise.
4458 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
4459 Add libc_hidden_def.
4460 * sysdeps/generic/libc_fatal.c (__libc_fatal): Likewise.
4461 * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
4462 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Likewise.
4463 * elf/Versions (libc): Export __libc_dlopen_mode@@GLIBC_PRIVATE,
4464 __libc_dlsym@@GLIBC_PRIVATE and __libc_dlclose@@GLIBC_PRIVATE.
4465 * libio/Versions (libc): Export __libc_fatal@@GLIBC_PRIVATE.
4466 * sysdeps/generic/unwind-dw2.c: Readd #ifs removed during last
4467 change.
4468 * sysdeps/generic/unwind.inc: Removed.
4469
4470 * include/resolv.h (__resp): Declare. Define to __libc_resp
4471 if in libc.so.
4472 (_res): If USE___THREAD, define to (*__resp).
4473 * resolv/res_libc.c (_res): Normal .bss variable with compat_symbol
4474 even if USE___THREAD.
4475 (__resp): New __thread variable.
4476 (__libc_resp): New alias.
4477 * resolv/Versions (libc): Export _res@GLIBC_2.0 even if
4478 USE_TLS && HAVE___THREAD. Export __resp@@GLIBC_PRIVATE.
4479 * sysdeps/generic/res-state.c (__res_state): Return __resp
4480 if USE___THREAD.
4481
4482 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
4483
4484 * elf/dl-support.c (_dl_hwcap): New variable.
4485 (_dl_aux_init): Initialize GL(dl_hwcap) for static binaries.
4486
4487 * sysdeps/i386/fpu/fclrexcpt.c: Include <unistd.h>, <ldsodefs.h>
4488 and <dl-procinfo.h>.
4489 (__feclearexcept): Clear MXCSR if needed.
4490 * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
4491
4492 * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Document
4493 that newer hardware needs more than these macros.
4494
4495 * sysdeps/i386/setfpucw.c: New file.
4496
4497 2003-07-22 Jakub Jelinek <jakub@redhat.com>
4498
4499 * elf/Makefile (CFLAGS-ldconfig.c): Define IS_IN_ldconfig.
4500 * elf/ldconfig.c: Include dl-procinfo.c.
4501 (PROCINFO_CLASS): Define.
4502 * sysdeps/generic/ldsodefs.h (PROCINFO_CLASS): Define.
4503 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: New file.
4504 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: New file.
4505 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (PROCINFO_CLASS):
4506 Define if not yet defined. Use it instead of EXTERN. Undefine
4507 at the end of the file.
4508 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (PROCINFO_CLASS):
4509 Likewise.
4510 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c
4511 (PROCINFO_CLASS): Likewise.
4512 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c
4513 (PROCINFO_CLASS): Likewise.
4514
4515 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
4516
4517 * elf/ldconfig.c (main): Issue a fatal error if relative path
4518 is used to build cache.
4519
4520 2003-07-22 Ulrich Drepper <drepper@redhat.com>
4521
4522 * elf/readlib.c (process_file): Avoid possible overflow in assignment.
4523
4524 2003-07-21 Art Haas <ahaas@airmail.net>
4525
4526 * manual/charset.texi (Converting a Character): Fix example code so a
4527 valid pointer is returned.
4528
4529 2003-07-22 Andreas Jaeger <aj@suse.de>
4530
4531 * elf/readlib.c (process_file): Check that file is a shared
4532 object.
4533
4534 * elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
4535 will not optimize it away.
4536 (__DTOR_END__): Likewise.
4537 (__CTOR_END__): Likewise.
4538
4539 * include/libc-symbols.h (_elf_set_element): Use attribute used so
4540 that gcc will not optimize it away.
4541 (link_warning): Likewise.
4542
4543 2003-07-22 Ulrich Drepper <drepper@redhat.com>
4544
4545 * wcsmbs/wcpncpy.c (__wcpncpy): Correct destination pointer handling.
4546 * wcsmbs/Makefile (tests): Add tst-wcpncpy.
4547 * wcsmbs/tst-wcpncpy.c: New file.
4548
4549 2003-07-21 Ulrich Drepper <drepper@redhat.com>
4550
4551 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_STOPPED): Define.
4552
4553 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of
4554 stmxcsr and ldmxcsr.
4555
4556 * Makerules (build-module-helper): Add -z defs unless explicitly said
4557 not to do it.
4558 * dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs
4559 which has undefined symbols.
4560 * elf/Makefile: Likewise.
4561
4562 * sysdeps/i386/fpu/fedisblxcpt.c: Use dl_hwcap, not dl_hwcap_mask.
4563 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
4564 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
4565 * sysdeps/i386/fpu/fesetround.c: Likewise.
4566 * sysdeps/i386/fpu/ftestexcept.c: Likewise.
4567
4568 2003-07-21 HJ Lu <hongjiu.lu@intel.com>
4569
4570 * elf/ldconfig.c (search_dir): Treat symlink as regular file
4571 if it won't point to itself.
4572
4573 2003-07-20 Ulrich Drepper <drepper@redhat.com>
4574
4575 * sysdeps/ia64/hp-timing.h (REPEAT_READ): Cast to long int not to int.
4576
4577 2003-07-20 Andreas Jaeger <aj@suse.de>
4578
4579 * iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called
4580 STANDARD_TO_LOOP_ERR_HANDLER.
4581 * iconvdata/euc-jp-ms.c (BODY): Likewise.
4582
4583 2003-07-19 Ulrich Drepper <drepper@redhat.com>
4584
4585 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO): Fix typo.
4586
4587 * sysdeps/unix/sysv/linux/syscalls.list: Remove affinity syscalls.
4588
4589 2003-07-16 Daniel Jacobowitz <drow@mvista.com>
4590 Andreas Jaeger <aj@suse.de>
4591
4592 * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to
4593 256K, remove unneeded declaration of __getpagesize.
4594
4595 2003-07-16 Andreas Schwab <schwab@suse.de>
4596
4597 * sysdeps/unix/sysv/linux/futimes.c: Include <string.h>.
4598
4599 2003-07-15 Ulrich Drepper <drepper@redhat.com>
4600
4601 * io/test-utime.c (main): Make test yet more robust.
4602
4603 2003-07-14 Ulrich Drepper <drepper@redhat.com>
4604
4605 More cancellation handling fixups.
4606 * sysdeps/unix/sysv/linux/not-cancel.h: Add waitpid_not_cancel.
4607 * sysdeps/generic/not-cancel.h: Likewise.
4608 * catgets/open_catalog.c: Use not-cancelable syscalls.
4609 * time/Makefile (CFLAGS-getdate.c): Add -fexceptions.
4610 * sysdeps/unix/sysv/linux/llseek.c: Must not be cancelable.
4611 * sysdeps/unix/syscalls.list: Don't mark lseek as cancelable.
4612 * dlfcn/dlfcn.h: Mark dlopen with __THROW again.
4613 * io/fcntl.h: Don't mark posix_fallocate with __THROW.
4614 * libio/fileops.c: Use not-cancelable syscalls for fclose.
4615 * libio/iopopen.c: Use no-cancelable syscalls.
4616 * libio/stdio.h: Mark popen and pclose with __THROW again.
4617 * misc/Makefile (CFLAGS-syslog.c): Add -fexceptions.
4618 * misc/syslog.c: Fix locking and cancellation cleanup handling.
4619 * posix/unistd.h: Mark ttyname and ttyname_r again with __THROW.
4620 * stdio-common/Makefile (CFLAGS-tmpfile.c, CFLAGS-tmpfile64.c,
4621 CFLAGS-tempname.c): Add -fexceptions.
4622 * stdlib/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
4623 * string/string.h: Mark strerror and strerror_r with _THROW again.
4624 * sysdeps/generic/unwind.inc: New file. Copied from gcc.
4625 * sysdeps/generic/unwind-dw2.c: Update from gcc version. Remove
4626 #ifs since we now need all the code compiled.
4627 * sysdeps/posix/spawni.c: Use close_not_cancel instead of close.
4628 * sysdeps/unix/closedir.c: Use not-cancelable syscalls.
4629 * sysdeps/unix/opendir.c: Likewise.
4630
4631 * iconvdata/Makefile (modules): Add CP932 and EUC-JP-MS.
4632 Add rule for EUC-JP-MS dependency.
4633 * iconvdata/cp932.c: New file.
4634 * iconvdata/eucjp-ms.c: New file.
4635 * iconvdata/gconv-modules: Add entries for CP932 and EUC-JP-MS.
4636 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
4637
4638 2003-07-15 Jakub Jelinek <jakub@redhat.com>
4639
4640 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket): Add
4641 cfi directives.
4642
4643 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4644
4645 * sysdeps/unix/sysv/linux/kernel-features.h
4646 (__ASSUME_FIXED_CLONE_SYSCALL): New macro.
4647 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Use it.
4648
4649 * sysdeps/unix/sysv/linux/utimes.c: Include sysdep.h.
4650
4651 2003-07-14 Ulrich Drepper <drepper@redhat.com>
4652
4653 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4654 __ASSUME_TGKILL for Alpha appropriately.
4655
4656 2003-07-12 Ulrich Drepper <drepper@redhat.com>
4657
4658 * sysdeps/unix/sysv/linux/bits/statfs.h (_STATFS_F_FRSIZE): Define.
4659 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h (_STATFS_F_FRSIZE):
4660 Likewise.
4661 * sysdeps/unix/sysv/linux/s390/bits/statfs.h (_STATFS_F_FRSIZE):
4662 Likewise.
4663
4664 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4665 __ASSUME_UTIMES for x86 and kernels > 2.5.75.
4666
4667 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with
4668 second parameter == NULL.
4669 * sysdeps/unix/sysv/linux/utimes.c: New file.
4670
4671 2003-07-12 Jakub Jelinek <jakub@redhat.com>
4672
4673 * sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h.
4674 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix
4675 a typo.
4676
4677 2003-07-12 Ulrich Drepper <drepper@redhat.com>
4678
4679 * time/sys/time.h: Namespace cleanup.
4680 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4681 __ASSUME_UTIMES for the architectures which always had the syscall.
4682 * sysdeps/unix/sysv/linux/futimes.c: New file.
4683
4684 2003-07-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4685
4686 * sysdeps/unix/sysv/linux/sh/socket.S: Save and restore the PR
4687 register across CENABLE and CDISABLE.
4688
4689 2003-07-11 Jakub Jelinek <jakub@redhat.com>
4690
4691 * sysdeps/unix/sysv/linux/sigwait.c: Include string.h.
4692 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
4693 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
4694 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Cast value to unsigned
4695 int before assigning to max to avoid warnings.
4696
4697 2003-07-11 Jakub Jelinek <jakub@redhat.com>
4698
4699 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket): Add
4700 cfi directives.
4701 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Likewise.
4702 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
4703
4704 2003-07-10 Jakub Jelinek <jakub@redhat.com>
4705
4706 * sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of
4707 .data.rel.ro.local to "aw".
4708
4709 2003-07-10 Ulrich Drepper <drepper@redhat.com>
4710
4711 * sysdeps/m68k/Makefile: Remove CLFAGS-.oS addition.
4712 * Makeconfig (CFLAGS-.oS): Use PIC-ccflag instead of pic-ccflag.
4713 (PIC-ccflag): Define.
4714
4715 2003-07-04 Jakub Jelinek <jakub@redhat.com>
4716
4717 * sysdeps/s390/s390-32/elf/start.S: Emit position independent code
4718 if PIC.
4719 * sysdeps/s390/s390-64/elf/start.S: Likewise.
4720
4721 2003-07-07 Jakub Jelinek <jakub@redhat.com>
4722
4723 * sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address)
4724 into .data.rel.ro.local section if PIC to avoid DT_TEXTREL.
4725
4726 2003-07-07 Ulrich Drepper <drepper@redhat.com>
4727
4728 * sysdeps/unix/sysv/linux/kernel-features.h: Version
4729 __ASSUME_CORRECT_SI_PID and __ASSUME_TGKILL if possible.
4730
4731 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
4732 compilation with HAVE_AUX_SECURE defined.
4733
4734 2003-07-05 Richard Henderson <rth@redhat.com>
4735
4736 * sysdeps/alpha/elf/initfini.c: Avoid .ent/.end.
4737
4738 2003-07-03 Ulrich Drepper <drepper@redhat.com>
4739
4740 * configure.in: Also check for .cfi_rel_offset pseudo-op.
4741
4742 2003-07-03 Jakub Jelinek <jakub@redhat.com>
4743
4744 * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency): Fix a
4745 typo.
4746
4747 2003-07-03 Ulrich Drepper <drepper@redhat.com>
4748
4749 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_CLKTCK):
4750 Define.
4751 * sysdeps/unix/sysv/linux/prof-freq.h: New file.
4752
4753 2003-07-02 Jakub Jelinek <jakub@redhat.com>
4754
4755 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Protect new_sysinfo
4756 decl and use with #ifdef NEED_DL_SYSINFO.
4757
4758 2003-07-02 Ulrich Drepper <drepper@redhat.com>
4759
4760 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't set
4761 GL(dl_sysinfo) unles GL(dl_sysinfo_dso) is also set.
4762 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4763 __ASSUME_VSYSCALL only for 2.5.69 and up since this is when the
4764 vsyscall DSO was added.
4765
4766 * posix/bits/posix1_lim.h (_POSIX_NGROUPS_MAX): Define to 8 or 0
4767 depending on selected standard.
4768 (NGROUPS_MAX): Define to 8 if not defined.
4769
4770 2003-07-02 Andreas Jaeger <aj@suse.de>
4771
4772 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: New file.
4773
4774 2003-05-04 H.J. Lu <hongjiu.lu@intel.com>
4775
4776 * malloc/arena.c (arena_get2): Add atomic_write_barrier.
4777 * malloc/thread-m.h: Include <atomic.h>.
4778 (atomic_full_barrier): Provide default.
4779 (atomic_read_barrier): Likewise.
4780 (atomic_write_barrier): Likewise.
4781 * sysdeps/ia64/bits/atomic.h (atomic_full_barrier): New #define.
4782
4783 2003-06-30 Ulrich Drepper <drepper@redhat.com>
4784
4785 * sysdeps/generic/sysdep.h: Define cfi_rel_offset and CFI_REL_OFFSET.
4786
4787 2003-06-30 Richard Henderson <rth@redhat.com>
4788
4789 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_bool_*_int):
4790 Invert the sense of the return value.
4791 (__arch_exchange_16_int): Fix paste-o.
4792 (__arch_exchange_{32,64}_int): Fix think-o.
4793
4794 * sysdeps/unix/sysv/linux/alpha/clone.S: Load child_tid properly.
4795
4796 2003-06-30 Richard Henderson <rth@redhat.com>
4797
4798 * include/sys/resource.h (__getrusage): Mark hidden.
4799 * include/sys/time.h (__settimeofday, __setitimer, __utimes): Likewise.
4800 * include/sys/wait.h (__wait4): Likewise.
4801
4802 2003-06-17 Guido Guenther <agx@sigxcpu.org>
4803
4804 * sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT
4805 case.
4806 (xstat_conv): Rename to __xstat_conv and remove static inline.
4807 (xstat64_conv): Likewise.
4808
4809 2003-06-29 Ulrich Drepper <drepper@redhat.com>
4810
4811 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Handle parameter
4812 values which cannot be handled in one nanosleep call.
4813
4814 2003-06-25 Alfred M. Szmidt <ams@kemisten.nu>
4815
4816 * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros.
4817 (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them.
4818
4819 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix.
4820
4821 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
4822
4823 * sysdeps/unix/sysv/linux/net/if_arp.h: Sync with kernel header,
4824 fix typo.
4825
4826 2003-06-26 Steven Munroe <sjmunroe@us.ibm.com>
4827
4828 * sysdeps/unix/sysv/linux/xstatconv.h [!STAT_IS_KERNEL_STAT]:
4829 Conditionalize function definitions that use struct kernel_stat.
4830 * sysdeps/unix/sysv/linux/fxstat.c: Remove __syscall_fstat extern.
4831 * sysdeps/unix/sysv/linux/lxstat.c: Remove __syscall_lstat extern.
4832 * sysdeps/unix/sysv/linux/xstat.c: Remove __syscall_stat extern.
4833
4834 2003-06-28 Ulrich Drepper <drepper@redhat.com>
4835
4836 * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Add real
4837 implementation.
4838
4839 2003-06-07 Thorsten Kukuk <kukuk@suse.de>
4840
4841 * nis/nss_compat/compat-grp.c: Remove unused nis_first variable.
4842 (getgrent_next_file): Don't store group name to early in blacklist.
4843
4844 * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Save strlen result
4845 and use memcpy instead of strcpy.
4846
4847 2003-06-28 Ulrich Drepper <drepper@redhat.com>
4848
4849 * nis/nss_compat/compat-grp.c: Optimize several little things. Use
4850 stream unlocked.
4851 * nis/nss_compat/compat-initgroups.c: Likewise.
4852 * nis/nss_compat/compat-pwd.c: Likewise.
4853 * nis/nss_compat/compat-spwd.c: Likewise.
4854
4855 2003-06-27 Thorsten Kukuk <kukuk@suse.de>
4856
4857 * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+
4858 functions, dlopen corresponding NSS module instead.
4859
4860 2003-06-27 Jeroen Dekkers <jeroen@dekkers.cx>
4861
4862 * sysdeps/mach/hurd/alpha/init-first.c: Remove call to __libc_init.
4863 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
4864 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
4865 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
4866
4867 2003-06-27 Ulrich Drepper <drepper@redhat.com>
4868
4869 * rt/Makefile (CFLAGS-librt-cancellation.c): Define.
4870
4871 2003-06-26 Roland McGrath <roland@frob.com>
4872
4873 * sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME.
4874 * sysdeps/mach/configure: Regenerated.
4875 * sysdeps/mach/hurd/times.c (times_init): Function removed.
4876 (__times): Assume `creation_time' field is available.
4877 * sysdeps/mach/hurd/Makefile [$(subdir) = csu] (sysdep_routines):
4878 Don't append set-init.
4879 * sysdeps/mach/hurd/set-init.c: File removed.
4880
4881 2003-06-26 Roland McGrath <roland@redhat.com>
4882
4883 * elf/elf.h (AT_SECURE): New macro.
4884 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Grok it,
4885 set __libc_enable_secure.
4886 (_dl_show_auxv): Add AT_SECURE to name table.
4887 * elf/dl-support.c (_dl_aux_init): Grok AT_SECURE, set
4888 __libc_enable_secure and __libc_enable_secure_decided.
4889 * sysdeps/unix/sysv/linux/ldsodefs.h
4890 [__ASSUME_AT_SECURE] (HAVE_AUX_SECURE): Define it.
4891 * sysdeps/unix/sysv/linux/kernel-features.h
4892 [__LINUX_KERNEL_VERSION >= 132426] (__ASSUME_AT_SECURE): Define it.
4893
4894 2003-06-26 Ulrich Drepper <drepper@redhat.com>
4895
4896 * io/test-utime.c: If _STATBUF_ST_NSEC is defined, adjust lower
4897 boundary test to take rounding of nanoseconds into account.
4898
4899 * sysdeps/unix/sysv/linux/bits/stat.h: Define _STATBUF_ST_NSEC.
4900 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
4901 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise.
4902 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
4903 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
4904 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
4905 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4906
4907 2003-06-26 Andreas Schwab <schwab@suse.de>
4908
4909 * sysdeps/m68k/fpu/bits/mathinline.h: Don't inline frexp.
4910 * sysdeps/m68k/fpu/s_frexp.c: Put implementation here.
4911 * sysdeps/m68k/fpu/s_frexpl.c: Fix to handle unnormalized numbers.
4912
4913 2003-06-17 Thorsten Kukuk <kukuk@suse.de>
4914
4915 * nis/Makefile: Remove NIS/NIS+ files from nss_compat module.
4916 * nis/nss_compat/compat-grp.c: Don't use our own NIS/NIS+ functions,
4917 dlopen corresponding NSS module instead.
4918 * nis/nss_compat/compat-pwd.c: Likewise.
4919 * nis/nss_compat/compat-spwd.c: Likewise.
4920 * nis/nss_compat/compat-initgroups.c: Disabled for now.
4921 * nss/Versions: Export __nss_lookup_function.
4922
4923 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4924
4925 * sysdeps/unix/sysv/linux/kernel-features.h: Update kernel features
4926 for the SH architecture.
4927
4928 2003-06-25 Thorsten Kukuk <kukuk@suse.de>
4929
4930 * csu/Makefile: Use CPPFLAGS to find correct linux/version.h.
4931
4932 2003-06-25 Andreas Jaeger <aj@suse.de>
4933
4934 * stdlib/tst-strtod.c (main): Declare constant long double as
4935 suggested by Jakub Jelinek and Andreas Schwab.
4936
4937 * posix/tst-nanosleep.c: Include <time.h> for nanosleep
4938 declaration.
4939
4940 * stdio-common/tst-fphex.c: Fix format string.
4941
4942 * posix/transbug.c: Include <string.h> for memset and strlen
4943 declarations.
4944
4945 * stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration.
4946
4947 * stdlib/tst-strtod.c (main): Pass long double value.
4948
4949 * test-skeleton.c: Include <time.h> for nanosleep declaration.
4950
4951 2003-06-25 Ulrich Drepper <drepper@redhat.com>
4952
4953 * include/time.h: Don't define CLOCK_IDFIELD_SIZE if _ISOMAC is
4954 defined.
4955
4956 2003-06-11 Jakub Jelinek <jakub@redhat.com>
4957
4958 * elf/Versions (libc): Add _dl_open_hook@GLIBC_PRIVATE.
4959 * elf/dl-libc.c (struct dl_open_hook): New.
4960 (_dl_open_hook): New variable.
4961 (do_dlsym_private): New function.
4962 (__libc_dlopen_mode) [!SHARED]: Lookup _dl_open_hook@GLIBC_PRIVATE
4963 and initialize it if found.
4964 (__libc_dlopen_mode) [SHARED]: If _dl_open_hook is non-NULL,
4965 call dlopen_mode hook.
4966 (__libc_dlsym) [SHARED]: If _dl_open_hook is non-NULL,
4967 call dlsym hook.
4968 (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL,
4969 call dlclose hook.
4970
4971 2003-06-25 Ulrich Drepper <drepper@redhat.com>
4972
4973 * sysdeps/unix/sysv/linux/cris/sysdep.h (INLINE_SYSCALL): Cast
4974 result to long int so that extensions to long long int work.
4975 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
4976
4977 2003-06-19 Jakub Jelinek <jakub@redhat.com>
4978
4979 * elf/ldconfig.c (main): Use add_system_dir instead of add_dir.
4980 * sysdeps/generic/dl-cache.h (add_system_dir): Define.
4981 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: Include sparc
4982 dl-cache.h.
4983 * sysdeps/unix/sysv/linux/s390/dl-cache.h: New file.
4984 * sysdeps/unix/sysv/linux/mips/dl-cache.h: New file.
4985 * sysdeps/unix/sysv/linux/powerpc/dl-cache.h: New file.
4986 * sysdeps/unix/sysv/linux/sparc/dl-cache.h: New file.
4987
4988 2003-06-19 Jakub Jelinek <jakub@redhat.com>
4989
4990 * test-skeleton.c (timeout_handler): If waitpid returned 0,
4991 retry once after a second. If killed == 0, assume
4992 WTERMSIG (status) == SIGKILL.
4993
4994 2003-06-18 Roland McGrath <roland@redhat.com>
4995
4996 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Catch uninitialized
4997 elements in the table instead of printing an empty name string.
4998
4999 2003-06-05 Roland McGrath <roland@redhat.com>
5000
5001 * elf/elf.h (PT_GNU_STACK): New macro.
5002
5003 2003-06-24 Ulrich Drepper <drepper@redhat.com>
5004
5005 * include/time.h: Define CLOCK_IDFIELD_SIZE.
5006 * sysdeps/posix/clock_getres.c: Recognize thread CPU clock IDs.
5007 * sysdeps/unix/clock_gettime.c: Likewise.
5008 * sysdeps/unix/clock_settime.c: Likewise.
5009 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Adjust for new
5010 clock id for thread CPU clocks.
5011
5012 * sysdeps/unix/sysv/linux/fstatfs64.c (__fstatfs64): Add support
5013 for the fstatfs64 syscall.
5014 * sysdeps/unix/sysv/linux/statfs64.c (__statfs64): Add support for
5015 the statfs64 syscall.
5016
5017 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5018 __ASSUME_STATFS64 appropriately.
5019
5020 * sysdeps/unix/sysv/linux/internal_statvfs.c: Use f_frsize field
5021 from statfs structure if it has been filled in.
5022
5023 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_frsize
5024 field.
5025 (struct statfs64): Likewise.
5026 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: Likewise.
5027 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
5028
5029 2003-06-24 Richard Henderson <rth@redhat.com>
5030
5031 * sysdeps/unix/sysv/linux/alpha/syscalls.list (pread, pwrite): Use
5032 the 64-bit syscall name.
5033
5034 * sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue.
5035
5036 * sysdeps/alpha/fpu/bits/mathinline.h: Honor
5037 __LIBC_INTERNAL_MATH_INLINES. Implement __signbitf, __signbit.
5038
5039 * sysdeps/unix/sysv/linux/alpha/clone.S: Use HIDDEN_JUMPTARGET.
5040 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use
5041 libc_hidden_def.
5042 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
5043 * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use libc_hidden_proto
5044 on them.
5045
5046 * sysdeps/alpha/bits/atomic.h: New file.
5047
5048 2003-06-24 Andreas Schwab <schwab@suse.de>
5049
5050 * sysdeps/m68k/fpu/libm-test-ulps: Update.
5051
5052 2003-06-24 Andreas Jaeger <aj@suse.de>
5053
5054 * sysdeps/unix/sysv/linux/x86_64/stat.h (_STAT_VER_LINUX): Avoid
5055 redeclaration with 32-bit code.
5056
5057 2003-05-19 Ed Connell <ed.connell@sas.com>
5058
5059 * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain
5060 floating point mask.
5061 * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise.
5062
5063 2003-06-23 Ulrich Drepper <drepper@redhat.com>
5064
5065 * sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex,
5066 __aio_enqueue_request, __aio_find_req, __aio_find_req_fd,
5067 __aio_free_request, __aio_notify, and __aio_sigqueue as hidden.
5068
5069 * sysdeps/pthread/aio_suspend.c (aio_suspend): Set errno to the result
5070 of pthread_cond_wait if there was an error. Use pthread_cleanup_*
5071 instead of __libc_cleanup_region_*.
5072
5073 2003-06-20 Richard Henderson <rth@redhat.com>
5074
5075 * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases.
5076 * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New.
5077
5078 2003-06-20 Richard Henderson <rth@redhat.com>
5079
5080 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
5081 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
5082 Unset for alpha.
5083 (__ASSUME_TIMEVAL64): Set for alpha.
5084 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
5085 adjtimex, osf_sigprocmask, old_adjtimex.
5086 * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
5087 __ASSUME_TIMEVAL64. Reorg tv64 functions to avoid uninit variable.
5088 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
5089 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
5090 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
5091 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
5092 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
5093 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
5094 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
5095 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
5096 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
5097 PIC code sequence.
5098 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
5099 * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
5100 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
5101 * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
5102 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
5103 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
5104 sys_ustat, sys_mknod, adjtimex, old_adjtimex.
5105 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
5106 defer to __syscall_name; error for rt_sigaction.
5107 * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
5108
5109 2003-06-18 Ulrich Drepper <drepper@redhat.com>
5110
5111 * malloc/malloc.c (public_mALLINFo): Initialize malloc if it
5112 hasn't happened yet.
5113
5114 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
5115 Fix completely broken implementation. The second parameter is of
5116 type struct ucontext*.
5117
5118 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always
5119 inline.
5120
5121 * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash.
5122 * sysdeps/generic/dl-hash.h: Likewise.
5123
5124 * sysdeps/generic/memcmp.c: Remove inline from
5125 memcmp_common_alignment and memcmp_not_common_alignment definition.
5126
5127 * intl/localealias.c (read_alias_file): Determine whether line is
5128 read incompletely early, before we modify the line.
5129
5130 2003-06-17 Jakub Jelinek <jakub@redhat.com>
5131
5132 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela)
5133 <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
5134
5135 2003-06-17 Paul Mackerras <paulus@samba.org>
5136
5137 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file.
5138 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: New file.
5139 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: New file.
5140 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: New file.
5141 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: New file.
5142 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Adjust.
5143
5144 2003-06-17 Jakub Jelinek <jakub@redhat.com>
5145
5146 * posix/regcomp.c (build_word_op): Use alnum instead of alpha class.
5147
5148 2003-06-17 Ulrich Drepper <drepper@redhat.com>
5149
5150 * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
5151 takes care of enabling cancellation.
5152
5153 * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
5154 cancelable. It's not correct to disable cancellation. Instead of
5155 a cleanup handler.
5156
5157 * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
5158 and part of the incoming set, create a temporary set without this
5159 signal.
5160 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
5161 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
5162
5163 * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
5164 returning because seconds==0. Add __builtin_expect.
5165
5166 2003-06-16 Ulrich Drepper <drepper@redhat.com>
5167
5168 * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
5169
5170 * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
5171 variable.
5172
5173 2003-06-16 Thorsten Kukuk <kukuk@suse.de>
5174
5175 * include/libc-symbols.h: Add static_link_warning macro.
5176 * grp/initgroups.c: Print linker warning if this function
5177 is called in a static linked binary.
5178 * nss/getXXbyYY.c: Likewise.
5179 * nss/getXXbyYY_r.c: Likewise.
5180 * nss/getXXent.c: Likewise.
5181 * nss/getXXent_r.c: Likewise.
5182 * sysdeps/posix/getaddrinfo.c: Likewise.
5183
5184 2003-06-16 Bruno Haible <bruno@clisp.org>
5185
5186 * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
5187 LATIN-9.
5188 (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
5189 (IBM1047): Add alias IBM-1047.
5190 (GBK): Add aliases MS936, WINDOWS-936.
5191
5192 2003-06-16 Jakub Jelinek <jakub@redhat.com>
5193
5194 * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
5195 defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
5196 (__xstat64_conv): Change xstat_conv to __xstat_conv.
5197
5198 2003-06-16 Ulrich Drepper <drepper@redhat.com>
5199
5200 * locale/iso-639.def: Update from current official ISO 639.
5201
5202 * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
5203
5204 2003-06-15 Andreas Jaeger <aj@suse.de>
5205
5206 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
5207 of MXCSR.
5208 * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
5209 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
5210 Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
5211
5212 * math/tgmath.h (carg): Handle real arguments.
5213 (conj): Likewise.
5214 (cproj): Likewise.
5215 (cimag): Likewise.
5216 (creal): Likewise.
5217
5218 * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
5219 (tests): Add test-tgmath-ret.
5220 * math/test-tgmath-ret.c: New file.
5221
5222 * math/tgmath.h (ilogb): Return always an int.
5223
5224 2003-06-16 Ulrich Drepper <drepper@redhat.com>
5225
5226 * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
5227 computation so that prelinking works.
5228
5229 2003-06-15 Ulrich Drepper <drepper@redhat.com>
5230
5231 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
5232 linker's map.
5233 * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
5234 dynamic linker's map.
5235
5236 Fix cancellation point handling wrt exception based cleanup.
5237 * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
5238 * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
5239 with exceptions.
5240 * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
5241 sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
5242 * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
5243 exceptions.
5244 * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
5245 sigwait.c, and sigwaitinfo.c with exceptions.
5246 * stdlib/Makefile: Compile system.c with exceptions.
5247 * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
5248 * termios/Makefile: Compile tcdrain.c with exceptions.
5249 * sysdeps/generic/lockf.c: Add comment explaining the cancellation
5250 situation.
5251 * sysdeps/generic/pselect.c: Likewise.
5252 * sysdeps/posix/sigpause.c: Likewise.
5253 * sysdeps/posix/system.c: Likewise.
5254 * sysdeps/posix/waitid.c: Likewise.
5255 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
5256 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
5257 * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
5258 INTERNAL_SYSCALL to not use push inside asm statement so that
5259 unwind info is correct around the syscall.
5260 * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
5261 * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
5262
5263 2003-06-15 Andreas Jaeger <aj@suse.de>
5264
5265 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
5266 Add CFI directives.
5267
5268 2003-06-15 Guido Guenther <agx@sigxcpu.org>
5269
5270 * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
5271 create $(objpfx).
5272
5273 2003-06-14 Ulrich Drepper <drepper@redhat.com>
5274
5275 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
5276 not close.
5277
5278 * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
5279 * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
5280 definition.
5281
5282 * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
5283 * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
5284 * inet/Makefile (routines): Add inet6_option.
5285 * inet/inet6_option.c: New file.
5286 * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
5287 inet6_option_init, inet6_option_append, inet6_option_alloc,
5288 inet6_option_next, and inet6_option_find.
5289
5290 2003-06-13 Ulrich Drepper <drepper@redhat.com>
5291
5292 * inet/netinet/ip6.h (struct ip6_ext): Define.
5293
5294 * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
5295
5296 Fixing gcc 3.3 warnings, part II.
5297 * argp/argp-help.c (hol_entry_long_iterate): Always inline.
5298 * elf/dl-load.c (cache_rpath): Don't inline.
5299 * iconvdata/cns11642l2.h: Always inline all functions.
5300 * iconvdata/iso-ir-165.h: Likewise.
5301 * locale/Makefile (aux): Add coll-lookup.
5302 * locale/coll-lookup.c: New file.
5303 * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
5304 (collseq_table_lookup): Likewise.
5305 * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
5306 * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
5307 change.
5308 * posix/regcomp.c: Likewise.
5309 * posix/regexec.c: Likewise.
5310 * locale/programs/3level.h (*_get): Always inline.
5311 * locale/programs/locfile.h: Move definition of handle_copy to...
5312 * locale/programs/locfile.c: ...here.
5313 * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
5314 (obstack_int32_grow_fast): Likewise.
5315 (utf8_encode): Likewise.
5316 (find_element): Avoid aliasing problems.
5317 (insert_value): Likewise.
5318 (collate_read): Likewise.
5319 * nss/getent.c (print_hosts): Don't inline
5320 (print_networks): Likewise.
5321 (print_shadow): Likewise.
5322 (build_doc): Likewise.
5323 * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
5324 inline.
5325 * posix/regcomp.c (re_set_fastmap): Always inline.
5326 (seek_collating_symbol_entry): Likewise.
5327 (lookup_collation_sequence_value): Likewise.
5328 (build_range_exp): Likewise.
5329 (build_collating_symbol): Likewise.
5330 * posix/regexec.c (acquire_init_state_context): Don't inline.
5331 (clean_state_log_if_need): Likewise.
5332 * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
5333 adjust all callers.
5334 (evConsTime): Likewise.
5335 (evAddTime): Likewise.
5336 (evSubTime): Likewise.
5337 (evNowTime): Likewise.
5338 (evTimeSpec): Removed.
5339 (__libc_res_nsend): Avoid aliasing problem.
5340 * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
5341 * sysdeps/unix/sysv/linux/ifreq.c: ...here.
5342 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
5343 Always inline.
5344 (_dl_string_platform): Likewise.
5345 * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
5346 (wcwidth_table_lookup): Likewise.
5347 (wctrans_table_lookup): Likewise.
5348
5349 * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
5350
5351 2003-06-12 Ulrich Drepper <drepper@redhat.com>
5352
5353 * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
5354
5355 2003-05-29 Jim Meyering <jim@meyering.net>
5356
5357 * time/strftime.c (my_strftime) [!defined _NL_CURRENT
5358 && HAVE_STRFTIME]: Use underlying_strftime for %r.
5359 Suggested by Daniel Yacob <locales@geez.org>.
5360
5361 2003-06-12 Steven Munroe <sjmunroe@us.ibm.com>
5362
5363 * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
5364 @got notation with @toc.
5365 * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
5366 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
5367
5368 2003-06-12 Ulrich Drepper <drepper@redhat.com>
5369
5370 * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
5371 if only PF_INET address is needed.
5372
5373 * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
5374 case of an error.
5375
5376 * scripts/config.guess: Update from upstream version.
5377 * scripts/config.sub: Likewise.
5378
5379 2003-06-12 Jakub Jelinek <jakub@redhat.com>
5380
5381 * locale/programs/ld-time.c (time_output): Also copy the era format,
5382 not only the name.
5383
5384 2003-06-12 H.J. Lu <hongjiu.lu@intel.com>
5385
5386 * posix/transbug.c (run_test): Return 1 for failure.
5387 (do_test): Compare only if run_test is successful.
5388
5389 2003-06-12 Simon Josefsson <jas@extundo.com>
5390
5391 * argp/argp.h [!__THROW]: Define if undefined.
5392
5393 2003-06-12 Ulrich Drepper <drepper@redhat.com>
5394
5395 * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
5396 more than four parameters.
5397 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
5398
5399 2003-06-12 Jakub Jelinek <jakub@redhat.com>
5400
5401 * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
5402 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
5403 * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
5404
5405 * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
5406
5407 2003-06-12 Roland McGrath <roland@redhat.com>
5408
5409 * Makerules ($(objpfx)stubs): Rewrite sed magic.
5410
5411 2003-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
5412
5413 * posix/regcomp.c (parse_expression): Deliver translation to
5414 build_word_op, and build_charclass.
5415 (build_charclass): Apply translation for character classes too.
5416 (build_word_op): Deliver translation to build_charclass.
5417 * posix/transbug.c: New file.
5418 * posix/Makefile (tests): Add transbug.
5419
5420 2003-06-04 Paolo Bonzini <bonzini@gnu.org>
5421
5422 * posix/regexec.c (group_nodes_into_DFAstates): Check for
5423 NEXT_ENDBUF_CONSTRAINT. Move check for constraints which do a
5424 'continue' before the others.
5425
5426 2003-06-11 Ulrich Drepper <drepper@redhat.com>
5427
5428 * dirent/scandir.c (SCANDIR): Reset errno after calling selector
5429 function [PR libc/5045].
5430
5431 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
5432 also for P4.
5433
5434 * time/tzfile.c: Add a couple of __builtin_expect.
5435
5436 Remove warnings gcc 3.3 shows.
5437 * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
5438 * elf/dl-load.c (fillin_rpath): Likewise.
5439 (add_path): Likewise.
5440 * elf/dl-version.c (find_needed): Always inline.
5441 * elf/do-lookup.c (FCT): Don't inline.
5442 * iconv/Makefile: Extend vpath to intl subdir.
5443 (iconvconfig-modules): Add hash-string.
5444 * iconv/gconv_charset.h (strip): Don't inline.
5445 (upstr): Always inline.
5446 Move __gconv_compare_alias prototype to...
5447 * iconv/gconv_int.h: ...here.
5448 * iconv/gconv_db.c: Don't include gconv_charset.h.
5449 * iconv/gconv_conf.c (add_alias): Don't inline.
5450 (insert_module): Likewise.
5451 * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
5452 (internal_ucs4_loop_unaligned): Likewise.
5453 (internal_ucs4_loop_single): Likewise.
5454 (ucs4_internal_loop): Likewise.
5455 (ucs4_internal_loop_unaligned): Likewise.
5456 (ucs4_internal_loop_single): Likewise.
5457 (internal_ucs4le_loop): Always inline.
5458 (internal_ucs4le_loop_unaligned): Likewise.
5459 (internal_ucs4le_loop_single): Likewise.
5460 (ucs4le_internal_loop): Likewise.
5461 (ucs4le_internal_loop_unaligned): Likewise.
5462 (ucs4le_internal_loop_single): Likewise.
5463 * iconv/loop.c: Always inline the defined functions.
5464 * iconvdata/cns11642.h: Likewise.
5465 * iconvdata/cns11642l1.h: Likewise.
5466 * iconvdata/euc-kr.c: Likewise.
5467 * iconvdata/gb2312.h: Likewise.
5468 * iconvdata/jis0201.h: Likewise.
5469 * iconvdata/jis0208.h: Likewise.
5470 * iconvdata/jis0212.h: Likewise.
5471 * iconvdata/jisx0213.h: Likewise.
5472 * iconvdata/ksc5601.h: Likewise.
5473 * iconvdata/utf-7.c (base64): Don't inline.
5474 * include/libc-symbols.h (symbol_set_first_element): Add cast
5475 (symbol_set_end_p): Likewise.
5476 * include/set-hooks (RUN_HOOK): Likewise.
5477 * inet/Makefile (aux): Add ifreq.
5478 * intl/Makefile (aux): Add some entries from routines. Add
5479 hash-string.
5480 * intl/hash-string.c: New file.
5481 * intl/hash-string.h: Remove hash_string definition. Declare
5482 __hash_string.
5483 * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
5484 * iconv/iconvconfig.c (new_name): Likewise.
5485 * intl/dcigettext.c (_nl_find_msg): Likewise.
5486 * intl/loadmsgcat.c (_nl_load_domain): Likewise.
5487 * io/ftw.c (open_dir_stream): Always inline.
5488 (process_entry): Don't inline.
5489 * locale/findlocale.c: Include gconv_int.h.
5490 * locale/setlocale.c (new_composite_name): Don't inline.
5491 * locale/weight.h (findidx): Always inline.
5492 * locale/weightwc.h (findidx): Likewise.
5493 * locale/programs/linereader.c (lr_ignore_rest): Define here.
5494 * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
5495 just declare it.
5496 (lr_getc): Always inline.
5497 (lr_ungetc): Likewise.
5498 * nss/nss_files/files-parse.c (parse_list): Likewise.
5499 * stdio-common/Makefile (aux): Add printf-parsemb and
5500 printf-parsewc.
5501 * stdio-common/_itoa.h (_itoa_word): Always inline.
5502 (_fitoa_word, _fitoa): Don't define here, only declare.
5503 * stdio-common/_itoa.c (_iftoa_word): Add here.
5504 (_fitoa): Likewise.
5505 * stdio-common/_itowa.h (_itowa_word): Always inline.
5506 * stdio-common/printf-parse.h (read_int): Don't inline.
5507 (find_spec): Don't define.
5508 Declare __find_specmb and __find_specwc.
5509 (parse_one_spec): Don't define.
5510 Declare __parse_one_specmb and __parse_one_specwc.
5511 * stdio-common/printf-parsemb.c: New file.
5512 * stdio-common/printf-parsewc.c: New file.
5513 * stdio-common/vfprintf.c: Update calls to find_spec and
5514 parse_one_spec for new names.
5515 * stdio-common/printf-prs.c: Likewise. Define DONT_NEED_READ_INT.
5516 * stdlib/Makefile (aux): Add grouping and groupingwc.
5517 * stdlib/grouping.c: New file.
5518 * stdlib/groupingwc.c: New file.
5519 * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
5520 Just prototype.
5521 * stdlib/rpmatch.c (try): Don't inline.
5522 * stdlib/strtod.c (round_and_return): Don't line.
5523 (str_to_mpn): Likewise.
5524 (__mpn_lshift_1): Always inline. Optimize only for constant count.
5525 Adjust for name change of correctly_grouped_prefix.
5526 * sysdeps/generic/strtol.c: Adjust for name change of
5527 correctly_grouped_prefix.
5528 * string/strxfrm.c (utf8_encode): Don't inline.
5529 * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
5530 * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
5531 * sysdeps/generic/ifreq.c: New file.
5532 * sysdeps/unix/sysv/linux/ifreq.c: New file.
5533 * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
5534 * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
5535 * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
5536 * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
5537 (fde_split): Likewise.
5538 (fde_merge): Likewise.
5539 (end_fde_sort): Likewise.
5540 (init_object): Likewise.
5541 (binary_search_unencoded_fdes): Likewise.
5542 (binary_search_single_encoding_fdes): Likewise.
5543 (binary_search_mixed_encoding_fdes): Likewise.
5544 * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
5545 * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
5546 * sysdeps/posix/sprofil.c (profil_count): Don't inline.
5547 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
5548 Add xstatconv.
5549 * sysdeps/unix/sysv/linux/xstatconv.h: New file.
5550 * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
5551 Export them. Prepend __ to name.
5552 * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
5553 * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
5554 conversion functions.
5555 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
5556 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
5557 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
5558 * sysdeps/unix/sysv/linux/xstat.c: Likewise.
5559 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
5560 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
5561 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
5562 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
5563 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
5564 __statfs_filesize_max, __statfs_symlinks): Define here. __ prepended
5565 to name. Change callers.
5566 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
5567 __statfs_filesize_max, __statfs_symlinks): Don't define here, just
5568 declare.
5569 * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
5570 * time/tzfile.c (decode): Always inline.
5571 * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
5572 Remove cast in tomb function call.
5573 * wcsmbs/wcsrtombs.c Likewise.
5574 * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
5575 tomb function call.
5576
5577 2003-06-10 Ulrich Drepper <drepper@redhat.com>
5578
5579 * po/zh_CN.po: Update from translation team.
5580
5581 2003-06-10 Jakub Jelinek <jakub@redhat.com>
5582
5583 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
5584 IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
5585
5586 2003-06-10 Ulrich Drepper <drepper@redhat.com>
5587
5588 * inet/Makefile (aux): Add check_pf.
5589 * include/ifaddrs.h: Add prototype for __check_pf.
5590 * sysdeps/generic/check_pf.c: New file.
5591 * sysdeps/unix/sysv/linux/check_pf.c: New file.
5592 * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
5593 from no_netlink_support. Export.
5594 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
5595 call __check_pf.
5596
5597 * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
5598
5599 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
5600 from getifaddr calls.
5601
5602 2003-06-09 Jakub Jelinek <jakub@redhat.com>
5603
5604 * sysdeps/unix/sysv/linux/kernel-features.h
5605 (__ASSUME_SETRESGID_SYSCALL): Define.
5606 * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
5607 instead of __ASSUME_SETRESUID_SYSCALL.
5608 (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
5609 defined.
5610 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
5611 inline syscall if __NR_setresuid32 is defined.
5612 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
5613 __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
5614 * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
5615 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
5616 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
5617 code handling non-existant setresgid32 syscall with
5618 #if __ASSUME_SETRESGID_SYSCALL == 0.
5619
5620 2003-06-09 Andreas Schwab <schwab@suse.de>
5621
5622 * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
5623 ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
5624 $(objpfx)rpc-proto.d.
5625 (rpcsvc-dt-files, rpcsvc-depfiles): Define. Include
5626 $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
5627 ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
5628
5629 2003-06-08 Ulrich Drepper <drepper@redhat.com>
5630
5631 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
5632 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
5633 defined drop compatibility code.
5634 * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
5635 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
5636 defined drop compatibility code.
5637 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
5638 setresuid32 syscall directly if possible.
5639 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
5640 setresgid32 syscall directly if possible.
5641 * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
5642 compliant. Don't change sgid.
5643 * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
5644 compliant. Don't change suid.
5645
5646 * config.h.in: Add have-forced-unwind.
5647 * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
5648
5649 2003-06-07 Ulrich Drepper <drepper@redhat.com>
5650
5651 * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
5652 returned status from child matches.
5653
5654 * Makeconfig (gnulib): Add -lgcc_eh once again.
5655
5656 2003-06-06 Ulrich Drepper <drepper@redhat.com>
5657
5658 * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
5659
5660 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
5661 %edx for first parameter. This means no pushl and therefore the
5662 unwind info isn't screwed up.
5663
5664 2003-06-04 Richard Henderson <rth@redhat.com>
5665
5666 * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
5667 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
5668 * sysdeps/alpha/elf/start.S: Likewise. Remove pointless allocation.
5669 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
5670 entry sequence and explicit relocs. Add unwind info for sigreturn
5671 and rt_sigreturn.
5672 * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
5673
5674 * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
5675 Annotate some parameters.
5676 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
5677
5678 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
5679
5680 * include/libc-symbols.h (symbol_set_declare): Use arrays
5681 of unspecified size.
5682
5683 2003-06-04 Jakub Jelinek <jakub@redhat.com>
5684
5685 * config.make.in (ASFLAGS-config): New.
5686 * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
5687 * configure.in (libc_cv_as_noexecstack): New check.
5688 (ASFLAGS_config): Substitute.
5689
5690 2003-06-04 Jakub Jelinek <jakub@redhat.com>
5691
5692 * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
5693 hypot, logb): Protect with #ifdef __FAST_MATH__.
5694
5695 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
5696
5697 * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
5698 #ifdef __FAST_MATH__.
5699
5700 2003-06-03 Ulrich Drepper <drepper@redhat.com>
5701
5702 * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
5703 DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
5704 * posix/globtest.sh: Adjust for this change.
5705
5706 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
5707 to get the actual PID value used in the records passed up.
5708 (getifaddrs): Don't initialize nh.pid here.
5709
5710 2003-06-02 Ulrich Drepper <drepper@redhat.com>
5711
5712 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
5713 optimization.
5714
5715 * po/zh_CN.po: Update from translation team.
5716
5717 * posix/getconf.c (main): Also recognize names without the
5718 _POSIX_ prefix.
5719
5720 * elf/Makefile (CFLAGS-dl-lookup.c): Define.
5721
5722 2003-06-02 Bernd Schmidt <bernds@redhat.com>
5723
5724 * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
5725 ldexpf, ldexpl): Only define if __FAST_MATH__.
5726
5727 2003-06-02 Richard C. Bilson <rcbilson@plg.uwaterloo.ca>
5728
5729 Replace hard-coded offsets into struct sigcontext with generated file.
5730 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
5731 * sysdeps/unix/sysv/linux/ia64/Makefile
5732 [$(subdir) = stdlib] (gen-as-const-headers): Add it.
5733 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
5734 defining SC_* macros here.
5735
5736 2003-06-02 Jakub Jelinek <jakub@redhat.com>
5737
5738 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
5739
5740 2003-06-01 Jakub Jelinek <jakub@redhat.com>
5741
5742 * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
5743
5744 2003-06-01 Ulrich Drepper <drepper@redhat.com>
5745
5746 * test-skeleton.c (main): Request getopt to not reorder the
5747 command line.
5748
5749 * elf/Makefile (CFLAGS-dl-runtime.c): Define.
5750
5751 * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
5752 stpncpy.
5753
5754 2003-05-31 Ulrich Drepper <drepper@redhat.com>
5755
5756 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
5757
5758 2003-05-31 Jakub Jelinek <jakub@redhat.com>
5759
5760 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
5761 New function.
5762 (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
5763 RESOLVE_CONFLICT_FIND_MAP. If RESOLVE_CONFLICT_FIND_MAP is defined,
5764 call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
5765
5766 2003-05-31 Ulrich Drepper <drepper@redhat.com>
5767
5768 * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
5769 CFI directives.
5770
5771 * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
5772
5773 * libio/fileops.c (_IO_file_open): Don't mark as inline.
5774
5775 * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
5776 attribute used.
5777
5778 2003-05-30 Ulrich Drepper <drepper@redhat.com>
5779
5780 * scripts/config.guess: Update from master copy.
5781 * scripts/config.sub: Likewise.
5782
5783 2003-05-30 Guido Guenther <agx@sigxcpu.org>
5784
5785 * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
5786 SETUP_GP64 and friends.
5787 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
5788 names in internal_syscall{6,7}.
5789 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
5790 * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
5791 number of syscall arguments.
5792 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5793 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
5794 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
5795
5796 2003-05-30 Andreas Jaeger <aj@suse.de>
5797
5798 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
5799 Add CFI directives.
5800
5801 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
5802 directives.
5803
5804 * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
5805
5806 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
5807 Add CFI directives.
5808
5809 2003-05-30 Jakub Jelinek <jakub@redhat.com>
5810
5811 * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
5812 SHARED.
5813
5814 2003-05-11 Andreas Schwab <schwab@suse.de>
5815
5816 * Makerules: Always use -MP together with -MD.
5817 (sed-remove-dotot): Substitute $(..) also at start of line.
5818 ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
5819 Generated defines with a single compiler call.
5820 Use $(sed-remove-dotdot).
5821 * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
5822 of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
5823 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
5824 Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
5825 * sysdeps/unix/sysv/linux/mips/Makefile
5826 ($(objpfx)syscall-%.h): Likewise.
5827
5828 2003-05-28 Roland McGrath <roland@redhat.com>
5829
5830 * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
5831
5832 2003-05-26 Aldy Hernandez <aldyh@redhat.com>
5833
5834 * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
5835
5836 2003-05-28 Roland McGrath <roland@redhat.com>
5837
5838 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
5839 rt_sigprocmask system call.
5840 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
5841 From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
5842
5843 2003-05-28 Ulrich Drepper <drepper@redhat.com>
5844
5845 * include/libc-symbols.h: Define hidden attribute for real also if
5846 LIBC_NONSHARED is defined. Patch by Jakub Jelinek.
5847
5848 * csu/Makefile: Add rules to build Scrt1.o.
5849 * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
5850 * sysdeps/x86_64/elf/start.S: Likewise.
5851
5852 2003-05-27 Jakub Jelinek <jakub@redhat.com>
5853
5854 * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
5855 pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
5856 * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
5857 pa_short_int, pa_u_short_int and pa_float.
5858
5859 2003-05-26 Jakub Jelinek <jakub@redhat.com>
5860
5861 * libio/strops.c (_IO_str_init_static): Change into a wrapper around
5862 _IO_str_init_static_internal.
5863 (_IO_str_init_static_internal): Moved from _IO_str_init_static,
5864 change size argument to _IO_size_t, don't limit sprintf to 64M.
5865 (_IO_str_init_readonly): Call _IO_str_init_static_internal.
5866 * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
5867 _IO_size_t, don't limit swprintf to 256M.
5868 (_IO_wstr_init_readonly): Remove.
5869 * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
5870 Adjust prototypes.
5871 (_IO_wstr_init_readonly): Remove prototype.
5872 * libio/iovsprintf.c (_IO_vsprintf): Use
5873 _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
5874 * libio/iovsscanf.c (_IO_vsscanf): Likewise.
5875 * libio/memstream.c (open_memstream): Likewise.
5876 * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
5877 * libio/vasprintf.c (_IO_vasprintf): Likewise.
5878 * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
5879 * stdio-common/tst-sprintf.c (main): Add new test.
5880
5881 2003-05-26 Ulrich Drepper <drepper@redhat.com>
5882
5883 * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
5884 other implementation in respect of multiple uses of parameter with
5885 different types.
5886
5887 2003-05-25 Ulrich Drepper <drepper@redhat.com>
5888
5889 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5890 __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
5891
5892 2003-05-22 Andreas Jaeger <aj@suse.de>
5893
5894 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
5895 directives.
5896 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
5897 * sysdeps/x86_64/strtok.S: Likewise.
5898
5899 2003-05-20 Guido Guenther <agx@sigxcpu.org>
5900
5901 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
5902 to -60 and define SI_TKILL.
5903
5904 2003-05-21 H.J. Lu <hongjiu.lu@intel.com>
5905
5906 * math/test-fenv.c (feexcp_nomask_test): Fix comment.
5907 (feexcp_mask_test): Likewise.
5908
5909 2003-05-21 Ulrich Drepper <drepper@redhat.com>
5910
5911 * locale/programs/locale.c (main): Fix typo in last patch.
5912
5913 * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
5914 __init_array_start, __init_array_end, __fini_array_start, and
5915 __fini_array_end as hidden.
5916
5917 2003-05-21 Petter Reinholdtsen <pere@hungry.com>
5918
5919 * locale/programs/locale.c (main): Report an error if setlocale()
5920 fails [PR libc/2254].
5921
5922 2003-05-21 Jakub Jelinek <jakub@redhat.com>
5923
5924 * sysdeps/unix/sysv/linux/s390/system.c: New file.
5925
5926 2003-05-21 Jakub Jelinek <jakub@redhat.com>
5927
5928 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
5929 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
5930 LOADARGS_6): Don't error if syscall argument is a string literal.
5931 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
5932 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
5933 LOADARGS_6): Likewise.
5934
5935 2003-05-21 Andreas Jaeger <aj@suse.de>
5936
5937 * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
5938 cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
5939 cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
5940
5941 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
5942 (ENTRY): Likewise.
5943 (END): Likewise.
5944
5945 * configure.in: Test for asm cfi directives.
5946
5947 * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
5948
5949 2003-05-17 Andreas Jaeger <aj@suse.de>
5950
5951 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
5952
5953 * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
5954
5955 2003-05-16 Ulrich Drepper <drepper@redhat.com>
5956
5957 * rt/Makefile (tests): Add tst-clock_nanosleep.
5958 * rt/tst-clock_nanosleep.c: New file.
5959 * posix/Makefile (tests): Add tst-nanosleep.
5960 * posix/tst-nanosleep.c: New file.
5961
5962 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
5963
5964 * include/features.h (__USE_XOPEN2K): Define also for
5965 _POSIX_C_SOURCE>=200112L.
5966
5967 * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
5968 SI_TKILL code into SI_USER.
5969 * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
5970
5971 * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
5972
5973 2003-05-15 Jakub Jelinek <jakub@redhat.com>
5974
5975 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
5976 Remove sym argument, always use refsym.
5977 (__process_machine_rela): Adjust callers.
5978 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
5979 Likewise.
5980 * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
5981 Adjust prototype.
5982 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
5983
5984 2003-05-15 Ulrich Drepper <drepper@redhat.com>
5985
5986 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
5987 (DL_NEED_SYSINFO -> NEED_DL_SYSINFO). If aux value is not known
5988 print numeric values.
5989
5990 2003-05-12 Thorsten Kukuk <kukuk@suse.de>
5991
5992 * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
5993
5994 2003-05-14 Andreas Schwab <schwab@suse.de>
5995
5996 * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
5997
5998 2003-05-14 Jakub Jelinek <jakub@redhat.com>
5999
6000 * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
6001 even if no DT_NEEDED is present.
6002
6003 2003-05-13 David Mosberger <davidm@hpl.hp.com>
6004
6005 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
6006 2003-03-27: setjmp is NOT a leaf-routine (due to the call to
6007 __sigjmp_save) so we can't keep the saved unat value in a scratch
6008 register (r16). Use loc2 instead.
6009
6010 2003-05-13 Ulrich Drepper <drepper@redhat.com>
6011
6012 * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
6013 binaries it has to be relocatable.
6014
6015 * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
6016
6017 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
6018
6019 * sysdeps/powerpc/bits/atomic.h
6020 (__arch_compare_and_exchange_bool_8_rel): Define.
6021 (__arch_compare_and_exchange_bool_16_rel): Define.
6022 (__ARCH_REL_INSTR): Define if not already defined.
6023 (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
6024 (__arch_atomic_decrement_if_positive_32):
6025 Add "memory" to clobber list.
6026 (__arch_compare_and_exchange_val_32_acq): Remove release sync.
6027 (__arch_compare_and_exchange_val_32_rel): Define.
6028 (__arch_atomic_exchange_32): Remove.
6029 (__arch_atomic_exchange_32_acq): Define.
6030 (__arch_atomic_exchange_32_rel): Define.
6031 (atomic_compare_and_exchange_val_rel): Define.
6032 (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
6033 (atomic_exchange_rel): Define.
6034 * sysdeps/powerpc/powerpc32/bits/atomic.h
6035 (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
6036 (__arch_compare_and_exchange_bool_32_rel): Define.
6037 (__arch_compare_and_exchange_bool_64_rel): Define.
6038 (__arch_compare_and_exchange_val_64_rel): Define.
6039 (__arch_atomic_exchange_64): Remove.
6040 (__arch_atomic_exchange_64_acq): Define.
6041 (__arch_atomic_exchange_64_rel): Define.
6042 * sysdeps/powerpc/powerpc64/bits/atomic.h
6043 (__arch_compare_and_exchange_bool_32_rel): Define.
6044 (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
6045 (__arch_compare_and_exchange_bool_64_rel): Define.
6046 (__arch_compare_and_exchange_val_64_acq): Remove release sync.
6047 (__arch_compare_and_exchange_val_64_rel): Define.
6048 (__arch_atomic_exchange_64): Remove.
6049 (__arch_atomic_exchange_64_acq): Define.
6050 (__arch_atomic_exchange_64_rel): Define.
6051 (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
6052 (__arch_atomic_decrement_if_positive_64):
6053 Add "memory" to clobber list.
6054 [!UP](__ARCH_REL_INSTR): Define as lwsync.
6055
6056 2003-05-11 Andreas Schwab <schwab@suse.de>
6057
6058 * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
6059
6060 2003-05-11 Ulrich Drepper <drepper@redhat.com>
6061
6062 * time/tst-strftime.c (do_test): Add tests for - flag.
6063
6064 2003-05-11 Jim Meyering <jim@meyering.net>
6065
6066 * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
6067 the space-padded-by-default conversion specifiers, %e, %k, %l.
6068
6069 2003-05-11 Andreas Schwab <schwab@suse.de>
6070
6071 * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
6072
6073 2003-05-10 Ulrich Drepper <drepper@redhat.com>
6074
6075 * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
6076 already defined and when really needed.
6077 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
6078
6079 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
6080
6081 * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
6082 headers, add defines from kernel header, move it from here...
6083 * inet/netinet/igmp.h: ... to here.
6084 * inet/Makefile (headers): Add netinet/igmp.h.
6085 * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
6086 * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
6087
6088 2003-05-10 Ulrich Drepper <drepper@redhat.com>
6089
6090 * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
6091 use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
6092
6093 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
6094
6095 * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
6096 (remove __THROW from possible cancellation points).
6097
6098 2003-05-10 Ulrich Drepper <drepper@redhat.com>
6099
6100 * posix/sched.h (CPU_SETSIZE): Define.
6101
6102 2003-05-09 Ulrich Drepper <drepper@redhat.com>
6103
6104 * Makeconfig (gnulib): Remove -lgcc_eh again.
6105
6106 * posix/sched.h: Change prototypes of sched_getaffinity and
6107 sched_setaffinity. Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
6108 * sysdeps/generic/sched_getaffinity.c: Adjust definition.
6109 * sysdeps/generic/sched_setaffinity.c: Likewise.
6110 * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
6111 __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
6112 __CPU_CLR, and __CPU_ISSET.
6113 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
6114 * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
6115 * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
6116
6117 * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
6118 (atomic_exchange_rel): New #define.
6119 * sysdeps/ia64/bits/atomic.h: Likewise.
6120 * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
6121 atomic_exchange.
6122 * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
6123 * sysdeps/powerpc/bits/atomic.h: Likewise.
6124 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
6125 * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
6126 * sysdeps/x86_64/bits/atomic.h: Likewise.
6127 * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
6128
6129 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
6130
6131 2003-05-08 Ulrich Drepper <drepper@redhat.com>
6132
6133 * malloc/thread-m.h: Remove special handling of thread_atfork if
6134 HAVE_register_atfork_malloc is defined.
6135
6136 2003-05-07 Andreas Jaeger <aj@suse.de>
6137
6138 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
6139 information.
6140
6141 2003-05-06 Ulrich Drepper <drepper@redhat.com>
6142
6143 * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
6144 * libio/oldiofopen.c (_IO_old_fopen): Likewise.
6145 * libio/libioP.h: Declare _IO_old_init.
6146 * libio/genops.c (_IO_no_init): Split in two. New function
6147 _IO_old_init.
6148
6149 2003-05-05 Ulrich Drepper <drepper@redhat.com>
6150
6151 * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
6152 variable.
6153 (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
6154 is nonzero.
6155 * include/unistd.h: Declare __libc_enable_secure_decided.
6156 * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
6157 and AT_EGID. If all found, set __libc_enable_secure and
6158 __libc_enable_secure_decided.
6159
6160 * sysdeps/generic/libc-start.c [!SHARED]: Call
6161 __libc_check_standard_fds after __libc_init_first.
6162
6163 2003-05-05 Roland McGrath <roland@redhat.com>
6164
6165 * Makerules (common-before-compile): New variable.
6166 ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
6167 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise. Move this rule
6168 to after all setting of before-compile.
6169
6170 2003-05-05 Jakub Jelinek <jakub@redhat.com>
6171
6172 * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
6173 __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
6174 * sysdeps/powerpc/powerpc32/bits/atomic.h
6175 (__arch_compare_and_exchange_val_64_acq): Likewise.
6176 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
6177 (__arch_compare_and_exchange_val_8_acq,
6178 __arch_compare_and_exchange_val_16_acq,
6179 __arch_compare_and_exchange_val_64_acq): Likewise.
6180 * sysdeps/sparc/sparc64/bits/atomic.h
6181 (__arch_compare_and_exchange_val_8_acq,
6182 __arch_compare_and_exchange_val_16_acq): Likewise.
6183 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
6184 __arch_compare_and_exchange_val_16_acq,
6185 __arch_compare_and_exchange_val_64_acq): Likewise.
6186 * sysdeps/unix/sysv/linux/sh/bits/atomic.h
6187 (__arch_compare_and_exchange_val_64_acq): Likewise.
6188 * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
6189 up warning.
6190 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
6191
6192 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
6193 (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
6194 Return long instead of int.
6195 (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
6196 0xfffff001u with -4095UL.
6197
6198 2003-05-05 Andreas Jaeger <aj@suse.de>
6199
6200 * sysdeps/x86_64/fpu_control.h: New from i386.
6201
6202 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
6203 Define if not defined.
6204
6205 * sunrpc/Makefile (generated-dirs): New variable.
6206 * resolv/Makefile (generated): New variable.
6207
6208 2003-05-04 Roland McGrath <roland@redhat.com>
6209
6210 * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
6211 Depend on $(before-compile).
6212
6213 * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
6214 pattern rule. The implicit rule could be ruled out when $(objpfx)
6215 didn't exist at the time of its consideration (ugh!).
6216
6217 * Makerules (+make-deps): Fix target matching.
6218 Use $(sed-remove-dotdot).
6219
6220 2003-05-03 Ulrich Drepper <drepper@redhat.com>
6221
6222 * nscd/nscd.c (main): Parse config file right after parsing
6223 parameters. Then, if get_stats is true, call receive_print_stats.
6224 Drop parameter from nscd_init call.
6225 (get_stats): New variable.
6226 (parse_opt): Set get_stats, don't call receive_print_stats here.
6227 * nscd/nscd.h: Declare dbs, stat_user, and stat_uid. Adjust nscd_init
6228 prototype.
6229 * nscd/connections.c (stat_user, stat_uid): New variables.
6230 (dbs): Make global.
6231 (nscd_init): Don't read configuration file here. Drop parameter.
6232 (handle_request): Cleanup handling of non-database lookup requests.
6233 * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
6234 Get UID of the specified user. Use xstrdup instead of strdup.
6235 * nscd/nscd_stat.c (receive_print_stats): Check UID. If not zero,
6236 check stat_user.
6237 * nscd/Makefile (nscd-modules): Add xstrdup.
6238 * nscd/nscd.conf: Document stat-user entry.
6239
6240 2003-05-03 H.J. Lu <hongjiu.lu@intel.com>
6241
6242 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
6243 if not defined.
6244
6245 2003-04-22 Roland McGrath <roland@redhat.com>
6246
6247 * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
6248 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
6249 dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
6250 * elf/dl-support.c: Update defn.
6251 * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
6252 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
6253 Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
6254 (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
6255 * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
6256 set, set up a link_map for the preloaded, prelinked object.
6257
6258 2003-05-03 Roland McGrath <roland@redhat.com>
6259
6260 * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
6261 * stdio-common/Makefile: ... not here.
6262
6263 * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
6264 * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
6265
6266 2003-05-02 Ulrich Drepper <drepper@redhat.com>
6267
6268 * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
6269
6270 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
6271
6272 * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
6273 comparing ftab elements.
6274 (_dl_unmap): Fix typo in test.
6275 (_dl_make_fptr): Fix typos introduced in last change.
6276
6277 * sysdeps/generic/dl-fptr.c: Put back one optimization from the
6278 original patch. Use non-exported symbols. Mark translatable
6279 strings. Pretty printing.
6280
6281 2003-05-02 Roland McGrath <roland@redhat.com>
6282
6283 * Makerules (do-stamp): Do $(make-target-directory).
6284
6285 2003-04-07 H.J. Lu <hjl@gnu.org>
6286
6287 * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
6288
6289 2003-04-03 H.J. Lu <hjl@gnu.org>
6290
6291 * sysdeps/ia64/dl-fptr.c: Moved to ...
6292 * sysdeps/generic/dl-fptr.c: Here.
6293
6294 * sysdeps/generic/dl-fptr.h: New.
6295 * sysdeps/ia64/dl-fptr.h: New.
6296
6297 * sysdeps/ia64/dl-symaddr.c: Moved to ...
6298 * sysdeps/generic/dl-symaddr.c: here.
6299
6300 * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
6301 (IA64_BOOT_FPTR_TABLE_LEN): Removed.
6302 (ia64_fdesc): Likewise.
6303 (ia64_fdesc_table): Likewise.
6304 (__ia64_make_fptr): Likewise.
6305 (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
6306 with _dl_boot_fptr_table.
6307 (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
6308 `struct fdesc'.
6309 (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
6310
6311 2003-05-01 Roland McGrath <roland@redhat.com>
6312
6313 * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
6314 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
6315
6316 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
6317 Use $(make-target-directory).
6318 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
6319
6320 * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
6321 (compile-command.S): Don't use ifndef. Append $(compile-mkdep-flags).
6322 (compile-command.s, compile-command.c): Likewise.
6323 ($(objpfx)%.d): All such pattern rules removed.
6324 ($(+sysdir_pfx)sysd-rules): Don't generate them.
6325 ($(common-objpfx)dummy.d): Target removed.
6326 (make-dummy-dep): Variable removed.
6327 (generate-md5): Likewise.
6328 (%.d: %.dt): New pattern rule.
6329 (+depfiles): Use $(wildcard) function to get just existing *.d files
6330 and .d files for existing *.dt files.
6331 (common-clean): Remove all *.d and *.dt files.
6332 (before-compile): Add $(objpfx). when it doesn't exist,
6333 regardless of $(no_deps).
6334 * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
6335 (rtld-depfiles): Use .os.d instead of .d names.
6336 Include existing *.d files and .d files for existing *.dt files.
6337
6338 * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
6339 Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
6340
6341 * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
6342 Do s-*.d includes only if we have some syscall routines in this subdir.
6343
6344 * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
6345 @nobits. The former is accepted by gas on any ELF platform.
6346
6347 2003-05-01 Ulrich Drepper <drepper@redhat.com>
6348
6349 * sysdeps/unix/sysv/linux/semtimedop.c: New file.
6350
6351 * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
6352
6353 2003-04-29 Andreas Schwab <schwab@suse.de>
6354
6355 * string/test-strcat.c (do_one_test): Fix attribute name.
6356
6357 2003-04-30 Alexandre Oliva <aoliva@redhat.com>
6358
6359 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
6360 uc_flags long for all ABIs.
6361
6362 2003-04-30 Andreas Jaeger <aj@suse.de>
6363
6364 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
6365 (DR_CONTROL_RESERVED): Use correct value for 64-bit.
6366 Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
6367 Add bi-arch support.
6368
6369 2003-04-30 Ulrich Drepper <drepper@redhat.com>
6370
6371 * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
6372 (__posix_memalign): Use __memalign_internal instead of memalign.
6373
6374 2003-04-29 Roland McGrath <roland@redhat.com>
6375
6376 * configure.in: Search for AUTOCONF unconditionally.
6377 Just don't complain about missing it under --without-cvs.
6378
6379 * include/libc-symbols.h (__symbol_set_attribute): New macro,
6380 give hidden for [SHARED] and weak for [! SHARED].
6381 (symbol_set_declare): Use that. Never need weak_extern these days.
6382 * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
6383 Depend on $(..)Makerules.
6384
6385 2003-04-29 Ulrich Drepper <drepper@redhat.com>
6386
6387 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
6388 variants of socket, bind, recvmsg, and sendto.
6389
6390 * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
6391
6392 * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
6393 * signal/sigaddset.c: Add libc_hidden_def.
6394 * signal/sigdelset.c: Likewise.
6395
6396 2003-04-29 Jakub Jelinek <jakub@redhat.com>
6397
6398 * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
6399 to the end of the file.
6400
6401 * configure.in: Change __oline__ to $LINENO.
6402 (HAVE_BUILTIN_REDIRECTION): New check.
6403 * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
6404 * include/libc-symbols.h (libc_hidden_builtin_proto,
6405 libc_hidden_builtin_def, libc_hidden_builtin_weak,
6406 libc_hidden_builtin_ver): Define.
6407 * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
6408 strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
6409 strspn, strstr): Add libc_hidden_builtin_proto.
6410 * intl/plural.y: Include string.h.
6411 * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
6412 libc_hidden_builtin_def.
6413 * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
6414 * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
6415 * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
6416 * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
6417 * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
6418 * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
6419 * sysdeps/alpha/memchr.S (memchr): Likewise.
6420 * sysdeps/alpha/memset.S (memset): Likewise.
6421 * sysdeps/alpha/strcat.S (strcat): Likewise.
6422 * sysdeps/alpha/strchr.S (strchr): Likewise.
6423 * sysdeps/alpha/strcmp.S (strcmp): Likewise.
6424 * sysdeps/alpha/strcpy.S (strcpy): Likewise.
6425 * sysdeps/alpha/strlen.S (strlen): Likewise.
6426 * sysdeps/alpha/strncmp.S (strncmp): Likewise.
6427 * sysdeps/alpha/strncpy.S (strncpy): Likewise.
6428 * sysdeps/alpha/strrchr.S (strrchr): Likewise.
6429 * sysdeps/arm/memset.S (memset): Likewise.
6430 * sysdeps/arm/strlen.S (strlen): Likewise.
6431 * sysdeps/generic/memchr.c (memchr): Likewise.
6432 * sysdeps/generic/memcpy.c (memcpy): Likewise.
6433 * sysdeps/generic/memmove.c (memmove): Likewise.
6434 * sysdeps/generic/memset.c (memset): Likewise.
6435 * sysdeps/generic/strcat.c (strcat): Likewise.
6436 * sysdeps/generic/strchr.c (strchr): Likewise.
6437 * sysdeps/generic/strcmp.c (strcmp): Likewise.
6438 * sysdeps/generic/strcpy.c (strcpy): Likewise.
6439 * sysdeps/generic/strcspn.c (strcspn): Likewise.
6440 * sysdeps/generic/strlen.c (strlen): Likewise.
6441 * sysdeps/generic/strncmp.c (strncmp): Likewise.
6442 * sysdeps/generic/strncpy.c (strncpy): Likewise.
6443 * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
6444 * sysdeps/generic/strrchr.c (strrchr): Likewise.
6445 * sysdeps/generic/strspn.c (strspn): Likewise.
6446 * sysdeps/generic/strstr.c (strstr): Likewise.
6447 * sysdeps/i386/i486/strcat.S (strcat): Likewise.
6448 * sysdeps/i386/i486/strlen.S (strlen): Likewise.
6449 * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
6450 * sysdeps/i386/i586/memset.S (memset): Likewise.
6451 * sysdeps/i386/i586/strchr.S (strchr): Likewise.
6452 * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
6453 * sysdeps/i386/i586/strlen.S (strlen): Likewise.
6454 * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
6455 * sysdeps/i386/i686/memmove.S (memmove): Likewise.
6456 * sysdeps/i386/i686/memset.S (memset): Likewise.
6457 * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
6458 * sysdeps/i386/memchr.S (memchr): Likewise.
6459 * sysdeps/i386/memset.c (memset): Likewise.
6460 * sysdeps/i386/strchr.S (strchr): Likewise.
6461 * sysdeps/i386/strcspn.S (strcspn): Likewise.
6462 * sysdeps/i386/strlen.c (strlen): Likewise.
6463 * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
6464 * sysdeps/i386/strrchr.S (strrchr): Likewise.
6465 * sysdeps/i386/strspn.S (strspn): Likewise.
6466 * sysdeps/ia64/memchr.S (memchr): Likewise.
6467 * sysdeps/ia64/memcpy.S (memcpy): Likewise.
6468 * sysdeps/ia64/memmove.S (memmove): Likewise.
6469 * sysdeps/ia64/memset.S (memset): Likewise.
6470 * sysdeps/ia64/strcat.S (strcat): Likewise.
6471 * sysdeps/ia64/strchr.S (strchr): Likewise.
6472 * sysdeps/ia64/strcmp.S (strcmp): Likewise.
6473 * sysdeps/ia64/strcpy.S (strcpy): Likewise.
6474 * sysdeps/ia64/strlen.S (strlen): Likewise.
6475 * sysdeps/ia64/strncmp.S (strncmp): Likewise.
6476 * sysdeps/ia64/strncpy.S (strncpy): Likewise.
6477 * sysdeps/m68k/memchr.S (memchr): Likewise.
6478 * sysdeps/m68k/strchr.S (strchr): Likewise.
6479 * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
6480 * sysdeps/mips/mips64/memset.S (memset): Likewise.
6481 * sysdeps/mips/memcpy.S (memcpy): Likewise.
6482 * sysdeps/mips/memset.S (memset): Likewise.
6483 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
6484 * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
6485 * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
6486 * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
6487 * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
6488 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
6489 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
6490 * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
6491 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
6492 * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
6493 * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
6494 * sysdeps/powerpc/strcat.c (strcat): Likewise.
6495 * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
6496 * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
6497 * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
6498 * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
6499 * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
6500 * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
6501 * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
6502 * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
6503 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
6504 * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
6505 * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
6506 * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
6507 * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
6508 * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
6509 * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
6510 * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
6511 * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
6512 * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
6513 * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
6514 * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
6515 * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
6516 * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
6517 * sysdeps/sh/memcpy.S (memcpy): Likewise.
6518 * sysdeps/sh/memset.S (memset): Likewise.
6519 * sysdeps/sh/strlen.S (strlen): Likewise.
6520 * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
6521 * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
6522 * sysdeps/s390/s390-32/memset.S (memset): Likewise.
6523 * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
6524 * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
6525 * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
6526 * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
6527 * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
6528 * sysdeps/s390/s390-64/memset.S (memset): Likewise.
6529 * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
6530 * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
6531 * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
6532 * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
6533 * sysdeps/x86_64/memset.S (memset): Likewise.
6534 * sysdeps/x86_64/strcat.S (strcat): Likewise.
6535 * sysdeps/x86_64/strchr.S (strchr): Likewise.
6536 * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
6537 * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
6538 * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
6539 * sysdeps/x86_64/strlen.S (strlen): Likewise.
6540 * sysdeps/x86_64/strspn.S (strspn): Likewise.
6541 * string/string-inlines.c: Move...
6542 * sysdeps/generic/string-inlines.c: ...here.
6543 (__memcpy_g, __strchr_g): Remove.
6544 (__NO_INLINE__): Define before including <string.h>,
6545 undefine after. Include bits/string.h and bits/string2.h.
6546 * sysdeps/i386/i486/string-inlines.c: New file.
6547 * sysdeps/i386/string-inlines.c: New file.
6548 * sysdeps/i386/i486/Versions: Remove.
6549 All GLIBC_2.1.1 symbols moved...
6550 * sysdeps/i386/Versions (libc): ...here.
6551
6552 2003-04-29 Ulrich Drepper <drepper@redhat.com>
6553
6554 * sysdeps/i386/fpu/Makefile: New file.
6555 * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
6556 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
6557 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
6558 * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
6559 [PR libc/4987].
6560
6561 2003-04-28 Ulrich Drepper <drepper@redhat.com>
6562
6563 * nscd/nscd_getgr_r.c: Compact code a bit. Add some __builtin_expect.
6564 * nscd/nscd_getpw_r.c: Likewise.
6565 * nscd/nscd_gethst_r.c: Likewise.
6566
6567 2003-04-27 Ulrich Drepper <drepper@redhat.com>
6568
6569 * nscd/pwdcache.c: Initialize .version element in result.
6570 * nscd/grpcache.c: Likewise.
6571 * nscd/pwdcache.c: Likewise.
6572
6573 2003-04-27 Andreas Schwab <schwab@suse.de>
6574
6575 * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
6576 subdirectory.
6577
6578 2003-04-27 Andreas Schwab <schwab@suse.de>
6579
6580 * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
6581
6582 2003-04-27 Ulrich Drepper <drepper@redhat.com>
6583
6584 * nscd/connections.c (client_queued): New variable.
6585 (nscd_run): Revamp the loop. Don't call poll except for cleanup
6586 threads. Keep track of the number of delays caused because of busy
6587 worker threads.
6588 * nscd/nscd.h: Declare client_queued.
6589 * nscd/nscd_stat.c: Transmit and print client_queued information.
6590
6591 * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
6592
6593 * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
6594 define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
6595
6596 2003-04-26 Ulrich Drepper <drepper@redhat.com>
6597
6598 * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
6599 tracking of freed memory in static TLS block.
6600 * elf/Makefile: Add rules to build and run tst-tls13.
6601 * elf/tst-tls13.c: New file.
6602 * elf/tst-tlsmod13.c: New file.
6603 * elf/tst-tlsmod13a.c: New file.
6604
6605 * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
6606
6607 * elf/dl-reloc.c: Pretty printing.
6608
6609 2003-04-26 Roland McGrath <roland@redhat.com>
6610
6611 * Makerules ($(common-objpfx)shlib.lds): New target.
6612 (common-generated): Add it.
6613 (build-shlib, build-module): Use that instead of generating every time.
6614 ($(common-objpfx)libc.so): Depend on it.
6615 (lib%.so rule): Likewise.
6616 (build-module-helper-objlist): Remove %.lds.
6617 (LDSEDCMD-c.so): Variable removed.
6618 * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
6619 Depend on $(common-objpfx)shlib.lds.
6620 * dlfcn/Makefile ($(test-modules)): Likewise.
6621
6622 2003-04-26 Roland McGrath <roland@frob.com>
6623
6624 * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
6625
6626 2003-04-26 Andreas Schwab <schwab@suse.de>
6627
6628 * elf/dl-close.c (remove_slotinfo): Fix missing parens.
6629
6630 2003-04-25 Ulrich Drepper <drepper@redhat.com>
6631
6632 * nscd/cache.c (cache_search): Keep track of how many chain links
6633 we searched and update table statistics.
6634 (cache_add): Keep track of how many values are in the table.
6635 (prune_cache): Likewise. Keep track of locking success.
6636 Print messages about removed entries in separate pass.
6637 * nscd/connections.c (handle_request): Don't print debug message here.
6638 The caller will do it. Keep track of locking success.
6639 (nscd_run): Print debug message. Also print PID of the client process.
6640 * nscd/nscd.c (start_time): New variable.
6641 (main): Remember start time.
6642 * nscd/nscd.h: Declare start_time.
6643 (struct database): Add more members for new statistics.
6644 * nscd/nscd_stat.c: Add support for sending, receiving, and printing
6645 of new statistics.
6646
6647 * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
6648
6649 2003-04-22 Jakub Jelinek <jakub@redhat.com>
6650
6651 * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
6652 * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
6653 * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
6654 NO_TLS_OFFSET.
6655 * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
6656 * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
6657 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
6658 * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
6659 TLS_TCB_SIZE.
6660
6661 2003-04-24 Ulrich Drepper <drepper@redhat.com>
6662
6663 * nss/getent.c: Implement alternative host database lookup via
6664 getaddrinfo.
6665
6666 * include/ifaddrs.h: New file.
6667 * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
6668 AI_ADDRCONFIG...
6669 * resolv/netdb.h: ...here.
6670 * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
6671 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
6672 * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
6673 AI_ADDRCONFIG.
6674
6675 2003-04-24 Roland McGrath <roland@redhat.com>
6676
6677 * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
6678
6679 2003-04-24 Jakub Jelinek <jakub@redhat.com>
6680
6681 * elf/dl-reloc.c (allocate_static_tls): Rename to...
6682 (_dl_allocate_static_tls): ... this function. No longer static.
6683 (CHECK_STATIC_TLS): Adjust.
6684 * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
6685 * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
6686 Add SYM_MAP argument.
6687 (elf_machine_rela): Adjust caller. Declare SYM_MAP unconditionally.
6688 Check if SYM_MAP != NULL for R_PPC_DTPREL32. Only handle 32-bit
6689 TLS relocs here. #ifdef out relocs which never appear in
6690 .gnu.conflict section from dl-conflict.c processing.
6691 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
6692 Add SYM_MAP argument. Handle 16-bit TLS relocs here.
6693
6694 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
6695 out relocs which never appear in .gnu.conflict section from
6696 dl-conflict.c processing.
6697 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
6698 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
6699 * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
6700 Use r_type in RESOLVE macro.
6701
6702 2003-04-23 Ulrich Drepper <drepper@redhat.com>
6703
6704 * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
6705 NULL. Remove code made redundant by this assumption.
6706 (__yp_unbind): Add call to free. Adjust all callers.
6707
6708 * nis/ypclnt.c (yp_all): Free the dom_binding object after
6709 unbinding it.
6710
6711 * grp/initgroups.c (getgrouplist): Don't copy too much into the
6712 user buffer if more groups are found than fit into it.
6713
6714 * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
6715 extend_alloca.
6716
6717 2003-04-23 Jakub Jelinek <jakub@redhat.com>
6718
6719 * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
6720 not rc == errno. Use extend_alloca.
6721
6722 * elf/tst-tls12.c (main): Fix declaration.
6723 * elf/tst-tls10.c (dummy): Make hidden instead of static.
6724 * elf/tst-tlsmod7.c (dummy): Likewise.
6725 * elf/tst-tlsmod8.c (dummy): Likewise.
6726 * elf/tst-tlsmod9.c (dummy): Likewise.
6727
6728 2003-04-22 Roland McGrath <roland@redhat.com>
6729
6730 * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
6731 (open_not_cancel): Make last argument non-optional.
6732 * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
6733 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
6734 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
6735
6736 * include/tls.h: Protect against multiple inclusion.
6737
6738 2003-04-22 Ulrich Drepper <drepper@redhat.com>
6739
6740 * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
6741 * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
6742 open_socket. Not static anymore.
6743 (nscd_gethst_r): Use __nscd_open_socket.
6744 * nscd/nscd_getgr_r.c (open_socket): Removed.
6745 (nscd_getgr_r): Use __nscd_open_socket.
6746 * nscd/nscd_getpw_r.c (open_socket): Removed.
6747 (nscd_getpw_r): Use __nscd_open_socket.
6748
6749 * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
6750 * nscd/connections.c (handle_request): Add cast to avoid warning.
6751
6752 2003-04-21 Ulrich Drepper <drepper@redhat.com>
6753
6754 * signal/sigfillset.c: Moved to...
6755 * sysdeps/generic/sigfillset.c: ...here. If SIGCANCEL is defined
6756 do not set the corresponding bit.
6757
6758 * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
6759 SIGCANCEL.
6760 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
6761 * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
6762 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
6763 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
6764 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
6765
6766 2003-04-20 Ulrich Drepper <drepper@redhat.com>
6767
6768 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
6769 first syscall parameter to const char*.
6770
6771 2003-04-19 Ulrich Drepper <drepper@redhat.com>
6772
6773 * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
6774
6775 * configure.in: Add AC_PROG_CXX.
6776 * config.make.in (CXX): Define.
6777
6778 * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
6779 __len to size_t to avoid warnings.
6780
6781 2003-04-18 Jes Sorensen <jes@wildopensource.com>
6782
6783 * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
6784 2.5.67.
6785 * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6786
6787 2003-04-19 Ulrich Drepper <drepper@redhat.com>
6788
6789 * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
6790 UNREGISTER_ATFORK if d == NULL.
6791
6792 * catgets/nl_types.h: Remove __THROW marker from cancellation points.
6793 * dirent/dirent.h: Likewise.
6794 * dlfcn/dlfcn.h: Likewise.
6795 * grp/grp.h: Likewise.
6796 * iconv/iconv.h: Likewise.
6797 * io/fcntl.h: Likewise.
6798 * io/ftw.h: Likewise.
6799 * libio/stdio.h: Likewise.
6800 * misc/sys/mman.h: Likewise.
6801 * misc/sys/select.h: Likewise.
6802 * misc/sys/syslog.h: Likewise.
6803 * misc/sys/uio.h: Likewise.
6804 * posix/spawn.h: Likewise.
6805 * posix/unistd.h: Likewise.
6806 * posix/sys/wait.h: Likewise.
6807 * pwd/pwd.h: Likewise.
6808 * resolv/netdb.h: Likewise.
6809 * rt/aio.h: Likewise.
6810 * shadow/shadow.h: Likewise.
6811 * signal/signal.h: Likewise.
6812 * socket/sys/socket.h: Likewise.
6813 * stdlib/stdlib.h: Likewise.
6814 * streams/stropts.h: Likewise.
6815 * string/string.h: Likewise.
6816 * sysdeps/gnu/utmpx.h: Likewise.
6817 * sysvipc/sys/msg.h: Likewise.
6818 * termios/termios.h: Likewise.
6819 * time/time.h: Likewise.
6820 * wcsmbs/wchar.h: Likewise.
6821 * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
6822 functions.
6823 * misc/daemon.c: Likewise.
6824 * sysdeps/generic/backtracesymsfd.c: Likewise.
6825 * sysdeps/generic/check_fds.c: Likewise.
6826 * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
6827 * sysdeps/unix/sysv/linux/not-cancel.h: New file.
6828 * sysdeps/generic/not-cancel.h: New file.
6829 * csu/Makefile (distribute): Add not-cancel.h.
6830 * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
6831 * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
6832 for assert.c and assert-perr.c to include <fatal-prepare.h>.
6833 * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
6834
6835 * sysdeps/posix/remove.c (remove): Rewrite. No need to restore
6836 errno and unlink first.
6837
6838 * io/ftw.c (ftw_dir): In all places assume fchdir is available.
6839
6840 2003-04-18 Ulrich Drepper <drepper@redhat.com>
6841
6842 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
6843 INTERNAL_SYSCALL instead of INLINE_SYSCALL.
6844
6845 2003-04-17 Ulrich Drepper <drepper@redhat.com>
6846
6847 * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
6848
6849 * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
6850 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
6851 replace.
6852
6853 * signal/Makefile (tests): Add tst-sigsimple.
6854 * signal/tst-sigsimple.c: New file.
6855
6856 2003-04-16 Jakub Jelinek <jakub@redhat.com>
6857
6858 * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
6859 tst-tls10.h.
6860 (tests): Add tst-tls1[0-2].
6861 (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
6862 ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
6863 ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
6864 ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
6865 ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
6866 ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
6867 ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
6868 * elf/tst-tls10.c: New test.
6869 * elf/tst-tls11.c: New test.
6870 * elf/tst-tls12.c: New test.
6871 * elf/tst-tls10.h: New file.
6872 * elf/tst-tlsmod7.c: New file.
6873 * elf/tst-tlsmod8.c: New file.
6874 * elf/tst-tlsmod9.c: New file.
6875 * elf/tst-tlsmod10.c: New file.
6876 * elf/tst-tlsmod11.c: New file.
6877 * elf/tst-tlsmod12.c: New file.
6878
6879 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
6880
6881 * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
6882 * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
6883 * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
6884
6885 2003-04-17 Ulrich Drepper <drepper@redhat.com>
6886
6887 * posix/regex.h: Include <sys/types.h>.
6888
6889 * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
6890 The signal number must be checked.
6891 * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
6892 The signal number must be checked [PR libc/5004].
6893
6894 * sysdeps/unix/sysv/linux/system.c: If compiled without threads
6895 don't do anything fancy.
6896
6897 * sysdeps/generic/bits/libc-lock.h: Define
6898 __rtld_lock_define_initialized_recursive.
6899
6900 * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
6901 contacting nscd if NOT_USENSCD_NAME > 0.
6902 * nss/nsswitch.c (__nss_disable_nscd): New function.
6903 * nss/nsswitch.h: Declare it.
6904 * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
6905 * nscd/nscd.c (main): Call __nss_disable_nscd.
6906
6907 2003-04-16 Ulrich Drepper <drepper@redhat.com>
6908
6909 * stdio-common/perror.c (perror): We don't need to set the offset
6910 to _IO_pos_bad, this is how streams are initialized.
6911
6912 * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
6913 (time_output): If necessary, allocate new buffer for .name string if
6914 padding is required.
6915
6916 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
6917 before copying. This might leave holes in the list. Adjust
6918 pointers if necessary.
6919 (netlink_receive): Allocate only one block.
6920 (free_netlink_handle): Adjust appropriately.
6921 (getifaddrs): Lots of cleanups.
6922
6923 * string/test-strncpy.c (do_one_test): Mark start and stop as
6924 possibly unused.
6925 * string/test-memchr.c: Likewise.
6926 * string/test-memcmp.c: Likewise.
6927 * string/test-memcpy.c: Likewise.
6928 * string/test-memmove.c: Likewise.
6929 * string/test-memset.c: Likewise.
6930 * string/test-strcat.c: Likewise.
6931 * string/test-strchr.c: Likewise.
6932 * string/test-strcmp.c: Likewise.
6933 * string/test-strcpy.c: Likewise.
6934 * string/test-strlen.c: Likewise.
6935 * string/test-strncmp.c: Likewise.
6936 * string/test-strpbrk.c: Likewise.
6937 * string/test-strrchr.c: Likewise.
6938 * string/test-strspn.c: Likewise.
6939
6940 2003-04-15 Roland McGrath <roland@redhat.com>
6941
6942 * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
6943
6944 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
6945 INTUSE(__register_frame_info_bases).
6946
6947 2003-04-15 Ulrich Drepper <drepper@redhat.com>
6948
6949 * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
6950 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
6951 AT_SYSINFO_EH_FRAME. Adjust string width.
6952 (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
6953 * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
6954 Add _dl_sysinfo_eh_frame field.
6955 * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
6956 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
6957 variable.
6958 [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
6959 if _dl_sysinfo_eh_frame is non-NULL.
6960
6961 * Makeconfig (gnulib): Add -lgcc_eh.
6962
6963 * config.h.in: Define HAVE_FORCED_UNWIND.
6964
6965 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
6966
6967 * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
6968 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
6969
6970 2003-04-15 Jakub Jelinek <jakub@redhat.com>
6971
6972 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
6973 checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
6974 against local symbol in conflict processing.
6975
6976 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
6977
6978 * sysdeps/powerpc/bits/atomic.h
6979 [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
6980 [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
6981 as abort stub.
6982 (__arch_compare_and_exchange_val_32_acq): Define.
6983 (atomic_compare_and_exchange_val_acq): Define.
6984
6985 2003-04-15 Ulrich Drepper <drepper@redhat.com>
6986
6987 * include/atomic.h: Pretty printing.
6988
6989 2003-04-14 Ulrich Drepper <drepper@redhat.com>
6990
6991 * stdio-common/vfscanf.c: Add casts to avoid warnings.
6992
6993 2003-04-14 Jakub Jelinek <jakub@redhat.com>
6994
6995 * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
6996 * sysdeps/x86_64/bits/atomic.h: Likewise.
6997
6998 2003-04-14 Ulrich Drepper <drepper@redhat.com>
6999
7000 * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
7001 POPARGS_1 to emit labels for the mov instructions.
7002
7003 2003-04-14 Jakub Jelinek <jakub@redhat.com>
7004
7005 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
7006
7007 2003-04-14 Roland McGrath <roland@redhat.com>
7008
7009 * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
7010 compiler warning.
7011
7012 * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
7013
7014 2003-04-14 Ulrich Drepper <drepper@redhat.com>
7015
7016 * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
7017 position. Reported by jreiser@BitWagon.com.
7018
7019 2003-04-13 Ulrich Drepper <drepper@redhat.com>
7020
7021 * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
7022 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
7023 * sysdeps/generic/unwind-dw2.c: Likewise.
7024 * sysdeps/generic/unwind-pe.h: Likewise.
7025
7026 2003-04-13 Alexandre Oliva <aoliva@redhat.com>
7027
7028 * sysdeps/unix/sysv/linux/mips/profil-counter: New.
7029 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
7030 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
7031 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
7032 (mcontext_t): Make it match the 32-bit mips kernel in o32.
7033 * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
7034 the mips and mips64 headers.
7035 (struct user): Port to n32/n64.
7036
7037 2003-04-12 Ulrich Drepper <drepper@redhat.com>
7038
7039 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
7040 avoid warning.
7041
7042 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
7043 __ASSUME_VSYSCALL is defined don't add restorer.
7044 * sysdeps/unix/sysv/linux/kernel-features.h: Define
7045 __ASSUME_VSYSCALL for 2.5.53.
7046
7047 2003-04-11 Ulrich Drepper <drepper@redhat.com>
7048
7049 * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
7050 Remove HAVE_CANCELBUF code. Replace with code using the new
7051 initializers for unwind-based cleanup handling.
7052 * sysdeps/generic/unwind.h: Update from latest gcc version.
7053 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
7054 places to allow unwind data generation.
7055 * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
7056 * sysdeps/x86_64/bits/setjmp.h: Likewise.
7057 * sysdeps/sh/bits/setjmp.h: Likewise.
7058 * sysdeps/powerpc/bits/setjmp.h: Likewise.
7059 * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
7060 * sysdeps/alpha/bits/setjmp.h: Likewise.
7061
7062 2003-04-11 Roland McGrath <roland@redhat.com>
7063
7064 * csu/tst-empty.c: New file.
7065 * csu/Makefile (tests, tests-static): Add it.
7066
7067 2003-04-11 Jakub Jelinek <jakub@redhat.com>
7068
7069 * string/test-strcmp.c (do_random_tests): Test whether return value
7070 has been promoted to wordsize if the ABI requires caller to do so.
7071 * string/test-strncmp.c (do_random_tests): Likewise.
7072 * string/test-memcmp.c (do_random_tests): Likewise.
7073
7074 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
7075 before returning.
7076
7077 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
7078 (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
7079 is not defined, but the prctl constants are.
7080
7081 * string/tester.c (test_strcmp): Fix a typo.
7082
7083 2003-04-09 Ulrich Drepper <drepper@redhat.com>
7084
7085 * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
7086 * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
7087
7088 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
7089
7090 * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
7091 NewABI.
7092 (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
7093 NewABI.
7094 * sysdeps/mips/mips64/memcpy.S: Adjust register naming
7095 conventions.
7096 * sysdeps/mips/mips64/memset.S: Likewise.
7097 * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
7098 Use t0 instead of t4 as temporary.
7099
7100 2003-04-07 Ulrich Drepper <drepper@redhat.com>
7101
7102 * elf/ldconfig.c (parse_conf): Ignore leading whitespace. Use
7103 feof_unlocked instead of feof.
7104 (add_dir): Ignore trailing whitespace.
7105
7106 2003-04-07 Jakub Jelinek <jakub@redhat.com>
7107
7108 * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
7109 sum of SIZE1 and SIZE2 arguments.
7110
7111 2003-04-06 Ulrich Drepper <drepper@redhat.com>
7112
7113 * iconv/iconv_prog.c (process_block): Don't print message about
7114 invalid input if the -c option is used.
7115 (main): Correctly append IGNORE string for -c option.
7116
7117 2003-04-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7118
7119 * sysdeps/sh/bits/atomic.h: Moved to ...
7120 * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here. Add comments.
7121 (__arch_compare_and_exchange_val_*_acq): Add parens around macro
7122 arguments.
7123 (atomic_bit_set, atomic_bit_test_set): Likewise.
7124 (atomic_exchange_and_add): Likewise. Don't evaluate VALUE argument
7125 twice.
7126 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
7127
7128 2003-04-06 Roland McGrath <roland@redhat.com>
7129
7130 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
7131 restoration as done for setcontext yesterday.
7132
7133 2003-04-06 Jakub Jelinek <jakub@redhat.com>
7134
7135 * elf/rtld.c: Revert 2003-03-14 change.
7136 * elf/dl-conflict.c (_dl_resolve_conflicts): Move
7137 #if ! ELF_MACHINE_NO_RELA conditional into the routine.
7138
7139 2003-04-05 Ulrich Drepper <drepper@redhat.com>
7140
7141 * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
7142
7143 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7144 Always initialize *signgamp before returning an error.
7145
7146 2003-04-05 Roland McGrath <roland@redhat.com>
7147
7148 * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
7149 below the stack pointer even if switching to the same context we are
7150 running right now.
7151
7152 2003-04-05 Ulrich Drepper <drepper@redhat.com>
7153
7154 * catgets/gencat.c (read_input_file): Make sure that \n is not
7155 alone on the line before testing for continuation.
7156
7157 * math/test-tgmath.c (compile_test): Initialize c.
7158
7159 2003-04-05 Alexandre Oliva <aoliva@redhat.com>
7160
7161 * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
7162 * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
7163 * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
7164 on mips n32.
7165 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
7166 XSTAT_IS_XSTAT64 must not be used for mips n64. Use 64-bit data
7167 structure on n32 as well.
7168 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
7169 data types on n32 and n64.
7170
7171 2003-04-05 Ulrich Drepper <drepper@redhat.com>
7172
7173 * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
7174 after getting them.
7175
7176 * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
7177 HAVE_register_atfork_malloc is defined use __register_atfork_malloc
7178 instead of __register_atfork.
7179
7180 2003-04-05 Jakub Jelinek <jakub@redhat.com>
7181
7182 * stdio-common/reg-printf.c (__register_printf_function): Calloc
7183 instead of malloc __printf_arginfo_table and __printf_function_table.
7184 Reported by John Reiser <jreiser@BitWagon.com>.
7185
7186 2003-04-04 Steven Munroe <sjmunroe@us.ibm.com>
7187
7188 * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
7189 * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
7190
7191 * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
7192 defining.
7193
7194 2003-04-04 Alexandre Oliva <aoliva@redhat.com>
7195
7196 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
7197 for n64 abi.
7198
7199 2003-04-03 Roland McGrath <roland@redhat.com>
7200
7201 * configure.in: Fix up use of compilation flags to match the build:
7202 For .s files, $ASFLAGS;
7203 For .S files, $CPPFLAGS $ASFLAGS;
7204 For .c files, $CFLAGS $CPPFLAGS;
7205 when linking, add $LDFLAGS.
7206 * configure: Regenerated.
7207
7208 2003-04-03 Jakub Jelinek <jakub@redhat.com>
7209
7210 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
7211 for atomic_compare_and_exchange_bool_acq failure.
7212
7213 2003-04-03 Ulrich Drepper <drepper@redhat.com>
7214
7215 * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
7216 _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
7217 _POSXI2_LOCALEDEF to 200112L. Remove _POSIX2_C_VERSION.
7218 Remove declaration of pthread_atfork.
7219
7220 2003-04-02 Ulrich Drepper <drepper@redhat.com>
7221
7222 * locale/iso-639.def: Add many more languages from the current ISO 639.
7223
7224 * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
7225 * sysdeps/generic/semtimedop.c: New file.
7226 * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
7227 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
7228 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7229 * sysvipc/Makefile (routines): Add semtimedop.
7230 * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
7231 * sysvipc/sys/sem.h: Declare semtimedop.
7232
7233 2003-04-02 Daniel Jacobowitz <drow@mvista.com>
7234
7235 * configure.in: Check for __register_frame_info in both
7236 -lgcc and -lgcc_eh.
7237 * configure: Regenerated.
7238
7239 2003-04-01 Roland McGrath <roland@redhat.com>
7240
7241 * scripts/abilist.awk: Allow dots in soname suffix.
7242
7243 * scripts/abilist.awk (emit): Fix bailout condition.
7244
7245 2003-04-01 Jakub Jelinek <jakub@redhat.com>
7246
7247 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
7248 IA-64 version.
7249
7250 * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
7251 register as input to asm.
7252
7253 2003-04-01 Jakub Jelinek <jakub@redhat.com>
7254
7255 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
7256
7257 2003-04-01 Andreas Jaeger <aj@suse.de>
7258
7259 * configure.in: Output as/ld as name if version is too old.
7260
7261 2003-03-31 Daniel Jacobowitz <drow@mvista.com>
7262
7263 * configure.in: Don't require an installed C library in the test
7264 for ".set" assembler support.
7265
7266 2003-03-31 Roland McGrath <roland@redhat.com>
7267
7268 * signal/tst-sigset.c: New file.
7269 * signal/Makefile (tests): Add it.
7270
7271 2003-03-31 Ulrich Drepper <drepper@redhat.com>
7272
7273 * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
7274 * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
7275 * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
7276 * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
7277 (__SIGRTMAX): Adjust accordingly.
7278 * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
7279 second compatibility symbol set.
7280 * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
7281
7282 2003-03-31 Andreas Schwab <schwab@suse.de>
7283
7284 * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
7285 Define.
7286 (atomic_decrement_and_test): Fix test.
7287
7288 2003-03-31 Jakub Jelinek <jakub@redhat.com>
7289
7290 * sysdeps/sparc/sparc32/bits/atomic.h: New file.
7291 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
7292 * sysdeps/sparc/sparc64/bits/atomic.h: New file.
7293 * sysdeps/sparc/sparc32/atomicity.h: Removed.
7294 * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
7295 * sysdeps/sparc/sparc64/atomicity.h: Removed.
7296
7297 2003-03-30 Roland McGrath <roland@redhat.com>
7298
7299 * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
7300
7301 * intl/po2test.sed: Anchor substitution regexps to fix last change.
7302
7303 2003-03-29 Paolo Bonzini <bonzini@gnu.org>
7304
7305 * intl/po2test.sed: Unify the transformations for msgid and msgstr
7306 and remove a useless s/// command.
7307
7308 2003-03-27 David Mosberger <davidm@hpl.hp.com>
7309
7310 * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
7311 directive into empty .prologue region to ensure that call-chain
7312 is terminated even for the first instruction.
7313
7314 * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
7315 to terminate call-chain right from the get-go.
7316
7317 * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
7318 stop bit between compare & branch.
7319
7320 2003-03-29 Ulrich Drepper <drepper@redhat.com>
7321
7322 * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
7323 point correctly [PR libc/4993].
7324
7325 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
7326 netlink_open calls if netlink is known to not be available.
7327
7328 2003-03-29 Alexandre Oliva <aoliva@redhat.com>
7329
7330 * configure.in: Add mips64* support.
7331 * sysdeps/mips/bits/endian.h: Make it bi-endian.
7332 * sysdeps/mips/mipsel/bits/endian.h: Removed.
7333 * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
7334 * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
7335 * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
7336 * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
7337 * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
7338 * sysdeps/mips/Implies: Moved wordsize-32 to...
7339 * sysdeps/mips/mips32/Implies: New file.
7340 * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
7341 ret_NOERRNO): New.
7342 (ret, PSEUDO_END): Moved past END.
7343 (PSEUDO): Moved to...
7344 * sysdeps/unix/mips/mips32/sysdep.h: New file.
7345 * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
7346 * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
7347 * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
7348 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
7349 * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
7350
7351 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
7352 Re-introduce ENTRY.
7353
7354 2003-03-28 Thorsten Kukuk <kukuk@suse.de>
7355
7356 * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
7357 * inet/test-ifaddrs.c: Allow AF_PACKET.
7358 * sysdeps/unix/sysv/linux/kernel-features.h: Add
7359 __ASSUME_NETLINK_SUPPORT.
7360
7361 2003-03-28 Ulrich Drepper <drepper@redhat.com>
7362
7363 * elf/vismain.c (do_test): Comment out tests which fail in the moment.
7364
7365 2003-03-26 H.J. Lu <hjl@gnu.org>
7366
7367 * elf/vismod.h (getvarlocal1): Return const char **.
7368 (getvarinmod1): Likewise.
7369 (getvaritcpt1): Likewise.
7370 (getvarlocal2): Likewise.
7371 (getvarinmod2): Likewise.
7372 (getvaritcpt2): Likewise.
7373 (getvaritcpt3): Likewise.
7374 * elf/vismain.c (do_test): Adjusted.
7375 * elf/vismod1.c (getvarlocal1): Return address.
7376 (getvarinmod1): Likewise.
7377 (getvaritcpt1): Likewise.
7378 * elf/vismod2.c (getvarlocal2): Likewise.
7379 (getvarinmod2): Likewise.
7380 (getvaritcpt2): Likewise.
7381 * elf/vismod3.c (getvaritcpt3): Likewise.
7382
7383 2003-03-28 Roland McGrath <roland@redhat.com>
7384
7385 * elf/vismain.c (do_test): Print both addresses when they don't match.
7386
7387 * scripts/abilist.awk: If given -v filename_regexp and/or -v
7388 libname_regexp when parsing names, then produce output only
7389 for those matching the given regexps. In combine mode, save all
7390 stanzas for a final sorting by stanza header at the end.
7391 Emit a blank line between stanzas.
7392
7393 * scripts/abilist.awk: When given -v combine=1, do parse_names and
7394 emit a single output stream with lib name in stanza header lines.
7395
7396 * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
7397
7398 2003-03-27 Roland McGrath <roland@redhat.com>
7399
7400 * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
7401 (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
7402
7403 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7404
7405 * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
7406 Return old value. Make asm output reg constraint earlyclobber.
7407 Renamed from...
7408 (__arch_compare_and_exchange_8_acq): ... this.
7409 (__arch_compare_and_exchange_val_16_acq):
7410 Return old value. Make asm output reg constraint earlyclobber.
7411 Renamed from...
7412 (__arch_compare_and_exchange_16_acq): ... this.
7413 (__arch_compare_and_exchange_val_32_acq):
7414 Return old value. Make asm output reg constraint earlyclobber.
7415 Renamed from...
7416 (__arch_compare_and_exchange_32_acq): ... this.
7417 (__arch_compare_and_exchange_val_64_acq):
7418 Renamed from...
7419 (__arch_compare_and_exchange_64_acq): ... this.
7420 (atomic_exchange_and_add): Use local variables and
7421 __arch_compare_and_exchange_val_64_acq.
7422 (atomic_add): Likewise.
7423 (atomic_add_negative, atomic_add_zero): Use local variables.
7424
7425 2003-03-28 Alexandre Oliva <aoliva@redhat.com>
7426
7427 * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
7428
7429 2003-03-27 Ulrich Drepper <drepper@redhat.com>
7430
7431 * Makefile: Remove libmd5crypt goal.
7432
7433 2003-03-25 Jakub Jelinek <jakub@redhat.com>
7434
7435 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
7436 special handling of relocations against local symbols.
7437
7438 2003-03-27 Steven Munroe <sjmunroe@us.ibm.com>
7439
7440 * sysdeps/powerpc/bits/atomic.h
7441 (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
7442 [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
7443 Define PPC64 specific version.
7444 [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
7445 Change (mem) constraint to "b".
7446 [__powerpc64__] (__arch_atomic_exchange_and add_64):
7447 Replace addi with add. Change (value) contraint to "r".
7448 Change (mem) constraint to "b".
7449 [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
7450 (__arch_atomic_exchange_32): Change (mem) constraint to "b".
7451 (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
7452 (__arch_atomic_decrement_if_positive_32): New macro.
7453 (atomic_decrement_if_positive): Use __arch* macros.
7454
7455 2003-03-27 Jakub Jelinek <jakub@redhat.com>
7456
7457 * sysdeps/ia64/fpu/libm-test-ulps: Update.
7458
7459 2003-03-27 Roland McGrath <roland@redhat.com>
7460
7461 * scripts/rpm2dynsym.sh: New file.
7462 * Makefile (distribute): Add it.
7463
7464 2003-03-27 David Mosberger <davidm@hpl.hp.com>
7465
7466 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
7467 ar.unat before returning. Add missing .mem.offset directives
7468 to ensure file gets assembled without warnings.
7469 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
7470
7471 2003-03-27 Jakub Jelinek <jakub@redhat.com>
7472
7473 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
7474 Return -1 instead of 0 if clock_getres failed.
7475
7476 2003-03-27 Roland McGrath <roland@redhat.com>
7477
7478 * scripts/abilist.awk: If variable `parse_names' is set, grok the file
7479 header lines and write out foo.symlist files for each foo.so.NN listed.
7480
7481 * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
7482 This symbol is exported, and we don't want to hide it.
7483 Add libc_hidden_proto instead.
7484 (_IO_file_jumps): Add libc_hidden_proto.
7485 * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
7486 Remove INTVARDEF.
7487 * libio/fileops.c (_IO_file_jumps): Likewise.
7488 * libio/stdfiles.c: Don't use INTUSE on them.
7489 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
7490 * libio/iofopen.c (__fopen_internal): Likewise.
7491 * libio/freopen.c (freopen): Likewise.
7492 * libio/freopen64.c (freopen64): Likewise.
7493 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
7494
7495 * Makerules (check-abi) [$(enable-check-abi) = warn]:
7496 Ignore exit status from diff.
7497 * configure.in (enable_check_abi): Document possible value "warn".
7498 Change default to no for now.
7499 * configure: Regenerated.
7500
7501 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
7502 macro calls and a #include <stub-tag.h> at the end.
7503 * Makerules ($(objpfx)stubs): Tweak sed commands.
7504
7505 * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
7506 caller column for *xattr syscalls, since they are in sysdeps/generic.
7507
7508 * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
7509 * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
7510
7511 2003-03-26 Roland McGrath <roland@redhat.com>
7512
7513 * Makerules (check-abi-config): Use /thread instead of /tls when
7514 use-thread and not just use-tls is set.
7515
7516 * Makerules (update-abi): Put quotes around $(update-abi-config).
7517
7518 * elf/Makefile (check-abi): Depend on check-abi-ld.
7519 (update-abi): Depend on update-abi-ld.
7520
7521 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
7522
7523 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
7524 do not check for errors (unless testing for 32bit variant).
7525 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
7526
7527 2003-03-27 Philip Blundell <philb@gnu.org>
7528
7529 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
7530 unconditional mov. Remove nop.
7531
7532 * sysdeps/unix/sysv/linux/kernel-features.h
7533 (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
7534 * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
7535 when __ASSUME_VFORK_SYSCALL is defined.
7536 * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
7537 __ASSUME_MMAP2_SYSCALL.
7538 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
7539 __ASSUME_REALTIME_SIGNALS.
7540
7541 2003-03-26 Ulrich Drepper <drepper@redhat.com>
7542
7543 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
7544 only if DL_NO_COPY_RELOCS is not defined.
7545 * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
7546
7547 2003-03-26 Roland McGrath <roland@redhat.com>
7548
7549 * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
7550 SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
7551 * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
7552 (sysdep_routines): Add stub-syscalls.
7553 ($(objpfx)stub-syscalls.c): New target.
7554 (generated): Add stub-syscalls.c.
7555
7556 * tls.make.c: Also define use-tls according to USE_TLS macro.
7557
7558 2003-03-26 Ulrich Drepper <drepper@redhat.com>
7559
7560 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
7561 no-op padding element.
7562 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
7563 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
7564 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
7565 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
7566
7567 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
7568
7569 * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
7570 condition check for the return value of getgroups32.
7571
7572 2003-03-26 Jakub Jelinek <jakub@redhat.com>
7573
7574 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
7575 Fix a typo.
7576 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
7577 PSEUDO_END_NOERRNO): Define.
7578 * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
7579 Define to PSEUDO_END.
7580
7581 2003-03-26 Ulrich Drepper <drepper@redhat.com>
7582
7583 * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
7584
7585 2003-03-25 Jiro SEKIBA <jir@yamato.ibm.com>
7586
7587 * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
7588 * iconvdata/bug-iconv4.c: New file.
7589 * iconvdata/Makefile (tests): Add bug-iconv4.
7590
7591 2003-03-25 H.J. Lu <hjl@gnu.org>
7592
7593 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
7594 symbols twice.
7595 (_dl_lookup_versioned_symbol): Likewise.
7596
7597 2003-03-26 Jakub Jelinek <jakub@redhat.com>
7598
7599 * csu/tst-atomic.c (do_test): Add some new
7600 atomic_compare_and_exchange_val_acq, atomic_add_zero,
7601 atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
7602 * include/atomic.h (atomic_add_negative, atomic_add_zero):
7603 Prefix local variable so that it doesn't clash with the one
7604 in atomic_exchange_and_add.
7605 * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
7606 pointers.
7607 (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
7608 * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
7609 value into register.
7610 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
7611 Cast newval to long.
7612 * sysdeps/x86_64/bits/atomic.h
7613 (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
7614 long.
7615 (atomic_exchange): Cast newvalue to long if sizeof == 8.
7616 (atomic_exchange_and_add): Cast value to long if sizeof == 8.
7617 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
7618 (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
7619
7620 2003-03-21 Martin Schwidefsky <schwidefskyde.ibm.com>
7621
7622 * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
7623 bit from backtrace addresses.
7624
7625 2003-03-21 Andreas Schwab <schwab@suse.de>
7626
7627 * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
7628 __chown symbols.
7629
7630 2003-03-25 Roland McGrath <roland@redhat.com>
7631
7632 * config.make.in (enable-check-abi): New variable from configure.
7633 * configure.in (enable_check_abi): New substituted variable,
7634 controlled by --{enable,disable}-check-abi (default yes).
7635 * configure: Regenerated.
7636 * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
7637 on check-abi dependency.
7638
7639 2003-03-26 Andreas Schwab <schwab@suse.de>
7640
7641 * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
7642 * include/atomic.h: Likewise.
7643
7644 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
7645
7646 2003-03-25 Roland McGrath <roland@redhat.com>
7647
7648 * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
7649 (__arch_atomic_exchange_64): New macro.
7650 (atomic_exchange): Use them.
7651 (__arch_atomic_exchange_and_add_32): New macro.
7652 (__arch_atomic_exchange_and_add_64): New macro.
7653 (atomic_exchange_and_add): Use them.
7654 Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
7655
7656 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
7657
7658 * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
7659 Define.
7660 * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
7661 ISA tests.
7662 (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
7663 (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
7664 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
7665 to decide whether to add padding.
7666 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
7667 to decide whether to add padding.
7668 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
7669 old_kernel_sigaction): Likewise.
7670
7671 2003-03-25 Ulrich Drepper <drepper@redhat.com>
7672
7673 * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
7674 atomic_add_zero were supposed to do.
7675 * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
7676 to x86 behavior.
7677
7678 * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
7679 This matches the new timer implementation.
7680 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
7681 Likewise.
7682 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
7683 Likewise.
7684 * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
7685 timer info for what the kernel provides these days.
7686 (struct sigevent): Add _tid field.
7687 Define SIGEV_THREAD_ID.
7688 Remove struct __pthread_attr_s forward declaration.
7689 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
7690 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
7691 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
7692 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
7693
7694 * Versions.def (librt): Add GLIBC_2.3.3.
7695
7696 * abilist/libpthread.abilist: Update for nptl.
7697
7698 2003-03-24 Jon Grimm <jgrimm@us.ibm.com>
7699
7700 * inet/netinet/in.h: Add IPPROTO_SCTP.
7701
7702 2003-03-24 Ulrich Drepper <drepper@redhat.com>
7703
7704 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
7705
7706 2003-03-24 Philip Blundell <philb@gnu.org>
7707
7708 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
7709 Remove a1 from clobber list.
7710
7711 2003-03-24 Ulrich Drepper <drepper@redhat.com>
7712
7713 * timezone/antarctica: Update from tzdata2003a.
7714 * timezone/asia: Likewise.
7715 * timezone/australasia: Likewise.
7716 * timezone/europe: Likewise.
7717 * timezone/iso3166.tab: Likewise.
7718 * timezone/northamerica: Likewise.
7719 * timezone/southamerica: Likewise.
7720 * timezone/zone.tab: Likewise.
7721
7722 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
7723
7724 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
7725
7726 2003-03-23 Ulrich Drepper <drepper@redhat.com>
7727
7728 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
7729 unwanted expansion by definining to ret. Patch by Ian Wienand.
7730
7731 * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
7732 the parameter description to denote no error checking. Generate
7733 appropriate pseudo asm code.
7734 * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
7735 * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
7736 getpgrp, and getppid with 'E'.
7737 * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
7738 PSEUDO_END_NOERRNO, and ret_NOERRNO.
7739 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
7740 * sysdeps/unix/sysdep.h: Likewise.
7741 * sysdeps/unix/alpha/sysdep.h: Likewise.
7742 * sysdeps/unix/sparc/sysdep.h: Likewise.
7743 * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
7744 * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
7745 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
7746 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
7747 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
7748 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
7749 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
7750 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
7751 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
7752 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
7753 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7754
7755 2003-03-23 Roland McGrath <roland@redhat.com>
7756
7757 * Makeconfig (+includes): Don't use $(last-includes).
7758
7759 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
7760
7761 * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
7762 * sysdeps/unix/sysv/linux/configure: Rebuilt.
7763
7764 2003-03-23 Jakub Jelinek <jakub@redhat.com>
7765
7766 * sysdeps/alpha/fpu/libm-test-ulps: Update.
7767 * sysdeps/arm/libm-test-ulps: Update.
7768 * sysdeps/hppa/fpu/libm-test-ulps: Update.
7769 * sysdeps/ia64/fpu/libm-test-ulps: Update.
7770 * sysdeps/mips/fpu/libm-test-ulps: Update.
7771 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
7772 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7773 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
7774 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
7775 * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
7776 * sysdeps/s390/fpu/libm-test-ulps: Update.
7777 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7778
7779 2003-03-22 Roland McGrath <roland@redhat.com>
7780
7781 * include/atomic.h: Put parens around all macro arguments.
7782 (__atomic_val_bysize, __atomic_bool_bysize): New macros.
7783 (atomic_compare_and_exchange_val_acq): Use it.
7784 (atomic_compare_and_exchange_bool_acq): Likewise.
7785 (atomic_increment_and_test): Invert sense of test.
7786 (atomic_decrement_and_test): Likewise.
7787 * csu/tst-atomic.c: Update those tests to match.
7788
7789 2003-03-22 Jakub Jelinek <jakub@redhat.com>
7790
7791 * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
7792 Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
7793 (atomic_compare_and_exchange_bool_acq): Add comment. Don't use
7794 __oldval variable in the macro, since it might be macro argument.
7795 (atomic_decrement_if_positive): Initialize __memp, remove setting
7796 of non-existent variable.
7797 (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
7798 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
7799 using atomic_compare_and_exchange_val_acq.
7800 (atomic_decrement_if_positive, atomic_bit_test_set): Define.
7801 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
7802 Renamed from...
7803 (__arch_compare_and_exchange_bool_8_acq): ... this.
7804 (__arch_compare_and_exchange_val_16_acq): Renamed from...
7805 (__arch_compare_and_exchange_bool_16_acq): ... this.
7806 (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed
7807 from...
7808 (__arch_compare_and_exchange_bool_32_acq): ... this.
7809 (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed
7810 from...
7811 (__arch_compare_and_exchange_bool_64_acq): ... this.
7812 (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
7813 variables types instead of assuming int.
7814 Change prefix of local variables to __arch.
7815 * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
7816 Remove.
7817 (atomic_compare_and_exchange_val_acq,
7818 atomic_compare_and_exchange_bool_acq): Define.
7819
7820 * csu/tst-atomic.c: New test.
7821 * csu/tst-atomic-long.c: New test.
7822 * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
7823
7824 * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
7825
7826 * sysdeps/s390/Versions: Add trailing newline.
7827
7828 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
7829 if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
7830
7831 2003-03-22 Andreas Schwab <schwab@suse.de>
7832
7833 * sysdeps/m68k/fpu/libm-test-ulps: Update.
7834
7835 * sysdeps/m68k/m68020/bits/atomic.h: New file.
7836 * sysdeps/m68k/m68020/atomicity.h: Removed.
7837
7838 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
7839
7840 * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
7841 data structures and macros. Protect from multiple inclusion.
7842
7843 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
7844 typo in #if test.
7845
7846 2003-03-21 Andreas Jaeger <aj@suse.de>
7847
7848 * sysdeps/i386/fpu/libm-test-ulps: Update.
7849
7850 * math/libm-test.inc (tgamma_test): Recompute some constants with
7851 36 digits precision.
7852 (lgamma_test): Likewise.
7853 (ccos_test): Likewise.
7854 (ccosh_test): Likewise.
7855 (clog10_test): Likewise.
7856 (csin_test): Likewise.
7857 (csinh_test): Likewise.
7858 (ctan_test): Likewise.
7859 (ctanh_test): Likewise.
7860
7861 2003-03-19 Jakub Jelinek <jakub@redhat.com>
7862
7863 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
7864
7865 2003-03-21 Roland McGrath <roland@redhat.com>
7866
7867 * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
7868 constraint to permit non-constant BIT argument.
7869 (atomic_bit_test_set): Likewise.
7870 * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
7871 (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32.
7872 For quadword case, use "i" constraint if __builtin_constant_p and < 32
7873 or "r" constraint otherwise.
7874
7875 * configure.in: Move AC_PROG_CC and other program-finding before all
7876 the version checks.
7877 * configure: Regenerated.
7878
7879 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
7880
7881 * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
7882 unaligned copying of 8-15 bytes. From Chris Demetriou
7883 <cgd@broadcom.com>. Fix label names.
7884 * sysdeps/mips/mips64/memset.S: Fix label names. Make similar
7885 change as to memcpy.S.
7886 * sysdeps/mips/memcpy.S: Formatting changes.
7887 * sysdeps/mips/memset.S: Likewise.
7888
7889 2003-03-21 Roland McGrath <roland@redhat.com>
7890
7891 * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
7892
7893 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
7894
7895 * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
7896 * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
7897
7898 2003-03-21 Roland McGrath <roland@redhat.com>
7899
7900 * sysdeps/i386/i486/bits/atomic.h
7901 (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
7902 version of the macro to avoid compile-time warnings.
7903 [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
7904 (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
7905 (atomic_increment, atomic_decrement): Likewise.
7906
7907 2003-03-21 Ulrich Drepper <drepper@redhat.com>
7908
7909 * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
7910 * sysdeps/i386/i486/bits/atomic.h: Likewise.
7911
7912 2003-03-21 Roland McGrath <roland@redhat.com>
7913
7914 * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
7915
7916 2003-03-20 Ulrich Drepper <drepper@redhat.com>
7917
7918 * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
7919 atomic_compare_and_exchange_val_rel,
7920 atomic_compare_and_exchange_bool_acq, and
7921 atomic_compare_and_exchange_bool_rel instead of
7922 atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
7923 * sysdeps/i386/i486/bits/atomic.h: Define
7924 __arch_compare_and_exchange_val_*_acq instead of
7925 __arch_compare_and_exchange_*_acq.
7926 * sysdeps/x86_64/bits/atomic.h: Likewise.
7927 * sysdeps/ia64/bits/atomic.h: Define
7928 __arch_compare_and_exchange_bool_*_acq instead of
7929 __arch_compare_and_exchange_*_acq.
7930 * sysdeps/powerpc/bits/atomic.h: Likewise.
7931 * sysdeps/s390/bits/atomic.h: Likewise.
7932 * gmon/mcount.c: Adjust for new form of compare&exchange macros.
7933 * malloc/set-freeres.c: Likewise.
7934 * nscd/cache.c: Likewise.
7935 * stdlib/cxa_finalize.c: Likewise.
7936 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
7937
7938 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
7939
7940 * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
7941 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
7942 * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
7943
7944 * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
7945 into high and low halves on n64.
7946 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
7947 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
7948 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
7949
7950 2003-03-20 Ulrich Drepper <drepper@redhat.com>
7951
7952 * include/atomic.h (atomic_decrement_if_positive): Adjust for the
7953 correct atomic_compare_and_exchange_acq semantics.
7954
7955 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
7956
7957 * sysdeps/mips/ieee754.h: Remove excess #endif.
7958
7959 2003-03-20 Roland McGrath <roland@redhat.com>
7960
7961 * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
7962 variable. Remove superfluous memory clobber.
7963
7964 * include/atomic.h: Syntax braino fix.
7965
7966 * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
7967 in decimal. Don't bail if niced at start. Just check that nice call
7968 bumps the total at all.
7969
7970 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
7971
7972 * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
7973 including pc, gp, sp and fp, as long long.
7974 * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
7975 * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
7976 Add gp argument, and set gp in the jmpbuf to it.
7977 * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
7978
7979 2003-03-20 Ulrich Drepper <drepper@redhat.com>
7980
7981 * include/atomic.h: Define atomic_exchange and
7982 atomic_decrement_if_positive if not already defined. Add some
7983 __builtin_expect.
7984 * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
7985 * sysdeps/x86_64/bits/atomic.h: Likewise.
7986 * sysdeps/ia64/bits/atomic.h: Pretty printing. Define atomic_exchange.
7987 * sysdeps/powerpc/bits/atomic.h: Pretty printing. Define
7988 atomic_exchange, atomic_exchange_and_add, and
7989 atomic_decrement_if_positive
7990
7991 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
7992
7993 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
7994 with a single instruction.
7995
7996 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
7997 properly for n64.
7998 (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
7999 type.
8000 (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
8001 Word before comparing with gotsym. Take reloc_addr argument as
8002 void*. Remove the code added for the compiler to drop any
8003 alignment assumptions.
8004
8005 2003-03-19 Ulrich Drepper <drepper@redhat.com>
8006
8007 * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
8008 * include/atomic.h: New file.
8009 * sysdeps/i386/i486/bits/atomic.h: New file.
8010 * sysdeps/x86_64/bits/atomic.h: New file.
8011 * sysdeps/s390/bits/atomic.h: New file.
8012 * sysdeps/sh/bits/atomic.h: New file.
8013 * sysdeps/ia64/bits/atomic.h: New file.
8014 * sysdeps/powerpc/bits/atomic.h: New file.
8015 * sysdeps/generic/bits/atomic.h: New file.
8016 * sysdeps/i386/i486/atomicity.h: Removed.
8017 * sysdeps/x86_64/atomicity.h: Removed.
8018 * sysdeps/s390/s390-32/atomicity.h: Removed.
8019 * sysdeps/s390/s390-64/atomicity.h: Removed.
8020 * sysdeps/ia64/atomicity.h: Removed.
8021 * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
8022 * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
8023 * elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust
8024 use of macros from atomicity.h to new names and semantics.
8025 * gmon_mcount.c: Likewise.
8026 * malloc/set-freeres.c: Likewise.
8027 * nscd/cache.c: Likewise.
8028 * stdlib/cxa_finalize.c: Likewise.
8029 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
8030
8031 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
8032
8033 * sysdeps/mips/ieee754.h: New file, suitable to replace both
8034 ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
8035 mips-specific for now.
8036
8037 2003-03-19 Ulrich Drepper <drepper@redhat.com>
8038
8039 * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
8040 hexdigits correctly. Reported by Fred Tydeman <tydeman@tybor.com>.
8041 * stdlib/tst-strtod.c: Add test for the bug.
8042
8043 * posix/tst-nice.c (do_test): Remove invalid of return value.
8044 Don't run test if initial level != 0.
8045
8046 2003-03-19 Amos Waterland <apw@us.ibm.com>
8047
8048 * posix/tst-nice.c: New file.
8049 * posix/Makefile (tests): Add tst-nice.
8050
8051 2003-03-18 Roland McGrath <roland@redhat.com>
8052
8053 * abilist: New directory of libfoo.abilist files maintained using
8054 scripts/merge-abilist.awk and "make update-abi" rules.
8055 * Makefile (distribute): Add abilist/*.abilist.
8056 * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
8057 Depend on check-abi.
8058
8059 * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
8060 * configure: Regenerated.
8061
8062 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
8063
8064 2003-03-18 Ulrich Drepper <drepper@redhat.com>
8065
8066 * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
8067 correctly.
8068
8069 2003-03-18 Steven Munroe <sjmunroe@us.ibm.com>
8070
8071 * sysdeps/powerpc/powerpc64/memcpy.S: New file.
8072
8073 2003-03-18 Ulrich Drepper <drepper@redhat.com>
8074
8075 * Versions.def: Add GLIBC_2.3.3 for libpthread.
8076
8077 2003-03-17 Ulrich Drepper <drepper@redhat.com>
8078
8079 * sysdeps/generic/libc-start.c [!SHARED &&
8080 !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
8081
8082 2003-03-17 Roland McGrath <roland@redhat.com>
8083
8084 * include/ctype.h: Revert last change.
8085
8086 2003-03-17 Ulrich Drepper <drepper@redhat.com>
8087
8088 * argp/tst-argp1.c: Use test-skeleton.c.
8089 * locale/tst-C-locale.c: Likewise.
8090
8091 2003-03-17 Alexandre Oliva <aoliva@redhat.com>
8092
8093 * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
8094 * sysdeps/mips/mips64/n64/Implies: New file.
8095 * sysdeps/mips/mips64/n64/Makefile: New file.
8096 * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
8097 * sysdeps/mips/mips64/n32/Implies: New file.
8098 * sysdeps/mips/mips64/n32/Makefile: New file.
8099 * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
8100 * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
8101 * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
8102 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
8103 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
8104 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
8105 * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
8106 * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
8107 * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
8108 * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
8109 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
8110 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
8111 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
8112 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
8113
8114 * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
8115 lib64 for mips64/n64 and lib32 for mips64/n32.
8116 (ldd_rewrite_script): Needed for all mips64 configurations.
8117 * sysdeps/unix/sysv/linux/configure: Rebuilt.
8118 * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
8119 * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
8120
8121 * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
8122 well.
8123
8124 * sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
8125 asm/unistd.h into asm-unistd.h.
8126 * sysdeps/unix/sysv/linux/mips/configure: Generated.
8127 * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
8128 of syscall list.
8129 * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
8130 * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
8131 asm/unistd.h.
8132
8133 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
8134 * sysdeps/unix/sysv/linux/mips/ptrace.c: New file. Use long
8135 long type for registers on n32.
8136
8137 * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
8138 3 ABIs.
8139 * sysdeps/mips/mips64/gmp-mparam.h: New file. Define
8140 BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
8141 * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
8142 (__sigsetjmp_aux): Use them. Adjust for all 3 ABIs.
8143 * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
8144 * sysdeps/unix/mips/brk.S: Likewise.
8145 * sysdeps/unix/mips/sysdep.S: Likewise.
8146 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
8147 * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
8148 * sysdeps/mips/sys/ucontext.h: Likewise.
8149 * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
8150 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
8151 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
8152 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
8153 * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
8154 * sysdeps/mips/mips64/setjmp.S: Likewise.
8155 * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
8156 * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
8157 64-bit types.
8158
8159 2003-03-16 Ulrich Drepper <drepper@redhat.com>
8160
8161 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
8162 not at function level.
8163 * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
8164
8165 2003-03-15 Roland McGrath <roland@redhat.com>
8166
8167 * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
8168 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
8169 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
8170 * nis/nis_table.c (__create_ib_request): Likewise.
8171
8172 * posix/fnmatch_loop.c: Add casts for signedness.
8173 * nss/nss_files/files-hosts.c: Likewise.
8174 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8175 * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
8176 * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
8177
8178 * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
8179 get errors into the log file.
8180 (libc_cv_broken_visibility_attribute): Likewise.
8181 (libc_cv_broken_alias_attribute): Likewise.
8182 (libc_cv_asm_weak_directive): Likewise.
8183 (libc_cv_need_minus_P): Likewise.
8184 (libc_cv_dot_text): Likewise.
8185 (libc_cv_asm_global_directive): Likewise.
8186 (libc_cv_asm_type_prefix): Likewise.
8187 * configure: Regenerated.
8188
8189 * nscd/cache.c (cache_search): Give first arg type `request_type'.
8190 * nscd/nscd.h: Update decl.
8191
8192 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
8193 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8194 * elf/dl-close.c (_dl_close): Likewise.
8195 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
8196 * io/fts.c (fts_build): Likewise.
8197 * elf/cache.c (add_to_cache): Likewise.
8198 * locale/programs/locarchive.c (show_archive_content): Likewise.
8199
8200 * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
8201
8202 * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
8203 happy.
8204 (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
8205
8206 2003-03-15 Ulrich Drepper <drepper@redhat.com>
8207
8208 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
8209 code for most parts.
8210
8211 2003-03-15 Roland McGrath <roland@redhat.com>
8212
8213 * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
8214 * sysdeps/unix/sysv/linux/system.c: ... here.
8215 (FORK): Don't #define if already #define'd.
8216 * sysdeps/unix/sysv/linux/s390/system.c: File removed.
8217 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
8218 (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
8219
8220 * dlfcn/tst-dlinfo.c: New file.
8221 * dlfcn/Makefile (tests): Add tst-dlinfo.
8222 ($(objpfx)tst-dlinfo): New target.
8223
8224 * dlfcn/dlinfo.c: New file.
8225 * dlfcn/Makefile (libdl-routines): Add it.
8226 * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
8227 * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
8228 [__USE_GNU] (RTLD_DI_*): New enum constants.
8229 [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
8230 * elf/dl-load.c (cache_rpath): New inline function.
8231 (_dl_map_object): Use it.
8232 (_dl_rtld_di_serinfo): New function.
8233 * sysdeps/generic/ldsodefs.h: Declare it.
8234 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
8235
8236 * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
8237 (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
8238 (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
8239 (__libc_start_main): Just call the generic one for most of the work.
8240
8241 * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
8242 static function by that name instead of BP_SYM (__libc_start_main).
8243 [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
8244 [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
8245 [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
8246
8247 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
8248 Use this macro for extra AT_* cases.
8249 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
8250 New macro, guts from ...
8251 (__aux_init_cache): ... here, function removed.
8252 (DL_PLATFORM_INIT): Don't define this.
8253
8254 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
8255 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
8256
8257 * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
8258
8259 2003-03-14 Roland McGrath <roland@redhat.com>
8260
8261 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
8262
8263 2003-03-14 Jakub Jelinek <jakub@redhat.com>
8264
8265 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
8266
8267 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
8268 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
8269
8270 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
8271
8272 * sysdeps/mips/fpu/bits/mathdef.h: New.
8273 (__NO_LONG_DOUBLE_MATH): Define for o32.
8274
8275 * sysdeps/mips/sys/asm.h: Formatting changes.
8276 (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
8277 (CPADD): Define for all of them.
8278 (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
8279 SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
8280 NARGSAVE): Define per ABI spec.
8281 (END): Don't redefine.
8282 (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
8283 LONG_SRAV): Remove duplicate definitions.
8284 (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
8285 PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
8286 PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
8287 (PTR_LA): Define for all 3 ABIs.
8288
8289 * sysdeps/mips/dl-machine.h: Include sys/asm.h.
8290 (elf_machine_matches_host): Prevent linking of o32 and n32
8291 together.
8292 (elf_machine_dynamic): Document assumption on $gp.
8293 (STRINGXP, STRINGXV, STRINGV_): New macros.
8294 (elf_machine_load_address): Use them to stringize PTR_LA and
8295 PTR_SUBU.
8296 (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
8297 ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
8298 (_dl_runtime_resolve): Adjust it for all 3 ABIs.
8299 (__dl_runtime_resolve): Cast the symtab initializer to the
8300 right type.
8301 (RTLD_START): Use it. Adjust it for all 3 ABIs.
8302 (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
8303 Handle 64-bit R_MIPS_REL composite relocation and accept
8304 R_MIPS_64 relocations to shift addend size to 64 bits.
8305 Document assumption regarding local GOT entries. Document
8306 backward-compatibility departing from the ABI behavior in
8307 applying relocations that reference section symbols, no longer
8308 used. Support relocations to mis-aligned offsets.
8309 * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
8310
8311 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
8312
8313 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
8314 (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
8315 * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
8316 restore_rt functions. Use them.
8317
8318 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
8319 .set mips2 on new abis.
8320
8321 2003-03-13 Ulrich Drepper <drepper@redhat.com>
8322
8323 * posix/getconf.c: Recognize POSIX2_SYMLINKS.
8324 * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
8325 * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
8326 * sysdeps/posix/pathconf.c: Likewise.
8327 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
8328 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
8329 * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
8330
8331 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
8332 words.
8333
8334 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
8335
8336 * include/gmp.h: Include/gmp-mparam.h.
8337 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
8338 gmp-impl.h.
8339
8340 * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
8341 ELF_MACHINE_NO_RELA is set.
8342 * elf/rtld.c (dl_main): No prelink support for REL-only.
8343
8344 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
8345 FLAG_MIPS64_LIBN64): Define.
8346 * elf/cache.c (print_entry): Handle mips64 n32 and n64.
8347
8348 * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
8349 * sysdeps/mips/memset.S: Likewise.
8350 * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
8351 depending on the ABI.
8352
8353 * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
8354 Don't .set mips2 on new abi.
8355 (compare_and_swap): Likewise. Support 64-bit longs on n64.
8356
8357 * stdlib/fpioconst.h: Include gmp.h with angle brackets.
8358
8359 2003-03-13 Roland McGrath <roland@redhat.com>
8360
8361 * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
8362 found. Reported by Alexandre Oliva <aoliva@redhat.com>.
8363
8364 2003-03-13 Alexandre Oliva <aoliva@redhat.com>
8365
8366 * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
8367 literals long long.
8368 * stdlib/fpioconst.c: Likewise.
8369 * stdlib/strtod.c: Likewise.
8370
8371 * sysdeps/mips/add_n.S: Use L macro for local labels.
8372 * sysdeps/mips/addmul_1.S: Likewise.
8373 * sysdeps/mips/lshift.S: Likewise.
8374 * sysdeps/mips/memcpy.S: Likewise.
8375 * sysdeps/mips/memset.S: Likewise.
8376 * sysdeps/mips/mul_1.S: Likewise.
8377 * sysdeps/mips/rshift.S: Likewise.
8378 * sysdeps/mips/sub_n.S: Likewise.
8379 * sysdeps/mips/submul_1.S: Likewise.
8380 * sysdeps/mips/mips64/add_n.S: Likewise.
8381 * sysdeps/mips/mips64/addmul_1.S: Likewise.
8382 * sysdeps/mips/mips64/lshift.S: Likewise.
8383 * sysdeps/mips/mips64/mul_1.S: Likewise.
8384 * sysdeps/mips/mips64/rshift.S: Likewise.
8385 * sysdeps/mips/mips64/sub_n.S: Likewise.
8386 * sysdeps/mips/mips64/submul_1.S: Likewise.
8387 * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
8388 conventions. Define END as in sys/asm.h.
8389 * sysdeps/unix/mips/sysdep.S: Likewise.
8390 * sysdeps/unix/mips/wait.S: Likewise.
8391 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
8392
8393 * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
8394 Cast shifted values that may be too narrow to mp_limb_t.
8395 * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
8396 Likewise.
8397 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
8398 Likewise.
8399 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
8400 (__mpn_extract_long_double): Likewise.
8401 * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
8402 (__mpn_construct_long_double): Likewise.
8403 * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
8404 (__mpn_extract_long_double): Likewise.
8405 * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
8406 (__mpn_construct_long_double): Likewise.
8407
8408 2003-03-13 Roland McGrath <roland@redhat.com>
8409
8410 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
8411 entries in the map file match too.
8412
8413 2003-03-13 Guido Guenther <agx@sigxcpu.org>
8414
8415 * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
8416 label .Lthread_start since current binutils don't allow branches
8417 to globally visible symbols.
8418
8419 2003-03-13 Jakub Jelinek <jakub@redhat.com>
8420
8421 * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
8422 ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
8423 ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
8424 (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments
8425 clobbered by the syscall.
8426 (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
8427 ASM_ARGS_6): Change constraints from r to index of corresponding
8428 output register.
8429 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
8430 ptid and ctid to match kernel.
8431 * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
8432
8433 2003-03-12 Steven Munroe <sjmunroe@us.ibm.com>
8434
8435 * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
8436 AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64.
8437 * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
8438
8439 2003-03-11 Roland McGrath <roland@redhat.com>
8440
8441 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
8442 Check SYM_MAP rather than SYM as definedness check.
8443 Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
8444 Don't handle R_PPC64_REL24 reloc.
8445 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
8446
8447 * sysdeps/powerpc/powerpc64/dl-machine.h
8448 [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
8449 block, so we cover all the TPREL16* flavors without 6 ||s.
8450 [USE_TLS] (elf_machine_tprel): New function.
8451 (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
8452 and handle TPREL16 relocs too. Return rather than break for DTPREL64.
8453 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
8454
8455 2003-03-11 Ralf Baechle <ralf@linux-mips.org>
8456
8457 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
8458 instead of jalr to invoke subroutine so restoring the $gp register
8459 will work properly.
8460
8461 2003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
8462
8463 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
8464 to __NR_pread if not defined.
8465 (__NR_pwrite64): Define to __NR_pwrite if not defined.
8466
8467 2003-03-11 Jakub Jelinek <jakub@redhat.com>
8468
8469 * sysdeps/unix/sysv/linux/ia64/system.c: New file.
8470 * sysdeps/unix/sysv/linux/kernel-features.h
8471 (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
8472 kernel >= 2.5.64.
8473
8474 2003-03-11 Jakub Jelinek <jakub@redhat.com>
8475
8476 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
8477 allocate space even for the trailing '/'.
8478 Reported by John Reiser <jreiser@BitWagon.com>.
8479
8480 * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
8481 ASM_CLOBBERS_6): Define.
8482 (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
8483 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
8484 to match IA-32 order.
8485 * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
8486
8487 2003-03-10 Steven Munroe <sjmunroe@us.ibm.com>
8488
8489 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
8490 Copy extra params for NPTL to registers used in clone syscall.
8491
8492 2003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
8493
8494 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
8495 call names for pread and pwrite.
8496
8497 2003-03-10 Roland McGrath <roland@redhat.com>
8498
8499 * dlfcn/Makefile (libdl-routines): Add dladdr1.
8500 * dlfcn/dladdr1.c: New file.
8501 * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
8502 [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
8503 * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
8504 a const ElfNN_Sym ** to fill in.
8505 * include/dlfcn.h: Update decl. Include <link.h>.
8506 * dlfcn/dladdr.c (dladdr): Update caller.
8507 * malloc/mtrace.c (tr_where): Likewise.
8508 * sysdeps/generic/elf/backtracesyms.c: Likewise.
8509 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
8510 * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
8511 * Versions.def (libdl): Define GLIBC_2.3.3 set.
8512
8513 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
8514 assembler command.
8515 * sysdeps/unix/Makefile (compile-syscall): New variable.
8516 Pass -g0 to compiler for assembling syscall stubs from stdin.
8517
8518 * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
8519 (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
8520 Define these to do nothing.
8521
8522 * configure.in: New check for -g on .S files.
8523 * configure: Regenerated.
8524 * config.make.in (have-cpp-asm-debuginfo): New variable.
8525 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
8526 * Makeconfig (ASFLAGS): New variable, if undefined and
8527 $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
8528 * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
8529
8530 2003-03-09 Roland McGrath <roland@redhat.com>
8531
8532 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
8533 used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>.
8534
8535 2003-03-09 Ulrich Drepper <drepper@redhat.com>
8536
8537 * po/fi.po: Update from translation team.
8538 * po/ca.po: Likewise.
8539 * po/da.po: Likewise.
8540
8541 2003-03-08 Ulrich Drepper <drepper@redhat.com>
8542
8543 * rt/tst-aio7.c (do_test): Change BYTES into a #define.
8544
8545 2003-03-07 Ulrich Drepper <drepper@redhat.com>
8546
8547 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
8548
8549 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
8550
8551 2003-03-07 Roland McGrath <roland@redhat.com>
8552
8553 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
8554 * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
8555
8556 2003-03-04 Guido Guenther <agx@sigxcpu.org>
8557
8558 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
8559 stubs, we have INLINE_SYSCALL.
8560 * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
8561 MAP_NONBLOCK.
8562
8563 2003-03-06 Roland McGrath <roland@redhat.com>
8564
8565 * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1
8566 permanent extent and add a comment about testing its implicit teardown.
8567
8568 2003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
8569
8570 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
8571
8572 2003-03-05 Ulrich Drepper <drepper@redhat.com>
8573
8574 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
8575 reversed __builtin_expect expectation.
8576
8577 2003-03-05 Roland McGrath <roland@redhat.com>
8578
8579 * stdio-common/sscanf.c: Use prototype defn with ... syntax.
8580 * libio/swscanf.c: Likewise.
8581 * libio/swprintf.c: Likewise.
8582
8583 2003-03-04 Roland McGrath <roland@redhat.com>
8584
8585 * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
8586 (elf_machine_rela): Always use RESOLVE_MAP, needed for
8587 R_PPC64_JMP_SLOT as well as TLS cases.
8588 (BIT_INSERT): Move parenthesis where it ought to have been.
8589 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
8590
8591 * posix/confstr.c (confstr): Correct STRING_LEN values for
8592 _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
8593 break. Reported by Alexandre Julliard <julliard@winehq.com>.
8594
8595 2003-03-04 Jakub Jelinek <jakub@redhat.com>
8596
8597 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
8598
8599 2003-03-04 Ulrich Drepper <drepper@redhat.com>
8600
8601 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
8602 clone parameters.
8603
8604 * po/sv.po: Update from translation team.
8605
8606 2003-03-04 Andreas Jaeger <aj@suse.de>
8607 Ulrich Drepper <drepper@redhat.com>
8608
8609 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
8610
8611 2003-03-03 Ulrich Drepper <drepper@redhat.com>
8612
8613 * sysdeps/generic/dl-sysdep.h: Add double include protection.
8614
8615 * po/tr.po: Update from translation team.
8616
8617 * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
8618 are holes between the segments. Only call mprotect to set
8619 proection to PROT_NONE if there are some.
8620
8621 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
8622 Update comment.
8623
8624 * include/sched.h (__clone2): Use ... instead of adding all the
8625 new parameters.
8626
8627 2003-03-03 Roland McGrath <roland@redhat.com>
8628
8629 * elf/dl-load.c (struct filebuf): Fix typo in last change.
8630
8631 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
8632 PI_STATIC_AND_HIDDEN.
8633
8634 2003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au>
8635
8636 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
8637 flags.
8638 * include/sched.h: Update clone2 prototype.
8639
8640 2003-03-03 Andreas Jaeger <aj@suse.de>
8641
8642 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
8643 (llrint): Use it to correct return type.
8644 (lrint): Likewise.
8645 (lround): Likewise.
8646 (llround): Likewise.
8647
8648 2003-03-03 Ulrich Drepper <drepper@redhat.com>
8649
8650 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
8651 byte filebuf size.
8652
8653 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
8654 if ccs parameter isn't valid. Reported by Andreas Schwab.
8655
8656 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
8657
8658 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
8659 for system call numbers > 255.
8660 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
8661 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
8662 INTERNAL_SYSCALL): Likewise.
8663 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
8664 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
8665 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
8666 INTERNAL_SYSCALL): Likewise.
8667
8668 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
8669
8670 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
8671 array if it is the initial dtv.
8672
8673 2003-03-03 Ulrich Drepper <drepper@redhat.com>
8674
8675 * po/es.po: Update from translation team.
8676 * po/fr.po: Likewise.
8677 * po/gl.po: Likewise.
8678 * po/sk.po: Likewise.
8679 * po/sv.po: Likewise.
8680
8681 * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
8682 * misc/sys/mman.h: Add prototype for remap_file_pages.
8683 * sysdeps/generic/remap_file_pages.c: New file.
8684 * misc/Makefile (routines): Add remap_file_pages.
8685 * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
8686
8687 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
8688 and MAP_NONBLOCK.
8689 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8690 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
8691 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
8692 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
8693 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
8694 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
8695 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
8696 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
8697
8698 2003-03-03 Roland McGrath <roland@redhat.com>
8699
8700 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
8701 * sysdeps/ia64/dl-machine.h: Likewise.
8702 * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
8703 argument type.
8704 * sysdeps/ia64/dl-lookupcfg.h: Update decl.
8705
8706 * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
8707 * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
8708 * locale/Versions (libc: GLIBC_2.3): Move those to ...
8709 * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
8710 * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
8711 * Versions.def (libc): Add GLIBC_2.3.3 set.
8712
8713 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
8714 * sysdeps/ia64/dl-machine.h: Update decl.
8715
8716 2003-03-03 Andreas Jaeger <aj@suse.de>
8717
8718 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
8719
8720 2003-03-02 Roland McGrath <roland@redhat.com>
8721
8722 * scripts/abilist.awk: Reject data items with apparent 0 size.
8723
8724 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
8725 after foo.* as if it were a duplicate.
8726
8727 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
8728
8729 2003-03-02 Ulrich Drepper <drepper@redhat.com>
8730
8731 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
8732
8733 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
8734 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
8735 if not already defined. Use SYSDEP_GETRES to allow other files to
8736 provide alternative implementations.
8737 * sysdeps/unix/sysv/linux/clock_getres.c: New file
8738 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
8739 if not already defined. Use SYSDEP_GETTIME to allow other files to
8740 provide alternative implementations.
8741 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
8742 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
8743 if not already defined. Use SYSDEP_GETTIME to allow other files to
8744 provide alternative implementations.
8745 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
8746 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
8747 other files to provide alternative implementations. Rearrange
8748 tests for invalid parameters.
8749 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
8750 * sysdeps/unix/sysv/linux/sysconf.c: New file.
8751 * sysdeps/unix/sysv/linux/kernel-features.h: Define
8752 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
8753 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
8754 _POSIX_MONOTONIC_CLOCK.
8755
8756 2003-03-02 Roland McGrath <roland@redhat.com>
8757
8758 * scripts/merge-abilist.awk: More checks for bogus input.
8759 Uniquify duplicate config names.
8760
8761 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
8762
8763 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
8764 from dl_reloc_overflow, make global.
8765 (__process_machine_rela): Update callers.
8766 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
8767 Add attribute_hidden to __process_machine_rela decl.
8768 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
8769
8770 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
8771 variable.
8772
8773 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
8774 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
8775 (elf_machine_rela): Clean up.
8776
8777 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
8778
8779 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
8780 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
8781 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
8782 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
8783 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
8784 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
8785 new relocs for TLS.
8786
8787 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
8788 macros out of [SHARED].
8789 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
8790
8791 * elf/elf.h: Define R_PPC_* relocs for TLS support.
8792 Clean up R_PPC64_* macro definition comments.
8793
8794 * configure.in: In "running configure fragment for" message,
8795 omit $srcdir from the name if we prepended it.
8796 * configure: Regenerated.
8797
8798 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
8799 From Jakub Jelinek <jakub@redhat.com>.
8800
8801 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
8802 which duplicated the O_DIRECT defn.
8803
8804 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
8805
8806 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
8807 random functions.
8808
8809 2003-03-01 Andreas Schwab <schwab@suse.de>
8810
8811 * resolv/Makefile (tests): Don't depend on
8812 $(objpfx)mtrace-tst-leaks when cross compiling.
8813
8814 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
8815 __libc_stack_end through GOT since it is a global symbol.
8816
8817 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
8818
8819 * argp/argp.h: Fix a typo.
8820 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
8821
8822 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
8823
8824 2003-02-27 Pat Rankin <rankin@pactechdata.com>
8825
8826 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
8827 char *.
8828 (get_subexp): Likewise.
8829
8830 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
8831
8832 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
8833
8834 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
8835
8836 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
8837
8838 2003-02-27 Roland McGrath <roland@redhat.com>
8839
8840 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
8841 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
8842 repeat it and avoids the test for the common case.
8843 Clean up and fix calculations for TLS relocs.
8844
8845 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
8846 * sysdeps/powerpc/dl-tls.h: ... here.
8847 (TLS_TP_OFFSET): New macro.
8848
8849 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
8850
8851 2003-02-27 Ulrich Drepper <drepper@redhat.com>
8852
8853 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
8854 code generation changes in recent gcc.
8855
8856 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
8857
8858 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
8859 Rename argument to avoid symbol conflict.
8860
8861 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
8862 [__USE_GNU] (O_DIRECT): New macro.
8863
8864 2003-02-24 David Mosberger <davidm@hpl.hp.com>
8865
8866 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
8867 unwind info.
8868
8869 2003-02-27 Ulrich Drepper <drepper@redhat.com>
8870
8871 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
8872 initializer anymore now that res_thread_freeres is more careful.
8873
8874 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
8875 except the PKTINFO. Reset interface in PKTINFO.
8876 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
8877
8878 2003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
8879
8880 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
8881 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
8882 Define.
8883 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
8884 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
8885 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
8886 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
8887
8888 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
8889 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
8890
8891 2003-02-25 Andreas Jaeger <aj@suse.de>
8892
8893 * manual/memory.texi (Malloc Tunable Parameters): Clarify
8894 behaviour of M_MMAP_THRESHOLD.
8895
8896 2003-02-25 Roland McGrath <roland@redhat.com>
8897
8898 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
8899 zero, inidicating _res was not initialized yet.
8900
8901 2003-02-24 Ulrich Drepper <drepper@redhat.com>
8902
8903 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
8904 test.
8905
8906 2003-02-24 Roland McGrath <roland@redhat.com>
8907
8908 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
8909
8910 2003-02-23 Roland McGrath <roland@redhat.com>
8911
8912 * sysdeps/posix/pause.c: New file.
8913 * sysdeps/unix/common/pause.c: File removed.
8914
8915 2003-02-23 Ulrich Drepper <drepper@redhat.com>
8916
8917 * sysdeps/generic/bits/confname.h: Remove #ifs.
8918
8919 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
8920 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
8921
8922 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
8923 element to -1.
8924
8925 2003-02-22 Ulrich Drepper <drepper@redhat.com>
8926
8927 * sysdeps/generic/dl-sysdep.c: Avoid warning.
8928
8929 2003-02-22 Roland McGrath <roland@redhat.com>
8930
8931 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
8932 * resolv/Makefile (tests): Add tst-leaks.
8933 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
8934 (tst-leaks-ENV): New variable.
8935 ($(objpfx)mtrace-tst-leaks): New target.
8936 (tests): Depend on it.
8937
8938 * include/libc-internal.h: Declare __libc_thread_freeres.
8939
8940 * Makerules: Fix last change to use $($(subdir)-version) when set.
8941
8942 * Makerules (install-lib-nosubdir): Depend on installed
8943 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
8944 regardless of the libfoo.so target's dependencies.
8945
8946 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
8947 Use that in $(MAKE) calls.
8948
8949 2003-02-22 Ulrich Drepper <drepper@redhat.com>
8950
8951 * catgets/gencat.c (read_input_file): Collision between
8952 auto-assigned numbers and user-defined nubmers is not fatal.
8953 Handle it.
8954 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
8955 * catgets/Makefile: Add rules to run test2.msg test.
8956 * catgets/test2.msg: New file.
8957
8958 * catgets/gencat.c (main): Return 1 if messages have been printed.
8959
8960 * iconv/iconv_prog.c (main): Unify messages.
8961
8962 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
8963 when shifting retval.
8964 * stdlib/tst-strtod.c (main): Add strtold test case.
8965 Reported by Fred J. Tydeman <tydeman@tybor.com>.
8966
8967 2003-02-21 Roland McGrath <roland@redhat.com>
8968
8969 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
8970 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
8971 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
8972
8973 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
8974 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
8975 (res_thread_freeres): New function, on __libc_thread_subfreeres and
8976 __libc_subfreeres.
8977
8978 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
8979 * malloc/thread-freeres.c: New file.
8980 * malloc/Makefile (aux): Add it.
8981 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
8982 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
8983 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
8984
8985 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
8986 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
8987
8988 2003-02-21 Roland McGrath <roland@frob.com>
8989
8990 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
8991
8992 * iconvdata/Makefile (tests): Add bug-iconv3 only if
8993 [$(have-thread-library) = yes].
8994
8995 2003-02-21 Ulrich Drepper <drepper@redhat.com>
8996
8997 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
8998
8999 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
9000 not chechk for errors (unless testing for 32bit variant).
9001 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
9002 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
9003 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
9004
9005 2003-02-21 Jakub Jelinek <jakub@redhat.com>
9006
9007 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
9008 Check for signed overflow, not unsigned.
9009
9010 * sysdeps/sparc/sparc64/elf/configure.in: New file.
9011 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
9012 Use -fcall-used-g6, not -fcall-used-g7.
9013
9014 2003-02-21 Andreas Jaeger <aj@suse.de>
9015
9016 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
9017 mode.
9018
9019 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
9020 clear whole mxcsr but only exceptions.
9021
9022 2003-02-21 Roland McGrath <roland@redhat.com>
9023
9024 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
9025 for libfoo.so that need $(make-link) rules.
9026
9027 2003-02-21 Roland McGrath <roland@frob.com>
9028
9029 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
9030 to match existing struct stat layout in mig protocols.
9031
9032 2003-02-20 Ulrich Drepper <drepper@redhat.com>
9033
9034 * version.h (VERSION): Bump to 2.3.2.
9035
9036 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
9037 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
9038 and dl-sysdep.h.
9039 * sysdeps/generic/Dist: Add sysdep-cancel.h.
9040 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
9041 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
9042 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
9043 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
9044 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
9045 ucontext_i.h.
9046 * Makefile (distribute): Add include/stubs-prologue.h,
9047 include/gnu/stubs.h, scripts/merge-abilist.awk, and
9048 scripts/extract-abilist.awk.
9049
9050 2003-02-20 Roland McGrath <roland@redhat.com>
9051
9052 * math/Makefile (distribute): Don't add generated files.
9053
9054 2003-02-20 Ulrich Drepper <drepper@redhat.com>
9055
9056 * math/Makefile: Rearrange variable definitions slightly to get
9057 definition in the right order.
9058
9059 2003-02-20 Roland McGrath <roland@redhat.com>
9060
9061 * Makerules: Clean up conditional around include of tls.make.
9062 * Make-dist: Export generating=t to prevent using that.
9063 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
9064
9065 2003-02-20 Ulrich Drepper <drepper@redhat.com>
9066
9067 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
9068 around in search if port IPPORT_RESERVED/2 has been test.
9069
9070 2003-02-20 Paolo Bonzini <bonzini@gnu.org>
9071
9072 * posix/regcomp.c: Remove inclusions.
9073 * posix/regexec.c: Likewise.
9074 * posix/regex_internal.c: Likewise.
9075 * posix/regex_internal.h: Add inclusions here.
9076 * posix/regex.c: Only include sys/types.h before regex.h. Include
9077 regex_internal.h here. Include regex_internal.c before regcomp.c
9078 and regexec.c (might expose more opportunities to the C compiler).
9079
9080 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
9081
9082 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
9083 [!_LIBC] (__wcrtomb): New definition.
9084 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
9085 HAVE_LOCALE_H as well.
9086
9087 2003-02-20 Ulrich Drepper <drepper@redhat.com>
9088
9089 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
9090 patch to check for system call errors.
9091
9092 2002-07-24 Philip Blundell <philb@gnu.org>
9093
9094 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
9095 on unknown systems.
9096
9097 2003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9098
9099 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
9100 * sysdeps/unix/sysv/linux/kernel-features.h
9101 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
9102 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
9103 if possible.
9104 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
9105 interprocedure branches.
9106 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
9107 * sysdeps/powerpc/nofpu/Dist: ...here.
9108 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
9109 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
9110 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
9111 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
9112 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
9113
9114 2003-02-18 Alan Modra <amodra@bigpond.net.au>
9115
9116 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
9117
9118 2003-02-20 Philip Blundell <philb@gnu.org>
9119
9120 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
9121 missing arguments to INTERNAL_SYSCALL_ERROR_P and
9122 INTERNAL_SYSCALL_ERRNO.
9123
9124 2003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
9125
9126 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
9127 for __ASSUME_32BITUIDS.
9128
9129 2003-02-20 Andreas Schwab <schwab@suse.de>
9130
9131 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
9132 POSIX_MADV_* constants.
9133
9134 2003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9135
9136 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
9137 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
9138 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
9139 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
9140
9141 2003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
9142
9143 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
9144
9145 2003-02-16 Roland McGrath <roland@redhat.com>
9146
9147 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
9148
9149 2003-02-19 Ulrich Drepper <drepper@redhat.com>
9150
9151 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
9152 decimal input digits.
9153 * stdlib/tst-strtod.c (main): Add test for strtof bug.
9154
9155 2003-02-18 Ulrich Drepper <drepper@redhat.com>
9156
9157 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
9158 invalid file descriptors and missing access permissions.
9159
9160 2003-02-17 Ulrich Drepper <drepper@redhat.com>
9161
9162 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
9163 been found.
9164
9165 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
9166 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
9167 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
9168 and LOGIN_NAME_MAX.
9169
9170 2003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
9171 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9172
9173 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
9174 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
9175 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
9176 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
9177 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
9178
9179 2003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9180
9181 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
9182 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
9183 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
9184 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
9185 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
9186 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
9187
9188 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
9189 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
9190 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
9191 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
9192
9193 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
9194 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
9195 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
9196 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
9197
9198 2003-02-14 Thorsten Kukuk <kukuk@suse.de>
9199
9200 * nss/getent.c (print_hosts): Print all IP addresses of one host.
9201
9202 2003-02-15 Roland McGrath <roland@frob.com>
9203
9204 * sysdeps/mach/hurd/tls.h: New file.
9205 * sysdeps/mach/hurd/i386/tls.h: New file.
9206
9207 * mach/errsystems.awk: Include <errno.h> in generated output.
9208
9209 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
9210 use target mach-before-compile instead of generated.
9211 (mach-before-compile): New target.
9212 * Makerules: Disable use of tls.make if $(generating) is set.
9213 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
9214 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
9215 mach-shortcuts.h so mach/ generation happens before hurd/.
9216
9217 2003-02-14 Ulrich Drepper <drepper@redhat.com>
9218
9219 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
9220 of demorm correctly if low word is zero.
9221 Reported by Fred J. Tydeman <tydeman@tybor.com>.
9222 * math/libm-test.inc (nextafter_test): New test, but disabled due
9223 to gcc bug.
9224
9225 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
9226 counter and only call __exit_thread if this is not the last thread.
9227
9228 2003-02-13 Jakub Jelinek <jakub@redhat.com>
9229
9230 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
9231 subtracting map->l_tls_offset.
9232
9233 2003-02-12 Ulrich Drepper <drepper@redhat.com>
9234
9235 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
9236 _CS_GNU_LIBPTHREAD_VERSION.
9237 * posix/conststr.c: Handle these new values.
9238 * posix/getconf.c: Likewise.
9239
9240 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
9241 masking of version index.
9242 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
9243
9244 2003-02-11 Ulrich Drepper <drepper@redhat.com>
9245
9246 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
9247 correctly. Reported by Thorsten Kukuk.
9248
9249 2003-02-10 Ulrich Drepper <drepper@redhat.com>
9250
9251 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
9252 _BSD_SOURCE to compiler.
9253 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
9254 Patches by Alan Modra.
9255
9256 2003-02-08 Ulrich Drepper <drepper@redhat.com>
9257
9258 * io/ftwtest.c: Get current working directory before and after the
9259 nftw call and make sure they match.
9260
9261 2003-02-08 Jim Meyering <jim@meyering.net>
9262
9263 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
9264 the current directory, not just when DIR contains a slash.
9265 Reported by Manoj Srivastava.
9266
9267 2003-02-07 Jim Meyering <jim@meyering.net>
9268
9269 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
9270 Include autoconf-recommended block of dirent/NAMELEN-related
9271 definitions and includes. Use NAMELEN throughout, rather than
9272 _D_EXACT_NAMLEN.
9273 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
9274 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
9275 (stpcpy): Declare, if necessary.
9276 (mempcpy): Define, if necessary.
9277 [!_LIBC] (__stpcpy, __mempcpy): Define.
9278 [!_LIBC] (LXSTAT, XSTAT): Define.
9279 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
9280 (find_object): Don't use c99-style struct initializer.
9281 Tweak wording in a couple comments.
9282
9283 2003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9284
9285 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
9286 for SH.
9287 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
9288 after the trapa instruction.
9289 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
9290 parameters.
9291 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
9292 (NEED_SYSCALL_INST_PAD): Define.
9293 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
9294 avoid to use definition for the kernel.
9295 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
9296 Save and restore the frame pointer.
9297 (SYSCALL_INST_PAD): Define.
9298 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
9299 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
9300 after trapa instruction.
9301 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
9302 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
9303
9304 2003-02-07 Jakub Jelinek <jakub@redhat.com>
9305
9306 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
9307 so that it can have aliases.
9308 * inet/herrno.c (h_errno): Put it into .bss not .data section.
9309
9310 2003-02-07 Ulrich Drepper <drepper@redhat.com>
9311
9312 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
9313 (profile_fixup): Likewise.
9314 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
9315
9316 2002-11-24 Robert Love <rml@tech9.net>
9317
9318 * posix/sched.h: Second parameter of sched_setaffinity and
9319 sched_getaffinity is `unsigned int', not `unsigned long'.
9320 * sysdeps/generic/sched_setaffinity.c: Likewise.
9321 * sysdeps/generic/sched_getaffinity.c: Likewise.
9322
9323 2003-02-05 Ulrich Drepper <drepper@redhat.com>
9324
9325 * debug/catchsegv.sh: Fix typo in error messsage.
9326 Reported by John Levon <levon@movementarian.org>.
9327
9328 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
9329 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
9330 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
9331 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
9332 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
9333 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
9334 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
9335
9336 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
9337 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
9338
9339 2003-02-05 Jim Meyering <jim@meyering.net>
9340
9341 Fix a heap-corrupting bug.
9342 * io/ftw.c: Include <limits.h>.
9343 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
9344 (process_entry): Allocate enough space to hold the resulting
9345 file name. Don't presume that 2*dirbufsize is enough.
9346 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
9347 it is guaranteed to be defined.
9348
9349 2003-02-04 Ulrich Drepper <drepper@redhat.com>
9350
9351 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
9352 * iconvdata/bug-iconv3.c: New file.
9353
9354 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
9355
9356 * sysdeps/unix/sysv/linux/s390/system.c: New file.
9357
9358 2003-02-03 Jakub Jelinek <jakub@redhat.com>
9359
9360 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
9361 check.
9362 * config.h.in (BROKEN_SPARC_WDISP22): Add.
9363
9364 2003-02-03 Ulrich Drepper <drepper@redhat.com>
9365
9366 * sysdeps/i386/i686/memmove.S: New file.
9367
9368 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
9369
9370 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
9371 Include kernel-features.h
9372 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
9373 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
9374 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
9375 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
9376
9377 2003-02-02 Jakub Jelinek <jakub@redhat.com>
9378
9379 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
9380
9381 2003-01-25 Jim Meyering <jim@meyering.net>
9382
9383 * io/ftw.c (object_compare): Compare inode numbers before device
9384 numbers, since the former are much more likely to differ.
9385
9386 2003-02-01 Ulrich Drepper <drepper@redhat.com>
9387
9388 * time/tzfile.c (__tzfile_compute): Change return value type to
9389 void. Adjust return statements.
9390 * include/time.h (__tzfile_compute): Adjust prototype.
9391
9392 2003-02-01 Jim Meyering <jim@meyering.net>
9393
9394 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
9395 always returns 1.
9396
9397 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
9398
9399 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
9400 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
9401
9402 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
9403
9404 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
9405 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
9406 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
9407 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
9408 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
9409 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
9410 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
9411 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
9412
9413 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
9414
9415 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
9416 back to 2.4.19 for powerpc64.
9417 * sysdeps/unix/sysv/linux/kernel-features.h
9418 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
9419 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
9420
9421 2003-02-01 Ulrich Drepper <drepper@redhat.com>
9422
9423 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
9424 platforms with strange alignment requirements on wchar_t.
9425
9426 2003-01-31 Andreas Schwab <schwab@suse.de>
9427
9428 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
9429 aliases, already added by make-syscalls.sh.
9430 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
9431 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
9432 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
9433 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
9434 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
9435 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
9436 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9437 * sysdeps/unix/inet/syscalls.list: Likewise.
9438 * sysdeps/unix/syscalls.list: Likewise.
9439
9440 2003-01-31 Andreas Schwab <schwab@suse.de>
9441
9442 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
9443 any more.
9444
9445 2003-01-30 Jakub Jelinek <jakub@redhat.com>
9446
9447 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
9448 not l to load tls from stack.
9449
9450 2003-01-30 Roland McGrath <roland@redhat.com>
9451
9452 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
9453 null argument before all else.
9454 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
9455
9456 2003-01-30 Jakub Jelinek <jakub@redhat.com>
9457
9458 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
9459 Move to RESOLVE protected part of the header.
9460 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
9461 Likewise.
9462
9463 2003-01-30 Ulrich Drepper <drepper@redhat.com>
9464
9465 * stdio-common/Makefile (tests): Add bug15.
9466 (bug15-ENV): Define.
9467 * stdio-common/bug15.c: New file.
9468
9469 2002-10-07 Wolfram Gloger <wg@malloc.de>
9470
9471 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
9472 to foreign sbrk()'s if arena is contiguous. Bug report from
9473 Bruno Haible <bruno@clisp.org>.
9474
9475 2003-01-30 Jakub Jelinek <jakub@redhat.com>
9476
9477 * sysdeps/s390/libc-tls.c: Include stdlib.h.
9478
9479 2003-01-30 Jakub Jelinek <jakub@redhat.com>
9480
9481 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
9482 ps.__count.
9483
9484 2003-01-30 Ulrich Drepper <drepper@redhat.com>
9485
9486 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
9487 restoring of %r6.
9488 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
9489 64-bit load.
9490 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
9491
9492 2003-01-30 Jakub Jelinek <jakub@redhat.com>
9493
9494 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
9495 (allocate_static_tls): ...here. Add __attribute_noinline__.
9496 Don't return on failure.
9497 (_dl_reloc_bad_type): Add __attribute_noinline__.
9498 * elf/do-rel.h (elf_dynamic_do_rel): Add
9499 __attribute__((always_inline)).
9500 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
9501 elf_machine_rel_relative, elf_machine_rela_relative,
9502 elf_machine_lazy_rel): Add prototypes with
9503 __attribute__((always_inline)).
9504
9505 2003-01-29 David Mosberger <davidm@hpl.hp.com>
9506
9507 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
9508
9509 2003-01-29 Roland McGrath <roland@redhat.com>
9510
9511 * configure.in: Barf if configured in $srcdir.
9512
9513 2003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
9514
9515 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
9516 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
9517
9518 2003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
9519
9520 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
9521 clone parameters to match the order used on ia32.
9522 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
9523
9524 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
9525
9526 * elf/elf.h: Add new s390 relocs.
9527 * elf/tls-macros.h: Add s390 versions.
9528 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
9529 * sysdeps/s390/dl-tls.h: New file.
9530 * sysdeps/s390/libc-tls.c: New file.
9531 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
9532 relocs for class PLT.
9533 (elf_machine_rela): Handle TLS relocs.
9534 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9535 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
9536 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
9537 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
9538 CLONE_CHILD_*TID flags.
9539 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
9540 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
9541 bit offset.
9542 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
9543 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
9544 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
9545 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
9546 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
9547 Likewise.
9548 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
9549 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
9550 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
9551 variants.
9552 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
9553 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
9554 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
9555 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
9556 variants.
9557
9558 2003-01-28 Ulrich Drepper <drepper@redhat.com>
9559
9560 * sysdeps/unix/common/pause.c (do_pause): New function. Split
9561 from __libc_pause. Implement using sigsuspend.
9562 (__libc_pause): Call do_pause to do the real work.
9563
9564 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
9565 sig_or_mask parameter is is_sig != 0.
9566
9567 2003-01-21 Philip Blundell <philb@gnu.org>
9568
9569 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
9570
9571 2003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
9572
9573 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
9574
9575 2003-01-27 Ulrich Drepper <drepper@redhat.com>
9576
9577 * stdio-common/bug14.c: Use official name for the locale.
9578
9579 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
9580 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
9581 instead of __libc_cleanup_region_end.
9582
9583 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
9584 as first parameter to __libc_cleanup_region_start.
9585
9586 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
9587 (__fe_nomask_env): Use __prctl not prctl.
9588 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
9589 prctl syscall.
9590
9591 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
9592
9593 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
9594
9595 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
9596 wrap-around in test.
9597
9598 2003-01-26 Andreas Schwab <schwab@suse.de>
9599
9600 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
9601 compatibility symbols. Remove INTDEF for __divdi3.
9602 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
9603 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
9604 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
9605 define.
9606 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
9607
9608 2003-01-24 Jakub Jelinek <jakub@redhat.com>
9609
9610 * elf/tls-macros.h: Add SPARC 32-bit definitions.
9611 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
9612 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
9613 for the first half of the header. Include tls.h.
9614 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
9615 relocs too.
9616 (elf_machine_rela): Handle TLS relocs.
9617 * sysdeps/sparc/dl-tls.h: New file.
9618
9619 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
9620 support.
9621
9622 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
9623 * sysdeps/sparc/sparc32/memchr.S: Likewise.
9624 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
9625 * sysdeps/sparc/sparc32/strcat.S: Likewise.
9626 * sysdeps/sparc/sparc32/strchr.S: Likewise.
9627 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
9628 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
9629 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
9630 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9631 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
9632 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
9633 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
9634 * sysdeps/sparc/sparc64/strcat.S: Likewise.
9635 * sysdeps/sparc/sparc64/strchr.S: Likewise.
9636 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
9637 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
9638 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
9639 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
9640 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
9641 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9642
9643 2003-01-24 Andreas Schwab <schwab@suse.de>
9644
9645 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
9646 elements, and process them backwards.
9647 * elf/Makefile ($(objpfx)tst-array4): New target.
9648 ($(objpfx)tst-array4.out): Likewise.
9649 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
9650 * elf/tst-array4.c: New file.
9651 * elf/tst-array4.exp: Likewise.
9652
9653 2003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
9654
9655 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
9656
9657 2003-01-27 Guido Guenther <agx@sigxcpu.org>
9658
9659 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
9660 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
9661 cancellation handling and handle both __NR_pread64 and __NR_pread.
9662 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
9663 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
9664 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
9665 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
9666 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
9667 case, use register names consistently.
9668
9669 2003-01-27 Wolfram Gloger <wg@malloc.de>
9670
9671 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
9672 pointer, not of the computed chunk. Bug report from Carlos
9673 O'Donell <carlos@baldric.uwo.ca>.
9674
9675 2003-01-25 Andreas Schwab <schwab@suse.de>
9676
9677 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
9678 addressing to save GOT entries.
9679
9680 2003-01-21 Jakub Jelinek <jakub@redhat.com>
9681
9682 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
9683 inline_syscall1, inline_syscall2, inline_syscall3,
9684 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
9685 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
9686 __attribute__((unused)) to ChEcK.
9687
9688 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
9689
9690 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
9691 Fix inline assembler constraints.
9692 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
9693 Likewise.
9694
9695 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
9696 -fPIC.
9697
9698 2003-01-20 Segher Boessenkool <segher@koffie.nl>
9699
9700 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
9701 compute the cosine, not the sine, even if x > 0.8.
9702
9703 2003-01-19 Ulrich Drepper <drepper@redhat.com>
9704
9705 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
9706 _nss_nis_setspent. Work around the different prototypes.
9707 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
9708 internal_nis_endrpcent.
9709 (internal_nis_endrpcent): Change return type to void. Change callers.
9710 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
9711 _nss_nis_setpwent. Work around the different prototypes.
9712 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
9713 of the function to...
9714 (internal_nis_endprotoent): ... here. New function.
9715 (internal_nis_setprotoent): Use internal_nis_endprotoent.
9716 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
9717 _nss_nis_setnetent. Work around the different prototypes.
9718 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
9719 of the function to...
9720 (internal_nis_endnetgrent): ... here. New function.
9721 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
9722
9723 2003-01-19 Jim Meyering <jim@meyering.net>
9724
9725 * time/strftime.c: (widen): Merge nearly-identical definitions.
9726 (nl_get_alt_digit) [! defined my_strftime]: Define.
9727 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
9728 _nl_get_alt_digit and _nl_get_walt_digit.
9729
9730 2003-01-19 Ulrich Drepper <drepper@redhat.com>
9731
9732 * time/strftime.c (my_strftime): Handle very large width
9733 specifications for numeric values correctly. Improve checks for
9734 overflow.
9735 * time/Makefile (tests): Add tst-strftime.
9736 * time/tst-strftime.c: New file.
9737
9738 2003-01-18 Ulrich Drepper <drepper@redhat.com>
9739
9740 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
9741 _nss_nis_sethostent. Work around the different prototypes.
9742 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
9743 _nss_nis_setgrent. Work around the different prototypes.
9744 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
9745 function. Split out from _nss_nis_endetherent.
9746 (internal_nis_setetherent): Use internal_nis_endetherent instead of
9747 duplicating the code.
9748 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
9749 of _nss_nis_setaliasent.
9750 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
9751 internal_nis_endservent code, don't duplicate it.
9752
9753 * inet/rexec.c (rexec_af): Protect socket operations with
9754 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
9755 * inet/rcmd.c (rcmd_af): Likewise.
9756
9757 2003-01-17 Roland McGrath <roland@redhat.com>
9758
9759 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
9760 Add test of value 0.80190127184058835.
9761
9762 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
9763
9764 2003-01-17 Richard Henderson <rth@redhat.com>
9765
9766 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
9767 relocs for class PLT.
9768 * sysdeps/alpha/libc-tls.c: New file.
9769 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
9770 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
9771
9772 2003-01-17 Jakub Jelinek <jakub@redhat.com>
9773
9774 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
9775 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
9776 on _dl_static_lock.
9777
9778 2003-01-17 Andreas Jaeger <aj@suse.de>
9779
9780 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
9781
9782 2003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
9783
9784 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
9785 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
9786 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
9787 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
9788 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
9789 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
9790 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
9791 is 2.4.21.
9792
9793 2003-01-16 Ulrich Drepper <drepper@redhat.com>
9794
9795 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
9796 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
9797 buffers.
9798
9799 * sysdeps/generic/sysconf.c: Unconditionally implement
9800 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
9801 * sysdeps/posix/sysconf.c: Likewise.
9802
9803 2003-01-16 Jakub Jelinek <jakub@redhat.com>
9804
9805 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
9806 set *err to the returned error, not to REG_ESPACE unconditionally.
9807 (build_word_op): Likewise.
9808 * posix/Makefile (tests): Add bug-regex16.
9809 * posix/bug-regex16.c: New test.
9810
9811 2003-01-16 Jakub Jelinek <jakub@redhat.com>
9812
9813 * elf/dl-load.c (_dl_map_object_from_fd): Use
9814 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
9815 been already initialized.
9816
9817 2003-01-15 Dmitry V. Levin <ldv@altlinux.org>
9818
9819 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
9820
9821 2003-01-16 Jakub Jelinek <jakub@redhat.com>
9822
9823 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
9824 allocated too. Reported by Al Viro <aviro@redhat.com>.
9825
9826 2003-01-16 Roland McGrath <roland@redhat.com>
9827
9828 Tweak merged .abilist file format to merge duplicate symbols in
9829 different sets into multi-version stanzas with new "| SET regexp..."
9830 header continuation lines.
9831 * scripts/merge-abilist.awk: Rewritten for new format.
9832 * scripts/extract-abilist.awk: Likewise.
9833
9834 2003-01-15 Ulrich Drepper <drepper@redhat.com>
9835
9836 * nscd/connections.c (nscd_run): Remove bogus return which isn't
9837 necessary with gcc 3.2+.
9838 (nscd_init): Don't use error() to print message, use dbg_log.
9839
9840 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
9841 expected size into state.
9842 (UNPACK_BYTES): Do the reverse.
9843 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
9844 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
9845 Reported by Al Viro <aviro@redhat.com>.
9846
9847 * stdio-common/Makefile (tests): Add bug14.
9848 * stdio-common/bug14.c: New file.
9849
9850 * stdio-common/vfscanf.c: When recognizing multibyte characters in
9851 string reset the byte counter after mbrtowc reported it is not a
9852 partial character. Reported by Al Viro <aviro@redhat.com>.
9853
9854 2003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
9855
9856 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
9857 sysdep-cancel.h, not sysdep.h.
9858
9859 2003-01-15 Ulrich Drepper <drepper@redhat.com>
9860
9861 * nscd/connections.c (nscd_run): Protect accept call with
9862 TEMP_FAILURE_RETRY.
9863
9864 2003-01-15 Andreas Schwab <schwab@suse.de>
9865
9866 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
9867 (common-generated): Add s-proto-bp.d.
9868 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
9869 of bp thunks.
9870 * sysdeps/unix/s-proto-bp.S: New file.
9871 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
9872 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
9873 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
9874
9875 2003-01-15 Roland McGrath <roland@redhat.com>
9876
9877 * Makerules: Use -include for tls.make, suppresses warning.
9878 Move gen-as-const-headers rules up so before-compile is set in time.
9879 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
9880
9881 2003-01-15 Ulrich Drepper <drepper@redhat.com>
9882
9883 * nscd/nscd.c (main): Make code to close all file descriptors
9884 faster and more robust.
9885
9886 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
9887 request with one writev call. Protect all read calls with
9888 TEMP_FAILURE_RETRY.
9889 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
9890 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
9891
9892 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
9893 Protect writev calls with TEMP_FAILURE_RETRY.
9894 * nscd/grpcache.c: Likewise.
9895 * nscd/pwdcache.c: Likewise.
9896
9897 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
9898 IPv6 address in debug output.
9899
9900 2003-01-14 Roland McGrath <roland@redhat.com>
9901
9902 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
9903 $(objpfx) directories, and get rid of vpath directives. The previous
9904 arrangement resulted in files being written to the source directories
9905 when run in a clean build. Find all .abilist files in $(..)abilist/.
9906 (update-abi-%): Likewise.
9907 (generated): Don't add .symlist files, they'll be intermediates.
9908
9909 * sysdeps/generic/init-first.c: Add a comment.
9910
9911 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
9912
9913 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
9914 #includes and expressions.
9915
9916 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
9917 config list when it already contains cpu-.*-os.* without / part.
9918
9919 * Makerules (sed-remove-dotdot): New variable.
9920 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
9921 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
9922 (check-abi-config): New variable, append /tls or /notls to the tuple.
9923 (check-abi-%): Use that for -v config value.
9924 Find .abilist files in abilist/libfoo.abilist, not in subdir.
9925 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
9926
9927 2003-01-14 Ulrich Drepper <drepper@redhat.com>
9928
9929 * manual/install.texi: Correct description of header preparation for
9930 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
9931
9932 2003-01-14 Guido Guenther <agx@sigxcpu.org>
9933
9934 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
9935 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
9936 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
9937
9938 2003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
9939
9940 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
9941 (INTERNAL_SYSCALL): Make use of ERR parameter.
9942 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
9943 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
9944 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
9945 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
9946
9947 2003-01-14 Ulrich Drepper <drepper@redhat.com>
9948
9949 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
9950 == IPPROTO_TCP.
9951 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
9952
9953 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
9954 Fix entry for bit 31.
9955
9956 * iconvdata/Makefile: Add rules to build IBM866NAV.
9957 * iconvdata/ibm866nav.c: New file.
9958 * iconvdata/tst-tables.sh: Add IBM866NAV.
9959 * iconvdata/gconv-modules: Add entries for IBM866NAV.
9960
9961 2003-01-13 Ulrich Drepper <drepper@redhat.com>
9962
9963 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
9964 to test void* parameters.
9965
9966 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
9967 source pointer before dereferencing.
9968 (__STRING_SMALLL_GET32): Likewise.
9969 (__memset_gc): Add missing parenthesis around macro arguments.
9970 Patch by Denis Zaitsev <zzz@cd-club.ru>.
9971
9972 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
9973 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
9974
9975 2003-01-14 Jakub Jelinek <jakub@redhat.com>
9976
9977 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
9978 defining.
9979
9980 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
9981
9982 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
9983 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
9984 here.
9985 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
9986
9987 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
9988
9989 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
9990 from here...
9991 (PSEUDO): ... to here.
9992 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
9993 from here...
9994 (PSEUDO): ... to here.
9995
9996 2003-01-13 Ulrich Drepper <drepper@redhat.com>
9997
9998 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
9999 dirent64 instead of struct dirent for dirent. Call readdir64
10000 instead of readdir.
10001
10002 * locale/programs/locfile.c (siblings_uncached): Use struct
10003 dirent64 instead of struct dirent for other_dentry. Call
10004 readdir64 instead of readdir.
10005
10006 * elf/ldconfig.c (direntry): Change type to struct dirent64.
10007 (search_dir): Use readdir64 instead of readdir.
10008 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
10009
10010 2003-01-12 Roland McGrath <roland@redhat.com>
10011
10012 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
10013 not strtol. The former is usable in ld.so, the latter not.
10014
10015 * include/fcntl.h: Declare __libc_creat.
10016
10017 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
10018 libhurduser-link.so-no-z-defs): New variables.
10019
10020 * malloc/malloc.c: Revert last change.
10021 * malloc/malloc.h (_int_*): Move these decls to ...
10022 * include/malloc.h: ... here. Add attribute_hidden.
10023 (_int_valloc): Declare it too.
10024
10025 2003-01-12 Ulrich Drepper <drepper@redhat.com>
10026
10027 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
10028 search for removed searchlist. Reported by Roland McGrath.
10029
10030 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
10031 given as start file.
10032
10033 * io/ftw.c (ftw_startup): Use correct name in check for symlink
10034 without existing target. Patch by Jim Meyering.
10035
10036 * Makerules (build-shlib-helper): Don't use -z defs linker option
10037 if no-z-defs is defined either.
10038
10039 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
10040
10041 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
10042 file.
10043
10044 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
10045
10046 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
10047 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
10048
10049 2003-01-12 Ulrich Drepper <drepper@redhat.com>
10050
10051 * io/ftwtest-sh: Add test case for relative path with /. at the end.
10052
10053 2003-01-12 Jim Meyering <jim@meyering.net>
10054
10055 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
10056 use the basename if we've already chdir'd into its parent directory.
10057
10058 2003-01-12 Ulrich Drepper <drepper@redhat.com>
10059
10060 * io/ftw.c (process_entry): Use relative path when using chdir()
10061 to change directory after call to ftw_dir.
10062 * io/ftwtest-sh: Add test for relative path argument to nftw()
10063 with FTW_CHDIR option.
10064
10065 2003-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10066
10067 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
10068 Define for powerpc.
10069 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
10070 into account.
10071 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
10072 (INTERNAL_SYSCALL): Make use of ERR parameter.
10073 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
10074 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
10075 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
10076 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
10077
10078 2003-01-09 Richard Henderson <rth@redhat.com>
10079
10080 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
10081 DTPREL64 and TPREL64 without loadbase applied.
10082
10083 2003-01-09 Richard Henderson <rth@redhat.com>
10084
10085 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
10086 for NOT_IN_libc.
10087
10088 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
10089 * sysdeps/unix/alpha/sysdep.h: ... here.
10090 (PSEUDO_LOADGP): Remove.
10091 (PSEUDO_PROLOGUE): Load GP in non-pic case.
10092 (SYSCALL_ERROR_LABEL): New.
10093 (PSEUDO): Use it in error branch.
10094 (PSEUDO_END): Add $syscall_error label.
10095
10096 2003-01-12 Andreas Jaeger <aj@suse.de>
10097
10098 * math/bits/mathcalls.h: Round is a const function.
10099
10100 2003-01-11 Jim Meyering <jim@meyering.net>
10101
10102 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
10103 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
10104 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
10105 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
10106 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
10107 [!_LIBC] (internal_function, dirent64, MAX): Define.
10108 (__set_errno): Define if not already defined.
10109 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
10110 the basename, not the entire file name.
10111 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
10112 the basename, not the entire file name.
10113
10114 2003-01-12 Ulrich Drepper <drepper@redhat.com>
10115
10116 * string/tester.c (test_strcpy): Disable last added strcpy until
10117 it is fixed.
10118
10119 2003-01-11 Philip Blundell <philb@gnu.org>
10120
10121 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
10122
10123 2003-01-11 Andreas Schwab <schwab@suse.de>
10124
10125 * Makerules: Add vpath for %.dynsym and %.so so that the
10126 implicit rule chaining for check-abi works.
10127
10128 2003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
10129
10130 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
10131 Add non-PIC case.
10132
10133 2003-01-11 Jakub Jelinek <jakub@redhat.com>
10134
10135 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
10136 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
10137 gp is used early.
10138 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
10139 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
10140 Ensure libc.so in DT_NEEDED.
10141 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
10142 CHECK_STATIC_TLS before l_tls_offset use.
10143 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
10144 Likewise.
10145 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
10146 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
10147 Allocate TLS_PRE_TCB_SIZE bytes below result.
10148 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
10149 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
10150 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
10151 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
10152 bytes below result and add tcb_offset to memsz.
10153 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
10154 * sysdeps/ia64/dl-machine.h: Include tls.h.
10155 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
10156 too.
10157 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
10158 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
10159 * sysdeps/ia64/libc-tls.c: New file.
10160
10161 2003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
10162
10163 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
10164 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
10165 Fix type. Move definition out of #if.
10166 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
10167 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
10168 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
10169 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
10170 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
10171 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
10172 support.
10173 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
10174 ftruncate64, pread64, pwrite64, truncate64 entries.
10175 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
10176 (INLINE_SYSCALL): New version that supports function call like
10177 syscalls. Add __builtin_expect.
10178 (LOADARGS_n): Add argument size safety checks.
10179 (INTERNAL_SYSCALL): New Macro.
10180 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
10181 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
10182 redefinition of elf_fpreg_t and elf_fpregset_t.
10183
10184 2003-01-12 Ulrich Drepper <drepper@redhat.com>
10185
10186 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
10187 simplify test for unloading. If loader of a DSO is unloaded do not
10188 use its scope anymore. Fall back to own scope and adjust opencounts.
10189 Fix several comments.
10190 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
10191 the l_searchlist, not only for l_initfini.
10192
10193 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
10194 dependencies if objects cannot be removed. Remove object with the
10195 definition as not unloadable if necessary.
10196
10197 * elf/reldep6.c: Create relocation dependency before closing the first
10198 module.
10199
10200 2003-01-10 Guido Günther <agx@sigxcpu.org>
10201
10202 * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
10203 * sysdeps/unix/mips/brk.S: Likewise.
10204 * sysdeps/unix/mips/pipe.S: Likewise.
10205
10206 2003-01-10 Andreas Schwab <schwab@suse.de>
10207
10208 * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
10209
10210 * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
10211 are known to have the vfork syscall.
10212
10213 * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
10214
10215 * sysdeps/unix/sysv/linux/kernel-features.h
10216 (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
10217 (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
10218 (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
10219
10220 2003-01-09 Jakub Jelinek <jakub@redhat.com>
10221
10222 * elf/Makefile: Add rules to build and run reldep9 test.
10223 * elf/reldep9.c: New file.
10224 * elf/reldep9mod1.c: New file.
10225 * elf/reldep9mod2.c: New file.
10226 * elf/reldep9mod3.c: New file.
10227
10228 2003-01-09 Jakub Jelinek <jakub@redhat.com>
10229
10230 * elf/Makefile: Add rules to build and run nodelete2 test.
10231 * elf/nodelete2.c: New file.
10232 * elf/nodel2mod1.c: New file.
10233 * elf/nodel2mod2.c: New file.
10234 * elf/nodel2mod3.c: New file.
10235
10236 2003-01-09 Jakub Jelinek <jakub@redhat.com>
10237
10238 * posix/test-vfork.c (noop): Add __attribute_noinline__.
10239 * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
10240 * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
10241 defining it.
10242 * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
10243 * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
10244 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
10245 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
10246 * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
10247
10248 2003-01-09 Andreas Schwab <schwab@suse.de>
10249
10250 * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
10251
10252 2003-01-08 Ulrich Drepper <drepper@redhat.com>
10253
10254 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
10255 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
10256 argument.
10257 (INTERNAL_SYSCALL_DECL): Define.
10258
10259 2003-01-06 Jakub Jelinek <jakub@redhat.com>
10260
10261 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
10262 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
10263 argument.
10264 (INTERNAL_SYSCALL_DECL): Define.
10265 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
10266 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10267 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
10268 (INLINE_SYSCALL): Adjust.
10269 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
10270 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
10271 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
10272 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10273 * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
10274 add err argument to INTERNAL_SYSCALL* macros.
10275 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
10276 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
10277 * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
10278 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
10279 Likewise.
10280 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
10281 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
10282 INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
10283
10284 2003-01-07 Ulrich Drepper <drepper@redhat.com>
10285
10286 Unify symbols in user namespace exported by libc.so and libc.a.
10287 * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
10288 argp_fmtstream_free, and argp_fmtstream_printf.
10289 * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
10290 argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
10291 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
10292 argp_fmtstream_point.
10293 * gmon/gmon.c: Don't define write_profiling.
10294 * libio/genops.c: Don't define _cleanup.
10295
10296 * intl/explodename.c (_nl_find_language.c): Mark as static.
10297 * intl/loadinfo.h: Remove _nl_find_language prototype.
10298
10299 * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
10300 * libio/libioP.h: Remove declaration.
10301
10302 * libio/iopopen.c (_IO_proc_jumps): Mark as static.
10303 * libio/libioP.h: Remove declaration.
10304
10305 * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
10306 * sysdeps/generic/framestate.c: Define STATIC before including
10307 unwind-dw2.c.
10308
10309 * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
10310
10311 2003-01-06 Philip Blundell <philb@gnu.org>
10312
10313 * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
10314 [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
10315
10316 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
10317 directive.
10318 (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
10319 (SYSCALL_ERROR): New.
10320 (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
10321 handling code.
10322 (INTERNAL_SYSCALL): Define.
10323 (INLINE_SYSCALL): Use it.
10324 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
10325 * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
10326 SYSCALL_ERROR in place of __syscall_error.
10327
10328 2003-01-07 Jakub Jelinek <jakub@redhat.com>
10329
10330 * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
10331 __bswap_32, __bswap_64): Put x into temporary variable
10332 to avoid warnings.
10333 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
10334 (inline) functions.
10335 * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
10336 __bswap_32, __bswap_64): Put x into temporary variable
10337 to avoid warnings.
10338 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
10339 (inline) functions.
10340 * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
10341 Likewise.
10342
10343 2003-01-07 Jakub Jelinek <jakub@redhat.com>
10344
10345 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
10346 alias.
10347
10348 2003-01-07 Jakub Jelinek <jakub@redhat.com>
10349
10350 * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
10351 * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
10352
10353 2003-01-07 Ulrich Drepper <drepper@redhat.com>
10354
10355 * math/libm-test.inc (significand_test): New function.
10356 (main): Call it.
10357
10358 2003-01-06 Roland McGrath <roland@redhat.com>
10359
10360 * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
10361 arguments.
10362 (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
10363 (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
10364 (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
10365
10366 * string/tester.c (test_strcpy): Add test with `void *' arguments.
10367
10368 2003-01-06 Ulrich Drepper <drepper@redhat.com>
10369
10370 * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
10371 return significand and not the exponent.
10372 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
10373
10374 * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
10375 taking address of iov in INTERNAL_SYSCALL call. Patch by Franz Sirl.
10376
10377 * malloc/malloc.c: Mark all _int_* functions as static.
10378
10379 2003-01-06 Jakub Jelinek <jakub@redhat.com>
10380
10381 * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
10382 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
10383 handling.
10384 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
10385
10386 2003-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10387
10388 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
10389 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
10390 support.
10391 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
10392 ftruncate64, truncate64, pread64 and pwrite64 entries.
10393 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
10394 (INLINE_SYSCALL): Add __builtin_expect.
10395 (LOADARGS_n): Add argument size safety checks.
10396 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
10397 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
10398 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
10399 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
10400 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
10401 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
10402
10403 2003-01-06 Jakub Jelinek <jakub@redhat.com>
10404
10405 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
10406 * sysdeps/generic/creat.c: Include sysdep-cancel.h.
10407 (LIBC_CANCEL_HANDLED): Add.
10408
10409 * sysdeps/unix/sysv/linux/alpha/sysdep.h
10410 (inline_syscall_r0_constraint): Rename to...
10411 (inline_syscall_r0_out_constraint): ... this. Add =.
10412 (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
10413
10414 2003-01-06 Andreas Schwab <schwab@suse.de>
10415
10416 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
10417 sure this is always inlined.
10418 (elf_machine_rela): Likewise.
10419
10420 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
10421
10422 2003-01-04 Roland McGrath <roland@redhat.com>
10423
10424 * Makeconfig (+mkdep): Add -MP flag.
10425 Suggested by Art Haas <ahaas@airmail.net>.
10426
10427 2003-01-05 Andreas Schwab <schwab@suse.de>
10428
10429 * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
10430
10431 2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
10432
10433 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
10434 SYSCALL_ERROR_HANDLER.
10435 * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
10436 * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
10437 Add support for cancellation handling.
10438 * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
10439 SYSCALL_ERROR_HANDLER.
10440 * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
10441 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
10442 Add support for cancellation handling.
10443 (SYSCALL_ERROR_HANDLER): Define PIC variants.
10444
10445 2003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10446
10447 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
10448 __syscall_pread64 and __syscall_pwrite64 cancelable.
10449 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
10450 (INTERNAL_SYSCALL): New macro.
10451 (LOADARGS_0, LOADARGS_1): Fix.
10452
10453 2003-01-05 Ulrich Drepper <drepper@redhat.com>
10454
10455 * Makerules (build-shlip-helper): Unless told otherwise, add
10456 -Wl,-z,defs to linker command line.
10457 * rt/Makefile (librt.so): Link with ld.so.
10458 * dlfcn/Makefile (libdl.so): Likewise.
10459
10460 2003-01-05 Jakub Jelinek <jakub@redhat.com>
10461
10462 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
10463 cancellation handling.
10464 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
10465 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
10466
10467 2003-01-04 Ulrich Drepper <drepper@redhat.com>
10468
10469 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
10470 order of parameters passed to kill.
10471
10472 2003-01-04 Andreas Schwab <schwab@suse.de>
10473
10474 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
10475
10476 2003-01-03 Paul Eggert <eggert@twinsun.com>
10477
10478 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
10479 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
10480 when compiling Bison 1.875's `bitset bset = obstack_alloc
10481 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
10482
10483 2003-01-04 Ulrich Drepper <drepper@redhat.com>
10484
10485 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove
10486 unnecessary code.
10487 Correct reference counter in case SIGQUIT handler installation failed.
10488
10489 2003-01-03 Ulrich Drepper <drepper@redhat.com>
10490
10491 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
10492 Define using _Pragma(weak ...).
10493
10494 2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
10495
10496 * resolv/res_libc.c: Provide declaration for __res_init_weak and
10497 reorder declarations.
10498
10499 2003-01-03 Art Haas <ahaas@airmail.net>
10500
10501 * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
10502 initializer syntax to C99.
10503 * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
10504 * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
10505 * localedata/tests-mbwc/dat_iswctype.c: Likewise.
10506 * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
10507 * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
10508 * localedata/tests-mbwc/dat_iswlower.c: Likewise.
10509 * localedata/tests-mbwc/dat_iswprint.c: Likewise.
10510 * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
10511 * localedata/tests-mbwc/dat_iswspace.c: Likewise.
10512 * localedata/tests-mbwc/dat_iswupper.c: Likewise.
10513 * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
10514 * localedata/tests-mbwc/dat_mblen.c: Likewise.
10515 * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
10516 * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
10517 * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
10518 * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
10519 * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
10520 * localedata/tests-mbwc/dat_strcoll.c: Likewise.
10521 * localedata/tests-mbwc/dat_strfmon.c: Likewise.
10522 * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
10523 * localedata/tests-mbwc/dat_swscanf.c: Likewise.
10524 * localedata/tests-mbwc/dat_towctrans.c: Likewise.
10525 * localedata/tests-mbwc/dat_towlower.c: Likewise.
10526 * localedata/tests-mbwc/dat_towupper.c: Likewise.
10527 * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
10528 * localedata/tests-mbwc/dat_wcscat.c: Likewise.
10529 * localedata/tests-mbwc/dat_wcschr.c: Likewise.
10530 * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
10531 * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
10532 * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
10533 * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
10534 * localedata/tests-mbwc/dat_wcslen.c: Likewise.
10535 * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
10536 * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
10537 * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
10538 * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
10539 * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
10540 * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
10541 * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
10542 * localedata/tests-mbwc/dat_wcstod.c: Likewise.
10543 * localedata/tests-mbwc/dat_wcstok.c: Likewise.
10544 * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
10545 * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
10546 * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
10547 * localedata/tests-mbwc/dat_wctob.c: Likewise.
10548 * localedata/tests-mbwc/dat_wctomb.c: Likewise.
10549 * localedata/tests-mbwc/dat_wctrans.c: Likewise.
10550 * localedata/tests-mbwc/dat_wctype.c: Likewise.
10551 * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
10552
10553 2003-01-03 Richard Henderson <rth@redhat.com>
10554
10555 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
10556 (inline_syscall_r0_constraint): New.
10557 (inline_syscall[0-6]): Use them.
10558
10559 2003-01-03 Jakub Jelinek <jakub@redhat.com>
10560
10561 * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
10562 Add rtld_hidden_proto.
10563 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
10564 (_dl_allocate_tls): Likewise. Remove INTDEF.
10565
10566 2002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
10567
10568 * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu
10569 Morita <toshiyasu.morita@hsa.hitachi.com>.
10570 * sysdeps/sh/memcpy.S: Likewise.
10571
10572 2003-01-02 Ulrich Drepper <drepper@redhat.com>
10573
10574 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
10575 any, but unify the test.
10576
10577 2003-01-02 Jakub Jelinek <jakub@redhat.com>
10578
10579 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
10580 sigaction): Protect weak_alias and libc_hidden_weak with
10581 #ifndef LIBC_SIGACTION.
10582 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
10583 sigaction): Likewise.
10584 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
10585 sigaction): Likewise.
10586 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
10587 sigaction): Likewise.
10588 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
10589 sigaction): Likewise.
10590 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
10591 sigaction): Likewise.
10592 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
10593 sigaction): Likewise.
10594 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
10595 sigaction): Likewise. Remove SIGCANCEL handling here.
10596 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
10597 Likewise.
10598
10599 2003-01-02 Art Haas <ahaas@airmail.net>
10600
10601 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
10602
10603 2003-01-02 Ulrich Drepper <drepper@redhat.com>
10604
10605 * posix/getconf.c: Update copyright year.
10606 * nss/getent.c: Likewise.
10607 * nscd/nscd_nischeck.c: Likewise.
10608 * iconv/iconvconfig.c: Likewise.
10609 * iconv/iconv_prog.c: Likewise.
10610 * elf/ldconfig.c: Likewise.
10611 * catgets/gencat.c: Likewise.
10612 * csu/version.c: Likewise.
10613 * elf/ldd.bash.in: Likewise.
10614 * elf/sprof.c (print_version): Likewise.
10615 * locale/programs/locale.c: Likewise.
10616 * locale/programs/localedef.c: Likewise.
10617 * nscd/nscd.c (print_version): Likewise.
10618 * debug/xtrace.sh: Likewise.
10619 * malloc/memusage.sh: Likewise.
10620 * malloc/mtrace.pl: Likewise.
10621
10622 2003-01-01 Jakub Jelinek <jakub@redhat.com>
10623
10624 * io/sys/stat.h: Include time.h with __need_timespec even if
10625 __USE_MISC is defined but __USE_XOPEN is not.
10626
10627 2003-01-01 Andreas Jaeger <aj@suse.de>
10628
10629 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
10630 type to avoid strict aliasing problem.
10631 (_nss_dns_gethostbyname2_r): Likewise.
10632 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
10633 (_nss_dns_getnetbyname_r): Likewise.
10634 * resolv/gethnamaddr.c (_gethtent): Likewise.
10635 (gethostbyname2): Likewise.
10636
10637 2002-12-31 Ulrich Drepper <drepper@redhat.com>
10638
10639 * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
10640 to avoid using the exported symbols. Define aliases with the
10641 original names separately.
10642
10643 * include/time.h: Add libc_hidden_proto for __strftime_l.
10644 * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
10645 * time/strftime.c: Always use libc_hidden_def if _LIBC.
10646
10647 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
10648 * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
10649
10650 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
10651 tr_break.
10652
10653 * csu/Makefile (routines): Add dso_handle.
10654 * csu/dso_handle.c: New file.
10655
10656 2002-12-31 Roland McGrath <roland@redhat.com>
10657
10658 * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
10659 Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
10660 (S-CPPFLAGS): Add -DASSEMBLER here instead.
10661 (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
10662
10663 2002-12-31 Ulrich Drepper <drepper@redhat.com>
10664
10665 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
10666 is available.
10667
10668 2002-12-31 Andreas Jaeger <aj@suse.de>
10669
10670 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
10671 with Linux kernel.
10672 * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
10673 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
10674 * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
10675
10676 * sysdeps/unix/sysv/linux/kernel_stat.h
10677 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
10678
10679 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
10680 __unused[1-3] since they're needed by some platforms. Handle
10681 _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
10682
10683 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
10684 for structs stat and stat64.
10685 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
10686 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
10687 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
10688 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
10689
10690 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
10691
10692 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
10693 nsec resolution changes.
10694 (xstat64_conv): Likewise.
10695 (xstat32_conv): Likewise.
10696
10697 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
10698 struct kernel_stat.
10699
10700 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
10701 structs stat and stat64.
10702
10703 * time/time.h (__timespec_defined): Define for __USE_MISC.
10704
10705 2002-12-31 Ulrich Drepper <drepper@redhat.com>
10706
10707 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
10708 and __libc_current_sigrtmax.
10709
10710 2002-12-31 Jakub Jelinek <jakub@redhat.com>
10711
10712 * include/errno.h (__errno_location): Add prototype.
10713 Use libc_hidden_proto unconditionally.
10714 * include/netdb.h (__h_errno_location): Use libc_hidden_proto
10715 unconditionally.
10716 * include/resolv.h (__res_state): Likewise.
10717
10718 * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
10719 * include/sys/socket.h (accept): Add libc_hidden_proto.
10720 * include/errno.h (__errno_location): Likewise.
10721 * include/netdb.h (__h_errno_location): Likewise.
10722 * include/resolv.h (__res_state): Likewise.
10723 * include/unistd.h (__lseek): Likewise.
10724 * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
10725 * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
10726 * sysdeps/generic/res-state.c (__res_state): Likewise.
10727 * sysdeps/generic/accept.c (accept): Likewise.
10728 * sysdeps/generic/lseek.c (__lseek): Likewise.
10729 * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
10730 __libc_current_sigrtmax): Likewise.
10731 * sysdeps/mach/hurd/accept.c (accept): Likewise.
10732 * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
10733 * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
10734 * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
10735 * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
10736 * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
10737 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
10738 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
10739 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
10740 alias to llseek.
10741 (__GI_accept): New alias to accept.
10742 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
10743 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
10744 New alias to llseek.
10745 (__GI_accept): New alias to accept.
10746 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
10747 Likewise.
10748 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
10749 Likewise.
10750 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
10751
10752 * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
10753 strong_alias (name, __GI_name).
10754 * sysdeps/arm/bsd-_setjmp.S : Likewise.
10755 * sysdeps/hppa/bsd-_setjmp.S : Likewise.
10756 * sysdeps/i386/bsd-_setjmp.S : Likewise.
10757 * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
10758 * sysdeps/mips/bsd-_setjmp.S : Likewise.
10759 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
10760 * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
10761 * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
10762 * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
10763 * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
10764 * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
10765 * sysdeps/sh/bsd-_setjmp.S : Likewise.
10766 * sysdeps/sparc/sparc32/setjmp.S : Likewise.
10767 * sysdeps/unix/arm/fork.S : Likewise.
10768 * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
10769 * sysdeps/unix/bsd/i386/vfork.S : Likewise.
10770 * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
10771 * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
10772 * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
10773 * sysdeps/unix/bsd/vax/vfork.S : Likewise.
10774 * sysdeps/unix/i386/fork.S : Likewise.
10775 * sysdeps/unix/mips/fork.S : Likewise.
10776 * sysdeps/unix/sparc/fork.S : Likewise.
10777 * sysdeps/unix/sparc/vfork.S : Likewise.
10778 * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
10779 * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
10780 * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
10781 * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
10782 * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
10783 * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
10784 * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
10785 * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
10786 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
10787 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
10788 * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
10789 * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
10790 * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
10791 * sysdeps/unix/fork.S : Likewise.
10792 * sysdeps/vax/bsd-_setjmp.S : Likewise.
10793 * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
10794
10795 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
10796 inclusion.
10797
10798 2002-12-31 Ulrich Drepper <drepper@redhat.com>
10799
10800 * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
10801 * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
10802 * sysdeps/mach/hurd/fork.c: Likewise.
10803 * sysdeps/unix/sysv/aix/fork.c: Likewise.
10804 * sysdeps/unix/fork.S: Add __GI___fork alias.
10805 * sysdeps/unix/arm/fork.S: Likewise.
10806 * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
10807 * sysdeps/unix/i386/fork.S: Likewise.
10808 * sysdeps/unix/mips/fork.S: Likewise.
10809 * sysdeps/unix/sparc/fork.S: Likewise.
10810 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
10811 * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
10812 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
10813 * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
10814 * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
10815 * sysdeps/unix/bsd/i386/vfork.S: Likewise.
10816 * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
10817 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
10818 * sysdeps/unix/bsd/vax/vfork.S: Likewise.
10819 * sysdeps/unix/sparc/vfork.S: Likewise.
10820 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
10821 * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
10822 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
10823 * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
10824 * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
10825 * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
10826 * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
10827 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
10828
10829 * include/time.h: Add libc_hidden_proto for __nanosleep.
10830 * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
10831 * sysdeps/mach/nanosleep.c: Likewise.
10832 * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
10833 * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
10834
10835 * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
10836 _IO_list_unlock, and _IO_list_resetlock.
10837 * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
10838 _IO_list_unlock, and _IO_list_resetlock.
10839
10840 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
10841 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
10842 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
10843 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
10844
10845 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
10846 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
10847 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
10848 __GI___longjmp alias.
10849
10850 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
10851 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
10852 * sysdeps/arm/bsd-_setjmp.S: Likewise.
10853 * sysdeps/generic/bsd-_setjmp.c: Likewise.
10854 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
10855 * sysdeps/i386/bsd-_setjmp.S: Likewise.
10856 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
10857 * sysdeps/mips/bsd-_setjmp.S: Likewise.
10858 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
10859 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
10860 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
10861 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
10862 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
10863 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
10864 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
10865 * sysdeps/sh/bsd-_setjmp.S: Likewise.
10866 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
10867 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
10868 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
10869 * sysdeps/vax/bsd-_setjmp.S: Likewise.
10870 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
10871
10872 2002-12-30 Ulrich Drepper <drepper@redhat.com>
10873
10874 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
10875
10876 2002-12-30 Roland McGrath <roland@redhat.com>
10877
10878 * Rules (generated): Target removed.
10879 * mach/Makefile (generated): Define it here instead.
10880
10881 * math/Makefile (generated): Add m_*l and m_*f variants too.
10882
10883 2002-12-30 Ulrich Drepper <drepper@redhat.com>
10884
10885 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
10886 the to-be-deleted objects right away instead of later separately.
10887 The latter fails because the scope data structures of the DSO
10888 might already be gone.
10889
10890 * elf/Makefile: Add rules to build and run reldep8 test.
10891 * elf/reldep8.c: New file.
10892 * elf/reldep8mod1.c: New file.
10893 * elf/reldep8mod2.c: New file.
10894 * elf/reldep8mod3.c: New file.
10895 Contributed by Jakub Jelinek.
10896
10897 2002-12-24 GOTO Masanori <gotom@debian.or.jp>
10898
10899 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
10900 checking of return value ENOSYS from getdents64.
10901
10902 2002-12-28 Andreas Schwab <schwab@suse.de>
10903
10904 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
10905 ($(common-objpfx)s-%.d): Generalized from
10906 $(common-objpfx)s-proto.d rule.
10907 (common-generated): Add s-proto-cancel.d.
10908 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
10909 cancellable syscalls.
10910 * sysdeps/unix/s-proto-cancel.S: New file.
10911
10912 2002-12-29 Roland McGrath <roland@redhat.com>
10913
10914 * resolv/res_libc.c: Move _res defn magic after res_init defn
10915 so _res macro is in effect for that code.
10916
10917 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
10918 pattern for prepending $(..) so it doesn't affect $(foo).
10919
10920 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
10921
10922 2002-12-29 Jakub Jelinek <jakub@redhat.com>
10923
10924 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
10925 in hwcap.
10926
10927 2002-12-28 Ulrich Drepper <drepper@redhat.com>
10928
10929 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
10930
10931 2002-12-28 Andreas Jaeger <aj@suse.de>
10932
10933 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
10934 avoid warning.
10935 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
10936
10937 2002-12-27 Jakub Jelinek <jakub@redhat.com>
10938
10939 * inet/herrno.c (__h_errno_location): Remove.
10940 * inet/Makefile (routines): Add herrno-loc.
10941 * resolv/res_libc.c (__res_state): Remove.
10942 * resolv/Makefile (routines): Add res-state.
10943 * sysdeps/generic/herrno-loc.c: New file.
10944 * sysdeps/generic/res-state.c: New file.
10945
10946 2002-12-27 Jakub Jelinek <jakub@redhat.com>
10947
10948 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
10949 Only define if USE_DL_SYSINFO is defined.
10950
10951 2002-12-22 Jakub Jelinek <jakub@redhat.com>
10952
10953 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
10954 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
10955 Define. Patch by Richard Henderson and Jes Sorensen.
10956 (PSEUDO): Remove unnecessary ;;.
10957 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
10958 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
10959 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
10960 if not initializing thread pointer.
10961 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
10962 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
10963 make it weak also if NONTLS_INIT_TP.
10964 * sysdeps/unix/common/pause.c: Handle cancellation.
10965 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
10966 (LOADSYSCALL): Remove.
10967 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
10968 (SYSCALL_ERROR_HANDLER): Use it.
10969 (PSEUDO): Don't jump around error handler.
10970 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
10971 jump around error handler.
10972 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
10973 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
10974 to __syscall_error_handler on failure.
10975 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
10976 (LOADSYSCALL): Remove.
10977 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
10978 (SYSCALL_ERROR_HANDLER): Use it.
10979 (PSEUDO): Don't jump around error handler.
10980 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
10981 jump around error handler.
10982 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
10983 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
10984 to __syscall_error_handler on failure.
10985
10986 2002-12-27 Roland McGrath <roland@redhat.com>
10987
10988 * scripts/gen-as-const.awk: New file.
10989 * Makefile (distribute): Add it.
10990 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
10991 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
10992 to the list.
10993 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
10994
10995 2002-12-27 Andreas Schwab <schwab@suse.de>
10996
10997 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
10998
10999 2002-12-27 Jakub Jelinek <jakub@redhat.com>
11000
11001 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
11002 _environ is NULL.
11003
11004 2002-12-27 Andreas Schwab <schwab@suse.de>
11005
11006 * Makerules ($(common-objpfx)%.make): Filter through
11007 $(sed-remove-objpfx).
11008
11009 2002-12-23 Roland McGrath <roland@redhat.com>
11010
11011 * scripts/abilist.awk: Produce a more compact format, divided into
11012 stanzas for each version set, the set name listed only once.
11013 * scripts/extract-abilist.awk: New file.
11014 * scripts/merge-abilist.awk: New file.
11015 * Makerules (check-abi-%, update-abi-%): New pattern rules.
11016 (update-abi, check-abi): New targets.
11017 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
11018
11019 2002-12-19 Roland McGrath <roland@redhat.com>
11020
11021 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
11022
11023 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
11024 INTERNAL_SYSCALL.
11025
11026 2002-12-21 Andreas Schwab <schwab@suse.de>
11027
11028 * elf/check-textrel.c (handle_file): Swap p_type.
11029
11030 2002-12-21 Andreas Schwab <schwab@suse.de>
11031
11032 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
11033 (INLINE_SYSCALL): Use it.
11034 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
11035 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
11036
11037 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
11038 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
11039
11040 2002-12-20 Art Haas <ahaas@airmail.net>
11041
11042 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
11043 syntax to C99.
11044
11045 2002-12-21 Philip Blundell <philb@gnu.org>
11046
11047 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
11048 top as seventh arg to __libc_start_main.
11049 Reported by paulnash@wildseed.com.
11050
11051 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
11052
11053 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
11054 compatibility cruft when new enough kernel is assumed.
11055
11056 2002-12-20 Jakub Jelinek <jakub@redhat.com>
11057
11058 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
11059 instead of INLINE_SYSCALL.
11060
11061 2002-12-20 Ulrich Drepper <drepper@redhat.com>
11062
11063 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
11064 typo.
11065
11066 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
11067 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
11068 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
11069 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
11070 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
11071 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
11072 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
11073 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
11074 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
11075 Patch by William Lee Irwin <wli@holomorphy.com>.
11076
11077 2002-12-20 Andreas Schwab <schwab@suse.de>
11078
11079 * locale/programs/ld-measurement.c (measurement_output): Fix
11080 index calculation.
11081
11082 2002-12-20 Ulrich Drepper <drepper@redhat.com>
11083
11084 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
11085 Redefine _IO_flockifle and _IO_funlockfile as inlines.
11086
11087 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
11088 builds add "tls" in the search path.
11089 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
11090 (path_hwcap): Recognize "tls".
11091
11092 2002-12-19 Ulrich Drepper <drepper@redhat.com>
11093
11094 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
11095 __waitpid instead of waitpid.
11096
11097 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
11098 int $0x80.
11099 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
11100 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
11101 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
11102
11103 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
11104 information for system calls.
11105
11106 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
11107 for ld.so.
11108
11109 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
11110
11111 2002-12-19 Roland McGrath <roland@redhat.com>
11112
11113 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
11114 * iconvdata/ibm922.h: Likewise.
11115 * iconvdata/ibm930.h: Likewise.
11116 * iconvdata/ibm932.h: Likewise.
11117 * iconvdata/ibm933.h: Likewise.
11118 * iconvdata/ibm935.h: Likewise.
11119 * iconvdata/ibm937.h: Likewise.
11120 * iconvdata/ibm939.h: Likewise.
11121 * iconvdata/ibm943.h: Likewise.
11122 * iconvdata/isiri-3342.h: Likewise.
11123
11124 2002-12-19 Ulrich Drepper <drepper@redhat.com>
11125
11126 * test-skeleton.c (main): Make sure correct value is seen as
11127 argv[0] after adjustment of argv, and argc.
11128
11129 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
11130 RTLD_CORRECT_DYNAMIC_WEAK is defined.
11131
11132 2002-12-19 Jakub Jelinek <jakub@redhat.com>
11133
11134 * nscd/connections.c (nscd_run): Shut up warning.
11135 * tst-ungetc.c (assert): Undefined before redefining.
11136
11137 2002-12-19 Ulrich Drepper <drepper@redhat.com>
11138
11139 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
11140 is used.
11141
11142 2002-12-17 Art Haas <ahaas@airmail.net>
11143
11144 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
11145 * iconvdata/cp775.h: Likewise.
11146 * iconvdata/ibm1046.h: Likewise.
11147 * iconvdata/ibm1124.h: Likewise.
11148 * iconvdata/ibm1129.h: Likewise.
11149 * iconvdata/ibm1132.h: Likewise.
11150 * iconvdata/ibm1133.h: Likewise.
11151 * iconvdata/ibm1160.h: Likewise.
11152 * iconvdata/ibm1161.h: Likewise.
11153 * iconvdata/ibm1162.h: Likewise.
11154 * iconvdata/ibm1163.h: Likewise.
11155 * iconvdata/ibm1164.h: Likewise.
11156
11157 2002-12-19 Ulrich Drepper <drepper@redhat.com>
11158
11159 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
11160 __ASSUME_CLONE_THREAD_FLAGS is defined.
11161 * sysdeps/unix/sysv/linux/kernel-features.h
11162 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
11163
11164 2002-12-18 Ulrich Drepper <drepper@redhat.com>
11165
11166 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
11167 of asm.
11168 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
11169
11170 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
11171 _dl_sysinfo.
11172 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
11173 code.
11174 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
11175 _rtld_global.
11176 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
11177 code.
11178 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
11179 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
11180 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
11181 Add _dl_sysinfo.
11182
11183 2002-12-18 Jakub Jelinek <jakub@redhat.com>
11184
11185 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
11186 __libc_writev to...
11187 [libc: GLIBC_PRIVATE]: ...here.
11188 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
11189 __libc_msgsnd to...
11190 [libc: GLIBC_PRIVATE]: ...here.
11191
11192 2002-12-18 Ulrich Drepper <drepper@redhat.com>
11193
11194 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
11195 Use it instead of directly int $0x80.
11196 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
11197 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
11198 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
11199 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
11200 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
11201 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
11202
11203 2002-12-17 Ulrich Drepper <drepper@redhat.com>
11204
11205 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
11206
11207 * elf/elf.h (AT_SYSINFO): New define.
11208 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
11209 AT_SYSINFO.
11210
11211 2002-12-17 Jakub Jelinek <jakub@redhat.com>
11212
11213 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
11214 Make cancelable.
11215 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
11216 Likewise.
11217 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
11218 Likewise.
11219 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
11220 Likewise.
11221 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
11222 Likewise.
11223 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
11224
11225 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
11226 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
11227 available, otherwise __libc_maybe_call.
11228 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
11229 cancellation handling.
11230 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
11231
11232 2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
11233
11234 * posix/regcomp.c (free_workarea_compile): Free the new member
11235 ORG_INDICES.
11236 (analyze): Initialize ORG_INDICES.
11237 (duplicate_node_closure): Search for a existing node, which is
11238 duplicated from the node ORG_DEST and satisfies the constraint
11239 CONSTRAINT. And use it to avoid inifimite loop.
11240 (search_duplicated_node): New function.
11241 (duplicate_node): Store the index of the original node.
11242 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
11243 if needed.
11244 * posix/regex_internal.h (re_dfa_t): Add new members.
11245
11246 2002-12-17 Ulrich Drepper <drepper@redhat.com>
11247
11248 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
11249
11250 2002-12-16 Ulrich Drepper <drepper@redhat.com>
11251
11252 * sysdeps/posix/system.c (do_system): Add support for installation
11253 of cancellation handlers.
11254 * sysdeps/unix/sysv/linux/i386/system.c: New file.
11255
11256 * stdlib/Makefile (tests): Add tst-system.
11257 * stdlib/tst-system.c: New file.
11258
11259 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
11260 CENABLE]: Don't lose content of %ebx.
11261
11262 2002-12-17 Jakub Jelinek <jakub@redhat.com>
11263
11264 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
11265 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
11266
11267 2002-12-16 Ulrich Drepper <drepper@redhat.com>
11268
11269 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
11270 fails to return a function pointer don't use it.
11271
11272 2002-12-16 Art Haas <ahaas@airmail.net>
11273
11274 * io/ftw.c: Convert GCC extension initializer syntax to C99.
11275 * iconvdata/iso-ir-165.c: Likewise.
11276 * iconvdata/jis0208.c: Likewise.
11277 * iconvdata/jis0212.c: Likewise.
11278
11279 2002-12-16 Ulrich Drepper <drepper@redhat.com>
11280
11281 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
11282 epoll_ctl, and epoll_wait.
11283 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
11284 epoll_create, epoll_ctl, and epoll_wait.
11285 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
11286 Davide Libenzi <davidel@xmailserver.org>.
11287 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
11288 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
11289 Add sys/epoll.h.
11290
11291 2002-12-16 Art Haas <ahaas@airmail.net>
11292
11293 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
11294 syntax to C99
11295 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
11296 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
11297 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
11298
11299 2002-12-16 Ulrich Drepper <drepper@redhat.com>
11300
11301 * stdio-common/Makefile (routines): Remove lockfile. Add
11302 flockfile, ftrylockfile, and funlockfile.
11303 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
11304 * sysdeps/generic/flockfile.c: New file.
11305 * sysdeps/generic/ftrylockfile.c: New file.
11306 * sysdeps/generic/funlockfile.c: New file.
11307
11308 2002-12-16 Jakub Jelinek <jakub@redhat.com>
11309
11310 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
11311 macros instead of doing the calls directly.
11312 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
11313 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
11314 targets.
11315
11316 2002-12-16 Jakub Jelinek <jakub@redhat.com>
11317
11318 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
11319 * sysdeps/ieee754/bits/nan.h: Likewise.
11320
11321 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
11322 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
11323
11324 2002-12-16 Roland McGrath <roland@redhat.com>
11325
11326 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
11327 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
11328 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
11329
11330 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
11331 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
11332 s_putpmsg.
11333 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
11334 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
11335 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
11336 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
11337 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
11338 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
11339 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
11340 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
11341
11342 2002-12-13 Paul Eggert <eggert@twinsun.com>
11343
11344 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
11345 is now u_int, not int.
11346 (struct XDR.x_handy): Now u_int, not int.
11347 * sunrpc/xdr_mem.c: Include <limits.h>.
11348 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
11349 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
11350 x_handy is now unsigned, not signed.
11351 Do not decrement x_handy if no change is made.
11352 (xdrmem_setpos): Check for int overflow.
11353 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
11354 (xdr_sizeof): Remove cast that is now unnecessary, now that
11355 x_handy is unsigned.
11356
11357 2002-12-15 Art Haas <ahaas@airmail.net>
11358
11359 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
11360 * iconvdata/gap.awk: Likewise.
11361 * iconvdata/gen-8bit-gap-1.sh: Likewise.
11362 * iconvdata/gen-8bit-gap.sh: Likewise.
11363 * locale/C-address.c: Likewise.
11364 * locale/C-collate.c: Likewise.
11365 * locale/C-ctype.c: Likewise.
11366 * locale/C-identification.c: Likewise.
11367 * locale/C-measurement.c: Likewise.
11368 * locale/C-messages.c: Likewise.
11369 * locale/C-monetary.c: Likewise.
11370 * locale/C-name.c: Likewise.
11371 * locale/C-numeric.c: Likewise.
11372 * locale/C-paper.c: Likewise.
11373 * locale/C-telephone.c: Likewise.
11374 * locale/C-time.c: Likewise.
11375 * nscd/connections.c: Likewise.
11376 * nscd/grpcache.c: Likewise.
11377 * nscd/hstcache.c: Likewise.
11378 * nscd/pwdcache.c: Likewise.
11379 * stdio-common/vfprintf.c: Likewise.
11380 * stdlib/random.c: Likewise.
11381 * sysdeps/generic/siglist.c: Likewise.
11382 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
11383 * sysdeps/ieee754/bits/nan.h: Likewise.
11384 * sysdeps/posix/sprofil.c: Likewise.
11385 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
11386 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
11387 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
11388
11389 2002-12-15 Roland McGrath <roland@redhat.com>
11390
11391 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
11392
11393 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
11394 <tls.h> here, no need for it.
11395 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
11396
11397 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
11398 parameter, not varargs parameter.
11399
11400 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
11401 argument so it's not an unused variable.
11402
11403 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
11404 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
11405 for users.
11406
11407 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
11408
11409 2002-12-15 Ulrich Drepper <drepper@redhat.com>
11410
11411 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
11412 original __libc_fcntl code. Just renamed.
11413
11414 2002-12-15 Andreas Schwab <schwab@suse.de>
11415
11416 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
11417
11418 2002-12-14 Olaf Hering <olh@suse.de>
11419
11420 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
11421 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
11422
11423 2002-12-15 Ulrich Drepper <drepper@redhat.com>
11424
11425 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
11426
11427 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
11428 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
11429
11430 * sysdeps/unix/sysv/linux/open64.c: New file.
11431
11432 * sysdeps/generic/pselect.c: Add support for cancellation handling.
11433 * sysdeps/posix/open64.c: Likewise.
11434 * sysdeps/posix/sigpause.c: Likewise.
11435 * sysdeps/posix/sigwait.c: Likewise.
11436 * sysdeps/posix/system.c: Likewise.
11437 * sysdeps/posix/waitid.c: Likewise.
11438 * sysdeps/unix/sysv/linux/accept.S: Likewise.
11439 * sysdeps/unix/sysv/linux/connect.S: Likewise.
11440 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
11441 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
11442 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
11443 * sysdeps/unix/sysv/linux/poll.c: Likewise.
11444 * sysdeps/unix/sysv/linux/pread.c: Likewise.
11445 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
11446 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
11447 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
11448 * sysdeps/unix/sysv/linux/readv.c: Likewise.
11449 * sysdeps/unix/sysv/linux/recv.S: Likewise.
11450 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
11451 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
11452 * sysdeps/unix/sysv/linux/send.S: Likewise.
11453 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
11454 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
11455 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
11456 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
11457 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
11458 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
11459 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
11460 * sysdeps/unix/sysv/linux/wait.c: Likewise.
11461 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
11462 * sysdeps/unix/sysv/linux/writev.c: Likewise.
11463 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
11464 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
11465
11466 2002-12-14 Jakub Jelinek <jakub@redhat.com>
11467
11468 * sysdeps/generic/sysdep-cancel.h: New file.
11469 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
11470 cancelable syscall.
11471 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
11472 recvmsg, send, sendmsg, sendto): Make cancelable.
11473 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
11474 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
11475 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
11476 sendto, osf_select): Likewise.
11477 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
11478 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
11479 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
11480 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
11481 sendto): Likewise.
11482 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
11483 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
11484 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
11485 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
11486 sendto): Likewise.
11487 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
11488 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
11489 sendto, select): Likewise.
11490 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
11491 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
11492 Likewise.
11493 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
11494 select, fcntl): Likewise.
11495 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
11496 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
11497 read, readv, select, sigsuspend, write, writev): Likewise.
11498
11499 2002-12-14 Jakub Jelinek <jakub@redhat.com>
11500
11501 * dirent/bug-readdir1.c: Include unistd.h.
11502
11503 2002-12-13 Jakub Jelinek <jakub@redhat.com>
11504
11505 * locale/programs/locale.c: Include locarchive.h.
11506 (ARCHIVE_NAME): Define.
11507 (write_archive_locales): New function.
11508 (write_locales): Use it. Ensure the same locale is not printed
11509 multiple times in verbose mode.
11510 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
11511 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
11512 functions.
11513 (struct nameent): New type.
11514 (nameentcmp): New function.
11515
11516 2002-12-14 Jakub Jelinek <jakub@redhat.com>
11517
11518 * posix/regex_internal.c (re_string_context_at): Guard wide char
11519 code with #ifdef RE_ENABLE_I18N.
11520
11521 2002-11-22 Paolo Bonzini <bonzini@gnu.org>
11522
11523 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
11524
11525 2002-12-13 Roland McGrath <roland@redhat.com>
11526
11527 * posix/bug-regex15.c: New file.
11528 * posix/Makefile (tests): Add it.
11529
11530 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
11531 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
11532
11533 2002-12-13 Ulrich Drepper <drepper@redhat.com>
11534
11535 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
11536
11537 * misc/syslog.c (log_cleanup): Don't use parameter in
11538 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
11539 pass NULL instead of a pointer to syslog_lock.
11540
11541 2002-12-12 Ulrich Drepper <drepper@redhat.com>
11542
11543 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
11544 linker map for all iconv modules.
11545 (distribute): Add gconv.map.
11546 * iconvdata/gconv.map: New file.
11547
11548 * elf/Makefile: Also check all iconv modules for text relocations.
11549
11550 * stdlib/Makefile: Remove code to automatically import GMP.
11551
11552 * elf/Makefile (tests): Add rules to build and run check-textrel.
11553 * elf/check-textrel.c: New file.
11554
11555 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
11556 directive.
11557
11558 2002-12-11 Jakub Jelinek <jakub@redhat.com>
11559
11560 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
11561 not st.st[am]time.
11562
11563 2002-04-30 Bruno Haible <bruno@clisp.org>
11564
11565 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
11566 the encoding if it already has slashes.
11567 Reported by Perry Rapp <prapp@erols.com>.
11568
11569 2002-12-11 Roland McGrath <roland@redhat.com>
11570
11571 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
11572 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
11573 Turn off PIC for compiling this file.
11574
11575 2002-12-11 Ulrich Drepper <drepper@redhat.com>
11576
11577 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
11578 definitions. Not needed.
11579 [_LIBC]: Use definitions from libc-lock.h instead of referencing
11580 pthread routines directly.
11581 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
11582 mutex_init calls.
11583 (arena_get2): Don't look at return value of mutex_lock.
11584
11585 2002-12-11 Roland McGrath <roland@redhat.com>
11586
11587 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
11588 elf-init.o instead of compiling a PIC version.
11589
11590 2002-12-11 Bruno Haible <bruno@clisp.org>
11591
11592 * intl/gettext.h: Renamed to ...
11593 * intl/gmo.h: ... here.
11594 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
11595 * intl/gettextP.h: Update.
11596 * intl/loadmsgcat.c: Update.
11597
11598 * intl/gettextP.h (PARAMS): Make more portable.
11599 (attribute_hidden): Define as empty macro if not already defined.
11600 * intl/hash-string.h (PARAMS): Make more portable.
11601 * intl/loadinfo.h (PARAMS): Likewise.
11602 * intl/plural-exp.h (PARAMS): Likewise.
11603 (attribute_hidden): Move definition near the definition of
11604 internal_function.
11605
11606 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
11607 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
11608
11609 2002-07-13 Bruno Haible <bruno@clisp.org>
11610
11611 * intl/dcigettext.c (freea): New macro.
11612 (FREE_BLOCKS): Free also the registered blocks.
11613 (DCIGETTEXT): Free the 'search' variable.
11614 Reported by Andreas Fischer <a.fischer@asentics.de>.
11615
11616 2002-04-27 Bruno Haible <bruno@clisp.org>
11617
11618 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
11619 * intl/dcigettext.c: Likewise.
11620 * intl/dcgettext.c: Likewise.
11621 * intl/dgettext.c: Likewise.
11622 * intl/gettext.c: Likewise.
11623 * intl/dcngettext.c: Likewise.
11624 * intl/dngettext.c: Likewise.
11625 * intl/ngettext.c: Likewise.
11626 * intl/textdomain.c: Likewise.
11627 * intl/bindtextdom.c: Likewise.
11628 * intl/plural-exp.h: Likewise.
11629
11630 2002-01-02 Bruno Haible <bruno@clisp.org>
11631
11632 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
11633
11634 2001-04-30 Bruno Haible <bruno@clisp.org>
11635
11636 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
11637 default macro definitions. Needed for mingw32.
11638
11639 2002-12-10 Ulrich Drepper <drepper@redhat.com>
11640
11641 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
11642 __builtin_constant_p to macro parameter.
11643
11644 * sysdeps/generic/sigpause.c: Define all functions as weak.
11645 * sysdeps/posix/sigpause.c: Likewise.
11646
11647 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
11648 type size_t.
11649
11650 2002-12-10 Jakub Jelinek <jakub@redhat.com>
11651
11652 * elf/tst-array1.c (preinit_array, init_array, fini_array):
11653 Explicitly align the array to sizeof (void *).
11654 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
11655
11656 * include/libc-symbols.h: Fix a comment typo.
11657
11658 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
11659 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
11660 Likewise.
11661 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
11662 Likewise.
11663 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
11664 (__libc_sigsuspend): Likewise.
11665 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
11666 (__libc_sigsuspend): Likewise.
11667 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
11668 (creat): New weak alias.
11669
11670 2002-12-10 Roland McGrath <roland@redhat.com>
11671
11672 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
11673 contributes a manual chapter.
11674 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
11675 around xref to it.
11676
11677 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
11678 and move contents to ...
11679 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
11680 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
11681 it instead of duplicating its contents.
11682 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
11683
11684 2002-12-09 Jakub Jelinek <jakub@redhat.com>
11685
11686 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
11687 defined.
11688 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
11689 function.
11690 (EXTRA_LD_ENVVARS): Use it.
11691 (DL_OSVERSION_INIT): Define.
11692 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
11693 dl-librecon.h.
11694 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
11695
11696 2002-12-10 Ulrich Drepper <drepper@redhat.com>
11697
11698 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
11699
11700 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
11701 call. It is not allowed to destroy pthread mutexes which are
11702 still in use even though it is safe for our implementations. If
11703 somebody still uses the descriptor it is a bug.
11704
11705 2002-12-09 Richard Henderson <rth@redhat.com>
11706
11707 * csu/abi-note.S: Use .p2align, not .align.
11708
11709 2002-12-09 Ulrich Drepper <drepper@redhat.com>
11710
11711 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
11712 __libc_select aliases.
11713
11714 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
11715 alias.
11716
11717 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
11718
11719 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
11720
11721 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
11722
11723 * sysdeps/unix/syscalls.list: Define __libc_select alias.
11724
11725 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
11726
11727 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
11728 __libc___xpg_sigpause aliases.
11729
11730 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
11731
11732 * misc/error.c: Remove use of USE_IN_LIBIO.
11733
11734 2002-12-08 Roland McGrath <roland@redhat.com>
11735
11736 * elf/Makefile (tests): Uncomment tst-array[123].
11737 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
11738 * csu/elf-init.c: New file.
11739 * csu/Makefile (routines, static-only-routines): Add elf-init.
11740 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
11741 and __libc_csu_fini in place of _fini.
11742 * sysdeps/arm/elf/start.S: Likewise.
11743 * sysdeps/cris/elf/start.S: Likewise.
11744 * sysdeps/hppa/elf/start.S: Likewise.
11745 * sysdeps/i386/elf/start.S: Likewise.
11746 * sysdeps/ia64/elf/start.S: Likewise.
11747 * sysdeps/m68k/elf/start.S: Likewise.
11748 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
11749 * sysdeps/mips/elf/start.S: Likewise.
11750 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
11751 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
11752 * sysdeps/s390/s390-32/elf/start.S: Likewise.
11753 * sysdeps/s390/s390-64/elf/start.S: Likewise.
11754 * sysdeps/sh/elf/start.S: Likewise.
11755 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11756 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11757 * sysdeps/x86_64/elf/start.S: Likewise.
11758
11759 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
11760 struct containing function ptr and value, free it.
11761 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
11762 It's not safe to let the new thread use the SIGEV pointer.
11763
11764 2001-10-20 Paul Eggert <eggert@twinsun.com>
11765
11766 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
11767 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
11768 Use strerror_r that is only a macro, even if it is not a function.
11769 (strerror): Check for HAVE_DECL_STRERROR before declaring.
11770 (private_strerror): Use prototypes, not old-style function definition.
11771 (print_errno_message): New function.
11772 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
11773 char*-flavored one.
11774 (error_tail, error, error_at_line): Use it.
11775
11776 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
11777
11778 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
11779
11780 2002-12-08 Ulrich Drepper <drepper@redhat.com>
11781
11782 * scripts/output-format.sed: Fix bug in one of the s expressions
11783 which used / for one too many things.
11784
11785 * include/unistd.h: Declare __libc_close.
11786
11787 2002-12-07 Ulrich Drepper <drepper@redhat.com>
11788
11789 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
11790
11791 2002-12-07 Roland McGrath <roland@redhat.com>
11792
11793 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
11794 from 2002-12-06, but remove unnecessary memset call without removing
11795 necessary copy of initialization image.
11796
11797 * Makerules ($(common-objpfx)format.lds): New target.
11798 (common-generated): Add it.
11799 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
11800 * scripts/output-format.sed: New file.
11801 * Makefile (distribute): Add it.
11802
11803 2002-12-07 Ulrich Drepper <drepper@redhat.com>
11804
11805 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
11806 Reported by Art Haas <ahaas@airmail.net>.
11807
11808 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
11809
11810 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
11811
11812 2002-12-07 Jakub Jelinek <jakub@redhat.com>
11813
11814 * string/test-strncpy.c (do_random_tests): Improve test coverage.
11815
11816 2002-12-06 Ulrich Drepper <drepper@redhat.com>
11817
11818 * test-skeleton.c (timeout_handler): Allow expected signal to be
11819 SIGALRM.
11820
11821 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
11822
11823 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
11824
11825 2002-12-07 Jakub Jelinek <jakub@redhat.com>
11826
11827 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
11828 (SYSCALL_ERROR_HANDLER): Fix a pasto.
11829 Reported by Jeff Bailey <jbailey@nisa.net>.
11830
11831 2002-12-06 Ulrich Drepper <drepper@redhat.com>
11832
11833 * sysdeps/generic/libc-tls.c: Undo last patch.
11834
11835 * include/wctype.h: Define iswalnum with libc_hidden_proto.
11836
11837 * include/signal.h: Define raise with libc_hidden_proto.
11838
11839 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
11840 __execve instead of snprintf and execve.
11841
11842 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
11843 again a bit.
11844
11845 2002-12-06 Jakub Jelinek <jakub@redhat.com>
11846
11847 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
11848 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
11849
11850 2002-12-06 Ulrich Drepper <drepper@redhat.com>
11851
11852 * misc/syslog.c (log_cleanup): New function.
11853 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
11854 (closelog): Likewise.
11855
11856 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
11857 * elf/dl-iteratephdr.c: Likewise.
11858 * elf/dl-lookup.c: Likewise.
11859 * elf/dl-misc.c: Likewise.
11860 * elf/dl-open.c: Likewise.
11861 * elf/dl-support.c: Likewise.
11862 * elf/rtld.c: Likewise.
11863 * sysdeps/generic/ldsodefs.h: Likewise.
11864 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
11865 * sysdeps/mach/bits/libc-lock.h: Likewise.
11866 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
11867
11868 2002-12-06 Roland McGrath <roland@redhat.com>
11869
11870 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
11871
11872 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
11873 (malloc_starter, memalign_starter, free_starter): Don't define these.
11874 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
11875 Don't declare them either.
11876 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
11877 __pthread_initialize, so no need to set hooks to *_starter.
11878 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
11879 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
11880 (__libc_malloc_pthread_startup): New function.
11881 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
11882
11883 * malloc/hooks.c (memalign_starter): New function.
11884 * malloc/malloc.c: Declare it.
11885 * malloc/arena.c (save_memalign_hook): New variable.
11886 (ptmalloc_init): Set __memalign_hook to memalign_starter.
11887
11888 * elf/dl-minimal.c (free): Clear the memory.
11889 (calloc): Just call malloc, knowing all memory it returns is cleared.
11890
11891 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
11892 malloc and memset; calloc can avoid the zeroing when redundant.
11893 (_dl_tls_setup): Likewise.
11894 * elf/dl-load.c (decompose_rpath): Likewise.
11895 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
11896 call, since memory from sbrk at startup is already zero.
11897
11898 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
11899 error string for failure, null for success. Update callers.
11900 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
11901 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
11902
11903 2002-12-05 Jakub Jelinek <jakub@redhat.com>
11904
11905 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
11906 args to i:iipi.
11907 (readahead): Change args to i:iii.
11908 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
11909 Change args to i:iii.
11910 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
11911 args to i:iiii.
11912
11913 2002-12-05 Roland McGrath <roland@redhat.com>
11914
11915 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
11916 call all functions rather than none.
11917 Reported by Mark P. Mitchell <mark@codesourcery.com>.
11918
11919 2002-12-04 Roland McGrath <roland@redhat.com>
11920
11921 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
11922 on _nl_current_LC_* variables.
11923
11924 2002-12-05 Ulrich Drepper <drepper@redhat.com>
11925
11926 * dirent/bug-readdir1.c (main): Don't call closedir, just close
11927 the file descriptor. This is testing what the bug report was about.
11928
11929 2002-12-04 Ulrich Drepper <drepper@redhat.com>
11930
11931 * po/be.po: New file.
11932
11933 * argp/Makefile (tests): Add tst-argp1.
11934
11935 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
11936 Change type of _attribute to void*.
11937 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
11938 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
11939 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
11940 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
11941 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
11942
11943 2002-12-04 Roland McGrath <roland@redhat.com>
11944
11945 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
11946 members to the end, so a libpthread compiled with !USE_TLS will still
11947 find other members properly.
11948
11949 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
11950 operand for DEST memory. Fix dummy input operand to use SRC.
11951 Reported by Davin McCall <davmac@ozonline.com.au>.
11952
11953 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
11954 alignment when initializing the DTV entry.
11955
11956 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
11957 when TLS has not been set up, try to set it up if we can.
11958 * elf/tst-tls4.c: Revert last change.
11959 * elf/tst-tls5.c: Likewise.
11960 * elf/tst-tls6.c: Likewise.
11961 * elf/tst-tls7.c: Likewise.
11962 * elf/tst-tls8.c: Likewise.
11963 * elf/tst-tls9.c: Likewise.
11964
11965 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
11966 * sysdeps/generic/ldsodefs.h: Declare it.
11967 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
11968 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
11969 function, broken out of __libc_setup_tls.
11970 (init_static_tls): Likewise.
11971 (__libc_setup_tls): Call them.
11972 (_dl_tls_setup): New function, uses new subroutines.
11973
11974 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
11975 Clear the pointer when returning true.
11976 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
11977 first element of the slotinfo list too.
11978
11979 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
11980 [SHARED].
11981
11982 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
11983 (_dl_determine_tlsoffset): Likewise.
11984
11985 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
11986 startup_error_tsd, made global.
11987 (dl_main): Update initialization.
11988 * elf/dl-tsd.c: Likewise.
11989 * sysdeps/generic/ldsodefs.h: Declare it.
11990
11991 2002-12-03 Ulrich Drepper <drepper@redhat.com>
11992
11993 * manual/texinfo.tex: Update from latest upstream version.
11994
11995 2002-12-03 Roland McGrath <roland@redhat.com>
11996
11997 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
11998 area surplus in calculation for sbrk call.
11999
12000 * iconvdata/cp1125.c: New file.
12001 * iconvdata/Makefile (distribute): Add it.
12002 (modules): Add CP1125.
12003 (gen-8bit-gap-modules): Add cp1125.
12004 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
12005 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
12006
12007 2002-12-03 Andreas Jaeger <aj@suse.de>
12008
12009 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
12010
12011 2002-12-03 Ulrich Drepper <drepper@redhat.com>
12012
12013 * sysdeps/posix/system.c (do_system): Make signal handler
12014 installation thread safe.
12015
12016 2002-12-02 Roland McGrath <roland@redhat.com>
12017
12018 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
12019 caller from EXTRA to -.
12020 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
12021 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
12022 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
12023
12024 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
12025
12026 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
12027 bits of RM are cleared.
12028
12029 2002-12-02 Roland McGrath <roland@redhat.com>
12030
12031 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
12032 TLS setup is required.
12033 * elf/tst-tls5.c: Likewise.
12034 * elf/tst-tls6.c: Likewise.
12035 * elf/tst-tls7.c: Likewise.
12036 * elf/tst-tls8.c: Likewise.
12037 * elf/tst-tls9.c: Likewise.
12038
12039 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
12040 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
12041 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
12042 for being null before calling free_slotinfo.
12043 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
12044 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
12045
12046 2002-11-30 Bruno Haible <bruno@clisp.org>
12047
12048 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
12049 (struct __gconv_step): New field __btowc_fct.
12050 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
12051 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
12052 __BUILTIN_TRANS.
12053 (__gconv_btwoc_ascii): New declaration.
12054 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
12055 (__gconv_btwoc_ascii): New function.
12056 * iconv/gconv_builtin.h: Add BtowcFct argument to all
12057 BUILTIN_TRANSFORMATION invocations.
12058 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
12059 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
12060 * iconv/gconv_builtin.c (map): New field btowc_fct.
12061 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
12062 btowc_fct field.
12063 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
12064 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
12065 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
12066 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
12067 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
12068 (gconv_init): Initialize __btowc_fct field.
12069 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
12070 * iconv/loop.c: Document ONEBYTE_BODY.
12071 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
12072 Undefine ONEBYTE_BODY at the end.
12073 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
12074 * iconvdata/8bit-gap.c (NONNUL): New macro.
12075 (BODY for FROM_LOOP): Use it.
12076 (ONEBYTE_BODY): New macro.
12077 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
12078 (NONNUL): New macro.
12079 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
12080 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
12081 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
12082 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
12083 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
12084 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
12085 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
12086 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
12087 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
12088 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
12089 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
12090 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
12091 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
12092 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
12093 * iconvdata/ibm932.c: Include <stdbool.h>.
12094 (TRUE, FALSE): Remove macros.
12095 (BODY for FROM_LOOP): Remove unused variable rp1.
12096 (ONEBYTE_BODY): New macro.
12097 (BODY for TO_LOOP): Use bool.
12098 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
12099 * iconvdata/ibm943.c: Include <stdbool.h>.
12100 (TRUE, FALSE): Remove macros.
12101 (BODY for FROM_LOOP): Remove unused variable rp1.
12102 (ONEBYTE_BODY): New macro.
12103 (BODY for TO_LOOP): Use bool.
12104 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
12105 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
12106 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
12107 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
12108 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
12109 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
12110 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
12111 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
12112 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
12113 * iconvdata/gbbig5.c: Tweak comment.
12114
12115 2002-12-02 Ulrich Drepper <drepper@redhat.com>
12116
12117 * po/fi.po: Update from translation team.
12118
12119 2002-12-01 Roland McGrath <roland@redhat.com>
12120
12121 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
12122 testing getdents64 return value.
12123
12124 * scripts/versions.awk: Don't pass -n flag to sort command.
12125
12126 * posix/bug-regex13.c: Include <string.h>.
12127
12128 * sysdeps/generic/libc-start.c (__libc_start_main): Do
12129 DL_SYSDEP_OSCHECK here.
12130 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
12131 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
12132
12133 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
12134 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
12135
12136 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
12137 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
12138
12139 * include/link.h: Comment typo fix.
12140
12141 2002-12-01 Roland McGrath <roland@frob.com>
12142
12143 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
12144 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
12145 _POSIX_MEMORY_PROTECTION): Likewise.
12146 (_POSIX_POLL, _POSIX_SELECT): Removed.
12147
12148 2002-11-28 Ulrich Drepper <drepper@redhat.com>
12149
12150 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
12151 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
12152
12153 2002-11-28 Jakub Jelinek <jakub@redhat.com>
12154
12155 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
12156 USE___THREAD.
12157 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
12158 "=v" constraints.
12159
12160 2002-11-28 Ulrich Drepper <drepper@redhat.com>
12161
12162 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
12163 branch prediction buffers by using unpaired call/ret.
12164
12165 2002-11-27 Ulrich Drepper <drepper@redhat.com>
12166
12167 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
12168 first parameters constraint string.
12169 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
12170
12171 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
12172
12173 * posix/regcomp.c (parse_expression): Set the bit since the back
12174 reference is used in the regular expression.
12175 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
12176 of malloc failure.
12177 (re_node_set_init_copy): Likewise.
12178 * posix/regex_internal.h (state_array_t): New structure.
12179 (re_sub_match_last_t): Likewise.
12180 (re_sub_match_top_t): Likewise.
12181 (re_match_context_t): Add new members.
12182 (re_dfa_t): Likewise.
12183 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
12184 to check the matching is really correct, and retry if failed.
12185 Move the routin pruning the impossible nodes from here, ...
12186 (prune_impossible_nodes): To this function.
12187 (check_matching): Invoke check_subexp_matching_top, and replace
12188 redundant checking with transit_state_bkref invocation.
12189 (proceed_next_node): Replace strncmp with memcmp. Reported by
12190 Paolo Bonzini <bonzini@gnu.org>.
12191 (update_cur_sifted_state): Remove search_subexp invocation.
12192 (search_subexp): Remove this function.
12193 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
12194 optimization.
12195 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
12196 Remove unused invocation of match_ctx_add_entry.
12197 (transit_state): Invoke check_subexp_matching_top.
12198 (check_subexp_matching_top): New function.
12199 (transit_state_bkref): Remove unused array.
12200 Merge transit_state_bkref_loop.
12201 (transit_state_bkref_loop): Use get_subexp instead of
12202 sift_states_backward. Use search_cur_bkref_entry for optimization.
12203 Merge this function to transit_state_bkref.
12204 (get_subexp): New function.
12205 (get_subexp_sub): Likewise.
12206 (find_subexp_node): Likewise.
12207 (check_arrival): Likewise.
12208 (check_arrival_expand_ecl): Likewise.
12209 (check_arrival_expand_ecl_sub): Likewise.
12210 (expand_bkref_cache): Likewise.
12211 (match_ctx_init): Initialize new members.
12212 (match_ctx_clean): New function.
12213 (match_ctx_free): Release new members.
12214 (match_ctx_free_subtops): New function.
12215 (match_ctx_add_entry): Fix indent.
12216 (search_cur_bkref_entry): New function.
12217 (match_ctx_add_subtop): Likewise.
12218 (match_ctx_add_sublast): Likewise.
12219
12220 2002-11-25 Ulrich Drepper <drepper@redhat.com>
12221
12222 * iconv/Makefile (tests): Remove tst-iconv4.c
12223 * iconv/tst-iconv4.c: Moved to...
12224 * iconvdata/tst-iconv4.c: ...here. New file.
12225 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
12226
12227 2002-11-25 Roland McGrath <roland@redhat.com>
12228
12229 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
12230 Grok AF_LINK if defined.
12231 From Momchil Velikov <velco@fadata.bg>.
12232
12233 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
12234 brdaddr, or dstaddr, just set those pointers to null and don't fail.
12235 Reported by Momchil Velikov <velco@fadata.bg>.
12236
12237 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
12238 is > sizeof IFR->ifa_addr, advance past the whole longer length.
12239 (__ifreq): Count up NIFS that way too.
12240 Reported by Momchil Velikov <velco@fadata.bg>.
12241
12242 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
12243
12244 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
12245 and <fpu_control.h>.
12246
12247 2002-11-24 Ulrich Drepper <drepper@redhat.com>
12248
12249 * elf/elf.h (EM_ST19): Fix typo.
12250
12251 2002-11-25 Jakub Jelinek <jakub@redhat.com>
12252
12253 * include/errno.h (__set_errno): Define as errno = val
12254 unconditionally.
12255
12256 2002-11-24 Roland McGrath <roland@redhat.com>
12257
12258 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
12259 * sysdeps/posix/writev.c: Likewise.
12260 From Momchil Velikov <velco@fadata.bg>.
12261
12262 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
12263 calling *GL(dl_error_catch_tsd) for a thread-local location.
12264 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
12265 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
12266 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
12267
12268 * libio/iofflush.c: Add libc_hidden_def.
12269 * libio/iofwrite.c: Likewise.
12270 * sysdeps/generic/sigtimedwait.c: Likewise.
12271 * sysdeps/generic/sigwaitinfo.c: Likewise.
12272 * sysdeps/posix/sigwait.c: Likewise.
12273 Reported by Momchil Velikov <velco@fadata.bg>.
12274
12275 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
12276 to match <arpa/inet.h> declaration.
12277 * inet/inet_netof.c (inet_netof): Likewise.
12278 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
12279 Reported by Momchil Velikov <velco@fadata.bg>.
12280
12281 * configure.in: Skip AUTOCONF check under --without-cvs.
12282 * configure: Regenerated.
12283
12284 * posix/Makefile (headers): Add bits/pthreadtypes.h.
12285 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
12286 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
12287
12288 2002-11-24 Andreas Schwab <schwab@suse.de>
12289
12290 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
12291 with six arguments.
12292
12293 2002-11-19 Jim Meyering <jim@meyering.net>
12294
12295 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
12296 as `static'.
12297 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
12298
12299 2002-11-23 Roland McGrath <roland@redhat.com>
12300
12301 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
12302 Just produce hex output for datum sizes.
12303
12304 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
12305 Reported by Luca Barbieri <ldb@ldb.ods.org>.
12306
12307 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
12308
12309 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
12310 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
12311 and __unused3 fields.
12312 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
12313 [__WORDSIZE == 32]: Only PPC32 requires __unused1
12314 and __unused2 fields.
12315 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
12316 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
12317 __unused3, and __unused4 fields.
12318
12319 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
12320 obtain lowest address for profiling in __monstartup call.
12321
12322 2002-11-21 Roland McGrath <roland@redhat.com>
12323
12324 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
12325 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
12326
12327 * locale/localeinfo.h (struct locale_data): Revert last change.
12328
12329 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
12330 From Ian Wienand <ianw@gelato.unsw.edu.au>.
12331
12332 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
12333 __NR_pread64 if not defined.
12334 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
12335 From Ian Wienand <ianw@gelato.unsw.edu.au>.
12336
12337 2002-11-21 Roland McGrath <roland@frob.com>
12338
12339 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
12340 __libc_multiple_libcs here. Call __setfpucw.
12341
12342 2002-11-21 Ulrich Drepper <drepper@redhat.com>
12343
12344 * elf/Makefile (tests): Don't run test-arrayX tests for now.
12345
12346 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
12347 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
12348 CLONE_CHILD_*TID flags.
12349
12350 2002-11-20 Andreas Jaeger <aj@suse.de>
12351
12352 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
12353 We pass struct ucontext on x86-64.
12354 (GET_PC): Adjust.
12355 (GET_FRAME): Adjust.
12356 (GET_STACK): Adjust.
12357
12358 2002-11-20 Roland McGrath <roland@redhat.com>
12359
12360 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
12361 conditionalize [! DO_VERSIONING] #error.
12362
12363 * scripts/abilist.awk: Grok function descriptor symbols.
12364
12365 * intl/tst-gettext.c (main): Check return values from setlocale.
12366 Add necessary unsetenv's to make LANG=existing-locale check work.
12367
12368 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
12369 so aborted prior runs don't confuse things.
12370
12371 * locale/localeinfo.h (struct locale_data: union locale_data_value):
12372 Use uintptr_t instead of unsigned int for `word' member.
12373 (_NL_CURRENT_WORD): Cast to uint32_t.
12374
12375 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
12376 value.
12377
12378 2002-11-20 Ulrich Drepper <drepper@redhat.com>
12379
12380 * elf/tls-macros.h: Add IA-64 definitions.
12381 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
12382
12383 * iconv/Makefile (tests): Add tst-iconv4.
12384 * iconv/tst-iconv4.c: New file.
12385
12386 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
12387 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
12388 __GCONV_INCOMPLETE_INPUT.
12389 (ucs4le_internal_loop): Likewise.
12390 (ucs4le_internal_loop_unaligned): Likewise.
12391 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
12392 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
12393 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
12394
12395 * iconv/loop.c (LOOPFCT): First test for empty input then for full
12396 output buffer.
12397
12398 * inet/getnameinfo.c: Use extend_alloca where appropriate.
12399 * sysdeps/posix/getaddrinfo.c: Likewise.
12400
12401 * include/alloca.h (extend_alloca): New define. Based on stack
12402 direction it'll try to append to the previouls allocated buffer.
12403
12404 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
12405
12406 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
12407 use the same service for AF_INET and AF_INET6.
12408
12409 2002-11-19 Ulrich Drepper <drepper@redhat.com>
12410
12411 * intl/localealias.c (read_alias_file): Use only about 400 bytes
12412 of stack space instead of 16k.
12413
12414 2002-11-18 Wolfram Gloger <wg@malloc.de>
12415
12416 * malloc/arena.c
12417 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
12418 nothing if not initialized. Bug report from Marcus Brinkmann
12419 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
12420
12421 2002-11-19 Roland McGrath <roland@redhat.com>
12422
12423 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
12424 sched_setaffinity.
12425
12426 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
12427 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
12428 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
12429 * configure: Regenerated.
12430
12431 2002-11-19 Ulrich Drepper <drepper@redhat.com>
12432
12433 * include/dlfcn.h: __libc_dlopen is now a macro calling
12434 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
12435 (__libc_dlopen_mode): New prototype.
12436 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
12437 new parameter. Store new parameter in mode field of structure passed
12438 to do_dlopen.
12439 (struct do_dlopen_args): Add new field mode.
12440 (do_dlopen): Pass mode from parameter structure to _dl_open.
12441
12442 2002-11-11 Randolf Chung <tausq@debian.org>
12443
12444 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
12445 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
12446 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
12447
12448 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
12449
12450 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
12451 Set -mdisable-fpregs for this file.
12452
12453 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
12454
12455 * sysdeps/unix/sysv/linux/configure.in:
12456 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
12457 from gcc-3.0 era for backwards compatibility.
12458 * sysdeps/unix/sysv/linux/configure: Regenerate.
12459
12460 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
12461 Define mcontext_t as a sigcontext.
12462
12463 2002-11-18 Roland McGrath <roland@redhat.com>
12464
12465 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
12466 Free memory in `last_result' if it was used.
12467
12468 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
12469 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
12470 Do the parsing inline instead of copying strings and calling
12471 inet_network, and properly skip all alias names not matching the form.
12472
12473 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
12474
12475 2002-11-17 Ulrich Drepper <drepper@redhat.com>
12476
12477 * manual/pattern.texi (Wordexp Example): Fix sample code.
12478
12479 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
12480 childs stack which will be loaded into the %esi register.
12481
12482 2002-11-14 Paul Eggert <eggert@twinsun.com>
12483
12484 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
12485 overflow when skipping the question part and when unpacking aliases.
12486
12487 2002-11-15 Roland McGrath <roland@redhat.com>
12488
12489 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
12490 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
12491 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
12492
12493 2002-11-15 Jakub Jelinek <jakub@redhat.com>
12494
12495 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
12496 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
12497
12498 2002-11-15 Roland McGrath <roland@redhat.com>
12499
12500 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
12501 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
12502 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
12503 (+make-include-of-dep): New canned sequence.
12504
12505 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
12506 From Dmitry V. Levin <ldv@altlinux.org>.
12507
12508 2002-11-14 Roland McGrath <roland@redhat.com>
12509
12510 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
12511 * inet/herrno.c (__libc_h_errno): Likewise.
12512 * resolv/res_libc.c (__libc_res): Likewise.
12513 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
12514 (__res_state) [! USE___THREAD]: Don't define as weak.
12515 * csu/Versions: Revert last change.
12516 * resolv/Versions: Revert last change.
12517
12518 * Makerules ($(common-objpfx)%.make): New pattern rule.
12519 * tls.make.c: New file.
12520 * Makefile (distribute): Add it.
12521
12522 * sysdeps/generic/errno.c [! USE___THREAD]
12523 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
12524 with compat_symbol so they are not link-time visible.
12525 [! USE___THREAD] (__libc_errno): New alias for errno.
12526 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
12527 Add __libc_errno here.
12528 * inet/herrno.c [USE___THREAD]: Use this conditional
12529 in place of [USE_TLS && HAVE___THREAD].
12530 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
12531 (h_errno, _h_errno): Declare these with compat_symbol so they are not
12532 link-time visible.
12533 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
12534 * resolv/res_libc.c [! USE___THREAD]
12535 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
12536 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
12537 (__libc_res): Define as alias for _res.
12538 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
12539 Add __libc_h_errno and __libc_res here.
12540
12541 2002-11-14 Jakub Jelinek <jakub@redhat.com>
12542
12543 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
12544 * resolv/Versions (h_errno, _res): Likewise.
12545
12546 2002-11-14 Roland McGrath <roland@redhat.com>
12547
12548 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
12549 (%.symlist): Likewise.
12550
12551 2002-11-13 Roland McGrath <roland@redhat.com>
12552
12553 * scripts/abilist.awk: New file.
12554 * Makefile (distribute): Add it.
12555 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
12556 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
12557 [$(subdir) = elf] (tests): Depend on libc.symlist.
12558 (generated, common-generated): Add those files.
12559
12560 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
12561 * configure: Regenerated.
12562 * config.make.in (OBJDUMP): New variable, substituted by configure.
12563
12564 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
12565 (mallochook, reallochook): Set them up.
12566 (checkhdr): Check HDR->magic2 value.
12567 (freehook): Reset HDR->magic2.
12568 (memalignhook): New static function.
12569 (old_memalign_hook): New static variable.
12570 (mcheck, reallochook): Set __memalign_hook to memalignhook.
12571
12572 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
12573 for the new TCB.
12574
12575 2002-11-13 Andreas Jaeger <aj@suse.de>
12576
12577 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
12578 attribute.
12579 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12580
12581 2002-11-11 Paul Eggert <eggert@twinsun.com>
12582
12583 * manual/crypt.texi (Cryptographic Functions): Mention that
12584 the MD5 one-way algorithm is compatible with BSD's.
12585
12586 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
12587
12588 * posix/regex_internal.c (re_string_skip_chars): Also return the last
12589 wide character.
12590 (re_string_reconstruct): Calculate the context by itself when the
12591 offset points out of the valid range.
12592 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
12593 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
12594 (IS_WIDE_WORD_CHAR): New macro.
12595 (IS_WIDE_NEWLINE): New macro.
12596
12597 2002-11-12 Andreas Jaeger <aj@suse.de>
12598
12599 * sysdeps/x86_64/strchr.S: Don't use one register for two
12600 purposes, this fixes a bug noticed by test-strchr.c.
12601
12602 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
12603 correctly.
12604
12605 2002-11-12 Roland McGrath <roland@redhat.com>
12606
12607 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
12608 (_G_IO_NO_BACKWARD_COMPAT): Define it.
12609
12610 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
12611 instead of <pt-machine.h>.
12612 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
12613 testandset.
12614 From Ian Wienand <ianw@gelato.unsw.edu.au>.
12615
12616 2002-11-10 Roland McGrath <roland@redhat.com>
12617
12618 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
12619 Call fputs instead of fwprintf (simpler to follow in debugger).
12620
12621 * crypt/md5-crypt.c: Doc fix.
12622
12623 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
12624 the beginning of generated target commands.
12625
12626 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
12627 dependencies for these in case implicit rule search skipped the
12628 nonexistent source directory.
12629 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
12630 files with $(object-suffixes) as targets too.
12631 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
12632 and a target for it using $(make-target-directory).
12633
12634 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
12635
12636 2002-11-10 Roland McGrath <roland@frob.com>
12637
12638 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
12639 * sysdeps/generic/bits/pthreadtypes.h: ... here.
12640
12641 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
12642 l_start == 0 and l_len == 1 as we do l_len == 0.
12643
12644 2002-11-10 Ulrich Drepper <drepper@redhat.com>
12645
12646 * po/da.po: Update from translation team.
12647
12648 2002-11-10 Roland McGrath <roland@redhat.com>
12649
12650 * config.make.in (includedir): New variable, substituted by configure.
12651 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
12652 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
12653
12654 2002-11-10 Andreas Jaeger <aj@suse.de>
12655
12656 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
12657 REG_OLDMASK and REG_CR2 to synch with kernel header.
12658 (NGREG): Increase.
12659
12660 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
12661 aliasing problem.
12662 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
12663 * nss/getnssent_r.c (__nss_getent_r): Likewise.
12664 (__nss_setent): Likewise.
12665 (__nss_getent_r): Likewise.
12666 * inet/getnetgrent_r.c (innetgr): Likewise.
12667 (__internal_setnetgrent_reuse): Likewise.
12668 (internal_getnetgrent_r): Likewise.
12669 * inet/ether_hton.c (ether_hostton): Likewise.
12670 * inet/ether_ntoh.c (ether_ntohost): Likewise.
12671 * sunrpc/netname.c (netname2user): Likewise.
12672 * sunrpc/publickey.c (getpublickey): Likewise.
12673 (getsecretkey): Likewise.
12674
12675 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
12676
12677 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
12678 error in range calculation.
12679
12680 2002-10-09 Jakub Jelinek <jakub@redhat.com>
12681
12682 * string/test-strspn.c (do_test): Ensure zero termination.
12683 * string/test-strpbrk.c (do_test): Likewise.
12684 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
12685 * string/test-strncpy.c (stupid_strncpy): Likewise.
12686 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
12687
12688 2002-10-08 Roland McGrath <roland@redhat.com>
12689
12690 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
12691 nonzero characters.
12692
12693 2002-09-22 H.J. Lu <hjl@gnu.org>
12694
12695 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
12696 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
12697 only if __NR_mmap2 is defined.
12698
12699 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
12700 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
12701 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
12702 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
12703
12704 2002-11-08 Jakub Jelinek <jakub@redhat.com>
12705
12706 * posix/bug-regex13.c (tests): Add new test.
12707
12708 * string/test-strchr.c (stupid_strchr): New function.
12709 (do_random_tests): Make sure the string is zero terminated.
12710 * string/test-strpbrk.c (stupid_strpbrk): New function.
12711 (do_random_tests): Make sure the string is zero terminated.
12712 * string/test-strcmp.c (stupid_strcmp): New function.
12713 (do_random_tests): Make sure the strings are zero terminated.
12714 * string/test-strspn.c (stupid_strspn): New function.
12715 (simple_strspn): Rename rej argument to acc.
12716 (do_random_tests): Make sure the string is zero terminated.
12717 * string/test-strcspn.c (stupid_strcspn): New function.
12718 * string/test-strncpy.c (stupid_strncpy): New function.
12719 * string/test-stpncpy.c (stupid_stpncpy): New function.
12720 * string/test-strncmp.c (stupid_strncmp): New function.
12721 (do_random_tests): Make sure the strings are zero terminated.
12722 * string/test-string.h (impl_t): Change test into long.
12723 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
12724
12725 2002-11-08 Roland McGrath <roland@redhat.com>
12726
12727 * sysdeps/ia64/elf/configure.in: Add TLS check.
12728 From Ian Wienand <ianw@cse.unsw.edu.au>.
12729 * sysdeps/ia64/elf/configure: Regenerated.
12730
12731 2002-11-07 Roland McGrath <roland@redhat.com>
12732
12733 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
12734 place of _IO_new_do_write.
12735 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
12736 #undef before versioned_symbol use.
12737
12738 2002-11-07 Richard Henderson <rth@redhat.com>
12739
12740 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
12741 * configure: Regenerated.
12742 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
12743 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
12744 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
12745 _dl_fini via gp-relative relocations.
12746 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
12747
12748 * elf/tls-macros.h: Add alpha versions.
12749 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
12750 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
12751 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
12752 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
12753 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
12754 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
12755 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
12756 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
12757 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
12758 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
12759 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
12760 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
12761 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
12762 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
12763 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
12764 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
12765 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
12766 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
12767
12768 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
12769 Kill argument registers across the inline syscall.
12770
12771 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
12772
12773 * linuxthreads/sysdeps/alpha/tls.h: New file.
12774 * sysdeps/alpha/dl-tls.h: New file.
12775
12776 2002-10-29 David Mosberger <davidm@hpl.hp.com>
12777
12778 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
12779 (gmon_initializer): New function.
12780 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
12781 __gmon_start__ here. Call it from gmon_initializer() instead.
12782
12783 2002-03-12 H.J. Lu <hjl@gnu.org>
12784
12785 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
12786 tst-array2, and tst-array3.
12787 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
12788 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
12789 ($(objpfx)tst-array1.out): New target.
12790 ($(objpfx)tst-array2): Likewise.
12791 ($(objpfx)tst-array2.out): Likewise.
12792 ($(objpfx)tst-array3.out): Likewise.
12793 * elf/tst-array1.c: New file.
12794 * elf/tst-array1.exp: Likewise.
12795 * elf/tst-array2.c: Likewise.
12796 * elf/tst-array2dep.c: Likewise.
12797 * elf/tst-array2.exp: Likewise.
12798 * elf/tst-array3.c: Likewise.
12799
12800 2002-10-28 David Mosberger <davidm@hpl.hp.com>
12801
12802 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
12803 Don't add L->l_addr to array entry values.
12804
12805 2002-11-07 Jakub Jelinek <jakub@redhat.com>
12806
12807 * string/test-string.h: New file.
12808 * string/test-strlen.c: New file.
12809 * string/test-string.h: New file.
12810 * string/test-strcmp.c: New file.
12811 * string/test-strchr.c: New file.
12812 * string/test-strrchr.c: New file.
12813 * string/test-strcpy.c: New file.
12814 * string/test-stpcpy.c: New file.
12815 * string/test-strncpy.c: New file.
12816 * string/test-stpncpy.c: New file.
12817 * string/test-strpbrk.c: New file.
12818 * string/test-strcspn.c: New file.
12819 * string/test-strspn.c: New file.
12820 * string/test-strcat.c: New file.
12821 * string/test-strncmp.c: New file.
12822 * string/test-memchr.c: New file.
12823 * string/test-memcmp.c: New file.
12824 * string/test-memset.c: New file.
12825 * string/test-memcpy.c: New file.
12826 * string/test-mempcpy.c: New file.
12827 * string/test-memmove.c: New file.
12828 * string/Makefile (strop-tests): New variable.
12829 (tests): Add strop-tests.
12830 (distribute): Add test-string.h.
12831
12832 2002-11-06 Ulrich Drepper <drepper@redhat.com>
12833
12834 * posix/regcomp.c: Use tabs instead of spaces.
12835 * posix/regexec.c: Likewise.
12836 * posix/regex_internal.h: Likewise.
12837
12838 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
12839
12840 2002-11-06 Jakub Jelinek <jakub@redhat.com>
12841
12842 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
12843 here.
12844 (regcomp): Don't set can_be_null here.
12845 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
12846 (re_compile_internal): Clear can_be_null, set regs_allocated.
12847
12848 * posix/regcomp.c (re_set_fastmap): New function.
12849 (re_compile_fastmap_iter): Use it. Remove redundant type ==
12850 COMPLEX_BRACKET check.
12851 * posix/regexec.c (re_search_internal): Optimize searching with
12852 fastmap. Call re_string_reconstruct even if match_first is
12853 smaller than raw_mbs_idx.
12854
12855 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
12856
12857 * posix/regcomp (free_dfa_content): Use free_state.
12858 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
12859 pointers in case that realloc failed.
12860 (re_node_set_merge): Likewise.
12861 (register_state): Likewise.
12862 (create_newstate_common): Invoke memory release functions in case of
12863 error conditions.
12864 (create_ci_newstate): Likewise.
12865 (create_cd_newstate): Likewise.
12866 (free_state): New function.
12867 * posix/regexec.c (re_search_internal): Invoke memory release
12868 functions in case of error conditions.
12869 (sift_states_backward): Likewise.
12870 (merge_state_array): Likewise.
12871 (add_epsilon_src_nodes): Likewise.
12872 (sub_epsilon_src_nodes): Likewise.
12873 (search_subexp): Likewise.
12874 (sift_states_bkref): Likewise.
12875 (transit_state_sb): Likewise.
12876 (transit_state_mb): Likewise.
12877 (transit_state_bkref_loop): Likewise.
12878 (group_nodes_into_DFAstates): Likewise.
12879 (push_fail_stack): Don't edit pointers in case that realloc failed.
12880 (extend_buffers): Likewise.
12881 (match_ctx_add_entry): Likewise.
12882
12883 2002-11-06 Roland McGrath <roland@redhat.com>
12884
12885 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
12886 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
12887
12888 * configure.in: Add checks on as and ld for binutils 2.13 or later.
12889 * configure: Regenerated.
12890
12891 2002-11-06 Ulrich Drepper <drepper@redhat.com>
12892
12893 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
12894 If re_compile_internal failed free fastmap buffer.
12895 (free_dfa_content): Broken out of regfree function. Frees all dfa
12896 related data.
12897 (regfree): Add free_dfa_content.
12898 (re_compile_internal): If any of the called functions fails free
12899 all dfa related memory.
12900
12901 2002-11-05 Ulrich Drepper <drepper@redhat.com>
12902
12903 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
12904 warnings from the kernel headers.
12905
12906 2002-11-05 Roland McGrath <roland@redhat.com>
12907
12908 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
12909 From Johannes Stezenbach <js@convergence.de>.
12910
12911 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
12912 #errlist-compat magic comment to give 123 as size.
12913 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
12914 (libc: GLIBC_2.2): ... here.
12915 (libc: GLIBC_2.3): Likewise.
12916
12917 2002-11-05 Ulrich Drepper <drepper@redhat.com>
12918
12919 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
12920 which happens at the beginning so that we can unload modules in
12921 __libc_freeres.
12922
12923 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
12924
12925 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
12926 under [__USE_MISC || _ASM].
12927
12928 * elf/elf.h: Remove the obsolete SH TLS relocations.
12929
12930 2002-11-05 Ulrich Drepper <drepper@redhat.com>
12931
12932 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
12933
12934 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12935
12936 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
12937 __NR_pread64 and __NR_pwrite64.
12938 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
12939 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
12940 and __NR_pwrite64.
12941 Revert change to use INLINE_SYSCALL.
12942 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
12943 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
12944 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
12945 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
12946 INLINE_SYSCALL.
12947 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
12948
12949 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
12950 Update clobber list and add a comment about the syscall ABI.
12951
12952 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
12953 s_pwrite64, s_ftruncate, s_truncate): Re-add.
12954
12955 2002-11-05 Jakub Jelinek <jakub@redhat.com>
12956
12957 * iconv/gconv_dl.c (free_mem): Clear loaded.
12958 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
12959 cleanup if any.
12960
12961 2002-11-05 Ulrich Drepper <drepper@redhat.com>
12962
12963 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
12964
12965 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
12966 as old code without locking. _IO_seekoff calls this function after
12967 locking the stream.
12968 * libio/ioseekpos.c: Likewise for _IO_seekpos.
12969 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
12970 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
12971 prototypes.
12972 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
12973 of _IO_seekoff_internal.
12974 (_IO_rewind): Likewise.
12975 * libio/ioftell.c: Likewise.
12976 * libio/ftello.c: Likewise.
12977 * libio/ftello64.c: Likewise.
12978 * libio/iofgetpos.c: Likewise.
12979 * libio/iofgetpos64.c: Likewise.
12980 * libio/oldiofgetpos.c: Likewise.
12981 * libio/oldiofgetpos64.c: Likewise.
12982 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
12983 _IO_seekpos_internal.
12984 * libio/iofsetpos64.c: Likewise.
12985 * libio/oldiofsetpos.c: Likewise.
12986 * libio/oldiofsetpos64.c: Likewise.
12987
12988 2002-11-04 Roland McGrath <roland@redhat.com>
12989
12990 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
12991 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
12992 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
12993 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
12994 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
12995 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
12996 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
12997 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
12998 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
12999 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
13000 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
13001 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
13002 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
13003 Remove these, no longer used.
13004
13005 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13006
13007 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
13008 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
13009 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
13010 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
13011 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
13012 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
13013 syscall stubs.
13014
13015 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
13016 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
13017 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
13018 and __NR_pread.
13019 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
13020 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
13021 and __NR_pwrite.
13022 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
13023
13024 2002-11-03 Roland McGrath <roland@redhat.com>
13025
13026 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
13027 `_dl_tls_static_used'.
13028 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
13029 (__libc_setup_tls): Initialize it. Let the initial value of
13030 _dl_tls_static_size indicate some surplus space in the computed value.
13031 * elf/dl-open.c (_dl_tls_static_size): New variable.
13032 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
13033 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
13034 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
13035 (CHECK_STATIC_TLS): Use it.
13036 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
13037 closed objects occupied a trailing contiguous chunk of static TLS area.
13038
13039 2002-10-18 Bruno Haible <bruno@clisp.org>
13040
13041 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
13042
13043 2002-11-04 Ulrich Drepper <drepper@redhat.com>
13044
13045 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
13046 _wide_data->_IO_read_end if adjustment can be made in the current
13047 buffer.
13048
13049 * sysdeps/unix/sysv/linux/fexecve.c: New file.
13050
13051 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
13052 wide oriented streams are used.
13053
13054 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
13055 service hasn't been used [PR libc/4744].
13056
13057 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
13058 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
13059
13060 * manual/examples/dir.c: Don't include <stddef.h>.
13061 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
13062 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
13063
13064 2002-11-02 H.J. Lu <hjl@gnu.org>
13065
13066 * stdio-common/reg-printf.c: Include <stddef.h>.
13067
13068 2002-11-03 Ulrich Drepper <drepper@redhat.com>
13069
13070 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
13071
13072 * po/ca.po: Update from translation team.
13073 * po/es.po: Likewise.
13074
13075 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
13076 is defined write out memory map.
13077 * sysdeps/unix/sysv/linux/segfault.c: New file.
13078
13079 2002-11-02 Roland McGrath <roland@redhat.com>
13080
13081 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
13082 pointers that can alias.
13083 Reported by Daniel Jacobowitz <drow@mvista.com>.
13084
13085 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
13086
13087 2002-11-02 Roland McGrath <roland@redhat.com>
13088
13089 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
13090 description to be clearer and to say that *RESULT is set to ENTRY.
13091
13092 2002-10-30 Jakub Jelinek <jakub@redhat.com>
13093
13094 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
13095 dests_ch arrays together. Alloca or malloc dest_states,
13096 dest_states_word and dest_states_nl arrays together. Free memory on
13097 error exit.
13098
13099 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
13100
13101 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
13102 and current_saltbits.
13103
13104 2002-11-02 Roland McGrath <roland@redhat.com>
13105
13106 * stdio-common/reg-printf.c: Include <stdlib.h>.
13107
13108 2002-11-02 H.J. Lu <hjl@gnu.org>
13109
13110 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
13111 caller to EXTRA instead of execve.
13112
13113 2002-11-01 Roland McGrath <roland@redhat.com>
13114
13115 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
13116 in place of [!(USE_TLS && HAVE___THREAD)].
13117 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
13118
13119 2002-10-31 Roger Sayle <roger@eyesopen.com>
13120
13121 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
13122 New macros.
13123 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
13124
13125 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
13126 without defining FP_ROUNDMODE.
13127
13128 2002-10-29 Jakub Jelinek <jakub@redhat.com>
13129
13130 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
13131 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
13132 declare_symbol.
13133 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
13134 (OLD_SIGLIST_SIZE): Define.
13135 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
13136 (OLD_SIGLIST_SIZE): Define.
13137 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
13138
13139 2002-11-01 Jakub Jelinek <jakub@redhat.com>
13140
13141 * sysdeps/ia64/strncpy.S: Fix recovery code.
13142
13143 2002-10-30 Jakub Jelinek <jakub@redhat.com>
13144
13145 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
13146 New macros.
13147 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
13148 text_set_element.
13149 * elf/dl-libc.c (free_mem): Likewise.
13150 * iconv/gconv_conf.c (free_mem): Likewise.
13151 * iconv/gconv_db.c (free_mem): Likewise.
13152 * iconv/gconv_dl.c (free_mem): Likewise.
13153 * iconv/gconv_cache.c (free_mem): Likewise.
13154 * intl/finddomain.c (free_mem): Likewise.
13155 * intl/dcigettext.c (free_mem): Likewise.
13156 * locale/setlocale.c (free_mem): Likewise.
13157 * misc/fstab.c (fstab_free): Likewise.
13158 * nss/nsswitch.c (free_mem): Likewise.
13159 * posix/regcomp.c (free_mem): Likewise.
13160 * resolv/gai_misc.c (free_res): Likewise.
13161 * stdlib/fmtmsg.c (free_mem): Likewise.
13162 * sunrpc/clnt_perr.c (free_mem): Likewise.
13163 * sysdeps/generic/setenv.c (free_mem): Likewise.
13164 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
13165 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
13166 * time/tzset.c (free_mem): Likewise.
13167 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
13168 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
13169 * malloc/set-freeres.c (__libc_freeres): Likewise.
13170
13171 * login/getutent.c: Include stdlib.h instead of stddef.h.
13172 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
13173 (__getutent): Allocate buffer the first time it is run.
13174 * login/getutid.c: Include stdlib.h instead of stddef.h.
13175 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
13176 (__getutid): Allocate buffer the first time it is run.
13177 * login/getutline.c: Include stdlib.h instead of stddef.h.
13178 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
13179 (__getutline): Allocate buffer the first time it is run.
13180 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
13181 (mtrace): Allocate malloc_trace_buffer.
13182 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
13183 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
13184 * string/strerror.c: Include libintl.h and errno.h.
13185 (buf): New variable.
13186 (strerror): Only allocate buffer if actually needed (unknown error).
13187 * time/tzfile.c (transitions): Add libc_freeres_ptr.
13188 (freeres): Remove.
13189
13190 2002-10-25 Jakub Jelinek <jakub@redhat.com>
13191
13192 * include/libc-symbols.h (libc_freeres_ptr): New macro.
13193 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
13194 symbol_set_define.
13195 (__libc_freeres): Free all pointers in that section.
13196 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
13197 commands when creating .lds script.
13198 (LDSEDCMD-c.so): New variable.
13199 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
13200 (rcmd_af): Use strdup to allocate ahostbuf.
13201 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
13202 (rexec_af): Use strdup to allocate ahostbuf.
13203 * stdio-common/reg-printf.c (printf_funcs): Remove.
13204 (__printf_arginfo_table): Change into printf_arginfo_function **.
13205 Add libc_freeres_ptr.
13206 (__register_printf_function): Allocate __printf_arginfo_table
13207 and __printf_function_table the first time it is called.
13208 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
13209 printf_arginfo_function **.
13210 (parse_one_spec): Add __builtin_expect.
13211 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
13212 (free_mem): Remove.
13213 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
13214 (free_mem): Remove.
13215 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
13216 (string_space, map): Add libc_freeres_ptr.
13217 (free_mem): Remove.
13218 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
13219 (free_mem): Remove.
13220 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
13221 (free_mem): Remove.
13222 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
13223 (buffer): Add libc_freeres_ptr.
13224 (free_mem): Remove for _LIBC.
13225 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
13226 (free_mem): Remove.
13227 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
13228 (free_mem): Remove.
13229 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
13230 (free_mem): Remove.
13231 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
13232 (free_mem): Remove.
13233 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
13234 (free_mem): Remove.
13235 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
13236 (free_mem): Remove.
13237 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
13238 libc_freeres_ptr.
13239 (free_mem): Remove.
13240 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
13241 libc_freeres_ptr.
13242 (free_mem): Remove.
13243
13244 2002-10-30 Jakub Jelinek <jakub@redhat.com>
13245
13246 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
13247 instead of duplicating the whole function in libc.
13248
13249 2002-10-31 Roland McGrath <roland@redhat.com>
13250
13251 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
13252 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
13253
13254 2002-10-30 Jakub Jelinek <jakub@redhat.com>
13255
13256 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
13257 32bit-predefine when creating .new32 list and -U for each
13258 32bit-predefine when creating .new64 list.
13259 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
13260
13261 2002-10-29 Andreas Schwab <schwab@suse.de>
13262
13263 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
13264 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
13265
13266 2002-10-25 Roland McGrath <roland@redhat.com>
13267
13268 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
13269 * sysdeps/unix/sysv/linux/configure: Regenerated.
13270
13271 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
13272 _dl_starting_up decl.
13273
13274 2002-10-20 H.J. Lu <hjl@gnu.org>
13275
13276 * sysdeps/unix/sysv/linux/configure.in: Don't check
13277 /lib/modules/`uname -r`/build/include for kernel headers if
13278 cross compiling.
13279 * sysdeps/unix/sysv/linux/configure: Regenerated.
13280
13281 2002-10-25 Roland McGrath <roland@redhat.com>
13282
13283 * math/math.h (M_LOG2El): Correct the value.
13284 From Stephen L Moshier <steve@moshier.net>.
13285
13286 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
13287 conditional from __libc_multiple_libcs access. Remove kludge for weak
13288 symbol access with old compilers we no longer support.
13289 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
13290 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
13291
13292 2002-10-25 Roland McGrath <roland@redhat.com>
13293
13294 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
13295 implement SV_RESETHAND by translating it to SA_RESETHAND.
13296
13297 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
13298
13299 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
13300 type on ELF64 platforms.
13301
13302 2002-10-24 Ulrich Drepper <drepper@redhat.com>
13303
13304 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
13305
13306 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
13307
13308 2002-10-24 Jakub Jelinek <jakub@redhat.com>
13309
13310 * elf/dl-misc.c: Include <sysdep.h>.
13311 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
13312
13313 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
13314 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
13315 (INLINE_SYSCALL): Use that.
13316 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
13317 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
13318 (INLINE_SYSCALL): Use that.
13319 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
13320 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
13321 (INLINE_SYSCALL): Use that.
13322 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
13323 dl-sysdep.h.
13324 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
13325 (__INTERNAL_SYSCALL_STRING): Define.
13326 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
13327 dl-sysdep.h.
13328 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
13329 (__INTERNAL_SYSCALL_STRING): Define.
13330 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
13331 __SYSCALL_STRING to inline_syscall*.
13332 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
13333 New macros.
13334 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
13335 inline_syscall4, inline_syscall5, inline_syscall6): Add string
13336 argument.
13337
13338 2002-10-24 Roland McGrath <roland@redhat.com>
13339
13340 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
13341 * sysdeps/unix/sysv/linux/init-first.c: Not here.
13342 * sysdeps/powerpc/elf/libc-start.c: Or here.
13343 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
13344 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
13345 * sysdeps/unix/sysv/aix/init-first.c: Or here.
13346 * sysdeps/generic/libc-start.c: Or here.
13347 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
13348 access with [! SHARED].
13349 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
13350
13351 * libio/bug-wfflush.c: New file.
13352 * libio/Makefile (tests): Add bug-wfflush.
13353
13354 2002-10-23 Roland McGrath <roland@redhat.com>
13355
13356 * stdio-common/tst-fphex.c: New file.
13357 * stdio-common/Makefile (tests): Add tst-fphex.
13358 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
13359 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
13360 chars always before the value digits.
13361 Reported by James Antill <james.antill@redhat.com>.
13362
13363 2002-10-24 Jakub Jelinek <jakub@redhat.com>
13364
13365 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
13366 (free_mem): New function.
13367 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
13368 if not cross compiling.
13369 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
13370 (bug-regex14-ENV): Set.
13371 (bug-regex14-mem): New target.
13372 * posix/bug-regex14.c: New file.
13373
13374 2002-10-23 Roland McGrath <roland@redhat.com>
13375
13376 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
13377 target, so we don't touch it when the link fails.
13378
13379 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
13380 Check for the result overflowing off_t and fail with EOVERFLOW.
13381 * libio/ioftell.c (_IO_ftell): Likewise.
13382 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
13383
13384 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
13385 use a temporary timeval on the stack for gettimeofday and copy it.
13386 * login/logout.c (logout): Likewise.
13387 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
13388
13389 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
13390 Use __SWORD_TYPE instead of int for member types.
13391 (struct statfs64): Likewise.
13392 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
13393 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
13394 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
13395 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
13396 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
13397
13398 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
13399 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
13400 (ST_NODIRATIME): Restore fixed value of 2048.
13401 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
13402 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
13403
13404 Rearranged <bits/types.h> definitions to reduce duplication.
13405 * sysdeps/generic/bits/types.h: Rewritten, using macros from
13406 <bits/wordsize.h> and new header <bits/typesizes.h>.
13407 * posix/Makefile (headers): Add bits/typesizes.h here.
13408 * sysdeps/generic/bits/typesizes.h: New file.
13409 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
13410 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
13411 * sysdeps/mach/hurd/bits/typesizes.h: New file.
13412 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
13413 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
13414 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
13415 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
13416 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
13417 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
13418 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
13419 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
13420 <bits/pthreadtypes.h> here, not in <bits/types.h>.
13421 * signal/signal.h: Likewise.
13422
13423 * streams/stropts.h: Include <bits/xtitypes.h>.
13424 * streams/Makefile (headers): Add bits/xtitypes.h here.
13425 * sysdeps/generic/bits/xtitypes.h: New file.
13426 * sysdeps/s390/bits/xtitypes.h: New file.
13427 * sysdeps/ia64/bits/xtitypes.h: New file.
13428 * sysdeps/x86_64/bits/xtitypes.h: New file.
13429
13430 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
13431 * sysdeps/generic/bits/ipctypes.h: New file.
13432 * sysdeps/mips/bits/ipctypes.h: New file.
13433 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
13434 * sysdeps/gnu/bits/msq.h: Likewise.
13435 * sysvipc/sys/ipc.h: Likewise.
13436
13437 2002-10-22 Ulrich Drepper <drepper@redhat.com>
13438
13439 * elf/dl-load.c (struct filebuf): For buf element to have the
13440 alignment of ElfXX_Ehdr since this is what will be stored in it.
13441
13442 2002-10-22 Jakub Jelinek <jakub@redhat.com>
13443
13444 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
13445 into pointer to locrec_offset.
13446 (add_locale_to_archive): Adjust callers. Free normalized_name right
13447 before returning, not immediately after add_locale, pass it to
13448 add_alias if not NULL instead of name. Rename second normalized_name
13449 occurence to nnormalized_codeset_name.
13450
13451 * locale/programs/locarchive.c (enlarge_archive): Make sure
13452 string_size is always a multiple of 4.
13453 Reported by Andreas Schwab <schwab@suse.de>.
13454
13455 2002-10-21 Andreas Schwab <schwab@suse.de>
13456
13457 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
13458 caller to EXTRA instead of execve, since the latter has a
13459 higher-priority implementation in linuxthreads.
13460
13461 2002-10-21 Roland McGrath <roland@redhat.com>
13462
13463 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
13464 slotinfo list's len member to the proper size, not just 1.
13465 Initialize static_map.l_tls_initimage.
13466
13467 * elf/dl-open.c (dl_open_worker): Fix loop searching for
13468 dtv_slotinfo_list element containing new modules' l_tls_modid.
13469
13470 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
13471 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
13472 * elf/Makefile (tests): Add tst-tls9.
13473 (tests-static): Add tst-tls9-static.
13474 (tst-tls9-static-ENV): New variable.
13475 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
13476
13477 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
13478 modids used by partially loaded modules being closed can't be known.
13479
13480 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
13481
13482 * posix/Makefile: Add a test case for the bug reported by Aharon
13483 Robbins <arnold@skeeve.com>.
13484 * posix/bug-regex13.c: New file.
13485 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
13486
13487 2002-10-21 Ulrich Drepper <drepper@redhat.com>
13488
13489 * csu/gmon-start.c: Pretty printing.
13490
13491 2002-10-19 Art Haas <ahaas@neosoft.com>
13492
13493 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
13494 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
13495 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
13496 * configure: Regenerated.
13497
13498 2002-10-19 Roland McGrath <roland@redhat.com>
13499
13500 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
13501 and then set $subdirs directly, because the new Autoconf breaks
13502 compatibility in every way imaginable and insists on whining
13503 about usage that worked since the dawn of time.
13504 * configure: Regenerated.
13505
13506 * configure: Regenerated (using Autoconf 2.54).
13507 * sysdeps/alpha/elf/configure: Likewise.
13508 * sysdeps/generic/configure: Likewise.
13509 * sysdeps/i386/elf/configure: Likewise.
13510 * sysdeps/ia64/elf/configure: Likewise.
13511 * sysdeps/mach/hurd/configure: Likewise.
13512 * sysdeps/mach/configure: Likewise.
13513 * sysdeps/unix/configure: Likewise.
13514 * sysdeps/unix/common/configure: Likewise.
13515 * sysdeps/unix/sysv/aix/configure: Likewise.
13516 * sysdeps/unix/sysv/linux/configure: Likewise.
13517 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
13518 * sysdeps/x86_64/elf/configure: Likewise.
13519
13520 * config.make.in: Nix completely-soft nonsense.
13521 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
13522 of machine directories instead of fpu subdirectory.
13523 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
13524 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
13525 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
13526 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
13527 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
13528 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
13529 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
13530 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
13531 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
13532 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
13533 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
13534 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
13535 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
13536 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
13537 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
13538 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
13539 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
13540 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
13541 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
13542 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
13543 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
13544 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
13545 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
13546 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
13547 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
13548 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
13549 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
13550 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
13551 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
13552 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
13553 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
13554 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
13555 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
13556 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
13557 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
13558 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
13559 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
13560 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
13561 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
13562 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
13563
13564 2002-10-19 Bruno Haible <bruno@clisp.org>
13565
13566 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
13567
13568 2002-10-18 Roland McGrath <roland@redhat.com>
13569
13570 * io/Makefile (routines): Add lchmod.
13571 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
13572 * sysdeps/generic/lchmod.c: New file.
13573 * sysdeps/mach/hurd/lchmod.c: New file.
13574 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
13575
13576 2002-10-18 Art Haas <ahaas@neosoft.com>
13577
13578 * configure.in: Remove remaining AC_FD_CC macros, and replace
13579 AC_FD_MSG with AS_MESSAGE_FD.
13580
13581 2002-10-18 Roland McGrath <roland@redhat.com>
13582
13583 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
13584 typos: VALUE -> FINALADDR.
13585
13586 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
13587 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
13588 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
13589 (inline_syscall6): Move these macros ...
13590 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
13591
13592 * configure.in (libc_link_dests, libc_link_sources): Remove these
13593 variables and the AC_LINK_FILES call.
13594
13595 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
13596 change to put new symbols here instead of in GLIBC_2.2.
13597 * sysdeps/powerpc/Subdirs: Move this file ...
13598 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
13599
13600 2002-10-07 Roland McGrath <roland@redhat.com>
13601
13602 * sysdeps/generic/bits/time.h: Replaced with contents of the
13603 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
13604 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
13605 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
13606 macros is ok even for architectures that don't now implement them.
13607 * sysdeps/mach/hurd/bits/time.h: File removed.
13608 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
13609 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
13610 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
13611 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
13612 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
13613
13614 2002-10-18 Jeff Bailey <jbailey@gnu.org>
13615
13616 * configure.in: Replace obsolete AC_OUTPUT syntax with
13617 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
13618
13619 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
13620 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
13621
13622 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
13623 * sysdeps/alpha/elf/configure.in: Likewise.
13624 * sysdeps/i386/elf/configure.in: Likewise.
13625 * sysdeps/mach/hurd/configure.in: Likewise.
13626 * sysdeps/x86_64/elf/configure.in: Likewise.
13627
13628 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
13629
13630 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
13631 * sysdeps/generic/configure.in: Likewise.
13632 * sysdeps/i386/elf/configure.in: Likewise.
13633 * sysdeps/ia64/elf/configure.in: Likewise.
13634 * sysdeps/mach/configure.in: Likewise.
13635 * sysdeps/mach/hurd/configure.in: Likewise.
13636 * sysdeps/unix/configure.in: Likewise.
13637 * sysdeps/unix/common/configure.in: Likewise.
13638 * sysdeps/unix/sysv/aix/configure.in: Likewise.
13639 * sysdeps/unix/sysv/linux/configure.in: Likewise.
13640 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
13641 * sysdeps/x86_64/elf/configure.in: Likewise.
13642
13643 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
13644 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
13645 that it's obvious when extra autoconf machinery is being dragged in.
13646
13647 2002-10-18 Roland McGrath <roland@redhat.com>
13648
13649 * configure.in: Remove bogus echo included in
13650 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
13651 * configure: Regenerated.
13652
13653 2002-10-18 Jakub Jelinek <jakub@redhat.com>
13654
13655 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
13656 (statfs_filesize_max): New function.
13657 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
13658 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
13659 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
13660 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
13661 statfs_filesize_max.
13662 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
13663 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
13664 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
13665
13666 2002-10-17 Roland McGrath <roland@redhat.com>
13667
13668 * configure.in (MIG): Just AC_SUBST it here.
13669 * configure: Regenerated.
13670 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
13671 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
13672 * sysdeps/mach/configure: Regenerated.
13673
13674 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
13675 and AC_PROVIDE([_AS_CR_PREPARE]).
13676
13677 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
13678 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
13679
13680 * elf/dl-support.c: Move _dl_tls_* variables to ...
13681 * sysdeps/generic/libc-tls.c: ... here.
13682
13683 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
13684 allow IDX to be one past the current last slotinfo entry.
13685 (_dl_close): Pass IMAP->l_init_called for that parameter.
13686
13687 2002-10-07 Andreas Schwab <schwab@suse.de>
13688
13689 * aclocal.m4: Fix for autoconf 2.53.
13690 * configure.in: Likewise. Require autoconf 2.53.
13691
13692 2002-10-08 Richard Henderson <rth@redhat.com>
13693
13694 * soft-fp/op-4.h: Handle carry correctly in
13695 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
13696 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
13697 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
13698
13699 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
13700
13701 * configure.in: Compute completely-soft.
13702 * config.make.in: Make completely-soft available to sub-makes.
13703 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
13704 gcc-double-routines. Add sim-full.c. Add fenv_const and
13705 fe_nomask to libm-support.
13706 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
13707 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
13708 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
13709 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
13710 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
13711 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
13712 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
13713 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
13714 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
13715 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
13716 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
13717 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
13718 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
13719 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
13720 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
13721 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
13722 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
13723 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
13724 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
13725 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
13726 __sim_round_mode.
13727 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
13728 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
13729 FP_HANDLE_EXCEPTIONS.
13730 Define FP_ROUNDMODE.
13731 Redefine FP_* macros to correspond to the FE_* bit positions.
13732 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
13733 Define externs for __sim_exceptions, __sim_disabled_exceptions,
13734 __sim_round_mode, __simulate_exceptions.
13735 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
13736 * sysdeps/powerpc/bits/fenv.h: ...to here.
13737
13738 2002-10-06 Jakub Jelinek <jakub@redhat.com>
13739
13740 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
13741 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
13742 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
13743 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
13744 __builtin_expect.
13745
13746 2002-10-15 Jakub Jelinek <jakub@redhat.com>
13747
13748 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
13749 __libc_res_nsend): New prototypes.
13750 * resolv/res_query.c (QUERYSIZE): Define.
13751 (__libc_res_nquery): Renamed from res_nquery. Added answerp
13752 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
13753 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
13754 res_nsend, pass answerp.
13755 (res_nquery): Changed into wrapper around __libc_res_nquery.
13756 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
13757 argument. Call __libc_res_nquerydomain and __libc_res_nquery
13758 instead of the non-__libc_ variants, pass them answerp.
13759 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
13760 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
13761 Added answerp argument. Call __libc_res_nquery instead of
13762 res_nquery, pass answerp.
13763 (res_nquerydomain): Changed into wrapper around
13764 __libc_res_nquerydomain.
13765 * resolv/res_send.c: Include sys/ioctl.h.
13766 (MAXPACKET): Define.
13767 (send_vc): Change arguments. Reallocate answer buffer if it is
13768 too small.
13769 (send_dg): Likewise.
13770 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
13771 Reallocate answer buffer if it is too small and hooks are in use.
13772 Adjust calls to send_vc and send_dg.
13773 (res_nsend): Changed into wrapper around __libc_res_nsend.
13774 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
13775 just 1K answer buffer on the stack, use __libc_res_nsearch instead
13776 of res_nsearch.
13777 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
13778 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
13779 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
13780 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
13781 (gethostbyaddr): Similarly with __libc_res_nquery.
13782 * resolv/Versions (libresolv): Export __libc_res_nquery and
13783 __libc_res_nsearch at GLIBC_PRIVATE.
13784
13785 2002-10-17 Roland McGrath <roland@redhat.com>
13786
13787 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
13788 * configure: Regenerated.
13789
13790 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
13791 before performing the reloc, not after.
13792 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
13793
13794 2002-10-17 Ulrich Drepper <drepper@redhat.com>
13795
13796 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
13797 * locale/programs/linereader.c (lr_open): Likewise.
13798 * locale/programs/charmap-dir.c (charmap_open): Likewise.
13799 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
13800
13801 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
13802
13803 * posix/bug-regex11.c: Add a test case for the bug reported by
13804 Paolo Bonzini <bonzini@gnu.org>.
13805 * posix/regexec.c (sift_states_bkref): Use correct destination of
13806 the back reference.
13807
13808 2002-10-17 Roland McGrath <roland@redhat.com>
13809
13810 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
13811 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
13812 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
13813 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
13814 Call it after performing TPOFF relocs.
13815 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13816 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13817 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
13818
13819 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
13820 when closing a partially-initialized object.
13821
13822 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
13823 instead of _dl_fatal_printf when we see PT_TLS.
13824
13825 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
13826 instead of $(libof-$<).
13827
13828 2002-10-16 Roland McGrath <roland@redhat.com>
13829
13830 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
13831 instead of += to append, to be sure $(lib) gets expanded at defn time.
13832 (libof-$(cpp-src)): New variable, define this instead.
13833 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
13834 (lib): Don't use override.
13835 (CPPFLAGS-$(lib)): New variable, put -D's here.
13836 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
13837 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
13838 LIB found by $(libof-*) for basename, target, or source.
13839 * Makerules (CPPFLAGS-nonlib): New variable.
13840 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
13841 * locale/Makefile (lib): Likewise.
13842 * sunrpc/Makefile (lib): Likewise.
13843
13844 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
13845 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
13846 * sysdeps/unix/sysv/linux/pathconf.h: New file.
13847 (statfs_link_max): New function, guts from fpathconf.c.
13848 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
13849 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
13850 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
13851 to use the linux/pathconf.c code by #include rather than duplication.
13852 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
13853
13854 2002-10-16 Jakub Jelinek <jakub@redhat.com>
13855
13856 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
13857 Use __libc_errno only for libc itself.
13858
13859 2002-10-16 Andreas Jaeger <aj@suse.de>
13860
13861 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
13862
13863 2002-10-16 Ulrich Drepper <drepper@redhat.com>
13864
13865 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
13866 Use __libc_errno only for libc itself.
13867
13868 2002-10-15 Roland McGrath <roland@redhat.com>
13869 Jakub Jelinek <jakub@redhat.com>
13870
13871 * sysdeps/unix/sysv/linux/Makefile
13872 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
13873 sparc/Makefile to produce a bi-arch file as needed.
13874 That's now parameterized by the variable $(64bit-predefine).
13875 Use LC_ALL=C for `comm' commands in that rule.
13876 No longer conditional on [$(no_syscall_list_h)].
13877 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
13878 (64bit-predefine): New variable.
13879 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
13880 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
13881 * sysdeps/unix/sysv/linux/powerpc/Makefile
13882 (64bit-predefine): New variable.
13883
13884 2002-10-15 Roland McGrath <roland@redhat.com>
13885
13886 * sysdeps/unix/sysv/linux/Makefile
13887 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
13888
13889 * login/utmp-private.h: Declare __libc_utmp_lock.
13890 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
13891 and call __libc_utmp_jump_table functions directly, instead of using
13892 __setutent et al.
13893
13894 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
13895 * sysdeps/unix/sysv/linux/configure: Regenerated.
13896
13897 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
13898 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
13899 Use int32_t for ll_time.
13900 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
13901 Use int32_t instead of long int for ut_session.
13902 Use an anonymous struct with 32-bit fields for ut_tv.
13903 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
13904 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
13905 here as in utmp.h for `struct utmp'.
13906 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
13907 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
13908 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
13909 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
13910 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
13911 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
13912
13913 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
13914 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
13915 All the following files were identical or equivalent to it.
13916 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
13917 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
13918 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
13919 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
13920 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
13921 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
13922 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
13923 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
13924 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
13925 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
13926
13927 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
13928 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
13929 Other than the previously incorrect sign of msg_iovlen, this is a
13930 no-op on 32-bit platforms. On 64-bit platforms it makes this header
13931 match their layouts as well, so the following are now identical to it.
13932 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
13933 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
13934 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
13935 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
13936 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
13937
13938 2002-10-15 Ulrich Drepper <drepper@redhat.com>
13939
13940 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
13941 Define for 2.4+ kernels.
13942
13943 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
13944 are known to have the vfork syscall. Don't confuse the CPUs
13945 branch prediction unit by jumping to the return address.
13946
13947 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
13948 support for reiserfs and xfs.
13949
13950 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
13951 XFS link count.
13952 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
13953 and XFS_LINK_MAX.
13954 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
13955
13956 2002-10-16 Jakub Jelinek <jakub@redhat.com>
13957
13958 * include/libc-symbols.h (attribute_tls_model_ie): Define.
13959 * include/errno.h (errno): Define to __libc_errno in libc.so.
13960 Add attribute_tls_model_ie.
13961 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
13962 Add attribute_tls_model_ie.
13963 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
13964 attribute_tls_model_ie.
13965 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
13966 (h_errno): Define.
13967 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
13968 (_res): Define.
13969 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
13970 attribute_tls_model_ie.
13971 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
13972 __thread.
13973 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
13974 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
13975 __libc_errno in USE___THREAD case.
13976 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
13977 Likewise.
13978 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
13979 __attribute__((tls_model (""))).
13980 * configure: Rebuilt.
13981 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
13982
13983 2002-10-15 Ulrich Drepper <drepper@redhat.com>
13984
13985 * timezone/asia: Update from tzdata2002d.
13986 * timezone/australasia: Likewise.
13987 * timezone/iso3166.tab: Likewise.
13988 * timezone/southamerica: Likewise.
13989 * timezone/zone-tab: Likewise.
13990
13991 2002-10-15 Roland McGrath <roland@redhat.com>
13992
13993 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
13994 Adjust TCB pointer before calling free, so we get the whole block.
13995
13996 2002-10-14 Roland McGrath <roland@redhat.com>
13997
13998 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
13999 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
14000 extern using attribute_hidden instead of static, avoids warning.
14001
14002 2002-10-09 Jakub Jelinek <jakub@redhat.com>
14003
14004 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
14005 * sysdeps/unix/sysv/linux/configure: Rebuilt.
14006
14007 2002-10-14 Ulrich Drepper <drepper@redhat.com>
14008
14009 * po/sv.po: Update from translation team.
14010
14011 2002-10-12 H.J. Lu <hjl@gnu.org>
14012
14013 * sunrpc/thrsvc.c (PROCQUIT): New.
14014 (struct rpc_arg): New.
14015 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
14016 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
14017 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
14018 (main): Modified for struct rpc_arg *.
14019
14020 2002-10-14 Ulrich Drepper <drepper@redhat.com>
14021
14022 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
14023
14024 2002-10-14 Jakub Jelinek <jakub@redhat.com>
14025
14026 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
14027 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
14028 in ld.so even if __thread is supported.
14029
14030 2002-10-13 Jakub Jelinek <jakub@redhat.com>
14031
14032 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
14033 Add hack to prevent the compiler from clobbering the signal context.
14034 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
14035 Likewise.
14036 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
14037 Likewise.
14038
14039 2002-10-14 Andreas Jaeger <aj@suse.de>
14040
14041 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
14042 Guido Guenther <agx@sigxcpu.org>.
14043
14044 2002-10-14 Ulrich Drepper <drepper@redhat.com>
14045
14046 * po/sk.po: Update from translation team.
14047
14048 2002-09-26 Roland McGrath <roland@redhat.com>
14049
14050 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
14051 dynamic string tag.
14052 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
14053 DL_DST_LIB based on $(slibdir).
14054
14055 2002-10-13 Roland McGrath <roland@frob.com>
14056
14057 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
14058
14059 * sysdeps/mach/hurd/getresuid.c: New file.
14060 * sysdeps/mach/hurd/getresgid.c: New file.
14061 * sysdeps/mach/hurd/setresuid.c: New file.
14062 * sysdeps/mach/hurd/setresgid.c: New file.
14063
14064 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
14065 setresgid): Declare them.
14066 * NEWS: Mention it.
14067 * include/unistd.h
14068 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
14069 add libc_hidden_proto.
14070 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
14071 getresuid, getresgid, setresuid, setresgid here.
14072 * Versions.def (libc): Define GLIBC_2.3.2 set.
14073 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
14074 Add libc_hidden_def.
14075 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
14076 * sysdeps/generic/setresgid.c: New file.
14077 * sysdeps/generic/setresuid.c: New file.
14078 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
14079 (sysdep_routines): Don't add getresuid and getresgid here.
14080 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
14081 (sysdep_routines): Don't add setresuid and setresgid here.
14082 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
14083 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
14084 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
14085 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
14086 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
14087 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
14088 * posix/Makefile (routines): Add them all here instead.
14089 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
14090 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
14091 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
14092 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
14093 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
14094 [! __NR_setresuid]: Include generic file.
14095 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
14096 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
14097 [! __NR_setresuid]: Include generic file.
14098 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
14099 Caller is - now, not EXTRA.
14100 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
14101 (setresuid, setresgid, getresuid, getresgid): Likewise.
14102 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
14103 Add these calls here.
14104 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
14105 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
14106 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
14107 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
14108 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
14109 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
14110 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
14111 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
14112 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
14113
14114 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
14115 (sysdep_routines): Add setfsuid and setfsgid here.
14116 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
14117 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
14118 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
14119 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
14120 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
14121 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
14122 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
14123 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
14124
14125 * hurd/errno.c: Renamed to ...
14126 * hurd/errno-loc.c: ... this.
14127 * hurd/Makefile (routines): errno -> errno-loc
14128
14129 2002-10-13 Ulrich Drepper <drepper@redhat.com>
14130
14131 * po/de.po: Update from translation team.
14132
14133 * MakeTAGS: Add -E flag to xgettext runs.
14134
14135 2002-10-12 Ulrich Drepper <drepper@redhat.com>
14136
14137 * po/fr.po: Update from translation team.
14138
14139 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
14140 Optimize a bit for use in glibc.
14141
14142 2002-10-12 Roland McGrath <roland@redhat.com>
14143
14144 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
14145 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
14146
14147 2002-10-12 Ulrich Drepper <drepper@redhat.com>
14148
14149 * po/sv.po: Update from translation team.
14150
14151 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
14152
14153 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
14154 OP_CONTEXT_NODE.
14155 (regfree): Likewise.
14156 (create_initial_state): Likewise.
14157 (analyze): Remove the substitutions which became useless.
14158 (calc_first): Likewise.
14159 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
14160 epsilon destination.
14161 (duplicate_node_closure): New function.
14162 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
14163 (calc_inveclosure): Likewise.
14164 (calc_eclosure): Likewise.
14165 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
14166 direct invocation of duplicate_node.
14167 (parse): Don't use comma operator in the return to avoid compiler
14168 warning.
14169 (parse_reg_exp): Likewise.
14170 (parse_branch): Likewise.
14171 (parse_expression): Likewise.
14172 (parse_sub_exp): Likewise.
14173 (parse_dup_op): Likewise.
14174 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
14175 which became useless.
14176 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
14177 (create_cd_newstate): Likewise.
14178 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
14179 (re_token_t): Likewise.
14180 (re_dfa_t): Likewise.
14181 (re_node_set_remove): New macro.
14182 * posix/regexec.c (check_matching): Remove the handling
14183 OP_CONTEXT_NODE.
14184 (check_halt_node_context): Likewise.
14185 (proceed_next_node): Likewise.
14186 (pop_fail_stack): Fix the memory leak.
14187 (set_regs): Likewise.
14188 (free_fail_stack_return): New function.
14189 (sift_states_backward): Fix the memory leak. Remove the handling
14190 OP_CONTEXT_NODE.
14191 (update_cur_sifted_state): Append some if clause to avoid redundant
14192 call.
14193 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
14194 back reference.
14195 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
14196 (check_subexp_limits): Likewise.
14197 (search_subexp): Likewise.
14198 (sift_states_bkref): Likewise.
14199 (transit_state_mb): Likewise.
14200 (transit_state_bkref_loop): Likewise.
14201 (transit_state_bkref_loop): Likewise.
14202 (group_nodes_into_DFAstates): Likewise.
14203 (check_node_accept): Likewise.
14204 (sift_ctx_init): Add initializing.
14205
14206 2002-10-12 Ulrich Drepper <drepper@redhat.com>
14207
14208 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
14209 __builtin_expect.
14210
14211 2002-10-11 Ulrich Drepper <drepper@redhat.com>
14212
14213 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
14214 duplicated variable c.
14215
14216 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
14217 if possible.
14218
14219 * sysdeps/unix/sysv/linux/i386/sysdep.h
14220 (INTERNAL_SYSCALL_ERROR_P): New define.
14221 (INTERNAL_SYSCALL_ERRNO): Likewise.
14222
14223 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
14224 Add hack to prevent the compiler from clobbering the signal context.
14225
14226 2002-10-11 Roland McGrath <roland@redhat.com>
14227
14228 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
14229 Fix typos.
14230
14231 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
14232 * sysdeps/sh/dl-lookupcfg.h: File removed.
14233 * sysdeps/i386/dl-lookupcfg.h: File removed.
14234
14235 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
14236 missing labels and ; from last change.
14237
14238 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
14239 number literals, so they are doubles instead of ints.
14240
14241 2002-10-09 Roland McGrath <roland@redhat.com>
14242
14243 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
14244 changed from [USE_TLS && HAVE___THREAD].
14245
14246 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
14247 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
14248 * sysdeps/x86_64/dl-machine.h
14249 (elf_machine_type_class, elf_machine_rela): Likewise.
14250 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
14251 Likewise.
14252
14253 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
14254 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
14255 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
14256
14257 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
14258 instead of ___tls_get_addr.
14259 (___tls_get_addr_internal): Add attribute_hidden to decl.
14260
14261 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
14262 _dl_error_catch_tsd.
14263 * elf/rtld.c (startup_error_tsd): New function.
14264 (dl_main): Point _dl_error_catch_tsd at that.
14265 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
14266 use new function pointer instead.
14267 * elf/dl-tsd.c: New file.
14268 * elf/Makefile (routines): Add it.
14269
14270 2002-10-07 Roland McGrath <roland@redhat.com>
14271
14272 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
14273 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
14274 take _dl_load_lock around calling __writev.
14275
14276 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
14277 (INLINE_SYSCALL): Use that.
14278
14279 * sysdeps/generic/dl-sysdep.h: New file.
14280 * sysdeps/mach/hurd/dl-sysdep.h: New file.
14281 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
14282 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
14283 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
14284 access it directly.
14285 * elf/dl-minimal.c (__errno_location): Removed.
14286 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
14287 Use GOTOFF access for errno.
14288 * sysdeps/unix/sysv/linux/i386/sysdep.h
14289 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
14290
14291 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
14292 Use PC-relative access for errno.
14293 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
14294 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
14295
14296 * include/tls.h: New file.
14297 (USE___THREAD): New macro.
14298 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
14299 libc or libpthread.
14300 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
14301 changed from [USE_TLS && HAVE___THREAD].
14302 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
14303 * sysdeps/unix/i386/sysdep.S: Likewise.
14304 * sysdeps/unix/x86_64/sysdep.S: Likewise.
14305 * include/errno.h: Likewise.
14306 * include/netdb.h: Likewise.
14307 * include/resolv.h: Likewise.
14308
14309 * sysdeps/generic/errno.c: New file.
14310 * csu/Makefile (aux): New variable, list errno.
14311 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
14312 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
14313 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
14314 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
14315 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
14316 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
14317 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
14318 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
14319 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
14320 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
14321 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
14322 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
14323 * sysdeps/unix/alpha/sysdep.S: Likewise.
14324 * sysdeps/generic/start.c: Likewise.
14325 * sysdeps/unix/start.c: Likewise.
14326 * sysdeps/unix/arm/start.c: Likewise.
14327 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
14328 * sysdeps/unix/sparc/start.c: Likewise.
14329 * sysdeps/unix/sysv/irix4/start.c: Likewise.
14330 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
14331
14332 * manual/search.texi (Tree Search Function, Hash Search Function):
14333 Mention search.h clearly.
14334
14335 2002-10-05 Roland McGrath <roland@redhat.com>
14336
14337 * elf/dl-fxstat64.c: File removed.
14338 * elf/dl-xstat64.c: File removed.
14339 * elf/Makefile (rtld-routines): Remove them.
14340 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
14341 Instead, use strong_alias instead of versioned_symbol in the
14342 !SHLIB_COMPAT case.
14343 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
14344 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
14345
14346 * include/shlib-compat.h
14347 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
14348 [! NOT_IN_libc] (IS_IN_libc): Define it.
14349 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
14350 * elf/Makefile (CPPFLAGS-.os): Likewise.
14351
14352 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
14353 Return the status instead of calling exit.
14354
14355 * Makeconfig (CFLAGS): Prepend -std=gnu99.
14356 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
14357 Remove superfluous rm command, whose @ plus make bugs hid
14358 all these commands from the make output.
14359
14360 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
14361 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
14362 Use that file's contents instead of literal echo's for the prologue.
14363 * include/features.h: Include <gnu/stubs.h> unconditionally.
14364 * include/gnu/stubs.h: New file.
14365
14366 2002-09-30 Roland McGrath <roland@redhat.com>
14367
14368 * elf/rtld-Rules: New file.
14369 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
14370 $(objpfx)rtld-libc.a): New targets.
14371 (generated): Add them.
14372 (reloc-link): Remove -o $@ from the variable.
14373 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
14374 (distribute): Add rtld-Rules.
14375 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
14376 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
14377 (common-mostlyclean, common-clean): Clean up rtld-* files.
14378 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
14379
14380 2003-05-20 Jakub Jelinek <jakub@redhat.com>
14381
14382 * elf/dynamic-link.h (elf_get_dynamic_info): Add temp argument.
14383 If temp != NULL, copy dynamic entries which need relocation to temp
14384 array before relocating.
14385 (DL_RO_DYN_TEMP_CNT): Define.
14386 * elf/dl-load.c (_dl_map_object_from_fd): Adjust caller.
14387 * elf/rtld.c (_dl_start): Likewise.
14388 (dl_main): Likewise. Add dyn_temp static variable.
14389
14390 2002-10-11 Roland McGrath <roland@redhat.com>
14391
14392 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
14393 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
14394
14395 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
14396 proper set of no-op insn prefixes.
14397
14398 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
14399
14400 2002-10-11 Ulrich Drepper <drepper@redhat.com>
14401
14402 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
14403 __pthread_kill_other_threads_np.
14404
14405 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
14406
14407 2002-10-08 Roland McGrath <roland@redhat.com>
14408
14409 * locale/newlocale.c (__newlocale): If setting all categories to "C",
14410 just return &_nl_C_locobj instead of copying it.
14411 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
14412 * locale/duplocale.c (__duplocale): Likewise.
14413
14414 2002-10-07 Roland McGrath <roland@frob.com>
14415
14416 * config.h.in (HAVE_I386_SET_GDT): New #undef.
14417 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
14418 * sysdeps/mach/configure: Regenerated.
14419
14420 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14421
14422 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
14423 Add all necessary register outputs for syscall-clobbered registers.
14424
14425 2002-10-02 David Mosberger <davidm@hpl.hp.com>
14426
14427 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
14428 Itanium 2 (and Itanium).
14429 Fix unwind directives and make it fit in 80 columns.
14430 * sysdeps/ia64/memset.S: Likewise.
14431 * sysdeps/ia64/memcpy.S: Likewise.
14432 Move jump table to .rodata section.
14433
14434 2002-10-03 Roland McGrath <roland@frob.com>
14435
14436 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
14437 clobbers to asm.
14438
14439 2002-10-10 Andreas Jaeger <aj@suse.de>
14440
14441 * sysdeps/x86_64/_mcount.S: Restore correct registers.
14442
14443 2002-10-10 Ulrich Drepper <drepper@redhat.com>
14444
14445 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
14446
14447 2002-10-09 Ulrich Drepper <drepper@redhat.com>
14448
14449 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
14450 _dl_allocate_tls_init. Add rtld_hidden_proto.
14451 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
14452 rtld_hidden_def.
14453 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
14454
14455 * version.h (VERSION): Bump to 2.3.1.
14456
14457 * Make-dist: Add back one of the tar invocations removed before.
14458
14459 * stdlib/Makefile (distribute): Add allocalim.h.
14460
14461 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
14462 (__libc_tsd_address): Use correct variable name.
14463 Patch by Stefan Jones <stefan.jones@multigig.com>.
14464
14465 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
14466 Reported by edwardsg@sgi.com [PR libc/4678].
14467
14468 * Versions.def (libc): Add GLIBC_2.3.1.
14469 (libpthread): Add GLIBC_2.3.1.
14470
14471 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
14472 and __sigtimedwait.
14473 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
14474 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
14475 libc_hidden_def.
14476 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
14477 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
14478
14479 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
14480 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
14481 and make old name an alias.
14482 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
14483 and make old name an alias.
14484 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
14485 __libc_msgsnd.
14486
14487 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
14488 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
14489 __libc_writev.
14490 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
14491 old name an alias.
14492 * sysdeps/posix/readv.c: Likewise
14493 * sysdeps/unix/sysv/aix/readv.c: Likewise.
14494 * sysdeps/unix/sysv/linux/readv.c: Likewise.
14495 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
14496 old name an alias.
14497 * sysdeps/posix/writev.c: Likewise
14498 * sysdeps/unix/sysv/aix/writev.c: Likewise.
14499 * sysdeps/unix/sysv/linux/writev.c: Likewise.
14500
14501 * include/sys/wait.h: Declare __waitid.
14502 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
14503 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
14504 name an alias.
14505 * sysdeps/posix/waitid.c: Likewise.
14506 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
14507
14508 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
14509
14510 2002-10-07 Jakub Jelinek <jakub@redhat.com>
14511
14512 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
14513 prototypes.
14514 (__MAX_ALLOCA_CUTOFF): Define.
14515 Include allocalim.h.
14516 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
14517 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
14518 host_buffer depending on __libc_use_alloca.
14519 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
14520 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
14521 net_buffer depending on __libc_use_alloca.
14522 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
14523 buf depending on __libc_use_alloca.
14524 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
14525 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
14526 instead of hardcoded constants.
14527 Pass proper size argument to alloca and compute end for wide char
14528 version.
14529 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
14530 instead of hardcoded constants.
14531 * string/strcoll.c (strcoll): Likewise.
14532 * string/strxfrm.c (strxfrm): Likewise.
14533 * sysdeps/posix/readv.c (__readv): Likewise.
14534 * sysdeps/posix/writev.c (__writev): Likewise.
14535 * sysdeps/generic/allocalim.h: New file.
14536
14537 2002-10-08 Roland McGrath <roland@redhat.com>
14538
14539 * configure.in (aux_missing warning): Change "too old" to
14540 "incompatible versions", since for autoconf it's "too new" right now.
14541 * configure: Regenerated.
14542
14543 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
14544 one found doesn't work on our configure.in.
14545 * configure: Regenerated.
14546 * config.make.in (AUTOCONF): New substituted variable.
14547 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
14548 (autoconf-it): ... here, use that instead of defining conditionally.
14549 Use $(AUTOCONF) instead of literal autoconf.
14550 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
14551 with this condition.
14552 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
14553
14554 2002-10-08 Ulrich Drepper <drepper@redhat.com>
14555
14556 * Make-dist (dist): Cleanup a bit. We are not interested in the
14557 14 char filename limit anymore. Remove intermediate files and
14558 symlinks.
14559
14560 2002-10-05 Ulrich Drepper <drepper@redhat.com>
14561
14562 * po/sk.po: Update from translation team.
14563 * po/tr.po: Likewise.
14564 * po/gl.po: Likewise.
14565
14566 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
14567
14568 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
14569
14570 2002-10-03 Ulrich Drepper <drepper@redhat.com>
14571
14572 * version.h (RELEASE): Change to stable.
14573
14574 2002-10-03 Jakub Jelinek <jakub@redhat.com>
14575
14576 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
14577 __syscall_exit_group): New prototypes.
14578
14579 2002-10-03 Ulrich Drepper <drepper@redhat.com>
14580
14581 * glibc 2.3 released.
14582
14583
14584 See ChangeLog.13 for earlier changes.
This page took 0.759504 seconds and 5 git commands to generate.