1 2002-12-11 Roland McGrath <roland@redhat.com>
3 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
4 elf-init.o instead of compiling a PIC version.
6 2002-12-11 Bruno Haible <bruno@clisp.org>
8 * intl/gettext.h: Renamed to ...
9 * intl/gmo.h: ... here.
10 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
11 * intl/gettextP.h: Update.
12 * intl/loadmsgcat.c: Update.
14 * intl/gettextP.h (PARAMS): Make more portable.
15 (attribute_hidden): Define as empty macro if not already defined.
16 * intl/hash-string.h (PARAMS): Make more portable.
17 * intl/loadinfo.h (PARAMS): Likewise.
18 * intl/plural-exp.h (PARAMS): Likewise.
19 (attribute_hidden): Move definition near the definition of
22 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
23 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
25 2002-07-13 Bruno Haible <bruno@clisp.org>
27 * intl/dcigettext.c (freea): New macro.
28 (FREE_BLOCKS): Free also the registered blocks.
29 (DCIGETTEXT): Free the 'search' variable.
30 Reported by Andreas Fischer <a.fischer@asentics.de>.
32 2002-04-27 Bruno Haible <bruno@clisp.org>
34 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
35 * intl/dcigettext.c: Likewise.
36 * intl/dcgettext.c: Likewise.
37 * intl/dgettext.c: Likewise.
38 * intl/gettext.c: Likewise.
39 * intl/dcngettext.c: Likewise.
40 * intl/dngettext.c: Likewise.
41 * intl/ngettext.c: Likewise.
42 * intl/textdomain.c: Likewise.
43 * intl/bindtextdom.c: Likewise.
44 * intl/plural-exp.h: Likewise.
46 2002-01-02 Bruno Haible <bruno@clisp.org>
48 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
50 2001-04-30 Bruno Haible <bruno@clisp.org>
52 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
53 default macro definitions. Needed for mingw32.
55 2002-12-10 Ulrich Drepper <drepper@redhat.com>
57 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
58 __builtin_constant_p to macro parameter.
60 * sysdeps/generic/sigpause.c: Define all functions as weak.
61 * sysdeps/posix/sigpause.c: Likewise.
63 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
66 2002-12-10 Jakub Jelinek <jakub@redhat.com>
68 * elf/tst-array1.c (preinit_array, init_array, fini_array):
69 Explicitly align the array to sizeof (void *).
70 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
72 * include/libc-symbols.h: Fix a comment typo.
74 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
75 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
77 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
79 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
80 (__libc_sigsuspend): Likewise.
81 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
82 (__libc_sigsuspend): Likewise.
83 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
84 (creat): New weak alias.
86 2002-12-10 Roland McGrath <roland@redhat.com>
88 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
89 contributes a manual chapter.
90 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
93 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
94 and move contents to ...
95 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
96 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
97 it instead of duplicating its contents.
98 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
100 2002-12-09 Jakub Jelinek <jakub@redhat.com>
102 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
104 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
106 (EXTRA_LD_ENVVARS): Use it.
107 (DL_OSVERSION_INIT): Define.
108 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
110 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
112 2002-12-10 Ulrich Drepper <drepper@redhat.com>
114 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
116 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
117 call. It is not allowed to destroy pthread mutexes which are
118 still in use even though it is safe for our implementations. If
119 somebody still uses the descriptor it is a bug.
121 2002-12-09 Richard Henderson <rth@redhat.com>
123 * csu/abi-note.S: Use .p2align, not .align.
125 2002-12-09 Ulrich Drepper <drepper@redhat.com>
127 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
128 __libc_select aliases.
130 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
133 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
135 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
137 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
139 * sysdeps/unix/syscalls.list: Define __libc_select alias.
141 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
143 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
144 __libc___xpg_sigpause aliases.
146 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
148 * misc/error.c: Remove use of USE_IN_LIBIO.
150 2002-12-08 Roland McGrath <roland@redhat.com>
152 * elf/Makefile (tests): Uncomment tst-array[123].
153 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
154 * csu/elf-init.c: New file.
155 * csu/Makefile (routines, static-only-routines): Add elf-init.
156 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
157 and __libc_csu_fini in place of _fini.
158 * sysdeps/arm/elf/start.S: Likewise.
159 * sysdeps/cris/elf/start.S: Likewise.
160 * sysdeps/hppa/elf/start.S: Likewise.
161 * sysdeps/i386/elf/start.S: Likewise.
162 * sysdeps/ia64/elf/start.S: Likewise.
163 * sysdeps/m68k/elf/start.S: Likewise.
164 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
165 * sysdeps/mips/elf/start.S: Likewise.
166 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
167 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
168 * sysdeps/s390/s390-32/elf/start.S: Likewise.
169 * sysdeps/s390/s390-64/elf/start.S: Likewise.
170 * sysdeps/sh/elf/start.S: Likewise.
171 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
172 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
173 * sysdeps/x86_64/elf/start.S: Likewise.
175 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
176 struct containing function ptr and value, free it.
177 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
178 It's not safe to let the new thread use the SIGEV pointer.
180 2001-10-20 Paul Eggert <eggert@twinsun.com>
182 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
183 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
184 Use strerror_r that is only a macro, even if it is not a function.
185 (strerror): Check for HAVE_DECL_STRERROR before declaring.
186 (private_strerror): Use prototypes, not old-style function definition.
187 (print_errno_message): New function.
188 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
190 (error_tail, error, error_at_line): Use it.
192 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
194 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
196 2002-12-08 Ulrich Drepper <drepper@redhat.com>
198 * scripts/output-format.sed: Fix bug in one of the s expressions
199 which used / for one too many things.
201 * include/unistd.h: Declare __libc_close.
203 2002-12-07 Ulrich Drepper <drepper@redhat.com>
205 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
207 2002-12-07 Roland McGrath <roland@redhat.com>
209 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
210 from 2002-12-06, but remove unnecessary memset call without removing
211 necessary copy of initialization image.
213 * Makerules ($(common-objpfx)format.lds): New target.
214 (common-generated): Add it.
215 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
216 * scripts/output-format.sed: New file.
217 * Makefile (distribute): Add it.
219 2002-12-07 Ulrich Drepper <drepper@redhat.com>
221 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
222 Reported by Art Haas <ahaas@airmail.net>.
224 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
226 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
228 2002-12-07 Jakub Jelinek <jakub@redhat.com>
230 * string/test-strncpy.c (do_random_tests): Improve test coverage.
232 2002-12-06 Ulrich Drepper <drepper@redhat.com>
234 * test-skeleton.c (timeout_handler): Allow expected signal to be
237 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
239 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
241 2002-12-07 Jakub Jelinek <jakub@redhat.com>
243 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
244 (SYSCALL_ERROR_HANDLER): Fix a pasto.
245 Reported by Jeff Bailey <jbailey@nisa.net>.
247 2002-12-06 Ulrich Drepper <drepper@redhat.com>
249 * sysdeps/generic/libc-tls.c: Undo last patch.
251 * include/wctype.h: Define iswalnum with libc_hidden_proto.
253 * include/signal.h: Define raise with libc_hidden_proto.
255 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
256 __execve instead of snprintf and execve.
258 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
261 2002-12-06 Jakub Jelinek <jakub@redhat.com>
263 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
264 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
266 2002-12-06 Ulrich Drepper <drepper@redhat.com>
268 * misc/syslog.c (log_cleanup): New function.
269 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
270 (closelog): Likewise.
272 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
273 * elf/dl-iteratephdr.c: Likewise.
274 * elf/dl-lookup.c: Likewise.
275 * elf/dl-misc.c: Likewise.
276 * elf/dl-open.c: Likewise.
277 * elf/dl-support.c: Likewise.
278 * elf/rtld.c: Likewise.
279 * sysdeps/generic/ldsodefs.h: Likewise.
280 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
281 * sysdeps/mach/bits/libc-lock.h: Likewise.
282 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
284 2002-12-06 Roland McGrath <roland@redhat.com>
286 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
288 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
289 (malloc_starter, memalign_starter, free_starter): Don't define these.
290 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
291 Don't declare them either.
292 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
293 __pthread_initialize, so no need to set hooks to *_starter.
294 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
295 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
296 (__libc_malloc_pthread_startup): New function.
297 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
299 * malloc/hooks.c (memalign_starter): New function.
300 * malloc/malloc.c: Declare it.
301 * malloc/arena.c (save_memalign_hook): New variable.
302 (ptmalloc_init): Set __memalign_hook to memalign_starter.
304 * elf/dl-minimal.c (free): Clear the memory.
305 (calloc): Just call malloc, knowing all memory it returns is cleared.
307 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
308 malloc and memset; calloc can avoid the zeroing when redundant.
309 (_dl_tls_setup): Likewise.
310 * elf/dl-load.c (decompose_rpath): Likewise.
311 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
312 call, since memory from sbrk at startup is already zero.
314 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
315 error string for failure, null for success. Update callers.
316 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
317 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
319 2002-12-05 Jakub Jelinek <jakub@redhat.com>
321 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
323 (readahead): Change args to i:iii.
324 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
325 Change args to i:iii.
326 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
329 2002-12-05 Roland McGrath <roland@redhat.com>
331 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
332 call all functions rather than none.
333 Reported by Mark P. Mitchell <mark@codesourcery.com>.
335 2002-12-04 Roland McGrath <roland@redhat.com>
337 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
338 on _nl_current_LC_* variables.
340 2002-12-05 Ulrich Drepper <drepper@redhat.com>
342 * dirent/bug-readdir1.c (main): Don't call closedir, just close
343 the file descriptor. This is testing what the bug report was about.
345 2002-12-04 Ulrich Drepper <drepper@redhat.com>
347 * po/be.po: New file.
349 * argp/Makefile (tests): Add tst-argp1.
351 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
352 Change type of _attribute to void*.
353 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
354 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
355 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
356 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
357 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
359 2002-12-04 Roland McGrath <roland@redhat.com>
361 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
362 members to the end, so a libpthread compiled with !USE_TLS will still
363 find other members properly.
365 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
366 operand for DEST memory. Fix dummy input operand to use SRC.
367 Reported by Davin McCall <davmac@ozonline.com.au>.
369 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
370 alignment when initializing the DTV entry.
372 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
373 when TLS has not been set up, try to set it up if we can.
374 * elf/tst-tls4.c: Revert last change.
375 * elf/tst-tls5.c: Likewise.
376 * elf/tst-tls6.c: Likewise.
377 * elf/tst-tls7.c: Likewise.
378 * elf/tst-tls8.c: Likewise.
379 * elf/tst-tls9.c: Likewise.
381 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
382 * sysdeps/generic/ldsodefs.h: Declare it.
383 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
384 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
385 function, broken out of __libc_setup_tls.
386 (init_static_tls): Likewise.
387 (__libc_setup_tls): Call them.
388 (_dl_tls_setup): New function, uses new subroutines.
390 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
391 Clear the pointer when returning true.
392 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
393 first element of the slotinfo list too.
395 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
398 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
399 (_dl_determine_tlsoffset): Likewise.
401 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
402 startup_error_tsd, made global.
403 (dl_main): Update initialization.
404 * elf/dl-tsd.c: Likewise.
405 * sysdeps/generic/ldsodefs.h: Declare it.
407 2002-12-03 Ulrich Drepper <drepper@redhat.com>
409 * manual/texinfo.tex: Update from latest upstream version.
411 2002-12-03 Roland McGrath <roland@redhat.com>
413 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
414 area surplus in calculation for sbrk call.
416 * iconvdata/cp1125.c: New file.
417 * iconvdata/Makefile (distribute): Add it.
418 (modules): Add CP1125.
419 (gen-8bit-gap-modules): Add cp1125.
420 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
421 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
423 2002-12-03 Andreas Jaeger <aj@suse.de>
425 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
427 2002-12-03 Ulrich Drepper <drepper@redhat.com>
429 * sysdeps/posix/system.c (do_system): Make signal handler
430 installation thread safe.
432 2002-12-02 Roland McGrath <roland@redhat.com>
434 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
435 caller from EXTRA to -.
436 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
437 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
438 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
440 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
442 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
443 bits of RM are cleared.
445 2002-12-02 Roland McGrath <roland@redhat.com>
447 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
448 TLS setup is required.
449 * elf/tst-tls5.c: Likewise.
450 * elf/tst-tls6.c: Likewise.
451 * elf/tst-tls7.c: Likewise.
452 * elf/tst-tls8.c: Likewise.
453 * elf/tst-tls9.c: Likewise.
455 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
456 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
457 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
458 for being null before calling free_slotinfo.
459 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
460 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
462 2002-11-30 Bruno Haible <bruno@clisp.org>
464 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
465 (struct __gconv_step): New field __btowc_fct.
466 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
467 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
469 (__gconv_btwoc_ascii): New declaration.
470 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
471 (__gconv_btwoc_ascii): New function.
472 * iconv/gconv_builtin.h: Add BtowcFct argument to all
473 BUILTIN_TRANSFORMATION invocations.
474 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
475 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
476 * iconv/gconv_builtin.c (map): New field btowc_fct.
477 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
479 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
480 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
481 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
482 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
483 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
484 (gconv_init): Initialize __btowc_fct field.
485 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
486 * iconv/loop.c: Document ONEBYTE_BODY.
487 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
488 Undefine ONEBYTE_BODY at the end.
489 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
490 * iconvdata/8bit-gap.c (NONNUL): New macro.
491 (BODY for FROM_LOOP): Use it.
492 (ONEBYTE_BODY): New macro.
493 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
495 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
496 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
497 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
498 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
499 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
500 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
501 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
502 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
503 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
504 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
505 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
506 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
507 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
508 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
509 * iconvdata/ibm932.c: Include <stdbool.h>.
510 (TRUE, FALSE): Remove macros.
511 (BODY for FROM_LOOP): Remove unused variable rp1.
512 (ONEBYTE_BODY): New macro.
513 (BODY for TO_LOOP): Use bool.
514 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
515 * iconvdata/ibm943.c: Include <stdbool.h>.
516 (TRUE, FALSE): Remove macros.
517 (BODY for FROM_LOOP): Remove unused variable rp1.
518 (ONEBYTE_BODY): New macro.
519 (BODY for TO_LOOP): Use bool.
520 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
521 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
522 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
523 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
524 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
525 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
526 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
527 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
528 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
529 * iconvdata/gbbig5.c: Tweak comment.
531 2002-12-02 Ulrich Drepper <drepper@redhat.com>
533 * po/fi.po: Update from translation team.
535 2002-12-01 Roland McGrath <roland@redhat.com>
537 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
538 testing getdents64 return value.
540 * scripts/versions.awk: Don't pass -n flag to sort command.
542 * posix/bug-regex13.c: Include <string.h>.
544 * sysdeps/generic/libc-start.c (__libc_start_main): Do
545 DL_SYSDEP_OSCHECK here.
546 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
547 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
549 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
550 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
552 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
553 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
555 * include/link.h: Comment typo fix.
557 2002-12-01 Roland McGrath <roland@frob.com>
559 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
560 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
561 _POSIX_MEMORY_PROTECTION): Likewise.
562 (_POSIX_POLL, _POSIX_SELECT): Removed.
564 2002-11-28 Ulrich Drepper <drepper@redhat.com>
566 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
567 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
569 2002-11-28 Jakub Jelinek <jakub@redhat.com>
571 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
573 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
576 2002-11-28 Ulrich Drepper <drepper@redhat.com>
578 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
579 branch prediction buffers by using unpaired call/ret.
581 2002-11-27 Ulrich Drepper <drepper@redhat.com>
583 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
584 first parameters constraint string.
585 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
587 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
589 * posix/regcomp.c (parse_expression): Set the bit since the back
590 reference is used in the regular expression.
591 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
593 (re_node_set_init_copy): Likewise.
594 * posix/regex_internal.h (state_array_t): New structure.
595 (re_sub_match_last_t): Likewise.
596 (re_sub_match_top_t): Likewise.
597 (re_match_context_t): Add new members.
598 (re_dfa_t): Likewise.
599 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
600 to check the matching is really correct, and retry if failed.
601 Move the routin pruning the impossible nodes from here, ...
602 (prune_impossible_nodes): To this function.
603 (check_matching): Invoke check_subexp_matching_top, and replace
604 redundant checking with transit_state_bkref invocation.
605 (proceed_next_node): Replace strncmp with memcmp. Reported by
606 Paolo Bonzini <bonzini@gnu.org>.
607 (update_cur_sifted_state): Remove search_subexp invocation.
608 (search_subexp): Remove this function.
609 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
611 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
612 Remove unused invocation of match_ctx_add_entry.
613 (transit_state): Invoke check_subexp_matching_top.
614 (check_subexp_matching_top): New function.
615 (transit_state_bkref): Remove unused array.
616 Merge transit_state_bkref_loop.
617 (transit_state_bkref_loop): Use get_subexp instead of
618 sift_states_backward. Use search_cur_bkref_entry for optimization.
619 Merge this function to transit_state_bkref.
620 (get_subexp): New function.
621 (get_subexp_sub): Likewise.
622 (find_subexp_node): Likewise.
623 (check_arrival): Likewise.
624 (check_arrival_expand_ecl): Likewise.
625 (check_arrival_expand_ecl_sub): Likewise.
626 (expand_bkref_cache): Likewise.
627 (match_ctx_init): Initialize new members.
628 (match_ctx_clean): New function.
629 (match_ctx_free): Release new members.
630 (match_ctx_free_subtops): New function.
631 (match_ctx_add_entry): Fix indent.
632 (search_cur_bkref_entry): New function.
633 (match_ctx_add_subtop): Likewise.
634 (match_ctx_add_sublast): Likewise.
636 2002-11-25 Ulrich Drepper <drepper@redhat.com>
638 * iconv/Makefile (tests): Remove tst-iconv4.c
639 * iconv/tst-iconv4.c: Moved to...
640 * iconvdata/tst-iconv4.c: ...here. New file.
641 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
643 2002-11-25 Roland McGrath <roland@redhat.com>
645 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
646 Grok AF_LINK if defined.
647 From Momchil Velikov <velco@fadata.bg>.
649 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
650 brdaddr, or dstaddr, just set those pointers to null and don't fail.
651 Reported by Momchil Velikov <velco@fadata.bg>.
653 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
654 is > sizeof IFR->ifa_addr, advance past the whole longer length.
655 (__ifreq): Count up NIFS that way too.
656 Reported by Momchil Velikov <velco@fadata.bg>.
658 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
660 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
663 2002-11-24 Ulrich Drepper <drepper@redhat.com>
665 * elf/elf.h (EM_ST19): Fix typo.
667 2002-11-25 Jakub Jelinek <jakub@redhat.com>
669 * include/errno.h (__set_errno): Define as errno = val
672 2002-11-24 Roland McGrath <roland@redhat.com>
674 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
675 * sysdeps/posix/writev.c: Likewise.
676 From Momchil Velikov <velco@fadata.bg>.
678 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
679 calling *GL(dl_error_catch_tsd) for a thread-local location.
680 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
681 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
682 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
684 * libio/iofflush.c: Add libc_hidden_def.
685 * libio/iofwrite.c: Likewise.
686 * sysdeps/generic/sigtimedwait.c: Likewise.
687 * sysdeps/generic/sigwaitinfo.c: Likewise.
688 * sysdeps/posix/sigwait.c: Likewise.
689 Reported by Momchil Velikov <velco@fadata.bg>.
691 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
692 to match <arpa/inet.h> declaration.
693 * inet/inet_netof.c (inet_netof): Likewise.
694 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
695 Reported by Momchil Velikov <velco@fadata.bg>.
697 * configure.in: Skip AUTOCONF check under --without-cvs.
698 * configure: Regenerated.
700 * posix/Makefile (headers): Add bits/pthreadtypes.h.
701 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
702 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
704 2002-11-24 Andreas Schwab <schwab@suse.de>
706 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
709 2002-11-19 Jim Meyering <jim@meyering.net>
711 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
713 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
715 2002-11-23 Roland McGrath <roland@redhat.com>
717 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
718 Just produce hex output for datum sizes.
720 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
721 Reported by Luca Barbieri <ldb@ldb.ods.org>.
723 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
725 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
726 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
727 and __unused3 fields.
728 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
729 [__WORDSIZE == 32]: Only PPC32 requires __unused1
730 and __unused2 fields.
731 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
732 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
733 __unused3, and __unused4 fields.
735 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
736 obtain lowest address for profiling in __monstartup call.
738 2002-11-21 Roland McGrath <roland@redhat.com>
740 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
741 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
743 * locale/localeinfo.h (struct locale_data): Revert last change.
745 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
746 From Ian Wienand <ianw@gelato.unsw.edu.au>.
748 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
749 __NR_pread64 if not defined.
750 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
751 From Ian Wienand <ianw@gelato.unsw.edu.au>.
753 2002-11-21 Roland McGrath <roland@frob.com>
755 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
756 __libc_multiple_libcs here. Call __setfpucw.
758 2002-11-21 Ulrich Drepper <drepper@redhat.com>
760 * elf/Makefile (tests): Don't run test-arrayX tests for now.
762 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
763 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
764 CLONE_CHILD_*TID flags.
766 2002-11-20 Andreas Jaeger <aj@suse.de>
768 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
769 We pass struct ucontext on x86-64.
774 2002-11-20 Roland McGrath <roland@redhat.com>
776 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
777 conditionalize [! DO_VERSIONING] #error.
779 * scripts/abilist.awk: Grok function descriptor symbols.
781 * intl/tst-gettext.c (main): Check return values from setlocale.
782 Add necessary unsetenv's to make LANG=existing-locale check work.
784 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
785 so aborted prior runs don't confuse things.
787 * locale/localeinfo.h (struct locale_data: union locale_data_value):
788 Use uintptr_t instead of unsigned int for `word' member.
789 (_NL_CURRENT_WORD): Cast to uint32_t.
791 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
794 2002-11-20 Ulrich Drepper <drepper@redhat.com>
796 * elf/tls-macros.h: Add IA-64 definitions.
797 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
799 * iconv/Makefile (tests): Add tst-iconv4.
800 * iconv/tst-iconv4.c: New file.
802 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
803 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
804 __GCONV_INCOMPLETE_INPUT.
805 (ucs4le_internal_loop): Likewise.
806 (ucs4le_internal_loop_unaligned): Likewise.
807 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
808 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
809 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
811 * iconv/loop.c (LOOPFCT): First test for empty input then for full
814 * inet/getnameinfo.c: Use extend_alloca where appropriate.
815 * sysdeps/posix/getaddrinfo.c: Likewise.
817 * include/alloca.h (extend_alloca): New define. Based on stack
818 direction it'll try to append to the previouls allocated buffer.
820 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
822 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
823 use the same service for AF_INET and AF_INET6.
825 2002-11-19 Ulrich Drepper <drepper@redhat.com>
827 * intl/localealias.c (read_alias_file): Use only about 400 bytes
828 of stack space instead of 16k.
830 2002-11-18 Wolfram Gloger <wg@malloc.de>
833 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
834 nothing if not initialized. Bug report from Marcus Brinkmann
835 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
837 2002-11-19 Roland McGrath <roland@redhat.com>
839 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
842 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
843 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
844 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
845 * configure: Regenerated.
847 2002-11-19 Ulrich Drepper <drepper@redhat.com>
849 * include/dlfcn.h: __libc_dlopen is now a macro calling
850 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
851 (__libc_dlopen_mode): New prototype.
852 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
853 new parameter. Store new parameter in mode field of structure passed
855 (struct do_dlopen_args): Add new field mode.
856 (do_dlopen): Pass mode from parameter structure to _dl_open.
858 2002-11-11 Randolf Chung <tausq@debian.org>
860 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
861 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
862 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
864 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
866 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
867 Set -mdisable-fpregs for this file.
869 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
871 * sysdeps/unix/sysv/linux/configure.in:
872 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
873 from gcc-3.0 era for backwards compatibility.
874 * sysdeps/unix/sysv/linux/configure: Regenerate.
876 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
877 Define mcontext_t as a sigcontext.
879 2002-11-18 Roland McGrath <roland@redhat.com>
881 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
882 Free memory in `last_result' if it was used.
884 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
885 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
886 Do the parsing inline instead of copying strings and calling
887 inet_network, and properly skip all alias names not matching the form.
889 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
891 2002-11-17 Ulrich Drepper <drepper@redhat.com>
893 * manual/pattern.texi (Wordexp Example): Fix sample code.
895 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
896 childs stack which will be loaded into the %esi register.
898 2002-11-14 Paul Eggert <eggert@twinsun.com>
900 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
901 overflow when skipping the question part and when unpacking aliases.
903 2002-11-15 Roland McGrath <roland@redhat.com>
905 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
906 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
907 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
909 2002-11-15 Jakub Jelinek <jakub@redhat.com>
911 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
912 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
914 2002-11-15 Roland McGrath <roland@redhat.com>
916 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
917 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
918 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
919 (+make-include-of-dep): New canned sequence.
921 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
922 From Dmitry V. Levin <ldv@altlinux.org>.
924 2002-11-14 Roland McGrath <roland@redhat.com>
926 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
927 * inet/herrno.c (__libc_h_errno): Likewise.
928 * resolv/res_libc.c (__libc_res): Likewise.
929 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
930 (__res_state) [! USE___THREAD]: Don't define as weak.
931 * csu/Versions: Revert last change.
932 * resolv/Versions: Revert last change.
934 * Makerules ($(common-objpfx)%.make): New pattern rule.
935 * tls.make.c: New file.
936 * Makefile (distribute): Add it.
938 * sysdeps/generic/errno.c [! USE___THREAD]
939 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
940 with compat_symbol so they are not link-time visible.
941 [! USE___THREAD] (__libc_errno): New alias for errno.
942 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
943 Add __libc_errno here.
944 * inet/herrno.c [USE___THREAD]: Use this conditional
945 in place of [USE_TLS && HAVE___THREAD].
946 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
947 (h_errno, _h_errno): Declare these with compat_symbol so they are not
949 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
950 * resolv/res_libc.c [! USE___THREAD]
951 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
952 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
953 (__libc_res): Define as alias for _res.
954 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
955 Add __libc_h_errno and __libc_res here.
957 2002-11-14 Jakub Jelinek <jakub@redhat.com>
959 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
960 * resolv/Versions (h_errno, _res): Likewise.
962 2002-11-14 Roland McGrath <roland@redhat.com>
964 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
965 (%.symlist): Likewise.
967 2002-11-13 Roland McGrath <roland@redhat.com>
969 * scripts/abilist.awk: New file.
970 * Makefile (distribute): Add it.
971 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
972 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
973 [$(subdir) = elf] (tests): Depend on libc.symlist.
974 (generated, common-generated): Add those files.
976 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
977 * configure: Regenerated.
978 * config.make.in (OBJDUMP): New variable, substituted by configure.
980 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
981 (mallochook, reallochook): Set them up.
982 (checkhdr): Check HDR->magic2 value.
983 (freehook): Reset HDR->magic2.
984 (memalignhook): New static function.
985 (old_memalign_hook): New static variable.
986 (mcheck, reallochook): Set __memalign_hook to memalignhook.
988 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
991 2002-11-13 Andreas Jaeger <aj@suse.de>
993 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
995 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
997 2002-11-11 Paul Eggert <eggert@twinsun.com>
999 * manual/crypt.texi (Cryptographic Functions): Mention that
1000 the MD5 one-way algorithm is compatible with BSD's.
1002 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
1004 * posix/regex_internal.c (re_string_skip_chars): Also return the last
1006 (re_string_reconstruct): Calculate the context by itself when the
1007 offset points out of the valid range.
1008 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
1009 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
1010 (IS_WIDE_WORD_CHAR): New macro.
1011 (IS_WIDE_NEWLINE): New macro.
1013 2002-11-12 Andreas Jaeger <aj@suse.de>
1015 * sysdeps/x86_64/strchr.S: Don't use one register for two
1016 purposes, this fixes a bug noticed by test-strchr.c.
1018 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
1021 2002-11-12 Roland McGrath <roland@redhat.com>
1023 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
1024 (_G_IO_NO_BACKWARD_COMPAT): Define it.
1026 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
1027 instead of <pt-machine.h>.
1028 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
1030 From Ian Wienand <ianw@gelato.unsw.edu.au>.
1032 2002-11-10 Roland McGrath <roland@redhat.com>
1034 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
1035 Call fputs instead of fwprintf (simpler to follow in debugger).
1037 * crypt/md5-crypt.c: Doc fix.
1039 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
1040 the beginning of generated target commands.
1042 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
1043 dependencies for these in case implicit rule search skipped the
1044 nonexistent source directory.
1045 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
1046 files with $(object-suffixes) as targets too.
1047 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
1048 and a target for it using $(make-target-directory).
1050 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
1052 2002-11-10 Roland McGrath <roland@frob.com>
1054 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
1055 * sysdeps/generic/bits/pthreadtypes.h: ... here.
1057 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
1058 l_start == 0 and l_len == 1 as we do l_len == 0.
1060 2002-11-10 Ulrich Drepper <drepper@redhat.com>
1062 * po/da.po: Update from translation team.
1064 2002-11-10 Roland McGrath <roland@redhat.com>
1066 * config.make.in (includedir): New variable, substituted by configure.
1067 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
1068 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
1070 2002-11-10 Andreas Jaeger <aj@suse.de>
1072 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
1073 REG_OLDMASK and REG_CR2 to synch with kernel header.
1076 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
1078 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
1079 * nss/getnssent_r.c (__nss_getent_r): Likewise.
1080 (__nss_setent): Likewise.
1081 (__nss_getent_r): Likewise.
1082 * inet/getnetgrent_r.c (innetgr): Likewise.
1083 (__internal_setnetgrent_reuse): Likewise.
1084 (internal_getnetgrent_r): Likewise.
1085 * inet/ether_hton.c (ether_hostton): Likewise.
1086 * inet/ether_ntoh.c (ether_ntohost): Likewise.
1087 * sunrpc/netname.c (netname2user): Likewise.
1088 * sunrpc/publickey.c (getpublickey): Likewise.
1089 (getsecretkey): Likewise.
1091 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
1093 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
1094 error in range calculation.
1096 2002-10-09 Jakub Jelinek <jakub@redhat.com>
1098 * string/test-strspn.c (do_test): Ensure zero termination.
1099 * string/test-strpbrk.c (do_test): Likewise.
1100 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
1101 * string/test-strncpy.c (stupid_strncpy): Likewise.
1102 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
1104 2002-10-08 Roland McGrath <roland@redhat.com>
1106 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
1109 2002-09-22 H.J. Lu <hjl@gnu.org>
1111 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
1112 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
1113 only if __NR_mmap2 is defined.
1115 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
1116 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
1117 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
1118 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
1120 2002-11-08 Jakub Jelinek <jakub@redhat.com>
1122 * posix/bug-regex13.c (tests): Add new test.
1124 * string/test-strchr.c (stupid_strchr): New function.
1125 (do_random_tests): Make sure the string is zero terminated.
1126 * string/test-strpbrk.c (stupid_strpbrk): New function.
1127 (do_random_tests): Make sure the string is zero terminated.
1128 * string/test-strcmp.c (stupid_strcmp): New function.
1129 (do_random_tests): Make sure the strings are zero terminated.
1130 * string/test-strspn.c (stupid_strspn): New function.
1131 (simple_strspn): Rename rej argument to acc.
1132 (do_random_tests): Make sure the string is zero terminated.
1133 * string/test-strcspn.c (stupid_strcspn): New function.
1134 * string/test-strncpy.c (stupid_strncpy): New function.
1135 * string/test-stpncpy.c (stupid_stpncpy): New function.
1136 * string/test-strncmp.c (stupid_strncmp): New function.
1137 (do_random_tests): Make sure the strings are zero terminated.
1138 * string/test-string.h (impl_t): Change test into long.
1139 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
1141 2002-11-08 Roland McGrath <roland@redhat.com>
1143 * sysdeps/ia64/elf/configure.in: Add TLS check.
1144 From Ian Wienand <ianw@cse.unsw.edu.au>.
1145 * sysdeps/ia64/elf/configure: Regenerated.
1147 2002-11-07 Roland McGrath <roland@redhat.com>
1149 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
1150 place of _IO_new_do_write.
1151 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
1152 #undef before versioned_symbol use.
1154 2002-11-07 Richard Henderson <rth@redhat.com>
1156 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
1157 * configure: Regenerated.
1158 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
1159 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
1160 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
1161 _dl_fini via gp-relative relocations.
1162 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
1164 * elf/tls-macros.h: Add alpha versions.
1165 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
1166 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
1167 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
1168 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
1169 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
1170 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
1171 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
1172 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
1173 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
1174 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
1175 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
1176 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
1177 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
1178 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
1179 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
1180 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
1181 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
1182 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
1184 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
1185 Kill argument registers across the inline syscall.
1187 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
1189 * linuxthreads/sysdeps/alpha/tls.h: New file.
1190 * sysdeps/alpha/dl-tls.h: New file.
1192 2002-10-29 David Mosberger <davidm@hpl.hp.com>
1194 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
1195 (gmon_initializer): New function.
1196 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
1197 __gmon_start__ here. Call it from gmon_initializer() instead.
1199 2002-03-12 H.J. Lu <hjl@gnu.org>
1201 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
1202 tst-array2, and tst-array3.
1203 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
1204 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
1205 ($(objpfx)tst-array1.out): New target.
1206 ($(objpfx)tst-array2): Likewise.
1207 ($(objpfx)tst-array2.out): Likewise.
1208 ($(objpfx)tst-array3.out): Likewise.
1209 * elf/tst-array1.c: New file.
1210 * elf/tst-array1.exp: Likewise.
1211 * elf/tst-array2.c: Likewise.
1212 * elf/tst-array2dep.c: Likewise.
1213 * elf/tst-array2.exp: Likewise.
1214 * elf/tst-array3.c: Likewise.
1216 2002-10-28 David Mosberger <davidm@hpl.hp.com>
1218 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
1219 Don't add L->l_addr to array entry values.
1221 2002-11-07 Jakub Jelinek <jakub@redhat.com>
1223 * string/test-string.h: New file.
1224 * string/test-strlen.c: New file.
1225 * string/test-string.h: New file.
1226 * string/test-strcmp.c: New file.
1227 * string/test-strchr.c: New file.
1228 * string/test-strrchr.c: New file.
1229 * string/test-strcpy.c: New file.
1230 * string/test-stpcpy.c: New file.
1231 * string/test-strncpy.c: New file.
1232 * string/test-stpncpy.c: New file.
1233 * string/test-strpbrk.c: New file.
1234 * string/test-strcspn.c: New file.
1235 * string/test-strspn.c: New file.
1236 * string/test-strcat.c: New file.
1237 * string/test-strncmp.c: New file.
1238 * string/test-memchr.c: New file.
1239 * string/test-memcmp.c: New file.
1240 * string/test-memset.c: New file.
1241 * string/test-memcpy.c: New file.
1242 * string/test-mempcpy.c: New file.
1243 * string/test-memmove.c: New file.
1244 * string/Makefile (strop-tests): New variable.
1245 (tests): Add strop-tests.
1246 (distribute): Add test-string.h.
1248 2002-11-06 Ulrich Drepper <drepper@redhat.com>
1250 * posix/regcomp.c: Use tabs instead of spaces.
1251 * posix/regexec.c: Likewise.
1252 * posix/regex_internal.h: Likewise.
1254 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
1256 2002-11-06 Jakub Jelinek <jakub@redhat.com>
1258 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
1260 (regcomp): Don't set can_be_null here.
1261 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
1262 (re_compile_internal): Clear can_be_null, set regs_allocated.
1264 * posix/regcomp.c (re_set_fastmap): New function.
1265 (re_compile_fastmap_iter): Use it. Remove redundant type ==
1266 COMPLEX_BRACKET check.
1267 * posix/regexec.c (re_search_internal): Optimize searching with
1268 fastmap. Call re_string_reconstruct even if match_first is
1269 smaller than raw_mbs_idx.
1271 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
1273 * posix/regcomp (free_dfa_content): Use free_state.
1274 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
1275 pointers in case that realloc failed.
1276 (re_node_set_merge): Likewise.
1277 (register_state): Likewise.
1278 (create_newstate_common): Invoke memory release functions in case of
1280 (create_ci_newstate): Likewise.
1281 (create_cd_newstate): Likewise.
1282 (free_state): New function.
1283 * posix/regexec.c (re_search_internal): Invoke memory release
1284 functions in case of error conditions.
1285 (sift_states_backward): Likewise.
1286 (merge_state_array): Likewise.
1287 (add_epsilon_src_nodes): Likewise.
1288 (sub_epsilon_src_nodes): Likewise.
1289 (search_subexp): Likewise.
1290 (sift_states_bkref): Likewise.
1291 (transit_state_sb): Likewise.
1292 (transit_state_mb): Likewise.
1293 (transit_state_bkref_loop): Likewise.
1294 (group_nodes_into_DFAstates): Likewise.
1295 (push_fail_stack): Don't edit pointers in case that realloc failed.
1296 (extend_buffers): Likewise.
1297 (match_ctx_add_entry): Likewise.
1299 2002-11-06 Roland McGrath <roland@redhat.com>
1301 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
1302 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
1304 * configure.in: Add checks on as and ld for binutils 2.13 or later.
1305 * configure: Regenerated.
1307 2002-11-06 Ulrich Drepper <drepper@redhat.com>
1309 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
1310 If re_compile_internal failed free fastmap buffer.
1311 (free_dfa_content): Broken out of regfree function. Frees all dfa
1313 (regfree): Add free_dfa_content.
1314 (re_compile_internal): If any of the called functions fails free
1315 all dfa related memory.
1317 2002-11-05 Ulrich Drepper <drepper@redhat.com>
1319 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
1320 warnings from the kernel headers.
1322 2002-11-05 Roland McGrath <roland@redhat.com>
1324 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
1325 From Johannes Stezenbach <js@convergence.de>.
1327 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
1328 #errlist-compat magic comment to give 123 as size.
1329 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
1330 (libc: GLIBC_2.2): ... here.
1331 (libc: GLIBC_2.3): Likewise.
1333 2002-11-05 Ulrich Drepper <drepper@redhat.com>
1335 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
1336 which happens at the beginning so that we can unload modules in
1339 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1341 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
1342 under [__USE_MISC || _ASM].
1344 * elf/elf.h: Remove the obsolete SH TLS relocations.
1346 2002-11-05 Ulrich Drepper <drepper@redhat.com>
1348 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
1350 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1352 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
1353 __NR_pread64 and __NR_pwrite64.
1354 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
1355 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
1357 Revert change to use INLINE_SYSCALL.
1358 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
1359 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
1360 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
1361 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
1363 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
1365 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
1366 Update clobber list and add a comment about the syscall ABI.
1368 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
1369 s_pwrite64, s_ftruncate, s_truncate): Re-add.
1371 2002-11-05 Jakub Jelinek <jakub@redhat.com>
1373 * iconv/gconv_dl.c (free_mem): Clear loaded.
1374 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
1377 2002-11-05 Ulrich Drepper <drepper@redhat.com>
1379 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
1381 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
1382 as old code without locking. _IO_seekoff calls this function after
1384 * libio/ioseekpos.c: Likewise for _IO_seekpos.
1385 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
1386 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
1388 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
1389 of _IO_seekoff_internal.
1390 (_IO_rewind): Likewise.
1391 * libio/ioftell.c: Likewise.
1392 * libio/ftello.c: Likewise.
1393 * libio/ftello64.c: Likewise.
1394 * libio/iofgetpos.c: Likewise.
1395 * libio/iofgetpos64.c: Likewise.
1396 * libio/oldiofgetpos.c: Likewise.
1397 * libio/oldiofgetpos64.c: Likewise.
1398 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
1399 _IO_seekpos_internal.
1400 * libio/iofsetpos64.c: Likewise.
1401 * libio/oldiofsetpos.c: Likewise.
1402 * libio/oldiofsetpos64.c: Likewise.
1404 2002-11-04 Roland McGrath <roland@redhat.com>
1406 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
1407 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
1408 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
1409 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
1410 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
1411 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
1412 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
1413 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
1414 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
1415 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
1416 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
1417 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
1418 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
1419 Remove these, no longer used.
1421 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1423 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
1424 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
1425 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
1426 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
1427 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
1428 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
1431 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
1432 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
1433 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
1435 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
1436 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
1438 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
1440 2002-11-03 Roland McGrath <roland@redhat.com>
1442 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
1443 `_dl_tls_static_used'.
1444 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
1445 (__libc_setup_tls): Initialize it. Let the initial value of
1446 _dl_tls_static_size indicate some surplus space in the computed value.
1447 * elf/dl-open.c (_dl_tls_static_size): New variable.
1448 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
1449 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
1450 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
1451 (CHECK_STATIC_TLS): Use it.
1452 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
1453 closed objects occupied a trailing contiguous chunk of static TLS area.
1455 2002-10-18 Bruno Haible <bruno@clisp.org>
1457 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
1459 2002-11-04 Ulrich Drepper <drepper@redhat.com>
1461 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
1462 _wide_data->_IO_read_end if adjustment can be made in the current
1465 * sysdeps/unix/sysv/linux/fexecve.c: New file.
1467 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
1468 wide oriented streams are used.
1470 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
1471 service hasn't been used [PR libc/4744].
1473 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
1474 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
1476 * manual/examples/dir.c: Don't include <stddef.h>.
1477 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
1478 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
1480 2002-11-02 H.J. Lu <hjl@gnu.org>
1482 * stdio-common/reg-printf.c: Include <stddef.h>.
1484 2002-11-03 Ulrich Drepper <drepper@redhat.com>
1486 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
1488 * po/ca.po: Update from translation team.
1489 * po/es.po: Likewise.
1491 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
1492 is defined write out memory map.
1493 * sysdeps/unix/sysv/linux/segfault.c: New file.
1495 2002-11-02 Roland McGrath <roland@redhat.com>
1497 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
1498 pointers that can alias.
1499 Reported by Daniel Jacobowitz <drow@mvista.com>.
1501 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
1503 2002-11-02 Roland McGrath <roland@redhat.com>
1505 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
1506 description to be clearer and to say that *RESULT is set to ENTRY.
1508 2002-10-30 Jakub Jelinek <jakub@redhat.com>
1510 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
1511 dests_ch arrays together. Alloca or malloc dest_states,
1512 dest_states_word and dest_states_nl arrays together. Free memory on
1515 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1517 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
1518 and current_saltbits.
1520 2002-11-02 Roland McGrath <roland@redhat.com>
1522 * stdio-common/reg-printf.c: Include <stdlib.h>.
1524 2002-11-02 H.J. Lu <hjl@gnu.org>
1526 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
1527 caller to EXTRA instead of execve.
1529 2002-11-01 Roland McGrath <roland@redhat.com>
1531 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
1532 in place of [!(USE_TLS && HAVE___THREAD)].
1533 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
1535 2002-10-31 Roger Sayle <roger@eyesopen.com>
1537 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
1539 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
1541 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
1542 without defining FP_ROUNDMODE.
1544 2002-10-29 Jakub Jelinek <jakub@redhat.com>
1546 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
1547 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
1549 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
1550 (OLD_SIGLIST_SIZE): Define.
1551 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
1552 (OLD_SIGLIST_SIZE): Define.
1553 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
1555 2002-11-01 Jakub Jelinek <jakub@redhat.com>
1557 * sysdeps/ia64/strncpy.S: Fix recovery code.
1559 2002-10-30 Jakub Jelinek <jakub@redhat.com>
1561 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
1563 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
1565 * elf/dl-libc.c (free_mem): Likewise.
1566 * iconv/gconv_conf.c (free_mem): Likewise.
1567 * iconv/gconv_db.c (free_mem): Likewise.
1568 * iconv/gconv_dl.c (free_mem): Likewise.
1569 * iconv/gconv_cache.c (free_mem): Likewise.
1570 * intl/finddomain.c (free_mem): Likewise.
1571 * intl/dcigettext.c (free_mem): Likewise.
1572 * locale/setlocale.c (free_mem): Likewise.
1573 * misc/fstab.c (fstab_free): Likewise.
1574 * nss/nsswitch.c (free_mem): Likewise.
1575 * posix/regcomp.c (free_mem): Likewise.
1576 * resolv/gai_misc.c (free_res): Likewise.
1577 * stdlib/fmtmsg.c (free_mem): Likewise.
1578 * sunrpc/clnt_perr.c (free_mem): Likewise.
1579 * sysdeps/generic/setenv.c (free_mem): Likewise.
1580 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
1581 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
1582 * time/tzset.c (free_mem): Likewise.
1583 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
1584 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
1585 * malloc/set-freeres.c (__libc_freeres): Likewise.
1587 * login/getutent.c: Include stdlib.h instead of stddef.h.
1588 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
1589 (__getutent): Allocate buffer the first time it is run.
1590 * login/getutid.c: Include stdlib.h instead of stddef.h.
1591 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
1592 (__getutid): Allocate buffer the first time it is run.
1593 * login/getutline.c: Include stdlib.h instead of stddef.h.
1594 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
1595 (__getutline): Allocate buffer the first time it is run.
1596 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
1597 (mtrace): Allocate malloc_trace_buffer.
1598 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
1599 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
1600 * string/strerror.c: Include libintl.h and errno.h.
1601 (buf): New variable.
1602 (strerror): Only allocate buffer if actually needed (unknown error).
1603 * time/tzfile.c (transitions): Add libc_freeres_ptr.
1606 2002-10-25 Jakub Jelinek <jakub@redhat.com>
1608 * include/libc-symbols.h (libc_freeres_ptr): New macro.
1609 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
1611 (__libc_freeres): Free all pointers in that section.
1612 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
1613 commands when creating .lds script.
1614 (LDSEDCMD-c.so): New variable.
1615 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
1616 (rcmd_af): Use strdup to allocate ahostbuf.
1617 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
1618 (rexec_af): Use strdup to allocate ahostbuf.
1619 * stdio-common/reg-printf.c (printf_funcs): Remove.
1620 (__printf_arginfo_table): Change into printf_arginfo_function **.
1621 Add libc_freeres_ptr.
1622 (__register_printf_function): Allocate __printf_arginfo_table
1623 and __printf_function_table the first time it is called.
1624 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
1625 printf_arginfo_function **.
1626 (parse_one_spec): Add __builtin_expect.
1627 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
1629 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
1631 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
1632 (string_space, map): Add libc_freeres_ptr.
1634 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
1636 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
1638 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
1639 (buffer): Add libc_freeres_ptr.
1640 (free_mem): Remove for _LIBC.
1641 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
1643 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
1645 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
1647 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
1649 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
1651 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
1653 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
1656 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
1660 2002-10-30 Jakub Jelinek <jakub@redhat.com>
1662 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
1663 instead of duplicating the whole function in libc.
1665 2002-10-31 Roland McGrath <roland@redhat.com>
1667 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
1668 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
1670 2002-10-30 Jakub Jelinek <jakub@redhat.com>
1672 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
1673 32bit-predefine when creating .new32 list and -U for each
1674 32bit-predefine when creating .new64 list.
1675 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
1677 2002-10-29 Andreas Schwab <schwab@suse.de>
1679 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
1680 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
1682 2002-10-25 Roland McGrath <roland@redhat.com>
1684 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
1685 * sysdeps/unix/sysv/linux/configure: Regenerated.
1687 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
1688 _dl_starting_up decl.
1690 2002-10-20 H.J. Lu <hjl@gnu.org>
1692 * sysdeps/unix/sysv/linux/configure.in: Don't check
1693 /lib/modules/`uname -r`/build/include for kernel headers if
1695 * sysdeps/unix/sysv/linux/configure: Regenerated.
1697 2002-10-25 Roland McGrath <roland@redhat.com>
1699 * math/math.h (M_LOG2El): Correct the value.
1700 From Stephen L Moshier <steve@moshier.net>.
1702 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
1703 conditional from __libc_multiple_libcs access. Remove kludge for weak
1704 symbol access with old compilers we no longer support.
1705 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
1706 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
1708 2002-10-25 Roland McGrath <roland@redhat.com>
1710 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
1711 implement SV_RESETHAND by translating it to SA_RESETHAND.
1713 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
1715 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
1716 type on ELF64 platforms.
1718 2002-10-24 Ulrich Drepper <drepper@redhat.com>
1720 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
1722 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
1724 2002-10-24 Jakub Jelinek <jakub@redhat.com>
1726 * elf/dl-misc.c: Include <sysdep.h>.
1727 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
1729 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
1730 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
1731 (INLINE_SYSCALL): Use that.
1732 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
1733 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
1734 (INLINE_SYSCALL): Use that.
1735 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
1736 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
1737 (INLINE_SYSCALL): Use that.
1738 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
1740 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
1741 (__INTERNAL_SYSCALL_STRING): Define.
1742 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
1744 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
1745 (__INTERNAL_SYSCALL_STRING): Define.
1746 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
1747 __SYSCALL_STRING to inline_syscall*.
1748 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
1750 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
1751 inline_syscall4, inline_syscall5, inline_syscall6): Add string
1754 2002-10-24 Roland McGrath <roland@redhat.com>
1756 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
1757 * sysdeps/unix/sysv/linux/init-first.c: Not here.
1758 * sysdeps/powerpc/elf/libc-start.c: Or here.
1759 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
1760 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
1761 * sysdeps/unix/sysv/aix/init-first.c: Or here.
1762 * sysdeps/generic/libc-start.c: Or here.
1763 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
1764 access with [! SHARED].
1765 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
1767 * libio/bug-wfflush.c: New file.
1768 * libio/Makefile (tests): Add bug-wfflush.
1770 2002-10-23 Roland McGrath <roland@redhat.com>
1772 * stdio-common/tst-fphex.c: New file.
1773 * stdio-common/Makefile (tests): Add tst-fphex.
1774 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
1775 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
1776 chars always before the value digits.
1777 Reported by James Antill <james.antill@redhat.com>.
1779 2002-10-24 Jakub Jelinek <jakub@redhat.com>
1781 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
1782 (free_mem): New function.
1783 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
1784 if not cross compiling.
1785 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
1786 (bug-regex14-ENV): Set.
1787 (bug-regex14-mem): New target.
1788 * posix/bug-regex14.c: New file.
1790 2002-10-23 Roland McGrath <roland@redhat.com>
1792 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
1793 target, so we don't touch it when the link fails.
1795 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
1796 Check for the result overflowing off_t and fail with EOVERFLOW.
1797 * libio/ioftell.c (_IO_ftell): Likewise.
1798 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
1800 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
1801 use a temporary timeval on the stack for gettimeofday and copy it.
1802 * login/logout.c (logout): Likewise.
1803 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
1805 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
1806 Use __SWORD_TYPE instead of int for member types.
1807 (struct statfs64): Likewise.
1808 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
1809 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
1810 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
1811 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
1812 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
1814 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
1815 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
1816 (ST_NODIRATIME): Restore fixed value of 2048.
1817 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
1818 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
1820 Rearranged <bits/types.h> definitions to reduce duplication.
1821 * sysdeps/generic/bits/types.h: Rewritten, using macros from
1822 <bits/wordsize.h> and new header <bits/typesizes.h>.
1823 * posix/Makefile (headers): Add bits/typesizes.h here.
1824 * sysdeps/generic/bits/typesizes.h: New file.
1825 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
1826 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
1827 * sysdeps/mach/hurd/bits/typesizes.h: New file.
1828 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
1829 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
1830 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
1831 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
1832 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
1833 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
1834 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
1835 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
1836 <bits/pthreadtypes.h> here, not in <bits/types.h>.
1837 * signal/signal.h: Likewise.
1839 * streams/stropts.h: Include <bits/xtitypes.h>.
1840 * streams/Makefile (headers): Add bits/xtitypes.h here.
1841 * sysdeps/generic/bits/xtitypes.h: New file.
1842 * sysdeps/s390/bits/xtitypes.h: New file.
1843 * sysdeps/ia64/bits/xtitypes.h: New file.
1844 * sysdeps/x86_64/bits/xtitypes.h: New file.
1846 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
1847 * sysdeps/generic/bits/ipctypes.h: New file.
1848 * sysdeps/mips/bits/ipctypes.h: New file.
1849 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
1850 * sysdeps/gnu/bits/msq.h: Likewise.
1851 * sysvipc/sys/ipc.h: Likewise.
1853 2002-10-22 Ulrich Drepper <drepper@redhat.com>
1855 * elf/dl-load.c (struct filebuf): For buf element to have the
1856 alignment of ElfXX_Ehdr since this is what will be stored in it.
1858 2002-10-22 Jakub Jelinek <jakub@redhat.com>
1860 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
1861 into pointer to locrec_offset.
1862 (add_locale_to_archive): Adjust callers. Free normalized_name right
1863 before returning, not immediately after add_locale, pass it to
1864 add_alias if not NULL instead of name. Rename second normalized_name
1865 occurence to nnormalized_codeset_name.
1867 * locale/programs/locarchive.c (enlarge_archive): Make sure
1868 string_size is always a multiple of 4.
1869 Reported by Andreas Schwab <schwab@suse.de>.
1871 2002-10-21 Andreas Schwab <schwab@suse.de>
1873 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
1874 caller to EXTRA instead of execve, since the latter has a
1875 higher-priority implementation in linuxthreads.
1877 2002-10-21 Roland McGrath <roland@redhat.com>
1879 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
1880 slotinfo list's len member to the proper size, not just 1.
1881 Initialize static_map.l_tls_initimage.
1883 * elf/dl-open.c (dl_open_worker): Fix loop searching for
1884 dtv_slotinfo_list element containing new modules' l_tls_modid.
1886 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
1887 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
1888 * elf/Makefile (tests): Add tst-tls9.
1889 (tests-static): Add tst-tls9-static.
1890 (tst-tls9-static-ENV): New variable.
1891 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
1893 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
1894 modids used by partially loaded modules being closed can't be known.
1896 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
1898 * posix/Makefile: Add a test case for the bug reported by Aharon
1899 Robbins <arnold@skeeve.com>.
1900 * posix/bug-regex13.c: New file.
1901 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
1903 2002-10-21 Ulrich Drepper <drepper@redhat.com>
1905 * csu/gmon-start.c: Pretty printing.
1907 2002-10-19 Art Haas <ahaas@neosoft.com>
1909 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
1910 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
1911 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
1912 * configure: Regenerated.
1914 2002-10-19 Roland McGrath <roland@redhat.com>
1916 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
1917 and then set $subdirs directly, because the new Autoconf breaks
1918 compatibility in every way imaginable and insists on whining
1919 about usage that worked since the dawn of time.
1920 * configure: Regenerated.
1922 * configure: Regenerated (using Autoconf 2.54).
1923 * sysdeps/alpha/elf/configure: Likewise.
1924 * sysdeps/generic/configure: Likewise.
1925 * sysdeps/i386/elf/configure: Likewise.
1926 * sysdeps/ia64/elf/configure: Likewise.
1927 * sysdeps/mach/hurd/configure: Likewise.
1928 * sysdeps/mach/configure: Likewise.
1929 * sysdeps/unix/configure: Likewise.
1930 * sysdeps/unix/common/configure: Likewise.
1931 * sysdeps/unix/sysv/aix/configure: Likewise.
1932 * sysdeps/unix/sysv/linux/configure: Likewise.
1933 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
1934 * sysdeps/x86_64/elf/configure: Likewise.
1936 * config.make.in: Nix completely-soft nonsense.
1937 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
1938 of machine directories instead of fpu subdirectory.
1939 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
1940 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
1941 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
1942 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
1943 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
1944 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
1945 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
1946 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
1947 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
1948 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
1949 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
1950 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
1951 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
1952 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
1953 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
1954 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
1955 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
1956 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
1957 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
1958 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
1959 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
1960 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
1961 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
1962 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
1963 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
1964 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
1965 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
1966 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
1967 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
1968 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
1969 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
1970 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
1971 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
1972 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
1973 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
1974 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
1975 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
1976 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
1977 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
1978 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
1980 2002-10-19 Bruno Haible <bruno@clisp.org>
1982 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
1984 2002-10-18 Roland McGrath <roland@redhat.com>
1986 * io/Makefile (routines): Add lchmod.
1987 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
1988 * sysdeps/generic/lchmod.c: New file.
1989 * sysdeps/mach/hurd/lchmod.c: New file.
1990 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
1992 2002-10-18 Art Haas <ahaas@neosoft.com>
1994 * configure.in: Remove remaining AC_FD_CC macros, and replace
1995 AC_FD_MSG with AS_MESSAGE_FD.
1997 2002-10-18 Roland McGrath <roland@redhat.com>
1999 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
2000 typos: VALUE -> FINALADDR.
2002 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
2003 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
2004 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
2005 (inline_syscall6): Move these macros ...
2006 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
2008 * configure.in (libc_link_dests, libc_link_sources): Remove these
2009 variables and the AC_LINK_FILES call.
2011 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
2012 change to put new symbols here instead of in GLIBC_2.2.
2013 * sysdeps/powerpc/Subdirs: Move this file ...
2014 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
2016 2002-10-07 Roland McGrath <roland@redhat.com>
2018 * sysdeps/generic/bits/time.h: Replaced with contents of the
2019 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
2020 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
2021 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
2022 macros is ok even for architectures that don't now implement them.
2023 * sysdeps/mach/hurd/bits/time.h: File removed.
2024 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
2025 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
2026 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
2027 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
2028 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
2030 2002-10-18 Jeff Bailey <jbailey@gnu.org>
2032 * configure.in: Replace obsolete AC_OUTPUT syntax with
2033 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
2035 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
2036 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
2038 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
2039 * sysdeps/alpha/elf/configure.in: Likewise.
2040 * sysdeps/i386/elf/configure.in: Likewise.
2041 * sysdeps/mach/hurd/configure.in: Likewise.
2042 * sysdeps/x86_64/elf/configure.in: Likewise.
2044 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
2046 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
2047 * sysdeps/generic/configure.in: Likewise.
2048 * sysdeps/i386/elf/configure.in: Likewise.
2049 * sysdeps/ia64/elf/configure.in: Likewise.
2050 * sysdeps/mach/configure.in: Likewise.
2051 * sysdeps/mach/hurd/configure.in: Likewise.
2052 * sysdeps/unix/configure.in: Likewise.
2053 * sysdeps/unix/common/configure.in: Likewise.
2054 * sysdeps/unix/sysv/aix/configure.in: Likewise.
2055 * sysdeps/unix/sysv/linux/configure.in: Likewise.
2056 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
2057 * sysdeps/x86_64/elf/configure.in: Likewise.
2059 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
2060 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
2061 that it's obvious when extra autoconf machinery is being dragged in.
2063 2002-10-18 Roland McGrath <roland@redhat.com>
2065 * configure.in: Remove bogus echo included in
2066 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
2067 * configure: Regenerated.
2069 2002-10-18 Jakub Jelinek <jakub@redhat.com>
2071 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
2072 (statfs_filesize_max): New function.
2073 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
2074 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
2075 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
2076 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
2077 statfs_filesize_max.
2078 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
2079 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
2080 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
2082 2002-10-17 Roland McGrath <roland@redhat.com>
2084 * configure.in (MIG): Just AC_SUBST it here.
2085 * configure: Regenerated.
2086 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
2087 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
2088 * sysdeps/mach/configure: Regenerated.
2090 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
2091 and AC_PROVIDE([_AS_CR_PREPARE]).
2093 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
2094 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
2096 * elf/dl-support.c: Move _dl_tls_* variables to ...
2097 * sysdeps/generic/libc-tls.c: ... here.
2099 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
2100 allow IDX to be one past the current last slotinfo entry.
2101 (_dl_close): Pass IMAP->l_init_called for that parameter.
2103 2002-10-07 Andreas Schwab <schwab@suse.de>
2105 * aclocal.m4: Fix for autoconf 2.53.
2106 * configure.in: Likewise. Require autoconf 2.53.
2108 2002-10-08 Richard Henderson <rth@redhat.com>
2110 * soft-fp/op-4.h: Handle carry correctly in
2111 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
2112 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
2113 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
2115 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
2117 * configure.in: Compute completely-soft.
2118 * config.make.in: Make completely-soft available to sub-makes.
2119 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
2120 gcc-double-routines. Add sim-full.c. Add fenv_const and
2121 fe_nomask to libm-support.
2122 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
2123 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
2124 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
2125 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
2126 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
2127 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
2128 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
2129 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
2130 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
2131 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
2132 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
2133 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
2134 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
2135 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
2136 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
2137 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
2138 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
2139 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
2140 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
2141 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
2143 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
2144 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
2145 FP_HANDLE_EXCEPTIONS.
2146 Define FP_ROUNDMODE.
2147 Redefine FP_* macros to correspond to the FE_* bit positions.
2148 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
2149 Define externs for __sim_exceptions, __sim_disabled_exceptions,
2150 __sim_round_mode, __simulate_exceptions.
2151 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
2152 * sysdeps/powerpc/bits/fenv.h: ...to here.
2154 2002-10-06 Jakub Jelinek <jakub@redhat.com>
2156 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
2157 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
2158 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
2159 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
2162 2002-10-15 Jakub Jelinek <jakub@redhat.com>
2164 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
2165 __libc_res_nsend): New prototypes.
2166 * resolv/res_query.c (QUERYSIZE): Define.
2167 (__libc_res_nquery): Renamed from res_nquery. Added answerp
2168 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
2169 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
2170 res_nsend, pass answerp.
2171 (res_nquery): Changed into wrapper around __libc_res_nquery.
2172 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
2173 argument. Call __libc_res_nquerydomain and __libc_res_nquery
2174 instead of the non-__libc_ variants, pass them answerp.
2175 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
2176 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
2177 Added answerp argument. Call __libc_res_nquery instead of
2178 res_nquery, pass answerp.
2179 (res_nquerydomain): Changed into wrapper around
2180 __libc_res_nquerydomain.
2181 * resolv/res_send.c: Include sys/ioctl.h.
2182 (MAXPACKET): Define.
2183 (send_vc): Change arguments. Reallocate answer buffer if it is
2185 (send_dg): Likewise.
2186 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
2187 Reallocate answer buffer if it is too small and hooks are in use.
2188 Adjust calls to send_vc and send_dg.
2189 (res_nsend): Changed into wrapper around __libc_res_nsend.
2190 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
2191 just 1K answer buffer on the stack, use __libc_res_nsearch instead
2193 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
2194 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
2195 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
2196 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
2197 (gethostbyaddr): Similarly with __libc_res_nquery.
2198 * resolv/Versions (libresolv): Export __libc_res_nquery and
2199 __libc_res_nsearch at GLIBC_PRIVATE.
2201 2002-10-17 Roland McGrath <roland@redhat.com>
2203 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
2204 * configure: Regenerated.
2206 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
2207 before performing the reloc, not after.
2208 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
2210 2002-10-17 Ulrich Drepper <drepper@redhat.com>
2212 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
2213 * locale/programs/linereader.c (lr_open): Likewise.
2214 * locale/programs/charmap-dir.c (charmap_open): Likewise.
2215 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
2217 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
2219 * posix/bug-regex11.c: Add a test case for the bug reported by
2220 Paolo Bonzini <bonzini@gnu.org>.
2221 * posix/regexec.c (sift_states_bkref): Use correct destination of
2224 2002-10-17 Roland McGrath <roland@redhat.com>
2226 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
2227 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
2228 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
2229 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
2230 Call it after performing TPOFF relocs.
2231 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2232 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
2233 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
2235 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
2236 when closing a partially-initialized object.
2238 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
2239 instead of _dl_fatal_printf when we see PT_TLS.
2241 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
2242 instead of $(libof-$<).
2244 2002-10-16 Roland McGrath <roland@redhat.com>
2246 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
2247 instead of += to append, to be sure $(lib) gets expanded at defn time.
2248 (libof-$(cpp-src)): New variable, define this instead.
2249 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
2250 (lib): Don't use override.
2251 (CPPFLAGS-$(lib)): New variable, put -D's here.
2252 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
2253 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
2254 LIB found by $(libof-*) for basename, target, or source.
2255 * Makerules (CPPFLAGS-nonlib): New variable.
2256 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
2257 * locale/Makefile (lib): Likewise.
2258 * sunrpc/Makefile (lib): Likewise.
2260 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
2261 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
2262 * sysdeps/unix/sysv/linux/pathconf.h: New file.
2263 (statfs_link_max): New function, guts from fpathconf.c.
2264 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
2265 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
2266 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
2267 to use the linux/pathconf.c code by #include rather than duplication.
2268 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
2270 2002-10-16 Jakub Jelinek <jakub@redhat.com>
2272 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
2273 Use __libc_errno only for libc itself.
2275 2002-10-16 Andreas Jaeger <aj@suse.de>
2277 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
2279 2002-10-16 Ulrich Drepper <drepper@redhat.com>
2281 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
2282 Use __libc_errno only for libc itself.
2284 2002-10-15 Roland McGrath <roland@redhat.com>
2285 Jakub Jelinek <jakub@redhat.com>
2287 * sysdeps/unix/sysv/linux/Makefile
2288 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
2289 sparc/Makefile to produce a bi-arch file as needed.
2290 That's now parameterized by the variable $(64bit-predefine).
2291 Use LC_ALL=C for `comm' commands in that rule.
2292 No longer conditional on [$(no_syscall_list_h)].
2293 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
2294 (64bit-predefine): New variable.
2295 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
2296 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
2297 * sysdeps/unix/sysv/linux/powerpc/Makefile
2298 (64bit-predefine): New variable.
2300 2002-10-15 Roland McGrath <roland@redhat.com>
2302 * sysdeps/unix/sysv/linux/Makefile
2303 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
2305 * login/utmp-private.h: Declare __libc_utmp_lock.
2306 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
2307 and call __libc_utmp_jump_table functions directly, instead of using
2310 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
2311 * sysdeps/unix/sysv/linux/configure: Regenerated.
2313 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
2314 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
2315 Use int32_t for ll_time.
2316 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
2317 Use int32_t instead of long int for ut_session.
2318 Use an anonymous struct with 32-bit fields for ut_tv.
2319 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
2320 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
2321 here as in utmp.h for `struct utmp'.
2322 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
2323 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
2324 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
2325 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
2326 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
2327 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
2329 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
2330 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
2331 All the following files were identical or equivalent to it.
2332 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
2333 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
2334 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
2335 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
2336 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
2337 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
2338 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
2339 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
2340 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
2341 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
2343 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
2344 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
2345 Other than the previously incorrect sign of msg_iovlen, this is a
2346 no-op on 32-bit platforms. On 64-bit platforms it makes this header
2347 match their layouts as well, so the following are now identical to it.
2348 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
2349 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
2350 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
2351 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
2352 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
2354 2002-10-15 Ulrich Drepper <drepper@redhat.com>
2356 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
2357 Define for 2.4+ kernels.
2359 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
2360 are known to have the vfork syscall. Don't confuse the CPUs
2361 branch prediction unit by jumping to the return address.
2363 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
2364 support for reiserfs and xfs.
2366 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
2368 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
2370 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
2372 2002-10-16 Jakub Jelinek <jakub@redhat.com>
2374 * include/libc-symbols.h (attribute_tls_model_ie): Define.
2375 * include/errno.h (errno): Define to __libc_errno in libc.so.
2376 Add attribute_tls_model_ie.
2377 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
2378 Add attribute_tls_model_ie.
2379 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
2380 attribute_tls_model_ie.
2381 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
2383 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
2385 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
2386 attribute_tls_model_ie.
2387 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
2389 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
2390 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
2391 __libc_errno in USE___THREAD case.
2392 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
2394 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
2395 __attribute__((tls_model (""))).
2396 * configure: Rebuilt.
2397 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
2399 2002-10-15 Ulrich Drepper <drepper@redhat.com>
2401 * timezone/asia: Update from tzdata2002d.
2402 * timezone/australasia: Likewise.
2403 * timezone/iso3166.tab: Likewise.
2404 * timezone/southamerica: Likewise.
2405 * timezone/zone-tab: Likewise.
2407 2002-10-15 Roland McGrath <roland@redhat.com>
2409 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
2410 Adjust TCB pointer before calling free, so we get the whole block.
2412 2002-10-14 Roland McGrath <roland@redhat.com>
2414 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
2415 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
2416 extern using attribute_hidden instead of static, avoids warning.
2418 2002-10-09 Jakub Jelinek <jakub@redhat.com>
2420 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
2421 * sysdeps/unix/sysv/linux/configure: Rebuilt.
2423 2002-10-14 Ulrich Drepper <drepper@redhat.com>
2425 * po/sv.po: Update from translation team.
2427 2002-10-12 H.J. Lu <hjl@gnu.org>
2429 * sunrpc/thrsvc.c (PROCQUIT): New.
2430 (struct rpc_arg): New.
2431 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
2432 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
2433 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
2434 (main): Modified for struct rpc_arg *.
2436 2002-10-14 Ulrich Drepper <drepper@redhat.com>
2438 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
2440 2002-10-14 Jakub Jelinek <jakub@redhat.com>
2442 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
2443 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
2444 in ld.so even if __thread is supported.
2446 2002-10-13 Jakub Jelinek <jakub@redhat.com>
2448 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
2449 Add hack to prevent the compiler from clobbering the signal context.
2450 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
2452 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
2455 2002-10-14 Andreas Jaeger <aj@suse.de>
2457 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
2458 Guido Guenther <agx@sigxcpu.org>.
2460 2002-10-14 Ulrich Drepper <drepper@redhat.com>
2462 * po/sk.po: Update from translation team.
2464 2002-09-26 Roland McGrath <roland@redhat.com>
2466 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
2468 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
2469 DL_DST_LIB based on $(slibdir).
2471 2002-10-13 Roland McGrath <roland@frob.com>
2473 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
2475 * sysdeps/mach/hurd/getresuid.c: New file.
2476 * sysdeps/mach/hurd/getresgid.c: New file.
2477 * sysdeps/mach/hurd/setresuid.c: New file.
2478 * sysdeps/mach/hurd/setresgid.c: New file.
2480 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
2481 setresgid): Declare them.
2484 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
2485 add libc_hidden_proto.
2486 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
2487 getresuid, getresgid, setresuid, setresgid here.
2488 * Versions.def (libc): Define GLIBC_2.3.2 set.
2489 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
2490 Add libc_hidden_def.
2491 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
2492 * sysdeps/generic/setresgid.c: New file.
2493 * sysdeps/generic/setresuid.c: New file.
2494 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
2495 (sysdep_routines): Don't add getresuid and getresgid here.
2496 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
2497 (sysdep_routines): Don't add setresuid and setresgid here.
2498 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
2499 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
2500 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
2501 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
2502 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
2503 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
2504 * posix/Makefile (routines): Add them all here instead.
2505 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
2506 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
2507 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
2508 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
2509 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
2510 [! __NR_setresuid]: Include generic file.
2511 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
2512 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
2513 [! __NR_setresuid]: Include generic file.
2514 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
2515 Caller is - now, not EXTRA.
2516 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
2517 (setresuid, setresgid, getresuid, getresgid): Likewise.
2518 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
2519 Add these calls here.
2520 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
2521 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2522 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2523 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2524 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2525 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
2526 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
2527 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2528 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2530 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
2531 (sysdep_routines): Add setfsuid and setfsgid here.
2532 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
2533 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
2534 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
2535 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
2536 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
2537 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
2538 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
2539 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
2541 * hurd/errno.c: Renamed to ...
2542 * hurd/errno-loc.c: ... this.
2543 * hurd/Makefile (routines): errno -> errno-loc
2545 2002-10-13 Ulrich Drepper <drepper@redhat.com>
2547 * po/de.po: Update from translation team.
2549 * MakeTAGS: Add -E flag to xgettext runs.
2551 2002-10-12 Ulrich Drepper <drepper@redhat.com>
2553 * po/fr.po: Update from translation team.
2555 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
2556 Optimize a bit for use in glibc.
2558 2002-10-12 Roland McGrath <roland@redhat.com>
2560 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
2561 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
2563 2002-10-12 Ulrich Drepper <drepper@redhat.com>
2565 * po/sv.po: Update from translation team.
2567 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
2569 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
2571 (regfree): Likewise.
2572 (create_initial_state): Likewise.
2573 (analyze): Remove the substitutions which became useless.
2574 (calc_first): Likewise.
2575 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
2576 epsilon destination.
2577 (duplicate_node_closure): New function.
2578 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
2579 (calc_inveclosure): Likewise.
2580 (calc_eclosure): Likewise.
2581 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
2582 direct invocation of duplicate_node.
2583 (parse): Don't use comma operator in the return to avoid compiler
2585 (parse_reg_exp): Likewise.
2586 (parse_branch): Likewise.
2587 (parse_expression): Likewise.
2588 (parse_sub_exp): Likewise.
2589 (parse_dup_op): Likewise.
2590 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
2591 which became useless.
2592 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
2593 (create_cd_newstate): Likewise.
2594 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
2595 (re_token_t): Likewise.
2596 (re_dfa_t): Likewise.
2597 (re_node_set_remove): New macro.
2598 * posix/regexec.c (check_matching): Remove the handling
2600 (check_halt_node_context): Likewise.
2601 (proceed_next_node): Likewise.
2602 (pop_fail_stack): Fix the memory leak.
2603 (set_regs): Likewise.
2604 (free_fail_stack_return): New function.
2605 (sift_states_backward): Fix the memory leak. Remove the handling
2607 (update_cur_sifted_state): Append some if clause to avoid redundant
2609 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
2611 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
2612 (check_subexp_limits): Likewise.
2613 (search_subexp): Likewise.
2614 (sift_states_bkref): Likewise.
2615 (transit_state_mb): Likewise.
2616 (transit_state_bkref_loop): Likewise.
2617 (transit_state_bkref_loop): Likewise.
2618 (group_nodes_into_DFAstates): Likewise.
2619 (check_node_accept): Likewise.
2620 (sift_ctx_init): Add initializing.
2622 2002-10-12 Ulrich Drepper <drepper@redhat.com>
2624 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
2627 2002-10-11 Ulrich Drepper <drepper@redhat.com>
2629 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
2630 duplicated variable c.
2632 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
2635 * sysdeps/unix/sysv/linux/i386/sysdep.h
2636 (INTERNAL_SYSCALL_ERROR_P): New define.
2637 (INTERNAL_SYSCALL_ERRNO): Likewise.
2639 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
2640 Add hack to prevent the compiler from clobbering the signal context.
2642 2002-10-11 Roland McGrath <roland@redhat.com>
2644 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
2647 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
2648 * sysdeps/sh/dl-lookupcfg.h: File removed.
2649 * sysdeps/i386/dl-lookupcfg.h: File removed.
2651 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
2652 missing labels and ; from last change.
2654 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
2655 number literals, so they are doubles instead of ints.
2657 2002-10-09 Roland McGrath <roland@redhat.com>
2659 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
2660 changed from [USE_TLS && HAVE___THREAD].
2662 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
2663 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
2664 * sysdeps/x86_64/dl-machine.h
2665 (elf_machine_type_class, elf_machine_rela): Likewise.
2666 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
2669 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
2670 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
2671 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
2673 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
2674 instead of ___tls_get_addr.
2675 (___tls_get_addr_internal): Add attribute_hidden to decl.
2677 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
2678 _dl_error_catch_tsd.
2679 * elf/rtld.c (startup_error_tsd): New function.
2680 (dl_main): Point _dl_error_catch_tsd at that.
2681 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
2682 use new function pointer instead.
2683 * elf/dl-tsd.c: New file.
2684 * elf/Makefile (routines): Add it.
2686 2002-10-07 Roland McGrath <roland@redhat.com>
2688 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
2689 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
2690 take _dl_load_lock around calling __writev.
2692 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
2693 (INLINE_SYSCALL): Use that.
2695 * sysdeps/generic/dl-sysdep.h: New file.
2696 * sysdeps/mach/hurd/dl-sysdep.h: New file.
2697 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
2698 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
2699 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
2701 * elf/dl-minimal.c (__errno_location): Removed.
2702 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
2703 Use GOTOFF access for errno.
2704 * sysdeps/unix/sysv/linux/i386/sysdep.h
2705 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
2707 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
2708 Use PC-relative access for errno.
2709 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
2710 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
2712 * include/tls.h: New file.
2713 (USE___THREAD): New macro.
2714 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
2716 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
2717 changed from [USE_TLS && HAVE___THREAD].
2718 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
2719 * sysdeps/unix/i386/sysdep.S: Likewise.
2720 * sysdeps/unix/x86_64/sysdep.S: Likewise.
2721 * include/errno.h: Likewise.
2722 * include/netdb.h: Likewise.
2723 * include/resolv.h: Likewise.
2725 * sysdeps/generic/errno.c: New file.
2726 * csu/Makefile (aux): New variable, list errno.
2727 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
2728 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2729 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2730 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2731 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2732 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
2733 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
2734 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
2735 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
2736 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
2737 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
2738 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
2739 * sysdeps/unix/alpha/sysdep.S: Likewise.
2740 * sysdeps/generic/start.c: Likewise.
2741 * sysdeps/unix/start.c: Likewise.
2742 * sysdeps/unix/arm/start.c: Likewise.
2743 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
2744 * sysdeps/unix/sparc/start.c: Likewise.
2745 * sysdeps/unix/sysv/irix4/start.c: Likewise.
2746 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
2748 * manual/search.texi (Tree Search Function, Hash Search Function):
2749 Mention search.h clearly.
2751 2002-10-05 Roland McGrath <roland@redhat.com>
2753 * elf/dl-fxstat64.c: File removed.
2754 * elf/dl-xstat64.c: File removed.
2755 * elf/Makefile (rtld-routines): Remove them.
2756 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
2757 Instead, use strong_alias instead of versioned_symbol in the
2759 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
2760 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
2762 * include/shlib-compat.h
2763 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
2764 [! NOT_IN_libc] (IS_IN_libc): Define it.
2765 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
2766 * elf/Makefile (CPPFLAGS-.os): Likewise.
2768 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
2769 Return the status instead of calling exit.
2771 * Makeconfig (CFLAGS): Prepend -std=gnu99.
2772 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
2773 Remove superfluous rm command, whose @ plus make bugs hid
2774 all these commands from the make output.
2776 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
2777 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
2778 Use that file's contents instead of literal echo's for the prologue.
2779 * include/features.h: Include <gnu/stubs.h> unconditionally.
2780 * include/gnu/stubs.h: New file.
2782 2002-09-30 Roland McGrath <roland@redhat.com>
2784 * elf/rtld-Rules: New file.
2785 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
2786 $(objpfx)rtld-libc.a): New targets.
2787 (generated): Add them.
2788 (reloc-link): Remove -o $@ from the variable.
2789 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
2790 (distribute): Add rtld-Rules.
2791 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
2792 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
2793 (common-mostlyclean, common-clean): Clean up rtld-* files.
2794 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
2796 2002-10-11 Roland McGrath <roland@redhat.com>
2798 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
2799 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
2801 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
2802 proper set of no-op insn prefixes.
2804 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
2806 2002-10-11 Ulrich Drepper <drepper@redhat.com>
2808 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
2809 __pthread_kill_other_threads_np.
2811 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
2813 2002-10-08 Roland McGrath <roland@redhat.com>
2815 * locale/newlocale.c (__newlocale): If setting all categories to "C",
2816 just return &_nl_C_locobj instead of copying it.
2817 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
2818 * locale/duplocale.c (__duplocale): Likewise.
2820 2002-10-07 Roland McGrath <roland@frob.com>
2822 * config.h.in (HAVE_I386_SET_GDT): New #undef.
2823 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
2824 * sysdeps/mach/configure: Regenerated.
2826 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2828 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
2829 Add all necessary register outputs for syscall-clobbered registers.
2831 2002-10-02 David Mosberger <davidm@hpl.hp.com>
2833 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
2834 Itanium 2 (and Itanium).
2835 Fix unwind directives and make it fit in 80 columns.
2836 * sysdeps/ia64/memset.S: Likewise.
2837 * sysdeps/ia64/memcpy.S: Likewise.
2838 Move jump table to .rodata section.
2840 2002-10-03 Roland McGrath <roland@frob.com>
2842 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
2845 2002-10-10 Andreas Jaeger <aj@suse.de>
2847 * sysdeps/x86_64/_mcount.S: Restore correct registers.
2849 2002-10-10 Ulrich Drepper <drepper@redhat.com>
2851 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
2853 2002-10-09 Ulrich Drepper <drepper@redhat.com>
2855 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
2856 _dl_allocate_tls_init. Add rtld_hidden_proto.
2857 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
2859 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
2861 * version.h (VERSION): Bump to 2.3.1.
2863 * Make-dist: Add back one of the tar invocations removed before.
2865 * stdlib/Makefile (distribute): Add allocalim.h.
2867 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
2868 (__libc_tsd_address): Use correct variable name.
2869 Patch by Stefan Jones <stefan.jones@multigig.com>.
2871 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
2872 Reported by edwardsg@sgi.com [PR libc/4678].
2874 * Versions.def (libc): Add GLIBC_2.3.1.
2875 (libpthread): Add GLIBC_2.3.1.
2877 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
2879 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
2880 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
2882 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
2883 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
2885 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
2886 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
2887 and make old name an alias.
2888 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
2889 and make old name an alias.
2890 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
2893 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
2894 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
2896 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
2898 * sysdeps/posix/readv.c: Likewise
2899 * sysdeps/unix/sysv/aix/readv.c: Likewise.
2900 * sysdeps/unix/sysv/linux/readv.c: Likewise.
2901 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
2903 * sysdeps/posix/writev.c: Likewise
2904 * sysdeps/unix/sysv/aix/writev.c: Likewise.
2905 * sysdeps/unix/sysv/linux/writev.c: Likewise.
2907 * include/sys/wait.h: Declare __waitid.
2908 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
2909 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
2911 * sysdeps/posix/waitid.c: Likewise.
2912 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
2914 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
2916 2002-10-07 Jakub Jelinek <jakub@redhat.com>
2918 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
2920 (__MAX_ALLOCA_CUTOFF): Define.
2921 Include allocalim.h.
2922 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
2923 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
2924 host_buffer depending on __libc_use_alloca.
2925 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
2926 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
2927 net_buffer depending on __libc_use_alloca.
2928 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
2929 buf depending on __libc_use_alloca.
2930 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
2931 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
2932 instead of hardcoded constants.
2933 Pass proper size argument to alloca and compute end for wide char
2935 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
2936 instead of hardcoded constants.
2937 * string/strcoll.c (strcoll): Likewise.
2938 * string/strxfrm.c (strxfrm): Likewise.
2939 * sysdeps/posix/readv.c (__readv): Likewise.
2940 * sysdeps/posix/writev.c (__writev): Likewise.
2941 * sysdeps/generic/allocalim.h: New file.
2943 2002-10-08 Roland McGrath <roland@redhat.com>
2945 * configure.in (aux_missing warning): Change "too old" to
2946 "incompatible versions", since for autoconf it's "too new" right now.
2947 * configure: Regenerated.
2949 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
2950 one found doesn't work on our configure.in.
2951 * configure: Regenerated.
2952 * config.make.in (AUTOCONF): New substituted variable.
2953 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
2954 (autoconf-it): ... here, use that instead of defining conditionally.
2955 Use $(AUTOCONF) instead of literal autoconf.
2956 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
2957 with this condition.
2958 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
2960 2002-10-08 Ulrich Drepper <drepper@redhat.com>
2962 * Make-dist (dist): Cleanup a bit. We are not interested in the
2963 14 char filename limit anymore. Remove intermediate files and
2966 2002-10-05 Ulrich Drepper <drepper@redhat.com>
2968 * po/sk.po: Update from translation team.
2969 * po/tr.po: Likewise.
2970 * po/gl.po: Likewise.
2972 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2974 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
2976 2002-10-03 Ulrich Drepper <drepper@redhat.com>
2978 * version.h (RELEASE): Change to stable.
2980 2002-10-03 Jakub Jelinek <jakub@redhat.com>
2982 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
2983 __syscall_exit_group): New prototypes.
2985 2002-10-03 Ulrich Drepper <drepper@redhat.com>
2987 * glibc 2.3 released.
2990 See ChangeLog.13 for earlier changes.