]> sourceware.org Git - glibc.git/blame - ChangeLog
* sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
[glibc.git] / ChangeLog
CommitLineData
ad1af6c2
AS
12003-01-06 Andreas Schwab <schwab@suse.de>
2
3 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
4 sure this is always inlined.
5 (elf_machine_rela): Likewise.
6
7 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
8
7f6dafc1
RM
92003-01-04 Roland McGrath <roland@redhat.com>
10
11 * Makeconfig (+mkdep): Add -MP flag.
12 Suggested by Art Haas <ahaas@airmail.net>.
13
c711d9d2
AS
142003-01-05 Andreas Schwab <schwab@suse.de>
15
16 * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
17
bbd17455
UD
182003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
19
20 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
21 SYSCALL_ERROR_HANDLER.
22 * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
23 * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
24 Add support for cancellation handling.
25 * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
26 SYSCALL_ERROR_HANDLER.
27 * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
28 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
29 Add support for cancellation handling.
30 (SYSCALL_ERROR_HANDLER): Define PIC variants.
31
bdee30cf
UD
322003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
33
34 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
35 __syscall_pread64 and __syscall_pwrite64 cancelable.
36 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
37 (INTERNAL_SYSCALL): New macro.
38 (LOADARGS_0, LOADARGS_1): Fix.
39
402003-01-05 Ulrich Drepper <drepper@redhat.com>
41
42 * Makerules (build-shlip-helper): Unless told otherwise, add
43 -Wl,-z,defs to linker command line.
44 * rt/Makefile (librt.so): Link with ld.so.
45 * dlfcn/Makefile (libdl.so): Likewise.
46
00e58701
UD
472003-01-05 Jakub Jelinek <jakub@redhat.com>
48
49 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
50 cancellation handling.
51 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
52 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
53
542003-01-04 Ulrich Drepper <drepper@redhat.com>
55
56 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
57 order of parameters passed to kill.
58
13aa5eff
AS
592003-01-04 Andreas Schwab <schwab@suse.de>
60
00e58701 61 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
13aa5eff 62
fd4b70ea
RM
632002-01-03 Paul Eggert <eggert@twinsun.com>
64
65 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
66 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
67 when compiling Bison 1.875's `bitset bset = obstack_alloc
68 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
69
43cd9933
UD
702003-01-04 Ulrich Drepper <drepper@redhat.com>
71
6c9badfd
UD
72 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove
73 unnecessary code.
74 Correct reference counter in case SIGQUIT handler installation failed.
43cd9933 75
75c43017
UD
762003-01-03 Ulrich Drepper <drepper@redhat.com>
77
78 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
79 Define using _Pragma(weak ...).
80
1cb990bc
UD
812003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
82
83 * resolv/res_libc.c: Provide declaration for __res_init_weak and
84 reorder declarations.
85
862003-01-03 Art Haas <ahaas@airmail.net>
87
88 * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
6fc56e5e 89 initializer syntax to C99.
1cb990bc
UD
90 * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
91 * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
92 * localedata/tests-mbwc/dat_iswctype.c: Likewise.
93 * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
94 * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
95 * localedata/tests-mbwc/dat_iswlower.c: Likewise.
96 * localedata/tests-mbwc/dat_iswprint.c: Likewise.
97 * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
98 * localedata/tests-mbwc/dat_iswspace.c: Likewise.
99 * localedata/tests-mbwc/dat_iswupper.c: Likewise.
100 * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
101 * localedata/tests-mbwc/dat_mblen.c: Likewise.
102 * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
103 * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
104 * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
105 * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
106 * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
107 * localedata/tests-mbwc/dat_strcoll.c: Likewise.
108 * localedata/tests-mbwc/dat_strfmon.c: Likewise.
109 * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
110 * localedata/tests-mbwc/dat_swscanf.c: Likewise.
111 * localedata/tests-mbwc/dat_towctrans.c: Likewise.
112 * localedata/tests-mbwc/dat_towlower.c: Likewise.
113 * localedata/tests-mbwc/dat_towupper.c: Likewise.
114 * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
115 * localedata/tests-mbwc/dat_wcscat.c: Likewise.
116 * localedata/tests-mbwc/dat_wcschr.c: Likewise.
117 * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
118 * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
119 * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
120 * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
121 * localedata/tests-mbwc/dat_wcslen.c: Likewise.
122 * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
123 * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
124 * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
125 * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
126 * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
127 * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
128 * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
129 * localedata/tests-mbwc/dat_wcstod.c: Likewise.
130 * localedata/tests-mbwc/dat_wcstok.c: Likewise.
131 * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
132 * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
133 * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
134 * localedata/tests-mbwc/dat_wctob.c: Likewise.
135 * localedata/tests-mbwc/dat_wctomb.c: Likewise.
136 * localedata/tests-mbwc/dat_wctrans.c: Likewise.
137 * localedata/tests-mbwc/dat_wctype.c: Likewise.
138 * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
139
1402003-01-03 Richard Henderson <rth@redhat.com>
141
142 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
143 (inline_syscall_r0_constraint): New.
144 (inline_syscall[0-6]): Use them.
145
733f25e6
UD
1462003-01-03 Jakub Jelinek <jakub@redhat.com>
147
148 * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
149 Add rtld_hidden_proto.
150 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
151 (_dl_allocate_tls): Likewise. Remove INTDEF.
152
8439150e
UD
1532002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
154
155 * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu
156 Morita <toshiyasu.morita@hsa.hitachi.com>.
157 * sysdeps/sh/memcpy.S: Likewise.
158
8ee87680
UD
1592003-01-02 Ulrich Drepper <drepper@redhat.com>
160
c547b58a
UD
161 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
162 any, but unify the test.
8ee87680 163
bf293afe
UD
1642003-01-02 Jakub Jelinek <jakub@redhat.com>
165
166 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
167 sigaction): Protect weak_alias and libc_hidden_weak with
168 #ifndef LIBC_SIGACTION.
169 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
170 sigaction): Likewise.
171 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
172 sigaction): Likewise.
173 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
174 sigaction): Likewise.
175 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
176 sigaction): Likewise.
177 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
178 sigaction): Likewise.
179 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
180 sigaction): Likewise.
181 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
182 sigaction): Likewise. Remove SIGCANCEL handling here.
183 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
184 Likewise.
185
b0c9067d
UD
1862003-01-02 Art Haas <ahaas@airmail.net>
187
188 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
189
1902003-01-02 Ulrich Drepper <drepper@redhat.com>
191
192 * posix/getconf.c: Update copyright year.
193 * nss/getent.c: Likewise.
194 * nscd/nscd_nischeck.c: Likewise.
195 * iconv/iconvconfig.c: Likewise.
196 * iconv/iconv_prog.c: Likewise.
197 * elf/ldconfig.c: Likewise.
198 * catgets/gencat.c: Likewise.
199 * csu/version.c: Likewise.
200 * elf/ldd.bash.in: Likewise.
201 * elf/sprof.c (print_version): Likewise.
202 * locale/programs/locale.c: Likewise.
203 * locale/programs/localedef.c: Likewise.
204 * nscd/nscd.c (print_version): Likewise.
205 * debug/xtrace.sh: Likewise.
206 * malloc/memusage.sh: Likewise.
207 * malloc/mtrace.pl: Likewise.
208
5d6405d1
AJ
2092003-01-01 Jakub Jelinek <jakub@redhat.com>
210
211 * io/sys/stat.h: Include time.h with __need_timespec even if
212 __USE_MISC is defined but __USE_XOPEN is not.
213
7c18d191
AJ
2142003-01-01 Andreas Jaeger <aj@suse.de>
215
b0c9067d
UD
216 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
217 type to avoid strict aliasing problem.
218 (_nss_dns_gethostbyname2_r): Likewise.
219 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
220 (_nss_dns_getnetbyname_r): Likewise.
7c18d191
AJ
221 * resolv/gethnamaddr.c (_gethtent): Likewise.
222 (gethostbyname2): Likewise.
223
ee2a5ae8
UD
2242002-12-31 Ulrich Drepper <drepper@redhat.com>
225
226 * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
227 to avoid using the exported symbols. Define aliases with the
228 original names separately.
229
230 * include/time.h: Add libc_hidden_proto for __strftime_l.
231 * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
232 * time/strftime.c: Always use libc_hidden_def if _LIBC.
233
234 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
235 * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
236
237 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
238 tr_break.
239
240 * csu/Makefile (routines): Add dso_handle.
241 * csu/dso_handle.c: New file.
242
98bb0727
RM
2432002-12-31 Roland McGrath <roland@redhat.com>
244
245 * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
246 Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
247 (S-CPPFLAGS): Add -DASSEMBLER here instead.
248 (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
249
6d6ee629
UD
2502002-12-31 Ulrich Drepper <drepper@redhat.com>
251
252 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
253 is available.
254
1186caea
AJ
2552002-12-31 Andreas Jaeger <aj@suse.de>
256
257 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
258 with Linux kernel.
259 * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
260 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
261 * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
262
263 * sysdeps/unix/sysv/linux/kernel_stat.h
264 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
265
6d6ee629 266 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
1186caea
AJ
267 __unused[1-3] since they're needed by some platforms. Handle
268 _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
269
270 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
271 for structs stat and stat64.
272 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
273 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
274 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
275 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
276
a4baf360 277 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
1186caea 278
a4baf360
UD
279 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
280 nsec resolution changes.
281 (xstat64_conv): Likewise.
282 (xstat32_conv): Likewise.
1186caea 283
a4baf360
UD
284 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
285 struct kernel_stat.
1186caea 286
a4baf360
UD
287 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
288 structs stat and stat64.
1186caea 289
a4baf360
UD
290 * time/time.h (__timespec_defined): Define for __USE_MISC.
291
2922002-12-31 Ulrich Drepper <drepper@redhat.com>
293
294 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
295 and __libc_current_sigrtmax.
296
2972002-12-31 Jakub Jelinek <jakub@redhat.com>
298
299 * include/errno.h (__errno_location): Add prototype.
300 Use libc_hidden_proto unconditionally.
301 * include/netdb.h (__h_errno_location): Use libc_hidden_proto
302 unconditionally.
303 * include/resolv.h (__res_state): Likewise.
304
305 * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
306 * include/sys/socket.h (accept): Add libc_hidden_proto.
307 * include/errno.h (__errno_location): Likewise.
308 * include/netdb.h (__h_errno_location): Likewise.
309 * include/resolv.h (__res_state): Likewise.
310 * include/unistd.h (__lseek): Likewise.
311 * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
312 * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
313 * sysdeps/generic/res-state.c (__res_state): Likewise.
314 * sysdeps/generic/accept.c (accept): Likewise.
315 * sysdeps/generic/lseek.c (__lseek): Likewise.
316 * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
317 __libc_current_sigrtmax): Likewise.
318 * sysdeps/mach/hurd/accept.c (accept): Likewise.
319 * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
320 * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
321 * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
322 * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
323 * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
324 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
325 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
326 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
327 alias to llseek.
328 (__GI_accept): New alias to accept.
329 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
330 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
331 New alias to llseek.
332 (__GI_accept): New alias to accept.
333 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
334 Likewise.
335 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
336 Likewise.
337 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
338
339 * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
340 strong_alias (name, __GI_name).
341 * sysdeps/arm/bsd-_setjmp.S : Likewise.
342 * sysdeps/hppa/bsd-_setjmp.S : Likewise.
343 * sysdeps/i386/bsd-_setjmp.S : Likewise.
344 * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
345 * sysdeps/mips/bsd-_setjmp.S : Likewise.
346 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
347 * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
348 * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
349 * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
350 * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
351 * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
352 * sysdeps/sh/bsd-_setjmp.S : Likewise.
353 * sysdeps/sparc/sparc32/setjmp.S : Likewise.
354 * sysdeps/unix/arm/fork.S : Likewise.
355 * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
356 * sysdeps/unix/bsd/i386/vfork.S : Likewise.
357 * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
358 * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
359 * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
360 * sysdeps/unix/bsd/vax/vfork.S : Likewise.
361 * sysdeps/unix/i386/fork.S : Likewise.
362 * sysdeps/unix/mips/fork.S : Likewise.
363 * sysdeps/unix/sparc/fork.S : Likewise.
364 * sysdeps/unix/sparc/vfork.S : Likewise.
365 * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
366 * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
367 * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
368 * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
369 * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
370 * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
371 * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
372 * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
373 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
374 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
375 * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
376 * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
377 * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
378 * sysdeps/unix/fork.S : Likewise.
379 * sysdeps/vax/bsd-_setjmp.S : Likewise.
380 * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
381
382 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
383 inclusion.
1186caea 384
9b4289aa
UD
3852002-12-31 Ulrich Drepper <drepper@redhat.com>
386
d1436edc
UD
387 * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
388 * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
389 * sysdeps/mach/hurd/fork.c: Likewise.
390 * sysdeps/unix/sysv/aix/fork.c: Likewise.
391 * sysdeps/unix/fork.S: Add __GI___fork alias.
392 * sysdeps/unix/arm/fork.S: Likewise.
393 * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
394 * sysdeps/unix/i386/fork.S: Likewise.
395 * sysdeps/unix/mips/fork.S: Likewise.
396 * sysdeps/unix/sparc/fork.S: Likewise.
397 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
398 * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
399 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
400 * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
401 * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
402 * sysdeps/unix/bsd/i386/vfork.S: Likewise.
403 * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
404 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
405 * sysdeps/unix/bsd/vax/vfork.S: Likewise.
406 * sysdeps/unix/sparc/vfork.S: Likewise.
407 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
408 * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
409 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
410 * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
411 * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
412 * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
413 * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
414 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
415
f7f7f815
UD
416 * include/time.h: Add libc_hidden_proto for __nanosleep.
417 * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
418 * sysdeps/mach/nanosleep.c: Likewise.
419 * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
420 * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
421
245eab02
UD
422 * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
423 _IO_list_unlock, and _IO_list_resetlock.
424 * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
425 _IO_list_unlock, and _IO_list_resetlock.
426
1d2b6e0c
UD
427 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
428 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
429 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
430 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
431
e9395a94
UD
432 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
433 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
434 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
435 __GI___longjmp alias.
436
9b4289aa
UD
437 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
438 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
439 * sysdeps/arm/bsd-_setjmp.S: Likewise.
440 * sysdeps/generic/bsd-_setjmp.c: Likewise.
441 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
442 * sysdeps/i386/bsd-_setjmp.S: Likewise.
443 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
444 * sysdeps/mips/bsd-_setjmp.S: Likewise.
445 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
446 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
447 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
448 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
449 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
450 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
451 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
452 * sysdeps/sh/bsd-_setjmp.S: Likewise.
453 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
454 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
455 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
456 * sysdeps/vax/bsd-_setjmp.S: Likewise.
457 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
458
416d2de6
UD
4592002-12-30 Ulrich Drepper <drepper@redhat.com>
460
461 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
462
30bac498
RM
4632002-12-30 Roland McGrath <roland@redhat.com>
464
2b8d46ac
RM
465 * Rules (generated): Target removed.
466 * mach/Makefile (generated): Define it here instead.
467
30bac498
RM
468 * math/Makefile (generated): Add m_*l and m_*f variants too.
469
cfaf5e56
UD
4702002-12-30 Ulrich Drepper <drepper@redhat.com>
471
f7a0ea26
UD
472 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
473 the to-be-deleted objects right away instead of later separately.
474 The latter fails because the scope data structures of the DSO
6c7689cb 475 might already be gone.
f7a0ea26 476
cfaf5e56
UD
477 * elf/Makefile: Add rules to build and run reldep8 test.
478 * elf/reldep8.c: New file.
479 * elf/reldep8mod1.c: New file.
480 * elf/reldep8mod2.c: New file.
481 * elf/reldep8mod3.c: New file.
482 Contributed by Jakub Jelinek.
483
31df0ab0
UD
4842002-12-24 GOTO Masanori <gotom@debian.or.jp>
485
486 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
487 checking of return value ENOSYS from getdents64.
488
c99dac36
RM
4892002-12-28 Andreas Schwab <schwab@suse.de>
490
491 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
492 ($(common-objpfx)s-%.d): Generalized from
493 $(common-objpfx)s-proto.d rule.
494 (common-generated): Add s-proto-cancel.d.
495 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
496 cancellable syscalls.
497 * sysdeps/unix/s-proto-cancel.S: New file.
498
aca45639
RM
4992002-12-29 Roland McGrath <roland@redhat.com>
500
4aeb650e
RM
501 * resolv/res_libc.c: Move _res defn magic after res_init defn
502 so _res macro is in effect for that code.
503
c7371e6e
RM
504 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
505 pattern for prepending $(..) so it doesn't affect $(foo).
506
aca45639
RM
507 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
508
d21a5ab6
UD
5092002-12-29 Jakub Jelinek <jakub@redhat.com>
510
511 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
512 in hwcap.
513
3b7ed871
UD
5142002-12-28 Ulrich Drepper <drepper@redhat.com>
515
516 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
517
b25a62a8
UD
5182002-12-28 Andreas Jaeger <aj@suse.de>
519
520 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
521 avoid warning.
522 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
523
270d9d47
UD
5242002-12-27 Jakub Jelinek <jakub@redhat.com>
525
526 * inet/herrno.c (__h_errno_location): Remove.
527 * inet/Makefile (routines): Add herrno-loc.
528 * resolv/res_libc.c (__res_state): Remove.
529 * resolv/Makefile (routines): Add res-state.
530 * sysdeps/generic/herrno-loc.c: New file.
531 * sysdeps/generic/res-state.c: New file.
532
afb2e954
UD
5332002-12-27 Jakub Jelinek <jakub@redhat.com>
534
535 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
536 Only define if USE_DL_SYSINFO is defined.
537
5382002-12-22 Jakub Jelinek <jakub@redhat.com>
539
540 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
541 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
542 Define. Patch by Richard Henderson and Jes Sorensen.
543 (PSEUDO): Remove unnecessary ;;.
544 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
545 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
546 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
547 if not initializing thread pointer.
548 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
549 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
550 make it weak also if NONTLS_INIT_TP.
551 * sysdeps/unix/common/pause.c: Handle cancellation.
552 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
553 (LOADSYSCALL): Remove.
554 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
555 (SYSCALL_ERROR_HANDLER): Use it.
556 (PSEUDO): Don't jump around error handler.
557 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
558 jump around error handler.
559 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
560 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
561 to __syscall_error_handler on failure.
562 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
563 (LOADSYSCALL): Remove.
564 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
565 (SYSCALL_ERROR_HANDLER): Use it.
566 (PSEUDO): Don't jump around error handler.
567 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
568 jump around error handler.
569 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
570 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
571 to __syscall_error_handler on failure.
572
e01b7873
RM
5732002-12-27 Roland McGrath <roland@redhat.com>
574
575 * scripts/gen-as-const.awk: New file.
576 * Makefile (distribute): Add it.
577 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
578 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
579 to the list.
580 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
581
4f172c25
AS
5822002-12-27 Andreas Schwab <schwab@suse.de>
583
e01b7873 584 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
4f172c25 585
08e49216
RM
5862002-12-27 Jakub Jelinek <jakub@redhat.com>
587
588 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
589 _environ is NULL.
590
e48cf678
RM
5912002-12-27 Andreas Schwab <schwab@suse.de>
592
593 * Makerules ($(common-objpfx)%.make): Filter through
594 $(sed-remove-objpfx).
595
c823a4d2
RM
5962002-12-23 Roland McGrath <roland@redhat.com>
597
598 * scripts/abilist.awk: Produce a more compact format, divided into
599 stanzas for each version set, the set name listed only once.
600 * scripts/extract-abilist.awk: New file.
601 * scripts/merge-abilist.awk: New file.
602 * Makerules (check-abi-%, update-abi-%): New pattern rules.
603 (update-abi, check-abi): New targets.
604 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
605
b27b002d
RM
6062002-12-19 Roland McGrath <roland@redhat.com>
607
c823a4d2
RM
608 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
609
b27b002d
RM
610 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
611 INTERNAL_SYSCALL.
612
a1bc30d7
UD
6132002-12-21 Andreas Schwab <schwab@suse.de>
614
615 * elf/check-textrel.c (handle_file): Swap p_type.
616
257757f8
AS
6172002-12-21 Andreas Schwab <schwab@suse.de>
618
619 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
620 (INLINE_SYSCALL): Use it.
621 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
9ff11db4 622 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
257757f8
AS
623
624 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
625 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
626
e361ccd9
UD
6272002-12-20 Art Haas <ahaas@airmail.net>
628
629 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
630 syntax to C99.
631
6322002-12-21 Philip Blundell <philb@gnu.org>
633
634 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
635 top as seventh arg to __libc_start_main.
636 Reported by paulnash@wildseed.com.
637
638 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
639
640 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
641 compatibility cruft when new enough kernel is assumed.
642
7e791f32
UD
6432002-12-20 Jakub Jelinek <jakub@redhat.com>
644
645 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
646 instead of INLINE_SYSCALL.
647
48f936a2
UD
6482002-12-20 Ulrich Drepper <drepper@redhat.com>
649
505b474d
UD
650 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
651 typo.
652
48f936a2
UD
653 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
654 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
655 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
656 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
657 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
658 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
659 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
660 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
661 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
662 Patch by William Lee Irwin <wli@holomorphy.com>.
663
6642002-12-20 Andreas Schwab <schwab@suse.de>
665
666 * locale/programs/ld-measurement.c (measurement_output): Fix
667 index calculation.
668
676fde70
UD
6692002-12-20 Ulrich Drepper <drepper@redhat.com>
670
1561bf63
UD
671 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
672 Redefine _IO_flockifle and _IO_funlockfile as inlines.
673
676fde70
UD
674 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
675 builds add "tls" in the search path.
676 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
677 (path_hwcap): Recognize "tls".
678
5f5843e3
UD
6792002-12-19 Ulrich Drepper <drepper@redhat.com>
680
676fde70
UD
681 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
682 __waitpid instead of waitpid.
683
057c823f
UD
684 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
685 int $0x80.
686 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
687 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
688 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
689
5f5843e3
UD
690 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
691 information for system calls.
692
693 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
694 for ld.so.
695
696 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
697
7e1f8b2e
RM
6982002-12-19 Roland McGrath <roland@redhat.com>
699
700 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
701 * iconvdata/ibm922.h: Likewise.
702 * iconvdata/ibm930.h: Likewise.
703 * iconvdata/ibm932.h: Likewise.
704 * iconvdata/ibm933.h: Likewise.
705 * iconvdata/ibm935.h: Likewise.
706 * iconvdata/ibm937.h: Likewise.
707 * iconvdata/ibm939.h: Likewise.
708 * iconvdata/ibm943.h: Likewise.
709 * iconvdata/isiri-3342.h: Likewise.
710
3325198e
UD
7112002-12-19 Ulrich Drepper <drepper@redhat.com>
712
55033a44
UD
713 * test-skeleton.c (main): Make sure correct value is seen as
714 argv[0] after adjustment of argv, and argc.
715
3325198e
UD
716 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
717 RTLD_CORRECT_DYNAMIC_WEAK is defined.
718
74e8f2dc
UD
7192002-12-19 Jakub Jelinek <jakub@redhat.com>
720
721 * nscd/connections.c (nscd_run): Shut up warning.
722 * tst-ungetc.c (assert): Undefined before redefining.
723
7242002-12-19 Ulrich Drepper <drepper@redhat.com>
725
726 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
727 is used.
728
7292002-12-17 Art Haas <ahaas@airmail.net>
730
731 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
732 * iconvdata/cp775.h: Likewise.
733 * iconvdata/ibm1046.h: Likewise.
734 * iconvdata/ibm1124.h: Likewise.
735 * iconvdata/ibm1129.h: Likewise.
736 * iconvdata/ibm1132.h: Likewise.
737 * iconvdata/ibm1133.h: Likewise.
738 * iconvdata/ibm1160.h: Likewise.
739 * iconvdata/ibm1161.h: Likewise.
740 * iconvdata/ibm1162.h: Likewise.
741 * iconvdata/ibm1163.h: Likewise.
742 * iconvdata/ibm1164.h: Likewise.
743
7d092b69
UD
7442002-12-19 Ulrich Drepper <drepper@redhat.com>
745
746 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
747 __ASSUME_CLONE_THREAD_FLAGS is defined.
748 * sysdeps/unix/sysv/linux/kernel-features.h
74e8f2dc 749 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
7d092b69 750
5e289179
UD
7512002-12-18 Ulrich Drepper <drepper@redhat.com>
752
7d092b69
UD
753 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
754 of asm.
755 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
756
5e289179
UD
757 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
758 _dl_sysinfo.
759 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
760 code.
761 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
762 _rtld_global.
763 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
764 code.
765 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
766 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
767 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
768 Add _dl_sysinfo.
769
99326cd4
UD
7702002-12-18 Jakub Jelinek <jakub@redhat.com>
771
772 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
773 __libc_writev to...
774 [libc: GLIBC_PRIVATE]: ...here.
775 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
776 __libc_msgsnd to...
777 [libc: GLIBC_PRIVATE]: ...here.
778
f051627f
UD
7792002-12-18 Ulrich Drepper <drepper@redhat.com>
780
781 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
782 Use it instead of directly int $0x80.
783 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
784 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
785 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
786 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
787 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
788 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
789
ff4056c0
UD
7902002-12-17 Ulrich Drepper <drepper@redhat.com>
791
6ed5da8f
UD
792 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
793
ff4056c0
UD
794 * elf/elf.h (AT_SYSINFO): New define.
795 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
796 AT_SYSINFO.
797
f077a4a9
UD
7982002-12-17 Jakub Jelinek <jakub@redhat.com>
799
82f81a90
UD
800 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
801 Make cancelable.
802 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
803 Likewise.
804 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
805 Likewise.
806 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
807 Likewise.
808 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
809 Likewise.
810 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
811
f077a4a9
UD
812 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
813 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
814 available, otherwise __libc_maybe_call.
815 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
816 cancellation handling.
817 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
818
a7d5c291
UD
8192002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
820
821 * posix/regcomp.c (free_workarea_compile): Free the new member
822 ORG_INDICES.
823 (analyze): Initialize ORG_INDICES.
824 (duplicate_node_closure): Search for a existing node, which is
825 duplicated from the node ORG_DEST and satisfies the constraint
826 CONSTRAINT. And use it to avoid inifimite loop.
827 (search_duplicated_node): New function.
828 (duplicate_node): Store the index of the original node.
829 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
830 if needed.
831 * posix/regex_internal.h (re_dfa_t): Add new members.
832
0bc02a40
UD
8332002-12-17 Ulrich Drepper <drepper@redhat.com>
834
835 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
836
26a026b9
UD
8372002-12-16 Ulrich Drepper <drepper@redhat.com>
838
3ca97e8f
UD
839 * sysdeps/posix/system.c (do_system): Add support for installation
840 of cancellation handlers.
841 * sysdeps/unix/sysv/linux/i386/system.c: New file.
842
843 * stdlib/Makefile (tests): Add tst-system.
844 * stdlib/tst-system.c: New file.
845
26a026b9
UD
846 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
847 CENABLE]: Don't lose content of %ebx.
848
bd499a3b
UD
8492002-12-17 Jakub Jelinek <jakub@redhat.com>
850
851 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
852 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
853
64ab2317
UD
8542002-12-16 Ulrich Drepper <drepper@redhat.com>
855
856 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
857 fails to return a function pointer don't use it.
858
f83c7164
UD
8592002-12-16 Art Haas <ahaas@airmail.net>
860
861 * io/ftw.c: Convert GCC extension initializer syntax to C99.
bd499a3b
UD
862 * iconvdata/iso-ir-165.c: Likewise.
863 * iconvdata/jis0208.c: Likewise.
864 * iconvdata/jis0212.c: Likewise.
f83c7164 865
ad3bf20c
UD
8662002-12-16 Ulrich Drepper <drepper@redhat.com>
867
868 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
869 epoll_ctl, and epoll_wait.
870 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
871 epoll_create, epoll_ctl, and epoll_wait.
87d60668
UD
872 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
873 Davide Libenzi <davidel@xmailserver.org>.
ad3bf20c
UD
874 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
875 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
876 Add sys/epoll.h.
877
8782002-12-16 Art Haas <ahaas@airmail.net>
879
880 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
881 syntax to C99
87d60668
UD
882 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
883 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
884 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
ad3bf20c 885
0a1063f4
UD
8862002-12-16 Ulrich Drepper <drepper@redhat.com>
887
888 * stdio-common/Makefile (routines): Remove lockfile. Add
889 flockfile, ftrylockfile, and funlockfile.
890 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
891 * sysdeps/generic/flockfile.c: New file.
892 * sysdeps/generic/ftrylockfile.c: New file.
893 * sysdeps/generic/funlockfile.c: New file.
894
9634cf9d
UD
8952002-12-16 Jakub Jelinek <jakub@redhat.com>
896
897 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
898 macros instead of doing the calls directly.
899 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
900 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
901 targets.
902
9032002-12-16 Jakub Jelinek <jakub@redhat.com>
904
905 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
906 * sysdeps/ieee754/bits/nan.h: Likewise.
907
908 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
909 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
910
344b1fe5
RM
9112002-12-16 Roland McGrath <roland@redhat.com>
912
913 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
914 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
915 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
916
917 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
918 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
919 s_putpmsg.
920 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
921 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
922 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
923 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
924 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
925 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
926 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
927 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
928
fd4c894c
RM
9292002-12-13 Paul Eggert <eggert@twinsun.com>
930
931 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
932 is now u_int, not int.
933 (struct XDR.x_handy): Now u_int, not int.
934 * sunrpc/xdr_mem.c: Include <limits.h>.
935 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
936 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
937 x_handy is now unsigned, not signed.
938 Do not decrement x_handy if no change is made.
939 (xdrmem_setpos): Check for int overflow.
940 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
941 (xdr_sizeof): Remove cast that is now unnecessary, now that
942 x_handy is unsigned.
943
0274d73c
RM
9442002-12-15 Art Haas <ahaas@airmail.net>
945
946 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
947 * iconvdata/gap.awk: Likewise.
948 * iconvdata/gen-8bit-gap-1.sh: Likewise.
949 * iconvdata/gen-8bit-gap.sh: Likewise.
950 * locale/C-address.c: Likewise.
951 * locale/C-collate.c: Likewise.
952 * locale/C-ctype.c: Likewise.
953 * locale/C-identification.c: Likewise.
954 * locale/C-measurement.c: Likewise.
955 * locale/C-messages.c: Likewise.
956 * locale/C-monetary.c: Likewise.
957 * locale/C-name.c: Likewise.
958 * locale/C-numeric.c: Likewise.
959 * locale/C-paper.c: Likewise.
960 * locale/C-telephone.c: Likewise.
961 * locale/C-time.c: Likewise.
962 * nscd/connections.c: Likewise.
963 * nscd/grpcache.c: Likewise.
964 * nscd/hstcache.c: Likewise.
965 * nscd/pwdcache.c: Likewise.
966 * stdio-common/vfprintf.c: Likewise.
967 * stdlib/random.c: Likewise.
968 * sysdeps/generic/siglist.c: Likewise.
969 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
970 * sysdeps/ieee754/bits/nan.h: Likewise.
971 * sysdeps/posix/sprofil.c: Likewise.
972 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
973 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
974 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
975
c2e13112
RM
9762002-12-15 Roland McGrath <roland@redhat.com>
977
978 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
979
980 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
981 <tls.h> here, no need for it.
982 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
983
984 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
985 parameter, not varargs parameter.
986
987 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
988 argument so it's not an unused variable.
989
990 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
991 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
992 for users.
993
994 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
995
f3015aa5
UD
9962002-12-15 Ulrich Drepper <drepper@redhat.com>
997
998 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
999 original __libc_fcntl code. Just renamed.
1000
8b6cf669
AS
10012002-12-15 Andreas Schwab <schwab@suse.de>
1002
f3015aa5 1003 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
8b6cf669 1004
f3015aa5 10052002-12-14 Olaf Hering <olh@suse.de>
7ad6b6eb 1006
f3015aa5
UD
1007 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
1008 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
7ad6b6eb 1009
6ee8d334
UD
10102002-12-15 Ulrich Drepper <drepper@redhat.com>
1011
0d5f4929
UD
1012 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
1013
6ee8d334
UD
1014 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
1015 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
1016
1017 * sysdeps/unix/sysv/linux/open64.c: New file.
1018
1019 * sysdeps/generic/pselect.c: Add support for cancellation handling.
1020 * sysdeps/posix/open64.c: Likewise.
1021 * sysdeps/posix/sigpause.c: Likewise.
1022 * sysdeps/posix/sigwait.c: Likewise.
1023 * sysdeps/posix/system.c: Likewise.
1024 * sysdeps/posix/waitid.c: Likewise.
1025 * sysdeps/unix/sysv/linux/accept.S: Likewise.
1026 * sysdeps/unix/sysv/linux/connect.S: Likewise.
1027 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
1028 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
1029 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
1030 * sysdeps/unix/sysv/linux/poll.c: Likewise.
1031 * sysdeps/unix/sysv/linux/pread.c: Likewise.
1032 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
1033 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
1034 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
1035 * sysdeps/unix/sysv/linux/readv.c: Likewise.
1036 * sysdeps/unix/sysv/linux/recv.S: Likewise.
1037 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
1038 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
1039 * sysdeps/unix/sysv/linux/send.S: Likewise.
1040 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
1041 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
1042 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
1043 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
1044 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
1045 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1046 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
1047 * sysdeps/unix/sysv/linux/wait.c: Likewise.
1048 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
1049 * sysdeps/unix/sysv/linux/writev.c: Likewise.
1050 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1051 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
1052
86b2dc40
UD
10532002-12-14 Jakub Jelinek <jakub@redhat.com>
1054
1055 * sysdeps/generic/sysdep-cancel.h: New file.
1056 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
1057 cancelable syscall.
1058 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
1059 recvmsg, send, sendmsg, sendto): Make cancelable.
1060 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
1061 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
1062 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
1063 sendto, osf_select): Likewise.
1064 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
1065 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
1066 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
1067 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
1068 sendto): Likewise.
1069 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
1070 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
1071 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
1072 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
1073 sendto): Likewise.
1074 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
1075 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
1076 sendto, select): Likewise.
1077 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
1078 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
1079 Likewise.
1080 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
1081 select, fcntl): Likewise.
1082 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
1083 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
1084 read, readv, select, sigsuspend, write, writev): Likewise.
1085
9d263d72
UD
10862002-12-14 Jakub Jelinek <jakub@redhat.com>
1087
1088 * dirent/bug-readdir1.c: Include unistd.h.
1089
36b3f3eb
UD
10902002-12-13 Jakub Jelinek <jakub@redhat.com>
1091
1092 * locale/programs/locale.c: Include locarchive.h.
1093 (ARCHIVE_NAME): Define.
1094 (write_archive_locales): New function.
1095 (write_locales): Use it. Ensure the same locale is not printed
1096 multiple times in verbose mode.
1097 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
1098 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
1099 functions.
1100 (struct nameent): New type.
1101 (nameentcmp): New function.
1102
83b038f2
RM
11032002-12-14 Jakub Jelinek <jakub@redhat.com>
1104
1105 * posix/regex_internal.c (re_string_context_at): Guard wide char
1106 code with #ifdef RE_ENABLE_I18N.
1107
11082002-11-22 Paolo Bonzini <bonzini@gnu.org>
1109
1110 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
1111
63b11dd1
RM
11122002-12-13 Roland McGrath <roland@redhat.com>
1113
1114 * posix/bug-regex15.c: New file.
1115 * posix/Makefile (tests): Add it.
1116
1117 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
1118 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
1119
9ae0909b
UD
11202002-12-13 Ulrich Drepper <drepper@redhat.com>
1121
d94e16c4
UD
1122 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
1123
9ae0909b
UD
1124 * misc/syslog.c (log_cleanup): Don't use parameter in
1125 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
1126 pass NULL instead of a pointer to syslog_lock.
1127
2ad2e1e7
UD
11282002-12-12 Ulrich Drepper <drepper@redhat.com>
1129
1a1fa200
UD
1130 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
1131 linker map for all iconv modules.
1132 (distribute): Add gconv.map.
1133 * iconvdata/gconv.map: New file.
1134
b4c98dc4
UD
1135 * elf/Makefile: Also check all iconv modules for text relocations.
1136
fc618fd0
UD
1137 * stdlib/Makefile: Remove code to automatically import GMP.
1138
efd56f53
UD
1139 * elf/Makefile (tests): Add rules to build and run check-textrel.
1140 * elf/check-textrel.c: New file.
1141
2ad2e1e7
UD
1142 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
1143 directive.
1144
688e7bfe
UD
11452002-12-11 Jakub Jelinek <jakub@redhat.com>
1146
1147 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
1148 not st.st[am]time.
1149
57f97cff
UD
11502002-04-30 Bruno Haible <bruno@clisp.org>
1151
1152 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
1153 the encoding if it already has slashes.
1154 Reported by Perry Rapp <prapp@erols.com>.
1155
d004f303
RM
11562002-12-11 Roland McGrath <roland@redhat.com>
1157
1158 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
1159 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
1160 Turn off PIC for compiling this file.
1161
f494b70b
UD
11622002-12-11 Ulrich Drepper <drepper@redhat.com>
1163
1164 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
1165 definitions. Not needed.
1166 [_LIBC]: Use definitions from libc-lock.h instead of referencing
1167 pthread routines directly.
1168 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
1169 mutex_init calls.
1170 (arena_get2): Don't look at return value of mutex_lock.
1171
6161ef14
RM
11722002-12-11 Roland McGrath <roland@redhat.com>
1173
1174 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
1175 elf-init.o instead of compiling a PIC version.
1176
0f131646
RM
11772002-12-11 Bruno Haible <bruno@clisp.org>
1178
1179 * intl/gettext.h: Renamed to ...
1180 * intl/gmo.h: ... here.
1181 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
1182 * intl/gettextP.h: Update.
1183 * intl/loadmsgcat.c: Update.
1184
1185 * intl/gettextP.h (PARAMS): Make more portable.
1186 (attribute_hidden): Define as empty macro if not already defined.
1187 * intl/hash-string.h (PARAMS): Make more portable.
1188 * intl/loadinfo.h (PARAMS): Likewise.
1189 * intl/plural-exp.h (PARAMS): Likewise.
1190 (attribute_hidden): Move definition near the definition of
1191 internal_function.
1192
1193 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
1194 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
1195
11962002-07-13 Bruno Haible <bruno@clisp.org>
1197
1198 * intl/dcigettext.c (freea): New macro.
1199 (FREE_BLOCKS): Free also the registered blocks.
1200 (DCIGETTEXT): Free the 'search' variable.
1201 Reported by Andreas Fischer <a.fischer@asentics.de>.
1202
12032002-04-27 Bruno Haible <bruno@clisp.org>
1204
1205 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
1206 * intl/dcigettext.c: Likewise.
1207 * intl/dcgettext.c: Likewise.
1208 * intl/dgettext.c: Likewise.
1209 * intl/gettext.c: Likewise.
1210 * intl/dcngettext.c: Likewise.
1211 * intl/dngettext.c: Likewise.
1212 * intl/ngettext.c: Likewise.
1213 * intl/textdomain.c: Likewise.
1214 * intl/bindtextdom.c: Likewise.
1215 * intl/plural-exp.h: Likewise.
1216
12172002-01-02 Bruno Haible <bruno@clisp.org>
1218
1219 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
1220
12212001-04-30 Bruno Haible <bruno@clisp.org>
1222
1223 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
1224 default macro definitions. Needed for mingw32.
1225
9cfd8172
UD
12262002-12-10 Ulrich Drepper <drepper@redhat.com>
1227
70a8ca6d
UD
1228 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
1229 __builtin_constant_p to macro parameter.
1230
34a075be
UD
1231 * sysdeps/generic/sigpause.c: Define all functions as weak.
1232 * sysdeps/posix/sigpause.c: Likewise.
9cfd8172
UD
1233
1234 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
1235 type size_t.
1236
dce8f2b6
UD
12372002-12-10 Jakub Jelinek <jakub@redhat.com>
1238
d0045334
RM
1239 * elf/tst-array1.c (preinit_array, init_array, fini_array):
1240 Explicitly align the array to sizeof (void *).
1241 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
1242
dce8f2b6
UD
1243 * include/libc-symbols.h: Fix a comment typo.
1244
1245 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
1246 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
1247 Likewise.
1248 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
1249 Likewise.
1250 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
1251 (__libc_sigsuspend): Likewise.
1252 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
1253 (__libc_sigsuspend): Likewise.
1254 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
1255 (creat): New weak alias.
1256
2402cdf3
RM
12572002-12-10 Roland McGrath <roland@redhat.com>
1258
f0baa823
RM
1259 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
1260 contributes a manual chapter.
1261 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
1262 around xref to it.
1263
2402cdf3
RM
1264 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
1265 and move contents to ...
1266 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
1267 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
1268 it instead of duplicating its contents.
1269 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
1270
12712002-12-09 Jakub Jelinek <jakub@redhat.com>
1272
1273 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
1274 defined.
1275 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
1276 function.
1277 (EXTRA_LD_ENVVARS): Use it.
1278 (DL_OSVERSION_INIT): Define.
1279 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
1280 dl-librecon.h.
1281 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
1282
5a6dcd0d
UD
12832002-12-10 Ulrich Drepper <drepper@redhat.com>
1284
818d08de
UD
1285 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
1286
5a6dcd0d
UD
1287 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
1288 call. It is not allowed to destroy pthread mutexes which are
1289 still in use even though it is safe for our implementations. If
1290 somebody still uses the descriptor it is a bug.
1291
741e0d64
RM
12922002-12-09 Richard Henderson <rth@redhat.com>
1293
1294 * csu/abi-note.S: Use .p2align, not .align.
1295
e5e45b53
UD
12962002-12-09 Ulrich Drepper <drepper@redhat.com>
1297
1298 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
1299 __libc_select aliases.
1300
1301 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
1302 alias.
1303
1304 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
1305
1306 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
1307
1308 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
1309
1310 * sysdeps/unix/syscalls.list: Define __libc_select alias.
1311
1312 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
1313
1314 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
1315 __libc___xpg_sigpause aliases.
1316
1317 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
1318
1319 * misc/error.c: Remove use of USE_IN_LIBIO.
1320
57b4cb25
RM
13212002-12-08 Roland McGrath <roland@redhat.com>
1322
06b31ad3
RM
1323 * elf/Makefile (tests): Uncomment tst-array[123].
1324 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
1325 * csu/elf-init.c: New file.
1326 * csu/Makefile (routines, static-only-routines): Add elf-init.
1327 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
1328 and __libc_csu_fini in place of _fini.
1329 * sysdeps/arm/elf/start.S: Likewise.
1330 * sysdeps/cris/elf/start.S: Likewise.
1331 * sysdeps/hppa/elf/start.S: Likewise.
1332 * sysdeps/i386/elf/start.S: Likewise.
1333 * sysdeps/ia64/elf/start.S: Likewise.
1334 * sysdeps/m68k/elf/start.S: Likewise.
1335 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
1336 * sysdeps/mips/elf/start.S: Likewise.
1337 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
1338 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
1339 * sysdeps/s390/s390-32/elf/start.S: Likewise.
1340 * sysdeps/s390/s390-64/elf/start.S: Likewise.
1341 * sysdeps/sh/elf/start.S: Likewise.
1342 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
1343 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
1344 * sysdeps/x86_64/elf/start.S: Likewise.
1345
57b4cb25
RM
1346 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
1347 struct containing function ptr and value, free it.
1348 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
1349 It's not safe to let the new thread use the SIGEV pointer.
1350
531da978
RM
13512001-10-20 Paul Eggert <eggert@twinsun.com>
1352
1353 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
1354 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
1355 Use strerror_r that is only a macro, even if it is not a function.
1356 (strerror): Check for HAVE_DECL_STRERROR before declaring.
1357 (private_strerror): Use prototypes, not old-style function definition.
1358 (print_errno_message): New function.
1359 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
1360 char*-flavored one.
1361 (error_tail, error, error_at_line): Use it.
1362
f92921c5
UD
13632002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
1364
1365 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
1366
3335502b
UD
13672002-12-08 Ulrich Drepper <drepper@redhat.com>
1368
bdb04f92
UD
1369 * scripts/output-format.sed: Fix bug in one of the s expressions
1370 which used / for one too many things.
1371
3335502b
UD
1372 * include/unistd.h: Declare __libc_close.
1373
09efc3ba
UD
13742002-12-07 Ulrich Drepper <drepper@redhat.com>
1375
1376 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
1377
82412d54
RM
13782002-12-07 Roland McGrath <roland@redhat.com>
1379
1380 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
1381 from 2002-12-06, but remove unnecessary memset call without removing
1382 necessary copy of initialization image.
1383
1384 * Makerules ($(common-objpfx)format.lds): New target.
1385 (common-generated): Add it.
1386 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
1387 * scripts/output-format.sed: New file.
1388 * Makefile (distribute): Add it.
1389
99343c05
UD
13902002-12-07 Ulrich Drepper <drepper@redhat.com>
1391
1392 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
1393 Reported by Art Haas <ahaas@airmail.net>.
1394
82412d54 13952002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
739ca690
UD
1396
1397 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
1398
13992002-12-07 Jakub Jelinek <jakub@redhat.com>
1400
1401 * string/test-strncpy.c (do_random_tests): Improve test coverage.
1402
85d1401f
UD
14032002-12-06 Ulrich Drepper <drepper@redhat.com>
1404
4614167a
UD
1405 * test-skeleton.c (timeout_handler): Allow expected signal to be
1406 SIGALRM.
1407
85d1401f
UD
1408 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
1409
1410 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
1411
9bd9c815
UD
14122002-12-07 Jakub Jelinek <jakub@redhat.com>
1413
1414 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
1415 (SYSCALL_ERROR_HANDLER): Fix a pasto.
1416 Reported by Jeff Bailey <jbailey@nisa.net>.
1417
01cec3ed
UD
14182002-12-06 Ulrich Drepper <drepper@redhat.com>
1419
01054d37
UD
1420 * sysdeps/generic/libc-tls.c: Undo last patch.
1421
13ece897
UD
1422 * include/wctype.h: Define iswalnum with libc_hidden_proto.
1423
1424 * include/signal.h: Define raise with libc_hidden_proto.
1425
1426 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
1427 __execve instead of snprintf and execve.
1428
01cec3ed
UD
1429 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
1430 again a bit.
1431
593d2ac8
RM
14322002-12-06 Jakub Jelinek <jakub@redhat.com>
1433
1434 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
1435 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
1436
d3c9f895
UD
14372002-12-06 Ulrich Drepper <drepper@redhat.com>
1438
1439 * misc/syslog.c (log_cleanup): New function.
1440 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
1441 (closelog): Likewise.
1442
1443 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
1444 * elf/dl-iteratephdr.c: Likewise.
1445 * elf/dl-lookup.c: Likewise.
1446 * elf/dl-misc.c: Likewise.
1447 * elf/dl-open.c: Likewise.
1448 * elf/dl-support.c: Likewise.
1449 * elf/rtld.c: Likewise.
1450 * sysdeps/generic/ldsodefs.h: Likewise.
1451 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
1452 * sysdeps/mach/bits/libc-lock.h: Likewise.
1453 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
1454
fde89ad0
RM
14552002-12-06 Roland McGrath <roland@redhat.com>
1456
1457 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
1458
1459 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
1460 (malloc_starter, memalign_starter, free_starter): Don't define these.
1461 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
1462 Don't declare them either.
1463 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
1464 __pthread_initialize, so no need to set hooks to *_starter.
1465 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
1466 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
1467 (__libc_malloc_pthread_startup): New function.
1468 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
1469
1470 * malloc/hooks.c (memalign_starter): New function.
1471 * malloc/malloc.c: Declare it.
1472 * malloc/arena.c (save_memalign_hook): New variable.
1473 (ptmalloc_init): Set __memalign_hook to memalign_starter.
1474
1475 * elf/dl-minimal.c (free): Clear the memory.
1476 (calloc): Just call malloc, knowing all memory it returns is cleared.
1477
1478 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
1479 malloc and memset; calloc can avoid the zeroing when redundant.
1480 (_dl_tls_setup): Likewise.
1481 * elf/dl-load.c (decompose_rpath): Likewise.
1482 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
1483 call, since memory from sbrk at startup is already zero.
1484
1485 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
1486 error string for failure, null for success. Update callers.
1487 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
1488 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1489
9cf6fef1
RM
14902002-12-05 Jakub Jelinek <jakub@redhat.com>
1491
1492 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
1493 args to i:iipi.
1494 (readahead): Change args to i:iii.
1495 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
1496 Change args to i:iii.
1497 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
1498 args to i:iiii.
1499
ca4961c0
RM
15002002-12-05 Roland McGrath <roland@redhat.com>
1501
1502 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
1503 call all functions rather than none.
1504 Reported by Mark P. Mitchell <mark@codesourcery.com>.
1505
cbf949bb
RM
15062002-12-04 Roland McGrath <roland@redhat.com>
1507
1508 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
1509 on _nl_current_LC_* variables.
1510
bf6fc6c1
UD
15112002-12-05 Ulrich Drepper <drepper@redhat.com>
1512
d3c9f895 1513 * dirent/bug-readdir1.c (main): Don't call closedir, just close
bf6fc6c1
UD
1514 the file descriptor. This is testing what the bug report was about.
1515
c4a6d859
UD
15162002-12-04 Ulrich Drepper <drepper@redhat.com>
1517
d8d31745
UD
1518 * po/be.po: New file.
1519
c4a6d859
UD
1520 * argp/Makefile (tests): Add tst-argp1.
1521
eaa4099f
UD
1522 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
1523 Change type of _attribute to void*.
1524 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
1525 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
1526 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
1527 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
1528 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
1529
216455bc
RM
15302002-12-04 Roland McGrath <roland@redhat.com>
1531
1532 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
1533 members to the end, so a libpthread compiled with !USE_TLS will still
1534 find other members properly.
1535
1536 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
1537 operand for DEST memory. Fix dummy input operand to use SRC.
1538 Reported by Davin McCall <davmac@ozonline.com.au>.
1539
1540 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
1541 alignment when initializing the DTV entry.
1542
1543 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
1544 when TLS has not been set up, try to set it up if we can.
1545 * elf/tst-tls4.c: Revert last change.
1546 * elf/tst-tls5.c: Likewise.
1547 * elf/tst-tls6.c: Likewise.
1548 * elf/tst-tls7.c: Likewise.
1549 * elf/tst-tls8.c: Likewise.
1550 * elf/tst-tls9.c: Likewise.
1551
1552 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
1553 * sysdeps/generic/ldsodefs.h: Declare it.
1554 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
1555 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
1556 function, broken out of __libc_setup_tls.
1557 (init_static_tls): Likewise.
1558 (__libc_setup_tls): Call them.
1559 (_dl_tls_setup): New function, uses new subroutines.
1560
1561 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
1562 Clear the pointer when returning true.
1563 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
1564 first element of the slotinfo list too.
1565
1566 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
1567 [SHARED].
1568
1569 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
1570 (_dl_determine_tlsoffset): Likewise.
1571
1572 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
1573 startup_error_tsd, made global.
1574 (dl_main): Update initialization.
1575 * elf/dl-tsd.c: Likewise.
1576 * sysdeps/generic/ldsodefs.h: Declare it.
1577
d16055ee
UD
15782002-12-03 Ulrich Drepper <drepper@redhat.com>
1579
1580 * manual/texinfo.tex: Update from latest upstream version.
1581
b15c9395
RM
15822002-12-03 Roland McGrath <roland@redhat.com>
1583
852ce9bc
RM
1584 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
1585 area surplus in calculation for sbrk call.
1586
b15c9395
RM
1587 * iconvdata/cp1125.c: New file.
1588 * iconvdata/Makefile (distribute): Add it.
1589 (modules): Add CP1125.
1590 (gen-8bit-gap-modules): Add cp1125.
1591 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
1592 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
1593
347ae8d4
AJ
15942002-12-03 Andreas Jaeger <aj@suse.de>
1595
1596 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
1597
918bd861
UD
15982002-12-03 Ulrich Drepper <drepper@redhat.com>
1599
1600 * sysdeps/posix/system.c (do_system): Make signal handler
1601 installation thread safe.
1602
b8d7c8c1
RM
16032002-12-02 Roland McGrath <roland@redhat.com>
1604
1605 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
1606 caller from EXTRA to -.
1607 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1608 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1609 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1610
fa9a4ff0
RM
16112002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
1612
1613 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
1614 bits of RM are cleared.
1615
2d148689
RM
16162002-12-02 Roland McGrath <roland@redhat.com>
1617
1618 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
1619 TLS setup is required.
1620 * elf/tst-tls5.c: Likewise.
1621 * elf/tst-tls6.c: Likewise.
1622 * elf/tst-tls7.c: Likewise.
1623 * elf/tst-tls8.c: Likewise.
1624 * elf/tst-tls9.c: Likewise.
1625
1626 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
1627 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
1628 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
1629 for being null before calling free_slotinfo.
1630 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
1631 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
1632
f9ad060c
UD
16332002-11-30 Bruno Haible <bruno@clisp.org>
1634
1635 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
1636 (struct __gconv_step): New field __btowc_fct.
1637 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
1638 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
1639 __BUILTIN_TRANS.
1640 (__gconv_btwoc_ascii): New declaration.
1641 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
1642 (__gconv_btwoc_ascii): New function.
1643 * iconv/gconv_builtin.h: Add BtowcFct argument to all
1644 BUILTIN_TRANSFORMATION invocations.
1645 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
1646 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
1647 * iconv/gconv_builtin.c (map): New field btowc_fct.
1648 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
1649 btowc_fct field.
1650 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
1651 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
1652 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
1653 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
1654 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
1655 (gconv_init): Initialize __btowc_fct field.
1656 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
1657 * iconv/loop.c: Document ONEBYTE_BODY.
1658 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
1659 Undefine ONEBYTE_BODY at the end.
1660 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
1661 * iconvdata/8bit-gap.c (NONNUL): New macro.
1662 (BODY for FROM_LOOP): Use it.
1663 (ONEBYTE_BODY): New macro.
1664 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
1665 (NONNUL): New macro.
1666 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
1667 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
1668 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
1669 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
1670 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
1671 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
1672 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
1673 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
1674 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
1675 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
1676 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
1677 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
1678 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
1679 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
1680 * iconvdata/ibm932.c: Include <stdbool.h>.
1681 (TRUE, FALSE): Remove macros.
1682 (BODY for FROM_LOOP): Remove unused variable rp1.
1683 (ONEBYTE_BODY): New macro.
1684 (BODY for TO_LOOP): Use bool.
1685 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
1686 * iconvdata/ibm943.c: Include <stdbool.h>.
1687 (TRUE, FALSE): Remove macros.
1688 (BODY for FROM_LOOP): Remove unused variable rp1.
1689 (ONEBYTE_BODY): New macro.
1690 (BODY for TO_LOOP): Use bool.
1691 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
1692 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
1693 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
1694 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
1695 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
1696 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
1697 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
1698 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
1699 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
1700 * iconvdata/gbbig5.c: Tweak comment.
1701
00a13bbd
UD
17022002-12-02 Ulrich Drepper <drepper@redhat.com>
1703
1704 * po/fi.po: Update from translation team.
1705
dde2652b
RM
17062002-12-01 Roland McGrath <roland@redhat.com>
1707
36654964
RM
1708 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
1709 testing getdents64 return value.
1710
720efe00
RM
1711 * scripts/versions.awk: Don't pass -n flag to sort command.
1712
6d342318
RM
1713 * posix/bug-regex13.c: Include <string.h>.
1714
dde2652b
RM
1715 * sysdeps/generic/libc-start.c (__libc_start_main): Do
1716 DL_SYSDEP_OSCHECK here.
1717 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
1718 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
1719
1720 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
1721 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
1722
1723 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
1724 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
1725
1726 * include/link.h: Comment typo fix.
1727
17282002-12-01 Roland McGrath <roland@frob.com>
1729
1730 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
1731 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
1732 _POSIX_MEMORY_PROTECTION): Likewise.
1733 (_POSIX_POLL, _POSIX_SELECT): Removed.
1734
cb0e76b4
UD
17352002-11-28 Ulrich Drepper <drepper@redhat.com>
1736
1737 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
1738 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
1739
ddf4ffad
UD
17402002-11-28 Jakub Jelinek <jakub@redhat.com>
1741
1742 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
1743 USE___THREAD.
1744 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
1745 "=v" constraints.
1746
acd42b78
UD
17472002-11-28 Ulrich Drepper <drepper@redhat.com>
1748
1749 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
1750 branch prediction buffers by using unpaired call/ret.
1751
d08bef80
UD
17522002-11-27 Ulrich Drepper <drepper@redhat.com>
1753
1754 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
1755 first parameters constraint string.
1756 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
1757
6291ee3c
UD
17582002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
1759
1760 * posix/regcomp.c (parse_expression): Set the bit since the back
1761 reference is used in the regular expression.
1762 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
1763 of malloc failure.
1764 (re_node_set_init_copy): Likewise.
1765 * posix/regex_internal.h (state_array_t): New structure.
1766 (re_sub_match_last_t): Likewise.
1767 (re_sub_match_top_t): Likewise.
1768 (re_match_context_t): Add new members.
1769 (re_dfa_t): Likewise.
1770 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
1771 to check the matching is really correct, and retry if failed.
1772 Move the routin pruning the impossible nodes from here, ...
1773 (prune_impossible_nodes): To this function.
1774 (check_matching): Invoke check_subexp_matching_top, and replace
1775 redundant checking with transit_state_bkref invocation.
1776 (proceed_next_node): Replace strncmp with memcmp. Reported by
1777 Paolo Bonzini <bonzini@gnu.org>.
1778 (update_cur_sifted_state): Remove search_subexp invocation.
1779 (search_subexp): Remove this function.
1780 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
1781 optimization.
1782 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
1783 Remove unused invocation of match_ctx_add_entry.
1784 (transit_state): Invoke check_subexp_matching_top.
1785 (check_subexp_matching_top): New function.
1786 (transit_state_bkref): Remove unused array.
1787 Merge transit_state_bkref_loop.
1788 (transit_state_bkref_loop): Use get_subexp instead of
1789 sift_states_backward. Use search_cur_bkref_entry for optimization.
1790 Merge this function to transit_state_bkref.
1791 (get_subexp): New function.
1792 (get_subexp_sub): Likewise.
1793 (find_subexp_node): Likewise.
1794 (check_arrival): Likewise.
1795 (check_arrival_expand_ecl): Likewise.
1796 (check_arrival_expand_ecl_sub): Likewise.
1797 (expand_bkref_cache): Likewise.
1798 (match_ctx_init): Initialize new members.
1799 (match_ctx_clean): New function.
1800 (match_ctx_free): Release new members.
1801 (match_ctx_free_subtops): New function.
1802 (match_ctx_add_entry): Fix indent.
1803 (search_cur_bkref_entry): New function.
1804 (match_ctx_add_subtop): Likewise.
1805 (match_ctx_add_sublast): Likewise.
1806
9b1a4ec3
UD
18072002-11-25 Ulrich Drepper <drepper@redhat.com>
1808
1809 * iconv/Makefile (tests): Remove tst-iconv4.c
1810 * iconv/tst-iconv4.c: Moved to...
1811 * iconvdata/tst-iconv4.c: ...here. New file.
1812 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
1813
832fd8e8
RM
18142002-11-25 Roland McGrath <roland@redhat.com>
1815
6938e63f
RM
1816 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
1817 Grok AF_LINK if defined.
1818 From Momchil Velikov <velco@fadata.bg>.
1819
1820 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
1821 brdaddr, or dstaddr, just set those pointers to null and don't fail.
1822 Reported by Momchil Velikov <velco@fadata.bg>.
1823
1824 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
1825 is > sizeof IFR->ifa_addr, advance past the whole longer length.
1826 (__ifreq): Count up NIFS that way too.
1827 Reported by Momchil Velikov <velco@fadata.bg>.
1828
1829 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
1830
832fd8e8
RM
1831 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
1832 and <fpu_control.h>.
1833
e195fbaf
UD
18342002-11-24 Ulrich Drepper <drepper@redhat.com>
1835
1836 * elf/elf.h (EM_ST19): Fix typo.
1837
983d597e
RM
18382002-11-25 Jakub Jelinek <jakub@redhat.com>
1839
1840 * include/errno.h (__set_errno): Define as errno = val
1841 unconditionally.
1842
13a571a7
RM
18432002-11-24 Roland McGrath <roland@redhat.com>
1844
bf2cc5fb
RM
1845 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
1846 * sysdeps/posix/writev.c: Likewise.
1847 From Momchil Velikov <velco@fadata.bg>.
1848
1849 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
1850 calling *GL(dl_error_catch_tsd) for a thread-local location.
1851 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
1852 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
1853 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
1854
1855 * libio/iofflush.c: Add libc_hidden_def.
1856 * libio/iofwrite.c: Likewise.
1857 * sysdeps/generic/sigtimedwait.c: Likewise.
1858 * sysdeps/generic/sigwaitinfo.c: Likewise.
1859 * sysdeps/posix/sigwait.c: Likewise.
1860 Reported by Momchil Velikov <velco@fadata.bg>.
1861
1862 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
1863 to match <arpa/inet.h> declaration.
1864 * inet/inet_netof.c (inet_netof): Likewise.
1865 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
1866 Reported by Momchil Velikov <velco@fadata.bg>.
1867
13a571a7
RM
1868 * configure.in: Skip AUTOCONF check under --without-cvs.
1869 * configure: Regenerated.
1870
1871 * posix/Makefile (headers): Add bits/pthreadtypes.h.
1872 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
1873 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
1874
d7a5c7e7
AS
18752002-11-24 Andreas Schwab <schwab@suse.de>
1876
1877 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
1878 with six arguments.
1879
93ed04cc
UD
18802002-11-19 Jim Meyering <jim@meyering.net>
1881
1882 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
1883 as `static'.
1884 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
1885
f069a143
RM
18862002-11-23 Roland McGrath <roland@redhat.com>
1887
56c71d45
RM
1888 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
1889 Just produce hex output for datum sizes.
1890
f069a143
RM
1891 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
1892 Reported by Luca Barbieri <ldb@ldb.ods.org>.
1893
a2413106 18942002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
54789f38 1895
4a32f19d
RM
1896 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
1897 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
1898 and __unused3 fields.
1899 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
1900 [__WORDSIZE == 32]: Only PPC32 requires __unused1
1901 and __unused2 fields.
1902 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
1903 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
8faa165f 1904 __unused3, and __unused4 fields.
4a32f19d 1905
a2413106
RM
1906 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
1907 obtain lowest address for profiling in __monstartup call.
54789f38 1908
1c120cb8
RM
19092002-11-21 Roland McGrath <roland@redhat.com>
1910
a2413106
RM
1911 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
1912 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
1913
54789f38
RM
1914 * locale/localeinfo.h (struct locale_data): Revert last change.
1915
1c120cb8
RM
1916 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
1917 From Ian Wienand <ianw@gelato.unsw.edu.au>.
1918
1919 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
1920 __NR_pread64 if not defined.
1921 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
1922 From Ian Wienand <ianw@gelato.unsw.edu.au>.
1923
a2413106
RM
19242002-11-21 Roland McGrath <roland@frob.com>
1925
1926 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
1927 __libc_multiple_libcs here. Call __setfpucw.
1928
755e51be
UD
19292002-11-21 Ulrich Drepper <drepper@redhat.com>
1930
5982aa10
UD
1931 * elf/Makefile (tests): Don't run test-arrayX tests for now.
1932
755e51be
UD
1933 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
1934 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
1935 CLONE_CHILD_*TID flags.
1936
714a17c3
AJ
19372002-11-20 Andreas Jaeger <aj@suse.de>
1938
1939 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
1940 We pass struct ucontext on x86-64.
1941 (GET_PC): Adjust.
1942 (GET_FRAME): Adjust.
1943 (GET_STACK): Adjust.
1944
5d0bbaaf
RM
19452002-11-20 Roland McGrath <roland@redhat.com>
1946
ab9ba655
RM
1947 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
1948 conditionalize [! DO_VERSIONING] #error.
1949
5d0bbaaf
RM
1950 * scripts/abilist.awk: Grok function descriptor symbols.
1951
1952 * intl/tst-gettext.c (main): Check return values from setlocale.
1953 Add necessary unsetenv's to make LANG=existing-locale check work.
1954
1955 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
1956 so aborted prior runs don't confuse things.
1957
1958 * locale/localeinfo.h (struct locale_data: union locale_data_value):
1959 Use uintptr_t instead of unsigned int for `word' member.
1960 (_NL_CURRENT_WORD): Cast to uint32_t.
1961
1962 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
1963 value.
1964
218d76e0
UD
19652002-11-20 Ulrich Drepper <drepper@redhat.com>
1966
eec62f42
UD
1967 * elf/tls-macros.h: Add IA-64 definitions.
1968 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
1969
d84e7efa
UD
1970 * iconv/Makefile (tests): Add tst-iconv4.
1971 * iconv/tst-iconv4.c: New file.
1972
eb9dc2a2
UD
1973 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
1974 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
1975 __GCONV_INCOMPLETE_INPUT.
1976 (ucs4le_internal_loop): Likewise.
1977 (ucs4le_internal_loop_unaligned): Likewise.
1978 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
1979 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
1980 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
1981
1982 * iconv/loop.c (LOOPFCT): First test for empty input then for full
1983 output buffer.
1984
218d76e0
UD
1985 * inet/getnameinfo.c: Use extend_alloca where appropriate.
1986 * sysdeps/posix/getaddrinfo.c: Likewise.
1987
1988 * include/alloca.h (extend_alloca): New define. Based on stack
1989 direction it'll try to append to the previouls allocated buffer.
1990
19912002-11-07 Thorsten Kukuk <kukuk@suse.de>
1992
1993 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
1994 use the same service for AF_INET and AF_INET6.
1995
19962002-11-19 Ulrich Drepper <drepper@redhat.com>
1997
1998 * intl/localealias.c (read_alias_file): Use only about 400 bytes
1999 of stack space instead of 16k.
2000
7f1b7f03
RM
20012002-11-18 Wolfram Gloger <wg@malloc.de>
2002
2003 * malloc/arena.c
2004 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
2005 nothing if not initialized. Bug report from Marcus Brinkmann
2006 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
2007
8d4d2833
RM
20082002-11-19 Roland McGrath <roland@redhat.com>
2009
f0ddeeb5
RM
2010 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
2011 sched_setaffinity.
2012
8d4d2833
RM
2013 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
2014 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
2015 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
2016 * configure: Regenerated.
2017
3c857306
UD
20182002-11-19 Ulrich Drepper <drepper@redhat.com>
2019
2020 * include/dlfcn.h: __libc_dlopen is now a macro calling
2021 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
2022 (__libc_dlopen_mode): New prototype.
2023 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
2024 new parameter. Store new parameter in mode field of structure passed
2025 to do_dlopen.
2026 (struct do_dlopen_args): Add new field mode.
2027 (do_dlopen): Pass mode from parameter structure to _dl_open.
2028
0bf5c050
RM
20292002-11-11 Randolf Chung <tausq@debian.org>
2030
2674f2a3
RM
2031 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
2032 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
2033 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
2034
0bf5c050
RM
2035 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
2036
2037 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
2038 Set -mdisable-fpregs for this file.
2039
20402002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
2041
2042 * sysdeps/unix/sysv/linux/configure.in:
2043 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
2044 from gcc-3.0 era for backwards compatibility.
2045 * sysdeps/unix/sysv/linux/configure: Regenerate.
2046
3c857306
UD
2047 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
2048 Define mcontext_t as a sigcontext.
0bf5c050 2049
c27af28e
RM
20502002-11-18 Roland McGrath <roland@redhat.com>
2051
0bf5c050
RM
2052 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
2053 Free memory in `last_result' if it was used.
2054
2055 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
2056 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
2057 Do the parsing inline instead of copying strings and calling
2058 inet_network, and properly skip all alias names not matching the form.
2059
c27af28e
RM
2060 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
2061
a185f478
UD
20622002-11-17 Ulrich Drepper <drepper@redhat.com>
2063
c27af28e
RM
2064 * manual/pattern.texi (Wordexp Example): Fix sample code.
2065
a185f478
UD
2066 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
2067 childs stack which will be loaded into the %esi register.
2068
c27af28e 20692002-11-14 Paul Eggert <eggert@twinsun.com>
9b57c1c1 2070
a185f478
UD
2071 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
2072 overflow when skipping the question part and when unpacking aliases.
9b57c1c1 2073
502328b2
RM
20742002-11-15 Roland McGrath <roland@redhat.com>
2075
2076 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
2077 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
2078 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
2079
92712dee
RM
20802002-11-15 Jakub Jelinek <jakub@redhat.com>
2081
2082 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
2083 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
2084
20852002-11-15 Roland McGrath <roland@redhat.com>
2086
2087 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
2088 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
2089 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
2090 (+make-include-of-dep): New canned sequence.
2091
2092 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
2093 From Dmitry V. Levin <ldv@altlinux.org>.
2094
d8b8842b
RM
20952002-11-14 Roland McGrath <roland@redhat.com>
2096
53da80ab
RM
2097 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
2098 * inet/herrno.c (__libc_h_errno): Likewise.
2099 * resolv/res_libc.c (__libc_res): Likewise.
2100 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
2101 (__res_state) [! USE___THREAD]: Don't define as weak.
2102 * csu/Versions: Revert last change.
2103 * resolv/Versions: Revert last change.
2104
2105 * Makerules ($(common-objpfx)%.make): New pattern rule.
2106 * tls.make.c: New file.
2107 * Makefile (distribute): Add it.
2108
d8b8842b
RM
2109 * sysdeps/generic/errno.c [! USE___THREAD]
2110 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
2111 with compat_symbol so they are not link-time visible.
2112 [! USE___THREAD] (__libc_errno): New alias for errno.
2113 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
2114 Add __libc_errno here.
2115 * inet/herrno.c [USE___THREAD]: Use this conditional
2116 in place of [USE_TLS && HAVE___THREAD].
2117 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
2118 (h_errno, _h_errno): Declare these with compat_symbol so they are not
2119 link-time visible.
2120 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
2121 * resolv/res_libc.c [! USE___THREAD]
2122 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
2123 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
2124 (__libc_res): Define as alias for _res.
2125 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
2126 Add __libc_h_errno and __libc_res here.
2127
21282002-11-14 Jakub Jelinek <jakub@redhat.com>
2129
2130 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
2131 * resolv/Versions (h_errno, _res): Likewise.
2132
6c0b2972
RM
21332002-11-14 Roland McGrath <roland@redhat.com>
2134
2135 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
2136 (%.symlist): Likewise.
2137
cdedcc79
RM
21382002-11-13 Roland McGrath <roland@redhat.com>
2139
6e3d59bc
RM
2140 * scripts/abilist.awk: New file.
2141 * Makefile (distribute): Add it.
2142 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
2143 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
c9e032d5
RM
2144 [$(subdir) = elf] (tests): Depend on libc.symlist.
2145 (generated, common-generated): Add those files.
2146
6e3d59bc
RM
2147 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
2148 * configure: Regenerated.
2149 * config.make.in (OBJDUMP): New variable, substituted by configure.
2150
2151 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
2152 (mallochook, reallochook): Set them up.
2153 (checkhdr): Check HDR->magic2 value.
2154 (freehook): Reset HDR->magic2.
2155 (memalignhook): New static function.
2156 (old_memalign_hook): New static variable.
2157 (mcheck, reallochook): Set __memalign_hook to memalignhook.
2158
cdedcc79
RM
2159 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
2160 for the new TCB.
2161
ba441d2c
AJ
21622002-11-13 Andreas Jaeger <aj@suse.de>
2163
2164 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
2165 attribute.
2166 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
2167
be1960c6
RM
21682002-11-11 Paul Eggert <eggert@twinsun.com>
2169
3c857306
UD
2170 * manual/crypt.texi (Cryptographic Functions): Mention that
2171 the MD5 one-way algorithm is compatible with BSD's.
be1960c6 2172
1843975c
RM
21732002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
2174
2175 * posix/regex_internal.c (re_string_skip_chars): Also return the last
2176 wide character.
2177 (re_string_reconstruct): Calculate the context by itself when the
2178 offset points out of the valid range.
2179 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
2180 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
2181 (IS_WIDE_WORD_CHAR): New macro.
2182 (IS_WIDE_NEWLINE): New macro.
2183
44df0cea
AJ
21842002-11-12 Andreas Jaeger <aj@suse.de>
2185
6e14793d
AJ
2186 * sysdeps/x86_64/strchr.S: Don't use one register for two
2187 purposes, this fixes a bug noticed by test-strchr.c.
2188
44df0cea
AJ
2189 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
2190 correctly.
2191
7ceef50e
RM
21922002-11-12 Roland McGrath <roland@redhat.com>
2193
43317e8e
RM
2194 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
2195 (_G_IO_NO_BACKWARD_COMPAT): Define it.
2196
7ceef50e
RM
2197 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
2198 instead of <pt-machine.h>.
2199 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
2200 testandset.
2201 From Ian Wienand <ianw@gelato.unsw.edu.au>.
2202
adee0e1f
RM
22032002-11-10 Roland McGrath <roland@redhat.com>
2204
1ab9366d
RM
2205 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
2206 Call fputs instead of fwprintf (simpler to follow in debugger).
2207
4483f2c0
RM
2208 * crypt/md5-crypt.c: Doc fix.
2209
adee0e1f
RM
2210 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
2211 the beginning of generated target commands.
2212
2213 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
2214 dependencies for these in case implicit rule search skipped the
2215 nonexistent source directory.
2216 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
2217 files with $(object-suffixes) as targets too.
2218 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
2219 and a target for it using $(make-target-directory).
2220
2221 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
2222
8bbd8b0b
RM
22232002-11-10 Roland McGrath <roland@frob.com>
2224
adee0e1f
RM
2225 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
2226 * sysdeps/generic/bits/pthreadtypes.h: ... here.
2227
8bbd8b0b
RM
2228 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
2229 l_start == 0 and l_len == 1 as we do l_len == 0.
2230
7fa0e180
UD
22312002-11-10 Ulrich Drepper <drepper@redhat.com>
2232
2233 * po/da.po: Update from translation team.
2234
daf4e2bc
RM
22352002-11-10 Roland McGrath <roland@redhat.com>
2236
2237 * config.make.in (includedir): New variable, substituted by configure.
2238 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
2239 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
2240
2deea078
AJ
22412002-11-10 Andreas Jaeger <aj@suse.de>
2242
09b4d75f
AJ
2243 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
2244 REG_OLDMASK and REG_CR2 to synch with kernel header.
2245 (NGREG): Increase.
2246
2deea078
AJ
2247 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
2248 aliasing problem.
2249 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
2250 * nss/getnssent_r.c (__nss_getent_r): Likewise.
2251 (__nss_setent): Likewise.
2252 (__nss_getent_r): Likewise.
2253 * inet/getnetgrent_r.c (innetgr): Likewise.
2254 (__internal_setnetgrent_reuse): Likewise.
2255 (internal_getnetgrent_r): Likewise.
2256 * inet/ether_hton.c (ether_hostton): Likewise.
2257 * inet/ether_ntoh.c (ether_ntohost): Likewise.
2258 * sunrpc/netname.c (netname2user): Likewise.
2259 * sunrpc/publickey.c (getpublickey): Likewise.
2260 (getsecretkey): Likewise.
2261
55c303ac
RM
22622002-11-09 Marcus Brinkmann <marcus@gnu.org>
2263
7fa0e180
UD
2264 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
2265 error in range calculation.
55c303ac 2266
9372c958
RM
22672002-10-09 Jakub Jelinek <jakub@redhat.com>
2268
2269 * string/test-strspn.c (do_test): Ensure zero termination.
2270 * string/test-strpbrk.c (do_test): Likewise.
2271 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
2272 * string/test-strncpy.c (stupid_strncpy): Likewise.
2273 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
2274
22752002-10-08 Roland McGrath <roland@redhat.com>
2276
2277 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
2278 nonzero characters.
2279
22802002-09-22 H.J. Lu <hjl@gnu.org>
2281
2282 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
2283 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
2284 only if __NR_mmap2 is defined.
2285
2286 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
2287 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
2288 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
2289 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
2290
e8c1660f
RM
22912002-11-08 Jakub Jelinek <jakub@redhat.com>
2292
2b497443
RM
2293 * posix/bug-regex13.c (tests): Add new test.
2294
e8c1660f
RM
2295 * string/test-strchr.c (stupid_strchr): New function.
2296 (do_random_tests): Make sure the string is zero terminated.
2297 * string/test-strpbrk.c (stupid_strpbrk): New function.
2298 (do_random_tests): Make sure the string is zero terminated.
2299 * string/test-strcmp.c (stupid_strcmp): New function.
2300 (do_random_tests): Make sure the strings are zero terminated.
2301 * string/test-strspn.c (stupid_strspn): New function.
2302 (simple_strspn): Rename rej argument to acc.
2303 (do_random_tests): Make sure the string is zero terminated.
2304 * string/test-strcspn.c (stupid_strcspn): New function.
2305 * string/test-strncpy.c (stupid_strncpy): New function.
2306 * string/test-stpncpy.c (stupid_stpncpy): New function.
2307 * string/test-strncmp.c (stupid_strncmp): New function.
2308 (do_random_tests): Make sure the strings are zero terminated.
2309 * string/test-string.h (impl_t): Change test into long.
2310 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
2311
e0bc9a8d
RM
23122002-11-08 Roland McGrath <roland@redhat.com>
2313
2314 * sysdeps/ia64/elf/configure.in: Add TLS check.
2315 From Ian Wienand <ianw@cse.unsw.edu.au>.
2316 * sysdeps/ia64/elf/configure: Regenerated.
2317
23182002-11-07 Roland McGrath <roland@redhat.com>
2319
2320 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
2321 place of _IO_new_do_write.
2322 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
2323 #undef before versioned_symbol use.
2324
c6481412
RM
23252002-11-07 Richard Henderson <rth@redhat.com>
2326
2327 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
2328 * configure: Regenerated.
2329 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
2330 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
2331 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
2332 _dl_fini via gp-relative relocations.
2333 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
2334
2335 * elf/tls-macros.h: Add alpha versions.
2336 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
2337 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
2338 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
2339 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
2340 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
2341 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
2342 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
2343 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
2344 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
2345 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
2346 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
2347 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
2348 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
2349 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
2350 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
2351 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
2352 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
2353 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
2354
2355 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
2356 Kill argument registers across the inline syscall.
2357
2358 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
2359
2360 * linuxthreads/sysdeps/alpha/tls.h: New file.
2361 * sysdeps/alpha/dl-tls.h: New file.
2362
dfe4c900
RM
23632002-10-29 David Mosberger <davidm@hpl.hp.com>
2364
2365 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
2366 (gmon_initializer): New function.
2367 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
2368 __gmon_start__ here. Call it from gmon_initializer() instead.
2369
23702002-03-12 H.J. Lu <hjl@gnu.org>
2371
2372 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
2373 tst-array2, and tst-array3.
2374 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
2375 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
2376 ($(objpfx)tst-array1.out): New target.
2377 ($(objpfx)tst-array2): Likewise.
2378 ($(objpfx)tst-array2.out): Likewise.
2379 ($(objpfx)tst-array3.out): Likewise.
2380 * elf/tst-array1.c: New file.
2381 * elf/tst-array1.exp: Likewise.
2382 * elf/tst-array2.c: Likewise.
2383 * elf/tst-array2dep.c: Likewise.
2384 * elf/tst-array2.exp: Likewise.
2385 * elf/tst-array3.c: Likewise.
2386
1d8a0fd9
RM
23872002-10-28 David Mosberger <davidm@hpl.hp.com>
2388
2389 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
2390 Don't add L->l_addr to array entry values.
2391
58ef9ef7
RM
23922002-11-07 Jakub Jelinek <jakub@redhat.com>
2393
2394 * string/test-string.h: New file.
2395 * string/test-strlen.c: New file.
2396 * string/test-string.h: New file.
2397 * string/test-strcmp.c: New file.
2398 * string/test-strchr.c: New file.
2399 * string/test-strrchr.c: New file.
2400 * string/test-strcpy.c: New file.
2401 * string/test-stpcpy.c: New file.
2402 * string/test-strncpy.c: New file.
2403 * string/test-stpncpy.c: New file.
2404 * string/test-strpbrk.c: New file.
2405 * string/test-strcspn.c: New file.
2406 * string/test-strspn.c: New file.
2407 * string/test-strcat.c: New file.
2408 * string/test-strncmp.c: New file.
2409 * string/test-memchr.c: New file.
2410 * string/test-memcmp.c: New file.
2411 * string/test-memset.c: New file.
2412 * string/test-memcpy.c: New file.
2413 * string/test-mempcpy.c: New file.
2414 * string/test-memmove.c: New file.
2415 * string/Makefile (strop-tests): New variable.
2416 (tests): Add strop-tests.
2417 (distribute): Add test-string.h.
2418
15a7d175
UD
24192002-11-06 Ulrich Drepper <drepper@redhat.com>
2420
2421 * posix/regcomp.c: Use tabs instead of spaces.
2422 * posix/regexec.c: Likewise.
2423 * posix/regex_internal.h: Likewise.
2424
2425 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
2426
1b2c2628
UD
24272002-11-06 Jakub Jelinek <jakub@redhat.com>
2428
2429 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
2430 here.
2431 (regcomp): Don't set can_be_null here.
2432 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
2433 (re_compile_internal): Clear can_be_null, set regs_allocated.
2434
2435 * posix/regcomp.c (re_set_fastmap): New function.
2436 (re_compile_fastmap_iter): Use it. Remove redundant type ==
2437 COMPLEX_BRACKET check.
2438 * posix/regexec.c (re_search_internal): Optimize searching with
2439 fastmap. Call re_string_reconstruct even if match_first is
2440 smaller than raw_mbs_idx.
2441
24422002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
2443
2444 * posix/regcomp (free_dfa_content): Use free_state.
2445 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
2446 pointers in case that realloc failed.
2447 (re_node_set_merge): Likewise.
2448 (register_state): Likewise.
2449 (create_newstate_common): Invoke memory release functions in case of
2450 error conditions.
2451 (create_ci_newstate): Likewise.
2452 (create_cd_newstate): Likewise.
2453 (free_state): New function.
2454 * posix/regexec.c (re_search_internal): Invoke memory release
2455 functions in case of error conditions.
2456 (sift_states_backward): Likewise.
2457 (merge_state_array): Likewise.
2458 (add_epsilon_src_nodes): Likewise.
2459 (sub_epsilon_src_nodes): Likewise.
2460 (search_subexp): Likewise.
2461 (sift_states_bkref): Likewise.
2462 (transit_state_sb): Likewise.
2463 (transit_state_mb): Likewise.
2464 (transit_state_bkref_loop): Likewise.
2465 (group_nodes_into_DFAstates): Likewise.
2466 (push_fail_stack): Don't edit pointers in case that realloc failed.
2467 (extend_buffers): Likewise.
2468 (match_ctx_add_entry): Likewise.
2469
c4dd0bac
RM
24702002-11-06 Roland McGrath <roland@redhat.com>
2471
cbf900b4
RM
2472 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
2473 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
2474
c4dd0bac
RM
2475 * configure.in: Add checks on as and ld for binutils 2.13 or later.
2476 * configure: Regenerated.
2477
71ccd330
UD
24782002-11-06 Ulrich Drepper <drepper@redhat.com>
2479
2480 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
2481 If re_compile_internal failed free fastmap buffer.
2482 (free_dfa_content): Broken out of regfree function. Frees all dfa
2483 related data.
2484 (regfree): Add free_dfa_content.
2485 (re_compile_internal): If any of the called functions fails free
2486 all dfa related memory.
2487
d97426b7
UD
24882002-11-05 Ulrich Drepper <drepper@redhat.com>
2489
2490 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
2491 warnings from the kernel headers.
2492
df5391ff
RM
24932002-11-05 Roland McGrath <roland@redhat.com>
2494
be280d0e
RM
2495 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
2496 From Johannes Stezenbach <js@convergence.de>.
2497
df5391ff
RM
2498 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
2499 #errlist-compat magic comment to give 123 as size.
2500 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
2501 (libc: GLIBC_2.2): ... here.
2502 (libc: GLIBC_2.3): Likewise.
2503
51859074
UD
25042002-11-05 Ulrich Drepper <drepper@redhat.com>
2505
a2d80f9a
UD
2506 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
2507 which happens at the beginning so that we can unload modules in
2508 __libc_freeres.
51859074 2509
e791bd95
RM
25102002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2511
2512 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
2513 under [__USE_MISC || _ASM].
2514
2515 * elf/elf.h: Remove the obsolete SH TLS relocations.
2516
0c2ee21c
UD
25172002-11-05 Ulrich Drepper <drepper@redhat.com>
2518
2519 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
2520
5bfed16d
UD
25212002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2522
2523 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
2524 __NR_pread64 and __NR_pwrite64.
2525 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
2526 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
2527 and __NR_pwrite64.
2528 Revert change to use INLINE_SYSCALL.
2529 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
2530 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
2531 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
2532 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
2533 INLINE_SYSCALL.
2534 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
2535
2536 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
2537 Update clobber list and add a comment about the syscall ABI.
2538
0c2ee21c
UD
2539 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
2540 s_pwrite64, s_ftruncate, s_truncate): Re-add.
2541
f6e50e66
UD
25422002-11-05 Jakub Jelinek <jakub@redhat.com>
2543
2544 * iconv/gconv_dl.c (free_mem): Clear loaded.
2545 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
2546 cleanup if any.
2547
52a16e58
UD
25482002-11-05 Ulrich Drepper <drepper@redhat.com>
2549
f6e50e66
UD
2550 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
2551
52a16e58
UD
2552 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
2553 as old code without locking. _IO_seekoff calls this function after
2554 locking the stream.
2555 * libio/ioseekpos.c: Likewise for _IO_seekpos.
2556 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
2557 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
2558 prototypes.
2559 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
2560 of _IO_seekoff_internal.
2561 (_IO_rewind): Likewise.
2562 * libio/ioftell.c: Likewise.
2563 * libio/ftello.c: Likewise.
2564 * libio/ftello64.c: Likewise.
2565 * libio/iofgetpos.c: Likewise.
2566 * libio/iofgetpos64.c: Likewise.
2567 * libio/oldiofgetpos.c: Likewise.
2568 * libio/oldiofgetpos64.c: Likewise.
2569 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
2570 _IO_seekpos_internal.
2571 * libio/iofsetpos64.c: Likewise.
2572 * libio/oldiofsetpos.c: Likewise.
2573 * libio/oldiofsetpos64.c: Likewise.
2574
0f0d786f
RM
25752002-11-04 Roland McGrath <roland@redhat.com>
2576
2577 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
2578 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
2579 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
2580 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
2581 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
2582 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
2583 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
2584 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
2585 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
2586 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
2587 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
2588 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
2589 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
2590 Remove these, no longer used.
2591
25922002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2593
2594 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
2595 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
2596 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
2597 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
2598 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
2599 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
2600 syscall stubs.
2601
2602 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
2603 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
2604 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
2605 and __NR_pread.
2606 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
2607 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
2608 and __NR_pwrite.
2609 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
2610
26112002-11-03 Roland McGrath <roland@redhat.com>
2612
2613 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
2614 `_dl_tls_static_used'.
2615 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
2616 (__libc_setup_tls): Initialize it. Let the initial value of
2617 _dl_tls_static_size indicate some surplus space in the computed value.
2618 * elf/dl-open.c (_dl_tls_static_size): New variable.
2619 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
2620 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
2621 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
2622 (CHECK_STATIC_TLS): Use it.
2623 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
2624 closed objects occupied a trailing contiguous chunk of static TLS area.
2625
26262002-10-18 Bruno Haible <bruno@clisp.org>
2627
2628 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
2629
8e96ae1a
UD
26302002-11-04 Ulrich Drepper <drepper@redhat.com>
2631
52a16e58
UD
2632 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
2633 _wide_data->_IO_read_end if adjustment can be made in the current
2634 buffer.
2635
2f0f157e
UD
2636 * sysdeps/unix/sysv/linux/fexecve.c: New file.
2637
c7e56cbe
UD
2638 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
2639 wide oriented streams are used.
2640
226e9fda
UD
2641 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
2642 service hasn't been used [PR libc/4744].
2643
12518320
UD
2644 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
2645 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
2646
8e96ae1a
UD
2647 * manual/examples/dir.c: Don't include <stddef.h>.
2648 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
2649