]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
Update.
[thirdparty/glibc.git] / ChangeLog
1 2003-09-15 Jakub Jelinek <jakub@redhat.com>
2
3 * sysdeps/i386/Makefile (sysdep-CFLAGS): If not in math or csu
4 subdir, add -mpreferred-stack-boundary=4, with few exceptions.
5
6 2003-09-17 Jakub Jelinek <jakub@redhat.com>
7
8 * Makeconfig (stack-align-test-flags): Set.
9 * stdlib/Makefile (CFLAGS-tst-bsearch.c): Add
10 $(stack-align-test-flags).
11 * stdlib/tst-bsearch.c: Include tst-stack-align.h.
12 (align_check): New var.
13 (comp): Use TEST_STACK_ALIGN macro.
14 (do_test): Fail if align_check != 1.
15 * sysdeps/generic/tst-stack-align.h: New file.
16 * sysdeps/i386/i686/Makefile (stack-align-test-flags): Add -msse.
17 * sysdeps/i386/i686/tst-stack-align.h: New file.
18
19 2003-09-17 Ulrich Drepper <drepper@redhat.com>
20
21 * sysdeps/unix/sysv/linux/i386/clone.S: Make sure child gets a
22 stack which is aligned (mod 16).
23
24 2003-09-17 Uwe Reimann <Uwe_Reimann@gmx.net>
25 Hans-Peter Nilsson <hp@axis.com>
26
27 * sysdeps/cris/dl-machine.h (elf_machine_type_class): Classify
28 R_CRIS_GLOB_DAT as ELF_RTYPE_CLASS_PLT. Clarify comment.
29
30 2003-09-17 Jakub Jelinek <jakub@redhat.com>
31
32 * dirent/scandir.c: Include bits/libc-lock.h.
33 (struct scandir_cancel_struct): New type.
34 (cancel_handler): New function.
35 (SCANDIR): Add __libc_cleanup_{push,pop}, save state into
36 scandir_cancel_struct.
37
38 2003-09-16 Ulrich Drepper <drepper@redhat.com>
39
40 * sysdeps/unix/sysv/linux/Dist: Remove internal_statvfs.c.
41 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
42 Add internal_statvfs.
43 * sysdeps/unix/sysv/linux/fstatvfs.c: Call __internal_statvfs
44 instead of including "internal_statvfs.c".
45 * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
46 * sysdeps/unix/sysv/linux/internal_statvfs.c: Make it a real function.
47 Add code to avoid the stat calls on all the reported mount points
48 when we can determine mismatch in advance.
49 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add AUTOFS_SUPER_MAGIC and
50 USBDEVFS_SUPER_MAGIC.
51
52 2003-09-16 Jakub Jelinek <jakub@redhat.com>
53
54 * posix/Versions (sched_getaffinity, sched_setaffinity): Change
55 from GLIBC_2.3.2 to GLIBC_2.3.3 symbol version.
56
57 2003-09-16 Bruno Haible <bruno@clisp.org>
58
59 * intl/tst-gettext2.sh: Set GCONV_PATH and LOCPATH only after
60 invoking msgfmt, not before.
61
62 2003-09-15 Jakub Jelinek <jakub@redhat.com>
63
64 * argp/argp.h (argp_parse, __argp_parse): Remove __THROW.
65 * argp/Makefile (CFLAGS-argp-help.c, CFLAGS-argp-parse.c): Add
66 $(uses-callbacks).
67 * dirent/Makefile (CFLAGS-scandir.c, CFLAGS-scandir64.c): Likewise.
68 * elf/Makefile (CFLAGS-dl-iterate-phdr.c,
69 CFLAGS-dl-iterate-phdr-static.c): Add $(uses-callbacks).
70 * elf/dl-iteratephdr.c (cancel_handler): New function.
71 (__dl_iterate_phdr): Add __libc_cleanup_{push,pop}.
72 * elf/link.h (dl_iterate_phdr): Remove __THROW.
73 * io/Makefile (CFLAGS-fts.c): Merge into one assignment.
74 Add $(uses-callbacks).
75 (CFLAGS-ftw.c, CFLAGS-ftw64.c): Add $(uses-callbacks).
76 * misc/Makefile (CFLAGS-tsearch.c, CFLAGS-lsearch.c): Change
77 $(exceptions) to $(uses-callbacks).
78 * Makeconfig (uses-callbacks): Set to $(exceptions).
79 * posix/Makefile (CFLAGS-glob.c, CFLAGS-glob64.c): Add
80 $(uses-callbacks).
81 * stdlib/Makefile (CFLAGS-bsearch.c, CFLAGS-msort.c, CFLAGS-qsort.c):
82 Likewise.
83
84 2003-09-15 Andreas Schwab <schwab@suse.de>
85
86 * sysdeps/m68k/setjmp.c: Add hidden_def.
87
88 2003-09-14 Ulrich Drepper <drepper@redhat.com>
89
90 * libio/memstream.c (open_memstream): Don't allow wide char operations.
91
92 * dirent/dirent.h: Remove __THROW from scandir.
93
94 2003-09-14 Philip Blundell <philb@gnu.org>
95
96 * sysdeps/unix/sysv/linux/arm/mmap.S: Use sys_mmap2 if it's known
97 to be available.
98
99 * sysdeps/unix/sysv/linux/arm/mmap64.S: Optimise code a little.
100
101 * sysdeps/arm/memset.S: Rewrite.
102
103 2003-09-12 Jakub Jelinek <jakub@redhat.com>
104
105 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New.
106 (__SSIZE_T_TYPE): Define to __SWORD_TYPE for gcc 2.95.x and
107 __SLONGWORD_TYPE otherwise.
108
109 2003-09-14 Ulrich Drepper <drepper@redhat.com>
110
111 * io/Makefile (CFLAGS-ftw.c): Add -fexceptions.
112 (CFLAGS-ftw64.c): Likewise.
113
114 2003-09-13 Ulrich Drepper <drepper@redhat.com>
115
116 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Add -fexceptions.
117 (CFLAGS-nscd_getgr_r.c): Likewise.
118 (CFLAGS-nscd_gethst_r.c): Likewise.
119
120 2003-09-12 Ulrich Drepper <drepper@redhat.com>
121
122 * sysdeps/unix/sysv/linux/if_index.c: Use only non-cancelable
123 interfaces.
124
125 * grp/Makefile (CFLAGS-getgrgid_r.c, CFLAGS-getgrnam_r.c,
126 CFLAGS-fgetgrent.c, CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c,
127 CFLAGS-initgroups.c, CFLAGS-getgrgid.c): Add -fexceptions.
128 * inet/Makefile (CFLAGS-either_ntoh.c, CFLAGS-either_hton.c,
129 CFLAGS-getnetgrent.c, CFLAGS-getnetgrent_r.c): Likewise.
130 * io/Makefile (CFLAGS-posix_fallocate.c, CFLAGS-posix_fallocate64.c):
131 Likewise.
132 * misc/Makefile (CFLAGS-err.c): Likewise.
133 * posix/Makefile (CFLAGS-getaddrinfo.c, CFLAGS-spawn.c,
134 CFLAGS-spawnp.c, CFLAGS-spawni.c, CFLAGS-pause.c, CFLAGS-glob.c,
135 CFLAGS-glob64.c): Likewise.
136 * pwd/Makefile (CFLAGS-getpw.c): Likewise.
137 * shadow/Makefile (CFLAGS-fgetspent.c, CFLAGS-fgetspent_r.c,
138 CFLAGS-putspent.c, CFLAGS-getspnam.c, CFLAGS-getspnam_r.c): Likewise.
139 * stdio-common/Makefile (CFLAGS-cuserid.c): Likewise.
140 * sunrpc/Makefile (CFLAGS-openchild.c): Likewise.
141
142 * stdlib/Makefile (CFLAGS-mkstemp.c): Remove definition.
143
144 * libio/stdio.h: Remove __THROW from cuserid prototype.
145
146 * locale/loadarchive.c: Use only non-cancelable interfaces.
147 * resolv/herror.c (herror): Likewise.
148
149 * malloc/hooks.c: Before using IO stream mark stream so it uses
150 only non-cancelable interfaces.
151 * malloc/malloc.c: Likewise.
152 * posix/getopt.c: Likewise.
153
154
155 2003-09-11 Jakub Jelinek <jakub@redhat.com>
156
157 * Makerules (LDFLAGS-c.so): Remove -u __register_frame.
158
159 2003-09-12 Ulrich Drepper <drepper@redhat.com>
160
161 * stdio-common/stdio_ext.h: Mark most functions with __THROW.
162
163 * misc/err.h: Remove __THROW from all prototypes.
164
165 * posix/getopt.h (__THROW): Define if not already defined. Add
166 __THROW to the getopt functions.
167
168 2003-09-11 Ulrich Drepper <drepper@redhat.com>
169
170 * io/Makefile (CFLAGS-lockf.c): Add -fexceptions.
171 (CFLAGS-fts.c): Likewise.
172 * io/fcntl.h: Remove __THROW from lockf prototypes.
173 * io/fts.h: Remove most __THROW.
174
175 2003-09-11 H.J. Lu <hongjiu.lu@intel.com>
176
177 * elf/tls-macros.h (TLS_IE): Add a stop bit for ia64.
178 (TLS_LD): Likewise.
179 (TLS_GD): Likewise.
180
181 2003-09-11 Jakub Jelinek <jakub@redhat.com>
182
183 * libio/fileops.c (_IO_new_file_overflow): Add INTUSE to
184 _IO_free_backup_area call.
185
186 2003-09-10 Chris Demetriou <cgd@broadcom.com>
187
188 * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Fix
189 syscall invocation.
190 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
191 * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
192 Also, only assert off_t size is 4 for N32 and O32, and clean up
193 white space.
194 * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
195
196 2003-09-10 Roland McGrath <roland@redhat.com>
197
198 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr):
199 Don't use c_ispeed under [! _HAVE_STRUCT_TERMIOS_C_ISPEED].
200 Don't use c_ospeed under [! _HAVE_STRUCT_TERMIOS_C_OSPEED].
201 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
202 Reported by Daniel Jacobowitz <drow@mvista.com>.
203
204 2003-09-10 Jakub Jelinek <jakub@redhat.com>
205
206 * string/Makefile (strop-tests): Add memccpy.
207 * string/test-memccpy.c: New test.
208
209 2003-09-09 Jakub Jelinek <jakub@redhat.com>
210
211 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT): Add
212 siginfo_t * argument before, change into struct ucontext *.
213 (SIGCONTEXT_EXTRA_ARGS): Define to _si,.
214 (GET_PC, GET_FRAME, GET_STACK): Adjust for ctx being a pointer
215 instead of structure.
216 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (REGISTER_DUMP):
217 Likewise.
218
219 2003-09-09 Ulrich Drepper <drepper@redhat.com>
220
221 * string/stratcliff.c (main): Check memccpy.
222
223 2003-04-11 Jes Sorensen <jes@wildopensource.com>
224
225 * sysdeps/ia64/memccpy.S: When recovering for src_aligned and the
226 character is found during recovery, use correct register when
227 determining the position of the found character.
228
229 2003-04-01 Jes Sorensen <jes@wildopensource.com>
230
231 * sysdeps/ia64/memccpy.S: Use speculatively loads for readahead to
232 avoid segfaults when reading from unmapped pages. For aligned
233 reload and continue, for misaligned, roll back and use byte copy.
234 Save ar.ec on entry and restore on exit.
235
236 2003-09-09 Chris Demetriou <cgd@broadcom.com>
237
238 * sysdeps/unix/mips/sysdep.h (PSEUDO_END): Undef before defining.
239
240 2003-09-08 Chris Demetriou <cgd@broadcom.com>
241
242 * sysdeps/mips/mips64/n32/Implies: Move ieee754/ldbl-128 to
243 the top of the list.
244 * sysdeps/mips/mips64/n64/Implies: Likewise.
245
246 2003-09-08 Roland McGrath <roland@frob.com>
247
248 * sysdeps/unix/sysv/linux/speed.c
249 (cfsetospeed): Only set c_ospeed under [_HAVE_STRUCT_TERMIOS_C_OSPEED].
250 (cfsetispeed): Only set c_ispeed under [_HAVE_STRUCT_TERMIOS_C_ISPEED].
251 * sysdeps/unix/sysv/linux/bits/termios.h
252 (_HAVE_STRUCT_TERMIOS_C_ISPEED, _HAVE_STRUCT_TERMIOS_C_OSPEED): Define.
253 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
254 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
255
256 2003-09-08 Ulrich Drepper <drepper@redhat.com>
257
258 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Undo last change.
259 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
260
261 2003-09-08 Jakub Jelinek <jakub@redhat.com>
262
263 * sysdeps/generic/bits/types.h (__quad_t): Make long int if 64-bit.
264 (__u_quad_t): Make unsigned long int if 64-bit.
265 (__SQUAD_TYPE): Make long int if 64-bit.
266 (__UQUAD_TYPE): Make unsigned long int if 64-bit.
267 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Remove.
268
269 2003-09-08 Ulrich Drepper <drepper@redhat.com>
270
271 * Makefile (tests): Run check-c++-types.sh if possible.
272 * scripts/check-c++-types.h: New file.
273 * scripts/data/c++-types-i386-linux-gnu.data: New file.
274
275 2003-09-08 Andreas Jaeger <aj@suse.de>
276
277 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
278 Use struct sigcontext.
279
280 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
281 Use struct sigcontext.
282 (GET_PC): Adopt.
283 (GET_FRAME): Likewise.
284 (GET_STACK): Likewise.
285
286 2003-09-08 Wolfram Gloger <wg@malloc.de>
287
288 * malloc/malloc.c (sYSMALLOc): Move foreign sbrk accounting into
289 contiguous case. Bug report from Prem Gopalan <prem@mazunetworks.com>.
290 (mALLOPt): Avoid requirement of C99.
291
292 2003-09-08 Ulrich Drepper <drepper@redhat.com>
293
294 * libio/bug-ftell.c: Include <sys/types.h>.
295 (main): Mark cp as const.
296
297 2003-09-07 Jakub Jelinek <jakub@redhat.com>
298
299 * sysdeps/unix/sysv/linux/syscalls.list (fcntl): Remove.
300 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: Remove.
301
302 2003-09-05 Roland McGrath <roland@redhat.com>
303
304 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Fill in c_ispeed
305 and c_ospeed fields.
306 * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Set c_ospeed field.
307 (cfsetispeed): Set c_ispeed field.
308 * sysdeps/unix/sysv/linux/tcsetattr.c (IBAUD0): Define unconditionally
309 to match corresponding speed.c code.
310
311 2003-09-06 Ulrich Drepper <drepper@redhat.com>
312
313 * libio/wfileops.c (_IO_wfile_underflow): Mark beginning of the
314 narrow character buffer.
315 * libio/Makefile: Add rules to build and run bug-ftell.
316 * libio/bug-ftell.c: New file.
317
318 * stdio-common/vfprintf.c: Don't use the first grouping number twice.
319
320 * stdio-common/vfscanf.c (vfscanf): Fix recognition of characters
321 matching the decimal point and possibly leading the thousands
322 separator. This caused the recognition of thousands separators to
323 always fail.
324
325 2003-09-05 Ulrich Drepper <drepper@redhat.com>
326
327 * libio/fileops.c (_IO_new_file_overflow): Handle switching to
328 write mode from read in backup buffer.
329 * libio/Makefile (tests): Add bug-ungetc2.
330 * libio/bug-ungetc2.c: New file.
331
332 2003-09-05 Roland McGrath <roland@redhat.com>
333
334 * nss/getXXbyYY.c (FUNCTION_NAME): Remove unused variable.
335
336 2003-09-04 Roland McGrath <roland@frob.com>
337
338 * sysdeps/mach/hurd/mmap.c (__mmap): If io_map fails with MIG_BAD_ID,
339 EOPNOTSUPP, or ENOSYS, change it to ENODEV.
340
341 2003-09-04 H.J. Lu <hongjiu.lu@intel.com>
342
343 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ):
344 Fix a typo.
345
346 2003-09-05 Andreas Jaeger <aj@suse.de>
347
348 * sysdeps/i386/bits/string.h (__memrchr): Do addition in assembler
349 to make it conforming C.
350 * sysdeps/i386/i486/bits/string.h (__memrchr): Likewise.
351
352 * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Change
353 prototype to use variable argument lists and get the possible one
354 argument via va_arg.
355 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Likewise.
356 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: New.
357
358 2003-09-04 Ulrich Drepper <drepper@redhat.com>
359
360 * posix/unistd.h: Add back __THROW to sysconf, pathconf, fpathconf.
361
362 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
363 Report correct value for vxfs.
364 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define VXFS_SUPER_MAGIC.
365
366 * gmon/gmon.c: Use only not-cancelable syscalls to write profiling
367 data.
368
369 * sysdeps/generic/utmp_file.c: Use not-cancelable syscalls all
370 over the place. It would be allowed to have these functions as
371 cancellation points but the cleanup would be ugly and a lot of
372 work.
373
374 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Define.
375 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Define.
376
377 * include/fcntl.h (__fcntl_nocancel): Declare.
378 * sysdeps/unix/sysv/linux/fcntl.c: New file.
379 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Only enable
380 cancellation if absolutely needed.
381 (__fcntl_nocancel): Define.
382
383 * posix/unistd.h (gethostid): Remove __THROW. Clarify comment.
384 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gethostid.c): Add
385 -fexceptions.
386 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use
387 extend_alloca.
388
389 * resolv/res_init.c (__res_nclose): Use close_not_cancel_no_status
390 instead of __close.
391
392 * nss/getXXbyYY.c (FUNCTION_NAME): Add a few casts. Remove
393 unnecessary errno handling.
394
395 * nss/getXXbyYY_r.c (INTERNAL): Use better variable name.
396 Initialize it in all cases. Change it to be a bit more like the
397 code we had before.
398
399 2003-09-04 Jakub Jelinek <jakub@redhat.com>
400
401 * libio/fileops.c (_IO_file_read, _IO_new_file_write): Add
402 __builtin_expect.
403 (_IO_file_open): Likewise. Use close_not_cancel.
404
405 2003-09-04 Ulrich Drepper <drepper@redhat.com>
406
407 * libio/libio.h: Define _IO_FLAGS2_NOTCANCEL.
408 * libio/fileops.c [_LIBC]: Remove close macro.
409 (_IO_file_open): If _IO_FLAGS2_NOTCANCEL is set, use open_not_cancel.
410 (_IO_new_file_open): Recognize 'c' flag in mode string.
411 (_IO_file_read): If _IO_FLAGS2_NOTCANCEL is set use read_not_cancel.
412 (_IO_new_file_write): If _IO_FLAGS2_NOTCANCEL is set use
413 write_not_cancel.
414 * iconv/gconv_conf.c: Use fopen with 'c' mode flag.
415 * inet/rcmd.c: Likewise.
416 * inet/ruserpass.c: Likewise.
417 * intl/localealias.c: Likewise.
418 * malloc/mtrace.c: Likewise.
419 * misc/getpass.c: Likewise.
420 * misc/getttyent.c: Likewise.
421 * misc/mntent_r.c: Likewise.
422 * misc/getusershell.c: Likewise.
423 * nss/nsswitch.c: Likewise.
424 * resolv/res_hconf.c: Likewise.
425 * resolv/res_init.c: Likewise.
426 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
427 * time/getdate.c: Likewise.
428 * time/tzfile.c: Likewise.
429 * misc/fstab.h: Undo last change.
430 * misc/mntent.h: Likewise.
431 * misc/Makefile: Remove CFLAGS-mntent_r.c, CFLAGS-mntent.c, and
432 CFLAGS-fstab.c definition.
433
434 2003-09-04 Jakub Jelinek <jakub@redhat.com>
435
436 * sysdeps/generic/unwind.h (_Unwind_GetBSP): Add prototype.
437
438 2003-09-03 Ulrich Drepper <drepper@redhat.com>
439
440 * nss/getXXbyYY_r.c (INTERNAL): Explicitly set errno and avoid
441 returning ERANGE if this wasn't intended.
442
443 2003-09-03 Jakub Jelinek <jakub@redhat.com>
444
445 * intl/loadmsgcat.c (open, close, read, mmap, munmap): Define as
446 function-like macros.
447
448 2003-09-03 Ulrich Drepper <drepper@redhat.com>
449
450 * grp/Makefile (CFLAGS-getgrent_r.c): Add -fexceptions.
451 (CFLAGS-getgrent.c): Likewise.
452 * pwd/Makefile (CFLAGS-getpwent_r.c): Add -fexceptions.
453 (CFLAGS-getpwent.c): Likewise.
454 * shadow/Makefile (CFLAGS-getspent_r.c): Add -fexceptions.
455 (CFLAGS-getspent.c): Likewise.
456
457 * inet/Makefile: Add -fexceptions to CFLAGS for the various
458 getXXent and getXXbyYY functions.
459
460 * locale/loadlocale.c: Use not-cancelable variants of open, close,
461 and read.
462
463 2003-09-02 Jakub Jelinek <jakub@redhat.com>
464
465 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
466 rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait, rt_sigqueueinfo and
467 rt_sigpending.
468 * sysdeps/unix/sysv/linux/alpha/sigaction.c (__syscall_rt_sigaction):
469 New prototype.
470 * sysdeps/unix/sysv/linux/arm/syscalls.list (__syscall_*): Remove
471 unused __syscall_ stubs.
472 * sysdeps/unix/sysv/linux/arm/Makefile (sysdep_routines): Remove
473 rt_*.
474 * sysdeps/unix/sysv/linux/cris/Makefile: Removed.
475 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list
476 (__syscall_recvfrom, __syscall_sendto): Remove unused aliases.
477 * sysdeps/unix/sysv/linux/mips/syscalls.list (__syscall_*): Remove
478 unused __syscall_ stubs.
479 * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Remove rt_*.
480 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
481 (__syscall_*): Remove unused __syscall_ stubs.
482 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
483 (__syscall_*): Likewise.
484 * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines): Remove
485 rt_*.
486 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__syscall_*):
487 Remove unused __syscall_ stubs.
488 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_routines): Remove rt_*.
489 * sysdeps/unix/sysv/linux/rt_sigaction.c: Removed.
490 * sysdeps/unix/sysv/linux/rt_sigpending.c: Removed.
491 * sysdeps/unix/sysv/linux/rt_sigprocmask.c: Removed.
492 * sysdeps/unix/sysv/linux/rt_sigqueueinfo.c: Removed.
493 * sysdeps/unix/sysv/linux/rt_sigreturn.c: Removed.
494 * sysdeps/unix/sysv/linux/rt_sigsuspend.c: Removed.
495 * sysdeps/unix/sysv/linux/rt_sigtimedwait.c: Removed.
496 * sysdeps/unix/sysv/linux/s_pread64.c: Removed.
497 * sysdeps/unix/sysv/linux/s_pwrite64.c: Removed.
498 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Remove unused
499 __syscall_* prototypes.
500 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Likewise.
501 * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
502 * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
503 * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
504 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
505 * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
506 * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
507 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
508 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
509 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
510 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
511 * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
512 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
513 * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
514 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
515 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
516 * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
517 * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
518 * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
519 * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
520 * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
521 * sysdeps/unix/sysv/linux/i386/lockf64.c: Likewise.
522 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
523 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
524 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
525 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
526 * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
527 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
528 * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
529 * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
530 * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
531 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
532 * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
533 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
534 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
535 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
536 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
537 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
538 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
539 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
540 * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
541 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
542 * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
543 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
544 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
545 * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
546 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
547 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
548 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
549 * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
550 * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
551 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
552 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
553 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
554 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
555 * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
556 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c: Likewise.
557 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
558 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
559 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
560 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
561 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c: Likewise.
562 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
563 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
564 * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
565 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
566 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
567 * sysdeps/unix/sysv/linux/execve.c: Likewise.
568 * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
569 * sysdeps/unix/sysv/linux/reboot.c: Likewise.
570 * sysdeps/unix/sysv/linux/_exit.c: Likewise.
571 * sysdeps/unix/sysv/linux/ftruncate64.c: Likewise.
572 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
573 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
574 * sysdeps/unix/sysv/linux/gai_sigqueue.c: Likewise.
575 * sysdeps/unix/sysv/linux/readahead.c: Likewise.
576 * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
577 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
578 * sysdeps/unix/sysv/linux/getdents.c: Likewise.
579 * sysdeps/unix/sysv/linux/readv.c: Likewise.
580 * sysdeps/unix/sysv/linux/getpriority.c: Likewise.
581 * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
582 * sysdeps/unix/sysv/linux/ipc_priv.h: Likewise.
583 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
584 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
585 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
586 * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
587 * sysdeps/unix/sysv/linux/ustat.c: Likewise.
588 * sysdeps/unix/sysv/linux/poll.c: Likewise.
589 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
590 * sysdeps/unix/sysv/linux/writev.c: Likewise.
591 * sysdeps/unix/sysv/linux/pread.c: Likewise.
592 * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
593 * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
594 * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
595 * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
596 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
597 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
598 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
599 * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
600 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
601 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
602
603 2003-09-02 Jakub Jelinek <jakub@redhat.com>
604
605 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Revert last change.
606 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: New file.
607 * sysdeps/unix/sysv/linux/sparc/syscalls.list: New file.
608
609 2003-09-02 Ulrich Drepper <drepper@redhat.com>
610
611 * stdio-common/Makefile (CFLAGS-vprintf.c): Add -fexceptions.
612
613 * intl/loadmsgcat.c: For _LIBC, call not cancelable versions of
614 open, close, and read.
615
616 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Also define
617 *_nocancel name.
618
619 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add waitpid.
620
621 * libio/Makefile (CFLAGS-oldtmpfile.c): Add -fexceptions.
622 * sysdeps/generic/tmpfile.c (tmpfile): Use __unlink instead of remove.
623 * libio/oldtmpfile.c (__old_tmpfile): Likewise.
624
625 * misc/Makefile (CFLAGS-getusershell.c): Add -fexceptions.
626
627 * io/Makefile (CFLAGS-statfs.c): Add -fexceptions.
628 (CFLAGS-fstatfs.c): Likewise.
629 (CFLAGS-statvfs.c): Likewise.
630 (CFLAGS-fstatvfs.c): Likewise.
631
632 2003-09-01 Ulrich Drepper <drepper@redhat.com>
633
634 * misc/Makefile (CFLAGS-getsysstats.c): Add -fexceptions.
635 * posix/unistd.h: Remove __THROW from pathconf, fpathconf,
636 sysconf.
637 * posix/Makefile (CFLAGS-sysconf.c): Add -fexceptions.
638 (CFLAGS-pathconf.c): Likewise.
639 (CFLAGS-fpathconf.c): Likewise.
640
641 * misc/Makefile (CFLAGS-fstab.c): Add -fexceptions.
642 * misc/fstab.h: Remove all __THROW.
643 * misc/Makefile (CFLAGS-mntent.c): Add -fexceptions.
644 (CFLAGS-mntent_r.c): Likewise.
645 * misc/mntent.h: Remove most __THROW.
646
647 * misc/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
648 (CFLAGS-mkstemp64.c): Likewise.
649
650 * sysdeps/generic/wordexp.c (parse_comm): Disable cancellation
651 around call to exec_comm.
652 * posix/wordexp.h: Remove __THROW from wordexp.
653 * posix/Makefile (CFLAGS-wordexp.c): Add -fexceptions.
654
655 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Use
656 not-cancelable functions.
657
658 * libio/Makefile (CFLAGS-oldiofopen.c): Add -fexceptions.
659 (CFLAGS-iofopen.c): Likewise.
660 (CFLAGS-iofopen64.c): Likewise.
661
662 * stdlib/fmtmsg.c (fmtmsg): Disable cancellation around output
663 functions.
664 * stdlib/Makefile (CFLAGS-fmtmsg.c): Add -fexceptions.
665 * stdlib/fmtmsg.h: Remove __THROW from fmtmsg.
666
667 * stdlib/stdlib.h: Remove __THROW from posix_openpt and getpt.
668 * login/Makefile (CFLAGS-getpt.c): Add -fexceptions.
669
670 2003-09-01 Thorsten Kukuk <kukuk@suse.de>
671
672 * nis/nss_compat/compat-spwd.c (getspnam_plususer): Return
673 NSS_STATUS_SUCCESS if entry was found.
674 (getspent_next_file): Store user in blacklist after entry
675 was found, use innetgr.
676
677 2003-09-01 Jakub Jelinek <jakub@redhat.com>
678
679 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: New.
680 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: New.
681
682 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Fix tls offset
683 computation for TCB_AT_TP. Support l_firstbyte_offset != 0 for
684 DTV_AT_TP, optimize.
685
686 2003-08-31 Kaz Kojima <kkojima@rr.iij4u.or.jp>
687
688 * sysdeps/unix/sysv/linux/sh/Versions: Add posix_fadvise64 and
689 posix_fallocate64 at GLIBC_2.3.3.
690 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO_ERRVAL): Define.
691 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
692
693 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
694
695 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove __syscall_
696 functions.
697
698 2003-08-31 Ulrich Drepper <drepper@redhat.com>
699
700 * libio/libioP.h (_IO_acquire_lock_fct): Define as inline function.
701 Code by Richard Henderson.
702
703 2003-08-31 Philip Blundell <philb@gnu.org>
704
705 * sysdeps/unix/sysv/linux/arm/Versions: Add posix_fadvise64 and
706 posix_fallocate64 at GLIBC_2.3.3.
707
708 2003-08-31 Ulrich Drepper <drepper@redhat.com>
709
710 * sysdeps/x86_64/bsd-_setjmp.S: Use HIDDEN_JUMPTARGET.
711 * include/setjmp.h: Add libc_hidden_proto for __sigsetjmp.
712
713 2003-08-30 Jakub Jelinek <jakub@redhat.com>
714
715 * sysdeps/generic/sysdep.h (cfi_window_save, CFI_WINDOW_SAVE): Define.
716 * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Allow file to be
717 included multiple times.
718 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Pass
719 ptid, tls, ctid arguments to the kernel.
720 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
721 Use INTERNAL_SYSCALL instead of __syscall_getpagesize.
722 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
723 (__libc_sigaction): Use INLINE_SYSCALL instead of
724 __syscall_rt_sigaction.
725 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
726 (__syscall_getgroups, __syscall_getpagesize, __syscall__llseek,
727 __syscall_setfsgid, __syscall_setfsuid, __syscall_setgid,
728 __syscall_setgroups, __syscall_setregid, __syscall_setreuid,
729 __syscall_ipc, __syscall_setuid, __syscall_rt_sigaction,
730 __syscall_rt_sigpending, __syscall_rt_sigprocmask,
731 __syscall_rt_sigqueueinfo, __syscall_rt_sigsuspend,
732 __syscall_rt_sigtimedwait): Remove unneeded syscall stubs.
733 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (sysdep_routines):
734 Remove rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait,
735 rt_sigqueueinfo, rt_sigaction and rt_sigpending.
736 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
737 (__CLONE_SYSCALL_STRING): Define.
738 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Add
739 CFI directives.
740 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
741 (__CLONE_SYSCALL_STRING): Define.
742 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_CLONE_SYSCALL):
743 Define.
744 * sysdeps/unix/sysv/linux/sparc/system.c: New file.
745
746 2003-08-30 Ulrich Drepper <drepper@redhat.com>
747
748 * sunrpc/rpc/clnt.h: Remove a few __THROW.
749 * sunrpc/Makefile (CFLAGS-auth_unix.c): Add -fexceptions.
750 (CFLAGS-key_call.c): Likewise.
751 (CFLAGS-pmap_rmt.c): Likewise.
752 (CFLAGS-clnt_perr.c): Likewise.
753 * sunrpc/rpc/auth.h: Remove serveral __THROW.
754
755 * inet/Makefile (CFLAGS-gethstbyad_r.c): Add -fexceptions.
756 (CFLAGS-gethstbynm_r.c): Likewise.
757 (CFLAGS-gethstbynm2_r.c): Likewise.
758 (CFLAGS-rcmd.c): Likewise.
759 * resolv/Makefile (CFLAGS-res_hconf.c): Add -fexceptions.
760
761 * argp/Makefile (CFLAGS-argp-help.c): Add -fexceptions.
762 (CFLAGS-argp-fmtstream.c): Likewise.
763 * argp/argp.h: Remove a number of __THROW.
764
765 * misc/sys/syslog.h (vsyslog): Remove __THROW.
766
767 * misc/Makefile (CFLAGS-getpass.c): Add -fexceptions.
768 * misc/getpass.c (getpass): Add cleanup handler to ensure the
769 stream is closed even if the thread is canceled.
770 (call_fclose): New function.
771 * posix/unistd.h: Remove __THROW from getpass prototype.
772
773 * posix/Makefile (CFLAGS-getopt.c): Add -fexceptions.
774
775 * signal/signal.h (psignal): Remove __THROW.
776 * stdio-common/Makefile (CFLAGS-psignal.c): Add -fexceptions.
777
778 * misc/Makefile (CFLAGS-error.c): Define.
779 * misc/error.c (error): Disable cancellation handling around the
780 actual output. The message should in any case be printed.
781 (error_at_line): Likewise.
782
783 * misc/error.h: Protect parameter names with leading __.
784
785 2003-08-28 Carlos O'Donell <carlos@baldric.uwo.ca>
786
787 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Add semtimedop.
788
789 2003-08-29 Jakub Jelinek <jakub@redhat.com>
790
791 * libio/iofgetpos64.c (_IO_new_fgetpos64): Move lock release to the
792 end.
793
794 2003-08-29 Ulrich Drepper <drepper@redhat.com>
795
796 * libio/stdio.h: Remove a few more __THROW.
797
798 2003-08-29 Jakub Jelinek <jakub@redhat.com>
799
800 * libio/Makefile: Compile fputc.c, fputwc.c, freopen64.c, freopen.c,
801 fseek.c, fseeko64.c, fseeko.c, ftello64.c, ftello.c, fwide.c, getc.c,
802 getchar.c, getwc.c, getwchar.c, iofclose.c, iofflush.c, iofgetpos64.c,
803 iofgetpos.c, iofgets.c, iofgetws.c, iofputs.c, iofputws.c, iofread.c,
804 iofsetpos64.c, iofsetpos.c, ioftell.c, iofwrite.c, iogetdelim.c,
805 iogetline.c, iogets.c, iogetwline.c, ioputs.c, ioseekoff.c,
806 ioseekpos.c, iosetbuffer.c, iosetvbuf.c, ioungetc.c, ioungetwc.c,
807 oldfileops.c, oldiofclose.c, oldiofgetpos64.c, oldiofgetpos.c,
808 oldiofsetpos64.c, oldiofsetpos.c, peekc.c, putc.c, putchar.c, putwc.c,
809 putwchar.c and rewind.c with exceptions.
810 * sysdeps/generic/bits/stdio-lock.h (_IO_acquire_lock,
811 _IO_release_lock): Define.
812 * libio/fileops.c (_IO_new_file_underflow): Use it.
813 * libio/fputc.c (fputc): Likewise.
814 * libio/fputwc.c (fputwc): Likewise.
815 * libio/freopen64.c (freopen64):
816 * libio/freopen.c (freopen): Likewise.
817 * libio/fseek.c (fseek): Likewise.
818 * libio/fseeko64.c (fseeko64): Likewise.
819 * libio/fseeko.c (fseeko): Likewise.
820 * libio/ftello64.c (ftello64): Likewise.
821 * libio/ftello.c (ftello): Likewise.
822 * libio/fwide.c (fwide): Likewise.
823 * libio/getc.c (_IO_getc): Likewise.
824 * libio/getchar.c (getchar): Likewise.
825 * libio/getwc.c (_IO_getwc): Likewise.
826 * libio/getwchar.c (getwchar): Likewise.
827 * libio/iofclose.c (_IO_new_fclose):
828 * libio/iofflush.c (_IO_fflush): Likewise.
829 * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
830 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
831 * libio/iofgets.c (_IO_fgets): Likewise.
832 * libio/iofgetws.c (fgetws): Likewise.
833 * libio/iofputs.c (_IO_fputs): Likewise.
834 * libio/iofputws.c (fputws): Likewise.
835 * libio/iofread.c (_IO_fread): Likewise.
836 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
837 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
838 * libio/ioftell.c (_IO_ftell): Likewise.
839 * libio/iofwrite.c (_IO_fwrite): Likewise.
840 * libio/iogetdelim.c (_IO_getdelim): Likewise.
841 * libio/iogets.c (_IO_gets): Likewise.
842 * libio/ioputs.c (_IO_puts): Likewise.
843 * libio/ioseekoff.c (_IO_seekoff): Likewise.
844 * libio/ioseekpos.c (_IO_seekpos): Likewise.
845 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
846 * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
847 * libio/ioungetc.c (_IO_ungetc): Likewise.
848 * libio/ioungetwc.c (ungetwc): Likewise.
849 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
850 * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
851 * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
852 * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
853 * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
854 * libio/peekc.c (_IO_peekc_locked): Likewise.
855 * libio/putc.c (_IO_putc): Likewise.
856 * libio/putchar.c (putchar): Likewise.
857 * libio/putwc.c (putwc): Likewise.
858 * libio/putwchar.c (putwchar): Likewise.
859 * libio/rewind.c (rewind): Likewise.
860 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
861
862 2003-08-29 Ulrich Drepper <drepper@redhat.com>
863
864 * signal/signal.h: sighold, sigrelse, sigignore, sigset were
865 available in XPG4.2.
866
867 2003-08-27 Phil Knirsch <pknirsch@redhat.com>
868 Jakub Jelinek <jakub@redhat.com>
869
870 * sunrpc/svc.c (svc_getreqset): Fix fds_bits reading on 64-bit
871 big endian arches. Don't read beyond end of fds_bits array.
872
873 2003-04-27 Bruno Haible <bruno@clisp.org>
874
875 * manual/message.texi (Advanced gettext functions): Add information
876 about Korean, Portuguese, Latvian. Gaeilge is also known as Irish.
877 Add section about Lithuanian, reported by Ricardas Cepas
878 <rch@richard.eu.org>.
879 Add information about Croatian.
880 Ukrainian is like Russian, reported by Andy Rysin <arysin@yahoo.com>.
881 Remove remark about continuation lines that is not true for PO files.
882 Fix formula for Slovenian, reported by Roman Maurer
883 <roman.maurer@amis.net>.
884
885 2003-08-27 Ulrich Drepper <drepper@redhat.com>
886
887 * math/math_private.h: Declare __copysignf.
888 * sysdeps/ieee754/flt-32/s_scalbnf.c: Use __copysignf instead of
889 copysignf.
890
891 * sysdeps/x86_64/fpu/bits/mathinline.h: Define __signbitf,
892 __signbit, and __signbitl inline functions.
893
894 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Use
895 HIDDEN_JUMPTARGET instead of JUMPTARGET to call exit().
896
897 * sysdeps/x86_64/bsd-_setjmp.S [PIC]: Jump to __GI___sigsetjmp.
898 * sysdeps/x86_64/setjmp.S: Add libc_hidden_def for __sigsetjmp.
899
900 2003-08-27 Jakub Jelinek <jakub@redhat.com>
901
902 * inet/inet_mkadr.c (inet_makeaddr): Optimize.
903
904 2003-08-27 Ulrich Drepper <drepper@redhat.com>
905
906 * include/stdio.h: Add declarations for __builtin_fwrite and
907 __builtin_fwrite_unlocked.
908
909 2003-08-27 Jakub Jelinek <jakub@redhat.com>
910
911 * sysdeps/unix/opendir.c (__opendir): Make sure even struct dirent64
912 fits into allocation. Add padding on 32-bit arches so that
913 dirp->data is enough aligned for struct dirent64.
914 Avoid clearing of the buffer, just clear DIR structure.
915
916 2003-08-26 Ulrich Drepper <drepper@redhat.com>
917
918 * nss/nsswitch.c: Add libc_hidden_def for __nss_lookup_function.
919 * nss/nsswitch.h: Add libc_hidden_proto for __nss_lookup_function.
920
921 2003-08-26 Steven Munroe <sjmunroe@us.ibm.com>
922
923 * sysdeps/powerpc/powerpc64/elf/Makefile: New file.
924
925 2003-08-26 Jakub Jelinek <jakub@redhat.com>
926
927 * login/programs/utmpdump.c (print_entry): Cast tv_usec to long
928 to match format string.
929 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (union semun): Add
930 __old_buf.
931 (__new_semctl): Shut up warning.
932 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
933 (_dl_string_hwcap): Add __attribute__ ((always_inline)).
934
935 2003-08-26 Jakub Jelinek <jakub@redhat.com>
936
937 * elf/ldconfig.c (search_dir): When checking for GNU-style .so
938 link file use the real file name, not the resolved name we got by
939 following the symlinks.
940
941 2003-08-25 Ulrich Drepper <drepper@redhat.com>
942
943 * libio/oldfileops.c (_IO_old_file_init): Initialize _mode field
944 if the object size is large enough.
945
946 2003-08-25 Jakub Jelinek <jakub@redhat.com>
947
948 * elf/ldconfig.c (search_dir): Treat symlink as regular file
949 if it won't point to itself unless it is .so symlink for the linker.
950
951 2003-08-25 Ulrich Drepper <drepper@redhat.com>
952
953 * libio/libio.h (_IO_fwide): In the mode==0 optimization, don't
954 use _mode if _IO_fwide_maybe_incompatible.
955 * libio/iofwide.c (_IO_fwide): Move the test for mode == 0 after
956 the compatibility test.
957
958 2003-08-25 Jakub Jelinek <jakub@redhat.com>
959
960 * elf/cache.c (save_cache): Don't write beyond end of file_entries
961 buffer.
962 Duplicate last old cache entry if the count would be odd.
963
964 2003-08-25 Andreas Jaeger <aj@suse.de>
965
966 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Cast arguments of
967 __LONG_LONG_PAIR to long.
968
969 2003-08-25 Philip Blundell <philb@gnu.org>
970
971 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define.
972 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
973
974 2003-08-18 Alfred M. Szmidt <ams@kemisten.nu>
975
976 * sysdeps/generic/bits/libc-lock.h (__libc_cleanup_pop): Redefine
977 and use __libc_cleanup_region_end instead.
978
979 2003-08-25 Ulrich Drepper <drepper@redhat.com>
980
981 * elf/ldconfig.c (search_dir): Revert patch of 2003-7-21.
982
983 2003-08-22 Ulrich Drepper <drepper@redhat.com>
984
985 * io/fcntl.h (posix_fallocate): Change type of third parameter to
986 off_t.
987 (posix_fallocate64): Change type of third parameter to off64_t.
988 * sysdeps/generic/posix_fallocate.c: Adjust for type change.
989 * sysdeps/posix/posix_fallocate.c: Likewise.
990 * sysdeps/generic/posix_fallocate64.c: Likewise.
991 * sysdeps/posix/posix_fallocate64.c: Likewise. Add compatibility
992 code for 32-bit platforms.
993 * sysdeps/unix/sysv/linux/i386/Versions: Add new version for
994 posix_fallocate64.
995 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Likewise.
996 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
997 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
998
999 2003-08-19 Ulrich Drepper <drepper@redhat.com>
1000
1001 * string/bits/string2.h (__STRING2_COPY_TYPE): Add attribute to
1002 the type, not to name.
1003
1004 * stdio-common/test-vfprintf.c (main): Don't write temporary file
1005 into source directory.
1006
1007 * malloc/malloc.c (_int_free): Add cheap test for some invalid
1008 block sizes.
1009
1010 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo in
1011 syscall name.
1012
1013 2003-08-18 Ulrich Drepper <drepper@redhat.com>
1014
1015 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Fold EISDIR error
1016 into EINVAL.
1017
1018 2003-08-18 H.J. Lu <hongjiu.lu@intel.com>
1019
1020 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Use _dl_reloc_bad_type.
1021 (elf_machine_lazy_rel): Likewise.
1022
1023 2003-08-18 Art Haas <ahaas@airmail.net>
1024
1025 * malloc/malloc.h: Remove unneeded ';' where closing the C++
1026 extern block.
1027
1028 2003-08-18 Ulrich Drepper <drepper@redhat.com>
1029
1030 * sysdeps/ia64/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Support
1031 loading big binaries where @gprel(sym) cannot be handled in 'add'
1032 but instead has to be used with 'movl'.
1033
1034 2003-08-17 Juergen Kreileder <jk@blackdown.de>
1035 Andreas Jaeger <aj@suse.de>
1036
1037 * sysdeps/x86_64/bits/byteswap.h: New file.
1038
1039 2003-08-17 Andreas Jaeger <aj@suse.de>
1040
1041 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo.
1042
1043 2003-08-16 Jakub Jelinek <jakub@redhat.com>
1044
1045 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_ERRVAL,
1046 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
1047 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_ERRVAL,
1048 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
1049 * sysdeps/unix/alpha/sysdep.h (PSEUDO_ERRVAL,
1050 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
1051 * sysdeps/unix/mips/sysdep.h (PSEUDO_ERRVAL,
1052 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
1053 * sysdeps/unix/sparc/sysdep.h (PSEUDO_ERRVAL,
1054 ret_ERRVAL): Define.
1055 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_ERRVAL,
1056 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
1057 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO_ERRVAL,
1058 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
1059 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO_ERRVAL):
1060 Define.
1061 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_ERRVAL,
1062 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
1063 * sysdeps/unix/sysdep.h (PSEUDO_END_ERRVAL): Define.
1064
1065 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64,
1066 posix_fadvise64_64): Remove.
1067 * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64): Add
1068 V flag.
1069 * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64):
1070 Likewise.
1071 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
1072 (posix_fadvise64): Likewise.
1073 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
1074 (posix_fadvise64): Likewise.
1075 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
1076 (posix_fadvise64): Likewise.
1077 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64):
1078 Likewise.
1079 * sysdeps/unix/sysv/linux/i386/posix_fadvise64_64.S: Moved to...
1080 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: ...here.
1081 (__posix_fadvise64_l64): Fix a typo in fadvise64 syscall invocation.
1082 (__posix_fadvise64_l32): New function.
1083 * sysdeps/unix/sysv/linux/i386/Makefile: Revert last change.
1084 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Export
1085 posix_fadvise64@@GLIBC_2.3.3.
1086 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
1087 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
1088 * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Return
1089 error value.
1090 * sysdeps/unix/sysv/linux/posix_fadvise64.c: New file.
1091
1092 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1093 (SYSCALL_ERROR_HANDLER): Use TLS errno/__libc_errno if USE___THREAD.
1094
1095 2003-08-15 Jakub Jelinek <jakub@redhat.com>
1096
1097 * sysdeps/sparc/sparc32/dl-machine.h (WEAKADDR): Remove.
1098 (elf_machine_matches_host): Remove weak extern stuff.
1099 Use GL(dl_hwcap) unconditionally and GL(dl_hwcap_mask) if SHARED.
1100 (elf_machine_runtime_setup, sparc_fixup_plt): Remove weak extern
1101 stuff. Use GL(dl_hwcap) unconditionally.
1102
1103 2003-08-16 Alan Modra <amodra@bigpond.net.au>
1104
1105 * sysdeps/powerpc/powerpc64/elf/start.S: Add a nop after
1106 __libc_start_main branch.
1107
1108 2003-08-16 Jakub Jelinek <jakub@redhat.com>,
1109 Andreas Jaeger <aj@suse.de>
1110
1111 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS
1112 instead of setting errno.
1113 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
1114
1115 2003-08-16 Andreas Jaeger <aj@suse.de>
1116
1117 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype.
1118 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
1119
1120 2003-08-15 Ulrich Drepper <drepper@redhat.com>
1121
1122 * io/fcntl.h (posix_fadvise64): Change type of third parameter to
1123 off_t.
1124 * sysdeps/unix/sysv/linux/posix_fadvise.c: Adjust definition.
1125 * sysdeps/unix/make-syscalls.sh: Recognize V prefix to the parameter
1126 description indicating the error value is returned, not -1.
1127 * sysdeps/unix/sysv/linux/kernel-features.h: Add definition of
1128 __ASSUME_FADVISE64_64_SYSCALL.
1129 * sysdeps/unix/sysv/linux/syscalls.list: Don't define madvise and
1130 posix_madvise in one file. Have posix_madvise defined with error
1131 value returned.
1132 Define posix_fadvise64_64 entry. Add version info to posix_fadvise64
1133 entry.
1134 * sysdeps/unix/sysv/linux/i386/posix_fadvise.S: New file.
1135 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_ERRVAL,
1136 PSEUDO_END_ERRVAL, and ret_ERRVAL.
1137 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
1138 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
1139 * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.3.3]: Add
1140 posix_fadvise64.
1141
1142 * posix/Makefile (routines): Add posix_madvise.
1143 * sysdeps/generic/madvise.c: Don't define posix_madvise.
1144 * sysdeps/generic/posix_madvise.c: New file.
1145 * sysdeps/unix/sysv/aix/posix_madvise.c: New file.
1146 * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (subdir_routines):
1147 Add posix_fadvise64_64.
1148
1149 2003-08-15 Jakub Jelinek <jakub@redhat.com>
1150
1151 * assert/assert.h (assert_perror): Use __builtin_expect for gcc >=
1152 3.0, not for !gcc or gcc < 3.0.
1153
1154 2003-08-11 Carlos O'Donell <carlos@baldric.uwo.ca>
1155
1156 * dlfcn/default.c (main): Cast dlsym loaded value to same type as main.
1157 Address passed to test_in_mod1 and test_in_mod2 without casting.
1158 * dlfcn/defaultmod1.c: Change prototype of test_in_mod1.
1159 (test_in_mod1): Cast dlsym loaded value to same type as mainp.
1160 * dlfcn/defaultmod2.c: Change prototype of test_in_mod2.
1161 (test_in_mod2): Cast dlsym loaded value to same type as mainp.
1162
1163 2003-08-15 Jakub Jelinek <jakub@redhat.com>
1164
1165 * sysdeps/sparc/sparc32/elf/configure.in (libc_cv_sparc32_tls):
1166 Change quotes before using [].
1167
1168 * sysdeps/unix/sysv/linux/sparc/sys/user.h: New file.
1169
1170 * sysdeps/sparc/sparc32/bits/atomic.h (__sparc32_atomic_lock):
1171 Renamed to...
1172 (__sparc32_atomic_locks): ...this. Change into 64-byte array.
1173 (__sparc32_atomic_do_lock, __sparc32_atomic_do_unlock): Add addr
1174 argument. Select one of 64 locks from address bits.
1175 (atomic_compare_and_exchange_val_acq,
1176 atomic_compare_and_exchange_bool_acq): Pass memory address to
1177 __sparc32_atomic_do_{,un}lock.
1178
1179 2003-08-14 Ulrich Drepper <drepper@redhat.com>
1180
1181 * assert/assert.h (assert): Use !! in front of expression to allow
1182 use of pointers.
1183
1184 * iconvdata/cp932.c: Fixed checking of a few border of code areas.
1185 Changed conversion of JIS X 0201 from using a table to calculating.
1186 * iconvdata/euc-jp-ms.c: Fixed conversion table and rewrote
1187 conversion routine. Changed CHARSET_NAME definition from EUCJP-MS to
1188 EUC-JP-MS.
1189 * iconvdata/tst-tables.sh: Add CP932 and EUC-JP-MS.
1190 * iconvdata/CP932.irreversible: New file.
1191 * iconvdata/EUC-JP-MS.irreversible: New file.
1192 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
1193
1194 2003-08-13 Ulrich Drepper <drepper@redhat.com>
1195
1196 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add time syscall.
1197
1198 * elf/Makefile: Use LC_ALL=C in a few cases where we call external
1199 text processing tools.
1200
1201 * sysdeps/pthread/aio_misc.h (struct waitlist): Don't add caller_pid
1202 element unless BROKEN_THREAD_SIGNALS is defined.
1203 (struct requestlist): Likewise.
1204 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Don't fill in
1205 caller_pid of new request unless BROKEN_THREAD_SIGNALS is defined.
1206 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
1207 * sysdeps/pthread/aio_notify.c (__aio_notify_only): Remove caller_pid
1208 parameter unless BROKEN_THREAD_SIGNALS is defined. Adjust callers.
1209 Pass current PID to __aio_sigqueue.
1210 * sysdeps/pthread/lio_listio.c (lio_listio): Adjust __aio_notify_only
1211 call. Don't initialize caller_pid field of waitlist element.
1212
1213 2003-08-12 Jakub Jelinek <jakub@redhat.com>
1214
1215 * libio/libioP.h (_IO_vtable_offset): Define.
1216 * libio/freopen.c (freopen): Use it.
1217 * libio/ioputs.c (_IO_puts): Likewise.
1218 * libio/freopen64.c (freopen64): Likewise.
1219 * libio/genops.c (__underflow, __uflow, _IO_flush_all_lockp):
1220 Likewise.
1221 * libio/iofclose.c (_IO_new_fclose): Likewise.
1222 * libio/iofputs.c (_IO_fputs): Likewise.
1223 * libio/ioftell.c (_IO_ftell): Likewise.
1224 * libio/iofwrite.c (_IO_fwrite): Likewise.
1225 * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
1226 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
1227 * stdio-common/vfprintf.c (ORIENT, vfprintf): Likewise.
1228 * stdio-common/vfscanf.c (ORIENT): Likewise.
1229
1230 2003-08-11 Ulrich Drepper <drepper@redhat.com>
1231
1232 * assert/assert.h: Use __builtin_expect in assert and
1233 assert_perror definitions if possible.
1234
1235 2003-08-07 Jakub Jelinek <jakub@redhat.com>
1236
1237 * sysdeps/generic/ldsodefs.h (_rtld_global): Add
1238 _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
1239 * elf/rtld.c (rtld_lock_default_lock_recursive,
1240 rtld_lock_default_unlock_recursive): New functions.
1241 (dl_main): Initialize _dl_rtld_lock_recursive and
1242 _dl_rtld_unlock_recursive.
1243
1244 2003-08-05 Jakub Jelinek <jakub@redhat.com>
1245
1246 * elf/ldconfig.c (main): Append SLIBDIR and LIBDIR to
1247 config_file directories instead of prepending.
1248
1249 2003-08-02 Ulrich Drepper <drepper@redhat.com>
1250
1251 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1252 __ASSUME_CLONE_STOPPED.
1253
1254 2003-08-01 Ulrich Drepper <drepper@redhat.com>
1255
1256 * sysdeps/generic/bits/libc-lock.h
1257 (__libc_cleanup_push,__libc_cleanup_pop): Define even here.
1258
1259 2003-08-01 Roland McGrath <roland@frob.com>
1260
1261 * sysdeps/mach/hurd/getdents.c: Just use sysdeps/generic/getdents.c.
1262
1263 2003-07-31 Jakub Jelinek <jakub@redhat.com>
1264
1265 * sysdeps/generic/bits/types.h (__ssize_t): Use __SSIZE_T_TYPE
1266 instead of __SWORD_TYPE.
1267 * sysdeps/generic/bits/typesizes.h (__SSIZE_T_TYPE): Define.
1268 * sysdeps/mach/hurd/bits/typesizes.h (__SSIZE_T_TYPE): Define.
1269 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h (__SSIZE_T_TYPE):
1270 Define.
1271 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__SSIZE_T_TYPE):
1272 Define.
1273 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__SSIZE_T_TYPE):
1274 Define.
1275 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New file.
1276
1277 * dlfcn/dlerror.c (once): New.
1278 (dlerror): Call __libc_once.
1279 (_dlerror_run): Remove once.
1280
1281 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
1282 Sync with 2.5.7 and 2.5.73 kernel changes.
1283
1284 * dlfcn/eval.c (funcall): Add noinline attribute to shut up warnings.
1285 * elf/rtld.c (dl_main): Cast ElfW(Addr) arguments with %Zx/%Zd
1286 formats to size_t.
1287 * elf/dl-lookup.c (_dl_debug_bindings): Likewise.
1288 * elf/tst-tls6.c (do_test): Use %zd format for l_tls_modid.
1289 * elf/tst-tls8.c (do_test): Use %zd format for modid1 and modid2.
1290 * gmon/tst-sprofil.c (main): Add parens to shut up warning.
1291 * iconv/tst-iconv3.c (main): Use %td instead of %zd for pointer
1292 difference argument.
1293 * stdio-common/tst-wc-printf.c (main): Cast arguments with %C
1294 format to wint_t.
1295 * stdlib/tst-limits.c (main): For WORD_BIT and LONG_BIT, use
1296 %d format and cast expected value to int.
1297 * sysdeps/generic/libc-start.c (STATIC): Add
1298 __attribute__((always_inline) if LIBC_START_MAIN is already defined.
1299 * sysdeps/powerpc/fpu/w_sqrt.c (a_nan, a_inf): Change from uint32_t
1300 to ieee_float_shape_type.
1301 (__sqrt): Avoid type punning.
1302 * sysdeps/powerpc/fpu/w_sqrtf.c (a_nan, a_inf): Change from uint32_t
1303 to ieee_float_shape_type.
1304 (__sqrtf): Avoid type punning.
1305 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Don't define
1306 refsym if in dl-conflict.c.
1307 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
1308 * sysdeps/unix/sysv/linux/i386/semctl.c (union semun): Add __old_buf.
1309 (__new_semctl): Shut up warning.
1310 * sysdeps/unix/sysv/linux/semctl.c (union semun): Add __old_buf.
1311 (__new_semctl): Shut up warning.
1312 * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Wrap long lines.
1313 Change old into union of __old_shmid_ds and __old_shminfo structs.
1314 Adjust all users.
1315 * wcsmbs/wcsmbs-tst1.c (main): Cast arguments with %C format to wint_t.
1316
1317 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Fix actime and
1318 modtime computation.
1319 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
1320 * sysdeps/posix/utimes.c (__utimes): Likewise.
1321
1322 2003-07-30 Jakub Jelinek <jakub@redhat.com>
1323
1324 * elf/dl-reloc.c (_dl_allocate_static_tls): Don't return any value,
1325 call dl_signal_error directly. If already relocated, call
1326 GL(dl_init_static_tls) directly, otherwise queue it for later.
1327 (CHECK_STATIC_TLS): Undo 2003-07-24 change.
1328 * elf/rtld.c (dl_main): Initialize GL(dl_init_static_tls).
1329 * elf/dl-open.c (dl_open_worker): Call GL_dl_init_static_tls
1330 for all static TLS initializations delayed in _dl_allocate_static_tls.
1331 * elf/dl-support.c (_dl_init_static_tls): New variable.
1332 * include/link.h (struct link_map): Add l_need_tls_init.
1333 * sysdeps/generic/ldsodefs.h (_rtld_global): Add _dl_init_static_tls.
1334 (_dl_nothread_init_static_tls): New prototype.
1335 (_dl_allocate_static_tls): Adjust prototype.
1336
1337 * elf/tls-macros.h (VAR_INT_DEF): Add alignment directive.
1338
1339 2003-07-31 Alexandre Oliva <aoliva@redhat.com>
1340
1341 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
1342 elf_machine_rel_relative, elf_machine_rela_relative): Don't assume
1343 reloc_addr is aligned.
1344 * sysdeps/alpha/dl-machine.h (elf_machine_rela,
1345 elf_machine_rela_relative): Adjust.
1346 * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela,
1347 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
1348 * sysdeps/cris/dl-machine.h (elf_machine_rela,
1349 elf_machine_rela_relative): Adjust.
1350 * sysdeps/hppa/dl-machine.h (elf_machine_rela,
1351 elf_machine_rela_relative): Adjust.
1352 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela,
1353 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
1354 * sysdeps/ia64/dl-machine.h (elf_machine_rela,
1355 elf_machine_rela_relative): Adjust.
1356 * sysdeps/m68k/dl-machine.h (elf_machine_rela,
1357 elf_machine_rela_relative): Adjust.
1358 * sysdeps/mips/dl-machine.h (elf_machine_rela,
1359 elf_machine_rela_relative): Adjust.
1360 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela,
1361 elf_machine_rela_relative): Adjust.
1362 * sysdeps/powerpc/powerpc64/dl-machine.h
1363 (elf_machine_rela_relative, elf_machine_rela): Adjust.
1364 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela,
1365 elf_machine_rela_relative): Adjust.
1366 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela,
1367 elf_machine_rela_relative): Adjust.
1368 * sysdeps/sh/dl-machine.h (elf_machine_rela,
1369 elf_machine_rela_relative): Adjust.
1370 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
1371 elf_machine_rela_relative): Adjust.
1372 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
1373 elf_machine_rela_relative): Adjust.
1374 * sysdeps/x86_64/dl-machine.h (elf_machine_rela,
1375 elf_machine_rela_relative): Adjust.
1376
1377 2003-07-29 Ulrich Drepper <drepper@redhat.com>
1378
1379 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Restore
1380 alignment of TCB used before the last change so that it matches
1381 ld's output for IE code.
1382
1383 2003-07-29 Jakub Jelinek <jakub@redhat.com>
1384
1385 * include/ctype.h (__ctype_b_loc, __ctype_toupper_loc,
1386 __ctype_tolower_loc): Avoid "dereferencing type-punned pointer will
1387 break strict-aliasing rules" warnings.
1388
1389 2003-07-29 Roland McGrath <roland@redhat.com>
1390
1391 * elf/Makefile: Revert accidental changes in last commit.
1392 * elf/dl-support.c: Likewise.
1393
1394 * rt/tst-timer2.c: New file.
1395 * rt/Makefile (tests): Add it.
1396
1397 2003-07-25 Jakub Jelinek <jakub@redhat.com>
1398
1399 * elf/dl-support.c (_dl_hwcap): Add nocommon attribute.
1400
1401 2003-07-29 Roland McGrath <roland@redhat.com>
1402
1403 * elf/Makefile (tests) [$(build-shared) = yes]:
1404 Depend on $(test-modules).
1405 * dlfcn/Makefile: Likewise.
1406
1407 2003-07-28 Roland McGrath <roland@redhat.com>
1408
1409 * sysdeps/generic/bits/types.h (__STD_TYPE): New macro.
1410 Use that instead of `typedef' when using __*_TYPE macros in rhs.
1411
1412 * elf/tst-tls14.c [USE_TLS && HAVE___THREAD]: Conditionalize on this.
1413 * elf/tst-tlsmod14a.c: Likewise.
1414
1415 * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h>
1416 before <linux/sysctl.h>.
1417
1418 2003-07-27 Ulrich Drepper <drepper@redhat.com>
1419
1420 * sysdeps/unix/sysv/syscalls.list: time syscall never fails.
1421 * sysdeps/unix/sysv/linux/x86_64/time.S: time syscall never fails.
1422 * sysdeps/unix/sysv/i386/time.S: time syscall never fails.
1423 * sysdeps/unix/syscalls.list: umask syscall never fails.
1424
1425 2003-07-27 Andreas Jaeger <aj@suse.de>
1426
1427 * sysdeps/unix/sysv/linux/init-first.c: Mark init as used.
1428
1429 2003-07-25 Jakub Jelinek <jakub@redhat.com>
1430
1431 * sysdeps/unix/sysv/linux/a.out.h: Replace with i386 version.
1432 Include bits/a.out.h.
1433 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1434 bits/a.out.h.
1435 * sysdeps/unix/sysv/linux/bits/a.out.h: New file.
1436 * sysdeps/unix/sysv/linux/i386/bits/a.out.h: New file.
1437 * sysdeps/unix/sysv/linux/m68k/bits/a.out.h: New file.
1438 * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: New file.
1439 * sysdeps/unix/sysv/linux/alpha/a.out.h: New file.
1440 * sysdeps/unix/sysv/linux/alpha/bits/a.out.h: New file.
1441 * sysdeps/unix/sysv/linux/sparc/a.out.h: New file.
1442 * sysdeps/unix/sysv/linux/sparc/bits/a.out.h: New file.
1443
1444 2003-07-24 Jakub Jelinek <jakub@redhat.com>
1445
1446 * sysdeps/pthread/aio_cancel.c (aio_cancel): Return AIO_ALLDONE
1447 if aiocbp != NULL and has already completed. Return -1/EINVAL if
1448 aiocbp->aio_fildes does not match fildes.
1449
1450 2003-07-24 Ulrich Drepper <drepper@redhat.com>
1451
1452 * timezone/zic.c (rpytime): Replace cheap overflow check with a
1453 functioning one.
1454
1455 * include/link.h (struct link_map): Add l_tls_firstbyte_offset field.
1456 * sysdeps/generic/dl-tls.c [TLS_TCB_AT_TP] (_dl_determine_tlsoffset):
1457 Fix calculation of offsets to take misalignment of first byte in
1458 file into account.
1459 * elf/dl-load.c (_dl_map_object_from_fd): Initialize
1460 l_tls_firstbyte_offset field.
1461 * elf/rtld.c (_dl_start_final, _dl_start, dl_main): Likewise.
1462 * elf/dl-reloc.c (_dl_allocate_static_tls): Change return type to int.
1463 Take l_tls_firstbyte_offset information into account.
1464 (CHECK_STATIC_TLS): _dl_allocate_static_tls can fail now.
1465 * sysdeps/generic/ldsodefs.h: Adjust _dl_allocate_static_tls prototype.
1466 * elf/Makefile: Add rules to build and run tst-tls14.
1467 * elf/tst-tls14.c: New file.
1468 * elf/tst-tlsmod14a.c: New file.
1469 * elf/tst-tlsmod14b.c: New file.
1470
1471 2003-07-23 Jakub Jelinek <jakub@redhat.com>
1472
1473 * sysdeps/pthread/lio_listio.c (LIO_OPCODE_BASE): Define.
1474 (lio_listio): Use it.
1475 * sysdeps/pthread/lio_listio64.c: Include lio_listio.c instead of
1476 after few defines to avoid duplication.
1477
1478 2003-07-22 Jakub Jelinek <jakub@redhat.com>
1479
1480 * include/stdio.h (__libc_fatal): Add libc_hidden_proto.
1481 * include/dlfcn.h (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
1482 Likewise.
1483 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
1484 Add libc_hidden_def.
1485 * sysdeps/generic/libc_fatal.c (__libc_fatal): Likewise.
1486 * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
1487 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Likewise.
1488 * elf/Versions (libc): Export __libc_dlopen_mode@@GLIBC_PRIVATE,
1489 __libc_dlsym@@GLIBC_PRIVATE and __libc_dlclose@@GLIBC_PRIVATE.
1490 * libio/Versions (libc): Export __libc_fatal@@GLIBC_PRIVATE.
1491 * sysdeps/generic/unwind-dw2.c: Readd #ifs removed during last
1492 change.
1493 * sysdeps/generic/unwind.inc: Removed.
1494
1495 * include/resolv.h (__resp): Declare. Define to __libc_resp
1496 if in libc.so.
1497 (_res): If USE___THREAD, define to (*__resp).
1498 * resolv/res_libc.c (_res): Normal .bss variable with compat_symbol
1499 even if USE___THREAD.
1500 (__resp): New __thread variable.
1501 (__libc_resp): New alias.
1502 * resolv/Versions (libc): Export _res@GLIBC_2.0 even if
1503 USE_TLS && HAVE___THREAD. Export __resp@@GLIBC_PRIVATE.
1504 * sysdeps/generic/res-state.c (__res_state): Return __resp
1505 if USE___THREAD.
1506
1507 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
1508
1509 * elf/dl-support.c (_dl_hwcap): New variable.
1510 (_dl_aux_init): Initialize GL(dl_hwcap) for static binaries.
1511
1512 * sysdeps/i386/fpu/fclrexcpt.c: Include <unistd.h>, <ldsodefs.h>
1513 and <dl-procinfo.h>.
1514 (__feclearexcept): Clear MXCSR if needed.
1515 * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
1516
1517 * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Document
1518 that newer hardware needs more than these macros.
1519
1520 * sysdeps/i386/setfpucw.c: New file.
1521
1522 2003-07-22 Jakub Jelinek <jakub@redhat.com>
1523
1524 * elf/Makefile (CFLAGS-ldconfig.c): Define IS_IN_ldconfig.
1525 * elf/ldconfig.c: Include dl-procinfo.c.
1526 (PROCINFO_CLASS): Define.
1527 * sysdeps/generic/ldsodefs.h (PROCINFO_CLASS): Define.
1528 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: New file.
1529 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: New file.
1530 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (PROCINFO_CLASS):
1531 Define if not yet defined. Use it instead of EXTERN. Undefine
1532 at the end of the file.
1533 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (PROCINFO_CLASS):
1534 Likewise.
1535 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c
1536 (PROCINFO_CLASS): Likewise.
1537 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c
1538 (PROCINFO_CLASS): Likewise.
1539
1540 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
1541
1542 * elf/ldconfig.c (main): Issue a fatal error if relative path
1543 is used to build cache.
1544
1545 2003-07-22 Ulrich Drepper <drepper@redhat.com>
1546
1547 * elf/readlib.c (process_file): Avoid possible overflow in assignment.
1548
1549 2003-07-21 Art Haas <ahaas@airmail.net>
1550
1551 * manual/charset.texi (Converting a Character): Fix example code so a
1552 valid pointer is returned.
1553
1554 2003-07-22 Andreas Jaeger <aj@suse.de>
1555
1556 * elf/readlib.c (process_file): Check that file is a shared
1557 object.
1558
1559 * elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
1560 will not optimize it away.
1561 (__DTOR_END__): Likewise.
1562 (__CTOR_END__): Likewise.
1563
1564 * include/libc-symbols.h (_elf_set_element): Use attribute used so
1565 that gcc will not optimize it away.
1566 (link_warning): Likewise.
1567
1568 2003-07-22 Ulrich Drepper <drepper@redhat.com>
1569
1570 * wcsmbs/wcpncpy.c (__wcpncpy): Correct destination pointer handling.
1571 * wcsmbs/Makefile (tests): Add tst-wcpncpy.
1572 * wcsmbs/tst-wcpncpy.c: New file.
1573
1574 2003-07-21 Ulrich Drepper <drepper@redhat.com>
1575
1576 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_STOPPED): Define.
1577
1578 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of
1579 stmxcsr and ldmxcsr.
1580
1581 * Makerules (build-module-helper): Add -z defs unless explicitly said
1582 not to do it.
1583 * dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs
1584 which has undefined symbols.
1585 * elf/Makefile: Likewise.
1586
1587 * sysdeps/i386/fpu/fedisblxcpt.c: Use dl_hwcap, not dl_hwcap_mask.
1588 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
1589 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
1590 * sysdeps/i386/fpu/fesetround.c: Likewise.
1591 * sysdeps/i386/fpu/ftestexcept.c: Likewise.
1592
1593 2003-07-21 HJ Lu <hongjiu.lu@intel.com>
1594
1595 * elf/ldconfig.c (search_dir): Treat symlink as regular file
1596 if it won't point to itself.
1597
1598 2003-07-20 Ulrich Drepper <drepper@redhat.com>
1599
1600 * sysdeps/ia64/hp-timing.h (REPEAT_READ): Cast to long int not to int.
1601
1602 2003-07-20 Andreas Jaeger <aj@suse.de>
1603
1604 * iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called
1605 STANDARD_TO_LOOP_ERR_HANDLER.
1606 * iconvdata/euc-jp-ms.c (BODY): Likewise.
1607
1608 2003-07-19 Ulrich Drepper <drepper@redhat.com>
1609
1610 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO): Fix typo.
1611
1612 * sysdeps/unix/sysv/linux/syscalls.list: Remove affinity syscalls.
1613
1614 2003-07-16 Daniel Jacobowitz <drow@mvista.com>
1615 Andreas Jaeger <aj@suse.de>
1616
1617 * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to
1618 256K, remove unneeded declaration of __getpagesize.
1619
1620 2003-07-16 Andreas Schwab <schwab@suse.de>
1621
1622 * sysdeps/unix/sysv/linux/futimes.c: Include <string.h>.
1623
1624 2003-07-15 Ulrich Drepper <drepper@redhat.com>
1625
1626 * io/test-utime.c (main): Make test yet more robust.
1627
1628 2003-07-14 Ulrich Drepper <drepper@redhat.com>
1629
1630 More cancellation handling fixups.
1631 * sysdeps/unix/sysv/linux/not-cancel.h: Add waitpid_not_cancel.
1632 * sysdeps/generic/not-cancel.h: Likewise.
1633 * catgets/open_catalog.c: Use not-cancelable syscalls.
1634 * time/Makefile (CFLAGS-getdate.c): Add -fexceptions.
1635 * sysdeps/unix/sysv/linux/llseek.c: Must not be cancelable.
1636 * sysdeps/unix/syscalls.list: Don't mark lseek as cancelable.
1637 * dlfcn/dlfcn.h: Mark dlopen with __THROW again.
1638 * io/fcntl.h: Don't mark posix_fallocate with __THROW.
1639 * libio/fileops.c: Use not-cancelable syscalls for fclose.
1640 * libio/iopopen.c: Use no-cancelable syscalls.
1641 * libio/stdio.h: Mark popen and pclose with __THROW again.
1642 * misc/Makefile (CFLAGS-syslog.c): Add -fexceptions.
1643 * misc/syslog.c: Fix locking and cancellation cleanup handling.
1644 * posix/unistd.h: Mark ttyname and ttyname_r again with __THROW.
1645 * stdio-common/Makefile (CFLAGS-tmpfile.c, CFLAGS-tmpfile64.c,
1646 CFLAGS-tempname.c): Add -fexceptions.
1647 * stdlib/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
1648 * string/string.h: Mark strerror and strerror_r with _THROW again.
1649 * sysdeps/generic/unwind.inc: New file. Copied from gcc.
1650 * sysdeps/generic/unwind-dw2.c: Update from gcc version. Remove
1651 #ifs since we now need all the code compiled.
1652 * sysdeps/posix/spawni.c: Use close_not_cancel instead of close.
1653 * sysdeps/unix/closedir.c: Use not-cancelable syscalls.
1654 * sysdeps/unix/opendir.c: Likewise.
1655
1656 * iconvdata/Makefile (modules): Add CP932 and EUC-JP-MS.
1657 Add rule for EUC-JP-MS dependency.
1658 * iconvdata/cp932.c: New file.
1659 * iconvdata/eucjp-ms.c: New file.
1660 * iconvdata/gconv-modules: Add entries for CP932 and EUC-JP-MS.
1661 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
1662
1663 2003-07-15 Jakub Jelinek <jakub@redhat.com>
1664
1665 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket): Add
1666 cfi directives.
1667
1668 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1669
1670 * sysdeps/unix/sysv/linux/kernel-features.h
1671 (__ASSUME_FIXED_CLONE_SYSCALL): New macro.
1672 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Use it.
1673
1674 * sysdeps/unix/sysv/linux/utimes.c: Include sysdep.h.
1675
1676 2003-07-14 Ulrich Drepper <drepper@redhat.com>
1677
1678 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1679 __ASSUME_TGKILL for Alpha appropriately.
1680
1681 2003-07-12 Ulrich Drepper <drepper@redhat.com>
1682
1683 * sysdeps/unix/sysv/linux/bits/statfs.h (_STATFS_F_FRSIZE): Define.
1684 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h (_STATFS_F_FRSIZE):
1685 Likewise.
1686 * sysdeps/unix/sysv/linux/s390/bits/statfs.h (_STATFS_F_FRSIZE):
1687 Likewise.
1688
1689 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1690 __ASSUME_UTIMES for x86 and kernels > 2.5.75.
1691
1692 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with
1693 second parameter == NULL.
1694 * sysdeps/unix/sysv/linux/utimes.c: New file.
1695
1696 2003-07-12 Jakub Jelinek <jakub@redhat.com>
1697
1698 * sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h.
1699 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix
1700 a typo.
1701
1702 2003-07-12 Ulrich Drepper <drepper@redhat.com>
1703
1704 * time/sys/time.h: Namespace cleanup.
1705 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1706 __ASSUME_UTIMES for the architectures which always had the syscall.
1707 * sysdeps/unix/sysv/linux/futimes.c: New file.
1708
1709 2003-07-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1710
1711 * sysdeps/unix/sysv/linux/sh/socket.S: Save and restore the PR
1712 register across CENABLE and CDISABLE.
1713
1714 2003-07-11 Jakub Jelinek <jakub@redhat.com>
1715
1716 * sysdeps/unix/sysv/linux/sigwait.c: Include string.h.
1717 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1718 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
1719 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Cast value to unsigned
1720 int before assigning to max to avoid warnings.
1721
1722 2003-07-11 Jakub Jelinek <jakub@redhat.com>
1723
1724 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket): Add
1725 cfi directives.
1726 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Likewise.
1727 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
1728
1729 2003-07-10 Jakub Jelinek <jakub@redhat.com>
1730
1731 * sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of
1732 .data.rel.ro.local to "aw".
1733
1734 2003-07-10 Ulrich Drepper <drepper@redhat.com>
1735
1736 * sysdeps/m68k/Makefile: Remove CLFAGS-.oS addition.
1737 * Makeconfig (CFLAGS-.oS): Use PIC-ccflag instead of pic-ccflag.
1738 (PIC-ccflag): Define.
1739
1740 2003-07-04 Jakub Jelinek <jakub@redhat.com>
1741
1742 * sysdeps/s390/s390-32/elf/start.S: Emit position independent code
1743 if PIC.
1744 * sysdeps/s390/s390-64/elf/start.S: Likewise.
1745
1746 2003-07-07 Jakub Jelinek <jakub@redhat.com>
1747
1748 * sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address)
1749 into .data.rel.ro.local section if PIC to avoid DT_TEXTREL.
1750
1751 2003-07-07 Ulrich Drepper <drepper@redhat.com>
1752
1753 * sysdeps/unix/sysv/linux/kernel-features.h: Version
1754 __ASSUME_CORRECT_SI_PID and __ASSUME_TGKILL if possible.
1755
1756 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
1757 compilation with HAVE_AUX_SECURE defined.
1758
1759 2003-07-05 Richard Henderson <rth@redhat.com>
1760
1761 * sysdeps/alpha/elf/initfini.c: Avoid .ent/.end.
1762
1763 2003-07-03 Ulrich Drepper <drepper@redhat.com>
1764
1765 * configure.in: Also check for .cfi_rel_offset pseudo-op.
1766
1767 2003-07-03 Jakub Jelinek <jakub@redhat.com>
1768
1769 * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency): Fix a
1770 typo.
1771
1772 2003-07-03 Ulrich Drepper <drepper@redhat.com>
1773
1774 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_CLKTCK):
1775 Define.
1776 * sysdeps/unix/sysv/linux/prof-freq.h: New file.
1777
1778 2003-07-02 Jakub Jelinek <jakub@redhat.com>
1779
1780 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Protect new_sysinfo
1781 decl and use with #ifdef NEED_DL_SYSINFO.
1782
1783 2003-07-02 Ulrich Drepper <drepper@redhat.com>
1784
1785 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't set
1786 GL(dl_sysinfo) unles GL(dl_sysinfo_dso) is also set.
1787 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1788 __ASSUME_VSYSCALL only for 2.5.69 and up since this is when the
1789 vsyscall DSO was added.
1790
1791 * posix/bits/posix1_lim.h (_POSIX_NGROUPS_MAX): Define to 8 or 0
1792 depending on selected standard.
1793 (NGROUPS_MAX): Define to 8 if not defined.
1794
1795 2003-07-02 Andreas Jaeger <aj@suse.de>
1796
1797 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: New file.
1798
1799 2003-05-04 H.J. Lu <hongjiu.lu@intel.com>
1800
1801 * malloc/arena.c (arena_get2): Add atomic_write_barrier.
1802 * malloc/thread-m.h: Include <atomic.h>.
1803 (atomic_full_barrier): Provide default.
1804 (atomic_read_barrier): Likewise.
1805 (atomic_write_barrier): Likewise.
1806 * sysdeps/ia64/bits/atomic.h (atomic_full_barrier): New #define.
1807
1808 2003-06-30 Ulrich Drepper <drepper@redhat.com>
1809
1810 * sysdeps/generic/sysdep.h: Define cfi_rel_offset and CFI_REL_OFFSET.
1811
1812 2003-06-30 Richard Henderson <rth@redhat.com>
1813
1814 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_bool_*_int):
1815 Invert the sense of the return value.
1816 (__arch_exchange_16_int): Fix paste-o.
1817 (__arch_exchange_{32,64}_int): Fix think-o.
1818
1819 * sysdeps/unix/sysv/linux/alpha/clone.S: Load child_tid properly.
1820
1821 2003-06-30 Richard Henderson <rth@redhat.com>
1822
1823 * include/sys/resource.h (__getrusage): Mark hidden.
1824 * include/sys/time.h (__settimeofday, __setitimer, __utimes): Likewise.
1825 * include/sys/wait.h (__wait4): Likewise.
1826
1827 2003-06-17 Guido Guenther <agx@sigxcpu.org>
1828
1829 * sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT
1830 case.
1831 (xstat_conv): Rename to __xstat_conv and remove static inline.
1832 (xstat64_conv): Likewise.
1833
1834 2003-06-29 Ulrich Drepper <drepper@redhat.com>
1835
1836 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Handle parameter
1837 values which cannot be handled in one nanosleep call.
1838
1839 2003-06-25 Alfred M. Szmidt <ams@kemisten.nu>
1840
1841 * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros.
1842 (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them.
1843
1844 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix.
1845
1846 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
1847
1848 * sysdeps/unix/sysv/linux/net/if_arp.h: Sync with kernel header,
1849 fix typo.
1850
1851 2003-06-26 Steven Munroe <sjmunroe@us.ibm.com>
1852
1853 * sysdeps/unix/sysv/linux/xstatconv.h [!STAT_IS_KERNEL_STAT]:
1854 Conditionalize function definitions that use struct kernel_stat.
1855 * sysdeps/unix/sysv/linux/fxstat.c: Remove __syscall_fstat extern.
1856 * sysdeps/unix/sysv/linux/lxstat.c: Remove __syscall_lstat extern.
1857 * sysdeps/unix/sysv/linux/xstat.c: Remove __syscall_stat extern.
1858
1859 2003-06-28 Ulrich Drepper <drepper@redhat.com>
1860
1861 * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Add real
1862 implementation.
1863
1864 2003-06-07 Thorsten Kukuk <kukuk@suse.de>
1865
1866 * nis/nss_compat/compat-grp.c: Remove unused nis_first variable.
1867 (getgrent_next_file): Don't store group name to early in blacklist.
1868
1869 * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Save strlen result
1870 and use memcpy instead of strcpy.
1871
1872 2003-06-28 Ulrich Drepper <drepper@redhat.com>
1873
1874 * nis/nss_compat/compat-grp.c: Optimize several little things. Use
1875 stream unlocked.
1876 * nis/nss_compat/compat-initgroups.c: Likewise.
1877 * nis/nss_compat/compat-pwd.c: Likewise.
1878 * nis/nss_compat/compat-spwd.c: Likewise.
1879
1880 2003-06-27 Thorsten Kukuk <kukuk@suse.de>
1881
1882 * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+
1883 functions, dlopen corresponding NSS module instead.
1884
1885 2003-06-27 Jeroen Dekkers <jeroen@dekkers.cx>
1886
1887 * sysdeps/mach/hurd/alpha/init-first.c: Remove call to __libc_init.
1888 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
1889 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
1890 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1891
1892 2003-06-27 Ulrich Drepper <drepper@redhat.com>
1893
1894 * rt/Makefile (CFLAGS-librt-cancellation.c): Define.
1895
1896 2003-06-26 Roland McGrath <roland@frob.com>
1897
1898 * sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME.
1899 * sysdeps/mach/configure: Regenerated.
1900 * sysdeps/mach/hurd/times.c (times_init): Function removed.
1901 (__times): Assume `creation_time' field is available.
1902 * sysdeps/mach/hurd/Makefile [$(subdir) = csu] (sysdep_routines):
1903 Don't append set-init.
1904 * sysdeps/mach/hurd/set-init.c: File removed.
1905
1906 2003-06-26 Roland McGrath <roland@redhat.com>
1907
1908 * elf/elf.h (AT_SECURE): New macro.
1909 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Grok it,
1910 set __libc_enable_secure.
1911 (_dl_show_auxv): Add AT_SECURE to name table.
1912 * elf/dl-support.c (_dl_aux_init): Grok AT_SECURE, set
1913 __libc_enable_secure and __libc_enable_secure_decided.
1914 * sysdeps/unix/sysv/linux/ldsodefs.h
1915 [__ASSUME_AT_SECURE] (HAVE_AUX_SECURE): Define it.
1916 * sysdeps/unix/sysv/linux/kernel-features.h
1917 [__LINUX_KERNEL_VERSION >= 132426] (__ASSUME_AT_SECURE): Define it.
1918
1919 2003-06-26 Ulrich Drepper <drepper@redhat.com>
1920
1921 * io/test-utime.c: If _STATBUF_ST_NSEC is defined, adjust lower
1922 boundary test to take rounding of nanoseconds into account.
1923
1924 * sysdeps/unix/sysv/linux/bits/stat.h: Define _STATBUF_ST_NSEC.
1925 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1926 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise.
1927 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1928 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1929 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1930 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1931
1932 2003-06-26 Andreas Schwab <schwab@suse.de>
1933
1934 * sysdeps/m68k/fpu/bits/mathinline.h: Don't inline frexp.
1935 * sysdeps/m68k/fpu/s_frexp.c: Put implementation here.
1936 * sysdeps/m68k/fpu/s_frexpl.c: Fix to handle unnormalized numbers.
1937
1938 2003-06-17 Thorsten Kukuk <kukuk@suse.de>
1939
1940 * nis/Makefile: Remove NIS/NIS+ files from nss_compat module.
1941 * nis/nss_compat/compat-grp.c: Don't use our own NIS/NIS+ functions,
1942 dlopen corresponding NSS module instead.
1943 * nis/nss_compat/compat-pwd.c: Likewise.
1944 * nis/nss_compat/compat-spwd.c: Likewise.
1945 * nis/nss_compat/compat-initgroups.c: Disabled for now.
1946 * nss/Versions: Export __nss_lookup_function.
1947
1948 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1949
1950 * sysdeps/unix/sysv/linux/kernel-features.h: Update kernel features
1951 for the SH architecture.
1952
1953 2003-06-25 Thorsten Kukuk <kukuk@suse.de>
1954
1955 * csu/Makefile: Use CPPFLAGS to find correct linux/version.h.
1956
1957 2003-06-25 Andreas Jaeger <aj@suse.de>
1958
1959 * stdlib/tst-strtod.c (main): Declare constant long double as
1960 suggested by Jakub Jelinek and Andreas Schwab.
1961
1962 * posix/tst-nanosleep.c: Include <time.h> for nanosleep
1963 declaration.
1964
1965 * stdio-common/tst-fphex.c: Fix format string.
1966
1967 * posix/transbug.c: Include <string.h> for memset and strlen
1968 declarations.
1969
1970 * stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration.
1971
1972 * stdlib/tst-strtod.c (main): Pass long double value.
1973
1974 * test-skeleton.c: Include <time.h> for nanosleep declaration.
1975
1976 2003-06-25 Ulrich Drepper <drepper@redhat.com>
1977
1978 * include/time.h: Don't define CLOCK_IDFIELD_SIZE if _ISOMAC is
1979 defined.
1980
1981 2003-06-11 Jakub Jelinek <jakub@redhat.com>
1982
1983 * elf/Versions (libc): Add _dl_open_hook@GLIBC_PRIVATE.
1984 * elf/dl-libc.c (struct dl_open_hook): New.
1985 (_dl_open_hook): New variable.
1986 (do_dlsym_private): New function.
1987 (__libc_dlopen_mode) [!SHARED]: Lookup _dl_open_hook@GLIBC_PRIVATE
1988 and initialize it if found.
1989 (__libc_dlopen_mode) [SHARED]: If _dl_open_hook is non-NULL,
1990 call dlopen_mode hook.
1991 (__libc_dlsym) [SHARED]: If _dl_open_hook is non-NULL,
1992 call dlsym hook.
1993 (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL,
1994 call dlclose hook.
1995
1996 2003-06-25 Ulrich Drepper <drepper@redhat.com>
1997
1998 * sysdeps/unix/sysv/linux/cris/sysdep.h (INLINE_SYSCALL): Cast
1999 result to long int so that extensions to long long int work.
2000 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
2001
2002 2003-06-19 Jakub Jelinek <jakub@redhat.com>
2003
2004 * elf/ldconfig.c (main): Use add_system_dir instead of add_dir.
2005 * sysdeps/generic/dl-cache.h (add_system_dir): Define.
2006 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: Include sparc
2007 dl-cache.h.
2008 * sysdeps/unix/sysv/linux/s390/dl-cache.h: New file.
2009 * sysdeps/unix/sysv/linux/mips/dl-cache.h: New file.
2010 * sysdeps/unix/sysv/linux/powerpc/dl-cache.h: New file.
2011 * sysdeps/unix/sysv/linux/sparc/dl-cache.h: New file.
2012
2013 2003-06-19 Jakub Jelinek <jakub@redhat.com>
2014
2015 * test-skeleton.c (timeout_handler): If waitpid returned 0,
2016 retry once after a second. If killed == 0, assume
2017 WTERMSIG (status) == SIGKILL.
2018
2019 2003-06-18 Roland McGrath <roland@redhat.com>
2020
2021 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Catch uninitialized
2022 elements in the table instead of printing an empty name string.
2023
2024 2003-06-05 Roland McGrath <roland@redhat.com>
2025
2026 * elf/elf.h (PT_GNU_STACK): New macro.
2027
2028 2003-06-24 Ulrich Drepper <drepper@redhat.com>
2029
2030 * include/time.h: Define CLOCK_IDFIELD_SIZE.
2031 * sysdeps/posix/clock_getres.c: Recognize thread CPU clock IDs.
2032 * sysdeps/unix/clock_gettime.c: Likewise.
2033 * sysdeps/unix/clock_settime.c: Likewise.
2034 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Adjust for new
2035 clock id for thread CPU clocks.
2036
2037 * sysdeps/unix/sysv/linux/fstatfs64.c (__fstatfs64): Add support
2038 for the fstatfs64 syscall.
2039 * sysdeps/unix/sysv/linux/statfs64.c (__statfs64): Add support for
2040 the statfs64 syscall.
2041
2042 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2043 __ASSUME_STATFS64 appropriately.
2044
2045 * sysdeps/unix/sysv/linux/internal_statvfs.c: Use f_frsize field
2046 from statfs structure if it has been filled in.
2047
2048 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_frsize
2049 field.
2050 (struct statfs64): Likewise.
2051 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: Likewise.
2052 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
2053
2054 2003-06-24 Richard Henderson <rth@redhat.com>
2055
2056 * sysdeps/unix/sysv/linux/alpha/syscalls.list (pread, pwrite): Use
2057 the 64-bit syscall name.
2058
2059 * sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue.
2060
2061 * sysdeps/alpha/fpu/bits/mathinline.h: Honor
2062 __LIBC_INTERNAL_MATH_INLINES. Implement __signbitf, __signbit.
2063
2064 * sysdeps/unix/sysv/linux/alpha/clone.S: Use HIDDEN_JUMPTARGET.
2065 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use
2066 libc_hidden_def.
2067 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
2068 * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use libc_hidden_proto
2069 on them.
2070
2071 * sysdeps/alpha/bits/atomic.h: New file.
2072
2073 2003-06-24 Andreas Schwab <schwab@suse.de>
2074
2075 * sysdeps/m68k/fpu/libm-test-ulps: Update.
2076
2077 2003-06-24 Andreas Jaeger <aj@suse.de>
2078
2079 * sysdeps/unix/sysv/linux/x86_64/stat.h (_STAT_VER_LINUX): Avoid
2080 redeclaration with 32-bit code.
2081
2082 2003-05-19 Ed Connell <ed.connell@sas.com>
2083
2084 * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain
2085 floating point mask.
2086 * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise.
2087
2088 2003-06-23 Ulrich Drepper <drepper@redhat.com>
2089
2090 * sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex,
2091 __aio_enqueue_request, __aio_find_req, __aio_find_req_fd,
2092 __aio_free_request, __aio_notify, and __aio_sigqueue as hidden.
2093
2094 * sysdeps/pthread/aio_suspend.c (aio_suspend): Set errno to the result
2095 of pthread_cond_wait if there was an error. Use pthread_cleanup_*
2096 instead of __libc_cleanup_region_*.
2097
2098 2003-06-20 Richard Henderson <rth@redhat.com>
2099
2100 * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases.
2101 * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New.
2102
2103 2003-06-20 Richard Henderson <rth@redhat.com>
2104
2105 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
2106 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
2107 Unset for alpha.
2108 (__ASSUME_TIMEVAL64): Set for alpha.
2109 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
2110 adjtimex, osf_sigprocmask, old_adjtimex.
2111 * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
2112 __ASSUME_TIMEVAL64. Reorg tv64 functions to avoid uninit variable.
2113 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
2114 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
2115 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
2116 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
2117 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
2118 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
2119 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
2120 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
2121 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
2122 PIC code sequence.
2123 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
2124 * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
2125 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
2126 * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
2127 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
2128 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
2129 sys_ustat, sys_mknod, adjtimex, old_adjtimex.
2130 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
2131 defer to __syscall_name; error for rt_sigaction.
2132 * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
2133
2134 2003-06-18 Ulrich Drepper <drepper@redhat.com>
2135
2136 * malloc/malloc.c (public_mALLINFo): Initialize malloc if it
2137 hasn't happened yet.
2138
2139 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
2140 Fix completely broken implementation. The second parameter is of
2141 type struct ucontext*.
2142
2143 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always
2144 inline.
2145
2146 * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash.
2147 * sysdeps/generic/dl-hash.h: Likewise.
2148
2149 * sysdeps/generic/memcmp.c: Remove inline from
2150 memcmp_common_alignment and memcmp_not_common_alignment definition.
2151
2152 * intl/localealias.c (read_alias_file): Determine whether line is
2153 read incompletely early, before we modify the line.
2154
2155 2003-06-17 Jakub Jelinek <jakub@redhat.com>
2156
2157 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela)
2158 <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
2159
2160 2003-06-17 Paul Mackerras <paulus@samba.org>
2161
2162 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file.
2163 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: New file.
2164 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: New file.
2165 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: New file.
2166 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: New file.
2167 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Adjust.
2168
2169 2003-06-17 Jakub Jelinek <jakub@redhat.com>
2170
2171 * posix/regcomp.c (build_word_op): Use alnum instead of alpha class.
2172
2173 2003-06-17 Ulrich Drepper <drepper@redhat.com>
2174
2175 * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
2176 takes care of enabling cancellation.
2177
2178 * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
2179 cancelable. It's not correct to disable cancellation. Instead of
2180 a cleanup handler.
2181
2182 * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
2183 and part of the incoming set, create a temporary set without this
2184 signal.
2185 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
2186 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
2187
2188 * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
2189 returning because seconds==0. Add __builtin_expect.
2190
2191 2003-06-16 Ulrich Drepper <drepper@redhat.com>
2192
2193 * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
2194
2195 * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
2196 variable.
2197
2198 2003-06-16 Thorsten Kukuk <kukuk@suse.de>
2199
2200 * include/libc-symbols.h: Add static_link_warning macro.
2201 * grp/initgroups.c: Print linker warning if this function
2202 is called in a static linked binary.
2203 * nss/getXXbyYY.c: Likewise.
2204 * nss/getXXbyYY_r.c: Likewise.
2205 * nss/getXXent.c: Likewise.
2206 * nss/getXXent_r.c: Likewise.
2207 * sysdeps/posix/getaddrinfo.c: Likewise.
2208
2209 2003-06-16 Bruno Haible <bruno@clisp.org>
2210
2211 * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
2212 LATIN-9.
2213 (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
2214 (IBM1047): Add alias IBM-1047.
2215 (GBK): Add aliases MS936, WINDOWS-936.
2216
2217 2003-06-16 Jakub Jelinek <jakub@redhat.com>
2218
2219 * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
2220 defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
2221 (__xstat64_conv): Change xstat_conv to __xstat_conv.
2222
2223 2003-06-16 Ulrich Drepper <drepper@redhat.com>
2224
2225 * locale/iso-639.def: Update from current official ISO 639.
2226
2227 * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
2228
2229 2003-06-15 Andreas Jaeger <aj@suse.de>
2230
2231 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
2232 of MXCSR.
2233 * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
2234 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
2235 Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
2236
2237 * math/tgmath.h (carg): Handle real arguments.
2238 (conj): Likewise.
2239 (cproj): Likewise.
2240 (cimag): Likewise.
2241 (creal): Likewise.
2242
2243 * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
2244 (tests): Add test-tgmath-ret.
2245 * math/test-tgmath-ret.c: New file.
2246
2247 * math/tgmath.h (ilogb): Return always an int.
2248
2249 2003-06-16 Ulrich Drepper <drepper@redhat.com>
2250
2251 * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
2252 computation so that prelinking works.
2253
2254 2003-06-15 Ulrich Drepper <drepper@redhat.com>
2255
2256 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
2257 linker's map.
2258 * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
2259 dynamic linker's map.
2260
2261 Fix cancellation point handling wrt exception based cleanup.
2262 * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
2263 * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
2264 with exceptions.
2265 * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
2266 sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
2267 * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
2268 exceptions.
2269 * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
2270 sigwait.c, and sigwaitinfo.c with exceptions.
2271 * stdlib/Makefile: Compile system.c with exceptions.
2272 * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
2273 * termios/Makefile: Compile tcdrain.c with exceptions.
2274 * sysdeps/generic/lockf.c: Add comment explaining the cancellation
2275 situation.
2276 * sysdeps/generic/pselect.c: Likewise.
2277 * sysdeps/posix/sigpause.c: Likewise.
2278 * sysdeps/posix/system.c: Likewise.
2279 * sysdeps/posix/waitid.c: Likewise.
2280 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
2281 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
2282 * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
2283 INTERNAL_SYSCALL to not use push inside asm statement so that
2284 unwind info is correct around the syscall.
2285 * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
2286 * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
2287
2288 2003-06-15 Andreas Jaeger <aj@suse.de>
2289
2290 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
2291 Add CFI directives.
2292
2293 2003-06-15 Guido Guenther <agx@sigxcpu.org>
2294
2295 * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
2296 create $(objpfx).
2297
2298 2003-06-14 Ulrich Drepper <drepper@redhat.com>
2299
2300 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
2301 not close.
2302
2303 * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
2304 * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
2305 definition.
2306
2307 * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
2308 * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
2309 * inet/Makefile (routines): Add inet6_option.
2310 * inet/inet6_option.c: New file.
2311 * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
2312 inet6_option_init, inet6_option_append, inet6_option_alloc,
2313 inet6_option_next, and inet6_option_find.
2314
2315 2003-06-13 Ulrich Drepper <drepper@redhat.com>
2316
2317 * inet/netinet/ip6.h (struct ip6_ext): Define.
2318
2319 * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
2320
2321 Fixing gcc 3.3 warnings, part II.
2322 * argp/argp-help.c (hol_entry_long_iterate): Always inline.
2323 * elf/dl-load.c (cache_rpath): Don't inline.
2324 * iconvdata/cns11642l2.h: Always inline all functions.
2325 * iconvdata/iso-ir-165.h: Likewise.
2326 * locale/Makefile (aux): Add coll-lookup.
2327 * locale/coll-lookup.c: New file.
2328 * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
2329 (collseq_table_lookup): Likewise.
2330 * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
2331 * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
2332 change.
2333 * posix/regcomp.c: Likewise.
2334 * posix/regexec.c: Likewise.
2335 * locale/programs/3level.h (*_get): Always inline.
2336 * locale/programs/locfile.h: Move definition of handle_copy to...
2337 * locale/programs/locfile.c: ...here.
2338 * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
2339 (obstack_int32_grow_fast): Likewise.
2340 (utf8_encode): Likewise.
2341 (find_element): Avoid aliasing problems.
2342 (insert_value): Likewise.
2343 (collate_read): Likewise.
2344 * nss/getent.c (print_hosts): Don't inline
2345 (print_networks): Likewise.
2346 (print_shadow): Likewise.
2347 (build_doc): Likewise.
2348 * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
2349 inline.
2350 * posix/regcomp.c (re_set_fastmap): Always inline.
2351 (seek_collating_symbol_entry): Likewise.
2352 (lookup_collation_sequence_value): Likewise.
2353 (build_range_exp): Likewise.
2354 (build_collating_symbol): Likewise.
2355 * posix/regexec.c (acquire_init_state_context): Don't inline.
2356 (clean_state_log_if_need): Likewise.
2357 * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
2358 adjust all callers.
2359 (evConsTime): Likewise.
2360 (evAddTime): Likewise.
2361 (evSubTime): Likewise.
2362 (evNowTime): Likewise.
2363 (evTimeSpec): Removed.
2364 (__libc_res_nsend): Avoid aliasing problem.
2365 * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
2366 * sysdeps/unix/sysv/linux/ifreq.c: ...here.
2367 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
2368 Always inline.
2369 (_dl_string_platform): Likewise.
2370 * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
2371 (wcwidth_table_lookup): Likewise.
2372 (wctrans_table_lookup): Likewise.
2373
2374 * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
2375
2376 2003-06-12 Ulrich Drepper <drepper@redhat.com>
2377
2378 * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
2379
2380 2003-05-29 Jim Meyering <jim@meyering.net>
2381
2382 * time/strftime.c (my_strftime) [!defined _NL_CURRENT
2383 && HAVE_STRFTIME]: Use underlying_strftime for %r.
2384 Suggested by Daniel Yacob <locales@geez.org>.
2385
2386 2003-06-12 Steven Munroe <sjmunroe@us.ibm.com>
2387
2388 * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
2389 @got notation with @toc.
2390 * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
2391 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
2392
2393 2003-06-12 Ulrich Drepper <drepper@redhat.com>
2394
2395 * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
2396 if only PF_INET address is needed.
2397
2398 * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
2399 case of an error.
2400
2401 * scripts/config.guess: Update from upstream version.
2402 * scripts/config.sub: Likewise.
2403
2404 2003-06-12 Jakub Jelinek <jakub@redhat.com>
2405
2406 * locale/programs/ld-time.c (time_output): Also copy the era format,
2407 not only the name.
2408
2409 2003-06-12 H.J. Lu <hongjiu.lu@intel.com>
2410
2411 * posix/transbug.c (run_test): Return 1 for failure.
2412 (do_test): Compare only if run_test is successful.
2413
2414 2003-06-12 Simon Josefsson <jas@extundo.com>
2415
2416 * argp/argp.h [!__THROW]: Define if undefined.
2417
2418 2003-06-12 Ulrich Drepper <drepper@redhat.com>
2419
2420 * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
2421 more than four parameters.
2422 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
2423
2424 2003-06-12 Jakub Jelinek <jakub@redhat.com>
2425
2426 * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
2427 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
2428 * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
2429
2430 * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
2431
2432 2003-06-12 Roland McGrath <roland@redhat.com>
2433
2434 * Makerules ($(objpfx)stubs): Rewrite sed magic.
2435
2436 2003-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
2437
2438 * posix/regcomp.c (parse_expression): Deliver translation to
2439 build_word_op, and build_charclass.
2440 (build_charclass): Apply translation for character classes too.
2441 (build_word_op): Deliver translation to build_charclass.
2442 * posix/transbug.c: New file.
2443 * posix/Makefile (tests): Add transbug.
2444
2445 2003-06-04 Paolo Bonzini <bonzini@gnu.org>
2446
2447 * posix/regexec.c (group_nodes_into_DFAstates): Check for
2448 NEXT_ENDBUF_CONSTRAINT. Move check for constraints which do a
2449 'continue' before the others.
2450
2451 2003-06-11 Ulrich Drepper <drepper@redhat.com>
2452
2453 * dirent/scandir.c (SCANDIR): Reset errno after calling selector
2454 function [PR libc/5045].
2455
2456 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
2457 also for P4.
2458
2459 * time/tzfile.c: Add a couple of __builtin_expect.
2460
2461 Remove warnings gcc 3.3 shows.
2462 * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
2463 * elf/dl-load.c (fillin_rpath): Likewise.
2464 (add_path): Likewise.
2465 * elf/dl-version.c (find_needed): Always inline.
2466 * elf/do-lookup.c (FCT): Don't inline.
2467 * iconv/Makefile: Extend vpath to intl subdir.
2468 (iconvconfig-modules): Add hash-string.
2469 * iconv/gconv_charset.h (strip): Don't inline.
2470 (upstr): Always inline.
2471 Move __gconv_compare_alias prototype to...
2472 * iconv/gconv_int.h: ...here.
2473 * iconv/gconv_db.c: Don't include gconv_charset.h.
2474 * iconv/gconv_conf.c (add_alias): Don't inline.
2475 (insert_module): Likewise.
2476 * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
2477 (internal_ucs4_loop_unaligned): Likewise.
2478 (internal_ucs4_loop_single): Likewise.
2479 (ucs4_internal_loop): Likewise.
2480 (ucs4_internal_loop_unaligned): Likewise.
2481 (ucs4_internal_loop_single): Likewise.
2482 (internal_ucs4le_loop): Always inline.
2483 (internal_ucs4le_loop_unaligned): Likewise.
2484 (internal_ucs4le_loop_single): Likewise.
2485 (ucs4le_internal_loop): Likewise.
2486 (ucs4le_internal_loop_unaligned): Likewise.
2487 (ucs4le_internal_loop_single): Likewise.
2488 * iconv/loop.c: Always inline the defined functions.
2489 * iconvdata/cns11642.h: Likewise.
2490 * iconvdata/cns11642l1.h: Likewise.
2491 * iconvdata/euc-kr.c: Likewise.
2492 * iconvdata/gb2312.h: Likewise.
2493 * iconvdata/jis0201.h: Likewise.
2494 * iconvdata/jis0208.h: Likewise.
2495 * iconvdata/jis0212.h: Likewise.
2496 * iconvdata/jisx0213.h: Likewise.
2497 * iconvdata/ksc5601.h: Likewise.
2498 * iconvdata/utf-7.c (base64): Don't inline.
2499 * include/libc-symbols.h (symbol_set_first_element): Add cast
2500 (symbol_set_end_p): Likewise.
2501 * include/set-hooks (RUN_HOOK): Likewise.
2502 * inet/Makefile (aux): Add ifreq.
2503 * intl/Makefile (aux): Add some entries from routines. Add
2504 hash-string.
2505 * intl/hash-string.c: New file.
2506 * intl/hash-string.h: Remove hash_string definition. Declare
2507 __hash_string.
2508 * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
2509 * iconv/iconvconfig.c (new_name): Likewise.
2510 * intl/dcigettext.c (_nl_find_msg): Likewise.
2511 * intl/loadmsgcat.c (_nl_load_domain): Likewise.
2512 * io/ftw.c (open_dir_stream): Always inline.
2513 (process_entry): Don't inline.
2514 * locale/findlocale.c: Include gconv_int.h.
2515 * locale/setlocale.c (new_composite_name): Don't inline.
2516 * locale/weight.h (findidx): Always inline.
2517 * locale/weightwc.h (findidx): Likewise.
2518 * locale/programs/linereader.c (lr_ignore_rest): Define here.
2519 * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
2520 just declare it.
2521 (lr_getc): Always inline.
2522 (lr_ungetc): Likewise.
2523 * nss/nss_files/files-parse.c (parse_list): Likewise.
2524 * stdio-common/Makefile (aux): Add printf-parsemb and
2525 printf-parsewc.
2526 * stdio-common/_itoa.h (_itoa_word): Always inline.
2527 (_fitoa_word, _fitoa): Don't define here, only declare.
2528 * stdio-common/_itoa.c (_iftoa_word): Add here.
2529 (_fitoa): Likewise.
2530 * stdio-common/_itowa.h (_itowa_word): Always inline.
2531 * stdio-common/printf-parse.h (read_int): Don't inline.
2532 (find_spec): Don't define.
2533 Declare __find_specmb and __find_specwc.
2534 (parse_one_spec): Don't define.
2535 Declare __parse_one_specmb and __parse_one_specwc.
2536 * stdio-common/printf-parsemb.c: New file.
2537 * stdio-common/printf-parsewc.c: New file.
2538 * stdio-common/vfprintf.c: Update calls to find_spec and
2539 parse_one_spec for new names.
2540 * stdio-common/printf-prs.c: Likewise. Define DONT_NEED_READ_INT.
2541 * stdlib/Makefile (aux): Add grouping and groupingwc.
2542 * stdlib/grouping.c: New file.
2543 * stdlib/groupingwc.c: New file.
2544 * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
2545 Just prototype.
2546 * stdlib/rpmatch.c (try): Don't inline.
2547 * stdlib/strtod.c (round_and_return): Don't line.
2548 (str_to_mpn): Likewise.
2549 (__mpn_lshift_1): Always inline. Optimize only for constant count.
2550 Adjust for name change of correctly_grouped_prefix.
2551 * sysdeps/generic/strtol.c: Adjust for name change of
2552 correctly_grouped_prefix.
2553 * string/strxfrm.c (utf8_encode): Don't inline.
2554 * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
2555 * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
2556 * sysdeps/generic/ifreq.c: New file.
2557 * sysdeps/unix/sysv/linux/ifreq.c: New file.
2558 * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
2559 * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
2560 * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
2561 * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
2562 (fde_split): Likewise.
2563 (fde_merge): Likewise.
2564 (end_fde_sort): Likewise.
2565 (init_object): Likewise.
2566 (binary_search_unencoded_fdes): Likewise.
2567 (binary_search_single_encoding_fdes): Likewise.
2568 (binary_search_mixed_encoding_fdes): Likewise.
2569 * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
2570 * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
2571 * sysdeps/posix/sprofil.c (profil_count): Don't inline.
2572 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
2573 Add xstatconv.
2574 * sysdeps/unix/sysv/linux/xstatconv.h: New file.
2575 * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
2576 Export them. Prepend __ to name.
2577 * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
2578 * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
2579 conversion functions.
2580 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
2581 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
2582 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
2583 * sysdeps/unix/sysv/linux/xstat.c: Likewise.
2584 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
2585 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
2586 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
2587 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
2588 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
2589 __statfs_filesize_max, __statfs_symlinks): Define here. __ prepended
2590 to name. Change callers.
2591 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
2592 __statfs_filesize_max, __statfs_symlinks): Don't define here, just
2593 declare.
2594 * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
2595 * time/tzfile.c (decode): Always inline.
2596 * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
2597 Remove cast in tomb function call.
2598 * wcsmbs/wcsrtombs.c Likewise.
2599 * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
2600 tomb function call.
2601
2602 2003-06-10 Ulrich Drepper <drepper@redhat.com>
2603
2604 * po/zh_CN.po: Update from translation team.
2605
2606 2003-06-10 Jakub Jelinek <jakub@redhat.com>
2607
2608 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
2609 IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
2610
2611 2003-06-10 Ulrich Drepper <drepper@redhat.com>
2612
2613 * inet/Makefile (aux): Add check_pf.
2614 * include/ifaddrs.h: Add prototype for __check_pf.
2615 * sysdeps/generic/check_pf.c: New file.
2616 * sysdeps/unix/sysv/linux/check_pf.c: New file.
2617 * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
2618 from no_netlink_support. Export.
2619 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
2620 call __check_pf.
2621
2622 * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
2623
2624 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
2625 from getifaddr calls.
2626
2627 2003-06-09 Jakub Jelinek <jakub@redhat.com>
2628
2629 * sysdeps/unix/sysv/linux/kernel-features.h
2630 (__ASSUME_SETRESGID_SYSCALL): Define.
2631 * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
2632 instead of __ASSUME_SETRESUID_SYSCALL.
2633 (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
2634 defined.
2635 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
2636 inline syscall if __NR_setresuid32 is defined.
2637 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
2638 __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
2639 * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
2640 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
2641 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
2642 code handling non-existant setresgid32 syscall with
2643 #if __ASSUME_SETRESGID_SYSCALL == 0.
2644
2645 2003-06-09 Andreas Schwab <schwab@suse.de>
2646
2647 * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
2648 ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
2649 $(objpfx)rpc-proto.d.
2650 (rpcsvc-dt-files, rpcsvc-depfiles): Define. Include
2651 $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
2652 ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
2653
2654 2003-06-08 Ulrich Drepper <drepper@redhat.com>
2655
2656 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
2657 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
2658 defined drop compatibility code.
2659 * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
2660 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
2661 defined drop compatibility code.
2662 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
2663 setresuid32 syscall directly if possible.
2664 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
2665 setresgid32 syscall directly if possible.
2666 * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
2667 compliant. Don't change sgid.
2668 * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
2669 compliant. Don't change suid.
2670
2671 * config.h.in: Add have-forced-unwind.
2672 * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
2673
2674 2003-06-07 Ulrich Drepper <drepper@redhat.com>
2675
2676 * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
2677 returned status from child matches.
2678
2679 * Makeconfig (gnulib): Add -lgcc_eh once again.
2680
2681 2003-06-06 Ulrich Drepper <drepper@redhat.com>
2682
2683 * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
2684
2685 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
2686 %edx for first parameter. This means no pushl and therefore the
2687 unwind info isn't screwed up.
2688
2689 2003-06-04 Richard Henderson <rth@redhat.com>
2690
2691 * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
2692 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
2693 * sysdeps/alpha/elf/start.S: Likewise. Remove pointless allocation.
2694 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
2695 entry sequence and explicit relocs. Add unwind info for sigreturn
2696 and rt_sigreturn.
2697 * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
2698
2699 * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
2700 Annotate some parameters.
2701 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
2702
2703 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
2704
2705 * include/libc-symbols.h (symbol_set_declare): Use arrays
2706 of unspecified size.
2707
2708 2003-06-04 Jakub Jelinek <jakub@redhat.com>
2709
2710 * config.make.in (ASFLAGS-config): New.
2711 * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
2712 * configure.in (libc_cv_as_noexecstack): New check.
2713 (ASFLAGS_config): Substitute.
2714
2715 2003-06-04 Jakub Jelinek <jakub@redhat.com>
2716
2717 * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
2718 hypot, logb): Protect with #ifdef __FAST_MATH__.
2719
2720 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
2721
2722 * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
2723 #ifdef __FAST_MATH__.
2724
2725 2003-06-03 Ulrich Drepper <drepper@redhat.com>
2726
2727 * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
2728 DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
2729 * posix/globtest.sh: Adjust for this change.
2730
2731 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
2732 to get the actual PID value used in the records passed up.
2733 (getifaddrs): Don't initialize nh.pid here.
2734
2735 2003-06-02 Ulrich Drepper <drepper@redhat.com>
2736
2737 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
2738 optimization.
2739
2740 * po/zh_CN.po: Update from translation team.
2741
2742 * posix/getconf.c (main): Also recognize names without the
2743 _POSIX_ prefix.
2744
2745 * elf/Makefile (CFLAGS-dl-lookup.c): Define.
2746
2747 2003-06-02 Bernd Schmidt <bernds@redhat.com>
2748
2749 * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
2750 ldexpf, ldexpl): Only define if __FAST_MATH__.
2751
2752 2003-06-02 Richard C. Bilson <rcbilson@plg.uwaterloo.ca>
2753
2754 Replace hard-coded offsets into struct sigcontext with generated file.
2755 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
2756 * sysdeps/unix/sysv/linux/ia64/Makefile
2757 [$(subdir) = stdlib] (gen-as-const-headers): Add it.
2758 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
2759 defining SC_* macros here.
2760
2761 2003-06-02 Jakub Jelinek <jakub@redhat.com>
2762
2763 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
2764
2765 2003-06-01 Jakub Jelinek <jakub@redhat.com>
2766
2767 * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
2768
2769 2003-06-01 Ulrich Drepper <drepper@redhat.com>
2770
2771 * test-skeleton.c (main): Request getopt to not reorder the
2772 command line.
2773
2774 * elf/Makefile (CFLAGS-dl-runtime.c): Define.
2775
2776 * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
2777 stpncpy.
2778
2779 2003-05-31 Ulrich Drepper <drepper@redhat.com>
2780
2781 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
2782
2783 2003-05-31 Jakub Jelinek <jakub@redhat.com>
2784
2785 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
2786 New function.
2787 (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
2788 RESOLVE_CONFLICT_FIND_MAP. If RESOLVE_CONFLICT_FIND_MAP is defined,
2789 call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
2790
2791 2003-05-31 Ulrich Drepper <drepper@redhat.com>
2792
2793 * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
2794 CFI directives.
2795
2796 * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
2797
2798 * libio/fileops.c (_IO_file_open): Don't mark as inline.
2799
2800 * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
2801 attribute used.
2802
2803 2003-05-30 Ulrich Drepper <drepper@redhat.com>
2804
2805 * scripts/config.guess: Update from master copy.
2806 * scripts/config.sub: Likewise.
2807
2808 2003-05-30 Guido Guenther <agx@sigxcpu.org>
2809
2810 * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
2811 SETUP_GP64 and friends.
2812 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
2813 names in internal_syscall{6,7}.
2814 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
2815 * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
2816 number of syscall arguments.
2817 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2818 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2819 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2820
2821 2003-05-30 Andreas Jaeger <aj@suse.de>
2822
2823 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
2824 Add CFI directives.
2825
2826 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
2827 directives.
2828
2829 * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
2830
2831 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
2832 Add CFI directives.
2833
2834 2003-05-30 Jakub Jelinek <jakub@redhat.com>
2835
2836 * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
2837 SHARED.
2838
2839 2003-05-11 Andreas Schwab <schwab@suse.de>
2840
2841 * Makerules: Always use -MP together with -MD.
2842 (sed-remove-dotot): Substitute $(..) also at start of line.
2843 ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
2844 Generated defines with a single compiler call.
2845 Use $(sed-remove-dotdot).
2846 * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
2847 of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
2848 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
2849 Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
2850 * sysdeps/unix/sysv/linux/mips/Makefile
2851 ($(objpfx)syscall-%.h): Likewise.
2852
2853 2003-05-28 Roland McGrath <roland@redhat.com>
2854
2855 * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
2856
2857 2003-05-26 Aldy Hernandez <aldyh@redhat.com>
2858
2859 * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
2860
2861 2003-05-28 Roland McGrath <roland@redhat.com>
2862
2863 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
2864 rt_sigprocmask system call.
2865 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
2866 From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
2867
2868 2003-05-28 Ulrich Drepper <drepper@redhat.com>
2869
2870 * include/libc-symbols.h: Define hidden attribute for real also if
2871 LIBC_NONSHARED is defined. Patch by Jakub Jelinek.
2872
2873 * csu/Makefile: Add rules to build Scrt1.o.
2874 * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
2875 * sysdeps/x86_64/elf/start.S: Likewise.
2876
2877 2003-05-27 Jakub Jelinek <jakub@redhat.com>
2878
2879 * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
2880 pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
2881 * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
2882 pa_short_int, pa_u_short_int and pa_float.
2883
2884 2003-05-26 Jakub Jelinek <jakub@redhat.com>
2885
2886 * libio/strops.c (_IO_str_init_static): Change into a wrapper around
2887 _IO_str_init_static_internal.
2888 (_IO_str_init_static_internal): Moved from _IO_str_init_static,
2889 change size argument to _IO_size_t, don't limit sprintf to 64M.
2890 (_IO_str_init_readonly): Call _IO_str_init_static_internal.
2891 * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
2892 _IO_size_t, don't limit swprintf to 256M.
2893 (_IO_wstr_init_readonly): Remove.
2894 * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
2895 Adjust prototypes.
2896 (_IO_wstr_init_readonly): Remove prototype.
2897 * libio/iovsprintf.c (_IO_vsprintf): Use
2898 _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
2899 * libio/iovsscanf.c (_IO_vsscanf): Likewise.
2900 * libio/memstream.c (open_memstream): Likewise.
2901 * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
2902 * libio/vasprintf.c (_IO_vasprintf): Likewise.
2903 * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
2904 * stdio-common/tst-sprintf.c (main): Add new test.
2905
2906 2003-05-26 Ulrich Drepper <drepper@redhat.com>
2907
2908 * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
2909 other implementation in respect of multiple uses of parameter with
2910 different types.
2911
2912 2003-05-25 Ulrich Drepper <drepper@redhat.com>
2913
2914 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2915 __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
2916
2917 2003-05-22 Andreas Jaeger <aj@suse.de>
2918
2919 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
2920 directives.
2921 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
2922 * sysdeps/x86_64/strtok.S: Likewise.
2923
2924 2003-05-20 Guido Guenther <agx@sigxcpu.org>
2925
2926 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
2927 to -60 and define SI_TKILL.
2928
2929 2003-05-21 H.J. Lu <hongjiu.lu@intel.com>
2930
2931 * math/test-fenv.c (feexcp_nomask_test): Fix comment.
2932 (feexcp_mask_test): Likewise.
2933
2934 2003-05-21 Ulrich Drepper <drepper@redhat.com>
2935
2936 * locale/programs/locale.c (main): Fix typo in last patch.
2937
2938 * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
2939 __init_array_start, __init_array_end, __fini_array_start, and
2940 __fini_array_end as hidden.
2941
2942 2003-05-21 Petter Reinholdtsen <pere@hungry.com>
2943
2944 * locale/programs/locale.c (main): Report an error if setlocale()
2945 fails [PR libc/2254].
2946
2947 2003-05-21 Jakub Jelinek <jakub@redhat.com>
2948
2949 * sysdeps/unix/sysv/linux/s390/system.c: New file.
2950
2951 2003-05-21 Jakub Jelinek <jakub@redhat.com>
2952
2953 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
2954 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
2955 LOADARGS_6): Don't error if syscall argument is a string literal.
2956 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
2957 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
2958 LOADARGS_6): Likewise.
2959
2960 2003-05-21 Andreas Jaeger <aj@suse.de>
2961
2962 * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
2963 cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
2964 cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
2965
2966 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
2967 (ENTRY): Likewise.
2968 (END): Likewise.
2969
2970 * configure.in: Test for asm cfi directives.
2971
2972 * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
2973
2974 2003-05-17 Andreas Jaeger <aj@suse.de>
2975
2976 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
2977
2978 * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
2979
2980 2003-05-16 Ulrich Drepper <drepper@redhat.com>
2981
2982 * rt/Makefile (tests): Add tst-clock_nanosleep.
2983 * rt/tst-clock_nanosleep.c: New file.
2984 * posix/Makefile (tests): Add tst-nanosleep.
2985 * posix/tst-nanosleep.c: New file.
2986
2987 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
2988
2989 * include/features.h (__USE_XOPEN2K): Define also for
2990 _POSIX_C_SOURCE>=200112L.
2991
2992 * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
2993 SI_TKILL code into SI_USER.
2994 * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
2995
2996 * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
2997
2998 2003-05-15 Jakub Jelinek <jakub@redhat.com>
2999
3000 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
3001 Remove sym argument, always use refsym.
3002 (__process_machine_rela): Adjust callers.
3003 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
3004 Likewise.
3005 * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
3006 Adjust prototype.
3007 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
3008
3009 2003-05-15 Ulrich Drepper <drepper@redhat.com>
3010
3011 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
3012 (DL_NEED_SYSINFO -> NEED_DL_SYSINFO). If aux value is not known
3013 print numeric values.
3014
3015 2003-05-12 Thorsten Kukuk <kukuk@suse.de>
3016
3017 * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
3018
3019 2003-05-14 Andreas Schwab <schwab@suse.de>
3020
3021 * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
3022
3023 2003-05-14 Jakub Jelinek <jakub@redhat.com>
3024
3025 * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
3026 even if no DT_NEEDED is present.
3027
3028 2003-05-13 David Mosberger <davidm@hpl.hp.com>
3029
3030 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
3031 2003-03-27: setjmp is NOT a leaf-routine (due to the call to
3032 __sigjmp_save) so we can't keep the saved unat value in a scratch
3033 register (r16). Use loc2 instead.
3034
3035 2003-05-13 Ulrich Drepper <drepper@redhat.com>
3036
3037 * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
3038 binaries it has to be relocatable.
3039
3040 * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
3041
3042 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
3043
3044 * sysdeps/powerpc/bits/atomic.h
3045 (__arch_compare_and_exchange_bool_8_rel): Define.
3046 (__arch_compare_and_exchange_bool_16_rel): Define.
3047 (__ARCH_REL_INSTR): Define if not already defined.
3048 (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
3049 (__arch_atomic_decrement_if_positive_32):
3050 Add "memory" to clobber list.
3051 (__arch_compare_and_exchange_val_32_acq): Remove release sync.
3052 (__arch_compare_and_exchange_val_32_rel): Define.
3053 (__arch_atomic_exchange_32): Remove.
3054 (__arch_atomic_exchange_32_acq): Define.
3055 (__arch_atomic_exchange_32_rel): Define.
3056 (atomic_compare_and_exchange_val_rel): Define.
3057 (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
3058 (atomic_exchange_rel): Define.
3059 * sysdeps/powerpc/powerpc32/bits/atomic.h
3060 (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
3061 (__arch_compare_and_exchange_bool_32_rel): Define.
3062 (__arch_compare_and_exchange_bool_64_rel): Define.
3063 (__arch_compare_and_exchange_val_64_rel): Define.
3064 (__arch_atomic_exchange_64): Remove.
3065 (__arch_atomic_exchange_64_acq): Define.
3066 (__arch_atomic_exchange_64_rel): Define.
3067 * sysdeps/powerpc/powerpc64/bits/atomic.h
3068 (__arch_compare_and_exchange_bool_32_rel): Define.
3069 (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
3070 (__arch_compare_and_exchange_bool_64_rel): Define.
3071 (__arch_compare_and_exchange_val_64_acq): Remove release sync.
3072 (__arch_compare_and_exchange_val_64_rel): Define.
3073 (__arch_atomic_exchange_64): Remove.
3074 (__arch_atomic_exchange_64_acq): Define.
3075 (__arch_atomic_exchange_64_rel): Define.
3076 (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
3077 (__arch_atomic_decrement_if_positive_64):
3078 Add "memory" to clobber list.
3079 [!UP](__ARCH_REL_INSTR): Define as lwsync.
3080
3081 2003-05-11 Andreas Schwab <schwab@suse.de>
3082
3083 * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
3084
3085 2003-05-11 Ulrich Drepper <drepper@redhat.com>
3086
3087 * time/tst-strftime.c (do_test): Add tests for - flag.
3088
3089 2003-05-11 Jim Meyering <jim@meyering.net>
3090
3091 * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
3092 the space-padded-by-default conversion specifiers, %e, %k, %l.
3093
3094 2003-05-11 Andreas Schwab <schwab@suse.de>
3095
3096 * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
3097
3098 2003-05-10 Ulrich Drepper <drepper@redhat.com>
3099
3100 * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
3101 already defined and when really needed.
3102 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
3103
3104 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
3105
3106 * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
3107 headers, add defines from kernel header, move it from here...
3108 * inet/netinet/igmp.h: ... to here.
3109 * inet/Makefile (headers): Add netinet/igmp.h.
3110 * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
3111 * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
3112
3113 2003-05-10 Ulrich Drepper <drepper@redhat.com>
3114
3115 * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
3116 use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
3117
3118 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
3119
3120 * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
3121 (remove __THROW from possible cancellation points).
3122
3123 2003-05-10 Ulrich Drepper <drepper@redhat.com>
3124
3125 * posix/sched.h (CPU_SETSIZE): Define.
3126
3127 2003-05-09 Ulrich Drepper <drepper@redhat.com>
3128
3129 * Makeconfig (gnulib): Remove -lgcc_eh again.
3130
3131 * posix/sched.h: Change prototypes of sched_getaffinity and
3132 sched_setaffinity. Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
3133 * sysdeps/generic/sched_getaffinity.c: Adjust definition.
3134 * sysdeps/generic/sched_setaffinity.c: Likewise.
3135 * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
3136 __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
3137 __CPU_CLR, and __CPU_ISSET.
3138 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
3139 * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
3140 * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
3141
3142 * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
3143 (atomic_exchange_rel): New #define.
3144 * sysdeps/ia64/bits/atomic.h: Likewise.
3145 * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
3146 atomic_exchange.
3147 * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
3148 * sysdeps/powerpc/bits/atomic.h: Likewise.
3149 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
3150 * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
3151 * sysdeps/x86_64/bits/atomic.h: Likewise.
3152 * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
3153
3154 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
3155
3156 2003-05-08 Ulrich Drepper <drepper@redhat.com>
3157
3158 * malloc/thread-m.h: Remove special handling of thread_atfork if
3159 HAVE_register_atfork_malloc is defined.
3160
3161 2003-05-07 Andreas Jaeger <aj@suse.de>
3162
3163 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
3164 information.
3165
3166 2003-05-06 Ulrich Drepper <drepper@redhat.com>
3167
3168 * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
3169 * libio/oldiofopen.c (_IO_old_fopen): Likewise.
3170 * libio/libioP.h: Declare _IO_old_init.
3171 * libio/genops.c (_IO_no_init): Split in two. New function
3172 _IO_old_init.
3173
3174 2003-05-05 Ulrich Drepper <drepper@redhat.com>
3175
3176 * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
3177 variable.
3178 (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
3179 is nonzero.
3180 * include/unistd.h: Declare __libc_enable_secure_decided.
3181 * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
3182 and AT_EGID. If all found, set __libc_enable_secure and
3183 __libc_enable_secure_decided.
3184
3185 * sysdeps/generic/libc-start.c [!SHARED]: Call
3186 __libc_check_standard_fds after __libc_init_first.
3187
3188 2003-05-05 Roland McGrath <roland@redhat.com>
3189
3190 * Makerules (common-before-compile): New variable.
3191 ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
3192 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise. Move this rule
3193 to after all setting of before-compile.
3194
3195 2003-05-05 Jakub Jelinek <jakub@redhat.com>
3196
3197 * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
3198 __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
3199 * sysdeps/powerpc/powerpc32/bits/atomic.h
3200 (__arch_compare_and_exchange_val_64_acq): Likewise.
3201 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
3202 (__arch_compare_and_exchange_val_8_acq,
3203 __arch_compare_and_exchange_val_16_acq,
3204 __arch_compare_and_exchange_val_64_acq): Likewise.
3205 * sysdeps/sparc/sparc64/bits/atomic.h
3206 (__arch_compare_and_exchange_val_8_acq,
3207 __arch_compare_and_exchange_val_16_acq): Likewise.
3208 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
3209 __arch_compare_and_exchange_val_16_acq,
3210 __arch_compare_and_exchange_val_64_acq): Likewise.
3211 * sysdeps/unix/sysv/linux/sh/bits/atomic.h
3212 (__arch_compare_and_exchange_val_64_acq): Likewise.
3213 * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
3214 up warning.
3215 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
3216
3217 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
3218 (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
3219 Return long instead of int.
3220 (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
3221 0xfffff001u with -4095UL.
3222
3223 2003-05-05 Andreas Jaeger <aj@suse.de>
3224
3225 * sysdeps/x86_64/fpu_control.h: New from i386.
3226
3227 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
3228 Define if not defined.
3229
3230 * sunrpc/Makefile (generated-dirs): New variable.
3231 * resolv/Makefile (generated): New variable.
3232
3233 2003-05-04 Roland McGrath <roland@redhat.com>
3234
3235 * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
3236 Depend on $(before-compile).
3237
3238 * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
3239 pattern rule. The implicit rule could be ruled out when $(objpfx)
3240 didn't exist at the time of its consideration (ugh!).
3241
3242 * Makerules (+make-deps): Fix target matching.
3243 Use $(sed-remove-dotdot).
3244
3245 2003-05-03 Ulrich Drepper <drepper@redhat.com>
3246
3247 * nscd/nscd.c (main): Parse config file right after parsing
3248 parameters. Then, if get_stats is true, call receive_print_stats.
3249 Drop parameter from nscd_init call.
3250 (get_stats): New variable.
3251 (parse_opt): Set get_stats, don't call receive_print_stats here.
3252 * nscd/nscd.h: Declare dbs, stat_user, and stat_uid. Adjust nscd_init
3253 prototype.
3254 * nscd/connections.c (stat_user, stat_uid): New variables.
3255 (dbs): Make global.
3256 (nscd_init): Don't read configuration file here. Drop parameter.
3257 (handle_request): Cleanup handling of non-database lookup requests.
3258 * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
3259 Get UID of the specified user. Use xstrdup instead of strdup.
3260 * nscd/nscd_stat.c (receive_print_stats): Check UID. If not zero,
3261 check stat_user.
3262 * nscd/Makefile (nscd-modules): Add xstrdup.
3263 * nscd/nscd.conf: Document stat-user entry.
3264
3265 2003-05-03 H.J. Lu <hongjiu.lu@intel.com>
3266
3267 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
3268 if not defined.
3269
3270 2003-04-22 Roland McGrath <roland@redhat.com>
3271
3272 * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
3273 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
3274 dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
3275 * elf/dl-support.c: Update defn.
3276 * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
3277 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
3278 Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
3279 (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
3280 * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
3281 set, set up a link_map for the preloaded, prelinked object.
3282
3283 2003-05-03 Roland McGrath <roland@redhat.com>
3284
3285 * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
3286 * stdio-common/Makefile: ... not here.
3287
3288 * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
3289 * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
3290
3291 2003-05-02 Ulrich Drepper <drepper@redhat.com>
3292
3293 * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
3294
3295 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
3296
3297 * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
3298 comparing ftab elements.
3299 (_dl_unmap): Fix typo in test.
3300 (_dl_make_fptr): Fix typos introduced in last change.
3301
3302 * sysdeps/generic/dl-fptr.c: Put back one optimization from the
3303 original patch. Use non-exported symbols. Mark translatable
3304 strings. Pretty printing.
3305
3306 2003-05-02 Roland McGrath <roland@redhat.com>
3307
3308 * Makerules (do-stamp): Do $(make-target-directory).
3309
3310 2003-04-07 H.J. Lu <hjl@gnu.org>
3311
3312 * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
3313
3314 2003-04-03 H.J. Lu <hjl@gnu.org>
3315
3316 * sysdeps/ia64/dl-fptr.c: Moved to ...
3317 * sysdeps/generic/dl-fptr.c: Here.
3318
3319 * sysdeps/generic/dl-fptr.h: New.
3320 * sysdeps/ia64/dl-fptr.h: New.
3321
3322 * sysdeps/ia64/dl-symaddr.c: Moved to ...
3323 * sysdeps/generic/dl-symaddr.c: here.
3324
3325 * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
3326 (IA64_BOOT_FPTR_TABLE_LEN): Removed.
3327 (ia64_fdesc): Likewise.
3328 (ia64_fdesc_table): Likewise.
3329 (__ia64_make_fptr): Likewise.
3330 (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
3331 with _dl_boot_fptr_table.
3332 (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
3333 `struct fdesc'.
3334 (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
3335
3336 2003-05-01 Roland McGrath <roland@redhat.com>
3337
3338 * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
3339 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
3340
3341 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
3342 Use $(make-target-directory).
3343 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
3344
3345 * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
3346 (compile-command.S): Don't use ifndef. Append $(compile-mkdep-flags).
3347 (compile-command.s, compile-command.c): Likewise.
3348 ($(objpfx)%.d): All such pattern rules removed.
3349 ($(+sysdir_pfx)sysd-rules): Don't generate them.
3350 ($(common-objpfx)dummy.d): Target removed.
3351 (make-dummy-dep): Variable removed.
3352 (generate-md5): Likewise.
3353 (%.d: %.dt): New pattern rule.
3354 (+depfiles): Use $(wildcard) function to get just existing *.d files
3355 and .d files for existing *.dt files.
3356 (common-clean): Remove all *.d and *.dt files.
3357 (before-compile): Add $(objpfx). when it doesn't exist,
3358 regardless of $(no_deps).
3359 * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
3360 (rtld-depfiles): Use .os.d instead of .d names.
3361 Include existing *.d files and .d files for existing *.dt files.
3362
3363 * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
3364 Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
3365
3366 * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
3367 Do s-*.d includes only if we have some syscall routines in this subdir.
3368
3369 * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
3370 @nobits. The former is accepted by gas on any ELF platform.
3371
3372 2003-05-01 Ulrich Drepper <drepper@redhat.com>
3373
3374 * sysdeps/unix/sysv/linux/semtimedop.c: New file.
3375
3376 * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
3377
3378 2003-04-29 Andreas Schwab <schwab@suse.de>
3379
3380 * string/test-strcat.c (do_one_test): Fix attribute name.
3381
3382 2003-04-30 Alexandre Oliva <aoliva@redhat.com>
3383
3384 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
3385 uc_flags long for all ABIs.
3386
3387 2003-04-30 Andreas Jaeger <aj@suse.de>
3388
3389 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
3390 (DR_CONTROL_RESERVED): Use correct value for 64-bit.
3391 Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
3392 Add bi-arch support.
3393
3394 2003-04-30 Ulrich Drepper <drepper@redhat.com>
3395
3396 * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
3397 (__posix_memalign): Use __memalign_internal instead of memalign.
3398
3399 2003-04-29 Roland McGrath <roland@redhat.com>
3400
3401 * configure.in: Search for AUTOCONF unconditionally.
3402 Just don't complain about missing it under --without-cvs.
3403
3404 * include/libc-symbols.h (__symbol_set_attribute): New macro,
3405 give hidden for [SHARED] and weak for [! SHARED].
3406 (symbol_set_declare): Use that. Never need weak_extern these days.
3407 * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
3408 Depend on $(..)Makerules.
3409
3410 2003-04-29 Ulrich Drepper <drepper@redhat.com>
3411
3412 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
3413 variants of socket, bind, recvmsg, and sendto.
3414
3415 * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
3416
3417 * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
3418 * signal/sigaddset.c: Add libc_hidden_def.
3419 * signal/sigdelset.c: Likewise.
3420
3421 2003-04-29 Jakub Jelinek <jakub@redhat.com>
3422
3423 * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
3424 to the end of the file.
3425
3426 * configure.in: Change __oline__ to $LINENO.
3427 (HAVE_BUILTIN_REDIRECTION): New check.
3428 * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
3429 * include/libc-symbols.h (libc_hidden_builtin_proto,
3430 libc_hidden_builtin_def, libc_hidden_builtin_weak,
3431 libc_hidden_builtin_ver): Define.
3432 * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
3433 strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
3434 strspn, strstr): Add libc_hidden_builtin_proto.
3435 * intl/plural.y: Include string.h.
3436 * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
3437 libc_hidden_builtin_def.
3438 * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
3439 * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
3440 * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
3441 * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
3442 * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
3443 * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
3444 * sysdeps/alpha/memchr.S (memchr): Likewise.
3445 * sysdeps/alpha/memset.S (memset): Likewise.
3446 * sysdeps/alpha/strcat.S (strcat): Likewise.
3447 * sysdeps/alpha/strchr.S (strchr): Likewise.
3448 * sysdeps/alpha/strcmp.S (strcmp): Likewise.
3449 * sysdeps/alpha/strcpy.S (strcpy): Likewise.
3450 * sysdeps/alpha/strlen.S (strlen): Likewise.
3451 * sysdeps/alpha/strncmp.S (strncmp): Likewise.
3452 * sysdeps/alpha/strncpy.S (strncpy): Likewise.
3453 * sysdeps/alpha/strrchr.S (strrchr): Likewise.
3454 * sysdeps/arm/memset.S (memset): Likewise.
3455 * sysdeps/arm/strlen.S (strlen): Likewise.
3456 * sysdeps/generic/memchr.c (memchr): Likewise.
3457 * sysdeps/generic/memcpy.c (memcpy): Likewise.
3458 * sysdeps/generic/memmove.c (memmove): Likewise.
3459 * sysdeps/generic/memset.c (memset): Likewise.
3460 * sysdeps/generic/strcat.c (strcat): Likewise.
3461 * sysdeps/generic/strchr.c (strchr): Likewise.
3462 * sysdeps/generic/strcmp.c (strcmp): Likewise.
3463 * sysdeps/generic/strcpy.c (strcpy): Likewise.
3464 * sysdeps/generic/strcspn.c (strcspn): Likewise.
3465 * sysdeps/generic/strlen.c (strlen): Likewise.
3466 * sysdeps/generic/strncmp.c (strncmp): Likewise.
3467 * sysdeps/generic/strncpy.c (strncpy): Likewise.
3468 * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
3469 * sysdeps/generic/strrchr.c (strrchr): Likewise.
3470 * sysdeps/generic/strspn.c (strspn): Likewise.
3471 * sysdeps/generic/strstr.c (strstr): Likewise.
3472 * sysdeps/i386/i486/strcat.S (strcat): Likewise.
3473 * sysdeps/i386/i486/strlen.S (strlen): Likewise.
3474 * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
3475 * sysdeps/i386/i586/memset.S (memset): Likewise.
3476 * sysdeps/i386/i586/strchr.S (strchr): Likewise.
3477 * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
3478 * sysdeps/i386/i586/strlen.S (strlen): Likewise.
3479 * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
3480 * sysdeps/i386/i686/memmove.S (memmove): Likewise.
3481 * sysdeps/i386/i686/memset.S (memset): Likewise.
3482 * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
3483 * sysdeps/i386/memchr.S (memchr): Likewise.
3484 * sysdeps/i386/memset.c (memset): Likewise.
3485 * sysdeps/i386/strchr.S (strchr): Likewise.
3486 * sysdeps/i386/strcspn.S (strcspn): Likewise.
3487 * sysdeps/i386/strlen.c (strlen): Likewise.
3488 * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
3489 * sysdeps/i386/strrchr.S (strrchr): Likewise.
3490 * sysdeps/i386/strspn.S (strspn): Likewise.
3491 * sysdeps/ia64/memchr.S (memchr): Likewise.
3492 * sysdeps/ia64/memcpy.S (memcpy): Likewise.
3493 * sysdeps/ia64/memmove.S (memmove): Likewise.
3494 * sysdeps/ia64/memset.S (memset): Likewise.
3495 * sysdeps/ia64/strcat.S (strcat): Likewise.
3496 * sysdeps/ia64/strchr.S (strchr): Likewise.
3497 * sysdeps/ia64/strcmp.S (strcmp): Likewise.
3498 * sysdeps/ia64/strcpy.S (strcpy): Likewise.
3499 * sysdeps/ia64/strlen.S (strlen): Likewise.
3500 * sysdeps/ia64/strncmp.S (strncmp): Likewise.
3501 * sysdeps/ia64/strncpy.S (strncpy): Likewise.
3502 * sysdeps/m68k/memchr.S (memchr): Likewise.
3503 * sysdeps/m68k/strchr.S (strchr): Likewise.
3504 * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
3505 * sysdeps/mips/mips64/memset.S (memset): Likewise.
3506 * sysdeps/mips/memcpy.S (memcpy): Likewise.
3507 * sysdeps/mips/memset.S (memset): Likewise.
3508 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
3509 * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
3510 * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
3511 * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
3512 * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
3513 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
3514 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
3515 * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
3516 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
3517 * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
3518 * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
3519 * sysdeps/powerpc/strcat.c (strcat): Likewise.
3520 * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
3521 * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
3522 * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
3523 * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
3524 * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
3525 * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
3526 * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
3527 * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
3528 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
3529 * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
3530 * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
3531 * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
3532 * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
3533 * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
3534 * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
3535 * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
3536 * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
3537 * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
3538 * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
3539 * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
3540 * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
3541 * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
3542 * sysdeps/sh/memcpy.S (memcpy): Likewise.
3543 * sysdeps/sh/memset.S (memset): Likewise.
3544 * sysdeps/sh/strlen.S (strlen): Likewise.
3545 * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
3546 * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
3547 * sysdeps/s390/s390-32/memset.S (memset): Likewise.
3548 * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
3549 * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
3550 * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
3551 * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
3552 * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
3553 * sysdeps/s390/s390-64/memset.S (memset): Likewise.
3554 * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
3555 * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
3556 * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
3557 * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
3558 * sysdeps/x86_64/memset.S (memset): Likewise.
3559 * sysdeps/x86_64/strcat.S (strcat): Likewise.
3560 * sysdeps/x86_64/strchr.S (strchr): Likewise.
3561 * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
3562 * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
3563 * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
3564 * sysdeps/x86_64/strlen.S (strlen): Likewise.
3565 * sysdeps/x86_64/strspn.S (strspn): Likewise.
3566 * string/string-inlines.c: Move...
3567 * sysdeps/generic/string-inlines.c: ...here.
3568 (__memcpy_g, __strchr_g): Remove.
3569 (__NO_INLINE__): Define before including <string.h>,
3570 undefine after. Include bits/string.h and bits/string2.h.
3571 * sysdeps/i386/i486/string-inlines.c: New file.
3572 * sysdeps/i386/string-inlines.c: New file.
3573 * sysdeps/i386/i486/Versions: Remove.
3574 All GLIBC_2.1.1 symbols moved...
3575 * sysdeps/i386/Versions (libc): ...here.
3576
3577 2003-04-29 Ulrich Drepper <drepper@redhat.com>
3578
3579 * sysdeps/i386/fpu/Makefile: New file.
3580 * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
3581 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
3582 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
3583 * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
3584 [PR libc/4987].
3585
3586 2003-04-28 Ulrich Drepper <drepper@redhat.com>
3587
3588 * nscd/nscd_getgr_r.c: Compact code a bit. Add some __builtin_expect.
3589 * nscd/nscd_getpw_r.c: Likewise.
3590 * nscd/nscd_gethst_r.c: Likewise.
3591
3592 2003-04-27 Ulrich Drepper <drepper@redhat.com>
3593
3594 * nscd/pwdcache.c: Initialize .version element in result.
3595 * nscd/grpcache.c: Likewise.
3596 * nscd/pwdcache.c: Likewise.
3597
3598 2003-04-27 Andreas Schwab <schwab@suse.de>
3599
3600 * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
3601 subdirectory.
3602
3603 2003-04-27 Andreas Schwab <schwab@suse.de>
3604
3605 * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
3606
3607 2003-04-27 Ulrich Drepper <drepper@redhat.com>
3608
3609 * nscd/connections.c (client_queued): New variable.
3610 (nscd_run): Revamp the loop. Don't call poll except for cleanup
3611 threads. Keep track of the number of delays caused because of busy
3612 worker threads.
3613 * nscd/nscd.h: Declare client_queued.
3614 * nscd/nscd_stat.c: Transmit and print client_queued information.
3615
3616 * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
3617
3618 * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
3619 define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
3620
3621 2003-04-26 Ulrich Drepper <drepper@redhat.com>
3622
3623 * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
3624 tracking of freed memory in static TLS block.
3625 * elf/Makefile: Add rules to build and run tst-tls13.
3626 * elf/tst-tls13.c: New file.
3627 * elf/tst-tlsmod13.c: New file.
3628 * elf/tst-tlsmod13a.c: New file.
3629
3630 * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
3631
3632 * elf/dl-reloc.c: Pretty printing.
3633
3634 2003-04-26 Roland McGrath <roland@redhat.com>
3635
3636 * Makerules ($(common-objpfx)shlib.lds): New target.
3637 (common-generated): Add it.
3638 (build-shlib, build-module): Use that instead of generating every time.
3639 ($(common-objpfx)libc.so): Depend on it.
3640 (lib%.so rule): Likewise.
3641 (build-module-helper-objlist): Remove %.lds.
3642 (LDSEDCMD-c.so): Variable removed.
3643 * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
3644 Depend on $(common-objpfx)shlib.lds.
3645 * dlfcn/Makefile ($(test-modules)): Likewise.
3646
3647 2003-04-26 Roland McGrath <roland@frob.com>
3648
3649 * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
3650
3651 2003-04-26 Andreas Schwab <schwab@suse.de>
3652
3653 * elf/dl-close.c (remove_slotinfo): Fix missing parens.
3654
3655 2003-04-25 Ulrich Drepper <drepper@redhat.com>
3656
3657 * nscd/cache.c (cache_search): Keep track of how many chain links
3658 we searched and update table statistics.
3659 (cache_add): Keep track of how many values are in the table.
3660 (prune_cache): Likewise. Keep track of locking success.
3661 Print messages about removed entries in separate pass.
3662 * nscd/connections.c (handle_request): Don't print debug message here.
3663 The caller will do it. Keep track of locking success.
3664 (nscd_run): Print debug message. Also print PID of the client process.
3665 * nscd/nscd.c (start_time): New variable.
3666 (main): Remember start time.
3667 * nscd/nscd.h: Declare start_time.
3668 (struct database): Add more members for new statistics.
3669 * nscd/nscd_stat.c: Add support for sending, receiving, and printing
3670 of new statistics.
3671
3672 * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
3673
3674 2003-04-22 Jakub Jelinek <jakub@redhat.com>
3675
3676 * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
3677 * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
3678 * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
3679 NO_TLS_OFFSET.
3680 * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
3681 * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
3682 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
3683 * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
3684 TLS_TCB_SIZE.
3685
3686 2003-04-24 Ulrich Drepper <drepper@redhat.com>
3687
3688 * nss/getent.c: Implement alternative host database lookup via
3689 getaddrinfo.
3690
3691 * include/ifaddrs.h: New file.
3692 * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
3693 AI_ADDRCONFIG...
3694 * resolv/netdb.h: ...here.
3695 * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
3696 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
3697 * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
3698 AI_ADDRCONFIG.
3699
3700 2003-04-24 Roland McGrath <roland@redhat.com>
3701
3702 * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
3703
3704 2003-04-24 Jakub Jelinek <jakub@redhat.com>
3705
3706 * elf/dl-reloc.c (allocate_static_tls): Rename to...
3707 (_dl_allocate_static_tls): ... this function. No longer static.
3708 (CHECK_STATIC_TLS): Adjust.
3709 * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
3710 * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
3711 Add SYM_MAP argument.
3712 (elf_machine_rela): Adjust caller. Declare SYM_MAP unconditionally.
3713 Check if SYM_MAP != NULL for R_PPC_DTPREL32. Only handle 32-bit
3714 TLS relocs here. #ifdef out relocs which never appear in
3715 .gnu.conflict section from dl-conflict.c processing.
3716 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
3717 Add SYM_MAP argument. Handle 16-bit TLS relocs here.
3718
3719 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
3720 out relocs which never appear in .gnu.conflict section from
3721 dl-conflict.c processing.
3722 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
3723 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3724 * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
3725 Use r_type in RESOLVE macro.
3726
3727 2003-04-23 Ulrich Drepper <drepper@redhat.com>
3728
3729 * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
3730 NULL. Remove code made redundant by this assumption.
3731 (__yp_unbind): Add call to free. Adjust all callers.
3732
3733 * nis/ypclnt.c (yp_all): Free the dom_binding object after
3734 unbinding it.
3735
3736 * grp/initgroups.c (getgrouplist): Don't copy too much into the
3737 user buffer if more groups are found than fit into it.
3738
3739 * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
3740 extend_alloca.
3741
3742 2003-04-23 Jakub Jelinek <jakub@redhat.com>
3743
3744 * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
3745 not rc == errno. Use extend_alloca.
3746
3747 * elf/tst-tls12.c (main): Fix declaration.
3748 * elf/tst-tls10.c (dummy): Make hidden instead of static.
3749 * elf/tst-tlsmod7.c (dummy): Likewise.
3750 * elf/tst-tlsmod8.c (dummy): Likewise.
3751 * elf/tst-tlsmod9.c (dummy): Likewise.
3752
3753 2003-04-22 Roland McGrath <roland@redhat.com>
3754
3755 * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
3756 (open_not_cancel): Make last argument non-optional.
3757 * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
3758 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
3759 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
3760
3761 * include/tls.h: Protect against multiple inclusion.
3762
3763 2003-04-22 Ulrich Drepper <drepper@redhat.com>
3764
3765 * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
3766 * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
3767 open_socket. Not static anymore.
3768 (nscd_gethst_r): Use __nscd_open_socket.
3769 * nscd/nscd_getgr_r.c (open_socket): Removed.
3770 (nscd_getgr_r): Use __nscd_open_socket.
3771 * nscd/nscd_getpw_r.c (open_socket): Removed.
3772 (nscd_getpw_r): Use __nscd_open_socket.
3773
3774 * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
3775 * nscd/connections.c (handle_request): Add cast to avoid warning.
3776
3777 2003-04-21 Ulrich Drepper <drepper@redhat.com>
3778
3779 * signal/sigfillset.c: Moved to...
3780 * sysdeps/generic/sigfillset.c: ...here. If SIGCANCEL is defined
3781 do not set the corresponding bit.
3782
3783 * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
3784 SIGCANCEL.
3785 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
3786 * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
3787 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
3788 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
3789 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
3790
3791 2003-04-20 Ulrich Drepper <drepper@redhat.com>
3792
3793 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
3794 first syscall parameter to const char*.
3795
3796 2003-04-19 Ulrich Drepper <drepper@redhat.com>
3797
3798 * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
3799
3800 * configure.in: Add AC_PROG_CXX.
3801 * config.make.in (CXX): Define.
3802
3803 * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
3804 __len to size_t to avoid warnings.
3805
3806 2003-04-18 Jes Sorensen <jes@wildopensource.com>
3807
3808 * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
3809 2.5.67.
3810 * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3811
3812 2003-04-19 Ulrich Drepper <drepper@redhat.com>
3813
3814 * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
3815 UNREGISTER_ATFORK if d == NULL.
3816
3817 * catgets/nl_types.h: Remove __THROW marker from cancellation points.
3818 * dirent/dirent.h: Likewise.
3819 * dlfcn/dlfcn.h: Likewise.
3820 * grp/grp.h: Likewise.
3821 * iconv/iconv.h: Likewise.
3822 * io/fcntl.h: Likewise.
3823 * io/ftw.h: Likewise.
3824 * libio/stdio.h: Likewise.
3825 * misc/sys/mman.h: Likewise.
3826 * misc/sys/select.h: Likewise.
3827 * misc/sys/syslog.h: Likewise.
3828 * misc/sys/uio.h: Likewise.
3829 * posix/spawn.h: Likewise.
3830 * posix/unistd.h: Likewise.
3831 * posix/sys/wait.h: Likewise.
3832 * pwd/pwd.h: Likewise.
3833 * resolv/netdb.h: Likewise.
3834 * rt/aio.h: Likewise.
3835 * shadow/shadow.h: Likewise.
3836 * signal/signal.h: Likewise.
3837 * socket/sys/socket.h: Likewise.
3838 * stdlib/stdlib.h: Likewise.
3839 * streams/stropts.h: Likewise.
3840 * string/string.h: Likewise.
3841 * sysdeps/gnu/utmpx.h: Likewise.
3842 * sysvipc/sys/msg.h: Likewise.
3843 * termios/termios.h: Likewise.
3844 * time/time.h: Likewise.
3845 * wcsmbs/wchar.h: Likewise.
3846 * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
3847 functions.
3848 * misc/daemon.c: Likewise.
3849 * sysdeps/generic/backtracesymsfd.c: Likewise.
3850 * sysdeps/generic/check_fds.c: Likewise.
3851 * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
3852 * sysdeps/unix/sysv/linux/not-cancel.h: New file.
3853 * sysdeps/generic/not-cancel.h: New file.
3854 * csu/Makefile (distribute): Add not-cancel.h.
3855 * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
3856 * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
3857 for assert.c and assert-perr.c to include <fatal-prepare.h>.
3858 * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
3859
3860 * sysdeps/posix/remove.c (remove): Rewrite. No need to restore
3861 errno and unlink first.
3862
3863 * io/ftw.c (ftw_dir): In all places assume fchdir is available.
3864
3865 2003-04-18 Ulrich Drepper <drepper@redhat.com>
3866
3867 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
3868 INTERNAL_SYSCALL instead of INLINE_SYSCALL.
3869
3870 2003-04-17 Ulrich Drepper <drepper@redhat.com>
3871
3872 * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
3873
3874 * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
3875 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
3876 replace.
3877
3878 * signal/Makefile (tests): Add tst-sigsimple.
3879 * signal/tst-sigsimple.c: New file.
3880
3881 2003-04-16 Jakub Jelinek <jakub@redhat.com>
3882
3883 * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
3884 tst-tls10.h.
3885 (tests): Add tst-tls1[0-2].
3886 (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
3887 ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
3888 ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
3889 ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
3890 ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
3891 ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
3892 ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
3893 * elf/tst-tls10.c: New test.
3894 * elf/tst-tls11.c: New test.
3895 * elf/tst-tls12.c: New test.
3896 * elf/tst-tls10.h: New file.
3897 * elf/tst-tlsmod7.c: New file.
3898 * elf/tst-tlsmod8.c: New file.
3899 * elf/tst-tlsmod9.c: New file.
3900 * elf/tst-tlsmod10.c: New file.
3901 * elf/tst-tlsmod11.c: New file.
3902 * elf/tst-tlsmod12.c: New file.
3903
3904 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
3905
3906 * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
3907 * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
3908 * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
3909
3910 2003-04-17 Ulrich Drepper <drepper@redhat.com>
3911
3912 * posix/regex.h: Include <sys/types.h>.
3913
3914 * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
3915 The signal number must be checked.
3916 * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
3917 The signal number must be checked [PR libc/5004].
3918
3919 * sysdeps/unix/sysv/linux/system.c: If compiled without threads
3920 don't do anything fancy.
3921
3922 * sysdeps/generic/bits/libc-lock.h: Define
3923 __rtld_lock_define_initialized_recursive.
3924
3925 * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
3926 contacting nscd if NOT_USENSCD_NAME > 0.
3927 * nss/nsswitch.c (__nss_disable_nscd): New function.
3928 * nss/nsswitch.h: Declare it.
3929 * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
3930 * nscd/nscd.c (main): Call __nss_disable_nscd.
3931
3932 2003-04-16 Ulrich Drepper <drepper@redhat.com>
3933
3934 * stdio-common/perror.c (perror): We don't need to set the offset
3935 to _IO_pos_bad, this is how streams are initialized.
3936
3937 * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
3938 (time_output): If necessary, allocate new buffer for .name string if
3939 padding is required.
3940
3941 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
3942 before copying. This might leave holes in the list. Adjust
3943 pointers if necessary.
3944 (netlink_receive): Allocate only one block.
3945 (free_netlink_handle): Adjust appropriately.
3946 (getifaddrs): Lots of cleanups.
3947
3948 * string/test-strncpy.c (do_one_test): Mark start and stop as
3949 possibly unused.
3950 * string/test-memchr.c: Likewise.
3951 * string/test-memcmp.c: Likewise.
3952 * string/test-memcpy.c: Likewise.
3953 * string/test-memmove.c: Likewise.
3954 * string/test-memset.c: Likewise.
3955 * string/test-strcat.c: Likewise.
3956 * string/test-strchr.c: Likewise.
3957 * string/test-strcmp.c: Likewise.
3958 * string/test-strcpy.c: Likewise.
3959 * string/test-strlen.c: Likewise.
3960 * string/test-strncmp.c: Likewise.
3961 * string/test-strpbrk.c: Likewise.
3962 * string/test-strrchr.c: Likewise.
3963 * string/test-strspn.c: Likewise.
3964
3965 2003-04-15 Roland McGrath <roland@redhat.com>
3966
3967 * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
3968
3969 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
3970 INTUSE(__register_frame_info_bases).
3971
3972 2003-04-15 Ulrich Drepper <drepper@redhat.com>
3973
3974 * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
3975 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
3976 AT_SYSINFO_EH_FRAME. Adjust string width.
3977 (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
3978 * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
3979 Add _dl_sysinfo_eh_frame field.
3980 * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
3981 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
3982 variable.
3983 [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
3984 if _dl_sysinfo_eh_frame is non-NULL.
3985
3986 * Makeconfig (gnulib): Add -lgcc_eh.
3987
3988 * config.h.in: Define HAVE_FORCED_UNWIND.
3989
3990 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
3991
3992 * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
3993 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
3994
3995 2003-04-15 Jakub Jelinek <jakub@redhat.com>
3996
3997 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
3998 checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
3999 against local symbol in conflict processing.
4000
4001 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
4002
4003 * sysdeps/powerpc/bits/atomic.h
4004 [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
4005 [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
4006 as abort stub.
4007 (__arch_compare_and_exchange_val_32_acq): Define.
4008 (atomic_compare_and_exchange_val_acq): Define.
4009
4010 2003-04-15 Ulrich Drepper <drepper@redhat.com>
4011
4012 * include/atomic.h: Pretty printing.
4013
4014 2003-04-14 Ulrich Drepper <drepper@redhat.com>
4015
4016 * stdio-common/vfscanf.c: Add casts to avoid warnings.
4017
4018 2003-04-14 Jakub Jelinek <jakub@redhat.com>
4019
4020 * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
4021 * sysdeps/x86_64/bits/atomic.h: Likewise.
4022
4023 2003-04-14 Ulrich Drepper <drepper@redhat.com>
4024
4025 * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
4026 POPARGS_1 to emit labels for the mov instructions.
4027
4028 2003-04-14 Jakub Jelinek <jakub@redhat.com>
4029
4030 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
4031
4032 2003-04-14 Roland McGrath <roland@redhat.com>
4033
4034 * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
4035 compiler warning.
4036
4037 * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
4038
4039 2003-04-14 Ulrich Drepper <drepper@redhat.com>
4040
4041 * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
4042 position. Reported by jreiser@BitWagon.com.
4043
4044 2003-04-13 Ulrich Drepper <drepper@redhat.com>
4045
4046 * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
4047 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
4048 * sysdeps/generic/unwind-dw2.c: Likewise.
4049 * sysdeps/generic/unwind-pe.h: Likewise.
4050
4051 2003-04-13 Alexandre Oliva <aoliva@redhat.com>
4052
4053 * sysdeps/unix/sysv/linux/mips/profil-counter: New.
4054 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
4055 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
4056 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
4057 (mcontext_t): Make it match the 32-bit mips kernel in o32.
4058 * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
4059 the mips and mips64 headers.
4060 (struct user): Port to n32/n64.
4061
4062 2003-04-12 Ulrich Drepper <drepper@redhat.com>
4063
4064 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
4065 avoid warning.
4066
4067 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
4068 __ASSUME_VSYSCALL is defined don't add restorer.
4069 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4070 __ASSUME_VSYSCALL for 2.5.53.
4071
4072 2003-04-11 Ulrich Drepper <drepper@redhat.com>
4073
4074 * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
4075 Remove HAVE_CANCELBUF code. Replace with code using the new
4076 initializers for unwind-based cleanup handling.
4077 * sysdeps/generic/unwind.h: Update from latest gcc version.
4078 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
4079 places to allow unwind data generation.
4080 * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
4081 * sysdeps/x86_64/bits/setjmp.h: Likewise.
4082 * sysdeps/sh/bits/setjmp.h: Likewise.
4083 * sysdeps/powerpc/bits/setjmp.h: Likewise.
4084 * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
4085 * sysdeps/alpha/bits/setjmp.h: Likewise.
4086
4087 2003-04-11 Roland McGrath <roland@redhat.com>
4088
4089 * csu/tst-empty.c: New file.
4090 * csu/Makefile (tests, tests-static): Add it.
4091
4092 2003-04-11 Jakub Jelinek <jakub@redhat.com>
4093
4094 * string/test-strcmp.c (do_random_tests): Test whether return value
4095 has been promoted to wordsize if the ABI requires caller to do so.
4096 * string/test-strncmp.c (do_random_tests): Likewise.
4097 * string/test-memcmp.c (do_random_tests): Likewise.
4098
4099 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
4100 before returning.
4101
4102 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
4103 (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
4104 is not defined, but the prctl constants are.
4105
4106 * string/tester.c (test_strcmp): Fix a typo.
4107
4108 2003-04-09 Ulrich Drepper <drepper@redhat.com>
4109
4110 * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
4111 * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
4112
4113 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
4114
4115 * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
4116 NewABI.
4117 (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
4118 NewABI.
4119 * sysdeps/mips/mips64/memcpy.S: Adjust register naming
4120 conventions.
4121 * sysdeps/mips/mips64/memset.S: Likewise.
4122 * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
4123 Use t0 instead of t4 as temporary.
4124
4125 2003-04-07 Ulrich Drepper <drepper@redhat.com>
4126
4127 * elf/ldconfig.c (parse_conf): Ignore leading whitespace. Use
4128 feof_unlocked instead of feof.
4129 (add_dir): Ignore trailing whitespace.
4130
4131 2003-04-07 Jakub Jelinek <jakub@redhat.com>
4132
4133 * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
4134 sum of SIZE1 and SIZE2 arguments.
4135
4136 2003-04-06 Ulrich Drepper <drepper@redhat.com>
4137
4138 * iconv/iconv_prog.c (process_block): Don't print message about
4139 invalid input if the -c option is used.
4140 (main): Correctly append IGNORE string for -c option.
4141
4142 2002-04-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4143
4144 * sysdeps/sh/bits/atomic.h: Moved to ...
4145 * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here. Add comments.
4146 (__arch_compare_and_exchange_val_*_acq): Add parens around macro
4147 arguments.
4148 (atomic_bit_set, atomic_bit_test_set): Likewise.
4149 (atomic_exchange_and_add): Likewise. Don't evaluate VALUE argument
4150 twice.
4151 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
4152
4153 2003-04-06 Roland McGrath <roland@redhat.com>
4154
4155 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
4156 restoration as done for setcontext yesterday.
4157
4158 2003-04-06 Jakub Jelinek <jakub@redhat.com>
4159
4160 * elf/rtld.c: Revert 2003-03-14 change.
4161 * elf/dl-conflict.c (_dl_resolve_conflicts): Move
4162 #if ! ELF_MACHINE_NO_RELA conditional into the routine.
4163
4164 2003-04-05 Ulrich Drepper <drepper@redhat.com>
4165
4166 * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
4167
4168 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
4169 Always initialize *signgamp before returning an error.
4170
4171 2003-04-05 Roland McGrath <roland@redhat.com>
4172
4173 * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
4174 below the stack pointer even if switching to the same context we are
4175 running right now.
4176
4177 2003-04-05 Ulrich Drepper <drepper@redhat.com>
4178
4179 * catgets/gencat.c (read_input_file): Make sure that \n is not
4180 alone on the line before testing for continuation.
4181
4182 * math/test-tgmath.c (compile_test): Initialize c.
4183
4184 2003-04-05 Alexandre Oliva <aoliva@redhat.com>
4185
4186 * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
4187 * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
4188 * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
4189 on mips n32.
4190 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
4191 XSTAT_IS_XSTAT64 must not be used for mips n64. Use 64-bit data
4192 structure on n32 as well.
4193 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
4194 data types on n32 and n64.
4195
4196 2003-04-05 Ulrich Drepper <drepper@redhat.com>
4197
4198 * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
4199 after getting them.
4200
4201 * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
4202 HAVE_register_atfork_malloc is defined use __register_atfork_malloc
4203 instead of __register_atfork.
4204
4205 2003-04-05 Jakub Jelinek <jakub@redhat.com>
4206
4207 * stdio-common/reg-printf.c (__register_printf_function): Calloc
4208 instead of malloc __printf_arginfo_table and __printf_function_table.
4209 Reported by John Reiser <jreiser@BitWagon.com>.
4210
4211 2003-04-04 Steven Munroe <sjmunroe@us.ibm.com>
4212
4213 * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
4214 * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
4215
4216 * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
4217 defining.
4218
4219 2003-04-04 Alexandre Oliva <aoliva@redhat.com>
4220
4221 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
4222 for n64 abi.
4223
4224 2003-04-03 Roland McGrath <roland@redhat.com>
4225
4226 * configure.in: Fix up use of compilation flags to match the build:
4227 For .s files, $ASFLAGS;
4228 For .S files, $CPPFLAGS $ASFLAGS;
4229 For .c files, $CFLAGS $CPPFLAGS;
4230 when linking, add $LDFLAGS.
4231 * configure: Regenerated.
4232
4233 2003-04-03 Jakub Jelinek <jakub@redhat.com>
4234
4235 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
4236 for atomic_compare_and_exchange_bool_acq failure.
4237
4238 2003-04-03 Ulrich Drepper <drepper@redhat.com>
4239
4240 * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
4241 _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
4242 _POSXI2_LOCALEDEF to 200112L. Remove _POSIX2_C_VERSION.
4243 Remove declaration of pthread_atfork.
4244
4245 2003-04-02 Ulrich Drepper <drepper@redhat.com>
4246
4247 * locale/iso-639.def: Add many more languages from the current ISO 639.
4248
4249 * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
4250 * sysdeps/generic/semtimedop.c: New file.
4251 * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
4252 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
4253 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4254 * sysvipc/Makefile (routines): Add semtimedop.
4255 * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
4256 * sysvipc/sys/sem.h: Declare semtimedop.
4257
4258 2003-04-02 Daniel Jacobowitz <drow@mvista.com>
4259
4260 * configure.in: Check for __register_frame_info in both
4261 -lgcc and -lgcc_eh.
4262 * configure: Regenerated.
4263
4264 2003-04-01 Roland McGrath <roland@redhat.com>
4265
4266 * scripts/abilist.awk: Allow dots in soname suffix.
4267
4268 * scripts/abilist.awk (emit): Fix bailout condition.
4269
4270 2003-04-01 Jakub Jelinek <jakub@redhat.com>
4271
4272 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
4273 IA-64 version.
4274
4275 * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
4276 register as input to asm.
4277
4278 2003-04-01 Jakub Jelinek <jakub@redhat.com>
4279
4280 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
4281
4282 2003-04-01 Andreas Jaeger <aj@suse.de>
4283
4284 * configure.in: Output as/ld as name if version is too old.
4285
4286 2003-03-31 Daniel Jacobowitz <drow@mvista.com>
4287
4288 * configure.in: Don't require an installed C library in the test
4289 for ".set" assembler support.
4290
4291 2003-03-31 Roland McGrath <roland@redhat.com>
4292
4293 * signal/tst-sigset.c: New file.
4294 * signal/Makefile (tests): Add it.
4295
4296 2003-03-31 Ulrich Drepper <drepper@redhat.com>
4297
4298 * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
4299 * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
4300 * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
4301 * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
4302 (__SIGRTMAX): Adjust accordingly.
4303 * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
4304 second compatibility symbol set.
4305 * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
4306
4307 2003-03-31 Andreas Schwab <schwab@suse.de>
4308
4309 * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
4310 Define.
4311 (atomic_decrement_and_test): Fix test.
4312
4313 2003-03-31 Jakub Jelinek <jakub@redhat.com>
4314
4315 * sysdeps/sparc/sparc32/bits/atomic.h: New file.
4316 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
4317 * sysdeps/sparc/sparc64/bits/atomic.h: New file.
4318 * sysdeps/sparc/sparc32/atomicity.h: Removed.
4319 * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
4320 * sysdeps/sparc/sparc64/atomicity.h: Removed.
4321
4322 2003-03-30 Roland McGrath <roland@redhat.com>
4323
4324 * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
4325
4326 * intl/po2test.sed: Anchor substitution regexps to fix last change.
4327
4328 2003-03-29 Paolo Bonzini <bonzini@gnu.org>
4329
4330 * intl/po2test.sed: Unify the transformations for msgid and msgstr
4331 and remove a useless s/// command.
4332
4333 2003-03-27 David Mosberger <davidm@hpl.hp.com>
4334
4335 * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
4336 directive into empty .prologue region to ensure that call-chain
4337 is terminated even for the first instruction.
4338
4339 * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
4340 to terminate call-chain right from the get-go.
4341
4342 * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
4343 stop bit between compare & branch.
4344
4345 2003-03-29 Ulrich Drepper <drepper@redhat.com>
4346
4347 * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
4348 point correctly [PR libc/4993].
4349
4350 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
4351 netlink_open calls if netlink is known to not be available.
4352
4353 2003-03-29 Alexandre Oliva <aoliva@redhat.com>
4354
4355 * configure.in: Add mips64* support.
4356 * sysdeps/mips/bits/endian.h: Make it bi-endian.
4357 * sysdeps/mips/mipsel/bits/endian.h: Removed.
4358 * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
4359 * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
4360 * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
4361 * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
4362 * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
4363 * sysdeps/mips/Implies: Moved wordsize-32 to...
4364 * sysdeps/mips/mips32/Implies: New file.
4365 * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
4366 ret_NOERRNO): New.
4367 (ret, PSEUDO_END): Moved past END.
4368 (PSEUDO): Moved to...
4369 * sysdeps/unix/mips/mips32/sysdep.h: New file.
4370 * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
4371 * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
4372 * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
4373 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
4374 * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
4375
4376 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
4377 Re-introduce ENTRY.
4378
4379 2003-03-28 Thorsten Kukuk <kukuk@suse.de>
4380
4381 * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
4382 * inet/test-ifaddrs.c: Allow AF_PACKET.
4383 * sysdeps/unix/sysv/linux/kernel-features.h: Add
4384 __ASSUME_NETLINK_SUPPORT.
4385
4386 2003-03-28 Ulrich Drepper <drepper@redhat.com>
4387
4388 * elf/vismain.c (do_test): Comment out tests which fail in the moment.
4389
4390 2003-03-26 H.J. Lu <hjl@gnu.org>
4391
4392 * elf/vismod.h (getvarlocal1): Return const char **.
4393 (getvarinmod1): Likewise.
4394 (getvaritcpt1): Likewise.
4395 (getvarlocal2): Likewise.
4396 (getvarinmod2): Likewise.
4397 (getvaritcpt2): Likewise.
4398 (getvaritcpt3): Likewise.
4399 * elf/vismain.c (do_test): Adjusted.
4400 * elf/vismod1.c (getvarlocal1): Return address.
4401 (getvarinmod1): Likewise.
4402 (getvaritcpt1): Likewise.
4403 * elf/vismod2.c (getvarlocal2): Likewise.
4404 (getvarinmod2): Likewise.
4405 (getvaritcpt2): Likewise.
4406 * elf/vismod3.c (getvaritcpt3): Likewise.
4407
4408 2003-03-28 Roland McGrath <roland@redhat.com>
4409
4410 * elf/vismain.c (do_test): Print both addresses when they don't match.
4411
4412 * scripts/abilist.awk: If given -v filename_regexp and/or -v
4413 libname_regexp when parsing names, then produce output only
4414 for those matching the given regexps. In combine mode, save all
4415 stanzas for a final sorting by stanza header at the end.
4416 Emit a blank line between stanzas.
4417
4418 * scripts/abilist.awk: When given -v combine=1, do parse_names and
4419 emit a single output stream with lib name in stanza header lines.
4420
4421 * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
4422
4423 2003-03-27 Roland McGrath <roland@redhat.com>
4424
4425 * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
4426 (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
4427
4428 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4429
4430 * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
4431 Return old value. Make asm output reg constraint earlyclobber.
4432 Renamed from...
4433 (__arch_compare_and_exchange_8_acq): ... this.
4434 (__arch_compare_and_exchange_val_16_acq):
4435 Return old value. Make asm output reg constraint earlyclobber.
4436 Renamed from...
4437 (__arch_compare_and_exchange_16_acq): ... this.
4438 (__arch_compare_and_exchange_val_32_acq):
4439 Return old value. Make asm output reg constraint earlyclobber.
4440 Renamed from...
4441 (__arch_compare_and_exchange_32_acq): ... this.
4442 (__arch_compare_and_exchange_val_64_acq):
4443 Renamed from...
4444 (__arch_compare_and_exchange_64_acq): ... this.
4445 (atomic_exchange_and_add): Use local variables and
4446 __arch_compare_and_exchange_val_64_acq.
4447 (atomic_add): Likewise.
4448 (atomic_add_negative, atomic_add_zero): Use local variables.
4449
4450 2003-03-28 Alexandre Oliva <aoliva@redhat.com>
4451
4452 * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
4453
4454 2003-03-27 Ulrich Drepper <drepper@redhat.com>
4455
4456 * Makefile: Remove libmd5crypt goal.
4457
4458 2003-03-25 Jakub Jelinek <jakub@redhat.com>
4459
4460 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
4461 special handling of relocations against local symbols.
4462
4463 2003-03-27 Steven Munroe <sjmunroe@us.ibm.com>
4464
4465 * sysdeps/powerpc/bits/atomic.h
4466 (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
4467 [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
4468 Define PPC64 specific version.
4469 [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
4470 Change (mem) constraint to "b".
4471 [__powerpc64__] (__arch_atomic_exchange_and add_64):
4472 Replace addi with add. Change (value) contraint to "r".
4473 Change (mem) constraint to "b".
4474 [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
4475 (__arch_atomic_exchange_32): Change (mem) constraint to "b".
4476 (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
4477 (__arch_atomic_decrement_if_positive_32): New macro.
4478 (atomic_decrement_if_positive): Use __arch* macros.
4479
4480 2003-03-27 Jakub Jelinek <jakub@redhat.com>
4481
4482 * sysdeps/ia64/fpu/libm-test-ulps: Update.
4483
4484 2003-03-27 Roland McGrath <roland@redhat.com>
4485
4486 * scripts/rpm2dynsym.sh: New file.
4487 * Makefile (distribute): Add it.
4488
4489 2003-03-27 David Mosberger <davidm@hpl.hp.com>
4490
4491 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
4492 ar.unat before returning. Add missing .mem.offset directives
4493 to ensure file gets assembled without warnings.
4494 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
4495
4496 2003-03-27 Jakub Jelinek <jakub@redhat.com>
4497
4498 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
4499 Return -1 instead of 0 if clock_getres failed.
4500
4501 2003-03-27 Roland McGrath <roland@redhat.com>
4502
4503 * scripts/abilist.awk: If variable `parse_names' is set, grok the file
4504 header lines and write out foo.symlist files for each foo.so.NN listed.
4505
4506 * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
4507 This symbol is exported, and we don't want to hide it.
4508 Add libc_hidden_proto instead.
4509 (_IO_file_jumps): Add libc_hidden_proto.
4510 * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
4511 Remove INTVARDEF.
4512 * libio/fileops.c (_IO_file_jumps): Likewise.
4513 * libio/stdfiles.c: Don't use INTUSE on them.
4514 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
4515 * libio/iofopen.c (__fopen_internal): Likewise.
4516 * libio/freopen.c (freopen): Likewise.
4517 * libio/freopen64.c (freopen64): Likewise.
4518 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
4519
4520 * Makerules (check-abi) [$(enable-check-abi) = warn]:
4521 Ignore exit status from diff.
4522 * configure.in (enable_check_abi): Document possible value "warn".
4523 Change default to no for now.
4524 * configure: Regenerated.
4525
4526 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
4527 macro calls and a #include <stub-tag.h> at the end.
4528 * Makerules ($(objpfx)stubs): Tweak sed commands.
4529
4530 * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
4531 caller column for *xattr syscalls, since they are in sysdeps/generic.
4532
4533 * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
4534 * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
4535
4536 2003-03-26 Roland McGrath <roland@redhat.com>
4537
4538 * Makerules (check-abi-config): Use /thread instead of /tls when
4539 use-thread and not just use-tls is set.
4540
4541 * Makerules (update-abi): Put quotes around $(update-abi-config).
4542
4543 * elf/Makefile (check-abi): Depend on check-abi-ld.
4544 (update-abi): Depend on update-abi-ld.
4545
4546 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
4547
4548 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
4549 do not check for errors (unless testing for 32bit variant).
4550 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
4551
4552 2003-03-27 Philip Blundell <philb@gnu.org>
4553
4554 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
4555 unconditional mov. Remove nop.
4556
4557 * sysdeps/unix/sysv/linux/kernel-features.h
4558 (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
4559 * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
4560 when __ASSUME_VFORK_SYSCALL is defined.
4561 * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
4562 __ASSUME_MMAP2_SYSCALL.
4563 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
4564 __ASSUME_REALTIME_SIGNALS.
4565
4566 2003-03-26 Ulrich Drepper <drepper@redhat.com>
4567
4568 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
4569 only if DL_NO_COPY_RELOCS is not defined.
4570 * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
4571
4572 2003-03-26 Roland McGrath <roland@redhat.com>
4573
4574 * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
4575 SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
4576 * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
4577 (sysdep_routines): Add stub-syscalls.
4578 ($(objpfx)stub-syscalls.c): New target.
4579 (generated): Add stub-syscalls.c.
4580
4581 * tls.make.c: Also define use-tls according to USE_TLS macro.
4582
4583 2003-03-26 Ulrich Drepper <drepper@redhat.com>
4584
4585 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
4586 no-op padding element.
4587 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
4588 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
4589 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
4590 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
4591
4592 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
4593
4594 * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
4595 condition check for the return value of getgroups32.
4596
4597 2003-03-26 Jakub Jelinek <jakub@redhat.com>
4598
4599 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
4600 Fix a typo.
4601 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
4602 PSEUDO_END_NOERRNO): Define.
4603 * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
4604 Define to PSEUDO_END.
4605
4606 2003-03-26 Ulrich Drepper <drepper@redhat.com>
4607
4608 * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
4609
4610 2003-03-25 Jiro SEKIBA <jir@yamato.ibm.com>
4611
4612 * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
4613 * iconvdata/bug-iconv4.c: New file.
4614 * iconvdata/Makefile (tests): Add bug-iconv4.
4615
4616 2003-03-25 H.J. Lu <hjl@gnu.org>
4617
4618 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
4619 symbols twice.
4620 (_dl_lookup_versioned_symbol): Likewise.
4621
4622 2003-03-26 Jakub Jelinek <jakub@redhat.com>
4623
4624 * csu/tst-atomic.c (do_test): Add some new
4625 atomic_compare_and_exchange_val_acq, atomic_add_zero,
4626 atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
4627 * include/atomic.h (atomic_add_negative, atomic_add_zero):
4628 Prefix local variable so that it doesn't clash with the one
4629 in atomic_exchange_and_add.
4630 * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
4631 pointers.
4632 (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
4633 * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
4634 value into register.
4635 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
4636 Cast newval to long.
4637 * sysdeps/x86_64/bits/atomic.h
4638 (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
4639 long.
4640 (atomic_exchange): Cast newvalue to long if sizeof == 8.
4641 (atomic_exchange_and_add): Cast value to long if sizeof == 8.
4642 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
4643 (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
4644
4645 2003-03-21 Martin Schwidefsky <schwidefskyde.ibm.com>
4646
4647 * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
4648 bit from backtrace addresses.
4649
4650 2003-03-21 Andreas Schwab <schwab@suse.de>
4651
4652 * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
4653 __chown symbols.
4654
4655 2003-03-25 Roland McGrath <roland@redhat.com>
4656
4657 * config.make.in (enable-check-abi): New variable from configure.
4658 * configure.in (enable_check_abi): New substituted variable,
4659 controlled by --{enable,disable}-check-abi (default yes).
4660 * configure: Regenerated.
4661 * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
4662 on check-abi dependency.
4663
4664 2003-03-26 Andreas Schwab <schwab@suse.de>
4665
4666 * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
4667 * include/atomic.h: Likewise.
4668
4669 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
4670
4671 2003-03-25 Roland McGrath <roland@redhat.com>
4672
4673 * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
4674 (__arch_atomic_exchange_64): New macro.
4675 (atomic_exchange): Use them.
4676 (__arch_atomic_exchange_and_add_32): New macro.
4677 (__arch_atomic_exchange_and_add_64): New macro.
4678 (atomic_exchange_and_add): Use them.
4679 Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
4680
4681 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
4682
4683 * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
4684 Define.
4685 * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
4686 ISA tests.
4687 (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
4688 (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
4689 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
4690 to decide whether to add padding.
4691 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
4692 to decide whether to add padding.
4693 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
4694 old_kernel_sigaction): Likewise.
4695
4696 2003-03-25 Ulrich Drepper <drepper@redhat.com>
4697
4698 * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
4699 atomic_add_zero were supposed to do.
4700 * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
4701 to x86 behavior.
4702
4703 * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
4704 This matches the new timer implementation.
4705 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
4706 Likewise.
4707 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
4708 Likewise.
4709 * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
4710 timer info for what the kernel provides these days.
4711 (struct sigevent): Add _tid field.
4712 Define SIGEV_THREAD_ID.
4713 Remove struct __pthread_attr_s forward declaration.
4714 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
4715 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
4716 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
4717 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
4718
4719 * Versions.def (librt): Add GLIBC_2.3.3.
4720
4721 * abilist/libpthread.abilist: Update for nptl.
4722
4723 2003-03-24 Jon Grimm <jgrimm@us.ibm.com>
4724
4725 * inet/netinet/in.h: Add IPPROTO_SCTP.
4726
4727 2003-03-24 Ulrich Drepper <drepper@redhat.com>
4728
4729 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
4730
4731 2003-03-24 Philip Blundell <philb@gnu.org>
4732
4733 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
4734 Remove a1 from clobber list.
4735
4736 2003-03-24 Ulrich Drepper <drepper@redhat.com>
4737
4738 * timezone/antarctica: Update from tzdata2003a.
4739 * timezone/asia: Likewise.
4740 * timezone/australasia: Likewise.
4741 * timezone/europe: Likewise.
4742 * timezone/iso3166.tab: Likewise.
4743 * timezone/northamerica: Likewise.
4744 * timezone/southamerica: Likewise.
4745 * timezone/zone.tab: Likewise.
4746
4747 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
4748
4749 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
4750
4751 2003-03-23 Ulrich Drepper <drepper@redhat.com>
4752
4753 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
4754 unwanted expansion by definining to ret. Patch by Ian Wienand.
4755
4756 * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
4757 the parameter description to denote no error checking. Generate
4758 appropriate pseudo asm code.
4759 * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
4760 * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
4761 getpgrp, and getppid with 'E'.
4762 * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
4763 PSEUDO_END_NOERRNO, and ret_NOERRNO.
4764 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
4765 * sysdeps/unix/sysdep.h: Likewise.
4766 * sysdeps/unix/alpha/sysdep.h: Likewise.
4767 * sysdeps/unix/sparc/sysdep.h: Likewise.
4768 * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
4769 * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
4770 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
4771 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
4772 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
4773 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
4774 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
4775 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4776 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
4777 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
4778 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
4779
4780 2003-03-23 Roland McGrath <roland@redhat.com>
4781
4782 * Makeconfig (+includes): Don't use $(last-includes).
4783
4784 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
4785
4786 * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
4787 * sysdeps/unix/sysv/linux/configure: Rebuilt.
4788
4789 2003-03-23 Jakub Jelinek <jakub@redhat.com>
4790
4791 * sysdeps/alpha/fpu/libm-test-ulps: Update.
4792 * sysdeps/arm/libm-test-ulps: Update.
4793 * sysdeps/hppa/fpu/libm-test-ulps: Update.
4794 * sysdeps/ia64/fpu/libm-test-ulps: Update.
4795 * sysdeps/mips/fpu/libm-test-ulps: Update.
4796 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
4797 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4798 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
4799 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
4800 * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
4801 * sysdeps/s390/fpu/libm-test-ulps: Update.
4802 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4803
4804 2003-03-22 Roland McGrath <roland@redhat.com>
4805
4806 * include/atomic.h: Put parens around all macro arguments.
4807 (__atomic_val_bysize, __atomic_bool_bysize): New macros.
4808 (atomic_compare_and_exchange_val_acq): Use it.
4809 (atomic_compare_and_exchange_bool_acq): Likewise.
4810 (atomic_increment_and_test): Invert sense of test.
4811 (atomic_decrement_and_test): Likewise.
4812 * csu/tst-atomic.c: Update those tests to match.
4813
4814 2003-03-22 Jakub Jelinek <jakub@redhat.com>
4815
4816 * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
4817 Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
4818 (atomic_compare_and_exchange_bool_acq): Add comment. Don't use
4819 __oldval variable in the macro, since it might be macro argument.
4820 (atomic_decrement_if_positive): Initialize __memp, remove setting
4821 of non-existent variable.
4822 (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
4823 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
4824 using atomic_compare_and_exchange_val_acq.
4825 (atomic_decrement_if_positive, atomic_bit_test_set): Define.
4826 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
4827 Renamed from...
4828 (__arch_compare_and_exchange_bool_8_acq): ... this.
4829 (__arch_compare_and_exchange_val_16_acq): Renamed from...
4830 (__arch_compare_and_exchange_bool_16_acq): ... this.
4831 (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed
4832 from...
4833 (__arch_compare_and_exchange_bool_32_acq): ... this.
4834 (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed
4835 from...
4836 (__arch_compare_and_exchange_bool_64_acq): ... this.
4837 (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
4838 variables types instead of assuming int.
4839 Change prefix of local variables to __arch.
4840 * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
4841 Remove.
4842 (atomic_compare_and_exchange_val_acq,
4843 atomic_compare_and_exchange_bool_acq): Define.
4844
4845 * csu/tst-atomic.c: New test.
4846 * csu/tst-atomic-long.c: New test.
4847 * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
4848
4849 * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
4850
4851 * sysdeps/s390/Versions: Add trailing newline.
4852
4853 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
4854 if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
4855
4856 2003-03-22 Andreas Schwab <schwab@suse.de>
4857
4858 * sysdeps/m68k/fpu/libm-test-ulps: Update.
4859
4860 * sysdeps/m68k/m68020/bits/atomic.h: New file.
4861 * sysdeps/m68k/m68020/atomicity.h: Removed.
4862
4863 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
4864
4865 * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
4866 data structures and macros. Protect from multiple inclusion.
4867
4868 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
4869 typo in #if test.
4870
4871 2003-03-21 Andreas Jaeger <aj@suse.de>
4872
4873 * sysdeps/i386/fpu/libm-test-ulps: Update.
4874
4875 * math/libm-test.inc (tgamma_test): Recompute some constants with
4876 36 digits precision.
4877 (lgamma_test): Likewise.
4878 (ccos_test): Likewise.
4879 (ccosh_test): Likewise.
4880 (clog10_test): Likewise.
4881 (csin_test): Likewise.
4882 (csinh_test): Likewise.
4883 (ctan_test): Likewise.
4884 (ctanh_test): Likewise.
4885
4886 2003-03-19 Jakub Jelinek <jakub@redhat.com>
4887
4888 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
4889
4890 2003-03-21 Roland McGrath <roland@redhat.com>
4891
4892 * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
4893 constraint to permit non-constant BIT argument.
4894 (atomic_bit_test_set): Likewise.
4895 * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
4896 (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32.
4897 For quadword case, use "i" constraint if __builtin_constant_p and < 32
4898 or "r" constraint otherwise.
4899
4900 * configure.in: Move AC_PROG_CC and other program-finding before all
4901 the version checks.
4902 * configure: Regenerated.
4903
4904 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
4905
4906 * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
4907 unaligned copying of 8-15 bytes. From Chris Demetriou
4908 <cgd@broadcom.com>. Fix label names.
4909 * sysdeps/mips/mips64/memset.S: Fix label names. Make similar
4910 change as to memcpy.S.
4911 * sysdeps/mips/memcpy.S: Formatting changes.
4912 * sysdeps/mips/memset.S: Likewise.
4913
4914 2003-03-21 Roland McGrath <roland@redhat.com>
4915
4916 * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
4917
4918 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
4919
4920 * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
4921 * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
4922
4923 2003-03-21 Roland McGrath <roland@redhat.com>
4924
4925 * sysdeps/i386/i486/bits/atomic.h
4926 (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
4927 version of the macro to avoid compile-time warnings.
4928 [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
4929 (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
4930 (atomic_increment, atomic_decrement): Likewise.
4931
4932 2003-03-21 Ulrich Drepper <drepper@redhat.com>
4933
4934 * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
4935 * sysdeps/i386/i486/bits/atomic.h: Likewise.
4936
4937 2003-03-21 Roland McGrath <roland@redhat.com>
4938
4939 * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
4940
4941 2003-03-20 Ulrich Drepper <drepper@redhat.com>
4942
4943 * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
4944 atomic_compare_and_exchange_val_rel,
4945 atomic_compare_and_exchange_bool_acq, and
4946 atomic_compare_and_exchange_bool_rel instead of
4947 atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
4948 * sysdeps/i386/i486/bits/atomic.h: Define
4949 __arch_compare_and_exchange_val_*_acq instead of
4950 __arch_compare_and_exchange_*_acq.
4951 * sysdeps/x86_64/bits/atomic.h: Likewise.
4952 * sysdeps/ia64/bits/atomic.h: Define
4953 __arch_compare_and_exchange_bool_*_acq instead of
4954 __arch_compare_and_exchange_*_acq.
4955 * sysdeps/powerpc/bits/atomic.h: Likewise.
4956 * sysdeps/s390/bits/atomic.h: Likewise.
4957 * gmon/mcount.c: Adjust for new form of compare&exchange macros.
4958 * malloc/set-freeres.c: Likewise.
4959 * nscd/cache.c: Likewise.
4960 * stdlib/cxa_finalize.c: Likewise.
4961 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
4962
4963 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
4964
4965 * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
4966 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
4967 * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
4968
4969 * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
4970 into high and low halves on n64.
4971 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4972 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4973 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4974
4975 2003-03-20 Ulrich Drepper <drepper@redhat.com>
4976
4977 * include/atomic.h (atomic_decrement_if_positive): Adjust for the
4978 correct atomic_compare_and_exchange_acq semantics.
4979
4980 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
4981
4982 * sysdeps/mips/ieee754.h: Remove excess #endif.
4983
4984 2003-03-20 Roland McGrath <roland@redhat.com>
4985
4986 * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
4987 variable. Remove superfluous memory clobber.
4988
4989 * include/atomic.h: Syntax braino fix.
4990
4991 * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
4992 in decimal. Don't bail if niced at start. Just check that nice call
4993 bumps the total at all.
4994
4995 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
4996
4997 * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
4998 including pc, gp, sp and fp, as long long.
4999 * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
5000 * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
5001 Add gp argument, and set gp in the jmpbuf to it.
5002 * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
5003
5004 2003-03-20 Ulrich Drepper <drepper@redhat.com>
5005
5006 * include/atomic.h: Define atomic_exchange and
5007 atomic_decrement_if_positive if not already defined. Add some
5008 __builtin_expect.
5009 * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
5010 * sysdeps/x86_64/bits/atomic.h: Likewise.
5011 * sysdeps/ia64/bits/atomic.h: Pretty printing. Define atomic_exchange.
5012 * sysdeps/powerpc/bits/atomic.h: Pretty printing. Define
5013 atomic_exchange, atomic_exchange_and_add, and
5014 atomic_decrement_if_positive
5015
5016 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
5017
5018 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
5019 with a single instruction.
5020
5021 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
5022 properly for n64.
5023 (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
5024 type.
5025 (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
5026 Word before comparing with gotsym. Take reloc_addr argument as
5027 void*. Remove the code added for the compiler to drop any
5028 alignment assumptions.
5029
5030 2003-03-19 Ulrich Drepper <drepper@redhat.com>
5031
5032 * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
5033 * include/atomic.h: New file.
5034 * sysdeps/i386/i486/bits/atomic.h: New file.
5035 * sysdeps/x86_64/bits/atomic.h: New file.
5036 * sysdeps/s390/bits/atomic.h: New file.
5037 * sysdeps/sh/bits/atomic.h: New file.
5038 * sysdeps/ia64/bits/atomic.h: New file.
5039 * sysdeps/powerpc/bits/atomic.h: New file.
5040 * sysdeps/generic/bits/atomic.h: New file.
5041 * sysdeps/i386/i486/atomicity.h: Removed.
5042 * sysdeps/x86_64/atomicity.h: Removed.
5043 * sysdeps/s390/s390-32/atomicity.h: Removed.
5044 * sysdeps/s390/s390-64/atomicity.h: Removed.
5045 * sysdeps/ia64/atomicity.h: Removed.
5046 * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
5047 * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
5048 * elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust
5049 use of macros from atomicity.h to new names and semantics.
5050 * gmon_mcount.c: Likewise.
5051 * malloc/set-freeres.c: Likewise.
5052 * nscd/cache.c: Likewise.
5053 * stdlib/cxa_finalize.c: Likewise.
5054 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
5055
5056 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
5057
5058 * sysdeps/mips/ieee754.h: New file, suitable to replace both
5059 ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
5060 mips-specific for now.
5061
5062 2003-03-19 Ulrich Drepper <drepper@redhat.com>
5063
5064 * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
5065 hexdigits correctly. Reported by Fred Tydeman <tydeman@tybor.com>.
5066 * stdlib/tst-strtod.c: Add test for the bug.
5067
5068 * posix/tst-nice.c (do_test): Remove invalid of return value.
5069 Don't run test if initial level != 0.
5070
5071 2003-03-19 Amos Waterland <apw@us.ibm.com>
5072
5073 * posix/tst-nice.c: New file.
5074 * posix/Makefile (tests): Add tst-nice.
5075
5076 2003-03-18 Roland McGrath <roland@redhat.com>
5077
5078 * abilist: New directory of libfoo.abilist files maintained using
5079 scripts/merge-abilist.awk and "make update-abi" rules.
5080 * Makefile (distribute): Add abilist/*.abilist.
5081 * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
5082 Depend on check-abi.
5083
5084 * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
5085 * configure: Regenerated.
5086
5087 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
5088
5089 2003-03-18 Ulrich Drepper <drepper@redhat.com>
5090
5091 * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
5092 correctly.
5093
5094 2003-03-18 Steven Munroe <sjmunroe@us.ibm.com>
5095
5096 * sysdeps/powerpc/powerpc64/memcpy.S: New file.
5097
5098 2003-03-18 Ulrich Drepper <drepper@redhat.com>
5099
5100 * Versions.def: Add GLIBC_2.3.3 for libpthread.
5101
5102 2003-03-17 Ulrich Drepper <drepper@redhat.com>
5103
5104 * sysdeps/generic/libc-start.c [!SHARED &&
5105 !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
5106
5107 2003-03-17 Roland McGrath <roland@redhat.com>
5108
5109 * include/ctype.h: Revert last change.
5110
5111 2003-03-17 Ulrich Drepper <drepper@redhat.com>
5112
5113 * argp/tst-argp1.c: Use test-skeleton.c.
5114 * locale/tst-C-locale.c: Likewise.
5115
5116 2003-03-17 Alexandre Oliva <aoliva@redhat.com>
5117
5118 * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
5119 * sysdeps/mips/mips64/n64/Implies: New file.
5120 * sysdeps/mips/mips64/n64/Makefile: New file.
5121 * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
5122 * sysdeps/mips/mips64/n32/Implies: New file.
5123 * sysdeps/mips/mips64/n32/Makefile: New file.
5124 * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
5125 * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
5126 * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
5127 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
5128 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
5129 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
5130 * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
5131 * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
5132 * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
5133 * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
5134 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
5135 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
5136 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
5137 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
5138
5139 * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
5140 lib64 for mips64/n64 and lib32 for mips64/n32.
5141 (ldd_rewrite_script): Needed for all mips64 configurations.
5142 * sysdeps/unix/sysv/linux/configure: Rebuilt.
5143 * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
5144 * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
5145
5146 * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
5147 well.
5148
5149 * sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
5150 asm/unistd.h into asm-unistd.h.
5151 * sysdeps/unix/sysv/linux/mips/configure: Generated.
5152 * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
5153 of syscall list.
5154 * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
5155 * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
5156 asm/unistd.h.
5157
5158 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
5159 * sysdeps/unix/sysv/linux/mips/ptrace.c: New file. Use long
5160 long type for registers on n32.
5161
5162 * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
5163 3 ABIs.
5164 * sysdeps/mips/mips64/gmp-mparam.h: New file. Define
5165 BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
5166 * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
5167 (__sigsetjmp_aux): Use them. Adjust for all 3 ABIs.
5168 * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
5169 * sysdeps/unix/mips/brk.S: Likewise.
5170 * sysdeps/unix/mips/sysdep.S: Likewise.
5171 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
5172 * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
5173 * sysdeps/mips/sys/ucontext.h: Likewise.
5174 * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
5175 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
5176 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
5177 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
5178 * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
5179 * sysdeps/mips/mips64/setjmp.S: Likewise.
5180 * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
5181 * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
5182 64-bit types.
5183
5184 2003-03-16 Ulrich Drepper <drepper@redhat.com>
5185
5186 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
5187 not at function level.
5188 * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
5189
5190 2003-03-15 Roland McGrath <roland@redhat.com>
5191
5192 * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
5193 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
5194 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
5195 * nis/nis_table.c (__create_ib_request): Likewise.
5196
5197 * posix/fnmatch_loop.c: Add casts for signedness.
5198 * nss/nss_files/files-hosts.c: Likewise.
5199 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
5200 * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
5201 * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
5202
5203 * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
5204 get errors into the log file.
5205 (libc_cv_broken_visibility_attribute): Likewise.
5206 (libc_cv_broken_alias_attribute): Likewise.
5207 (libc_cv_asm_weak_directive): Likewise.
5208 (libc_cv_need_minus_P): Likewise.
5209 (libc_cv_dot_text): Likewise.
5210 (libc_cv_asm_global_directive): Likewise.
5211 (libc_cv_asm_type_prefix): Likewise.
5212 * configure: Regenerated.
5213
5214 * nscd/cache.c (cache_search): Give first arg type `request_type'.
5215 * nscd/nscd.h: Update decl.
5216
5217 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
5218 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
5219 * elf/dl-close.c (_dl_close): Likewise.
5220 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
5221 * io/fts.c (fts_build): Likewise.
5222 * elf/cache.c (add_to_cache): Likewise.
5223 * locale/programs/locarchive.c (show_archive_content): Likewise.
5224
5225 * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
5226
5227 * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
5228 happy.
5229 (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
5230
5231 2003-03-15 Ulrich Drepper <drepper@redhat.com>
5232
5233 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
5234 code for most parts.
5235
5236 2003-03-15 Roland McGrath <roland@redhat.com>
5237
5238 * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
5239 * sysdeps/unix/sysv/linux/system.c: ... here.
5240 (FORK): Don't #define if already #define'd.
5241 * sysdeps/unix/sysv/linux/s390/system.c: File removed.
5242 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
5243 (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
5244
5245 * dlfcn/tst-dlinfo.c: New file.
5246 * dlfcn/Makefile (tests): Add tst-dlinfo.
5247 ($(objpfx)tst-dlinfo): New target.
5248
5249 * dlfcn/dlinfo.c: New file.
5250 * dlfcn/Makefile (libdl-routines): Add it.
5251 * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
5252 * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
5253 [__USE_GNU] (RTLD_DI_*): New enum constants.
5254 [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
5255 * elf/dl-load.c (cache_rpath): New inline function.
5256 (_dl_map_object): Use it.
5257 (_dl_rtld_di_serinfo): New function.
5258 * sysdeps/generic/ldsodefs.h: Declare it.
5259 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
5260
5261 * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
5262 (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
5263 (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
5264 (__libc_start_main): Just call the generic one for most of the work.
5265
5266 * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
5267 static function by that name instead of BP_SYM (__libc_start_main).
5268 [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
5269 [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
5270 [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
5271
5272 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
5273 Use this macro for extra AT_* cases.
5274 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
5275 New macro, guts from ...
5276 (__aux_init_cache): ... here, function removed.
5277 (DL_PLATFORM_INIT): Don't define this.
5278
5279 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
5280 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
5281
5282 * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
5283
5284 2003-03-14 Roland McGrath <roland@redhat.com>
5285
5286 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
5287
5288 2003-03-14 Jakub Jelinek <jakub@redhat.com>
5289
5290 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
5291
5292 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
5293 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
5294
5295 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
5296
5297 * sysdeps/mips/fpu/bits/mathdef.h: New.
5298 (__NO_LONG_DOUBLE_MATH): Define for o32.
5299
5300 * sysdeps/mips/sys/asm.h: Formatting changes.
5301 (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
5302 (CPADD): Define for all of them.
5303 (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
5304 SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
5305 NARGSAVE): Define per ABI spec.
5306 (END): Don't redefine.
5307 (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
5308 LONG_SRAV): Remove duplicate definitions.
5309 (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
5310 PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
5311 PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
5312 (PTR_LA): Define for all 3 ABIs.
5313
5314 * sysdeps/mips/dl-machine.h: Include sys/asm.h.
5315 (elf_machine_matches_host): Prevent linking of o32 and n32
5316 together.
5317 (elf_machine_dynamic): Document assumption on $gp.
5318 (STRINGXP, STRINGXV, STRINGV_): New macros.
5319 (elf_machine_load_address): Use them to stringize PTR_LA and
5320 PTR_SUBU.
5321 (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
5322 ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
5323 (_dl_runtime_resolve): Adjust it for all 3 ABIs.
5324 (__dl_runtime_resolve): Cast the symtab initializer to the
5325 right type.
5326 (RTLD_START): Use it. Adjust it for all 3 ABIs.
5327 (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
5328 Handle 64-bit R_MIPS_REL composite relocation and accept
5329 R_MIPS_64 relocations to shift addend size to 64 bits.
5330 Document assumption regarding local GOT entries. Document
5331 backward-compatibility departing from the ABI behavior in
5332 applying relocations that reference section symbols, no longer
5333 used. Support relocations to mis-aligned offsets.
5334 * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
5335
5336 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
5337
5338 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
5339 (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
5340 * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
5341 restore_rt functions. Use them.
5342
5343 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
5344 .set mips2 on new abis.
5345
5346 2003-03-13 Ulrich Drepper <drepper@redhat.com>
5347
5348 * posix/getconf.c: Recognize POSIX2_SYMLINKS.
5349 * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
5350 * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
5351 * sysdeps/posix/pathconf.c: Likewise.
5352 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
5353 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
5354 * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
5355
5356 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
5357 words.
5358
5359 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
5360
5361 * include/gmp.h: Include/gmp-mparam.h.
5362 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
5363 gmp-impl.h.
5364
5365 * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
5366 ELF_MACHINE_NO_RELA is set.
5367 * elf/rtld.c (dl_main): No prelink support for REL-only.
5368
5369 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
5370 FLAG_MIPS64_LIBN64): Define.
5371 * elf/cache.c (print_entry): Handle mips64 n32 and n64.
5372
5373 * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
5374 * sysdeps/mips/memset.S: Likewise.
5375 * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
5376 depending on the ABI.
5377
5378 * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
5379 Don't .set mips2 on new abi.
5380 (compare_and_swap): Likewise. Support 64-bit longs on n64.
5381
5382 * stdlib/fpioconst.h: Include gmp.h with angle brackets.
5383
5384 2003-03-13 Roland McGrath <roland@redhat.com>
5385
5386 * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
5387 found. Reported by Alexandre Oliva <aoliva@redhat.com>.
5388
5389 2003-03-13 Alexandre Oliva <aoliva@redhat.com>
5390
5391 * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
5392 literals long long.
5393 * stdlib/fpioconst.c: Likewise.
5394 * stdlib/strtod.c: Likewise.
5395
5396 * sysdeps/mips/add_n.S: Use L macro for local labels.
5397 * sysdeps/mips/addmul_1.S: Likewise.
5398 * sysdeps/mips/lshift.S: Likewise.
5399 * sysdeps/mips/memcpy.S: Likewise.
5400 * sysdeps/mips/memset.S: Likewise.
5401 * sysdeps/mips/mul_1.S: Likewise.
5402 * sysdeps/mips/rshift.S: Likewise.
5403 * sysdeps/mips/sub_n.S: Likewise.
5404 * sysdeps/mips/submul_1.S: Likewise.
5405 * sysdeps/mips/mips64/add_n.S: Likewise.
5406 * sysdeps/mips/mips64/addmul_1.S: Likewise.
5407 * sysdeps/mips/mips64/lshift.S: Likewise.
5408 * sysdeps/mips/mips64/mul_1.S: Likewise.
5409 * sysdeps/mips/mips64/rshift.S: Likewise.
5410 * sysdeps/mips/mips64/sub_n.S: Likewise.
5411 * sysdeps/mips/mips64/submul_1.S: Likewise.
5412 * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
5413 conventions. Define END as in sys/asm.h.
5414 * sysdeps/unix/mips/sysdep.S: Likewise.
5415 * sysdeps/unix/mips/wait.S: Likewise.
5416 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
5417
5418 * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
5419 Cast shifted values that may be too narrow to mp_limb_t.
5420 * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
5421 Likewise.
5422 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
5423 Likewise.
5424 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
5425 (__mpn_extract_long_double): Likewise.
5426 * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
5427 (__mpn_construct_long_double): Likewise.
5428 * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
5429 (__mpn_extract_long_double): Likewise.
5430 * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
5431 (__mpn_construct_long_double): Likewise.
5432
5433 2003-03-13 Roland McGrath <roland@redhat.com>
5434
5435 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
5436 entries in the map file match too.
5437
5438 2003-03-13 Guido Guenther <agx@sigxcpu.org>
5439
5440 * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
5441 label .Lthread_start since current binutils don't allow branches
5442 to globally visible symbols.
5443
5444 2003-03-13 Jakub Jelinek <jakub@redhat.com>
5445
5446 * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
5447 ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
5448 ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
5449 (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments
5450 clobbered by the syscall.
5451 (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
5452 ASM_ARGS_6): Change constraints from r to index of corresponding
5453 output register.
5454 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
5455 ptid and ctid to match kernel.
5456 * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
5457
5458 2003-03-12 Steven Munroe <sjmunroe@us.ibm.com>
5459
5460 * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
5461 AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64.
5462 * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
5463
5464 2003-03-11 Roland McGrath <roland@redhat.com>
5465
5466 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
5467 Check SYM_MAP rather than SYM as definedness check.
5468 Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
5469 Don't handle R_PPC64_REL24 reloc.
5470 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
5471
5472 * sysdeps/powerpc/powerpc64/dl-machine.h
5473 [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
5474 block, so we cover all the TPREL16* flavors without 6 ||s.
5475 [USE_TLS] (elf_machine_tprel): New function.
5476 (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
5477 and handle TPREL16 relocs too. Return rather than break for DTPREL64.
5478 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
5479
5480 2003-03-11 Ralf Baechle <ralf@linux-mips.org>
5481
5482 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
5483 instead of jalr to invoke subroutine so restoring the $gp register
5484 will work properly.
5485
5486 2003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
5487
5488 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
5489 to __NR_pread if not defined.
5490 (__NR_pwrite64): Define to __NR_pwrite if not defined.
5491
5492 2003-03-11 Jakub Jelinek <jakub@redhat.com>
5493
5494 * sysdeps/unix/sysv/linux/ia64/system.c: New file.
5495 * sysdeps/unix/sysv/linux/kernel-features.h
5496 (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
5497 kernel >= 2.5.64.
5498
5499 2003-03-11 Jakub Jelinek <jakub@redhat.com>
5500
5501 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
5502 allocate space even for the trailing '/'.
5503 Reported by John Reiser <jreiser@BitWagon.com>.
5504
5505 * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
5506 ASM_CLOBBERS_6): Define.
5507 (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
5508 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
5509 to match IA-32 order.
5510 * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
5511
5512 2003-03-10 Steven Munroe <sjmunroe@us.ibm.com>
5513
5514 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
5515 Copy extra params for NPTL to registers used in clone syscall.
5516
5517 2003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
5518
5519 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
5520 call names for pread and pwrite.
5521
5522 2003-03-10 Roland McGrath <roland@redhat.com>
5523
5524 * dlfcn/Makefile (libdl-routines): Add dladdr1.
5525 * dlfcn/dladdr1.c: New file.
5526 * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
5527 [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
5528 * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
5529 a const ElfNN_Sym ** to fill in.
5530 * include/dlfcn.h: Update decl. Include <link.h>.
5531 * dlfcn/dladdr.c (dladdr): Update caller.
5532 * malloc/mtrace.c (tr_where): Likewise.
5533 * sysdeps/generic/elf/backtracesyms.c: Likewise.
5534 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
5535 * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
5536 * Versions.def (libdl): Define GLIBC_2.3.3 set.
5537
5538 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
5539 assembler command.
5540 * sysdeps/unix/Makefile (compile-syscall): New variable.
5541 Pass -g0 to compiler for assembling syscall stubs from stdin.
5542
5543 * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
5544 (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
5545 Define these to do nothing.
5546
5547 * configure.in: New check for -g on .S files.
5548 * configure: Regenerated.
5549 * config.make.in (have-cpp-asm-debuginfo): New variable.
5550 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
5551 * Makeconfig (ASFLAGS): New variable, if undefined and
5552 $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
5553 * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
5554
5555 2003-03-09 Roland McGrath <roland@redhat.com>
5556
5557 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
5558 used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>.
5559
5560 2003-03-09 Ulrich Drepper <drepper@redhat.com>
5561
5562 * po/fi.po: Update from translation team.
5563 * po/ca.po: Likewise.
5564 * po/da.po: Likewise.
5565
5566 2003-03-08 Ulrich Drepper <drepper@redhat.com>
5567
5568 * rt/tst-aio7.c (do_test): Change BYTES into a #define.
5569
5570 2003-03-07 Ulrich Drepper <drepper@redhat.com>
5571
5572 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
5573
5574 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
5575
5576 2003-03-07 Roland McGrath <roland@redhat.com>
5577
5578 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
5579 * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
5580
5581 2003-03-04 Guido Guenther <agx@sigxcpu.org>
5582
5583 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
5584 stubs, we have INLINE_SYSCALL.
5585 * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
5586 MAP_NONBLOCK.
5587
5588 2003-03-06 Roland McGrath <roland@redhat.com>
5589
5590 * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1
5591 permanent extent and add a comment about testing its implicit teardown.
5592
5593 2003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
5594
5595 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
5596
5597 2003-03-05 Ulrich Drepper <drepper@redhat.com>
5598
5599 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
5600 reversed __builtin_expect expectation.
5601
5602 2003-03-05 Roland McGrath <roland@redhat.com>
5603
5604 * stdio-common/sscanf.c: Use prototype defn with ... syntax.
5605 * libio/swscanf.c: Likewise.
5606 * libio/swprintf.c: Likewise.
5607
5608 2003-03-04 Roland McGrath <roland@redhat.com>
5609
5610 * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
5611 (elf_machine_rela): Always use RESOLVE_MAP, needed for
5612 R_PPC64_JMP_SLOT as well as TLS cases.
5613 (BIT_INSERT): Move parenthesis where it ought to have been.
5614 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
5615
5616 * posix/confstr.c (confstr): Correct STRING_LEN values for
5617 _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
5618 break. Reported by Alexandre Julliard <julliard@winehq.com>.
5619
5620 2003-03-04 Jakub Jelinek <jakub@redhat.com>
5621
5622 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5623
5624 2003-03-04 Ulrich Drepper <drepper@redhat.com>
5625
5626 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
5627 clone parameters.
5628
5629 * po/sv.po: Update from translation team.
5630
5631 2003-03-04 Andreas Jaeger <aj@suse.de>
5632 Ulrich Drepper <drepper@redhat.com>
5633
5634 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
5635
5636 2003-03-03 Ulrich Drepper <drepper@redhat.com>
5637
5638 * sysdeps/generic/dl-sysdep.h: Add double include protection.
5639
5640 * po/tr.po: Update from translation team.
5641
5642 * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
5643 are holes between the segments. Only call mprotect to set
5644 proection to PROT_NONE if there are some.
5645
5646 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
5647 Update comment.
5648
5649 * include/sched.h (__clone2): Use ... instead of adding all the
5650 new parameters.
5651
5652 2003-03-03 Roland McGrath <roland@redhat.com>
5653
5654 * elf/dl-load.c (struct filebuf): Fix typo in last change.
5655
5656 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
5657 PI_STATIC_AND_HIDDEN.
5658
5659 2003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au>
5660
5661 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
5662 flags.
5663 * include/sched.h: Update clone2 prototype.
5664
5665 2003-03-03 Andreas Jaeger <aj@suse.de>
5666
5667 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
5668 (llrint): Use it to correct return type.
5669 (lrint): Likewise.
5670 (lround): Likewise.
5671 (llround): Likewise.
5672
5673 2003-03-03 Ulrich Drepper <drepper@redhat.com>
5674
5675 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
5676 byte filebuf size.
5677
5678 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
5679 if ccs parameter isn't valid. Reported by Andreas Schwab.
5680
5681 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
5682
5683 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
5684 for system call numbers > 255.
5685 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
5686 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
5687 INTERNAL_SYSCALL): Likewise.
5688 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
5689 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
5690 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
5691 INTERNAL_SYSCALL): Likewise.
5692
5693 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
5694
5695 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
5696 array if it is the initial dtv.
5697
5698 2003-03-03 Ulrich Drepper <drepper@redhat.com>
5699
5700 * po/es.po: Update from translation team.
5701 * po/fr.po: Likewise.
5702 * po/gl.po: Likewise.
5703 * po/sk.po: Likewise.
5704 * po/sv.po: Likewise.
5705
5706 * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
5707 * misc/sys/mman.h: Add prototype for remap_file_pages.
5708 * sysdeps/generic/remap_file_pages.c: New file.
5709 * misc/Makefile (routines): Add remap_file_pages.
5710 * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
5711
5712 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
5713 and MAP_NONBLOCK.
5714 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
5715 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
5716 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
5717 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
5718 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
5719 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
5720 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
5721 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
5722
5723 2003-03-03 Roland McGrath <roland@redhat.com>
5724
5725 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
5726 * sysdeps/ia64/dl-machine.h: Likewise.
5727 * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
5728 argument type.
5729 * sysdeps/ia64/dl-lookupcfg.h: Update decl.
5730
5731 * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
5732 * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
5733 * locale/Versions (libc: GLIBC_2.3): Move those to ...
5734 * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
5735 * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
5736 * Versions.def (libc): Add GLIBC_2.3.3 set.
5737
5738 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
5739 * sysdeps/ia64/dl-machine.h: Update decl.
5740
5741 2003-03-03 Andreas Jaeger <aj@suse.de>
5742
5743 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
5744
5745 2003-03-02 Roland McGrath <roland@redhat.com>
5746
5747 * scripts/abilist.awk: Reject data items with apparent 0 size.
5748
5749 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
5750 after foo.* as if it were a duplicate.
5751
5752 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
5753
5754 2003-03-02 Ulrich Drepper <drepper@redhat.com>
5755
5756 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
5757
5758 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
5759 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
5760 if not already defined. Use SYSDEP_GETRES to allow other files to
5761 provide alternative implementations.
5762 * sysdeps/unix/sysv/linux/clock_getres.c: New file
5763 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
5764 if not already defined. Use SYSDEP_GETTIME to allow other files to
5765 provide alternative implementations.
5766 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
5767 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
5768 if not already defined. Use SYSDEP_GETTIME to allow other files to
5769 provide alternative implementations.
5770 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
5771 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
5772 other files to provide alternative implementations. Rearrange
5773 tests for invalid parameters.
5774 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
5775 * sysdeps/unix/sysv/linux/sysconf.c: New file.
5776 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5777 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
5778 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
5779 _POSIX_MONOTONIC_CLOCK.
5780
5781 2003-03-02 Roland McGrath <roland@redhat.com>
5782
5783 * scripts/merge-abilist.awk: More checks for bogus input.
5784 Uniquify duplicate config names.
5785
5786 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
5787
5788 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
5789 from dl_reloc_overflow, make global.
5790 (__process_machine_rela): Update callers.
5791 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
5792 Add attribute_hidden to __process_machine_rela decl.
5793 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
5794
5795 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
5796 variable.
5797
5798 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
5799 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
5800 (elf_machine_rela): Clean up.
5801
5802 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
5803
5804 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
5805 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
5806 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
5807 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
5808 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
5809 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
5810 new relocs for TLS.
5811
5812 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
5813 macros out of [SHARED].
5814 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
5815
5816 * elf/elf.h: Define R_PPC_* relocs for TLS support.
5817 Clean up R_PPC64_* macro definition comments.
5818
5819 * configure.in: In "running configure fragment for" message,
5820 omit $srcdir from the name if we prepended it.
5821 * configure: Regenerated.
5822
5823 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
5824 From Jakub Jelinek <jakub@redhat.com>.
5825
5826 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
5827 which duplicated the O_DIRECT defn.
5828
5829 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
5830
5831 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
5832 random functions.
5833
5834 2003-03-01 Andreas Schwab <schwab@suse.de>
5835
5836 * resolv/Makefile (tests): Don't depend on
5837 $(objpfx)mtrace-tst-leaks when cross compiling.
5838
5839 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
5840 __libc_stack_end through GOT since it is a global symbol.
5841
5842 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
5843
5844 * argp/argp.h: Fix a typo.
5845 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
5846
5847 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
5848
5849 2003-02-27 Pat Rankin <rankin@pactechdata.com>
5850
5851 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
5852 char *.
5853 (get_subexp): Likewise.
5854
5855 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
5856
5857 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
5858
5859 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
5860
5861 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
5862
5863 2003-02-27 Roland McGrath <roland@redhat.com>
5864
5865 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
5866 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
5867 repeat it and avoids the test for the common case.
5868 Clean up and fix calculations for TLS relocs.
5869
5870 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
5871 * sysdeps/powerpc/dl-tls.h: ... here.
5872 (TLS_TP_OFFSET): New macro.
5873
5874 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
5875
5876 2003-02-27 Ulrich Drepper <drepper@redhat.com>
5877
5878 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
5879 code generation changes in recent gcc.
5880
5881 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
5882
5883 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
5884 Rename argument to avoid symbol conflict.
5885
5886 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
5887 [__USE_GNU] (O_DIRECT): New macro.
5888
5889 2003-02-24 David Mosberger <davidm@hpl.hp.com>
5890
5891 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
5892 unwind info.
5893
5894 2003-02-27 Ulrich Drepper <drepper@redhat.com>
5895
5896 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
5897 initializer anymore now that res_thread_freeres is more careful.
5898
5899 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
5900 except the PKTINFO. Reset interface in PKTINFO.
5901 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
5902
5903 2003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
5904
5905 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
5906 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
5907 Define.
5908 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
5909 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
5910 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
5911 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
5912
5913 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
5914 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
5915
5916 2003-02-25 Andreas Jaeger <aj@suse.de>
5917
5918 * manual/memory.texi (Malloc Tunable Parameters): Clarify
5919 behaviour of M_MMAP_THRESHOLD.
5920
5921 2003-02-25 Roland McGrath <roland@redhat.com>
5922
5923 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
5924 zero, inidicating _res was not initialized yet.
5925
5926 2003-02-24 Ulrich Drepper <drepper@redhat.com>
5927
5928 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
5929 test.
5930
5931 2003-02-24 Roland McGrath <roland@redhat.com>
5932
5933 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
5934
5935 2003-02-23 Roland McGrath <roland@redhat.com>
5936
5937 * sysdeps/posix/pause.c: New file.
5938 * sysdeps/unix/common/pause.c: File removed.
5939
5940 2003-02-23 Ulrich Drepper <drepper@redhat.com>
5941
5942 * sysdeps/generic/bits/confname.h: Remove #ifs.
5943
5944 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
5945 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
5946
5947 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
5948 element to -1.
5949
5950 2003-02-22 Ulrich Drepper <drepper@redhat.com>
5951
5952 * sysdeps/generic/dl-sysdep.c: Avoid warning.
5953
5954 2003-02-22 Roland McGrath <roland@redhat.com>
5955
5956 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
5957 * resolv/Makefile (tests): Add tst-leaks.
5958 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
5959 (tst-leaks-ENV): New variable.
5960 ($(objpfx)mtrace-tst-leaks): New target.
5961 (tests): Depend on it.
5962
5963 * include/libc-internal.h: Declare __libc_thread_freeres.
5964
5965 * Makerules: Fix last change to use $($(subdir)-version) when set.
5966
5967 * Makerules (install-lib-nosubdir): Depend on installed
5968 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
5969 regardless of the libfoo.so target's dependencies.
5970
5971 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
5972 Use that in $(MAKE) calls.
5973
5974 2003-02-22 Ulrich Drepper <drepper@redhat.com>
5975
5976 * catgets/gencat.c (read_input_file): Collision between
5977 auto-assigned numbers and user-defined nubmers is not fatal.
5978 Handle it.
5979 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
5980 * catgets/Makefile: Add rules to run test2.msg test.
5981 * catgets/test2.msg: New file.
5982
5983 * catgets/gencat.c (main): Return 1 if messages have been printed.
5984
5985 * iconv/iconv_prog.c (main): Unify messages.
5986
5987 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
5988 when shifting retval.
5989 * stdlib/tst-strtod.c (main): Add strtold test case.
5990 Reported by Fred J. Tydeman <tydeman@tybor.com>.
5991
5992 2003-02-21 Roland McGrath <roland@redhat.com>
5993
5994 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
5995 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
5996 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
5997
5998 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
5999 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
6000 (res_thread_freeres): New function, on __libc_thread_subfreeres and
6001 __libc_subfreeres.
6002
6003 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
6004 * malloc/thread-freeres.c: New file.
6005 * malloc/Makefile (aux): Add it.
6006 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
6007 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
6008 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
6009
6010 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
6011 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
6012
6013 2003-02-21 Roland McGrath <roland@frob.com>
6014
6015 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
6016
6017 * iconvdata/Makefile (tests): Add bug-iconv3 only if
6018 [$(have-thread-library) = yes].
6019
6020 2003-02-21 Ulrich Drepper <drepper@redhat.com>
6021
6022 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
6023
6024 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
6025 not chechk for errors (unless testing for 32bit variant).
6026 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
6027 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
6028 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
6029
6030 2003-02-21 Jakub Jelinek <jakub@redhat.com>
6031
6032 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
6033 Check for signed overflow, not unsigned.
6034
6035 * sysdeps/sparc/sparc64/elf/configure.in: New file.
6036 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
6037 Use -fcall-used-g6, not -fcall-used-g7.
6038
6039 2003-02-21 Andreas Jaeger <aj@suse.de>
6040
6041 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
6042 mode.
6043
6044 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
6045 clear whole mxcsr but only exceptions.
6046
6047 2003-02-21 Roland McGrath <roland@redhat.com>
6048
6049 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
6050 for libfoo.so that need $(make-link) rules.
6051
6052 2003-02-21 Roland McGrath <roland@frob.com>
6053
6054 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
6055 to match existing struct stat layout in mig protocols.
6056
6057 2003-02-20 Ulrich Drepper <drepper@redhat.com>
6058
6059 * version.h (VERSION): Bump to 2.3.2.
6060
6061 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
6062 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
6063 and dl-sysdep.h.
6064 * sysdeps/generic/Dist: Add sysdep-cancel.h.
6065 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
6066 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
6067 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
6068 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
6069 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
6070 ucontext_i.h.
6071 * Makefile (distribute): Add include/stubs-prologue.h,
6072 include/gnu/stubs.h, scripts/merge-abilist.awk, and
6073 scripts/extract-abilist.awk.
6074
6075 2003-02-20 Roland McGrath <roland@redhat.com>
6076
6077 * math/Makefile (distribute): Don't add generated files.
6078
6079 2003-02-20 Ulrich Drepper <drepper@redhat.com>
6080
6081 * math/Makefile: Rearrange variable definitions slightly to get
6082 definition in the right order.
6083
6084 2003-02-20 Roland McGrath <roland@redhat.com>
6085
6086 * Makerules: Clean up conditional around include of tls.make.
6087 * Make-dist: Export generating=t to prevent using that.
6088 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
6089
6090 2003-02-20 Ulrich Drepper <drepper@redhat.com>
6091
6092 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
6093 around in search if port IPPORT_RESERVED/2 has been test.
6094
6095 2002-02-20 Paolo Bonzini <bonzini@gnu.org>
6096
6097 * posix/regcomp.c: Remove inclusions.
6098 * posix/regexec.c: Likewise.
6099 * posix/regex_internal.c: Likewise.
6100 * posix/regex_internal.h: Add inclusions here.
6101 * posix/regex.c: Only include sys/types.h before regex.h. Include
6102 regex_internal.h here. Include regex_internal.c before regcomp.c
6103 and regexec.c (might expose more opportunities to the C compiler).
6104
6105 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
6106
6107 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
6108 [!_LIBC] (__wcrtomb): New definition.
6109 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
6110 HAVE_LOCALE_H as well.
6111
6112 2003-02-20 Ulrich Drepper <drepper@redhat.com>
6113
6114 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
6115 patch to check for system call errors.
6116
6117 2002-07-24 Philip Blundell <philb@gnu.org>
6118
6119 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
6120 on unknown systems.
6121
6122 2003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6123
6124 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
6125 * sysdeps/unix/sysv/linux/kernel-features.h
6126 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
6127 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
6128 if possible.
6129 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
6130 interprocedure branches.
6131 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
6132 * sysdeps/powerpc/nofpu/Dist: ...here.
6133 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
6134 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
6135 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
6136 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
6137 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
6138
6139 2003-02-18 Alan Modra <amodra@bigpond.net.au>
6140
6141 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
6142
6143 2003-02-20 Philip Blundell <philb@gnu.org>
6144
6145 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
6146 missing arguments to INTERNAL_SYSCALL_ERROR_P and
6147 INTERNAL_SYSCALL_ERRNO.
6148
6149 2003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
6150
6151 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
6152 for __ASSUME_32BITUIDS.
6153
6154 2003-02-20 Andreas Schwab <schwab@suse.de>
6155
6156 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
6157 POSIX_MADV_* constants.
6158
6159 2003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6160
6161 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
6162 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
6163 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
6164 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
6165
6166 2003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
6167
6168 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
6169
6170 2003-02-16 Roland McGrath <roland@redhat.com>
6171
6172 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
6173
6174 2003-02-19 Ulrich Drepper <drepper@redhat.com>
6175
6176 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
6177 decimal input digits.
6178 * stdlib/tst-strtod.c (main): Add test for strtof bug.
6179
6180 2003-02-18 Ulrich Drepper <drepper@redhat.com>
6181
6182 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
6183 invalid file descriptors and missing access permissions.
6184
6185 2003-02-17 Ulrich Drepper <drepper@redhat.com>
6186
6187 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
6188 been found.
6189
6190 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
6191 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
6192 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
6193 and LOGIN_NAME_MAX.
6194
6195 2003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
6196 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6197
6198 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
6199 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
6200 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
6201 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
6202 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
6203
6204 2003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6205
6206 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
6207 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
6208 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
6209 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
6210 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
6211 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
6212
6213 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
6214 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
6215 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
6216 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
6217
6218 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
6219 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
6220 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
6221 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
6222
6223 2003-02-14 Thorsten Kukuk <kukuk@suse.de>
6224
6225 * nss/getent.c (print_hosts): Print all IP addresses of one host.
6226
6227 2003-02-15 Roland McGrath <roland@frob.com>
6228
6229 * sysdeps/mach/hurd/tls.h: New file.
6230 * sysdeps/mach/hurd/i386/tls.h: New file.
6231
6232 * mach/errsystems.awk: Include <errno.h> in generated output.
6233
6234 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
6235 use target mach-before-compile instead of generated.
6236 (mach-before-compile): New target.
6237 * Makerules: Disable use of tls.make if $(generating) is set.
6238 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
6239 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
6240 mach-shortcuts.h so mach/ generation happens before hurd/.
6241
6242 2003-02-14 Ulrich Drepper <drepper@redhat.com>
6243
6244 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
6245 of demorm correctly if low word is zero.
6246 Reported by Fred J. Tydeman <tydeman@tybor.com>.
6247 * math/libm-test.inc (nextafter_test): New test, but disabled due
6248 to gcc bug.
6249
6250 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
6251 counter and only call __exit_thread if this is not the last thread.
6252
6253 2003-02-13 Jakub Jelinek <jakub@redhat.com>
6254
6255 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
6256 subtracting map->l_tls_offset.
6257
6258 2003-02-12 Ulrich Drepper <drepper@redhat.com>
6259
6260 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
6261 _CS_GNU_LIBPTHREAD_VERSION.
6262 * posix/conststr.c: Handle these new values.
6263 * posix/getconf.c: Likewise.
6264
6265 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
6266 masking of version index.
6267 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
6268
6269 2003-02-11 Ulrich Drepper <drepper@redhat.com>
6270
6271 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
6272 correctly. Reported by Thorsten Kukuk.
6273
6274 2003-02-10 Ulrich Drepper <drepper@redhat.com>
6275
6276 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
6277 _BSD_SOURCE to compiler.
6278 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
6279 Patches by Alan Modra.
6280
6281 2003-02-08 Ulrich Drepper <drepper@redhat.com>
6282
6283 * io/ftwtest.c: Get current working directory before and after the
6284 nftw call and make sure they match.
6285
6286 2003-02-08 Jim Meyering <jim@meyering.net>
6287
6288 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
6289 the current directory, not just when DIR contains a slash.
6290 Reported by Manoj Srivastava.
6291
6292 2003-02-07 Jim Meyering <jim@meyering.net>
6293
6294 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
6295 Include autoconf-recommended block of dirent/NAMELEN-related
6296 definitions and includes. Use NAMELEN throughout, rather than
6297 _D_EXACT_NAMLEN.
6298 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
6299 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
6300 (stpcpy): Declare, if necessary.
6301 (mempcpy): Define, if necessary.
6302 [!_LIBC] (__stpcpy, __mempcpy): Define.
6303 [!_LIBC] (LXSTAT, XSTAT): Define.
6304 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
6305 (find_object): Don't use c99-style struct initializer.
6306 Tweak wording in a couple comments.
6307
6308 2003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6309
6310 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
6311 for SH.
6312 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
6313 after the trapa instruction.
6314 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
6315 parameters.
6316 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
6317 (NEED_SYSCALL_INST_PAD): Define.
6318 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
6319 avoid to use definition for the kernel.
6320 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
6321 Save and restore the frame pointer.
6322 (SYSCALL_INST_PAD): Define.
6323 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
6324 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
6325 after trapa instruction.
6326 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
6327 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
6328
6329 2003-02-07 Jakub Jelinek <jakub@redhat.com>
6330
6331 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
6332 so that it can have aliases.
6333 * inet/herrno.c (h_errno): Put it into .bss not .data section.
6334
6335 2003-02-07 Ulrich Drepper <drepper@redhat.com>
6336
6337 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
6338 (profile_fixup): Likewise.
6339 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
6340
6341 2002-11-24 Robert Love <rml@tech9.net>
6342
6343 * posix/sched.h: Second parameter of sched_setaffinity and
6344 sched_getaffinity is `unsigned int', not `unsigned long'.
6345 * sysdeps/generic/sched_setaffinity.c: Likewise.
6346 * sysdeps/generic/sched_getaffinity.c: Likewise.
6347
6348 2003-02-05 Ulrich Drepper <drepper@redhat.com>
6349
6350 * debug/catchsegv.sh: Fix typo in error messsage.
6351 Reported by John Levon <levon@movementarian.org>.
6352
6353 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
6354 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
6355 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
6356 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6357 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
6358 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6359 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6360
6361 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
6362 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
6363
6364 2003-02-05 Jim Meyering <jim@meyering.net>
6365
6366 Fix a heap-corrupting bug.
6367 * io/ftw.c: Include <limits.h>.
6368 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
6369 (process_entry): Allocate enough space to hold the resulting
6370 file name. Don't presume that 2*dirbufsize is enough.
6371 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
6372 it is guaranteed to be defined.
6373
6374 2003-02-04 Ulrich Drepper <drepper@redhat.com>
6375
6376 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
6377 * iconvdata/bug-iconv3.c: New file.
6378
6379 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
6380
6381 * sysdeps/unix/sysv/linux/s390/system.c: New file.
6382
6383 2003-02-03 Jakub Jelinek <jakub@redhat.com>
6384
6385 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
6386 check.
6387 * config.h.in (BROKEN_SPARC_WDISP22): Add.
6388
6389 2003-02-03 Ulrich Drepper <drepper@redhat.com>
6390
6391 * sysdeps/i386/i686/memmove.S: New file.
6392
6393 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6394
6395 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
6396 Include kernel-features.h
6397 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
6398 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
6399 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
6400 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
6401
6402 2003-02-02 Jakub Jelinek <jakub@redhat.com>
6403
6404 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
6405
6406 2003-01-25 Jim Meyering <jim@meyering.net>
6407
6408 * io/ftw.c (object_compare): Compare inode numbers before device
6409 numbers, since the former are much more likely to differ.
6410
6411 2003-02-01 Ulrich Drepper <drepper@redhat.com>
6412
6413 * time/tzfile.c (__tzfile_compute): Change return value type to
6414 void. Adjust return statements.
6415 * include/time.h (__tzfile_compute): Adjust prototype.
6416
6417 2003-02-01 Jim Meyering <jim@meyering.net>
6418
6419 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
6420 always returns 1.
6421
6422 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6423
6424 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
6425 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
6426
6427 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6428
6429 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
6430 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
6431 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
6432 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
6433 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
6434 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
6435 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
6436 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
6437
6438 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6439
6440 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
6441 back to 2.4.19 for powerpc64.
6442 * sysdeps/unix/sysv/linux/kernel-features.h
6443 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
6444 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
6445
6446 2003-02-01 Ulrich Drepper <drepper@redhat.com>
6447
6448 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
6449 platforms with strange alignment requirements on wchar_t.
6450
6451 2003-01-31 Andreas Schwab <schwab@suse.de>
6452
6453 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
6454 aliases, already added by make-syscalls.sh.
6455 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6456 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6457 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6458 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6459 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6460 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6461 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6462 * sysdeps/unix/inet/syscalls.list: Likewise.
6463 * sysdeps/unix/syscalls.list: Likewise.
6464
6465 2003-01-31 Andreas Schwab <schwab@suse.de>
6466
6467 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
6468 any more.
6469
6470 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6471
6472 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
6473 not l to load tls from stack.
6474
6475 2003-01-30 Roland McGrath <roland@redhat.com>
6476
6477 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
6478 null argument before all else.
6479 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
6480
6481 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6482
6483 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
6484 Move to RESOLVE protected part of the header.
6485 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
6486 Likewise.
6487
6488 2003-01-30 Ulrich Drepper <drepper@redhat.com>
6489
6490 * stdio-common/Makefile (tests): Add bug15.
6491 (bug15-ENV): Define.
6492 * stdio-common/bug15.c: New file.
6493
6494 2002-10-07 Wolfram Gloger <wg@malloc.de>
6495
6496 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
6497 to foreign sbrk()'s if arena is contiguous. Bug report from
6498 Bruno Haible <bruno@clisp.org>.
6499
6500 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6501
6502 * sysdeps/s390/libc-tls.c: Include stdlib.h.
6503
6504 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6505
6506 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
6507 ps.__count.
6508
6509 2003-01-30 Ulrich Drepper <drepper@redhat.com>
6510
6511 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
6512 restoring of %r6.
6513 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
6514 64-bit load.
6515 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
6516
6517 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6518
6519 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
6520 (allocate_static_tls): ...here. Add __attribute_noinline__.
6521 Don't return on failure.
6522 (_dl_reloc_bad_type): Add __attribute_noinline__.
6523 * elf/do-rel.h (elf_dynamic_do_rel): Add
6524 __attribute__((always_inline)).
6525 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
6526 elf_machine_rel_relative, elf_machine_rela_relative,
6527 elf_machine_lazy_rel): Add prototypes with
6528 __attribute__((always_inline)).
6529
6530 2003-01-29 David Mosberger <davidm@hpl.hp.com>
6531
6532 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
6533
6534 2003-01-29 Roland McGrath <roland@redhat.com>
6535
6536 * configure.in: Barf if configured in $srcdir.
6537
6538 2003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
6539
6540 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
6541 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
6542
6543 2003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
6544
6545 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
6546 clone parameters to match the order used on ia32.
6547 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
6548
6549 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
6550
6551 * elf/elf.h: Add new s390 relocs.
6552 * elf/tls-macros.h: Add s390 versions.
6553 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
6554 * sysdeps/s390/dl-tls.h: New file.
6555 * sysdeps/s390/libc-tls.c: New file.
6556 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
6557 relocs for class PLT.
6558 (elf_machine_rela): Handle TLS relocs.
6559 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6560 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
6561 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
6562 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
6563 CLONE_CHILD_*TID flags.
6564 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
6565 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
6566 bit offset.
6567 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
6568 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
6569 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
6570 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
6571 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
6572 Likewise.
6573 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
6574 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
6575 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
6576 variants.
6577 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
6578 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
6579 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
6580 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
6581 variants.
6582
6583 2003-01-28 Ulrich Drepper <drepper@redhat.com>
6584
6585 * sysdeps/unix/common/pause.c (do_pause): New function. Split
6586 from __libc_pause. Implement using sigsuspend.
6587 (__libc_pause): Call do_pause to do the real work.
6588
6589 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
6590 sig_or_mask parameter is is_sig != 0.
6591
6592 2003-01-21 Philip Blundell <philb@gnu.org>
6593
6594 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
6595
6596 2003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
6597
6598 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
6599
6600 2003-01-27 Ulrich Drepper <drepper@redhat.com>
6601
6602 * stdio-common/bug14.c: Use official name for the locale.
6603
6604 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
6605 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
6606 instead of __libc_cleanup_region_end.
6607
6608 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
6609 as first parameter to __libc_cleanup_region_start.
6610
6611 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
6612 (__fe_nomask_env): Use __prctl not prctl.
6613 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
6614 prctl syscall.
6615
6616 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
6617
6618 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
6619
6620 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
6621 wrap-around in test.
6622
6623 2003-01-26 Andreas Schwab <schwab@suse.de>
6624
6625 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
6626 compatibility symbols. Remove INTDEF for __divdi3.
6627 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
6628 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
6629 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
6630 define.
6631 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
6632
6633 2003-01-24 Jakub Jelinek <jakub@redhat.com>
6634
6635 * elf/tls-macros.h: Add SPARC 32-bit definitions.
6636 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
6637 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
6638 for the first half of the header. Include tls.h.
6639 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
6640 relocs too.
6641 (elf_machine_rela): Handle TLS relocs.
6642 * sysdeps/sparc/dl-tls.h: New file.
6643
6644 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
6645 support.
6646
6647 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
6648 * sysdeps/sparc/sparc32/memchr.S: Likewise.
6649 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
6650 * sysdeps/sparc/sparc32/strcat.S: Likewise.
6651 * sysdeps/sparc/sparc32/strchr.S: Likewise.
6652 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
6653 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
6654 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
6655 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
6656 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
6657 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
6658 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
6659 * sysdeps/sparc/sparc64/strcat.S: Likewise.
6660 * sysdeps/sparc/sparc64/strchr.S: Likewise.
6661 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
6662 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
6663 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
6664 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
6665 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
6666 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
6667
6668 2003-01-24 Andreas Schwab <schwab@suse.de>
6669
6670 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
6671 elements, and process them backwards.
6672 * elf/Makefile ($(objpfx)tst-array4): New target.
6673 ($(objpfx)tst-array4.out): Likewise.
6674 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
6675 * elf/tst-array4.c: New file.
6676 * elf/tst-array4.exp: Likewise.
6677
6678 2003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
6679
6680 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
6681
6682 2003-01-27 Guido Guenther <agx@sigxcpu.org>
6683
6684 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
6685 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
6686 cancellation handling and handle both __NR_pread64 and __NR_pread.
6687 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
6688 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
6689 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
6690 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
6691 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
6692 case, use register names consistently.
6693
6694 2003-01-27 Wolfram Gloger <wg@malloc.de>
6695
6696 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
6697 pointer, not of the computed chunk. Bug report from Carlos
6698 O'Donell <carlos@baldric.uwo.ca>.
6699
6700 2003-01-25 Andreas Schwab <schwab@suse.de>
6701
6702 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
6703 addressing to save GOT entries.
6704
6705 2003-01-21 Jakub Jelinek <jakub@redhat.com>
6706
6707 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
6708 inline_syscall1, inline_syscall2, inline_syscall3,
6709 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
6710 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
6711 __attribute__((unused)) to ChEcK.
6712
6713 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
6714
6715 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
6716 Fix inline assembler constraints.
6717 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
6718 Likewise.
6719
6720 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
6721 -fPIC.
6722
6723 2003-01-20 Segher Boessenkool <segher@koffie.nl>
6724
6725 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
6726 compute the cosine, not the sine, even if x > 0.8.
6727
6728 2003-01-19 Ulrich Drepper <drepper@redhat.com>
6729
6730 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
6731 _nss_nis_setspent. Work around the different prototypes.
6732 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
6733 internal_nis_endrpcent.
6734 (internal_nis_endrpcent): Change return type to void. Change callers.
6735 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
6736 _nss_nis_setpwent. Work around the different prototypes.
6737 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
6738 of the function to...
6739 (internal_nis_endprotoent): ... here. New function.
6740 (internal_nis_setprotoent): Use internal_nis_endprotoent.
6741 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
6742 _nss_nis_setnetent. Work around the different prototypes.
6743 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
6744 of the function to...
6745 (internal_nis_endnetgrent): ... here. New function.
6746 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
6747
6748 2003-01-19 Jim Meyering <jim@meyering.net>
6749
6750 * time/strftime.c: (widen): Merge nearly-identical definitions.
6751 (nl_get_alt_digit) [! defined my_strftime]: Define.
6752 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
6753 _nl_get_alt_digit and _nl_get_walt_digit.
6754
6755 2003-01-19 Ulrich Drepper <drepper@redhat.com>
6756
6757 * time/strftime.c (my_strftime): Handle very large width
6758 specifications for numeric values correctly. Improve checks for
6759 overflow.
6760 * time/Makefile (tests): Add tst-strftime.
6761 * time/tst-strftime.c: New file.
6762
6763 2003-01-18 Ulrich Drepper <drepper@redhat.com>
6764
6765 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
6766 _nss_nis_sethostent. Work around the different prototypes.
6767 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
6768 _nss_nis_setgrent. Work around the different prototypes.
6769 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
6770 function. Split out from _nss_nis_endetherent.
6771 (internal_nis_setetherent): Use internal_nis_endetherent instead of
6772 duplicating the code.
6773 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
6774 of _nss_nis_setaliasent.
6775 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
6776 internal_nis_endservent code, don't duplicate it.
6777
6778 * inet/rexec.c (rexec_af): Protect socket operations with
6779 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
6780 * inet/rcmd.c (rcmd_af): Likewise.
6781
6782 2003-01-17 Roland McGrath <roland@redhat.com>
6783
6784 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
6785 Add test of value 0.80190127184058835.
6786
6787 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
6788
6789 2003-01-17 Richard Henderson <rth@redhat.com>
6790
6791 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
6792 relocs for class PLT.
6793 * sysdeps/alpha/libc-tls.c: New file.
6794 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
6795 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
6796
6797 2003-01-17 Jakub Jelinek <jakub@redhat.com>
6798
6799 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
6800 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
6801 on _dl_static_lock.
6802
6803 2003-01-17 Andreas Jaeger <aj@suse.de>
6804
6805 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
6806
6807 2003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
6808
6809 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
6810 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
6811 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
6812 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
6813 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
6814 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
6815 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
6816 is 2.4.21.
6817
6818 2003-01-16 Ulrich Drepper <drepper@redhat.com>
6819
6820 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
6821 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
6822 buffers.
6823
6824 * sysdeps/generic/sysconf.c: Unconditionally implement
6825 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
6826 * sysdeps/posix/sysconf.c: Likewise.
6827
6828 2003-01-16 Jakub Jelinek <jakub@redhat.com>
6829
6830 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
6831 set *err to the returned error, not to REG_ESPACE unconditionally.
6832 (build_word_op): Likewise.
6833 * posix/Makefile (tests): Add bug-regex16.
6834 * posix/bug-regex16.c: New test.
6835
6836 2003-01-16 Jakub Jelinek <jakub@redhat.com>
6837
6838 * elf/dl-load.c (_dl_map_object_from_fd): Use
6839 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
6840 been already initialized.
6841
6842 2003-01-15 Dmitry V. Levin <ldv@altlinux.org>
6843
6844 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
6845
6846 2003-01-16 Jakub Jelinek <jakub@redhat.com>
6847
6848 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
6849 allocated too. Reported by Al Viro <aviro@redhat.com>.
6850
6851 2003-01-16 Roland McGrath <roland@redhat.com>
6852
6853 Tweak merged .abilist file format to merge duplicate symbols in
6854 different sets into multi-version stanzas with new "| SET regexp..."
6855 header continuation lines.
6856 * scripts/merge-abilist.awk: Rewritten for new format.
6857 * scripts/extract-abilist.awk: Likewise.
6858
6859 2003-01-15 Ulrich Drepper <drepper@redhat.com>
6860
6861 * nscd/connections.c (nscd_run): Remove bogus return which isn't
6862 necessary with gcc 3.2+.
6863 (nscd_init): Don't use error() to print message, use dbg_log.
6864
6865 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
6866 expected size into state.
6867 (UNPACK_BYTES): Do the reverse.
6868 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
6869 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
6870 Reported by Al Viro <aviro@redhat.com>.
6871
6872 * stdio-common/Makefile (tests): Add bug14.
6873 * stdio-common/bug14.c: New file.
6874
6875 * stdio-common/vfscanf.c: When recognizing multibyte characters in
6876 string reset the byte counter after mbrtowc reported it is not a
6877 partial character. Reported by Al Viro <aviro@redhat.com>.
6878
6879 2003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
6880
6881 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
6882 sysdep-cancel.h, not sysdep.h.
6883
6884 2003-01-15 Ulrich Drepper <drepper@redhat.com>
6885
6886 * nscd/connections.c (nscd_run): Protect accept call with
6887 TEMP_FAILURE_RETRY.
6888
6889 2003-01-15 Andreas Schwab <schwab@suse.de>
6890
6891 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
6892 (common-generated): Add s-proto-bp.d.
6893 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
6894 of bp thunks.
6895 * sysdeps/unix/s-proto-bp.S: New file.
6896 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
6897 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
6898 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
6899
6900 2003-01-15 Roland McGrath <roland@redhat.com>
6901
6902 * Makerules: Use -include for tls.make, suppresses warning.
6903 Move gen-as-const-headers rules up so before-compile is set in time.
6904 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
6905
6906 2003-01-15 Ulrich Drepper <drepper@redhat.com>
6907
6908 * nscd/nscd.c (main): Make code to close all file descriptors
6909 faster and more robust.
6910
6911 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
6912 request with one writev call. Protect all read calls with
6913 TEMP_FAILURE_RETRY.
6914 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
6915 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6916
6917 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
6918 Protect writev calls with TEMP_FAILURE_RETRY.
6919 * nscd/grpcache.c: Likewise.
6920 * nscd/pwdcache.c: Likewise.
6921
6922 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
6923 IPv6 address in debug output.
6924
6925 2003-01-14 Roland McGrath <roland@redhat.com>
6926
6927 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
6928 $(objpfx) directories, and get rid of vpath directives. The previous
6929 arrangement resulted in files being written to the source directories
6930 when run in a clean build. Find all .abilist files in $(..)abilist/.
6931 (update-abi-%): Likewise.
6932 (generated): Don't add .symlist files, they'll be intermediates.
6933
6934 * sysdeps/generic/init-first.c: Add a comment.
6935
6936 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
6937
6938 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
6939 #includes and expressions.
6940
6941 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
6942 config list when it already contains cpu-.*-os.* without / part.
6943
6944 * Makerules (sed-remove-dotdot): New variable.
6945 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
6946 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
6947 (check-abi-config): New variable, append /tls or /notls to the tuple.
6948 (check-abi-%): Use that for -v config value.
6949 Find .abilist files in abilist/libfoo.abilist, not in subdir.
6950 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
6951
6952 2003-01-14 Ulrich Drepper <drepper@redhat.com>
6953
6954 * manual/install.texi: Correct description of header preparation for
6955 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
6956
6957 2003-01-14 Guido Guenther <agx@sigxcpu.org>
6958
6959 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
6960 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
6961 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
6962
6963 2003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
6964
6965 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6966 (INTERNAL_SYSCALL): Make use of ERR parameter.
6967 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
6968 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
6969 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
6970 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
6971
6972 2003-01-14 Ulrich Drepper <drepper@redhat.com>
6973
6974 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
6975 == IPPROTO_TCP.
6976 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
6977
6978 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
6979 Fix entry for bit 31.
6980
6981 * iconvdata/Makefile: Add rules to build IBM866NAV.
6982 * iconvdata/ibm866nav.c: New file.
6983 * iconvdata/tst-tables.sh: Add IBM866NAV.
6984 * iconvdata/gconv-modules: Add entries for IBM866NAV.
6985
6986 2003-01-13 Ulrich Drepper <drepper@redhat.com>
6987
6988 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
6989 to test void* parameters.
6990
6991 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
6992 source pointer before dereferencing.
6993 (__STRING_SMALLL_GET32): Likewise.
6994 (__memset_gc): Add missing parenthesis around macro arguments.
6995 Patch by Denis Zaitsev <zzz@cd-club.ru>.
6996
6997 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
6998 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
6999
7000 2003-01-14 Jakub Jelinek <jakub@redhat.com>
7001
7002 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
7003 defining.
7004
7005 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
7006
7007 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
7008 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
7009 here.
7010 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
7011
7012 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
7013
7014 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
7015 from here...
7016 (PSEUDO): ... to here.
7017 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
7018 from here...
7019 (PSEUDO): ... to here.
7020
7021 2003-01-13 Ulrich Drepper <drepper@redhat.com>
7022
7023 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
7024 dirent64 instead of struct dirent for dirent. Call readdir64
7025 instead of readdir.
7026
7027 * locale/programs/locfile.c (siblings_uncached): Use struct
7028 dirent64 instead of struct dirent for other_dentry. Call
7029 readdir64 instead of readdir.
7030
7031 * elf/ldconfig.c (direntry): Change type to struct dirent64.
7032 (search_dir): Use readdir64 instead of readdir.
7033 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
7034
7035 2003-01-12 Roland McGrath <roland@redhat.com>
7036
7037 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
7038 not strtol. The former is usable in ld.so, the latter not.
7039
7040 * include/fcntl.h: Declare __libc_creat.
7041
7042 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
7043 libhurduser-link.so-no-z-defs): New variables.
7044
7045 * malloc/malloc.c: Revert last change.
7046 * malloc/malloc.h (_int_*): Move these decls to ...
7047 * include/malloc.h: ... here. Add attribute_hidden.
7048 (_int_valloc): Declare it too.
7049
7050 2003-01-12 Ulrich Drepper <drepper@redhat.com>
7051
7052 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
7053 search for removed searchlist. Reported by Roland McGrath.
7054
7055 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
7056 given as start file.
7057
7058 * io/ftw.c (ftw_startup): Use correct name in check for symlink
7059 without existing target. Patch by Jim Meyering.
7060
7061 * Makerules (build-shlib-helper): Don't use -z defs linker option
7062 if no-z-defs is defined either.
7063
7064 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
7065
7066 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
7067 file.
7068
7069 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
7070
7071 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
7072 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7073
7074 2003-01-12 Ulrich Drepper <drepper@redhat.com>
7075
7076 * io/ftwtest-sh: Add test case for relative path with /. at the end.
7077
7078 2003-01-12 Jim Meyering <jim@meyering.net>
7079
7080 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
7081 use the basename if we've already chdir'd into its parent directory.
7082
7083 2003-01-12 Ulrich Drepper <drepper@redhat.com>
7084
7085 * io/ftw.c (process_entry): Use relative path when using chdir()
7086 to change directory after call to ftw_dir.
7087 * io/ftwtest-sh: Add test for relative path argument to nftw()
7088 with FTW_CHDIR option.
7089
7090 2002-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7091
7092 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
7093 Define for powerpc.
7094 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
7095 into account.
7096 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
7097 (INTERNAL_SYSCALL): Make use of ERR parameter.
7098 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
7099 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
7100 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
7101 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
7102
7103 2002-01-09 Richard Henderson <rth@redhat.com>
7104
7105 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
7106 DTPREL64 and TPREL64 without loadbase applied.
7107
7108 2002-01-09 Richard Henderson <rth@redhat.com>
7109
7110 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
7111 for NOT_IN_libc.
7112
7113 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
7114 * sysdeps/unix/alpha/sysdep.h: ... here.
7115 (PSEUDO_LOADGP): Remove.
7116 (PSEUDO_PROLOGUE): Load GP in non-pic case.
7117 (SYSCALL_ERROR_LABEL): New.
7118 (PSEUDO): Use it in error branch.
7119 (PSEUDO_END): Add $syscall_error label.
7120
7121 2003-01-12 Andreas Jaeger <aj@suse.de>
7122
7123 * math/bits/mathcalls.h: Round is a const function.
7124
7125 2003-01-11 Jim Meyering <jim@meyering.net>
7126
7127 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
7128 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
7129 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
7130 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
7131 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
7132 [!_LIBC] (internal_function, dirent64, MAX): Define.
7133 (__set_errno): Define if not already defined.
7134 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
7135 the basename, not the entire file name.
7136 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
7137 the basename, not the entire file name.
7138
7139 2003-01-12 Ulrich Drepper <drepper@redhat.com>
7140
7141 * string/tester.c (test_strcpy): Disable last added strcpy until
7142 it is fixed.
7143
7144 2003-01-11 Philip Blundell <philb@gnu.org>
7145
7146 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
7147
7148 2003-01-11 Andreas Schwab <schwab@suse.de>
7149
7150 * Makerules: Add vpath for %.dynsym and %.so so that the
7151 implicit rule chaining for check-abi works.
7152
7153 2003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7154
7155 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
7156 Add non-PIC case.
7157
7158 2003-01-11 Jakub Jelinek <jakub@redhat.com>
7159
7160 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
7161 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
7162 gp is used early.
7163 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
7164 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
7165 Ensure libc.so in DT_NEEDED.
7166 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
7167 CHECK_STATIC_TLS before l_tls_offset use.
7168 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
7169 Likewise.
7170 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
7171 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
7172 Allocate TLS_PRE_TCB_SIZE bytes below result.
7173 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
7174 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
7175 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
7176 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
7177 bytes below result and add tcb_offset to memsz.
7178 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
7179 * sysdeps/ia64/dl-machine.h: Include tls.h.
7180 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
7181 too.
7182 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
7183 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
7184 * sysdeps/ia64/libc-tls.c: New file.
7185
7186 2003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
7187
7188 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
7189 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
7190 Fix type. Move definition out of #if.
7191 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
7192 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
7193 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
7194 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
7195 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
7196 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
7197 support.
7198 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
7199 ftruncate64, pread64, pwrite64, truncate64 entries.
7200 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
7201 (INLINE_SYSCALL): New version that supports function call like
7202 syscalls. Add __builtin_expect.
7203 (LOADARGS_n): Add argument size safety checks.
7204 (INTERNAL_SYSCALL): New Macro.
7205 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
7206 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
7207 redefinition of elf_fpreg_t and elf_fpregset_t.
7208
7209 2003-01-12 Ulrich Drepper <drepper@redhat.com>
7210
7211 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
7212 simplify test for unloading. If loader of a DSO is unloaded do not
7213 use its scope anymore. Fall back to own scope and adjust opencounts.
7214 Fix several comments.
7215 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
7216 the l_searchlist, not only for l_initfini.
7217
7218 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
7219 dependencies if objects cannot be removed. Remove object with the
7220 definition as not unloadable if necessary.
7221
7222 * elf/reldep6.c: Create relocation dependency before closing the first
7223 module.
7224
7225 2003-01-10 Guido Günther <agx@sigxcpu.org>
7226
7227 * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
7228 * sysdeps/unix/mips/brk.S: Likewise.
7229 * sysdeps/unix/mips/pipe.S: Likewise.
7230
7231 2003-01-10 Andreas Schwab <schwab@suse.de>
7232
7233 * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
7234
7235 * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
7236 are known to have the vfork syscall.
7237
7238 * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
7239
7240 * sysdeps/unix/sysv/linux/kernel-features.h
7241 (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
7242 (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
7243 (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
7244
7245 2003-01-09 Jakub Jelinek <jakub@redhat.com>
7246
7247 * elf/Makefile: Add rules to build and run reldep9 test.
7248 * elf/reldep9.c: New file.
7249 * elf/reldep9mod1.c: New file.
7250 * elf/reldep9mod2.c: New file.
7251 * elf/reldep9mod3.c: New file.
7252
7253 2003-01-09 Jakub Jelinek <jakub@redhat.com>
7254
7255 * elf/Makefile: Add rules to build and run nodelete2 test.
7256 * elf/nodelete2.c: New file.
7257 * elf/nodel2mod1.c: New file.
7258 * elf/nodel2mod2.c: New file.
7259 * elf/nodel2mod3.c: New file.
7260
7261 2003-01-09 Jakub Jelinek <jakub@redhat.com>
7262
7263 * posix/test-vfork.c (noop): Add __attribute_noinline__.
7264 * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
7265 * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
7266 defining it.
7267 * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
7268 * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
7269 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
7270 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
7271 * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
7272
7273 2003-01-09 Andreas Schwab <schwab@suse.de>
7274
7275 * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
7276
7277 2003-01-08 Ulrich Drepper <drepper@redhat.com>
7278
7279 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
7280 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
7281 argument.
7282 (INTERNAL_SYSCALL_DECL): Define.
7283
7284 2003-01-06 Jakub Jelinek <jakub@redhat.com>
7285
7286 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
7287 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
7288 argument.
7289 (INTERNAL_SYSCALL_DECL): Define.
7290 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
7291 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
7292 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
7293 (INLINE_SYSCALL): Adjust.
7294 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
7295 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
7296 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
7297 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7298 * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
7299 add err argument to INTERNAL_SYSCALL* macros.
7300 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
7301 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
7302 * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
7303 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
7304 Likewise.
7305 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
7306 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
7307 INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
7308
7309 2003-01-07 Ulrich Drepper <drepper@redhat.com>
7310
7311 Unify symbols in user namespace exported by libc.so and libc.a.
7312 * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
7313 argp_fmtstream_free, and argp_fmtstream_printf.
7314 * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
7315 argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
7316 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
7317 argp_fmtstream_point.
7318 * gmon/gmon.c: Don't define write_profiling.
7319 * libio/genops.c: Don't define _cleanup.
7320
7321 * intl/explodename.c (_nl_find_language.c): Mark as static.
7322 * intl/loadinfo.h: Remove _nl_find_language prototype.
7323
7324 * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
7325 * libio/libioP.h: Remove declaration.
7326
7327 * libio/iopopen.c (_IO_proc_jumps): Mark as static.
7328 * libio/libioP.h: Remove declaration.
7329
7330 * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
7331 * sysdeps/generic/framestate.c: Define STATIC before including
7332 unwind-dw2.c.
7333
7334 * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
7335
7336 2003-01-06 Philip Blundell <philb@gnu.org>
7337
7338 * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
7339 [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
7340
7341 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
7342 directive.
7343 (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
7344 (SYSCALL_ERROR): New.
7345 (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
7346 handling code.
7347 (INTERNAL_SYSCALL): Define.
7348 (INLINE_SYSCALL): Use it.
7349 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
7350 * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
7351 SYSCALL_ERROR in place of __syscall_error.
7352
7353 2003-01-07 Jakub Jelinek <jakub@redhat.com>
7354
7355 * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
7356 __bswap_32, __bswap_64): Put x into temporary variable
7357 to avoid warnings.
7358 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
7359 (inline) functions.
7360 * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
7361 __bswap_32, __bswap_64): Put x into temporary variable
7362 to avoid warnings.
7363 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
7364 (inline) functions.
7365 * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
7366 Likewise.
7367
7368 2003-01-07 Jakub Jelinek <jakub@redhat.com>
7369
7370 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
7371 alias.
7372
7373 2003-01-07 Jakub Jelinek <jakub@redhat.com>
7374
7375 * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
7376 * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
7377
7378 2003-01-07 Ulrich Drepper <drepper@redhat.com>
7379
7380 * math/libm-test.inc (significand_test): New function.
7381 (main): Call it.
7382
7383 2003-01-06 Roland McGrath <roland@redhat.com>
7384
7385 * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
7386 arguments.
7387 (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
7388 (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
7389 (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
7390
7391 * string/tester.c (test_strcpy): Add test with `void *' arguments.
7392
7393 2003-01-06 Ulrich Drepper <drepper@redhat.com>
7394
7395 * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
7396 return significand and not the exponent.
7397 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
7398
7399 * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
7400 taking address of iov in INTERNAL_SYSCALL call. Patch by Franz Sirl.
7401
7402 * malloc/malloc.c: Mark all _int_* functions as static.
7403
7404 2003-01-06 Jakub Jelinek <jakub@redhat.com>
7405
7406 * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
7407 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
7408 handling.
7409 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
7410
7411 2003-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7412
7413 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
7414 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
7415 support.
7416 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
7417 ftruncate64, truncate64, pread64 and pwrite64 entries.
7418 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
7419 (INLINE_SYSCALL): Add __builtin_expect.
7420 (LOADARGS_n): Add argument size safety checks.
7421 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
7422 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
7423 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
7424 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
7425 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
7426 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
7427
7428 2003-01-06 Jakub Jelinek <jakub@redhat.com>
7429
7430 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
7431 * sysdeps/generic/creat.c: Include sysdep-cancel.h.
7432 (LIBC_CANCEL_HANDLED): Add.
7433
7434 * sysdeps/unix/sysv/linux/alpha/sysdep.h
7435 (inline_syscall_r0_constraint): Rename to...
7436 (inline_syscall_r0_out_constraint): ... this. Add =.
7437 (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
7438
7439 2003-01-06 Andreas Schwab <schwab@suse.de>
7440
7441 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
7442 sure this is always inlined.
7443 (elf_machine_rela): Likewise.
7444
7445 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
7446
7447 2003-01-04 Roland McGrath <roland@redhat.com>
7448
7449 * Makeconfig (+mkdep): Add -MP flag.
7450 Suggested by Art Haas <ahaas@airmail.net>.
7451
7452 2003-01-05 Andreas Schwab <schwab@suse.de>
7453
7454 * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
7455
7456 2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7457
7458 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
7459 SYSCALL_ERROR_HANDLER.
7460 * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
7461 * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
7462 Add support for cancellation handling.
7463 * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
7464 SYSCALL_ERROR_HANDLER.
7465 * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
7466 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
7467 Add support for cancellation handling.
7468 (SYSCALL_ERROR_HANDLER): Define PIC variants.
7469
7470 2003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7471
7472 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
7473 __syscall_pread64 and __syscall_pwrite64 cancelable.
7474 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
7475 (INTERNAL_SYSCALL): New macro.
7476 (LOADARGS_0, LOADARGS_1): Fix.
7477
7478 2003-01-05 Ulrich Drepper <drepper@redhat.com>
7479
7480 * Makerules (build-shlip-helper): Unless told otherwise, add
7481 -Wl,-z,defs to linker command line.
7482 * rt/Makefile (librt.so): Link with ld.so.
7483 * dlfcn/Makefile (libdl.so): Likewise.
7484
7485 2003-01-05 Jakub Jelinek <jakub@redhat.com>
7486
7487 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
7488 cancellation handling.
7489 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
7490 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
7491
7492 2003-01-04 Ulrich Drepper <drepper@redhat.com>
7493
7494 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
7495 order of parameters passed to kill.
7496
7497 2003-01-04 Andreas Schwab <schwab@suse.de>
7498
7499 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
7500
7501 2002-01-03 Paul Eggert <eggert@twinsun.com>
7502
7503 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
7504 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
7505 when compiling Bison 1.875's `bitset bset = obstack_alloc
7506 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
7507
7508 2003-01-04 Ulrich Drepper <drepper@redhat.com>
7509
7510 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove
7511 unnecessary code.
7512 Correct reference counter in case SIGQUIT handler installation failed.
7513
7514 2003-01-03 Ulrich Drepper <drepper@redhat.com>
7515
7516 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
7517 Define using _Pragma(weak ...).
7518
7519 2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
7520
7521 * resolv/res_libc.c: Provide declaration for __res_init_weak and
7522 reorder declarations.
7523
7524 2003-01-03 Art Haas <ahaas@airmail.net>
7525
7526 * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
7527 initializer syntax to C99.
7528 * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
7529 * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
7530 * localedata/tests-mbwc/dat_iswctype.c: Likewise.
7531 * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
7532 * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
7533 * localedata/tests-mbwc/dat_iswlower.c: Likewise.
7534 * localedata/tests-mbwc/dat_iswprint.c: Likewise.
7535 * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
7536 * localedata/tests-mbwc/dat_iswspace.c: Likewise.
7537 * localedata/tests-mbwc/dat_iswupper.c: Likewise.
7538 * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
7539 * localedata/tests-mbwc/dat_mblen.c: Likewise.
7540 * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
7541 * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
7542 * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
7543 * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
7544 * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
7545 * localedata/tests-mbwc/dat_strcoll.c: Likewise.
7546 * localedata/tests-mbwc/dat_strfmon.c: Likewise.
7547 * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
7548 * localedata/tests-mbwc/dat_swscanf.c: Likewise.
7549 * localedata/tests-mbwc/dat_towctrans.c: Likewise.
7550 * localedata/tests-mbwc/dat_towlower.c: Likewise.
7551 * localedata/tests-mbwc/dat_towupper.c: Likewise.
7552 * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
7553 * localedata/tests-mbwc/dat_wcscat.c: Likewise.
7554 * localedata/tests-mbwc/dat_wcschr.c: Likewise.
7555 * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
7556 * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
7557 * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
7558 * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
7559 * localedata/tests-mbwc/dat_wcslen.c: Likewise.
7560 * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
7561 * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
7562 * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
7563 * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
7564 * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
7565 * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
7566 * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
7567 * localedata/tests-mbwc/dat_wcstod.c: Likewise.
7568 * localedata/tests-mbwc/dat_wcstok.c: Likewise.
7569 * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
7570 * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
7571 * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
7572 * localedata/tests-mbwc/dat_wctob.c: Likewise.
7573 * localedata/tests-mbwc/dat_wctomb.c: Likewise.
7574 * localedata/tests-mbwc/dat_wctrans.c: Likewise.
7575 * localedata/tests-mbwc/dat_wctype.c: Likewise.
7576 * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
7577
7578 2003-01-03 Richard Henderson <rth@redhat.com>
7579
7580 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
7581 (inline_syscall_r0_constraint): New.
7582 (inline_syscall[0-6]): Use them.
7583
7584 2003-01-03 Jakub Jelinek <jakub@redhat.com>
7585
7586 * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
7587 Add rtld_hidden_proto.
7588 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
7589 (_dl_allocate_tls): Likewise. Remove INTDEF.
7590
7591 2002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7592
7593 * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu
7594 Morita <toshiyasu.morita@hsa.hitachi.com>.
7595 * sysdeps/sh/memcpy.S: Likewise.
7596
7597 2003-01-02 Ulrich Drepper <drepper@redhat.com>
7598
7599 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
7600 any, but unify the test.
7601
7602 2003-01-02 Jakub Jelinek <jakub@redhat.com>
7603
7604 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
7605 sigaction): Protect weak_alias and libc_hidden_weak with
7606 #ifndef LIBC_SIGACTION.
7607 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
7608 sigaction): Likewise.
7609 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
7610 sigaction): Likewise.
7611 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
7612 sigaction): Likewise.
7613 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
7614 sigaction): Likewise.
7615 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
7616 sigaction): Likewise.
7617 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
7618 sigaction): Likewise.
7619 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
7620 sigaction): Likewise. Remove SIGCANCEL handling here.
7621 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
7622 Likewise.
7623
7624 2003-01-02 Art Haas <ahaas@airmail.net>
7625
7626 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
7627
7628 2003-01-02 Ulrich Drepper <drepper@redhat.com>
7629
7630 * posix/getconf.c: Update copyright year.
7631 * nss/getent.c: Likewise.
7632 * nscd/nscd_nischeck.c: Likewise.
7633 * iconv/iconvconfig.c: Likewise.
7634 * iconv/iconv_prog.c: Likewise.
7635 * elf/ldconfig.c: Likewise.
7636 * catgets/gencat.c: Likewise.
7637 * csu/version.c: Likewise.
7638 * elf/ldd.bash.in: Likewise.
7639 * elf/sprof.c (print_version): Likewise.
7640 * locale/programs/locale.c: Likewise.
7641 * locale/programs/localedef.c: Likewise.
7642 * nscd/nscd.c (print_version): Likewise.
7643 * debug/xtrace.sh: Likewise.
7644 * malloc/memusage.sh: Likewise.
7645 * malloc/mtrace.pl: Likewise.
7646
7647 2003-01-01 Jakub Jelinek <jakub@redhat.com>
7648
7649 * io/sys/stat.h: Include time.h with __need_timespec even if
7650 __USE_MISC is defined but __USE_XOPEN is not.
7651
7652 2003-01-01 Andreas Jaeger <aj@suse.de>
7653
7654 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
7655 type to avoid strict aliasing problem.
7656 (_nss_dns_gethostbyname2_r): Likewise.
7657 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
7658 (_nss_dns_getnetbyname_r): Likewise.
7659 * resolv/gethnamaddr.c (_gethtent): Likewise.
7660 (gethostbyname2): Likewise.
7661
7662 2002-12-31 Ulrich Drepper <drepper@redhat.com>
7663
7664 * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
7665 to avoid using the exported symbols. Define aliases with the
7666 original names separately.
7667
7668 * include/time.h: Add libc_hidden_proto for __strftime_l.
7669 * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
7670 * time/strftime.c: Always use libc_hidden_def if _LIBC.
7671
7672 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
7673 * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
7674
7675 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
7676 tr_break.
7677
7678 * csu/Makefile (routines): Add dso_handle.
7679 * csu/dso_handle.c: New file.
7680
7681 2002-12-31 Roland McGrath <roland@redhat.com>
7682
7683 * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
7684 Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
7685 (S-CPPFLAGS): Add -DASSEMBLER here instead.
7686 (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
7687
7688 2002-12-31 Ulrich Drepper <drepper@redhat.com>
7689
7690 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
7691 is available.
7692
7693 2002-12-31 Andreas Jaeger <aj@suse.de>
7694
7695 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
7696 with Linux kernel.
7697 * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
7698 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
7699 * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
7700
7701 * sysdeps/unix/sysv/linux/kernel_stat.h
7702 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
7703
7704 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
7705 __unused[1-3] since they're needed by some platforms. Handle
7706 _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
7707
7708 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
7709 for structs stat and stat64.
7710 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
7711 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
7712 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
7713 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
7714
7715 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
7716
7717 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
7718 nsec resolution changes.
7719 (xstat64_conv): Likewise.
7720 (xstat32_conv): Likewise.
7721
7722 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
7723 struct kernel_stat.
7724
7725 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
7726 structs stat and stat64.
7727
7728 * time/time.h (__timespec_defined): Define for __USE_MISC.
7729
7730 2002-12-31 Ulrich Drepper <drepper@redhat.com>
7731
7732 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
7733 and __libc_current_sigrtmax.
7734
7735 2002-12-31 Jakub Jelinek <jakub@redhat.com>
7736
7737 * include/errno.h (__errno_location): Add prototype.
7738 Use libc_hidden_proto unconditionally.
7739 * include/netdb.h (__h_errno_location): Use libc_hidden_proto
7740 unconditionally.
7741 * include/resolv.h (__res_state): Likewise.
7742
7743 * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
7744 * include/sys/socket.h (accept): Add libc_hidden_proto.
7745 * include/errno.h (__errno_location): Likewise.
7746 * include/netdb.h (__h_errno_location): Likewise.
7747 * include/resolv.h (__res_state): Likewise.
7748 * include/unistd.h (__lseek): Likewise.
7749 * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
7750 * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
7751 * sysdeps/generic/res-state.c (__res_state): Likewise.
7752 * sysdeps/generic/accept.c (accept): Likewise.
7753 * sysdeps/generic/lseek.c (__lseek): Likewise.
7754 * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
7755 __libc_current_sigrtmax): Likewise.
7756 * sysdeps/mach/hurd/accept.c (accept): Likewise.
7757 * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
7758 * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
7759 * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
7760 * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
7761 * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
7762 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
7763 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
7764 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
7765 alias to llseek.
7766 (__GI_accept): New alias to accept.
7767 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
7768 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
7769 New alias to llseek.
7770 (__GI_accept): New alias to accept.
7771 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
7772 Likewise.
7773 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
7774 Likewise.
7775 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
7776
7777 * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
7778 strong_alias (name, __GI_name).
7779 * sysdeps/arm/bsd-_setjmp.S : Likewise.
7780 * sysdeps/hppa/bsd-_setjmp.S : Likewise.
7781 * sysdeps/i386/bsd-_setjmp.S : Likewise.
7782 * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
7783 * sysdeps/mips/bsd-_setjmp.S : Likewise.
7784 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
7785 * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
7786 * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
7787 * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
7788 * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
7789 * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
7790 * sysdeps/sh/bsd-_setjmp.S : Likewise.
7791 * sysdeps/sparc/sparc32/setjmp.S : Likewise.
7792 * sysdeps/unix/arm/fork.S : Likewise.
7793 * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
7794 * sysdeps/unix/bsd/i386/vfork.S : Likewise.
7795 * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
7796 * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
7797 * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
7798 * sysdeps/unix/bsd/vax/vfork.S : Likewise.
7799 * sysdeps/unix/i386/fork.S : Likewise.
7800 * sysdeps/unix/mips/fork.S : Likewise.
7801 * sysdeps/unix/sparc/fork.S : Likewise.
7802 * sysdeps/unix/sparc/vfork.S : Likewise.
7803 * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
7804 * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
7805 * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
7806 * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
7807 * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
7808 * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
7809 * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
7810 * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
7811 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
7812 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
7813 * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
7814 * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
7815 * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
7816 * sysdeps/unix/fork.S : Likewise.
7817 * sysdeps/vax/bsd-_setjmp.S : Likewise.
7818 * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
7819
7820 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
7821 inclusion.
7822
7823 2002-12-31 Ulrich Drepper <drepper@redhat.com>
7824
7825 * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
7826 * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
7827 * sysdeps/mach/hurd/fork.c: Likewise.
7828 * sysdeps/unix/sysv/aix/fork.c: Likewise.
7829 * sysdeps/unix/fork.S: Add __GI___fork alias.
7830 * sysdeps/unix/arm/fork.S: Likewise.
7831 * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
7832 * sysdeps/unix/i386/fork.S: Likewise.
7833 * sysdeps/unix/mips/fork.S: Likewise.
7834 * sysdeps/unix/sparc/fork.S: Likewise.
7835 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
7836 * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
7837 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
7838 * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
7839 * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
7840 * sysdeps/unix/bsd/i386/vfork.S: Likewise.
7841 * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
7842 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
7843 * sysdeps/unix/bsd/vax/vfork.S: Likewise.
7844 * sysdeps/unix/sparc/vfork.S: Likewise.
7845 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
7846 * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
7847 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
7848 * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
7849 * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
7850 * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
7851 * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
7852 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
7853
7854 * include/time.h: Add libc_hidden_proto for __nanosleep.
7855 * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
7856 * sysdeps/mach/nanosleep.c: Likewise.
7857 * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
7858 * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
7859
7860 * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
7861 _IO_list_unlock, and _IO_list_resetlock.
7862 * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
7863 _IO_list_unlock, and _IO_list_resetlock.
7864
7865 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
7866 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
7867 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
7868 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
7869
7870 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
7871 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
7872 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
7873 __GI___longjmp alias.
7874
7875 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
7876 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
7877 * sysdeps/arm/bsd-_setjmp.S: Likewise.
7878 * sysdeps/generic/bsd-_setjmp.c: Likewise.
7879 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
7880 * sysdeps/i386/bsd-_setjmp.S: Likewise.
7881 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
7882 * sysdeps/mips/bsd-_setjmp.S: Likewise.
7883 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
7884 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
7885 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
7886 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
7887 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
7888 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
7889 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
7890 * sysdeps/sh/bsd-_setjmp.S: Likewise.
7891 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
7892 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
7893 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
7894 * sysdeps/vax/bsd-_setjmp.S: Likewise.
7895 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
7896
7897 2002-12-30 Ulrich Drepper <drepper@redhat.com>
7898
7899 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
7900
7901 2002-12-30 Roland McGrath <roland@redhat.com>
7902
7903 * Rules (generated): Target removed.
7904 * mach/Makefile (generated): Define it here instead.
7905
7906 * math/Makefile (generated): Add m_*l and m_*f variants too.
7907
7908 2002-12-30 Ulrich Drepper <drepper@redhat.com>
7909
7910 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
7911 the to-be-deleted objects right away instead of later separately.
7912 The latter fails because the scope data structures of the DSO
7913 might already be gone.
7914
7915 * elf/Makefile: Add rules to build and run reldep8 test.
7916 * elf/reldep8.c: New file.
7917 * elf/reldep8mod1.c: New file.
7918 * elf/reldep8mod2.c: New file.
7919 * elf/reldep8mod3.c: New file.
7920 Contributed by Jakub Jelinek.
7921
7922 2002-12-24 GOTO Masanori <gotom@debian.or.jp>
7923
7924 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
7925 checking of return value ENOSYS from getdents64.
7926
7927 2002-12-28 Andreas Schwab <schwab@suse.de>
7928
7929 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
7930 ($(common-objpfx)s-%.d): Generalized from
7931 $(common-objpfx)s-proto.d rule.
7932 (common-generated): Add s-proto-cancel.d.
7933 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
7934 cancellable syscalls.
7935 * sysdeps/unix/s-proto-cancel.S: New file.
7936
7937 2002-12-29 Roland McGrath <roland@redhat.com>
7938
7939 * resolv/res_libc.c: Move _res defn magic after res_init defn
7940 so _res macro is in effect for that code.
7941
7942 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
7943 pattern for prepending $(..) so it doesn't affect $(foo).
7944
7945 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
7946
7947 2002-12-29 Jakub Jelinek <jakub@redhat.com>
7948
7949 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
7950 in hwcap.
7951
7952 2002-12-28 Ulrich Drepper <drepper@redhat.com>
7953
7954 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
7955
7956 2002-12-28 Andreas Jaeger <aj@suse.de>
7957
7958 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
7959 avoid warning.
7960 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
7961
7962 2002-12-27 Jakub Jelinek <jakub@redhat.com>
7963
7964 * inet/herrno.c (__h_errno_location): Remove.
7965 * inet/Makefile (routines): Add herrno-loc.
7966 * resolv/res_libc.c (__res_state): Remove.
7967 * resolv/Makefile (routines): Add res-state.
7968 * sysdeps/generic/herrno-loc.c: New file.
7969 * sysdeps/generic/res-state.c: New file.
7970
7971 2002-12-27 Jakub Jelinek <jakub@redhat.com>
7972
7973 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
7974 Only define if USE_DL_SYSINFO is defined.
7975
7976 2002-12-22 Jakub Jelinek <jakub@redhat.com>
7977
7978 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
7979 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
7980 Define. Patch by Richard Henderson and Jes Sorensen.
7981 (PSEUDO): Remove unnecessary ;;.
7982 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
7983 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
7984 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
7985 if not initializing thread pointer.
7986 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
7987 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
7988 make it weak also if NONTLS_INIT_TP.
7989 * sysdeps/unix/common/pause.c: Handle cancellation.
7990 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
7991 (LOADSYSCALL): Remove.
7992 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
7993 (SYSCALL_ERROR_HANDLER): Use it.
7994 (PSEUDO): Don't jump around error handler.
7995 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
7996 jump around error handler.
7997 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
7998 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
7999 to __syscall_error_handler on failure.
8000 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
8001 (LOADSYSCALL): Remove.
8002 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
8003 (SYSCALL_ERROR_HANDLER): Use it.
8004 (PSEUDO): Don't jump around error handler.
8005 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
8006 jump around error handler.
8007 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
8008 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
8009 to __syscall_error_handler on failure.
8010
8011 2002-12-27 Roland McGrath <roland@redhat.com>
8012
8013 * scripts/gen-as-const.awk: New file.
8014 * Makefile (distribute): Add it.
8015 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
8016 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
8017 to the list.
8018 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
8019
8020 2002-12-27 Andreas Schwab <schwab@suse.de>
8021
8022 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
8023
8024 2002-12-27 Jakub Jelinek <jakub@redhat.com>
8025
8026 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
8027 _environ is NULL.
8028
8029 2002-12-27 Andreas Schwab <schwab@suse.de>
8030
8031 * Makerules ($(common-objpfx)%.make): Filter through
8032 $(sed-remove-objpfx).
8033
8034 2002-12-23 Roland McGrath <roland@redhat.com>
8035
8036 * scripts/abilist.awk: Produce a more compact format, divided into
8037 stanzas for each version set, the set name listed only once.
8038 * scripts/extract-abilist.awk: New file.
8039 * scripts/merge-abilist.awk: New file.
8040 * Makerules (check-abi-%, update-abi-%): New pattern rules.
8041 (update-abi, check-abi): New targets.
8042 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
8043
8044 2002-12-19 Roland McGrath <roland@redhat.com>
8045
8046 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
8047
8048 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
8049 INTERNAL_SYSCALL.
8050
8051 2002-12-21 Andreas Schwab <schwab@suse.de>
8052
8053 * elf/check-textrel.c (handle_file): Swap p_type.
8054
8055 2002-12-21 Andreas Schwab <schwab@suse.de>
8056
8057 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
8058 (INLINE_SYSCALL): Use it.
8059 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
8060 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
8061
8062 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
8063 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
8064
8065 2002-12-20 Art Haas <ahaas@airmail.net>
8066
8067 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
8068 syntax to C99.
8069
8070 2002-12-21 Philip Blundell <philb@gnu.org>
8071
8072 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
8073 top as seventh arg to __libc_start_main.
8074 Reported by paulnash@wildseed.com.
8075
8076 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
8077
8078 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
8079 compatibility cruft when new enough kernel is assumed.
8080
8081 2002-12-20 Jakub Jelinek <jakub@redhat.com>
8082
8083 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
8084 instead of INLINE_SYSCALL.
8085
8086 2002-12-20 Ulrich Drepper <drepper@redhat.com>
8087
8088 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
8089 typo.
8090
8091 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
8092 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
8093 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
8094 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
8095 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
8096 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
8097 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
8098 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
8099 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
8100 Patch by William Lee Irwin <wli@holomorphy.com>.
8101
8102 2002-12-20 Andreas Schwab <schwab@suse.de>
8103
8104 * locale/programs/ld-measurement.c (measurement_output): Fix
8105 index calculation.
8106
8107 2002-12-20 Ulrich Drepper <drepper@redhat.com>
8108
8109 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
8110 Redefine _IO_flockifle and _IO_funlockfile as inlines.
8111
8112 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
8113 builds add "tls" in the search path.
8114 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
8115 (path_hwcap): Recognize "tls".
8116
8117 2002-12-19 Ulrich Drepper <drepper@redhat.com>
8118
8119 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
8120 __waitpid instead of waitpid.
8121
8122 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
8123 int $0x80.
8124 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
8125 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
8126 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
8127
8128 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
8129 information for system calls.
8130
8131 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
8132 for ld.so.
8133
8134 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
8135
8136 2002-12-19 Roland McGrath <roland@redhat.com>
8137
8138 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
8139 * iconvdata/ibm922.h: Likewise.
8140 * iconvdata/ibm930.h: Likewise.
8141 * iconvdata/ibm932.h: Likewise.
8142 * iconvdata/ibm933.h: Likewise.
8143 * iconvdata/ibm935.h: Likewise.
8144 * iconvdata/ibm937.h: Likewise.
8145 * iconvdata/ibm939.h: Likewise.
8146 * iconvdata/ibm943.h: Likewise.
8147 * iconvdata/isiri-3342.h: Likewise.
8148
8149 2002-12-19 Ulrich Drepper <drepper@redhat.com>
8150
8151 * test-skeleton.c (main): Make sure correct value is seen as
8152 argv[0] after adjustment of argv, and argc.
8153
8154 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
8155 RTLD_CORRECT_DYNAMIC_WEAK is defined.
8156
8157 2002-12-19 Jakub Jelinek <jakub@redhat.com>
8158
8159 * nscd/connections.c (nscd_run): Shut up warning.
8160 * tst-ungetc.c (assert): Undefined before redefining.
8161
8162 2002-12-19 Ulrich Drepper <drepper@redhat.com>
8163
8164 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
8165 is used.
8166
8167 2002-12-17 Art Haas <ahaas@airmail.net>
8168
8169 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
8170 * iconvdata/cp775.h: Likewise.
8171 * iconvdata/ibm1046.h: Likewise.
8172 * iconvdata/ibm1124.h: Likewise.
8173 * iconvdata/ibm1129.h: Likewise.
8174 * iconvdata/ibm1132.h: Likewise.
8175 * iconvdata/ibm1133.h: Likewise.
8176 * iconvdata/ibm1160.h: Likewise.
8177 * iconvdata/ibm1161.h: Likewise.
8178 * iconvdata/ibm1162.h: Likewise.
8179 * iconvdata/ibm1163.h: Likewise.
8180 * iconvdata/ibm1164.h: Likewise.
8181
8182 2002-12-19 Ulrich Drepper <drepper@redhat.com>
8183
8184 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
8185 __ASSUME_CLONE_THREAD_FLAGS is defined.
8186 * sysdeps/unix/sysv/linux/kernel-features.h
8187 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
8188
8189 2002-12-18 Ulrich Drepper <drepper@redhat.com>
8190
8191 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
8192 of asm.
8193 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8194
8195 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
8196 _dl_sysinfo.
8197 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
8198 code.
8199 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
8200 _rtld_global.
8201 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
8202 code.
8203 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
8204 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
8205 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
8206 Add _dl_sysinfo.
8207
8208 2002-12-18 Jakub Jelinek <jakub@redhat.com>
8209
8210 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
8211 __libc_writev to...
8212 [libc: GLIBC_PRIVATE]: ...here.
8213 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
8214 __libc_msgsnd to...
8215 [libc: GLIBC_PRIVATE]: ...here.
8216
8217 2002-12-18 Ulrich Drepper <drepper@redhat.com>
8218
8219 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
8220 Use it instead of directly int $0x80.
8221 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
8222 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
8223 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
8224 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8225 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
8226 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
8227
8228 2002-12-17 Ulrich Drepper <drepper@redhat.com>
8229
8230 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
8231
8232 * elf/elf.h (AT_SYSINFO): New define.
8233 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
8234 AT_SYSINFO.
8235
8236 2002-12-17 Jakub Jelinek <jakub@redhat.com>
8237
8238 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
8239 Make cancelable.
8240 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
8241 Likewise.
8242 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
8243 Likewise.
8244 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
8245 Likewise.
8246 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
8247 Likewise.
8248 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
8249
8250 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
8251 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
8252 available, otherwise __libc_maybe_call.
8253 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
8254 cancellation handling.
8255 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
8256
8257 2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
8258
8259 * posix/regcomp.c (free_workarea_compile): Free the new member
8260 ORG_INDICES.
8261 (analyze): Initialize ORG_INDICES.
8262 (duplicate_node_closure): Search for a existing node, which is
8263 duplicated from the node ORG_DEST and satisfies the constraint
8264 CONSTRAINT. And use it to avoid inifimite loop.
8265 (search_duplicated_node): New function.
8266 (duplicate_node): Store the index of the original node.
8267 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
8268 if needed.
8269 * posix/regex_internal.h (re_dfa_t): Add new members.
8270
8271 2002-12-17 Ulrich Drepper <drepper@redhat.com>
8272
8273 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
8274
8275 2002-12-16 Ulrich Drepper <drepper@redhat.com>
8276
8277 * sysdeps/posix/system.c (do_system): Add support for installation
8278 of cancellation handlers.
8279 * sysdeps/unix/sysv/linux/i386/system.c: New file.
8280
8281 * stdlib/Makefile (tests): Add tst-system.
8282 * stdlib/tst-system.c: New file.
8283
8284 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
8285 CENABLE]: Don't lose content of %ebx.
8286
8287 2002-12-17 Jakub Jelinek <jakub@redhat.com>
8288
8289 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
8290 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
8291
8292 2002-12-16 Ulrich Drepper <drepper@redhat.com>
8293
8294 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
8295 fails to return a function pointer don't use it.
8296
8297 2002-12-16 Art Haas <ahaas@airmail.net>
8298
8299 * io/ftw.c: Convert GCC extension initializer syntax to C99.
8300 * iconvdata/iso-ir-165.c: Likewise.
8301 * iconvdata/jis0208.c: Likewise.
8302 * iconvdata/jis0212.c: Likewise.
8303
8304 2002-12-16 Ulrich Drepper <drepper@redhat.com>
8305
8306 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
8307 epoll_ctl, and epoll_wait.
8308 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
8309 epoll_create, epoll_ctl, and epoll_wait.
8310 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
8311 Davide Libenzi <davidel@xmailserver.org>.
8312 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
8313 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
8314 Add sys/epoll.h.
8315
8316 2002-12-16 Art Haas <ahaas@airmail.net>
8317
8318 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
8319 syntax to C99
8320 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
8321 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
8322 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
8323
8324 2002-12-16 Ulrich Drepper <drepper@redhat.com>
8325
8326 * stdio-common/Makefile (routines): Remove lockfile. Add
8327 flockfile, ftrylockfile, and funlockfile.
8328 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
8329 * sysdeps/generic/flockfile.c: New file.
8330 * sysdeps/generic/ftrylockfile.c: New file.
8331 * sysdeps/generic/funlockfile.c: New file.
8332
8333 2002-12-16 Jakub Jelinek <jakub@redhat.com>
8334
8335 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
8336 macros instead of doing the calls directly.
8337 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
8338 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
8339 targets.
8340
8341 2002-12-16 Jakub Jelinek <jakub@redhat.com>
8342
8343 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
8344 * sysdeps/ieee754/bits/nan.h: Likewise.
8345
8346 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
8347 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
8348
8349 2002-12-16 Roland McGrath <roland@redhat.com>
8350
8351 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
8352 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
8353 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
8354
8355 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
8356 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
8357 s_putpmsg.
8358 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
8359 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
8360 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
8361 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
8362 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
8363 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
8364 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
8365 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
8366
8367 2002-12-13 Paul Eggert <eggert@twinsun.com>
8368
8369 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
8370 is now u_int, not int.
8371 (struct XDR.x_handy): Now u_int, not int.
8372 * sunrpc/xdr_mem.c: Include <limits.h>.
8373 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
8374 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
8375 x_handy is now unsigned, not signed.
8376 Do not decrement x_handy if no change is made.
8377 (xdrmem_setpos): Check for int overflow.
8378 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
8379 (xdr_sizeof): Remove cast that is now unnecessary, now that
8380 x_handy is unsigned.
8381
8382 2002-12-15 Art Haas <ahaas@airmail.net>
8383
8384 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
8385 * iconvdata/gap.awk: Likewise.
8386 * iconvdata/gen-8bit-gap-1.sh: Likewise.
8387 * iconvdata/gen-8bit-gap.sh: Likewise.
8388 * locale/C-address.c: Likewise.
8389 * locale/C-collate.c: Likewise.
8390 * locale/C-ctype.c: Likewise.
8391 * locale/C-identification.c: Likewise.
8392 * locale/C-measurement.c: Likewise.
8393 * locale/C-messages.c: Likewise.
8394 * locale/C-monetary.c: Likewise.
8395 * locale/C-name.c: Likewise.
8396 * locale/C-numeric.c: Likewise.
8397 * locale/C-paper.c: Likewise.
8398 * locale/C-telephone.c: Likewise.
8399 * locale/C-time.c: Likewise.
8400 * nscd/connections.c: Likewise.
8401 * nscd/grpcache.c: Likewise.
8402 * nscd/hstcache.c: Likewise.
8403 * nscd/pwdcache.c: Likewise.
8404 * stdio-common/vfprintf.c: Likewise.
8405 * stdlib/random.c: Likewise.
8406 * sysdeps/generic/siglist.c: Likewise.
8407 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
8408 * sysdeps/ieee754/bits/nan.h: Likewise.
8409 * sysdeps/posix/sprofil.c: Likewise.
8410 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
8411 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
8412 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
8413
8414 2002-12-15 Roland McGrath <roland@redhat.com>
8415
8416 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
8417
8418 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
8419 <tls.h> here, no need for it.
8420 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
8421
8422 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
8423 parameter, not varargs parameter.
8424
8425 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
8426 argument so it's not an unused variable.
8427
8428 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
8429 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
8430 for users.
8431
8432 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
8433
8434 2002-12-15 Ulrich Drepper <drepper@redhat.com>
8435
8436 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
8437 original __libc_fcntl code. Just renamed.
8438
8439 2002-12-15 Andreas Schwab <schwab@suse.de>
8440
8441 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
8442
8443 2002-12-14 Olaf Hering <olh@suse.de>
8444
8445 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
8446 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
8447
8448 2002-12-15 Ulrich Drepper <drepper@redhat.com>
8449
8450 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
8451
8452 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
8453 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
8454
8455 * sysdeps/unix/sysv/linux/open64.c: New file.
8456
8457 * sysdeps/generic/pselect.c: Add support for cancellation handling.
8458 * sysdeps/posix/open64.c: Likewise.
8459 * sysdeps/posix/sigpause.c: Likewise.
8460 * sysdeps/posix/sigwait.c: Likewise.
8461 * sysdeps/posix/system.c: Likewise.
8462 * sysdeps/posix/waitid.c: Likewise.
8463 * sysdeps/unix/sysv/linux/accept.S: Likewise.
8464 * sysdeps/unix/sysv/linux/connect.S: Likewise.
8465 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
8466 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
8467 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
8468 * sysdeps/unix/sysv/linux/poll.c: Likewise.
8469 * sysdeps/unix/sysv/linux/pread.c: Likewise.
8470 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
8471 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
8472 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
8473 * sysdeps/unix/sysv/linux/readv.c: Likewise.
8474 * sysdeps/unix/sysv/linux/recv.S: Likewise.
8475 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
8476 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
8477 * sysdeps/unix/sysv/linux/send.S: Likewise.
8478 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
8479 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
8480 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
8481 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
8482 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
8483 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
8484 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
8485 * sysdeps/unix/sysv/linux/wait.c: Likewise.
8486 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
8487 * sysdeps/unix/sysv/linux/writev.c: Likewise.
8488 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
8489 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
8490
8491 2002-12-14 Jakub Jelinek <jakub@redhat.com>
8492
8493 * sysdeps/generic/sysdep-cancel.h: New file.
8494 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
8495 cancelable syscall.
8496 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
8497 recvmsg, send, sendmsg, sendto): Make cancelable.
8498 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
8499 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
8500 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
8501 sendto, osf_select): Likewise.
8502 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
8503 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
8504 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
8505 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
8506 sendto): Likewise.
8507 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
8508 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
8509 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
8510 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
8511 sendto): Likewise.
8512 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
8513 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
8514 sendto, select): Likewise.
8515 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
8516 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
8517 Likewise.
8518 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
8519 select, fcntl): Likewise.
8520 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
8521 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
8522 read, readv, select, sigsuspend, write, writev): Likewise.
8523
8524 2002-12-14 Jakub Jelinek <jakub@redhat.com>
8525
8526 * dirent/bug-readdir1.c: Include unistd.h.
8527
8528 2002-12-13 Jakub Jelinek <jakub@redhat.com>
8529
8530 * locale/programs/locale.c: Include locarchive.h.
8531 (ARCHIVE_NAME): Define.
8532 (write_archive_locales): New function.
8533 (write_locales): Use it. Ensure the same locale is not printed
8534 multiple times in verbose mode.
8535 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
8536 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
8537 functions.
8538 (struct nameent): New type.
8539 (nameentcmp): New function.
8540
8541 2002-12-14 Jakub Jelinek <jakub@redhat.com>
8542
8543 * posix/regex_internal.c (re_string_context_at): Guard wide char
8544 code with #ifdef RE_ENABLE_I18N.
8545
8546 2002-11-22 Paolo Bonzini <bonzini@gnu.org>
8547
8548 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
8549
8550 2002-12-13 Roland McGrath <roland@redhat.com>
8551
8552 * posix/bug-regex15.c: New file.
8553 * posix/Makefile (tests): Add it.
8554
8555 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
8556 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
8557
8558 2002-12-13 Ulrich Drepper <drepper@redhat.com>
8559
8560 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
8561
8562 * misc/syslog.c (log_cleanup): Don't use parameter in
8563 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
8564 pass NULL instead of a pointer to syslog_lock.
8565
8566 2002-12-12 Ulrich Drepper <drepper@redhat.com>
8567
8568 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
8569 linker map for all iconv modules.
8570 (distribute): Add gconv.map.
8571 * iconvdata/gconv.map: New file.
8572
8573 * elf/Makefile: Also check all iconv modules for text relocations.
8574
8575 * stdlib/Makefile: Remove code to automatically import GMP.
8576
8577 * elf/Makefile (tests): Add rules to build and run check-textrel.
8578 * elf/check-textrel.c: New file.
8579
8580 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
8581 directive.
8582
8583 2002-12-11 Jakub Jelinek <jakub@redhat.com>
8584
8585 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
8586 not st.st[am]time.
8587
8588 2002-04-30 Bruno Haible <bruno@clisp.org>
8589
8590 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
8591 the encoding if it already has slashes.
8592 Reported by Perry Rapp <prapp@erols.com>.
8593
8594 2002-12-11 Roland McGrath <roland@redhat.com>
8595
8596 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
8597 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
8598 Turn off PIC for compiling this file.
8599
8600 2002-12-11 Ulrich Drepper <drepper@redhat.com>
8601
8602 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
8603 definitions. Not needed.
8604 [_LIBC]: Use definitions from libc-lock.h instead of referencing
8605 pthread routines directly.
8606 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
8607 mutex_init calls.
8608 (arena_get2): Don't look at return value of mutex_lock.
8609
8610 2002-12-11 Roland McGrath <roland@redhat.com>
8611
8612 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
8613 elf-init.o instead of compiling a PIC version.
8614
8615 2002-12-11 Bruno Haible <bruno@clisp.org>
8616
8617 * intl/gettext.h: Renamed to ...
8618 * intl/gmo.h: ... here.
8619 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
8620 * intl/gettextP.h: Update.
8621 * intl/loadmsgcat.c: Update.
8622
8623 * intl/gettextP.h (PARAMS): Make more portable.
8624 (attribute_hidden): Define as empty macro if not already defined.
8625 * intl/hash-string.h (PARAMS): Make more portable.
8626 * intl/loadinfo.h (PARAMS): Likewise.
8627 * intl/plural-exp.h (PARAMS): Likewise.
8628 (attribute_hidden): Move definition near the definition of
8629 internal_function.
8630
8631 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
8632 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
8633
8634 2002-07-13 Bruno Haible <bruno@clisp.org>
8635
8636 * intl/dcigettext.c (freea): New macro.
8637 (FREE_BLOCKS): Free also the registered blocks.
8638 (DCIGETTEXT): Free the 'search' variable.
8639 Reported by Andreas Fischer <a.fischer@asentics.de>.
8640
8641 2002-04-27 Bruno Haible <bruno@clisp.org>
8642
8643 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
8644 * intl/dcigettext.c: Likewise.
8645 * intl/dcgettext.c: Likewise.
8646 * intl/dgettext.c: Likewise.
8647 * intl/gettext.c: Likewise.
8648 * intl/dcngettext.c: Likewise.
8649 * intl/dngettext.c: Likewise.
8650 * intl/ngettext.c: Likewise.
8651 * intl/textdomain.c: Likewise.
8652 * intl/bindtextdom.c: Likewise.
8653 * intl/plural-exp.h: Likewise.
8654
8655 2002-01-02 Bruno Haible <bruno@clisp.org>
8656
8657 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
8658
8659 2001-04-30 Bruno Haible <bruno@clisp.org>
8660
8661 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
8662 default macro definitions. Needed for mingw32.
8663
8664 2002-12-10 Ulrich Drepper <drepper@redhat.com>
8665
8666 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
8667 __builtin_constant_p to macro parameter.
8668
8669 * sysdeps/generic/sigpause.c: Define all functions as weak.
8670 * sysdeps/posix/sigpause.c: Likewise.
8671
8672 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
8673 type size_t.
8674
8675 2002-12-10 Jakub Jelinek <jakub@redhat.com>
8676
8677 * elf/tst-array1.c (preinit_array, init_array, fini_array):
8678 Explicitly align the array to sizeof (void *).
8679 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
8680
8681 * include/libc-symbols.h: Fix a comment typo.
8682
8683 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
8684 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
8685 Likewise.
8686 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
8687 Likewise.
8688 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
8689 (__libc_sigsuspend): Likewise.
8690 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
8691 (__libc_sigsuspend): Likewise.
8692 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
8693 (creat): New weak alias.
8694
8695 2002-12-10 Roland McGrath <roland@redhat.com>
8696
8697 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
8698 contributes a manual chapter.
8699 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
8700 around xref to it.
8701
8702 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
8703 and move contents to ...
8704 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
8705 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
8706 it instead of duplicating its contents.
8707 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
8708
8709 2002-12-09 Jakub Jelinek <jakub@redhat.com>
8710
8711 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
8712 defined.
8713 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
8714 function.
8715 (EXTRA_LD_ENVVARS): Use it.
8716 (DL_OSVERSION_INIT): Define.
8717 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
8718 dl-librecon.h.
8719 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
8720
8721 2002-12-10 Ulrich Drepper <drepper@redhat.com>
8722
8723 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
8724
8725 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
8726 call. It is not allowed to destroy pthread mutexes which are
8727 still in use even though it is safe for our implementations. If
8728 somebody still uses the descriptor it is a bug.
8729
8730 2002-12-09 Richard Henderson <rth@redhat.com>
8731
8732 * csu/abi-note.S: Use .p2align, not .align.
8733
8734 2002-12-09 Ulrich Drepper <drepper@redhat.com>
8735
8736 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
8737 __libc_select aliases.
8738
8739 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
8740 alias.
8741
8742 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
8743
8744 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
8745
8746 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
8747
8748 * sysdeps/unix/syscalls.list: Define __libc_select alias.
8749
8750 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
8751
8752 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
8753 __libc___xpg_sigpause aliases.
8754
8755 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
8756
8757 * misc/error.c: Remove use of USE_IN_LIBIO.
8758
8759 2002-12-08 Roland McGrath <roland@redhat.com>
8760
8761 * elf/Makefile (tests): Uncomment tst-array[123].
8762 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
8763 * csu/elf-init.c: New file.
8764 * csu/Makefile (routines, static-only-routines): Add elf-init.
8765 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
8766 and __libc_csu_fini in place of _fini.
8767 * sysdeps/arm/elf/start.S: Likewise.
8768 * sysdeps/cris/elf/start.S: Likewise.
8769 * sysdeps/hppa/elf/start.S: Likewise.
8770 * sysdeps/i386/elf/start.S: Likewise.
8771 * sysdeps/ia64/elf/start.S: Likewise.
8772 * sysdeps/m68k/elf/start.S: Likewise.
8773 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
8774 * sysdeps/mips/elf/start.S: Likewise.
8775 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
8776 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
8777 * sysdeps/s390/s390-32/elf/start.S: Likewise.
8778 * sysdeps/s390/s390-64/elf/start.S: Likewise.
8779 * sysdeps/sh/elf/start.S: Likewise.
8780 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
8781 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8782 * sysdeps/x86_64/elf/start.S: Likewise.
8783
8784 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
8785 struct containing function ptr and value, free it.
8786 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
8787 It's not safe to let the new thread use the SIGEV pointer.
8788
8789 2001-10-20 Paul Eggert <eggert@twinsun.com>
8790
8791 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
8792 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
8793 Use strerror_r that is only a macro, even if it is not a function.
8794 (strerror): Check for HAVE_DECL_STRERROR before declaring.
8795 (private_strerror): Use prototypes, not old-style function definition.
8796 (print_errno_message): New function.
8797 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
8798 char*-flavored one.
8799 (error_tail, error, error_at_line): Use it.
8800
8801 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
8802
8803 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
8804
8805 2002-12-08 Ulrich Drepper <drepper@redhat.com>
8806
8807 * scripts/output-format.sed: Fix bug in one of the s expressions
8808 which used / for one too many things.
8809
8810 * include/unistd.h: Declare __libc_close.
8811
8812 2002-12-07 Ulrich Drepper <drepper@redhat.com>
8813
8814 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
8815
8816 2002-12-07 Roland McGrath <roland@redhat.com>
8817
8818 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
8819 from 2002-12-06, but remove unnecessary memset call without removing
8820 necessary copy of initialization image.
8821
8822 * Makerules ($(common-objpfx)format.lds): New target.
8823 (common-generated): Add it.
8824 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
8825 * scripts/output-format.sed: New file.
8826 * Makefile (distribute): Add it.
8827
8828 2002-12-07 Ulrich Drepper <drepper@redhat.com>
8829
8830 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
8831 Reported by Art Haas <ahaas@airmail.net>.
8832
8833 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
8834
8835 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
8836
8837 2002-12-07 Jakub Jelinek <jakub@redhat.com>
8838
8839 * string/test-strncpy.c (do_random_tests): Improve test coverage.
8840
8841 2002-12-06 Ulrich Drepper <drepper@redhat.com>
8842
8843 * test-skeleton.c (timeout_handler): Allow expected signal to be
8844 SIGALRM.
8845
8846 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
8847
8848 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
8849
8850 2002-12-07 Jakub Jelinek <jakub@redhat.com>
8851
8852 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
8853 (SYSCALL_ERROR_HANDLER): Fix a pasto.
8854 Reported by Jeff Bailey <jbailey@nisa.net>.
8855
8856 2002-12-06 Ulrich Drepper <drepper@redhat.com>
8857
8858 * sysdeps/generic/libc-tls.c: Undo last patch.
8859
8860 * include/wctype.h: Define iswalnum with libc_hidden_proto.
8861
8862 * include/signal.h: Define raise with libc_hidden_proto.
8863
8864 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
8865 __execve instead of snprintf and execve.
8866
8867 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
8868 again a bit.
8869
8870 2002-12-06 Jakub Jelinek <jakub@redhat.com>
8871
8872 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
8873 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
8874
8875 2002-12-06 Ulrich Drepper <drepper@redhat.com>
8876
8877 * misc/syslog.c (log_cleanup): New function.
8878 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
8879 (closelog): Likewise.
8880
8881 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
8882 * elf/dl-iteratephdr.c: Likewise.
8883 * elf/dl-lookup.c: Likewise.
8884 * elf/dl-misc.c: Likewise.
8885 * elf/dl-open.c: Likewise.
8886 * elf/dl-support.c: Likewise.
8887 * elf/rtld.c: Likewise.
8888 * sysdeps/generic/ldsodefs.h: Likewise.
8889 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
8890 * sysdeps/mach/bits/libc-lock.h: Likewise.
8891 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
8892
8893 2002-12-06 Roland McGrath <roland@redhat.com>
8894
8895 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
8896
8897 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
8898 (malloc_starter, memalign_starter, free_starter): Don't define these.
8899 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
8900 Don't declare them either.
8901 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
8902 __pthread_initialize, so no need to set hooks to *_starter.
8903 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
8904 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
8905 (__libc_malloc_pthread_startup): New function.
8906 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
8907
8908 * malloc/hooks.c (memalign_starter): New function.
8909 * malloc/malloc.c: Declare it.
8910 * malloc/arena.c (save_memalign_hook): New variable.
8911 (ptmalloc_init): Set __memalign_hook to memalign_starter.
8912
8913 * elf/dl-minimal.c (free): Clear the memory.
8914 (calloc): Just call malloc, knowing all memory it returns is cleared.
8915
8916 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
8917 malloc and memset; calloc can avoid the zeroing when redundant.
8918 (_dl_tls_setup): Likewise.
8919 * elf/dl-load.c (decompose_rpath): Likewise.
8920 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
8921 call, since memory from sbrk at startup is already zero.
8922
8923 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
8924 error string for failure, null for success. Update callers.
8925 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
8926 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
8927
8928 2002-12-05 Jakub Jelinek <jakub@redhat.com>
8929
8930 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
8931 args to i:iipi.
8932 (readahead): Change args to i:iii.
8933 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
8934 Change args to i:iii.
8935 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
8936 args to i:iiii.
8937
8938 2002-12-05 Roland McGrath <roland@redhat.com>
8939
8940 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
8941 call all functions rather than none.
8942 Reported by Mark P. Mitchell <mark@codesourcery.com>.
8943
8944 2002-12-04 Roland McGrath <roland@redhat.com>
8945
8946 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
8947 on _nl_current_LC_* variables.
8948
8949 2002-12-05 Ulrich Drepper <drepper@redhat.com>
8950
8951 * dirent/bug-readdir1.c (main): Don't call closedir, just close
8952 the file descriptor. This is testing what the bug report was about.
8953
8954 2002-12-04 Ulrich Drepper <drepper@redhat.com>
8955
8956 * po/be.po: New file.
8957
8958 * argp/Makefile (tests): Add tst-argp1.
8959
8960 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
8961 Change type of _attribute to void*.
8962 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
8963 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
8964 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
8965 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
8966 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
8967
8968 2002-12-04 Roland McGrath <roland@redhat.com>
8969
8970 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
8971 members to the end, so a libpthread compiled with !USE_TLS will still
8972 find other members properly.
8973
8974 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
8975 operand for DEST memory. Fix dummy input operand to use SRC.
8976 Reported by Davin McCall <davmac@ozonline.com.au>.
8977
8978 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
8979 alignment when initializing the DTV entry.
8980
8981 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
8982 when TLS has not been set up, try to set it up if we can.
8983 * elf/tst-tls4.c: Revert last change.
8984 * elf/tst-tls5.c: Likewise.
8985 * elf/tst-tls6.c: Likewise.
8986 * elf/tst-tls7.c: Likewise.
8987 * elf/tst-tls8.c: Likewise.
8988 * elf/tst-tls9.c: Likewise.
8989
8990 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
8991 * sysdeps/generic/ldsodefs.h: Declare it.
8992 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
8993 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
8994 function, broken out of __libc_setup_tls.
8995 (init_static_tls): Likewise.
8996 (__libc_setup_tls): Call them.
8997 (_dl_tls_setup): New function, uses new subroutines.
8998
8999 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
9000 Clear the pointer when returning true.
9001 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
9002 first element of the slotinfo list too.
9003
9004 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
9005 [SHARED].
9006
9007 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
9008 (_dl_determine_tlsoffset): Likewise.
9009
9010 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
9011 startup_error_tsd, made global.
9012 (dl_main): Update initialization.
9013 * elf/dl-tsd.c: Likewise.
9014 * sysdeps/generic/ldsodefs.h: Declare it.
9015
9016 2002-12-03 Ulrich Drepper <drepper@redhat.com>
9017
9018 * manual/texinfo.tex: Update from latest upstream version.
9019
9020 2002-12-03 Roland McGrath <roland@redhat.com>
9021
9022 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
9023 area surplus in calculation for sbrk call.
9024
9025 * iconvdata/cp1125.c: New file.
9026 * iconvdata/Makefile (distribute): Add it.
9027 (modules): Add CP1125.
9028 (gen-8bit-gap-modules): Add cp1125.
9029 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
9030 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
9031
9032 2002-12-03 Andreas Jaeger <aj@suse.de>
9033
9034 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
9035
9036 2002-12-03 Ulrich Drepper <drepper@redhat.com>
9037
9038 * sysdeps/posix/system.c (do_system): Make signal handler
9039 installation thread safe.
9040
9041 2002-12-02 Roland McGrath <roland@redhat.com>
9042
9043 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
9044 caller from EXTRA to -.
9045 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
9046 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
9047 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
9048
9049 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
9050
9051 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
9052 bits of RM are cleared.
9053
9054 2002-12-02 Roland McGrath <roland@redhat.com>
9055
9056 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
9057 TLS setup is required.
9058 * elf/tst-tls5.c: Likewise.
9059 * elf/tst-tls6.c: Likewise.
9060 * elf/tst-tls7.c: Likewise.
9061 * elf/tst-tls8.c: Likewise.
9062 * elf/tst-tls9.c: Likewise.
9063
9064 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
9065 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
9066 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
9067 for being null before calling free_slotinfo.
9068 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
9069 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
9070
9071 2002-11-30 Bruno Haible <bruno@clisp.org>
9072
9073 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
9074 (struct __gconv_step): New field __btowc_fct.
9075 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
9076 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
9077 __BUILTIN_TRANS.
9078 (__gconv_btwoc_ascii): New declaration.
9079 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
9080 (__gconv_btwoc_ascii): New function.
9081 * iconv/gconv_builtin.h: Add BtowcFct argument to all
9082 BUILTIN_TRANSFORMATION invocations.
9083 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
9084 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
9085 * iconv/gconv_builtin.c (map): New field btowc_fct.
9086 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
9087 btowc_fct field.
9088 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
9089 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
9090 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
9091 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
9092 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
9093 (gconv_init): Initialize __btowc_fct field.
9094 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
9095 * iconv/loop.c: Document ONEBYTE_BODY.
9096 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
9097 Undefine ONEBYTE_BODY at the end.
9098 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
9099 * iconvdata/8bit-gap.c (NONNUL): New macro.
9100 (BODY for FROM_LOOP): Use it.
9101 (ONEBYTE_BODY): New macro.
9102 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
9103 (NONNUL): New macro.
9104 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
9105 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
9106 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
9107 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
9108 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
9109 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
9110 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
9111 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
9112 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
9113 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
9114 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
9115 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
9116 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
9117 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
9118 * iconvdata/ibm932.c: Include <stdbool.h>.
9119 (TRUE, FALSE): Remove macros.
9120 (BODY for FROM_LOOP): Remove unused variable rp1.
9121 (ONEBYTE_BODY): New macro.
9122 (BODY for TO_LOOP): Use bool.
9123 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
9124 * iconvdata/ibm943.c: Include <stdbool.h>.
9125 (TRUE, FALSE): Remove macros.
9126 (BODY for FROM_LOOP): Remove unused variable rp1.
9127 (ONEBYTE_BODY): New macro.
9128 (BODY for TO_LOOP): Use bool.
9129 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
9130 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
9131 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
9132 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
9133 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
9134 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
9135 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
9136 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
9137 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
9138 * iconvdata/gbbig5.c: Tweak comment.
9139
9140 2002-12-02 Ulrich Drepper <drepper@redhat.com>
9141
9142 * po/fi.po: Update from translation team.
9143
9144 2002-12-01 Roland McGrath <roland@redhat.com>
9145
9146 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
9147 testing getdents64 return value.
9148
9149 * scripts/versions.awk: Don't pass -n flag to sort command.
9150
9151 * posix/bug-regex13.c: Include <string.h>.
9152
9153 * sysdeps/generic/libc-start.c (__libc_start_main): Do
9154 DL_SYSDEP_OSCHECK here.
9155 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
9156 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
9157
9158 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
9159 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
9160
9161 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
9162 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
9163
9164 * include/link.h: Comment typo fix.
9165
9166 2002-12-01 Roland McGrath <roland@frob.com>
9167
9168 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
9169 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
9170 _POSIX_MEMORY_PROTECTION): Likewise.
9171 (_POSIX_POLL, _POSIX_SELECT): Removed.
9172
9173 2002-11-28 Ulrich Drepper <drepper@redhat.com>
9174
9175 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
9176 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
9177
9178 2002-11-28 Jakub Jelinek <jakub@redhat.com>
9179
9180 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
9181 USE___THREAD.
9182 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
9183 "=v" constraints.
9184
9185 2002-11-28 Ulrich Drepper <drepper@redhat.com>
9186
9187 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
9188 branch prediction buffers by using unpaired call/ret.
9189
9190 2002-11-27 Ulrich Drepper <drepper@redhat.com>
9191
9192 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
9193 first parameters constraint string.
9194 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
9195
9196 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
9197
9198 * posix/regcomp.c (parse_expression): Set the bit since the back
9199 reference is used in the regular expression.
9200 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
9201 of malloc failure.
9202 (re_node_set_init_copy): Likewise.
9203 * posix/regex_internal.h (state_array_t): New structure.
9204 (re_sub_match_last_t): Likewise.
9205 (re_sub_match_top_t): Likewise.
9206 (re_match_context_t): Add new members.
9207 (re_dfa_t): Likewise.
9208 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
9209 to check the matching is really correct, and retry if failed.
9210 Move the routin pruning the impossible nodes from here, ...
9211 (prune_impossible_nodes): To this function.
9212 (check_matching): Invoke check_subexp_matching_top, and replace
9213 redundant checking with transit_state_bkref invocation.
9214 (proceed_next_node): Replace strncmp with memcmp. Reported by
9215 Paolo Bonzini <bonzini@gnu.org>.
9216 (update_cur_sifted_state): Remove search_subexp invocation.
9217 (search_subexp): Remove this function.
9218 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
9219 optimization.
9220 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
9221 Remove unused invocation of match_ctx_add_entry.
9222 (transit_state): Invoke check_subexp_matching_top.
9223 (check_subexp_matching_top): New function.
9224 (transit_state_bkref): Remove unused array.
9225 Merge transit_state_bkref_loop.
9226 (transit_state_bkref_loop): Use get_subexp instead of
9227 sift_states_backward. Use search_cur_bkref_entry for optimization.
9228 Merge this function to transit_state_bkref.
9229 (get_subexp): New function.
9230 (get_subexp_sub): Likewise.
9231 (find_subexp_node): Likewise.
9232 (check_arrival): Likewise.
9233 (check_arrival_expand_ecl): Likewise.
9234 (check_arrival_expand_ecl_sub): Likewise.
9235 (expand_bkref_cache): Likewise.
9236 (match_ctx_init): Initialize new members.
9237 (match_ctx_clean): New function.
9238 (match_ctx_free): Release new members.
9239 (match_ctx_free_subtops): New function.
9240 (match_ctx_add_entry): Fix indent.
9241 (search_cur_bkref_entry): New function.
9242 (match_ctx_add_subtop): Likewise.
9243 (match_ctx_add_sublast): Likewise.
9244
9245 2002-11-25 Ulrich Drepper <drepper@redhat.com>
9246
9247 * iconv/Makefile (tests): Remove tst-iconv4.c
9248 * iconv/tst-iconv4.c: Moved to...
9249 * iconvdata/tst-iconv4.c: ...here. New file.
9250 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
9251
9252 2002-11-25 Roland McGrath <roland@redhat.com>
9253
9254 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
9255 Grok AF_LINK if defined.
9256 From Momchil Velikov <velco@fadata.bg>.
9257
9258 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
9259 brdaddr, or dstaddr, just set those pointers to null and don't fail.
9260 Reported by Momchil Velikov <velco@fadata.bg>.
9261
9262 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
9263 is > sizeof IFR->ifa_addr, advance past the whole longer length.
9264 (__ifreq): Count up NIFS that way too.
9265 Reported by Momchil Velikov <velco@fadata.bg>.
9266
9267 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
9268
9269 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
9270 and <fpu_control.h>.
9271
9272 2002-11-24 Ulrich Drepper <drepper@redhat.com>
9273
9274 * elf/elf.h (EM_ST19): Fix typo.
9275
9276 2002-11-25 Jakub Jelinek <jakub@redhat.com>
9277
9278 * include/errno.h (__set_errno): Define as errno = val
9279 unconditionally.
9280
9281 2002-11-24 Roland McGrath <roland@redhat.com>
9282
9283 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
9284 * sysdeps/posix/writev.c: Likewise.
9285 From Momchil Velikov <velco@fadata.bg>.
9286
9287 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
9288 calling *GL(dl_error_catch_tsd) for a thread-local location.
9289 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
9290 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
9291 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
9292
9293 * libio/iofflush.c: Add libc_hidden_def.
9294 * libio/iofwrite.c: Likewise.
9295 * sysdeps/generic/sigtimedwait.c: Likewise.
9296 * sysdeps/generic/sigwaitinfo.c: Likewise.
9297 * sysdeps/posix/sigwait.c: Likewise.
9298 Reported by Momchil Velikov <velco@fadata.bg>.
9299
9300 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
9301 to match <arpa/inet.h> declaration.
9302 * inet/inet_netof.c (inet_netof): Likewise.
9303 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
9304 Reported by Momchil Velikov <velco@fadata.bg>.
9305
9306 * configure.in: Skip AUTOCONF check under --without-cvs.
9307 * configure: Regenerated.
9308
9309 * posix/Makefile (headers): Add bits/pthreadtypes.h.
9310 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
9311 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
9312
9313 2002-11-24 Andreas Schwab <schwab@suse.de>
9314
9315 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
9316 with six arguments.
9317
9318 2002-11-19 Jim Meyering <jim@meyering.net>
9319
9320 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
9321 as `static'.
9322 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
9323
9324 2002-11-23 Roland McGrath <roland@redhat.com>
9325
9326 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
9327 Just produce hex output for datum sizes.
9328
9329 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
9330 Reported by Luca Barbieri <ldb@ldb.ods.org>.
9331
9332 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
9333
9334 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
9335 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
9336 and __unused3 fields.
9337 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
9338 [__WORDSIZE == 32]: Only PPC32 requires __unused1
9339 and __unused2 fields.
9340 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
9341 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
9342 __unused3, and __unused4 fields.
9343
9344 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
9345 obtain lowest address for profiling in __monstartup call.
9346
9347 2002-11-21 Roland McGrath <roland@redhat.com>
9348
9349 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
9350 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
9351
9352 * locale/localeinfo.h (struct locale_data): Revert last change.
9353
9354 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
9355 From Ian Wienand <ianw@gelato.unsw.edu.au>.
9356
9357 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
9358 __NR_pread64 if not defined.
9359 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
9360 From Ian Wienand <ianw@gelato.unsw.edu.au>.
9361
9362 2002-11-21 Roland McGrath <roland@frob.com>
9363
9364 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
9365 __libc_multiple_libcs here. Call __setfpucw.
9366
9367 2002-11-21 Ulrich Drepper <drepper@redhat.com>
9368
9369 * elf/Makefile (tests): Don't run test-arrayX tests for now.
9370
9371 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
9372 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
9373 CLONE_CHILD_*TID flags.
9374
9375 2002-11-20 Andreas Jaeger <aj@suse.de>
9376
9377 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
9378 We pass struct ucontext on x86-64.
9379 (GET_PC): Adjust.
9380 (GET_FRAME): Adjust.
9381 (GET_STACK): Adjust.
9382
9383 2002-11-20 Roland McGrath <roland@redhat.com>
9384
9385 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
9386 conditionalize [! DO_VERSIONING] #error.
9387
9388 * scripts/abilist.awk: Grok function descriptor symbols.
9389
9390 * intl/tst-gettext.c (main): Check return values from setlocale.
9391 Add necessary unsetenv's to make LANG=existing-locale check work.
9392
9393 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
9394 so aborted prior runs don't confuse things.
9395
9396 * locale/localeinfo.h (struct locale_data: union locale_data_value):
9397 Use uintptr_t instead of unsigned int for `word' member.
9398 (_NL_CURRENT_WORD): Cast to uint32_t.
9399
9400 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
9401 value.
9402
9403 2002-11-20 Ulrich Drepper <drepper@redhat.com>
9404
9405 * elf/tls-macros.h: Add IA-64 definitions.
9406 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
9407
9408 * iconv/Makefile (tests): Add tst-iconv4.
9409 * iconv/tst-iconv4.c: New file.
9410
9411 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
9412 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
9413 __GCONV_INCOMPLETE_INPUT.
9414 (ucs4le_internal_loop): Likewise.
9415 (ucs4le_internal_loop_unaligned): Likewise.
9416 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
9417 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
9418 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
9419
9420 * iconv/loop.c (LOOPFCT): First test for empty input then for full
9421 output buffer.
9422
9423 * inet/getnameinfo.c: Use extend_alloca where appropriate.
9424 * sysdeps/posix/getaddrinfo.c: Likewise.
9425
9426 * include/alloca.h (extend_alloca): New define. Based on stack
9427 direction it'll try to append to the previouls allocated buffer.
9428
9429 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
9430
9431 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
9432 use the same service for AF_INET and AF_INET6.
9433
9434 2002-11-19 Ulrich Drepper <drepper@redhat.com>
9435
9436 * intl/localealias.c (read_alias_file): Use only about 400 bytes
9437 of stack space instead of 16k.
9438
9439 2002-11-18 Wolfram Gloger <wg@malloc.de>
9440
9441 * malloc/arena.c
9442 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
9443 nothing if not initialized. Bug report from Marcus Brinkmann
9444 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
9445
9446 2002-11-19 Roland McGrath <roland@redhat.com>
9447
9448 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
9449 sched_setaffinity.
9450
9451 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
9452 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
9453 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
9454 * configure: Regenerated.
9455
9456 2002-11-19 Ulrich Drepper <drepper@redhat.com>
9457
9458 * include/dlfcn.h: __libc_dlopen is now a macro calling
9459 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
9460 (__libc_dlopen_mode): New prototype.
9461 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
9462 new parameter. Store new parameter in mode field of structure passed
9463 to do_dlopen.
9464 (struct do_dlopen_args): Add new field mode.
9465 (do_dlopen): Pass mode from parameter structure to _dl_open.
9466
9467 2002-11-11 Randolf Chung <tausq@debian.org>
9468
9469 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
9470 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
9471 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
9472
9473 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
9474
9475 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
9476 Set -mdisable-fpregs for this file.
9477
9478 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
9479
9480 * sysdeps/unix/sysv/linux/configure.in:
9481 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
9482 from gcc-3.0 era for backwards compatibility.
9483 * sysdeps/unix/sysv/linux/configure: Regenerate.
9484
9485 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
9486 Define mcontext_t as a sigcontext.
9487
9488 2002-11-18 Roland McGrath <roland@redhat.com>
9489
9490 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
9491 Free memory in `last_result' if it was used.
9492
9493 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
9494 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
9495 Do the parsing inline instead of copying strings and calling
9496 inet_network, and properly skip all alias names not matching the form.
9497
9498 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
9499
9500 2002-11-17 Ulrich Drepper <drepper@redhat.com>
9501
9502 * manual/pattern.texi (Wordexp Example): Fix sample code.
9503
9504 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
9505 childs stack which will be loaded into the %esi register.
9506
9507 2002-11-14 Paul Eggert <eggert@twinsun.com>
9508
9509 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
9510 overflow when skipping the question part and when unpacking aliases.
9511
9512 2002-11-15 Roland McGrath <roland@redhat.com>
9513
9514 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
9515 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
9516 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
9517
9518 2002-11-15 Jakub Jelinek <jakub@redhat.com>
9519
9520 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
9521 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
9522
9523 2002-11-15 Roland McGrath <roland@redhat.com>
9524
9525 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
9526 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
9527 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
9528 (+make-include-of-dep): New canned sequence.
9529
9530 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
9531 From Dmitry V. Levin <ldv@altlinux.org>.
9532
9533 2002-11-14 Roland McGrath <roland@redhat.com>
9534
9535 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
9536 * inet/herrno.c (__libc_h_errno): Likewise.
9537 * resolv/res_libc.c (__libc_res): Likewise.
9538 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
9539 (__res_state) [! USE___THREAD]: Don't define as weak.
9540 * csu/Versions: Revert last change.
9541 * resolv/Versions: Revert last change.
9542
9543 * Makerules ($(common-objpfx)%.make): New pattern rule.
9544 * tls.make.c: New file.
9545 * Makefile (distribute): Add it.
9546
9547 * sysdeps/generic/errno.c [! USE___THREAD]
9548 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
9549 with compat_symbol so they are not link-time visible.
9550 [! USE___THREAD] (__libc_errno): New alias for errno.
9551 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
9552 Add __libc_errno here.
9553 * inet/herrno.c [USE___THREAD]: Use this conditional
9554 in place of [USE_TLS && HAVE___THREAD].
9555 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
9556 (h_errno, _h_errno): Declare these with compat_symbol so they are not
9557 link-time visible.
9558 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
9559 * resolv/res_libc.c [! USE___THREAD]
9560 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
9561 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
9562 (__libc_res): Define as alias for _res.
9563 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
9564 Add __libc_h_errno and __libc_res here.
9565
9566 2002-11-14 Jakub Jelinek <jakub@redhat.com>
9567
9568 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
9569 * resolv/Versions (h_errno, _res): Likewise.
9570
9571 2002-11-14 Roland McGrath <roland@redhat.com>
9572
9573 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
9574 (%.symlist): Likewise.
9575
9576 2002-11-13 Roland McGrath <roland@redhat.com>
9577
9578 * scripts/abilist.awk: New file.
9579 * Makefile (distribute): Add it.
9580 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
9581 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
9582 [$(subdir) = elf] (tests): Depend on libc.symlist.
9583 (generated, common-generated): Add those files.
9584
9585 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
9586 * configure: Regenerated.
9587 * config.make.in (OBJDUMP): New variable, substituted by configure.
9588
9589 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
9590 (mallochook, reallochook): Set them up.
9591 (checkhdr): Check HDR->magic2 value.
9592 (freehook): Reset HDR->magic2.
9593 (memalignhook): New static function.
9594 (old_memalign_hook): New static variable.
9595 (mcheck, reallochook): Set __memalign_hook to memalignhook.
9596
9597 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
9598 for the new TCB.
9599
9600 2002-11-13 Andreas Jaeger <aj@suse.de>
9601
9602 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
9603 attribute.
9604 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9605
9606 2002-11-11 Paul Eggert <eggert@twinsun.com>
9607
9608 * manual/crypt.texi (Cryptographic Functions): Mention that
9609 the MD5 one-way algorithm is compatible with BSD's.
9610
9611 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
9612
9613 * posix/regex_internal.c (re_string_skip_chars): Also return the last
9614 wide character.
9615 (re_string_reconstruct): Calculate the context by itself when the
9616 offset points out of the valid range.
9617 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
9618 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
9619 (IS_WIDE_WORD_CHAR): New macro.
9620 (IS_WIDE_NEWLINE): New macro.
9621
9622 2002-11-12 Andreas Jaeger <aj@suse.de>
9623
9624 * sysdeps/x86_64/strchr.S: Don't use one register for two
9625 purposes, this fixes a bug noticed by test-strchr.c.
9626
9627 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
9628 correctly.
9629
9630 2002-11-12 Roland McGrath <roland@redhat.com>
9631
9632 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
9633 (_G_IO_NO_BACKWARD_COMPAT): Define it.
9634
9635 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
9636 instead of <pt-machine.h>.
9637 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
9638 testandset.
9639 From Ian Wienand <ianw@gelato.unsw.edu.au>.
9640
9641 2002-11-10 Roland McGrath <roland@redhat.com>
9642
9643 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
9644 Call fputs instead of fwprintf (simpler to follow in debugger).
9645
9646 * crypt/md5-crypt.c: Doc fix.
9647
9648 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
9649 the beginning of generated target commands.
9650
9651 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
9652 dependencies for these in case implicit rule search skipped the
9653 nonexistent source directory.
9654 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
9655 files with $(object-suffixes) as targets too.
9656 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
9657 and a target for it using $(make-target-directory).
9658
9659 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
9660
9661 2002-11-10 Roland McGrath <roland@frob.com>
9662
9663 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
9664 * sysdeps/generic/bits/pthreadtypes.h: ... here.
9665
9666 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
9667 l_start == 0 and l_len == 1 as we do l_len == 0.
9668
9669 2002-11-10 Ulrich Drepper <drepper@redhat.com>
9670
9671 * po/da.po: Update from translation team.
9672
9673 2002-11-10 Roland McGrath <roland@redhat.com>
9674
9675 * config.make.in (includedir): New variable, substituted by configure.
9676 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
9677 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
9678
9679 2002-11-10 Andreas Jaeger <aj@suse.de>
9680
9681 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
9682 REG_OLDMASK and REG_CR2 to synch with kernel header.
9683 (NGREG): Increase.
9684
9685 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
9686 aliasing problem.
9687 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
9688 * nss/getnssent_r.c (__nss_getent_r): Likewise.
9689 (__nss_setent): Likewise.
9690 (__nss_getent_r): Likewise.
9691 * inet/getnetgrent_r.c (innetgr): Likewise.
9692 (__internal_setnetgrent_reuse): Likewise.
9693 (internal_getnetgrent_r): Likewise.
9694 * inet/ether_hton.c (ether_hostton): Likewise.
9695 * inet/ether_ntoh.c (ether_ntohost): Likewise.
9696 * sunrpc/netname.c (netname2user): Likewise.
9697 * sunrpc/publickey.c (getpublickey): Likewise.
9698 (getsecretkey): Likewise.
9699
9700 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
9701
9702 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
9703 error in range calculation.
9704
9705 2002-10-09 Jakub Jelinek <jakub@redhat.com>
9706
9707 * string/test-strspn.c (do_test): Ensure zero termination.
9708 * string/test-strpbrk.c (do_test): Likewise.
9709 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
9710 * string/test-strncpy.c (stupid_strncpy): Likewise.
9711 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
9712
9713 2002-10-08 Roland McGrath <roland@redhat.com>
9714
9715 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
9716 nonzero characters.
9717
9718 2002-09-22 H.J. Lu <hjl@gnu.org>
9719
9720 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
9721 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
9722 only if __NR_mmap2 is defined.
9723
9724 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
9725 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
9726 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
9727 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
9728
9729 2002-11-08 Jakub Jelinek <jakub@redhat.com>
9730
9731 * posix/bug-regex13.c (tests): Add new test.
9732
9733 * string/test-strchr.c (stupid_strchr): New function.
9734 (do_random_tests): Make sure the string is zero terminated.
9735 * string/test-strpbrk.c (stupid_strpbrk): New function.
9736 (do_random_tests): Make sure the string is zero terminated.
9737 * string/test-strcmp.c (stupid_strcmp): New function.
9738 (do_random_tests): Make sure the strings are zero terminated.
9739 * string/test-strspn.c (stupid_strspn): New function.
9740 (simple_strspn): Rename rej argument to acc.
9741 (do_random_tests): Make sure the string is zero terminated.
9742 * string/test-strcspn.c (stupid_strcspn): New function.
9743 * string/test-strncpy.c (stupid_strncpy): New function.
9744 * string/test-stpncpy.c (stupid_stpncpy): New function.
9745 * string/test-strncmp.c (stupid_strncmp): New function.
9746 (do_random_tests): Make sure the strings are zero terminated.
9747 * string/test-string.h (impl_t): Change test into long.
9748 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
9749
9750 2002-11-08 Roland McGrath <roland@redhat.com>
9751
9752 * sysdeps/ia64/elf/configure.in: Add TLS check.
9753 From Ian Wienand <ianw@cse.unsw.edu.au>.
9754 * sysdeps/ia64/elf/configure: Regenerated.
9755
9756 2002-11-07 Roland McGrath <roland@redhat.com>
9757
9758 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
9759 place of _IO_new_do_write.
9760 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
9761 #undef before versioned_symbol use.
9762
9763 2002-11-07 Richard Henderson <rth@redhat.com>
9764
9765 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
9766 * configure: Regenerated.
9767 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
9768 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
9769 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
9770 _dl_fini via gp-relative relocations.
9771 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
9772
9773 * elf/tls-macros.h: Add alpha versions.
9774 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
9775 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
9776 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
9777 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
9778 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
9779 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
9780 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
9781 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
9782 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
9783 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
9784 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
9785 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
9786 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
9787 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
9788 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
9789 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
9790 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
9791 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
9792
9793 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
9794 Kill argument registers across the inline syscall.
9795
9796 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
9797
9798 * linuxthreads/sysdeps/alpha/tls.h: New file.
9799 * sysdeps/alpha/dl-tls.h: New file.
9800
9801 2002-10-29 David Mosberger <davidm@hpl.hp.com>
9802
9803 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
9804 (gmon_initializer): New function.
9805 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
9806 __gmon_start__ here. Call it from gmon_initializer() instead.
9807
9808 2002-03-12 H.J. Lu <hjl@gnu.org>
9809
9810 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
9811 tst-array2, and tst-array3.
9812 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
9813 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
9814 ($(objpfx)tst-array1.out): New target.
9815 ($(objpfx)tst-array2): Likewise.
9816 ($(objpfx)tst-array2.out): Likewise.
9817 ($(objpfx)tst-array3.out): Likewise.
9818 * elf/tst-array1.c: New file.
9819 * elf/tst-array1.exp: Likewise.
9820 * elf/tst-array2.c: Likewise.
9821 * elf/tst-array2dep.c: Likewise.
9822 * elf/tst-array2.exp: Likewise.
9823 * elf/tst-array3.c: Likewise.
9824
9825 2002-10-28 David Mosberger <davidm@hpl.hp.com>
9826
9827 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
9828 Don't add L->l_addr to array entry values.
9829
9830 2002-11-07 Jakub Jelinek <jakub@redhat.com>
9831
9832 * string/test-string.h: New file.
9833 * string/test-strlen.c: New file.
9834 * string/test-string.h: New file.
9835 * string/test-strcmp.c: New file.
9836 * string/test-strchr.c: New file.
9837 * string/test-strrchr.c: New file.
9838 * string/test-strcpy.c: New file.
9839 * string/test-stpcpy.c: New file.
9840 * string/test-strncpy.c: New file.
9841 * string/test-stpncpy.c: New file.
9842 * string/test-strpbrk.c: New file.
9843 * string/test-strcspn.c: New file.
9844 * string/test-strspn.c: New file.
9845 * string/test-strcat.c: New file.
9846 * string/test-strncmp.c: New file.
9847 * string/test-memchr.c: New file.
9848 * string/test-memcmp.c: New file.
9849 * string/test-memset.c: New file.
9850 * string/test-memcpy.c: New file.
9851 * string/test-mempcpy.c: New file.
9852 * string/test-memmove.c: New file.
9853 * string/Makefile (strop-tests): New variable.
9854 (tests): Add strop-tests.
9855 (distribute): Add test-string.h.
9856
9857 2002-11-06 Ulrich Drepper <drepper@redhat.com>
9858
9859 * posix/regcomp.c: Use tabs instead of spaces.
9860 * posix/regexec.c: Likewise.
9861 * posix/regex_internal.h: Likewise.
9862
9863 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
9864
9865 2002-11-06 Jakub Jelinek <jakub@redhat.com>
9866
9867 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
9868 here.
9869 (regcomp): Don't set can_be_null here.
9870 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
9871 (re_compile_internal): Clear can_be_null, set regs_allocated.
9872
9873 * posix/regcomp.c (re_set_fastmap): New function.
9874 (re_compile_fastmap_iter): Use it. Remove redundant type ==
9875 COMPLEX_BRACKET check.
9876 * posix/regexec.c (re_search_internal): Optimize searching with
9877 fastmap. Call re_string_reconstruct even if match_first is
9878 smaller than raw_mbs_idx.
9879
9880 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
9881
9882 * posix/regcomp (free_dfa_content): Use free_state.
9883 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
9884 pointers in case that realloc failed.
9885 (re_node_set_merge): Likewise.
9886 (register_state): Likewise.
9887 (create_newstate_common): Invoke memory release functions in case of
9888 error conditions.
9889 (create_ci_newstate): Likewise.
9890 (create_cd_newstate): Likewise.
9891 (free_state): New function.
9892 * posix/regexec.c (re_search_internal): Invoke memory release
9893 functions in case of error conditions.
9894 (sift_states_backward): Likewise.
9895 (merge_state_array): Likewise.
9896 (add_epsilon_src_nodes): Likewise.
9897 (sub_epsilon_src_nodes): Likewise.
9898 (search_subexp): Likewise.
9899 (sift_states_bkref): Likewise.
9900 (transit_state_sb): Likewise.
9901 (transit_state_mb): Likewise.
9902 (transit_state_bkref_loop): Likewise.
9903 (group_nodes_into_DFAstates): Likewise.
9904 (push_fail_stack): Don't edit pointers in case that realloc failed.
9905 (extend_buffers): Likewise.
9906 (match_ctx_add_entry): Likewise.
9907
9908 2002-11-06 Roland McGrath <roland@redhat.com>
9909
9910 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
9911 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
9912
9913 * configure.in: Add checks on as and ld for binutils 2.13 or later.
9914 * configure: Regenerated.
9915
9916 2002-11-06 Ulrich Drepper <drepper@redhat.com>
9917
9918 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
9919 If re_compile_internal failed free fastmap buffer.
9920 (free_dfa_content): Broken out of regfree function. Frees all dfa
9921 related data.
9922 (regfree): Add free_dfa_content.
9923 (re_compile_internal): If any of the called functions fails free
9924 all dfa related memory.
9925
9926 2002-11-05 Ulrich Drepper <drepper@redhat.com>
9927
9928 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
9929 warnings from the kernel headers.
9930
9931 2002-11-05 Roland McGrath <roland@redhat.com>
9932
9933 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
9934 From Johannes Stezenbach <js@convergence.de>.
9935
9936 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
9937 #errlist-compat magic comment to give 123 as size.
9938 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
9939 (libc: GLIBC_2.2): ... here.
9940 (libc: GLIBC_2.3): Likewise.
9941
9942 2002-11-05 Ulrich Drepper <drepper@redhat.com>
9943
9944 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
9945 which happens at the beginning so that we can unload modules in
9946 __libc_freeres.
9947
9948 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9949
9950 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
9951 under [__USE_MISC || _ASM].
9952
9953 * elf/elf.h: Remove the obsolete SH TLS relocations.
9954
9955 2002-11-05 Ulrich Drepper <drepper@redhat.com>
9956
9957 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
9958
9959 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9960
9961 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
9962 __NR_pread64 and __NR_pwrite64.
9963 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
9964 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
9965 and __NR_pwrite64.
9966 Revert change to use INLINE_SYSCALL.
9967 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
9968 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
9969 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
9970 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
9971 INLINE_SYSCALL.
9972 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
9973
9974 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
9975 Update clobber list and add a comment about the syscall ABI.
9976
9977 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
9978 s_pwrite64, s_ftruncate, s_truncate): Re-add.
9979
9980 2002-11-05 Jakub Jelinek <jakub@redhat.com>
9981
9982 * iconv/gconv_dl.c (free_mem): Clear loaded.
9983 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
9984 cleanup if any.
9985
9986 2002-11-05 Ulrich Drepper <drepper@redhat.com>
9987
9988 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
9989
9990 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
9991 as old code without locking. _IO_seekoff calls this function after
9992 locking the stream.
9993 * libio/ioseekpos.c: Likewise for _IO_seekpos.
9994 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
9995 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
9996 prototypes.
9997 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
9998 of _IO_seekoff_internal.
9999 (_IO_rewind): Likewise.
10000 * libio/ioftell.c: Likewise.
10001 * libio/ftello.c: Likewise.
10002 * libio/ftello64.c: Likewise.
10003 * libio/iofgetpos.c: Likewise.
10004 * libio/iofgetpos64.c: Likewise.
10005 * libio/oldiofgetpos.c: Likewise.
10006 * libio/oldiofgetpos64.c: Likewise.
10007 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
10008 _IO_seekpos_internal.
10009 * libio/iofsetpos64.c: Likewise.
10010 * libio/oldiofsetpos.c: Likewise.
10011 * libio/oldiofsetpos64.c: Likewise.
10012
10013 2002-11-04 Roland McGrath <roland@redhat.com>
10014
10015 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
10016 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
10017 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
10018 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
10019 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
10020 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
10021 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
10022 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
10023 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
10024 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
10025 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
10026 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
10027 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
10028 Remove these, no longer used.
10029
10030 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10031
10032 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
10033 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
10034 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
10035 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
10036 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
10037 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
10038 syscall stubs.
10039
10040 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
10041 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
10042 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
10043 and __NR_pread.
10044 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
10045 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
10046 and __NR_pwrite.
10047 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
10048
10049 2002-11-03 Roland McGrath <roland@redhat.com>
10050
10051 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
10052 `_dl_tls_static_used'.
10053 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
10054 (__libc_setup_tls): Initialize it. Let the initial value of
10055 _dl_tls_static_size indicate some surplus space in the computed value.
10056 * elf/dl-open.c (_dl_tls_static_size): New variable.
10057 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
10058 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
10059 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
10060 (CHECK_STATIC_TLS): Use it.
10061 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
10062 closed objects occupied a trailing contiguous chunk of static TLS area.
10063
10064 2002-10-18 Bruno Haible <bruno@clisp.org>
10065
10066 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
10067
10068 2002-11-04 Ulrich Drepper <drepper@redhat.com>
10069
10070 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
10071 _wide_data->_IO_read_end if adjustment can be made in the current
10072 buffer.
10073
10074 * sysdeps/unix/sysv/linux/fexecve.c: New file.
10075
10076 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
10077 wide oriented streams are used.
10078
10079 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
10080 service hasn't been used [PR libc/4744].
10081
10082 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
10083 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
10084
10085 * manual/examples/dir.c: Don't include <stddef.h>.
10086 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
10087 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
10088
10089 2002-11-02 H.J. Lu <hjl@gnu.org>
10090
10091 * stdio-common/reg-printf.c: Include <stddef.h>.
10092
10093 2002-11-03 Ulrich Drepper <drepper@redhat.com>
10094
10095 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
10096
10097 * po/ca.po: Update from translation team.
10098 * po/es.po: Likewise.
10099
10100 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
10101 is defined write out memory map.
10102 * sysdeps/unix/sysv/linux/segfault.c: New file.
10103
10104 2002-11-02 Roland McGrath <roland@redhat.com>
10105
10106 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
10107 pointers that can alias.
10108 Reported by Daniel Jacobowitz <drow@mvista.com>.
10109
10110 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
10111
10112 2002-11-02 Roland McGrath <roland@redhat.com>
10113
10114 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
10115 description to be clearer and to say that *RESULT is set to ENTRY.
10116
10117 2002-10-30 Jakub Jelinek <jakub@redhat.com>
10118
10119 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
10120 dests_ch arrays together. Alloca or malloc dest_states,
10121 dest_states_word and dest_states_nl arrays together. Free memory on
10122 error exit.
10123
10124 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
10125
10126 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
10127 and current_saltbits.
10128
10129 2002-11-02 Roland McGrath <roland@redhat.com>
10130
10131 * stdio-common/reg-printf.c: Include <stdlib.h>.
10132
10133 2002-11-02 H.J. Lu <hjl@gnu.org>
10134
10135 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
10136 caller to EXTRA instead of execve.
10137
10138 2002-11-01 Roland McGrath <roland@redhat.com>
10139
10140 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
10141 in place of [!(USE_TLS && HAVE___THREAD)].
10142 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
10143
10144 2002-10-31 Roger Sayle <roger@eyesopen.com>
10145
10146 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
10147 New macros.
10148 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
10149
10150 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
10151 without defining FP_ROUNDMODE.
10152
10153 2002-10-29 Jakub Jelinek <jakub@redhat.com>
10154
10155 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
10156 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
10157 declare_symbol.
10158 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
10159 (OLD_SIGLIST_SIZE): Define.
10160 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
10161 (OLD_SIGLIST_SIZE): Define.
10162 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
10163
10164 2002-11-01 Jakub Jelinek <jakub@redhat.com>
10165
10166 * sysdeps/ia64/strncpy.S: Fix recovery code.
10167
10168 2002-10-30 Jakub Jelinek <jakub@redhat.com>
10169
10170 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
10171 New macros.
10172 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
10173 text_set_element.
10174 * elf/dl-libc.c (free_mem): Likewise.
10175 * iconv/gconv_conf.c (free_mem): Likewise.
10176 * iconv/gconv_db.c (free_mem): Likewise.
10177 * iconv/gconv_dl.c (free_mem): Likewise.
10178 * iconv/gconv_cache.c (free_mem): Likewise.
10179 * intl/finddomain.c (free_mem): Likewise.
10180 * intl/dcigettext.c (free_mem): Likewise.
10181 * locale/setlocale.c (free_mem): Likewise.
10182 * misc/fstab.c (fstab_free): Likewise.
10183 * nss/nsswitch.c (free_mem): Likewise.
10184 * posix/regcomp.c (free_mem): Likewise.
10185 * resolv/gai_misc.c (free_res): Likewise.
10186 * stdlib/fmtmsg.c (free_mem): Likewise.
10187 * sunrpc/clnt_perr.c (free_mem): Likewise.
10188 * sysdeps/generic/setenv.c (free_mem): Likewise.
10189 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
10190 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
10191 * time/tzset.c (free_mem): Likewise.
10192 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
10193 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
10194 * malloc/set-freeres.c (__libc_freeres): Likewise.
10195
10196 * login/getutent.c: Include stdlib.h instead of stddef.h.
10197 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
10198 (__getutent): Allocate buffer the first time it is run.
10199 * login/getutid.c: Include stdlib.h instead of stddef.h.
10200 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
10201 (__getutid): Allocate buffer the first time it is run.
10202 * login/getutline.c: Include stdlib.h instead of stddef.h.
10203 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
10204 (__getutline): Allocate buffer the first time it is run.
10205 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
10206 (mtrace): Allocate malloc_trace_buffer.
10207 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
10208 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
10209 * string/strerror.c: Include libintl.h and errno.h.
10210 (buf): New variable.
10211 (strerror): Only allocate buffer if actually needed (unknown error).
10212 * time/tzfile.c (transitions): Add libc_freeres_ptr.
10213 (freeres): Remove.
10214
10215 2002-10-25 Jakub Jelinek <jakub@redhat.com>
10216
10217 * include/libc-symbols.h (libc_freeres_ptr): New macro.
10218 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
10219 symbol_set_define.
10220 (__libc_freeres): Free all pointers in that section.
10221 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
10222 commands when creating .lds script.
10223 (LDSEDCMD-c.so): New variable.
10224 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
10225 (rcmd_af): Use strdup to allocate ahostbuf.
10226 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
10227 (rexec_af): Use strdup to allocate ahostbuf.
10228 * stdio-common/reg-printf.c (printf_funcs): Remove.
10229 (__printf_arginfo_table): Change into printf_arginfo_function **.
10230 Add libc_freeres_ptr.
10231 (__register_printf_function): Allocate __printf_arginfo_table
10232 and __printf_function_table the first time it is called.
10233 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
10234 printf_arginfo_function **.
10235 (parse_one_spec): Add __builtin_expect.
10236 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
10237 (free_mem): Remove.
10238 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
10239 (free_mem): Remove.
10240 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
10241 (string_space, map): Add libc_freeres_ptr.
10242 (free_mem): Remove.
10243 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
10244 (free_mem): Remove.
10245 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
10246 (free_mem): Remove.
10247 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
10248 (buffer): Add libc_freeres_ptr.
10249 (free_mem): Remove for _LIBC.
10250 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
10251 (free_mem): Remove.
10252 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
10253 (free_mem): Remove.
10254 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
10255 (free_mem): Remove.
10256 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
10257 (free_mem): Remove.
10258 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
10259 (free_mem): Remove.
10260 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
10261 (free_mem): Remove.
10262 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
10263 libc_freeres_ptr.
10264 (free_mem): Remove.
10265 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
10266 libc_freeres_ptr.
10267 (free_mem): Remove.
10268
10269 2002-10-30 Jakub Jelinek <jakub@redhat.com>
10270
10271 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
10272 instead of duplicating the whole function in libc.
10273
10274 2002-10-31 Roland McGrath <roland@redhat.com>
10275
10276 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
10277 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
10278
10279 2002-10-30 Jakub Jelinek <jakub@redhat.com>
10280
10281 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
10282 32bit-predefine when creating .new32 list and -U for each
10283 32bit-predefine when creating .new64 list.
10284 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
10285
10286 2002-10-29 Andreas Schwab <schwab@suse.de>
10287
10288 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
10289 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
10290
10291 2002-10-25 Roland McGrath <roland@redhat.com>
10292
10293 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
10294 * sysdeps/unix/sysv/linux/configure: Regenerated.
10295
10296 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
10297 _dl_starting_up decl.
10298
10299 2002-10-20 H.J. Lu <hjl@gnu.org>
10300
10301 * sysdeps/unix/sysv/linux/configure.in: Don't check
10302 /lib/modules/`uname -r`/build/include for kernel headers if
10303 cross compiling.
10304 * sysdeps/unix/sysv/linux/configure: Regenerated.
10305
10306 2002-10-25 Roland McGrath <roland@redhat.com>
10307
10308 * math/math.h (M_LOG2El): Correct the value.
10309 From Stephen L Moshier <steve@moshier.net>.
10310
10311 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
10312 conditional from __libc_multiple_libcs access. Remove kludge for weak
10313 symbol access with old compilers we no longer support.
10314 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
10315 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
10316
10317 2002-10-25 Roland McGrath <roland@redhat.com>
10318
10319 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
10320 implement SV_RESETHAND by translating it to SA_RESETHAND.
10321
10322 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
10323
10324 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
10325 type on ELF64 platforms.
10326
10327 2002-10-24 Ulrich Drepper <drepper@redhat.com>
10328
10329 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
10330
10331 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
10332
10333 2002-10-24 Jakub Jelinek <jakub@redhat.com>
10334
10335 * elf/dl-misc.c: Include <sysdep.h>.
10336 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
10337
10338 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
10339 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
10340 (INLINE_SYSCALL): Use that.
10341 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
10342 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
10343 (INLINE_SYSCALL): Use that.
10344 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
10345 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
10346 (INLINE_SYSCALL): Use that.
10347 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
10348 dl-sysdep.h.
10349 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
10350 (__INTERNAL_SYSCALL_STRING): Define.
10351 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
10352 dl-sysdep.h.
10353 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
10354 (__INTERNAL_SYSCALL_STRING): Define.
10355 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
10356 __SYSCALL_STRING to inline_syscall*.
10357 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
10358 New macros.
10359 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
10360 inline_syscall4, inline_syscall5, inline_syscall6): Add string
10361 argument.
10362
10363 2002-10-24 Roland McGrath <roland@redhat.com>
10364
10365 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
10366 * sysdeps/unix/sysv/linux/init-first.c: Not here.
10367 * sysdeps/powerpc/elf/libc-start.c: Or here.
10368 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
10369 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
10370 * sysdeps/unix/sysv/aix/init-first.c: Or here.
10371 * sysdeps/generic/libc-start.c: Or here.
10372 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
10373 access with [! SHARED].
10374 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
10375
10376 * libio/bug-wfflush.c: New file.
10377 * libio/Makefile (tests): Add bug-wfflush.
10378
10379 2002-10-23 Roland McGrath <roland@redhat.com>
10380
10381 * stdio-common/tst-fphex.c: New file.
10382 * stdio-common/Makefile (tests): Add tst-fphex.
10383 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
10384 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
10385 chars always before the value digits.
10386 Reported by James Antill <james.antill@redhat.com>.
10387
10388 2002-10-24 Jakub Jelinek <jakub@redhat.com>
10389
10390 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
10391 (free_mem): New function.
10392 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
10393 if not cross compiling.
10394 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
10395 (bug-regex14-ENV): Set.
10396 (bug-regex14-mem): New target.
10397 * posix/bug-regex14.c: New file.
10398
10399 2002-10-23 Roland McGrath <roland@redhat.com>
10400
10401 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
10402 target, so we don't touch it when the link fails.
10403
10404 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
10405 Check for the result overflowing off_t and fail with EOVERFLOW.
10406 * libio/ioftell.c (_IO_ftell): Likewise.
10407 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
10408
10409 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
10410 use a temporary timeval on the stack for gettimeofday and copy it.
10411 * login/logout.c (logout): Likewise.
10412 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
10413
10414 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
10415 Use __SWORD_TYPE instead of int for member types.
10416 (struct statfs64): Likewise.
10417 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
10418 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
10419 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
10420 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
10421 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
10422
10423 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
10424 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
10425 (ST_NODIRATIME): Restore fixed value of 2048.
10426 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
10427 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
10428
10429 Rearranged <bits/types.h> definitions to reduce duplication.
10430 * sysdeps/generic/bits/types.h: Rewritten, using macros from
10431 <bits/wordsize.h> and new header <bits/typesizes.h>.
10432 * posix/Makefile (headers): Add bits/typesizes.h here.
10433 * sysdeps/generic/bits/typesizes.h: New file.
10434 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
10435 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
10436 * sysdeps/mach/hurd/bits/typesizes.h: New file.
10437 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
10438 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
10439 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
10440 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
10441 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
10442 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
10443 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
10444 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
10445 <bits/pthreadtypes.h> here, not in <bits/types.h>.
10446 * signal/signal.h: Likewise.
10447
10448 * streams/stropts.h: Include <bits/xtitypes.h>.
10449 * streams/Makefile (headers): Add bits/xtitypes.h here.
10450 * sysdeps/generic/bits/xtitypes.h: New file.
10451 * sysdeps/s390/bits/xtitypes.h: New file.
10452 * sysdeps/ia64/bits/xtitypes.h: New file.
10453 * sysdeps/x86_64/bits/xtitypes.h: New file.
10454
10455 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
10456 * sysdeps/generic/bits/ipctypes.h: New file.
10457 * sysdeps/mips/bits/ipctypes.h: New file.
10458 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
10459 * sysdeps/gnu/bits/msq.h: Likewise.
10460 * sysvipc/sys/ipc.h: Likewise.
10461
10462 2002-10-22 Ulrich Drepper <drepper@redhat.com>
10463
10464 * elf/dl-load.c (struct filebuf): For buf element to have the
10465 alignment of ElfXX_Ehdr since this is what will be stored in it.
10466
10467 2002-10-22 Jakub Jelinek <jakub@redhat.com>
10468
10469 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
10470 into pointer to locrec_offset.
10471 (add_locale_to_archive): Adjust callers. Free normalized_name right
10472 before returning, not immediately after add_locale, pass it to
10473 add_alias if not NULL instead of name. Rename second normalized_name
10474 occurence to nnormalized_codeset_name.
10475
10476 * locale/programs/locarchive.c (enlarge_archive): Make sure
10477 string_size is always a multiple of 4.
10478 Reported by Andreas Schwab <schwab@suse.de>.
10479
10480 2002-10-21 Andreas Schwab <schwab@suse.de>
10481
10482 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
10483 caller to EXTRA instead of execve, since the latter has a
10484 higher-priority implementation in linuxthreads.
10485
10486 2002-10-21 Roland McGrath <roland@redhat.com>
10487
10488 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
10489 slotinfo list's len member to the proper size, not just 1.
10490 Initialize static_map.l_tls_initimage.
10491
10492 * elf/dl-open.c (dl_open_worker): Fix loop searching for
10493 dtv_slotinfo_list element containing new modules' l_tls_modid.
10494
10495 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
10496 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
10497 * elf/Makefile (tests): Add tst-tls9.
10498 (tests-static): Add tst-tls9-static.
10499 (tst-tls9-static-ENV): New variable.
10500 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
10501
10502 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
10503 modids used by partially loaded modules being closed can't be known.
10504
10505 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
10506
10507 * posix/Makefile: Add a test case for the bug reported by Aharon
10508 Robbins <arnold@skeeve.com>.
10509 * posix/bug-regex13.c: New file.
10510 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
10511
10512 2002-10-21 Ulrich Drepper <drepper@redhat.com>
10513
10514 * csu/gmon-start.c: Pretty printing.
10515
10516 2002-10-19 Art Haas <ahaas@neosoft.com>
10517
10518 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
10519 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
10520 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
10521 * configure: Regenerated.
10522
10523 2002-10-19 Roland McGrath <roland@redhat.com>
10524
10525 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
10526 and then set $subdirs directly, because the new Autoconf breaks
10527 compatibility in every way imaginable and insists on whining
10528 about usage that worked since the dawn of time.
10529 * configure: Regenerated.
10530
10531 * configure: Regenerated (using Autoconf 2.54).
10532 * sysdeps/alpha/elf/configure: Likewise.
10533 * sysdeps/generic/configure: Likewise.
10534 * sysdeps/i386/elf/configure: Likewise.
10535 * sysdeps/ia64/elf/configure: Likewise.
10536 * sysdeps/mach/hurd/configure: Likewise.
10537 * sysdeps/mach/configure: Likewise.
10538 * sysdeps/unix/configure: Likewise.
10539 * sysdeps/unix/common/configure: Likewise.
10540 * sysdeps/unix/sysv/aix/configure: Likewise.
10541 * sysdeps/unix/sysv/linux/configure: Likewise.
10542 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
10543 * sysdeps/x86_64/elf/configure: Likewise.
10544
10545 * config.make.in: Nix completely-soft nonsense.
10546 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
10547 of machine directories instead of fpu subdirectory.
10548 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
10549 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
10550 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
10551 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
10552 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
10553 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
10554 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
10555 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
10556 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
10557 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
10558 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
10559 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
10560 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
10561 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
10562 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
10563 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
10564 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
10565 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
10566 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
10567 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
10568 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
10569 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
10570 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
10571 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
10572 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
10573 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
10574 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
10575 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
10576 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
10577 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
10578 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
10579 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
10580 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
10581 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
10582 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
10583 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
10584 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
10585 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
10586 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
10587 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
10588
10589 2002-10-19 Bruno Haible <bruno@clisp.org>
10590
10591 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
10592
10593 2002-10-18 Roland McGrath <roland@redhat.com>
10594
10595 * io/Makefile (routines): Add lchmod.
10596 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
10597 * sysdeps/generic/lchmod.c: New file.
10598 * sysdeps/mach/hurd/lchmod.c: New file.
10599 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
10600
10601 2002-10-18 Art Haas <ahaas@neosoft.com>
10602
10603 * configure.in: Remove remaining AC_FD_CC macros, and replace
10604 AC_FD_MSG with AS_MESSAGE_FD.
10605
10606 2002-10-18 Roland McGrath <roland@redhat.com>
10607
10608 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
10609 typos: VALUE -> FINALADDR.
10610
10611 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
10612 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
10613 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
10614 (inline_syscall6): Move these macros ...
10615 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
10616
10617 * configure.in (libc_link_dests, libc_link_sources): Remove these
10618 variables and the AC_LINK_FILES call.
10619
10620 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
10621 change to put new symbols here instead of in GLIBC_2.2.
10622 * sysdeps/powerpc/Subdirs: Move this file ...
10623 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
10624
10625 2002-10-07 Roland McGrath <roland@redhat.com>
10626
10627 * sysdeps/generic/bits/time.h: Replaced with contents of the
10628 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
10629 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
10630 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
10631 macros is ok even for architectures that don't now implement them.
10632 * sysdeps/mach/hurd/bits/time.h: File removed.
10633 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
10634 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
10635 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
10636 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
10637 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
10638
10639 2002-10-18 Jeff Bailey <jbailey@gnu.org>
10640
10641 * configure.in: Replace obsolete AC_OUTPUT syntax with
10642 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
10643
10644 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
10645 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
10646
10647 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
10648 * sysdeps/alpha/elf/configure.in: Likewise.
10649 * sysdeps/i386/elf/configure.in: Likewise.
10650 * sysdeps/mach/hurd/configure.in: Likewise.
10651 * sysdeps/x86_64/elf/configure.in: Likewise.
10652
10653 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
10654
10655 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
10656 * sysdeps/generic/configure.in: Likewise.
10657 * sysdeps/i386/elf/configure.in: Likewise.
10658 * sysdeps/ia64/elf/configure.in: Likewise.
10659 * sysdeps/mach/configure.in: Likewise.
10660 * sysdeps/mach/hurd/configure.in: Likewise.
10661 * sysdeps/unix/configure.in: Likewise.
10662 * sysdeps/unix/common/configure.in: Likewise.
10663 * sysdeps/unix/sysv/aix/configure.in: Likewise.
10664 * sysdeps/unix/sysv/linux/configure.in: Likewise.
10665 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
10666 * sysdeps/x86_64/elf/configure.in: Likewise.
10667
10668 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
10669 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
10670 that it's obvious when extra autoconf machinery is being dragged in.
10671
10672 2002-10-18 Roland McGrath <roland@redhat.com>
10673
10674 * configure.in: Remove bogus echo included in
10675 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
10676 * configure: Regenerated.
10677
10678 2002-10-18 Jakub Jelinek <jakub@redhat.com>
10679
10680 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
10681 (statfs_filesize_max): New function.
10682 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
10683 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
10684 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
10685 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
10686 statfs_filesize_max.
10687 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
10688 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
10689 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
10690
10691 2002-10-17 Roland McGrath <roland@redhat.com>
10692
10693 * configure.in (MIG): Just AC_SUBST it here.
10694 * configure: Regenerated.
10695 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
10696 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
10697 * sysdeps/mach/configure: Regenerated.
10698
10699 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
10700 and AC_PROVIDE([_AS_CR_PREPARE]).
10701
10702 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
10703 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
10704
10705 * elf/dl-support.c: Move _dl_tls_* variables to ...
10706 * sysdeps/generic/libc-tls.c: ... here.
10707
10708 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
10709 allow IDX to be one past the current last slotinfo entry.
10710 (_dl_close): Pass IMAP->l_init_called for that parameter.
10711
10712 2002-10-07 Andreas Schwab <schwab@suse.de>
10713
10714 * aclocal.m4: Fix for autoconf 2.53.
10715 * configure.in: Likewise. Require autoconf 2.53.
10716
10717 2002-10-08 Richard Henderson <rth@redhat.com>
10718
10719 * soft-fp/op-4.h: Handle carry correctly in
10720 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
10721 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
10722 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
10723
10724 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
10725
10726 * configure.in: Compute completely-soft.
10727 * config.make.in: Make completely-soft available to sub-makes.
10728 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
10729 gcc-double-routines. Add sim-full.c. Add fenv_const and
10730 fe_nomask to libm-support.
10731 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
10732 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
10733 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
10734 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
10735 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
10736 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
10737 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
10738 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
10739 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
10740 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
10741 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
10742 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
10743 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
10744 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
10745 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
10746 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
10747 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
10748 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
10749 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
10750 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
10751 __sim_round_mode.
10752 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
10753 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
10754 FP_HANDLE_EXCEPTIONS.
10755 Define FP_ROUNDMODE.
10756 Redefine FP_* macros to correspond to the FE_* bit positions.
10757 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
10758 Define externs for __sim_exceptions, __sim_disabled_exceptions,
10759 __sim_round_mode, __simulate_exceptions.
10760 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
10761 * sysdeps/powerpc/bits/fenv.h: ...to here.
10762
10763 2002-10-06 Jakub Jelinek <jakub@redhat.com>
10764
10765 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
10766 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
10767 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
10768 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
10769 __builtin_expect.
10770
10771 2002-10-15 Jakub Jelinek <jakub@redhat.com>
10772
10773 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
10774 __libc_res_nsend): New prototypes.
10775 * resolv/res_query.c (QUERYSIZE): Define.
10776 (__libc_res_nquery): Renamed from res_nquery. Added answerp
10777 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
10778 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
10779 res_nsend, pass answerp.
10780 (res_nquery): Changed into wrapper around __libc_res_nquery.
10781 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
10782 argument. Call __libc_res_nquerydomain and __libc_res_nquery
10783 instead of the non-__libc_ variants, pass them answerp.
10784 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
10785 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
10786 Added answerp argument. Call __libc_res_nquery instead of
10787 res_nquery, pass answerp.
10788 (res_nquerydomain): Changed into wrapper around
10789 __libc_res_nquerydomain.
10790 * resolv/res_send.c: Include sys/ioctl.h.
10791 (MAXPACKET): Define.
10792 (send_vc): Change arguments. Reallocate answer buffer if it is
10793 too small.
10794 (send_dg): Likewise.
10795 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
10796 Reallocate answer buffer if it is too small and hooks are in use.
10797 Adjust calls to send_vc and send_dg.
10798 (res_nsend): Changed into wrapper around __libc_res_nsend.
10799 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
10800 just 1K answer buffer on the stack, use __libc_res_nsearch instead
10801 of res_nsearch.
10802 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
10803 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
10804 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
10805 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
10806 (gethostbyaddr): Similarly with __libc_res_nquery.
10807 * resolv/Versions (libresolv): Export __libc_res_nquery and
10808 __libc_res_nsearch at GLIBC_PRIVATE.
10809
10810 2002-10-17 Roland McGrath <roland@redhat.com>
10811
10812 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
10813 * configure: Regenerated.
10814
10815 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
10816 before performing the reloc, not after.
10817 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
10818
10819 2002-10-17 Ulrich Drepper <drepper@redhat.com>
10820
10821 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
10822 * locale/programs/linereader.c (lr_open): Likewise.
10823 * locale/programs/charmap-dir.c (charmap_open): Likewise.
10824 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
10825
10826 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
10827
10828 * posix/bug-regex11.c: Add a test case for the bug reported by
10829 Paolo Bonzini <bonzini@gnu.org>.
10830 * posix/regexec.c (sift_states_bkref): Use correct destination of
10831 the back reference.
10832
10833 2002-10-17 Roland McGrath <roland@redhat.com>
10834
10835 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
10836 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
10837 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
10838 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
10839 Call it after performing TPOFF relocs.
10840 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
10841 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
10842 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
10843
10844 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
10845 when closing a partially-initialized object.
10846
10847 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
10848 instead of _dl_fatal_printf when we see PT_TLS.
10849
10850 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
10851 instead of $(libof-$<).
10852
10853 2002-10-16 Roland McGrath <roland@redhat.com>
10854
10855 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
10856 instead of += to append, to be sure $(lib) gets expanded at defn time.
10857 (libof-$(cpp-src)): New variable, define this instead.
10858 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
10859 (lib): Don't use override.
10860 (CPPFLAGS-$(lib)): New variable, put -D's here.
10861 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
10862 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
10863 LIB found by $(libof-*) for basename, target, or source.
10864 * Makerules (CPPFLAGS-nonlib): New variable.
10865 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
10866 * locale/Makefile (lib): Likewise.
10867 * sunrpc/Makefile (lib): Likewise.
10868
10869 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
10870 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
10871 * sysdeps/unix/sysv/linux/pathconf.h: New file.
10872 (statfs_link_max): New function, guts from fpathconf.c.
10873 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
10874 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
10875 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
10876 to use the linux/pathconf.c code by #include rather than duplication.
10877 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
10878
10879 2002-10-16 Jakub Jelinek <jakub@redhat.com>
10880
10881 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
10882 Use __libc_errno only for libc itself.
10883
10884 2002-10-16 Andreas Jaeger <aj@suse.de>
10885
10886 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
10887
10888 2002-10-16 Ulrich Drepper <drepper@redhat.com>
10889
10890 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
10891 Use __libc_errno only for libc itself.
10892
10893 2002-10-15 Roland McGrath <roland@redhat.com>
10894 Jakub Jelinek <jakub@redhat.com>
10895
10896 * sysdeps/unix/sysv/linux/Makefile
10897 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
10898 sparc/Makefile to produce a bi-arch file as needed.
10899 That's now parameterized by the variable $(64bit-predefine).
10900 Use LC_ALL=C for `comm' commands in that rule.
10901 No longer conditional on [$(no_syscall_list_h)].
10902 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
10903 (64bit-predefine): New variable.
10904 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
10905 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
10906 * sysdeps/unix/sysv/linux/powerpc/Makefile
10907 (64bit-predefine): New variable.
10908
10909 2002-10-15 Roland McGrath <roland@redhat.com>
10910
10911 * sysdeps/unix/sysv/linux/Makefile
10912 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
10913
10914 * login/utmp-private.h: Declare __libc_utmp_lock.
10915 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
10916 and call __libc_utmp_jump_table functions directly, instead of using
10917 __setutent et al.
10918
10919 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
10920 * sysdeps/unix/sysv/linux/configure: Regenerated.
10921
10922 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
10923 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
10924 Use int32_t for ll_time.
10925 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
10926 Use int32_t instead of long int for ut_session.
10927 Use an anonymous struct with 32-bit fields for ut_tv.
10928 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
10929 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
10930 here as in utmp.h for `struct utmp'.
10931 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
10932 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
10933 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
10934 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
10935 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
10936 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
10937
10938 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
10939 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
10940 All the following files were identical or equivalent to it.
10941 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
10942 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
10943 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
10944 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
10945 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
10946 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
10947 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
10948 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
10949 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
10950 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
10951
10952 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
10953 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
10954 Other than the previously incorrect sign of msg_iovlen, this is a
10955 no-op on 32-bit platforms. On 64-bit platforms it makes this header
10956 match their layouts as well, so the following are now identical to it.
10957 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
10958 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
10959 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
10960 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
10961 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
10962
10963 2002-10-15 Ulrich Drepper <drepper@redhat.com>
10964
10965 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
10966 Define for 2.4+ kernels.
10967
10968 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
10969 are known to have the vfork syscall. Don't confuse the CPUs
10970 branch prediction unit by jumping to the return address.
10971
10972 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
10973 support for reiserfs and xfs.
10974
10975 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
10976 XFS link count.
10977 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
10978 and XFS_LINK_MAX.
10979 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
10980
10981 2002-10-16 Jakub Jelinek <jakub@redhat.com>
10982
10983 * include/libc-symbols.h (attribute_tls_model_ie): Define.
10984 * include/errno.h (errno): Define to __libc_errno in libc.so.
10985 Add attribute_tls_model_ie.
10986 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
10987 Add attribute_tls_model_ie.
10988 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
10989 attribute_tls_model_ie.
10990 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
10991 (h_errno): Define.
10992 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
10993 (_res): Define.
10994 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
10995 attribute_tls_model_ie.
10996 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
10997 __thread.
10998 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
10999 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
11000 __libc_errno in USE___THREAD case.
11001 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
11002 Likewise.
11003 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
11004 __attribute__((tls_model (""))).
11005 * configure: Rebuilt.
11006 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
11007
11008 2002-10-15 Ulrich Drepper <drepper@redhat.com>
11009
11010 * timezone/asia: Update from tzdata2002d.
11011 * timezone/australasia: Likewise.
11012 * timezone/iso3166.tab: Likewise.
11013 * timezone/southamerica: Likewise.
11014 * timezone/zone-tab: Likewise.
11015
11016 2002-10-15 Roland McGrath <roland@redhat.com>
11017
11018 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
11019 Adjust TCB pointer before calling free, so we get the whole block.
11020
11021 2002-10-14 Roland McGrath <roland@redhat.com>
11022
11023 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
11024 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
11025 extern using attribute_hidden instead of static, avoids warning.
11026
11027 2002-10-09 Jakub Jelinek <jakub@redhat.com>
11028
11029 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
11030 * sysdeps/unix/sysv/linux/configure: Rebuilt.
11031
11032 2002-10-14 Ulrich Drepper <drepper@redhat.com>
11033
11034 * po/sv.po: Update from translation team.
11035
11036 2002-10-12 H.J. Lu <hjl@gnu.org>
11037
11038 * sunrpc/thrsvc.c (PROCQUIT): New.
11039 (struct rpc_arg): New.
11040 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
11041 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
11042 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
11043 (main): Modified for struct rpc_arg *.
11044
11045 2002-10-14 Ulrich Drepper <drepper@redhat.com>
11046
11047 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
11048
11049 2002-10-14 Jakub Jelinek <jakub@redhat.com>
11050
11051 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
11052 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
11053 in ld.so even if __thread is supported.
11054
11055 2002-10-13 Jakub Jelinek <jakub@redhat.com>
11056
11057 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
11058 Add hack to prevent the compiler from clobbering the signal context.
11059 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
11060 Likewise.
11061 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
11062 Likewise.
11063
11064 2002-10-14 Andreas Jaeger <aj@suse.de>
11065
11066 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
11067 Guido Guenther <agx@sigxcpu.org>.
11068
11069 2002-10-14 Ulrich Drepper <drepper@redhat.com>
11070
11071 * po/sk.po: Update from translation team.
11072
11073 2002-09-26 Roland McGrath <roland@redhat.com>
11074
11075 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
11076 dynamic string tag.
11077 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
11078 DL_DST_LIB based on $(slibdir).
11079
11080 2002-10-13 Roland McGrath <roland@frob.com>
11081
11082 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
11083
11084 * sysdeps/mach/hurd/getresuid.c: New file.
11085 * sysdeps/mach/hurd/getresgid.c: New file.
11086 * sysdeps/mach/hurd/setresuid.c: New file.
11087 * sysdeps/mach/hurd/setresgid.c: New file.
11088
11089 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
11090 setresgid): Declare them.
11091 * NEWS: Mention it.
11092 * include/unistd.h
11093 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
11094 add libc_hidden_proto.
11095 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
11096 getresuid, getresgid, setresuid, setresgid here.
11097 * Versions.def (libc): Define GLIBC_2.3.2 set.
11098 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
11099 Add libc_hidden_def.
11100 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
11101 * sysdeps/generic/setresgid.c: New file.
11102 * sysdeps/generic/setresuid.c: New file.
11103 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
11104 (sysdep_routines): Don't add getresuid and getresgid here.
11105 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
11106 (sysdep_routines): Don't add setresuid and setresgid here.
11107 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
11108 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
11109 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11110 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
11111 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11112 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11113 * posix/Makefile (routines): Add them all here instead.
11114 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
11115 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
11116 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
11117 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
11118 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
11119 [! __NR_setresuid]: Include generic file.
11120 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
11121 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
11122 [! __NR_setresuid]: Include generic file.
11123 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
11124 Caller is - now, not EXTRA.
11125 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
11126 (setresuid, setresgid, getresuid, getresgid): Likewise.
11127 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
11128 Add these calls here.
11129 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
11130 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
11131 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
11132 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
11133 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
11134 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
11135 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
11136 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
11137 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
11138
11139 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
11140 (sysdep_routines): Add setfsuid and setfsgid here.
11141 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
11142 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
11143 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
11144 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
11145 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11146 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
11147 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11148 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11149
11150 * hurd/errno.c: Renamed to ...
11151 * hurd/errno-loc.c: ... this.
11152 * hurd/Makefile (routines): errno -> errno-loc
11153
11154 2002-10-13 Ulrich Drepper <drepper@redhat.com>
11155
11156 * po/de.po: Update from translation team.
11157
11158 * MakeTAGS: Add -E flag to xgettext runs.
11159
11160 2002-10-12 Ulrich Drepper <drepper@redhat.com>
11161
11162 * po/fr.po: Update from translation team.
11163
11164 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
11165 Optimize a bit for use in glibc.
11166
11167 2002-10-12 Roland McGrath <roland@redhat.com>
11168
11169 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
11170 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
11171
11172 2002-10-12 Ulrich Drepper <drepper@redhat.com>
11173
11174 * po/sv.po: Update from translation team.
11175
11176 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
11177
11178 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
11179 OP_CONTEXT_NODE.
11180 (regfree): Likewise.
11181 (create_initial_state): Likewise.
11182 (analyze): Remove the substitutions which became useless.
11183 (calc_first): Likewise.
11184 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
11185 epsilon destination.
11186 (duplicate_node_closure): New function.
11187 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
11188 (calc_inveclosure): Likewise.
11189 (calc_eclosure): Likewise.
11190 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
11191 direct invocation of duplicate_node.
11192 (parse): Don't use comma operator in the return to avoid compiler
11193 warning.
11194 (parse_reg_exp): Likewise.
11195 (parse_branch): Likewise.
11196 (parse_expression): Likewise.
11197 (parse_sub_exp): Likewise.
11198 (parse_dup_op): Likewise.
11199 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
11200 which became useless.
11201 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
11202 (create_cd_newstate): Likewise.
11203 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
11204 (re_token_t): Likewise.
11205 (re_dfa_t): Likewise.
11206 (re_node_set_remove): New macro.
11207 * posix/regexec.c (check_matching): Remove the handling
11208 OP_CONTEXT_NODE.
11209 (check_halt_node_context): Likewise.
11210 (proceed_next_node): Likewise.
11211 (pop_fail_stack): Fix the memory leak.
11212 (set_regs): Likewise.
11213 (free_fail_stack_return): New function.
11214 (sift_states_backward): Fix the memory leak. Remove the handling
11215 OP_CONTEXT_NODE.
11216 (update_cur_sifted_state): Append some if clause to avoid redundant
11217 call.
11218 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
11219 back reference.
11220 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
11221 (check_subexp_limits): Likewise.
11222 (search_subexp): Likewise.
11223 (sift_states_bkref): Likewise.
11224 (transit_state_mb): Likewise.
11225 (transit_state_bkref_loop): Likewise.
11226 (transit_state_bkref_loop): Likewise.
11227 (group_nodes_into_DFAstates): Likewise.
11228 (check_node_accept): Likewise.
11229 (sift_ctx_init): Add initializing.
11230
11231 2002-10-12 Ulrich Drepper <drepper@redhat.com>
11232
11233 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
11234 __builtin_expect.
11235
11236 2002-10-11 Ulrich Drepper <drepper@redhat.com>
11237
11238 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
11239 duplicated variable c.
11240
11241 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
11242 if possible.
11243
11244 * sysdeps/unix/sysv/linux/i386/sysdep.h
11245 (INTERNAL_SYSCALL_ERROR_P): New define.
11246 (INTERNAL_SYSCALL_ERRNO): Likewise.
11247
11248 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
11249 Add hack to prevent the compiler from clobbering the signal context.
11250
11251 2002-10-11 Roland McGrath <roland@redhat.com>
11252
11253 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
11254 Fix typos.
11255
11256 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
11257 * sysdeps/sh/dl-lookupcfg.h: File removed.
11258 * sysdeps/i386/dl-lookupcfg.h: File removed.
11259
11260 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
11261 missing labels and ; from last change.
11262
11263 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
11264 number literals, so they are doubles instead of ints.
11265
11266 2002-10-09 Roland McGrath <roland@redhat.com>
11267
11268 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
11269 changed from [USE_TLS && HAVE___THREAD].
11270
11271 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
11272 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
11273 * sysdeps/x86_64/dl-machine.h
11274 (elf_machine_type_class, elf_machine_rela): Likewise.
11275 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
11276 Likewise.
11277
11278 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
11279 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
11280 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
11281
11282 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
11283 instead of ___tls_get_addr.
11284 (___tls_get_addr_internal): Add attribute_hidden to decl.
11285
11286 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
11287 _dl_error_catch_tsd.
11288 * elf/rtld.c (startup_error_tsd): New function.
11289 (dl_main): Point _dl_error_catch_tsd at that.
11290 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
11291 use new function pointer instead.
11292 * elf/dl-tsd.c: New file.
11293 * elf/Makefile (routines): Add it.
11294
11295 2002-10-07 Roland McGrath <roland@redhat.com>
11296
11297 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
11298 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
11299 take _dl_load_lock around calling __writev.
11300
11301 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
11302 (INLINE_SYSCALL): Use that.
11303
11304 * sysdeps/generic/dl-sysdep.h: New file.
11305 * sysdeps/mach/hurd/dl-sysdep.h: New file.
11306 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
11307 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
11308 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
11309 access it directly.
11310 * elf/dl-minimal.c (__errno_location): Removed.
11311 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
11312 Use GOTOFF access for errno.
11313 * sysdeps/unix/sysv/linux/i386/sysdep.h
11314 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
11315
11316 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
11317 Use PC-relative access for errno.
11318 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
11319 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
11320
11321 * include/tls.h: New file.
11322 (USE___THREAD): New macro.
11323 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
11324 libc or libpthread.
11325 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
11326 changed from [USE_TLS && HAVE___THREAD].
11327 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11328 * sysdeps/unix/i386/sysdep.S: Likewise.
11329 * sysdeps/unix/x86_64/sysdep.S: Likewise.
11330 * include/errno.h: Likewise.
11331 * include/netdb.h: Likewise.
11332 * include/resolv.h: Likewise.
11333
11334 * sysdeps/generic/errno.c: New file.
11335 * csu/Makefile (aux): New variable, list errno.
11336 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
11337 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
11338 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
11339 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
11340 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
11341 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
11342 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
11343 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
11344 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
11345 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
11346 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
11347 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
11348 * sysdeps/unix/alpha/sysdep.S: Likewise.
11349 * sysdeps/generic/start.c: Likewise.
11350 * sysdeps/unix/start.c: Likewise.
11351 * sysdeps/unix/arm/start.c: Likewise.
11352 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
11353 * sysdeps/unix/sparc/start.c: Likewise.
11354 * sysdeps/unix/sysv/irix4/start.c: Likewise.
11355 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
11356
11357 * manual/search.texi (Tree Search Function, Hash Search Function):
11358 Mention search.h clearly.
11359
11360 2002-10-05 Roland McGrath <roland@redhat.com>
11361
11362 * elf/dl-fxstat64.c: File removed.
11363 * elf/dl-xstat64.c: File removed.
11364 * elf/Makefile (rtld-routines): Remove them.
11365 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
11366 Instead, use strong_alias instead of versioned_symbol in the
11367 !SHLIB_COMPAT case.
11368 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
11369 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
11370
11371 * include/shlib-compat.h
11372 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
11373 [! NOT_IN_libc] (IS_IN_libc): Define it.
11374 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
11375 * elf/Makefile (CPPFLAGS-.os): Likewise.
11376
11377 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
11378 Return the status instead of calling exit.
11379
11380 * Makeconfig (CFLAGS): Prepend -std=gnu99.
11381 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
11382 Remove superfluous rm command, whose @ plus make bugs hid
11383 all these commands from the make output.
11384
11385 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
11386 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
11387 Use that file's contents instead of literal echo's for the prologue.
11388 * include/features.h: Include <gnu/stubs.h> unconditionally.
11389 * include/gnu/stubs.h: New file.
11390
11391 2002-09-30 Roland McGrath <roland@redhat.com>
11392
11393 * elf/rtld-Rules: New file.
11394 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
11395 $(objpfx)rtld-libc.a): New targets.
11396 (generated): Add them.
11397 (reloc-link): Remove -o $@ from the variable.
11398 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
11399 (distribute): Add rtld-Rules.
11400 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
11401 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
11402 (common-mostlyclean, common-clean): Clean up rtld-* files.
11403 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
11404
11405 2003-05-20 Jakub Jelinek <jakub@redhat.com>
11406
11407 * elf/dynamic-link.h (elf_get_dynamic_info): Add temp argument.
11408 If temp != NULL, copy dynamic entries which need relocation to temp
11409 array before relocating.
11410 (DL_RO_DYN_TEMP_CNT): Define.
11411 * elf/dl-load.c (_dl_map_object_from_fd): Adjust caller.
11412 * elf/rtld.c (_dl_start): Likewise.
11413 (dl_main): Likewise. Add dyn_temp static variable.
11414
11415 2002-10-11 Roland McGrath <roland@redhat.com>
11416
11417 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
11418 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
11419
11420 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
11421 proper set of no-op insn prefixes.
11422
11423 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
11424
11425 2002-10-11 Ulrich Drepper <drepper@redhat.com>
11426
11427 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
11428 __pthread_kill_other_threads_np.
11429
11430 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
11431
11432 2002-10-08 Roland McGrath <roland@redhat.com>
11433
11434 * locale/newlocale.c (__newlocale): If setting all categories to "C",
11435 just return &_nl_C_locobj instead of copying it.
11436 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
11437 * locale/duplocale.c (__duplocale): Likewise.
11438
11439 2002-10-07 Roland McGrath <roland@frob.com>
11440
11441 * config.h.in (HAVE_I386_SET_GDT): New #undef.
11442 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
11443 * sysdeps/mach/configure: Regenerated.
11444
11445 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11446
11447 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
11448 Add all necessary register outputs for syscall-clobbered registers.
11449
11450 2002-10-02 David Mosberger <davidm@hpl.hp.com>
11451
11452 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
11453 Itanium 2 (and Itanium).
11454 Fix unwind directives and make it fit in 80 columns.
11455 * sysdeps/ia64/memset.S: Likewise.
11456 * sysdeps/ia64/memcpy.S: Likewise.
11457 Move jump table to .rodata section.
11458
11459 2002-10-03 Roland McGrath <roland@frob.com>
11460
11461 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
11462 clobbers to asm.
11463
11464 2002-10-10 Andreas Jaeger <aj@suse.de>
11465
11466 * sysdeps/x86_64/_mcount.S: Restore correct registers.
11467
11468 2002-10-10 Ulrich Drepper <drepper@redhat.com>
11469
11470 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
11471
11472 2002-10-09 Ulrich Drepper <drepper@redhat.com>
11473
11474 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
11475 _dl_allocate_tls_init. Add rtld_hidden_proto.
11476 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
11477 rtld_hidden_def.
11478 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
11479
11480 * version.h (VERSION): Bump to 2.3.1.
11481
11482 * Make-dist: Add back one of the tar invocations removed before.
11483
11484 * stdlib/Makefile (distribute): Add allocalim.h.
11485
11486 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
11487 (__libc_tsd_address): Use correct variable name.
11488 Patch by Stefan Jones <stefan.jones@multigig.com>.
11489
11490 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
11491 Reported by edwardsg@sgi.com [PR libc/4678].
11492
11493 * Versions.def (libc): Add GLIBC_2.3.1.
11494 (libpthread): Add GLIBC_2.3.1.
11495
11496 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
11497 and __sigtimedwait.
11498 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
11499 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
11500 libc_hidden_def.
11501 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
11502 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
11503
11504 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
11505 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
11506 and make old name an alias.
11507 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
11508 and make old name an alias.
11509 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
11510 __libc_msgsnd.
11511
11512 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
11513 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
11514 __libc_writev.
11515 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
11516 old name an alias.
11517 * sysdeps/posix/readv.c: Likewise
11518 * sysdeps/unix/sysv/aix/readv.c: Likewise.
11519 * sysdeps/unix/sysv/linux/readv.c: Likewise.
11520 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
11521 old name an alias.
11522 * sysdeps/posix/writev.c: Likewise
11523 * sysdeps/unix/sysv/aix/writev.c: Likewise.
11524 * sysdeps/unix/sysv/linux/writev.c: Likewise.
11525
11526 * include/sys/wait.h: Declare __waitid.
11527 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
11528 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
11529 name an alias.
11530 * sysdeps/posix/waitid.c: Likewise.
11531 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
11532
11533 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
11534
11535 2002-10-07 Jakub Jelinek <jakub@redhat.com>
11536
11537 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
11538 prototypes.
11539 (__MAX_ALLOCA_CUTOFF): Define.
11540 Include allocalim.h.
11541 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
11542 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
11543 host_buffer depending on __libc_use_alloca.
11544 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
11545 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
11546 net_buffer depending on __libc_use_alloca.
11547 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
11548 buf depending on __libc_use_alloca.
11549 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
11550 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
11551 instead of hardcoded constants.
11552 Pass proper size argument to alloca and compute end for wide char
11553 version.
11554 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
11555 instead of hardcoded constants.
11556 * string/strcoll.c (strcoll): Likewise.
11557 * string/strxfrm.c (strxfrm): Likewise.
11558 * sysdeps/posix/readv.c (__readv): Likewise.
11559 * sysdeps/posix/writev.c (__writev): Likewise.
11560 * sysdeps/generic/allocalim.h: New file.
11561
11562 2002-10-08 Roland McGrath <roland@redhat.com>
11563
11564 * configure.in (aux_missing warning): Change "too old" to
11565 "incompatible versions", since for autoconf it's "too new" right now.
11566 * configure: Regenerated.
11567
11568 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
11569 one found doesn't work on our configure.in.
11570 * configure: Regenerated.
11571 * config.make.in (AUTOCONF): New substituted variable.
11572 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
11573 (autoconf-it): ... here, use that instead of defining conditionally.
11574 Use $(AUTOCONF) instead of literal autoconf.
11575 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
11576 with this condition.
11577 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
11578
11579 2002-10-08 Ulrich Drepper <drepper@redhat.com>
11580
11581 * Make-dist (dist): Cleanup a bit. We are not interested in the
11582 14 char filename limit anymore. Remove intermediate files and
11583 symlinks.
11584
11585 2002-10-05 Ulrich Drepper <drepper@redhat.com>
11586
11587 * po/sk.po: Update from translation team.
11588 * po/tr.po: Likewise.
11589 * po/gl.po: Likewise.
11590
11591 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
11592
11593 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
11594
11595 2002-10-03 Ulrich Drepper <drepper@redhat.com>
11596
11597 * version.h (RELEASE): Change to stable.
11598
11599 2002-10-03 Jakub Jelinek <jakub@redhat.com>
11600
11601 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
11602 __syscall_exit_group): New prototypes.
11603
11604 2002-10-03 Ulrich Drepper <drepper@redhat.com>
11605
11606 * glibc 2.3 released.
11607
11608
11609 See ChangeLog.13 for earlier changes.