1 2002-12-06 Ulrich Drepper <drepper@redhat.com>
3 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
5 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
7 2002-12-07 Jakub Jelinek <jakub@redhat.com>
9 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
10 (SYSCALL_ERROR_HANDLER): Fix a pasto.
11 Reported by Jeff Bailey <jbailey@nisa.net>.
13 2002-12-06 Ulrich Drepper <drepper@redhat.com>
15 * sysdeps/generic/libc-tls.c: Undo last patch.
17 * include/wctype.h: Define iswalnum with libc_hidden_proto.
19 * include/signal.h: Define raise with libc_hidden_proto.
21 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
22 __execve instead of snprintf and execve.
24 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
27 2002-12-06 Jakub Jelinek <jakub@redhat.com>
29 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
30 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
32 2002-12-06 Ulrich Drepper <drepper@redhat.com>
34 * misc/syslog.c (log_cleanup): New function.
35 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
38 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
39 * elf/dl-iteratephdr.c: Likewise.
40 * elf/dl-lookup.c: Likewise.
41 * elf/dl-misc.c: Likewise.
42 * elf/dl-open.c: Likewise.
43 * elf/dl-support.c: Likewise.
44 * elf/rtld.c: Likewise.
45 * sysdeps/generic/ldsodefs.h: Likewise.
46 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
47 * sysdeps/mach/bits/libc-lock.h: Likewise.
48 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
50 2002-12-06 Roland McGrath <roland@redhat.com>
52 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
54 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
55 (malloc_starter, memalign_starter, free_starter): Don't define these.
56 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
57 Don't declare them either.
58 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
59 __pthread_initialize, so no need to set hooks to *_starter.
60 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
61 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
62 (__libc_malloc_pthread_startup): New function.
63 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
65 * malloc/hooks.c (memalign_starter): New function.
66 * malloc/malloc.c: Declare it.
67 * malloc/arena.c (save_memalign_hook): New variable.
68 (ptmalloc_init): Set __memalign_hook to memalign_starter.
70 * elf/dl-minimal.c (free): Clear the memory.
71 (calloc): Just call malloc, knowing all memory it returns is cleared.
73 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
74 malloc and memset; calloc can avoid the zeroing when redundant.
75 (_dl_tls_setup): Likewise.
76 * elf/dl-load.c (decompose_rpath): Likewise.
77 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
78 call, since memory from sbrk at startup is already zero.
80 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
81 error string for failure, null for success. Update callers.
82 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
83 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
85 2002-12-05 Jakub Jelinek <jakub@redhat.com>
87 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
89 (readahead): Change args to i:iii.
90 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
92 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
95 2002-12-05 Roland McGrath <roland@redhat.com>
97 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
98 call all functions rather than none.
99 Reported by Mark P. Mitchell <mark@codesourcery.com>.
101 2002-12-04 Roland McGrath <roland@redhat.com>
103 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
104 on _nl_current_LC_* variables.
106 2002-12-05 Ulrich Drepper <drepper@redhat.com>
108 * dirent/bug-readdir1.c (main): Don't call closedir, just close
109 the file descriptor. This is testing what the bug report was about.
111 2002-12-04 Ulrich Drepper <drepper@redhat.com>
113 * po/be.po: New file.
115 * argp/Makefile (tests): Add tst-argp1.
117 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
118 Change type of _attribute to void*.
119 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
120 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
121 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
122 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
123 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
125 2002-12-04 Roland McGrath <roland@redhat.com>
127 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
128 members to the end, so a libpthread compiled with !USE_TLS will still
129 find other members properly.
131 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
132 operand for DEST memory. Fix dummy input operand to use SRC.
133 Reported by Davin McCall <davmac@ozonline.com.au>.
135 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
136 alignment when initializing the DTV entry.
138 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
139 when TLS has not been set up, try to set it up if we can.
140 * elf/tst-tls4.c: Revert last change.
141 * elf/tst-tls5.c: Likewise.
142 * elf/tst-tls6.c: Likewise.
143 * elf/tst-tls7.c: Likewise.
144 * elf/tst-tls8.c: Likewise.
145 * elf/tst-tls9.c: Likewise.
147 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
148 * sysdeps/generic/ldsodefs.h: Declare it.
149 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
150 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
151 function, broken out of __libc_setup_tls.
152 (init_static_tls): Likewise.
153 (__libc_setup_tls): Call them.
154 (_dl_tls_setup): New function, uses new subroutines.
156 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
157 Clear the pointer when returning true.
158 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
159 first element of the slotinfo list too.
161 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
164 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
165 (_dl_determine_tlsoffset): Likewise.
167 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
168 startup_error_tsd, made global.
169 (dl_main): Update initialization.
170 * elf/dl-tsd.c: Likewise.
171 * sysdeps/generic/ldsodefs.h: Declare it.
173 2002-12-03 Ulrich Drepper <drepper@redhat.com>
175 * manual/texinfo.tex: Update from latest upstream version.
177 2002-12-03 Roland McGrath <roland@redhat.com>
179 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
180 area surplus in calculation for sbrk call.
182 * iconvdata/cp1125.c: New file.
183 * iconvdata/Makefile (distribute): Add it.
184 (modules): Add CP1125.
185 (gen-8bit-gap-modules): Add cp1125.
186 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
187 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
189 2002-12-03 Andreas Jaeger <aj@suse.de>
191 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
193 2002-12-03 Ulrich Drepper <drepper@redhat.com>
195 * sysdeps/posix/system.c (do_system): Make signal handler
196 installation thread safe.
198 2002-12-02 Roland McGrath <roland@redhat.com>
200 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
201 caller from EXTRA to -.
202 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
203 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
204 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
206 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
208 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
209 bits of RM are cleared.
211 2002-12-02 Roland McGrath <roland@redhat.com>
213 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
214 TLS setup is required.
215 * elf/tst-tls5.c: Likewise.
216 * elf/tst-tls6.c: Likewise.
217 * elf/tst-tls7.c: Likewise.
218 * elf/tst-tls8.c: Likewise.
219 * elf/tst-tls9.c: Likewise.
221 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
222 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
223 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
224 for being null before calling free_slotinfo.
225 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
226 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
228 2002-11-30 Bruno Haible <bruno@clisp.org>
230 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
231 (struct __gconv_step): New field __btowc_fct.
232 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
233 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
235 (__gconv_btwoc_ascii): New declaration.
236 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
237 (__gconv_btwoc_ascii): New function.
238 * iconv/gconv_builtin.h: Add BtowcFct argument to all
239 BUILTIN_TRANSFORMATION invocations.
240 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
241 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
242 * iconv/gconv_builtin.c (map): New field btowc_fct.
243 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
245 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
246 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
247 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
248 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
249 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
250 (gconv_init): Initialize __btowc_fct field.
251 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
252 * iconv/loop.c: Document ONEBYTE_BODY.
253 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
254 Undefine ONEBYTE_BODY at the end.
255 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
256 * iconvdata/8bit-gap.c (NONNUL): New macro.
257 (BODY for FROM_LOOP): Use it.
258 (ONEBYTE_BODY): New macro.
259 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
261 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
262 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
263 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
264 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
265 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
266 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
267 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
268 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
269 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
270 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
271 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
272 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
273 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
274 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
275 * iconvdata/ibm932.c: Include <stdbool.h>.
276 (TRUE, FALSE): Remove macros.
277 (BODY for FROM_LOOP): Remove unused variable rp1.
278 (ONEBYTE_BODY): New macro.
279 (BODY for TO_LOOP): Use bool.
280 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
281 * iconvdata/ibm943.c: Include <stdbool.h>.
282 (TRUE, FALSE): Remove macros.
283 (BODY for FROM_LOOP): Remove unused variable rp1.
284 (ONEBYTE_BODY): New macro.
285 (BODY for TO_LOOP): Use bool.
286 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
287 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
288 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
289 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
290 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
291 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
292 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
293 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
294 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
295 * iconvdata/gbbig5.c: Tweak comment.
297 2002-12-02 Ulrich Drepper <drepper@redhat.com>
299 * po/fi.po: Update from translation team.
301 2002-12-01 Roland McGrath <roland@redhat.com>
303 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
304 testing getdents64 return value.
306 * scripts/versions.awk: Don't pass -n flag to sort command.
308 * posix/bug-regex13.c: Include <string.h>.
310 * sysdeps/generic/libc-start.c (__libc_start_main): Do
311 DL_SYSDEP_OSCHECK here.
312 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
313 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
315 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
316 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
318 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
319 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
321 * include/link.h: Comment typo fix.
323 2002-12-01 Roland McGrath <roland@frob.com>
325 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
326 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
327 _POSIX_MEMORY_PROTECTION): Likewise.
328 (_POSIX_POLL, _POSIX_SELECT): Removed.
330 2002-11-28 Ulrich Drepper <drepper@redhat.com>
332 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
333 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
335 2002-11-28 Jakub Jelinek <jakub@redhat.com>
337 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
339 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
342 2002-11-28 Ulrich Drepper <drepper@redhat.com>
344 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
345 branch prediction buffers by using unpaired call/ret.
347 2002-11-27 Ulrich Drepper <drepper@redhat.com>
349 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
350 first parameters constraint string.
351 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
353 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
355 * posix/regcomp.c (parse_expression): Set the bit since the back
356 reference is used in the regular expression.
357 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
359 (re_node_set_init_copy): Likewise.
360 * posix/regex_internal.h (state_array_t): New structure.
361 (re_sub_match_last_t): Likewise.
362 (re_sub_match_top_t): Likewise.
363 (re_match_context_t): Add new members.
364 (re_dfa_t): Likewise.
365 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
366 to check the matching is really correct, and retry if failed.
367 Move the routin pruning the impossible nodes from here, ...
368 (prune_impossible_nodes): To this function.
369 (check_matching): Invoke check_subexp_matching_top, and replace
370 redundant checking with transit_state_bkref invocation.
371 (proceed_next_node): Replace strncmp with memcmp. Reported by
372 Paolo Bonzini <bonzini@gnu.org>.
373 (update_cur_sifted_state): Remove search_subexp invocation.
374 (search_subexp): Remove this function.
375 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
377 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
378 Remove unused invocation of match_ctx_add_entry.
379 (transit_state): Invoke check_subexp_matching_top.
380 (check_subexp_matching_top): New function.
381 (transit_state_bkref): Remove unused array.
382 Merge transit_state_bkref_loop.
383 (transit_state_bkref_loop): Use get_subexp instead of
384 sift_states_backward. Use search_cur_bkref_entry for optimization.
385 Merge this function to transit_state_bkref.
386 (get_subexp): New function.
387 (get_subexp_sub): Likewise.
388 (find_subexp_node): Likewise.
389 (check_arrival): Likewise.
390 (check_arrival_expand_ecl): Likewise.
391 (check_arrival_expand_ecl_sub): Likewise.
392 (expand_bkref_cache): Likewise.
393 (match_ctx_init): Initialize new members.
394 (match_ctx_clean): New function.
395 (match_ctx_free): Release new members.
396 (match_ctx_free_subtops): New function.
397 (match_ctx_add_entry): Fix indent.
398 (search_cur_bkref_entry): New function.
399 (match_ctx_add_subtop): Likewise.
400 (match_ctx_add_sublast): Likewise.
402 2002-11-25 Ulrich Drepper <drepper@redhat.com>
404 * iconv/Makefile (tests): Remove tst-iconv4.c
405 * iconv/tst-iconv4.c: Moved to...
406 * iconvdata/tst-iconv4.c: ...here. New file.
407 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
409 2002-11-25 Roland McGrath <roland@redhat.com>
411 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
412 Grok AF_LINK if defined.
413 From Momchil Velikov <velco@fadata.bg>.
415 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
416 brdaddr, or dstaddr, just set those pointers to null and don't fail.
417 Reported by Momchil Velikov <velco@fadata.bg>.
419 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
420 is > sizeof IFR->ifa_addr, advance past the whole longer length.
421 (__ifreq): Count up NIFS that way too.
422 Reported by Momchil Velikov <velco@fadata.bg>.
424 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
426 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
429 2002-11-24 Ulrich Drepper <drepper@redhat.com>
431 * elf/elf.h (EM_ST19): Fix typo.
433 2002-11-25 Jakub Jelinek <jakub@redhat.com>
435 * include/errno.h (__set_errno): Define as errno = val
438 2002-11-24 Roland McGrath <roland@redhat.com>
440 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
441 * sysdeps/posix/writev.c: Likewise.
442 From Momchil Velikov <velco@fadata.bg>.
444 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
445 calling *GL(dl_error_catch_tsd) for a thread-local location.
446 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
447 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
448 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
450 * libio/iofflush.c: Add libc_hidden_def.
451 * libio/iofwrite.c: Likewise.
452 * sysdeps/generic/sigtimedwait.c: Likewise.
453 * sysdeps/generic/sigwaitinfo.c: Likewise.
454 * sysdeps/posix/sigwait.c: Likewise.
455 Reported by Momchil Velikov <velco@fadata.bg>.
457 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
458 to match <arpa/inet.h> declaration.
459 * inet/inet_netof.c (inet_netof): Likewise.
460 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
461 Reported by Momchil Velikov <velco@fadata.bg>.
463 * configure.in: Skip AUTOCONF check under --without-cvs.
464 * configure: Regenerated.
466 * posix/Makefile (headers): Add bits/pthreadtypes.h.
467 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
468 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
470 2002-11-24 Andreas Schwab <schwab@suse.de>
472 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
475 2002-11-19 Jim Meyering <jim@meyering.net>
477 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
479 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
481 2002-11-23 Roland McGrath <roland@redhat.com>
483 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
484 Just produce hex output for datum sizes.
486 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
487 Reported by Luca Barbieri <ldb@ldb.ods.org>.
489 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
491 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
492 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
493 and __unused3 fields.
494 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
495 [__WORDSIZE == 32]: Only PPC32 requires __unused1
496 and __unused2 fields.
497 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
498 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
499 __unused3, and __unused4 fields.
501 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
502 obtain lowest address for profiling in __monstartup call.
504 2002-11-21 Roland McGrath <roland@redhat.com>
506 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
507 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
509 * locale/localeinfo.h (struct locale_data): Revert last change.
511 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
512 From Ian Wienand <ianw@gelato.unsw.edu.au>.
514 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
515 __NR_pread64 if not defined.
516 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
517 From Ian Wienand <ianw@gelato.unsw.edu.au>.
519 2002-11-21 Roland McGrath <roland@frob.com>
521 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
522 __libc_multiple_libcs here. Call __setfpucw.
524 2002-11-21 Ulrich Drepper <drepper@redhat.com>
526 * elf/Makefile (tests): Don't run test-arrayX tests for now.
528 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
529 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
530 CLONE_CHILD_*TID flags.
532 2002-11-20 Andreas Jaeger <aj@suse.de>
534 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
535 We pass struct ucontext on x86-64.
540 2002-11-20 Roland McGrath <roland@redhat.com>
542 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
543 conditionalize [! DO_VERSIONING] #error.
545 * scripts/abilist.awk: Grok function descriptor symbols.
547 * intl/tst-gettext.c (main): Check return values from setlocale.
548 Add necessary unsetenv's to make LANG=existing-locale check work.
550 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
551 so aborted prior runs don't confuse things.
553 * locale/localeinfo.h (struct locale_data: union locale_data_value):
554 Use uintptr_t instead of unsigned int for `word' member.
555 (_NL_CURRENT_WORD): Cast to uint32_t.
557 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
560 2002-11-20 Ulrich Drepper <drepper@redhat.com>
562 * elf/tls-macros.h: Add IA-64 definitions.
563 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
565 * iconv/Makefile (tests): Add tst-iconv4.
566 * iconv/tst-iconv4.c: New file.
568 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
569 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
570 __GCONV_INCOMPLETE_INPUT.
571 (ucs4le_internal_loop): Likewise.
572 (ucs4le_internal_loop_unaligned): Likewise.
573 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
574 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
575 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
577 * iconv/loop.c (LOOPFCT): First test for empty input then for full
580 * inet/getnameinfo.c: Use extend_alloca where appropriate.
581 * sysdeps/posix/getaddrinfo.c: Likewise.
583 * include/alloca.h (extend_alloca): New define. Based on stack
584 direction it'll try to append to the previouls allocated buffer.
586 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
588 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
589 use the same service for AF_INET and AF_INET6.
591 2002-11-19 Ulrich Drepper <drepper@redhat.com>
593 * intl/localealias.c (read_alias_file): Use only about 400 bytes
594 of stack space instead of 16k.
596 2002-11-18 Wolfram Gloger <wg@malloc.de>
599 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
600 nothing if not initialized. Bug report from Marcus Brinkmann
601 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
603 2002-11-19 Roland McGrath <roland@redhat.com>
605 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
608 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
609 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
610 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
611 * configure: Regenerated.
613 2002-11-19 Ulrich Drepper <drepper@redhat.com>
615 * include/dlfcn.h: __libc_dlopen is now a macro calling
616 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
617 (__libc_dlopen_mode): New prototype.
618 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
619 new parameter. Store new parameter in mode field of structure passed
621 (struct do_dlopen_args): Add new field mode.
622 (do_dlopen): Pass mode from parameter structure to _dl_open.
624 2002-11-11 Randolf Chung <tausq@debian.org>
626 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
627 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
628 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
630 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
632 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
633 Set -mdisable-fpregs for this file.
635 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
637 * sysdeps/unix/sysv/linux/configure.in:
638 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
639 from gcc-3.0 era for backwards compatibility.
640 * sysdeps/unix/sysv/linux/configure: Regenerate.
642 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
643 Define mcontext_t as a sigcontext.
645 2002-11-18 Roland McGrath <roland@redhat.com>
647 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
648 Free memory in `last_result' if it was used.
650 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
651 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
652 Do the parsing inline instead of copying strings and calling
653 inet_network, and properly skip all alias names not matching the form.
655 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
657 2002-11-17 Ulrich Drepper <drepper@redhat.com>
659 * manual/pattern.texi (Wordexp Example): Fix sample code.
661 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
662 childs stack which will be loaded into the %esi register.
664 2002-11-14 Paul Eggert <eggert@twinsun.com>
666 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
667 overflow when skipping the question part and when unpacking aliases.
669 2002-11-15 Roland McGrath <roland@redhat.com>
671 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
672 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
673 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
675 2002-11-15 Jakub Jelinek <jakub@redhat.com>
677 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
678 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
680 2002-11-15 Roland McGrath <roland@redhat.com>
682 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
683 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
684 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
685 (+make-include-of-dep): New canned sequence.
687 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
688 From Dmitry V. Levin <ldv@altlinux.org>.
690 2002-11-14 Roland McGrath <roland@redhat.com>
692 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
693 * inet/herrno.c (__libc_h_errno): Likewise.
694 * resolv/res_libc.c (__libc_res): Likewise.
695 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
696 (__res_state) [! USE___THREAD]: Don't define as weak.
697 * csu/Versions: Revert last change.
698 * resolv/Versions: Revert last change.
700 * Makerules ($(common-objpfx)%.make): New pattern rule.
701 * tls.make.c: New file.
702 * Makefile (distribute): Add it.
704 * sysdeps/generic/errno.c [! USE___THREAD]
705 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
706 with compat_symbol so they are not link-time visible.
707 [! USE___THREAD] (__libc_errno): New alias for errno.
708 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
709 Add __libc_errno here.
710 * inet/herrno.c [USE___THREAD]: Use this conditional
711 in place of [USE_TLS && HAVE___THREAD].
712 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
713 (h_errno, _h_errno): Declare these with compat_symbol so they are not
715 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
716 * resolv/res_libc.c [! USE___THREAD]
717 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
718 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
719 (__libc_res): Define as alias for _res.
720 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
721 Add __libc_h_errno and __libc_res here.
723 2002-11-14 Jakub Jelinek <jakub@redhat.com>
725 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
726 * resolv/Versions (h_errno, _res): Likewise.
728 2002-11-14 Roland McGrath <roland@redhat.com>
730 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
731 (%.symlist): Likewise.
733 2002-11-13 Roland McGrath <roland@redhat.com>
735 * scripts/abilist.awk: New file.
736 * Makefile (distribute): Add it.
737 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
738 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
739 [$(subdir) = elf] (tests): Depend on libc.symlist.
740 (generated, common-generated): Add those files.
742 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
743 * configure: Regenerated.
744 * config.make.in (OBJDUMP): New variable, substituted by configure.
746 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
747 (mallochook, reallochook): Set them up.
748 (checkhdr): Check HDR->magic2 value.
749 (freehook): Reset HDR->magic2.
750 (memalignhook): New static function.
751 (old_memalign_hook): New static variable.
752 (mcheck, reallochook): Set __memalign_hook to memalignhook.
754 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
757 2002-11-13 Andreas Jaeger <aj@suse.de>
759 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
761 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
763 2002-11-11 Paul Eggert <eggert@twinsun.com>
765 * manual/crypt.texi (Cryptographic Functions): Mention that
766 the MD5 one-way algorithm is compatible with BSD's.
768 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
770 * posix/regex_internal.c (re_string_skip_chars): Also return the last
772 (re_string_reconstruct): Calculate the context by itself when the
773 offset points out of the valid range.
774 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
775 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
776 (IS_WIDE_WORD_CHAR): New macro.
777 (IS_WIDE_NEWLINE): New macro.
779 2002-11-12 Andreas Jaeger <aj@suse.de>
781 * sysdeps/x86_64/strchr.S: Don't use one register for two
782 purposes, this fixes a bug noticed by test-strchr.c.
784 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
787 2002-11-12 Roland McGrath <roland@redhat.com>
789 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
790 (_G_IO_NO_BACKWARD_COMPAT): Define it.
792 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
793 instead of <pt-machine.h>.
794 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
796 From Ian Wienand <ianw@gelato.unsw.edu.au>.
798 2002-11-10 Roland McGrath <roland@redhat.com>
800 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
801 Call fputs instead of fwprintf (simpler to follow in debugger).
803 * crypt/md5-crypt.c: Doc fix.
805 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
806 the beginning of generated target commands.
808 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
809 dependencies for these in case implicit rule search skipped the
810 nonexistent source directory.
811 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
812 files with $(object-suffixes) as targets too.
813 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
814 and a target for it using $(make-target-directory).
816 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
818 2002-11-10 Roland McGrath <roland@frob.com>
820 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
821 * sysdeps/generic/bits/pthreadtypes.h: ... here.
823 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
824 l_start == 0 and l_len == 1 as we do l_len == 0.
826 2002-11-10 Ulrich Drepper <drepper@redhat.com>
828 * po/da.po: Update from translation team.
830 2002-11-10 Roland McGrath <roland@redhat.com>
832 * config.make.in (includedir): New variable, substituted by configure.
833 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
834 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
836 2002-11-10 Andreas Jaeger <aj@suse.de>
838 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
839 REG_OLDMASK and REG_CR2 to synch with kernel header.
842 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
844 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
845 * nss/getnssent_r.c (__nss_getent_r): Likewise.
846 (__nss_setent): Likewise.
847 (__nss_getent_r): Likewise.
848 * inet/getnetgrent_r.c (innetgr): Likewise.
849 (__internal_setnetgrent_reuse): Likewise.
850 (internal_getnetgrent_r): Likewise.
851 * inet/ether_hton.c (ether_hostton): Likewise.
852 * inet/ether_ntoh.c (ether_ntohost): Likewise.
853 * sunrpc/netname.c (netname2user): Likewise.
854 * sunrpc/publickey.c (getpublickey): Likewise.
855 (getsecretkey): Likewise.
857 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
859 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
860 error in range calculation.
862 2002-10-09 Jakub Jelinek <jakub@redhat.com>
864 * string/test-strspn.c (do_test): Ensure zero termination.
865 * string/test-strpbrk.c (do_test): Likewise.
866 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
867 * string/test-strncpy.c (stupid_strncpy): Likewise.
868 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
870 2002-10-08 Roland McGrath <roland@redhat.com>
872 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
875 2002-09-22 H.J. Lu <hjl@gnu.org>
877 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
878 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
879 only if __NR_mmap2 is defined.
881 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
882 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
883 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
884 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
886 2002-11-08 Jakub Jelinek <jakub@redhat.com>
888 * posix/bug-regex13.c (tests): Add new test.
890 * string/test-strchr.c (stupid_strchr): New function.
891 (do_random_tests): Make sure the string is zero terminated.
892 * string/test-strpbrk.c (stupid_strpbrk): New function.
893 (do_random_tests): Make sure the string is zero terminated.
894 * string/test-strcmp.c (stupid_strcmp): New function.
895 (do_random_tests): Make sure the strings are zero terminated.
896 * string/test-strspn.c (stupid_strspn): New function.
897 (simple_strspn): Rename rej argument to acc.
898 (do_random_tests): Make sure the string is zero terminated.
899 * string/test-strcspn.c (stupid_strcspn): New function.
900 * string/test-strncpy.c (stupid_strncpy): New function.
901 * string/test-stpncpy.c (stupid_stpncpy): New function.
902 * string/test-strncmp.c (stupid_strncmp): New function.
903 (do_random_tests): Make sure the strings are zero terminated.
904 * string/test-string.h (impl_t): Change test into long.
905 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
907 2002-11-08 Roland McGrath <roland@redhat.com>
909 * sysdeps/ia64/elf/configure.in: Add TLS check.
910 From Ian Wienand <ianw@cse.unsw.edu.au>.
911 * sysdeps/ia64/elf/configure: Regenerated.
913 2002-11-07 Roland McGrath <roland@redhat.com>
915 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
916 place of _IO_new_do_write.
917 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
918 #undef before versioned_symbol use.
920 2002-11-07 Richard Henderson <rth@redhat.com>
922 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
923 * configure: Regenerated.
924 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
925 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
926 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
927 _dl_fini via gp-relative relocations.
928 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
930 * elf/tls-macros.h: Add alpha versions.
931 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
932 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
933 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
934 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
935 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
936 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
937 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
938 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
939 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
940 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
941 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
942 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
943 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
944 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
945 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
946 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
947 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
948 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
950 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
951 Kill argument registers across the inline syscall.
953 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
955 * linuxthreads/sysdeps/alpha/tls.h: New file.
956 * sysdeps/alpha/dl-tls.h: New file.
958 2002-10-29 David Mosberger <davidm@hpl.hp.com>
960 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
961 (gmon_initializer): New function.
962 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
963 __gmon_start__ here. Call it from gmon_initializer() instead.
965 2002-03-12 H.J. Lu <hjl@gnu.org>
967 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
968 tst-array2, and tst-array3.
969 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
970 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
971 ($(objpfx)tst-array1.out): New target.
972 ($(objpfx)tst-array2): Likewise.
973 ($(objpfx)tst-array2.out): Likewise.
974 ($(objpfx)tst-array3.out): Likewise.
975 * elf/tst-array1.c: New file.
976 * elf/tst-array1.exp: Likewise.
977 * elf/tst-array2.c: Likewise.
978 * elf/tst-array2dep.c: Likewise.
979 * elf/tst-array2.exp: Likewise.
980 * elf/tst-array3.c: Likewise.
982 2002-10-28 David Mosberger <davidm@hpl.hp.com>
984 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
985 Don't add L->l_addr to array entry values.
987 2002-11-07 Jakub Jelinek <jakub@redhat.com>
989 * string/test-string.h: New file.
990 * string/test-strlen.c: New file.
991 * string/test-string.h: New file.
992 * string/test-strcmp.c: New file.
993 * string/test-strchr.c: New file.
994 * string/test-strrchr.c: New file.
995 * string/test-strcpy.c: New file.
996 * string/test-stpcpy.c: New file.
997 * string/test-strncpy.c: New file.
998 * string/test-stpncpy.c: New file.
999 * string/test-strpbrk.c: New file.
1000 * string/test-strcspn.c: New file.
1001 * string/test-strspn.c: New file.
1002 * string/test-strcat.c: New file.
1003 * string/test-strncmp.c: New file.
1004 * string/test-memchr.c: New file.
1005 * string/test-memcmp.c: New file.
1006 * string/test-memset.c: New file.
1007 * string/test-memcpy.c: New file.
1008 * string/test-mempcpy.c: New file.
1009 * string/test-memmove.c: New file.
1010 * string/Makefile (strop-tests): New variable.
1011 (tests): Add strop-tests.
1012 (distribute): Add test-string.h.
1014 2002-11-06 Ulrich Drepper <drepper@redhat.com>
1016 * posix/regcomp.c: Use tabs instead of spaces.
1017 * posix/regexec.c: Likewise.
1018 * posix/regex_internal.h: Likewise.
1020 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
1022 2002-11-06 Jakub Jelinek <jakub@redhat.com>
1024 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
1026 (regcomp): Don't set can_be_null here.
1027 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
1028 (re_compile_internal): Clear can_be_null, set regs_allocated.
1030 * posix/regcomp.c (re_set_fastmap): New function.
1031 (re_compile_fastmap_iter): Use it. Remove redundant type ==
1032 COMPLEX_BRACKET check.
1033 * posix/regexec.c (re_search_internal): Optimize searching with
1034 fastmap. Call re_string_reconstruct even if match_first is
1035 smaller than raw_mbs_idx.
1037 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
1039 * posix/regcomp (free_dfa_content): Use free_state.
1040 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
1041 pointers in case that realloc failed.
1042 (re_node_set_merge): Likewise.
1043 (register_state): Likewise.
1044 (create_newstate_common): Invoke memory release functions in case of
1046 (create_ci_newstate): Likewise.
1047 (create_cd_newstate): Likewise.
1048 (free_state): New function.
1049 * posix/regexec.c (re_search_internal): Invoke memory release
1050 functions in case of error conditions.
1051 (sift_states_backward): Likewise.
1052 (merge_state_array): Likewise.
1053 (add_epsilon_src_nodes): Likewise.
1054 (sub_epsilon_src_nodes): Likewise.
1055 (search_subexp): Likewise.
1056 (sift_states_bkref): Likewise.
1057 (transit_state_sb): Likewise.
1058 (transit_state_mb): Likewise.
1059 (transit_state_bkref_loop): Likewise.
1060 (group_nodes_into_DFAstates): Likewise.
1061 (push_fail_stack): Don't edit pointers in case that realloc failed.
1062 (extend_buffers): Likewise.
1063 (match_ctx_add_entry): Likewise.
1065 2002-11-06 Roland McGrath <roland@redhat.com>
1067 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
1068 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
1070 * configure.in: Add checks on as and ld for binutils 2.13 or later.
1071 * configure: Regenerated.
1073 2002-11-06 Ulrich Drepper <drepper@redhat.com>
1075 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
1076 If re_compile_internal failed free fastmap buffer.
1077 (free_dfa_content): Broken out of regfree function. Frees all dfa
1079 (regfree): Add free_dfa_content.
1080 (re_compile_internal): If any of the called functions fails free
1081 all dfa related memory.
1083 2002-11-05 Ulrich Drepper <drepper@redhat.com>
1085 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
1086 warnings from the kernel headers.
1088 2002-11-05 Roland McGrath <roland@redhat.com>
1090 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
1091 From Johannes Stezenbach <js@convergence.de>.
1093 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
1094 #errlist-compat magic comment to give 123 as size.
1095 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
1096 (libc: GLIBC_2.2): ... here.
1097 (libc: GLIBC_2.3): Likewise.
1099 2002-11-05 Ulrich Drepper <drepper@redhat.com>
1101 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
1102 which happens at the beginning so that we can unload modules in
1105 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1107 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
1108 under [__USE_MISC || _ASM].
1110 * elf/elf.h: Remove the obsolete SH TLS relocations.
1112 2002-11-05 Ulrich Drepper <drepper@redhat.com>
1114 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
1116 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1118 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
1119 __NR_pread64 and __NR_pwrite64.
1120 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
1121 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
1123 Revert change to use INLINE_SYSCALL.
1124 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
1125 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
1126 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
1127 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
1129 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
1131 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
1132 Update clobber list and add a comment about the syscall ABI.
1134 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
1135 s_pwrite64, s_ftruncate, s_truncate): Re-add.
1137 2002-11-05 Jakub Jelinek <jakub@redhat.com>
1139 * iconv/gconv_dl.c (free_mem): Clear loaded.
1140 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
1143 2002-11-05 Ulrich Drepper <drepper@redhat.com>
1145 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
1147 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
1148 as old code without locking. _IO_seekoff calls this function after
1150 * libio/ioseekpos.c: Likewise for _IO_seekpos.
1151 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
1152 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
1154 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
1155 of _IO_seekoff_internal.
1156 (_IO_rewind): Likewise.
1157 * libio/ioftell.c: Likewise.
1158 * libio/ftello.c: Likewise.
1159 * libio/ftello64.c: Likewise.
1160 * libio/iofgetpos.c: Likewise.
1161 * libio/iofgetpos64.c: Likewise.
1162 * libio/oldiofgetpos.c: Likewise.
1163 * libio/oldiofgetpos64.c: Likewise.
1164 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
1165 _IO_seekpos_internal.
1166 * libio/iofsetpos64.c: Likewise.
1167 * libio/oldiofsetpos.c: Likewise.
1168 * libio/oldiofsetpos64.c: Likewise.
1170 2002-11-04 Roland McGrath <roland@redhat.com>
1172 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
1173 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
1174 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
1175 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
1176 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
1177 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
1178 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
1179 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
1180 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
1181 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
1182 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
1183 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
1184 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
1185 Remove these, no longer used.
1187 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1189 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
1190 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
1191 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
1192 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
1193 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
1194 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
1197 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
1198 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
1199 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
1201 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
1202 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
1204 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
1206 2002-11-03 Roland McGrath <roland@redhat.com>
1208 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
1209 `_dl_tls_static_used'.
1210 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
1211 (__libc_setup_tls): Initialize it. Let the initial value of
1212 _dl_tls_static_size indicate some surplus space in the computed value.
1213 * elf/dl-open.c (_dl_tls_static_size): New variable.
1214 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
1215 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
1216 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
1217 (CHECK_STATIC_TLS): Use it.
1218 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
1219 closed objects occupied a trailing contiguous chunk of static TLS area.
1221 2002-10-18 Bruno Haible <bruno@clisp.org>
1223 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
1225 2002-11-04 Ulrich Drepper <drepper@redhat.com>
1227 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
1228 _wide_data->_IO_read_end if adjustment can be made in the current
1231 * sysdeps/unix/sysv/linux/fexecve.c: New file.
1233 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
1234 wide oriented streams are used.
1236 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
1237 service hasn't been used [PR libc/4744].
1239 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
1240 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
1242 * manual/examples/dir.c: Don't include <stddef.h>.
1243 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
1244 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
1246 2002-11-02 H.J. Lu <hjl@gnu.org>
1248 * stdio-common/reg-printf.c: Include <stddef.h>.
1250 2002-11-03 Ulrich Drepper <drepper@redhat.com>
1252 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
1254 * po/ca.po: Update from translation team.
1255 * po/es.po: Likewise.
1257 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
1258 is defined write out memory map.
1259 * sysdeps/unix/sysv/linux/segfault.c: New file.
1261 2002-11-02 Roland McGrath <roland@redhat.com>
1263 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
1264 pointers that can alias.
1265 Reported by Daniel Jacobowitz <drow@mvista.com>.
1267 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
1269 2002-11-02 Roland McGrath <roland@redhat.com>
1271 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
1272 description to be clearer and to say that *RESULT is set to ENTRY.
1274 2002-10-30 Jakub Jelinek <jakub@redhat.com>
1276 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
1277 dests_ch arrays together. Alloca or malloc dest_states,
1278 dest_states_word and dest_states_nl arrays together. Free memory on
1281 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1283 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
1284 and current_saltbits.
1286 2002-11-02 Roland McGrath <roland@redhat.com>
1288 * stdio-common/reg-printf.c: Include <stdlib.h>.
1290 2002-11-02 H.J. Lu <hjl@gnu.org>
1292 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
1293 caller to EXTRA instead of execve.
1295 2002-11-01 Roland McGrath <roland@redhat.com>
1297 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
1298 in place of [!(USE_TLS && HAVE___THREAD)].
1299 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
1301 2002-10-31 Roger Sayle <roger@eyesopen.com>
1303 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
1305 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
1307 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
1308 without defining FP_ROUNDMODE.
1310 2002-10-29 Jakub Jelinek <jakub@redhat.com>
1312 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
1313 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
1315 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
1316 (OLD_SIGLIST_SIZE): Define.
1317 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
1318 (OLD_SIGLIST_SIZE): Define.
1319 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
1321 2002-11-01 Jakub Jelinek <jakub@redhat.com>
1323 * sysdeps/ia64/strncpy.S: Fix recovery code.
1325 2002-10-30 Jakub Jelinek <jakub@redhat.com>
1327 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
1329 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
1331 * elf/dl-libc.c (free_mem): Likewise.
1332 * iconv/gconv_conf.c (free_mem): Likewise.
1333 * iconv/gconv_db.c (free_mem): Likewise.
1334 * iconv/gconv_dl.c (free_mem): Likewise.
1335 * iconv/gconv_cache.c (free_mem): Likewise.
1336 * intl/finddomain.c (free_mem): Likewise.
1337 * intl/dcigettext.c (free_mem): Likewise.
1338 * locale/setlocale.c (free_mem): Likewise.
1339 * misc/fstab.c (fstab_free): Likewise.
1340 * nss/nsswitch.c (free_mem): Likewise.
1341 * posix/regcomp.c (free_mem): Likewise.
1342 * resolv/gai_misc.c (free_res): Likewise.
1343 * stdlib/fmtmsg.c (free_mem): Likewise.
1344 * sunrpc/clnt_perr.c (free_mem): Likewise.
1345 * sysdeps/generic/setenv.c (free_mem): Likewise.
1346 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
1347 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
1348 * time/tzset.c (free_mem): Likewise.
1349 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
1350 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
1351 * malloc/set-freeres.c (__libc_freeres): Likewise.
1353 * login/getutent.c: Include stdlib.h instead of stddef.h.
1354 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
1355 (__getutent): Allocate buffer the first time it is run.
1356 * login/getutid.c: Include stdlib.h instead of stddef.h.
1357 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
1358 (__getutid): Allocate buffer the first time it is run.
1359 * login/getutline.c: Include stdlib.h instead of stddef.h.
1360 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
1361 (__getutline): Allocate buffer the first time it is run.
1362 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
1363 (mtrace): Allocate malloc_trace_buffer.
1364 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
1365 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
1366 * string/strerror.c: Include libintl.h and errno.h.
1367 (buf): New variable.
1368 (strerror): Only allocate buffer if actually needed (unknown error).
1369 * time/tzfile.c (transitions): Add libc_freeres_ptr.
1372 2002-10-25 Jakub Jelinek <jakub@redhat.com>
1374 * include/libc-symbols.h (libc_freeres_ptr): New macro.
1375 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
1377 (__libc_freeres): Free all pointers in that section.
1378 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
1379 commands when creating .lds script.
1380 (LDSEDCMD-c.so): New variable.
1381 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
1382 (rcmd_af): Use strdup to allocate ahostbuf.
1383 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
1384 (rexec_af): Use strdup to allocate ahostbuf.
1385 * stdio-common/reg-printf.c (printf_funcs): Remove.
1386 (__printf_arginfo_table): Change into printf_arginfo_function **.
1387 Add libc_freeres_ptr.
1388 (__register_printf_function): Allocate __printf_arginfo_table
1389 and __printf_function_table the first time it is called.
1390 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
1391 printf_arginfo_function **.
1392 (parse_one_spec): Add __builtin_expect.
1393 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
1395 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
1397 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
1398 (string_space, map): Add libc_freeres_ptr.
1400 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
1402 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
1404 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
1405 (buffer): Add libc_freeres_ptr.
1406 (free_mem): Remove for _LIBC.
1407 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
1409 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
1411 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
1413 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
1415 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
1417 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
1419 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
1422 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
1426 2002-10-30 Jakub Jelinek <jakub@redhat.com>
1428 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
1429 instead of duplicating the whole function in libc.
1431 2002-10-31 Roland McGrath <roland@redhat.com>
1433 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
1434 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
1436 2002-10-30 Jakub Jelinek <jakub@redhat.com>
1438 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
1439 32bit-predefine when creating .new32 list and -U for each
1440 32bit-predefine when creating .new64 list.
1441 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
1443 2002-10-29 Andreas Schwab <schwab@suse.de>
1445 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
1446 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
1448 2002-10-25 Roland McGrath <roland@redhat.com>
1450 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
1451 * sysdeps/unix/sysv/linux/configure: Regenerated.
1453 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
1454 _dl_starting_up decl.
1456 2002-10-20 H.J. Lu <hjl@gnu.org>
1458 * sysdeps/unix/sysv/linux/configure.in: Don't check
1459 /lib/modules/`uname -r`/build/include for kernel headers if
1461 * sysdeps/unix/sysv/linux/configure: Regenerated.
1463 2002-10-25 Roland McGrath <roland@redhat.com>
1465 * math/math.h (M_LOG2El): Correct the value.
1466 From Stephen L Moshier <steve@moshier.net>.
1468 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
1469 conditional from __libc_multiple_libcs access. Remove kludge for weak
1470 symbol access with old compilers we no longer support.
1471 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
1472 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
1474 2002-10-25 Roland McGrath <roland@redhat.com>
1476 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
1477 implement SV_RESETHAND by translating it to SA_RESETHAND.
1479 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
1481 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
1482 type on ELF64 platforms.
1484 2002-10-24 Ulrich Drepper <drepper@redhat.com>
1486 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
1488 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
1490 2002-10-24 Jakub Jelinek <jakub@redhat.com>
1492 * elf/dl-misc.c: Include <sysdep.h>.
1493 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
1495 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
1496 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
1497 (INLINE_SYSCALL): Use that.
1498 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
1499 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
1500 (INLINE_SYSCALL): Use that.
1501 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
1502 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
1503 (INLINE_SYSCALL): Use that.
1504 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
1506 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
1507 (__INTERNAL_SYSCALL_STRING): Define.
1508 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
1510 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
1511 (__INTERNAL_SYSCALL_STRING): Define.
1512 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
1513 __SYSCALL_STRING to inline_syscall*.
1514 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
1516 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
1517 inline_syscall4, inline_syscall5, inline_syscall6): Add string
1520 2002-10-24 Roland McGrath <roland@redhat.com>
1522 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
1523 * sysdeps/unix/sysv/linux/init-first.c: Not here.
1524 * sysdeps/powerpc/elf/libc-start.c: Or here.
1525 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
1526 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
1527 * sysdeps/unix/sysv/aix/init-first.c: Or here.
1528 * sysdeps/generic/libc-start.c: Or here.
1529 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
1530 access with [! SHARED].
1531 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
1533 * libio/bug-wfflush.c: New file.
1534 * libio/Makefile (tests): Add bug-wfflush.
1536 2002-10-23 Roland McGrath <roland@redhat.com>
1538 * stdio-common/tst-fphex.c: New file.
1539 * stdio-common/Makefile (tests): Add tst-fphex.
1540 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
1541 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
1542 chars always before the value digits.
1543 Reported by James Antill <james.antill@redhat.com>.
1545 2002-10-24 Jakub Jelinek <jakub@redhat.com>
1547 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
1548 (free_mem): New function.
1549 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
1550 if not cross compiling.
1551 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
1552 (bug-regex14-ENV): Set.
1553 (bug-regex14-mem): New target.
1554 * posix/bug-regex14.c: New file.
1556 2002-10-23 Roland McGrath <roland@redhat.com>
1558 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
1559 target, so we don't touch it when the link fails.
1561 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
1562 Check for the result overflowing off_t and fail with EOVERFLOW.
1563 * libio/ioftell.c (_IO_ftell): Likewise.
1564 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
1566 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
1567 use a temporary timeval on the stack for gettimeofday and copy it.
1568 * login/logout.c (logout): Likewise.
1569 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
1571 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
1572 Use __SWORD_TYPE instead of int for member types.
1573 (struct statfs64): Likewise.
1574 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
1575 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
1576 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
1577 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
1578 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
1580 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
1581 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
1582 (ST_NODIRATIME): Restore fixed value of 2048.
1583 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
1584 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
1586 Rearranged <bits/types.h> definitions to reduce duplication.
1587 * sysdeps/generic/bits/types.h: Rewritten, using macros from
1588 <bits/wordsize.h> and new header <bits/typesizes.h>.
1589 * posix/Makefile (headers): Add bits/typesizes.h here.
1590 * sysdeps/generic/bits/typesizes.h: New file.
1591 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
1592 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
1593 * sysdeps/mach/hurd/bits/typesizes.h: New file.
1594 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
1595 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
1596 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
1597 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
1598 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
1599 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
1600 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
1601 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
1602 <bits/pthreadtypes.h> here, not in <bits/types.h>.
1603 * signal/signal.h: Likewise.
1605 * streams/stropts.h: Include <bits/xtitypes.h>.
1606 * streams/Makefile (headers): Add bits/xtitypes.h here.
1607 * sysdeps/generic/bits/xtitypes.h: New file.
1608 * sysdeps/s390/bits/xtitypes.h: New file.
1609 * sysdeps/ia64/bits/xtitypes.h: New file.
1610 * sysdeps/x86_64/bits/xtitypes.h: New file.
1612 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
1613 * sysdeps/generic/bits/ipctypes.h: New file.
1614 * sysdeps/mips/bits/ipctypes.h: New file.
1615 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
1616 * sysdeps/gnu/bits/msq.h: Likewise.
1617 * sysvipc/sys/ipc.h: Likewise.
1619 2002-10-22 Ulrich Drepper <drepper@redhat.com>
1621 * elf/dl-load.c (struct filebuf): For buf element to have the
1622 alignment of ElfXX_Ehdr since this is what will be stored in it.
1624 2002-10-22 Jakub Jelinek <jakub@redhat.com>
1626 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
1627 into pointer to locrec_offset.
1628 (add_locale_to_archive): Adjust callers. Free normalized_name right
1629 before returning, not immediately after add_locale, pass it to
1630 add_alias if not NULL instead of name. Rename second normalized_name
1631 occurence to nnormalized_codeset_name.
1633 * locale/programs/locarchive.c (enlarge_archive): Make sure
1634 string_size is always a multiple of 4.
1635 Reported by Andreas Schwab <schwab@suse.de>.
1637 2002-10-21 Andreas Schwab <schwab@suse.de>
1639 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
1640 caller to EXTRA instead of execve, since the latter has a
1641 higher-priority implementation in linuxthreads.
1643 2002-10-21 Roland McGrath <roland@redhat.com>
1645 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
1646 slotinfo list's len member to the proper size, not just 1.
1647 Initialize static_map.l_tls_initimage.
1649 * elf/dl-open.c (dl_open_worker): Fix loop searching for
1650 dtv_slotinfo_list element containing new modules' l_tls_modid.
1652 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
1653 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
1654 * elf/Makefile (tests): Add tst-tls9.
1655 (tests-static): Add tst-tls9-static.
1656 (tst-tls9-static-ENV): New variable.
1657 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
1659 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
1660 modids used by partially loaded modules being closed can't be known.
1662 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
1664 * posix/Makefile: Add a test case for the bug reported by Aharon
1665 Robbins <arnold@skeeve.com>.
1666 * posix/bug-regex13.c: New file.
1667 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
1669 2002-10-21 Ulrich Drepper <drepper@redhat.com>
1671 * csu/gmon-start.c: Pretty printing.
1673 2002-10-19 Art Haas <ahaas@neosoft.com>
1675 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
1676 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
1677 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
1678 * configure: Regenerated.
1680 2002-10-19 Roland McGrath <roland@redhat.com>
1682 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
1683 and then set $subdirs directly, because the new Autoconf breaks
1684 compatibility in every way imaginable and insists on whining
1685 about usage that worked since the dawn of time.
1686 * configure: Regenerated.
1688 * configure: Regenerated (using Autoconf 2.54).
1689 * sysdeps/alpha/elf/configure: Likewise.
1690 * sysdeps/generic/configure: Likewise.
1691 * sysdeps/i386/elf/configure: Likewise.
1692 * sysdeps/ia64/elf/configure: Likewise.
1693 * sysdeps/mach/hurd/configure: Likewise.
1694 * sysdeps/mach/configure: Likewise.
1695 * sysdeps/unix/configure: Likewise.
1696 * sysdeps/unix/common/configure: Likewise.
1697 * sysdeps/unix/sysv/aix/configure: Likewise.
1698 * sysdeps/unix/sysv/linux/configure: Likewise.
1699 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
1700 * sysdeps/x86_64/elf/configure: Likewise.
1702 * config.make.in: Nix completely-soft nonsense.
1703 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
1704 of machine directories instead of fpu subdirectory.
1705 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
1706 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
1707 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
1708 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
1709 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
1710 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
1711 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
1712 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
1713 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
1714 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
1715 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
1716 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
1717 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
1718 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
1719 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
1720 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
1721 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
1722 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
1723 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
1724 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
1725 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
1726 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
1727 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
1728 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
1729 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
1730 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
1731 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
1732 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
1733 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
1734 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
1735 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
1736 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
1737 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
1738 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
1739 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
1740 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
1741 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
1742 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
1743 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
1744 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
1746 2002-10-19 Bruno Haible <bruno@clisp.org>
1748 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
1750 2002-10-18 Roland McGrath <roland@redhat.com>
1752 * io/Makefile (routines): Add lchmod.
1753 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
1754 * sysdeps/generic/lchmod.c: New file.
1755 * sysdeps/mach/hurd/lchmod.c: New file.
1756 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
1758 2002-10-18 Art Haas <ahaas@neosoft.com>
1760 * configure.in: Remove remaining AC_FD_CC macros, and replace
1761 AC_FD_MSG with AS_MESSAGE_FD.
1763 2002-10-18 Roland McGrath <roland@redhat.com>
1765 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
1766 typos: VALUE -> FINALADDR.
1768 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
1769 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
1770 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
1771 (inline_syscall6): Move these macros ...
1772 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
1774 * configure.in (libc_link_dests, libc_link_sources): Remove these
1775 variables and the AC_LINK_FILES call.
1777 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
1778 change to put new symbols here instead of in GLIBC_2.2.
1779 * sysdeps/powerpc/Subdirs: Move this file ...
1780 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
1782 2002-10-07 Roland McGrath <roland@redhat.com>
1784 * sysdeps/generic/bits/time.h: Replaced with contents of the
1785 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
1786 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
1787 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
1788 macros is ok even for architectures that don't now implement them.
1789 * sysdeps/mach/hurd/bits/time.h: File removed.
1790 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
1791 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
1792 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
1793 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
1794 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
1796 2002-10-18 Jeff Bailey <jbailey@gnu.org>
1798 * configure.in: Replace obsolete AC_OUTPUT syntax with
1799 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
1801 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
1802 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
1804 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
1805 * sysdeps/alpha/elf/configure.in: Likewise.
1806 * sysdeps/i386/elf/configure.in: Likewise.
1807 * sysdeps/mach/hurd/configure.in: Likewise.
1808 * sysdeps/x86_64/elf/configure.in: Likewise.
1810 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
1812 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
1813 * sysdeps/generic/configure.in: Likewise.
1814 * sysdeps/i386/elf/configure.in: Likewise.
1815 * sysdeps/ia64/elf/configure.in: Likewise.
1816 * sysdeps/mach/configure.in: Likewise.
1817 * sysdeps/mach/hurd/configure.in: Likewise.
1818 * sysdeps/unix/configure.in: Likewise.
1819 * sysdeps/unix/common/configure.in: Likewise.
1820 * sysdeps/unix/sysv/aix/configure.in: Likewise.
1821 * sysdeps/unix/sysv/linux/configure.in: Likewise.
1822 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
1823 * sysdeps/x86_64/elf/configure.in: Likewise.
1825 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
1826 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
1827 that it's obvious when extra autoconf machinery is being dragged in.
1829 2002-10-18 Roland McGrath <roland@redhat.com>
1831 * configure.in: Remove bogus echo included in
1832 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
1833 * configure: Regenerated.
1835 2002-10-18 Jakub Jelinek <jakub@redhat.com>
1837 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
1838 (statfs_filesize_max): New function.
1839 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
1840 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
1841 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
1842 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
1843 statfs_filesize_max.
1844 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
1845 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
1846 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
1848 2002-10-17 Roland McGrath <roland@redhat.com>
1850 * configure.in (MIG): Just AC_SUBST it here.
1851 * configure: Regenerated.
1852 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
1853 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
1854 * sysdeps/mach/configure: Regenerated.
1856 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
1857 and AC_PROVIDE([_AS_CR_PREPARE]).
1859 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
1860 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
1862 * elf/dl-support.c: Move _dl_tls_* variables to ...
1863 * sysdeps/generic/libc-tls.c: ... here.
1865 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
1866 allow IDX to be one past the current last slotinfo entry.
1867 (_dl_close): Pass IMAP->l_init_called for that parameter.
1869 2002-10-07 Andreas Schwab <schwab@suse.de>
1871 * aclocal.m4: Fix for autoconf 2.53.
1872 * configure.in: Likewise. Require autoconf 2.53.
1874 2002-10-08 Richard Henderson <rth@redhat.com>
1876 * soft-fp/op-4.h: Handle carry correctly in
1877 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
1878 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
1879 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
1881 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
1883 * configure.in: Compute completely-soft.
1884 * config.make.in: Make completely-soft available to sub-makes.
1885 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
1886 gcc-double-routines. Add sim-full.c. Add fenv_const and
1887 fe_nomask to libm-support.
1888 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
1889 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
1890 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
1891 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
1892 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
1893 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
1894 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
1895 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
1896 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
1897 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
1898 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
1899 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
1900 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
1901 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
1902 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
1903 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
1904 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
1905 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
1906 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
1907 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
1909 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
1910 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
1911 FP_HANDLE_EXCEPTIONS.
1912 Define FP_ROUNDMODE.
1913 Redefine FP_* macros to correspond to the FE_* bit positions.
1914 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
1915 Define externs for __sim_exceptions, __sim_disabled_exceptions,
1916 __sim_round_mode, __simulate_exceptions.
1917 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
1918 * sysdeps/powerpc/bits/fenv.h: ...to here.
1920 2002-10-06 Jakub Jelinek <jakub@redhat.com>
1922 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
1923 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
1924 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
1925 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
1928 2002-10-15 Jakub Jelinek <jakub@redhat.com>
1930 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
1931 __libc_res_nsend): New prototypes.
1932 * resolv/res_query.c (QUERYSIZE): Define.
1933 (__libc_res_nquery): Renamed from res_nquery. Added answerp
1934 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
1935 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
1936 res_nsend, pass answerp.
1937 (res_nquery): Changed into wrapper around __libc_res_nquery.
1938 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
1939 argument. Call __libc_res_nquerydomain and __libc_res_nquery
1940 instead of the non-__libc_ variants, pass them answerp.
1941 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
1942 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
1943 Added answerp argument. Call __libc_res_nquery instead of
1944 res_nquery, pass answerp.
1945 (res_nquerydomain): Changed into wrapper around
1946 __libc_res_nquerydomain.
1947 * resolv/res_send.c: Include sys/ioctl.h.
1948 (MAXPACKET): Define.
1949 (send_vc): Change arguments. Reallocate answer buffer if it is
1951 (send_dg): Likewise.
1952 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
1953 Reallocate answer buffer if it is too small and hooks are in use.
1954 Adjust calls to send_vc and send_dg.
1955 (res_nsend): Changed into wrapper around __libc_res_nsend.
1956 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
1957 just 1K answer buffer on the stack, use __libc_res_nsearch instead
1959 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
1960 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
1961 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
1962 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
1963 (gethostbyaddr): Similarly with __libc_res_nquery.
1964 * resolv/Versions (libresolv): Export __libc_res_nquery and
1965 __libc_res_nsearch at GLIBC_PRIVATE.
1967 2002-10-17 Roland McGrath <roland@redhat.com>
1969 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
1970 * configure: Regenerated.
1972 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
1973 before performing the reloc, not after.
1974 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
1976 2002-10-17 Ulrich Drepper <drepper@redhat.com>
1978 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
1979 * locale/programs/linereader.c (lr_open): Likewise.
1980 * locale/programs/charmap-dir.c (charmap_open): Likewise.
1981 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
1983 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
1985 * posix/bug-regex11.c: Add a test case for the bug reported by
1986 Paolo Bonzini <bonzini@gnu.org>.
1987 * posix/regexec.c (sift_states_bkref): Use correct destination of
1990 2002-10-17 Roland McGrath <roland@redhat.com>
1992 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
1993 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
1994 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
1995 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
1996 Call it after performing TPOFF relocs.
1997 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1998 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
1999 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
2001 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
2002 when closing a partially-initialized object.
2004 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
2005 instead of _dl_fatal_printf when we see PT_TLS.
2007 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
2008 instead of $(libof-$<).
2010 2002-10-16 Roland McGrath <roland@redhat.com>
2012 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
2013 instead of += to append, to be sure $(lib) gets expanded at defn time.
2014 (libof-$(cpp-src)): New variable, define this instead.
2015 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
2016 (lib): Don't use override.
2017 (CPPFLAGS-$(lib)): New variable, put -D's here.
2018 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
2019 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
2020 LIB found by $(libof-*) for basename, target, or source.
2021 * Makerules (CPPFLAGS-nonlib): New variable.
2022 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
2023 * locale/Makefile (lib): Likewise.
2024 * sunrpc/Makefile (lib): Likewise.
2026 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
2027 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
2028 * sysdeps/unix/sysv/linux/pathconf.h: New file.
2029 (statfs_link_max): New function, guts from fpathconf.c.
2030 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
2031 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
2032 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
2033 to use the linux/pathconf.c code by #include rather than duplication.
2034 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
2036 2002-10-16 Jakub Jelinek <jakub@redhat.com>
2038 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
2039 Use __libc_errno only for libc itself.
2041 2002-10-16 Andreas Jaeger <aj@suse.de>
2043 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
2045 2002-10-16 Ulrich Drepper <drepper@redhat.com>
2047 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
2048 Use __libc_errno only for libc itself.
2050 2002-10-15 Roland McGrath <roland@redhat.com>
2051 Jakub Jelinek <jakub@redhat.com>
2053 * sysdeps/unix/sysv/linux/Makefile
2054 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
2055 sparc/Makefile to produce a bi-arch file as needed.
2056 That's now parameterized by the variable $(64bit-predefine).
2057 Use LC_ALL=C for `comm' commands in that rule.
2058 No longer conditional on [$(no_syscall_list_h)].
2059 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
2060 (64bit-predefine): New variable.
2061 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
2062 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
2063 * sysdeps/unix/sysv/linux/powerpc/Makefile
2064 (64bit-predefine): New variable.
2066 2002-10-15 Roland McGrath <roland@redhat.com>
2068 * sysdeps/unix/sysv/linux/Makefile
2069 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
2071 * login/utmp-private.h: Declare __libc_utmp_lock.
2072 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
2073 and call __libc_utmp_jump_table functions directly, instead of using
2076 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
2077 * sysdeps/unix/sysv/linux/configure: Regenerated.
2079 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
2080 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
2081 Use int32_t for ll_time.
2082 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
2083 Use int32_t instead of long int for ut_session.
2084 Use an anonymous struct with 32-bit fields for ut_tv.
2085 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
2086 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
2087 here as in utmp.h for `struct utmp'.
2088 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
2089 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
2090 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
2091 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
2092 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
2093 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
2095 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
2096 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
2097 All the following files were identical or equivalent to it.
2098 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
2099 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
2100 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
2101 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
2102 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
2103 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
2104 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
2105 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
2106 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
2107 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
2109 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
2110 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
2111 Other than the previously incorrect sign of msg_iovlen, this is a
2112 no-op on 32-bit platforms. On 64-bit platforms it makes this header
2113 match their layouts as well, so the following are now identical to it.
2114 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
2115 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
2116 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
2117 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
2118 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
2120 2002-10-15 Ulrich Drepper <drepper@redhat.com>
2122 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
2123 Define for 2.4+ kernels.
2125 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
2126 are known to have the vfork syscall. Don't confuse the CPUs
2127 branch prediction unit by jumping to the return address.
2129 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
2130 support for reiserfs and xfs.
2132 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
2134 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
2136 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
2138 2002-10-16 Jakub Jelinek <jakub@redhat.com>
2140 * include/libc-symbols.h (attribute_tls_model_ie): Define.
2141 * include/errno.h (errno): Define to __libc_errno in libc.so.
2142 Add attribute_tls_model_ie.
2143 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
2144 Add attribute_tls_model_ie.
2145 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
2146 attribute_tls_model_ie.
2147 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
2149 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
2151 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
2152 attribute_tls_model_ie.
2153 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
2155 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
2156 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
2157 __libc_errno in USE___THREAD case.
2158 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
2160 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
2161 __attribute__((tls_model (""))).
2162 * configure: Rebuilt.
2163 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
2165 2002-10-15 Ulrich Drepper <drepper@redhat.com>
2167 * timezone/asia: Update from tzdata2002d.
2168 * timezone/australasia: Likewise.
2169 * timezone/iso3166.tab: Likewise.
2170 * timezone/southamerica: Likewise.
2171 * timezone/zone-tab: Likewise.
2173 2002-10-15 Roland McGrath <roland@redhat.com>
2175 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
2176 Adjust TCB pointer before calling free, so we get the whole block.
2178 2002-10-14 Roland McGrath <roland@redhat.com>
2180 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
2181 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
2182 extern using attribute_hidden instead of static, avoids warning.
2184 2002-10-09 Jakub Jelinek <jakub@redhat.com>
2186 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
2187 * sysdeps/unix/sysv/linux/configure: Rebuilt.
2189 2002-10-14 Ulrich Drepper <drepper@redhat.com>
2191 * po/sv.po: Update from translation team.
2193 2002-10-12 H.J. Lu <hjl@gnu.org>
2195 * sunrpc/thrsvc.c (PROCQUIT): New.
2196 (struct rpc_arg): New.
2197 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
2198 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
2199 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
2200 (main): Modified for struct rpc_arg *.
2202 2002-10-14 Ulrich Drepper <drepper@redhat.com>
2204 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
2206 2002-10-14 Jakub Jelinek <jakub@redhat.com>
2208 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
2209 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
2210 in ld.so even if __thread is supported.
2212 2002-10-13 Jakub Jelinek <jakub@redhat.com>
2214 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
2215 Add hack to prevent the compiler from clobbering the signal context.
2216 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
2218 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
2221 2002-10-14 Andreas Jaeger <aj@suse.de>
2223 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
2224 Guido Guenther <agx@sigxcpu.org>.
2226 2002-10-14 Ulrich Drepper <drepper@redhat.com>
2228 * po/sk.po: Update from translation team.
2230 2002-09-26 Roland McGrath <roland@redhat.com>
2232 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
2234 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
2235 DL_DST_LIB based on $(slibdir).
2237 2002-10-13 Roland McGrath <roland@frob.com>
2239 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
2241 * sysdeps/mach/hurd/getresuid.c: New file.
2242 * sysdeps/mach/hurd/getresgid.c: New file.
2243 * sysdeps/mach/hurd/setresuid.c: New file.
2244 * sysdeps/mach/hurd/setresgid.c: New file.
2246 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
2247 setresgid): Declare them.
2250 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
2251 add libc_hidden_proto.
2252 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
2253 getresuid, getresgid, setresuid, setresgid here.
2254 * Versions.def (libc): Define GLIBC_2.3.2 set.
2255 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
2256 Add libc_hidden_def.
2257 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
2258 * sysdeps/generic/setresgid.c: New file.
2259 * sysdeps/generic/setresuid.c: New file.
2260 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
2261 (sysdep_routines): Don't add getresuid and getresgid here.
2262 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
2263 (sysdep_routines): Don't add setresuid and setresgid here.
2264 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
2265 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
2266 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
2267 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
2268 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
2269 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
2270 * posix/Makefile (routines): Add them all here instead.
2271 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
2272 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
2273 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
2274 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
2275 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
2276 [! __NR_setresuid]: Include generic file.
2277 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
2278 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
2279 [! __NR_setresuid]: Include generic file.
2280 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
2281 Caller is - now, not EXTRA.
2282 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
2283 (setresuid, setresgid, getresuid, getresgid): Likewise.
2284 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
2285 Add these calls here.
2286 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
2287 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2288 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2289 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2290 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2291 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
2292 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
2293 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2294 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2296 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
2297 (sysdep_routines): Add setfsuid and setfsgid here.
2298 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
2299 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
2300 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
2301 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
2302 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
2303 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
2304 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
2305 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
2307 * hurd/errno.c: Renamed to ...
2308 * hurd/errno-loc.c: ... this.
2309 * hurd/Makefile (routines): errno -> errno-loc
2311 2002-10-13 Ulrich Drepper <drepper@redhat.com>
2313 * po/de.po: Update from translation team.
2315 * MakeTAGS: Add -E flag to xgettext runs.
2317 2002-10-12 Ulrich Drepper <drepper@redhat.com>
2319 * po/fr.po: Update from translation team.
2321 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
2322 Optimize a bit for use in glibc.
2324 2002-10-12 Roland McGrath <roland@redhat.com>
2326 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
2327 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
2329 2002-10-12 Ulrich Drepper <drepper@redhat.com>
2331 * po/sv.po: Update from translation team.
2333 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
2335 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
2337 (regfree): Likewise.
2338 (create_initial_state): Likewise.
2339 (analyze): Remove the substitutions which became useless.
2340 (calc_first): Likewise.
2341 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
2342 epsilon destination.
2343 (duplicate_node_closure): New function.
2344 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
2345 (calc_inveclosure): Likewise.
2346 (calc_eclosure): Likewise.
2347 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
2348 direct invocation of duplicate_node.
2349 (parse): Don't use comma operator in the return to avoid compiler
2351 (parse_reg_exp): Likewise.
2352 (parse_branch): Likewise.
2353 (parse_expression): Likewise.
2354 (parse_sub_exp): Likewise.
2355 (parse_dup_op): Likewise.
2356 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
2357 which became useless.
2358 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
2359 (create_cd_newstate): Likewise.
2360 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
2361 (re_token_t): Likewise.
2362 (re_dfa_t): Likewise.
2363 (re_node_set_remove): New macro.
2364 * posix/regexec.c (check_matching): Remove the handling
2366 (check_halt_node_context): Likewise.
2367 (proceed_next_node): Likewise.
2368 (pop_fail_stack): Fix the memory leak.
2369 (set_regs): Likewise.
2370 (free_fail_stack_return): New function.
2371 (sift_states_backward): Fix the memory leak. Remove the handling
2373 (update_cur_sifted_state): Append some if clause to avoid redundant
2375 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
2377 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
2378 (check_subexp_limits): Likewise.
2379 (search_subexp): Likewise.
2380 (sift_states_bkref): Likewise.
2381 (transit_state_mb): Likewise.
2382 (transit_state_bkref_loop): Likewise.
2383 (transit_state_bkref_loop): Likewise.
2384 (group_nodes_into_DFAstates): Likewise.
2385 (check_node_accept): Likewise.
2386 (sift_ctx_init): Add initializing.
2388 2002-10-12 Ulrich Drepper <drepper@redhat.com>
2390 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
2393 2002-10-11 Ulrich Drepper <drepper@redhat.com>
2395 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
2396 duplicated variable c.
2398 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
2401 * sysdeps/unix/sysv/linux/i386/sysdep.h
2402 (INTERNAL_SYSCALL_ERROR_P): New define.
2403 (INTERNAL_SYSCALL_ERRNO): Likewise.
2405 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
2406 Add hack to prevent the compiler from clobbering the signal context.
2408 2002-10-11 Roland McGrath <roland@redhat.com>
2410 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
2413 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
2414 * sysdeps/sh/dl-lookupcfg.h: File removed.
2415 * sysdeps/i386/dl-lookupcfg.h: File removed.
2417 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
2418 missing labels and ; from last change.
2420 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
2421 number literals, so they are doubles instead of ints.
2423 2002-10-09 Roland McGrath <roland@redhat.com>
2425 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
2426 changed from [USE_TLS && HAVE___THREAD].
2428 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
2429 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
2430 * sysdeps/x86_64/dl-machine.h
2431 (elf_machine_type_class, elf_machine_rela): Likewise.
2432 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
2435 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
2436 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
2437 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
2439 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
2440 instead of ___tls_get_addr.
2441 (___tls_get_addr_internal): Add attribute_hidden to decl.
2443 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
2444 _dl_error_catch_tsd.
2445 * elf/rtld.c (startup_error_tsd): New function.
2446 (dl_main): Point _dl_error_catch_tsd at that.
2447 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
2448 use new function pointer instead.
2449 * elf/dl-tsd.c: New file.
2450 * elf/Makefile (routines): Add it.
2452 2002-10-07 Roland McGrath <roland@redhat.com>
2454 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
2455 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
2456 take _dl_load_lock around calling __writev.
2458 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
2459 (INLINE_SYSCALL): Use that.
2461 * sysdeps/generic/dl-sysdep.h: New file.
2462 * sysdeps/mach/hurd/dl-sysdep.h: New file.
2463 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
2464 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
2465 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
2467 * elf/dl-minimal.c (__errno_location): Removed.
2468 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
2469 Use GOTOFF access for errno.
2470 * sysdeps/unix/sysv/linux/i386/sysdep.h
2471 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
2473 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
2474 Use PC-relative access for errno.
2475 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
2476 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
2478 * include/tls.h: New file.
2479 (USE___THREAD): New macro.
2480 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
2482 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
2483 changed from [USE_TLS && HAVE___THREAD].
2484 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
2485 * sysdeps/unix/i386/sysdep.S: Likewise.
2486 * sysdeps/unix/x86_64/sysdep.S: Likewise.
2487 * include/errno.h: Likewise.
2488 * include/netdb.h: Likewise.
2489 * include/resolv.h: Likewise.
2491 * sysdeps/generic/errno.c: New file.
2492 * csu/Makefile (aux): New variable, list errno.
2493 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
2494 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2495 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2496 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2497 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2498 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
2499 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
2500 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
2501 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
2502 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
2503 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
2504 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
2505 * sysdeps/unix/alpha/sysdep.S: Likewise.
2506 * sysdeps/generic/start.c: Likewise.
2507 * sysdeps/unix/start.c: Likewise.
2508 * sysdeps/unix/arm/start.c: Likewise.
2509 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
2510 * sysdeps/unix/sparc/start.c: Likewise.
2511 * sysdeps/unix/sysv/irix4/start.c: Likewise.
2512 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
2514 * manual/search.texi (Tree Search Function, Hash Search Function):
2515 Mention search.h clearly.
2517 2002-10-05 Roland McGrath <roland@redhat.com>
2519 * elf/dl-fxstat64.c: File removed.
2520 * elf/dl-xstat64.c: File removed.
2521 * elf/Makefile (rtld-routines): Remove them.
2522 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
2523 Instead, use strong_alias instead of versioned_symbol in the
2525 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
2526 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
2528 * include/shlib-compat.h
2529 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
2530 [! NOT_IN_libc] (IS_IN_libc): Define it.
2531 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
2532 * elf/Makefile (CPPFLAGS-.os): Likewise.
2534 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
2535 Return the status instead of calling exit.
2537 * Makeconfig (CFLAGS): Prepend -std=gnu99.
2538 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
2539 Remove superfluous rm command, whose @ plus make bugs hid
2540 all these commands from the make output.
2542 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
2543 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
2544 Use that file's contents instead of literal echo's for the prologue.
2545 * include/features.h: Include <gnu/stubs.h> unconditionally.
2546 * include/gnu/stubs.h: New file.
2548 2002-09-30 Roland McGrath <roland@redhat.com>
2550 * elf/rtld-Rules: New file.
2551 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
2552 $(objpfx)rtld-libc.a): New targets.
2553 (generated): Add them.
2554 (reloc-link): Remove -o $@ from the variable.
2555 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
2556 (distribute): Add rtld-Rules.
2557 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
2558 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
2559 (common-mostlyclean, common-clean): Clean up rtld-* files.
2560 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
2562 2002-10-11 Roland McGrath <roland@redhat.com>
2564 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
2565 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
2567 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
2568 proper set of no-op insn prefixes.
2570 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
2572 2002-10-11 Ulrich Drepper <drepper@redhat.com>
2574 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
2575 __pthread_kill_other_threads_np.
2577 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
2579 2002-10-08 Roland McGrath <roland@redhat.com>
2581 * locale/newlocale.c (__newlocale): If setting all categories to "C",
2582 just return &_nl_C_locobj instead of copying it.
2583 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
2584 * locale/duplocale.c (__duplocale): Likewise.
2586 2002-10-07 Roland McGrath <roland@frob.com>
2588 * config.h.in (HAVE_I386_SET_GDT): New #undef.
2589 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
2590 * sysdeps/mach/configure: Regenerated.
2592 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2594 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
2595 Add all necessary register outputs for syscall-clobbered registers.
2597 2002-10-02 David Mosberger <davidm@hpl.hp.com>
2599 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
2600 Itanium 2 (and Itanium).
2601 Fix unwind directives and make it fit in 80 columns.
2602 * sysdeps/ia64/memset.S: Likewise.
2603 * sysdeps/ia64/memcpy.S: Likewise.
2604 Move jump table to .rodata section.
2606 2002-10-03 Roland McGrath <roland@frob.com>
2608 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
2611 2002-10-10 Andreas Jaeger <aj@suse.de>
2613 * sysdeps/x86_64/_mcount.S: Restore correct registers.
2615 2002-10-10 Ulrich Drepper <drepper@redhat.com>
2617 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
2619 2002-10-09 Ulrich Drepper <drepper@redhat.com>
2621 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
2622 _dl_allocate_tls_init. Add rtld_hidden_proto.
2623 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
2625 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
2627 * version.h (VERSION): Bump to 2.3.1.
2629 * Make-dist: Add back one of the tar invocations removed before.
2631 * stdlib/Makefile (distribute): Add allocalim.h.
2633 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
2634 (__libc_tsd_address): Use correct variable name.
2635 Patch by Stefan Jones <stefan.jones@multigig.com>.
2637 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
2638 Reported by edwardsg@sgi.com [PR libc/4678].
2640 * Versions.def (libc): Add GLIBC_2.3.1.
2641 (libpthread): Add GLIBC_2.3.1.
2643 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
2645 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
2646 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
2648 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
2649 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
2651 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
2652 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
2653 and make old name an alias.
2654 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
2655 and make old name an alias.
2656 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
2659 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
2660 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
2662 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
2664 * sysdeps/posix/readv.c: Likewise
2665 * sysdeps/unix/sysv/aix/readv.c: Likewise.
2666 * sysdeps/unix/sysv/linux/readv.c: Likewise.
2667 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
2669 * sysdeps/posix/writev.c: Likewise
2670 * sysdeps/unix/sysv/aix/writev.c: Likewise.
2671 * sysdeps/unix/sysv/linux/writev.c: Likewise.
2673 * include/sys/wait.h: Declare __waitid.
2674 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
2675 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
2677 * sysdeps/posix/waitid.c: Likewise.
2678 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
2680 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
2682 2002-10-07 Jakub Jelinek <jakub@redhat.com>
2684 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
2686 (__MAX_ALLOCA_CUTOFF): Define.
2687 Include allocalim.h.
2688 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
2689 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
2690 host_buffer depending on __libc_use_alloca.
2691 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
2692 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
2693 net_buffer depending on __libc_use_alloca.
2694 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
2695 buf depending on __libc_use_alloca.
2696 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
2697 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
2698 instead of hardcoded constants.
2699 Pass proper size argument to alloca and compute end for wide char
2701 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
2702 instead of hardcoded constants.
2703 * string/strcoll.c (strcoll): Likewise.
2704 * string/strxfrm.c (strxfrm): Likewise.
2705 * sysdeps/posix/readv.c (__readv): Likewise.
2706 * sysdeps/posix/writev.c (__writev): Likewise.
2707 * sysdeps/generic/allocalim.h: New file.
2709 2002-10-08 Roland McGrath <roland@redhat.com>
2711 * configure.in (aux_missing warning): Change "too old" to
2712 "incompatible versions", since for autoconf it's "too new" right now.
2713 * configure: Regenerated.
2715 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
2716 one found doesn't work on our configure.in.
2717 * configure: Regenerated.
2718 * config.make.in (AUTOCONF): New substituted variable.
2719 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
2720 (autoconf-it): ... here, use that instead of defining conditionally.
2721 Use $(AUTOCONF) instead of literal autoconf.
2722 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
2723 with this condition.
2724 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
2726 2002-10-08 Ulrich Drepper <drepper@redhat.com>
2728 * Make-dist (dist): Cleanup a bit. We are not interested in the
2729 14 char filename limit anymore. Remove intermediate files and
2732 2002-10-05 Ulrich Drepper <drepper@redhat.com>
2734 * po/sk.po: Update from translation team.
2735 * po/tr.po: Likewise.
2736 * po/gl.po: Likewise.
2738 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2740 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
2742 2002-10-03 Ulrich Drepper <drepper@redhat.com>
2744 * version.h (RELEASE): Change to stable.
2746 2002-10-03 Jakub Jelinek <jakub@redhat.com>
2748 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
2749 __syscall_exit_group): New prototypes.
2751 2002-10-03 Ulrich Drepper <drepper@redhat.com>
2753 * glibc 2.3 released.
2756 See ChangeLog.13 for earlier changes.