]> sourceware.org Git - glibc.git/blob - ChangeLog
728fe1da8b7f00b59452b400b7a63dcabed81cfe
[glibc.git] / ChangeLog
1 2003-09-17 Uwe Reimann <Uwe_Reimann@gmx.net>
2 Hans-Peter Nilsson <hp@axis.com>
3
4 * sysdeps/cris/dl-machine.h (elf_machine_type_class): Classify
5 R_CRIS_GLOB_DAT as ELF_RTYPE_CLASS_PLT. Clarify comment.
6
7 2003-09-17 Jakub Jelinek <jakub@redhat.com>
8
9 * dirent/scandir.c: Include bits/libc-lock.h.
10 (struct scandir_cancel_struct): New type.
11 (cancel_handler): New function.
12 (SCANDIR): Add __libc_cleanup_{push,pop}, save state into
13 scandir_cancel_struct.
14
15 2003-09-16 Ulrich Drepper <drepper@redhat.com>
16
17 * sysdeps/unix/sysv/linux/Dist: Remove internal_statvfs.c.
18 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
19 Add internal_statvfs.
20 * sysdeps/unix/sysv/linux/fstatvfs.c: Call __internal_statvfs
21 instead of including "internal_statvfs.c".
22 * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
23 * sysdeps/unix/sysv/linux/internal_statvfs.c: Make it a real function.
24 Add code to avoid the stat calls on all the reported mount points
25 when we can determine mismatch in advance.
26 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add AUTOFS_SUPER_MAGIC and
27 USBDEVFS_SUPER_MAGIC.
28
29 2003-09-16 Jakub Jelinek <jakub@redhat.com>
30
31 * posix/Versions (sched_getaffinity, sched_setaffinity): Change
32 from GLIBC_2.3.2 to GLIBC_2.3.3 symbol version.
33
34 2003-09-16 Bruno Haible <bruno@clisp.org>
35
36 * intl/tst-gettext2.sh: Set GCONV_PATH and LOCPATH only after
37 invoking msgfmt, not before.
38
39 2003-09-15 Jakub Jelinek <jakub@redhat.com>
40
41 * argp/argp.h (argp_parse, __argp_parse): Remove __THROW.
42 * argp/Makefile (CFLAGS-argp-help.c, CFLAGS-argp-parse.c): Add
43 $(uses-callbacks).
44 * dirent/Makefile (CFLAGS-scandir.c, CFLAGS-scandir64.c): Likewise.
45 * elf/Makefile (CFLAGS-dl-iterate-phdr.c,
46 CFLAGS-dl-iterate-phdr-static.c): Add $(uses-callbacks).
47 * elf/dl-iteratephdr.c (cancel_handler): New function.
48 (__dl_iterate_phdr): Add __libc_cleanup_{push,pop}.
49 * elf/link.h (dl_iterate_phdr): Remove __THROW.
50 * io/Makefile (CFLAGS-fts.c): Merge into one assignment.
51 Add $(uses-callbacks).
52 (CFLAGS-ftw.c, CFLAGS-ftw64.c): Add $(uses-callbacks).
53 * misc/Makefile (CFLAGS-tsearch.c, CFLAGS-lsearch.c): Change
54 $(exceptions) to $(uses-callbacks).
55 * Makeconfig (uses-callbacks): Set to $(exceptions).
56 * posix/Makefile (CFLAGS-glob.c, CFLAGS-glob64.c): Add
57 $(uses-callbacks).
58 * stdlib/Makefile (CFLAGS-bsearch.c, CFLAGS-msort.c, CFLAGS-qsort.c):
59 Likewise.
60
61 2003-09-15 Andreas Schwab <schwab@suse.de>
62
63 * sysdeps/m68k/setjmp.c: Add hidden_def.
64
65 2003-09-14 Ulrich Drepper <drepper@redhat.com>
66
67 * libio/memstream.c (open_memstream): Don't allow wide char operations.
68
69 * dirent/dirent.h: Remove __THROW from scandir.
70
71 2003-09-14 Philip Blundell <philb@gnu.org>
72
73 * sysdeps/unix/sysv/linux/arm/mmap.S: Use sys_mmap2 if it's known
74 to be available.
75
76 * sysdeps/unix/sysv/linux/arm/mmap64.S: Optimise code a little.
77
78 * sysdeps/arm/memset.S: Rewrite.
79
80 2003-09-12 Jakub Jelinek <jakub@redhat.com>
81
82 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New.
83 (__SSIZE_T_TYPE): Define to __SWORD_TYPE for gcc 2.95.x and
84 __SLONGWORD_TYPE otherwise.
85
86 2003-09-14 Ulrich Drepper <drepper@redhat.com>
87
88 * io/Makefile (CFLAGS-ftw.c): Add -fexceptions.
89 (CFLAGS-ftw64.c): Likewise.
90
91 2003-09-13 Ulrich Drepper <drepper@redhat.com>
92
93 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Add -fexceptions.
94 (CFLAGS-nscd_getgr_r.c): Likewise.
95 (CFLAGS-nscd_gethst_r.c): Likewise.
96
97 2003-09-12 Ulrich Drepper <drepper@redhat.com>
98
99 * sysdeps/unix/sysv/linux/if_index.c: Use only non-cancelable
100 interfaces.
101
102 * grp/Makefile (CFLAGS-getgrgid_r.c, CFLAGS-getgrnam_r.c,
103 CFLAGS-fgetgrent.c, CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c,
104 CFLAGS-initgroups.c, CFLAGS-getgrgid.c): Add -fexceptions.
105 * inet/Makefile (CFLAGS-either_ntoh.c, CFLAGS-either_hton.c,
106 CFLAGS-getnetgrent.c, CFLAGS-getnetgrent_r.c): Likewise.
107 * io/Makefile (CFLAGS-posix_fallocate.c, CFLAGS-posix_fallocate64.c):
108 Likewise.
109 * misc/Makefile (CFLAGS-err.c): Likewise.
110 * posix/Makefile (CFLAGS-getaddrinfo.c, CFLAGS-spawn.c,
111 CFLAGS-spawnp.c, CFLAGS-spawni.c, CFLAGS-pause.c, CFLAGS-glob.c,
112 CFLAGS-glob64.c): Likewise.
113 * pwd/Makefile (CFLAGS-getpw.c): Likewise.
114 * shadow/Makefile (CFLAGS-fgetspent.c, CFLAGS-fgetspent_r.c,
115 CFLAGS-putspent.c, CFLAGS-getspnam.c, CFLAGS-getspnam_r.c): Likewise.
116 * stdio-common/Makefile (CFLAGS-cuserid.c): Likewise.
117 * sunrpc/Makefile (CFLAGS-openchild.c): Likewise.
118
119 * stdlib/Makefile (CFLAGS-mkstemp.c): Remove definition.
120
121 * libio/stdio.h: Remove __THROW from cuserid prototype.
122
123 * locale/loadarchive.c: Use only non-cancelable interfaces.
124 * resolv/herror.c (herror): Likewise.
125
126 * malloc/hooks.c: Before using IO stream mark stream so it uses
127 only non-cancelable interfaces.
128 * malloc/malloc.c: Likewise.
129 * posix/getopt.c: Likewise.
130
131
132 2003-09-11 Jakub Jelinek <jakub@redhat.com>
133
134 * Makerules (LDFLAGS-c.so): Remove -u __register_frame.
135
136 2003-09-12 Ulrich Drepper <drepper@redhat.com>
137
138 * stdio-common/stdio_ext.h: Mark most functions with __THROW.
139
140 * misc/err.h: Remove __THROW from all prototypes.
141
142 * posix/getopt.h (__THROW): Define if not already defined. Add
143 __THROW to the getopt functions.
144
145 2003-09-11 Ulrich Drepper <drepper@redhat.com>
146
147 * io/Makefile (CFLAGS-lockf.c): Add -fexceptions.
148 (CFLAGS-fts.c): Likewise.
149 * io/fcntl.h: Remove __THROW from lockf prototypes.
150 * io/fts.h: Remove most __THROW.
151
152 2003-09-11 H.J. Lu <hongjiu.lu@intel.com>
153
154 * elf/tls-macros.h (TLS_IE): Add a stop bit for ia64.
155 (TLS_LD): Likewise.
156 (TLS_GD): Likewise.
157
158 2003-09-11 Jakub Jelinek <jakub@redhat.com>
159
160 * libio/fileops.c (_IO_new_file_overflow): Add INTUSE to
161 _IO_free_backup_area call.
162
163 2003-09-10 Chris Demetriou <cgd@broadcom.com>
164
165 * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Fix
166 syscall invocation.
167 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
168 * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
169 Also, only assert off_t size is 4 for N32 and O32, and clean up
170 white space.
171 * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
172
173 2003-09-10 Roland McGrath <roland@redhat.com>
174
175 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr):
176 Don't use c_ispeed under [! _HAVE_STRUCT_TERMIOS_C_ISPEED].
177 Don't use c_ospeed under [! _HAVE_STRUCT_TERMIOS_C_OSPEED].
178 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
179 Reported by Daniel Jacobowitz <drow@mvista.com>.
180
181 2003-09-10 Jakub Jelinek <jakub@redhat.com>
182
183 * string/Makefile (strop-tests): Add memccpy.
184 * string/test-memccpy.c: New test.
185
186 2003-09-09 Jakub Jelinek <jakub@redhat.com>
187
188 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT): Add
189 siginfo_t * argument before, change into struct ucontext *.
190 (SIGCONTEXT_EXTRA_ARGS): Define to _si,.
191 (GET_PC, GET_FRAME, GET_STACK): Adjust for ctx being a pointer
192 instead of structure.
193 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (REGISTER_DUMP):
194 Likewise.
195
196 2003-09-09 Ulrich Drepper <drepper@redhat.com>
197
198 * string/stratcliff.c (main): Check memccpy.
199
200 2003-04-11 Jes Sorensen <jes@wildopensource.com>
201
202 * sysdeps/ia64/memccpy.S: When recovering for src_aligned and the
203 character is found during recovery, use correct register when
204 determining the position of the found character.
205
206 2003-04-01 Jes Sorensen <jes@wildopensource.com>
207
208 * sysdeps/ia64/memccpy.S: Use speculatively loads for readahead to
209 avoid segfaults when reading from unmapped pages. For aligned
210 reload and continue, for misaligned, roll back and use byte copy.
211 Save ar.ec on entry and restore on exit.
212
213 2003-09-09 Chris Demetriou <cgd@broadcom.com>
214
215 * sysdeps/unix/mips/sysdep.h (PSEUDO_END): Undef before defining.
216
217 2003-09-08 Chris Demetriou <cgd@broadcom.com>
218
219 * sysdeps/mips/mips64/n32/Implies: Move ieee754/ldbl-128 to
220 the top of the list.
221 * sysdeps/mips/mips64/n64/Implies: Likewise.
222
223 2003-09-08 Roland McGrath <roland@frob.com>
224
225 * sysdeps/unix/sysv/linux/speed.c
226 (cfsetospeed): Only set c_ospeed under [_HAVE_STRUCT_TERMIOS_C_OSPEED].
227 (cfsetispeed): Only set c_ispeed under [_HAVE_STRUCT_TERMIOS_C_ISPEED].
228 * sysdeps/unix/sysv/linux/bits/termios.h
229 (_HAVE_STRUCT_TERMIOS_C_ISPEED, _HAVE_STRUCT_TERMIOS_C_OSPEED): Define.
230 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
231 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
232
233 2003-09-08 Ulrich Drepper <drepper@redhat.com>
234
235 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Undo last change.
236 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
237
238 2003-09-08 Jakub Jelinek <jakub@redhat.com>
239
240 * sysdeps/generic/bits/types.h (__quad_t): Make long int if 64-bit.
241 (__u_quad_t): Make unsigned long int if 64-bit.
242 (__SQUAD_TYPE): Make long int if 64-bit.
243 (__UQUAD_TYPE): Make unsigned long int if 64-bit.
244 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Remove.
245
246 2003-09-08 Ulrich Drepper <drepper@redhat.com>
247
248 * Makefile (tests): Run check-c++-types.sh if possible.
249 * scripts/check-c++-types.h: New file.
250 * scripts/data/c++-types-i386-linux-gnu.data: New file.
251
252 2003-09-08 Andreas Jaeger <aj@suse.de>
253
254 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
255 Use struct sigcontext.
256
257 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
258 Use struct sigcontext.
259 (GET_PC): Adopt.
260 (GET_FRAME): Likewise.
261 (GET_STACK): Likewise.
262
263 2003-09-08 Wolfram Gloger <wg@malloc.de>
264
265 * malloc/malloc.c (sYSMALLOc): Move foreign sbrk accounting into
266 contiguous case. Bug report from Prem Gopalan <prem@mazunetworks.com>.
267 (mALLOPt): Avoid requirement of C99.
268
269 2003-09-08 Ulrich Drepper <drepper@redhat.com>
270
271 * libio/bug-ftell.c: Include <sys/types.h>.
272 (main): Mark cp as const.
273
274 2003-09-07 Jakub Jelinek <jakub@redhat.com>
275
276 * sysdeps/unix/sysv/linux/syscalls.list (fcntl): Remove.
277 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: Remove.
278
279 2003-09-05 Roland McGrath <roland@redhat.com>
280
281 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Fill in c_ispeed
282 and c_ospeed fields.
283 * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Set c_ospeed field.
284 (cfsetispeed): Set c_ispeed field.
285 * sysdeps/unix/sysv/linux/tcsetattr.c (IBAUD0): Define unconditionally
286 to match corresponding speed.c code.
287
288 2003-09-06 Ulrich Drepper <drepper@redhat.com>
289
290 * libio/wfileops.c (_IO_wfile_underflow): Mark beginning of the
291 narrow character buffer.
292 * libio/Makefile: Add rules to build and run bug-ftell.
293 * libio/bug-ftell.c: New file.
294
295 * stdio-common/vfprintf.c: Don't use the first grouping number twice.
296
297 * stdio-common/vfscanf.c (vfscanf): Fix recognition of characters
298 matching the decimal point and possibly leading the thousands
299 separator. This caused the recognition of thousands separators to
300 always fail.
301
302 2003-09-05 Ulrich Drepper <drepper@redhat.com>
303
304 * libio/fileops.c (_IO_new_file_overflow): Handle switching to
305 write mode from read in backup buffer.
306 * libio/Makefile (tests): Add bug-ungetc2.
307 * libio/bug-ungetc2.c: New file.
308
309 2003-09-05 Roland McGrath <roland@redhat.com>
310
311 * nss/getXXbyYY.c (FUNCTION_NAME): Remove unused variable.
312
313 2003-09-04 Roland McGrath <roland@frob.com>
314
315 * sysdeps/mach/hurd/mmap.c (__mmap): If io_map fails with MIG_BAD_ID,
316 EOPNOTSUPP, or ENOSYS, change it to ENODEV.
317
318 2003-09-04 H.J. Lu <hongjiu.lu@intel.com>
319
320 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ):
321 Fix a typo.
322
323 2003-09-05 Andreas Jaeger <aj@suse.de>
324
325 * sysdeps/i386/bits/string.h (__memrchr): Do addition in assembler
326 to make it conforming C.
327 * sysdeps/i386/i486/bits/string.h (__memrchr): Likewise.
328
329 * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Change
330 prototype to use variable argument lists and get the possible one
331 argument via va_arg.
332 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Likewise.
333 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: New.
334
335 2003-09-04 Ulrich Drepper <drepper@redhat.com>
336
337 * posix/unistd.h: Add back __THROW to sysconf, pathconf, fpathconf.
338
339 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
340 Report correct value for vxfs.
341 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define VXFS_SUPER_MAGIC.
342
343 * gmon/gmon.c: Use only not-cancelable syscalls to write profiling
344 data.
345
346 * sysdeps/generic/utmp_file.c: Use not-cancelable syscalls all
347 over the place. It would be allowed to have these functions as
348 cancellation points but the cleanup would be ugly and a lot of
349 work.
350
351 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Define.
352 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Define.
353
354 * include/fcntl.h (__fcntl_nocancel): Declare.
355 * sysdeps/unix/sysv/linux/fcntl.c: New file.
356 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Only enable
357 cancellation if absolutely needed.
358 (__fcntl_nocancel): Define.
359
360 * posix/unistd.h (gethostid): Remove __THROW. Clarify comment.
361 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gethostid.c): Add
362 -fexceptions.
363 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use
364 extend_alloca.
365
366 * resolv/res_init.c (__res_nclose): Use close_not_cancel_no_status
367 instead of __close.
368
369 * nss/getXXbyYY.c (FUNCTION_NAME): Add a few casts. Remove
370 unnecessary errno handling.
371
372 * nss/getXXbyYY_r.c (INTERNAL): Use better variable name.
373 Initialize it in all cases. Change it to be a bit more like the
374 code we had before.
375
376 2003-09-04 Jakub Jelinek <jakub@redhat.com>
377
378 * libio/fileops.c (_IO_file_read, _IO_new_file_write): Add
379 __builtin_expect.
380 (_IO_file_open): Likewise. Use close_not_cancel.
381
382 2003-09-04 Ulrich Drepper <drepper@redhat.com>
383
384 * libio/libio.h: Define _IO_FLAGS2_NOTCANCEL.
385 * libio/fileops.c [_LIBC]: Remove close macro.
386 (_IO_file_open): If _IO_FLAGS2_NOTCANCEL is set, use open_not_cancel.
387 (_IO_new_file_open): Recognize 'c' flag in mode string.
388 (_IO_file_read): If _IO_FLAGS2_NOTCANCEL is set use read_not_cancel.
389 (_IO_new_file_write): If _IO_FLAGS2_NOTCANCEL is set use
390 write_not_cancel.
391 * iconv/gconv_conf.c: Use fopen with 'c' mode flag.
392 * inet/rcmd.c: Likewise.
393 * inet/ruserpass.c: Likewise.
394 * intl/localealias.c: Likewise.
395 * malloc/mtrace.c: Likewise.
396 * misc/getpass.c: Likewise.
397 * misc/getttyent.c: Likewise.
398 * misc/mntent_r.c: Likewise.
399 * misc/getusershell.c: Likewise.
400 * nss/nsswitch.c: Likewise.
401 * resolv/res_hconf.c: Likewise.
402 * resolv/res_init.c: Likewise.
403 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
404 * time/getdate.c: Likewise.
405 * time/tzfile.c: Likewise.
406 * misc/fstab.h: Undo last change.
407 * misc/mntent.h: Likewise.
408 * misc/Makefile: Remove CFLAGS-mntent_r.c, CFLAGS-mntent.c, and
409 CFLAGS-fstab.c definition.
410
411 2003-09-04 Jakub Jelinek <jakub@redhat.com>
412
413 * sysdeps/generic/unwind.h (_Unwind_GetBSP): Add prototype.
414
415 2003-09-03 Ulrich Drepper <drepper@redhat.com>
416
417 * nss/getXXbyYY_r.c (INTERNAL): Explicitly set errno and avoid
418 returning ERANGE if this wasn't intended.
419
420 2003-09-03 Jakub Jelinek <jakub@redhat.com>
421
422 * intl/loadmsgcat.c (open, close, read, mmap, munmap): Define as
423 function-like macros.
424
425 2003-09-03 Ulrich Drepper <drepper@redhat.com>
426
427 * grp/Makefile (CFLAGS-getgrent_r.c): Add -fexceptions.
428 (CFLAGS-getgrent.c): Likewise.
429 * pwd/Makefile (CFLAGS-getpwent_r.c): Add -fexceptions.
430 (CFLAGS-getpwent.c): Likewise.
431 * shadow/Makefile (CFLAGS-getspent_r.c): Add -fexceptions.
432 (CFLAGS-getspent.c): Likewise.
433
434 * inet/Makefile: Add -fexceptions to CFLAGS for the various
435 getXXent and getXXbyYY functions.
436
437 * locale/loadlocale.c: Use not-cancelable variants of open, close,
438 and read.
439
440 2003-09-02 Jakub Jelinek <jakub@redhat.com>
441
442 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
443 rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait, rt_sigqueueinfo and
444 rt_sigpending.
445 * sysdeps/unix/sysv/linux/alpha/sigaction.c (__syscall_rt_sigaction):
446 New prototype.
447 * sysdeps/unix/sysv/linux/arm/syscalls.list (__syscall_*): Remove
448 unused __syscall_ stubs.
449 * sysdeps/unix/sysv/linux/arm/Makefile (sysdep_routines): Remove
450 rt_*.
451 * sysdeps/unix/sysv/linux/cris/Makefile: Removed.
452 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list
453 (__syscall_recvfrom, __syscall_sendto): Remove unused aliases.
454 * sysdeps/unix/sysv/linux/mips/syscalls.list (__syscall_*): Remove
455 unused __syscall_ stubs.
456 * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Remove rt_*.
457 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
458 (__syscall_*): Remove unused __syscall_ stubs.
459 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
460 (__syscall_*): Likewise.
461 * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines): Remove
462 rt_*.
463 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__syscall_*):
464 Remove unused __syscall_ stubs.
465 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_routines): Remove rt_*.
466 * sysdeps/unix/sysv/linux/rt_sigaction.c: Removed.
467 * sysdeps/unix/sysv/linux/rt_sigpending.c: Removed.
468 * sysdeps/unix/sysv/linux/rt_sigprocmask.c: Removed.
469 * sysdeps/unix/sysv/linux/rt_sigqueueinfo.c: Removed.
470 * sysdeps/unix/sysv/linux/rt_sigreturn.c: Removed.
471 * sysdeps/unix/sysv/linux/rt_sigsuspend.c: Removed.
472 * sysdeps/unix/sysv/linux/rt_sigtimedwait.c: Removed.
473 * sysdeps/unix/sysv/linux/s_pread64.c: Removed.
474 * sysdeps/unix/sysv/linux/s_pwrite64.c: Removed.
475 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Remove unused
476 __syscall_* prototypes.
477 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Likewise.
478 * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
479 * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
480 * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
481 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
482 * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
483 * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
484 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
485 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
486 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
487 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
488 * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
489 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
490 * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
491 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
492 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
493 * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
494 * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
495 * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
496 * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
497 * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
498 * sysdeps/unix/sysv/linux/i386/lockf64.c: Likewise.
499 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
500 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
501 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
502 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
503 * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
504 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
505 * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
506 * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
507 * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
508 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
509 * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
510 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
511 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
512 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
513 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
514 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
515 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
516 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
517 * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
518 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
519 * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
520 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
521 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
522 * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
523 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
524 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
525 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
526 * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
527 * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
528 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
529 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
530 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
531 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
532 * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
533 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c: Likewise.
534 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
535 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
536 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
537 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
538 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c: Likewise.
539 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
540 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
541 * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
542 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
543 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
544 * sysdeps/unix/sysv/linux/execve.c: Likewise.
545 * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
546 * sysdeps/unix/sysv/linux/reboot.c: Likewise.
547 * sysdeps/unix/sysv/linux/_exit.c: Likewise.
548 * sysdeps/unix/sysv/linux/ftruncate64.c: Likewise.
549 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
550 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
551 * sysdeps/unix/sysv/linux/gai_sigqueue.c: Likewise.
552 * sysdeps/unix/sysv/linux/readahead.c: Likewise.
553 * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
554 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
555 * sysdeps/unix/sysv/linux/getdents.c: Likewise.
556 * sysdeps/unix/sysv/linux/readv.c: Likewise.
557 * sysdeps/unix/sysv/linux/getpriority.c: Likewise.
558 * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
559 * sysdeps/unix/sysv/linux/ipc_priv.h: Likewise.
560 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
561 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
562 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
563 * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
564 * sysdeps/unix/sysv/linux/ustat.c: Likewise.
565 * sysdeps/unix/sysv/linux/poll.c: Likewise.
566 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
567 * sysdeps/unix/sysv/linux/writev.c: Likewise.
568 * sysdeps/unix/sysv/linux/pread.c: Likewise.
569 * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
570 * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
571 * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
572 * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
573 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
574 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
575 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
576 * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
577 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
578 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
579
580 2003-09-02 Jakub Jelinek <jakub@redhat.com>
581
582 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Revert last change.
583 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: New file.
584 * sysdeps/unix/sysv/linux/sparc/syscalls.list: New file.
585
586 2003-09-02 Ulrich Drepper <drepper@redhat.com>
587
588 * stdio-common/Makefile (CFLAGS-vprintf.c): Add -fexceptions.
589
590 * intl/loadmsgcat.c: For _LIBC, call not cancelable versions of
591 open, close, and read.
592
593 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Also define
594 *_nocancel name.
595
596 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add waitpid.
597
598 * libio/Makefile (CFLAGS-oldtmpfile.c): Add -fexceptions.
599 * sysdeps/generic/tmpfile.c (tmpfile): Use __unlink instead of remove.
600 * libio/oldtmpfile.c (__old_tmpfile): Likewise.
601
602 * misc/Makefile (CFLAGS-getusershell.c): Add -fexceptions.
603
604 * io/Makefile (CFLAGS-statfs.c): Add -fexceptions.
605 (CFLAGS-fstatfs.c): Likewise.
606 (CFLAGS-statvfs.c): Likewise.
607 (CFLAGS-fstatvfs.c): Likewise.
608
609 2003-09-01 Ulrich Drepper <drepper@redhat.com>
610
611 * misc/Makefile (CFLAGS-getsysstats.c): Add -fexceptions.
612 * posix/unistd.h: Remove __THROW from pathconf, fpathconf,
613 sysconf.
614 * posix/Makefile (CFLAGS-sysconf.c): Add -fexceptions.
615 (CFLAGS-pathconf.c): Likewise.
616 (CFLAGS-fpathconf.c): Likewise.
617
618 * misc/Makefile (CFLAGS-fstab.c): Add -fexceptions.
619 * misc/fstab.h: Remove all __THROW.
620 * misc/Makefile (CFLAGS-mntent.c): Add -fexceptions.
621 (CFLAGS-mntent_r.c): Likewise.
622 * misc/mntent.h: Remove most __THROW.
623
624 * misc/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
625 (CFLAGS-mkstemp64.c): Likewise.
626
627 * sysdeps/generic/wordexp.c (parse_comm): Disable cancellation
628 around call to exec_comm.
629 * posix/wordexp.h: Remove __THROW from wordexp.
630 * posix/Makefile (CFLAGS-wordexp.c): Add -fexceptions.
631
632 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Use
633 not-cancelable functions.
634
635 * libio/Makefile (CFLAGS-oldiofopen.c): Add -fexceptions.
636 (CFLAGS-iofopen.c): Likewise.
637 (CFLAGS-iofopen64.c): Likewise.
638
639 * stdlib/fmtmsg.c (fmtmsg): Disable cancellation around output
640 functions.
641 * stdlib/Makefile (CFLAGS-fmtmsg.c): Add -fexceptions.
642 * stdlib/fmtmsg.h: Remove __THROW from fmtmsg.
643
644 * stdlib/stdlib.h: Remove __THROW from posix_openpt and getpt.
645 * login/Makefile (CFLAGS-getpt.c): Add -fexceptions.
646
647 2003-09-01 Thorsten Kukuk <kukuk@suse.de>
648
649 * nis/nss_compat/compat-spwd.c (getspnam_plususer): Return
650 NSS_STATUS_SUCCESS if entry was found.
651 (getspent_next_file): Store user in blacklist after entry
652 was found, use innetgr.
653
654 2003-09-01 Jakub Jelinek <jakub@redhat.com>
655
656 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: New.
657 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: New.
658
659 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Fix tls offset
660 computation for TCB_AT_TP. Support l_firstbyte_offset != 0 for
661 DTV_AT_TP, optimize.
662
663 2003-08-31 Kaz Kojima <kkojima@rr.iij4u.or.jp>
664
665 * sysdeps/unix/sysv/linux/sh/Versions: Add posix_fadvise64 and
666 posix_fallocate64 at GLIBC_2.3.3.
667 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO_ERRVAL): Define.
668 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
669
670 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
671
672 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove __syscall_
673 functions.
674
675 2003-08-31 Ulrich Drepper <drepper@redhat.com>
676
677 * libio/libioP.h (_IO_acquire_lock_fct): Define as inline function.
678 Code by Richard Henderson.
679
680 2003-08-31 Philip Blundell <philb@gnu.org>
681
682 * sysdeps/unix/sysv/linux/arm/Versions: Add posix_fadvise64 and
683 posix_fallocate64 at GLIBC_2.3.3.
684
685 2003-08-31 Ulrich Drepper <drepper@redhat.com>
686
687 * sysdeps/x86_64/bsd-_setjmp.S: Use HIDDEN_JUMPTARGET.
688 * include/setjmp.h: Add libc_hidden_proto for __sigsetjmp.
689
690 2003-08-30 Jakub Jelinek <jakub@redhat.com>
691
692 * sysdeps/generic/sysdep.h (cfi_window_save, CFI_WINDOW_SAVE): Define.
693 * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Allow file to be
694 included multiple times.
695 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Pass
696 ptid, tls, ctid arguments to the kernel.
697 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
698 Use INTERNAL_SYSCALL instead of __syscall_getpagesize.
699 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
700 (__libc_sigaction): Use INLINE_SYSCALL instead of
701 __syscall_rt_sigaction.
702 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
703 (__syscall_getgroups, __syscall_getpagesize, __syscall__llseek,
704 __syscall_setfsgid, __syscall_setfsuid, __syscall_setgid,
705 __syscall_setgroups, __syscall_setregid, __syscall_setreuid,
706 __syscall_ipc, __syscall_setuid, __syscall_rt_sigaction,
707 __syscall_rt_sigpending, __syscall_rt_sigprocmask,
708 __syscall_rt_sigqueueinfo, __syscall_rt_sigsuspend,
709 __syscall_rt_sigtimedwait): Remove unneeded syscall stubs.
710 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (sysdep_routines):
711 Remove rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait,
712 rt_sigqueueinfo, rt_sigaction and rt_sigpending.
713 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
714 (__CLONE_SYSCALL_STRING): Define.
715 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Add
716 CFI directives.
717 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
718 (__CLONE_SYSCALL_STRING): Define.
719 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_CLONE_SYSCALL):
720 Define.
721 * sysdeps/unix/sysv/linux/sparc/system.c: New file.
722
723 2003-08-30 Ulrich Drepper <drepper@redhat.com>
724
725 * sunrpc/rpc/clnt.h: Remove a few __THROW.
726 * sunrpc/Makefile (CFLAGS-auth_unix.c): Add -fexceptions.
727 (CFLAGS-key_call.c): Likewise.
728 (CFLAGS-pmap_rmt.c): Likewise.
729 (CFLAGS-clnt_perr.c): Likewise.
730 * sunrpc/rpc/auth.h: Remove serveral __THROW.
731
732 * inet/Makefile (CFLAGS-gethstbyad_r.c): Add -fexceptions.
733 (CFLAGS-gethstbynm_r.c): Likewise.
734 (CFLAGS-gethstbynm2_r.c): Likewise.
735 (CFLAGS-rcmd.c): Likewise.
736 * resolv/Makefile (CFLAGS-res_hconf.c): Add -fexceptions.
737
738 * argp/Makefile (CFLAGS-argp-help.c): Add -fexceptions.
739 (CFLAGS-argp-fmtstream.c): Likewise.
740 * argp/argp.h: Remove a number of __THROW.
741
742 * misc/sys/syslog.h (vsyslog): Remove __THROW.
743
744 * misc/Makefile (CFLAGS-getpass.c): Add -fexceptions.
745 * misc/getpass.c (getpass): Add cleanup handler to ensure the
746 stream is closed even if the thread is canceled.
747 (call_fclose): New function.
748 * posix/unistd.h: Remove __THROW from getpass prototype.
749
750 * posix/Makefile (CFLAGS-getopt.c): Add -fexceptions.
751
752 * signal/signal.h (psignal): Remove __THROW.
753 * stdio-common/Makefile (CFLAGS-psignal.c): Add -fexceptions.
754
755 * misc/Makefile (CFLAGS-error.c): Define.
756 * misc/error.c (error): Disable cancellation handling around the
757 actual output. The message should in any case be printed.
758 (error_at_line): Likewise.
759
760 * misc/error.h: Protect parameter names with leading __.
761
762 2003-08-28 Carlos O'Donell <carlos@baldric.uwo.ca>
763
764 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Add semtimedop.
765
766 2003-08-29 Jakub Jelinek <jakub@redhat.com>
767
768 * libio/iofgetpos64.c (_IO_new_fgetpos64): Move lock release to the
769 end.
770
771 2003-08-29 Ulrich Drepper <drepper@redhat.com>
772
773 * libio/stdio.h: Remove a few more __THROW.
774
775 2003-08-29 Jakub Jelinek <jakub@redhat.com>
776
777 * libio/Makefile: Compile fputc.c, fputwc.c, freopen64.c, freopen.c,
778 fseek.c, fseeko64.c, fseeko.c, ftello64.c, ftello.c, fwide.c, getc.c,
779 getchar.c, getwc.c, getwchar.c, iofclose.c, iofflush.c, iofgetpos64.c,
780 iofgetpos.c, iofgets.c, iofgetws.c, iofputs.c, iofputws.c, iofread.c,
781 iofsetpos64.c, iofsetpos.c, ioftell.c, iofwrite.c, iogetdelim.c,
782 iogetline.c, iogets.c, iogetwline.c, ioputs.c, ioseekoff.c,
783 ioseekpos.c, iosetbuffer.c, iosetvbuf.c, ioungetc.c, ioungetwc.c,
784 oldfileops.c, oldiofclose.c, oldiofgetpos64.c, oldiofgetpos.c,
785 oldiofsetpos64.c, oldiofsetpos.c, peekc.c, putc.c, putchar.c, putwc.c,
786 putwchar.c and rewind.c with exceptions.
787 * sysdeps/generic/bits/stdio-lock.h (_IO_acquire_lock,
788 _IO_release_lock): Define.
789 * libio/fileops.c (_IO_new_file_underflow): Use it.
790 * libio/fputc.c (fputc): Likewise.
791 * libio/fputwc.c (fputwc): Likewise.
792 * libio/freopen64.c (freopen64):
793 * libio/freopen.c (freopen): Likewise.
794 * libio/fseek.c (fseek): Likewise.
795 * libio/fseeko64.c (fseeko64): Likewise.
796 * libio/fseeko.c (fseeko): Likewise.
797 * libio/ftello64.c (ftello64): Likewise.
798 * libio/ftello.c (ftello): Likewise.
799 * libio/fwide.c (fwide): Likewise.
800 * libio/getc.c (_IO_getc): Likewise.
801 * libio/getchar.c (getchar): Likewise.
802 * libio/getwc.c (_IO_getwc): Likewise.
803 * libio/getwchar.c (getwchar): Likewise.
804 * libio/iofclose.c (_IO_new_fclose):
805 * libio/iofflush.c (_IO_fflush): Likewise.
806 * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
807 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
808 * libio/iofgets.c (_IO_fgets): Likewise.
809 * libio/iofgetws.c (fgetws): Likewise.
810 * libio/iofputs.c (_IO_fputs): Likewise.
811 * libio/iofputws.c (fputws): Likewise.
812 * libio/iofread.c (_IO_fread): Likewise.
813 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
814 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
815 * libio/ioftell.c (_IO_ftell): Likewise.
816 * libio/iofwrite.c (_IO_fwrite): Likewise.
817 * libio/iogetdelim.c (_IO_getdelim): Likewise.
818 * libio/iogets.c (_IO_gets): Likewise.
819 * libio/ioputs.c (_IO_puts): Likewise.
820 * libio/ioseekoff.c (_IO_seekoff): Likewise.
821 * libio/ioseekpos.c (_IO_seekpos): Likewise.
822 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
823 * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
824 * libio/ioungetc.c (_IO_ungetc): Likewise.
825 * libio/ioungetwc.c (ungetwc): Likewise.
826 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
827 * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
828 * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
829 * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
830 * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
831 * libio/peekc.c (_IO_peekc_locked): Likewise.
832 * libio/putc.c (_IO_putc): Likewise.
833 * libio/putchar.c (putchar): Likewise.
834 * libio/putwc.c (putwc): Likewise.
835 * libio/putwchar.c (putwchar): Likewise.
836 * libio/rewind.c (rewind): Likewise.
837 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
838
839 2003-08-29 Ulrich Drepper <drepper@redhat.com>
840
841 * signal/signal.h: sighold, sigrelse, sigignore, sigset were
842 available in XPG4.2.
843
844 2003-08-27 Phil Knirsch <pknirsch@redhat.com>
845 Jakub Jelinek <jakub@redhat.com>
846
847 * sunrpc/svc.c (svc_getreqset): Fix fds_bits reading on 64-bit
848 big endian arches. Don't read beyond end of fds_bits array.
849
850 2003-04-27 Bruno Haible <bruno@clisp.org>
851
852 * manual/message.texi (Advanced gettext functions): Add information
853 about Korean, Portuguese, Latvian. Gaeilge is also known as Irish.
854 Add section about Lithuanian, reported by Ricardas Cepas
855 <rch@richard.eu.org>.
856 Add information about Croatian.
857 Ukrainian is like Russian, reported by Andy Rysin <arysin@yahoo.com>.
858 Remove remark about continuation lines that is not true for PO files.
859 Fix formula for Slovenian, reported by Roman Maurer
860 <roman.maurer@amis.net>.
861
862 2003-08-27 Ulrich Drepper <drepper@redhat.com>
863
864 * math/math_private.h: Declare __copysignf.
865 * sysdeps/ieee754/flt-32/s_scalbnf.c: Use __copysignf instead of
866 copysignf.
867
868 * sysdeps/x86_64/fpu/bits/mathinline.h: Define __signbitf,
869 __signbit, and __signbitl inline functions.
870
871 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Use
872 HIDDEN_JUMPTARGET instead of JUMPTARGET to call exit().
873
874 * sysdeps/x86_64/bsd-_setjmp.S [PIC]: Jump to __GI___sigsetjmp.
875 * sysdeps/x86_64/setjmp.S: Add libc_hidden_def for __sigsetjmp.
876
877 2003-08-27 Jakub Jelinek <jakub@redhat.com>
878
879 * inet/inet_mkadr.c (inet_makeaddr): Optimize.
880
881 2003-08-27 Ulrich Drepper <drepper@redhat.com>
882
883 * include/stdio.h: Add declarations for __builtin_fwrite and
884 __builtin_fwrite_unlocked.
885
886 2003-08-27 Jakub Jelinek <jakub@redhat.com>
887
888 * sysdeps/unix/opendir.c (__opendir): Make sure even struct dirent64
889 fits into allocation. Add padding on 32-bit arches so that
890 dirp->data is enough aligned for struct dirent64.
891 Avoid clearing of the buffer, just clear DIR structure.
892
893 2003-08-26 Ulrich Drepper <drepper@redhat.com>
894
895 * nss/nsswitch.c: Add libc_hidden_def for __nss_lookup_function.
896 * nss/nsswitch.h: Add libc_hidden_proto for __nss_lookup_function.
897
898 2003-08-26 Steven Munroe <sjmunroe@us.ibm.com>
899
900 * sysdeps/powerpc/powerpc64/elf/Makefile: New file.
901
902 2003-08-26 Jakub Jelinek <jakub@redhat.com>
903
904 * login/programs/utmpdump.c (print_entry): Cast tv_usec to long
905 to match format string.
906 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (union semun): Add
907 __old_buf.
908 (__new_semctl): Shut up warning.
909 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
910 (_dl_string_hwcap): Add __attribute__ ((always_inline)).
911
912 2003-08-26 Jakub Jelinek <jakub@redhat.com>
913
914 * elf/ldconfig.c (search_dir): When checking for GNU-style .so
915 link file use the real file name, not the resolved name we got by
916 following the symlinks.
917
918 2003-08-25 Ulrich Drepper <drepper@redhat.com>
919
920 * libio/oldfileops.c (_IO_old_file_init): Initialize _mode field
921 if the object size is large enough.
922
923 2003-08-25 Jakub Jelinek <jakub@redhat.com>
924
925 * elf/ldconfig.c (search_dir): Treat symlink as regular file
926 if it won't point to itself unless it is .so symlink for the linker.
927
928 2003-08-25 Ulrich Drepper <drepper@redhat.com>
929
930 * libio/libio.h (_IO_fwide): In the mode==0 optimization, don't
931 use _mode if _IO_fwide_maybe_incompatible.
932 * libio/iofwide.c (_IO_fwide): Move the test for mode == 0 after
933 the compatibility test.
934
935 2003-08-25 Jakub Jelinek <jakub@redhat.com>
936
937 * elf/cache.c (save_cache): Don't write beyond end of file_entries
938 buffer.
939 Duplicate last old cache entry if the count would be odd.
940
941 2003-08-25 Andreas Jaeger <aj@suse.de>
942
943 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Cast arguments of
944 __LONG_LONG_PAIR to long.
945
946 2003-08-25 Philip Blundell <philb@gnu.org>
947
948 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define.
949 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
950
951 2003-08-18 Alfred M. Szmidt <ams@kemisten.nu>
952
953 * sysdeps/generic/bits/libc-lock.h (__libc_cleanup_pop): Redefine
954 and use __libc_cleanup_region_end instead.
955
956 2003-08-25 Ulrich Drepper <drepper@redhat.com>
957
958 * elf/ldconfig.c (search_dir): Revert patch of 2003-7-21.
959
960 2003-08-22 Ulrich Drepper <drepper@redhat.com>
961
962 * io/fcntl.h (posix_fallocate): Change type of third parameter to
963 off_t.
964 (posix_fallocate64): Change type of third parameter to off64_t.
965 * sysdeps/generic/posix_fallocate.c: Adjust for type change.
966 * sysdeps/posix/posix_fallocate.c: Likewise.
967 * sysdeps/generic/posix_fallocate64.c: Likewise.
968 * sysdeps/posix/posix_fallocate64.c: Likewise. Add compatibility
969 code for 32-bit platforms.
970 * sysdeps/unix/sysv/linux/i386/Versions: Add new version for
971 posix_fallocate64.
972 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Likewise.
973 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
974 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
975
976 2003-08-19 Ulrich Drepper <drepper@redhat.com>
977
978 * string/bits/string2.h (__STRING2_COPY_TYPE): Add attribute to
979 the type, not to name.
980
981 * stdio-common/test-vfprintf.c (main): Don't write temporary file
982 into source directory.
983
984 * malloc/malloc.c (_int_free): Add cheap test for some invalid
985 block sizes.
986
987 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo in
988 syscall name.
989
990 2003-08-18 Ulrich Drepper <drepper@redhat.com>
991
992 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Fold EISDIR error
993 into EINVAL.
994
995 2003-08-18 H.J. Lu <hongjiu.lu@intel.com>
996
997 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Use _dl_reloc_bad_type.
998 (elf_machine_lazy_rel): Likewise.
999
1000 2003-08-18 Art Haas <ahaas@airmail.net>
1001
1002 * malloc/malloc.h: Remove unneeded ';' where closing the C++
1003 extern block.
1004
1005 2003-08-18 Ulrich Drepper <drepper@redhat.com>
1006
1007 * sysdeps/ia64/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Support
1008 loading big binaries where @gprel(sym) cannot be handled in 'add'
1009 but instead has to be used with 'movl'.
1010
1011 2003-08-17 Juergen Kreileder <jk@blackdown.de>
1012 Andreas Jaeger <aj@suse.de>
1013
1014 * sysdeps/x86_64/bits/byteswap.h: New file.
1015
1016 2003-08-17 Andreas Jaeger <aj@suse.de>
1017
1018 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo.
1019
1020 2003-08-16 Jakub Jelinek <jakub@redhat.com>
1021
1022 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_ERRVAL,
1023 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
1024 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_ERRVAL,
1025 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
1026 * sysdeps/unix/alpha/sysdep.h (PSEUDO_ERRVAL,
1027 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
1028 * sysdeps/unix/mips/sysdep.h (PSEUDO_ERRVAL,
1029 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
1030 * sysdeps/unix/sparc/sysdep.h (PSEUDO_ERRVAL,
1031 ret_ERRVAL): Define.
1032 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_ERRVAL,
1033 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
1034 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO_ERRVAL,
1035 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
1036 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO_ERRVAL):
1037 Define.
1038 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_ERRVAL,
1039 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
1040 * sysdeps/unix/sysdep.h (PSEUDO_END_ERRVAL): Define.
1041
1042 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64,
1043 posix_fadvise64_64): Remove.
1044 * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64): Add
1045 V flag.
1046 * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64):
1047 Likewise.
1048 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
1049 (posix_fadvise64): Likewise.
1050 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
1051 (posix_fadvise64): Likewise.
1052 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
1053 (posix_fadvise64): Likewise.
1054 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64):
1055 Likewise.
1056 * sysdeps/unix/sysv/linux/i386/posix_fadvise64_64.S: Moved to...
1057 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: ...here.
1058 (__posix_fadvise64_l64): Fix a typo in fadvise64 syscall invocation.
1059 (__posix_fadvise64_l32): New function.
1060 * sysdeps/unix/sysv/linux/i386/Makefile: Revert last change.
1061 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Export
1062 posix_fadvise64@@GLIBC_2.3.3.
1063 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
1064 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
1065 * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Return
1066 error value.
1067 * sysdeps/unix/sysv/linux/posix_fadvise64.c: New file.
1068
1069 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1070 (SYSCALL_ERROR_HANDLER): Use TLS errno/__libc_errno if USE___THREAD.
1071
1072 2003-08-15 Jakub Jelinek <jakub@redhat.com>
1073
1074 * sysdeps/sparc/sparc32/dl-machine.h (WEAKADDR): Remove.
1075 (elf_machine_matches_host): Remove weak extern stuff.
1076 Use GL(dl_hwcap) unconditionally and GL(dl_hwcap_mask) if SHARED.
1077 (elf_machine_runtime_setup, sparc_fixup_plt): Remove weak extern
1078 stuff. Use GL(dl_hwcap) unconditionally.
1079
1080 2003-08-16 Alan Modra <amodra@bigpond.net.au>
1081
1082 * sysdeps/powerpc/powerpc64/elf/start.S: Add a nop after
1083 __libc_start_main branch.
1084
1085 2003-08-16 Jakub Jelinek <jakub@redhat.com>,
1086 Andreas Jaeger <aj@suse.de>
1087
1088 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS
1089 instead of setting errno.
1090 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
1091
1092 2003-08-16 Andreas Jaeger <aj@suse.de>
1093
1094 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype.
1095 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
1096
1097 2003-08-15 Ulrich Drepper <drepper@redhat.com>
1098
1099 * io/fcntl.h (posix_fadvise64): Change type of third parameter to
1100 off_t.
1101 * sysdeps/unix/sysv/linux/posix_fadvise.c: Adjust definition.
1102 * sysdeps/unix/make-syscalls.sh: Recognize V prefix to the parameter
1103 description indicating the error value is returned, not -1.
1104 * sysdeps/unix/sysv/linux/kernel-features.h: Add definition of
1105 __ASSUME_FADVISE64_64_SYSCALL.
1106 * sysdeps/unix/sysv/linux/syscalls.list: Don't define madvise and
1107 posix_madvise in one file. Have posix_madvise defined with error
1108 value returned.
1109 Define posix_fadvise64_64 entry. Add version info to posix_fadvise64
1110 entry.
1111 * sysdeps/unix/sysv/linux/i386/posix_fadvise.S: New file.
1112 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_ERRVAL,
1113 PSEUDO_END_ERRVAL, and ret_ERRVAL.
1114 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
1115 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
1116 * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.3.3]: Add
1117 posix_fadvise64.
1118
1119 * posix/Makefile (routines): Add posix_madvise.
1120 * sysdeps/generic/madvise.c: Don't define posix_madvise.
1121 * sysdeps/generic/posix_madvise.c: New file.
1122 * sysdeps/unix/sysv/aix/posix_madvise.c: New file.
1123 * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (subdir_routines):
1124 Add posix_fadvise64_64.
1125
1126 2003-08-15 Jakub Jelinek <jakub@redhat.com>
1127
1128 * assert/assert.h (assert_perror): Use __builtin_expect for gcc >=
1129 3.0, not for !gcc or gcc < 3.0.
1130
1131 2003-08-11 Carlos O'Donell <carlos@baldric.uwo.ca>
1132
1133 * dlfcn/default.c (main): Cast dlsym loaded value to same type as main.
1134 Address passed to test_in_mod1 and test_in_mod2 without casting.
1135 * dlfcn/defaultmod1.c: Change prototype of test_in_mod1.
1136 (test_in_mod1): Cast dlsym loaded value to same type as mainp.
1137 * dlfcn/defaultmod2.c: Change prototype of test_in_mod2.
1138 (test_in_mod2): Cast dlsym loaded value to same type as mainp.
1139
1140 2003-08-15 Jakub Jelinek <jakub@redhat.com>
1141
1142 * sysdeps/sparc/sparc32/elf/configure.in (libc_cv_sparc32_tls):
1143 Change quotes before using [].
1144
1145 * sysdeps/unix/sysv/linux/sparc/sys/user.h: New file.
1146
1147 * sysdeps/sparc/sparc32/bits/atomic.h (__sparc32_atomic_lock):
1148 Renamed to...
1149 (__sparc32_atomic_locks): ...this. Change into 64-byte array.
1150 (__sparc32_atomic_do_lock, __sparc32_atomic_do_unlock): Add addr
1151 argument. Select one of 64 locks from address bits.
1152 (atomic_compare_and_exchange_val_acq,
1153 atomic_compare_and_exchange_bool_acq): Pass memory address to
1154 __sparc32_atomic_do_{,un}lock.
1155
1156 2003-08-14 Ulrich Drepper <drepper@redhat.com>
1157
1158 * assert/assert.h (assert): Use !! in front of expression to allow
1159 use of pointers.
1160
1161 * iconvdata/cp932.c: Fixed checking of a few border of code areas.
1162 Changed conversion of JIS X 0201 from using a table to calculating.
1163 * iconvdata/euc-jp-ms.c: Fixed conversion table and rewrote
1164 conversion routine. Changed CHARSET_NAME definition from EUCJP-MS to
1165 EUC-JP-MS.
1166 * iconvdata/tst-tables.sh: Add CP932 and EUC-JP-MS.
1167 * iconvdata/CP932.irreversible: New file.
1168 * iconvdata/EUC-JP-MS.irreversible: New file.
1169 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
1170
1171 2003-08-13 Ulrich Drepper <drepper@redhat.com>
1172
1173 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add time syscall.
1174
1175 * elf/Makefile: Use LC_ALL=C in a few cases where we call external
1176 text processing tools.
1177
1178 * sysdeps/pthread/aio_misc.h (struct waitlist): Don't add caller_pid
1179 element unless BROKEN_THREAD_SIGNALS is defined.
1180 (struct requestlist): Likewise.
1181 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Don't fill in
1182 caller_pid of new request unless BROKEN_THREAD_SIGNALS is defined.
1183 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
1184 * sysdeps/pthread/aio_notify.c (__aio_notify_only): Remove caller_pid
1185 parameter unless BROKEN_THREAD_SIGNALS is defined. Adjust callers.
1186 Pass current PID to __aio_sigqueue.
1187 * sysdeps/pthread/lio_listio.c (lio_listio): Adjust __aio_notify_only
1188 call. Don't initialize caller_pid field of waitlist element.
1189
1190 2003-08-12 Jakub Jelinek <jakub@redhat.com>
1191
1192 * libio/libioP.h (_IO_vtable_offset): Define.
1193 * libio/freopen.c (freopen): Use it.
1194 * libio/ioputs.c (_IO_puts): Likewise.
1195 * libio/freopen64.c (freopen64): Likewise.
1196 * libio/genops.c (__underflow, __uflow, _IO_flush_all_lockp):
1197 Likewise.
1198 * libio/iofclose.c (_IO_new_fclose): Likewise.
1199 * libio/iofputs.c (_IO_fputs): Likewise.
1200 * libio/ioftell.c (_IO_ftell): Likewise.
1201 * libio/iofwrite.c (_IO_fwrite): Likewise.
1202 * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
1203 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
1204 * stdio-common/vfprintf.c (ORIENT, vfprintf): Likewise.
1205 * stdio-common/vfscanf.c (ORIENT): Likewise.
1206
1207 2003-08-11 Ulrich Drepper <drepper@redhat.com>
1208
1209 * assert/assert.h: Use __builtin_expect in assert and
1210 assert_perror definitions if possible.
1211
1212 2003-08-07 Jakub Jelinek <jakub@redhat.com>
1213
1214 * sysdeps/generic/ldsodefs.h (_rtld_global): Add
1215 _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
1216 * elf/rtld.c (rtld_lock_default_lock_recursive,
1217 rtld_lock_default_unlock_recursive): New functions.
1218 (dl_main): Initialize _dl_rtld_lock_recursive and
1219 _dl_rtld_unlock_recursive.
1220
1221 2003-08-05 Jakub Jelinek <jakub@redhat.com>
1222
1223 * elf/ldconfig.c (main): Append SLIBDIR and LIBDIR to
1224 config_file directories instead of prepending.
1225
1226 2003-08-02 Ulrich Drepper <drepper@redhat.com>
1227
1228 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1229 __ASSUME_CLONE_STOPPED.
1230
1231 2003-08-01 Ulrich Drepper <drepper@redhat.com>
1232
1233 * sysdeps/generic/bits/libc-lock.h
1234 (__libc_cleanup_push,__libc_cleanup_pop): Define even here.
1235
1236 2003-08-01 Roland McGrath <roland@frob.com>
1237
1238 * sysdeps/mach/hurd/getdents.c: Just use sysdeps/generic/getdents.c.
1239
1240 2003-07-31 Jakub Jelinek <jakub@redhat.com>
1241
1242 * sysdeps/generic/bits/types.h (__ssize_t): Use __SSIZE_T_TYPE
1243 instead of __SWORD_TYPE.
1244 * sysdeps/generic/bits/typesizes.h (__SSIZE_T_TYPE): Define.
1245 * sysdeps/mach/hurd/bits/typesizes.h (__SSIZE_T_TYPE): Define.
1246 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h (__SSIZE_T_TYPE):
1247 Define.
1248 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__SSIZE_T_TYPE):
1249 Define.
1250 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__SSIZE_T_TYPE):
1251 Define.
1252 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New file.
1253
1254 * dlfcn/dlerror.c (once): New.
1255 (dlerror): Call __libc_once.
1256 (_dlerror_run): Remove once.
1257
1258 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
1259 Sync with 2.5.7 and 2.5.73 kernel changes.
1260
1261 * dlfcn/eval.c (funcall): Add noinline attribute to shut up warnings.
1262 * elf/rtld.c (dl_main): Cast ElfW(Addr) arguments with %Zx/%Zd
1263 formats to size_t.
1264 * elf/dl-lookup.c (_dl_debug_bindings): Likewise.
1265 * elf/tst-tls6.c (do_test): Use %zd format for l_tls_modid.
1266 * elf/tst-tls8.c (do_test): Use %zd format for modid1 and modid2.
1267 * gmon/tst-sprofil.c (main): Add parens to shut up warning.
1268 * iconv/tst-iconv3.c (main): Use %td instead of %zd for pointer
1269 difference argument.
1270 * stdio-common/tst-wc-printf.c (main): Cast arguments with %C
1271 format to wint_t.
1272 * stdlib/tst-limits.c (main): For WORD_BIT and LONG_BIT, use
1273 %d format and cast expected value to int.
1274 * sysdeps/generic/libc-start.c (STATIC): Add
1275 __attribute__((always_inline) if LIBC_START_MAIN is already defined.
1276 * sysdeps/powerpc/fpu/w_sqrt.c (a_nan, a_inf): Change from uint32_t
1277 to ieee_float_shape_type.
1278 (__sqrt): Avoid type punning.
1279 * sysdeps/powerpc/fpu/w_sqrtf.c (a_nan, a_inf): Change from uint32_t
1280 to ieee_float_shape_type.
1281 (__sqrtf): Avoid type punning.
1282 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Don't define
1283 refsym if in dl-conflict.c.
1284 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
1285 * sysdeps/unix/sysv/linux/i386/semctl.c (union semun): Add __old_buf.
1286 (__new_semctl): Shut up warning.
1287 * sysdeps/unix/sysv/linux/semctl.c (union semun): Add __old_buf.
1288 (__new_semctl): Shut up warning.
1289 * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Wrap long lines.
1290 Change old into union of __old_shmid_ds and __old_shminfo structs.
1291 Adjust all users.
1292 * wcsmbs/wcsmbs-tst1.c (main): Cast arguments with %C format to wint_t.
1293
1294 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Fix actime and
1295 modtime computation.
1296 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
1297 * sysdeps/posix/utimes.c (__utimes): Likewise.
1298
1299 2003-07-30 Jakub Jelinek <jakub@redhat.com>
1300
1301 * elf/dl-reloc.c (_dl_allocate_static_tls): Don't return any value,
1302 call dl_signal_error directly. If already relocated, call
1303 GL(dl_init_static_tls) directly, otherwise queue it for later.
1304 (CHECK_STATIC_TLS): Undo 2003-07-24 change.
1305 * elf/rtld.c (dl_main): Initialize GL(dl_init_static_tls).
1306 * elf/dl-open.c (dl_open_worker): Call GL_dl_init_static_tls
1307 for all static TLS initializations delayed in _dl_allocate_static_tls.
1308 * elf/dl-support.c (_dl_init_static_tls): New variable.
1309 * include/link.h (struct link_map): Add l_need_tls_init.
1310 * sysdeps/generic/ldsodefs.h (_rtld_global): Add _dl_init_static_tls.
1311 (_dl_nothread_init_static_tls): New prototype.
1312 (_dl_allocate_static_tls): Adjust prototype.
1313
1314 * elf/tls-macros.h (VAR_INT_DEF): Add alignment directive.
1315
1316 2003-07-31 Alexandre Oliva <aoliva@redhat.com>
1317
1318 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
1319 elf_machine_rel_relative, elf_machine_rela_relative): Don't assume
1320 reloc_addr is aligned.
1321 * sysdeps/alpha/dl-machine.h (elf_machine_rela,
1322 elf_machine_rela_relative): Adjust.
1323 * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela,
1324 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
1325 * sysdeps/cris/dl-machine.h (elf_machine_rela,
1326 elf_machine_rela_relative): Adjust.
1327 * sysdeps/hppa/dl-machine.h (elf_machine_rela,
1328 elf_machine_rela_relative): Adjust.
1329 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela,
1330 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
1331 * sysdeps/ia64/dl-machine.h (elf_machine_rela,
1332 elf_machine_rela_relative): Adjust.
1333 * sysdeps/m68k/dl-machine.h (elf_machine_rela,
1334 elf_machine_rela_relative): Adjust.
1335 * sysdeps/mips/dl-machine.h (elf_machine_rela,
1336 elf_machine_rela_relative): Adjust.
1337 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela,
1338 elf_machine_rela_relative): Adjust.
1339 * sysdeps/powerpc/powerpc64/dl-machine.h
1340 (elf_machine_rela_relative, elf_machine_rela): Adjust.
1341 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela,
1342 elf_machine_rela_relative): Adjust.
1343 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela,
1344 elf_machine_rela_relative): Adjust.
1345 * sysdeps/sh/dl-machine.h (elf_machine_rela,
1346 elf_machine_rela_relative): Adjust.
1347 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
1348 elf_machine_rela_relative): Adjust.
1349 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
1350 elf_machine_rela_relative): Adjust.
1351 * sysdeps/x86_64/dl-machine.h (elf_machine_rela,
1352 elf_machine_rela_relative): Adjust.
1353
1354 2003-07-29 Ulrich Drepper <drepper@redhat.com>
1355
1356 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Restore
1357 alignment of TCB used before the last change so that it matches
1358 ld's output for IE code.
1359
1360 2003-07-29 Jakub Jelinek <jakub@redhat.com>
1361
1362 * include/ctype.h (__ctype_b_loc, __ctype_toupper_loc,
1363 __ctype_tolower_loc): Avoid "dereferencing type-punned pointer will
1364 break strict-aliasing rules" warnings.
1365
1366 2003-07-29 Roland McGrath <roland@redhat.com>
1367
1368 * elf/Makefile: Revert accidental changes in last commit.
1369 * elf/dl-support.c: Likewise.
1370
1371 * rt/tst-timer2.c: New file.
1372 * rt/Makefile (tests): Add it.
1373
1374 2003-07-25 Jakub Jelinek <jakub@redhat.com>
1375
1376 * elf/dl-support.c (_dl_hwcap): Add nocommon attribute.
1377
1378 2003-07-29 Roland McGrath <roland@redhat.com>
1379
1380 * elf/Makefile (tests) [$(build-shared) = yes]:
1381 Depend on $(test-modules).
1382 * dlfcn/Makefile: Likewise.
1383
1384 2003-07-28 Roland McGrath <roland@redhat.com>
1385
1386 * sysdeps/generic/bits/types.h (__STD_TYPE): New macro.
1387 Use that instead of `typedef' when using __*_TYPE macros in rhs.
1388
1389 * elf/tst-tls14.c [USE_TLS && HAVE___THREAD]: Conditionalize on this.
1390 * elf/tst-tlsmod14a.c: Likewise.
1391
1392 * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h>
1393 before <linux/sysctl.h>.
1394
1395 2003-07-27 Ulrich Drepper <drepper@redhat.com>
1396
1397 * sysdeps/unix/sysv/syscalls.list: time syscall never fails.
1398 * sysdeps/unix/sysv/linux/x86_64/time.S: time syscall never fails.
1399 * sysdeps/unix/sysv/i386/time.S: time syscall never fails.
1400 * sysdeps/unix/syscalls.list: umask syscall never fails.
1401
1402 2003-07-27 Andreas Jaeger <aj@suse.de>
1403
1404 * sysdeps/unix/sysv/linux/init-first.c: Mark init as used.
1405
1406 2003-07-25 Jakub Jelinek <jakub@redhat.com>
1407
1408 * sysdeps/unix/sysv/linux/a.out.h: Replace with i386 version.
1409 Include bits/a.out.h.
1410 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1411 bits/a.out.h.
1412 * sysdeps/unix/sysv/linux/bits/a.out.h: New file.
1413 * sysdeps/unix/sysv/linux/i386/bits/a.out.h: New file.
1414 * sysdeps/unix/sysv/linux/m68k/bits/a.out.h: New file.
1415 * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: New file.
1416 * sysdeps/unix/sysv/linux/alpha/a.out.h: New file.
1417 * sysdeps/unix/sysv/linux/alpha/bits/a.out.h: New file.
1418 * sysdeps/unix/sysv/linux/sparc/a.out.h: New file.
1419 * sysdeps/unix/sysv/linux/sparc/bits/a.out.h: New file.
1420
1421 2003-07-24 Jakub Jelinek <jakub@redhat.com>
1422
1423 * sysdeps/pthread/aio_cancel.c (aio_cancel): Return AIO_ALLDONE
1424 if aiocbp != NULL and has already completed. Return -1/EINVAL if
1425 aiocbp->aio_fildes does not match fildes.
1426
1427 2003-07-24 Ulrich Drepper <drepper@redhat.com>
1428
1429 * timezone/zic.c (rpytime): Replace cheap overflow check with a
1430 functioning one.
1431
1432 * include/link.h (struct link_map): Add l_tls_firstbyte_offset field.
1433 * sysdeps/generic/dl-tls.c [TLS_TCB_AT_TP] (_dl_determine_tlsoffset):
1434 Fix calculation of offsets to take misalignment of first byte in
1435 file into account.
1436 * elf/dl-load.c (_dl_map_object_from_fd): Initialize
1437 l_tls_firstbyte_offset field.
1438 * elf/rtld.c (_dl_start_final, _dl_start, dl_main): Likewise.
1439 * elf/dl-reloc.c (_dl_allocate_static_tls): Change return type to int.
1440 Take l_tls_firstbyte_offset information into account.
1441 (CHECK_STATIC_TLS): _dl_allocate_static_tls can fail now.
1442 * sysdeps/generic/ldsodefs.h: Adjust _dl_allocate_static_tls prototype.
1443 * elf/Makefile: Add rules to build and run tst-tls14.
1444 * elf/tst-tls14.c: New file.
1445 * elf/tst-tlsmod14a.c: New file.
1446 * elf/tst-tlsmod14b.c: New file.
1447
1448 2003-07-23 Jakub Jelinek <jakub@redhat.com>
1449
1450 * sysdeps/pthread/lio_listio.c (LIO_OPCODE_BASE): Define.
1451 (lio_listio): Use it.
1452 * sysdeps/pthread/lio_listio64.c: Include lio_listio.c instead of
1453 after few defines to avoid duplication.
1454
1455 2003-07-22 Jakub Jelinek <jakub@redhat.com>
1456
1457 * include/stdio.h (__libc_fatal): Add libc_hidden_proto.
1458 * include/dlfcn.h (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
1459 Likewise.
1460 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
1461 Add libc_hidden_def.
1462 * sysdeps/generic/libc_fatal.c (__libc_fatal): Likewise.
1463 * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
1464 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Likewise.
1465 * elf/Versions (libc): Export __libc_dlopen_mode@@GLIBC_PRIVATE,
1466 __libc_dlsym@@GLIBC_PRIVATE and __libc_dlclose@@GLIBC_PRIVATE.
1467 * libio/Versions (libc): Export __libc_fatal@@GLIBC_PRIVATE.
1468 * sysdeps/generic/unwind-dw2.c: Readd #ifs removed during last
1469 change.
1470 * sysdeps/generic/unwind.inc: Removed.
1471
1472 * include/resolv.h (__resp): Declare. Define to __libc_resp
1473 if in libc.so.
1474 (_res): If USE___THREAD, define to (*__resp).
1475 * resolv/res_libc.c (_res): Normal .bss variable with compat_symbol
1476 even if USE___THREAD.
1477 (__resp): New __thread variable.
1478 (__libc_resp): New alias.
1479 * resolv/Versions (libc): Export _res@GLIBC_2.0 even if
1480 USE_TLS && HAVE___THREAD. Export __resp@@GLIBC_PRIVATE.
1481 * sysdeps/generic/res-state.c (__res_state): Return __resp
1482 if USE___THREAD.
1483
1484 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
1485
1486 * elf/dl-support.c (_dl_hwcap): New variable.
1487 (_dl_aux_init): Initialize GL(dl_hwcap) for static binaries.
1488
1489 * sysdeps/i386/fpu/fclrexcpt.c: Include <unistd.h>, <ldsodefs.h>
1490 and <dl-procinfo.h>.
1491 (__feclearexcept): Clear MXCSR if needed.
1492 * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
1493
1494 * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Document
1495 that newer hardware needs more than these macros.
1496
1497 * sysdeps/i386/setfpucw.c: New file.
1498
1499 2003-07-22 Jakub Jelinek <jakub@redhat.com>
1500
1501 * elf/Makefile (CFLAGS-ldconfig.c): Define IS_IN_ldconfig.
1502 * elf/ldconfig.c: Include dl-procinfo.c.
1503 (PROCINFO_CLASS): Define.
1504 * sysdeps/generic/ldsodefs.h (PROCINFO_CLASS): Define.
1505 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: New file.
1506 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: New file.
1507 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (PROCINFO_CLASS):
1508 Define if not yet defined. Use it instead of EXTERN. Undefine
1509 at the end of the file.
1510 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (PROCINFO_CLASS):
1511 Likewise.
1512 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c
1513 (PROCINFO_CLASS): Likewise.
1514 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c
1515 (PROCINFO_CLASS): Likewise.
1516
1517 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
1518
1519 * elf/ldconfig.c (main): Issue a fatal error if relative path
1520 is used to build cache.
1521
1522 2003-07-22 Ulrich Drepper <drepper@redhat.com>
1523
1524 * elf/readlib.c (process_file): Avoid possible overflow in assignment.
1525
1526 2003-07-21 Art Haas <ahaas@airmail.net>
1527
1528 * manual/charset.texi (Converting a Character): Fix example code so a
1529 valid pointer is returned.
1530
1531 2003-07-22 Andreas Jaeger <aj@suse.de>
1532
1533 * elf/readlib.c (process_file): Check that file is a shared
1534 object.
1535
1536 * elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
1537 will not optimize it away.
1538 (__DTOR_END__): Likewise.
1539 (__CTOR_END__): Likewise.
1540
1541 * include/libc-symbols.h (_elf_set_element): Use attribute used so
1542 that gcc will not optimize it away.
1543 (link_warning): Likewise.
1544
1545 2003-07-22 Ulrich Drepper <drepper@redhat.com>
1546
1547 * wcsmbs/wcpncpy.c (__wcpncpy): Correct destination pointer handling.
1548 * wcsmbs/Makefile (tests): Add tst-wcpncpy.
1549 * wcsmbs/tst-wcpncpy.c: New file.
1550
1551 2003-07-21 Ulrich Drepper <drepper@redhat.com>
1552
1553 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_STOPPED): Define.
1554
1555 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of
1556 stmxcsr and ldmxcsr.
1557
1558 * Makerules (build-module-helper): Add -z defs unless explicitly said
1559 not to do it.
1560 * dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs
1561 which has undefined symbols.
1562 * elf/Makefile: Likewise.
1563
1564 * sysdeps/i386/fpu/fedisblxcpt.c: Use dl_hwcap, not dl_hwcap_mask.
1565 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
1566 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
1567 * sysdeps/i386/fpu/fesetround.c: Likewise.
1568 * sysdeps/i386/fpu/ftestexcept.c: Likewise.
1569
1570 2003-07-21 HJ Lu <hongjiu.lu@intel.com>
1571
1572 * elf/ldconfig.c (search_dir): Treat symlink as regular file
1573 if it won't point to itself.
1574
1575 2003-07-20 Ulrich Drepper <drepper@redhat.com>
1576
1577 * sysdeps/ia64/hp-timing.h (REPEAT_READ): Cast to long int not to int.
1578
1579 2003-07-20 Andreas Jaeger <aj@suse.de>
1580
1581 * iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called
1582 STANDARD_TO_LOOP_ERR_HANDLER.
1583 * iconvdata/euc-jp-ms.c (BODY): Likewise.
1584
1585 2003-07-19 Ulrich Drepper <drepper@redhat.com>
1586
1587 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO): Fix typo.
1588
1589 * sysdeps/unix/sysv/linux/syscalls.list: Remove affinity syscalls.
1590
1591 2003-07-16 Daniel Jacobowitz <drow@mvista.com>
1592 Andreas Jaeger <aj@suse.de>
1593
1594 * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to
1595 256K, remove unneeded declaration of __getpagesize.
1596
1597 2003-07-16 Andreas Schwab <schwab@suse.de>
1598
1599 * sysdeps/unix/sysv/linux/futimes.c: Include <string.h>.
1600
1601 2003-07-15 Ulrich Drepper <drepper@redhat.com>
1602
1603 * io/test-utime.c (main): Make test yet more robust.
1604
1605 2003-07-14 Ulrich Drepper <drepper@redhat.com>
1606
1607 More cancellation handling fixups.
1608 * sysdeps/unix/sysv/linux/not-cancel.h: Add waitpid_not_cancel.
1609 * sysdeps/generic/not-cancel.h: Likewise.
1610 * catgets/open_catalog.c: Use not-cancelable syscalls.
1611 * time/Makefile (CFLAGS-getdate.c): Add -fexceptions.
1612 * sysdeps/unix/sysv/linux/llseek.c: Must not be cancelable.
1613 * sysdeps/unix/syscalls.list: Don't mark lseek as cancelable.
1614 * dlfcn/dlfcn.h: Mark dlopen with __THROW again.
1615 * io/fcntl.h: Don't mark posix_fallocate with __THROW.
1616 * libio/fileops.c: Use not-cancelable syscalls for fclose.
1617 * libio/iopopen.c: Use no-cancelable syscalls.
1618 * libio/stdio.h: Mark popen and pclose with __THROW again.
1619 * misc/Makefile (CFLAGS-syslog.c): Add -fexceptions.
1620 * misc/syslog.c: Fix locking and cancellation cleanup handling.
1621 * posix/unistd.h: Mark ttyname and ttyname_r again with __THROW.
1622 * stdio-common/Makefile (CFLAGS-tmpfile.c, CFLAGS-tmpfile64.c,
1623 CFLAGS-tempname.c): Add -fexceptions.
1624 * stdlib/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
1625 * string/string.h: Mark strerror and strerror_r with _THROW again.
1626 * sysdeps/generic/unwind.inc: New file. Copied from gcc.
1627 * sysdeps/generic/unwind-dw2.c: Update from gcc version. Remove
1628 #ifs since we now need all the code compiled.
1629 * sysdeps/posix/spawni.c: Use close_not_cancel instead of close.
1630 * sysdeps/unix/closedir.c: Use not-cancelable syscalls.
1631 * sysdeps/unix/opendir.c: Likewise.
1632
1633 * iconvdata/Makefile (modules): Add CP932 and EUC-JP-MS.
1634 Add rule for EUC-JP-MS dependency.
1635 * iconvdata/cp932.c: New file.
1636 * iconvdata/eucjp-ms.c: New file.
1637 * iconvdata/gconv-modules: Add entries for CP932 and EUC-JP-MS.
1638 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
1639
1640 2003-07-15 Jakub Jelinek <jakub@redhat.com>
1641
1642 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket): Add
1643 cfi directives.
1644
1645 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1646
1647 * sysdeps/unix/sysv/linux/kernel-features.h
1648 (__ASSUME_FIXED_CLONE_SYSCALL): New macro.
1649 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Use it.
1650
1651 * sysdeps/unix/sysv/linux/utimes.c: Include sysdep.h.
1652
1653 2003-07-14 Ulrich Drepper <drepper@redhat.com>
1654
1655 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1656 __ASSUME_TGKILL for Alpha appropriately.
1657
1658 2003-07-12 Ulrich Drepper <drepper@redhat.com>
1659
1660 * sysdeps/unix/sysv/linux/bits/statfs.h (_STATFS_F_FRSIZE): Define.
1661 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h (_STATFS_F_FRSIZE):
1662 Likewise.
1663 * sysdeps/unix/sysv/linux/s390/bits/statfs.h (_STATFS_F_FRSIZE):
1664 Likewise.
1665
1666 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1667 __ASSUME_UTIMES for x86 and kernels > 2.5.75.
1668
1669 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with
1670 second parameter == NULL.
1671 * sysdeps/unix/sysv/linux/utimes.c: New file.
1672
1673 2003-07-12 Jakub Jelinek <jakub@redhat.com>
1674
1675 * sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h.
1676 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix
1677 a typo.
1678
1679 2003-07-12 Ulrich Drepper <drepper@redhat.com>
1680
1681 * time/sys/time.h: Namespace cleanup.
1682 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1683 __ASSUME_UTIMES for the architectures which always had the syscall.
1684 * sysdeps/unix/sysv/linux/futimes.c: New file.
1685
1686 2003-07-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1687
1688 * sysdeps/unix/sysv/linux/sh/socket.S: Save and restore the PR
1689 register across CENABLE and CDISABLE.
1690
1691 2003-07-11 Jakub Jelinek <jakub@redhat.com>
1692
1693 * sysdeps/unix/sysv/linux/sigwait.c: Include string.h.
1694 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1695 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
1696 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Cast value to unsigned
1697 int before assigning to max to avoid warnings.
1698
1699 2003-07-11 Jakub Jelinek <jakub@redhat.com>
1700
1701 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket): Add
1702 cfi directives.
1703 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Likewise.
1704 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
1705
1706 2003-07-10 Jakub Jelinek <jakub@redhat.com>
1707
1708 * sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of
1709 .data.rel.ro.local to "aw".
1710
1711 2003-07-10 Ulrich Drepper <drepper@redhat.com>
1712
1713 * sysdeps/m68k/Makefile: Remove CLFAGS-.oS addition.
1714 * Makeconfig (CFLAGS-.oS): Use PIC-ccflag instead of pic-ccflag.
1715 (PIC-ccflag): Define.
1716
1717 2003-07-04 Jakub Jelinek <jakub@redhat.com>
1718
1719 * sysdeps/s390/s390-32/elf/start.S: Emit position independent code
1720 if PIC.
1721 * sysdeps/s390/s390-64/elf/start.S: Likewise.
1722
1723 2003-07-07 Jakub Jelinek <jakub@redhat.com>
1724
1725 * sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address)
1726 into .data.rel.ro.local section if PIC to avoid DT_TEXTREL.
1727
1728 2003-07-07 Ulrich Drepper <drepper@redhat.com>
1729
1730 * sysdeps/unix/sysv/linux/kernel-features.h: Version
1731 __ASSUME_CORRECT_SI_PID and __ASSUME_TGKILL if possible.
1732
1733 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
1734 compilation with HAVE_AUX_SECURE defined.
1735
1736 2003-07-05 Richard Henderson <rth@redhat.com>
1737
1738 * sysdeps/alpha/elf/initfini.c: Avoid .ent/.end.
1739
1740 2003-07-03 Ulrich Drepper <drepper@redhat.com>
1741
1742 * configure.in: Also check for .cfi_rel_offset pseudo-op.
1743
1744 2003-07-03 Jakub Jelinek <jakub@redhat.com>
1745
1746 * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency): Fix a
1747 typo.
1748
1749 2003-07-03 Ulrich Drepper <drepper@redhat.com>
1750
1751 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_CLKTCK):
1752 Define.
1753 * sysdeps/unix/sysv/linux/prof-freq.h: New file.
1754
1755 2003-07-02 Jakub Jelinek <jakub@redhat.com>
1756
1757 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Protect new_sysinfo
1758 decl and use with #ifdef NEED_DL_SYSINFO.
1759
1760 2003-07-02 Ulrich Drepper <drepper@redhat.com>
1761
1762 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't set
1763 GL(dl_sysinfo) unles GL(dl_sysinfo_dso) is also set.
1764 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1765 __ASSUME_VSYSCALL only for 2.5.69 and up since this is when the
1766 vsyscall DSO was added.
1767
1768 * posix/bits/posix1_lim.h (_POSIX_NGROUPS_MAX): Define to 8 or 0
1769 depending on selected standard.
1770 (NGROUPS_MAX): Define to 8 if not defined.
1771
1772 2003-07-02 Andreas Jaeger <aj@suse.de>
1773
1774 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: New file.
1775
1776 2003-05-04 H.J. Lu <hongjiu.lu@intel.com>
1777
1778 * malloc/arena.c (arena_get2): Add atomic_write_barrier.
1779 * malloc/thread-m.h: Include <atomic.h>.
1780 (atomic_full_barrier): Provide default.
1781 (atomic_read_barrier): Likewise.
1782 (atomic_write_barrier): Likewise.
1783 * sysdeps/ia64/bits/atomic.h (atomic_full_barrier): New #define.
1784
1785 2003-06-30 Ulrich Drepper <drepper@redhat.com>
1786
1787 * sysdeps/generic/sysdep.h: Define cfi_rel_offset and CFI_REL_OFFSET.
1788
1789 2003-06-30 Richard Henderson <rth@redhat.com>
1790
1791 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_bool_*_int):
1792 Invert the sense of the return value.
1793 (__arch_exchange_16_int): Fix paste-o.
1794 (__arch_exchange_{32,64}_int): Fix think-o.
1795
1796 * sysdeps/unix/sysv/linux/alpha/clone.S: Load child_tid properly.
1797
1798 2003-06-30 Richard Henderson <rth@redhat.com>
1799
1800 * include/sys/resource.h (__getrusage): Mark hidden.
1801 * include/sys/time.h (__settimeofday, __setitimer, __utimes): Likewise.
1802 * include/sys/wait.h (__wait4): Likewise.
1803
1804 2003-06-17 Guido Guenther <agx@sigxcpu.org>
1805
1806 * sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT
1807 case.
1808 (xstat_conv): Rename to __xstat_conv and remove static inline.
1809 (xstat64_conv): Likewise.
1810
1811 2003-06-29 Ulrich Drepper <drepper@redhat.com>
1812
1813 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Handle parameter
1814 values which cannot be handled in one nanosleep call.
1815
1816 2003-06-25 Alfred M. Szmidt <ams@kemisten.nu>
1817
1818 * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros.
1819 (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them.
1820
1821 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix.
1822
1823 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
1824
1825 * sysdeps/unix/sysv/linux/net/if_arp.h: Sync with kernel header,
1826 fix typo.
1827
1828 2003-06-26 Steven Munroe <sjmunroe@us.ibm.com>
1829
1830 * sysdeps/unix/sysv/linux/xstatconv.h [!STAT_IS_KERNEL_STAT]:
1831 Conditionalize function definitions that use struct kernel_stat.
1832 * sysdeps/unix/sysv/linux/fxstat.c: Remove __syscall_fstat extern.
1833 * sysdeps/unix/sysv/linux/lxstat.c: Remove __syscall_lstat extern.
1834 * sysdeps/unix/sysv/linux/xstat.c: Remove __syscall_stat extern.
1835
1836 2003-06-28 Ulrich Drepper <drepper@redhat.com>
1837
1838 * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Add real
1839 implementation.
1840
1841 2003-06-07 Thorsten Kukuk <kukuk@suse.de>
1842
1843 * nis/nss_compat/compat-grp.c: Remove unused nis_first variable.
1844 (getgrent_next_file): Don't store group name to early in blacklist.
1845
1846 * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Save strlen result
1847 and use memcpy instead of strcpy.
1848
1849 2003-06-28 Ulrich Drepper <drepper@redhat.com>
1850
1851 * nis/nss_compat/compat-grp.c: Optimize several little things. Use
1852 stream unlocked.
1853 * nis/nss_compat/compat-initgroups.c: Likewise.
1854 * nis/nss_compat/compat-pwd.c: Likewise.
1855 * nis/nss_compat/compat-spwd.c: Likewise.
1856
1857 2003-06-27 Thorsten Kukuk <kukuk@suse.de>
1858
1859 * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+
1860 functions, dlopen corresponding NSS module instead.
1861
1862 2003-06-27 Jeroen Dekkers <jeroen@dekkers.cx>
1863
1864 * sysdeps/mach/hurd/alpha/init-first.c: Remove call to __libc_init.
1865 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
1866 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
1867 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1868
1869 2003-06-27 Ulrich Drepper <drepper@redhat.com>
1870
1871 * rt/Makefile (CFLAGS-librt-cancellation.c): Define.
1872
1873 2003-06-26 Roland McGrath <roland@frob.com>
1874
1875 * sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME.
1876 * sysdeps/mach/configure: Regenerated.
1877 * sysdeps/mach/hurd/times.c (times_init): Function removed.
1878 (__times): Assume `creation_time' field is available.
1879 * sysdeps/mach/hurd/Makefile [$(subdir) = csu] (sysdep_routines):
1880 Don't append set-init.
1881 * sysdeps/mach/hurd/set-init.c: File removed.
1882
1883 2003-06-26 Roland McGrath <roland@redhat.com>
1884
1885 * elf/elf.h (AT_SECURE): New macro.
1886 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Grok it,
1887 set __libc_enable_secure.
1888 (_dl_show_auxv): Add AT_SECURE to name table.
1889 * elf/dl-support.c (_dl_aux_init): Grok AT_SECURE, set
1890 __libc_enable_secure and __libc_enable_secure_decided.
1891 * sysdeps/unix/sysv/linux/ldsodefs.h
1892 [__ASSUME_AT_SECURE] (HAVE_AUX_SECURE): Define it.
1893 * sysdeps/unix/sysv/linux/kernel-features.h
1894 [__LINUX_KERNEL_VERSION >= 132426] (__ASSUME_AT_SECURE): Define it.
1895
1896 2003-06-26 Ulrich Drepper <drepper@redhat.com>
1897
1898 * io/test-utime.c: If _STATBUF_ST_NSEC is defined, adjust lower
1899 boundary test to take rounding of nanoseconds into account.
1900
1901 * sysdeps/unix/sysv/linux/bits/stat.h: Define _STATBUF_ST_NSEC.
1902 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1903 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise.
1904 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1905 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1906 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1907 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1908
1909 2003-06-26 Andreas Schwab <schwab@suse.de>
1910
1911 * sysdeps/m68k/fpu/bits/mathinline.h: Don't inline frexp.
1912 * sysdeps/m68k/fpu/s_frexp.c: Put implementation here.
1913 * sysdeps/m68k/fpu/s_frexpl.c: Fix to handle unnormalized numbers.
1914
1915 2003-06-17 Thorsten Kukuk <kukuk@suse.de>
1916
1917 * nis/Makefile: Remove NIS/NIS+ files from nss_compat module.
1918 * nis/nss_compat/compat-grp.c: Don't use our own NIS/NIS+ functions,
1919 dlopen corresponding NSS module instead.
1920 * nis/nss_compat/compat-pwd.c: Likewise.
1921 * nis/nss_compat/compat-spwd.c: Likewise.
1922 * nis/nss_compat/compat-initgroups.c: Disabled for now.
1923 * nss/Versions: Export __nss_lookup_function.
1924
1925 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1926
1927 * sysdeps/unix/sysv/linux/kernel-features.h: Update kernel features
1928 for the SH architecture.
1929
1930 2003-06-25 Thorsten Kukuk <kukuk@suse.de>
1931
1932 * csu/Makefile: Use CPPFLAGS to find correct linux/version.h.
1933
1934 2003-06-25 Andreas Jaeger <aj@suse.de>
1935
1936 * stdlib/tst-strtod.c (main): Declare constant long double as
1937 suggested by Jakub Jelinek and Andreas Schwab.
1938
1939 * posix/tst-nanosleep.c: Include <time.h> for nanosleep
1940 declaration.
1941
1942 * stdio-common/tst-fphex.c: Fix format string.
1943
1944 * posix/transbug.c: Include <string.h> for memset and strlen
1945 declarations.
1946
1947 * stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration.
1948
1949 * stdlib/tst-strtod.c (main): Pass long double value.
1950
1951 * test-skeleton.c: Include <time.h> for nanosleep declaration.
1952
1953 2003-06-25 Ulrich Drepper <drepper@redhat.com>
1954
1955 * include/time.h: Don't define CLOCK_IDFIELD_SIZE if _ISOMAC is
1956 defined.
1957
1958 2003-06-11 Jakub Jelinek <jakub@redhat.com>
1959
1960 * elf/Versions (libc): Add _dl_open_hook@GLIBC_PRIVATE.
1961 * elf/dl-libc.c (struct dl_open_hook): New.
1962 (_dl_open_hook): New variable.
1963 (do_dlsym_private): New function.
1964 (__libc_dlopen_mode) [!SHARED]: Lookup _dl_open_hook@GLIBC_PRIVATE
1965 and initialize it if found.
1966 (__libc_dlopen_mode) [SHARED]: If _dl_open_hook is non-NULL,
1967 call dlopen_mode hook.
1968 (__libc_dlsym) [SHARED]: If _dl_open_hook is non-NULL,
1969 call dlsym hook.
1970 (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL,
1971 call dlclose hook.
1972
1973 2003-06-25 Ulrich Drepper <drepper@redhat.com>
1974
1975 * sysdeps/unix/sysv/linux/cris/sysdep.h (INLINE_SYSCALL): Cast
1976 result to long int so that extensions to long long int work.
1977 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
1978
1979 2003-06-19 Jakub Jelinek <jakub@redhat.com>
1980
1981 * elf/ldconfig.c (main): Use add_system_dir instead of add_dir.
1982 * sysdeps/generic/dl-cache.h (add_system_dir): Define.
1983 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: Include sparc
1984 dl-cache.h.
1985 * sysdeps/unix/sysv/linux/s390/dl-cache.h: New file.
1986 * sysdeps/unix/sysv/linux/mips/dl-cache.h: New file.
1987 * sysdeps/unix/sysv/linux/powerpc/dl-cache.h: New file.
1988 * sysdeps/unix/sysv/linux/sparc/dl-cache.h: New file.
1989
1990 2003-06-19 Jakub Jelinek <jakub@redhat.com>
1991
1992 * test-skeleton.c (timeout_handler): If waitpid returned 0,
1993 retry once after a second. If killed == 0, assume
1994 WTERMSIG (status) == SIGKILL.
1995
1996 2003-06-18 Roland McGrath <roland@redhat.com>
1997
1998 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Catch uninitialized
1999 elements in the table instead of printing an empty name string.
2000
2001 2003-06-05 Roland McGrath <roland@redhat.com>
2002
2003 * elf/elf.h (PT_GNU_STACK): New macro.
2004
2005 2003-06-24 Ulrich Drepper <drepper@redhat.com>
2006
2007 * include/time.h: Define CLOCK_IDFIELD_SIZE.
2008 * sysdeps/posix/clock_getres.c: Recognize thread CPU clock IDs.
2009 * sysdeps/unix/clock_gettime.c: Likewise.
2010 * sysdeps/unix/clock_settime.c: Likewise.
2011 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Adjust for new
2012 clock id for thread CPU clocks.
2013
2014 * sysdeps/unix/sysv/linux/fstatfs64.c (__fstatfs64): Add support
2015 for the fstatfs64 syscall.
2016 * sysdeps/unix/sysv/linux/statfs64.c (__statfs64): Add support for
2017 the statfs64 syscall.
2018
2019 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2020 __ASSUME_STATFS64 appropriately.
2021
2022 * sysdeps/unix/sysv/linux/internal_statvfs.c: Use f_frsize field
2023 from statfs structure if it has been filled in.
2024
2025 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_frsize
2026 field.
2027 (struct statfs64): Likewise.
2028 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: Likewise.
2029 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
2030
2031 2003-06-24 Richard Henderson <rth@redhat.com>
2032
2033 * sysdeps/unix/sysv/linux/alpha/syscalls.list (pread, pwrite): Use
2034 the 64-bit syscall name.
2035
2036 * sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue.
2037
2038 * sysdeps/alpha/fpu/bits/mathinline.h: Honor
2039 __LIBC_INTERNAL_MATH_INLINES. Implement __signbitf, __signbit.
2040
2041 * sysdeps/unix/sysv/linux/alpha/clone.S: Use HIDDEN_JUMPTARGET.
2042 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use
2043 libc_hidden_def.
2044 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
2045 * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use libc_hidden_proto
2046 on them.
2047
2048 * sysdeps/alpha/bits/atomic.h: New file.
2049
2050 2003-06-24 Andreas Schwab <schwab@suse.de>
2051
2052 * sysdeps/m68k/fpu/libm-test-ulps: Update.
2053
2054 2003-06-24 Andreas Jaeger <aj@suse.de>
2055
2056 * sysdeps/unix/sysv/linux/x86_64/stat.h (_STAT_VER_LINUX): Avoid
2057 redeclaration with 32-bit code.
2058
2059 2003-05-19 Ed Connell <ed.connell@sas.com>
2060
2061 * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain
2062 floating point mask.
2063 * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise.
2064
2065 2003-06-23 Ulrich Drepper <drepper@redhat.com>
2066
2067 * sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex,
2068 __aio_enqueue_request, __aio_find_req, __aio_find_req_fd,
2069 __aio_free_request, __aio_notify, and __aio_sigqueue as hidden.
2070
2071 * sysdeps/pthread/aio_suspend.c (aio_suspend): Set errno to the result
2072 of pthread_cond_wait if there was an error. Use pthread_cleanup_*
2073 instead of __libc_cleanup_region_*.
2074
2075 2003-06-20 Richard Henderson <rth@redhat.com>
2076
2077 * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases.
2078 * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New.
2079
2080 2003-06-20 Richard Henderson <rth@redhat.com>
2081
2082 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
2083 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
2084 Unset for alpha.
2085 (__ASSUME_TIMEVAL64): Set for alpha.
2086 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
2087 adjtimex, osf_sigprocmask, old_adjtimex.
2088 * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
2089 __ASSUME_TIMEVAL64. Reorg tv64 functions to avoid uninit variable.
2090 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
2091 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
2092 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
2093 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
2094 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
2095 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
2096 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
2097 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
2098 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
2099 PIC code sequence.
2100 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
2101 * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
2102 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
2103 * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
2104 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
2105 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
2106 sys_ustat, sys_mknod, adjtimex, old_adjtimex.
2107 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
2108 defer to __syscall_name; error for rt_sigaction.
2109 * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
2110
2111 2003-06-18 Ulrich Drepper <drepper@redhat.com>
2112
2113 * malloc/malloc.c (public_mALLINFo): Initialize malloc if it
2114 hasn't happened yet.
2115
2116 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
2117 Fix completely broken implementation. The second parameter is of
2118 type struct ucontext*.
2119
2120 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always
2121 inline.
2122
2123 * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash.
2124 * sysdeps/generic/dl-hash.h: Likewise.
2125
2126 * sysdeps/generic/memcmp.c: Remove inline from
2127 memcmp_common_alignment and memcmp_not_common_alignment definition.
2128
2129 * intl/localealias.c (read_alias_file): Determine whether line is
2130 read incompletely early, before we modify the line.
2131
2132 2003-06-17 Jakub Jelinek <jakub@redhat.com>
2133
2134 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela)
2135 <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
2136
2137 2003-06-17 Paul Mackerras <paulus@samba.org>
2138
2139 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file.
2140 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: New file.
2141 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: New file.
2142 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: New file.
2143 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: New file.
2144 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Adjust.
2145
2146 2003-06-17 Jakub Jelinek <jakub@redhat.com>
2147
2148 * posix/regcomp.c (build_word_op): Use alnum instead of alpha class.
2149
2150 2003-06-17 Ulrich Drepper <drepper@redhat.com>
2151
2152 * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
2153 takes care of enabling cancellation.
2154
2155 * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
2156 cancelable. It's not correct to disable cancellation. Instead of
2157 a cleanup handler.
2158
2159 * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
2160 and part of the incoming set, create a temporary set without this
2161 signal.
2162 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
2163 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
2164
2165 * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
2166 returning because seconds==0. Add __builtin_expect.
2167
2168 2003-06-16 Ulrich Drepper <drepper@redhat.com>
2169
2170 * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
2171
2172 * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
2173 variable.
2174
2175 2003-06-16 Thorsten Kukuk <kukuk@suse.de>
2176
2177 * include/libc-symbols.h: Add static_link_warning macro.
2178 * grp/initgroups.c: Print linker warning if this function
2179 is called in a static linked binary.
2180 * nss/getXXbyYY.c: Likewise.
2181 * nss/getXXbyYY_r.c: Likewise.
2182 * nss/getXXent.c: Likewise.
2183 * nss/getXXent_r.c: Likewise.
2184 * sysdeps/posix/getaddrinfo.c: Likewise.
2185
2186 2003-06-16 Bruno Haible <bruno@clisp.org>
2187
2188 * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
2189 LATIN-9.
2190 (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
2191 (IBM1047): Add alias IBM-1047.
2192 (GBK): Add aliases MS936, WINDOWS-936.
2193
2194 2003-06-16 Jakub Jelinek <jakub@redhat.com>
2195
2196 * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
2197 defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
2198 (__xstat64_conv): Change xstat_conv to __xstat_conv.
2199
2200 2003-06-16 Ulrich Drepper <drepper@redhat.com>
2201
2202 * locale/iso-639.def: Update from current official ISO 639.
2203
2204 * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
2205
2206 2003-06-15 Andreas Jaeger <aj@suse.de>
2207
2208 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
2209 of MXCSR.
2210 * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
2211 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
2212 Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
2213
2214 * math/tgmath.h (carg): Handle real arguments.
2215 (conj): Likewise.
2216 (cproj): Likewise.
2217 (cimag): Likewise.
2218 (creal): Likewise.
2219
2220 * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
2221 (tests): Add test-tgmath-ret.
2222 * math/test-tgmath-ret.c: New file.
2223
2224 * math/tgmath.h (ilogb): Return always an int.
2225
2226 2003-06-16 Ulrich Drepper <drepper@redhat.com>
2227
2228 * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
2229 computation so that prelinking works.
2230
2231 2003-06-15 Ulrich Drepper <drepper@redhat.com>
2232
2233 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
2234 linker's map.
2235 * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
2236 dynamic linker's map.
2237
2238 Fix cancellation point handling wrt exception based cleanup.
2239 * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
2240 * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
2241 with exceptions.
2242 * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
2243 sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
2244 * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
2245 exceptions.
2246 * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
2247 sigwait.c, and sigwaitinfo.c with exceptions.
2248 * stdlib/Makefile: Compile system.c with exceptions.
2249 * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
2250 * termios/Makefile: Compile tcdrain.c with exceptions.
2251 * sysdeps/generic/lockf.c: Add comment explaining the cancellation
2252 situation.
2253 * sysdeps/generic/pselect.c: Likewise.
2254 * sysdeps/posix/sigpause.c: Likewise.
2255 * sysdeps/posix/system.c: Likewise.
2256 * sysdeps/posix/waitid.c: Likewise.
2257 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
2258 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
2259 * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
2260 INTERNAL_SYSCALL to not use push inside asm statement so that
2261 unwind info is correct around the syscall.
2262 * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
2263 * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
2264
2265 2003-06-15 Andreas Jaeger <aj@suse.de>
2266
2267 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
2268 Add CFI directives.
2269
2270 2003-06-15 Guido Guenther <agx@sigxcpu.org>
2271
2272 * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
2273 create $(objpfx).
2274
2275 2003-06-14 Ulrich Drepper <drepper@redhat.com>
2276
2277 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
2278 not close.
2279
2280 * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
2281 * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
2282 definition.
2283
2284 * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
2285 * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
2286 * inet/Makefile (routines): Add inet6_option.
2287 * inet/inet6_option.c: New file.
2288 * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
2289 inet6_option_init, inet6_option_append, inet6_option_alloc,
2290 inet6_option_next, and inet6_option_find.
2291
2292 2003-06-13 Ulrich Drepper <drepper@redhat.com>
2293
2294 * inet/netinet/ip6.h (struct ip6_ext): Define.
2295
2296 * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
2297
2298 Fixing gcc 3.3 warnings, part II.
2299 * argp/argp-help.c (hol_entry_long_iterate): Always inline.
2300 * elf/dl-load.c (cache_rpath): Don't inline.
2301 * iconvdata/cns11642l2.h: Always inline all functions.
2302 * iconvdata/iso-ir-165.h: Likewise.
2303 * locale/Makefile (aux): Add coll-lookup.
2304 * locale/coll-lookup.c: New file.
2305 * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
2306 (collseq_table_lookup): Likewise.
2307 * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
2308 * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
2309 change.
2310 * posix/regcomp.c: Likewise.
2311 * posix/regexec.c: Likewise.
2312 * locale/programs/3level.h (*_get): Always inline.
2313 * locale/programs/locfile.h: Move definition of handle_copy to...
2314 * locale/programs/locfile.c: ...here.
2315 * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
2316 (obstack_int32_grow_fast): Likewise.
2317 (utf8_encode): Likewise.
2318 (find_element): Avoid aliasing problems.
2319 (insert_value): Likewise.
2320 (collate_read): Likewise.
2321 * nss/getent.c (print_hosts): Don't inline
2322 (print_networks): Likewise.
2323 (print_shadow): Likewise.
2324 (build_doc): Likewise.
2325 * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
2326 inline.
2327 * posix/regcomp.c (re_set_fastmap): Always inline.
2328 (seek_collating_symbol_entry): Likewise.
2329 (lookup_collation_sequence_value): Likewise.
2330 (build_range_exp): Likewise.
2331 (build_collating_symbol): Likewise.
2332 * posix/regexec.c (acquire_init_state_context): Don't inline.
2333 (clean_state_log_if_need): Likewise.
2334 * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
2335 adjust all callers.
2336 (evConsTime): Likewise.
2337 (evAddTime): Likewise.
2338 (evSubTime): Likewise.
2339 (evNowTime): Likewise.
2340 (evTimeSpec): Removed.
2341 (__libc_res_nsend): Avoid aliasing problem.
2342 * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
2343 * sysdeps/unix/sysv/linux/ifreq.c: ...here.
2344 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
2345 Always inline.
2346 (_dl_string_platform): Likewise.
2347 * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
2348 (wcwidth_table_lookup): Likewise.
2349 (wctrans_table_lookup): Likewise.
2350
2351 * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
2352
2353 2003-06-12 Ulrich Drepper <drepper@redhat.com>
2354
2355 * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
2356
2357 2003-05-29 Jim Meyering <jim@meyering.net>
2358
2359 * time/strftime.c (my_strftime) [!defined _NL_CURRENT
2360 && HAVE_STRFTIME]: Use underlying_strftime for %r.
2361 Suggested by Daniel Yacob <locales@geez.org>.
2362
2363 2003-06-12 Steven Munroe <sjmunroe@us.ibm.com>
2364
2365 * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
2366 @got notation with @toc.
2367 * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
2368 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
2369
2370 2003-06-12 Ulrich Drepper <drepper@redhat.com>
2371
2372 * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
2373 if only PF_INET address is needed.
2374
2375 * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
2376 case of an error.
2377
2378 * scripts/config.guess: Update from upstream version.
2379 * scripts/config.sub: Likewise.
2380
2381 2003-06-12 Jakub Jelinek <jakub@redhat.com>
2382
2383 * locale/programs/ld-time.c (time_output): Also copy the era format,
2384 not only the name.
2385
2386 2003-06-12 H.J. Lu <hongjiu.lu@intel.com>
2387
2388 * posix/transbug.c (run_test): Return 1 for failure.
2389 (do_test): Compare only if run_test is successful.
2390
2391 2003-06-12 Simon Josefsson <jas@extundo.com>
2392
2393 * argp/argp.h [!__THROW]: Define if undefined.
2394
2395 2003-06-12 Ulrich Drepper <drepper@redhat.com>
2396
2397 * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
2398 more than four parameters.
2399 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
2400
2401 2003-06-12 Jakub Jelinek <jakub@redhat.com>
2402
2403 * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
2404 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
2405 * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
2406
2407 * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
2408
2409 2003-06-12 Roland McGrath <roland@redhat.com>
2410
2411 * Makerules ($(objpfx)stubs): Rewrite sed magic.
2412
2413 2003-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
2414
2415 * posix/regcomp.c (parse_expression): Deliver translation to
2416 build_word_op, and build_charclass.
2417 (build_charclass): Apply translation for character classes too.
2418 (build_word_op): Deliver translation to build_charclass.
2419 * posix/transbug.c: New file.
2420 * posix/Makefile (tests): Add transbug.
2421
2422 2003-06-04 Paolo Bonzini <bonzini@gnu.org>
2423
2424 * posix/regexec.c (group_nodes_into_DFAstates): Check for
2425 NEXT_ENDBUF_CONSTRAINT. Move check for constraints which do a
2426 'continue' before the others.
2427
2428 2003-06-11 Ulrich Drepper <drepper@redhat.com>
2429
2430 * dirent/scandir.c (SCANDIR): Reset errno after calling selector
2431 function [PR libc/5045].
2432
2433 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
2434 also for P4.
2435
2436 * time/tzfile.c: Add a couple of __builtin_expect.
2437
2438 Remove warnings gcc 3.3 shows.
2439 * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
2440 * elf/dl-load.c (fillin_rpath): Likewise.
2441 (add_path): Likewise.
2442 * elf/dl-version.c (find_needed): Always inline.
2443 * elf/do-lookup.c (FCT): Don't inline.
2444 * iconv/Makefile: Extend vpath to intl subdir.
2445 (iconvconfig-modules): Add hash-string.
2446 * iconv/gconv_charset.h (strip): Don't inline.
2447 (upstr): Always inline.
2448 Move __gconv_compare_alias prototype to...
2449 * iconv/gconv_int.h: ...here.
2450 * iconv/gconv_db.c: Don't include gconv_charset.h.
2451 * iconv/gconv_conf.c (add_alias): Don't inline.
2452 (insert_module): Likewise.
2453 * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
2454 (internal_ucs4_loop_unaligned): Likewise.
2455 (internal_ucs4_loop_single): Likewise.
2456 (ucs4_internal_loop): Likewise.
2457 (ucs4_internal_loop_unaligned): Likewise.
2458 (ucs4_internal_loop_single): Likewise.
2459 (internal_ucs4le_loop): Always inline.
2460 (internal_ucs4le_loop_unaligned): Likewise.
2461 (internal_ucs4le_loop_single): Likewise.
2462 (ucs4le_internal_loop): Likewise.
2463 (ucs4le_internal_loop_unaligned): Likewise.
2464 (ucs4le_internal_loop_single): Likewise.
2465 * iconv/loop.c: Always inline the defined functions.
2466 * iconvdata/cns11642.h: Likewise.
2467 * iconvdata/cns11642l1.h: Likewise.
2468 * iconvdata/euc-kr.c: Likewise.
2469 * iconvdata/gb2312.h: Likewise.
2470 * iconvdata/jis0201.h: Likewise.
2471 * iconvdata/jis0208.h: Likewise.
2472 * iconvdata/jis0212.h: Likewise.
2473 * iconvdata/jisx0213.h: Likewise.
2474 * iconvdata/ksc5601.h: Likewise.
2475 * iconvdata/utf-7.c (base64): Don't inline.
2476 * include/libc-symbols.h (symbol_set_first_element): Add cast
2477 (symbol_set_end_p): Likewise.
2478 * include/set-hooks (RUN_HOOK): Likewise.
2479 * inet/Makefile (aux): Add ifreq.
2480 * intl/Makefile (aux): Add some entries from routines. Add
2481 hash-string.
2482 * intl/hash-string.c: New file.
2483 * intl/hash-string.h: Remove hash_string definition. Declare
2484 __hash_string.
2485 * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
2486 * iconv/iconvconfig.c (new_name): Likewise.
2487 * intl/dcigettext.c (_nl_find_msg): Likewise.
2488 * intl/loadmsgcat.c (_nl_load_domain): Likewise.
2489 * io/ftw.c (open_dir_stream): Always inline.
2490 (process_entry): Don't inline.
2491 * locale/findlocale.c: Include gconv_int.h.
2492 * locale/setlocale.c (new_composite_name): Don't inline.
2493 * locale/weight.h (findidx): Always inline.
2494 * locale/weightwc.h (findidx): Likewise.
2495 * locale/programs/linereader.c (lr_ignore_rest): Define here.
2496 * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
2497 just declare it.
2498 (lr_getc): Always inline.
2499 (lr_ungetc): Likewise.
2500 * nss/nss_files/files-parse.c (parse_list): Likewise.
2501 * stdio-common/Makefile (aux): Add printf-parsemb and
2502 printf-parsewc.
2503 * stdio-common/_itoa.h (_itoa_word): Always inline.
2504 (_fitoa_word, _fitoa): Don't define here, only declare.
2505 * stdio-common/_itoa.c (_iftoa_word): Add here.
2506 (_fitoa): Likewise.
2507 * stdio-common/_itowa.h (_itowa_word): Always inline.
2508 * stdio-common/printf-parse.h (read_int): Don't inline.
2509 (find_spec): Don't define.
2510 Declare __find_specmb and __find_specwc.
2511 (parse_one_spec): Don't define.
2512 Declare __parse_one_specmb and __parse_one_specwc.
2513 * stdio-common/printf-parsemb.c: New file.
2514 * stdio-common/printf-parsewc.c: New file.
2515 * stdio-common/vfprintf.c: Update calls to find_spec and
2516 parse_one_spec for new names.
2517 * stdio-common/printf-prs.c: Likewise. Define DONT_NEED_READ_INT.
2518 * stdlib/Makefile (aux): Add grouping and groupingwc.
2519 * stdlib/grouping.c: New file.
2520 * stdlib/groupingwc.c: New file.
2521 * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
2522 Just prototype.
2523 * stdlib/rpmatch.c (try): Don't inline.
2524 * stdlib/strtod.c (round_and_return): Don't line.
2525 (str_to_mpn): Likewise.
2526 (__mpn_lshift_1): Always inline. Optimize only for constant count.
2527 Adjust for name change of correctly_grouped_prefix.
2528 * sysdeps/generic/strtol.c: Adjust for name change of
2529 correctly_grouped_prefix.
2530 * string/strxfrm.c (utf8_encode): Don't inline.
2531 * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
2532 * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
2533 * sysdeps/generic/ifreq.c: New file.
2534 * sysdeps/unix/sysv/linux/ifreq.c: New file.
2535 * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
2536 * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
2537 * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
2538 * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
2539 (fde_split): Likewise.
2540 (fde_merge): Likewise.
2541 (end_fde_sort): Likewise.
2542 (init_object): Likewise.
2543 (binary_search_unencoded_fdes): Likewise.
2544 (binary_search_single_encoding_fdes): Likewise.
2545 (binary_search_mixed_encoding_fdes): Likewise.
2546 * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
2547 * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
2548 * sysdeps/posix/sprofil.c (profil_count): Don't inline.
2549 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
2550 Add xstatconv.
2551 * sysdeps/unix/sysv/linux/xstatconv.h: New file.
2552 * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
2553 Export them. Prepend __ to name.
2554 * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
2555 * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
2556 conversion functions.
2557 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
2558 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
2559 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
2560 * sysdeps/unix/sysv/linux/xstat.c: Likewise.
2561 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
2562 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
2563 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
2564 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
2565 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
2566 __statfs_filesize_max, __statfs_symlinks): Define here. __ prepended
2567 to name. Change callers.
2568 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
2569 __statfs_filesize_max, __statfs_symlinks): Don't define here, just
2570 declare.
2571 * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
2572 * time/tzfile.c (decode): Always inline.
2573 * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
2574 Remove cast in tomb function call.
2575 * wcsmbs/wcsrtombs.c Likewise.
2576 * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
2577 tomb function call.
2578
2579 2003-06-10 Ulrich Drepper <drepper@redhat.com>
2580
2581 * po/zh_CN.po: Update from translation team.
2582
2583 2003-06-10 Jakub Jelinek <jakub@redhat.com>
2584
2585 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
2586 IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
2587
2588 2003-06-10 Ulrich Drepper <drepper@redhat.com>
2589
2590 * inet/Makefile (aux): Add check_pf.
2591 * include/ifaddrs.h: Add prototype for __check_pf.
2592 * sysdeps/generic/check_pf.c: New file.
2593 * sysdeps/unix/sysv/linux/check_pf.c: New file.
2594 * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
2595 from no_netlink_support. Export.
2596 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
2597 call __check_pf.
2598
2599 * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
2600
2601 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
2602 from getifaddr calls.
2603
2604 2003-06-09 Jakub Jelinek <jakub@redhat.com>
2605
2606 * sysdeps/unix/sysv/linux/kernel-features.h
2607 (__ASSUME_SETRESGID_SYSCALL): Define.
2608 * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
2609 instead of __ASSUME_SETRESUID_SYSCALL.
2610 (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
2611 defined.
2612 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
2613 inline syscall if __NR_setresuid32 is defined.
2614 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
2615 __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
2616 * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
2617 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
2618 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
2619 code handling non-existant setresgid32 syscall with
2620 #if __ASSUME_SETRESGID_SYSCALL == 0.
2621
2622 2003-06-09 Andreas Schwab <schwab@suse.de>
2623
2624 * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
2625 ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
2626 $(objpfx)rpc-proto.d.
2627 (rpcsvc-dt-files, rpcsvc-depfiles): Define. Include
2628 $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
2629 ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
2630
2631 2003-06-08 Ulrich Drepper <drepper@redhat.com>
2632
2633 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
2634 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
2635 defined drop compatibility code.
2636 * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
2637 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
2638 defined drop compatibility code.
2639 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
2640 setresuid32 syscall directly if possible.
2641 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
2642 setresgid32 syscall directly if possible.
2643 * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
2644 compliant. Don't change sgid.
2645 * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
2646 compliant. Don't change suid.
2647
2648 * config.h.in: Add have-forced-unwind.
2649 * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
2650
2651 2003-06-07 Ulrich Drepper <drepper@redhat.com>
2652
2653 * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
2654 returned status from child matches.
2655
2656 * Makeconfig (gnulib): Add -lgcc_eh once again.
2657
2658 2003-06-06 Ulrich Drepper <drepper@redhat.com>
2659
2660 * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
2661
2662 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
2663 %edx for first parameter. This means no pushl and therefore the
2664 unwind info isn't screwed up.
2665
2666 2003-06-04 Richard Henderson <rth@redhat.com>
2667
2668 * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
2669 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
2670 * sysdeps/alpha/elf/start.S: Likewise. Remove pointless allocation.
2671 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
2672 entry sequence and explicit relocs. Add unwind info for sigreturn
2673 and rt_sigreturn.
2674 * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
2675
2676 * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
2677 Annotate some parameters.
2678 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
2679
2680 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
2681
2682 * include/libc-symbols.h (symbol_set_declare): Use arrays
2683 of unspecified size.
2684
2685 2003-06-04 Jakub Jelinek <jakub@redhat.com>
2686
2687 * config.make.in (ASFLAGS-config): New.
2688 * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
2689 * configure.in (libc_cv_as_noexecstack): New check.
2690 (ASFLAGS_config): Substitute.
2691
2692 2003-06-04 Jakub Jelinek <jakub@redhat.com>
2693
2694 * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
2695 hypot, logb): Protect with #ifdef __FAST_MATH__.
2696
2697 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
2698
2699 * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
2700 #ifdef __FAST_MATH__.
2701
2702 2003-06-03 Ulrich Drepper <drepper@redhat.com>
2703
2704 * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
2705 DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
2706 * posix/globtest.sh: Adjust for this change.
2707
2708 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
2709 to get the actual PID value used in the records passed up.
2710 (getifaddrs): Don't initialize nh.pid here.
2711
2712 2003-06-02 Ulrich Drepper <drepper@redhat.com>
2713
2714 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
2715 optimization.
2716
2717 * po/zh_CN.po: Update from translation team.
2718
2719 * posix/getconf.c (main): Also recognize names without the
2720 _POSIX_ prefix.
2721
2722 * elf/Makefile (CFLAGS-dl-lookup.c): Define.
2723
2724 2003-06-02 Bernd Schmidt <bernds@redhat.com>
2725
2726 * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
2727 ldexpf, ldexpl): Only define if __FAST_MATH__.
2728
2729 2003-06-02 Richard C. Bilson <rcbilson@plg.uwaterloo.ca>
2730
2731 Replace hard-coded offsets into struct sigcontext with generated file.
2732 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
2733 * sysdeps/unix/sysv/linux/ia64/Makefile
2734 [$(subdir) = stdlib] (gen-as-const-headers): Add it.
2735 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
2736 defining SC_* macros here.
2737
2738 2003-06-02 Jakub Jelinek <jakub@redhat.com>
2739
2740 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
2741
2742 2003-06-01 Jakub Jelinek <jakub@redhat.com>
2743
2744 * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
2745
2746 2003-06-01 Ulrich Drepper <drepper@redhat.com>
2747
2748 * test-skeleton.c (main): Request getopt to not reorder the
2749 command line.
2750
2751 * elf/Makefile (CFLAGS-dl-runtime.c): Define.
2752
2753 * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
2754 stpncpy.
2755
2756 2003-05-31 Ulrich Drepper <drepper@redhat.com>
2757
2758 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
2759
2760 2003-05-31 Jakub Jelinek <jakub@redhat.com>
2761
2762 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
2763 New function.
2764 (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
2765 RESOLVE_CONFLICT_FIND_MAP. If RESOLVE_CONFLICT_FIND_MAP is defined,
2766 call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
2767
2768 2003-05-31 Ulrich Drepper <drepper@redhat.com>
2769
2770 * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
2771 CFI directives.
2772
2773 * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
2774
2775 * libio/fileops.c (_IO_file_open): Don't mark as inline.
2776
2777 * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
2778 attribute used.
2779
2780 2003-05-30 Ulrich Drepper <drepper@redhat.com>
2781
2782 * scripts/config.guess: Update from master copy.
2783 * scripts/config.sub: Likewise.
2784
2785 2003-05-30 Guido Guenther <agx@sigxcpu.org>
2786
2787 * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
2788 SETUP_GP64 and friends.
2789 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
2790 names in internal_syscall{6,7}.
2791 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
2792 * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
2793 number of syscall arguments.
2794 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2795 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2796 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2797
2798 2003-05-30 Andreas Jaeger <aj@suse.de>
2799
2800 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
2801 Add CFI directives.
2802
2803 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
2804 directives.
2805
2806 * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
2807
2808 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
2809 Add CFI directives.
2810
2811 2003-05-30 Jakub Jelinek <jakub@redhat.com>
2812
2813 * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
2814 SHARED.
2815
2816 2003-05-11 Andreas Schwab <schwab@suse.de>
2817
2818 * Makerules: Always use -MP together with -MD.
2819 (sed-remove-dotot): Substitute $(..) also at start of line.
2820 ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
2821 Generated defines with a single compiler call.
2822 Use $(sed-remove-dotdot).
2823 * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
2824 of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
2825 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
2826 Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
2827 * sysdeps/unix/sysv/linux/mips/Makefile
2828 ($(objpfx)syscall-%.h): Likewise.
2829
2830 2003-05-28 Roland McGrath <roland@redhat.com>
2831
2832 * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
2833
2834 2003-05-26 Aldy Hernandez <aldyh@redhat.com>
2835
2836 * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
2837
2838 2003-05-28 Roland McGrath <roland@redhat.com>
2839
2840 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
2841 rt_sigprocmask system call.
2842 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
2843 From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
2844
2845 2003-05-28 Ulrich Drepper <drepper@redhat.com>
2846
2847 * include/libc-symbols.h: Define hidden attribute for real also if
2848 LIBC_NONSHARED is defined. Patch by Jakub Jelinek.
2849
2850 * csu/Makefile: Add rules to build Scrt1.o.
2851 * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
2852 * sysdeps/x86_64/elf/start.S: Likewise.
2853
2854 2003-05-27 Jakub Jelinek <jakub@redhat.com>
2855
2856 * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
2857 pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
2858 * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
2859 pa_short_int, pa_u_short_int and pa_float.
2860
2861 2003-05-26 Jakub Jelinek <jakub@redhat.com>
2862
2863 * libio/strops.c (_IO_str_init_static): Change into a wrapper around
2864 _IO_str_init_static_internal.
2865 (_IO_str_init_static_internal): Moved from _IO_str_init_static,
2866 change size argument to _IO_size_t, don't limit sprintf to 64M.
2867 (_IO_str_init_readonly): Call _IO_str_init_static_internal.
2868 * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
2869 _IO_size_t, don't limit swprintf to 256M.
2870 (_IO_wstr_init_readonly): Remove.
2871 * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
2872 Adjust prototypes.
2873 (_IO_wstr_init_readonly): Remove prototype.
2874 * libio/iovsprintf.c (_IO_vsprintf): Use
2875 _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
2876 * libio/iovsscanf.c (_IO_vsscanf): Likewise.
2877 * libio/memstream.c (open_memstream): Likewise.
2878 * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
2879 * libio/vasprintf.c (_IO_vasprintf): Likewise.
2880 * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
2881 * stdio-common/tst-sprintf.c (main): Add new test.
2882
2883 2003-05-26 Ulrich Drepper <drepper@redhat.com>
2884
2885 * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
2886 other implementation in respect of multiple uses of parameter with
2887 different types.
2888
2889 2003-05-25 Ulrich Drepper <drepper@redhat.com>
2890
2891 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2892 __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
2893
2894 2003-05-22 Andreas Jaeger <aj@suse.de>
2895
2896 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
2897 directives.
2898 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
2899 * sysdeps/x86_64/strtok.S: Likewise.
2900
2901 2003-05-20 Guido Guenther <agx@sigxcpu.org>
2902
2903 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
2904 to -60 and define SI_TKILL.
2905
2906 2003-05-21 H.J. Lu <hongjiu.lu@intel.com>
2907
2908 * math/test-fenv.c (feexcp_nomask_test): Fix comment.
2909 (feexcp_mask_test): Likewise.
2910
2911 2003-05-21 Ulrich Drepper <drepper@redhat.com>
2912
2913 * locale/programs/locale.c (main): Fix typo in last patch.
2914
2915 * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
2916 __init_array_start, __init_array_end, __fini_array_start, and
2917 __fini_array_end as hidden.
2918
2919 2003-05-21 Petter Reinholdtsen <pere@hungry.com>
2920
2921 * locale/programs/locale.c (main): Report an error if setlocale()
2922 fails [PR libc/2254].
2923
2924 2003-05-21 Jakub Jelinek <jakub@redhat.com>
2925
2926 * sysdeps/unix/sysv/linux/s390/system.c: New file.
2927
2928 2003-05-21 Jakub Jelinek <jakub@redhat.com>
2929
2930 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
2931 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
2932 LOADARGS_6): Don't error if syscall argument is a string literal.
2933 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
2934 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
2935 LOADARGS_6): Likewise.
2936
2937 2003-05-21 Andreas Jaeger <aj@suse.de>
2938
2939 * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
2940 cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
2941 cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
2942
2943 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
2944 (ENTRY): Likewise.
2945 (END): Likewise.
2946
2947 * configure.in: Test for asm cfi directives.
2948
2949 * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
2950
2951 2003-05-17 Andreas Jaeger <aj@suse.de>
2952
2953 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
2954
2955 * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
2956
2957 2003-05-16 Ulrich Drepper <drepper@redhat.com>
2958
2959 * rt/Makefile (tests): Add tst-clock_nanosleep.
2960 * rt/tst-clock_nanosleep.c: New file.
2961 * posix/Makefile (tests): Add tst-nanosleep.
2962 * posix/tst-nanosleep.c: New file.
2963
2964 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
2965
2966 * include/features.h (__USE_XOPEN2K): Define also for
2967 _POSIX_C_SOURCE>=200112L.
2968
2969 * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
2970 SI_TKILL code into SI_USER.
2971 * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
2972
2973 * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
2974
2975 2003-05-15 Jakub Jelinek <jakub@redhat.com>
2976
2977 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
2978 Remove sym argument, always use refsym.
2979 (__process_machine_rela): Adjust callers.
2980 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
2981 Likewise.
2982 * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
2983 Adjust prototype.
2984 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
2985
2986 2003-05-15 Ulrich Drepper <drepper@redhat.com>
2987
2988 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
2989 (DL_NEED_SYSINFO -> NEED_DL_SYSINFO). If aux value is not known
2990 print numeric values.
2991
2992 2003-05-12 Thorsten Kukuk <kukuk@suse.de>
2993
2994 * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
2995
2996 2003-05-14 Andreas Schwab <schwab@suse.de>
2997
2998 * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
2999
3000 2003-05-14 Jakub Jelinek <jakub@redhat.com>
3001
3002 * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
3003 even if no DT_NEEDED is present.
3004
3005 2003-05-13 David Mosberger <davidm@hpl.hp.com>
3006
3007 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
3008 2003-03-27: setjmp is NOT a leaf-routine (due to the call to
3009 __sigjmp_save) so we can't keep the saved unat value in a scratch
3010 register (r16). Use loc2 instead.
3011
3012 2003-05-13 Ulrich Drepper <drepper@redhat.com>
3013
3014 * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
3015 binaries it has to be relocatable.
3016
3017 * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
3018
3019 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
3020
3021 * sysdeps/powerpc/bits/atomic.h
3022 (__arch_compare_and_exchange_bool_8_rel): Define.
3023 (__arch_compare_and_exchange_bool_16_rel): Define.
3024 (__ARCH_REL_INSTR): Define if not already defined.
3025 (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
3026 (__arch_atomic_decrement_if_positive_32):
3027 Add "memory" to clobber list.
3028 (__arch_compare_and_exchange_val_32_acq): Remove release sync.
3029 (__arch_compare_and_exchange_val_32_rel): Define.
3030 (__arch_atomic_exchange_32): Remove.
3031 (__arch_atomic_exchange_32_acq): Define.
3032 (__arch_atomic_exchange_32_rel): Define.
3033 (atomic_compare_and_exchange_val_rel): Define.
3034 (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
3035 (atomic_exchange_rel): Define.
3036 * sysdeps/powerpc/powerpc32/bits/atomic.h
3037 (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
3038 (__arch_compare_and_exchange_bool_32_rel): Define.
3039 (__arch_compare_and_exchange_bool_64_rel): Define.
3040 (__arch_compare_and_exchange_val_64_rel): Define.
3041 (__arch_atomic_exchange_64): Remove.
3042 (__arch_atomic_exchange_64_acq): Define.
3043 (__arch_atomic_exchange_64_rel): Define.
3044 * sysdeps/powerpc/powerpc64/bits/atomic.h
3045 (__arch_compare_and_exchange_bool_32_rel): Define.
3046 (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
3047 (__arch_compare_and_exchange_bool_64_rel): Define.
3048 (__arch_compare_and_exchange_val_64_acq): Remove release sync.
3049 (__arch_compare_and_exchange_val_64_rel): Define.
3050 (__arch_atomic_exchange_64): Remove.
3051 (__arch_atomic_exchange_64_acq): Define.
3052 (__arch_atomic_exchange_64_rel): Define.
3053 (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
3054 (__arch_atomic_decrement_if_positive_64):
3055 Add "memory" to clobber list.
3056 [!UP](__ARCH_REL_INSTR): Define as lwsync.
3057
3058 2003-05-11 Andreas Schwab <schwab@suse.de>
3059
3060 * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
3061
3062 2003-05-11 Ulrich Drepper <drepper@redhat.com>
3063
3064 * time/tst-strftime.c (do_test): Add tests for - flag.
3065
3066 2003-05-11 Jim Meyering <jim@meyering.net>
3067
3068 * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
3069 the space-padded-by-default conversion specifiers, %e, %k, %l.
3070
3071 2003-05-11 Andreas Schwab <schwab@suse.de>
3072
3073 * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
3074
3075 2003-05-10 Ulrich Drepper <drepper@redhat.com>
3076
3077 * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
3078 already defined and when really needed.
3079 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
3080
3081 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
3082
3083 * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
3084 headers, add defines from kernel header, move it from here...
3085 * inet/netinet/igmp.h: ... to here.
3086 * inet/Makefile (headers): Add netinet/igmp.h.
3087 * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
3088 * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
3089
3090 2003-05-10 Ulrich Drepper <drepper@redhat.com>
3091
3092 * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
3093 use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
3094
3095 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
3096
3097 * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
3098 (remove __THROW from possible cancellation points).
3099
3100 2003-05-10 Ulrich Drepper <drepper@redhat.com>
3101
3102 * posix/sched.h (CPU_SETSIZE): Define.
3103
3104 2003-05-09 Ulrich Drepper <drepper@redhat.com>
3105
3106 * Makeconfig (gnulib): Remove -lgcc_eh again.
3107
3108 * posix/sched.h: Change prototypes of sched_getaffinity and
3109 sched_setaffinity. Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
3110 * sysdeps/generic/sched_getaffinity.c: Adjust definition.
3111 * sysdeps/generic/sched_setaffinity.c: Likewise.
3112 * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
3113 __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
3114 __CPU_CLR, and __CPU_ISSET.
3115 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
3116 * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
3117 * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
3118
3119 * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
3120 (atomic_exchange_rel): New #define.
3121 * sysdeps/ia64/bits/atomic.h: Likewise.
3122 * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
3123 atomic_exchange.
3124 * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
3125 * sysdeps/powerpc/bits/atomic.h: Likewise.
3126 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
3127 * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
3128 * sysdeps/x86_64/bits/atomic.h: Likewise.
3129 * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
3130
3131 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
3132
3133 2003-05-08 Ulrich Drepper <drepper@redhat.com>
3134
3135 * malloc/thread-m.h: Remove special handling of thread_atfork if
3136 HAVE_register_atfork_malloc is defined.
3137
3138 2003-05-07 Andreas Jaeger <aj@suse.de>
3139
3140 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
3141 information.
3142
3143 2003-05-06 Ulrich Drepper <drepper@redhat.com>
3144
3145 * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
3146 * libio/oldiofopen.c (_IO_old_fopen): Likewise.
3147 * libio/libioP.h: Declare _IO_old_init.
3148 * libio/genops.c (_IO_no_init): Split in two. New function
3149 _IO_old_init.
3150
3151 2003-05-05 Ulrich Drepper <drepper@redhat.com>
3152
3153 * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
3154 variable.
3155 (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
3156 is nonzero.
3157 * include/unistd.h: Declare __libc_enable_secure_decided.
3158 * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
3159 and AT_EGID. If all found, set __libc_enable_secure and
3160 __libc_enable_secure_decided.
3161
3162 * sysdeps/generic/libc-start.c [!SHARED]: Call
3163 __libc_check_standard_fds after __libc_init_first.
3164
3165 2003-05-05 Roland McGrath <roland@redhat.com>
3166
3167 * Makerules (common-before-compile): New variable.
3168 ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
3169 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise. Move this rule
3170 to after all setting of before-compile.
3171
3172 2003-05-05 Jakub Jelinek <jakub@redhat.com>
3173
3174 * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
3175 __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
3176 * sysdeps/powerpc/powerpc32/bits/atomic.h
3177 (__arch_compare_and_exchange_val_64_acq): Likewise.
3178 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
3179 (__arch_compare_and_exchange_val_8_acq,
3180 __arch_compare_and_exchange_val_16_acq,
3181 __arch_compare_and_exchange_val_64_acq): Likewise.
3182 * sysdeps/sparc/sparc64/bits/atomic.h
3183 (__arch_compare_and_exchange_val_8_acq,
3184 __arch_compare_and_exchange_val_16_acq): Likewise.
3185 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
3186 __arch_compare_and_exchange_val_16_acq,
3187 __arch_compare_and_exchange_val_64_acq): Likewise.
3188 * sysdeps/unix/sysv/linux/sh/bits/atomic.h
3189 (__arch_compare_and_exchange_val_64_acq): Likewise.
3190 * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
3191 up warning.
3192 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
3193
3194 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
3195 (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
3196 Return long instead of int.
3197 (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
3198 0xfffff001u with -4095UL.
3199
3200 2003-05-05 Andreas Jaeger <aj@suse.de>
3201
3202 * sysdeps/x86_64/fpu_control.h: New from i386.
3203
3204 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
3205 Define if not defined.
3206
3207 * sunrpc/Makefile (generated-dirs): New variable.
3208 * resolv/Makefile (generated): New variable.
3209
3210 2003-05-04 Roland McGrath <roland@redhat.com>
3211
3212 * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
3213 Depend on $(before-compile).
3214
3215 * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
3216 pattern rule. The implicit rule could be ruled out when $(objpfx)
3217 didn't exist at the time of its consideration (ugh!).
3218
3219 * Makerules (+make-deps): Fix target matching.
3220 Use $(sed-remove-dotdot).
3221
3222 2003-05-03 Ulrich Drepper <drepper@redhat.com>
3223
3224 * nscd/nscd.c (main): Parse config file right after parsing
3225 parameters. Then, if get_stats is true, call receive_print_stats.
3226 Drop parameter from nscd_init call.
3227 (get_stats): New variable.
3228 (parse_opt): Set get_stats, don't call receive_print_stats here.
3229 * nscd/nscd.h: Declare dbs, stat_user, and stat_uid. Adjust nscd_init
3230 prototype.
3231 * nscd/connections.c (stat_user, stat_uid): New variables.
3232 (dbs): Make global.
3233 (nscd_init): Don't read configuration file here. Drop parameter.
3234 (handle_request): Cleanup handling of non-database lookup requests.
3235 * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
3236 Get UID of the specified user. Use xstrdup instead of strdup.
3237 * nscd/nscd_stat.c (receive_print_stats): Check UID. If not zero,
3238 check stat_user.
3239 * nscd/Makefile (nscd-modules): Add xstrdup.
3240 * nscd/nscd.conf: Document stat-user entry.
3241
3242 2003-05-03 H.J. Lu <hongjiu.lu@intel.com>
3243
3244 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
3245 if not defined.
3246
3247 2003-04-22 Roland McGrath <roland@redhat.com>
3248
3249 * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
3250 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
3251 dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
3252 * elf/dl-support.c: Update defn.
3253 * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
3254 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
3255 Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
3256 (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
3257 * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
3258 set, set up a link_map for the preloaded, prelinked object.
3259
3260 2003-05-03 Roland McGrath <roland@redhat.com>
3261
3262 * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
3263 * stdio-common/Makefile: ... not here.
3264
3265 * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
3266 * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
3267
3268 2003-05-02 Ulrich Drepper <drepper@redhat.com>
3269
3270 * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
3271
3272 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
3273
3274 * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
3275 comparing ftab elements.
3276 (_dl_unmap): Fix typo in test.
3277 (_dl_make_fptr): Fix typos introduced in last change.
3278
3279 * sysdeps/generic/dl-fptr.c: Put back one optimization from the
3280 original patch. Use non-exported symbols. Mark translatable
3281 strings. Pretty printing.
3282
3283 2003-05-02 Roland McGrath <roland@redhat.com>
3284
3285 * Makerules (do-stamp): Do $(make-target-directory).
3286
3287 2003-04-07 H.J. Lu <hjl@gnu.org>
3288
3289 * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
3290
3291 2003-04-03 H.J. Lu <hjl@gnu.org>
3292
3293 * sysdeps/ia64/dl-fptr.c: Moved to ...
3294 * sysdeps/generic/dl-fptr.c: Here.
3295
3296 * sysdeps/generic/dl-fptr.h: New.
3297 * sysdeps/ia64/dl-fptr.h: New.
3298
3299 * sysdeps/ia64/dl-symaddr.c: Moved to ...
3300 * sysdeps/generic/dl-symaddr.c: here.
3301
3302 * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
3303 (IA64_BOOT_FPTR_TABLE_LEN): Removed.
3304 (ia64_fdesc): Likewise.
3305 (ia64_fdesc_table): Likewise.
3306 (__ia64_make_fptr): Likewise.
3307 (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
3308 with _dl_boot_fptr_table.
3309 (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
3310 `struct fdesc'.
3311 (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
3312
3313 2003-05-01 Roland McGrath <roland@redhat.com>
3314
3315 * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
3316 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
3317
3318 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
3319 Use $(make-target-directory).
3320 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
3321
3322 * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
3323 (compile-command.S): Don't use ifndef. Append $(compile-mkdep-flags).
3324 (compile-command.s, compile-command.c): Likewise.
3325 ($(objpfx)%.d): All such pattern rules removed.
3326 ($(+sysdir_pfx)sysd-rules): Don't generate them.
3327 ($(common-objpfx)dummy.d): Target removed.
3328 (make-dummy-dep): Variable removed.
3329 (generate-md5): Likewise.
3330 (%.d: %.dt): New pattern rule.
3331 (+depfiles): Use $(wildcard) function to get just existing *.d files
3332 and .d files for existing *.dt files.
3333 (common-clean): Remove all *.d and *.dt files.
3334 (before-compile): Add $(objpfx). when it doesn't exist,
3335 regardless of $(no_deps).
3336 * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
3337 (rtld-depfiles): Use .os.d instead of .d names.
3338 Include existing *.d files and .d files for existing *.dt files.
3339
3340 * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
3341 Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
3342
3343 * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
3344 Do s-*.d includes only if we have some syscall routines in this subdir.
3345
3346 * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
3347 @nobits. The former is accepted by gas on any ELF platform.
3348
3349 2003-05-01 Ulrich Drepper <drepper@redhat.com>
3350
3351 * sysdeps/unix/sysv/linux/semtimedop.c: New file.
3352
3353 * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
3354
3355 2003-04-29 Andreas Schwab <schwab@suse.de>
3356
3357 * string/test-strcat.c (do_one_test): Fix attribute name.
3358
3359 2003-04-30 Alexandre Oliva <aoliva@redhat.com>
3360
3361 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
3362 uc_flags long for all ABIs.
3363
3364 2003-04-30 Andreas Jaeger <aj@suse.de>
3365
3366 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
3367 (DR_CONTROL_RESERVED): Use correct value for 64-bit.
3368 Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
3369 Add bi-arch support.
3370
3371 2003-04-30 Ulrich Drepper <drepper@redhat.com>
3372
3373 * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
3374 (__posix_memalign): Use __memalign_internal instead of memalign.
3375
3376 2003-04-29 Roland McGrath <roland@redhat.com>
3377
3378 * configure.in: Search for AUTOCONF unconditionally.
3379 Just don't complain about missing it under --without-cvs.
3380
3381 * include/libc-symbols.h (__symbol_set_attribute): New macro,
3382 give hidden for [SHARED] and weak for [! SHARED].
3383 (symbol_set_declare): Use that. Never need weak_extern these days.
3384 * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
3385 Depend on $(..)Makerules.
3386
3387 2003-04-29 Ulrich Drepper <drepper@redhat.com>
3388
3389 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
3390 variants of socket, bind, recvmsg, and sendto.
3391
3392 * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
3393
3394 * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
3395 * signal/sigaddset.c: Add libc_hidden_def.
3396 * signal/sigdelset.c: Likewise.
3397
3398 2003-04-29 Jakub Jelinek <jakub@redhat.com>
3399
3400 * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
3401 to the end of the file.
3402
3403 * configure.in: Change __oline__ to $LINENO.
3404 (HAVE_BUILTIN_REDIRECTION): New check.
3405 * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
3406 * include/libc-symbols.h (libc_hidden_builtin_proto,
3407 libc_hidden_builtin_def, libc_hidden_builtin_weak,
3408 libc_hidden_builtin_ver): Define.
3409 * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
3410 strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
3411 strspn, strstr): Add libc_hidden_builtin_proto.
3412 * intl/plural.y: Include string.h.
3413 * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
3414 libc_hidden_builtin_def.
3415 * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
3416 * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
3417 * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
3418 * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
3419 * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
3420 * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
3421 * sysdeps/alpha/memchr.S (memchr): Likewise.
3422 * sysdeps/alpha/memset.S (memset): Likewise.
3423 * sysdeps/alpha/strcat.S (strcat): Likewise.
3424 * sysdeps/alpha/strchr.S (strchr): Likewise.
3425 * sysdeps/alpha/strcmp.S (strcmp): Likewise.
3426 * sysdeps/alpha/strcpy.S (strcpy): Likewise.
3427 * sysdeps/alpha/strlen.S (strlen): Likewise.
3428 * sysdeps/alpha/strncmp.S (strncmp): Likewise.
3429 * sysdeps/alpha/strncpy.S (strncpy): Likewise.
3430 * sysdeps/alpha/strrchr.S (strrchr): Likewise.
3431 * sysdeps/arm/memset.S (memset): Likewise.
3432 * sysdeps/arm/strlen.S (strlen): Likewise.
3433 * sysdeps/generic/memchr.c (memchr): Likewise.
3434 * sysdeps/generic/memcpy.c (memcpy): Likewise.
3435 * sysdeps/generic/memmove.c (memmove): Likewise.
3436 * sysdeps/generic/memset.c (memset): Likewise.
3437 * sysdeps/generic/strcat.c (strcat): Likewise.
3438 * sysdeps/generic/strchr.c (strchr): Likewise.
3439 * sysdeps/generic/strcmp.c (strcmp): Likewise.
3440 * sysdeps/generic/strcpy.c (strcpy): Likewise.
3441 * sysdeps/generic/strcspn.c (strcspn): Likewise.
3442 * sysdeps/generic/strlen.c (strlen): Likewise.
3443 * sysdeps/generic/strncmp.c (strncmp): Likewise.
3444 * sysdeps/generic/strncpy.c (strncpy): Likewise.
3445 * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
3446 * sysdeps/generic/strrchr.c (strrchr): Likewise.
3447 * sysdeps/generic/strspn.c (strspn): Likewise.
3448 * sysdeps/generic/strstr.c (strstr): Likewise.
3449 * sysdeps/i386/i486/strcat.S (strcat): Likewise.
3450 * sysdeps/i386/i486/strlen.S (strlen): Likewise.
3451 * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
3452 * sysdeps/i386/i586/memset.S (memset): Likewise.
3453 * sysdeps/i386/i586/strchr.S (strchr): Likewise.
3454 * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
3455 * sysdeps/i386/i586/strlen.S (strlen): Likewise.
3456 * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
3457 * sysdeps/i386/i686/memmove.S (memmove): Likewise.
3458 * sysdeps/i386/i686/memset.S (memset): Likewise.
3459 * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
3460 * sysdeps/i386/memchr.S (memchr): Likewise.
3461 * sysdeps/i386/memset.c (memset): Likewise.
3462 * sysdeps/i386/strchr.S (strchr): Likewise.
3463 * sysdeps/i386/strcspn.S (strcspn): Likewise.
3464 * sysdeps/i386/strlen.c (strlen): Likewise.
3465 * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
3466 * sysdeps/i386/strrchr.S (strrchr): Likewise.
3467 * sysdeps/i386/strspn.S (strspn): Likewise.
3468 * sysdeps/ia64/memchr.S (memchr): Likewise.
3469 * sysdeps/ia64/memcpy.S (memcpy): Likewise.
3470 * sysdeps/ia64/memmove.S (memmove): Likewise.
3471 * sysdeps/ia64/memset.S (memset): Likewise.
3472 * sysdeps/ia64/strcat.S (strcat): Likewise.
3473 * sysdeps/ia64/strchr.S (strchr): Likewise.
3474 * sysdeps/ia64/strcmp.S (strcmp): Likewise.
3475 * sysdeps/ia64/strcpy.S (strcpy): Likewise.
3476 * sysdeps/ia64/strlen.S (strlen): Likewise.
3477 * sysdeps/ia64/strncmp.S (strncmp): Likewise.
3478 * sysdeps/ia64/strncpy.S (strncpy): Likewise.
3479 * sysdeps/m68k/memchr.S (memchr): Likewise.
3480 * sysdeps/m68k/strchr.S (strchr): Likewise.
3481 * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
3482 * sysdeps/mips/mips64/memset.S (memset): Likewise.
3483 * sysdeps/mips/memcpy.S (memcpy): Likewise.
3484 * sysdeps/mips/memset.S (memset): Likewise.
3485 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
3486 * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
3487 * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
3488 * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
3489 * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
3490 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
3491 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
3492 * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
3493 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
3494 * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
3495 * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
3496 * sysdeps/powerpc/strcat.c (strcat): Likewise.
3497 * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
3498 * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
3499 * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
3500 * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
3501 * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
3502 * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
3503 * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
3504 * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
3505 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
3506 * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
3507 * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
3508 * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
3509 * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
3510 * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
3511 * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
3512 * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
3513 * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
3514 * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
3515 * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
3516 * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
3517 * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
3518 * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
3519 * sysdeps/sh/memcpy.S (memcpy): Likewise.
3520 * sysdeps/sh/memset.S (memset): Likewise.
3521 * sysdeps/sh/strlen.S (strlen): Likewise.
3522 * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
3523 * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
3524 * sysdeps/s390/s390-32/memset.S (memset): Likewise.
3525 * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
3526 * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
3527 * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
3528 * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
3529 * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
3530 * sysdeps/s390/s390-64/memset.S (memset): Likewise.
3531 * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
3532 * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
3533 * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
3534 * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
3535 * sysdeps/x86_64/memset.S (memset): Likewise.
3536 * sysdeps/x86_64/strcat.S (strcat): Likewise.
3537 * sysdeps/x86_64/strchr.S (strchr): Likewise.
3538 * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
3539 * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
3540 * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
3541 * sysdeps/x86_64/strlen.S (strlen): Likewise.
3542 * sysdeps/x86_64/strspn.S (strspn): Likewise.
3543 * string/string-inlines.c: Move...
3544 * sysdeps/generic/string-inlines.c: ...here.
3545 (__memcpy_g, __strchr_g): Remove.
3546 (__NO_INLINE__): Define before including <string.h>,
3547 undefine after. Include bits/string.h and bits/string2.h.
3548 * sysdeps/i386/i486/string-inlines.c: New file.
3549 * sysdeps/i386/string-inlines.c: New file.
3550 * sysdeps/i386/i486/Versions: Remove.
3551 All GLIBC_2.1.1 symbols moved...
3552 * sysdeps/i386/Versions (libc): ...here.
3553
3554 2003-04-29 Ulrich Drepper <drepper@redhat.com>
3555
3556 * sysdeps/i386/fpu/Makefile: New file.
3557 * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
3558 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
3559 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
3560 * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
3561 [PR libc/4987].
3562
3563 2003-04-28 Ulrich Drepper <drepper@redhat.com>
3564
3565 * nscd/nscd_getgr_r.c: Compact code a bit. Add some __builtin_expect.
3566 * nscd/nscd_getpw_r.c: Likewise.
3567 * nscd/nscd_gethst_r.c: Likewise.
3568
3569 2003-04-27 Ulrich Drepper <drepper@redhat.com>
3570
3571 * nscd/pwdcache.c: Initialize .version element in result.
3572 * nscd/grpcache.c: Likewise.
3573 * nscd/pwdcache.c: Likewise.
3574
3575 2003-04-27 Andreas Schwab <schwab@suse.de>
3576
3577 * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
3578 subdirectory.
3579
3580 2003-04-27 Andreas Schwab <schwab@suse.de>
3581
3582 * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
3583
3584 2003-04-27 Ulrich Drepper <drepper@redhat.com>
3585
3586 * nscd/connections.c (client_queued): New variable.
3587 (nscd_run): Revamp the loop. Don't call poll except for cleanup
3588 threads. Keep track of the number of delays caused because of busy
3589 worker threads.
3590 * nscd/nscd.h: Declare client_queued.
3591 * nscd/nscd_stat.c: Transmit and print client_queued information.
3592
3593 * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
3594
3595 * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
3596 define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
3597
3598 2003-04-26 Ulrich Drepper <drepper@redhat.com>
3599
3600 * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
3601 tracking of freed memory in static TLS block.
3602 * elf/Makefile: Add rules to build and run tst-tls13.
3603 * elf/tst-tls13.c: New file.
3604 * elf/tst-tlsmod13.c: New file.
3605 * elf/tst-tlsmod13a.c: New file.
3606
3607 * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
3608
3609 * elf/dl-reloc.c: Pretty printing.
3610
3611 2003-04-26 Roland McGrath <roland@redhat.com>
3612
3613 * Makerules ($(common-objpfx)shlib.lds): New target.
3614 (common-generated): Add it.
3615 (build-shlib, build-module): Use that instead of generating every time.
3616 ($(common-objpfx)libc.so): Depend on it.
3617 (lib%.so rule): Likewise.
3618 (build-module-helper-objlist): Remove %.lds.
3619 (LDSEDCMD-c.so): Variable removed.
3620 * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
3621 Depend on $(common-objpfx)shlib.lds.
3622 * dlfcn/Makefile ($(test-modules)): Likewise.
3623
3624 2003-04-26 Roland McGrath <roland@frob.com>
3625
3626 * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
3627
3628 2003-04-26 Andreas Schwab <schwab@suse.de>
3629
3630 * elf/dl-close.c (remove_slotinfo): Fix missing parens.
3631
3632 2003-04-25 Ulrich Drepper <drepper@redhat.com>
3633
3634 * nscd/cache.c (cache_search): Keep track of how many chain links
3635 we searched and update table statistics.
3636 (cache_add): Keep track of how many values are in the table.
3637 (prune_cache): Likewise. Keep track of locking success.
3638 Print messages about removed entries in separate pass.
3639 * nscd/connections.c (handle_request): Don't print debug message here.
3640 The caller will do it. Keep track of locking success.
3641 (nscd_run): Print debug message. Also print PID of the client process.
3642 * nscd/nscd.c (start_time): New variable.
3643 (main): Remember start time.
3644 * nscd/nscd.h: Declare start_time.
3645 (struct database): Add more members for new statistics.
3646 * nscd/nscd_stat.c: Add support for sending, receiving, and printing
3647 of new statistics.
3648
3649 * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
3650
3651 2003-04-22 Jakub Jelinek <jakub@redhat.com>
3652
3653 * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
3654 * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
3655 * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
3656 NO_TLS_OFFSET.
3657 * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
3658 * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
3659 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
3660 * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
3661 TLS_TCB_SIZE.
3662
3663 2003-04-24 Ulrich Drepper <drepper@redhat.com>
3664
3665 * nss/getent.c: Implement alternative host database lookup via
3666 getaddrinfo.
3667
3668 * include/ifaddrs.h: New file.
3669 * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
3670 AI_ADDRCONFIG...
3671 * resolv/netdb.h: ...here.
3672 * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
3673 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
3674 * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
3675 AI_ADDRCONFIG.
3676
3677 2003-04-24 Roland McGrath <roland@redhat.com>
3678
3679 * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
3680
3681 2003-04-24 Jakub Jelinek <jakub@redhat.com>
3682
3683 * elf/dl-reloc.c (allocate_static_tls): Rename to...
3684 (_dl_allocate_static_tls): ... this function. No longer static.
3685 (CHECK_STATIC_TLS): Adjust.
3686 * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
3687 * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
3688 Add SYM_MAP argument.
3689 (elf_machine_rela): Adjust caller. Declare SYM_MAP unconditionally.
3690 Check if SYM_MAP != NULL for R_PPC_DTPREL32. Only handle 32-bit
3691 TLS relocs here. #ifdef out relocs which never appear in
3692 .gnu.conflict section from dl-conflict.c processing.
3693 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
3694 Add SYM_MAP argument. Handle 16-bit TLS relocs here.
3695
3696 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
3697 out relocs which never appear in .gnu.conflict section from
3698 dl-conflict.c processing.
3699 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
3700 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3701 * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
3702 Use r_type in RESOLVE macro.
3703
3704 2003-04-23 Ulrich Drepper <drepper@redhat.com>
3705
3706 * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
3707 NULL. Remove code made redundant by this assumption.
3708 (__yp_unbind): Add call to free. Adjust all callers.
3709
3710 * nis/ypclnt.c (yp_all): Free the dom_binding object after
3711 unbinding it.
3712
3713 * grp/initgroups.c (getgrouplist): Don't copy too much into the
3714 user buffer if more groups are found than fit into it.
3715
3716 * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
3717 extend_alloca.
3718
3719 2003-04-23 Jakub Jelinek <jakub@redhat.com>
3720
3721 * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
3722 not rc == errno. Use extend_alloca.
3723
3724 * elf/tst-tls12.c (main): Fix declaration.
3725 * elf/tst-tls10.c (dummy): Make hidden instead of static.
3726 * elf/tst-tlsmod7.c (dummy): Likewise.
3727 * elf/tst-tlsmod8.c (dummy): Likewise.
3728 * elf/tst-tlsmod9.c (dummy): Likewise.
3729
3730 2003-04-22 Roland McGrath <roland@redhat.com>
3731
3732 * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
3733 (open_not_cancel): Make last argument non-optional.
3734 * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
3735 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
3736 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
3737
3738 * include/tls.h: Protect against multiple inclusion.
3739
3740 2003-04-22 Ulrich Drepper <drepper@redhat.com>
3741
3742 * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
3743 * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
3744 open_socket. Not static anymore.
3745 (nscd_gethst_r): Use __nscd_open_socket.
3746 * nscd/nscd_getgr_r.c (open_socket): Removed.
3747 (nscd_getgr_r): Use __nscd_open_socket.
3748 * nscd/nscd_getpw_r.c (open_socket): Removed.
3749 (nscd_getpw_r): Use __nscd_open_socket.
3750
3751 * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
3752 * nscd/connections.c (handle_request): Add cast to avoid warning.
3753
3754 2003-04-21 Ulrich Drepper <drepper@redhat.com>
3755
3756 * signal/sigfillset.c: Moved to...
3757 * sysdeps/generic/sigfillset.c: ...here. If SIGCANCEL is defined
3758 do not set the corresponding bit.
3759
3760 * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
3761 SIGCANCEL.
3762 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
3763 * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
3764 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
3765 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
3766 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
3767
3768 2003-04-20 Ulrich Drepper <drepper@redhat.com>
3769
3770 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
3771 first syscall parameter to const char*.
3772
3773 2003-04-19 Ulrich Drepper <drepper@redhat.com>
3774
3775 * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
3776
3777 * configure.in: Add AC_PROG_CXX.
3778 * config.make.in (CXX): Define.
3779
3780 * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
3781 __len to size_t to avoid warnings.
3782
3783 2003-04-18 Jes Sorensen <jes@wildopensource.com>
3784
3785 * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
3786 2.5.67.
3787 * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3788
3789 2003-04-19 Ulrich Drepper <drepper@redhat.com>
3790
3791 * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
3792 UNREGISTER_ATFORK if d == NULL.
3793
3794 * catgets/nl_types.h: Remove __THROW marker from cancellation points.
3795 * dirent/dirent.h: Likewise.
3796 * dlfcn/dlfcn.h: Likewise.
3797 * grp/grp.h: Likewise.
3798 * iconv/iconv.h: Likewise.
3799 * io/fcntl.h: Likewise.
3800 * io/ftw.h: Likewise.
3801 * libio/stdio.h: Likewise.
3802 * misc/sys/mman.h: Likewise.
3803 * misc/sys/select.h: Likewise.
3804 * misc/sys/syslog.h: Likewise.
3805 * misc/sys/uio.h: Likewise.
3806 * posix/spawn.h: Likewise.
3807 * posix/unistd.h: Likewise.
3808 * posix/sys/wait.h: Likewise.
3809 * pwd/pwd.h: Likewise.
3810 * resolv/netdb.h: Likewise.
3811 * rt/aio.h: Likewise.
3812 * shadow/shadow.h: Likewise.
3813 * signal/signal.h: Likewise.
3814 * socket/sys/socket.h: Likewise.
3815 * stdlib/stdlib.h: Likewise.
3816 * streams/stropts.h: Likewise.
3817 * string/string.h: Likewise.
3818 * sysdeps/gnu/utmpx.h: Likewise.
3819 * sysvipc/sys/msg.h: Likewise.
3820 * termios/termios.h: Likewise.
3821 * time/time.h: Likewise.
3822 * wcsmbs/wchar.h: Likewise.
3823 * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
3824 functions.
3825 * misc/daemon.c: Likewise.
3826 * sysdeps/generic/backtracesymsfd.c: Likewise.
3827 * sysdeps/generic/check_fds.c: Likewise.
3828 * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
3829 * sysdeps/unix/sysv/linux/not-cancel.h: New file.
3830 * sysdeps/generic/not-cancel.h: New file.
3831 * csu/Makefile (distribute): Add not-cancel.h.
3832 * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
3833 * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
3834 for assert.c and assert-perr.c to include <fatal-prepare.h>.
3835 * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
3836
3837 * sysdeps/posix/remove.c (remove): Rewrite. No need to restore
3838 errno and unlink first.
3839
3840 * io/ftw.c (ftw_dir): In all places assume fchdir is available.
3841
3842 2003-04-18 Ulrich Drepper <drepper@redhat.com>
3843
3844 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
3845 INTERNAL_SYSCALL instead of INLINE_SYSCALL.
3846
3847 2003-04-17 Ulrich Drepper <drepper@redhat.com>
3848
3849 * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
3850
3851 * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
3852 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
3853 replace.
3854
3855 * signal/Makefile (tests): Add tst-sigsimple.
3856 * signal/tst-sigsimple.c: New file.
3857
3858 2003-04-16 Jakub Jelinek <jakub@redhat.com>
3859
3860 * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
3861 tst-tls10.h.
3862 (tests): Add tst-tls1[0-2].
3863 (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
3864 ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
3865 ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
3866 ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
3867 ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
3868 ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
3869 ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
3870 * elf/tst-tls10.c: New test.
3871 * elf/tst-tls11.c: New test.
3872 * elf/tst-tls12.c: New test.
3873 * elf/tst-tls10.h: New file.
3874 * elf/tst-tlsmod7.c: New file.
3875 * elf/tst-tlsmod8.c: New file.
3876 * elf/tst-tlsmod9.c: New file.
3877 * elf/tst-tlsmod10.c: New file.
3878 * elf/tst-tlsmod11.c: New file.
3879 * elf/tst-tlsmod12.c: New file.
3880
3881 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
3882
3883 * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
3884 * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
3885 * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
3886
3887 2003-04-17 Ulrich Drepper <drepper@redhat.com>
3888
3889 * posix/regex.h: Include <sys/types.h>.
3890
3891 * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
3892 The signal number must be checked.
3893 * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
3894 The signal number must be checked [PR libc/5004].
3895
3896 * sysdeps/unix/sysv/linux/system.c: If compiled without threads
3897 don't do anything fancy.
3898
3899 * sysdeps/generic/bits/libc-lock.h: Define
3900 __rtld_lock_define_initialized_recursive.
3901
3902 * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
3903 contacting nscd if NOT_USENSCD_NAME > 0.
3904 * nss/nsswitch.c (__nss_disable_nscd): New function.
3905 * nss/nsswitch.h: Declare it.
3906 * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
3907 * nscd/nscd.c (main): Call __nss_disable_nscd.
3908
3909 2003-04-16 Ulrich Drepper <drepper@redhat.com>
3910
3911 * stdio-common/perror.c (perror): We don't need to set the offset
3912 to _IO_pos_bad, this is how streams are initialized.
3913
3914 * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
3915 (time_output): If necessary, allocate new buffer for .name string if
3916 padding is required.
3917
3918 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
3919 before copying. This might leave holes in the list. Adjust
3920 pointers if necessary.
3921 (netlink_receive): Allocate only one block.
3922 (free_netlink_handle): Adjust appropriately.
3923 (getifaddrs): Lots of cleanups.
3924
3925 * string/test-strncpy.c (do_one_test): Mark start and stop as
3926 possibly unused.
3927 * string/test-memchr.c: Likewise.
3928 * string/test-memcmp.c: Likewise.
3929 * string/test-memcpy.c: Likewise.
3930 * string/test-memmove.c: Likewise.
3931 * string/test-memset.c: Likewise.
3932 * string/test-strcat.c: Likewise.
3933 * string/test-strchr.c: Likewise.
3934 * string/test-strcmp.c: Likewise.
3935 * string/test-strcpy.c: Likewise.
3936 * string/test-strlen.c: Likewise.
3937 * string/test-strncmp.c: Likewise.
3938 * string/test-strpbrk.c: Likewise.
3939 * string/test-strrchr.c: Likewise.
3940 * string/test-strspn.c: Likewise.
3941
3942 2003-04-15 Roland McGrath <roland@redhat.com>
3943
3944 * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
3945
3946 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
3947 INTUSE(__register_frame_info_bases).
3948
3949 2003-04-15 Ulrich Drepper <drepper@redhat.com>
3950
3951 * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
3952 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
3953 AT_SYSINFO_EH_FRAME. Adjust string width.
3954 (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
3955 * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
3956 Add _dl_sysinfo_eh_frame field.
3957 * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
3958 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
3959 variable.
3960 [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
3961 if _dl_sysinfo_eh_frame is non-NULL.
3962
3963 * Makeconfig (gnulib): Add -lgcc_eh.
3964
3965 * config.h.in: Define HAVE_FORCED_UNWIND.
3966
3967 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
3968
3969 * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
3970 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
3971
3972 2003-04-15 Jakub Jelinek <jakub@redhat.com>
3973
3974 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
3975 checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
3976 against local symbol in conflict processing.
3977
3978 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
3979
3980 * sysdeps/powerpc/bits/atomic.h
3981 [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
3982 [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
3983 as abort stub.
3984 (__arch_compare_and_exchange_val_32_acq): Define.
3985 (atomic_compare_and_exchange_val_acq): Define.
3986
3987 2003-04-15 Ulrich Drepper <drepper@redhat.com>
3988
3989 * include/atomic.h: Pretty printing.
3990
3991 2003-04-14 Ulrich Drepper <drepper@redhat.com>
3992
3993 * stdio-common/vfscanf.c: Add casts to avoid warnings.
3994
3995 2003-04-14 Jakub Jelinek <jakub@redhat.com>
3996
3997 * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
3998 * sysdeps/x86_64/bits/atomic.h: Likewise.
3999
4000 2003-04-14 Ulrich Drepper <drepper@redhat.com>
4001
4002 * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
4003 POPARGS_1 to emit labels for the mov instructions.
4004
4005 2003-04-14 Jakub Jelinek <jakub@redhat.com>
4006
4007 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
4008
4009 2003-04-14 Roland McGrath <roland@redhat.com>
4010
4011 * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
4012 compiler warning.
4013
4014 * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
4015
4016 2003-04-14 Ulrich Drepper <drepper@redhat.com>
4017
4018 * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
4019 position. Reported by jreiser@BitWagon.com.
4020
4021 2003-04-13 Ulrich Drepper <drepper@redhat.com>
4022
4023 * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
4024 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
4025 * sysdeps/generic/unwind-dw2.c: Likewise.
4026 * sysdeps/generic/unwind-pe.h: Likewise.
4027
4028 2003-04-13 Alexandre Oliva <aoliva@redhat.com>
4029
4030 * sysdeps/unix/sysv/linux/mips/profil-counter: New.
4031 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
4032 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
4033 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
4034 (mcontext_t): Make it match the 32-bit mips kernel in o32.
4035 * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
4036 the mips and mips64 headers.
4037 (struct user): Port to n32/n64.
4038
4039 2003-04-12 Ulrich Drepper <drepper@redhat.com>
4040
4041 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
4042 avoid warning.
4043
4044 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
4045 __ASSUME_VSYSCALL is defined don't add restorer.
4046 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4047 __ASSUME_VSYSCALL for 2.5.53.
4048
4049 2003-04-11 Ulrich Drepper <drepper@redhat.com>
4050
4051 * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
4052 Remove HAVE_CANCELBUF code. Replace with code using the new
4053 initializers for unwind-based cleanup handling.
4054 * sysdeps/generic/unwind.h: Update from latest gcc version.
4055 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
4056 places to allow unwind data generation.
4057 * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
4058 * sysdeps/x86_64/bits/setjmp.h: Likewise.
4059 * sysdeps/sh/bits/setjmp.h: Likewise.
4060 * sysdeps/powerpc/bits/setjmp.h: Likewise.
4061 * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
4062 * sysdeps/alpha/bits/setjmp.h: Likewise.
4063
4064 2003-04-11 Roland McGrath <roland@redhat.com>
4065
4066 * csu/tst-empty.c: New file.
4067 * csu/Makefile (tests, tests-static): Add it.
4068
4069 2003-04-11 Jakub Jelinek <jakub@redhat.com>
4070
4071 * string/test-strcmp.c (do_random_tests): Test whether return value
4072 has been promoted to wordsize if the ABI requires caller to do so.
4073 * string/test-strncmp.c (do_random_tests): Likewise.
4074 * string/test-memcmp.c (do_random_tests): Likewise.
4075
4076 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
4077 before returning.
4078
4079 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
4080 (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
4081 is not defined, but the prctl constants are.
4082
4083 * string/tester.c (test_strcmp): Fix a typo.
4084
4085 2003-04-09 Ulrich Drepper <drepper@redhat.com>
4086
4087 * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
4088 * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
4089
4090 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
4091
4092 * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
4093 NewABI.
4094 (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
4095 NewABI.
4096 * sysdeps/mips/mips64/memcpy.S: Adjust register naming
4097 conventions.
4098 * sysdeps/mips/mips64/memset.S: Likewise.
4099 * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
4100 Use t0 instead of t4 as temporary.
4101
4102 2003-04-07 Ulrich Drepper <drepper@redhat.com>
4103
4104 * elf/ldconfig.c (parse_conf): Ignore leading whitespace. Use
4105 feof_unlocked instead of feof.
4106 (add_dir): Ignore trailing whitespace.
4107
4108 2003-04-07 Jakub Jelinek <jakub@redhat.com>
4109
4110 * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
4111 sum of SIZE1 and SIZE2 arguments.
4112
4113 2003-04-06 Ulrich Drepper <drepper@redhat.com>
4114
4115 * iconv/iconv_prog.c (process_block): Don't print message about
4116 invalid input if the -c option is used.
4117 (main): Correctly append IGNORE string for -c option.
4118
4119 2002-04-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4120
4121 * sysdeps/sh/bits/atomic.h: Moved to ...
4122 * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here. Add comments.
4123 (__arch_compare_and_exchange_val_*_acq): Add parens around macro
4124 arguments.
4125 (atomic_bit_set, atomic_bit_test_set): Likewise.
4126 (atomic_exchange_and_add): Likewise. Don't evaluate VALUE argument
4127 twice.
4128 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
4129
4130 2003-04-06 Roland McGrath <roland@redhat.com>
4131
4132 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
4133 restoration as done for setcontext yesterday.
4134
4135 2003-04-06 Jakub Jelinek <jakub@redhat.com>
4136
4137 * elf/rtld.c: Revert 2003-03-14 change.
4138 * elf/dl-conflict.c (_dl_resolve_conflicts): Move
4139 #if ! ELF_MACHINE_NO_RELA conditional into the routine.
4140
4141 2003-04-05 Ulrich Drepper <drepper@redhat.com>
4142
4143 * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
4144
4145 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
4146 Always initialize *signgamp before returning an error.
4147
4148 2003-04-05 Roland McGrath <roland@redhat.com>
4149
4150 * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
4151 below the stack pointer even if switching to the same context we are
4152 running right now.
4153
4154 2003-04-05 Ulrich Drepper <drepper@redhat.com>
4155
4156 * catgets/gencat.c (read_input_file): Make sure that \n is not
4157 alone on the line before testing for continuation.
4158
4159 * math/test-tgmath.c (compile_test): Initialize c.
4160
4161 2003-04-05 Alexandre Oliva <aoliva@redhat.com>
4162
4163 * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
4164 * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
4165 * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
4166 on mips n32.
4167 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
4168 XSTAT_IS_XSTAT64 must not be used for mips n64. Use 64-bit data
4169 structure on n32 as well.
4170 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
4171 data types on n32 and n64.
4172
4173 2003-04-05 Ulrich Drepper <drepper@redhat.com>
4174
4175 * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
4176 after getting them.
4177
4178 * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
4179 HAVE_register_atfork_malloc is defined use __register_atfork_malloc
4180 instead of __register_atfork.
4181
4182 2003-04-05 Jakub Jelinek <jakub@redhat.com>
4183
4184 * stdio-common/reg-printf.c (__register_printf_function): Calloc
4185 instead of malloc __printf_arginfo_table and __printf_function_table.
4186 Reported by John Reiser <jreiser@BitWagon.com>.
4187
4188 2003-04-04 Steven Munroe <sjmunroe@us.ibm.com>
4189
4190 * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
4191 * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
4192
4193 * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
4194 defining.
4195
4196 2003-04-04 Alexandre Oliva <aoliva@redhat.com>
4197
4198 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
4199 for n64 abi.
4200
4201 2003-04-03 Roland McGrath <roland@redhat.com>
4202
4203 * configure.in: Fix up use of compilation flags to match the build:
4204 For .s files, $ASFLAGS;
4205 For .S files, $CPPFLAGS $ASFLAGS;
4206 For .c files, $CFLAGS $CPPFLAGS;
4207 when linking, add $LDFLAGS.
4208 * configure: Regenerated.
4209
4210 2003-04-03 Jakub Jelinek <jakub@redhat.com>
4211
4212 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
4213 for atomic_compare_and_exchange_bool_acq failure.
4214
4215 2003-04-03 Ulrich Drepper <drepper@redhat.com>
4216
4217 * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
4218 _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
4219 _POSXI2_LOCALEDEF to 200112L. Remove _POSIX2_C_VERSION.
4220 Remove declaration of pthread_atfork.
4221
4222 2003-04-02 Ulrich Drepper <drepper@redhat.com>
4223
4224 * locale/iso-639.def: Add many more languages from the current ISO 639.
4225
4226 * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
4227 * sysdeps/generic/semtimedop.c: New file.
4228 * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
4229 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
4230 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4231 * sysvipc/Makefile (routines): Add semtimedop.
4232 * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
4233 * sysvipc/sys/sem.h: Declare semtimedop.
4234
4235 2003-04-02 Daniel Jacobowitz <drow@mvista.com>
4236
4237 * configure.in: Check for __register_frame_info in both
4238 -lgcc and -lgcc_eh.
4239 * configure: Regenerated.
4240
4241 2003-04-01 Roland McGrath <roland@redhat.com>
4242
4243 * scripts/abilist.awk: Allow dots in soname suffix.
4244
4245 * scripts/abilist.awk (emit): Fix bailout condition.
4246
4247 2003-04-01 Jakub Jelinek <jakub@redhat.com>
4248
4249 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
4250 IA-64 version.
4251
4252 * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
4253 register as input to asm.
4254
4255 2003-04-01 Jakub Jelinek <jakub@redhat.com>
4256
4257 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
4258
4259 2003-04-01 Andreas Jaeger <aj@suse.de>
4260
4261 * configure.in: Output as/ld as name if version is too old.
4262
4263 2003-03-31 Daniel Jacobowitz <drow@mvista.com>
4264
4265 * configure.in: Don't require an installed C library in the test
4266 for ".set" assembler support.
4267
4268 2003-03-31 Roland McGrath <roland@redhat.com>
4269
4270 * signal/tst-sigset.c: New file.
4271 * signal/Makefile (tests): Add it.
4272
4273 2003-03-31 Ulrich Drepper <drepper@redhat.com>
4274
4275 * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
4276 * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
4277 * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
4278 * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
4279 (__SIGRTMAX): Adjust accordingly.
4280 * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
4281 second compatibility symbol set.
4282 * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
4283
4284 2003-03-31 Andreas Schwab <schwab@suse.de>
4285
4286 * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
4287 Define.
4288 (atomic_decrement_and_test): Fix test.
4289
4290 2003-03-31 Jakub Jelinek <jakub@redhat.com>
4291
4292 * sysdeps/sparc/sparc32/bits/atomic.h: New file.
4293 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
4294 * sysdeps/sparc/sparc64/bits/atomic.h: New file.
4295 * sysdeps/sparc/sparc32/atomicity.h: Removed.
4296 * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
4297 * sysdeps/sparc/sparc64/atomicity.h: Removed.
4298
4299 2003-03-30 Roland McGrath <roland@redhat.com>
4300
4301 * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
4302
4303 * intl/po2test.sed: Anchor substitution regexps to fix last change.
4304
4305 2003-03-29 Paolo Bonzini <bonzini@gnu.org>
4306
4307 * intl/po2test.sed: Unify the transformations for msgid and msgstr
4308 and remove a useless s/// command.
4309
4310 2003-03-27 David Mosberger <davidm@hpl.hp.com>
4311
4312 * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
4313 directive into empty .prologue region to ensure that call-chain
4314 is terminated even for the first instruction.
4315
4316 * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
4317 to terminate call-chain right from the get-go.
4318
4319 * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
4320 stop bit between compare & branch.
4321
4322 2003-03-29 Ulrich Drepper <drepper@redhat.com>
4323
4324 * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
4325 point correctly [PR libc/4993].
4326
4327 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
4328 netlink_open calls if netlink is known to not be available.
4329
4330 2003-03-29 Alexandre Oliva <aoliva@redhat.com>
4331
4332 * configure.in: Add mips64* support.
4333 * sysdeps/mips/bits/endian.h: Make it bi-endian.
4334 * sysdeps/mips/mipsel/bits/endian.h: Removed.
4335 * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
4336 * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
4337 * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
4338 * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
4339 * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
4340 * sysdeps/mips/Implies: Moved wordsize-32 to...
4341 * sysdeps/mips/mips32/Implies: New file.
4342 * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
4343 ret_NOERRNO): New.
4344 (ret, PSEUDO_END): Moved past END.
4345 (PSEUDO): Moved to...
4346 * sysdeps/unix/mips/mips32/sysdep.h: New file.
4347 * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
4348 * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
4349 * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
4350 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
4351 * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
4352
4353 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
4354 Re-introduce ENTRY.
4355
4356 2003-03-28 Thorsten Kukuk <kukuk@suse.de>
4357
4358 * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
4359 * inet/test-ifaddrs.c: Allow AF_PACKET.
4360 * sysdeps/unix/sysv/linux/kernel-features.h: Add
4361 __ASSUME_NETLINK_SUPPORT.
4362
4363 2003-03-28 Ulrich Drepper <drepper@redhat.com>
4364
4365 * elf/vismain.c (do_test): Comment out tests which fail in the moment.
4366
4367 2003-03-26 H.J. Lu <hjl@gnu.org>
4368
4369 * elf/vismod.h (getvarlocal1): Return const char **.
4370 (getvarinmod1): Likewise.
4371 (getvaritcpt1): Likewise.
4372 (getvarlocal2): Likewise.
4373 (getvarinmod2): Likewise.
4374 (getvaritcpt2): Likewise.
4375 (getvaritcpt3): Likewise.
4376 * elf/vismain.c (do_test): Adjusted.
4377 * elf/vismod1.c (getvarlocal1): Return address.
4378 (getvarinmod1): Likewise.
4379 (getvaritcpt1): Likewise.
4380 * elf/vismod2.c (getvarlocal2): Likewise.
4381 (getvarinmod2): Likewise.
4382 (getvaritcpt2): Likewise.
4383 * elf/vismod3.c (getvaritcpt3): Likewise.
4384
4385 2003-03-28 Roland McGrath <roland@redhat.com>
4386
4387 * elf/vismain.c (do_test): Print both addresses when they don't match.
4388
4389 * scripts/abilist.awk: If given -v filename_regexp and/or -v
4390 libname_regexp when parsing names, then produce output only
4391 for those matching the given regexps. In combine mode, save all
4392 stanzas for a final sorting by stanza header at the end.
4393 Emit a blank line between stanzas.
4394
4395 * scripts/abilist.awk: When given -v combine=1, do parse_names and
4396 emit a single output stream with lib name in stanza header lines.
4397
4398 * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
4399
4400 2003-03-27 Roland McGrath <roland@redhat.com>
4401
4402 * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
4403 (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
4404
4405 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4406
4407 * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
4408 Return old value. Make asm output reg constraint earlyclobber.
4409 Renamed from...
4410 (__arch_compare_and_exchange_8_acq): ... this.
4411 (__arch_compare_and_exchange_val_16_acq):
4412 Return old value. Make asm output reg constraint earlyclobber.
4413 Renamed from...
4414 (__arch_compare_and_exchange_16_acq): ... this.
4415 (__arch_compare_and_exchange_val_32_acq):
4416 Return old value. Make asm output reg constraint earlyclobber.
4417 Renamed from...
4418 (__arch_compare_and_exchange_32_acq): ... this.
4419 (__arch_compare_and_exchange_val_64_acq):
4420 Renamed from...
4421 (__arch_compare_and_exchange_64_acq): ... this.
4422 (atomic_exchange_and_add): Use local variables and
4423 __arch_compare_and_exchange_val_64_acq.
4424 (atomic_add): Likewise.
4425 (atomic_add_negative, atomic_add_zero): Use local variables.
4426
4427 2003-03-28 Alexandre Oliva <aoliva@redhat.com>
4428
4429 * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
4430
4431 2003-03-27 Ulrich Drepper <drepper@redhat.com>
4432
4433 * Makefile: Remove libmd5crypt goal.
4434
4435 2003-03-25 Jakub Jelinek <jakub@redhat.com>
4436
4437 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
4438 special handling of relocations against local symbols.
4439
4440 2003-03-27 Steven Munroe <sjmunroe@us.ibm.com>
4441
4442 * sysdeps/powerpc/bits/atomic.h
4443 (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
4444 [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
4445 Define PPC64 specific version.
4446 [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
4447 Change (mem) constraint to "b".
4448 [__powerpc64__] (__arch_atomic_exchange_and add_64):
4449 Replace addi with add. Change (value) contraint to "r".
4450 Change (mem) constraint to "b".
4451 [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
4452 (__arch_atomic_exchange_32): Change (mem) constraint to "b".
4453 (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
4454 (__arch_atomic_decrement_if_positive_32): New macro.
4455 (atomic_decrement_if_positive): Use __arch* macros.
4456
4457 2003-03-27 Jakub Jelinek <jakub@redhat.com>
4458
4459 * sysdeps/ia64/fpu/libm-test-ulps: Update.
4460
4461 2003-03-27 Roland McGrath <roland@redhat.com>
4462
4463 * scripts/rpm2dynsym.sh: New file.
4464 * Makefile (distribute): Add it.
4465
4466 2003-03-27 David Mosberger <davidm@hpl.hp.com>
4467
4468 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
4469 ar.unat before returning. Add missing .mem.offset directives
4470 to ensure file gets assembled without warnings.
4471 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
4472
4473 2003-03-27 Jakub Jelinek <jakub@redhat.com>
4474
4475 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
4476 Return -1 instead of 0 if clock_getres failed.
4477
4478 2003-03-27 Roland McGrath <roland@redhat.com>
4479
4480 * scripts/abilist.awk: If variable `parse_names' is set, grok the file
4481 header lines and write out foo.symlist files for each foo.so.NN listed.
4482
4483 * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
4484 This symbol is exported, and we don't want to hide it.
4485 Add libc_hidden_proto instead.
4486 (_IO_file_jumps): Add libc_hidden_proto.
4487 * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
4488 Remove INTVARDEF.
4489 * libio/fileops.c (_IO_file_jumps): Likewise.
4490 * libio/stdfiles.c: Don't use INTUSE on them.
4491 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
4492 * libio/iofopen.c (__fopen_internal): Likewise.
4493 * libio/freopen.c (freopen): Likewise.
4494 * libio/freopen64.c (freopen64): Likewise.
4495 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
4496
4497 * Makerules (check-abi) [$(enable-check-abi) = warn]:
4498 Ignore exit status from diff.
4499 * configure.in (enable_check_abi): Document possible value "warn".
4500 Change default to no for now.
4501 * configure: Regenerated.
4502
4503 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
4504 macro calls and a #include <stub-tag.h> at the end.
4505 * Makerules ($(objpfx)stubs): Tweak sed commands.
4506
4507 * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
4508 caller column for *xattr syscalls, since they are in sysdeps/generic.
4509
4510 * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
4511 * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
4512
4513 2003-03-26 Roland McGrath <roland@redhat.com>
4514
4515 * Makerules (check-abi-config): Use /thread instead of /tls when
4516 use-thread and not just use-tls is set.
4517
4518 * Makerules (update-abi): Put quotes around $(update-abi-config).
4519
4520 * elf/Makefile (check-abi): Depend on check-abi-ld.
4521 (update-abi): Depend on update-abi-ld.
4522
4523 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
4524
4525 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
4526 do not check for errors (unless testing for 32bit variant).
4527 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
4528
4529 2003-03-27 Philip Blundell <philb@gnu.org>
4530
4531 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
4532 unconditional mov. Remove nop.
4533
4534 * sysdeps/unix/sysv/linux/kernel-features.h
4535 (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
4536 * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
4537 when __ASSUME_VFORK_SYSCALL is defined.
4538 * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
4539 __ASSUME_MMAP2_SYSCALL.
4540 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
4541 __ASSUME_REALTIME_SIGNALS.
4542
4543 2003-03-26 Ulrich Drepper <drepper@redhat.com>
4544
4545 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
4546 only if DL_NO_COPY_RELOCS is not defined.
4547 * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
4548
4549 2003-03-26 Roland McGrath <roland@redhat.com>
4550
4551 * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
4552 SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
4553 * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
4554 (sysdep_routines): Add stub-syscalls.
4555 ($(objpfx)stub-syscalls.c): New target.
4556 (generated): Add stub-syscalls.c.
4557
4558 * tls.make.c: Also define use-tls according to USE_TLS macro.
4559
4560 2003-03-26 Ulrich Drepper <drepper@redhat.com>
4561
4562 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
4563 no-op padding element.
4564 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
4565 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
4566 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
4567 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
4568
4569 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
4570
4571 * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
4572 condition check for the return value of getgroups32.
4573
4574 2003-03-26 Jakub Jelinek <jakub@redhat.com>
4575
4576 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
4577 Fix a typo.
4578 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
4579 PSEUDO_END_NOERRNO): Define.
4580 * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
4581 Define to PSEUDO_END.
4582
4583 2003-03-26 Ulrich Drepper <drepper@redhat.com>
4584
4585 * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
4586
4587 2003-03-25 Jiro SEKIBA <jir@yamato.ibm.com>
4588
4589 * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
4590 * iconvdata/bug-iconv4.c: New file.
4591 * iconvdata/Makefile (tests): Add bug-iconv4.
4592
4593 2003-03-25 H.J. Lu <hjl@gnu.org>
4594
4595 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
4596 symbols twice.
4597 (_dl_lookup_versioned_symbol): Likewise.
4598
4599 2003-03-26 Jakub Jelinek <jakub@redhat.com>
4600
4601 * csu/tst-atomic.c (do_test): Add some new
4602 atomic_compare_and_exchange_val_acq, atomic_add_zero,
4603 atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
4604 * include/atomic.h (atomic_add_negative, atomic_add_zero):
4605 Prefix local variable so that it doesn't clash with the one
4606 in atomic_exchange_and_add.
4607 * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
4608 pointers.
4609 (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
4610 * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
4611 value into register.
4612 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
4613 Cast newval to long.
4614 * sysdeps/x86_64/bits/atomic.h
4615 (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
4616 long.
4617 (atomic_exchange): Cast newvalue to long if sizeof == 8.
4618 (atomic_exchange_and_add): Cast value to long if sizeof == 8.
4619 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
4620 (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
4621
4622 2003-03-21 Martin Schwidefsky <schwidefskyde.ibm.com>
4623
4624 * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
4625 bit from backtrace addresses.
4626
4627 2003-03-21 Andreas Schwab <schwab@suse.de>
4628
4629 * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
4630 __chown symbols.
4631
4632 2003-03-25 Roland McGrath <roland@redhat.com>
4633
4634 * config.make.in (enable-check-abi): New variable from configure.
4635 * configure.in (enable_check_abi): New substituted variable,
4636 controlled by --{enable,disable}-check-abi (default yes).
4637 * configure: Regenerated.
4638 * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
4639 on check-abi dependency.
4640
4641 2003-03-26 Andreas Schwab <schwab@suse.de>
4642
4643 * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
4644 * include/atomic.h: Likewise.
4645
4646 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
4647
4648 2003-03-25 Roland McGrath <roland@redhat.com>
4649
4650 * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
4651 (__arch_atomic_exchange_64): New macro.
4652 (atomic_exchange): Use them.
4653 (__arch_atomic_exchange_and_add_32): New macro.
4654 (__arch_atomic_exchange_and_add_64): New macro.
4655 (atomic_exchange_and_add): Use them.
4656 Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
4657
4658 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
4659
4660 * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
4661 Define.
4662 * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
4663 ISA tests.
4664 (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
4665 (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
4666 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
4667 to decide whether to add padding.
4668 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
4669 to decide whether to add padding.
4670 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
4671 old_kernel_sigaction): Likewise.
4672
4673 2003-03-25 Ulrich Drepper <drepper@redhat.com>
4674
4675 * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
4676 atomic_add_zero were supposed to do.
4677 * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
4678 to x86 behavior.
4679
4680 * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
4681 This matches the new timer implementation.
4682 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
4683 Likewise.
4684 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
4685 Likewise.
4686 * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
4687 timer info for what the kernel provides these days.
4688 (struct sigevent): Add _tid field.
4689 Define SIGEV_THREAD_ID.
4690 Remove struct __pthread_attr_s forward declaration.
4691 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
4692 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
4693 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
4694 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
4695
4696 * Versions.def (librt): Add GLIBC_2.3.3.
4697
4698 * abilist/libpthread.abilist: Update for nptl.
4699
4700 2003-03-24 Jon Grimm <jgrimm@us.ibm.com>
4701
4702 * inet/netinet/in.h: Add IPPROTO_SCTP.
4703
4704 2003-03-24 Ulrich Drepper <drepper@redhat.com>
4705
4706 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
4707
4708 2003-03-24 Philip Blundell <philb@gnu.org>
4709
4710 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
4711 Remove a1 from clobber list.
4712
4713 2003-03-24 Ulrich Drepper <drepper@redhat.com>
4714
4715 * timezone/antarctica: Update from tzdata2003a.
4716 * timezone/asia: Likewise.
4717 * timezone/australasia: Likewise.
4718 * timezone/europe: Likewise.
4719 * timezone/iso3166.tab: Likewise.
4720 * timezone/northamerica: Likewise.
4721 * timezone/southamerica: Likewise.
4722 * timezone/zone.tab: Likewise.
4723
4724 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
4725
4726 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
4727
4728 2003-03-23 Ulrich Drepper <drepper@redhat.com>
4729
4730 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
4731 unwanted expansion by definining to ret. Patch by Ian Wienand.
4732
4733 * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
4734 the parameter description to denote no error checking. Generate
4735 appropriate pseudo asm code.
4736 * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
4737 * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
4738 getpgrp, and getppid with 'E'.
4739 * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
4740 PSEUDO_END_NOERRNO, and ret_NOERRNO.
4741 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
4742 * sysdeps/unix/sysdep.h: Likewise.
4743 * sysdeps/unix/alpha/sysdep.h: Likewise.
4744 * sysdeps/unix/sparc/sysdep.h: Likewise.
4745 * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
4746 * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
4747 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
4748 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
4749 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
4750 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
4751 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
4752 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4753 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
4754 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
4755 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
4756
4757 2003-03-23 Roland McGrath <roland@redhat.com>
4758
4759 * Makeconfig (+includes): Don't use $(last-includes).
4760
4761 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
4762
4763 * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
4764 * sysdeps/unix/sysv/linux/configure: Rebuilt.
4765
4766 2003-03-23 Jakub Jelinek <jakub@redhat.com>
4767
4768 * sysdeps/alpha/fpu/libm-test-ulps: Update.
4769 * sysdeps/arm/libm-test-ulps: Update.
4770 * sysdeps/hppa/fpu/libm-test-ulps: Update.
4771 * sysdeps/ia64/fpu/libm-test-ulps: Update.
4772 * sysdeps/mips/fpu/libm-test-ulps: Update.
4773 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
4774 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4775 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
4776 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
4777 * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
4778 * sysdeps/s390/fpu/libm-test-ulps: Update.
4779 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4780
4781 2003-03-22 Roland McGrath <roland@redhat.com>
4782
4783 * include/atomic.h: Put parens around all macro arguments.
4784 (__atomic_val_bysize, __atomic_bool_bysize): New macros.
4785 (atomic_compare_and_exchange_val_acq): Use it.
4786 (atomic_compare_and_exchange_bool_acq): Likewise.
4787 (atomic_increment_and_test): Invert sense of test.
4788 (atomic_decrement_and_test): Likewise.
4789 * csu/tst-atomic.c: Update those tests to match.
4790
4791 2003-03-22 Jakub Jelinek <jakub@redhat.com>
4792
4793 * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
4794 Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
4795 (atomic_compare_and_exchange_bool_acq): Add comment. Don't use
4796 __oldval variable in the macro, since it might be macro argument.
4797 (atomic_decrement_if_positive): Initialize __memp, remove setting
4798 of non-existent variable.
4799 (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
4800 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
4801 using atomic_compare_and_exchange_val_acq.
4802 (atomic_decrement_if_positive, atomic_bit_test_set): Define.
4803 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
4804 Renamed from...
4805 (__arch_compare_and_exchange_bool_8_acq): ... this.
4806 (__arch_compare_and_exchange_val_16_acq): Renamed from...
4807 (__arch_compare_and_exchange_bool_16_acq): ... this.
4808 (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed
4809 from...
4810 (__arch_compare_and_exchange_bool_32_acq): ... this.
4811 (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed
4812 from...
4813 (__arch_compare_and_exchange_bool_64_acq): ... this.
4814 (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
4815 variables types instead of assuming int.
4816 Change prefix of local variables to __arch.
4817 * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
4818 Remove.
4819 (atomic_compare_and_exchange_val_acq,
4820 atomic_compare_and_exchange_bool_acq): Define.
4821
4822 * csu/tst-atomic.c: New test.
4823 * csu/tst-atomic-long.c: New test.
4824 * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
4825
4826 * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
4827
4828 * sysdeps/s390/Versions: Add trailing newline.
4829
4830 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
4831 if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
4832
4833 2003-03-22 Andreas Schwab <schwab@suse.de>
4834
4835 * sysdeps/m68k/fpu/libm-test-ulps: Update.
4836
4837 * sysdeps/m68k/m68020/bits/atomic.h: New file.
4838 * sysdeps/m68k/m68020/atomicity.h: Removed.
4839
4840 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
4841
4842 * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
4843 data structures and macros. Protect from multiple inclusion.
4844
4845 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
4846 typo in #if test.
4847
4848 2003-03-21 Andreas Jaeger <aj@suse.de>
4849
4850 * sysdeps/i386/fpu/libm-test-ulps: Update.
4851
4852 * math/libm-test.inc (tgamma_test): Recompute some constants with
4853 36 digits precision.
4854 (lgamma_test): Likewise.
4855 (ccos_test): Likewise.
4856 (ccosh_test): Likewise.
4857 (clog10_test): Likewise.
4858 (csin_test): Likewise.
4859 (csinh_test): Likewise.
4860 (ctan_test): Likewise.
4861 (ctanh_test): Likewise.
4862
4863 2003-03-19 Jakub Jelinek <jakub@redhat.com>
4864
4865 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
4866
4867 2003-03-21 Roland McGrath <roland@redhat.com>
4868
4869 * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
4870 constraint to permit non-constant BIT argument.
4871 (atomic_bit_test_set): Likewise.
4872 * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
4873 (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32.
4874 For quadword case, use "i" constraint if __builtin_constant_p and < 32
4875 or "r" constraint otherwise.
4876
4877 * configure.in: Move AC_PROG_CC and other program-finding before all
4878 the version checks.
4879 * configure: Regenerated.
4880
4881 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
4882
4883 * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
4884 unaligned copying of 8-15 bytes. From Chris Demetriou
4885 <cgd@broadcom.com>. Fix label names.
4886 * sysdeps/mips/mips64/memset.S: Fix label names. Make similar
4887 change as to memcpy.S.
4888 * sysdeps/mips/memcpy.S: Formatting changes.
4889 * sysdeps/mips/memset.S: Likewise.
4890
4891 2003-03-21 Roland McGrath <roland@redhat.com>
4892
4893 * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
4894
4895 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
4896
4897 * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
4898 * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
4899
4900 2003-03-21 Roland McGrath <roland@redhat.com>
4901
4902 * sysdeps/i386/i486/bits/atomic.h
4903 (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
4904 version of the macro to avoid compile-time warnings.
4905 [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
4906 (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
4907 (atomic_increment, atomic_decrement): Likewise.
4908
4909 2003-03-21 Ulrich Drepper <drepper@redhat.com>
4910
4911 * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
4912 * sysdeps/i386/i486/bits/atomic.h: Likewise.
4913
4914 2003-03-21 Roland McGrath <roland@redhat.com>
4915
4916 * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
4917
4918 2003-03-20 Ulrich Drepper <drepper@redhat.com>
4919
4920 * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
4921 atomic_compare_and_exchange_val_rel,
4922 atomic_compare_and_exchange_bool_acq, and
4923 atomic_compare_and_exchange_bool_rel instead of
4924 atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
4925 * sysdeps/i386/i486/bits/atomic.h: Define
4926 __arch_compare_and_exchange_val_*_acq instead of
4927 __arch_compare_and_exchange_*_acq.
4928 * sysdeps/x86_64/bits/atomic.h: Likewise.
4929 * sysdeps/ia64/bits/atomic.h: Define
4930 __arch_compare_and_exchange_bool_*_acq instead of
4931 __arch_compare_and_exchange_*_acq.
4932 * sysdeps/powerpc/bits/atomic.h: Likewise.
4933 * sysdeps/s390/bits/atomic.h: Likewise.
4934 * gmon/mcount.c: Adjust for new form of compare&exchange macros.
4935 * malloc/set-freeres.c: Likewise.
4936 * nscd/cache.c: Likewise.
4937 * stdlib/cxa_finalize.c: Likewise.
4938 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
4939
4940 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
4941
4942 * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
4943 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
4944 * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
4945
4946 * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
4947 into high and low halves on n64.
4948 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4949 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4950 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4951
4952 2003-03-20 Ulrich Drepper <drepper@redhat.com>
4953
4954 * include/atomic.h (atomic_decrement_if_positive): Adjust for the
4955 correct atomic_compare_and_exchange_acq semantics.
4956
4957 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
4958
4959 * sysdeps/mips/ieee754.h: Remove excess #endif.
4960
4961 2003-03-20 Roland McGrath <roland@redhat.com>
4962
4963 * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
4964 variable. Remove superfluous memory clobber.
4965
4966 * include/atomic.h: Syntax braino fix.
4967
4968 * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
4969 in decimal. Don't bail if niced at start. Just check that nice call
4970 bumps the total at all.
4971
4972 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
4973
4974 * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
4975 including pc, gp, sp and fp, as long long.
4976 * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
4977 * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
4978 Add gp argument, and set gp in the jmpbuf to it.
4979 * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
4980
4981 2003-03-20 Ulrich Drepper <drepper@redhat.com>
4982
4983 * include/atomic.h: Define atomic_exchange and
4984 atomic_decrement_if_positive if not already defined. Add some
4985 __builtin_expect.
4986 * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
4987 * sysdeps/x86_64/bits/atomic.h: Likewise.
4988 * sysdeps/ia64/bits/atomic.h: Pretty printing. Define atomic_exchange.
4989 * sysdeps/powerpc/bits/atomic.h: Pretty printing. Define
4990 atomic_exchange, atomic_exchange_and_add, and
4991 atomic_decrement_if_positive
4992
4993 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
4994
4995 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
4996 with a single instruction.
4997
4998 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
4999 properly for n64.
5000 (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
5001 type.
5002 (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
5003 Word before comparing with gotsym. Take reloc_addr argument as
5004 void*. Remove the code added for the compiler to drop any
5005 alignment assumptions.
5006
5007 2003-03-19 Ulrich Drepper <drepper@redhat.com>
5008
5009 * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
5010 * include/atomic.h: New file.
5011 * sysdeps/i386/i486/bits/atomic.h: New file.
5012 * sysdeps/x86_64/bits/atomic.h: New file.
5013 * sysdeps/s390/bits/atomic.h: New file.
5014 * sysdeps/sh/bits/atomic.h: New file.
5015 * sysdeps/ia64/bits/atomic.h: New file.
5016 * sysdeps/powerpc/bits/atomic.h: New file.
5017 * sysdeps/generic/bits/atomic.h: New file.
5018 * sysdeps/i386/i486/atomicity.h: Removed.
5019 * sysdeps/x86_64/atomicity.h: Removed.
5020 * sysdeps/s390/s390-32/atomicity.h: Removed.
5021 * sysdeps/s390/s390-64/atomicity.h: Removed.
5022 * sysdeps/ia64/atomicity.h: Removed.
5023 * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
5024 * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
5025 * elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust
5026 use of macros from atomicity.h to new names and semantics.
5027 * gmon_mcount.c: Likewise.
5028 * malloc/set-freeres.c: Likewise.
5029 * nscd/cache.c: Likewise.
5030 * stdlib/cxa_finalize.c: Likewise.
5031 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
5032
5033 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
5034
5035 * sysdeps/mips/ieee754.h: New file, suitable to replace both
5036 ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
5037 mips-specific for now.
5038
5039 2003-03-19 Ulrich Drepper <drepper@redhat.com>
5040
5041 * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
5042 hexdigits correctly. Reported by Fred Tydeman <tydeman@tybor.com>.
5043 * stdlib/tst-strtod.c: Add test for the bug.
5044
5045 * posix/tst-nice.c (do_test): Remove invalid of return value.
5046 Don't run test if initial level != 0.
5047
5048 2003-03-19 Amos Waterland <apw@us.ibm.com>
5049
5050 * posix/tst-nice.c: New file.
5051 * posix/Makefile (tests): Add tst-nice.
5052
5053 2003-03-18 Roland McGrath <roland@redhat.com>
5054
5055 * abilist: New directory of libfoo.abilist files maintained using
5056 scripts/merge-abilist.awk and "make update-abi" rules.
5057 * Makefile (distribute): Add abilist/*.abilist.
5058 * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
5059 Depend on check-abi.
5060
5061 * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
5062 * configure: Regenerated.
5063
5064 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
5065
5066 2003-03-18 Ulrich Drepper <drepper@redhat.com>
5067
5068 * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
5069 correctly.
5070
5071 2003-03-18 Steven Munroe <sjmunroe@us.ibm.com>
5072
5073 * sysdeps/powerpc/powerpc64/memcpy.S: New file.
5074
5075 2003-03-18 Ulrich Drepper <drepper@redhat.com>
5076
5077 * Versions.def: Add GLIBC_2.3.3 for libpthread.
5078
5079 2003-03-17 Ulrich Drepper <drepper@redhat.com>
5080
5081 * sysdeps/generic/libc-start.c [!SHARED &&
5082 !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
5083
5084 2003-03-17 Roland McGrath <roland@redhat.com>
5085
5086 * include/ctype.h: Revert last change.
5087
5088 2003-03-17 Ulrich Drepper <drepper@redhat.com>
5089
5090 * argp/tst-argp1.c: Use test-skeleton.c.
5091 * locale/tst-C-locale.c: Likewise.
5092
5093 2003-03-17 Alexandre Oliva <aoliva@redhat.com>
5094
5095 * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
5096 * sysdeps/mips/mips64/n64/Implies: New file.
5097 * sysdeps/mips/mips64/n64/Makefile: New file.
5098 * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
5099 * sysdeps/mips/mips64/n32/Implies: New file.
5100 * sysdeps/mips/mips64/n32/Makefile: New file.
5101 * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
5102 * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
5103 * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
5104 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
5105 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
5106 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
5107 * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
5108 * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
5109 * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
5110 * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
5111 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
5112 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
5113 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
5114 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
5115
5116 * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
5117 lib64 for mips64/n64 and lib32 for mips64/n32.
5118 (ldd_rewrite_script): Needed for all mips64 configurations.
5119 * sysdeps/unix/sysv/linux/configure: Rebuilt.
5120 * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
5121 * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
5122
5123 * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
5124 well.
5125
5126 * sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
5127 asm/unistd.h into asm-unistd.h.
5128 * sysdeps/unix/sysv/linux/mips/configure: Generated.
5129 * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
5130 of syscall list.
5131 * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
5132 * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
5133 asm/unistd.h.
5134
5135 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
5136 * sysdeps/unix/sysv/linux/mips/ptrace.c: New file. Use long
5137 long type for registers on n32.
5138
5139 * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
5140 3 ABIs.
5141 * sysdeps/mips/mips64/gmp-mparam.h: New file. Define
5142 BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
5143 * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
5144 (__sigsetjmp_aux): Use them. Adjust for all 3 ABIs.
5145 * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
5146 * sysdeps/unix/mips/brk.S: Likewise.
5147 * sysdeps/unix/mips/sysdep.S: Likewise.
5148 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
5149 * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
5150 * sysdeps/mips/sys/ucontext.h: Likewise.
5151 * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
5152 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
5153 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
5154 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
5155 * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
5156 * sysdeps/mips/mips64/setjmp.S: Likewise.
5157 * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
5158 * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
5159 64-bit types.
5160
5161 2003-03-16 Ulrich Drepper <drepper@redhat.com>
5162
5163 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
5164 not at function level.
5165 * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
5166
5167 2003-03-15 Roland McGrath <roland@redhat.com>
5168
5169 * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
5170 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
5171 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
5172 * nis/nis_table.c (__create_ib_request): Likewise.
5173
5174 * posix/fnmatch_loop.c: Add casts for signedness.
5175 * nss/nss_files/files-hosts.c: Likewise.
5176 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
5177 * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
5178 * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
5179
5180 * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
5181 get errors into the log file.
5182 (libc_cv_broken_visibility_attribute): Likewise.
5183 (libc_cv_broken_alias_attribute): Likewise.
5184 (libc_cv_asm_weak_directive): Likewise.
5185 (libc_cv_need_minus_P): Likewise.
5186 (libc_cv_dot_text): Likewise.
5187 (libc_cv_asm_global_directive): Likewise.
5188 (libc_cv_asm_type_prefix): Likewise.
5189 * configure: Regenerated.
5190
5191 * nscd/cache.c (cache_search): Give first arg type `request_type'.
5192 * nscd/nscd.h: Update decl.
5193
5194 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
5195 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
5196 * elf/dl-close.c (_dl_close): Likewise.
5197 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
5198 * io/fts.c (fts_build): Likewise.
5199 * elf/cache.c (add_to_cache): Likewise.
5200 * locale/programs/locarchive.c (show_archive_content): Likewise.
5201
5202 * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
5203
5204 * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
5205 happy.
5206 (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
5207
5208 2003-03-15 Ulrich Drepper <drepper@redhat.com>
5209
5210 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
5211 code for most parts.
5212
5213 2003-03-15 Roland McGrath <roland@redhat.com>
5214
5215 * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
5216 * sysdeps/unix/sysv/linux/system.c: ... here.
5217 (FORK): Don't #define if already #define'd.
5218 * sysdeps/unix/sysv/linux/s390/system.c: File removed.
5219 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
5220 (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
5221
5222 * dlfcn/tst-dlinfo.c: New file.
5223 * dlfcn/Makefile (tests): Add tst-dlinfo.
5224 ($(objpfx)tst-dlinfo): New target.
5225
5226 * dlfcn/dlinfo.c: New file.
5227 * dlfcn/Makefile (libdl-routines): Add it.
5228 * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
5229 * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
5230 [__USE_GNU] (RTLD_DI_*): New enum constants.
5231 [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
5232 * elf/dl-load.c (cache_rpath): New inline function.
5233 (_dl_map_object): Use it.
5234 (_dl_rtld_di_serinfo): New function.
5235 * sysdeps/generic/ldsodefs.h: Declare it.
5236 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
5237
5238 * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
5239 (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
5240 (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
5241 (__libc_start_main): Just call the generic one for most of the work.
5242
5243 * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
5244 static function by that name instead of BP_SYM (__libc_start_main).
5245 [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
5246 [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
5247 [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
5248
5249 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
5250 Use this macro for extra AT_* cases.
5251 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
5252 New macro, guts from ...
5253 (__aux_init_cache): ... here, function removed.
5254 (DL_PLATFORM_INIT): Don't define this.
5255
5256 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
5257 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
5258
5259 * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
5260
5261 2003-03-14 Roland McGrath <roland@redhat.com>
5262
5263 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
5264
5265 2003-03-14 Jakub Jelinek <jakub@redhat.com>
5266
5267 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
5268
5269 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
5270 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
5271
5272 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
5273
5274 * sysdeps/mips/fpu/bits/mathdef.h: New.
5275 (__NO_LONG_DOUBLE_MATH): Define for o32.
5276
5277 * sysdeps/mips/sys/asm.h: Formatting changes.
5278 (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
5279 (CPADD): Define for all of them.
5280 (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
5281 SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
5282 NARGSAVE): Define per ABI spec.
5283 (END): Don't redefine.
5284 (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
5285 LONG_SRAV): Remove duplicate definitions.
5286 (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
5287 PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
5288 PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
5289 (PTR_LA): Define for all 3 ABIs.
5290
5291 * sysdeps/mips/dl-machine.h: Include sys/asm.h.
5292 (elf_machine_matches_host): Prevent linking of o32 and n32
5293 together.
5294 (elf_machine_dynamic): Document assumption on $gp.
5295 (STRINGXP, STRINGXV, STRINGV_): New macros.
5296 (elf_machine_load_address): Use them to stringize PTR_LA and
5297 PTR_SUBU.
5298 (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
5299 ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
5300 (_dl_runtime_resolve): Adjust it for all 3 ABIs.
5301 (__dl_runtime_resolve): Cast the symtab initializer to the
5302 right type.
5303 (RTLD_START): Use it. Adjust it for all 3 ABIs.
5304 (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
5305 Handle 64-bit R_MIPS_REL composite relocation and accept
5306 R_MIPS_64 relocations to shift addend size to 64 bits.
5307 Document assumption regarding local GOT entries. Document
5308 backward-compatibility departing from the ABI behavior in
5309 applying relocations that reference section symbols, no longer
5310 used. Support relocations to mis-aligned offsets.
5311 * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
5312
5313 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
5314
5315 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
5316 (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
5317 * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
5318 restore_rt functions. Use them.
5319
5320 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
5321 .set mips2 on new abis.
5322
5323 2003-03-13 Ulrich Drepper <drepper@redhat.com>
5324
5325 * posix/getconf.c: Recognize POSIX2_SYMLINKS.
5326 * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
5327 * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
5328 * sysdeps/posix/pathconf.c: Likewise.
5329 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
5330 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
5331 * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
5332
5333 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
5334 words.
5335
5336 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
5337
5338 * include/gmp.h: Include/gmp-mparam.h.
5339 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
5340 gmp-impl.h.
5341
5342 * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
5343 ELF_MACHINE_NO_RELA is set.
5344 * elf/rtld.c (dl_main): No prelink support for REL-only.
5345
5346 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
5347 FLAG_MIPS64_LIBN64): Define.
5348 * elf/cache.c (print_entry): Handle mips64 n32 and n64.
5349
5350 * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
5351 * sysdeps/mips/memset.S: Likewise.
5352 * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
5353 depending on the ABI.
5354
5355 * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
5356 Don't .set mips2 on new abi.
5357 (compare_and_swap): Likewise. Support 64-bit longs on n64.
5358
5359 * stdlib/fpioconst.h: Include gmp.h with angle brackets.
5360
5361 2003-03-13 Roland McGrath <roland@redhat.com>
5362
5363 * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
5364 found. Reported by Alexandre Oliva <aoliva@redhat.com>.
5365
5366 2003-03-13 Alexandre Oliva <aoliva@redhat.com>
5367
5368 * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
5369 literals long long.
5370 * stdlib/fpioconst.c: Likewise.
5371 * stdlib/strtod.c: Likewise.
5372
5373 * sysdeps/mips/add_n.S: Use L macro for local labels.
5374 * sysdeps/mips/addmul_1.S: Likewise.
5375 * sysdeps/mips/lshift.S: Likewise.
5376 * sysdeps/mips/memcpy.S: Likewise.
5377 * sysdeps/mips/memset.S: Likewise.
5378 * sysdeps/mips/mul_1.S: Likewise.
5379 * sysdeps/mips/rshift.S: Likewise.
5380 * sysdeps/mips/sub_n.S: Likewise.
5381 * sysdeps/mips/submul_1.S: Likewise.
5382 * sysdeps/mips/mips64/add_n.S: Likewise.
5383 * sysdeps/mips/mips64/addmul_1.S: Likewise.
5384 * sysdeps/mips/mips64/lshift.S: Likewise.
5385 * sysdeps/mips/mips64/mul_1.S: Likewise.
5386 * sysdeps/mips/mips64/rshift.S: Likewise.
5387 * sysdeps/mips/mips64/sub_n.S: Likewise.
5388 * sysdeps/mips/mips64/submul_1.S: Likewise.
5389 * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
5390 conventions. Define END as in sys/asm.h.
5391 * sysdeps/unix/mips/sysdep.S: Likewise.
5392 * sysdeps/unix/mips/wait.S: Likewise.
5393 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
5394
5395 * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
5396 Cast shifted values that may be too narrow to mp_limb_t.
5397 * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
5398 Likewise.
5399 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
5400 Likewise.
5401 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
5402 (__mpn_extract_long_double): Likewise.
5403 * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
5404 (__mpn_construct_long_double): Likewise.
5405 * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
5406 (__mpn_extract_long_double): Likewise.
5407 * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
5408 (__mpn_construct_long_double): Likewise.
5409
5410 2003-03-13 Roland McGrath <roland@redhat.com>
5411
5412 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
5413 entries in the map file match too.
5414
5415 2003-03-13 Guido Guenther <agx@sigxcpu.org>
5416
5417 * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
5418 label .Lthread_start since current binutils don't allow branches
5419 to globally visible symbols.
5420
5421 2003-03-13 Jakub Jelinek <jakub@redhat.com>
5422
5423 * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
5424 ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
5425 ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
5426 (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments
5427 clobbered by the syscall.
5428 (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
5429 ASM_ARGS_6): Change constraints from r to index of corresponding
5430 output register.
5431 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
5432 ptid and ctid to match kernel.
5433 * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
5434
5435 2003-03-12 Steven Munroe <sjmunroe@us.ibm.com>
5436
5437 * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
5438 AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64.
5439 * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
5440
5441 2003-03-11 Roland McGrath <roland@redhat.com>
5442
5443 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
5444 Check SYM_MAP rather than SYM as definedness check.
5445 Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
5446 Don't handle R_PPC64_REL24 reloc.
5447 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
5448
5449 * sysdeps/powerpc/powerpc64/dl-machine.h
5450 [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
5451 block, so we cover all the TPREL16* flavors without 6 ||s.
5452 [USE_TLS] (elf_machine_tprel): New function.
5453 (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
5454 and handle TPREL16 relocs too. Return rather than break for DTPREL64.
5455 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
5456
5457 2003-03-11 Ralf Baechle <ralf@linux-mips.org>
5458
5459 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
5460 instead of jalr to invoke subroutine so restoring the $gp register
5461 will work properly.
5462
5463 2003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
5464
5465 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
5466 to __NR_pread if not defined.
5467 (__NR_pwrite64): Define to __NR_pwrite if not defined.
5468
5469 2003-03-11 Jakub Jelinek <jakub@redhat.com>
5470
5471 * sysdeps/unix/sysv/linux/ia64/system.c: New file.
5472 * sysdeps/unix/sysv/linux/kernel-features.h
5473 (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
5474 kernel >= 2.5.64.
5475
5476 2003-03-11 Jakub Jelinek <jakub@redhat.com>
5477
5478 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
5479 allocate space even for the trailing '/'.
5480 Reported by John Reiser <jreiser@BitWagon.com>.
5481
5482 * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
5483 ASM_CLOBBERS_6): Define.
5484 (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
5485 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
5486 to match IA-32 order.
5487 * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
5488
5489 2003-03-10 Steven Munroe <sjmunroe@us.ibm.com>
5490
5491 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
5492 Copy extra params for NPTL to registers used in clone syscall.
5493
5494 2003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
5495
5496 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
5497 call names for pread and pwrite.
5498
5499 2003-03-10 Roland McGrath <roland@redhat.com>
5500
5501 * dlfcn/Makefile (libdl-routines): Add dladdr1.
5502 * dlfcn/dladdr1.c: New file.
5503 * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
5504 [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
5505 * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
5506 a const ElfNN_Sym ** to fill in.
5507 * include/dlfcn.h: Update decl. Include <link.h>.
5508 * dlfcn/dladdr.c (dladdr): Update caller.
5509 * malloc/mtrace.c (tr_where): Likewise.
5510 * sysdeps/generic/elf/backtracesyms.c: Likewise.
5511 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
5512 * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
5513 * Versions.def (libdl): Define GLIBC_2.3.3 set.
5514
5515 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
5516 assembler command.
5517 * sysdeps/unix/Makefile (compile-syscall): New variable.
5518 Pass -g0 to compiler for assembling syscall stubs from stdin.
5519
5520 * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
5521 (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
5522 Define these to do nothing.
5523
5524 * configure.in: New check for -g on .S files.
5525 * configure: Regenerated.
5526 * config.make.in (have-cpp-asm-debuginfo): New variable.
5527 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
5528 * Makeconfig (ASFLAGS): New variable, if undefined and
5529 $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
5530 * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
5531
5532 2003-03-09 Roland McGrath <roland@redhat.com>
5533
5534 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
5535 used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>.
5536
5537 2003-03-09 Ulrich Drepper <drepper@redhat.com>
5538
5539 * po/fi.po: Update from translation team.
5540 * po/ca.po: Likewise.
5541 * po/da.po: Likewise.
5542
5543 2003-03-08 Ulrich Drepper <drepper@redhat.com>
5544
5545 * rt/tst-aio7.c (do_test): Change BYTES into a #define.
5546
5547 2003-03-07 Ulrich Drepper <drepper@redhat.com>
5548
5549 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
5550
5551 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
5552
5553 2003-03-07 Roland McGrath <roland@redhat.com>
5554
5555 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
5556 * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
5557
5558 2003-03-04 Guido Guenther <agx@sigxcpu.org>
5559
5560 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
5561 stubs, we have INLINE_SYSCALL.
5562 * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
5563 MAP_NONBLOCK.
5564
5565 2003-03-06 Roland McGrath <roland@redhat.com>
5566
5567 * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1
5568 permanent extent and add a comment about testing its implicit teardown.
5569
5570 2003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
5571
5572 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
5573
5574 2003-03-05 Ulrich Drepper <drepper@redhat.com>
5575
5576 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
5577 reversed __builtin_expect expectation.
5578
5579 2003-03-05 Roland McGrath <roland@redhat.com>
5580
5581 * stdio-common/sscanf.c: Use prototype defn with ... syntax.
5582 * libio/swscanf.c: Likewise.
5583 * libio/swprintf.c: Likewise.
5584
5585 2003-03-04 Roland McGrath <roland@redhat.com>
5586
5587 * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
5588 (elf_machine_rela): Always use RESOLVE_MAP, needed for
5589 R_PPC64_JMP_SLOT as well as TLS cases.
5590 (BIT_INSERT): Move parenthesis where it ought to have been.
5591 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
5592
5593 * posix/confstr.c (confstr): Correct STRING_LEN values for
5594 _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
5595 break. Reported by Alexandre Julliard <julliard@winehq.com>.
5596
5597 2003-03-04 Jakub Jelinek <jakub@redhat.com>
5598
5599 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5600
5601 2003-03-04 Ulrich Drepper <drepper@redhat.com>
5602
5603 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
5604 clone parameters.
5605
5606 * po/sv.po: Update from translation team.
5607
5608 2003-03-04 Andreas Jaeger <aj@suse.de>
5609 Ulrich Drepper <drepper@redhat.com>
5610
5611 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
5612
5613 2003-03-03 Ulrich Drepper <drepper@redhat.com>
5614
5615 * sysdeps/generic/dl-sysdep.h: Add double include protection.
5616
5617 * po/tr.po: Update from translation team.
5618
5619 * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
5620 are holes between the segments. Only call mprotect to set
5621 proection to PROT_NONE if there are some.
5622
5623 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
5624 Update comment.
5625
5626 * include/sched.h (__clone2): Use ... instead of adding all the
5627 new parameters.
5628
5629 2003-03-03 Roland McGrath <roland@redhat.com>
5630
5631 * elf/dl-load.c (struct filebuf): Fix typo in last change.
5632
5633 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
5634 PI_STATIC_AND_HIDDEN.
5635
5636 2003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au>
5637
5638 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
5639 flags.
5640 * include/sched.h: Update clone2 prototype.
5641
5642 2003-03-03 Andreas Jaeger <aj@suse.de>
5643
5644 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
5645 (llrint): Use it to correct return type.
5646 (lrint): Likewise.
5647 (lround): Likewise.
5648 (llround): Likewise.
5649
5650 2003-03-03 Ulrich Drepper <drepper@redhat.com>
5651
5652 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
5653 byte filebuf size.
5654
5655 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
5656 if ccs parameter isn't valid. Reported by Andreas Schwab.
5657
5658 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
5659
5660 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
5661 for system call numbers > 255.
5662 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
5663 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
5664 INTERNAL_SYSCALL): Likewise.
5665 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
5666 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
5667 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
5668 INTERNAL_SYSCALL): Likewise.
5669
5670 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
5671
5672 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
5673 array if it is the initial dtv.
5674
5675 2003-03-03 Ulrich Drepper <drepper@redhat.com>
5676
5677 * po/es.po: Update from translation team.
5678 * po/fr.po: Likewise.
5679 * po/gl.po: Likewise.
5680 * po/sk.po: Likewise.
5681 * po/sv.po: Likewise.
5682
5683 * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
5684 * misc/sys/mman.h: Add prototype for remap_file_pages.
5685 * sysdeps/generic/remap_file_pages.c: New file.
5686 * misc/Makefile (routines): Add remap_file_pages.
5687 * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
5688
5689 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
5690 and MAP_NONBLOCK.
5691 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
5692 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
5693 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
5694 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
5695 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
5696 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
5697 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
5698 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
5699
5700 2003-03-03 Roland McGrath <roland@redhat.com>
5701
5702 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
5703 * sysdeps/ia64/dl-machine.h: Likewise.
5704 * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
5705 argument type.
5706 * sysdeps/ia64/dl-lookupcfg.h: Update decl.
5707
5708 * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
5709 * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
5710 * locale/Versions (libc: GLIBC_2.3): Move those to ...
5711 * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
5712 * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
5713 * Versions.def (libc): Add GLIBC_2.3.3 set.
5714
5715 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
5716 * sysdeps/ia64/dl-machine.h: Update decl.
5717
5718 2003-03-03 Andreas Jaeger <aj@suse.de>
5719
5720 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
5721
5722 2003-03-02 Roland McGrath <roland@redhat.com>
5723
5724 * scripts/abilist.awk: Reject data items with apparent 0 size.
5725
5726 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
5727 after foo.* as if it were a duplicate.
5728
5729 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
5730
5731 2003-03-02 Ulrich Drepper <drepper@redhat.com>
5732
5733 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
5734
5735 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
5736 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
5737 if not already defined. Use SYSDEP_GETRES to allow other files to
5738 provide alternative implementations.
5739 * sysdeps/unix/sysv/linux/clock_getres.c: New file
5740 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
5741 if not already defined. Use SYSDEP_GETTIME to allow other files to
5742 provide alternative implementations.
5743 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
5744 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
5745 if not already defined. Use SYSDEP_GETTIME to allow other files to
5746 provide alternative implementations.
5747 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
5748 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
5749 other files to provide alternative implementations. Rearrange
5750 tests for invalid parameters.
5751 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
5752 * sysdeps/unix/sysv/linux/sysconf.c: New file.
5753 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5754 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
5755 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
5756 _POSIX_MONOTONIC_CLOCK.
5757
5758 2003-03-02 Roland McGrath <roland@redhat.com>
5759
5760 * scripts/merge-abilist.awk: More checks for bogus input.
5761 Uniquify duplicate config names.
5762
5763 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
5764
5765 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
5766 from dl_reloc_overflow, make global.
5767 (__process_machine_rela): Update callers.
5768 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
5769 Add attribute_hidden to __process_machine_rela decl.
5770 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
5771
5772 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
5773 variable.
5774
5775 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
5776 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
5777 (elf_machine_rela): Clean up.
5778
5779 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
5780
5781 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
5782 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
5783 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
5784 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
5785 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
5786 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
5787 new relocs for TLS.
5788
5789 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
5790 macros out of [SHARED].
5791 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
5792
5793 * elf/elf.h: Define R_PPC_* relocs for TLS support.
5794 Clean up R_PPC64_* macro definition comments.
5795
5796 * configure.in: In "running configure fragment for" message,
5797 omit $srcdir from the name if we prepended it.
5798 * configure: Regenerated.
5799
5800 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
5801 From Jakub Jelinek <jakub@redhat.com>.
5802
5803 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
5804 which duplicated the O_DIRECT defn.
5805
5806 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
5807
5808 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
5809 random functions.
5810
5811 2003-03-01 Andreas Schwab <schwab@suse.de>
5812
5813 * resolv/Makefile (tests): Don't depend on
5814 $(objpfx)mtrace-tst-leaks when cross compiling.
5815
5816 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
5817 __libc_stack_end through GOT since it is a global symbol.
5818
5819 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
5820
5821 * argp/argp.h: Fix a typo.
5822 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
5823
5824 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
5825
5826 2003-02-27 Pat Rankin <rankin@pactechdata.com>
5827
5828 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
5829 char *.
5830 (get_subexp): Likewise.
5831
5832 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
5833
5834 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
5835
5836 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
5837
5838 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
5839
5840 2003-02-27 Roland McGrath <roland@redhat.com>
5841
5842 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
5843 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
5844 repeat it and avoids the test for the common case.
5845 Clean up and fix calculations for TLS relocs.
5846
5847 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
5848 * sysdeps/powerpc/dl-tls.h: ... here.
5849 (TLS_TP_OFFSET): New macro.
5850
5851 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
5852
5853 2003-02-27 Ulrich Drepper <drepper@redhat.com>
5854
5855 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
5856 code generation changes in recent gcc.
5857
5858 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
5859
5860 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
5861 Rename argument to avoid symbol conflict.
5862
5863 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
5864 [__USE_GNU] (O_DIRECT): New macro.
5865
5866 2003-02-24 David Mosberger <davidm@hpl.hp.com>
5867
5868 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
5869 unwind info.
5870
5871 2003-02-27 Ulrich Drepper <drepper@redhat.com>
5872
5873 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
5874 initializer anymore now that res_thread_freeres is more careful.
5875
5876 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
5877 except the PKTINFO. Reset interface in PKTINFO.
5878 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
5879
5880 2003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
5881
5882 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
5883 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
5884 Define.
5885 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
5886 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
5887 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
5888 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
5889
5890 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
5891 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
5892
5893 2003-02-25 Andreas Jaeger <aj@suse.de>
5894
5895 * manual/memory.texi (Malloc Tunable Parameters): Clarify
5896 behaviour of M_MMAP_THRESHOLD.
5897
5898 2003-02-25 Roland McGrath <roland@redhat.com>
5899
5900 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
5901 zero, inidicating _res was not initialized yet.
5902
5903 2003-02-24 Ulrich Drepper <drepper@redhat.com>
5904
5905 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
5906 test.
5907
5908 2003-02-24 Roland McGrath <roland@redhat.com>
5909
5910 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
5911
5912 2003-02-23 Roland McGrath <roland@redhat.com>
5913
5914 * sysdeps/posix/pause.c: New file.
5915 * sysdeps/unix/common/pause.c: File removed.
5916
5917 2003-02-23 Ulrich Drepper <drepper@redhat.com>
5918
5919 * sysdeps/generic/bits/confname.h: Remove #ifs.
5920
5921 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
5922 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
5923
5924 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
5925 element to -1.
5926
5927 2003-02-22 Ulrich Drepper <drepper@redhat.com>
5928
5929 * sysdeps/generic/dl-sysdep.c: Avoid warning.
5930
5931 2003-02-22 Roland McGrath <roland@redhat.com>
5932
5933 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
5934 * resolv/Makefile (tests): Add tst-leaks.
5935 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
5936 (tst-leaks-ENV): New variable.
5937 ($(objpfx)mtrace-tst-leaks): New target.
5938 (tests): Depend on it.
5939
5940 * include/libc-internal.h: Declare __libc_thread_freeres.
5941
5942 * Makerules: Fix last change to use $($(subdir)-version) when set.
5943
5944 * Makerules (install-lib-nosubdir): Depend on installed
5945 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
5946 regardless of the libfoo.so target's dependencies.
5947
5948 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
5949 Use that in $(MAKE) calls.
5950
5951 2003-02-22 Ulrich Drepper <drepper@redhat.com>
5952
5953 * catgets/gencat.c (read_input_file): Collision between
5954 auto-assigned numbers and user-defined nubmers is not fatal.
5955 Handle it.
5956 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
5957 * catgets/Makefile: Add rules to run test2.msg test.
5958 * catgets/test2.msg: New file.
5959
5960 * catgets/gencat.c (main): Return 1 if messages have been printed.
5961
5962 * iconv/iconv_prog.c (main): Unify messages.
5963
5964 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
5965 when shifting retval.
5966 * stdlib/tst-strtod.c (main): Add strtold test case.
5967 Reported by Fred J. Tydeman <tydeman@tybor.com>.
5968
5969 2003-02-21 Roland McGrath <roland@redhat.com>
5970
5971 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
5972 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
5973 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
5974
5975 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
5976 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
5977 (res_thread_freeres): New function, on __libc_thread_subfreeres and
5978 __libc_subfreeres.
5979
5980 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
5981 * malloc/thread-freeres.c: New file.
5982 * malloc/Makefile (aux): Add it.
5983 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
5984 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
5985 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
5986
5987 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
5988 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
5989
5990 2003-02-21 Roland McGrath <roland@frob.com>
5991
5992 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
5993
5994 * iconvdata/Makefile (tests): Add bug-iconv3 only if
5995 [$(have-thread-library) = yes].
5996
5997 2003-02-21 Ulrich Drepper <drepper@redhat.com>
5998
5999 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
6000
6001 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
6002 not chechk for errors (unless testing for 32bit variant).
6003 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
6004 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
6005 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
6006
6007 2003-02-21 Jakub Jelinek <jakub@redhat.com>
6008
6009 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
6010 Check for signed overflow, not unsigned.
6011
6012 * sysdeps/sparc/sparc64/elf/configure.in: New file.
6013 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
6014 Use -fcall-used-g6, not -fcall-used-g7.
6015
6016 2003-02-21 Andreas Jaeger <aj@suse.de>
6017
6018 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
6019 mode.
6020
6021 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
6022 clear whole mxcsr but only exceptions.
6023
6024 2003-02-21 Roland McGrath <roland@redhat.com>
6025
6026 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
6027 for libfoo.so that need $(make-link) rules.
6028
6029 2003-02-21 Roland McGrath <roland@frob.com>
6030
6031 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
6032 to match existing struct stat layout in mig protocols.
6033
6034 2003-02-20 Ulrich Drepper <drepper@redhat.com>
6035
6036 * version.h (VERSION): Bump to 2.3.2.
6037
6038 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
6039 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
6040 and dl-sysdep.h.
6041 * sysdeps/generic/Dist: Add sysdep-cancel.h.
6042 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
6043 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
6044 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
6045 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
6046 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
6047 ucontext_i.h.
6048 * Makefile (distribute): Add include/stubs-prologue.h,
6049 include/gnu/stubs.h, scripts/merge-abilist.awk, and
6050 scripts/extract-abilist.awk.
6051
6052 2003-02-20 Roland McGrath <roland@redhat.com>
6053
6054 * math/Makefile (distribute): Don't add generated files.
6055
6056 2003-02-20 Ulrich Drepper <drepper@redhat.com>
6057
6058 * math/Makefile: Rearrange variable definitions slightly to get
6059 definition in the right order.
6060
6061 2003-02-20 Roland McGrath <roland@redhat.com>
6062
6063 * Makerules: Clean up conditional around include of tls.make.
6064 * Make-dist: Export generating=t to prevent using that.
6065 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
6066
6067 2003-02-20 Ulrich Drepper <drepper@redhat.com>
6068
6069 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
6070 around in search if port IPPORT_RESERVED/2 has been test.
6071
6072 2002-02-20 Paolo Bonzini <bonzini@gnu.org>
6073
6074 * posix/regcomp.c: Remove inclusions.
6075 * posix/regexec.c: Likewise.
6076 * posix/regex_internal.c: Likewise.
6077 * posix/regex_internal.h: Add inclusions here.
6078 * posix/regex.c: Only include sys/types.h before regex.h. Include
6079 regex_internal.h here. Include regex_internal.c before regcomp.c
6080 and regexec.c (might expose more opportunities to the C compiler).
6081
6082 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
6083
6084 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
6085 [!_LIBC] (__wcrtomb): New definition.
6086 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
6087 HAVE_LOCALE_H as well.
6088
6089 2003-02-20 Ulrich Drepper <drepper@redhat.com>
6090
6091 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
6092 patch to check for system call errors.
6093
6094 2002-07-24 Philip Blundell <philb@gnu.org>
6095
6096 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
6097 on unknown systems.
6098
6099 2003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6100
6101 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
6102 * sysdeps/unix/sysv/linux/kernel-features.h
6103 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
6104 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
6105 if possible.
6106 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
6107 interprocedure branches.
6108 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
6109 * sysdeps/powerpc/nofpu/Dist: ...here.
6110 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
6111 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
6112 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
6113 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
6114 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
6115
6116 2003-02-18 Alan Modra <amodra@bigpond.net.au>
6117
6118 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
6119
6120 2003-02-20 Philip Blundell <philb@gnu.org>
6121
6122 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
6123 missing arguments to INTERNAL_SYSCALL_ERROR_P and
6124 INTERNAL_SYSCALL_ERRNO.
6125
6126 2003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
6127
6128 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
6129 for __ASSUME_32BITUIDS.
6130
6131 2003-02-20 Andreas Schwab <schwab@suse.de>
6132
6133 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
6134 POSIX_MADV_* constants.
6135
6136 2003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6137
6138 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
6139 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
6140 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
6141 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
6142
6143 2003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
6144
6145 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
6146
6147 2003-02-16 Roland McGrath <roland@redhat.com>
6148
6149 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
6150
6151 2003-02-19 Ulrich Drepper <drepper@redhat.com>
6152
6153 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
6154 decimal input digits.
6155 * stdlib/tst-strtod.c (main): Add test for strtof bug.
6156
6157 2003-02-18 Ulrich Drepper <drepper@redhat.com>
6158
6159 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
6160 invalid file descriptors and missing access permissions.
6161
6162 2003-02-17 Ulrich Drepper <drepper@redhat.com>
6163
6164 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
6165 been found.
6166
6167 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
6168 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
6169 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
6170 and LOGIN_NAME_MAX.
6171
6172 2003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
6173 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6174
6175 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
6176 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
6177 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
6178 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
6179 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
6180
6181 2003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6182
6183 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
6184 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
6185 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
6186 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
6187 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
6188 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
6189
6190 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
6191 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
6192 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
6193 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
6194
6195 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
6196 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
6197 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
6198 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
6199
6200 2003-02-14 Thorsten Kukuk <kukuk@suse.de>
6201
6202 * nss/getent.c (print_hosts): Print all IP addresses of one host.
6203
6204 2003-02-15 Roland McGrath <roland@frob.com>
6205
6206 * sysdeps/mach/hurd/tls.h: New file.
6207 * sysdeps/mach/hurd/i386/tls.h: New file.
6208
6209 * mach/errsystems.awk: Include <errno.h> in generated output.
6210
6211 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
6212 use target mach-before-compile instead of generated.
6213 (mach-before-compile): New target.
6214 * Makerules: Disable use of tls.make if $(generating) is set.
6215 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
6216 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
6217 mach-shortcuts.h so mach/ generation happens before hurd/.
6218
6219 2003-02-14 Ulrich Drepper <drepper@redhat.com>
6220
6221 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
6222 of demorm correctly if low word is zero.
6223 Reported by Fred J. Tydeman <tydeman@tybor.com>.
6224 * math/libm-test.inc (nextafter_test): New test, but disabled due
6225 to gcc bug.
6226
6227 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
6228 counter and only call __exit_thread if this is not the last thread.
6229
6230 2003-02-13 Jakub Jelinek <jakub@redhat.com>
6231
6232 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
6233 subtracting map->l_tls_offset.
6234
6235 2003-02-12 Ulrich Drepper <drepper@redhat.com>
6236
6237 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
6238 _CS_GNU_LIBPTHREAD_VERSION.
6239 * posix/conststr.c: Handle these new values.
6240 * posix/getconf.c: Likewise.
6241
6242 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
6243 masking of version index.
6244 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
6245
6246 2003-02-11 Ulrich Drepper <drepper@redhat.com>
6247
6248 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
6249 correctly. Reported by Thorsten Kukuk.
6250
6251 2003-02-10 Ulrich Drepper <drepper@redhat.com>
6252
6253 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
6254 _BSD_SOURCE to compiler.
6255 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
6256 Patches by Alan Modra.
6257
6258 2003-02-08 Ulrich Drepper <drepper@redhat.com>
6259
6260 * io/ftwtest.c: Get current working directory before and after the
6261 nftw call and make sure they match.
6262
6263 2003-02-08 Jim Meyering <jim@meyering.net>
6264
6265 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
6266 the current directory, not just when DIR contains a slash.
6267 Reported by Manoj Srivastava.
6268
6269 2003-02-07 Jim Meyering <jim@meyering.net>
6270
6271 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
6272 Include autoconf-recommended block of dirent/NAMELEN-related
6273 definitions and includes. Use NAMELEN throughout, rather than
6274 _D_EXACT_NAMLEN.
6275 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
6276 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
6277 (stpcpy): Declare, if necessary.
6278 (mempcpy): Define, if necessary.
6279 [!_LIBC] (__stpcpy, __mempcpy): Define.
6280 [!_LIBC] (LXSTAT, XSTAT): Define.
6281 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
6282 (find_object): Don't use c99-style struct initializer.
6283 Tweak wording in a couple comments.
6284
6285 2003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6286
6287 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
6288 for SH.
6289 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
6290 after the trapa instruction.
6291 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
6292 parameters.
6293 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
6294 (NEED_SYSCALL_INST_PAD): Define.
6295 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
6296 avoid to use definition for the kernel.
6297 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
6298 Save and restore the frame pointer.
6299 (SYSCALL_INST_PAD): Define.
6300 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
6301 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
6302 after trapa instruction.
6303 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
6304 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
6305
6306 2003-02-07 Jakub Jelinek <jakub@redhat.com>
6307
6308 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
6309 so that it can have aliases.
6310 * inet/herrno.c (h_errno): Put it into .bss not .data section.
6311
6312 2003-02-07 Ulrich Drepper <drepper@redhat.com>
6313
6314 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
6315 (profile_fixup): Likewise.
6316 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
6317
6318 2002-11-24 Robert Love <rml@tech9.net>
6319
6320 * posix/sched.h: Second parameter of sched_setaffinity and
6321 sched_getaffinity is `unsigned int', not `unsigned long'.
6322 * sysdeps/generic/sched_setaffinity.c: Likewise.
6323 * sysdeps/generic/sched_getaffinity.c: Likewise.
6324
6325 2003-02-05 Ulrich Drepper <drepper@redhat.com>
6326
6327 * debug/catchsegv.sh: Fix typo in error messsage.
6328 Reported by John Levon <levon@movementarian.org>.
6329
6330 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
6331 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
6332 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
6333 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6334 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
6335 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6336 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6337
6338 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
6339 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
6340
6341 2003-02-05 Jim Meyering <jim@meyering.net>
6342
6343 Fix a heap-corrupting bug.
6344 * io/ftw.c: Include <limits.h>.
6345 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
6346 (process_entry): Allocate enough space to hold the resulting
6347 file name. Don't presume that 2*dirbufsize is enough.
6348 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
6349 it is guaranteed to be defined.
6350
6351 2003-02-04 Ulrich Drepper <drepper@redhat.com>
6352
6353 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
6354 * iconvdata/bug-iconv3.c: New file.
6355
6356 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
6357
6358 * sysdeps/unix/sysv/linux/s390/system.c: New file.
6359
6360 2003-02-03 Jakub Jelinek <jakub@redhat.com>
6361
6362 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
6363 check.
6364 * config.h.in (BROKEN_SPARC_WDISP22): Add.
6365
6366 2003-02-03 Ulrich Drepper <drepper@redhat.com>
6367
6368 * sysdeps/i386/i686/memmove.S: New file.
6369
6370 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6371
6372 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
6373 Include kernel-features.h
6374 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
6375 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
6376 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
6377 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
6378
6379 2003-02-02 Jakub Jelinek <jakub@redhat.com>
6380
6381 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
6382
6383 2003-01-25 Jim Meyering <jim@meyering.net>
6384
6385 * io/ftw.c (object_compare): Compare inode numbers before device
6386 numbers, since the former are much more likely to differ.
6387
6388 2003-02-01 Ulrich Drepper <drepper@redhat.com>
6389
6390 * time/tzfile.c (__tzfile_compute): Change return value type to
6391 void. Adjust return statements.
6392 * include/time.h (__tzfile_compute): Adjust prototype.
6393
6394 2003-02-01 Jim Meyering <jim@meyering.net>
6395
6396 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
6397 always returns 1.
6398
6399 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6400
6401 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
6402 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
6403
6404 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6405
6406 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
6407 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
6408 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
6409 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
6410 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
6411 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
6412 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
6413 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
6414
6415 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6416
6417 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
6418 back to 2.4.19 for powerpc64.
6419 * sysdeps/unix/sysv/linux/kernel-features.h
6420 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
6421 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
6422
6423 2003-02-01 Ulrich Drepper <drepper@redhat.com>
6424
6425 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
6426 platforms with strange alignment requirements on wchar_t.
6427
6428 2003-01-31 Andreas Schwab <schwab@suse.de>
6429
6430 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
6431 aliases, already added by make-syscalls.sh.
6432 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6433 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6434 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6435 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6436 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6437 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6438 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6439 * sysdeps/unix/inet/syscalls.list: Likewise.
6440 * sysdeps/unix/syscalls.list: Likewise.
6441
6442 2003-01-31 Andreas Schwab <schwab@suse.de>
6443
6444 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
6445 any more.
6446
6447 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6448
6449 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
6450 not l to load tls from stack.
6451
6452 2003-01-30 Roland McGrath <roland@redhat.com>
6453
6454 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
6455 null argument before all else.
6456 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
6457
6458 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6459
6460 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
6461 Move to RESOLVE protected part of the header.
6462 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
6463 Likewise.
6464
6465 2003-01-30 Ulrich Drepper <drepper@redhat.com>
6466
6467 * stdio-common/Makefile (tests): Add bug15.
6468 (bug15-ENV): Define.
6469 * stdio-common/bug15.c: New file.
6470
6471 2002-10-07 Wolfram Gloger <wg@malloc.de>
6472
6473 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
6474 to foreign sbrk()'s if arena is contiguous. Bug report from
6475 Bruno Haible <bruno@clisp.org>.
6476
6477 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6478
6479 * sysdeps/s390/libc-tls.c: Include stdlib.h.
6480
6481 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6482
6483 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
6484 ps.__count.
6485
6486 2003-01-30 Ulrich Drepper <drepper@redhat.com>
6487
6488 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
6489 restoring of %r6.
6490 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
6491 64-bit load.
6492 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
6493
6494 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6495
6496 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
6497 (allocate_static_tls): ...here. Add __attribute_noinline__.
6498 Don't return on failure.
6499 (_dl_reloc_bad_type): Add __attribute_noinline__.
6500 * elf/do-rel.h (elf_dynamic_do_rel): Add
6501 __attribute__((always_inline)).
6502 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
6503 elf_machine_rel_relative, elf_machine_rela_relative,
6504 elf_machine_lazy_rel): Add prototypes with
6505 __attribute__((always_inline)).
6506
6507 2003-01-29 David Mosberger <davidm@hpl.hp.com>
6508
6509 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
6510
6511 2003-01-29 Roland McGrath <roland@redhat.com>
6512
6513 * configure.in: Barf if configured in $srcdir.
6514
6515 2003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
6516
6517 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
6518 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
6519
6520 2003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
6521
6522 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
6523 clone parameters to match the order used on ia32.
6524 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
6525
6526 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
6527
6528 * elf/elf.h: Add new s390 relocs.
6529 * elf/tls-macros.h: Add s390 versions.
6530 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
6531 * sysdeps/s390/dl-tls.h: New file.
6532 * sysdeps/s390/libc-tls.c: New file.
6533 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
6534 relocs for class PLT.
6535 (elf_machine_rela): Handle TLS relocs.
6536 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6537 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
6538 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
6539 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
6540 CLONE_CHILD_*TID flags.
6541 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
6542 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
6543 bit offset.
6544 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
6545 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
6546 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
6547 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
6548 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
6549 Likewise.
6550 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
6551 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
6552 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
6553 variants.
6554 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
6555 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
6556 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
6557 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
6558 variants.
6559
6560 2003-01-28 Ulrich Drepper <drepper@redhat.com>
6561
6562 * sysdeps/unix/common/pause.c (do_pause): New function. Split
6563 from __libc_pause. Implement using sigsuspend.
6564 (__libc_pause): Call do_pause to do the real work.
6565
6566 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
6567 sig_or_mask parameter is is_sig != 0.
6568
6569 2003-01-21 Philip Blundell <philb@gnu.org>
6570
6571 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
6572
6573 2003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
6574
6575 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
6576
6577 2003-01-27 Ulrich Drepper <drepper@redhat.com>
6578
6579 * stdio-common/bug14.c: Use official name for the locale.
6580
6581 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
6582 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
6583 instead of __libc_cleanup_region_end.
6584
6585 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
6586 as first parameter to __libc_cleanup_region_start.
6587
6588 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
6589 (__fe_nomask_env): Use __prctl not prctl.
6590 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
6591 prctl syscall.
6592
6593 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
6594
6595 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
6596
6597 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
6598 wrap-around in test.
6599
6600 2003-01-26 Andreas Schwab <schwab@suse.de>
6601
6602 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
6603 compatibility symbols. Remove INTDEF for __divdi3.
6604 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
6605 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
6606 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
6607 define.
6608 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
6609
6610 2003-01-24 Jakub Jelinek <jakub@redhat.com>
6611
6612 * elf/tls-macros.h: Add SPARC 32-bit definitions.
6613 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
6614 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
6615 for the first half of the header. Include tls.h.
6616 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
6617 relocs too.
6618 (elf_machine_rela): Handle TLS relocs.
6619 * sysdeps/sparc/dl-tls.h: New file.
6620
6621 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
6622 support.
6623
6624 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
6625 * sysdeps/sparc/sparc32/memchr.S: Likewise.
6626 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
6627 * sysdeps/sparc/sparc32/strcat.S: Likewise.
6628 * sysdeps/sparc/sparc32/strchr.S: Likewise.
6629 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
6630 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
6631 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
6632 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
6633 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
6634 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
6635 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
6636 * sysdeps/sparc/sparc64/strcat.S: Likewise.
6637 * sysdeps/sparc/sparc64/strchr.S: Likewise.
6638 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
6639 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
6640 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
6641 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
6642 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
6643 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
6644
6645 2003-01-24 Andreas Schwab <schwab@suse.de>
6646
6647 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
6648 elements, and process them backwards.
6649 * elf/Makefile ($(objpfx)tst-array4): New target.
6650 ($(objpfx)tst-array4.out): Likewise.
6651 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
6652 * elf/tst-array4.c: New file.
6653 * elf/tst-array4.exp: Likewise.
6654
6655 2003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
6656
6657 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
6658
6659 2003-01-27 Guido Guenther <agx@sigxcpu.org>
6660
6661 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
6662 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
6663 cancellation handling and handle both __NR_pread64 and __NR_pread.
6664 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
6665 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
6666 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
6667 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
6668 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
6669 case, use register names consistently.
6670
6671 2003-01-27 Wolfram Gloger <wg@malloc.de>
6672
6673 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
6674 pointer, not of the computed chunk. Bug report from Carlos
6675 O'Donell <carlos@baldric.uwo.ca>.
6676
6677 2003-01-25 Andreas Schwab <schwab@suse.de>
6678
6679 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
6680 addressing to save GOT entries.
6681
6682 2003-01-21 Jakub Jelinek <jakub@redhat.com>
6683
6684 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
6685 inline_syscall1, inline_syscall2, inline_syscall3,
6686 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
6687 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
6688 __attribute__((unused)) to ChEcK.
6689
6690 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
6691
6692 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
6693 Fix inline assembler constraints.
6694 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
6695 Likewise.
6696
6697 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
6698 -fPIC.
6699
6700 2003-01-20 Segher Boessenkool <segher@koffie.nl>
6701
6702 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
6703 compute the cosine, not the sine, even if x > 0.8.
6704
6705 2003-01-19 Ulrich Drepper <drepper@redhat.com>
6706
6707 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
6708 _nss_nis_setspent. Work around the different prototypes.
6709 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
6710 internal_nis_endrpcent.
6711 (internal_nis_endrpcent): Change return type to void. Change callers.
6712 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
6713 _nss_nis_setpwent. Work around the different prototypes.
6714 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
6715 of the function to...
6716 (internal_nis_endprotoent): ... here. New function.
6717 (internal_nis_setprotoent): Use internal_nis_endprotoent.
6718 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
6719 _nss_nis_setnetent. Work around the different prototypes.
6720 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
6721 of the function to...
6722 (internal_nis_endnetgrent): ... here. New function.
6723 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
6724
6725 2003-01-19 Jim Meyering <jim@meyering.net>
6726
6727 * time/strftime.c: (widen): Merge nearly-identical definitions.
6728 (nl_get_alt_digit) [! defined my_strftime]: Define.
6729 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
6730 _nl_get_alt_digit and _nl_get_walt_digit.
6731
6732 2003-01-19 Ulrich Drepper <drepper@redhat.com>
6733
6734 * time/strftime.c (my_strftime): Handle very large width
6735 specifications for numeric values correctly. Improve checks for
6736 overflow.
6737 * time/Makefile (tests): Add tst-strftime.
6738 * time/tst-strftime.c: New file.
6739
6740 2003-01-18 Ulrich Drepper <drepper@redhat.com>
6741
6742 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
6743 _nss_nis_sethostent. Work around the different prototypes.
6744 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
6745 _nss_nis_setgrent. Work around the different prototypes.
6746 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
6747 function. Split out from _nss_nis_endetherent.
6748 (internal_nis_setetherent): Use internal_nis_endetherent instead of
6749 duplicating the code.
6750 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
6751 of _nss_nis_setaliasent.
6752 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
6753 internal_nis_endservent code, don't duplicate it.
6754
6755 * inet/rexec.c (rexec_af): Protect socket operations with
6756 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
6757 * inet/rcmd.c (rcmd_af): Likewise.
6758
6759 2003-01-17 Roland McGrath <roland@redhat.com>
6760
6761 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
6762 Add test of value 0.80190127184058835.
6763
6764 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
6765
6766 2003-01-17 Richard Henderson <rth@redhat.com>
6767
6768 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
6769 relocs for class PLT.
6770 * sysdeps/alpha/libc-tls.c: New file.
6771 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
6772 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
6773
6774 2003-01-17 Jakub Jelinek <jakub@redhat.com>
6775
6776 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
6777 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
6778 on _dl_static_lock.
6779
6780 2003-01-17 Andreas Jaeger <aj@suse.de>
6781
6782 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
6783
6784 2003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
6785
6786 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
6787 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
6788 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
6789 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
6790 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
6791 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
6792 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
6793 is 2.4.21.
6794
6795 2003-01-16 Ulrich Drepper <drepper@redhat.com>
6796
6797 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
6798 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
6799 buffers.
6800
6801 * sysdeps/generic/sysconf.c: Unconditionally implement
6802 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
6803 * sysdeps/posix/sysconf.c: Likewise.
6804
6805 2003-01-16 Jakub Jelinek <jakub@redhat.com>
6806
6807 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
6808 set *err to the returned error, not to REG_ESPACE unconditionally.
6809 (build_word_op): Likewise.
6810 * posix/Makefile (tests): Add bug-regex16.
6811 * posix/bug-regex16.c: New test.
6812
6813 2003-01-16 Jakub Jelinek <jakub@redhat.com>
6814
6815 * elf/dl-load.c (_dl_map_object_from_fd): Use
6816 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
6817 been already initialized.
6818
6819 2003-01-15 Dmitry V. Levin <ldv@altlinux.org>
6820
6821 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
6822
6823 2003-01-16 Jakub Jelinek <jakub@redhat.com>
6824
6825 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
6826 allocated too. Reported by Al Viro <aviro@redhat.com>.
6827
6828 2003-01-16 Roland McGrath <roland@redhat.com>
6829
6830 Tweak merged .abilist file format to merge duplicate symbols in
6831 different sets into multi-version stanzas with new "| SET regexp..."
6832 header continuation lines.
6833 * scripts/merge-abilist.awk: Rewritten for new format.
6834 * scripts/extract-abilist.awk: Likewise.
6835
6836 2003-01-15 Ulrich Drepper <drepper@redhat.com>
6837
6838 * nscd/connections.c (nscd_run): Remove bogus return which isn't
6839 necessary with gcc 3.2+.
6840 (nscd_init): Don't use error() to print message, use dbg_log.
6841
6842 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
6843 expected size into state.
6844 (UNPACK_BYTES): Do the reverse.
6845 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
6846 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
6847 Reported by Al Viro <aviro@redhat.com>.
6848
6849 * stdio-common/Makefile (tests): Add bug14.
6850 * stdio-common/bug14.c: New file.
6851
6852 * stdio-common/vfscanf.c: When recognizing multibyte characters in
6853 string reset the byte counter after mbrtowc reported it is not a
6854 partial character. Reported by Al Viro <aviro@redhat.com>.
6855
6856 2003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
6857
6858 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
6859 sysdep-cancel.h, not sysdep.h.
6860
6861 2003-01-15 Ulrich Drepper <drepper@redhat.com>
6862
6863 * nscd/connections.c (nscd_run): Protect accept call with
6864 TEMP_FAILURE_RETRY.
6865
6866 2003-01-15 Andreas Schwab <schwab@suse.de>
6867
6868 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
6869 (common-generated): Add s-proto-bp.d.
6870 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
6871 of bp thunks.
6872 * sysdeps/unix/s-proto-bp.S: New file.
6873 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
6874 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
6875 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
6876
6877 2003-01-15 Roland McGrath <roland@redhat.com>
6878
6879 * Makerules: Use -include for tls.make, suppresses warning.
6880 Move gen-as-const-headers rules up so before-compile is set in time.
6881 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
6882
6883 2003-01-15 Ulrich Drepper <drepper@redhat.com>
6884
6885 * nscd/nscd.c (main): Make code to close all file descriptors
6886 faster and more robust.
6887
6888 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
6889 request with one writev call. Protect all read calls with
6890 TEMP_FAILURE_RETRY.
6891 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
6892 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6893
6894 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
6895 Protect writev calls with TEMP_FAILURE_RETRY.
6896 * nscd/grpcache.c: Likewise.
6897 * nscd/pwdcache.c: Likewise.
6898
6899 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
6900 IPv6 address in debug output.
6901
6902 2003-01-14 Roland McGrath <roland@redhat.com>
6903
6904 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
6905 $(objpfx) directories, and get rid of vpath directives. The previous
6906 arrangement resulted in files being written to the source directories
6907 when run in a clean build. Find all .abilist files in $(..)abilist/.
6908 (update-abi-%): Likewise.
6909 (generated): Don't add .symlist files, they'll be intermediates.
6910
6911 * sysdeps/generic/init-first.c: Add a comment.
6912
6913 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
6914
6915 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
6916 #includes and expressions.
6917
6918 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
6919 config list when it already contains cpu-.*-os.* without / part.
6920
6921 * Makerules (sed-remove-dotdot): New variable.
6922 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
6923 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
6924 (check-abi-config): New variable, append /tls or /notls to the tuple.
6925 (check-abi-%): Use that for -v config value.
6926 Find .abilist files in abilist/libfoo.abilist, not in subdir.
6927 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
6928
6929 2003-01-14 Ulrich Drepper <drepper@redhat.com>
6930
6931 * manual/install.texi: Correct description of header preparation for
6932 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
6933
6934 2003-01-14 Guido Guenther <agx@sigxcpu.org>
6935
6936 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
6937 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
6938 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
6939
6940 2003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
6941
6942 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6943 (INTERNAL_SYSCALL): Make use of ERR parameter.
6944 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
6945 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
6946 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
6947 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
6948
6949 2003-01-14 Ulrich Drepper <drepper@redhat.com>
6950
6951 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
6952 == IPPROTO_TCP.
6953 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
6954
6955 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
6956 Fix entry for bit 31.
6957
6958 * iconvdata/Makefile: Add rules to build IBM866NAV.
6959 * iconvdata/ibm866nav.c: New file.
6960 * iconvdata/tst-tables.sh: Add IBM866NAV.
6961 * iconvdata/gconv-modules: Add entries for IBM866NAV.
6962
6963 2003-01-13 Ulrich Drepper <drepper@redhat.com>
6964
6965 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
6966 to test void* parameters.
6967
6968 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
6969 source pointer before dereferencing.
6970 (__STRING_SMALLL_GET32): Likewise.
6971 (__memset_gc): Add missing parenthesis around macro arguments.
6972 Patch by Denis Zaitsev <zzz@cd-club.ru>.
6973
6974 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
6975 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
6976
6977 2003-01-14 Jakub Jelinek <jakub@redhat.com>
6978
6979 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
6980 defining.
6981
6982 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
6983
6984 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
6985 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
6986 here.
6987 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
6988
6989 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
6990
6991 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
6992 from here...
6993 (PSEUDO): ... to here.
6994 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
6995 from here...
6996 (PSEUDO): ... to here.
6997
6998 2003-01-13 Ulrich Drepper <drepper@redhat.com>
6999
7000 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
7001 dirent64 instead of struct dirent for dirent. Call readdir64
7002 instead of readdir.
7003
7004 * locale/programs/locfile.c (siblings_uncached): Use struct
7005 dirent64 instead of struct dirent for other_dentry. Call
7006 readdir64 instead of readdir.
7007
7008 * elf/ldconfig.c (direntry): Change type to struct dirent64.
7009 (search_dir): Use readdir64 instead of readdir.
7010 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
7011
7012 2003-01-12 Roland McGrath <roland@redhat.com>
7013
7014 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
7015 not strtol. The former is usable in ld.so, the latter not.
7016
7017 * include/fcntl.h: Declare __libc_creat.
7018
7019 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
7020 libhurduser-link.so-no-z-defs): New variables.
7021
7022 * malloc/malloc.c: Revert last change.
7023 * malloc/malloc.h (_int_*): Move these decls to ...
7024 * include/malloc.h: ... here. Add attribute_hidden.
7025 (_int_valloc): Declare it too.
7026
7027 2003-01-12 Ulrich Drepper <drepper@redhat.com>
7028
7029 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
7030 search for removed searchlist. Reported by Roland McGrath.
7031
7032 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
7033 given as start file.
7034
7035 * io/ftw.c (ftw_startup): Use correct name in check for symlink
7036 without existing target. Patch by Jim Meyering.
7037
7038 * Makerules (build-shlib-helper): Don't use -z defs linker option
7039 if no-z-defs is defined either.
7040
7041 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
7042
7043 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
7044 file.
7045
7046 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
7047
7048 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
7049 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7050
7051 2003-01-12 Ulrich Drepper <drepper@redhat.com>
7052
7053 * io/ftwtest-sh: Add test case for relative path with /. at the end.
7054
7055 2003-01-12 Jim Meyering <jim@meyering.net>
7056
7057 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
7058 use the basename if we've already chdir'd into its parent directory.
7059
7060 2003-01-12 Ulrich Drepper <drepper@redhat.com>
7061
7062 * io/ftw.c (process_entry): Use relative path when using chdir()
7063 to change directory after call to ftw_dir.
7064 * io/ftwtest-sh: Add test for relative path argument to nftw()
7065 with FTW_CHDIR option.
7066
7067 2002-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7068
7069 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
7070 Define for powerpc.
7071 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
7072 into account.
7073 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
7074 (INTERNAL_SYSCALL): Make use of ERR parameter.
7075 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
7076 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
7077 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
7078 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
7079
7080 2002-01-09 Richard Henderson <rth@redhat.com>
7081
7082 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
7083 DTPREL64 and TPREL64 without loadbase applied.
7084
7085 2002-01-09 Richard Henderson <rth@redhat.com>
7086
7087 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
7088 for NOT_IN_libc.
7089
7090 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
7091 * sysdeps/unix/alpha/sysdep.h: ... here.
7092 (PSEUDO_LOADGP): Remove.
7093 (PSEUDO_PROLOGUE): Load GP in non-pic case.
7094 (SYSCALL_ERROR_LABEL): New.
7095 (PSEUDO): Use it in error branch.
7096 (PSEUDO_END): Add $syscall_error label.
7097
7098 2003-01-12 Andreas Jaeger <aj@suse.de>
7099
7100 * math/bits/mathcalls.h: Round is a const function.
7101
7102 2003-01-11 Jim Meyering <jim@meyering.net>
7103
7104 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
7105 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
7106 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
7107 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
7108 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
7109 [!_LIBC] (internal_function, dirent64, MAX): Define.
7110 (__set_errno): Define if not already defined.
7111 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
7112 the basename, not the entire file name.
7113 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
7114 the basename, not the entire file name.
7115
7116 2003-01-12 Ulrich Drepper <drepper@redhat.com>
7117
7118 * string/tester.c (test_strcpy): Disable last added strcpy until
7119 it is fixed.
7120
7121 2003-01-11 Philip Blundell <philb@gnu.org>
7122
7123 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
7124
7125 2003-01-11 Andreas Schwab <schwab@suse.de>
7126
7127 * Makerules: Add vpath for %.dynsym and %.so so that the
7128 implicit rule chaining for check-abi works.
7129
7130 2003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7131
7132 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
7133 Add non-PIC case.
7134
7135 2003-01-11 Jakub Jelinek <jakub@redhat.com>
7136
7137 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
7138 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
7139 gp is used early.
7140 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
7141 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
7142 Ensure libc.so in DT_NEEDED.
7143 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
7144 CHECK_STATIC_TLS before l_tls_offset use.
7145 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
7146 Likewise.
7147 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
7148 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
7149 Allocate TLS_PRE_TCB_SIZE bytes below result.
7150 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
7151 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
7152 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
7153 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
7154 bytes below result and add tcb_offset to memsz.
7155 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
7156 * sysdeps/ia64/dl-machine.h: Include tls.h.
7157 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
7158 too.
7159 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
7160 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
7161 * sysdeps/ia64/libc-tls.c: New file.
7162
7163 2003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
7164
7165 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
7166 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
7167 Fix type. Move definition out of #if.
7168 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
7169 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
7170 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
7171 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
7172 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
7173 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
7174 support.
7175 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
7176 ftruncate64, pread64, pwrite64, truncate64 entries.
7177 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
7178 (INLINE_SYSCALL): New version that supports function call like
7179 syscalls. Add __builtin_expect.
7180 (LOADARGS_n): Add argument size safety checks.
7181 (INTERNAL_SYSCALL): New Macro.
7182 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
7183 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
7184 redefinition of elf_fpreg_t and elf_fpregset_t.
7185
7186 2003-01-12 Ulrich Drepper <drepper@redhat.com>
7187
7188 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
7189 simplify test for unloading. If loader of a DSO is unloaded do not
7190 use its scope anymore. Fall back to own scope and adjust opencounts.
7191 Fix several comments.
7192 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
7193 the l_searchlist, not only for l_initfini.
7194
7195 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
7196 dependencies if objects cannot be removed. Remove object with the
7197 definition as not unloadable if necessary.
7198
7199 * elf/reldep6.c: Create relocation dependency before closing the first
7200 module.
7201
7202 2003-01-10 Guido Günther <agx@sigxcpu.org>
7203
7204 * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
7205 * sysdeps/unix/mips/brk.S: Likewise.
7206 * sysdeps/unix/mips/pipe.S: Likewise.
7207
7208 2003-01-10 Andreas Schwab <schwab@suse.de>
7209
7210 * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
7211
7212 * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
7213 are known to have the vfork syscall.
7214
7215 * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
7216
7217 * sysdeps/unix/sysv/linux/kernel-features.h
7218 (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
7219 (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
7220 (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
7221
7222 2003-01-09 Jakub Jelinek <jakub@redhat.com>
7223
7224 * elf/Makefile: Add rules to build and run reldep9 test.
7225 * elf/reldep9.c: New file.
7226 * elf/reldep9mod1.c: New file.
7227 * elf/reldep9mod2.c: New file.
7228 * elf/reldep9mod3.c: New file.
7229
7230 2003-01-09 Jakub Jelinek <jakub@redhat.com>
7231
7232 * elf/Makefile: Add rules to build and run nodelete2 test.
7233 * elf/nodelete2.c: New file.
7234 * elf/nodel2mod1.c: New file.
7235 * elf/nodel2mod2.c: New file.
7236 * elf/nodel2mod3.c: New file.
7237
7238 2003-01-09 Jakub Jelinek <jakub@redhat.com>
7239
7240 * posix/test-vfork.c (noop): Add __attribute_noinline__.
7241 * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
7242 * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
7243 defining it.
7244 * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
7245 * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
7246 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
7247 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
7248 * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
7249
7250 2003-01-09 Andreas Schwab <schwab@suse.de>
7251
7252 * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
7253
7254 2003-01-08 Ulrich Drepper <drepper@redhat.com>
7255
7256 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
7257 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
7258 argument.
7259 (INTERNAL_SYSCALL_DECL): Define.
7260
7261 2003-01-06 Jakub Jelinek <jakub@redhat.com>
7262
7263 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
7264 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
7265 argument.
7266 (INTERNAL_SYSCALL_DECL): Define.
7267 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
7268 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
7269 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
7270 (INLINE_SYSCALL): Adjust.
7271 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
7272 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
7273 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
7274 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7275 * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
7276 add err argument to INTERNAL_SYSCALL* macros.
7277 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
7278 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
7279 * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
7280 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
7281 Likewise.
7282 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
7283 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
7284 INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
7285
7286 2003-01-07 Ulrich Drepper <drepper@redhat.com>
7287
7288 Unify symbols in user namespace exported by libc.so and libc.a.
7289 * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
7290 argp_fmtstream_free, and argp_fmtstream_printf.
7291 * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
7292 argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
7293 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
7294 argp_fmtstream_point.
7295 * gmon/gmon.c: Don't define write_profiling.
7296 * libio/genops.c: Don't define _cleanup.
7297
7298 * intl/explodename.c (_nl_find_language.c): Mark as static.
7299 * intl/loadinfo.h: Remove _nl_find_language prototype.
7300
7301 * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
7302 * libio/libioP.h: Remove declaration.
7303
7304 * libio/iopopen.c (_IO_proc_jumps): Mark as static.
7305 * libio/libioP.h: Remove declaration.
7306
7307 * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
7308 * sysdeps/generic/framestate.c: Define STATIC before including
7309 unwind-dw2.c.
7310
7311 * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
7312
7313 2003-01-06 Philip Blundell <philb@gnu.org>
7314
7315 * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
7316 [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
7317
7318 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
7319 directive.
7320 (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
7321 (SYSCALL_ERROR): New.
7322 (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
7323 handling code.
7324 (INTERNAL_SYSCALL): Define.
7325 (INLINE_SYSCALL): Use it.
7326 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
7327 * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
7328 SYSCALL_ERROR in place of __syscall_error.
7329
7330 2003-01-07 Jakub Jelinek <jakub@redhat.com>
7331
7332 * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
7333 __bswap_32, __bswap_64): Put x into temporary variable
7334 to avoid warnings.
7335 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
7336 (inline) functions.
7337 * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
7338 __bswap_32, __bswap_64): Put x into temporary variable
7339 to avoid warnings.
7340 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
7341 (inline) functions.
7342 * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
7343 Likewise.
7344
7345 2003-01-07 Jakub Jelinek <jakub@redhat.com>
7346
7347 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
7348 alias.
7349
7350 2003-01-07 Jakub Jelinek <jakub@redhat.com>
7351
7352 * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
7353 * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
7354
7355 2003-01-07 Ulrich Drepper <drepper@redhat.com>
7356
7357 * math/libm-test.inc (significand_test): New function.
7358 (main): Call it.
7359
7360 2003-01-06 Roland McGrath <roland@redhat.com>
7361
7362 * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
7363 arguments.
7364 (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
7365 (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
7366 (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
7367
7368 * string/tester.c (test_strcpy): Add test with `void *' arguments.
7369
7370 2003-01-06 Ulrich Drepper <drepper@redhat.com>
7371
7372 * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
7373 return significand and not the exponent.
7374 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
7375
7376 * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
7377 taking address of iov in INTERNAL_SYSCALL call. Patch by Franz Sirl.
7378
7379 * malloc/malloc.c: Mark all _int_* functions as static.
7380
7381 2003-01-06 Jakub Jelinek <jakub@redhat.com>
7382
7383 * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
7384 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
7385 handling.
7386 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
7387
7388 2003-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7389
7390 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
7391 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
7392 support.
7393 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
7394 ftruncate64, truncate64, pread64 and pwrite64 entries.
7395 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
7396 (INLINE_SYSCALL): Add __builtin_expect.
7397 (LOADARGS_n): Add argument size safety checks.
7398 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
7399 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
7400 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
7401 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
7402 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
7403 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
7404
7405 2003-01-06 Jakub Jelinek <jakub@redhat.com>
7406
7407 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
7408 * sysdeps/generic/creat.c: Include sysdep-cancel.h.
7409 (LIBC_CANCEL_HANDLED): Add.
7410
7411 * sysdeps/unix/sysv/linux/alpha/sysdep.h
7412 (inline_syscall_r0_constraint): Rename to...
7413 (inline_syscall_r0_out_constraint): ... this. Add =.
7414 (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
7415
7416 2003-01-06 Andreas Schwab <schwab@suse.de>
7417
7418 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
7419 sure this is always inlined.
7420 (elf_machine_rela): Likewise.
7421
7422 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
7423
7424 2003-01-04 Roland McGrath <roland@redhat.com>
7425
7426 * Makeconfig (+mkdep): Add -MP flag.
7427 Suggested by Art Haas <ahaas@airmail.net>.
7428
7429 2003-01-05 Andreas Schwab <schwab@suse.de>
7430
7431 * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
7432
7433 2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7434
7435 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
7436 SYSCALL_ERROR_HANDLER.
7437 * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
7438 * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
7439 Add support for cancellation handling.
7440 * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
7441 SYSCALL_ERROR_HANDLER.
7442 * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
7443 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
7444 Add support for cancellation handling.
7445 (SYSCALL_ERROR_HANDLER): Define PIC variants.
7446
7447 2003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7448
7449 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
7450 __syscall_pread64 and __syscall_pwrite64 cancelable.
7451 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
7452 (INTERNAL_SYSCALL): New macro.
7453 (LOADARGS_0, LOADARGS_1): Fix.
7454
7455 2003-01-05 Ulrich Drepper <drepper@redhat.com>
7456
7457 * Makerules (build-shlip-helper): Unless told otherwise, add
7458 -Wl,-z,defs to linker command line.
7459 * rt/Makefile (librt.so): Link with ld.so.
7460 * dlfcn/Makefile (libdl.so): Likewise.
7461
7462 2003-01-05 Jakub Jelinek <jakub@redhat.com>
7463
7464 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
7465 cancellation handling.
7466 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
7467 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
7468
7469 2003-01-04 Ulrich Drepper <drepper@redhat.com>
7470
7471 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
7472 order of parameters passed to kill.
7473
7474 2003-01-04 Andreas Schwab <schwab@suse.de>
7475
7476 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
7477
7478 2002-01-03 Paul Eggert <eggert@twinsun.com>
7479
7480 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
7481 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
7482 when compiling Bison 1.875's `bitset bset = obstack_alloc
7483 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
7484
7485 2003-01-04 Ulrich Drepper <drepper@redhat.com>
7486
7487 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove
7488 unnecessary code.
7489 Correct reference counter in case SIGQUIT handler installation failed.
7490
7491 2003-01-03 Ulrich Drepper <drepper@redhat.com>
7492
7493 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
7494 Define using _Pragma(weak ...).
7495
7496 2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
7497
7498 * resolv/res_libc.c: Provide declaration for __res_init_weak and
7499 reorder declarations.
7500
7501 2003-01-03 Art Haas <ahaas@airmail.net>
7502
7503 * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
7504 initializer syntax to C99.
7505 * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
7506 * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
7507 * localedata/tests-mbwc/dat_iswctype.c: Likewise.
7508 * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
7509 * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
7510 * localedata/tests-mbwc/dat_iswlower.c: Likewise.
7511 * localedata/tests-mbwc/dat_iswprint.c: Likewise.
7512 * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
7513 * localedata/tests-mbwc/dat_iswspace.c: Likewise.
7514 * localedata/tests-mbwc/dat_iswupper.c: Likewise.
7515 * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
7516 * localedata/tests-mbwc/dat_mblen.c: Likewise.
7517 * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
7518 * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
7519 * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
7520 * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
7521 * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
7522 * localedata/tests-mbwc/dat_strcoll.c: Likewise.
7523 * localedata/tests-mbwc/dat_strfmon.c: Likewise.
7524 * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
7525 * localedata/tests-mbwc/dat_swscanf.c: Likewise.
7526 * localedata/tests-mbwc/dat_towctrans.c: Likewise.
7527 * localedata/tests-mbwc/dat_towlower.c: Likewise.
7528 * localedata/tests-mbwc/dat_towupper.c: Likewise.
7529 * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
7530 * localedata/tests-mbwc/dat_wcscat.c: Likewise.
7531 * localedata/tests-mbwc/dat_wcschr.c: Likewise.
7532 * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
7533 * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
7534 * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
7535 * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
7536 * localedata/tests-mbwc/dat_wcslen.c: Likewise.
7537 * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
7538 * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
7539 * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
7540 * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
7541 * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
7542 * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
7543 * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
7544 * localedata/tests-mbwc/dat_wcstod.c: Likewise.
7545 * localedata/tests-mbwc/dat_wcstok.c: Likewise.
7546 * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
7547 * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
7548 * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
7549 * localedata/tests-mbwc/dat_wctob.c: Likewise.
7550 * localedata/tests-mbwc/dat_wctomb.c: Likewise.
7551 * localedata/tests-mbwc/dat_wctrans.c: Likewise.
7552 * localedata/tests-mbwc/dat_wctype.c: Likewise.
7553 * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
7554
7555 2003-01-03 Richard Henderson <rth@redhat.com>
7556
7557 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
7558 (inline_syscall_r0_constraint): New.
7559 (inline_syscall[0-6]): Use them.
7560
7561 2003-01-03 Jakub Jelinek <jakub@redhat.com>
7562
7563 * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
7564 Add rtld_hidden_proto.
7565 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
7566 (_dl_allocate_tls): Likewise. Remove INTDEF.
7567
7568 2002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7569
7570 * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu
7571 Morita <toshiyasu.morita@hsa.hitachi.com>.
7572 * sysdeps/sh/memcpy.S: Likewise.
7573
7574 2003-01-02 Ulrich Drepper <drepper@redhat.com>
7575
7576 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
7577 any, but unify the test.
7578
7579 2003-01-02 Jakub Jelinek <jakub@redhat.com>
7580
7581 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
7582 sigaction): Protect weak_alias and libc_hidden_weak with
7583 #ifndef LIBC_SIGACTION.
7584 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
7585 sigaction): Likewise.
7586 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
7587 sigaction): Likewise.
7588 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
7589 sigaction): Likewise.
7590 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
7591 sigaction): Likewise.
7592 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
7593 sigaction): Likewise.
7594 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
7595 sigaction): Likewise.
7596 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
7597 sigaction): Likewise. Remove SIGCANCEL handling here.
7598 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
7599 Likewise.
7600
7601 2003-01-02 Art Haas <ahaas@airmail.net>
7602
7603 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
7604
7605 2003-01-02 Ulrich Drepper <drepper@redhat.com>
7606
7607 * posix/getconf.c: Update copyright year.
7608 * nss/getent.c: Likewise.
7609 * nscd/nscd_nischeck.c: Likewise.
7610 * iconv/iconvconfig.c: Likewise.
7611 * iconv/iconv_prog.c: Likewise.
7612 * elf/ldconfig.c: Likewise.
7613 * catgets/gencat.c: Likewise.
7614 * csu/version.c: Likewise.
7615 * elf/ldd.bash.in: Likewise.
7616 * elf/sprof.c (print_version): Likewise.
7617 * locale/programs/locale.c: Likewise.
7618 * locale/programs/localedef.c: Likewise.
7619 * nscd/nscd.c (print_version): Likewise.
7620 * debug/xtrace.sh: Likewise.
7621 * malloc/memusage.sh: Likewise.
7622 * malloc/mtrace.pl: Likewise.
7623
7624 2003-01-01 Jakub Jelinek <jakub@redhat.com>
7625
7626 * io/sys/stat.h: Include time.h with __need_timespec even if
7627 __USE_MISC is defined but __USE_XOPEN is not.
7628
7629 2003-01-01 Andreas Jaeger <aj@suse.de>
7630
7631 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
7632 type to avoid strict aliasing problem.
7633 (_nss_dns_gethostbyname2_r): Likewise.
7634 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
7635 (_nss_dns_getnetbyname_r): Likewise.
7636 * resolv/gethnamaddr.c (_gethtent): Likewise.
7637 (gethostbyname2): Likewise.
7638
7639 2002-12-31 Ulrich Drepper <drepper@redhat.com>
7640
7641 * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
7642 to avoid using the exported symbols. Define aliases with the
7643 original names separately.
7644
7645 * include/time.h: Add libc_hidden_proto for __strftime_l.
7646 * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
7647 * time/strftime.c: Always use libc_hidden_def if _LIBC.
7648
7649 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
7650 * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
7651
7652 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
7653 tr_break.
7654
7655 * csu/Makefile (routines): Add dso_handle.
7656 * csu/dso_handle.c: New file.
7657
7658 2002-12-31 Roland McGrath <roland@redhat.com>
7659
7660 * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
7661 Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
7662 (S-CPPFLAGS): Add -DASSEMBLER here instead.
7663 (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
7664
7665 2002-12-31 Ulrich Drepper <drepper@redhat.com>
7666
7667 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
7668 is available.
7669
7670 2002-12-31 Andreas Jaeger <aj@suse.de>
7671
7672 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
7673 with Linux kernel.
7674 * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
7675 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
7676 * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
7677
7678 * sysdeps/unix/sysv/linux/kernel_stat.h
7679 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
7680
7681 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
7682 __unused[1-3] since they're needed by some platforms. Handle
7683 _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
7684
7685 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
7686 for structs stat and stat64.
7687 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
7688 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
7689 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
7690 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
7691
7692 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
7693
7694 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
7695 nsec resolution changes.
7696 (xstat64_conv): Likewise.
7697 (xstat32_conv): Likewise.
7698
7699 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
7700 struct kernel_stat.
7701
7702 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
7703 structs stat and stat64.
7704
7705 * time/time.h (__timespec_defined): Define for __USE_MISC.
7706
7707 2002-12-31 Ulrich Drepper <drepper@redhat.com>
7708
7709 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
7710 and __libc_current_sigrtmax.
7711
7712 2002-12-31 Jakub Jelinek <jakub@redhat.com>
7713
7714 * include/errno.h (__errno_location): Add prototype.
7715 Use libc_hidden_proto unconditionally.
7716 * include/netdb.h (__h_errno_location): Use libc_hidden_proto
7717 unconditionally.
7718 * include/resolv.h (__res_state): Likewise.
7719
7720 * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
7721 * include/sys/socket.h (accept): Add libc_hidden_proto.
7722 * include/errno.h (__errno_location): Likewise.
7723 * include/netdb.h (__h_errno_location): Likewise.
7724 * include/resolv.h (__res_state): Likewise.
7725 * include/unistd.h (__lseek): Likewise.
7726 * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
7727 * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
7728 * sysdeps/generic/res-state.c (__res_state): Likewise.
7729 * sysdeps/generic/accept.c (accept): Likewise.
7730 * sysdeps/generic/lseek.c (__lseek): Likewise.
7731 * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
7732 __libc_current_sigrtmax): Likewise.
7733 * sysdeps/mach/hurd/accept.c (accept): Likewise.
7734 * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
7735 * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
7736 * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
7737 * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
7738 * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
7739 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
7740 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
7741 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
7742 alias to llseek.
7743 (__GI_accept): New alias to accept.
7744 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
7745 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
7746 New alias to llseek.
7747 (__GI_accept): New alias to accept.
7748 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
7749 Likewise.
7750 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
7751 Likewise.
7752 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
7753
7754 * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
7755 strong_alias (name, __GI_name).
7756 * sysdeps/arm/bsd-_setjmp.S : Likewise.
7757 * sysdeps/hppa/bsd-_setjmp.S : Likewise.
7758 * sysdeps/i386/bsd-_setjmp.S : Likewise.
7759 * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
7760 * sysdeps/mips/bsd-_setjmp.S : Likewise.
7761 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
7762 * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
7763 * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
7764 * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
7765 * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
7766 * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
7767 * sysdeps/sh/bsd-_setjmp.S : Likewise.
7768 * sysdeps/sparc/sparc32/setjmp.S : Likewise.
7769 * sysdeps/unix/arm/fork.S : Likewise.
7770 * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
7771 * sysdeps/unix/bsd/i386/vfork.S : Likewise.
7772 * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
7773 * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
7774 * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
7775 * sysdeps/unix/bsd/vax/vfork.S : Likewise.
7776 * sysdeps/unix/i386/fork.S : Likewise.
7777 * sysdeps/unix/mips/fork.S : Likewise.
7778 * sysdeps/unix/sparc/fork.S : Likewise.
7779 * sysdeps/unix/sparc/vfork.S : Likewise.
7780 * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
7781 * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
7782 * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
7783 * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
7784 * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
7785 * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
7786 * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
7787 * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
7788 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
7789 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
7790 * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
7791 * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
7792 * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
7793 * sysdeps/unix/fork.S : Likewise.
7794 * sysdeps/vax/bsd-_setjmp.S : Likewise.
7795 * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
7796
7797 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
7798 inclusion.
7799
7800 2002-12-31 Ulrich Drepper <drepper@redhat.com>
7801
7802 * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
7803 * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
7804 * sysdeps/mach/hurd/fork.c: Likewise.
7805 * sysdeps/unix/sysv/aix/fork.c: Likewise.
7806 * sysdeps/unix/fork.S: Add __GI___fork alias.
7807 * sysdeps/unix/arm/fork.S: Likewise.
7808 * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
7809 * sysdeps/unix/i386/fork.S: Likewise.
7810 * sysdeps/unix/mips/fork.S: Likewise.
7811 * sysdeps/unix/sparc/fork.S: Likewise.
7812 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
7813 * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
7814 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
7815 * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
7816 * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
7817 * sysdeps/unix/bsd/i386/vfork.S: Likewise.
7818 * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
7819 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
7820 * sysdeps/unix/bsd/vax/vfork.S: Likewise.
7821 * sysdeps/unix/sparc/vfork.S: Likewise.
7822 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
7823 * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
7824 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
7825 * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
7826 * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
7827 * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
7828 * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
7829 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
7830
7831 * include/time.h: Add libc_hidden_proto for __nanosleep.
7832 * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
7833 * sysdeps/mach/nanosleep.c: Likewise.
7834 * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
7835 * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
7836
7837 * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
7838 _IO_list_unlock, and _IO_list_resetlock.
7839 * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
7840 _IO_list_unlock, and _IO_list_resetlock.
7841
7842 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
7843 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
7844 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
7845 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
7846
7847 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
7848 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
7849 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
7850 __GI___longjmp alias.
7851
7852 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
7853 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
7854 * sysdeps/arm/bsd-_setjmp.S: Likewise.
7855 * sysdeps/generic/bsd-_setjmp.c: Likewise.
7856 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
7857 * sysdeps/i386/bsd-_setjmp.S: Likewise.
7858 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
7859 * sysdeps/mips/bsd-_setjmp.S: Likewise.
7860 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
7861 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
7862 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
7863 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
7864 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
7865 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
7866 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
7867 * sysdeps/sh/bsd-_setjmp.S: Likewise.
7868 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
7869 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
7870 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
7871 * sysdeps/vax/bsd-_setjmp.S: Likewise.
7872 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
7873
7874 2002-12-30 Ulrich Drepper <drepper@redhat.com>
7875
7876 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
7877
7878 2002-12-30 Roland McGrath <roland@redhat.com>
7879
7880 * Rules (generated): Target removed.
7881 * mach/Makefile (generated): Define it here instead.
7882
7883 * math/Makefile (generated): Add m_*l and m_*f variants too.
7884
7885 2002-12-30 Ulrich Drepper <drepper@redhat.com>
7886
7887 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
7888 the to-be-deleted objects right away instead of later separately.
7889 The latter fails because the scope data structures of the DSO
7890 might already be gone.
7891
7892 * elf/Makefile: Add rules to build and run reldep8 test.
7893 * elf/reldep8.c: New file.
7894 * elf/reldep8mod1.c: New file.
7895 * elf/reldep8mod2.c: New file.
7896 * elf/reldep8mod3.c: New file.
7897 Contributed by Jakub Jelinek.
7898
7899 2002-12-24 GOTO Masanori <gotom@debian.or.jp>
7900
7901 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
7902 checking of return value ENOSYS from getdents64.
7903
7904 2002-12-28 Andreas Schwab <schwab@suse.de>
7905
7906 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
7907 ($(common-objpfx)s-%.d): Generalized from
7908 $(common-objpfx)s-proto.d rule.
7909 (common-generated): Add s-proto-cancel.d.
7910 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
7911 cancellable syscalls.
7912 * sysdeps/unix/s-proto-cancel.S: New file.
7913
7914 2002-12-29 Roland McGrath <roland@redhat.com>
7915
7916 * resolv/res_libc.c: Move _res defn magic after res_init defn
7917 so _res macro is in effect for that code.
7918
7919 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
7920 pattern for prepending $(..) so it doesn't affect $(foo).
7921
7922 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
7923
7924 2002-12-29 Jakub Jelinek <jakub@redhat.com>
7925
7926 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
7927 in hwcap.
7928
7929 2002-12-28 Ulrich Drepper <drepper@redhat.com>
7930
7931 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
7932
7933 2002-12-28 Andreas Jaeger <aj@suse.de>
7934
7935 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
7936 avoid warning.
7937 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
7938
7939 2002-12-27 Jakub Jelinek <jakub@redhat.com>
7940
7941 * inet/herrno.c (__h_errno_location): Remove.
7942 * inet/Makefile (routines): Add herrno-loc.
7943 * resolv/res_libc.c (__res_state): Remove.
7944 * resolv/Makefile (routines): Add res-state.
7945 * sysdeps/generic/herrno-loc.c: New file.
7946 * sysdeps/generic/res-state.c: New file.
7947
7948 2002-12-27 Jakub Jelinek <jakub@redhat.com>
7949
7950 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
7951 Only define if USE_DL_SYSINFO is defined.
7952
7953 2002-12-22 Jakub Jelinek <jakub@redhat.com>
7954
7955 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
7956 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
7957 Define. Patch by Richard Henderson and Jes Sorensen.
7958 (PSEUDO): Remove unnecessary ;;.
7959 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
7960 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
7961 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
7962 if not initializing thread pointer.
7963 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
7964 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
7965 make it weak also if NONTLS_INIT_TP.
7966 * sysdeps/unix/common/pause.c: Handle cancellation.
7967 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
7968 (LOADSYSCALL): Remove.
7969 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
7970 (SYSCALL_ERROR_HANDLER): Use it.
7971 (PSEUDO): Don't jump around error handler.
7972 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
7973 jump around error handler.
7974 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
7975 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
7976 to __syscall_error_handler on failure.
7977 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
7978 (LOADSYSCALL): Remove.
7979 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
7980 (SYSCALL_ERROR_HANDLER): Use it.
7981 (PSEUDO): Don't jump around error handler.
7982 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
7983 jump around error handler.
7984 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
7985 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
7986 to __syscall_error_handler on failure.
7987
7988 2002-12-27 Roland McGrath <roland@redhat.com>
7989
7990 * scripts/gen-as-const.awk: New file.
7991 * Makefile (distribute): Add it.
7992 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
7993 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
7994 to the list.
7995 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
7996
7997 2002-12-27 Andreas Schwab <schwab@suse.de>
7998
7999 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
8000
8001 2002-12-27 Jakub Jelinek <jakub@redhat.com>
8002
8003 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
8004 _environ is NULL.
8005
8006 2002-12-27 Andreas Schwab <schwab@suse.de>
8007
8008 * Makerules ($(common-objpfx)%.make): Filter through
8009 $(sed-remove-objpfx).
8010
8011 2002-12-23 Roland McGrath <roland@redhat.com>
8012
8013 * scripts/abilist.awk: Produce a more compact format, divided into
8014 stanzas for each version set, the set name listed only once.
8015 * scripts/extract-abilist.awk: New file.
8016 * scripts/merge-abilist.awk: New file.
8017 * Makerules (check-abi-%, update-abi-%): New pattern rules.
8018 (update-abi, check-abi): New targets.
8019 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
8020
8021 2002-12-19 Roland McGrath <roland@redhat.com>
8022
8023 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
8024
8025 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
8026 INTERNAL_SYSCALL.
8027
8028 2002-12-21 Andreas Schwab <schwab@suse.de>
8029
8030 * elf/check-textrel.c (handle_file): Swap p_type.
8031
8032 2002-12-21 Andreas Schwab <schwab@suse.de>
8033
8034 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
8035 (INLINE_SYSCALL): Use it.
8036 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
8037 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
8038
8039 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
8040 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
8041
8042 2002-12-20 Art Haas <ahaas@airmail.net>
8043
8044 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
8045 syntax to C99.
8046
8047 2002-12-21 Philip Blundell <philb@gnu.org>
8048
8049 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
8050 top as seventh arg to __libc_start_main.
8051 Reported by paulnash@wildseed.com.
8052
8053 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
8054
8055 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
8056 compatibility cruft when new enough kernel is assumed.
8057
8058 2002-12-20 Jakub Jelinek <jakub@redhat.com>
8059
8060 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
8061 instead of INLINE_SYSCALL.
8062
8063 2002-12-20 Ulrich Drepper <drepper@redhat.com>
8064
8065 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
8066 typo.
8067
8068 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
8069 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
8070 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
8071 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
8072 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
8073 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
8074 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
8075 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
8076 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
8077 Patch by William Lee Irwin <wli@holomorphy.com>.
8078
8079 2002-12-20 Andreas Schwab <schwab@suse.de>
8080
8081 * locale/programs/ld-measurement.c (measurement_output): Fix
8082 index calculation.
8083
8084 2002-12-20 Ulrich Drepper <drepper@redhat.com>
8085
8086 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
8087 Redefine _IO_flockifle and _IO_funlockfile as inlines.
8088
8089 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
8090 builds add "tls" in the search path.
8091 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
8092 (path_hwcap): Recognize "tls".
8093
8094 2002-12-19 Ulrich Drepper <drepper@redhat.com>
8095
8096 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
8097 __waitpid instead of waitpid.
8098
8099 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
8100 int $0x80.
8101 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
8102 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
8103 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
8104
8105 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
8106 information for system calls.
8107
8108 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
8109 for ld.so.
8110
8111 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
8112
8113 2002-12-19 Roland McGrath <roland@redhat.com>
8114
8115 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
8116 * iconvdata/ibm922.h: Likewise.
8117 * iconvdata/ibm930.h: Likewise.
8118 * iconvdata/ibm932.h: Likewise.
8119 * iconvdata/ibm933.h: Likewise.
8120 * iconvdata/ibm935.h: Likewise.
8121 * iconvdata/ibm937.h: Likewise.
8122 * iconvdata/ibm939.h: Likewise.
8123 * iconvdata/ibm943.h: Likewise.
8124 * iconvdata/isiri-3342.h: Likewise.
8125
8126 2002-12-19 Ulrich Drepper <drepper@redhat.com>
8127
8128 * test-skeleton.c (main): Make sure correct value is seen as
8129 argv[0] after adjustment of argv, and argc.
8130
8131 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
8132 RTLD_CORRECT_DYNAMIC_WEAK is defined.
8133
8134 2002-12-19 Jakub Jelinek <jakub@redhat.com>
8135
8136 * nscd/connections.c (nscd_run): Shut up warning.
8137 * tst-ungetc.c (assert): Undefined before redefining.
8138
8139 2002-12-19 Ulrich Drepper <drepper@redhat.com>
8140
8141 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
8142 is used.
8143
8144 2002-12-17 Art Haas <ahaas@airmail.net>
8145
8146 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
8147 * iconvdata/cp775.h: Likewise.
8148 * iconvdata/ibm1046.h: Likewise.
8149 * iconvdata/ibm1124.h: Likewise.
8150 * iconvdata/ibm1129.h: Likewise.
8151 * iconvdata/ibm1132.h: Likewise.
8152 * iconvdata/ibm1133.h: Likewise.
8153 * iconvdata/ibm1160.h: Likewise.
8154 * iconvdata/ibm1161.h: Likewise.
8155 * iconvdata/ibm1162.h: Likewise.
8156 * iconvdata/ibm1163.h: Likewise.
8157 * iconvdata/ibm1164.h: Likewise.
8158
8159 2002-12-19 Ulrich Drepper <drepper@redhat.com>
8160
8161 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
8162 __ASSUME_CLONE_THREAD_FLAGS is defined.
8163 * sysdeps/unix/sysv/linux/kernel-features.h
8164 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
8165
8166 2002-12-18 Ulrich Drepper <drepper@redhat.com>
8167
8168 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
8169 of asm.
8170 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8171
8172 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
8173 _dl_sysinfo.
8174 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
8175 code.
8176 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
8177 _rtld_global.
8178 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
8179 code.
8180 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
8181 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
8182 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
8183 Add _dl_sysinfo.
8184
8185 2002-12-18 Jakub Jelinek <jakub@redhat.com>
8186
8187 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
8188 __libc_writev to...
8189 [libc: GLIBC_PRIVATE]: ...here.
8190 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
8191 __libc_msgsnd to...
8192 [libc: GLIBC_PRIVATE]: ...here.
8193
8194 2002-12-18 Ulrich Drepper <drepper@redhat.com>
8195
8196 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
8197 Use it instead of directly int $0x80.
8198 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
8199 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
8200 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
8201 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8202 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
8203 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
8204
8205 2002-12-17 Ulrich Drepper <drepper@redhat.com>
8206
8207 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
8208
8209 * elf/elf.h (AT_SYSINFO): New define.
8210 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
8211 AT_SYSINFO.
8212
8213 2002-12-17 Jakub Jelinek <jakub@redhat.com>
8214
8215 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
8216 Make cancelable.
8217 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
8218 Likewise.
8219 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
8220 Likewise.
8221 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
8222 Likewise.
8223 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
8224 Likewise.
8225 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
8226
8227 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
8228 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
8229 available, otherwise __libc_maybe_call.
8230 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
8231 cancellation handling.
8232 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
8233
8234 2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
8235
8236 * posix/regcomp.c (free_workarea_compile): Free the new member
8237 ORG_INDICES.
8238 (analyze): Initialize ORG_INDICES.
8239 (duplicate_node_closure): Search for a existing node, which is
8240 duplicated from the node ORG_DEST and satisfies the constraint
8241 CONSTRAINT. And use it to avoid inifimite loop.
8242 (search_duplicated_node): New function.
8243 (duplicate_node): Store the index of the original node.
8244 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
8245 if needed.
8246 * posix/regex_internal.h (re_dfa_t): Add new members.
8247
8248 2002-12-17 Ulrich Drepper <drepper@redhat.com>
8249
8250 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
8251
8252 2002-12-16 Ulrich Drepper <drepper@redhat.com>
8253
8254 * sysdeps/posix/system.c (do_system): Add support for installation
8255 of cancellation handlers.
8256 * sysdeps/unix/sysv/linux/i386/system.c: New file.
8257
8258 * stdlib/Makefile (tests): Add tst-system.
8259 * stdlib/tst-system.c: New file.
8260
8261 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
8262 CENABLE]: Don't lose content of %ebx.
8263
8264 2002-12-17 Jakub Jelinek <jakub@redhat.com>
8265
8266 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
8267 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
8268
8269 2002-12-16 Ulrich Drepper <drepper@redhat.com>
8270
8271 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
8272 fails to return a function pointer don't use it.
8273
8274 2002-12-16 Art Haas <ahaas@airmail.net>
8275
8276 * io/ftw.c: Convert GCC extension initializer syntax to C99.
8277 * iconvdata/iso-ir-165.c: Likewise.
8278 * iconvdata/jis0208.c: Likewise.
8279 * iconvdata/jis0212.c: Likewise.
8280
8281 2002-12-16 Ulrich Drepper <drepper@redhat.com>
8282
8283 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
8284 epoll_ctl, and epoll_wait.
8285 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
8286 epoll_create, epoll_ctl, and epoll_wait.
8287 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
8288 Davide Libenzi <davidel@xmailserver.org>.
8289 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
8290 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
8291 Add sys/epoll.h.
8292
8293 2002-12-16 Art Haas <ahaas@airmail.net>
8294
8295 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
8296 syntax to C99
8297 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
8298 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
8299 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
8300
8301 2002-12-16 Ulrich Drepper <drepper@redhat.com>
8302
8303 * stdio-common/Makefile (routines): Remove lockfile. Add
8304 flockfile, ftrylockfile, and funlockfile.
8305 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
8306 * sysdeps/generic/flockfile.c: New file.
8307 * sysdeps/generic/ftrylockfile.c: New file.
8308 * sysdeps/generic/funlockfile.c: New file.
8309
8310 2002-12-16 Jakub Jelinek <jakub@redhat.com>
8311
8312 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
8313 macros instead of doing the calls directly.
8314 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
8315 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
8316 targets.
8317
8318 2002-12-16 Jakub Jelinek <jakub@redhat.com>
8319
8320 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
8321 * sysdeps/ieee754/bits/nan.h: Likewise.
8322
8323 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
8324 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
8325
8326 2002-12-16 Roland McGrath <roland@redhat.com>
8327
8328 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
8329 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
8330 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
8331
8332 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
8333 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
8334 s_putpmsg.
8335 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
8336 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
8337 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
8338 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
8339 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
8340 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
8341 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
8342 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
8343
8344 2002-12-13 Paul Eggert <eggert@twinsun.com>
8345
8346 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
8347 is now u_int, not int.
8348 (struct XDR.x_handy): Now u_int, not int.
8349 * sunrpc/xdr_mem.c: Include <limits.h>.
8350 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
8351 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
8352 x_handy is now unsigned, not signed.
8353 Do not decrement x_handy if no change is made.
8354 (xdrmem_setpos): Check for int overflow.
8355 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
8356 (xdr_sizeof): Remove cast that is now unnecessary, now that
8357 x_handy is unsigned.
8358
8359 2002-12-15 Art Haas <ahaas@airmail.net>
8360
8361 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
8362 * iconvdata/gap.awk: Likewise.
8363 * iconvdata/gen-8bit-gap-1.sh: Likewise.
8364 * iconvdata/gen-8bit-gap.sh: Likewise.
8365 * locale/C-address.c: Likewise.
8366 * locale/C-collate.c: Likewise.
8367 * locale/C-ctype.c: Likewise.
8368 * locale/C-identification.c: Likewise.
8369 * locale/C-measurement.c: Likewise.
8370 * locale/C-messages.c: Likewise.
8371 * locale/C-monetary.c: Likewise.
8372 * locale/C-name.c: Likewise.
8373 * locale/C-numeric.c: Likewise.
8374 * locale/C-paper.c: Likewise.
8375 * locale/C-telephone.c: Likewise.
8376 * locale/C-time.c: Likewise.
8377 * nscd/connections.c: Likewise.
8378 * nscd/grpcache.c: Likewise.
8379 * nscd/hstcache.c: Likewise.
8380 * nscd/pwdcache.c: Likewise.
8381 * stdio-common/vfprintf.c: Likewise.
8382 * stdlib/random.c: Likewise.
8383 * sysdeps/generic/siglist.c: Likewise.
8384 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
8385 * sysdeps/ieee754/bits/nan.h: Likewise.
8386 * sysdeps/posix/sprofil.c: Likewise.
8387 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
8388 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
8389 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
8390
8391 2002-12-15 Roland McGrath <roland@redhat.com>
8392
8393 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
8394
8395 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
8396 <tls.h> here, no need for it.
8397 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
8398
8399 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
8400 parameter, not varargs parameter.
8401
8402 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
8403 argument so it's not an unused variable.
8404
8405 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
8406 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
8407 for users.
8408
8409 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
8410
8411 2002-12-15 Ulrich Drepper <drepper@redhat.com>
8412
8413 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
8414 original __libc_fcntl code. Just renamed.
8415
8416 2002-12-15 Andreas Schwab <schwab@suse.de>
8417
8418 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
8419
8420 2002-12-14 Olaf Hering <olh@suse.de>
8421
8422 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
8423 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
8424
8425 2002-12-15 Ulrich Drepper <drepper@redhat.com>
8426
8427 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
8428
8429 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
8430 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
8431
8432 * sysdeps/unix/sysv/linux/open64.c: New file.
8433
8434 * sysdeps/generic/pselect.c: Add support for cancellation handling.
8435 * sysdeps/posix/open64.c: Likewise.
8436 * sysdeps/posix/sigpause.c: Likewise.
8437 * sysdeps/posix/sigwait.c: Likewise.
8438 * sysdeps/posix/system.c: Likewise.
8439 * sysdeps/posix/waitid.c: Likewise.
8440 * sysdeps/unix/sysv/linux/accept.S: Likewise.
8441 * sysdeps/unix/sysv/linux/connect.S: Likewise.
8442 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
8443 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
8444 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
8445 * sysdeps/unix/sysv/linux/poll.c: Likewise.
8446 * sysdeps/unix/sysv/linux/pread.c: Likewise.
8447 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
8448 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
8449 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
8450 * sysdeps/unix/sysv/linux/readv.c: Likewise.
8451 * sysdeps/unix/sysv/linux/recv.S: Likewise.
8452 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
8453 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
8454 * sysdeps/unix/sysv/linux/send.S: Likewise.
8455 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
8456 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
8457 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
8458 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
8459 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
8460 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
8461 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
8462 * sysdeps/unix/sysv/linux/wait.c: Likewise.
8463 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
8464 * sysdeps/unix/sysv/linux/writev.c: Likewise.
8465 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
8466 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
8467
8468 2002-12-14 Jakub Jelinek <jakub@redhat.com>
8469
8470 * sysdeps/generic/sysdep-cancel.h: New file.
8471 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
8472 cancelable syscall.
8473 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
8474 recvmsg, send, sendmsg, sendto): Make cancelable.
8475 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
8476 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
8477 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
8478 sendto, osf_select): Likewise.
8479 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
8480 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
8481 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
8482 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
8483 sendto): Likewise.
8484 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
8485 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
8486 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
8487 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
8488 sendto): Likewise.
8489 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
8490 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
8491 sendto, select): Likewise.
8492 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
8493 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
8494 Likewise.
8495 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
8496 select, fcntl): Likewise.
8497 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
8498 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
8499 read, readv, select, sigsuspend, write, writev): Likewise.
8500
8501 2002-12-14 Jakub Jelinek <jakub@redhat.com>
8502
8503 * dirent/bug-readdir1.c: Include unistd.h.
8504
8505 2002-12-13 Jakub Jelinek <jakub@redhat.com>
8506
8507 * locale/programs/locale.c: Include locarchive.h.
8508 (ARCHIVE_NAME): Define.
8509 (write_archive_locales): New function.
8510 (write_locales): Use it. Ensure the same locale is not printed
8511 multiple times in verbose mode.
8512 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
8513 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
8514 functions.
8515 (struct nameent): New type.
8516 (nameentcmp): New function.
8517
8518 2002-12-14 Jakub Jelinek <jakub@redhat.com>
8519
8520 * posix/regex_internal.c (re_string_context_at): Guard wide char
8521 code with #ifdef RE_ENABLE_I18N.
8522
8523 2002-11-22 Paolo Bonzini <bonzini@gnu.org>
8524
8525 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
8526
8527 2002-12-13 Roland McGrath <roland@redhat.com>
8528
8529 * posix/bug-regex15.c: New file.
8530 * posix/Makefile (tests): Add it.
8531
8532 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
8533 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
8534
8535 2002-12-13 Ulrich Drepper <drepper@redhat.com>
8536
8537 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
8538
8539 * misc/syslog.c (log_cleanup): Don't use parameter in
8540 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
8541 pass NULL instead of a pointer to syslog_lock.
8542
8543 2002-12-12 Ulrich Drepper <drepper@redhat.com>
8544
8545 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
8546 linker map for all iconv modules.
8547 (distribute): Add gconv.map.
8548 * iconvdata/gconv.map: New file.
8549
8550 * elf/Makefile: Also check all iconv modules for text relocations.
8551
8552 * stdlib/Makefile: Remove code to automatically import GMP.
8553
8554 * elf/Makefile (tests): Add rules to build and run check-textrel.
8555 * elf/check-textrel.c: New file.
8556
8557 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
8558 directive.
8559
8560 2002-12-11 Jakub Jelinek <jakub@redhat.com>
8561
8562 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
8563 not st.st[am]time.
8564
8565 2002-04-30 Bruno Haible <bruno@clisp.org>
8566
8567 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
8568 the encoding if it already has slashes.
8569 Reported by Perry Rapp <prapp@erols.com>.
8570
8571 2002-12-11 Roland McGrath <roland@redhat.com>
8572
8573 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
8574 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
8575 Turn off PIC for compiling this file.
8576
8577 2002-12-11 Ulrich Drepper <drepper@redhat.com>
8578
8579 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
8580 definitions. Not needed.
8581 [_LIBC]: Use definitions from libc-lock.h instead of referencing
8582 pthread routines directly.
8583 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
8584 mutex_init calls.
8585 (arena_get2): Don't look at return value of mutex_lock.
8586
8587 2002-12-11 Roland McGrath <roland@redhat.com>
8588
8589 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
8590 elf-init.o instead of compiling a PIC version.
8591
8592 2002-12-11 Bruno Haible <bruno@clisp.org>
8593
8594 * intl/gettext.h: Renamed to ...
8595 * intl/gmo.h: ... here.
8596 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
8597 * intl/gettextP.h: Update.
8598 * intl/loadmsgcat.c: Update.
8599
8600 * intl/gettextP.h (PARAMS): Make more portable.
8601 (attribute_hidden): Define as empty macro if not already defined.
8602 * intl/hash-string.h (PARAMS): Make more portable.
8603 * intl/loadinfo.h (PARAMS): Likewise.
8604 * intl/plural-exp.h (PARAMS): Likewise.
8605 (attribute_hidden): Move definition near the definition of
8606 internal_function.
8607
8608 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
8609 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
8610
8611 2002-07-13 Bruno Haible <bruno@clisp.org>
8612
8613 * intl/dcigettext.c (freea): New macro.
8614 (FREE_BLOCKS): Free also the registered blocks.
8615 (DCIGETTEXT): Free the 'search' variable.
8616 Reported by Andreas Fischer <a.fischer@asentics.de>.
8617
8618 2002-04-27 Bruno Haible <bruno@clisp.org>
8619
8620 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
8621 * intl/dcigettext.c: Likewise.
8622 * intl/dcgettext.c: Likewise.
8623 * intl/dgettext.c: Likewise.
8624 * intl/gettext.c: Likewise.
8625 * intl/dcngettext.c: Likewise.
8626 * intl/dngettext.c: Likewise.
8627 * intl/ngettext.c: Likewise.
8628 * intl/textdomain.c: Likewise.
8629 * intl/bindtextdom.c: Likewise.
8630 * intl/plural-exp.h: Likewise.
8631
8632 2002-01-02 Bruno Haible <bruno@clisp.org>
8633
8634 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
8635
8636 2001-04-30 Bruno Haible <bruno@clisp.org>
8637
8638 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
8639 default macro definitions. Needed for mingw32.
8640
8641 2002-12-10 Ulrich Drepper <drepper@redhat.com>
8642
8643 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
8644 __builtin_constant_p to macro parameter.
8645
8646 * sysdeps/generic/sigpause.c: Define all functions as weak.
8647 * sysdeps/posix/sigpause.c: Likewise.
8648
8649 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
8650 type size_t.
8651
8652 2002-12-10 Jakub Jelinek <jakub@redhat.com>
8653
8654 * elf/tst-array1.c (preinit_array, init_array, fini_array):
8655 Explicitly align the array to sizeof (void *).
8656 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
8657
8658 * include/libc-symbols.h: Fix a comment typo.
8659
8660 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
8661 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
8662 Likewise.
8663 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
8664 Likewise.
8665 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
8666 (__libc_sigsuspend): Likewise.
8667 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
8668 (__libc_sigsuspend): Likewise.
8669 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
8670 (creat): New weak alias.
8671
8672 2002-12-10 Roland McGrath <roland@redhat.com>
8673
8674 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
8675 contributes a manual chapter.
8676 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
8677 around xref to it.
8678
8679 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
8680 and move contents to ...
8681 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
8682 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
8683 it instead of duplicating its contents.
8684 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
8685
8686 2002-12-09 Jakub Jelinek <jakub@redhat.com>
8687
8688 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
8689 defined.
8690 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
8691 function.
8692 (EXTRA_LD_ENVVARS): Use it.
8693 (DL_OSVERSION_INIT): Define.
8694 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
8695 dl-librecon.h.
8696 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
8697
8698 2002-12-10 Ulrich Drepper <drepper@redhat.com>
8699
8700 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
8701
8702 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
8703 call. It is not allowed to destroy pthread mutexes which are
8704 still in use even though it is safe for our implementations. If
8705 somebody still uses the descriptor it is a bug.
8706
8707 2002-12-09 Richard Henderson <rth@redhat.com>
8708
8709 * csu/abi-note.S: Use .p2align, not .align.
8710
8711 2002-12-09 Ulrich Drepper <drepper@redhat.com>
8712
8713 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
8714 __libc_select aliases.
8715
8716 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
8717 alias.
8718
8719 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
8720
8721 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
8722
8723 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
8724
8725 * sysdeps/unix/syscalls.list: Define __libc_select alias.
8726
8727 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
8728
8729 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
8730 __libc___xpg_sigpause aliases.
8731
8732 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
8733
8734 * misc/error.c: Remove use of USE_IN_LIBIO.
8735
8736 2002-12-08 Roland McGrath <roland@redhat.com>
8737
8738 * elf/Makefile (tests): Uncomment tst-array[123].
8739 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
8740 * csu/elf-init.c: New file.
8741 * csu/Makefile (routines, static-only-routines): Add elf-init.
8742 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
8743 and __libc_csu_fini in place of _fini.
8744 * sysdeps/arm/elf/start.S: Likewise.
8745 * sysdeps/cris/elf/start.S: Likewise.
8746 * sysdeps/hppa/elf/start.S: Likewise.
8747 * sysdeps/i386/elf/start.S: Likewise.
8748 * sysdeps/ia64/elf/start.S: Likewise.
8749 * sysdeps/m68k/elf/start.S: Likewise.
8750 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
8751 * sysdeps/mips/elf/start.S: Likewise.
8752 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
8753 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
8754 * sysdeps/s390/s390-32/elf/start.S: Likewise.
8755 * sysdeps/s390/s390-64/elf/start.S: Likewise.
8756 * sysdeps/sh/elf/start.S: Likewise.
8757 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
8758 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8759 * sysdeps/x86_64/elf/start.S: Likewise.
8760
8761 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
8762 struct containing function ptr and value, free it.
8763 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
8764 It's not safe to let the new thread use the SIGEV pointer.
8765
8766 2001-10-20 Paul Eggert <eggert@twinsun.com>
8767
8768 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
8769 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
8770 Use strerror_r that is only a macro, even if it is not a function.
8771 (strerror): Check for HAVE_DECL_STRERROR before declaring.
8772 (private_strerror): Use prototypes, not old-style function definition.
8773 (print_errno_message): New function.
8774 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
8775 char*-flavored one.
8776 (error_tail, error, error_at_line): Use it.
8777
8778 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
8779
8780 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
8781
8782 2002-12-08 Ulrich Drepper <drepper@redhat.com>
8783
8784 * scripts/output-format.sed: Fix bug in one of the s expressions
8785 which used / for one too many things.
8786
8787 * include/unistd.h: Declare __libc_close.
8788
8789 2002-12-07 Ulrich Drepper <drepper@redhat.com>
8790
8791 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
8792
8793 2002-12-07 Roland McGrath <roland@redhat.com>
8794
8795 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
8796 from 2002-12-06, but remove unnecessary memset call without removing
8797 necessary copy of initialization image.
8798
8799 * Makerules ($(common-objpfx)format.lds): New target.
8800 (common-generated): Add it.
8801 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
8802 * scripts/output-format.sed: New file.
8803 * Makefile (distribute): Add it.
8804
8805 2002-12-07 Ulrich Drepper <drepper@redhat.com>
8806
8807 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
8808 Reported by Art Haas <ahaas@airmail.net>.
8809
8810 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
8811
8812 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
8813
8814 2002-12-07 Jakub Jelinek <jakub@redhat.com>
8815
8816 * string/test-strncpy.c (do_random_tests): Improve test coverage.
8817
8818 2002-12-06 Ulrich Drepper <drepper@redhat.com>
8819
8820 * test-skeleton.c (timeout_handler): Allow expected signal to be
8821 SIGALRM.
8822
8823 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
8824
8825 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
8826
8827 2002-12-07 Jakub Jelinek <jakub@redhat.com>
8828
8829 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
8830 (SYSCALL_ERROR_HANDLER): Fix a pasto.
8831 Reported by Jeff Bailey <jbailey@nisa.net>.
8832
8833 2002-12-06 Ulrich Drepper <drepper@redhat.com>
8834
8835 * sysdeps/generic/libc-tls.c: Undo last patch.
8836
8837 * include/wctype.h: Define iswalnum with libc_hidden_proto.
8838
8839 * include/signal.h: Define raise with libc_hidden_proto.
8840
8841 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
8842 __execve instead of snprintf and execve.
8843
8844 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
8845 again a bit.
8846
8847 2002-12-06 Jakub Jelinek <jakub@redhat.com>
8848
8849 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
8850 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
8851
8852 2002-12-06 Ulrich Drepper <drepper@redhat.com>
8853
8854 * misc/syslog.c (log_cleanup): New function.
8855 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
8856 (closelog): Likewise.
8857
8858 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
8859 * elf/dl-iteratephdr.c: Likewise.
8860 * elf/dl-lookup.c: Likewise.
8861 * elf/dl-misc.c: Likewise.
8862 * elf/dl-open.c: Likewise.
8863 * elf/dl-support.c: Likewise.
8864 * elf/rtld.c: Likewise.
8865 * sysdeps/generic/ldsodefs.h: Likewise.
8866 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
8867 * sysdeps/mach/bits/libc-lock.h: Likewise.
8868 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
8869
8870 2002-12-06 Roland McGrath <roland@redhat.com>
8871
8872 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
8873
8874 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
8875 (malloc_starter, memalign_starter, free_starter): Don't define these.
8876 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
8877 Don't declare them either.
8878 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
8879 __pthread_initialize, so no need to set hooks to *_starter.
8880 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
8881 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
8882 (__libc_malloc_pthread_startup): New function.
8883 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
8884
8885 * malloc/hooks.c (memalign_starter): New function.
8886 * malloc/malloc.c: Declare it.
8887 * malloc/arena.c (save_memalign_hook): New variable.
8888 (ptmalloc_init): Set __memalign_hook to memalign_starter.
8889
8890 * elf/dl-minimal.c (free): Clear the memory.
8891 (calloc): Just call malloc, knowing all memory it returns is cleared.
8892
8893 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
8894 malloc and memset; calloc can avoid the zeroing when redundant.
8895 (_dl_tls_setup): Likewise.
8896 * elf/dl-load.c (decompose_rpath): Likewise.
8897 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
8898 call, since memory from sbrk at startup is already zero.
8899
8900 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
8901 error string for failure, null for success. Update callers.
8902 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
8903 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
8904
8905 2002-12-05 Jakub Jelinek <jakub@redhat.com>
8906
8907 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
8908 args to i:iipi.
8909 (readahead): Change args to i:iii.
8910 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
8911 Change args to i:iii.
8912 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
8913 args to i:iiii.
8914
8915 2002-12-05 Roland McGrath <roland@redhat.com>
8916
8917 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
8918 call all functions rather than none.
8919 Reported by Mark P. Mitchell <mark@codesourcery.com>.
8920
8921 2002-12-04 Roland McGrath <roland@redhat.com>
8922
8923 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
8924 on _nl_current_LC_* variables.
8925
8926 2002-12-05 Ulrich Drepper <drepper@redhat.com>
8927
8928 * dirent/bug-readdir1.c (main): Don't call closedir, just close
8929 the file descriptor. This is testing what the bug report was about.
8930
8931 2002-12-04 Ulrich Drepper <drepper@redhat.com>
8932
8933 * po/be.po: New file.
8934
8935 * argp/Makefile (tests): Add tst-argp1.
8936
8937 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
8938 Change type of _attribute to void*.
8939 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
8940 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
8941 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
8942 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
8943 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
8944
8945 2002-12-04 Roland McGrath <roland@redhat.com>
8946
8947 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
8948 members to the end, so a libpthread compiled with !USE_TLS will still
8949 find other members properly.
8950
8951 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
8952 operand for DEST memory. Fix dummy input operand to use SRC.
8953 Reported by Davin McCall <davmac@ozonline.com.au>.
8954
8955 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
8956 alignment when initializing the DTV entry.
8957
8958 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
8959 when TLS has not been set up, try to set it up if we can.
8960 * elf/tst-tls4.c: Revert last change.
8961 * elf/tst-tls5.c: Likewise.
8962 * elf/tst-tls6.c: Likewise.
8963 * elf/tst-tls7.c: Likewise.
8964 * elf/tst-tls8.c: Likewise.
8965 * elf/tst-tls9.c: Likewise.
8966
8967 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
8968 * sysdeps/generic/ldsodefs.h: Declare it.
8969 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
8970 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
8971 function, broken out of __libc_setup_tls.
8972 (init_static_tls): Likewise.
8973 (__libc_setup_tls): Call them.
8974 (_dl_tls_setup): New function, uses new subroutines.
8975
8976 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
8977 Clear the pointer when returning true.
8978 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
8979 first element of the slotinfo list too.
8980
8981 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
8982 [SHARED].
8983
8984 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
8985 (_dl_determine_tlsoffset): Likewise.
8986
8987 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
8988 startup_error_tsd, made global.
8989 (dl_main): Update initialization.
8990 * elf/dl-tsd.c: Likewise.
8991 * sysdeps/generic/ldsodefs.h: Declare it.
8992
8993 2002-12-03 Ulrich Drepper <drepper@redhat.com>
8994
8995 * manual/texinfo.tex: Update from latest upstream version.
8996
8997 2002-12-03 Roland McGrath <roland@redhat.com>
8998
8999 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
9000 area surplus in calculation for sbrk call.
9001
9002 * iconvdata/cp1125.c: New file.
9003 * iconvdata/Makefile (distribute): Add it.
9004 (modules): Add CP1125.
9005 (gen-8bit-gap-modules): Add cp1125.
9006 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
9007 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
9008
9009 2002-12-03 Andreas Jaeger <aj@suse.de>
9010
9011 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
9012
9013 2002-12-03 Ulrich Drepper <drepper@redhat.com>
9014
9015 * sysdeps/posix/system.c (do_system): Make signal handler
9016 installation thread safe.
9017
9018 2002-12-02 Roland McGrath <roland@redhat.com>
9019
9020 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
9021 caller from EXTRA to -.
9022 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
9023 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
9024 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
9025
9026 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
9027
9028 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
9029 bits of RM are cleared.
9030
9031 2002-12-02 Roland McGrath <roland@redhat.com>
9032
9033 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
9034 TLS setup is required.
9035 * elf/tst-tls5.c: Likewise.
9036 * elf/tst-tls6.c: Likewise.
9037 * elf/tst-tls7.c: Likewise.
9038 * elf/tst-tls8.c: Likewise.
9039 * elf/tst-tls9.c: Likewise.
9040
9041 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
9042 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
9043 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
9044 for being null before calling free_slotinfo.
9045 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
9046 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
9047
9048 2002-11-30 Bruno Haible <bruno@clisp.org>
9049
9050 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
9051 (struct __gconv_step): New field __btowc_fct.
9052 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
9053 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
9054 __BUILTIN_TRANS.
9055 (__gconv_btwoc_ascii): New declaration.
9056 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
9057 (__gconv_btwoc_ascii): New function.
9058 * iconv/gconv_builtin.h: Add BtowcFct argument to all
9059 BUILTIN_TRANSFORMATION invocations.
9060 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
9061 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
9062 * iconv/gconv_builtin.c (map): New field btowc_fct.
9063 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
9064 btowc_fct field.
9065 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
9066 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
9067 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
9068 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
9069 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
9070 (gconv_init): Initialize __btowc_fct field.
9071 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
9072 * iconv/loop.c: Document ONEBYTE_BODY.
9073 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
9074 Undefine ONEBYTE_BODY at the end.
9075 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
9076 * iconvdata/8bit-gap.c (NONNUL): New macro.
9077 (BODY for FROM_LOOP): Use it.
9078 (ONEBYTE_BODY): New macro.
9079 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
9080 (NONNUL): New macro.
9081 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
9082 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
9083 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
9084 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
9085 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
9086 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
9087 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
9088 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
9089 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
9090 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
9091 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
9092 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
9093 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
9094 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
9095 * iconvdata/ibm932.c: Include <stdbool.h>.
9096 (TRUE, FALSE): Remove macros.
9097 (BODY for FROM_LOOP): Remove unused variable rp1.
9098 (ONEBYTE_BODY): New macro.
9099 (BODY for TO_LOOP): Use bool.
9100 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
9101 * iconvdata/ibm943.c: Include <stdbool.h>.
9102 (TRUE, FALSE): Remove macros.
9103 (BODY for FROM_LOOP): Remove unused variable rp1.
9104 (ONEBYTE_BODY): New macro.
9105 (BODY for TO_LOOP): Use bool.
9106 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
9107 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
9108 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
9109 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
9110 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
9111 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
9112 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
9113 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
9114 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
9115 * iconvdata/gbbig5.c: Tweak comment.
9116
9117 2002-12-02 Ulrich Drepper <drepper@redhat.com>
9118
9119 * po/fi.po: Update from translation team.
9120
9121 2002-12-01 Roland McGrath <roland@redhat.com>
9122
9123 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
9124 testing getdents64 return value.
9125
9126 * scripts/versions.awk: Don't pass -n flag to sort command.
9127
9128 * posix/bug-regex13.c: Include <string.h>.
9129
9130 * sysdeps/generic/libc-start.c (__libc_start_main): Do
9131 DL_SYSDEP_OSCHECK here.
9132 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
9133 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
9134
9135 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
9136 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
9137
9138 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
9139 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
9140
9141 * include/link.h: Comment typo fix.
9142
9143 2002-12-01 Roland McGrath <roland@frob.com>
9144
9145 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
9146 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
9147 _POSIX_MEMORY_PROTECTION): Likewise.
9148 (_POSIX_POLL, _POSIX_SELECT): Removed.
9149
9150 2002-11-28 Ulrich Drepper <drepper@redhat.com>
9151
9152 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
9153 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
9154
9155 2002-11-28 Jakub Jelinek <jakub@redhat.com>
9156
9157 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
9158 USE___THREAD.
9159 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
9160 "=v" constraints.
9161
9162 2002-11-28 Ulrich Drepper <drepper@redhat.com>
9163
9164 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
9165 branch prediction buffers by using unpaired call/ret.
9166
9167 2002-11-27 Ulrich Drepper <drepper@redhat.com>
9168
9169 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
9170 first parameters constraint string.
9171 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
9172
9173 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
9174
9175 * posix/regcomp.c (parse_expression): Set the bit since the back
9176 reference is used in the regular expression.
9177 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
9178 of malloc failure.
9179 (re_node_set_init_copy): Likewise.
9180 * posix/regex_internal.h (state_array_t): New structure.
9181 (re_sub_match_last_t): Likewise.
9182 (re_sub_match_top_t): Likewise.
9183 (re_match_context_t): Add new members.
9184 (re_dfa_t): Likewise.
9185 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
9186 to check the matching is really correct, and retry if failed.
9187 Move the routin pruning the impossible nodes from here, ...
9188 (prune_impossible_nodes): To this function.
9189 (check_matching): Invoke check_subexp_matching_top, and replace
9190 redundant checking with transit_state_bkref invocation.
9191 (proceed_next_node): Replace strncmp with memcmp. Reported by
9192 Paolo Bonzini <bonzini@gnu.org>.
9193 (update_cur_sifted_state): Remove search_subexp invocation.
9194 (search_subexp): Remove this function.
9195 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
9196 optimization.
9197 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
9198 Remove unused invocation of match_ctx_add_entry.
9199 (transit_state): Invoke check_subexp_matching_top.
9200 (check_subexp_matching_top): New function.
9201 (transit_state_bkref): Remove unused array.
9202 Merge transit_state_bkref_loop.
9203 (transit_state_bkref_loop): Use get_subexp instead of
9204 sift_states_backward. Use search_cur_bkref_entry for optimization.
9205 Merge this function to transit_state_bkref.
9206 (get_subexp): New function.
9207 (get_subexp_sub): Likewise.
9208 (find_subexp_node): Likewise.
9209 (check_arrival): Likewise.
9210 (check_arrival_expand_ecl): Likewise.
9211 (check_arrival_expand_ecl_sub): Likewise.
9212 (expand_bkref_cache): Likewise.
9213 (match_ctx_init): Initialize new members.
9214 (match_ctx_clean): New function.
9215 (match_ctx_free): Release new members.
9216 (match_ctx_free_subtops): New function.
9217 (match_ctx_add_entry): Fix indent.
9218 (search_cur_bkref_entry): New function.
9219 (match_ctx_add_subtop): Likewise.
9220 (match_ctx_add_sublast): Likewise.
9221
9222 2002-11-25 Ulrich Drepper <drepper@redhat.com>
9223
9224 * iconv/Makefile (tests): Remove tst-iconv4.c
9225 * iconv/tst-iconv4.c: Moved to...
9226 * iconvdata/tst-iconv4.c: ...here. New file.
9227 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
9228
9229 2002-11-25 Roland McGrath <roland@redhat.com>
9230
9231 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
9232 Grok AF_LINK if defined.
9233 From Momchil Velikov <velco@fadata.bg>.
9234
9235 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
9236 brdaddr, or dstaddr, just set those pointers to null and don't fail.
9237 Reported by Momchil Velikov <velco@fadata.bg>.
9238
9239 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
9240 is > sizeof IFR->ifa_addr, advance past the whole longer length.
9241 (__ifreq): Count up NIFS that way too.
9242 Reported by Momchil Velikov <velco@fadata.bg>.
9243
9244 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
9245
9246 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
9247 and <fpu_control.h>.
9248
9249 2002-11-24 Ulrich Drepper <drepper@redhat.com>
9250
9251 * elf/elf.h (EM_ST19): Fix typo.
9252
9253 2002-11-25 Jakub Jelinek <jakub@redhat.com>
9254
9255 * include/errno.h (__set_errno): Define as errno = val
9256 unconditionally.
9257
9258 2002-11-24 Roland McGrath <roland@redhat.com>
9259
9260 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
9261 * sysdeps/posix/writev.c: Likewise.
9262 From Momchil Velikov <velco@fadata.bg>.
9263
9264 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
9265 calling *GL(dl_error_catch_tsd) for a thread-local location.
9266 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
9267 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
9268 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
9269
9270 * libio/iofflush.c: Add libc_hidden_def.
9271 * libio/iofwrite.c: Likewise.
9272 * sysdeps/generic/sigtimedwait.c: Likewise.
9273 * sysdeps/generic/sigwaitinfo.c: Likewise.
9274 * sysdeps/posix/sigwait.c: Likewise.
9275 Reported by Momchil Velikov <velco@fadata.bg>.
9276
9277 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
9278 to match <arpa/inet.h> declaration.
9279 * inet/inet_netof.c (inet_netof): Likewise.
9280 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
9281 Reported by Momchil Velikov <velco@fadata.bg>.
9282
9283 * configure.in: Skip AUTOCONF check under --without-cvs.
9284 * configure: Regenerated.
9285
9286 * posix/Makefile (headers): Add bits/pthreadtypes.h.
9287 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
9288 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
9289
9290 2002-11-24 Andreas Schwab <schwab@suse.de>
9291
9292 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
9293 with six arguments.
9294
9295 2002-11-19 Jim Meyering <jim@meyering.net>
9296
9297 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
9298 as `static'.
9299 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
9300
9301 2002-11-23 Roland McGrath <roland@redhat.com>
9302
9303 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
9304 Just produce hex output for datum sizes.
9305
9306 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
9307 Reported by Luca Barbieri <ldb@ldb.ods.org>.
9308
9309 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
9310
9311 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
9312 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
9313 and __unused3 fields.
9314 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
9315 [__WORDSIZE == 32]: Only PPC32 requires __unused1
9316 and __unused2 fields.
9317 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
9318 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
9319 __unused3, and __unused4 fields.
9320
9321 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
9322 obtain lowest address for profiling in __monstartup call.
9323
9324 2002-11-21 Roland McGrath <roland@redhat.com>
9325
9326 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
9327 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
9328
9329 * locale/localeinfo.h (struct locale_data): Revert last change.
9330
9331 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
9332 From Ian Wienand <ianw@gelato.unsw.edu.au>.
9333
9334 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
9335 __NR_pread64 if not defined.
9336 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
9337 From Ian Wienand <ianw@gelato.unsw.edu.au>.
9338
9339 2002-11-21 Roland McGrath <roland@frob.com>
9340
9341 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
9342 __libc_multiple_libcs here. Call __setfpucw.
9343
9344 2002-11-21 Ulrich Drepper <drepper@redhat.com>
9345
9346 * elf/Makefile (tests): Don't run test-arrayX tests for now.
9347
9348 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
9349 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
9350 CLONE_CHILD_*TID flags.
9351
9352 2002-11-20 Andreas Jaeger <aj@suse.de>
9353
9354 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
9355 We pass struct ucontext on x86-64.
9356 (GET_PC): Adjust.
9357 (GET_FRAME): Adjust.
9358 (GET_STACK): Adjust.
9359
9360 2002-11-20 Roland McGrath <roland@redhat.com>
9361
9362 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
9363 conditionalize [! DO_VERSIONING] #error.
9364
9365 * scripts/abilist.awk: Grok function descriptor symbols.
9366
9367 * intl/tst-gettext.c (main): Check return values from setlocale.
9368 Add necessary unsetenv's to make LANG=existing-locale check work.
9369
9370 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
9371 so aborted prior runs don't confuse things.
9372
9373 * locale/localeinfo.h (struct locale_data: union locale_data_value):
9374 Use uintptr_t instead of unsigned int for `word' member.
9375 (_NL_CURRENT_WORD): Cast to uint32_t.
9376
9377 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
9378 value.
9379
9380 2002-11-20 Ulrich Drepper <drepper@redhat.com>
9381
9382 * elf/tls-macros.h: Add IA-64 definitions.
9383 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
9384
9385 * iconv/Makefile (tests): Add tst-iconv4.
9386 * iconv/tst-iconv4.c: New file.
9387
9388 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
9389 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
9390 __GCONV_INCOMPLETE_INPUT.
9391 (ucs4le_internal_loop): Likewise.
9392 (ucs4le_internal_loop_unaligned): Likewise.
9393 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
9394 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
9395 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
9396
9397 * iconv/loop.c (LOOPFCT): First test for empty input then for full
9398 output buffer.
9399
9400 * inet/getnameinfo.c: Use extend_alloca where appropriate.
9401 * sysdeps/posix/getaddrinfo.c: Likewise.
9402
9403 * include/alloca.h (extend_alloca): New define. Based on stack
9404 direction it'll try to append to the previouls allocated buffer.
9405
9406 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
9407
9408 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
9409 use the same service for AF_INET and AF_INET6.
9410
9411 2002-11-19 Ulrich Drepper <drepper@redhat.com>
9412
9413 * intl/localealias.c (read_alias_file): Use only about 400 bytes
9414 of stack space instead of 16k.
9415
9416 2002-11-18 Wolfram Gloger <wg@malloc.de>
9417
9418 * malloc/arena.c
9419 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
9420 nothing if not initialized. Bug report from Marcus Brinkmann
9421 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
9422
9423 2002-11-19 Roland McGrath <roland@redhat.com>
9424
9425 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
9426 sched_setaffinity.
9427
9428 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
9429 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
9430 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
9431 * configure: Regenerated.
9432
9433 2002-11-19 Ulrich Drepper <drepper@redhat.com>
9434
9435 * include/dlfcn.h: __libc_dlopen is now a macro calling
9436 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
9437 (__libc_dlopen_mode): New prototype.
9438 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
9439 new parameter. Store new parameter in mode field of structure passed
9440 to do_dlopen.
9441 (struct do_dlopen_args): Add new field mode.
9442 (do_dlopen): Pass mode from parameter structure to _dl_open.
9443
9444 2002-11-11 Randolf Chung <tausq@debian.org>
9445
9446 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
9447 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
9448 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
9449
9450 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
9451
9452 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
9453 Set -mdisable-fpregs for this file.
9454
9455 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
9456
9457 * sysdeps/unix/sysv/linux/configure.in:
9458 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
9459 from gcc-3.0 era for backwards compatibility.
9460 * sysdeps/unix/sysv/linux/configure: Regenerate.
9461
9462 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
9463 Define mcontext_t as a sigcontext.
9464
9465 2002-11-18 Roland McGrath <roland@redhat.com>
9466
9467 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
9468 Free memory in `last_result' if it was used.
9469
9470 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
9471 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
9472 Do the parsing inline instead of copying strings and calling
9473 inet_network, and properly skip all alias names not matching the form.
9474
9475 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
9476
9477 2002-11-17 Ulrich Drepper <drepper@redhat.com>
9478
9479 * manual/pattern.texi (Wordexp Example): Fix sample code.
9480
9481 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
9482 childs stack which will be loaded into the %esi register.
9483
9484 2002-11-14 Paul Eggert <eggert@twinsun.com>
9485
9486 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
9487 overflow when skipping the question part and when unpacking aliases.
9488
9489 2002-11-15 Roland McGrath <roland@redhat.com>
9490
9491 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
9492 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
9493 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
9494
9495 2002-11-15 Jakub Jelinek <jakub@redhat.com>
9496
9497 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
9498 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
9499
9500 2002-11-15 Roland McGrath <roland@redhat.com>
9501
9502 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
9503 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
9504 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
9505 (+make-include-of-dep): New canned sequence.
9506
9507 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
9508 From Dmitry V. Levin <ldv@altlinux.org>.
9509
9510 2002-11-14 Roland McGrath <roland@redhat.com>
9511
9512 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
9513 * inet/herrno.c (__libc_h_errno): Likewise.
9514 * resolv/res_libc.c (__libc_res): Likewise.
9515 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
9516 (__res_state) [! USE___THREAD]: Don't define as weak.
9517 * csu/Versions: Revert last change.
9518 * resolv/Versions: Revert last change.
9519
9520 * Makerules ($(common-objpfx)%.make): New pattern rule.
9521 * tls.make.c: New file.
9522 * Makefile (distribute): Add it.
9523
9524 * sysdeps/generic/errno.c [! USE___THREAD]
9525 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
9526 with compat_symbol so they are not link-time visible.
9527 [! USE___THREAD] (__libc_errno): New alias for errno.
9528 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
9529 Add __libc_errno here.
9530 * inet/herrno.c [USE___THREAD]: Use this conditional
9531 in place of [USE_TLS && HAVE___THREAD].
9532 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
9533 (h_errno, _h_errno): Declare these with compat_symbol so they are not
9534 link-time visible.
9535 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
9536 * resolv/res_libc.c [! USE___THREAD]
9537 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
9538 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
9539 (__libc_res): Define as alias for _res.
9540 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
9541 Add __libc_h_errno and __libc_res here.
9542
9543 2002-11-14 Jakub Jelinek <jakub@redhat.com>
9544
9545 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
9546 * resolv/Versions (h_errno, _res): Likewise.
9547
9548 2002-11-14 Roland McGrath <roland@redhat.com>
9549
9550 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
9551 (%.symlist): Likewise.
9552
9553 2002-11-13 Roland McGrath <roland@redhat.com>
9554
9555 * scripts/abilist.awk: New file.
9556 * Makefile (distribute): Add it.
9557 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
9558 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
9559 [$(subdir) = elf] (tests): Depend on libc.symlist.
9560 (generated, common-generated): Add those files.
9561
9562 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
9563 * configure: Regenerated.
9564 * config.make.in (OBJDUMP): New variable, substituted by configure.
9565
9566 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
9567 (mallochook, reallochook): Set them up.
9568 (checkhdr): Check HDR->magic2 value.
9569 (freehook): Reset HDR->magic2.
9570 (memalignhook): New static function.
9571 (old_memalign_hook): New static variable.
9572 (mcheck, reallochook): Set __memalign_hook to memalignhook.
9573
9574 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
9575 for the new TCB.
9576
9577 2002-11-13 Andreas Jaeger <aj@suse.de>
9578
9579 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
9580 attribute.
9581 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9582
9583 2002-11-11 Paul Eggert <eggert@twinsun.com>
9584
9585 * manual/crypt.texi (Cryptographic Functions): Mention that
9586 the MD5 one-way algorithm is compatible with BSD's.
9587
9588 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
9589
9590 * posix/regex_internal.c (re_string_skip_chars): Also return the last
9591 wide character.
9592 (re_string_reconstruct): Calculate the context by itself when the
9593 offset points out of the valid range.
9594 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
9595 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
9596 (IS_WIDE_WORD_CHAR): New macro.
9597 (IS_WIDE_NEWLINE): New macro.
9598
9599 2002-11-12 Andreas Jaeger <aj@suse.de>
9600
9601 * sysdeps/x86_64/strchr.S: Don't use one register for two
9602 purposes, this fixes a bug noticed by test-strchr.c.
9603
9604 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
9605 correctly.
9606
9607 2002-11-12 Roland McGrath <roland@redhat.com>
9608
9609 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
9610 (_G_IO_NO_BACKWARD_COMPAT): Define it.
9611
9612 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
9613 instead of <pt-machine.h>.
9614 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
9615 testandset.
9616 From Ian Wienand <ianw@gelato.unsw.edu.au>.
9617
9618 2002-11-10 Roland McGrath <roland@redhat.com>
9619
9620 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
9621 Call fputs instead of fwprintf (simpler to follow in debugger).
9622
9623 * crypt/md5-crypt.c: Doc fix.
9624
9625 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
9626 the beginning of generated target commands.
9627
9628 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
9629 dependencies for these in case implicit rule search skipped the
9630 nonexistent source directory.
9631 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
9632 files with $(object-suffixes) as targets too.
9633 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
9634 and a target for it using $(make-target-directory).
9635
9636 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
9637
9638 2002-11-10 Roland McGrath <roland@frob.com>
9639
9640 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
9641 * sysdeps/generic/bits/pthreadtypes.h: ... here.
9642
9643 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
9644 l_start == 0 and l_len == 1 as we do l_len == 0.
9645
9646 2002-11-10 Ulrich Drepper <drepper@redhat.com>
9647
9648 * po/da.po: Update from translation team.
9649
9650 2002-11-10 Roland McGrath <roland@redhat.com>
9651
9652 * config.make.in (includedir): New variable, substituted by configure.
9653 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
9654 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
9655
9656 2002-11-10 Andreas Jaeger <aj@suse.de>
9657
9658 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
9659 REG_OLDMASK and REG_CR2 to synch with kernel header.
9660 (NGREG): Increase.
9661
9662 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
9663 aliasing problem.
9664 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
9665 * nss/getnssent_r.c (__nss_getent_r): Likewise.
9666 (__nss_setent): Likewise.
9667 (__nss_getent_r): Likewise.
9668 * inet/getnetgrent_r.c (innetgr): Likewise.
9669 (__internal_setnetgrent_reuse): Likewise.
9670 (internal_getnetgrent_r): Likewise.
9671 * inet/ether_hton.c (ether_hostton): Likewise.
9672 * inet/ether_ntoh.c (ether_ntohost): Likewise.
9673 * sunrpc/netname.c (netname2user): Likewise.
9674 * sunrpc/publickey.c (getpublickey): Likewise.
9675 (getsecretkey): Likewise.
9676
9677 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
9678
9679 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
9680 error in range calculation.
9681
9682 2002-10-09 Jakub Jelinek <jakub@redhat.com>
9683
9684 * string/test-strspn.c (do_test): Ensure zero termination.
9685 * string/test-strpbrk.c (do_test): Likewise.
9686 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
9687 * string/test-strncpy.c (stupid_strncpy): Likewise.
9688 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
9689
9690 2002-10-08 Roland McGrath <roland@redhat.com>
9691
9692 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
9693 nonzero characters.
9694
9695 2002-09-22 H.J. Lu <hjl@gnu.org>
9696
9697 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
9698 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
9699 only if __NR_mmap2 is defined.
9700
9701 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
9702 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
9703 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
9704 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
9705
9706 2002-11-08 Jakub Jelinek <jakub@redhat.com>
9707
9708 * posix/bug-regex13.c (tests): Add new test.
9709
9710 * string/test-strchr.c (stupid_strchr): New function.
9711 (do_random_tests): Make sure the string is zero terminated.
9712 * string/test-strpbrk.c (stupid_strpbrk): New function.
9713 (do_random_tests): Make sure the string is zero terminated.
9714 * string/test-strcmp.c (stupid_strcmp): New function.
9715 (do_random_tests): Make sure the strings are zero terminated.
9716 * string/test-strspn.c (stupid_strspn): New function.
9717 (simple_strspn): Rename rej argument to acc.
9718 (do_random_tests): Make sure the string is zero terminated.
9719 * string/test-strcspn.c (stupid_strcspn): New function.
9720 * string/test-strncpy.c (stupid_strncpy): New function.
9721 * string/test-stpncpy.c (stupid_stpncpy): New function.
9722 * string/test-strncmp.c (stupid_strncmp): New function.
9723 (do_random_tests): Make sure the strings are zero terminated.
9724 * string/test-string.h (impl_t): Change test into long.
9725 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
9726
9727 2002-11-08 Roland McGrath <roland@redhat.com>
9728
9729 * sysdeps/ia64/elf/configure.in: Add TLS check.
9730 From Ian Wienand <ianw@cse.unsw.edu.au>.
9731 * sysdeps/ia64/elf/configure: Regenerated.
9732
9733 2002-11-07 Roland McGrath <roland@redhat.com>
9734
9735 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
9736 place of _IO_new_do_write.
9737 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
9738 #undef before versioned_symbol use.
9739
9740 2002-11-07 Richard Henderson <rth@redhat.com>
9741
9742 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
9743 * configure: Regenerated.
9744 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
9745 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
9746 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
9747 _dl_fini via gp-relative relocations.
9748 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
9749
9750 * elf/tls-macros.h: Add alpha versions.
9751 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
9752 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
9753 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
9754 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
9755 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
9756 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
9757 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
9758 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
9759 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
9760 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
9761 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
9762 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
9763 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
9764 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
9765 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
9766 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
9767 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
9768 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
9769
9770 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
9771 Kill argument registers across the inline syscall.
9772
9773 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
9774
9775 * linuxthreads/sysdeps/alpha/tls.h: New file.
9776 * sysdeps/alpha/dl-tls.h: New file.
9777
9778 2002-10-29 David Mosberger <davidm@hpl.hp.com>
9779
9780 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
9781 (gmon_initializer): New function.
9782 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
9783 __gmon_start__ here. Call it from gmon_initializer() instead.
9784
9785 2002-03-12 H.J. Lu <hjl@gnu.org>
9786
9787 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
9788 tst-array2, and tst-array3.
9789 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
9790 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
9791 ($(objpfx)tst-array1.out): New target.
9792 ($(objpfx)tst-array2): Likewise.
9793 ($(objpfx)tst-array2.out): Likewise.
9794 ($(objpfx)tst-array3.out): Likewise.
9795 * elf/tst-array1.c: New file.
9796 * elf/tst-array1.exp: Likewise.
9797 * elf/tst-array2.c: Likewise.
9798 * elf/tst-array2dep.c: Likewise.
9799 * elf/tst-array2.exp: Likewise.
9800 * elf/tst-array3.c: Likewise.
9801
9802 2002-10-28 David Mosberger <davidm@hpl.hp.com>
9803
9804 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
9805 Don't add L->l_addr to array entry values.
9806
9807 2002-11-07 Jakub Jelinek <jakub@redhat.com>
9808
9809 * string/test-string.h: New file.
9810 * string/test-strlen.c: New file.
9811 * string/test-string.h: New file.
9812 * string/test-strcmp.c: New file.
9813 * string/test-strchr.c: New file.
9814 * string/test-strrchr.c: New file.
9815 * string/test-strcpy.c: New file.
9816 * string/test-stpcpy.c: New file.
9817 * string/test-strncpy.c: New file.
9818 * string/test-stpncpy.c: New file.
9819 * string/test-strpbrk.c: New file.
9820 * string/test-strcspn.c: New file.
9821 * string/test-strspn.c: New file.
9822 * string/test-strcat.c: New file.
9823 * string/test-strncmp.c: New file.
9824 * string/test-memchr.c: New file.
9825 * string/test-memcmp.c: New file.
9826 * string/test-memset.c: New file.
9827 * string/test-memcpy.c: New file.
9828 * string/test-mempcpy.c: New file.
9829 * string/test-memmove.c: New file.
9830 * string/Makefile (strop-tests): New variable.
9831 (tests): Add strop-tests.
9832 (distribute): Add test-string.h.
9833
9834 2002-11-06 Ulrich Drepper <drepper@redhat.com>
9835
9836 * posix/regcomp.c: Use tabs instead of spaces.
9837 * posix/regexec.c: Likewise.
9838 * posix/regex_internal.h: Likewise.
9839
9840 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
9841
9842 2002-11-06 Jakub Jelinek <jakub@redhat.com>
9843
9844 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
9845 here.
9846 (regcomp): Don't set can_be_null here.
9847 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
9848 (re_compile_internal): Clear can_be_null, set regs_allocated.
9849
9850 * posix/regcomp.c (re_set_fastmap): New function.
9851 (re_compile_fastmap_iter): Use it. Remove redundant type ==
9852 COMPLEX_BRACKET check.
9853 * posix/regexec.c (re_search_internal): Optimize searching with
9854 fastmap. Call re_string_reconstruct even if match_first is
9855 smaller than raw_mbs_idx.
9856
9857 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
9858
9859 * posix/regcomp (free_dfa_content): Use free_state.
9860 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
9861 pointers in case that realloc failed.
9862 (re_node_set_merge): Likewise.
9863 (register_state): Likewise.
9864 (create_newstate_common): Invoke memory release functions in case of
9865 error conditions.
9866 (create_ci_newstate): Likewise.
9867 (create_cd_newstate): Likewise.
9868 (free_state): New function.
9869 * posix/regexec.c (re_search_internal): Invoke memory release
9870 functions in case of error conditions.
9871 (sift_states_backward): Likewise.
9872 (merge_state_array): Likewise.
9873 (add_epsilon_src_nodes): Likewise.
9874 (sub_epsilon_src_nodes): Likewise.
9875 (search_subexp): Likewise.
9876 (sift_states_bkref): Likewise.
9877 (transit_state_sb): Likewise.
9878 (transit_state_mb): Likewise.
9879 (transit_state_bkref_loop): Likewise.
9880 (group_nodes_into_DFAstates): Likewise.
9881 (push_fail_stack): Don't edit pointers in case that realloc failed.
9882 (extend_buffers): Likewise.
9883 (match_ctx_add_entry): Likewise.
9884
9885 2002-11-06 Roland McGrath <roland@redhat.com>
9886
9887 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
9888 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
9889
9890 * configure.in: Add checks on as and ld for binutils 2.13 or later.
9891 * configure: Regenerated.
9892
9893 2002-11-06 Ulrich Drepper <drepper@redhat.com>
9894
9895 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
9896 If re_compile_internal failed free fastmap buffer.
9897 (free_dfa_content): Broken out of regfree function. Frees all dfa
9898 related data.
9899 (regfree): Add free_dfa_content.
9900 (re_compile_internal): If any of the called functions fails free
9901 all dfa related memory.
9902
9903 2002-11-05 Ulrich Drepper <drepper@redhat.com>
9904
9905 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
9906 warnings from the kernel headers.
9907
9908 2002-11-05 Roland McGrath <roland@redhat.com>
9909
9910 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
9911 From Johannes Stezenbach <js@convergence.de>.
9912
9913 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
9914 #errlist-compat magic comment to give 123 as size.
9915 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
9916 (libc: GLIBC_2.2): ... here.
9917 (libc: GLIBC_2.3): Likewise.
9918
9919 2002-11-05 Ulrich Drepper <drepper@redhat.com>
9920
9921 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
9922 which happens at the beginning so that we can unload modules in
9923 __libc_freeres.
9924
9925 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9926
9927 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
9928 under [__USE_MISC || _ASM].
9929
9930 * elf/elf.h: Remove the obsolete SH TLS relocations.
9931
9932 2002-11-05 Ulrich Drepper <drepper@redhat.com>
9933
9934 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
9935
9936 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9937
9938 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
9939 __NR_pread64 and __NR_pwrite64.
9940 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
9941 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
9942 and __NR_pwrite64.
9943 Revert change to use INLINE_SYSCALL.
9944 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
9945 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
9946 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
9947 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
9948 INLINE_SYSCALL.
9949 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
9950
9951 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
9952 Update clobber list and add a comment about the syscall ABI.
9953
9954 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
9955 s_pwrite64, s_ftruncate, s_truncate): Re-add.
9956
9957 2002-11-05 Jakub Jelinek <jakub@redhat.com>
9958
9959 * iconv/gconv_dl.c (free_mem): Clear loaded.
9960 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
9961 cleanup if any.
9962
9963 2002-11-05 Ulrich Drepper <drepper@redhat.com>
9964
9965 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
9966
9967 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
9968 as old code without locking. _IO_seekoff calls this function after
9969 locking the stream.
9970 * libio/ioseekpos.c: Likewise for _IO_seekpos.
9971 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
9972 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
9973 prototypes.
9974 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
9975 of _IO_seekoff_internal.
9976 (_IO_rewind): Likewise.
9977 * libio/ioftell.c: Likewise.
9978 * libio/ftello.c: Likewise.
9979 * libio/ftello64.c: Likewise.
9980 * libio/iofgetpos.c: Likewise.
9981 * libio/iofgetpos64.c: Likewise.
9982 * libio/oldiofgetpos.c: Likewise.
9983 * libio/oldiofgetpos64.c: Likewise.
9984 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
9985 _IO_seekpos_internal.
9986 * libio/iofsetpos64.c: Likewise.
9987 * libio/oldiofsetpos.c: Likewise.
9988 * libio/oldiofsetpos64.c: Likewise.
9989
9990 2002-11-04 Roland McGrath <roland@redhat.com>
9991
9992 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
9993 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
9994 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
9995 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
9996 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
9997 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
9998 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
9999 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
10000 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
10001 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
10002 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
10003 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
10004 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
10005 Remove these, no longer used.
10006
10007 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10008
10009 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
10010 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
10011 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
10012 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
10013 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
10014 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
10015 syscall stubs.
10016
10017 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
10018 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
10019 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
10020 and __NR_pread.
10021 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
10022 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
10023 and __NR_pwrite.
10024 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
10025
10026 2002-11-03 Roland McGrath <roland@redhat.com>
10027
10028 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
10029 `_dl_tls_static_used'.
10030 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
10031 (__libc_setup_tls): Initialize it. Let the initial value of
10032 _dl_tls_static_size indicate some surplus space in the computed value.
10033 * elf/dl-open.c (_dl_tls_static_size): New variable.
10034 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
10035 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
10036 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
10037 (CHECK_STATIC_TLS): Use it.
10038 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
10039 closed objects occupied a trailing contiguous chunk of static TLS area.
10040
10041 2002-10-18 Bruno Haible <bruno@clisp.org>
10042
10043 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
10044
10045 2002-11-04 Ulrich Drepper <drepper@redhat.com>
10046
10047 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
10048 _wide_data->_IO_read_end if adjustment can be made in the current
10049 buffer.
10050
10051 * sysdeps/unix/sysv/linux/fexecve.c: New file.
10052
10053 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
10054 wide oriented streams are used.
10055
10056 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
10057 service hasn't been used [PR libc/4744].
10058
10059 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
10060 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
10061
10062 * manual/examples/dir.c: Don't include <stddef.h>.
10063 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
10064 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
10065
10066 2002-11-02 H.J. Lu <hjl@gnu.org>
10067
10068 * stdio-common/reg-printf.c: Include <stddef.h>.
10069
10070 2002-11-03 Ulrich Drepper <drepper@redhat.com>
10071
10072 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
10073
10074 * po/ca.po: Update from translation team.
10075 * po/es.po: Likewise.
10076
10077 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
10078 is defined write out memory map.
10079 * sysdeps/unix/sysv/linux/segfault.c: New file.
10080
10081 2002-11-02 Roland McGrath <roland@redhat.com>
10082
10083 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
10084 pointers that can alias.
10085 Reported by Daniel Jacobowitz <drow@mvista.com>.
10086
10087 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
10088
10089 2002-11-02 Roland McGrath <roland@redhat.com>
10090
10091 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
10092 description to be clearer and to say that *RESULT is set to ENTRY.
10093
10094 2002-10-30 Jakub Jelinek <jakub@redhat.com>
10095
10096 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
10097 dests_ch arrays together. Alloca or malloc dest_states,
10098 dest_states_word and dest_states_nl arrays together. Free memory on
10099 error exit.
10100
10101 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
10102
10103 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
10104 and current_saltbits.
10105
10106 2002-11-02 Roland McGrath <roland@redhat.com>
10107
10108 * stdio-common/reg-printf.c: Include <stdlib.h>.
10109
10110 2002-11-02 H.J. Lu <hjl@gnu.org>
10111
10112 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
10113 caller to EXTRA instead of execve.
10114
10115 2002-11-01 Roland McGrath <roland@redhat.com>
10116
10117 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
10118 in place of [!(USE_TLS && HAVE___THREAD)].
10119 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
10120
10121 2002-10-31 Roger Sayle <roger@eyesopen.com>
10122
10123 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
10124 New macros.
10125 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
10126
10127 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
10128 without defining FP_ROUNDMODE.
10129
10130 2002-10-29 Jakub Jelinek <jakub@redhat.com>
10131
10132 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
10133 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
10134 declare_symbol.
10135 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
10136 (OLD_SIGLIST_SIZE): Define.
10137 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
10138 (OLD_SIGLIST_SIZE): Define.
10139 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
10140
10141 2002-11-01 Jakub Jelinek <jakub@redhat.com>
10142
10143 * sysdeps/ia64/strncpy.S: Fix recovery code.
10144
10145 2002-10-30 Jakub Jelinek <jakub@redhat.com>
10146
10147 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
10148 New macros.
10149 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
10150 text_set_element.
10151 * elf/dl-libc.c (free_mem): Likewise.
10152 * iconv/gconv_conf.c (free_mem): Likewise.
10153 * iconv/gconv_db.c (free_mem): Likewise.
10154 * iconv/gconv_dl.c (free_mem): Likewise.
10155 * iconv/gconv_cache.c (free_mem): Likewise.
10156 * intl/finddomain.c (free_mem): Likewise.
10157 * intl/dcigettext.c (free_mem): Likewise.
10158 * locale/setlocale.c (free_mem): Likewise.
10159 * misc/fstab.c (fstab_free): Likewise.
10160 * nss/nsswitch.c (free_mem): Likewise.
10161 * posix/regcomp.c (free_mem): Likewise.
10162 * resolv/gai_misc.c (free_res): Likewise.
10163 * stdlib/fmtmsg.c (free_mem): Likewise.
10164 * sunrpc/clnt_perr.c (free_mem): Likewise.
10165 * sysdeps/generic/setenv.c (free_mem): Likewise.
10166 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
10167 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
10168 * time/tzset.c (free_mem): Likewise.
10169 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
10170 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
10171 * malloc/set-freeres.c (__libc_freeres): Likewise.
10172
10173 * login/getutent.c: Include stdlib.h instead of stddef.h.
10174 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
10175 (__getutent): Allocate buffer the first time it is run.
10176 * login/getutid.c: Include stdlib.h instead of stddef.h.
10177 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
10178 (__getutid): Allocate buffer the first time it is run.
10179 * login/getutline.c: Include stdlib.h instead of stddef.h.
10180 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
10181 (__getutline): Allocate buffer the first time it is run.
10182 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
10183 (mtrace): Allocate malloc_trace_buffer.
10184 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
10185 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
10186 * string/strerror.c: Include libintl.h and errno.h.
10187 (buf): New variable.
10188 (strerror): Only allocate buffer if actually needed (unknown error).
10189 * time/tzfile.c (transitions): Add libc_freeres_ptr.
10190 (freeres): Remove.
10191
10192 2002-10-25 Jakub Jelinek <jakub@redhat.com>
10193
10194 * include/libc-symbols.h (libc_freeres_ptr): New macro.
10195 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
10196 symbol_set_define.
10197 (__libc_freeres): Free all pointers in that section.
10198 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
10199 commands when creating .lds script.
10200 (LDSEDCMD-c.so): New variable.
10201 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
10202 (rcmd_af): Use strdup to allocate ahostbuf.
10203 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
10204 (rexec_af): Use strdup to allocate ahostbuf.
10205 * stdio-common/reg-printf.c (printf_funcs): Remove.
10206 (__printf_arginfo_table): Change into printf_arginfo_function **.
10207 Add libc_freeres_ptr.
10208 (__register_printf_function): Allocate __printf_arginfo_table
10209 and __printf_function_table the first time it is called.
10210 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
10211 printf_arginfo_function **.
10212 (parse_one_spec): Add __builtin_expect.
10213 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
10214 (free_mem): Remove.
10215 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
10216 (free_mem): Remove.
10217 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
10218 (string_space, map): Add libc_freeres_ptr.
10219 (free_mem): Remove.
10220 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
10221 (free_mem): Remove.
10222 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
10223 (free_mem): Remove.
10224 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
10225 (buffer): Add libc_freeres_ptr.
10226 (free_mem): Remove for _LIBC.
10227 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
10228 (free_mem): Remove.
10229 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
10230 (free_mem): Remove.
10231 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
10232 (free_mem): Remove.
10233 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
10234 (free_mem): Remove.
10235 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
10236 (free_mem): Remove.
10237 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
10238 (free_mem): Remove.
10239 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
10240 libc_freeres_ptr.
10241 (free_mem): Remove.
10242 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
10243 libc_freeres_ptr.
10244 (free_mem): Remove.
10245
10246 2002-10-30 Jakub Jelinek <jakub@redhat.com>
10247
10248 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
10249 instead of duplicating the whole function in libc.
10250
10251 2002-10-31 Roland McGrath <roland@redhat.com>
10252
10253 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
10254 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
10255
10256 2002-10-30 Jakub Jelinek <jakub@redhat.com>
10257
10258 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
10259 32bit-predefine when creating .new32 list and -U for each
10260 32bit-predefine when creating .new64 list.
10261 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
10262
10263 2002-10-29 Andreas Schwab <schwab@suse.de>
10264
10265 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
10266 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
10267
10268 2002-10-25 Roland McGrath <roland@redhat.com>
10269
10270 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
10271 * sysdeps/unix/sysv/linux/configure: Regenerated.
10272
10273 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
10274 _dl_starting_up decl.
10275
10276 2002-10-20 H.J. Lu <hjl@gnu.org>
10277
10278 * sysdeps/unix/sysv/linux/configure.in: Don't check
10279 /lib/modules/`uname -r`/build/include for kernel headers if
10280 cross compiling.
10281 * sysdeps/unix/sysv/linux/configure: Regenerated.
10282
10283 2002-10-25 Roland McGrath <roland@redhat.com>
10284
10285 * math/math.h (M_LOG2El): Correct the value.
10286 From Stephen L Moshier <steve@moshier.net>.
10287
10288 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
10289 conditional from __libc_multiple_libcs access. Remove kludge for weak
10290 symbol access with old compilers we no longer support.
10291 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
10292 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
10293
10294 2002-10-25 Roland McGrath <roland@redhat.com>
10295
10296 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
10297 implement SV_RESETHAND by translating it to SA_RESETHAND.
10298
10299 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
10300
10301 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
10302 type on ELF64 platforms.
10303
10304 2002-10-24 Ulrich Drepper <drepper@redhat.com>
10305
10306 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
10307
10308 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
10309
10310 2002-10-24 Jakub Jelinek <jakub@redhat.com>
10311
10312 * elf/dl-misc.c: Include <sysdep.h>.
10313 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
10314
10315 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
10316 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
10317 (INLINE_SYSCALL): Use that.
10318 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
10319 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
10320 (INLINE_SYSCALL): Use that.
10321 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
10322 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
10323 (INLINE_SYSCALL): Use that.
10324 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
10325 dl-sysdep.h.
10326 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
10327 (__INTERNAL_SYSCALL_STRING): Define.
10328 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
10329 dl-sysdep.h.
10330 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
10331 (__INTERNAL_SYSCALL_STRING): Define.
10332 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
10333 __SYSCALL_STRING to inline_syscall*.
10334 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
10335 New macros.
10336 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
10337 inline_syscall4, inline_syscall5, inline_syscall6): Add string
10338 argument.
10339
10340 2002-10-24 Roland McGrath <roland@redhat.com>
10341
10342 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
10343 * sysdeps/unix/sysv/linux/init-first.c: Not here.
10344 * sysdeps/powerpc/elf/libc-start.c: Or here.
10345 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
10346 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
10347 * sysdeps/unix/sysv/aix/init-first.c: Or here.
10348 * sysdeps/generic/libc-start.c: Or here.
10349 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
10350 access with [! SHARED].
10351 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
10352
10353 * libio/bug-wfflush.c: New file.
10354 * libio/Makefile (tests): Add bug-wfflush.
10355
10356 2002-10-23 Roland McGrath <roland@redhat.com>
10357
10358 * stdio-common/tst-fphex.c: New file.
10359 * stdio-common/Makefile (tests): Add tst-fphex.
10360 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
10361 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
10362 chars always before the value digits.
10363 Reported by James Antill <james.antill@redhat.com>.
10364
10365 2002-10-24 Jakub Jelinek <jakub@redhat.com>
10366
10367 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
10368 (free_mem): New function.
10369 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
10370 if not cross compiling.
10371 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
10372 (bug-regex14-ENV): Set.
10373 (bug-regex14-mem): New target.
10374 * posix/bug-regex14.c: New file.
10375
10376 2002-10-23 Roland McGrath <roland@redhat.com>
10377
10378 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
10379 target, so we don't touch it when the link fails.
10380
10381 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
10382 Check for the result overflowing off_t and fail with EOVERFLOW.
10383 * libio/ioftell.c (_IO_ftell): Likewise.
10384 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
10385
10386 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
10387 use a temporary timeval on the stack for gettimeofday and copy it.
10388 * login/logout.c (logout): Likewise.
10389 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
10390
10391 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
10392 Use __SWORD_TYPE instead of int for member types.
10393 (struct statfs64): Likewise.
10394 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
10395 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
10396 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
10397 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
10398 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
10399
10400 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
10401 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
10402 (ST_NODIRATIME): Restore fixed value of 2048.
10403 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
10404 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
10405
10406 Rearranged <bits/types.h> definitions to reduce duplication.
10407 * sysdeps/generic/bits/types.h: Rewritten, using macros from
10408 <bits/wordsize.h> and new header <bits/typesizes.h>.
10409 * posix/Makefile (headers): Add bits/typesizes.h here.
10410 * sysdeps/generic/bits/typesizes.h: New file.
10411 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
10412 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
10413 * sysdeps/mach/hurd/bits/typesizes.h: New file.
10414 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
10415 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
10416 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
10417 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
10418 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
10419 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
10420 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
10421 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
10422 <bits/pthreadtypes.h> here, not in <bits/types.h>.
10423 * signal/signal.h: Likewise.
10424
10425 * streams/stropts.h: Include <bits/xtitypes.h>.
10426 * streams/Makefile (headers): Add bits/xtitypes.h here.
10427 * sysdeps/generic/bits/xtitypes.h: New file.
10428 * sysdeps/s390/bits/xtitypes.h: New file.
10429 * sysdeps/ia64/bits/xtitypes.h: New file.
10430 * sysdeps/x86_64/bits/xtitypes.h: New file.
10431
10432 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
10433 * sysdeps/generic/bits/ipctypes.h: New file.
10434 * sysdeps/mips/bits/ipctypes.h: New file.
10435 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
10436 * sysdeps/gnu/bits/msq.h: Likewise.
10437 * sysvipc/sys/ipc.h: Likewise.
10438
10439 2002-10-22 Ulrich Drepper <drepper@redhat.com>
10440
10441 * elf/dl-load.c (struct filebuf): For buf element to have the
10442 alignment of ElfXX_Ehdr since this is what will be stored in it.
10443
10444 2002-10-22 Jakub Jelinek <jakub@redhat.com>
10445
10446 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
10447 into pointer to locrec_offset.
10448 (add_locale_to_archive): Adjust callers. Free normalized_name right
10449 before returning, not immediately after add_locale, pass it to
10450 add_alias if not NULL instead of name. Rename second normalized_name
10451 occurence to nnormalized_codeset_name.
10452
10453 * locale/programs/locarchive.c (enlarge_archive): Make sure
10454 string_size is always a multiple of 4.
10455 Reported by Andreas Schwab <schwab@suse.de>.
10456
10457 2002-10-21 Andreas Schwab <schwab@suse.de>
10458
10459 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
10460 caller to EXTRA instead of execve, since the latter has a
10461 higher-priority implementation in linuxthreads.
10462
10463 2002-10-21 Roland McGrath <roland@redhat.com>
10464
10465 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
10466 slotinfo list's len member to the proper size, not just 1.
10467 Initialize static_map.l_tls_initimage.
10468
10469 * elf/dl-open.c (dl_open_worker): Fix loop searching for
10470 dtv_slotinfo_list element containing new modules' l_tls_modid.
10471
10472 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
10473 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
10474 * elf/Makefile (tests): Add tst-tls9.
10475 (tests-static): Add tst-tls9-static.
10476 (tst-tls9-static-ENV): New variable.
10477 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
10478
10479 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
10480 modids used by partially loaded modules being closed can't be known.
10481
10482 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
10483
10484 * posix/Makefile: Add a test case for the bug reported by Aharon
10485 Robbins <arnold@skeeve.com>.
10486 * posix/bug-regex13.c: New file.
10487 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
10488
10489 2002-10-21 Ulrich Drepper <drepper@redhat.com>
10490
10491 * csu/gmon-start.c: Pretty printing.
10492
10493 2002-10-19 Art Haas <ahaas@neosoft.com>
10494
10495 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
10496 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
10497 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
10498 * configure: Regenerated.
10499
10500 2002-10-19 Roland McGrath <roland@redhat.com>
10501
10502 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
10503 and then set $subdirs directly, because the new Autoconf breaks
10504 compatibility in every way imaginable and insists on whining
10505 about usage that worked since the dawn of time.
10506 * configure: Regenerated.
10507
10508 * configure: Regenerated (using Autoconf 2.54).
10509 * sysdeps/alpha/elf/configure: Likewise.
10510 * sysdeps/generic/configure: Likewise.
10511 * sysdeps/i386/elf/configure: Likewise.
10512 * sysdeps/ia64/elf/configure: Likewise.
10513 * sysdeps/mach/hurd/configure: Likewise.
10514 * sysdeps/mach/configure: Likewise.
10515 * sysdeps/unix/configure: Likewise.
10516 * sysdeps/unix/common/configure: Likewise.
10517 * sysdeps/unix/sysv/aix/configure: Likewise.
10518 * sysdeps/unix/sysv/linux/configure: Likewise.
10519 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
10520 * sysdeps/x86_64/elf/configure: Likewise.
10521
10522 * config.make.in: Nix completely-soft nonsense.
10523 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
10524 of machine directories instead of fpu subdirectory.
10525 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
10526 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
10527 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
10528 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
10529 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
10530 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
10531 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
10532 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
10533 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
10534 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
10535 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
10536 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
10537 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
10538 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
10539 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
10540 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
10541 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
10542 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
10543 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
10544 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
10545 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
10546 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
10547 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
10548 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
10549 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
10550 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
10551 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
10552 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
10553 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
10554 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
10555 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
10556 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
10557 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
10558 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
10559 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
10560 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
10561 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
10562 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
10563 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
10564 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
10565
10566 2002-10-19 Bruno Haible <bruno@clisp.org>
10567
10568 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
10569
10570 2002-10-18 Roland McGrath <roland@redhat.com>
10571
10572 * io/Makefile (routines): Add lchmod.
10573 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
10574 * sysdeps/generic/lchmod.c: New file.
10575 * sysdeps/mach/hurd/lchmod.c: New file.
10576 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
10577
10578 2002-10-18 Art Haas <ahaas@neosoft.com>
10579
10580 * configure.in: Remove remaining AC_FD_CC macros, and replace
10581 AC_FD_MSG with AS_MESSAGE_FD.
10582
10583 2002-10-18 Roland McGrath <roland@redhat.com>
10584
10585 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
10586 typos: VALUE -> FINALADDR.
10587
10588 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
10589 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
10590 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
10591 (inline_syscall6): Move these macros ...
10592 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
10593
10594 * configure.in (libc_link_dests, libc_link_sources): Remove these
10595 variables and the AC_LINK_FILES call.
10596
10597 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
10598 change to put new symbols here instead of in GLIBC_2.2.
10599 * sysdeps/powerpc/Subdirs: Move this file ...
10600 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
10601
10602 2002-10-07 Roland McGrath <roland@redhat.com>
10603
10604 * sysdeps/generic/bits/time.h: Replaced with contents of the
10605 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
10606 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
10607 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
10608 macros is ok even for architectures that don't now implement them.
10609 * sysdeps/mach/hurd/bits/time.h: File removed.
10610 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
10611 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
10612 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
10613 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
10614 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
10615
10616 2002-10-18 Jeff Bailey <jbailey@gnu.org>
10617
10618 * configure.in: Replace obsolete AC_OUTPUT syntax with
10619 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
10620
10621 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
10622 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
10623
10624 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
10625 * sysdeps/alpha/elf/configure.in: Likewise.
10626 * sysdeps/i386/elf/configure.in: Likewise.
10627 * sysdeps/mach/hurd/configure.in: Likewise.
10628 * sysdeps/x86_64/elf/configure.in: Likewise.
10629
10630 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
10631
10632 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
10633 * sysdeps/generic/configure.in: Likewise.
10634 * sysdeps/i386/elf/configure.in: Likewise.
10635 * sysdeps/ia64/elf/configure.in: Likewise.
10636 * sysdeps/mach/configure.in: Likewise.
10637 * sysdeps/mach/hurd/configure.in: Likewise.
10638 * sysdeps/unix/configure.in: Likewise.
10639 * sysdeps/unix/common/configure.in: Likewise.
10640 * sysdeps/unix/sysv/aix/configure.in: Likewise.
10641 * sysdeps/unix/sysv/linux/configure.in: Likewise.
10642 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
10643 * sysdeps/x86_64/elf/configure.in: Likewise.
10644
10645 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
10646 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
10647 that it's obvious when extra autoconf machinery is being dragged in.
10648
10649 2002-10-18 Roland McGrath <roland@redhat.com>
10650
10651 * configure.in: Remove bogus echo included in
10652 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
10653 * configure: Regenerated.
10654
10655 2002-10-18 Jakub Jelinek <jakub@redhat.com>
10656
10657 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
10658 (statfs_filesize_max): New function.
10659 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
10660 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
10661 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
10662 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
10663 statfs_filesize_max.
10664 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
10665 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
10666 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
10667
10668 2002-10-17 Roland McGrath <roland@redhat.com>
10669
10670 * configure.in (MIG): Just AC_SUBST it here.
10671 * configure: Regenerated.
10672 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
10673 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
10674 * sysdeps/mach/configure: Regenerated.
10675
10676 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
10677 and AC_PROVIDE([_AS_CR_PREPARE]).
10678
10679 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
10680 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
10681
10682 * elf/dl-support.c: Move _dl_tls_* variables to ...
10683 * sysdeps/generic/libc-tls.c: ... here.
10684
10685 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
10686 allow IDX to be one past the current last slotinfo entry.
10687 (_dl_close): Pass IMAP->l_init_called for that parameter.
10688
10689 2002-10-07 Andreas Schwab <schwab@suse.de>
10690
10691 * aclocal.m4: Fix for autoconf 2.53.
10692 * configure.in: Likewise. Require autoconf 2.53.
10693
10694 2002-10-08 Richard Henderson <rth@redhat.com>
10695
10696 * soft-fp/op-4.h: Handle carry correctly in
10697 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
10698 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
10699 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
10700
10701 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
10702
10703 * configure.in: Compute completely-soft.
10704 * config.make.in: Make completely-soft available to sub-makes.
10705 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
10706 gcc-double-routines. Add sim-full.c. Add fenv_const and
10707 fe_nomask to libm-support.
10708 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
10709 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
10710 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
10711 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
10712 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
10713 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
10714 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
10715 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
10716 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
10717 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
10718 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
10719 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
10720 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
10721 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
10722 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
10723 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
10724 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
10725 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
10726 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
10727 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
10728 __sim_round_mode.
10729 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
10730 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
10731 FP_HANDLE_EXCEPTIONS.
10732 Define FP_ROUNDMODE.
10733 Redefine FP_* macros to correspond to the FE_* bit positions.
10734 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
10735 Define externs for __sim_exceptions, __sim_disabled_exceptions,
10736 __sim_round_mode, __simulate_exceptions.
10737 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
10738 * sysdeps/powerpc/bits/fenv.h: ...to here.
10739
10740 2002-10-06 Jakub Jelinek <jakub@redhat.com>
10741
10742 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
10743 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
10744 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
10745 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
10746 __builtin_expect.
10747
10748 2002-10-15 Jakub Jelinek <jakub@redhat.com>
10749
10750 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
10751 __libc_res_nsend): New prototypes.
10752 * resolv/res_query.c (QUERYSIZE): Define.
10753 (__libc_res_nquery): Renamed from res_nquery. Added answerp
10754 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
10755 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
10756 res_nsend, pass answerp.
10757 (res_nquery): Changed into wrapper around __libc_res_nquery.
10758 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
10759 argument. Call __libc_res_nquerydomain and __libc_res_nquery
10760 instead of the non-__libc_ variants, pass them answerp.
10761 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
10762 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
10763 Added answerp argument. Call __libc_res_nquery instead of
10764 res_nquery, pass answerp.
10765 (res_nquerydomain): Changed into wrapper around
10766 __libc_res_nquerydomain.
10767 * resolv/res_send.c: Include sys/ioctl.h.
10768 (MAXPACKET): Define.
10769 (send_vc): Change arguments. Reallocate answer buffer if it is
10770 too small.
10771 (send_dg): Likewise.
10772 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
10773 Reallocate answer buffer if it is too small and hooks are in use.
10774 Adjust calls to send_vc and send_dg.
10775 (res_nsend): Changed into wrapper around __libc_res_nsend.
10776 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
10777 just 1K answer buffer on the stack, use __libc_res_nsearch instead
10778 of res_nsearch.
10779 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
10780 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
10781 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
10782 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
10783 (gethostbyaddr): Similarly with __libc_res_nquery.
10784 * resolv/Versions (libresolv): Export __libc_res_nquery and
10785 __libc_res_nsearch at GLIBC_PRIVATE.
10786
10787 2002-10-17 Roland McGrath <roland@redhat.com>
10788
10789 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
10790 * configure: Regenerated.
10791
10792 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
10793 before performing the reloc, not after.
10794 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
10795
10796 2002-10-17 Ulrich Drepper <drepper@redhat.com>
10797
10798 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
10799 * locale/programs/linereader.c (lr_open): Likewise.
10800 * locale/programs/charmap-dir.c (charmap_open): Likewise.
10801 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
10802
10803 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
10804
10805 * posix/bug-regex11.c: Add a test case for the bug reported by
10806 Paolo Bonzini <bonzini@gnu.org>.
10807 * posix/regexec.c (sift_states_bkref): Use correct destination of
10808 the back reference.
10809
10810 2002-10-17 Roland McGrath <roland@redhat.com>
10811
10812 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
10813 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
10814 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
10815 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
10816 Call it after performing TPOFF relocs.
10817 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
10818 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
10819 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
10820
10821 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
10822 when closing a partially-initialized object.
10823
10824 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
10825 instead of _dl_fatal_printf when we see PT_TLS.
10826
10827 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
10828 instead of $(libof-$<).
10829
10830 2002-10-16 Roland McGrath <roland@redhat.com>
10831
10832 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
10833 instead of += to append, to be sure $(lib) gets expanded at defn time.
10834 (libof-$(cpp-src)): New variable, define this instead.
10835 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
10836 (lib): Don't use override.
10837 (CPPFLAGS-$(lib)): New variable, put -D's here.
10838 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
10839 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
10840 LIB found by $(libof-*) for basename, target, or source.
10841 * Makerules (CPPFLAGS-nonlib): New variable.
10842 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
10843 * locale/Makefile (lib): Likewise.
10844 * sunrpc/Makefile (lib): Likewise.
10845
10846 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
10847 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
10848 * sysdeps/unix/sysv/linux/pathconf.h: New file.
10849 (statfs_link_max): New function, guts from fpathconf.c.
10850 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
10851 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
10852 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
10853 to use the linux/pathconf.c code by #include rather than duplication.
10854 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
10855
10856 2002-10-16 Jakub Jelinek <jakub@redhat.com>
10857
10858 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
10859 Use __libc_errno only for libc itself.
10860
10861 2002-10-16 Andreas Jaeger <aj@suse.de>
10862
10863 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
10864
10865 2002-10-16 Ulrich Drepper <drepper@redhat.com>
10866
10867 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
10868 Use __libc_errno only for libc itself.
10869
10870 2002-10-15 Roland McGrath <roland@redhat.com>
10871 Jakub Jelinek <jakub@redhat.com>
10872
10873 * sysdeps/unix/sysv/linux/Makefile
10874 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
10875 sparc/Makefile to produce a bi-arch file as needed.
10876 That's now parameterized by the variable $(64bit-predefine).
10877 Use LC_ALL=C for `comm' commands in that rule.
10878 No longer conditional on [$(no_syscall_list_h)].
10879 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
10880 (64bit-predefine): New variable.
10881 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
10882 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
10883 * sysdeps/unix/sysv/linux/powerpc/Makefile
10884 (64bit-predefine): New variable.
10885
10886 2002-10-15 Roland McGrath <roland@redhat.com>
10887
10888 * sysdeps/unix/sysv/linux/Makefile
10889 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
10890
10891 * login/utmp-private.h: Declare __libc_utmp_lock.
10892 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
10893 and call __libc_utmp_jump_table functions directly, instead of using
10894 __setutent et al.
10895
10896 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
10897 * sysdeps/unix/sysv/linux/configure: Regenerated.
10898
10899 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
10900 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
10901 Use int32_t for ll_time.
10902 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
10903 Use int32_t instead of long int for ut_session.
10904 Use an anonymous struct with 32-bit fields for ut_tv.
10905 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
10906 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
10907 here as in utmp.h for `struct utmp'.
10908 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
10909 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
10910 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
10911 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
10912 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
10913 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
10914
10915 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
10916 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
10917 All the following files were identical or equivalent to it.
10918 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
10919 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
10920 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
10921 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
10922 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
10923 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
10924 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
10925 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
10926 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
10927 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
10928
10929 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
10930 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
10931 Other than the previously incorrect sign of msg_iovlen, this is a
10932 no-op on 32-bit platforms. On 64-bit platforms it makes this header
10933 match their layouts as well, so the following are now identical to it.
10934 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
10935 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
10936 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
10937 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
10938 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
10939
10940 2002-10-15 Ulrich Drepper <drepper@redhat.com>
10941
10942 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
10943 Define for 2.4+ kernels.
10944
10945 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
10946 are known to have the vfork syscall. Don't confuse the CPUs
10947 branch prediction unit by jumping to the return address.
10948
10949 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
10950 support for reiserfs and xfs.
10951
10952 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
10953 XFS link count.
10954 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
10955 and XFS_LINK_MAX.
10956 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
10957
10958 2002-10-16 Jakub Jelinek <jakub@redhat.com>
10959
10960 * include/libc-symbols.h (attribute_tls_model_ie): Define.
10961 * include/errno.h (errno): Define to __libc_errno in libc.so.
10962 Add attribute_tls_model_ie.
10963 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
10964 Add attribute_tls_model_ie.
10965 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
10966 attribute_tls_model_ie.
10967 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
10968 (h_errno): Define.
10969 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
10970 (_res): Define.
10971 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
10972 attribute_tls_model_ie.
10973 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
10974 __thread.
10975 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
10976 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
10977 __libc_errno in USE___THREAD case.
10978 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
10979 Likewise.
10980 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
10981 __attribute__((tls_model (""))).
10982 * configure: Rebuilt.
10983 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
10984
10985 2002-10-15 Ulrich Drepper <drepper@redhat.com>
10986
10987 * timezone/asia: Update from tzdata2002d.
10988 * timezone/australasia: Likewise.
10989 * timezone/iso3166.tab: Likewise.
10990 * timezone/southamerica: Likewise.
10991 * timezone/zone-tab: Likewise.
10992
10993 2002-10-15 Roland McGrath <roland@redhat.com>
10994
10995 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
10996 Adjust TCB pointer before calling free, so we get the whole block.
10997
10998 2002-10-14 Roland McGrath <roland@redhat.com>
10999
11000 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
11001 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
11002 extern using attribute_hidden instead of static, avoids warning.
11003
11004 2002-10-09 Jakub Jelinek <jakub@redhat.com>
11005
11006 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
11007 * sysdeps/unix/sysv/linux/configure: Rebuilt.
11008
11009 2002-10-14 Ulrich Drepper <drepper@redhat.com>
11010
11011 * po/sv.po: Update from translation team.
11012
11013 2002-10-12 H.J. Lu <hjl@gnu.org>
11014
11015 * sunrpc/thrsvc.c (PROCQUIT): New.
11016 (struct rpc_arg): New.
11017 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
11018 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
11019 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
11020 (main): Modified for struct rpc_arg *.
11021
11022 2002-10-14 Ulrich Drepper <drepper@redhat.com>
11023
11024 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
11025
11026 2002-10-14 Jakub Jelinek <jakub@redhat.com>
11027
11028 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
11029 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
11030 in ld.so even if __thread is supported.
11031
11032 2002-10-13 Jakub Jelinek <jakub@redhat.com>
11033
11034 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
11035 Add hack to prevent the compiler from clobbering the signal context.
11036 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
11037 Likewise.
11038 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
11039 Likewise.
11040
11041 2002-10-14 Andreas Jaeger <aj@suse.de>
11042
11043 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
11044 Guido Guenther <agx@sigxcpu.org>.
11045
11046 2002-10-14 Ulrich Drepper <drepper@redhat.com>
11047
11048 * po/sk.po: Update from translation team.
11049
11050 2002-09-26 Roland McGrath <roland@redhat.com>
11051
11052 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
11053 dynamic string tag.
11054 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
11055 DL_DST_LIB based on $(slibdir).
11056
11057 2002-10-13 Roland McGrath <roland@frob.com>
11058
11059 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
11060
11061 * sysdeps/mach/hurd/getresuid.c: New file.
11062 * sysdeps/mach/hurd/getresgid.c: New file.
11063 * sysdeps/mach/hurd/setresuid.c: New file.
11064 * sysdeps/mach/hurd/setresgid.c: New file.
11065
11066 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
11067 setresgid): Declare them.
11068 * NEWS: Mention it.
11069 * include/unistd.h
11070 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
11071 add libc_hidden_proto.
11072 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
11073 getresuid, getresgid, setresuid, setresgid here.
11074 * Versions.def (libc): Define GLIBC_2.3.2 set.
11075 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
11076 Add libc_hidden_def.
11077 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
11078 * sysdeps/generic/setresgid.c: New file.
11079 * sysdeps/generic/setresuid.c: New file.
11080 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
11081 (sysdep_routines): Don't add getresuid and getresgid here.
11082 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
11083 (sysdep_routines): Don't add setresuid and setresgid here.
11084 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
11085 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
11086 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11087 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
11088 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11089 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11090 * posix/Makefile (routines): Add them all here instead.
11091 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
11092 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
11093 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
11094 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
11095 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
11096 [! __NR_setresuid]: Include generic file.
11097 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
11098 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
11099 [! __NR_setresuid]: Include generic file.
11100 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
11101 Caller is - now, not EXTRA.
11102 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
11103 (setresuid, setresgid, getresuid, getresgid): Likewise.
11104 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
11105 Add these calls here.
11106 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
11107 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
11108 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
11109 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
11110 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
11111 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
11112 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
11113 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
11114 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
11115
11116 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
11117 (sysdep_routines): Add setfsuid and setfsgid here.
11118 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
11119 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
11120 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
11121 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
11122 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11123 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
11124 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11125 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11126
11127 * hurd/errno.c: Renamed to ...
11128 * hurd/errno-loc.c: ... this.
11129 * hurd/Makefile (routines): errno -> errno-loc
11130
11131 2002-10-13 Ulrich Drepper <drepper@redhat.com>
11132
11133 * po/de.po: Update from translation team.
11134
11135 * MakeTAGS: Add -E flag to xgettext runs.
11136
11137 2002-10-12 Ulrich Drepper <drepper@redhat.com>
11138
11139 * po/fr.po: Update from translation team.
11140
11141 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
11142 Optimize a bit for use in glibc.
11143
11144 2002-10-12 Roland McGrath <roland@redhat.com>
11145
11146 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
11147 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
11148
11149 2002-10-12 Ulrich Drepper <drepper@redhat.com>
11150
11151 * po/sv.po: Update from translation team.
11152
11153 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
11154
11155 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
11156 OP_CONTEXT_NODE.
11157 (regfree): Likewise.
11158 (create_initial_state): Likewise.
11159 (analyze): Remove the substitutions which became useless.
11160 (calc_first): Likewise.
11161 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
11162 epsilon destination.
11163 (duplicate_node_closure): New function.
11164 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
11165 (calc_inveclosure): Likewise.
11166 (calc_eclosure): Likewise.
11167 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
11168 direct invocation of duplicate_node.
11169 (parse): Don't use comma operator in the return to avoid compiler
11170 warning.
11171 (parse_reg_exp): Likewise.
11172 (parse_branch): Likewise.
11173 (parse_expression): Likewise.
11174 (parse_sub_exp): Likewise.
11175 (parse_dup_op): Likewise.
11176 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
11177 which became useless.
11178 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
11179 (create_cd_newstate): Likewise.
11180 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
11181 (re_token_t): Likewise.
11182 (re_dfa_t): Likewise.
11183 (re_node_set_remove): New macro.
11184 * posix/regexec.c (check_matching): Remove the handling
11185 OP_CONTEXT_NODE.
11186 (check_halt_node_context): Likewise.
11187 (proceed_next_node): Likewise.
11188 (pop_fail_stack): Fix the memory leak.
11189 (set_regs): Likewise.
11190 (free_fail_stack_return): New function.
11191 (sift_states_backward): Fix the memory leak. Remove the handling
11192 OP_CONTEXT_NODE.
11193 (update_cur_sifted_state): Append some if clause to avoid redundant
11194 call.
11195 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
11196 back reference.
11197 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
11198 (check_subexp_limits): Likewise.
11199 (search_subexp): Likewise.
11200 (sift_states_bkref): Likewise.
11201 (transit_state_mb): Likewise.
11202 (transit_state_bkref_loop): Likewise.
11203 (transit_state_bkref_loop): Likewise.
11204 (group_nodes_into_DFAstates): Likewise.
11205 (check_node_accept): Likewise.
11206 (sift_ctx_init): Add initializing.
11207
11208 2002-10-12 Ulrich Drepper <drepper@redhat.com>
11209
11210 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
11211 __builtin_expect.
11212
11213 2002-10-11 Ulrich Drepper <drepper@redhat.com>
11214
11215 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
11216 duplicated variable c.
11217
11218 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
11219 if possible.
11220
11221 * sysdeps/unix/sysv/linux/i386/sysdep.h
11222 (INTERNAL_SYSCALL_ERROR_P): New define.
11223 (INTERNAL_SYSCALL_ERRNO): Likewise.
11224
11225 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
11226 Add hack to prevent the compiler from clobbering the signal context.
11227
11228 2002-10-11 Roland McGrath <roland@redhat.com>
11229
11230 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
11231 Fix typos.
11232
11233 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
11234 * sysdeps/sh/dl-lookupcfg.h: File removed.
11235 * sysdeps/i386/dl-lookupcfg.h: File removed.
11236
11237 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
11238 missing labels and ; from last change.
11239
11240 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
11241 number literals, so they are doubles instead of ints.
11242
11243 2002-10-09 Roland McGrath <roland@redhat.com>
11244
11245 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
11246 changed from [USE_TLS && HAVE___THREAD].
11247
11248 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
11249 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
11250 * sysdeps/x86_64/dl-machine.h
11251 (elf_machine_type_class, elf_machine_rela): Likewise.
11252 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
11253 Likewise.
11254
11255 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
11256 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
11257 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
11258
11259 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
11260 instead of ___tls_get_addr.
11261 (___tls_get_addr_internal): Add attribute_hidden to decl.
11262
11263 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
11264 _dl_error_catch_tsd.
11265 * elf/rtld.c (startup_error_tsd): New function.
11266 (dl_main): Point _dl_error_catch_tsd at that.
11267 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
11268 use new function pointer instead.
11269 * elf/dl-tsd.c: New file.
11270 * elf/Makefile (routines): Add it.
11271
11272 2002-10-07 Roland McGrath <roland@redhat.com>
11273
11274 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
11275 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
11276 take _dl_load_lock around calling __writev.
11277
11278 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
11279 (INLINE_SYSCALL): Use that.
11280
11281 * sysdeps/generic/dl-sysdep.h: New file.
11282 * sysdeps/mach/hurd/dl-sysdep.h: New file.
11283 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
11284 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
11285 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
11286 access it directly.
11287 * elf/dl-minimal.c (__errno_location): Removed.
11288 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
11289 Use GOTOFF access for errno.
11290 * sysdeps/unix/sysv/linux/i386/sysdep.h
11291 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
11292
11293 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
11294 Use PC-relative access for errno.
11295 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
11296 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
11297
11298 * include/tls.h: New file.
11299 (USE___THREAD): New macro.
11300 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
11301 libc or libpthread.
11302 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
11303 changed from [USE_TLS && HAVE___THREAD].
11304 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11305 * sysdeps/unix/i386/sysdep.S: Likewise.
11306 * sysdeps/unix/x86_64/sysdep.S: Likewise.
11307 * include/errno.h: Likewise.
11308 * include/netdb.h: Likewise.
11309 * include/resolv.h: Likewise.
11310
11311 * sysdeps/generic/errno.c: New file.
11312 * csu/Makefile (aux): New variable, list errno.
11313 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
11314 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
11315 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
11316 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
11317 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
11318 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
11319 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
11320 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
11321 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
11322 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
11323 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
11324 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
11325 * sysdeps/unix/alpha/sysdep.S: Likewise.
11326 * sysdeps/generic/start.c: Likewise.
11327 * sysdeps/unix/start.c: Likewise.
11328 * sysdeps/unix/arm/start.c: Likewise.
11329 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
11330 * sysdeps/unix/sparc/start.c: Likewise.
11331 * sysdeps/unix/sysv/irix4/start.c: Likewise.
11332 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
11333
11334 * manual/search.texi (Tree Search Function, Hash Search Function):
11335 Mention search.h clearly.
11336
11337 2002-10-05 Roland McGrath <roland@redhat.com>
11338
11339 * elf/dl-fxstat64.c: File removed.
11340 * elf/dl-xstat64.c: File removed.
11341 * elf/Makefile (rtld-routines): Remove them.
11342 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
11343 Instead, use strong_alias instead of versioned_symbol in the
11344 !SHLIB_COMPAT case.
11345 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
11346 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
11347
11348 * include/shlib-compat.h
11349 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
11350 [! NOT_IN_libc] (IS_IN_libc): Define it.
11351 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
11352 * elf/Makefile (CPPFLAGS-.os): Likewise.
11353
11354 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
11355 Return the status instead of calling exit.
11356
11357 * Makeconfig (CFLAGS): Prepend -std=gnu99.
11358 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
11359 Remove superfluous rm command, whose @ plus make bugs hid
11360 all these commands from the make output.
11361
11362 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
11363 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
11364 Use that file's contents instead of literal echo's for the prologue.
11365 * include/features.h: Include <gnu/stubs.h> unconditionally.
11366 * include/gnu/stubs.h: New file.
11367
11368 2002-09-30 Roland McGrath <roland@redhat.com>
11369
11370 * elf/rtld-Rules: New file.
11371 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
11372 $(objpfx)rtld-libc.a): New targets.
11373 (generated): Add them.
11374 (reloc-link): Remove -o $@ from the variable.
11375 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
11376 (distribute): Add rtld-Rules.
11377 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
11378 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
11379 (common-mostlyclean, common-clean): Clean up rtld-* files.
11380 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
11381
11382 2003-05-20 Jakub Jelinek <jakub@redhat.com>
11383
11384 * elf/dynamic-link.h (elf_get_dynamic_info): Add temp argument.
11385 If temp != NULL, copy dynamic entries which need relocation to temp
11386 array before relocating.
11387 (DL_RO_DYN_TEMP_CNT): Define.
11388 * elf/dl-load.c (_dl_map_object_from_fd): Adjust caller.
11389 * elf/rtld.c (_dl_start): Likewise.
11390 (dl_main): Likewise. Add dyn_temp static variable.
11391
11392 2002-10-11 Roland McGrath <roland@redhat.com>
11393
11394 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
11395 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
11396
11397 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
11398 proper set of no-op insn prefixes.
11399
11400 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
11401
11402 2002-10-11 Ulrich Drepper <drepper@redhat.com>
11403
11404 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
11405 __pthread_kill_other_threads_np.
11406
11407 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
11408
11409 2002-10-08 Roland McGrath <roland@redhat.com>
11410
11411 * locale/newlocale.c (__newlocale): If setting all categories to "C",
11412 just return &_nl_C_locobj instead of copying it.
11413 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
11414 * locale/duplocale.c (__duplocale): Likewise.
11415
11416 2002-10-07 Roland McGrath <roland@frob.com>
11417
11418 * config.h.in (HAVE_I386_SET_GDT): New #undef.
11419 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
11420 * sysdeps/mach/configure: Regenerated.
11421
11422 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11423
11424 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
11425 Add all necessary register outputs for syscall-clobbered registers.
11426
11427 2002-10-02 David Mosberger <davidm@hpl.hp.com>
11428
11429 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
11430 Itanium 2 (and Itanium).
11431 Fix unwind directives and make it fit in 80 columns.
11432 * sysdeps/ia64/memset.S: Likewise.
11433 * sysdeps/ia64/memcpy.S: Likewise.
11434 Move jump table to .rodata section.
11435
11436 2002-10-03 Roland McGrath <roland@frob.com>
11437
11438 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
11439 clobbers to asm.
11440
11441 2002-10-10 Andreas Jaeger <aj@suse.de>
11442
11443 * sysdeps/x86_64/_mcount.S: Restore correct registers.
11444
11445 2002-10-10 Ulrich Drepper <drepper@redhat.com>
11446
11447 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
11448
11449 2002-10-09 Ulrich Drepper <drepper@redhat.com>
11450
11451 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
11452 _dl_allocate_tls_init. Add rtld_hidden_proto.
11453 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
11454 rtld_hidden_def.
11455 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
11456
11457 * version.h (VERSION): Bump to 2.3.1.
11458
11459 * Make-dist: Add back one of the tar invocations removed before.
11460
11461 * stdlib/Makefile (distribute): Add allocalim.h.
11462
11463 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
11464 (__libc_tsd_address): Use correct variable name.
11465 Patch by Stefan Jones <stefan.jones@multigig.com>.
11466
11467 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
11468 Reported by edwardsg@sgi.com [PR libc/4678].
11469
11470 * Versions.def (libc): Add GLIBC_2.3.1.
11471 (libpthread): Add GLIBC_2.3.1.
11472
11473 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
11474 and __sigtimedwait.
11475 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
11476 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
11477 libc_hidden_def.
11478 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
11479 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
11480
11481 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
11482 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
11483 and make old name an alias.
11484 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
11485 and make old name an alias.
11486 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
11487 __libc_msgsnd.
11488
11489 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
11490 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
11491 __libc_writev.
11492 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
11493 old name an alias.
11494 * sysdeps/posix/readv.c: Likewise
11495 * sysdeps/unix/sysv/aix/readv.c: Likewise.
11496 * sysdeps/unix/sysv/linux/readv.c: Likewise.
11497 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
11498 old name an alias.
11499 * sysdeps/posix/writev.c: Likewise
11500 * sysdeps/unix/sysv/aix/writev.c: Likewise.
11501 * sysdeps/unix/sysv/linux/writev.c: Likewise.
11502
11503 * include/sys/wait.h: Declare __waitid.
11504 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
11505 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
11506 name an alias.
11507 * sysdeps/posix/waitid.c: Likewise.
11508 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
11509
11510 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
11511
11512 2002-10-07 Jakub Jelinek <jakub@redhat.com>
11513
11514 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
11515 prototypes.
11516 (__MAX_ALLOCA_CUTOFF): Define.
11517 Include allocalim.h.
11518 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
11519 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
11520 host_buffer depending on __libc_use_alloca.
11521 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
11522 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
11523 net_buffer depending on __libc_use_alloca.
11524 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
11525 buf depending on __libc_use_alloca.
11526 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
11527 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
11528 instead of hardcoded constants.
11529 Pass proper size argument to alloca and compute end for wide char
11530 version.
11531 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
11532 instead of hardcoded constants.
11533 * string/strcoll.c (strcoll): Likewise.
11534 * string/strxfrm.c (strxfrm): Likewise.
11535 * sysdeps/posix/readv.c (__readv): Likewise.
11536 * sysdeps/posix/writev.c (__writev): Likewise.
11537 * sysdeps/generic/allocalim.h: New file.
11538
11539 2002-10-08 Roland McGrath <roland@redhat.com>
11540
11541 * configure.in (aux_missing warning): Change "too old" to
11542 "incompatible versions", since for autoconf it's "too new" right now.
11543 * configure: Regenerated.
11544
11545 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
11546 one found doesn't work on our configure.in.
11547 * configure: Regenerated.
11548 * config.make.in (AUTOCONF): New substituted variable.
11549 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
11550 (autoconf-it): ... here, use that instead of defining conditionally.
11551 Use $(AUTOCONF) instead of literal autoconf.
11552 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
11553 with this condition.
11554 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
11555
11556 2002-10-08 Ulrich Drepper <drepper@redhat.com>
11557
11558 * Make-dist (dist): Cleanup a bit. We are not interested in the
11559 14 char filename limit anymore. Remove intermediate files and
11560 symlinks.
11561
11562 2002-10-05 Ulrich Drepper <drepper@redhat.com>
11563
11564 * po/sk.po: Update from translation team.
11565 * po/tr.po: Likewise.
11566 * po/gl.po: Likewise.
11567
11568 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
11569
11570 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
11571
11572 2002-10-03 Ulrich Drepper <drepper@redhat.com>
11573
11574 * version.h (RELEASE): Change to stable.
11575
11576 2002-10-03 Jakub Jelinek <jakub@redhat.com>
11577
11578 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
11579 __syscall_exit_group): New prototypes.
11580
11581 2002-10-03 Ulrich Drepper <drepper@redhat.com>
11582
11583 * glibc 2.3 released.
11584
11585
11586 See ChangeLog.13 for earlier changes.
This page took 0.512166 seconds and 4 git commands to generate.