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