]> sourceware.org Git - glibc.git/blame - ChangeLog
Update.
[glibc.git] / ChangeLog
CommitLineData
9b4289aa
UD
12002-12-31 Ulrich Drepper <drepper@redhat.com>
2
1d2b6e0c
UD
3 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
4 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
5 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
6 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
7
e9395a94
UD
8 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
9 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
10 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
11 __GI___longjmp alias.
12
9b4289aa
UD
13 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
14 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
15 * sysdeps/arm/bsd-_setjmp.S: Likewise.
16 * sysdeps/generic/bsd-_setjmp.c: Likewise.
17 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
18 * sysdeps/i386/bsd-_setjmp.S: Likewise.
19 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
20 * sysdeps/mips/bsd-_setjmp.S: Likewise.
21 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
22 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
23 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
24 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
25 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
26 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
27 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
28 * sysdeps/sh/bsd-_setjmp.S: Likewise.
29 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
30 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
31 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
32 * sysdeps/vax/bsd-_setjmp.S: Likewise.
33 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
34
416d2de6
UD
352002-12-30 Ulrich Drepper <drepper@redhat.com>
36
37 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
38
30bac498
RM
392002-12-30 Roland McGrath <roland@redhat.com>
40
2b8d46ac
RM
41 * Rules (generated): Target removed.
42 * mach/Makefile (generated): Define it here instead.
43
30bac498
RM
44 * math/Makefile (generated): Add m_*l and m_*f variants too.
45
cfaf5e56
UD
462002-12-30 Ulrich Drepper <drepper@redhat.com>
47
f7a0ea26
UD
48 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
49 the to-be-deleted objects right away instead of later separately.
50 The latter fails because the scope data structures of the DSO
6c7689cb 51 might already be gone.
f7a0ea26 52
cfaf5e56
UD
53 * elf/Makefile: Add rules to build and run reldep8 test.
54 * elf/reldep8.c: New file.
55 * elf/reldep8mod1.c: New file.
56 * elf/reldep8mod2.c: New file.
57 * elf/reldep8mod3.c: New file.
58 Contributed by Jakub Jelinek.
59
31df0ab0
UD
602002-12-24 GOTO Masanori <gotom@debian.or.jp>
61
62 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
63 checking of return value ENOSYS from getdents64.
64
c99dac36
RM
652002-12-28 Andreas Schwab <schwab@suse.de>
66
67 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
68 ($(common-objpfx)s-%.d): Generalized from
69 $(common-objpfx)s-proto.d rule.
70 (common-generated): Add s-proto-cancel.d.
71 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
72 cancellable syscalls.
73 * sysdeps/unix/s-proto-cancel.S: New file.
74
aca45639
RM
752002-12-29 Roland McGrath <roland@redhat.com>
76
4aeb650e
RM
77 * resolv/res_libc.c: Move _res defn magic after res_init defn
78 so _res macro is in effect for that code.
79
c7371e6e
RM
80 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
81 pattern for prepending $(..) so it doesn't affect $(foo).
82
aca45639
RM
83 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
84
d21a5ab6
UD
852002-12-29 Jakub Jelinek <jakub@redhat.com>
86
87 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
88 in hwcap.
89
3b7ed871
UD
902002-12-28 Ulrich Drepper <drepper@redhat.com>
91
92 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
93
b25a62a8
UD
942002-12-28 Andreas Jaeger <aj@suse.de>
95
96 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
97 avoid warning.
98 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
99
270d9d47
UD
1002002-12-27 Jakub Jelinek <jakub@redhat.com>
101
102 * inet/herrno.c (__h_errno_location): Remove.
103 * inet/Makefile (routines): Add herrno-loc.
104 * resolv/res_libc.c (__res_state): Remove.
105 * resolv/Makefile (routines): Add res-state.
106 * sysdeps/generic/herrno-loc.c: New file.
107 * sysdeps/generic/res-state.c: New file.
108
afb2e954
UD
1092002-12-27 Jakub Jelinek <jakub@redhat.com>
110
111 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
112 Only define if USE_DL_SYSINFO is defined.
113
1142002-12-22 Jakub Jelinek <jakub@redhat.com>
115
116 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
117 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
118 Define. Patch by Richard Henderson and Jes Sorensen.
119 (PSEUDO): Remove unnecessary ;;.
120 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
121 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
122 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
123 if not initializing thread pointer.
124 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
125 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
126 make it weak also if NONTLS_INIT_TP.
127 * sysdeps/unix/common/pause.c: Handle cancellation.
128 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
129 (LOADSYSCALL): Remove.
130 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
131 (SYSCALL_ERROR_HANDLER): Use it.
132 (PSEUDO): Don't jump around error handler.
133 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
134 jump around error handler.
135 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
136 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
137 to __syscall_error_handler on failure.
138 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
139 (LOADSYSCALL): Remove.
140 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
141 (SYSCALL_ERROR_HANDLER): Use it.
142 (PSEUDO): Don't jump around error handler.
143 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
144 jump around error handler.
145 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
146 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
147 to __syscall_error_handler on failure.
148
e01b7873
RM
1492002-12-27 Roland McGrath <roland@redhat.com>
150
151 * scripts/gen-as-const.awk: New file.
152 * Makefile (distribute): Add it.
153 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
154 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
155 to the list.
156 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
157
4f172c25
AS
1582002-12-27 Andreas Schwab <schwab@suse.de>
159
e01b7873 160 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
4f172c25 161
08e49216
RM
1622002-12-27 Jakub Jelinek <jakub@redhat.com>
163
164 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
165 _environ is NULL.
166
e48cf678
RM
1672002-12-27 Andreas Schwab <schwab@suse.de>
168
169 * Makerules ($(common-objpfx)%.make): Filter through
170 $(sed-remove-objpfx).
171
c823a4d2
RM
1722002-12-23 Roland McGrath <roland@redhat.com>
173
174 * scripts/abilist.awk: Produce a more compact format, divided into
175 stanzas for each version set, the set name listed only once.
176 * scripts/extract-abilist.awk: New file.
177 * scripts/merge-abilist.awk: New file.
178 * Makerules (check-abi-%, update-abi-%): New pattern rules.
179 (update-abi, check-abi): New targets.
180 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
181
b27b002d
RM
1822002-12-19 Roland McGrath <roland@redhat.com>
183
c823a4d2
RM
184 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
185
b27b002d
RM
186 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
187 INTERNAL_SYSCALL.
188
a1bc30d7
UD
1892002-12-21 Andreas Schwab <schwab@suse.de>
190
191 * elf/check-textrel.c (handle_file): Swap p_type.
192
257757f8
AS
1932002-12-21 Andreas Schwab <schwab@suse.de>
194
195 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
196 (INLINE_SYSCALL): Use it.
197 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
9ff11db4 198 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
257757f8
AS
199
200 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
201 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
202
e361ccd9
UD
2032002-12-20 Art Haas <ahaas@airmail.net>
204
205 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
206 syntax to C99.
207
2082002-12-21 Philip Blundell <philb@gnu.org>
209
210 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
211 top as seventh arg to __libc_start_main.
212 Reported by paulnash@wildseed.com.
213
214 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
215
216 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
217 compatibility cruft when new enough kernel is assumed.
218
7e791f32
UD
2192002-12-20 Jakub Jelinek <jakub@redhat.com>
220
221 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
222 instead of INLINE_SYSCALL.
223
48f936a2
UD
2242002-12-20 Ulrich Drepper <drepper@redhat.com>
225
505b474d
UD
226 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
227 typo.
228
48f936a2
UD
229 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
230 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
231 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
232 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
233 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
234 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
235 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
236 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
237 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
238 Patch by William Lee Irwin <wli@holomorphy.com>.
239
2402002-12-20 Andreas Schwab <schwab@suse.de>
241
242 * locale/programs/ld-measurement.c (measurement_output): Fix
243 index calculation.
244
676fde70
UD
2452002-12-20 Ulrich Drepper <drepper@redhat.com>
246
1561bf63
UD
247 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
248 Redefine _IO_flockifle and _IO_funlockfile as inlines.
249
676fde70
UD
250 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
251 builds add "tls" in the search path.
252 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
253 (path_hwcap): Recognize "tls".
254
5f5843e3
UD
2552002-12-19 Ulrich Drepper <drepper@redhat.com>
256
676fde70
UD
257 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
258 __waitpid instead of waitpid.
259
057c823f
UD
260 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
261 int $0x80.
262 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
263 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
264 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
265
5f5843e3
UD
266 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
267 information for system calls.
268
269 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
270 for ld.so.
271
272 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
273
7e1f8b2e
RM
2742002-12-19 Roland McGrath <roland@redhat.com>
275
276 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
277 * iconvdata/ibm922.h: Likewise.
278 * iconvdata/ibm930.h: Likewise.
279 * iconvdata/ibm932.h: Likewise.
280 * iconvdata/ibm933.h: Likewise.
281 * iconvdata/ibm935.h: Likewise.
282 * iconvdata/ibm937.h: Likewise.
283 * iconvdata/ibm939.h: Likewise.
284 * iconvdata/ibm943.h: Likewise.
285 * iconvdata/isiri-3342.h: Likewise.
286
3325198e
UD
2872002-12-19 Ulrich Drepper <drepper@redhat.com>
288
55033a44
UD
289 * test-skeleton.c (main): Make sure correct value is seen as
290 argv[0] after adjustment of argv, and argc.
291
3325198e
UD
292 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
293 RTLD_CORRECT_DYNAMIC_WEAK is defined.
294
74e8f2dc
UD
2952002-12-19 Jakub Jelinek <jakub@redhat.com>
296
297 * nscd/connections.c (nscd_run): Shut up warning.
298 * tst-ungetc.c (assert): Undefined before redefining.
299
3002002-12-19 Ulrich Drepper <drepper@redhat.com>
301
302 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
303 is used.
304
3052002-12-17 Art Haas <ahaas@airmail.net>
306
307 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
308 * iconvdata/cp775.h: Likewise.
309 * iconvdata/ibm1046.h: Likewise.
310 * iconvdata/ibm1124.h: Likewise.
311 * iconvdata/ibm1129.h: Likewise.
312 * iconvdata/ibm1132.h: Likewise.
313 * iconvdata/ibm1133.h: Likewise.
314 * iconvdata/ibm1160.h: Likewise.
315 * iconvdata/ibm1161.h: Likewise.
316 * iconvdata/ibm1162.h: Likewise.
317 * iconvdata/ibm1163.h: Likewise.
318 * iconvdata/ibm1164.h: Likewise.
319
7d092b69
UD
3202002-12-19 Ulrich Drepper <drepper@redhat.com>
321
322 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
323 __ASSUME_CLONE_THREAD_FLAGS is defined.
324 * sysdeps/unix/sysv/linux/kernel-features.h
74e8f2dc 325 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
7d092b69 326
5e289179
UD
3272002-12-18 Ulrich Drepper <drepper@redhat.com>
328
7d092b69
UD
329 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
330 of asm.
331 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
332
5e289179
UD
333 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
334 _dl_sysinfo.
335 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
336 code.
337 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
338 _rtld_global.
339 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
340 code.
341 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
342 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
343 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
344 Add _dl_sysinfo.
345
99326cd4
UD
3462002-12-18 Jakub Jelinek <jakub@redhat.com>
347
348 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
349 __libc_writev to...
350 [libc: GLIBC_PRIVATE]: ...here.
351 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
352 __libc_msgsnd to...
353 [libc: GLIBC_PRIVATE]: ...here.
354
f051627f
UD
3552002-12-18 Ulrich Drepper <drepper@redhat.com>
356
357 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
358 Use it instead of directly int $0x80.
359 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
360 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
361 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
362 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
363 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
364 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
365
ff4056c0
UD
3662002-12-17 Ulrich Drepper <drepper@redhat.com>
367
6ed5da8f
UD
368 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
369
ff4056c0
UD
370 * elf/elf.h (AT_SYSINFO): New define.
371 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
372 AT_SYSINFO.
373
f077a4a9
UD
3742002-12-17 Jakub Jelinek <jakub@redhat.com>
375
82f81a90
UD
376 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
377 Make cancelable.
378 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
379 Likewise.
380 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
381 Likewise.
382 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
383 Likewise.
384 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
385 Likewise.
386 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
387
f077a4a9
UD
388 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
389 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
390 available, otherwise __libc_maybe_call.
391 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
392 cancellation handling.
393 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
394
a7d5c291
UD
3952002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
396
397 * posix/regcomp.c (free_workarea_compile): Free the new member
398 ORG_INDICES.
399 (analyze): Initialize ORG_INDICES.
400 (duplicate_node_closure): Search for a existing node, which is
401 duplicated from the node ORG_DEST and satisfies the constraint
402 CONSTRAINT. And use it to avoid inifimite loop.
403 (search_duplicated_node): New function.
404 (duplicate_node): Store the index of the original node.
405 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
406 if needed.
407 * posix/regex_internal.h (re_dfa_t): Add new members.
408
0bc02a40
UD
4092002-12-17 Ulrich Drepper <drepper@redhat.com>
410
411 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
412
26a026b9
UD
4132002-12-16 Ulrich Drepper <drepper@redhat.com>
414
3ca97e8f
UD
415 * sysdeps/posix/system.c (do_system): Add support for installation
416 of cancellation handlers.
417 * sysdeps/unix/sysv/linux/i386/system.c: New file.
418
419 * stdlib/Makefile (tests): Add tst-system.
420 * stdlib/tst-system.c: New file.
421
26a026b9
UD
422 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
423 CENABLE]: Don't lose content of %ebx.
424
bd499a3b
UD
4252002-12-17 Jakub Jelinek <jakub@redhat.com>
426
427 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
428 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
429
64ab2317
UD
4302002-12-16 Ulrich Drepper <drepper@redhat.com>
431
432 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
433 fails to return a function pointer don't use it.
434
f83c7164
UD
4352002-12-16 Art Haas <ahaas@airmail.net>
436
437 * io/ftw.c: Convert GCC extension initializer syntax to C99.
bd499a3b
UD
438 * iconvdata/iso-ir-165.c: Likewise.
439 * iconvdata/jis0208.c: Likewise.
440 * iconvdata/jis0212.c: Likewise.
f83c7164 441
ad3bf20c
UD
4422002-12-16 Ulrich Drepper <drepper@redhat.com>
443
444 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
445 epoll_ctl, and epoll_wait.
446 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
447 epoll_create, epoll_ctl, and epoll_wait.
87d60668
UD
448 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
449 Davide Libenzi <davidel@xmailserver.org>.
ad3bf20c
UD
450 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
451 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
452 Add sys/epoll.h.
453
4542002-12-16 Art Haas <ahaas@airmail.net>
455
456 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
457 syntax to C99
87d60668
UD
458 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
459 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
460 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
ad3bf20c 461
0a1063f4
UD
4622002-12-16 Ulrich Drepper <drepper@redhat.com>
463
464 * stdio-common/Makefile (routines): Remove lockfile. Add
465 flockfile, ftrylockfile, and funlockfile.
466 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
467 * sysdeps/generic/flockfile.c: New file.
468 * sysdeps/generic/ftrylockfile.c: New file.
469 * sysdeps/generic/funlockfile.c: New file.
470
9634cf9d
UD
4712002-12-16 Jakub Jelinek <jakub@redhat.com>
472
473 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
474 macros instead of doing the calls directly.
475 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
476 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
477 targets.
478
4792002-12-16 Jakub Jelinek <jakub@redhat.com>
480
481 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
482 * sysdeps/ieee754/bits/nan.h: Likewise.
483
484 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
485 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
486
344b1fe5
RM
4872002-12-16 Roland McGrath <roland@redhat.com>
488
489 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
490 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
491 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
492
493 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
494 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
495 s_putpmsg.
496 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
497 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
498 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
499 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
500 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
501 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
502 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
503 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
504
fd4c894c
RM
5052002-12-13 Paul Eggert <eggert@twinsun.com>
506
507 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
508 is now u_int, not int.
509 (struct XDR.x_handy): Now u_int, not int.
510 * sunrpc/xdr_mem.c: Include <limits.h>.
511 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
512 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
513 x_handy is now unsigned, not signed.
514 Do not decrement x_handy if no change is made.
515 (xdrmem_setpos): Check for int overflow.
516 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
517 (xdr_sizeof): Remove cast that is now unnecessary, now that
518 x_handy is unsigned.
519
0274d73c
RM
5202002-12-15 Art Haas <ahaas@airmail.net>
521
522 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
523 * iconvdata/gap.awk: Likewise.
524 * iconvdata/gen-8bit-gap-1.sh: Likewise.
525 * iconvdata/gen-8bit-gap.sh: Likewise.
526 * locale/C-address.c: Likewise.
527 * locale/C-collate.c: Likewise.
528 * locale/C-ctype.c: Likewise.
529 * locale/C-identification.c: Likewise.
530 * locale/C-measurement.c: Likewise.
531 * locale/C-messages.c: Likewise.
532 * locale/C-monetary.c: Likewise.
533 * locale/C-name.c: Likewise.
534 * locale/C-numeric.c: Likewise.
535 * locale/C-paper.c: Likewise.
536 * locale/C-telephone.c: Likewise.
537 * locale/C-time.c: Likewise.
538 * nscd/connections.c: Likewise.
539 * nscd/grpcache.c: Likewise.
540 * nscd/hstcache.c: Likewise.
541 * nscd/pwdcache.c: Likewise.
542 * stdio-common/vfprintf.c: Likewise.
543 * stdlib/random.c: Likewise.
544 * sysdeps/generic/siglist.c: Likewise.
545 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
546 * sysdeps/ieee754/bits/nan.h: Likewise.
547 * sysdeps/posix/sprofil.c: Likewise.
548 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
549 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
550 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
551
c2e13112
RM
5522002-12-15 Roland McGrath <roland@redhat.com>
553
554 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
555
556 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
557 <tls.h> here, no need for it.
558 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
559
560 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
561 parameter, not varargs parameter.
562
563 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
564 argument so it's not an unused variable.
565
566 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
567 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
568 for users.
569
570 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
571
f3015aa5
UD
5722002-12-15 Ulrich Drepper <drepper@redhat.com>
573
574 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
575 original __libc_fcntl code. Just renamed.
576
8b6cf669
AS
5772002-12-15 Andreas Schwab <schwab@suse.de>
578
f3015aa5 579 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
8b6cf669 580
f3015aa5 5812002-12-14 Olaf Hering <olh@suse.de>
7ad6b6eb 582
f3015aa5
UD
583 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
584 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
7ad6b6eb 585
6ee8d334
UD
5862002-12-15 Ulrich Drepper <drepper@redhat.com>
587
0d5f4929
UD
588 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
589
6ee8d334
UD
590 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
591 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
592
593 * sysdeps/unix/sysv/linux/open64.c: New file.
594
595 * sysdeps/generic/pselect.c: Add support for cancellation handling.
596 * sysdeps/posix/open64.c: Likewise.
597 * sysdeps/posix/sigpause.c: Likewise.
598 * sysdeps/posix/sigwait.c: Likewise.
599 * sysdeps/posix/system.c: Likewise.
600 * sysdeps/posix/waitid.c: Likewise.
601 * sysdeps/unix/sysv/linux/accept.S: Likewise.
602 * sysdeps/unix/sysv/linux/connect.S: Likewise.
603 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
604 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
605 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
606 * sysdeps/unix/sysv/linux/poll.c: Likewise.
607 * sysdeps/unix/sysv/linux/pread.c: Likewise.
608 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
609 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
610 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
611 * sysdeps/unix/sysv/linux/readv.c: Likewise.
612 * sysdeps/unix/sysv/linux/recv.S: Likewise.
613 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
614 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
615 * sysdeps/unix/sysv/linux/send.S: Likewise.
616 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
617 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
618 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
619 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
620 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
621 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
622 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
623 * sysdeps/unix/sysv/linux/wait.c: Likewise.
624 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
625 * sysdeps/unix/sysv/linux/writev.c: Likewise.
626 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
627 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
628
86b2dc40
UD
6292002-12-14 Jakub Jelinek <jakub@redhat.com>
630
631 * sysdeps/generic/sysdep-cancel.h: New file.
632 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
633 cancelable syscall.
634 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
635 recvmsg, send, sendmsg, sendto): Make cancelable.
636 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
637 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
638 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
639 sendto, osf_select): Likewise.
640 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
641 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
642 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
643 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
644 sendto): Likewise.
645 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
646 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
647 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
648 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
649 sendto): Likewise.
650 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
651 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
652 sendto, select): Likewise.
653 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
654 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
655 Likewise.
656 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
657 select, fcntl): Likewise.
658 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
659 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
660 read, readv, select, sigsuspend, write, writev): Likewise.
661
9d263d72
UD
6622002-12-14 Jakub Jelinek <jakub@redhat.com>
663
664 * dirent/bug-readdir1.c: Include unistd.h.
665
36b3f3eb
UD
6662002-12-13 Jakub Jelinek <jakub@redhat.com>
667
668 * locale/programs/locale.c: Include locarchive.h.
669 (ARCHIVE_NAME): Define.
670 (write_archive_locales): New function.
671 (write_locales): Use it. Ensure the same locale is not printed
672 multiple times in verbose mode.
673 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
674 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
675 functions.
676 (struct nameent): New type.
677 (nameentcmp): New function.
678
83b038f2
RM
6792002-12-14 Jakub Jelinek <jakub@redhat.com>
680
681 * posix/regex_internal.c (re_string_context_at): Guard wide char
682 code with #ifdef RE_ENABLE_I18N.
683
6842002-11-22 Paolo Bonzini <bonzini@gnu.org>
685
686 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
687
63b11dd1
RM
6882002-12-13 Roland McGrath <roland@redhat.com>
689
690 * posix/bug-regex15.c: New file.
691 * posix/Makefile (tests): Add it.
692
693 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
694 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
695
9ae0909b
UD
6962002-12-13 Ulrich Drepper <drepper@redhat.com>
697
d94e16c4
UD
698 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
699
9ae0909b
UD
700 * misc/syslog.c (log_cleanup): Don't use parameter in
701 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
702 pass NULL instead of a pointer to syslog_lock.
703
2ad2e1e7
UD
7042002-12-12 Ulrich Drepper <drepper@redhat.com>
705
1a1fa200
UD
706 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
707 linker map for all iconv modules.
708 (distribute): Add gconv.map.
709 * iconvdata/gconv.map: New file.
710
b4c98dc4
UD
711 * elf/Makefile: Also check all iconv modules for text relocations.
712
fc618fd0
UD
713 * stdlib/Makefile: Remove code to automatically import GMP.
714
efd56f53
UD
715 * elf/Makefile (tests): Add rules to build and run check-textrel.
716 * elf/check-textrel.c: New file.
717
2ad2e1e7
UD
718 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
719 directive.
720
688e7bfe
UD
7212002-12-11 Jakub Jelinek <jakub@redhat.com>
722
723 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
724 not st.st[am]time.
725
57f97cff
UD
7262002-04-30 Bruno Haible <bruno@clisp.org>
727
728 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
729 the encoding if it already has slashes.
730 Reported by Perry Rapp <prapp@erols.com>.
731
d004f303
RM
7322002-12-11 Roland McGrath <roland@redhat.com>
733
734 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
735 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
736 Turn off PIC for compiling this file.
737
f494b70b
UD
7382002-12-11 Ulrich Drepper <drepper@redhat.com>
739
740 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
741 definitions. Not needed.
742 [_LIBC]: Use definitions from libc-lock.h instead of referencing
743 pthread routines directly.
744 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
745 mutex_init calls.
746 (arena_get2): Don't look at return value of mutex_lock.
747
6161ef14
RM
7482002-12-11 Roland McGrath <roland@redhat.com>
749
750 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
751 elf-init.o instead of compiling a PIC version.
752
0f131646
RM
7532002-12-11 Bruno Haible <bruno@clisp.org>
754
755 * intl/gettext.h: Renamed to ...
756 * intl/gmo.h: ... here.
757 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
758 * intl/gettextP.h: Update.
759 * intl/loadmsgcat.c: Update.
760
761 * intl/gettextP.h (PARAMS): Make more portable.
762 (attribute_hidden): Define as empty macro if not already defined.
763 * intl/hash-string.h (PARAMS): Make more portable.
764 * intl/loadinfo.h (PARAMS): Likewise.
765 * intl/plural-exp.h (PARAMS): Likewise.
766 (attribute_hidden): Move definition near the definition of
767 internal_function.
768
769 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
770 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
771
7722002-07-13 Bruno Haible <bruno@clisp.org>
773
774 * intl/dcigettext.c (freea): New macro.
775 (FREE_BLOCKS): Free also the registered blocks.
776 (DCIGETTEXT): Free the 'search' variable.
777 Reported by Andreas Fischer <a.fischer@asentics.de>.
778
7792002-04-27 Bruno Haible <bruno@clisp.org>
780
781 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
782 * intl/dcigettext.c: Likewise.
783 * intl/dcgettext.c: Likewise.
784 * intl/dgettext.c: Likewise.
785 * intl/gettext.c: Likewise.
786 * intl/dcngettext.c: Likewise.
787 * intl/dngettext.c: Likewise.
788 * intl/ngettext.c: Likewise.
789 * intl/textdomain.c: Likewise.
790 * intl/bindtextdom.c: Likewise.
791 * intl/plural-exp.h: Likewise.
792
7932002-01-02 Bruno Haible <bruno@clisp.org>
794
795 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
796
7972001-04-30 Bruno Haible <bruno@clisp.org>
798
799 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
800 default macro definitions. Needed for mingw32.
801
9cfd8172
UD
8022002-12-10 Ulrich Drepper <drepper@redhat.com>
803
70a8ca6d
UD
804 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
805 __builtin_constant_p to macro parameter.
806
34a075be
UD
807 * sysdeps/generic/sigpause.c: Define all functions as weak.
808 * sysdeps/posix/sigpause.c: Likewise.
9cfd8172
UD
809
810 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
811 type size_t.
812
dce8f2b6
UD
8132002-12-10 Jakub Jelinek <jakub@redhat.com>
814
d0045334
RM
815 * elf/tst-array1.c (preinit_array, init_array, fini_array):
816 Explicitly align the array to sizeof (void *).
817 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
818
dce8f2b6
UD
819 * include/libc-symbols.h: Fix a comment typo.
820
821 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
822 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
823 Likewise.
824 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
825 Likewise.
826 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
827 (__libc_sigsuspend): Likewise.
828 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
829 (__libc_sigsuspend): Likewise.
830 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
831 (creat): New weak alias.
832
2402cdf3
RM
8332002-12-10 Roland McGrath <roland@redhat.com>
834
f0baa823
RM
835 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
836 contributes a manual chapter.
837 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
838 around xref to it.
839
2402cdf3
RM
840 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
841 and move contents to ...
842 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
843 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
844 it instead of duplicating its contents.
845 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
846
8472002-12-09 Jakub Jelinek <jakub@redhat.com>
848
849 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
850 defined.
851 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
852 function.
853 (EXTRA_LD_ENVVARS): Use it.
854 (DL_OSVERSION_INIT): Define.
855 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
856 dl-librecon.h.
857 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
858
5a6dcd0d
UD
8592002-12-10 Ulrich Drepper <drepper@redhat.com>
860
818d08de
UD
861 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
862
5a6dcd0d
UD
863 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
864 call. It is not allowed to destroy pthread mutexes which are
865 still in use even though it is safe for our implementations. If
866 somebody still uses the descriptor it is a bug.
867
741e0d64
RM
8682002-12-09 Richard Henderson <rth@redhat.com>
869
870 * csu/abi-note.S: Use .p2align, not .align.
871
e5e45b53
UD
8722002-12-09 Ulrich Drepper <drepper@redhat.com>
873
874 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
875 __libc_select aliases.
876
877 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
878 alias.
879
880 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
881
882 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
883
884 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
885
886 * sysdeps/unix/syscalls.list: Define __libc_select alias.
887
888 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
889
890 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
891 __libc___xpg_sigpause aliases.
892
893 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
894
895 * misc/error.c: Remove use of USE_IN_LIBIO.
896
57b4cb25
RM
8972002-12-08 Roland McGrath <roland@redhat.com>
898
06b31ad3
RM
899 * elf/Makefile (tests): Uncomment tst-array[123].
900 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
901 * csu/elf-init.c: New file.
902 * csu/Makefile (routines, static-only-routines): Add elf-init.
903 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
904 and __libc_csu_fini in place of _fini.
905 * sysdeps/arm/elf/start.S: Likewise.
906 * sysdeps/cris/elf/start.S: Likewise.
907 * sysdeps/hppa/elf/start.S: Likewise.
908 * sysdeps/i386/elf/start.S: Likewise.
909 * sysdeps/ia64/elf/start.S: Likewise.
910 * sysdeps/m68k/elf/start.S: Likewise.
911 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
912 * sysdeps/mips/elf/start.S: Likewise.
913 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
914 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
915 * sysdeps/s390/s390-32/elf/start.S: Likewise.
916 * sysdeps/s390/s390-64/elf/start.S: Likewise.
917 * sysdeps/sh/elf/start.S: Likewise.
918 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
919 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
920 * sysdeps/x86_64/elf/start.S: Likewise.
921
57b4cb25
RM
922 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
923 struct containing function ptr and value, free it.
924 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
925 It's not safe to let the new thread use the SIGEV pointer.
926
531da978
RM
9272001-10-20 Paul Eggert <eggert@twinsun.com>
928
929 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
930 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
931 Use strerror_r that is only a macro, even if it is not a function.
932 (strerror): Check for HAVE_DECL_STRERROR before declaring.
933 (private_strerror): Use prototypes, not old-style function definition.
934 (print_errno_message): New function.
935 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
936 char*-flavored one.
937 (error_tail, error, error_at_line): Use it.
938
f92921c5
UD
9392002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
940
941 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
942
3335502b
UD
9432002-12-08 Ulrich Drepper <drepper@redhat.com>
944
bdb04f92
UD
945 * scripts/output-format.sed: Fix bug in one of the s expressions
946 which used / for one too many things.
947
3335502b
UD
948 * include/unistd.h: Declare __libc_close.
949
09efc3ba
UD
9502002-12-07 Ulrich Drepper <drepper@redhat.com>
951
952 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
953
82412d54
RM
9542002-12-07 Roland McGrath <roland@redhat.com>
955
956 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
957 from 2002-12-06, but remove unnecessary memset call without removing
958 necessary copy of initialization image.
959
960 * Makerules ($(common-objpfx)format.lds): New target.
961 (common-generated): Add it.
962 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
963 * scripts/output-format.sed: New file.
964 * Makefile (distribute): Add it.
965
99343c05
UD
9662002-12-07 Ulrich Drepper <drepper@redhat.com>
967
968 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
969 Reported by Art Haas <ahaas@airmail.net>.
970
82412d54 9712002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
739ca690
UD
972
973 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
974
9752002-12-07 Jakub Jelinek <jakub@redhat.com>
976
977 * string/test-strncpy.c (do_random_tests): Improve test coverage.
978
85d1401f
UD
9792002-12-06 Ulrich Drepper <drepper@redhat.com>
980
4614167a
UD
981 * test-skeleton.c (timeout_handler): Allow expected signal to be
982 SIGALRM.
983
85d1401f
UD
984 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
985
986 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
987
9bd9c815
UD
9882002-12-07 Jakub Jelinek <jakub@redhat.com>
989
990 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
991 (SYSCALL_ERROR_HANDLER): Fix a pasto.
992 Reported by Jeff Bailey <jbailey@nisa.net>.
993
01cec3ed
UD
9942002-12-06 Ulrich Drepper <drepper@redhat.com>
995
01054d37
UD
996 * sysdeps/generic/libc-tls.c: Undo last patch.
997
13ece897
UD
998 * include/wctype.h: Define iswalnum with libc_hidden_proto.
999
1000 * include/signal.h: Define raise with libc_hidden_proto.
1001
1002 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
1003 __execve instead of snprintf and execve.
1004
01cec3ed
UD
1005 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
1006 again a bit.
1007
593d2ac8
RM
10082002-12-06 Jakub Jelinek <jakub@redhat.com>
1009
1010 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
1011 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
1012
d3c9f895
UD
10132002-12-06 Ulrich Drepper <drepper@redhat.com>
1014
1015 * misc/syslog.c (log_cleanup): New function.
1016 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
1017 (closelog): Likewise.
1018
1019 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
1020 * elf/dl-iteratephdr.c: Likewise.
1021 * elf/dl-lookup.c: Likewise.
1022 * elf/dl-misc.c: Likewise.
1023 * elf/dl-open.c: Likewise.
1024 * elf/dl-support.c: Likewise.
1025 * elf/rtld.c: Likewise.
1026 * sysdeps/generic/ldsodefs.h: Likewise.
1027 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
1028 * sysdeps/mach/bits/libc-lock.h: Likewise.
1029 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
1030
fde89ad0
RM
10312002-12-06 Roland McGrath <roland@redhat.com>
1032
1033 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
1034
1035 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
1036 (malloc_starter, memalign_starter, free_starter): Don't define these.
1037 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
1038 Don't declare them either.
1039 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
1040 __pthread_initialize, so no need to set hooks to *_starter.
1041 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
1042 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
1043 (__libc_malloc_pthread_startup): New function.
1044 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
1045
1046 * malloc/hooks.c (memalign_starter): New function.
1047 * malloc/malloc.c: Declare it.
1048 * malloc/arena.c (save_memalign_hook): New variable.
1049 (ptmalloc_init): Set __memalign_hook to memalign_starter.
1050
1051 * elf/dl-minimal.c (free): Clear the memory.
1052 (calloc): Just call malloc, knowing all memory it returns is cleared.
1053
1054 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
1055 malloc and memset; calloc can avoid the zeroing when redundant.
1056 (_dl_tls_setup): Likewise.
1057 * elf/dl-load.c (decompose_rpath): Likewise.
1058 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
1059 call, since memory from sbrk at startup is already zero.
1060
1061 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
1062 error string for failure, null for success. Update callers.
1063 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
1064 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1065
9cf6fef1
RM
10662002-12-05 Jakub Jelinek <jakub@redhat.com>
1067
1068 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
1069 args to i:iipi.
1070 (readahead): Change args to i:iii.
1071 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
1072 Change args to i:iii.
1073 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
1074 args to i:iiii.
1075
ca4961c0
RM
10762002-12-05 Roland McGrath <roland@redhat.com>
1077
1078 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
1079 call all functions rather than none.
1080 Reported by Mark P. Mitchell <mark@codesourcery.com>.
1081
cbf949bb
RM
10822002-12-04 Roland McGrath <roland@redhat.com>
1083
1084 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
1085 on _nl_current_LC_* variables.
1086
bf6fc6c1
UD
10872002-12-05 Ulrich Drepper <drepper@redhat.com>
1088
d3c9f895 1089 * dirent/bug-readdir1.c (main): Don't call closedir, just close
bf6fc6c1
UD
1090 the file descriptor. This is testing what the bug report was about.
1091
c4a6d859
UD
10922002-12-04 Ulrich Drepper <drepper@redhat.com>
1093
d8d31745
UD
1094 * po/be.po: New file.
1095
c4a6d859
UD
1096 * argp/Makefile (tests): Add tst-argp1.
1097
eaa4099f
UD
1098 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
1099 Change type of _attribute to void*.
1100 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
1101 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
1102 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
1103 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
1104 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
1105
216455bc
RM
11062002-12-04 Roland McGrath <roland@redhat.com>
1107
1108 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
1109 members to the end, so a libpthread compiled with !USE_TLS will still
1110 find other members properly.
1111
1112 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
1113 operand for DEST memory. Fix dummy input operand to use SRC.
1114 Reported by Davin McCall <davmac@ozonline.com.au>.
1115
1116 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
1117 alignment when initializing the DTV entry.
1118
1119 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
1120 when TLS has not been set up, try to set it up if we can.
1121 * elf/tst-tls4.c: Revert last change.
1122 * elf/tst-tls5.c: Likewise.
1123 * elf/tst-tls6.c: Likewise.
1124 * elf/tst-tls7.c: Likewise.
1125 * elf/tst-tls8.c: Likewise.
1126 * elf/tst-tls9.c: Likewise.
1127
1128 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
1129 * sysdeps/generic/ldsodefs.h: Declare it.
1130 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
1131 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
1132 function, broken out of __libc_setup_tls.
1133 (init_static_tls): Likewise.
1134 (__libc_setup_tls): Call them.
1135 (_dl_tls_setup): New function, uses new subroutines.
1136
1137 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
1138 Clear the pointer when returning true.
1139 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
1140 first element of the slotinfo list too.
1141
1142 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
1143 [SHARED].
1144
1145 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
1146 (_dl_determine_tlsoffset): Likewise.
1147
1148 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
1149 startup_error_tsd, made global.
1150 (dl_main): Update initialization.
1151 * elf/dl-tsd.c: Likewise.
1152 * sysdeps/generic/ldsodefs.h: Declare it.
1153
d16055ee
UD
11542002-12-03 Ulrich Drepper <drepper@redhat.com>
1155
1156 * manual/texinfo.tex: Update from latest upstream version.
1157
b15c9395
RM
11582002-12-03 Roland McGrath <roland@redhat.com>
1159
852ce9bc
RM
1160 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
1161 area surplus in calculation for sbrk call.
1162
b15c9395
RM
1163 * iconvdata/cp1125.c: New file.
1164 * iconvdata/Makefile (distribute): Add it.
1165 (modules): Add CP1125.
1166 (gen-8bit-gap-modules): Add cp1125.
1167 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
1168 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
1169
347ae8d4
AJ
11702002-12-03 Andreas Jaeger <aj@suse.de>
1171
1172 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
1173
918bd861
UD
11742002-12-03 Ulrich Drepper <drepper@redhat.com>
1175
1176 * sysdeps/posix/system.c (do_system): Make signal handler
1177 installation thread safe.
1178
b8d7c8c1
RM
11792002-12-02 Roland McGrath <roland@redhat.com>
1180
1181 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
1182 caller from EXTRA to -.
1183 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1184 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1185 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1186
fa9a4ff0
RM
11872002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
1188
1189 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
1190 bits of RM are cleared.
1191
2d148689
RM
11922002-12-02 Roland McGrath <roland@redhat.com>
1193
1194 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
1195 TLS setup is required.
1196 * elf/tst-tls5.c: Likewise.
1197 * elf/tst-tls6.c: Likewise.
1198 * elf/tst-tls7.c: Likewise.
1199 * elf/tst-tls8.c: Likewise.
1200 * elf/tst-tls9.c: Likewise.
1201
1202 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
1203 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
1204 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
1205 for being null before calling free_slotinfo.
1206 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
1207 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
1208
f9ad060c
UD
12092002-11-30 Bruno Haible <bruno@clisp.org>
1210
1211 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
1212 (struct __gconv_step): New field __btowc_fct.
1213 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
1214 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
1215 __BUILTIN_TRANS.
1216 (__gconv_btwoc_ascii): New declaration.
1217 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
1218 (__gconv_btwoc_ascii): New function.
1219 * iconv/gconv_builtin.h: Add BtowcFct argument to all
1220 BUILTIN_TRANSFORMATION invocations.
1221 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
1222 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
1223 * iconv/gconv_builtin.c (map): New field btowc_fct.
1224 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
1225 btowc_fct field.
1226 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
1227 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
1228 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
1229 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
1230 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
1231 (gconv_init): Initialize __btowc_fct field.
1232 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
1233 * iconv/loop.c: Document ONEBYTE_BODY.
1234 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
1235 Undefine ONEBYTE_BODY at the end.
1236 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
1237 * iconvdata/8bit-gap.c (NONNUL): New macro.
1238 (BODY for FROM_LOOP): Use it.
1239 (ONEBYTE_BODY): New macro.
1240 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
1241 (NONNUL): New macro.
1242 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
1243 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
1244 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
1245 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
1246 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
1247 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
1248 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
1249 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
1250 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
1251 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
1252 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
1253 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
1254 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
1255 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
1256 * iconvdata/ibm932.c: Include <stdbool.h>.
1257 (TRUE, FALSE): Remove macros.
1258 (BODY for FROM_LOOP): Remove unused variable rp1.
1259 (ONEBYTE_BODY): New macro.
1260 (BODY for TO_LOOP): Use bool.
1261 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
1262 * iconvdata/ibm943.c: Include <stdbool.h>.
1263 (TRUE, FALSE): Remove macros.
1264 (BODY for FROM_LOOP): Remove unused variable rp1.
1265 (ONEBYTE_BODY): New macro.
1266 (BODY for TO_LOOP): Use bool.
1267 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
1268 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
1269 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
1270 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
1271 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
1272 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
1273 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
1274 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
1275 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
1276 * iconvdata/gbbig5.c: Tweak comment.
1277
00a13bbd
UD
12782002-12-02 Ulrich Drepper <drepper@redhat.com>
1279
1280 * po/fi.po: Update from translation team.
1281
dde2652b
RM
12822002-12-01 Roland McGrath <roland@redhat.com>
1283
36654964
RM
1284 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
1285 testing getdents64 return value.
1286
720efe00
RM
1287 * scripts/versions.awk: Don't pass -n flag to sort command.
1288
6d342318
RM
1289 * posix/bug-regex13.c: Include <string.h>.
1290
dde2652b
RM
1291 * sysdeps/generic/libc-start.c (__libc_start_main): Do
1292 DL_SYSDEP_OSCHECK here.
1293 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
1294 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
1295
1296 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
1297 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
1298
1299 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
1300 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
1301
1302 * include/link.h: Comment typo fix.
1303
13042002-12-01 Roland McGrath <roland@frob.com>
1305
1306 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
1307 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
1308 _POSIX_MEMORY_PROTECTION): Likewise.
1309 (_POSIX_POLL, _POSIX_SELECT): Removed.
1310
cb0e76b4
UD
13112002-11-28 Ulrich Drepper <drepper@redhat.com>
1312
1313 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
1314 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
1315
ddf4ffad
UD
13162002-11-28 Jakub Jelinek <jakub@redhat.com>
1317
1318 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
1319 USE___THREAD.
1320 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
1321 "=v" constraints.
1322
acd42b78
UD
13232002-11-28 Ulrich Drepper <drepper@redhat.com>
1324
1325 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
1326 branch prediction buffers by using unpaired call/ret.
1327
d08bef80
UD
13282002-11-27 Ulrich Drepper <drepper@redhat.com>
1329
1330 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
1331 first parameters constraint string.
1332 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
1333
6291ee3c
UD
13342002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
1335
1336 * posix/regcomp.c (parse_expression): Set the bit since the back
1337 reference is used in the regular expression.
1338 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
1339 of malloc failure.
1340 (re_node_set_init_copy): Likewise.
1341 * posix/regex_internal.h (state_array_t): New structure.
1342 (re_sub_match_last_t): Likewise.
1343 (re_sub_match_top_t): Likewise.
1344 (re_match_context_t): Add new members.
1345 (re_dfa_t): Likewise.
1346 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
1347 to check the matching is really correct, and retry if failed.
1348 Move the routin pruning the impossible nodes from here, ...
1349 (prune_impossible_nodes): To this function.
1350 (check_matching): Invoke check_subexp_matching_top, and replace
1351 redundant checking with transit_state_bkref invocation.
1352 (proceed_next_node): Replace strncmp with memcmp. Reported by
1353 Paolo Bonzini <bonzini@gnu.org>.
1354 (update_cur_sifted_state): Remove search_subexp invocation.
1355 (search_subexp): Remove this function.
1356 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
1357 optimization.
1358 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
1359 Remove unused invocation of match_ctx_add_entry.
1360 (transit_state): Invoke check_subexp_matching_top.
1361 (check_subexp_matching_top): New function.
1362 (transit_state_bkref): Remove unused array.
1363 Merge transit_state_bkref_loop.
1364 (transit_state_bkref_loop): Use get_subexp instead of
1365 sift_states_backward. Use search_cur_bkref_entry for optimization.
1366 Merge this function to transit_state_bkref.
1367 (get_subexp): New function.
1368 (get_subexp_sub): Likewise.
1369 (find_subexp_node): Likewise.
1370 (check_arrival): Likewise.
1371 (check_arrival_expand_ecl): Likewise.
1372 (check_arrival_expand_ecl_sub): Likewise.
1373 (expand_bkref_cache): Likewise.
1374 (match_ctx_init): Initialize new members.
1375 (match_ctx_clean): New function.
1376 (match_ctx_free): Release new members.
1377 (match_ctx_free_subtops): New function.
1378 (match_ctx_add_entry): Fix indent.
1379 (search_cur_bkref_entry): New function.
1380 (match_ctx_add_subtop): Likewise.
1381 (match_ctx_add_sublast): Likewise.
1382
9b1a4ec3
UD
13832002-11-25 Ulrich Drepper <drepper@redhat.com>
1384
1385 * iconv/Makefile (tests): Remove tst-iconv4.c
1386 * iconv/tst-iconv4.c: Moved to...
1387 * iconvdata/tst-iconv4.c: ...here. New file.
1388 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
1389
832fd8e8
RM
13902002-11-25 Roland McGrath <roland@redhat.com>
1391
6938e63f
RM
1392 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
1393 Grok AF_LINK if defined.
1394 From Momchil Velikov <velco@fadata.bg>.
1395
1396 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
1397 brdaddr, or dstaddr, just set those pointers to null and don't fail.
1398 Reported by Momchil Velikov <velco@fadata.bg>.
1399
1400 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
1401 is > sizeof IFR->ifa_addr, advance past the whole longer length.
1402 (__ifreq): Count up NIFS that way too.
1403 Reported by Momchil Velikov <velco@fadata.bg>.
1404
1405 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
1406
832fd8e8
RM
1407 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
1408 and <fpu_control.h>.
1409
e195fbaf
UD
14102002-11-24 Ulrich Drepper <drepper@redhat.com>
1411
1412 * elf/elf.h (EM_ST19): Fix typo.
1413
983d597e
RM
14142002-11-25 Jakub Jelinek <jakub@redhat.com>
1415
1416 * include/errno.h (__set_errno): Define as errno = val
1417 unconditionally.
1418
13a571a7
RM
14192002-11-24 Roland McGrath <roland@redhat.com>
1420
bf2cc5fb
RM
1421 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
1422 * sysdeps/posix/writev.c: Likewise.
1423 From Momchil Velikov <velco@fadata.bg>.
1424
1425 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
1426 calling *GL(dl_error_catch_tsd) for a thread-local location.
1427 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
1428 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
1429 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
1430
1431 * libio/iofflush.c: Add libc_hidden_def.
1432 * libio/iofwrite.c: Likewise.
1433 * sysdeps/generic/sigtimedwait.c: Likewise.
1434 * sysdeps/generic/sigwaitinfo.c: Likewise.
1435 * sysdeps/posix/sigwait.c: Likewise.
1436 Reported by Momchil Velikov <velco@fadata.bg>.
1437
1438 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
1439 to match <arpa/inet.h> declaration.
1440 * inet/inet_netof.c (inet_netof): Likewise.
1441 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
1442 Reported by Momchil Velikov <velco@fadata.bg>.
1443
13a571a7
RM
1444 * configure.in: Skip AUTOCONF check under --without-cvs.
1445 * configure: Regenerated.
1446
1447 * posix/Makefile (headers): Add bits/pthreadtypes.h.
1448 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
1449 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
1450
d7a5c7e7
AS
14512002-11-24 Andreas Schwab <schwab@suse.de>
1452
1453 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
1454 with six arguments.
1455
93ed04cc
UD
14562002-11-19 Jim Meyering <jim@meyering.net>
1457
1458 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
1459 as `static'.
1460 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
1461
f069a143
RM
14622002-11-23 Roland McGrath <roland@redhat.com>
1463
56c71d45
RM
1464 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
1465 Just produce hex output for datum sizes.
1466
f069a143
RM
1467 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
1468 Reported by Luca Barbieri <ldb@ldb.ods.org>.
1469
a2413106 14702002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
54789f38 1471
4a32f19d
RM
1472 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
1473 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
1474 and __unused3 fields.
1475 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
1476 [__WORDSIZE == 32]: Only PPC32 requires __unused1
1477 and __unused2 fields.
1478 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
1479 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
8faa165f 1480 __unused3, and __unused4 fields.
4a32f19d 1481
a2413106
RM
1482 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
1483 obtain lowest address for profiling in __monstartup call.
54789f38 1484
1c120cb8
RM
14852002-11-21 Roland McGrath <roland@redhat.com>
1486
a2413106
RM
1487 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
1488 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
1489
54789f38
RM
1490 * locale/localeinfo.h (struct locale_data): Revert last change.
1491
1c120cb8
RM
1492 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
1493 From Ian Wienand <ianw@gelato.unsw.edu.au>.
1494
1495 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
1496 __NR_pread64 if not defined.
1497 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
1498 From Ian Wienand <ianw@gelato.unsw.edu.au>.
1499
a2413106
RM
15002002-11-21 Roland McGrath <roland@frob.com>
1501
1502 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
1503 __libc_multiple_libcs here. Call __setfpucw.
1504
755e51be
UD
15052002-11-21 Ulrich Drepper <drepper@redhat.com>
1506
5982aa10
UD
1507 * elf/Makefile (tests): Don't run test-arrayX tests for now.
1508
755e51be
UD
1509 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
1510 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
1511 CLONE_CHILD_*TID flags.
1512
714a17c3
AJ
15132002-11-20 Andreas Jaeger <aj@suse.de>
1514
1515 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
1516 We pass struct ucontext on x86-64.
1517 (GET_PC): Adjust.
1518 (GET_FRAME): Adjust.
1519 (GET_STACK): Adjust.
1520
5d0bbaaf
RM
15212002-11-20 Roland McGrath <roland@redhat.com>
1522
ab9ba655
RM
1523 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
1524 conditionalize [! DO_VERSIONING] #error.
1525
5d0bbaaf
RM
1526 * scripts/abilist.awk: Grok function descriptor symbols.
1527
1528 * intl/tst-gettext.c (main): Check return values from setlocale.
1529 Add necessary unsetenv's to make LANG=existing-locale check work.
1530
1531 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
1532 so aborted prior runs don't confuse things.
1533
1534 * locale/localeinfo.h (struct locale_data: union locale_data_value):
1535 Use uintptr_t instead of unsigned int for `word' member.
1536 (_NL_CURRENT_WORD): Cast to uint32_t.
1537
1538 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
1539 value.
1540
218d76e0
UD
15412002-11-20 Ulrich Drepper <drepper@redhat.com>
1542
eec62f42
UD
1543 * elf/tls-macros.h: Add IA-64 definitions.
1544 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
1545
d84e7efa
UD
1546 * iconv/Makefile (tests): Add tst-iconv4.
1547 * iconv/tst-iconv4.c: New file.
1548
eb9dc2a2
UD
1549 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
1550 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
1551 __GCONV_INCOMPLETE_INPUT.
1552 (ucs4le_internal_loop): Likewise.
1553 (ucs4le_internal_loop_unaligned): Likewise.
1554 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
1555 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
1556 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
1557
1558 * iconv/loop.c (LOOPFCT): First test for empty input then for full
1559 output buffer.
1560
218d76e0
UD
1561 * inet/getnameinfo.c: Use extend_alloca where appropriate.
1562 * sysdeps/posix/getaddrinfo.c: Likewise.
1563
1564 * include/alloca.h (extend_alloca): New define. Based on stack
1565 direction it'll try to append to the previouls allocated buffer.
1566
15672002-11-07 Thorsten Kukuk <kukuk@suse.de>
1568
1569 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
1570 use the same service for AF_INET and AF_INET6.
1571
15722002-11-19 Ulrich Drepper <drepper@redhat.com>
1573
1574 * intl/localealias.c (read_alias_file): Use only about 400 bytes
1575 of stack space instead of 16k.
1576
7f1b7f03
RM
15772002-11-18 Wolfram Gloger <wg@malloc.de>
1578
1579 * malloc/arena.c
1580 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
1581 nothing if not initialized. Bug report from Marcus Brinkmann
1582 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
1583
8d4d2833
RM
15842002-11-19 Roland McGrath <roland@redhat.com>
1585
f0ddeeb5
RM
1586 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
1587 sched_setaffinity.
1588
8d4d2833
RM
1589 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
1590 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
1591 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
1592 * configure: Regenerated.
1593
3c857306
UD
15942002-11-19 Ulrich Drepper <drepper@redhat.com>
1595
1596 * include/dlfcn.h: __libc_dlopen is now a macro calling
1597 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
1598 (__libc_dlopen_mode): New prototype.
1599 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
1600 new parameter. Store new parameter in mode field of structure passed
1601 to do_dlopen.
1602 (struct do_dlopen_args): Add new field mode.
1603 (do_dlopen): Pass mode from parameter structure to _dl_open.
1604
0bf5c050
RM
16052002-11-11 Randolf Chung <tausq@debian.org>
1606
2674f2a3
RM
1607 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
1608 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
1609 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
1610
0bf5c050
RM
1611 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
1612
1613 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
1614 Set -mdisable-fpregs for this file.
1615
16162002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
1617
1618 * sysdeps/unix/sysv/linux/configure.in:
1619 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
1620 from gcc-3.0 era for backwards compatibility.
1621 * sysdeps/unix/sysv/linux/configure: Regenerate.
1622
3c857306
UD
1623 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
1624 Define mcontext_t as a sigcontext.
0bf5c050 1625
c27af28e
RM
16262002-11-18 Roland McGrath <roland@redhat.com>
1627
0bf5c050
RM
1628 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
1629 Free memory in `last_result' if it was used.
1630
1631 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
1632 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
1633 Do the parsing inline instead of copying strings and calling
1634 inet_network, and properly skip all alias names not matching the form.
1635
c27af28e
RM
1636 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
1637
a185f478
UD
16382002-11-17 Ulrich Drepper <drepper@redhat.com>
1639
c27af28e
RM
1640 * manual/pattern.texi (Wordexp Example): Fix sample code.
1641
a185f478
UD
1642 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
1643 childs stack which will be loaded into the %esi register.
1644
c27af28e 16452002-11-14 Paul Eggert <eggert@twinsun.com>
9b57c1c1 1646
a185f478
UD
1647 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
1648 overflow when skipping the question part and when unpacking aliases.
9b57c1c1 1649
502328b2
RM
16502002-11-15 Roland McGrath <roland@redhat.com>
1651
1652 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
1653 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
1654 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
1655
92712dee
RM
16562002-11-15 Jakub Jelinek <jakub@redhat.com>
1657
1658 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
1659 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
1660
16612002-11-15 Roland McGrath <roland@redhat.com>
1662
1663 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
1664 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
1665 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
1666 (+make-include-of-dep): New canned sequence.
1667
1668 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
1669 From Dmitry V. Levin <ldv@altlinux.org>.
1670
d8b8842b
RM
16712002-11-14 Roland McGrath <roland@redhat.com>
1672
53da80ab
RM
1673 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
1674 * inet/herrno.c (__libc_h_errno): Likewise.
1675 * resolv/res_libc.c (__libc_res): Likewise.
1676 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
1677 (__res_state) [! USE___THREAD]: Don't define as weak.
1678 * csu/Versions: Revert last change.
1679 * resolv/Versions: Revert last change.
1680
1681 * Makerules ($(common-objpfx)%.make): New pattern rule.
1682 * tls.make.c: New file.
1683 * Makefile (distribute): Add it.
1684
d8b8842b
RM
1685 * sysdeps/generic/errno.c [! USE___THREAD]
1686 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
1687 with compat_symbol so they are not link-time visible.
1688 [! USE___THREAD] (__libc_errno): New alias for errno.
1689 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
1690 Add __libc_errno here.
1691 * inet/herrno.c [USE___THREAD]: Use this conditional
1692 in place of [USE_TLS && HAVE___THREAD].
1693 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
1694 (h_errno, _h_errno): Declare these with compat_symbol so they are not
1695 link-time visible.
1696 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
1697 * resolv/res_libc.c [! USE___THREAD]
1698 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
1699 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
1700 (__libc_res): Define as alias for _res.
1701 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
1702 Add __libc_h_errno and __libc_res here.
1703
17042002-11-14 Jakub Jelinek <jakub@redhat.com>
1705
1706 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
1707 * resolv/Versions (h_errno, _res): Likewise.
1708
6c0b2972
RM
17092002-11-14 Roland McGrath <roland@redhat.com>
1710
1711 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
1712 (%.symlist): Likewise.
1713
cdedcc79
RM
17142002-11-13 Roland McGrath <roland@redhat.com>
1715
6e3d59bc
RM
1716 * scripts/abilist.awk: New file.
1717 * Makefile (distribute): Add it.
1718 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
1719 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
c9e032d5
RM
1720 [$(subdir) = elf] (tests): Depend on libc.symlist.
1721 (generated, common-generated): Add those files.
1722
6e3d59bc
RM
1723 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
1724 * configure: Regenerated.
1725 * config.make.in (OBJDUMP): New variable, substituted by configure.
1726
1727 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
1728 (mallochook, reallochook): Set them up.
1729 (checkhdr): Check HDR->magic2 value.
1730 (freehook): Reset HDR->magic2.
1731 (memalignhook): New static function.
1732 (old_memalign_hook): New static variable.
1733 (mcheck, reallochook): Set __memalign_hook to memalignhook.
1734
cdedcc79
RM
1735 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
1736 for the new TCB.
1737
ba441d2c
AJ
17382002-11-13 Andreas Jaeger <aj@suse.de>
1739
1740 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
1741 attribute.
1742 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
1743
be1960c6
RM
17442002-11-11 Paul Eggert <eggert@twinsun.com>
1745
3c857306
UD
1746 * manual/crypt.texi (Cryptographic Functions): Mention that
1747 the MD5 one-way algorithm is compatible with BSD's.
be1960c6 1748
1843975c
RM
17492002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
1750
1751 * posix/regex_internal.c (re_string_skip_chars): Also return the last
1752 wide character.
1753 (re_string_reconstruct): Calculate the context by itself when the
1754 offset points out of the valid range.
1755 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
1756 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
1757 (IS_WIDE_WORD_CHAR): New macro.
1758 (IS_WIDE_NEWLINE): New macro.
1759
44df0cea
AJ
17602002-11-12 Andreas Jaeger <aj@suse.de>
1761
6e14793d
AJ
1762 * sysdeps/x86_64/strchr.S: Don't use one register for two
1763 purposes, this fixes a bug noticed by test-strchr.c.
1764
44df0cea
AJ
1765 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
1766 correctly.
1767
7ceef50e
RM
17682002-11-12 Roland McGrath <roland@redhat.com>
1769
43317e8e
RM
1770 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
1771 (_G_IO_NO_BACKWARD_COMPAT): Define it.
1772
7ceef50e
RM
1773 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
1774 instead of <pt-machine.h>.
1775 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
1776 testandset.
1777 From Ian Wienand <ianw@gelato.unsw.edu.au>.
1778
adee0e1f
RM
17792002-11-10 Roland McGrath <roland@redhat.com>
1780
1ab9366d
RM
1781 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
1782 Call fputs instead of fwprintf (simpler to follow in debugger).
1783
4483f2c0
RM
1784 * crypt/md5-crypt.c: Doc fix.
1785
adee0e1f
RM
1786 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
1787 the beginning of generated target commands.
1788
1789 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
1790 dependencies for these in case implicit rule search skipped the
1791 nonexistent source directory.
1792 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
1793 files with $(object-suffixes) as targets too.
1794 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
1795 and a target for it using $(make-target-directory).
1796
1797 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
1798
8bbd8b0b
RM
17992002-11-10 Roland McGrath <roland@frob.com>
1800
adee0e1f
RM
1801 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
1802 * sysdeps/generic/bits/pthreadtypes.h: ... here.
1803
8bbd8b0b
RM
1804 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
1805 l_start == 0 and l_len == 1 as we do l_len == 0.
1806
7fa0e180
UD
18072002-11-10 Ulrich Drepper <drepper@redhat.com>
1808
1809 * po/da.po: Update from translation team.
1810
daf4e2bc
RM
18112002-11-10 Roland McGrath <roland@redhat.com>
1812
1813 * config.make.in (includedir): New variable, substituted by configure.
1814 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
1815 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
1816
2deea078
AJ
18172002-11-10 Andreas Jaeger <aj@suse.de>
1818
09b4d75f
AJ
1819 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
1820 REG_OLDMASK and REG_CR2 to synch with kernel header.
1821 (NGREG): Increase.
1822
2deea078
AJ
1823 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
1824 aliasing problem.
1825 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
1826 * nss/getnssent_r.c (__nss_getent_r): Likewise.
1827 (__nss_setent): Likewise.
1828 (__nss_getent_r): Likewise.
1829 * inet/getnetgrent_r.c (innetgr): Likewise.
1830 (__internal_setnetgrent_reuse): Likewise.
1831 (internal_getnetgrent_r): Likewise.
1832 * inet/ether_hton.c (ether_hostton): Likewise.
1833 * inet/ether_ntoh.c (ether_ntohost): Likewise.
1834 * sunrpc/netname.c (netname2user): Likewise.
1835 * sunrpc/publickey.c (getpublickey): Likewise.
1836 (getsecretkey): Likewise.
1837
55c303ac
RM
18382002-11-09 Marcus Brinkmann <marcus@gnu.org>
1839
7fa0e180
UD
1840 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
1841 error in range calculation.
55c303ac 1842
9372c958
RM
18432002-10-09 Jakub Jelinek <jakub@redhat.com>
1844
1845 * string/test-strspn.c (do_test): Ensure zero termination.
1846 * string/test-strpbrk.c (do_test): Likewise.
1847 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
1848 * string/test-strncpy.c (stupid_strncpy): Likewise.
1849 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
1850
18512002-10-08 Roland McGrath <roland@redhat.com>
1852
1853 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
1854 nonzero characters.
1855
18562002-09-22 H.J. Lu <hjl@gnu.org>
1857
1858 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
1859 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
1860 only if __NR_mmap2 is defined.
1861
1862 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
1863 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
1864 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
1865 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
1866
e8c1660f
RM
18672002-11-08 Jakub Jelinek <jakub@redhat.com>
1868
2b497443
RM
1869 * posix/bug-regex13.c (tests): Add new test.
1870
e8c1660f
RM
1871 * string/test-strchr.c (stupid_strchr): New function.
1872 (do_random_tests): Make sure the string is zero terminated.
1873 * string/test-strpbrk.c (stupid_strpbrk): New function.
1874 (do_random_tests): Make sure the string is zero terminated.
1875 * string/test-strcmp.c (stupid_strcmp): New function.
1876 (do_random_tests): Make sure the strings are zero terminated.
1877 * string/test-strspn.c (stupid_strspn): New function.
1878 (simple_strspn): Rename rej argument to acc.
1879 (do_random_tests): Make sure the string is zero terminated.
1880 * string/test-strcspn.c (stupid_strcspn): New function.
1881 * string/test-strncpy.c (stupid_strncpy): New function.
1882 * string/test-stpncpy.c (stupid_stpncpy): New function.
1883 * string/test-strncmp.c (stupid_strncmp): New function.
1884 (do_random_tests): Make sure the strings are zero terminated.
1885 * string/test-string.h (impl_t): Change test into long.
1886 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
1887
e0bc9a8d
RM
18882002-11-08 Roland McGrath <roland@redhat.com>
1889
1890 * sysdeps/ia64/elf/configure.in: Add TLS check.
1891 From Ian Wienand <ianw@cse.unsw.edu.au>.
1892 * sysdeps/ia64/elf/configure: Regenerated.
1893
18942002-11-07 Roland McGrath <roland@redhat.com>
1895
1896 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
1897 place of _IO_new_do_write.
1898 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
1899 #undef before versioned_symbol use.
1900
c6481412
RM
19012002-11-07 Richard Henderson <rth@redhat.com>
1902
1903 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
1904 * configure: Regenerated.
1905 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
1906 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
1907 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
1908 _dl_fini via gp-relative relocations.
1909 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
1910
1911 * elf/tls-macros.h: Add alpha versions.
1912 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
1913 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
1914 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
1915 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
1916 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
1917 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
1918 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
1919 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
1920 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
1921 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
1922 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
1923 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
1924 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
1925 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
1926 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
1927 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
1928 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
1929 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
1930
1931 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
1932 Kill argument registers across the inline syscall.
1933
1934 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
1935
1936 * linuxthreads/sysdeps/alpha/tls.h: New file.
1937 * sysdeps/alpha/dl-tls.h: New file.
1938
dfe4c900
RM
19392002-10-29 David Mosberger <davidm@hpl.hp.com>
1940
1941 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
1942 (gmon_initializer): New function.
1943 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
1944 __gmon_start__ here. Call it from gmon_initializer() instead.
1945
19462002-03-12 H.J. Lu <hjl@gnu.org>
1947
1948 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
1949 tst-array2, and tst-array3.
1950 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
1951 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
1952 ($(objpfx)tst-array1.out): New target.
1953 ($(objpfx)tst-array2): Likewise.
1954 ($(objpfx)tst-array2.out): Likewise.
1955 ($(objpfx)tst-array3.out): Likewise.
1956 * elf/tst-array1.c: New file.
1957 * elf/tst-array1.exp: Likewise.
1958 * elf/tst-array2.c: Likewise.
1959 * elf/tst-array2dep.c: Likewise.
1960 * elf/tst-array2.exp: Likewise.
1961 * elf/tst-array3.c: Likewise.
1962
1d8a0fd9
RM
19632002-10-28 David Mosberger <davidm@hpl.hp.com>
1964
1965 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
1966 Don't add L->l_addr to array entry values.
1967
58ef9ef7
RM
19682002-11-07 Jakub Jelinek <jakub@redhat.com>
1969
1970 * string/test-string.h: New file.
1971 * string/test-strlen.c: New file.
1972 * string/test-string.h: New file.
1973 * string/test-strcmp.c: New file.
1974 * string/test-strchr.c: New file.
1975 * string/test-strrchr.c: New file.
1976 * string/test-strcpy.c: New file.
1977 * string/test-stpcpy.c: New file.
1978 * string/test-strncpy.c: New file.
1979 * string/test-stpncpy.c: New file.
1980 * string/test-strpbrk.c: New file.
1981 * string/test-strcspn.c: New file.
1982 * string/test-strspn.c: New file.
1983 * string/test-strcat.c: New file.
1984 * string/test-strncmp.c: New file.
1985 * string/test-memchr.c: New file.
1986 * string/test-memcmp.c: New file.
1987 * string/test-memset.c: New file.
1988 * string/test-memcpy.c: New file.
1989 * string/test-mempcpy.c: New file.
1990 * string/test-memmove.c: New file.
1991 * string/Makefile (strop-tests): New variable.
1992 (tests): Add strop-tests.
1993 (distribute): Add test-string.h.
1994
15a7d175
UD
19952002-11-06 Ulrich Drepper <drepper@redhat.com>
1996
1997 * posix/regcomp.c: Use tabs instead of spaces.
1998 * posix/regexec.c: Likewise.
1999 * posix/regex_internal.h: Likewise.
2000
2001 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
2002
1b2c2628
UD
20032002-11-06 Jakub Jelinek <jakub@redhat.com>
2004
2005 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
2006 here.
2007 (regcomp): Don't set can_be_null here.
2008 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
2009 (re_compile_internal): Clear can_be_null, set regs_allocated.
2010
2011 * posix/regcomp.c (re_set_fastmap): New function.
2012 (re_compile_fastmap_iter): Use it. Remove redundant type ==
2013 COMPLEX_BRACKET check.
2014 * posix/regexec.c (re_search_internal): Optimize searching with
2015 fastmap. Call re_string_reconstruct even if match_first is
2016 smaller than raw_mbs_idx.
2017
20182002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
2019
2020 * posix/regcomp (free_dfa_content): Use free_state.
2021 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
2022 pointers in case that realloc failed.
2023 (re_node_set_merge): Likewise.
2024 (register_state): Likewise.
2025 (create_newstate_common): Invoke memory release functions in case of
2026 error conditions.
2027 (create_ci_newstate): Likewise.
2028 (create_cd_newstate): Likewise.
2029 (free_state): New function.
2030 * posix/regexec.c (re_search_internal): Invoke memory release
2031 functions in case of error conditions.
2032 (sift_states_backward): Likewise.
2033 (merge_state_array): Likewise.
2034 (add_epsilon_src_nodes): Likewise.
2035 (sub_epsilon_src_nodes): Likewise.
2036 (search_subexp): Likewise.
2037 (sift_states_bkref): Likewise.
2038 (transit_state_sb): Likewise.
2039 (transit_state_mb): Likewise.
2040 (transit_state_bkref_loop): Likewise.
2041 (group_nodes_into_DFAstates): Likewise.
2042 (push_fail_stack): Don't edit pointers in case that realloc failed.
2043 (extend_buffers): Likewise.
2044 (match_ctx_add_entry): Likewise.
2045
c4dd0bac
RM
20462002-11-06 Roland McGrath <roland@redhat.com>
2047
cbf900b4
RM
2048 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
2049 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
2050
c4dd0bac
RM
2051 * configure.in: Add checks on as and ld for binutils 2.13 or later.
2052 * configure: Regenerated.
2053
71ccd330
UD
20542002-11-06 Ulrich Drepper <drepper@redhat.com>
2055
2056 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
2057 If re_compile_internal failed free fastmap buffer.
2058 (free_dfa_content): Broken out of regfree function. Frees all dfa
2059 related data.
2060 (regfree): Add free_dfa_content.
2061 (re_compile_internal): If any of the called functions fails free
2062 all dfa related memory.
2063
d97426b7
UD
20642002-11-05 Ulrich Drepper <drepper@redhat.com>
2065
2066 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
2067 warnings from the kernel headers.
2068
df5391ff
RM
20692002-11-05 Roland McGrath <roland@redhat.com>
2070
be280d0e
RM
2071 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
2072 From Johannes Stezenbach <js@convergence.de>.
2073
df5391ff
RM
2074 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
2075 #errlist-compat magic comment to give 123 as size.
2076 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
2077 (libc: GLIBC_2.2): ... here.
2078 (libc: GLIBC_2.3): Likewise.
2079
51859074
UD
20802002-11-05 Ulrich Drepper <drepper@redhat.com>
2081
a2d80f9a
UD
2082 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
2083 which happens at the beginning so that we can unload modules in
2084 __libc_freeres.
51859074 2085
e791bd95
RM
20862002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2087
2088 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
2089 under [__USE_MISC || _ASM].
2090
2091 * elf/elf.h: Remove the obsolete SH TLS relocations.
2092
0c2ee21c
UD
20932002-11-05 Ulrich Drepper <drepper@redhat.com>
2094
2095 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
2096
5bfed16d
UD
20972002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2098
2099 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
2100 __NR_pread64 and __NR_pwrite64.
2101 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
2102 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
2103 and __NR_pwrite64.
2104 Revert change to use INLINE_SYSCALL.
2105 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
2106 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
2107 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
2108 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
2109 INLINE_SYSCALL.
2110 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
2111
2112 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
2113 Update clobber list and add a comment about the syscall ABI.
2114
0c2ee21c
UD
2115 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
2116 s_pwrite64, s_ftruncate, s_truncate): Re-add.
2117
f6e50e66
UD
21182002-11-05 Jakub Jelinek <jakub@redhat.com>
2119
2120 * iconv/gconv_dl.c (free_mem): Clear loaded.
2121 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
2122 cleanup if any.
2123
52a16e58
UD
21242002-11-05 Ulrich Drepper <drepper@redhat.com>
2125
f6e50e66
UD
2126 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
2127
52a16e58
UD
2128 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
2129 as old code without locking. _IO_seekoff calls this function after
2130 locking the stream.
2131 * libio/ioseekpos.c: Likewise for _IO_seekpos.
2132 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
2133 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
2134 prototypes.
2135 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
2136 of _IO_seekoff_internal.
2137 (_IO_rewind): Likewise.
2138 * libio/ioftell.c: Likewise.
2139 * libio/ftello.c: Likewise.
2140 * libio/ftello64.c: Likewise.
2141 * libio/iofgetpos.c: Likewise.
2142 * libio/iofgetpos64.c: Likewise.
2143 * libio/oldiofgetpos.c: Likewise.
2144 * libio/oldiofgetpos64.c: Likewise.
2145 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
2146 _IO_seekpos_internal.
2147 * libio/iofsetpos64.c: Likewise.
2148 * libio/oldiofsetpos.c: Likewise.
2149 * libio/oldiofsetpos64.c: Likewise.
2150
0f0d786f
RM
21512002-11-04 Roland McGrath <roland@redhat.com>
2152
2153 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
2154 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
2155 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
2156 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
2157 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
2158 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
2159 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
2160 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
2161 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
2162 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
2163 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
2164 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
2165 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
2166 Remove these, no longer used.
2167
21682002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2169
2170 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
2171 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
2172 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
2173 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
2174 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
2175 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
2176 syscall stubs.
2177
2178 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
2179 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
2180 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
2181 and __NR_pread.
2182 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
2183 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
2184 and __NR_pwrite.
2185 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
2186
21872002-11-03 Roland McGrath <roland@redhat.com>
2188
2189 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
2190 `_dl_tls_static_used'.
2191 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
2192 (__libc_setup_tls): Initialize it. Let the initial value of
2193 _dl_tls_static_size indicate some surplus space in the computed value.
2194 * elf/dl-open.c (_dl_tls_static_size): New variable.
2195 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
2196 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
2197 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
2198 (CHECK_STATIC_TLS): Use it.
2199 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
2200 closed objects occupied a trailing contiguous chunk of static TLS area.
2201
22022002-10-18 Bruno Haible <bruno@clisp.org>
2203
2204 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
2205
8e96ae1a
UD
22062002-11-04 Ulrich Drepper <drepper@redhat.com>
2207
52a16e58
UD
2208 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
2209 _wide_data->_IO_read_end if adjustment can be made in the current
2210 buffer.
2211
2f0f157e
UD
2212 * sysdeps/unix/sysv/linux/fexecve.c: New file.
2213
c7e56cbe
UD
2214 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
2215 wide oriented streams are used.
2216
226e9fda
UD
2217 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
2218 service hasn't been used [PR libc/4744].
2219
12518320
UD
2220 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
2221 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
2222
8e96ae1a
UD
2223 * manual/examples/dir.c: Don't include <stddef.h>.
2224 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
2225