]> sourceware.org Git - glibc.git/blame - ChangeLog
* stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
[glibc.git] / ChangeLog
CommitLineData
ca4961c0
RM
12002-12-05 Roland McGrath <roland@redhat.com>
2
3 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
4 call all functions rather than none.
5 Reported by Mark P. Mitchell <mark@codesourcery.com>.
6
cbf949bb
RM
72002-12-04 Roland McGrath <roland@redhat.com>
8
9 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
10 on _nl_current_LC_* variables.
11
bf6fc6c1
UD
122002-12-05 Ulrich Drepper <drepper@redhat.com>
13
14 * dirent/bug-readdir1.c (main): Don't call closedir, just close on
15 the file descriptor. This is testing what the bug report was about.
16
c4a6d859
UD
172002-12-04 Ulrich Drepper <drepper@redhat.com>
18
d8d31745
UD
19 * po/be.po: New file.
20
c4a6d859
UD
21 * argp/Makefile (tests): Add tst-argp1.
22
eaa4099f
UD
23 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
24 Change type of _attribute to void*.
25 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
26 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
27 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
28 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
29 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
30
216455bc
RM
312002-12-04 Roland McGrath <roland@redhat.com>
32
33 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
34 members to the end, so a libpthread compiled with !USE_TLS will still
35 find other members properly.
36
37 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
38 operand for DEST memory. Fix dummy input operand to use SRC.
39 Reported by Davin McCall <davmac@ozonline.com.au>.
40
41 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
42 alignment when initializing the DTV entry.
43
44 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
45 when TLS has not been set up, try to set it up if we can.
46 * elf/tst-tls4.c: Revert last change.
47 * elf/tst-tls5.c: Likewise.
48 * elf/tst-tls6.c: Likewise.
49 * elf/tst-tls7.c: Likewise.
50 * elf/tst-tls8.c: Likewise.
51 * elf/tst-tls9.c: Likewise.
52
53 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
54 * sysdeps/generic/ldsodefs.h: Declare it.
55 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
56 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
57 function, broken out of __libc_setup_tls.
58 (init_static_tls): Likewise.
59 (__libc_setup_tls): Call them.
60 (_dl_tls_setup): New function, uses new subroutines.
61
62 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
63 Clear the pointer when returning true.
64 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
65 first element of the slotinfo list too.
66
67 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
68 [SHARED].
69
70 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
71 (_dl_determine_tlsoffset): Likewise.
72
73 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
74 startup_error_tsd, made global.
75 (dl_main): Update initialization.
76 * elf/dl-tsd.c: Likewise.
77 * sysdeps/generic/ldsodefs.h: Declare it.
78
d16055ee
UD
792002-12-03 Ulrich Drepper <drepper@redhat.com>
80
81 * manual/texinfo.tex: Update from latest upstream version.
82
b15c9395
RM
832002-12-03 Roland McGrath <roland@redhat.com>
84
852ce9bc
RM
85 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
86 area surplus in calculation for sbrk call.
87
b15c9395
RM
88 * iconvdata/cp1125.c: New file.
89 * iconvdata/Makefile (distribute): Add it.
90 (modules): Add CP1125.
91 (gen-8bit-gap-modules): Add cp1125.
92 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
93 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
94
347ae8d4
AJ
952002-12-03 Andreas Jaeger <aj@suse.de>
96
97 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
98
918bd861
UD
992002-12-03 Ulrich Drepper <drepper@redhat.com>
100
101 * sysdeps/posix/system.c (do_system): Make signal handler
102 installation thread safe.
103
b8d7c8c1
RM
1042002-12-02 Roland McGrath <roland@redhat.com>
105
106 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
107 caller from EXTRA to -.
108 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
109 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
110 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
111
fa9a4ff0
RM
1122002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
113
114 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
115 bits of RM are cleared.
116
2d148689
RM
1172002-12-02 Roland McGrath <roland@redhat.com>
118
119 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
120 TLS setup is required.
121 * elf/tst-tls5.c: Likewise.
122 * elf/tst-tls6.c: Likewise.
123 * elf/tst-tls7.c: Likewise.
124 * elf/tst-tls8.c: Likewise.
125 * elf/tst-tls9.c: Likewise.
126
127 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
128 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
129 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
130 for being null before calling free_slotinfo.
131 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
132 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
133
f9ad060c
UD
1342002-11-30 Bruno Haible <bruno@clisp.org>
135
136 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
137 (struct __gconv_step): New field __btowc_fct.
138 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
139 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
140 __BUILTIN_TRANS.
141 (__gconv_btwoc_ascii): New declaration.
142 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
143 (__gconv_btwoc_ascii): New function.
144 * iconv/gconv_builtin.h: Add BtowcFct argument to all
145 BUILTIN_TRANSFORMATION invocations.
146 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
147 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
148 * iconv/gconv_builtin.c (map): New field btowc_fct.
149 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
150 btowc_fct field.
151 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
152 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
153 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
154 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
155 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
156 (gconv_init): Initialize __btowc_fct field.
157 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
158 * iconv/loop.c: Document ONEBYTE_BODY.
159 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
160 Undefine ONEBYTE_BODY at the end.
161 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
162 * iconvdata/8bit-gap.c (NONNUL): New macro.
163 (BODY for FROM_LOOP): Use it.
164 (ONEBYTE_BODY): New macro.
165 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
166 (NONNUL): New macro.
167 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
168 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
169 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
170 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
171 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
172 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
173 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
174 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
175 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
176 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
177 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
178 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
179 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
180 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
181 * iconvdata/ibm932.c: Include <stdbool.h>.
182 (TRUE, FALSE): Remove macros.
183 (BODY for FROM_LOOP): Remove unused variable rp1.
184 (ONEBYTE_BODY): New macro.
185 (BODY for TO_LOOP): Use bool.
186 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
187 * iconvdata/ibm943.c: Include <stdbool.h>.
188 (TRUE, FALSE): Remove macros.
189 (BODY for FROM_LOOP): Remove unused variable rp1.
190 (ONEBYTE_BODY): New macro.
191 (BODY for TO_LOOP): Use bool.
192 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
193 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
194 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
195 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
196 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
197 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
198 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
199 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
200 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
201 * iconvdata/gbbig5.c: Tweak comment.
202
00a13bbd
UD
2032002-12-02 Ulrich Drepper <drepper@redhat.com>
204
205 * po/fi.po: Update from translation team.
206
dde2652b
RM
2072002-12-01 Roland McGrath <roland@redhat.com>
208
36654964
RM
209 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
210 testing getdents64 return value.
211
720efe00
RM
212 * scripts/versions.awk: Don't pass -n flag to sort command.
213
6d342318
RM
214 * posix/bug-regex13.c: Include <string.h>.
215
dde2652b
RM
216 * sysdeps/generic/libc-start.c (__libc_start_main): Do
217 DL_SYSDEP_OSCHECK here.
218 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
219 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
220
221 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
222 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
223
224 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
225 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
226
227 * include/link.h: Comment typo fix.
228
2292002-12-01 Roland McGrath <roland@frob.com>
230
231 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
232 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
233 _POSIX_MEMORY_PROTECTION): Likewise.
234 (_POSIX_POLL, _POSIX_SELECT): Removed.
235
cb0e76b4
UD
2362002-11-28 Ulrich Drepper <drepper@redhat.com>
237
238 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
239 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
240
ddf4ffad
UD
2412002-11-28 Jakub Jelinek <jakub@redhat.com>
242
243 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
244 USE___THREAD.
245 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
246 "=v" constraints.
247
acd42b78
UD
2482002-11-28 Ulrich Drepper <drepper@redhat.com>
249
250 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
251 branch prediction buffers by using unpaired call/ret.
252
d08bef80
UD
2532002-11-27 Ulrich Drepper <drepper@redhat.com>
254
255 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
256 first parameters constraint string.
257 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
258
6291ee3c
UD
2592002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
260
261 * posix/regcomp.c (parse_expression): Set the bit since the back
262 reference is used in the regular expression.
263 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
264 of malloc failure.
265 (re_node_set_init_copy): Likewise.
266 * posix/regex_internal.h (state_array_t): New structure.
267 (re_sub_match_last_t): Likewise.
268 (re_sub_match_top_t): Likewise.
269 (re_match_context_t): Add new members.
270 (re_dfa_t): Likewise.
271 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
272 to check the matching is really correct, and retry if failed.
273 Move the routin pruning the impossible nodes from here, ...
274 (prune_impossible_nodes): To this function.
275 (check_matching): Invoke check_subexp_matching_top, and replace
276 redundant checking with transit_state_bkref invocation.
277 (proceed_next_node): Replace strncmp with memcmp. Reported by
278 Paolo Bonzini <bonzini@gnu.org>.
279 (update_cur_sifted_state): Remove search_subexp invocation.
280 (search_subexp): Remove this function.
281 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
282 optimization.
283 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
284 Remove unused invocation of match_ctx_add_entry.
285 (transit_state): Invoke check_subexp_matching_top.
286 (check_subexp_matching_top): New function.
287 (transit_state_bkref): Remove unused array.
288 Merge transit_state_bkref_loop.
289 (transit_state_bkref_loop): Use get_subexp instead of
290 sift_states_backward. Use search_cur_bkref_entry for optimization.
291 Merge this function to transit_state_bkref.
292 (get_subexp): New function.
293 (get_subexp_sub): Likewise.
294 (find_subexp_node): Likewise.
295 (check_arrival): Likewise.
296 (check_arrival_expand_ecl): Likewise.
297 (check_arrival_expand_ecl_sub): Likewise.
298 (expand_bkref_cache): Likewise.
299 (match_ctx_init): Initialize new members.
300 (match_ctx_clean): New function.
301 (match_ctx_free): Release new members.
302 (match_ctx_free_subtops): New function.
303 (match_ctx_add_entry): Fix indent.
304 (search_cur_bkref_entry): New function.
305 (match_ctx_add_subtop): Likewise.
306 (match_ctx_add_sublast): Likewise.
307
9b1a4ec3
UD
3082002-11-25 Ulrich Drepper <drepper@redhat.com>
309
310 * iconv/Makefile (tests): Remove tst-iconv4.c
311 * iconv/tst-iconv4.c: Moved to...
312 * iconvdata/tst-iconv4.c: ...here. New file.
313 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
314
832fd8e8
RM
3152002-11-25 Roland McGrath <roland@redhat.com>
316
6938e63f
RM
317 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
318 Grok AF_LINK if defined.
319 From Momchil Velikov <velco@fadata.bg>.
320
321 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
322 brdaddr, or dstaddr, just set those pointers to null and don't fail.
323 Reported by Momchil Velikov <velco@fadata.bg>.
324
325 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
326 is > sizeof IFR->ifa_addr, advance past the whole longer length.
327 (__ifreq): Count up NIFS that way too.
328 Reported by Momchil Velikov <velco@fadata.bg>.
329
330 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
331
832fd8e8
RM
332 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
333 and <fpu_control.h>.
334
e195fbaf
UD
3352002-11-24 Ulrich Drepper <drepper@redhat.com>
336
337 * elf/elf.h (EM_ST19): Fix typo.
338
983d597e
RM
3392002-11-25 Jakub Jelinek <jakub@redhat.com>
340
341 * include/errno.h (__set_errno): Define as errno = val
342 unconditionally.
343
13a571a7
RM
3442002-11-24 Roland McGrath <roland@redhat.com>
345
bf2cc5fb
RM
346 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
347 * sysdeps/posix/writev.c: Likewise.
348 From Momchil Velikov <velco@fadata.bg>.
349
350 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
351 calling *GL(dl_error_catch_tsd) for a thread-local location.
352 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
353 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
354 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
355
356 * libio/iofflush.c: Add libc_hidden_def.
357 * libio/iofwrite.c: Likewise.
358 * sysdeps/generic/sigtimedwait.c: Likewise.
359 * sysdeps/generic/sigwaitinfo.c: Likewise.
360 * sysdeps/posix/sigwait.c: Likewise.
361 Reported by Momchil Velikov <velco@fadata.bg>.
362
363 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
364 to match <arpa/inet.h> declaration.
365 * inet/inet_netof.c (inet_netof): Likewise.
366 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
367 Reported by Momchil Velikov <velco@fadata.bg>.
368
13a571a7
RM
369 * configure.in: Skip AUTOCONF check under --without-cvs.
370 * configure: Regenerated.
371
372 * posix/Makefile (headers): Add bits/pthreadtypes.h.
373 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
374 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
375
d7a5c7e7
AS
3762002-11-24 Andreas Schwab <schwab@suse.de>
377
378 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
379 with six arguments.
380
93ed04cc
UD
3812002-11-19 Jim Meyering <jim@meyering.net>
382
383 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
384 as `static'.
385 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
386
f069a143
RM
3872002-11-23 Roland McGrath <roland@redhat.com>
388
56c71d45
RM
389 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
390 Just produce hex output for datum sizes.
391
f069a143
RM
392 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
393 Reported by Luca Barbieri <ldb@ldb.ods.org>.
394
a2413106 3952002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
54789f38 396
4a32f19d
RM
397 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
398 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
399 and __unused3 fields.
400 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
401 [__WORDSIZE == 32]: Only PPC32 requires __unused1
402 and __unused2 fields.
403 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
404 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
8faa165f 405 __unused3, and __unused4 fields.
4a32f19d 406
a2413106
RM
407 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
408 obtain lowest address for profiling in __monstartup call.
54789f38 409
1c120cb8
RM
4102002-11-21 Roland McGrath <roland@redhat.com>
411
a2413106
RM
412 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
413 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
414
54789f38
RM
415 * locale/localeinfo.h (struct locale_data): Revert last change.
416
1c120cb8
RM
417 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
418 From Ian Wienand <ianw@gelato.unsw.edu.au>.
419
420 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
421 __NR_pread64 if not defined.
422 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
423 From Ian Wienand <ianw@gelato.unsw.edu.au>.
424
a2413106
RM
4252002-11-21 Roland McGrath <roland@frob.com>
426
427 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
428 __libc_multiple_libcs here. Call __setfpucw.
429
755e51be
UD
4302002-11-21 Ulrich Drepper <drepper@redhat.com>
431
5982aa10
UD
432 * elf/Makefile (tests): Don't run test-arrayX tests for now.
433
755e51be
UD
434 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
435 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
436 CLONE_CHILD_*TID flags.
437
714a17c3
AJ
4382002-11-20 Andreas Jaeger <aj@suse.de>
439
440 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
441 We pass struct ucontext on x86-64.
442 (GET_PC): Adjust.
443 (GET_FRAME): Adjust.
444 (GET_STACK): Adjust.
445
5d0bbaaf
RM
4462002-11-20 Roland McGrath <roland@redhat.com>
447
ab9ba655
RM
448 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
449 conditionalize [! DO_VERSIONING] #error.
450
5d0bbaaf
RM
451 * scripts/abilist.awk: Grok function descriptor symbols.
452
453 * intl/tst-gettext.c (main): Check return values from setlocale.
454 Add necessary unsetenv's to make LANG=existing-locale check work.
455
456 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
457 so aborted prior runs don't confuse things.
458
459 * locale/localeinfo.h (struct locale_data: union locale_data_value):
460 Use uintptr_t instead of unsigned int for `word' member.
461 (_NL_CURRENT_WORD): Cast to uint32_t.
462
463 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
464 value.
465
218d76e0
UD
4662002-11-20 Ulrich Drepper <drepper@redhat.com>
467
eec62f42
UD
468 * elf/tls-macros.h: Add IA-64 definitions.
469 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
470
d84e7efa
UD
471 * iconv/Makefile (tests): Add tst-iconv4.
472 * iconv/tst-iconv4.c: New file.
473
eb9dc2a2
UD
474 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
475 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
476 __GCONV_INCOMPLETE_INPUT.
477 (ucs4le_internal_loop): Likewise.
478 (ucs4le_internal_loop_unaligned): Likewise.
479 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
480 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
481 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
482
483 * iconv/loop.c (LOOPFCT): First test for empty input then for full
484 output buffer.
485
218d76e0
UD
486 * inet/getnameinfo.c: Use extend_alloca where appropriate.
487 * sysdeps/posix/getaddrinfo.c: Likewise.
488
489 * include/alloca.h (extend_alloca): New define. Based on stack
490 direction it'll try to append to the previouls allocated buffer.
491
4922002-11-07 Thorsten Kukuk <kukuk@suse.de>
493
494 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
495 use the same service for AF_INET and AF_INET6.
496
4972002-11-19 Ulrich Drepper <drepper@redhat.com>
498
499 * intl/localealias.c (read_alias_file): Use only about 400 bytes
500 of stack space instead of 16k.
501
7f1b7f03
RM
5022002-11-18 Wolfram Gloger <wg@malloc.de>
503
504 * malloc/arena.c
505 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
506 nothing if not initialized. Bug report from Marcus Brinkmann
507 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
508
8d4d2833
RM
5092002-11-19 Roland McGrath <roland@redhat.com>
510
f0ddeeb5
RM
511 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
512 sched_setaffinity.
513
8d4d2833
RM
514 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
515 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
516 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
517 * configure: Regenerated.
518
3c857306
UD
5192002-11-19 Ulrich Drepper <drepper@redhat.com>
520
521 * include/dlfcn.h: __libc_dlopen is now a macro calling
522 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
523 (__libc_dlopen_mode): New prototype.
524 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
525 new parameter. Store new parameter in mode field of structure passed
526 to do_dlopen.
527 (struct do_dlopen_args): Add new field mode.
528 (do_dlopen): Pass mode from parameter structure to _dl_open.
529
0bf5c050
RM
5302002-11-11 Randolf Chung <tausq@debian.org>
531
2674f2a3
RM
532 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
533 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
534 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
535
0bf5c050
RM
536 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
537
538 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
539 Set -mdisable-fpregs for this file.
540
5412002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
542
543 * sysdeps/unix/sysv/linux/configure.in:
544 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
545 from gcc-3.0 era for backwards compatibility.
546 * sysdeps/unix/sysv/linux/configure: Regenerate.
547
3c857306
UD
548 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
549 Define mcontext_t as a sigcontext.
0bf5c050 550
c27af28e
RM
5512002-11-18 Roland McGrath <roland@redhat.com>
552
0bf5c050
RM
553 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
554 Free memory in `last_result' if it was used.
555
556 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
557 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
558 Do the parsing inline instead of copying strings and calling
559 inet_network, and properly skip all alias names not matching the form.
560
c27af28e
RM
561 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
562
a185f478
UD
5632002-11-17 Ulrich Drepper <drepper@redhat.com>
564
c27af28e
RM
565 * manual/pattern.texi (Wordexp Example): Fix sample code.
566
a185f478
UD
567 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
568 childs stack which will be loaded into the %esi register.
569
c27af28e 5702002-11-14 Paul Eggert <eggert@twinsun.com>
9b57c1c1 571
a185f478
UD
572 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
573 overflow when skipping the question part and when unpacking aliases.
9b57c1c1 574
502328b2
RM
5752002-11-15 Roland McGrath <roland@redhat.com>
576
577 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
578 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
579 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
580
92712dee
RM
5812002-11-15 Jakub Jelinek <jakub@redhat.com>
582
583 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
584 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
585
5862002-11-15 Roland McGrath <roland@redhat.com>
587
588 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
589 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
590 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
591 (+make-include-of-dep): New canned sequence.
592
593 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
594 From Dmitry V. Levin <ldv@altlinux.org>.
595
d8b8842b
RM
5962002-11-14 Roland McGrath <roland@redhat.com>
597
53da80ab
RM
598 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
599 * inet/herrno.c (__libc_h_errno): Likewise.
600 * resolv/res_libc.c (__libc_res): Likewise.
601 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
602 (__res_state) [! USE___THREAD]: Don't define as weak.
603 * csu/Versions: Revert last change.
604 * resolv/Versions: Revert last change.
605
606 * Makerules ($(common-objpfx)%.make): New pattern rule.
607 * tls.make.c: New file.
608 * Makefile (distribute): Add it.
609
d8b8842b
RM
610 * sysdeps/generic/errno.c [! USE___THREAD]
611 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
612 with compat_symbol so they are not link-time visible.
613 [! USE___THREAD] (__libc_errno): New alias for errno.
614 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
615 Add __libc_errno here.
616 * inet/herrno.c [USE___THREAD]: Use this conditional
617 in place of [USE_TLS && HAVE___THREAD].
618 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
619 (h_errno, _h_errno): Declare these with compat_symbol so they are not
620 link-time visible.
621 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
622 * resolv/res_libc.c [! USE___THREAD]
623 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
624 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
625 (__libc_res): Define as alias for _res.
626 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
627 Add __libc_h_errno and __libc_res here.
628
6292002-11-14 Jakub Jelinek <jakub@redhat.com>
630
631 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
632 * resolv/Versions (h_errno, _res): Likewise.
633
6c0b2972
RM
6342002-11-14 Roland McGrath <roland@redhat.com>
635
636 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
637 (%.symlist): Likewise.
638
cdedcc79
RM
6392002-11-13 Roland McGrath <roland@redhat.com>
640
6e3d59bc
RM
641 * scripts/abilist.awk: New file.
642 * Makefile (distribute): Add it.
643 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
644 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
c9e032d5
RM
645 [$(subdir) = elf] (tests): Depend on libc.symlist.
646 (generated, common-generated): Add those files.
647
6e3d59bc
RM
648 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
649 * configure: Regenerated.
650 * config.make.in (OBJDUMP): New variable, substituted by configure.
651
652 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
653 (mallochook, reallochook): Set them up.
654 (checkhdr): Check HDR->magic2 value.
655 (freehook): Reset HDR->magic2.
656 (memalignhook): New static function.
657 (old_memalign_hook): New static variable.
658 (mcheck, reallochook): Set __memalign_hook to memalignhook.
659
cdedcc79
RM
660 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
661 for the new TCB.
662
ba441d2c
AJ
6632002-11-13 Andreas Jaeger <aj@suse.de>
664
665 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
666 attribute.
667 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
668
be1960c6
RM
6692002-11-11 Paul Eggert <eggert@twinsun.com>
670
3c857306
UD
671 * manual/crypt.texi (Cryptographic Functions): Mention that
672 the MD5 one-way algorithm is compatible with BSD's.
be1960c6 673
1843975c
RM
6742002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
675
676 * posix/regex_internal.c (re_string_skip_chars): Also return the last
677 wide character.
678 (re_string_reconstruct): Calculate the context by itself when the
679 offset points out of the valid range.
680 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
681 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
682 (IS_WIDE_WORD_CHAR): New macro.
683 (IS_WIDE_NEWLINE): New macro.
684
44df0cea
AJ
6852002-11-12 Andreas Jaeger <aj@suse.de>
686
6e14793d
AJ
687 * sysdeps/x86_64/strchr.S: Don't use one register for two
688 purposes, this fixes a bug noticed by test-strchr.c.
689
44df0cea
AJ
690 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
691 correctly.
692
7ceef50e
RM
6932002-11-12 Roland McGrath <roland@redhat.com>
694
43317e8e
RM
695 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
696 (_G_IO_NO_BACKWARD_COMPAT): Define it.
697
7ceef50e
RM
698 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
699 instead of <pt-machine.h>.
700 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
701 testandset.
702 From Ian Wienand <ianw@gelato.unsw.edu.au>.
703
adee0e1f
RM
7042002-11-10 Roland McGrath <roland@redhat.com>
705
1ab9366d
RM
706 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
707 Call fputs instead of fwprintf (simpler to follow in debugger).
708
4483f2c0
RM
709 * crypt/md5-crypt.c: Doc fix.
710
adee0e1f
RM
711 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
712 the beginning of generated target commands.
713
714 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
715 dependencies for these in case implicit rule search skipped the
716 nonexistent source directory.
717 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
718 files with $(object-suffixes) as targets too.
719 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
720 and a target for it using $(make-target-directory).
721
722 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
723
8bbd8b0b
RM
7242002-11-10 Roland McGrath <roland@frob.com>
725
adee0e1f
RM
726 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
727 * sysdeps/generic/bits/pthreadtypes.h: ... here.
728
8bbd8b0b
RM
729 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
730 l_start == 0 and l_len == 1 as we do l_len == 0.
731
7fa0e180
UD
7322002-11-10 Ulrich Drepper <drepper@redhat.com>
733
734 * po/da.po: Update from translation team.
735
daf4e2bc
RM
7362002-11-10 Roland McGrath <roland@redhat.com>
737
738 * config.make.in (includedir): New variable, substituted by configure.
739 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
740 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
741
2deea078
AJ
7422002-11-10 Andreas Jaeger <aj@suse.de>
743
09b4d75f
AJ
744 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
745 REG_OLDMASK and REG_CR2 to synch with kernel header.
746 (NGREG): Increase.
747
2deea078
AJ
748 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
749 aliasing problem.
750 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
751 * nss/getnssent_r.c (__nss_getent_r): Likewise.
752 (__nss_setent): Likewise.
753 (__nss_getent_r): Likewise.
754 * inet/getnetgrent_r.c (innetgr): Likewise.
755 (__internal_setnetgrent_reuse): Likewise.
756 (internal_getnetgrent_r): Likewise.
757 * inet/ether_hton.c (ether_hostton): Likewise.
758 * inet/ether_ntoh.c (ether_ntohost): Likewise.
759 * sunrpc/netname.c (netname2user): Likewise.
760 * sunrpc/publickey.c (getpublickey): Likewise.
761 (getsecretkey): Likewise.
762
55c303ac
RM
7632002-11-09 Marcus Brinkmann <marcus@gnu.org>
764
7fa0e180
UD
765 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
766 error in range calculation.
55c303ac 767
9372c958
RM
7682002-10-09 Jakub Jelinek <jakub@redhat.com>
769
770 * string/test-strspn.c (do_test): Ensure zero termination.
771 * string/test-strpbrk.c (do_test): Likewise.
772 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
773 * string/test-strncpy.c (stupid_strncpy): Likewise.
774 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
775
7762002-10-08 Roland McGrath <roland@redhat.com>
777
778 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
779 nonzero characters.
780
7812002-09-22 H.J. Lu <hjl@gnu.org>
782
783 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
784 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
785 only if __NR_mmap2 is defined.
786
787 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
788 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
789 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
790 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
791
e8c1660f
RM
7922002-11-08 Jakub Jelinek <jakub@redhat.com>
793
2b497443
RM
794 * posix/bug-regex13.c (tests): Add new test.
795
e8c1660f
RM
796 * string/test-strchr.c (stupid_strchr): New function.
797 (do_random_tests): Make sure the string is zero terminated.
798 * string/test-strpbrk.c (stupid_strpbrk): New function.
799 (do_random_tests): Make sure the string is zero terminated.
800 * string/test-strcmp.c (stupid_strcmp): New function.
801 (do_random_tests): Make sure the strings are zero terminated.
802 * string/test-strspn.c (stupid_strspn): New function.
803 (simple_strspn): Rename rej argument to acc.
804 (do_random_tests): Make sure the string is zero terminated.
805 * string/test-strcspn.c (stupid_strcspn): New function.
806 * string/test-strncpy.c (stupid_strncpy): New function.
807 * string/test-stpncpy.c (stupid_stpncpy): New function.
808 * string/test-strncmp.c (stupid_strncmp): New function.
809 (do_random_tests): Make sure the strings are zero terminated.
810 * string/test-string.h (impl_t): Change test into long.
811 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
812
e0bc9a8d
RM
8132002-11-08 Roland McGrath <roland@redhat.com>
814
815 * sysdeps/ia64/elf/configure.in: Add TLS check.
816 From Ian Wienand <ianw@cse.unsw.edu.au>.
817 * sysdeps/ia64/elf/configure: Regenerated.
818
8192002-11-07 Roland McGrath <roland@redhat.com>
820
821 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
822 place of _IO_new_do_write.
823 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
824 #undef before versioned_symbol use.
825
c6481412
RM
8262002-11-07 Richard Henderson <rth@redhat.com>
827
828 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
829 * configure: Regenerated.
830 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
831 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
832 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
833 _dl_fini via gp-relative relocations.
834 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
835
836 * elf/tls-macros.h: Add alpha versions.
837 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
838 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
839 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
840 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
841 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
842 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
843 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
844 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
845 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
846 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
847 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
848 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
849 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
850 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
851 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
852 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
853 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
854 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
855
856 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
857 Kill argument registers across the inline syscall.
858
859 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
860
861 * linuxthreads/sysdeps/alpha/tls.h: New file.
862 * sysdeps/alpha/dl-tls.h: New file.
863
dfe4c900
RM
8642002-10-29 David Mosberger <davidm@hpl.hp.com>
865
866 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
867 (gmon_initializer): New function.
868 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
869 __gmon_start__ here. Call it from gmon_initializer() instead.
870
8712002-03-12 H.J. Lu <hjl@gnu.org>
872
873 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
874 tst-array2, and tst-array3.
875 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
876 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
877 ($(objpfx)tst-array1.out): New target.
878 ($(objpfx)tst-array2): Likewise.
879 ($(objpfx)tst-array2.out): Likewise.
880 ($(objpfx)tst-array3.out): Likewise.
881 * elf/tst-array1.c: New file.
882 * elf/tst-array1.exp: Likewise.
883 * elf/tst-array2.c: Likewise.
884 * elf/tst-array2dep.c: Likewise.
885 * elf/tst-array2.exp: Likewise.
886 * elf/tst-array3.c: Likewise.
887
1d8a0fd9
RM
8882002-10-28 David Mosberger <davidm@hpl.hp.com>
889
890 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
891 Don't add L->l_addr to array entry values.
892
58ef9ef7
RM
8932002-11-07 Jakub Jelinek <jakub@redhat.com>
894
895 * string/test-string.h: New file.
896 * string/test-strlen.c: New file.
897 * string/test-string.h: New file.
898 * string/test-strcmp.c: New file.
899 * string/test-strchr.c: New file.
900 * string/test-strrchr.c: New file.
901 * string/test-strcpy.c: New file.
902 * string/test-stpcpy.c: New file.
903 * string/test-strncpy.c: New file.
904 * string/test-stpncpy.c: New file.
905 * string/test-strpbrk.c: New file.
906 * string/test-strcspn.c: New file.
907 * string/test-strspn.c: New file.
908 * string/test-strcat.c: New file.
909 * string/test-strncmp.c: New file.
910 * string/test-memchr.c: New file.
911 * string/test-memcmp.c: New file.
912 * string/test-memset.c: New file.
913 * string/test-memcpy.c: New file.
914 * string/test-mempcpy.c: New file.
915 * string/test-memmove.c: New file.
916 * string/Makefile (strop-tests): New variable.
917 (tests): Add strop-tests.
918 (distribute): Add test-string.h.
919
15a7d175
UD
9202002-11-06 Ulrich Drepper <drepper@redhat.com>
921
922 * posix/regcomp.c: Use tabs instead of spaces.
923 * posix/regexec.c: Likewise.
924 * posix/regex_internal.h: Likewise.
925
926 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
927
1b2c2628
UD
9282002-11-06 Jakub Jelinek <jakub@redhat.com>
929
930 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
931 here.
932 (regcomp): Don't set can_be_null here.
933 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
934 (re_compile_internal): Clear can_be_null, set regs_allocated.
935
936 * posix/regcomp.c (re_set_fastmap): New function.
937 (re_compile_fastmap_iter): Use it. Remove redundant type ==
938 COMPLEX_BRACKET check.
939 * posix/regexec.c (re_search_internal): Optimize searching with
940 fastmap. Call re_string_reconstruct even if match_first is
941 smaller than raw_mbs_idx.
942
9432002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
944
945 * posix/regcomp (free_dfa_content): Use free_state.
946 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
947 pointers in case that realloc failed.
948 (re_node_set_merge): Likewise.
949 (register_state): Likewise.
950 (create_newstate_common): Invoke memory release functions in case of
951 error conditions.
952 (create_ci_newstate): Likewise.
953 (create_cd_newstate): Likewise.
954 (free_state): New function.
955 * posix/regexec.c (re_search_internal): Invoke memory release
956 functions in case of error conditions.
957 (sift_states_backward): Likewise.
958 (merge_state_array): Likewise.
959 (add_epsilon_src_nodes): Likewise.
960 (sub_epsilon_src_nodes): Likewise.
961 (search_subexp): Likewise.
962 (sift_states_bkref): Likewise.
963 (transit_state_sb): Likewise.
964 (transit_state_mb): Likewise.
965 (transit_state_bkref_loop): Likewise.
966 (group_nodes_into_DFAstates): Likewise.
967 (push_fail_stack): Don't edit pointers in case that realloc failed.
968 (extend_buffers): Likewise.
969 (match_ctx_add_entry): Likewise.
970
c4dd0bac
RM
9712002-11-06 Roland McGrath <roland@redhat.com>
972
cbf900b4
RM
973 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
974 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
975
c4dd0bac
RM
976 * configure.in: Add checks on as and ld for binutils 2.13 or later.
977 * configure: Regenerated.
978
71ccd330
UD
9792002-11-06 Ulrich Drepper <drepper@redhat.com>
980
981 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
982 If re_compile_internal failed free fastmap buffer.
983 (free_dfa_content): Broken out of regfree function. Frees all dfa
984 related data.
985 (regfree): Add free_dfa_content.
986 (re_compile_internal): If any of the called functions fails free
987 all dfa related memory.
988
d97426b7
UD
9892002-11-05 Ulrich Drepper <drepper@redhat.com>
990
991 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
992 warnings from the kernel headers.
993
df5391ff
RM
9942002-11-05 Roland McGrath <roland@redhat.com>
995
be280d0e
RM
996 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
997 From Johannes Stezenbach <js@convergence.de>.
998
df5391ff
RM
999 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
1000 #errlist-compat magic comment to give 123 as size.
1001 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
1002 (libc: GLIBC_2.2): ... here.
1003 (libc: GLIBC_2.3): Likewise.
1004
51859074
UD
10052002-11-05 Ulrich Drepper <drepper@redhat.com>
1006
a2d80f9a
UD
1007 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
1008 which happens at the beginning so that we can unload modules in
1009 __libc_freeres.
51859074 1010
e791bd95
RM
10112002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1012
1013 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
1014 under [__USE_MISC || _ASM].
1015
1016 * elf/elf.h: Remove the obsolete SH TLS relocations.
1017
0c2ee21c
UD
10182002-11-05 Ulrich Drepper <drepper@redhat.com>
1019
1020 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
1021
5bfed16d
UD
10222002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1023
1024 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
1025 __NR_pread64 and __NR_pwrite64.
1026 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
1027 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
1028 and __NR_pwrite64.
1029 Revert change to use INLINE_SYSCALL.
1030 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
1031 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
1032 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
1033 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
1034 INLINE_SYSCALL.
1035 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
1036
1037 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
1038 Update clobber list and add a comment about the syscall ABI.
1039
0c2ee21c
UD
1040 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
1041 s_pwrite64, s_ftruncate, s_truncate): Re-add.
1042
f6e50e66
UD
10432002-11-05 Jakub Jelinek <jakub@redhat.com>
1044
1045 * iconv/gconv_dl.c (free_mem): Clear loaded.
1046 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
1047 cleanup if any.
1048
52a16e58
UD
10492002-11-05 Ulrich Drepper <drepper@redhat.com>
1050
f6e50e66
UD
1051 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
1052
52a16e58
UD
1053 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
1054 as old code without locking. _IO_seekoff calls this function after
1055 locking the stream.
1056 * libio/ioseekpos.c: Likewise for _IO_seekpos.
1057 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
1058 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
1059 prototypes.
1060 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
1061 of _IO_seekoff_internal.
1062 (_IO_rewind): Likewise.
1063 * libio/ioftell.c: Likewise.
1064 * libio/ftello.c: Likewise.
1065 * libio/ftello64.c: Likewise.
1066 * libio/iofgetpos.c: Likewise.
1067 * libio/iofgetpos64.c: Likewise.
1068 * libio/oldiofgetpos.c: Likewise.
1069 * libio/oldiofgetpos64.c: Likewise.
1070 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
1071 _IO_seekpos_internal.
1072 * libio/iofsetpos64.c: Likewise.
1073 * libio/oldiofsetpos.c: Likewise.
1074 * libio/oldiofsetpos64.c: Likewise.
1075
0f0d786f
RM
10762002-11-04 Roland McGrath <roland@redhat.com>
1077
1078 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
1079 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
1080 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
1081 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
1082 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
1083 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
1084 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
1085 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
1086 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
1087 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
1088 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
1089 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
1090 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
1091 Remove these, no longer used.
1092
10932002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1094
1095 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
1096 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
1097 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
1098 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
1099 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
1100 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
1101 syscall stubs.
1102
1103 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
1104 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
1105 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
1106 and __NR_pread.
1107 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
1108 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
1109 and __NR_pwrite.
1110 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
1111
11122002-11-03 Roland McGrath <roland@redhat.com>
1113
1114 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
1115 `_dl_tls_static_used'.
1116 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
1117 (__libc_setup_tls): Initialize it. Let the initial value of
1118 _dl_tls_static_size indicate some surplus space in the computed value.
1119 * elf/dl-open.c (_dl_tls_static_size): New variable.
1120 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
1121 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
1122 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
1123 (CHECK_STATIC_TLS): Use it.
1124 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
1125 closed objects occupied a trailing contiguous chunk of static TLS area.
1126
11272002-10-18 Bruno Haible <bruno@clisp.org>
1128
1129 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
1130
8e96ae1a
UD
11312002-11-04 Ulrich Drepper <drepper@redhat.com>
1132
52a16e58
UD
1133 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
1134 _wide_data->_IO_read_end if adjustment can be made in the current
1135 buffer.
1136
2f0f157e
UD
1137 * sysdeps/unix/sysv/linux/fexecve.c: New file.
1138
c7e56cbe
UD
1139 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
1140 wide oriented streams are used.
1141
226e9fda
UD
1142 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
1143 service hasn't been used [PR libc/4744].
1144
12518320
UD
1145 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
1146 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
1147
8e96ae1a
UD
1148 * manual/examples/dir.c: Don't include <stddef.h>.
1149 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
1150