]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
Update.
[thirdparty/glibc.git] / ChangeLog
1 2003-09-12 Ulrich Drepper <drepper@redhat.com>
2
3 * sysdeps/unix/sysv/linux/if_index.c: Use only non-cancelable
4 interfaces.
5
6 * grp/Makefile (CFLAGS-getgrgid_r.c, CFLAGS-getgrnam_r.c,
7 CFLAGS-fgetgrent.c, CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c,
8 CFLAGS-initgroups.c, CFLAGS-getgrgid.c): Add -fexceptions.
9 * inet/Makefile (CFLAGS-either_ntoh.c, CFLAGS-either_hton.c,
10 CFLAGS-getnetgrent.c, CFLAGS-getnetgrent_r.c): Likewise.
11 * io/Makefile (CFLAGS-posix_fallocate.c, CFLAGS-posix_fallocate64.c):
12 Likewise.
13 * misc/Makefile (CFLAGS-err.c): Likewise.
14 * posix/Makefile (CFLAGS-getaddrinfo.c, CFLAGS-spawn.c,
15 CFLAGS-spawnp.c, CFLAGS-spawni.c, CFLAGS-pause.c, CFLAGS-glob.c,
16 CFLAGS-glob64.c): Likewise.
17 * pwd/Makefile (CFLAGS-getpw.c): Likewise.
18 * shadow/Makefile (CFLAGS-fgetspent.c, CFLAGS-fgetspent_r.c,
19 CFLAGS-putspent.c, CFLAGS-getspnam.c, CFLAGS-getspnam_r.c): Likewise.
20 * stdio-common/Makefile (CFLAGS-cuserid.c): Likewise.
21 * sunrpc/Makefile (CFLAGS-openchild.c): Likewise.
22
23 * stdlib/Makefile (CFLAGS-mkstemp.c): Remove definition.
24
25 * libio/stdio.h: Remove __THROW from cuserid prototype.
26
27 * locale/loadarchive.c: Use only non-cancelable interfaces.
28 * resolv/herror.c (herror): Likewise.
29
30 * malloc/hooks.c: Before using IO stream mark stream so it uses
31 only non-cancelable interfaces.
32 * malloc/malloc.c: Likewise.
33 * posix/getopt.c: Likewise.
34
35
36 2003-09-11 Jakub Jelinek <jakub@redhat.com>
37
38 * Makerules (LDFLAGS-c.so): Remove -u __register_frame.
39
40 2003-09-12 Ulrich Drepper <drepper@redhat.com>
41
42 * stdio-common/stdio_ext.h: Mark most functions with __THROW.
43
44 * misc/err.h: Remove __THROW from all prototypes.
45
46 * posix/getopt.h (__THROW): Define if not already defined. Add
47 __THROW to the getopt functions.
48
49 2003-09-11 Ulrich Drepper <drepper@redhat.com>
50
51 * io/Makefile (CFLAGS-lockf.c): Add -fexceptions.
52 (CFLAGS-fts.c): Likewise.
53 * io/fcntl.h: Remove __THROW from lockf prototypes.
54 * io/fts.h: Remove most __THROW.
55
56 2003-09-11 H.J. Lu <hongjiu.lu@intel.com>
57
58 * elf/tls-macros.h (TLS_IE): Add a stop bit for ia64.
59 (TLS_LD): Likewise.
60 (TLS_GD): Likewise.
61
62 2003-09-11 Jakub Jelinek <jakub@redhat.com>
63
64 * libio/fileops.c (_IO_new_file_overflow): Add INTUSE to
65 _IO_free_backup_area call.
66
67 2003-09-10 Chris Demetriou <cgd@broadcom.com>
68
69 * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Fix
70 syscall invocation.
71 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
72 * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
73 Also, only assert off_t size is 4 for N32 and O32, and clean up
74 white space.
75 * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
76
77 2003-09-10 Roland McGrath <roland@redhat.com>
78
79 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr):
80 Don't use c_ispeed under [! _HAVE_STRUCT_TERMIOS_C_ISPEED].
81 Don't use c_ospeed under [! _HAVE_STRUCT_TERMIOS_C_OSPEED].
82 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
83 Reported by Daniel Jacobowitz <drow@mvista.com>.
84
85 2003-09-10 Jakub Jelinek <jakub@redhat.com>
86
87 * string/Makefile (strop-tests): Add memccpy.
88 * string/test-memccpy.c: New test.
89
90 2003-09-09 Jakub Jelinek <jakub@redhat.com>
91
92 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT): Add
93 siginfo_t * argument before, change into struct ucontext *.
94 (SIGCONTEXT_EXTRA_ARGS): Define to _si,.
95 (GET_PC, GET_FRAME, GET_STACK): Adjust for ctx being a pointer
96 instead of structure.
97 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (REGISTER_DUMP):
98 Likewise.
99
100 2003-09-09 Ulrich Drepper <drepper@redhat.com>
101
102 * string/stratcliff.c (main): Check memccpy.
103
104 2003-04-11 Jes Sorensen <jes@wildopensource.com>
105
106 * sysdeps/ia64/memccpy.S: When recovering for src_aligned and the
107 character is found during recovery, use correct register when
108 determining the position of the found character.
109
110 2003-04-01 Jes Sorensen <jes@wildopensource.com>
111
112 * sysdeps/ia64/memccpy.S: Use speculatively loads for readahead to
113 avoid segfaults when reading from unmapped pages. For aligned
114 reload and continue, for misaligned, roll back and use byte copy.
115 Save ar.ec on entry and restore on exit.
116
117 2003-09-09 Chris Demetriou <cgd@broadcom.com>
118
119 * sysdeps/unix/mips/sysdep.h (PSEUDO_END): Undef before defining.
120
121 2003-09-08 Chris Demetriou <cgd@broadcom.com>
122
123 * sysdeps/mips/mips64/n32/Implies: Move ieee754/ldbl-128 to
124 the top of the list.
125 * sysdeps/mips/mips64/n64/Implies: Likewise.
126
127 2003-09-08 Roland McGrath <roland@frob.com>
128
129 * sysdeps/unix/sysv/linux/speed.c
130 (cfsetospeed): Only set c_ospeed under [_HAVE_STRUCT_TERMIOS_C_OSPEED].
131 (cfsetispeed): Only set c_ispeed under [_HAVE_STRUCT_TERMIOS_C_ISPEED].
132 * sysdeps/unix/sysv/linux/bits/termios.h
133 (_HAVE_STRUCT_TERMIOS_C_ISPEED, _HAVE_STRUCT_TERMIOS_C_OSPEED): Define.
134 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
135 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
136
137 2003-09-08 Ulrich Drepper <drepper@redhat.com>
138
139 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Undo last change.
140 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
141
142 2003-09-08 Jakub Jelinek <jakub@redhat.com>
143
144 * sysdeps/generic/bits/types.h (__quad_t): Make long int if 64-bit.
145 (__u_quad_t): Make unsigned long int if 64-bit.
146 (__SQUAD_TYPE): Make long int if 64-bit.
147 (__UQUAD_TYPE): Make unsigned long int if 64-bit.
148 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Remove.
149
150 2003-09-08 Ulrich Drepper <drepper@redhat.com>
151
152 * Makefile (tests): Run check-c++-types.sh if possible.
153 * scripts/check-c++-types.h: New file.
154 * scripts/data/c++-types-i386-linux-gnu.data: New file.
155
156 2003-09-08 Andreas Jaeger <aj@suse.de>
157
158 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
159 Use struct sigcontext.
160
161 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
162 Use struct sigcontext.
163 (GET_PC): Adopt.
164 (GET_FRAME): Likewise.
165 (GET_STACK): Likewise.
166
167 2003-09-08 Wolfram Gloger <wg@malloc.de>
168
169 * malloc/malloc.c (sYSMALLOc): Move foreign sbrk accounting into
170 contiguous case. Bug report from Prem Gopalan <prem@mazunetworks.com>.
171 (mALLOPt): Avoid requirement of C99.
172
173 2003-09-08 Ulrich Drepper <drepper@redhat.com>
174
175 * libio/bug-ftell.c: Include <sys/types.h>.
176 (main): Mark cp as const.
177
178 2003-09-07 Jakub Jelinek <jakub@redhat.com>
179
180 * sysdeps/unix/sysv/linux/syscalls.list (fcntl): Remove.
181 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: Remove.
182
183 2003-09-05 Roland McGrath <roland@redhat.com>
184
185 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Fill in c_ispeed
186 and c_ospeed fields.
187 * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Set c_ospeed field.
188 (cfsetispeed): Set c_ispeed field.
189 * sysdeps/unix/sysv/linux/tcsetattr.c (IBAUD0): Define unconditionally
190 to match corresponding speed.c code.
191
192 2003-09-06 Ulrich Drepper <drepper@redhat.com>
193
194 * libio/wfileops.c (_IO_wfile_underflow): Mark beginning of the
195 narrow character buffer.
196 * libio/Makefile: Add rules to build and run bug-ftell.
197 * libio/bug-ftell.c: New file.
198
199 * stdio-common/vfprintf.c: Don't use the first grouping number twice.
200
201 * stdio-common/vfscanf.c (vfscanf): Fix recognition of characters
202 matching the decimal point and possibly leading the thousands
203 separator. This caused the recognition of thousands separators to
204 always fail.
205
206 2003-09-05 Ulrich Drepper <drepper@redhat.com>
207
208 * libio/fileops.c (_IO_new_file_overflow): Handle switching to
209 write mode from read in backup buffer.
210 * libio/Makefile (tests): Add bug-ungetc2.
211 * libio/bug-ungetc2.c: New file.
212
213 2003-09-05 Roland McGrath <roland@redhat.com>
214
215 * nss/getXXbyYY.c (FUNCTION_NAME): Remove unused variable.
216
217 2003-09-04 Roland McGrath <roland@frob.com>
218
219 * sysdeps/mach/hurd/mmap.c (__mmap): If io_map fails with MIG_BAD_ID,
220 EOPNOTSUPP, or ENOSYS, change it to ENODEV.
221
222 2003-09-04 H.J. Lu <hongjiu.lu@intel.com>
223
224 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ):
225 Fix a typo.
226
227 2003-09-05 Andreas Jaeger <aj@suse.de>
228
229 * sysdeps/i386/bits/string.h (__memrchr): Do addition in assembler
230 to make it conforming C.
231 * sysdeps/i386/i486/bits/string.h (__memrchr): Likewise.
232
233 * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Change
234 prototype to use variable argument lists and get the possible one
235 argument via va_arg.
236 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Likewise.
237 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: New.
238
239 2003-09-04 Ulrich Drepper <drepper@redhat.com>
240
241 * posix/unistd.h: Add back __THROW to sysconf, pathconf, fpathconf.
242
243 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
244 Report correct value for vxfs.
245 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define VXFS_SUPER_MAGIC.
246
247 * gmon/gmon.c: Use only not-cancelable syscalls to write profiling
248 data.
249
250 * sysdeps/generic/utmp_file.c: Use not-cancelable syscalls all
251 over the place. It would be allowed to have these functions as
252 cancellation points but the cleanup would be ugly and a lot of
253 work.
254
255 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Define.
256 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Define.
257
258 * include/fcntl.h (__fcntl_nocancel): Declare.
259 * sysdeps/unix/sysv/linux/fcntl.c: New file.
260 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Only enable
261 cancellation if absolutely needed.
262 (__fcntl_nocancel): Define.
263
264 * posix/unistd.h (gethostid): Remove __THROW. Clarify comment.
265 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gethostid.c): Add
266 -fexceptions.
267 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use
268 extend_alloca.
269
270 * resolv/res_init.c (__res_nclose): Use close_not_cancel_no_status
271 instead of __close.
272
273 * nss/getXXbyYY.c (FUNCTION_NAME): Add a few casts. Remove
274 unnecessary errno handling.
275
276 * nss/getXXbyYY_r.c (INTERNAL): Use better variable name.
277 Initialize it in all cases. Change it to be a bit more like the
278 code we had before.
279
280 2003-09-04 Jakub Jelinek <jakub@redhat.com>
281
282 * libio/fileops.c (_IO_file_read, _IO_new_file_write): Add
283 __builtin_expect.
284 (_IO_file_open): Likewise. Use close_not_cancel.
285
286 2003-09-04 Ulrich Drepper <drepper@redhat.com>
287
288 * libio/libio.h: Define _IO_FLAGS2_NOTCANCEL.
289 * libio/fileops.c [_LIBC]: Remove close macro.
290 (_IO_file_open): If _IO_FLAGS2_NOTCANCEL is set, use open_not_cancel.
291 (_IO_new_file_open): Recognize 'c' flag in mode string.
292 (_IO_file_read): If _IO_FLAGS2_NOTCANCEL is set use read_not_cancel.
293 (_IO_new_file_write): If _IO_FLAGS2_NOTCANCEL is set use
294 write_not_cancel.
295 * iconv/gconv_conf.c: Use fopen with 'c' mode flag.
296 * inet/rcmd.c: Likewise.
297 * inet/ruserpass.c: Likewise.
298 * intl/localealias.c: Likewise.
299 * malloc/mtrace.c: Likewise.
300 * misc/getpass.c: Likewise.
301 * misc/getttyent.c: Likewise.
302 * misc/mntent_r.c: Likewise.
303 * misc/getusershell.c: Likewise.
304 * nss/nsswitch.c: Likewise.
305 * resolv/res_hconf.c: Likewise.
306 * resolv/res_init.c: Likewise.
307 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
308 * time/getdate.c: Likewise.
309 * time/tzfile.c: Likewise.
310 * misc/fstab.h: Undo last change.
311 * misc/mntent.h: Likewise.
312 * misc/Makefile: Remove CFLAGS-mntent_r.c, CFLAGS-mntent.c, and
313 CFLAGS-fstab.c definition.
314
315 2003-09-04 Jakub Jelinek <jakub@redhat.com>
316
317 * sysdeps/generic/unwind.h (_Unwind_GetBSP): Add prototype.
318
319 2003-09-03 Ulrich Drepper <drepper@redhat.com>
320
321 * nss/getXXbyYY_r.c (INTERNAL): Explicitly set errno and avoid
322 returning ERANGE if this wasn't intended.
323
324 2003-09-03 Jakub Jelinek <jakub@redhat.com>
325
326 * intl/loadmsgcat.c (open, close, read, mmap, munmap): Define as
327 function-like macros.
328
329 2003-09-03 Ulrich Drepper <drepper@redhat.com>
330
331 * grp/Makefile (CFLAGS-getgrent_r.c): Add -fexceptions.
332 (CFLAGS-getgrent.c): Likewise.
333 * pwd/Makefile (CFLAGS-getpwent_r.c): Add -fexceptions.
334 (CFLAGS-getpwent.c): Likewise.
335 * shadow/Makefile (CFLAGS-getspent_r.c): Add -fexceptions.
336 (CFLAGS-getspent.c): Likewise.
337
338 * inet/Makefile: Add -fexceptions to CFLAGS for the various
339 getXXent and getXXbyYY functions.
340
341 * locale/loadlocale.c: Use not-cancelable variants of open, close,
342 and read.
343
344 2003-09-02 Jakub Jelinek <jakub@redhat.com>
345
346 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
347 rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait, rt_sigqueueinfo and
348 rt_sigpending.
349 * sysdeps/unix/sysv/linux/alpha/sigaction.c (__syscall_rt_sigaction):
350 New prototype.
351 * sysdeps/unix/sysv/linux/arm/syscalls.list (__syscall_*): Remove
352 unused __syscall_ stubs.
353 * sysdeps/unix/sysv/linux/arm/Makefile (sysdep_routines): Remove
354 rt_*.
355 * sysdeps/unix/sysv/linux/cris/Makefile: Removed.
356 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list
357 (__syscall_recvfrom, __syscall_sendto): Remove unused aliases.
358 * sysdeps/unix/sysv/linux/mips/syscalls.list (__syscall_*): Remove
359 unused __syscall_ stubs.
360 * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Remove rt_*.
361 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
362 (__syscall_*): Remove unused __syscall_ stubs.
363 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
364 (__syscall_*): Likewise.
365 * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines): Remove
366 rt_*.
367 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__syscall_*):
368 Remove unused __syscall_ stubs.
369 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_routines): Remove rt_*.
370 * sysdeps/unix/sysv/linux/rt_sigaction.c: Removed.
371 * sysdeps/unix/sysv/linux/rt_sigpending.c: Removed.
372 * sysdeps/unix/sysv/linux/rt_sigprocmask.c: Removed.
373 * sysdeps/unix/sysv/linux/rt_sigqueueinfo.c: Removed.
374 * sysdeps/unix/sysv/linux/rt_sigreturn.c: Removed.
375 * sysdeps/unix/sysv/linux/rt_sigsuspend.c: Removed.
376 * sysdeps/unix/sysv/linux/rt_sigtimedwait.c: Removed.
377 * sysdeps/unix/sysv/linux/s_pread64.c: Removed.
378 * sysdeps/unix/sysv/linux/s_pwrite64.c: Removed.
379 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Remove unused
380 __syscall_* prototypes.
381 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Likewise.
382 * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
383 * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
384 * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
385 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
386 * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
387 * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
388 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
389 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
390 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
391 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
392 * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
393 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
394 * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
395 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
396 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
397 * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
398 * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
399 * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
400 * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
401 * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
402 * sysdeps/unix/sysv/linux/i386/lockf64.c: Likewise.
403 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
404 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
405 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
406 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
407 * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
408 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
409 * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
410 * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
411 * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
412 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
413 * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
414 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
415 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
416 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
417 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
418 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
419 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
420 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
421 * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
422 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
423 * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
424 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
425 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
426 * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
427 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
428 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
429 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
430 * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
431 * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
432 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
433 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
434 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
435 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
436 * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
437 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c: Likewise.
438 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
439 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
440 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
441 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
442 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c: Likewise.
443 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
444 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
445 * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
446 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
447 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
448 * sysdeps/unix/sysv/linux/execve.c: Likewise.
449 * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
450 * sysdeps/unix/sysv/linux/reboot.c: Likewise.
451 * sysdeps/unix/sysv/linux/_exit.c: Likewise.
452 * sysdeps/unix/sysv/linux/ftruncate64.c: Likewise.
453 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
454 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
455 * sysdeps/unix/sysv/linux/gai_sigqueue.c: Likewise.
456 * sysdeps/unix/sysv/linux/readahead.c: Likewise.
457 * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
458 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
459 * sysdeps/unix/sysv/linux/getdents.c: Likewise.
460 * sysdeps/unix/sysv/linux/readv.c: Likewise.
461 * sysdeps/unix/sysv/linux/getpriority.c: Likewise.
462 * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
463 * sysdeps/unix/sysv/linux/ipc_priv.h: Likewise.
464 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
465 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
466 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
467 * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
468 * sysdeps/unix/sysv/linux/ustat.c: Likewise.
469 * sysdeps/unix/sysv/linux/poll.c: Likewise.
470 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
471 * sysdeps/unix/sysv/linux/writev.c: Likewise.
472 * sysdeps/unix/sysv/linux/pread.c: Likewise.
473 * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
474 * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
475 * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
476 * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
477 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
478 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
479 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
480 * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
481 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
482 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
483
484 2003-09-02 Jakub Jelinek <jakub@redhat.com>
485
486 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Revert last change.
487 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: New file.
488 * sysdeps/unix/sysv/linux/sparc/syscalls.list: New file.
489
490 2003-09-02 Ulrich Drepper <drepper@redhat.com>
491
492 * stdio-common/Makefile (CFLAGS-vprintf.c): Add -fexceptions.
493
494 * intl/loadmsgcat.c: For _LIBC, call not cancelable versions of
495 open, close, and read.
496
497 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Also define
498 *_nocancel name.
499
500 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add waitpid.
501
502 * libio/Makefile (CFLAGS-oldtmpfile.c): Add -fexceptions.
503 * sysdeps/generic/tmpfile.c (tmpfile): Use __unlink instead of remove.
504 * libio/oldtmpfile.c (__old_tmpfile): Likewise.
505
506 * misc/Makefile (CFLAGS-getusershell.c): Add -fexceptions.
507
508 * io/Makefile (CFLAGS-statfs.c): Add -fexceptions.
509 (CFLAGS-fstatfs.c): Likewise.
510 (CFLAGS-statvfs.c): Likewise.
511 (CFLAGS-fstatvfs.c): Likewise.
512
513 2003-09-01 Ulrich Drepper <drepper@redhat.com>
514
515 * misc/Makefile (CFLAGS-getsysstats.c): Add -fexceptions.
516 * posix/unistd.h: Remove __THROW from pathconf, fpathconf,
517 sysconf.
518 * posix/Makefile (CFLAGS-sysconf.c): Add -fexceptions.
519 (CFLAGS-pathconf.c): Likewise.
520 (CFLAGS-fpathconf.c): Likewise.
521
522 * misc/Makefile (CFLAGS-fstab.c): Add -fexceptions.
523 * misc/fstab.h: Remove all __THROW.
524 * misc/Makefile (CFLAGS-mntent.c): Add -fexceptions.
525 (CFLAGS-mntent_r.c): Likewise.
526 * misc/mntent.h: Remove most __THROW.
527
528 * misc/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
529 (CFLAGS-mkstemp64.c): Likewise.
530
531 * sysdeps/generic/wordexp.c (parse_comm): Disable cancellation
532 around call to exec_comm.
533 * posix/wordexp.h: Remove __THROW from wordexp.
534 * posix/Makefile (CFLAGS-wordexp.c): Add -fexceptions.
535
536 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Use
537 not-cancelable functions.
538
539 * libio/Makefile (CFLAGS-oldiofopen.c): Add -fexceptions.
540 (CFLAGS-iofopen.c): Likewise.
541 (CFLAGS-iofopen64.c): Likewise.
542
543 * stdlib/fmtmsg.c (fmtmsg): Disable cancellation around output
544 functions.
545 * stdlib/Makefile (CFLAGS-fmtmsg.c): Add -fexceptions.
546 * stdlib/fmtmsg.h: Remove __THROW from fmtmsg.
547
548 * stdlib/stdlib.h: Remove __THROW from posix_openpt and getpt.
549 * login/Makefile (CFLAGS-getpt.c): Add -fexceptions.
550
551 2003-09-01 Thorsten Kukuk <kukuk@suse.de>
552
553 * nis/nss_compat/compat-spwd.c (getspnam_plususer): Return
554 NSS_STATUS_SUCCESS if entry was found.
555 (getspent_next_file): Store user in blacklist after entry
556 was found, use innetgr.
557
558 2003-09-01 Jakub Jelinek <jakub@redhat.com>
559
560 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: New.
561 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: New.
562
563 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Fix tls offset
564 computation for TCB_AT_TP. Support l_firstbyte_offset != 0 for
565 DTV_AT_TP, optimize.
566
567 2003-08-31 Kaz Kojima <kkojima@rr.iij4u.or.jp>
568
569 * sysdeps/unix/sysv/linux/sh/Versions: Add posix_fadvise64 and
570 posix_fallocate64 at GLIBC_2.3.3.
571 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO_ERRVAL): Define.
572 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
573
574 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
575
576 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove __syscall_
577 functions.
578
579 2003-08-31 Ulrich Drepper <drepper@redhat.com>
580
581 * libio/libioP.h (_IO_acquire_lock_fct): Define as inline function.
582 Code by Richard Henderson.
583
584 2003-08-31 Philip Blundell <philb@gnu.org>
585
586 * sysdeps/unix/sysv/linux/arm/Versions: Add posix_fadvise64 and
587 posix_fallocate64 at GLIBC_2.3.3.
588
589 2003-08-31 Ulrich Drepper <drepper@redhat.com>
590
591 * sysdeps/x86_64/bsd-_setjmp.S: Use HIDDEN_JUMPTARGET.
592 * include/setjmp.h: Add libc_hidden_proto for __sigsetjmp.
593
594 2003-08-30 Jakub Jelinek <jakub@redhat.com>
595
596 * sysdeps/generic/sysdep.h (cfi_window_save, CFI_WINDOW_SAVE): Define.
597 * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Allow file to be
598 included multiple times.
599 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Pass
600 ptid, tls, ctid arguments to the kernel.
601 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
602 Use INTERNAL_SYSCALL instead of __syscall_getpagesize.
603 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
604 (__libc_sigaction): Use INLINE_SYSCALL instead of
605 __syscall_rt_sigaction.
606 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
607 (__syscall_getgroups, __syscall_getpagesize, __syscall__llseek,
608 __syscall_setfsgid, __syscall_setfsuid, __syscall_setgid,
609 __syscall_setgroups, __syscall_setregid, __syscall_setreuid,
610 __syscall_ipc, __syscall_setuid, __syscall_rt_sigaction,
611 __syscall_rt_sigpending, __syscall_rt_sigprocmask,
612 __syscall_rt_sigqueueinfo, __syscall_rt_sigsuspend,
613 __syscall_rt_sigtimedwait): Remove unneeded syscall stubs.
614 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (sysdep_routines):
615 Remove rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait,
616 rt_sigqueueinfo, rt_sigaction and rt_sigpending.
617 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
618 (__CLONE_SYSCALL_STRING): Define.
619 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Add
620 CFI directives.
621 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
622 (__CLONE_SYSCALL_STRING): Define.
623 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_CLONE_SYSCALL):
624 Define.
625 * sysdeps/unix/sysv/linux/sparc/system.c: New file.
626
627 2003-08-30 Ulrich Drepper <drepper@redhat.com>
628
629 * sunrpc/rpc/clnt.h: Remove a few __THROW.
630 * sunrpc/Makefile (CFLAGS-auth_unix.c): Add -fexceptions.
631 (CFLAGS-key_call.c): Likewise.
632 (CFLAGS-pmap_rmt.c): Likewise.
633 (CFLAGS-clnt_perr.c): Likewise.
634 * sunrpc/rpc/auth.h: Remove serveral __THROW.
635
636 * inet/Makefile (CFLAGS-gethstbyad_r.c): Add -fexceptions.
637 (CFLAGS-gethstbynm_r.c): Likewise.
638 (CFLAGS-gethstbynm2_r.c): Likewise.
639 (CFLAGS-rcmd.c): Likewise.
640 * resolv/Makefile (CFLAGS-res_hconf.c): Add -fexceptions.
641
642 * argp/Makefile (CFLAGS-argp-help.c): Add -fexceptions.
643 (CFLAGS-argp-fmtstream.c): Likewise.
644 * argp/argp.h: Remove a number of __THROW.
645
646 * misc/sys/syslog.h (vsyslog): Remove __THROW.
647
648 * misc/Makefile (CFLAGS-getpass.c): Add -fexceptions.
649 * misc/getpass.c (getpass): Add cleanup handler to ensure the
650 stream is closed even if the thread is canceled.
651 (call_fclose): New function.
652 * posix/unistd.h: Remove __THROW from getpass prototype.
653
654 * posix/Makefile (CFLAGS-getopt.c): Add -fexceptions.
655
656 * signal/signal.h (psignal): Remove __THROW.
657 * stdio-common/Makefile (CFLAGS-psignal.c): Add -fexceptions.
658
659 * misc/Makefile (CFLAGS-error.c): Define.
660 * misc/error.c (error): Disable cancellation handling around the
661 actual output. The message should in any case be printed.
662 (error_at_line): Likewise.
663
664 * misc/error.h: Protect parameter names with leading __.
665
666 2003-08-28 Carlos O'Donell <carlos@baldric.uwo.ca>
667
668 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Add semtimedop.
669
670 2003-08-29 Jakub Jelinek <jakub@redhat.com>
671
672 * libio/iofgetpos64.c (_IO_new_fgetpos64): Move lock release to the
673 end.
674
675 2003-08-29 Ulrich Drepper <drepper@redhat.com>
676
677 * libio/stdio.h: Remove a few more __THROW.
678
679 2003-08-29 Jakub Jelinek <jakub@redhat.com>
680
681 * libio/Makefile: Compile fputc.c, fputwc.c, freopen64.c, freopen.c,
682 fseek.c, fseeko64.c, fseeko.c, ftello64.c, ftello.c, fwide.c, getc.c,
683 getchar.c, getwc.c, getwchar.c, iofclose.c, iofflush.c, iofgetpos64.c,
684 iofgetpos.c, iofgets.c, iofgetws.c, iofputs.c, iofputws.c, iofread.c,
685 iofsetpos64.c, iofsetpos.c, ioftell.c, iofwrite.c, iogetdelim.c,
686 iogetline.c, iogets.c, iogetwline.c, ioputs.c, ioseekoff.c,
687 ioseekpos.c, iosetbuffer.c, iosetvbuf.c, ioungetc.c, ioungetwc.c,
688 oldfileops.c, oldiofclose.c, oldiofgetpos64.c, oldiofgetpos.c,
689 oldiofsetpos64.c, oldiofsetpos.c, peekc.c, putc.c, putchar.c, putwc.c,
690 putwchar.c and rewind.c with exceptions.
691 * sysdeps/generic/bits/stdio-lock.h (_IO_acquire_lock,
692 _IO_release_lock): Define.
693 * libio/fileops.c (_IO_new_file_underflow): Use it.
694 * libio/fputc.c (fputc): Likewise.
695 * libio/fputwc.c (fputwc): Likewise.
696 * libio/freopen64.c (freopen64):
697 * libio/freopen.c (freopen): Likewise.
698 * libio/fseek.c (fseek): Likewise.
699 * libio/fseeko64.c (fseeko64): Likewise.
700 * libio/fseeko.c (fseeko): Likewise.
701 * libio/ftello64.c (ftello64): Likewise.
702 * libio/ftello.c (ftello): Likewise.
703 * libio/fwide.c (fwide): Likewise.
704 * libio/getc.c (_IO_getc): Likewise.
705 * libio/getchar.c (getchar): Likewise.
706 * libio/getwc.c (_IO_getwc): Likewise.
707 * libio/getwchar.c (getwchar): Likewise.
708 * libio/iofclose.c (_IO_new_fclose):
709 * libio/iofflush.c (_IO_fflush): Likewise.
710 * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
711 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
712 * libio/iofgets.c (_IO_fgets): Likewise.
713 * libio/iofgetws.c (fgetws): Likewise.
714 * libio/iofputs.c (_IO_fputs): Likewise.
715 * libio/iofputws.c (fputws): Likewise.
716 * libio/iofread.c (_IO_fread): Likewise.
717 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
718 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
719 * libio/ioftell.c (_IO_ftell): Likewise.
720 * libio/iofwrite.c (_IO_fwrite): Likewise.
721 * libio/iogetdelim.c (_IO_getdelim): Likewise.
722 * libio/iogets.c (_IO_gets): Likewise.
723 * libio/ioputs.c (_IO_puts): Likewise.
724 * libio/ioseekoff.c (_IO_seekoff): Likewise.
725 * libio/ioseekpos.c (_IO_seekpos): Likewise.
726 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
727 * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
728 * libio/ioungetc.c (_IO_ungetc): Likewise.
729 * libio/ioungetwc.c (ungetwc): Likewise.
730 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
731 * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
732 * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
733 * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
734 * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
735 * libio/peekc.c (_IO_peekc_locked): Likewise.
736 * libio/putc.c (_IO_putc): Likewise.
737 * libio/putchar.c (putchar): Likewise.
738 * libio/putwc.c (putwc): Likewise.
739 * libio/putwchar.c (putwchar): Likewise.
740 * libio/rewind.c (rewind): Likewise.
741 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
742
743 2003-08-29 Ulrich Drepper <drepper@redhat.com>
744
745 * signal/signal.h: sighold, sigrelse, sigignore, sigset were
746 available in XPG4.2.
747
748 2003-08-27 Phil Knirsch <pknirsch@redhat.com>
749 Jakub Jelinek <jakub@redhat.com>
750
751 * sunrpc/svc.c (svc_getreqset): Fix fds_bits reading on 64-bit
752 big endian arches. Don't read beyond end of fds_bits array.
753
754 2003-04-27 Bruno Haible <bruno@clisp.org>
755
756 * manual/message.texi (Advanced gettext functions): Add information
757 about Korean, Portuguese, Latvian. Gaeilge is also known as Irish.
758 Add section about Lithuanian, reported by Ricardas Cepas
759 <rch@richard.eu.org>.
760 Add information about Croatian.
761 Ukrainian is like Russian, reported by Andy Rysin <arysin@yahoo.com>.
762 Remove remark about continuation lines that is not true for PO files.
763 Fix formula for Slovenian, reported by Roman Maurer
764 <roman.maurer@amis.net>.
765
766 2003-08-27 Ulrich Drepper <drepper@redhat.com>
767
768 * math/math_private.h: Declare __copysignf.
769 * sysdeps/ieee754/flt-32/s_scalbnf.c: Use __copysignf instead of
770 copysignf.
771
772 * sysdeps/x86_64/fpu/bits/mathinline.h: Define __signbitf,
773 __signbit, and __signbitl inline functions.
774
775 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Use
776 HIDDEN_JUMPTARGET instead of JUMPTARGET to call exit().
777
778 * sysdeps/x86_64/bsd-_setjmp.S [PIC]: Jump to __GI___sigsetjmp.
779 * sysdeps/x86_64/setjmp.S: Add libc_hidden_def for __sigsetjmp.
780
781 2003-08-27 Jakub Jelinek <jakub@redhat.com>
782
783 * inet/inet_mkadr.c (inet_makeaddr): Optimize.
784
785 2003-08-27 Ulrich Drepper <drepper@redhat.com>
786
787 * include/stdio.h: Add declarations for __builtin_fwrite and
788 __builtin_fwrite_unlocked.
789
790 2003-08-27 Jakub Jelinek <jakub@redhat.com>
791
792 * sysdeps/unix/opendir.c (__opendir): Make sure even struct dirent64
793 fits into allocation. Add padding on 32-bit arches so that
794 dirp->data is enough aligned for struct dirent64.
795 Avoid clearing of the buffer, just clear DIR structure.
796
797 2003-08-26 Ulrich Drepper <drepper@redhat.com>
798
799 * nss/nsswitch.c: Add libc_hidden_def for __nss_lookup_function.
800 * nss/nsswitch.h: Add libc_hidden_proto for __nss_lookup_function.
801
802 2003-08-26 Steven Munroe <sjmunroe@us.ibm.com>
803
804 * sysdeps/powerpc/powerpc64/elf/Makefile: New file.
805
806 2003-08-26 Jakub Jelinek <jakub@redhat.com>
807
808 * login/programs/utmpdump.c (print_entry): Cast tv_usec to long
809 to match format string.
810 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (union semun): Add
811 __old_buf.
812 (__new_semctl): Shut up warning.
813 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
814 (_dl_string_hwcap): Add __attribute__ ((always_inline)).
815
816 2003-08-26 Jakub Jelinek <jakub@redhat.com>
817
818 * elf/ldconfig.c (search_dir): When checking for GNU-style .so
819 link file use the real file name, not the resolved name we got by
820 following the symlinks.
821
822 2003-08-25 Ulrich Drepper <drepper@redhat.com>
823
824 * libio/oldfileops.c (_IO_old_file_init): Initialize _mode field
825 if the object size is large enough.
826
827 2003-08-25 Jakub Jelinek <jakub@redhat.com>
828
829 * elf/ldconfig.c (search_dir): Treat symlink as regular file
830 if it won't point to itself unless it is .so symlink for the linker.
831
832 2003-08-25 Ulrich Drepper <drepper@redhat.com>
833
834 * libio/libio.h (_IO_fwide): In the mode==0 optimization, don't
835 use _mode if _IO_fwide_maybe_incompatible.
836 * libio/iofwide.c (_IO_fwide): Move the test for mode == 0 after
837 the compatibility test.
838
839 2003-08-25 Jakub Jelinek <jakub@redhat.com>
840
841 * elf/cache.c (save_cache): Don't write beyond end of file_entries
842 buffer.
843 Duplicate last old cache entry if the count would be odd.
844
845 2003-08-25 Andreas Jaeger <aj@suse.de>
846
847 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Cast arguments of
848 __LONG_LONG_PAIR to long.
849
850 2003-08-25 Philip Blundell <philb@gnu.org>
851
852 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define.
853 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
854
855 2003-08-18 Alfred M. Szmidt <ams@kemisten.nu>
856
857 * sysdeps/generic/bits/libc-lock.h (__libc_cleanup_pop): Redefine
858 and use __libc_cleanup_region_end instead.
859
860 2003-08-25 Ulrich Drepper <drepper@redhat.com>
861
862 * elf/ldconfig.c (search_dir): Revert patch of 2003-7-21.
863
864 2003-08-22 Ulrich Drepper <drepper@redhat.com>
865
866 * io/fcntl.h (posix_fallocate): Change type of third parameter to
867 off_t.
868 (posix_fallocate64): Change type of third parameter to off64_t.
869 * sysdeps/generic/posix_fallocate.c: Adjust for type change.
870 * sysdeps/posix/posix_fallocate.c: Likewise.
871 * sysdeps/generic/posix_fallocate64.c: Likewise.
872 * sysdeps/posix/posix_fallocate64.c: Likewise. Add compatibility
873 code for 32-bit platforms.
874 * sysdeps/unix/sysv/linux/i386/Versions: Add new version for
875 posix_fallocate64.
876 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Likewise.
877 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
878 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
879
880 2003-08-19 Ulrich Drepper <drepper@redhat.com>
881
882 * string/bits/string2.h (__STRING2_COPY_TYPE): Add attribute to
883 the type, not to name.
884
885 * stdio-common/test-vfprintf.c (main): Don't write temporary file
886 into source directory.
887
888 * malloc/malloc.c (_int_free): Add cheap test for some invalid
889 block sizes.
890
891 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo in
892 syscall name.
893
894 2003-08-18 Ulrich Drepper <drepper@redhat.com>
895
896 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Fold EISDIR error
897 into EINVAL.
898
899 2003-08-18 H.J. Lu <hongjiu.lu@intel.com>
900
901 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Use _dl_reloc_bad_type.
902 (elf_machine_lazy_rel): Likewise.
903
904 2003-08-18 Art Haas <ahaas@airmail.net>
905
906 * malloc/malloc.h: Remove unneeded ';' where closing the C++
907 extern block.
908
909 2003-08-18 Ulrich Drepper <drepper@redhat.com>
910
911 * sysdeps/ia64/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Support
912 loading big binaries where @gprel(sym) cannot be handled in 'add'
913 but instead has to be used with 'movl'.
914
915 2003-08-17 Juergen Kreileder <jk@blackdown.de>
916 Andreas Jaeger <aj@suse.de>
917
918 * sysdeps/x86_64/bits/byteswap.h: New file.
919
920 2003-08-17 Andreas Jaeger <aj@suse.de>
921
922 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo.
923
924 2003-08-16 Jakub Jelinek <jakub@redhat.com>
925
926 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_ERRVAL,
927 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
928 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_ERRVAL,
929 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
930 * sysdeps/unix/alpha/sysdep.h (PSEUDO_ERRVAL,
931 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
932 * sysdeps/unix/mips/sysdep.h (PSEUDO_ERRVAL,
933 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
934 * sysdeps/unix/sparc/sysdep.h (PSEUDO_ERRVAL,
935 ret_ERRVAL): Define.
936 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_ERRVAL,
937 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
938 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO_ERRVAL,
939 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
940 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO_ERRVAL):
941 Define.
942 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_ERRVAL,
943 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
944 * sysdeps/unix/sysdep.h (PSEUDO_END_ERRVAL): Define.
945
946 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64,
947 posix_fadvise64_64): Remove.
948 * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64): Add
949 V flag.
950 * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64):
951 Likewise.
952 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
953 (posix_fadvise64): Likewise.
954 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
955 (posix_fadvise64): Likewise.
956 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
957 (posix_fadvise64): Likewise.
958 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64):
959 Likewise.
960 * sysdeps/unix/sysv/linux/i386/posix_fadvise64_64.S: Moved to...
961 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: ...here.
962 (__posix_fadvise64_l64): Fix a typo in fadvise64 syscall invocation.
963 (__posix_fadvise64_l32): New function.
964 * sysdeps/unix/sysv/linux/i386/Makefile: Revert last change.
965 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Export
966 posix_fadvise64@@GLIBC_2.3.3.
967 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
968 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
969 * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Return
970 error value.
971 * sysdeps/unix/sysv/linux/posix_fadvise64.c: New file.
972
973 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
974 (SYSCALL_ERROR_HANDLER): Use TLS errno/__libc_errno if USE___THREAD.
975
976 2003-08-15 Jakub Jelinek <jakub@redhat.com>
977
978 * sysdeps/sparc/sparc32/dl-machine.h (WEAKADDR): Remove.
979 (elf_machine_matches_host): Remove weak extern stuff.
980 Use GL(dl_hwcap) unconditionally and GL(dl_hwcap_mask) if SHARED.
981 (elf_machine_runtime_setup, sparc_fixup_plt): Remove weak extern
982 stuff. Use GL(dl_hwcap) unconditionally.
983
984 2003-08-16 Alan Modra <amodra@bigpond.net.au>
985
986 * sysdeps/powerpc/powerpc64/elf/start.S: Add a nop after
987 __libc_start_main branch.
988
989 2003-08-16 Jakub Jelinek <jakub@redhat.com>,
990 Andreas Jaeger <aj@suse.de>
991
992 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS
993 instead of setting errno.
994 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
995
996 2003-08-16 Andreas Jaeger <aj@suse.de>
997
998 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype.
999 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
1000
1001 2003-08-15 Ulrich Drepper <drepper@redhat.com>
1002
1003 * io/fcntl.h (posix_fadvise64): Change type of third parameter to
1004 off_t.
1005 * sysdeps/unix/sysv/linux/posix_fadvise.c: Adjust definition.
1006 * sysdeps/unix/make-syscalls.sh: Recognize V prefix to the parameter
1007 description indicating the error value is returned, not -1.
1008 * sysdeps/unix/sysv/linux/kernel-features.h: Add definition of
1009 __ASSUME_FADVISE64_64_SYSCALL.
1010 * sysdeps/unix/sysv/linux/syscalls.list: Don't define madvise and
1011 posix_madvise in one file. Have posix_madvise defined with error
1012 value returned.
1013 Define posix_fadvise64_64 entry. Add version info to posix_fadvise64
1014 entry.
1015 * sysdeps/unix/sysv/linux/i386/posix_fadvise.S: New file.
1016 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_ERRVAL,
1017 PSEUDO_END_ERRVAL, and ret_ERRVAL.
1018 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
1019 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
1020 * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.3.3]: Add
1021 posix_fadvise64.
1022
1023 * posix/Makefile (routines): Add posix_madvise.
1024 * sysdeps/generic/madvise.c: Don't define posix_madvise.
1025 * sysdeps/generic/posix_madvise.c: New file.
1026 * sysdeps/unix/sysv/aix/posix_madvise.c: New file.
1027 * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (subdir_routines):
1028 Add posix_fadvise64_64.
1029
1030 2003-08-15 Jakub Jelinek <jakub@redhat.com>
1031
1032 * assert/assert.h (assert_perror): Use __builtin_expect for gcc >=
1033 3.0, not for !gcc or gcc < 3.0.
1034
1035 2003-08-11 Carlos O'Donell <carlos@baldric.uwo.ca>
1036
1037 * dlfcn/default.c (main): Cast dlsym loaded value to same type as main.
1038 Address passed to test_in_mod1 and test_in_mod2 without casting.
1039 * dlfcn/defaultmod1.c: Change prototype of test_in_mod1.
1040 (test_in_mod1): Cast dlsym loaded value to same type as mainp.
1041 * dlfcn/defaultmod2.c: Change prototype of test_in_mod2.
1042 (test_in_mod2): Cast dlsym loaded value to same type as mainp.
1043
1044 2003-08-15 Jakub Jelinek <jakub@redhat.com>
1045
1046 * sysdeps/sparc/sparc32/elf/configure.in (libc_cv_sparc32_tls):
1047 Change quotes before using [].
1048
1049 * sysdeps/unix/sysv/linux/sparc/sys/user.h: New file.
1050
1051 * sysdeps/sparc/sparc32/bits/atomic.h (__sparc32_atomic_lock):
1052 Renamed to...
1053 (__sparc32_atomic_locks): ...this. Change into 64-byte array.
1054 (__sparc32_atomic_do_lock, __sparc32_atomic_do_unlock): Add addr
1055 argument. Select one of 64 locks from address bits.
1056 (atomic_compare_and_exchange_val_acq,
1057 atomic_compare_and_exchange_bool_acq): Pass memory address to
1058 __sparc32_atomic_do_{,un}lock.
1059
1060 2003-08-14 Ulrich Drepper <drepper@redhat.com>
1061
1062 * assert/assert.h (assert): Use !! in front of expression to allow
1063 use of pointers.
1064
1065 * iconvdata/cp932.c: Fixed checking of a few border of code areas.
1066 Changed conversion of JIS X 0201 from using a table to calculating.
1067 * iconvdata/euc-jp-ms.c: Fixed conversion table and rewrote
1068 conversion routine. Changed CHARSET_NAME definition from EUCJP-MS to
1069 EUC-JP-MS.
1070 * iconvdata/tst-tables.sh: Add CP932 and EUC-JP-MS.
1071 * iconvdata/CP932.irreversible: New file.
1072 * iconvdata/EUC-JP-MS.irreversible: New file.
1073 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
1074
1075 2003-08-13 Ulrich Drepper <drepper@redhat.com>
1076
1077 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add time syscall.
1078
1079 * elf/Makefile: Use LC_ALL=C in a few cases where we call external
1080 text processing tools.
1081
1082 * sysdeps/pthread/aio_misc.h (struct waitlist): Don't add caller_pid
1083 element unless BROKEN_THREAD_SIGNALS is defined.
1084 (struct requestlist): Likewise.
1085 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Don't fill in
1086 caller_pid of new request unless BROKEN_THREAD_SIGNALS is defined.
1087 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
1088 * sysdeps/pthread/aio_notify.c (__aio_notify_only): Remove caller_pid
1089 parameter unless BROKEN_THREAD_SIGNALS is defined. Adjust callers.
1090 Pass current PID to __aio_sigqueue.
1091 * sysdeps/pthread/lio_listio.c (lio_listio): Adjust __aio_notify_only
1092 call. Don't initialize caller_pid field of waitlist element.
1093
1094 2003-08-12 Jakub Jelinek <jakub@redhat.com>
1095
1096 * libio/libioP.h (_IO_vtable_offset): Define.
1097 * libio/freopen.c (freopen): Use it.
1098 * libio/ioputs.c (_IO_puts): Likewise.
1099 * libio/freopen64.c (freopen64): Likewise.
1100 * libio/genops.c (__underflow, __uflow, _IO_flush_all_lockp):
1101 Likewise.
1102 * libio/iofclose.c (_IO_new_fclose): Likewise.
1103 * libio/iofputs.c (_IO_fputs): Likewise.
1104 * libio/ioftell.c (_IO_ftell): Likewise.
1105 * libio/iofwrite.c (_IO_fwrite): Likewise.
1106 * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
1107 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
1108 * stdio-common/vfprintf.c (ORIENT, vfprintf): Likewise.
1109 * stdio-common/vfscanf.c (ORIENT): Likewise.
1110
1111 2003-08-11 Ulrich Drepper <drepper@redhat.com>
1112
1113 * assert/assert.h: Use __builtin_expect in assert and
1114 assert_perror definitions if possible.
1115
1116 2003-08-07 Jakub Jelinek <jakub@redhat.com>
1117
1118 * sysdeps/generic/ldsodefs.h (_rtld_global): Add
1119 _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
1120 * elf/rtld.c (rtld_lock_default_lock_recursive,
1121 rtld_lock_default_unlock_recursive): New functions.
1122 (dl_main): Initialize _dl_rtld_lock_recursive and
1123 _dl_rtld_unlock_recursive.
1124
1125 2003-08-05 Jakub Jelinek <jakub@redhat.com>
1126
1127 * elf/ldconfig.c (main): Append SLIBDIR and LIBDIR to
1128 config_file directories instead of prepending.
1129
1130 2003-08-02 Ulrich Drepper <drepper@redhat.com>
1131
1132 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1133 __ASSUME_CLONE_STOPPED.
1134
1135 2003-08-01 Ulrich Drepper <drepper@redhat.com>
1136
1137 * sysdeps/generic/bits/libc-lock.h
1138 (__libc_cleanup_push,__libc_cleanup_pop): Define even here.
1139
1140 2003-08-01 Roland McGrath <roland@frob.com>
1141
1142 * sysdeps/mach/hurd/getdents.c: Just use sysdeps/generic/getdents.c.
1143
1144 2003-07-31 Jakub Jelinek <jakub@redhat.com>
1145
1146 * sysdeps/generic/bits/types.h (__ssize_t): Use __SSIZE_T_TYPE
1147 instead of __SWORD_TYPE.
1148 * sysdeps/generic/bits/typesizes.h (__SSIZE_T_TYPE): Define.
1149 * sysdeps/mach/hurd/bits/typesizes.h (__SSIZE_T_TYPE): Define.
1150 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h (__SSIZE_T_TYPE):
1151 Define.
1152 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__SSIZE_T_TYPE):
1153 Define.
1154 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__SSIZE_T_TYPE):
1155 Define.
1156 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New file.
1157
1158 * dlfcn/dlerror.c (once): New.
1159 (dlerror): Call __libc_once.
1160 (_dlerror_run): Remove once.
1161
1162 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
1163 Sync with 2.5.7 and 2.5.73 kernel changes.
1164
1165 * dlfcn/eval.c (funcall): Add noinline attribute to shut up warnings.
1166 * elf/rtld.c (dl_main): Cast ElfW(Addr) arguments with %Zx/%Zd
1167 formats to size_t.
1168 * elf/dl-lookup.c (_dl_debug_bindings): Likewise.
1169 * elf/tst-tls6.c (do_test): Use %zd format for l_tls_modid.
1170 * elf/tst-tls8.c (do_test): Use %zd format for modid1 and modid2.
1171 * gmon/tst-sprofil.c (main): Add parens to shut up warning.
1172 * iconv/tst-iconv3.c (main): Use %td instead of %zd for pointer
1173 difference argument.
1174 * stdio-common/tst-wc-printf.c (main): Cast arguments with %C
1175 format to wint_t.
1176 * stdlib/tst-limits.c (main): For WORD_BIT and LONG_BIT, use
1177 %d format and cast expected value to int.
1178 * sysdeps/generic/libc-start.c (STATIC): Add
1179 __attribute__((always_inline) if LIBC_START_MAIN is already defined.
1180 * sysdeps/powerpc/fpu/w_sqrt.c (a_nan, a_inf): Change from uint32_t
1181 to ieee_float_shape_type.
1182 (__sqrt): Avoid type punning.
1183 * sysdeps/powerpc/fpu/w_sqrtf.c (a_nan, a_inf): Change from uint32_t
1184 to ieee_float_shape_type.
1185 (__sqrtf): Avoid type punning.
1186 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Don't define
1187 refsym if in dl-conflict.c.
1188 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
1189 * sysdeps/unix/sysv/linux/i386/semctl.c (union semun): Add __old_buf.
1190 (__new_semctl): Shut up warning.
1191 * sysdeps/unix/sysv/linux/semctl.c (union semun): Add __old_buf.
1192 (__new_semctl): Shut up warning.
1193 * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Wrap long lines.
1194 Change old into union of __old_shmid_ds and __old_shminfo structs.
1195 Adjust all users.
1196 * wcsmbs/wcsmbs-tst1.c (main): Cast arguments with %C format to wint_t.
1197
1198 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Fix actime and
1199 modtime computation.
1200 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
1201 * sysdeps/posix/utimes.c (__utimes): Likewise.
1202
1203 2003-07-30 Jakub Jelinek <jakub@redhat.com>
1204
1205 * elf/dl-reloc.c (_dl_allocate_static_tls): Don't return any value,
1206 call dl_signal_error directly. If already relocated, call
1207 GL(dl_init_static_tls) directly, otherwise queue it for later.
1208 (CHECK_STATIC_TLS): Undo 2003-07-24 change.
1209 * elf/rtld.c (dl_main): Initialize GL(dl_init_static_tls).
1210 * elf/dl-open.c (dl_open_worker): Call GL_dl_init_static_tls
1211 for all static TLS initializations delayed in _dl_allocate_static_tls.
1212 * elf/dl-support.c (_dl_init_static_tls): New variable.
1213 * include/link.h (struct link_map): Add l_need_tls_init.
1214 * sysdeps/generic/ldsodefs.h (_rtld_global): Add _dl_init_static_tls.
1215 (_dl_nothread_init_static_tls): New prototype.
1216 (_dl_allocate_static_tls): Adjust prototype.
1217
1218 * elf/tls-macros.h (VAR_INT_DEF): Add alignment directive.
1219
1220 2003-07-31 Alexandre Oliva <aoliva@redhat.com>
1221
1222 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
1223 elf_machine_rel_relative, elf_machine_rela_relative): Don't assume
1224 reloc_addr is aligned.
1225 * sysdeps/alpha/dl-machine.h (elf_machine_rela,
1226 elf_machine_rela_relative): Adjust.
1227 * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela,
1228 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
1229 * sysdeps/cris/dl-machine.h (elf_machine_rela,
1230 elf_machine_rela_relative): Adjust.
1231 * sysdeps/hppa/dl-machine.h (elf_machine_rela,
1232 elf_machine_rela_relative): Adjust.
1233 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela,
1234 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
1235 * sysdeps/ia64/dl-machine.h (elf_machine_rela,
1236 elf_machine_rela_relative): Adjust.
1237 * sysdeps/m68k/dl-machine.h (elf_machine_rela,
1238 elf_machine_rela_relative): Adjust.
1239 * sysdeps/mips/dl-machine.h (elf_machine_rela,
1240 elf_machine_rela_relative): Adjust.
1241 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela,
1242 elf_machine_rela_relative): Adjust.
1243 * sysdeps/powerpc/powerpc64/dl-machine.h
1244 (elf_machine_rela_relative, elf_machine_rela): Adjust.
1245 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela,
1246 elf_machine_rela_relative): Adjust.
1247 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela,
1248 elf_machine_rela_relative): Adjust.
1249 * sysdeps/sh/dl-machine.h (elf_machine_rela,
1250 elf_machine_rela_relative): Adjust.
1251 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
1252 elf_machine_rela_relative): Adjust.
1253 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
1254 elf_machine_rela_relative): Adjust.
1255 * sysdeps/x86_64/dl-machine.h (elf_machine_rela,
1256 elf_machine_rela_relative): Adjust.
1257
1258 2003-07-29 Ulrich Drepper <drepper@redhat.com>
1259
1260 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Restore
1261 alignment of TCB used before the last change so that it matches
1262 ld's output for IE code.
1263
1264 2003-07-29 Jakub Jelinek <jakub@redhat.com>
1265
1266 * include/ctype.h (__ctype_b_loc, __ctype_toupper_loc,
1267 __ctype_tolower_loc): Avoid "dereferencing type-punned pointer will
1268 break strict-aliasing rules" warnings.
1269
1270 2003-07-29 Roland McGrath <roland@redhat.com>
1271
1272 * elf/Makefile: Revert accidental changes in last commit.
1273 * elf/dl-support.c: Likewise.
1274
1275 * rt/tst-timer2.c: New file.
1276 * rt/Makefile (tests): Add it.
1277
1278 2003-07-25 Jakub Jelinek <jakub@redhat.com>
1279
1280 * elf/dl-support.c (_dl_hwcap): Add nocommon attribute.
1281
1282 2003-07-29 Roland McGrath <roland@redhat.com>
1283
1284 * elf/Makefile (tests) [$(build-shared) = yes]:
1285 Depend on $(test-modules).
1286 * dlfcn/Makefile: Likewise.
1287
1288 2003-07-28 Roland McGrath <roland@redhat.com>
1289
1290 * sysdeps/generic/bits/types.h (__STD_TYPE): New macro.
1291 Use that instead of `typedef' when using __*_TYPE macros in rhs.
1292
1293 * elf/tst-tls14.c [USE_TLS && HAVE___THREAD]: Conditionalize on this.
1294 * elf/tst-tlsmod14a.c: Likewise.
1295
1296 * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h>
1297 before <linux/sysctl.h>.
1298
1299 2003-07-27 Ulrich Drepper <drepper@redhat.com>
1300
1301 * sysdeps/unix/sysv/syscalls.list: time syscall never fails.
1302 * sysdeps/unix/sysv/linux/x86_64/time.S: time syscall never fails.
1303 * sysdeps/unix/sysv/i386/time.S: time syscall never fails.
1304 * sysdeps/unix/syscalls.list: umask syscall never fails.
1305
1306 2003-07-27 Andreas Jaeger <aj@suse.de>
1307
1308 * sysdeps/unix/sysv/linux/init-first.c: Mark init as used.
1309
1310 2003-07-25 Jakub Jelinek <jakub@redhat.com>
1311
1312 * sysdeps/unix/sysv/linux/a.out.h: Replace with i386 version.
1313 Include bits/a.out.h.
1314 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1315 bits/a.out.h.
1316 * sysdeps/unix/sysv/linux/bits/a.out.h: New file.
1317 * sysdeps/unix/sysv/linux/i386/bits/a.out.h: New file.
1318 * sysdeps/unix/sysv/linux/m68k/bits/a.out.h: New file.
1319 * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: New file.
1320 * sysdeps/unix/sysv/linux/alpha/a.out.h: New file.
1321 * sysdeps/unix/sysv/linux/alpha/bits/a.out.h: New file.
1322 * sysdeps/unix/sysv/linux/sparc/a.out.h: New file.
1323 * sysdeps/unix/sysv/linux/sparc/bits/a.out.h: New file.
1324
1325 2003-07-24 Jakub Jelinek <jakub@redhat.com>
1326
1327 * sysdeps/pthread/aio_cancel.c (aio_cancel): Return AIO_ALLDONE
1328 if aiocbp != NULL and has already completed. Return -1/EINVAL if
1329 aiocbp->aio_fildes does not match fildes.
1330
1331 2003-07-24 Ulrich Drepper <drepper@redhat.com>
1332
1333 * timezone/zic.c (rpytime): Replace cheap overflow check with a
1334 functioning one.
1335
1336 * include/link.h (struct link_map): Add l_tls_firstbyte_offset field.
1337 * sysdeps/generic/dl-tls.c [TLS_TCB_AT_TP] (_dl_determine_tlsoffset):
1338 Fix calculation of offsets to take misalignment of first byte in
1339 file into account.
1340 * elf/dl-load.c (_dl_map_object_from_fd): Initialize
1341 l_tls_firstbyte_offset field.
1342 * elf/rtld.c (_dl_start_final, _dl_start, dl_main): Likewise.
1343 * elf/dl-reloc.c (_dl_allocate_static_tls): Change return type to int.
1344 Take l_tls_firstbyte_offset information into account.
1345 (CHECK_STATIC_TLS): _dl_allocate_static_tls can fail now.
1346 * sysdeps/generic/ldsodefs.h: Adjust _dl_allocate_static_tls prototype.
1347 * elf/Makefile: Add rules to build and run tst-tls14.
1348 * elf/tst-tls14.c: New file.
1349 * elf/tst-tlsmod14a.c: New file.
1350 * elf/tst-tlsmod14b.c: New file.
1351
1352 2003-07-23 Jakub Jelinek <jakub@redhat.com>
1353
1354 * sysdeps/pthread/lio_listio.c (LIO_OPCODE_BASE): Define.
1355 (lio_listio): Use it.
1356 * sysdeps/pthread/lio_listio64.c: Include lio_listio.c instead of
1357 after few defines to avoid duplication.
1358
1359 2003-07-22 Jakub Jelinek <jakub@redhat.com>
1360
1361 * include/stdio.h (__libc_fatal): Add libc_hidden_proto.
1362 * include/dlfcn.h (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
1363 Likewise.
1364 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
1365 Add libc_hidden_def.
1366 * sysdeps/generic/libc_fatal.c (__libc_fatal): Likewise.
1367 * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
1368 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Likewise.
1369 * elf/Versions (libc): Export __libc_dlopen_mode@@GLIBC_PRIVATE,
1370 __libc_dlsym@@GLIBC_PRIVATE and __libc_dlclose@@GLIBC_PRIVATE.
1371 * libio/Versions (libc): Export __libc_fatal@@GLIBC_PRIVATE.
1372 * sysdeps/generic/unwind-dw2.c: Readd #ifs removed during last
1373 change.
1374 * sysdeps/generic/unwind.inc: Removed.
1375
1376 * include/resolv.h (__resp): Declare. Define to __libc_resp
1377 if in libc.so.
1378 (_res): If USE___THREAD, define to (*__resp).
1379 * resolv/res_libc.c (_res): Normal .bss variable with compat_symbol
1380 even if USE___THREAD.
1381 (__resp): New __thread variable.
1382 (__libc_resp): New alias.
1383 * resolv/Versions (libc): Export _res@GLIBC_2.0 even if
1384 USE_TLS && HAVE___THREAD. Export __resp@@GLIBC_PRIVATE.
1385 * sysdeps/generic/res-state.c (__res_state): Return __resp
1386 if USE___THREAD.
1387
1388 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
1389
1390 * elf/dl-support.c (_dl_hwcap): New variable.
1391 (_dl_aux_init): Initialize GL(dl_hwcap) for static binaries.
1392
1393 * sysdeps/i386/fpu/fclrexcpt.c: Include <unistd.h>, <ldsodefs.h>
1394 and <dl-procinfo.h>.
1395 (__feclearexcept): Clear MXCSR if needed.
1396 * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
1397
1398 * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Document
1399 that newer hardware needs more than these macros.
1400
1401 * sysdeps/i386/setfpucw.c: New file.
1402
1403 2003-07-22 Jakub Jelinek <jakub@redhat.com>
1404
1405 * elf/Makefile (CFLAGS-ldconfig.c): Define IS_IN_ldconfig.
1406 * elf/ldconfig.c: Include dl-procinfo.c.
1407 (PROCINFO_CLASS): Define.
1408 * sysdeps/generic/ldsodefs.h (PROCINFO_CLASS): Define.
1409 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: New file.
1410 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: New file.
1411 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (PROCINFO_CLASS):
1412 Define if not yet defined. Use it instead of EXTERN. Undefine
1413 at the end of the file.
1414 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (PROCINFO_CLASS):
1415 Likewise.
1416 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c
1417 (PROCINFO_CLASS): Likewise.
1418 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c
1419 (PROCINFO_CLASS): Likewise.
1420
1421 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
1422
1423 * elf/ldconfig.c (main): Issue a fatal error if relative path
1424 is used to build cache.
1425
1426 2003-07-22 Ulrich Drepper <drepper@redhat.com>
1427
1428 * elf/readlib.c (process_file): Avoid possible overflow in assignment.
1429
1430 2003-07-21 Art Haas <ahaas@airmail.net>
1431
1432 * manual/charset.texi (Converting a Character): Fix example code so a
1433 valid pointer is returned.
1434
1435 2003-07-22 Andreas Jaeger <aj@suse.de>
1436
1437 * elf/readlib.c (process_file): Check that file is a shared
1438 object.
1439
1440 * elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
1441 will not optimize it away.
1442 (__DTOR_END__): Likewise.
1443 (__CTOR_END__): Likewise.
1444
1445 * include/libc-symbols.h (_elf_set_element): Use attribute used so
1446 that gcc will not optimize it away.
1447 (link_warning): Likewise.
1448
1449 2003-07-22 Ulrich Drepper <drepper@redhat.com>
1450
1451 * wcsmbs/wcpncpy.c (__wcpncpy): Correct destination pointer handling.
1452 * wcsmbs/Makefile (tests): Add tst-wcpncpy.
1453 * wcsmbs/tst-wcpncpy.c: New file.
1454
1455 2003-07-21 Ulrich Drepper <drepper@redhat.com>
1456
1457 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_STOPPED): Define.
1458
1459 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of
1460 stmxcsr and ldmxcsr.
1461
1462 * Makerules (build-module-helper): Add -z defs unless explicitly said
1463 not to do it.
1464 * dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs
1465 which has undefined symbols.
1466 * elf/Makefile: Likewise.
1467
1468 * sysdeps/i386/fpu/fedisblxcpt.c: Use dl_hwcap, not dl_hwcap_mask.
1469 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
1470 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
1471 * sysdeps/i386/fpu/fesetround.c: Likewise.
1472 * sysdeps/i386/fpu/ftestexcept.c: Likewise.
1473
1474 2003-07-21 HJ Lu <hongjiu.lu@intel.com>
1475
1476 * elf/ldconfig.c (search_dir): Treat symlink as regular file
1477 if it won't point to itself.
1478
1479 2003-07-20 Ulrich Drepper <drepper@redhat.com>
1480
1481 * sysdeps/ia64/hp-timing.h (REPEAT_READ): Cast to long int not to int.
1482
1483 2003-07-20 Andreas Jaeger <aj@suse.de>
1484
1485 * iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called
1486 STANDARD_TO_LOOP_ERR_HANDLER.
1487 * iconvdata/euc-jp-ms.c (BODY): Likewise.
1488
1489 2003-07-19 Ulrich Drepper <drepper@redhat.com>
1490
1491 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO): Fix typo.
1492
1493 * sysdeps/unix/sysv/linux/syscalls.list: Remove affinity syscalls.
1494
1495 2003-07-16 Daniel Jacobowitz <drow@mvista.com>
1496 Andreas Jaeger <aj@suse.de>
1497
1498 * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to
1499 256K, remove unneeded declaration of __getpagesize.
1500
1501 2003-07-16 Andreas Schwab <schwab@suse.de>
1502
1503 * sysdeps/unix/sysv/linux/futimes.c: Include <string.h>.
1504
1505 2003-07-15 Ulrich Drepper <drepper@redhat.com>
1506
1507 * io/test-utime.c (main): Make test yet more robust.
1508
1509 2003-07-14 Ulrich Drepper <drepper@redhat.com>
1510
1511 More cancellation handling fixups.
1512 * sysdeps/unix/sysv/linux/not-cancel.h: Add waitpid_not_cancel.
1513 * sysdeps/generic/not-cancel.h: Likewise.
1514 * catgets/open_catalog.c: Use not-cancelable syscalls.
1515 * time/Makefile (CFLAGS-getdate.c): Add -fexceptions.
1516 * sysdeps/unix/sysv/linux/llseek.c: Must not be cancelable.
1517 * sysdeps/unix/syscalls.list: Don't mark lseek as cancelable.
1518 * dlfcn/dlfcn.h: Mark dlopen with __THROW again.
1519 * io/fcntl.h: Don't mark posix_fallocate with __THROW.
1520 * libio/fileops.c: Use not-cancelable syscalls for fclose.
1521 * libio/iopopen.c: Use no-cancelable syscalls.
1522 * libio/stdio.h: Mark popen and pclose with __THROW again.
1523 * misc/Makefile (CFLAGS-syslog.c): Add -fexceptions.
1524 * misc/syslog.c: Fix locking and cancellation cleanup handling.
1525 * posix/unistd.h: Mark ttyname and ttyname_r again with __THROW.
1526 * stdio-common/Makefile (CFLAGS-tmpfile.c, CFLAGS-tmpfile64.c,
1527 CFLAGS-tempname.c): Add -fexceptions.
1528 * stdlib/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
1529 * string/string.h: Mark strerror and strerror_r with _THROW again.
1530 * sysdeps/generic/unwind.inc: New file. Copied from gcc.
1531 * sysdeps/generic/unwind-dw2.c: Update from gcc version. Remove
1532 #ifs since we now need all the code compiled.
1533 * sysdeps/posix/spawni.c: Use close_not_cancel instead of close.
1534 * sysdeps/unix/closedir.c: Use not-cancelable syscalls.
1535 * sysdeps/unix/opendir.c: Likewise.
1536
1537 * iconvdata/Makefile (modules): Add CP932 and EUC-JP-MS.
1538 Add rule for EUC-JP-MS dependency.
1539 * iconvdata/cp932.c: New file.
1540 * iconvdata/eucjp-ms.c: New file.
1541 * iconvdata/gconv-modules: Add entries for CP932 and EUC-JP-MS.
1542 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
1543
1544 2003-07-15 Jakub Jelinek <jakub@redhat.com>
1545
1546 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket): Add
1547 cfi directives.
1548
1549 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1550
1551 * sysdeps/unix/sysv/linux/kernel-features.h
1552 (__ASSUME_FIXED_CLONE_SYSCALL): New macro.
1553 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Use it.
1554
1555 * sysdeps/unix/sysv/linux/utimes.c: Include sysdep.h.
1556
1557 2003-07-14 Ulrich Drepper <drepper@redhat.com>
1558
1559 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1560 __ASSUME_TGKILL for Alpha appropriately.
1561
1562 2003-07-12 Ulrich Drepper <drepper@redhat.com>
1563
1564 * sysdeps/unix/sysv/linux/bits/statfs.h (_STATFS_F_FRSIZE): Define.
1565 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h (_STATFS_F_FRSIZE):
1566 Likewise.
1567 * sysdeps/unix/sysv/linux/s390/bits/statfs.h (_STATFS_F_FRSIZE):
1568 Likewise.
1569
1570 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1571 __ASSUME_UTIMES for x86 and kernels > 2.5.75.
1572
1573 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with
1574 second parameter == NULL.
1575 * sysdeps/unix/sysv/linux/utimes.c: New file.
1576
1577 2003-07-12 Jakub Jelinek <jakub@redhat.com>
1578
1579 * sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h.
1580 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix
1581 a typo.
1582
1583 2003-07-12 Ulrich Drepper <drepper@redhat.com>
1584
1585 * time/sys/time.h: Namespace cleanup.
1586 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1587 __ASSUME_UTIMES for the architectures which always had the syscall.
1588 * sysdeps/unix/sysv/linux/futimes.c: New file.
1589
1590 2003-07-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1591
1592 * sysdeps/unix/sysv/linux/sh/socket.S: Save and restore the PR
1593 register across CENABLE and CDISABLE.
1594
1595 2003-07-11 Jakub Jelinek <jakub@redhat.com>
1596
1597 * sysdeps/unix/sysv/linux/sigwait.c: Include string.h.
1598 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1599 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
1600 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Cast value to unsigned
1601 int before assigning to max to avoid warnings.
1602
1603 2003-07-11 Jakub Jelinek <jakub@redhat.com>
1604
1605 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket): Add
1606 cfi directives.
1607 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Likewise.
1608 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
1609
1610 2003-07-10 Jakub Jelinek <jakub@redhat.com>
1611
1612 * sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of
1613 .data.rel.ro.local to "aw".
1614
1615 2003-07-10 Ulrich Drepper <drepper@redhat.com>
1616
1617 * sysdeps/m68k/Makefile: Remove CLFAGS-.oS addition.
1618 * Makeconfig (CFLAGS-.oS): Use PIC-ccflag instead of pic-ccflag.
1619 (PIC-ccflag): Define.
1620
1621 2003-07-04 Jakub Jelinek <jakub@redhat.com>
1622
1623 * sysdeps/s390/s390-32/elf/start.S: Emit position independent code
1624 if PIC.
1625 * sysdeps/s390/s390-64/elf/start.S: Likewise.
1626
1627 2003-07-07 Jakub Jelinek <jakub@redhat.com>
1628
1629 * sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address)
1630 into .data.rel.ro.local section if PIC to avoid DT_TEXTREL.
1631
1632 2003-07-07 Ulrich Drepper <drepper@redhat.com>
1633
1634 * sysdeps/unix/sysv/linux/kernel-features.h: Version
1635 __ASSUME_CORRECT_SI_PID and __ASSUME_TGKILL if possible.
1636
1637 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
1638 compilation with HAVE_AUX_SECURE defined.
1639
1640 2003-07-05 Richard Henderson <rth@redhat.com>
1641
1642 * sysdeps/alpha/elf/initfini.c: Avoid .ent/.end.
1643
1644 2003-07-03 Ulrich Drepper <drepper@redhat.com>
1645
1646 * configure.in: Also check for .cfi_rel_offset pseudo-op.
1647
1648 2003-07-03 Jakub Jelinek <jakub@redhat.com>
1649
1650 * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency): Fix a
1651 typo.
1652
1653 2003-07-03 Ulrich Drepper <drepper@redhat.com>
1654
1655 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_CLKTCK):
1656 Define.
1657 * sysdeps/unix/sysv/linux/prof-freq.h: New file.
1658
1659 2003-07-02 Jakub Jelinek <jakub@redhat.com>
1660
1661 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Protect new_sysinfo
1662 decl and use with #ifdef NEED_DL_SYSINFO.
1663
1664 2003-07-02 Ulrich Drepper <drepper@redhat.com>
1665
1666 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't set
1667 GL(dl_sysinfo) unles GL(dl_sysinfo_dso) is also set.
1668 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1669 __ASSUME_VSYSCALL only for 2.5.69 and up since this is when the
1670 vsyscall DSO was added.
1671
1672 * posix/bits/posix1_lim.h (_POSIX_NGROUPS_MAX): Define to 8 or 0
1673 depending on selected standard.
1674 (NGROUPS_MAX): Define to 8 if not defined.
1675
1676 2003-07-02 Andreas Jaeger <aj@suse.de>
1677
1678 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: New file.
1679
1680 2003-05-04 H.J. Lu <hongjiu.lu@intel.com>
1681
1682 * malloc/arena.c (arena_get2): Add atomic_write_barrier.
1683 * malloc/thread-m.h: Include <atomic.h>.
1684 (atomic_full_barrier): Provide default.
1685 (atomic_read_barrier): Likewise.
1686 (atomic_write_barrier): Likewise.
1687 * sysdeps/ia64/bits/atomic.h (atomic_full_barrier): New #define.
1688
1689 2003-06-30 Ulrich Drepper <drepper@redhat.com>
1690
1691 * sysdeps/generic/sysdep.h: Define cfi_rel_offset and CFI_REL_OFFSET.
1692
1693 2003-06-30 Richard Henderson <rth@redhat.com>
1694
1695 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_bool_*_int):
1696 Invert the sense of the return value.
1697 (__arch_exchange_16_int): Fix paste-o.
1698 (__arch_exchange_{32,64}_int): Fix think-o.
1699
1700 * sysdeps/unix/sysv/linux/alpha/clone.S: Load child_tid properly.
1701
1702 2003-06-30 Richard Henderson <rth@redhat.com>
1703
1704 * include/sys/resource.h (__getrusage): Mark hidden.
1705 * include/sys/time.h (__settimeofday, __setitimer, __utimes): Likewise.
1706 * include/sys/wait.h (__wait4): Likewise.
1707
1708 2003-06-17 Guido Guenther <agx@sigxcpu.org>
1709
1710 * sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT
1711 case.
1712 (xstat_conv): Rename to __xstat_conv and remove static inline.
1713 (xstat64_conv): Likewise.
1714
1715 2003-06-29 Ulrich Drepper <drepper@redhat.com>
1716
1717 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Handle parameter
1718 values which cannot be handled in one nanosleep call.
1719
1720 2003-06-25 Alfred M. Szmidt <ams@kemisten.nu>
1721
1722 * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros.
1723 (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them.
1724
1725 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix.
1726
1727 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
1728
1729 * sysdeps/unix/sysv/linux/net/if_arp.h: Sync with kernel header,
1730 fix typo.
1731
1732 2003-06-26 Steven Munroe <sjmunroe@us.ibm.com>
1733
1734 * sysdeps/unix/sysv/linux/xstatconv.h [!STAT_IS_KERNEL_STAT]:
1735 Conditionalize function definitions that use struct kernel_stat.
1736 * sysdeps/unix/sysv/linux/fxstat.c: Remove __syscall_fstat extern.
1737 * sysdeps/unix/sysv/linux/lxstat.c: Remove __syscall_lstat extern.
1738 * sysdeps/unix/sysv/linux/xstat.c: Remove __syscall_stat extern.
1739
1740 2003-06-28 Ulrich Drepper <drepper@redhat.com>
1741
1742 * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Add real
1743 implementation.
1744
1745 2003-06-07 Thorsten Kukuk <kukuk@suse.de>
1746
1747 * nis/nss_compat/compat-grp.c: Remove unused nis_first variable.
1748 (getgrent_next_file): Don't store group name to early in blacklist.
1749
1750 * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Save strlen result
1751 and use memcpy instead of strcpy.
1752
1753 2003-06-28 Ulrich Drepper <drepper@redhat.com>
1754
1755 * nis/nss_compat/compat-grp.c: Optimize several little things. Use
1756 stream unlocked.
1757 * nis/nss_compat/compat-initgroups.c: Likewise.
1758 * nis/nss_compat/compat-pwd.c: Likewise.
1759 * nis/nss_compat/compat-spwd.c: Likewise.
1760
1761 2003-06-27 Thorsten Kukuk <kukuk@suse.de>
1762
1763 * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+
1764 functions, dlopen corresponding NSS module instead.
1765
1766 2003-06-27 Jeroen Dekkers <jeroen@dekkers.cx>
1767
1768 * sysdeps/mach/hurd/alpha/init-first.c: Remove call to __libc_init.
1769 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
1770 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
1771 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1772
1773 2003-06-27 Ulrich Drepper <drepper@redhat.com>
1774
1775 * rt/Makefile (CFLAGS-librt-cancellation.c): Define.
1776
1777 2003-06-26 Roland McGrath <roland@frob.com>
1778
1779 * sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME.
1780 * sysdeps/mach/configure: Regenerated.
1781 * sysdeps/mach/hurd/times.c (times_init): Function removed.
1782 (__times): Assume `creation_time' field is available.
1783 * sysdeps/mach/hurd/Makefile [$(subdir) = csu] (sysdep_routines):
1784 Don't append set-init.
1785 * sysdeps/mach/hurd/set-init.c: File removed.
1786
1787 2003-06-26 Roland McGrath <roland@redhat.com>
1788
1789 * elf/elf.h (AT_SECURE): New macro.
1790 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Grok it,
1791 set __libc_enable_secure.
1792 (_dl_show_auxv): Add AT_SECURE to name table.
1793 * elf/dl-support.c (_dl_aux_init): Grok AT_SECURE, set
1794 __libc_enable_secure and __libc_enable_secure_decided.
1795 * sysdeps/unix/sysv/linux/ldsodefs.h
1796 [__ASSUME_AT_SECURE] (HAVE_AUX_SECURE): Define it.
1797 * sysdeps/unix/sysv/linux/kernel-features.h
1798 [__LINUX_KERNEL_VERSION >= 132426] (__ASSUME_AT_SECURE): Define it.
1799
1800 2003-06-26 Ulrich Drepper <drepper@redhat.com>
1801
1802 * io/test-utime.c: If _STATBUF_ST_NSEC is defined, adjust lower
1803 boundary test to take rounding of nanoseconds into account.
1804
1805 * sysdeps/unix/sysv/linux/bits/stat.h: Define _STATBUF_ST_NSEC.
1806 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1807 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise.
1808 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1809 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1810 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1811 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1812
1813 2003-06-26 Andreas Schwab <schwab@suse.de>
1814
1815 * sysdeps/m68k/fpu/bits/mathinline.h: Don't inline frexp.
1816 * sysdeps/m68k/fpu/s_frexp.c: Put implementation here.
1817 * sysdeps/m68k/fpu/s_frexpl.c: Fix to handle unnormalized numbers.
1818
1819 2003-06-17 Thorsten Kukuk <kukuk@suse.de>
1820
1821 * nis/Makefile: Remove NIS/NIS+ files from nss_compat module.
1822 * nis/nss_compat/compat-grp.c: Don't use our own NIS/NIS+ functions,
1823 dlopen corresponding NSS module instead.
1824 * nis/nss_compat/compat-pwd.c: Likewise.
1825 * nis/nss_compat/compat-spwd.c: Likewise.
1826 * nis/nss_compat/compat-initgroups.c: Disabled for now.
1827 * nss/Versions: Export __nss_lookup_function.
1828
1829 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1830
1831 * sysdeps/unix/sysv/linux/kernel-features.h: Update kernel features
1832 for the SH architecture.
1833
1834 2003-06-25 Thorsten Kukuk <kukuk@suse.de>
1835
1836 * csu/Makefile: Use CPPFLAGS to find correct linux/version.h.
1837
1838 2003-06-25 Andreas Jaeger <aj@suse.de>
1839
1840 * stdlib/tst-strtod.c (main): Declare constant long double as
1841 suggested by Jakub Jelinek and Andreas Schwab.
1842
1843 * posix/tst-nanosleep.c: Include <time.h> for nanosleep
1844 declaration.
1845
1846 * stdio-common/tst-fphex.c: Fix format string.
1847
1848 * posix/transbug.c: Include <string.h> for memset and strlen
1849 declarations.
1850
1851 * stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration.
1852
1853 * stdlib/tst-strtod.c (main): Pass long double value.
1854
1855 * test-skeleton.c: Include <time.h> for nanosleep declaration.
1856
1857 2003-06-25 Ulrich Drepper <drepper@redhat.com>
1858
1859 * include/time.h: Don't define CLOCK_IDFIELD_SIZE if _ISOMAC is
1860 defined.
1861
1862 2003-06-11 Jakub Jelinek <jakub@redhat.com>
1863
1864 * elf/Versions (libc): Add _dl_open_hook@GLIBC_PRIVATE.
1865 * elf/dl-libc.c (struct dl_open_hook): New.
1866 (_dl_open_hook): New variable.
1867 (do_dlsym_private): New function.
1868 (__libc_dlopen_mode) [!SHARED]: Lookup _dl_open_hook@GLIBC_PRIVATE
1869 and initialize it if found.
1870 (__libc_dlopen_mode) [SHARED]: If _dl_open_hook is non-NULL,
1871 call dlopen_mode hook.
1872 (__libc_dlsym) [SHARED]: If _dl_open_hook is non-NULL,
1873 call dlsym hook.
1874 (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL,
1875 call dlclose hook.
1876
1877 2003-06-25 Ulrich Drepper <drepper@redhat.com>
1878
1879 * sysdeps/unix/sysv/linux/cris/sysdep.h (INLINE_SYSCALL): Cast
1880 result to long int so that extensions to long long int work.
1881 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
1882
1883 2003-06-19 Jakub Jelinek <jakub@redhat.com>
1884
1885 * elf/ldconfig.c (main): Use add_system_dir instead of add_dir.
1886 * sysdeps/generic/dl-cache.h (add_system_dir): Define.
1887 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: Include sparc
1888 dl-cache.h.
1889 * sysdeps/unix/sysv/linux/s390/dl-cache.h: New file.
1890 * sysdeps/unix/sysv/linux/mips/dl-cache.h: New file.
1891 * sysdeps/unix/sysv/linux/powerpc/dl-cache.h: New file.
1892 * sysdeps/unix/sysv/linux/sparc/dl-cache.h: New file.
1893
1894 2003-06-19 Jakub Jelinek <jakub@redhat.com>
1895
1896 * test-skeleton.c (timeout_handler): If waitpid returned 0,
1897 retry once after a second. If killed == 0, assume
1898 WTERMSIG (status) == SIGKILL.
1899
1900 2003-06-18 Roland McGrath <roland@redhat.com>
1901
1902 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Catch uninitialized
1903 elements in the table instead of printing an empty name string.
1904
1905 2003-06-05 Roland McGrath <roland@redhat.com>
1906
1907 * elf/elf.h (PT_GNU_STACK): New macro.
1908
1909 2003-06-24 Ulrich Drepper <drepper@redhat.com>
1910
1911 * include/time.h: Define CLOCK_IDFIELD_SIZE.
1912 * sysdeps/posix/clock_getres.c: Recognize thread CPU clock IDs.
1913 * sysdeps/unix/clock_gettime.c: Likewise.
1914 * sysdeps/unix/clock_settime.c: Likewise.
1915 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Adjust for new
1916 clock id for thread CPU clocks.
1917
1918 * sysdeps/unix/sysv/linux/fstatfs64.c (__fstatfs64): Add support
1919 for the fstatfs64 syscall.
1920 * sysdeps/unix/sysv/linux/statfs64.c (__statfs64): Add support for
1921 the statfs64 syscall.
1922
1923 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1924 __ASSUME_STATFS64 appropriately.
1925
1926 * sysdeps/unix/sysv/linux/internal_statvfs.c: Use f_frsize field
1927 from statfs structure if it has been filled in.
1928
1929 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_frsize
1930 field.
1931 (struct statfs64): Likewise.
1932 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: Likewise.
1933 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
1934
1935 2003-06-24 Richard Henderson <rth@redhat.com>
1936
1937 * sysdeps/unix/sysv/linux/alpha/syscalls.list (pread, pwrite): Use
1938 the 64-bit syscall name.
1939
1940 * sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue.
1941
1942 * sysdeps/alpha/fpu/bits/mathinline.h: Honor
1943 __LIBC_INTERNAL_MATH_INLINES. Implement __signbitf, __signbit.
1944
1945 * sysdeps/unix/sysv/linux/alpha/clone.S: Use HIDDEN_JUMPTARGET.
1946 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use
1947 libc_hidden_def.
1948 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
1949 * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use libc_hidden_proto
1950 on them.
1951
1952 * sysdeps/alpha/bits/atomic.h: New file.
1953
1954 2003-06-24 Andreas Schwab <schwab@suse.de>
1955
1956 * sysdeps/m68k/fpu/libm-test-ulps: Update.
1957
1958 2003-06-24 Andreas Jaeger <aj@suse.de>
1959
1960 * sysdeps/unix/sysv/linux/x86_64/stat.h (_STAT_VER_LINUX): Avoid
1961 redeclaration with 32-bit code.
1962
1963 2003-05-19 Ed Connell <ed.connell@sas.com>
1964
1965 * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain
1966 floating point mask.
1967 * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise.
1968
1969 2003-06-23 Ulrich Drepper <drepper@redhat.com>
1970
1971 * sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex,
1972 __aio_enqueue_request, __aio_find_req, __aio_find_req_fd,
1973 __aio_free_request, __aio_notify, and __aio_sigqueue as hidden.
1974
1975 * sysdeps/pthread/aio_suspend.c (aio_suspend): Set errno to the result
1976 of pthread_cond_wait if there was an error. Use pthread_cleanup_*
1977 instead of __libc_cleanup_region_*.
1978
1979 2003-06-20 Richard Henderson <rth@redhat.com>
1980
1981 * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases.
1982 * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New.
1983
1984 2003-06-20 Richard Henderson <rth@redhat.com>
1985
1986 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
1987 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
1988 Unset for alpha.
1989 (__ASSUME_TIMEVAL64): Set for alpha.
1990 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
1991 adjtimex, osf_sigprocmask, old_adjtimex.
1992 * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
1993 __ASSUME_TIMEVAL64. Reorg tv64 functions to avoid uninit variable.
1994 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
1995 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
1996 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
1997 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
1998 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
1999 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
2000 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
2001 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
2002 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
2003 PIC code sequence.
2004 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
2005 * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
2006 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
2007 * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
2008 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
2009 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
2010 sys_ustat, sys_mknod, adjtimex, old_adjtimex.
2011 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
2012 defer to __syscall_name; error for rt_sigaction.
2013 * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
2014
2015 2003-06-18 Ulrich Drepper <drepper@redhat.com>
2016
2017 * malloc/malloc.c (public_mALLINFo): Initialize malloc if it
2018 hasn't happened yet.
2019
2020 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
2021 Fix completely broken implementation. The second parameter is of
2022 type struct ucontext*.
2023
2024 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always
2025 inline.
2026
2027 * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash.
2028 * sysdeps/generic/dl-hash.h: Likewise.
2029
2030 * sysdeps/generic/memcmp.c: Remove inline from
2031 memcmp_common_alignment and memcmp_not_common_alignment definition.
2032
2033 * intl/localealias.c (read_alias_file): Determine whether line is
2034 read incompletely early, before we modify the line.
2035
2036 2003-06-17 Jakub Jelinek <jakub@redhat.com>
2037
2038 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela)
2039 <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
2040
2041 2003-06-17 Paul Mackerras <paulus@samba.org>
2042
2043 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file.
2044 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: New file.
2045 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: New file.
2046 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: New file.
2047 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: New file.
2048 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Adjust.
2049
2050 2003-06-17 Jakub Jelinek <jakub@redhat.com>
2051
2052 * posix/regcomp.c (build_word_op): Use alnum instead of alpha class.
2053
2054 2003-06-17 Ulrich Drepper <drepper@redhat.com>
2055
2056 * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
2057 takes care of enabling cancellation.
2058
2059 * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
2060 cancelable. It's not correct to disable cancellation. Instead of
2061 a cleanup handler.
2062
2063 * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
2064 and part of the incoming set, create a temporary set without this
2065 signal.
2066 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
2067 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
2068
2069 * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
2070 returning because seconds==0. Add __builtin_expect.
2071
2072 2003-06-16 Ulrich Drepper <drepper@redhat.com>
2073
2074 * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
2075
2076 * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
2077 variable.
2078
2079 2003-06-16 Thorsten Kukuk <kukuk@suse.de>
2080
2081 * include/libc-symbols.h: Add static_link_warning macro.
2082 * grp/initgroups.c: Print linker warning if this function
2083 is called in a static linked binary.
2084 * nss/getXXbyYY.c: Likewise.
2085 * nss/getXXbyYY_r.c: Likewise.
2086 * nss/getXXent.c: Likewise.
2087 * nss/getXXent_r.c: Likewise.
2088 * sysdeps/posix/getaddrinfo.c: Likewise.
2089
2090 2003-06-16 Bruno Haible <bruno@clisp.org>
2091
2092 * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
2093 LATIN-9.
2094 (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
2095 (IBM1047): Add alias IBM-1047.
2096 (GBK): Add aliases MS936, WINDOWS-936.
2097
2098 2003-06-16 Jakub Jelinek <jakub@redhat.com>
2099
2100 * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
2101 defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
2102 (__xstat64_conv): Change xstat_conv to __xstat_conv.
2103
2104 2003-06-16 Ulrich Drepper <drepper@redhat.com>
2105
2106 * locale/iso-639.def: Update from current official ISO 639.
2107
2108 * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
2109
2110 2003-06-15 Andreas Jaeger <aj@suse.de>
2111
2112 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
2113 of MXCSR.
2114 * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
2115 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
2116 Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
2117
2118 * math/tgmath.h (carg): Handle real arguments.
2119 (conj): Likewise.
2120 (cproj): Likewise.
2121 (cimag): Likewise.
2122 (creal): Likewise.
2123
2124 * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
2125 (tests): Add test-tgmath-ret.
2126 * math/test-tgmath-ret.c: New file.
2127
2128 * math/tgmath.h (ilogb): Return always an int.
2129
2130 2003-06-16 Ulrich Drepper <drepper@redhat.com>
2131
2132 * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
2133 computation so that prelinking works.
2134
2135 2003-06-15 Ulrich Drepper <drepper@redhat.com>
2136
2137 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
2138 linker's map.
2139 * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
2140 dynamic linker's map.
2141
2142 Fix cancellation point handling wrt exception based cleanup.
2143 * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
2144 * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
2145 with exceptions.
2146 * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
2147 sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
2148 * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
2149 exceptions.
2150 * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
2151 sigwait.c, and sigwaitinfo.c with exceptions.
2152 * stdlib/Makefile: Compile system.c with exceptions.
2153 * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
2154 * termios/Makefile: Compile tcdrain.c with exceptions.
2155 * sysdeps/generic/lockf.c: Add comment explaining the cancellation
2156 situation.
2157 * sysdeps/generic/pselect.c: Likewise.
2158 * sysdeps/posix/sigpause.c: Likewise.
2159 * sysdeps/posix/system.c: Likewise.
2160 * sysdeps/posix/waitid.c: Likewise.
2161 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
2162 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
2163 * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
2164 INTERNAL_SYSCALL to not use push inside asm statement so that
2165 unwind info is correct around the syscall.
2166 * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
2167 * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
2168
2169 2003-06-15 Andreas Jaeger <aj@suse.de>
2170
2171 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
2172 Add CFI directives.
2173
2174 2003-06-15 Guido Guenther <agx@sigxcpu.org>
2175
2176 * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
2177 create $(objpfx).
2178
2179 2003-06-14 Ulrich Drepper <drepper@redhat.com>
2180
2181 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
2182 not close.
2183
2184 * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
2185 * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
2186 definition.
2187
2188 * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
2189 * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
2190 * inet/Makefile (routines): Add inet6_option.
2191 * inet/inet6_option.c: New file.
2192 * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
2193 inet6_option_init, inet6_option_append, inet6_option_alloc,
2194 inet6_option_next, and inet6_option_find.
2195
2196 2003-06-13 Ulrich Drepper <drepper@redhat.com>
2197
2198 * inet/netinet/ip6.h (struct ip6_ext): Define.
2199
2200 * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
2201
2202 Fixing gcc 3.3 warnings, part II.
2203 * argp/argp-help.c (hol_entry_long_iterate): Always inline.
2204 * elf/dl-load.c (cache_rpath): Don't inline.
2205 * iconvdata/cns11642l2.h: Always inline all functions.
2206 * iconvdata/iso-ir-165.h: Likewise.
2207 * locale/Makefile (aux): Add coll-lookup.
2208 * locale/coll-lookup.c: New file.
2209 * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
2210 (collseq_table_lookup): Likewise.
2211 * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
2212 * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
2213 change.
2214 * posix/regcomp.c: Likewise.
2215 * posix/regexec.c: Likewise.
2216 * locale/programs/3level.h (*_get): Always inline.
2217 * locale/programs/locfile.h: Move definition of handle_copy to...
2218 * locale/programs/locfile.c: ...here.
2219 * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
2220 (obstack_int32_grow_fast): Likewise.
2221 (utf8_encode): Likewise.
2222 (find_element): Avoid aliasing problems.
2223 (insert_value): Likewise.
2224 (collate_read): Likewise.
2225 * nss/getent.c (print_hosts): Don't inline
2226 (print_networks): Likewise.
2227 (print_shadow): Likewise.
2228 (build_doc): Likewise.
2229 * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
2230 inline.
2231 * posix/regcomp.c (re_set_fastmap): Always inline.
2232 (seek_collating_symbol_entry): Likewise.
2233 (lookup_collation_sequence_value): Likewise.
2234 (build_range_exp): Likewise.
2235 (build_collating_symbol): Likewise.
2236 * posix/regexec.c (acquire_init_state_context): Don't inline.
2237 (clean_state_log_if_need): Likewise.
2238 * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
2239 adjust all callers.
2240 (evConsTime): Likewise.
2241 (evAddTime): Likewise.
2242 (evSubTime): Likewise.
2243 (evNowTime): Likewise.
2244 (evTimeSpec): Removed.
2245 (__libc_res_nsend): Avoid aliasing problem.
2246 * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
2247 * sysdeps/unix/sysv/linux/ifreq.c: ...here.
2248 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
2249 Always inline.
2250 (_dl_string_platform): Likewise.
2251 * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
2252 (wcwidth_table_lookup): Likewise.
2253 (wctrans_table_lookup): Likewise.
2254
2255 * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
2256
2257 2003-06-12 Ulrich Drepper <drepper@redhat.com>
2258
2259 * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
2260
2261 2003-05-29 Jim Meyering <jim@meyering.net>
2262
2263 * time/strftime.c (my_strftime) [!defined _NL_CURRENT
2264 && HAVE_STRFTIME]: Use underlying_strftime for %r.
2265 Suggested by Daniel Yacob <locales@geez.org>.
2266
2267 2003-06-12 Steven Munroe <sjmunroe@us.ibm.com>
2268
2269 * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
2270 @got notation with @toc.
2271 * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
2272 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
2273
2274 2003-06-12 Ulrich Drepper <drepper@redhat.com>
2275
2276 * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
2277 if only PF_INET address is needed.
2278
2279 * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
2280 case of an error.
2281
2282 * scripts/config.guess: Update from upstream version.
2283 * scripts/config.sub: Likewise.
2284
2285 2003-06-12 Jakub Jelinek <jakub@redhat.com>
2286
2287 * locale/programs/ld-time.c (time_output): Also copy the era format,
2288 not only the name.
2289
2290 2003-06-12 H.J. Lu <hongjiu.lu@intel.com>
2291
2292 * posix/transbug.c (run_test): Return 1 for failure.
2293 (do_test): Compare only if run_test is successful.
2294
2295 2003-06-12 Simon Josefsson <jas@extundo.com>
2296
2297 * argp/argp.h [!__THROW]: Define if undefined.
2298
2299 2003-06-12 Ulrich Drepper <drepper@redhat.com>
2300
2301 * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
2302 more than four parameters.
2303 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
2304
2305 2003-06-12 Jakub Jelinek <jakub@redhat.com>
2306
2307 * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
2308 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
2309 * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
2310
2311 * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
2312
2313 2003-06-12 Roland McGrath <roland@redhat.com>
2314
2315 * Makerules ($(objpfx)stubs): Rewrite sed magic.
2316
2317 2003-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
2318
2319 * posix/regcomp.c (parse_expression): Deliver translation to
2320 build_word_op, and build_charclass.
2321 (build_charclass): Apply translation for character classes too.
2322 (build_word_op): Deliver translation to build_charclass.
2323 * posix/transbug.c: New file.
2324 * posix/Makefile (tests): Add transbug.
2325
2326 2003-06-04 Paolo Bonzini <bonzini@gnu.org>
2327
2328 * posix/regexec.c (group_nodes_into_DFAstates): Check for
2329 NEXT_ENDBUF_CONSTRAINT. Move check for constraints which do a
2330 'continue' before the others.
2331
2332 2003-06-11 Ulrich Drepper <drepper@redhat.com>
2333
2334 * dirent/scandir.c (SCANDIR): Reset errno after calling selector
2335 function [PR libc/5045].
2336
2337 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
2338 also for P4.
2339
2340 * time/tzfile.c: Add a couple of __builtin_expect.
2341
2342 Remove warnings gcc 3.3 shows.
2343 * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
2344 * elf/dl-load.c (fillin_rpath): Likewise.
2345 (add_path): Likewise.
2346 * elf/dl-version.c (find_needed): Always inline.
2347 * elf/do-lookup.c (FCT): Don't inline.
2348 * iconv/Makefile: Extend vpath to intl subdir.
2349 (iconvconfig-modules): Add hash-string.
2350 * iconv/gconv_charset.h (strip): Don't inline.
2351 (upstr): Always inline.
2352 Move __gconv_compare_alias prototype to...
2353 * iconv/gconv_int.h: ...here.
2354 * iconv/gconv_db.c: Don't include gconv_charset.h.
2355 * iconv/gconv_conf.c (add_alias): Don't inline.
2356 (insert_module): Likewise.
2357 * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
2358 (internal_ucs4_loop_unaligned): Likewise.
2359 (internal_ucs4_loop_single): Likewise.
2360 (ucs4_internal_loop): Likewise.
2361 (ucs4_internal_loop_unaligned): Likewise.
2362 (ucs4_internal_loop_single): Likewise.
2363 (internal_ucs4le_loop): Always inline.
2364 (internal_ucs4le_loop_unaligned): Likewise.
2365 (internal_ucs4le_loop_single): Likewise.
2366 (ucs4le_internal_loop): Likewise.
2367 (ucs4le_internal_loop_unaligned): Likewise.
2368 (ucs4le_internal_loop_single): Likewise.
2369 * iconv/loop.c: Always inline the defined functions.
2370 * iconvdata/cns11642.h: Likewise.
2371 * iconvdata/cns11642l1.h: Likewise.
2372 * iconvdata/euc-kr.c: Likewise.
2373 * iconvdata/gb2312.h: Likewise.
2374 * iconvdata/jis0201.h: Likewise.
2375 * iconvdata/jis0208.h: Likewise.
2376 * iconvdata/jis0212.h: Likewise.
2377 * iconvdata/jisx0213.h: Likewise.
2378 * iconvdata/ksc5601.h: Likewise.
2379 * iconvdata/utf-7.c (base64): Don't inline.
2380 * include/libc-symbols.h (symbol_set_first_element): Add cast
2381 (symbol_set_end_p): Likewise.
2382 * include/set-hooks (RUN_HOOK): Likewise.
2383 * inet/Makefile (aux): Add ifreq.
2384 * intl/Makefile (aux): Add some entries from routines. Add
2385 hash-string.
2386 * intl/hash-string.c: New file.
2387 * intl/hash-string.h: Remove hash_string definition. Declare
2388 __hash_string.
2389 * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
2390 * iconv/iconvconfig.c (new_name): Likewise.
2391 * intl/dcigettext.c (_nl_find_msg): Likewise.
2392 * intl/loadmsgcat.c (_nl_load_domain): Likewise.
2393 * io/ftw.c (open_dir_stream): Always inline.
2394 (process_entry): Don't inline.
2395 * locale/findlocale.c: Include gconv_int.h.
2396 * locale/setlocale.c (new_composite_name): Don't inline.
2397 * locale/weight.h (findidx): Always inline.
2398 * locale/weightwc.h (findidx): Likewise.
2399 * locale/programs/linereader.c (lr_ignore_rest): Define here.
2400 * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
2401 just declare it.
2402 (lr_getc): Always inline.
2403 (lr_ungetc): Likewise.
2404 * nss/nss_files/files-parse.c (parse_list): Likewise.
2405 * stdio-common/Makefile (aux): Add printf-parsemb and
2406 printf-parsewc.
2407 * stdio-common/_itoa.h (_itoa_word): Always inline.
2408 (_fitoa_word, _fitoa): Don't define here, only declare.
2409 * stdio-common/_itoa.c (_iftoa_word): Add here.
2410 (_fitoa): Likewise.
2411 * stdio-common/_itowa.h (_itowa_word): Always inline.
2412 * stdio-common/printf-parse.h (read_int): Don't inline.
2413 (find_spec): Don't define.
2414 Declare __find_specmb and __find_specwc.
2415 (parse_one_spec): Don't define.
2416 Declare __parse_one_specmb and __parse_one_specwc.
2417 * stdio-common/printf-parsemb.c: New file.
2418 * stdio-common/printf-parsewc.c: New file.
2419 * stdio-common/vfprintf.c: Update calls to find_spec and
2420 parse_one_spec for new names.
2421 * stdio-common/printf-prs.c: Likewise. Define DONT_NEED_READ_INT.
2422 * stdlib/Makefile (aux): Add grouping and groupingwc.
2423 * stdlib/grouping.c: New file.
2424 * stdlib/groupingwc.c: New file.
2425 * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
2426 Just prototype.
2427 * stdlib/rpmatch.c (try): Don't inline.
2428 * stdlib/strtod.c (round_and_return): Don't line.
2429 (str_to_mpn): Likewise.
2430 (__mpn_lshift_1): Always inline. Optimize only for constant count.
2431 Adjust for name change of correctly_grouped_prefix.
2432 * sysdeps/generic/strtol.c: Adjust for name change of
2433 correctly_grouped_prefix.
2434 * string/strxfrm.c (utf8_encode): Don't inline.
2435 * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
2436 * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
2437 * sysdeps/generic/ifreq.c: New file.
2438 * sysdeps/unix/sysv/linux/ifreq.c: New file.
2439 * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
2440 * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
2441 * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
2442 * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
2443 (fde_split): Likewise.
2444 (fde_merge): Likewise.
2445 (end_fde_sort): Likewise.
2446 (init_object): Likewise.
2447 (binary_search_unencoded_fdes): Likewise.
2448 (binary_search_single_encoding_fdes): Likewise.
2449 (binary_search_mixed_encoding_fdes): Likewise.
2450 * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
2451 * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
2452 * sysdeps/posix/sprofil.c (profil_count): Don't inline.
2453 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
2454 Add xstatconv.
2455 * sysdeps/unix/sysv/linux/xstatconv.h: New file.
2456 * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
2457 Export them. Prepend __ to name.
2458 * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
2459 * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
2460 conversion functions.
2461 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
2462 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
2463 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
2464 * sysdeps/unix/sysv/linux/xstat.c: Likewise.
2465 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
2466 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
2467 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
2468 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
2469 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
2470 __statfs_filesize_max, __statfs_symlinks): Define here. __ prepended
2471 to name. Change callers.
2472 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
2473 __statfs_filesize_max, __statfs_symlinks): Don't define here, just
2474 declare.
2475 * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
2476 * time/tzfile.c (decode): Always inline.
2477 * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
2478 Remove cast in tomb function call.
2479 * wcsmbs/wcsrtombs.c Likewise.
2480 * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
2481 tomb function call.
2482
2483 2003-06-10 Ulrich Drepper <drepper@redhat.com>
2484
2485 * po/zh_CN.po: Update from translation team.
2486
2487 2003-06-10 Jakub Jelinek <jakub@redhat.com>
2488
2489 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
2490 IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
2491
2492 2003-06-10 Ulrich Drepper <drepper@redhat.com>
2493
2494 * inet/Makefile (aux): Add check_pf.
2495 * include/ifaddrs.h: Add prototype for __check_pf.
2496 * sysdeps/generic/check_pf.c: New file.
2497 * sysdeps/unix/sysv/linux/check_pf.c: New file.
2498 * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
2499 from no_netlink_support. Export.
2500 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
2501 call __check_pf.
2502
2503 * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
2504
2505 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
2506 from getifaddr calls.
2507
2508 2003-06-09 Jakub Jelinek <jakub@redhat.com>
2509
2510 * sysdeps/unix/sysv/linux/kernel-features.h
2511 (__ASSUME_SETRESGID_SYSCALL): Define.
2512 * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
2513 instead of __ASSUME_SETRESUID_SYSCALL.
2514 (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
2515 defined.
2516 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
2517 inline syscall if __NR_setresuid32 is defined.
2518 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
2519 __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
2520 * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
2521 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
2522 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
2523 code handling non-existant setresgid32 syscall with
2524 #if __ASSUME_SETRESGID_SYSCALL == 0.
2525
2526 2003-06-09 Andreas Schwab <schwab@suse.de>
2527
2528 * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
2529 ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
2530 $(objpfx)rpc-proto.d.
2531 (rpcsvc-dt-files, rpcsvc-depfiles): Define. Include
2532 $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
2533 ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
2534
2535 2003-06-08 Ulrich Drepper <drepper@redhat.com>
2536
2537 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
2538 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
2539 defined drop compatibility code.
2540 * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
2541 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
2542 defined drop compatibility code.
2543 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
2544 setresuid32 syscall directly if possible.
2545 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
2546 setresgid32 syscall directly if possible.
2547 * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
2548 compliant. Don't change sgid.
2549 * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
2550 compliant. Don't change suid.
2551
2552 * config.h.in: Add have-forced-unwind.
2553 * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
2554
2555 2003-06-07 Ulrich Drepper <drepper@redhat.com>
2556
2557 * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
2558 returned status from child matches.
2559
2560 * Makeconfig (gnulib): Add -lgcc_eh once again.
2561
2562 2003-06-06 Ulrich Drepper <drepper@redhat.com>
2563
2564 * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
2565
2566 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
2567 %edx for first parameter. This means no pushl and therefore the
2568 unwind info isn't screwed up.
2569
2570 2003-06-04 Richard Henderson <rth@redhat.com>
2571
2572 * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
2573 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
2574 * sysdeps/alpha/elf/start.S: Likewise. Remove pointless allocation.
2575 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
2576 entry sequence and explicit relocs. Add unwind info for sigreturn
2577 and rt_sigreturn.
2578 * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
2579
2580 * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
2581 Annotate some parameters.
2582 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
2583
2584 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
2585
2586 * include/libc-symbols.h (symbol_set_declare): Use arrays
2587 of unspecified size.
2588
2589 2003-06-04 Jakub Jelinek <jakub@redhat.com>
2590
2591 * config.make.in (ASFLAGS-config): New.
2592 * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
2593 * configure.in (libc_cv_as_noexecstack): New check.
2594 (ASFLAGS_config): Substitute.
2595
2596 2003-06-04 Jakub Jelinek <jakub@redhat.com>
2597
2598 * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
2599 hypot, logb): Protect with #ifdef __FAST_MATH__.
2600
2601 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
2602
2603 * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
2604 #ifdef __FAST_MATH__.
2605
2606 2003-06-03 Ulrich Drepper <drepper@redhat.com>
2607
2608 * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
2609 DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
2610 * posix/globtest.sh: Adjust for this change.
2611
2612 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
2613 to get the actual PID value used in the records passed up.
2614 (getifaddrs): Don't initialize nh.pid here.
2615
2616 2003-06-02 Ulrich Drepper <drepper@redhat.com>
2617
2618 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
2619 optimization.
2620
2621 * po/zh_CN.po: Update from translation team.
2622
2623 * posix/getconf.c (main): Also recognize names without the
2624 _POSIX_ prefix.
2625
2626 * elf/Makefile (CFLAGS-dl-lookup.c): Define.
2627
2628 2003-06-02 Bernd Schmidt <bernds@redhat.com>
2629
2630 * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
2631 ldexpf, ldexpl): Only define if __FAST_MATH__.
2632
2633 2003-06-02 Richard C. Bilson <rcbilson@plg.uwaterloo.ca>
2634
2635 Replace hard-coded offsets into struct sigcontext with generated file.
2636 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
2637 * sysdeps/unix/sysv/linux/ia64/Makefile
2638 [$(subdir) = stdlib] (gen-as-const-headers): Add it.
2639 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
2640 defining SC_* macros here.
2641
2642 2003-06-02 Jakub Jelinek <jakub@redhat.com>
2643
2644 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
2645
2646 2003-06-01 Jakub Jelinek <jakub@redhat.com>
2647
2648 * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
2649
2650 2003-06-01 Ulrich Drepper <drepper@redhat.com>
2651
2652 * test-skeleton.c (main): Request getopt to not reorder the
2653 command line.
2654
2655 * elf/Makefile (CFLAGS-dl-runtime.c): Define.
2656
2657 * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
2658 stpncpy.
2659
2660 2003-05-31 Ulrich Drepper <drepper@redhat.com>
2661
2662 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
2663
2664 2003-05-31 Jakub Jelinek <jakub@redhat.com>
2665
2666 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
2667 New function.
2668 (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
2669 RESOLVE_CONFLICT_FIND_MAP. If RESOLVE_CONFLICT_FIND_MAP is defined,
2670 call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
2671
2672 2003-05-31 Ulrich Drepper <drepper@redhat.com>
2673
2674 * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
2675 CFI directives.
2676
2677 * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
2678
2679 * libio/fileops.c (_IO_file_open): Don't mark as inline.
2680
2681 * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
2682 attribute used.
2683
2684 2003-05-30 Ulrich Drepper <drepper@redhat.com>
2685
2686 * scripts/config.guess: Update from master copy.
2687 * scripts/config.sub: Likewise.
2688
2689 2003-05-30 Guido Guenther <agx@sigxcpu.org>
2690
2691 * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
2692 SETUP_GP64 and friends.
2693 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
2694 names in internal_syscall{6,7}.
2695 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
2696 * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
2697 number of syscall arguments.
2698 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2699 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2700 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2701
2702 2003-05-30 Andreas Jaeger <aj@suse.de>
2703
2704 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
2705 Add CFI directives.
2706
2707 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
2708 directives.
2709
2710 * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
2711
2712 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
2713 Add CFI directives.
2714
2715 2003-05-30 Jakub Jelinek <jakub@redhat.com>
2716
2717 * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
2718 SHARED.
2719
2720 2003-05-11 Andreas Schwab <schwab@suse.de>
2721
2722 * Makerules: Always use -MP together with -MD.
2723 (sed-remove-dotot): Substitute $(..) also at start of line.
2724 ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
2725 Generated defines with a single compiler call.
2726 Use $(sed-remove-dotdot).
2727 * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
2728 of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
2729 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
2730 Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
2731 * sysdeps/unix/sysv/linux/mips/Makefile
2732 ($(objpfx)syscall-%.h): Likewise.
2733
2734 2003-05-28 Roland McGrath <roland@redhat.com>
2735
2736 * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
2737
2738 2003-05-26 Aldy Hernandez <aldyh@redhat.com>
2739
2740 * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
2741
2742 2003-05-28 Roland McGrath <roland@redhat.com>
2743
2744 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
2745 rt_sigprocmask system call.
2746 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
2747 From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
2748
2749 2003-05-28 Ulrich Drepper <drepper@redhat.com>
2750
2751 * include/libc-symbols.h: Define hidden attribute for real also if
2752 LIBC_NONSHARED is defined. Patch by Jakub Jelinek.
2753
2754 * csu/Makefile: Add rules to build Scrt1.o.
2755 * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
2756 * sysdeps/x86_64/elf/start.S: Likewise.
2757
2758 2003-05-27 Jakub Jelinek <jakub@redhat.com>
2759
2760 * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
2761 pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
2762 * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
2763 pa_short_int, pa_u_short_int and pa_float.
2764
2765 2003-05-26 Jakub Jelinek <jakub@redhat.com>
2766
2767 * libio/strops.c (_IO_str_init_static): Change into a wrapper around
2768 _IO_str_init_static_internal.
2769 (_IO_str_init_static_internal): Moved from _IO_str_init_static,
2770 change size argument to _IO_size_t, don't limit sprintf to 64M.
2771 (_IO_str_init_readonly): Call _IO_str_init_static_internal.
2772 * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
2773 _IO_size_t, don't limit swprintf to 256M.
2774 (_IO_wstr_init_readonly): Remove.
2775 * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
2776 Adjust prototypes.
2777 (_IO_wstr_init_readonly): Remove prototype.
2778 * libio/iovsprintf.c (_IO_vsprintf): Use
2779 _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
2780 * libio/iovsscanf.c (_IO_vsscanf): Likewise.
2781 * libio/memstream.c (open_memstream): Likewise.
2782 * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
2783 * libio/vasprintf.c (_IO_vasprintf): Likewise.
2784 * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
2785 * stdio-common/tst-sprintf.c (main): Add new test.
2786
2787 2003-05-26 Ulrich Drepper <drepper@redhat.com>
2788
2789 * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
2790 other implementation in respect of multiple uses of parameter with
2791 different types.
2792
2793 2003-05-25 Ulrich Drepper <drepper@redhat.com>
2794
2795 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2796 __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
2797
2798 2003-05-22 Andreas Jaeger <aj@suse.de>
2799
2800 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
2801 directives.
2802 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
2803 * sysdeps/x86_64/strtok.S: Likewise.
2804
2805 2003-05-20 Guido Guenther <agx@sigxcpu.org>
2806
2807 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
2808 to -60 and define SI_TKILL.
2809
2810 2003-05-21 H.J. Lu <hongjiu.lu@intel.com>
2811
2812 * math/test-fenv.c (feexcp_nomask_test): Fix comment.
2813 (feexcp_mask_test): Likewise.
2814
2815 2003-05-21 Ulrich Drepper <drepper@redhat.com>
2816
2817 * locale/programs/locale.c (main): Fix typo in last patch.
2818
2819 * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
2820 __init_array_start, __init_array_end, __fini_array_start, and
2821 __fini_array_end as hidden.
2822
2823 2003-05-21 Petter Reinholdtsen <pere@hungry.com>
2824
2825 * locale/programs/locale.c (main): Report an error if setlocale()
2826 fails [PR libc/2254].
2827
2828 2003-05-21 Jakub Jelinek <jakub@redhat.com>
2829
2830 * sysdeps/unix/sysv/linux/s390/system.c: New file.
2831
2832 2003-05-21 Jakub Jelinek <jakub@redhat.com>
2833
2834 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
2835 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
2836 LOADARGS_6): Don't error if syscall argument is a string literal.
2837 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
2838 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
2839 LOADARGS_6): Likewise.
2840
2841 2003-05-21 Andreas Jaeger <aj@suse.de>
2842
2843 * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
2844 cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
2845 cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
2846
2847 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
2848 (ENTRY): Likewise.
2849 (END): Likewise.
2850
2851 * configure.in: Test for asm cfi directives.
2852
2853 * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
2854
2855 2003-05-17 Andreas Jaeger <aj@suse.de>
2856
2857 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
2858
2859 * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
2860
2861 2003-05-16 Ulrich Drepper <drepper@redhat.com>
2862
2863 * rt/Makefile (tests): Add tst-clock_nanosleep.
2864 * rt/tst-clock_nanosleep.c: New file.
2865 * posix/Makefile (tests): Add tst-nanosleep.
2866 * posix/tst-nanosleep.c: New file.
2867
2868 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
2869
2870 * include/features.h (__USE_XOPEN2K): Define also for
2871 _POSIX_C_SOURCE>=200112L.
2872
2873 * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
2874 SI_TKILL code into SI_USER.
2875 * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
2876
2877 * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
2878
2879 2003-05-15 Jakub Jelinek <jakub@redhat.com>
2880
2881 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
2882 Remove sym argument, always use refsym.
2883 (__process_machine_rela): Adjust callers.
2884 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
2885 Likewise.
2886 * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
2887 Adjust prototype.
2888 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
2889
2890 2003-05-15 Ulrich Drepper <drepper@redhat.com>
2891
2892 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
2893 (DL_NEED_SYSINFO -> NEED_DL_SYSINFO). If aux value is not known
2894 print numeric values.
2895
2896 2003-05-12 Thorsten Kukuk <kukuk@suse.de>
2897
2898 * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
2899
2900 2003-05-14 Andreas Schwab <schwab@suse.de>
2901
2902 * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
2903
2904 2003-05-14 Jakub Jelinek <jakub@redhat.com>
2905
2906 * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
2907 even if no DT_NEEDED is present.
2908
2909 2003-05-13 David Mosberger <davidm@hpl.hp.com>
2910
2911 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
2912 2003-03-27: setjmp is NOT a leaf-routine (due to the call to
2913 __sigjmp_save) so we can't keep the saved unat value in a scratch
2914 register (r16). Use loc2 instead.
2915
2916 2003-05-13 Ulrich Drepper <drepper@redhat.com>
2917
2918 * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
2919 binaries it has to be relocatable.
2920
2921 * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
2922
2923 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
2924
2925 * sysdeps/powerpc/bits/atomic.h
2926 (__arch_compare_and_exchange_bool_8_rel): Define.
2927 (__arch_compare_and_exchange_bool_16_rel): Define.
2928 (__ARCH_REL_INSTR): Define if not already defined.
2929 (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
2930 (__arch_atomic_decrement_if_positive_32):
2931 Add "memory" to clobber list.
2932 (__arch_compare_and_exchange_val_32_acq): Remove release sync.
2933 (__arch_compare_and_exchange_val_32_rel): Define.
2934 (__arch_atomic_exchange_32): Remove.
2935 (__arch_atomic_exchange_32_acq): Define.
2936 (__arch_atomic_exchange_32_rel): Define.
2937 (atomic_compare_and_exchange_val_rel): Define.
2938 (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
2939 (atomic_exchange_rel): Define.
2940 * sysdeps/powerpc/powerpc32/bits/atomic.h
2941 (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
2942 (__arch_compare_and_exchange_bool_32_rel): Define.
2943 (__arch_compare_and_exchange_bool_64_rel): Define.
2944 (__arch_compare_and_exchange_val_64_rel): Define.
2945 (__arch_atomic_exchange_64): Remove.
2946 (__arch_atomic_exchange_64_acq): Define.
2947 (__arch_atomic_exchange_64_rel): Define.
2948 * sysdeps/powerpc/powerpc64/bits/atomic.h
2949 (__arch_compare_and_exchange_bool_32_rel): Define.
2950 (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
2951 (__arch_compare_and_exchange_bool_64_rel): Define.
2952 (__arch_compare_and_exchange_val_64_acq): Remove release sync.
2953 (__arch_compare_and_exchange_val_64_rel): Define.
2954 (__arch_atomic_exchange_64): Remove.
2955 (__arch_atomic_exchange_64_acq): Define.
2956 (__arch_atomic_exchange_64_rel): Define.
2957 (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
2958 (__arch_atomic_decrement_if_positive_64):
2959 Add "memory" to clobber list.
2960 [!UP](__ARCH_REL_INSTR): Define as lwsync.
2961
2962 2003-05-11 Andreas Schwab <schwab@suse.de>
2963
2964 * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
2965
2966 2003-05-11 Ulrich Drepper <drepper@redhat.com>
2967
2968 * time/tst-strftime.c (do_test): Add tests for - flag.
2969
2970 2003-05-11 Jim Meyering <jim@meyering.net>
2971
2972 * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
2973 the space-padded-by-default conversion specifiers, %e, %k, %l.
2974
2975 2003-05-11 Andreas Schwab <schwab@suse.de>
2976
2977 * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
2978
2979 2003-05-10 Ulrich Drepper <drepper@redhat.com>
2980
2981 * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
2982 already defined and when really needed.
2983 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
2984
2985 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
2986
2987 * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
2988 headers, add defines from kernel header, move it from here...
2989 * inet/netinet/igmp.h: ... to here.
2990 * inet/Makefile (headers): Add netinet/igmp.h.
2991 * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
2992 * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
2993
2994 2003-05-10 Ulrich Drepper <drepper@redhat.com>
2995
2996 * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
2997 use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
2998
2999 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
3000
3001 * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
3002 (remove __THROW from possible cancellation points).
3003
3004 2003-05-10 Ulrich Drepper <drepper@redhat.com>
3005
3006 * posix/sched.h (CPU_SETSIZE): Define.
3007
3008 2003-05-09 Ulrich Drepper <drepper@redhat.com>
3009
3010 * Makeconfig (gnulib): Remove -lgcc_eh again.
3011
3012 * posix/sched.h: Change prototypes of sched_getaffinity and
3013 sched_setaffinity. Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
3014 * sysdeps/generic/sched_getaffinity.c: Adjust definition.
3015 * sysdeps/generic/sched_setaffinity.c: Likewise.
3016 * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
3017 __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
3018 __CPU_CLR, and __CPU_ISSET.
3019 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
3020 * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
3021 * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
3022
3023 * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
3024 (atomic_exchange_rel): New #define.
3025 * sysdeps/ia64/bits/atomic.h: Likewise.
3026 * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
3027 atomic_exchange.
3028 * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
3029 * sysdeps/powerpc/bits/atomic.h: Likewise.
3030 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
3031 * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
3032 * sysdeps/x86_64/bits/atomic.h: Likewise.
3033 * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
3034
3035 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
3036
3037 2003-05-08 Ulrich Drepper <drepper@redhat.com>
3038
3039 * malloc/thread-m.h: Remove special handling of thread_atfork if
3040 HAVE_register_atfork_malloc is defined.
3041
3042 2003-05-07 Andreas Jaeger <aj@suse.de>
3043
3044 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
3045 information.
3046
3047 2003-05-06 Ulrich Drepper <drepper@redhat.com>
3048
3049 * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
3050 * libio/oldiofopen.c (_IO_old_fopen): Likewise.
3051 * libio/libioP.h: Declare _IO_old_init.
3052 * libio/genops.c (_IO_no_init): Split in two. New function
3053 _IO_old_init.
3054
3055 2003-05-05 Ulrich Drepper <drepper@redhat.com>
3056
3057 * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
3058 variable.
3059 (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
3060 is nonzero.
3061 * include/unistd.h: Declare __libc_enable_secure_decided.
3062 * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
3063 and AT_EGID. If all found, set __libc_enable_secure and
3064 __libc_enable_secure_decided.
3065
3066 * sysdeps/generic/libc-start.c [!SHARED]: Call
3067 __libc_check_standard_fds after __libc_init_first.
3068
3069 2003-05-05 Roland McGrath <roland@redhat.com>
3070
3071 * Makerules (common-before-compile): New variable.
3072 ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
3073 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise. Move this rule
3074 to after all setting of before-compile.
3075
3076 2003-05-05 Jakub Jelinek <jakub@redhat.com>
3077
3078 * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
3079 __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
3080 * sysdeps/powerpc/powerpc32/bits/atomic.h
3081 (__arch_compare_and_exchange_val_64_acq): Likewise.
3082 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
3083 (__arch_compare_and_exchange_val_8_acq,
3084 __arch_compare_and_exchange_val_16_acq,
3085 __arch_compare_and_exchange_val_64_acq): Likewise.
3086 * sysdeps/sparc/sparc64/bits/atomic.h
3087 (__arch_compare_and_exchange_val_8_acq,
3088 __arch_compare_and_exchange_val_16_acq): Likewise.
3089 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
3090 __arch_compare_and_exchange_val_16_acq,
3091 __arch_compare_and_exchange_val_64_acq): Likewise.
3092 * sysdeps/unix/sysv/linux/sh/bits/atomic.h
3093 (__arch_compare_and_exchange_val_64_acq): Likewise.
3094 * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
3095 up warning.
3096 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
3097
3098 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
3099 (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
3100 Return long instead of int.
3101 (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
3102 0xfffff001u with -4095UL.
3103
3104 2003-05-05 Andreas Jaeger <aj@suse.de>
3105
3106 * sysdeps/x86_64/fpu_control.h: New from i386.
3107
3108 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
3109 Define if not defined.
3110
3111 * sunrpc/Makefile (generated-dirs): New variable.
3112 * resolv/Makefile (generated): New variable.
3113
3114 2003-05-04 Roland McGrath <roland@redhat.com>
3115
3116 * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
3117 Depend on $(before-compile).
3118
3119 * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
3120 pattern rule. The implicit rule could be ruled out when $(objpfx)
3121 didn't exist at the time of its consideration (ugh!).
3122
3123 * Makerules (+make-deps): Fix target matching.
3124 Use $(sed-remove-dotdot).
3125
3126 2003-05-03 Ulrich Drepper <drepper@redhat.com>
3127
3128 * nscd/nscd.c (main): Parse config file right after parsing
3129 parameters. Then, if get_stats is true, call receive_print_stats.
3130 Drop parameter from nscd_init call.
3131 (get_stats): New variable.
3132 (parse_opt): Set get_stats, don't call receive_print_stats here.
3133 * nscd/nscd.h: Declare dbs, stat_user, and stat_uid. Adjust nscd_init
3134 prototype.
3135 * nscd/connections.c (stat_user, stat_uid): New variables.
3136 (dbs): Make global.
3137 (nscd_init): Don't read configuration file here. Drop parameter.
3138 (handle_request): Cleanup handling of non-database lookup requests.
3139 * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
3140 Get UID of the specified user. Use xstrdup instead of strdup.
3141 * nscd/nscd_stat.c (receive_print_stats): Check UID. If not zero,
3142 check stat_user.
3143 * nscd/Makefile (nscd-modules): Add xstrdup.
3144 * nscd/nscd.conf: Document stat-user entry.
3145
3146 2003-05-03 H.J. Lu <hongjiu.lu@intel.com>
3147
3148 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
3149 if not defined.
3150
3151 2003-04-22 Roland McGrath <roland@redhat.com>
3152
3153 * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
3154 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
3155 dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
3156 * elf/dl-support.c: Update defn.
3157 * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
3158 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
3159 Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
3160 (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
3161 * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
3162 set, set up a link_map for the preloaded, prelinked object.
3163
3164 2003-05-03 Roland McGrath <roland@redhat.com>
3165
3166 * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
3167 * stdio-common/Makefile: ... not here.
3168
3169 * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
3170 * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
3171
3172 2003-05-02 Ulrich Drepper <drepper@redhat.com>
3173
3174 * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
3175
3176 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
3177
3178 * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
3179 comparing ftab elements.
3180 (_dl_unmap): Fix typo in test.
3181 (_dl_make_fptr): Fix typos introduced in last change.
3182
3183 * sysdeps/generic/dl-fptr.c: Put back one optimization from the
3184 original patch. Use non-exported symbols. Mark translatable
3185 strings. Pretty printing.
3186
3187 2003-05-02 Roland McGrath <roland@redhat.com>
3188
3189 * Makerules (do-stamp): Do $(make-target-directory).
3190
3191 2003-04-07 H.J. Lu <hjl@gnu.org>
3192
3193 * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
3194
3195 2003-04-03 H.J. Lu <hjl@gnu.org>
3196
3197 * sysdeps/ia64/dl-fptr.c: Moved to ...
3198 * sysdeps/generic/dl-fptr.c: Here.
3199
3200 * sysdeps/generic/dl-fptr.h: New.
3201 * sysdeps/ia64/dl-fptr.h: New.
3202
3203 * sysdeps/ia64/dl-symaddr.c: Moved to ...
3204 * sysdeps/generic/dl-symaddr.c: here.
3205
3206 * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
3207 (IA64_BOOT_FPTR_TABLE_LEN): Removed.
3208 (ia64_fdesc): Likewise.
3209 (ia64_fdesc_table): Likewise.
3210 (__ia64_make_fptr): Likewise.
3211 (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
3212 with _dl_boot_fptr_table.
3213 (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
3214 `struct fdesc'.
3215 (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
3216
3217 2003-05-01 Roland McGrath <roland@redhat.com>
3218
3219 * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
3220 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
3221
3222 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
3223 Use $(make-target-directory).
3224 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
3225
3226 * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
3227 (compile-command.S): Don't use ifndef. Append $(compile-mkdep-flags).
3228 (compile-command.s, compile-command.c): Likewise.
3229 ($(objpfx)%.d): All such pattern rules removed.
3230 ($(+sysdir_pfx)sysd-rules): Don't generate them.
3231 ($(common-objpfx)dummy.d): Target removed.
3232 (make-dummy-dep): Variable removed.
3233 (generate-md5): Likewise.
3234 (%.d: %.dt): New pattern rule.
3235 (+depfiles): Use $(wildcard) function to get just existing *.d files
3236 and .d files for existing *.dt files.
3237 (common-clean): Remove all *.d and *.dt files.
3238 (before-compile): Add $(objpfx). when it doesn't exist,
3239 regardless of $(no_deps).
3240 * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
3241 (rtld-depfiles): Use .os.d instead of .d names.
3242 Include existing *.d files and .d files for existing *.dt files.
3243
3244 * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
3245 Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
3246
3247 * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
3248 Do s-*.d includes only if we have some syscall routines in this subdir.
3249
3250 * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
3251 @nobits. The former is accepted by gas on any ELF platform.
3252
3253 2003-05-01 Ulrich Drepper <drepper@redhat.com>
3254
3255 * sysdeps/unix/sysv/linux/semtimedop.c: New file.
3256
3257 * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
3258
3259 2003-04-29 Andreas Schwab <schwab@suse.de>
3260
3261 * string/test-strcat.c (do_one_test): Fix attribute name.
3262
3263 2003-04-30 Alexandre Oliva <aoliva@redhat.com>
3264
3265 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
3266 uc_flags long for all ABIs.
3267
3268 2003-04-30 Andreas Jaeger <aj@suse.de>
3269
3270 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
3271 (DR_CONTROL_RESERVED): Use correct value for 64-bit.
3272 Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
3273 Add bi-arch support.
3274
3275 2003-04-30 Ulrich Drepper <drepper@redhat.com>
3276
3277 * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
3278 (__posix_memalign): Use __memalign_internal instead of memalign.
3279
3280 2003-04-29 Roland McGrath <roland@redhat.com>
3281
3282 * configure.in: Search for AUTOCONF unconditionally.
3283 Just don't complain about missing it under --without-cvs.
3284
3285 * include/libc-symbols.h (__symbol_set_attribute): New macro,
3286 give hidden for [SHARED] and weak for [! SHARED].
3287 (symbol_set_declare): Use that. Never need weak_extern these days.
3288 * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
3289 Depend on $(..)Makerules.
3290
3291 2003-04-29 Ulrich Drepper <drepper@redhat.com>
3292
3293 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
3294 variants of socket, bind, recvmsg, and sendto.
3295
3296 * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
3297
3298 * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
3299 * signal/sigaddset.c: Add libc_hidden_def.
3300 * signal/sigdelset.c: Likewise.
3301
3302 2003-04-29 Jakub Jelinek <jakub@redhat.com>
3303
3304 * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
3305 to the end of the file.
3306
3307 * configure.in: Change __oline__ to $LINENO.
3308 (HAVE_BUILTIN_REDIRECTION): New check.
3309 * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
3310 * include/libc-symbols.h (libc_hidden_builtin_proto,
3311 libc_hidden_builtin_def, libc_hidden_builtin_weak,
3312 libc_hidden_builtin_ver): Define.
3313 * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
3314 strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
3315 strspn, strstr): Add libc_hidden_builtin_proto.
3316 * intl/plural.y: Include string.h.
3317 * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
3318 libc_hidden_builtin_def.
3319 * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
3320 * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
3321 * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
3322 * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
3323 * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
3324 * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
3325 * sysdeps/alpha/memchr.S (memchr): Likewise.
3326 * sysdeps/alpha/memset.S (memset): Likewise.
3327 * sysdeps/alpha/strcat.S (strcat): Likewise.
3328 * sysdeps/alpha/strchr.S (strchr): Likewise.
3329 * sysdeps/alpha/strcmp.S (strcmp): Likewise.
3330 * sysdeps/alpha/strcpy.S (strcpy): Likewise.
3331 * sysdeps/alpha/strlen.S (strlen): Likewise.
3332 * sysdeps/alpha/strncmp.S (strncmp): Likewise.
3333 * sysdeps/alpha/strncpy.S (strncpy): Likewise.
3334 * sysdeps/alpha/strrchr.S (strrchr): Likewise.
3335 * sysdeps/arm/memset.S (memset): Likewise.
3336 * sysdeps/arm/strlen.S (strlen): Likewise.
3337 * sysdeps/generic/memchr.c (memchr): Likewise.
3338 * sysdeps/generic/memcpy.c (memcpy): Likewise.
3339 * sysdeps/generic/memmove.c (memmove): Likewise.
3340 * sysdeps/generic/memset.c (memset): Likewise.
3341 * sysdeps/generic/strcat.c (strcat): Likewise.
3342 * sysdeps/generic/strchr.c (strchr): Likewise.
3343 * sysdeps/generic/strcmp.c (strcmp): Likewise.
3344 * sysdeps/generic/strcpy.c (strcpy): Likewise.
3345 * sysdeps/generic/strcspn.c (strcspn): Likewise.
3346 * sysdeps/generic/strlen.c (strlen): Likewise.
3347 * sysdeps/generic/strncmp.c (strncmp): Likewise.
3348 * sysdeps/generic/strncpy.c (strncpy): Likewise.
3349 * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
3350 * sysdeps/generic/strrchr.c (strrchr): Likewise.
3351 * sysdeps/generic/strspn.c (strspn): Likewise.
3352 * sysdeps/generic/strstr.c (strstr): Likewise.
3353 * sysdeps/i386/i486/strcat.S (strcat): Likewise.
3354 * sysdeps/i386/i486/strlen.S (strlen): Likewise.
3355 * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
3356 * sysdeps/i386/i586/memset.S (memset): Likewise.
3357 * sysdeps/i386/i586/strchr.S (strchr): Likewise.
3358 * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
3359 * sysdeps/i386/i586/strlen.S (strlen): Likewise.
3360 * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
3361 * sysdeps/i386/i686/memmove.S (memmove): Likewise.
3362 * sysdeps/i386/i686/memset.S (memset): Likewise.
3363 * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
3364 * sysdeps/i386/memchr.S (memchr): Likewise.
3365 * sysdeps/i386/memset.c (memset): Likewise.
3366 * sysdeps/i386/strchr.S (strchr): Likewise.
3367 * sysdeps/i386/strcspn.S (strcspn): Likewise.
3368 * sysdeps/i386/strlen.c (strlen): Likewise.
3369 * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
3370 * sysdeps/i386/strrchr.S (strrchr): Likewise.
3371 * sysdeps/i386/strspn.S (strspn): Likewise.
3372 * sysdeps/ia64/memchr.S (memchr): Likewise.
3373 * sysdeps/ia64/memcpy.S (memcpy): Likewise.
3374 * sysdeps/ia64/memmove.S (memmove): Likewise.
3375 * sysdeps/ia64/memset.S (memset): Likewise.
3376 * sysdeps/ia64/strcat.S (strcat): Likewise.
3377 * sysdeps/ia64/strchr.S (strchr): Likewise.
3378 * sysdeps/ia64/strcmp.S (strcmp): Likewise.
3379 * sysdeps/ia64/strcpy.S (strcpy): Likewise.
3380 * sysdeps/ia64/strlen.S (strlen): Likewise.
3381 * sysdeps/ia64/strncmp.S (strncmp): Likewise.
3382 * sysdeps/ia64/strncpy.S (strncpy): Likewise.
3383 * sysdeps/m68k/memchr.S (memchr): Likewise.
3384 * sysdeps/m68k/strchr.S (strchr): Likewise.
3385 * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
3386 * sysdeps/mips/mips64/memset.S (memset): Likewise.
3387 * sysdeps/mips/memcpy.S (memcpy): Likewise.
3388 * sysdeps/mips/memset.S (memset): Likewise.
3389 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
3390 * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
3391 * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
3392 * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
3393 * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
3394 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
3395 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
3396 * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
3397 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
3398 * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
3399 * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
3400 * sysdeps/powerpc/strcat.c (strcat): Likewise.
3401 * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
3402 * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
3403 * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
3404 * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
3405 * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
3406 * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
3407 * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
3408 * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
3409 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
3410 * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
3411 * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
3412 * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
3413 * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
3414 * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
3415 * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
3416 * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
3417 * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
3418 * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
3419 * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
3420 * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
3421 * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
3422 * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
3423 * sysdeps/sh/memcpy.S (memcpy): Likewise.
3424 * sysdeps/sh/memset.S (memset): Likewise.
3425 * sysdeps/sh/strlen.S (strlen): Likewise.
3426 * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
3427 * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
3428 * sysdeps/s390/s390-32/memset.S (memset): Likewise.
3429 * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
3430 * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
3431 * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
3432 * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
3433 * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
3434 * sysdeps/s390/s390-64/memset.S (memset): Likewise.
3435 * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
3436 * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
3437 * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
3438 * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
3439 * sysdeps/x86_64/memset.S (memset): Likewise.
3440 * sysdeps/x86_64/strcat.S (strcat): Likewise.
3441 * sysdeps/x86_64/strchr.S (strchr): Likewise.
3442 * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
3443 * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
3444 * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
3445 * sysdeps/x86_64/strlen.S (strlen): Likewise.
3446 * sysdeps/x86_64/strspn.S (strspn): Likewise.
3447 * string/string-inlines.c: Move...
3448 * sysdeps/generic/string-inlines.c: ...here.
3449 (__memcpy_g, __strchr_g): Remove.
3450 (__NO_INLINE__): Define before including <string.h>,
3451 undefine after. Include bits/string.h and bits/string2.h.
3452 * sysdeps/i386/i486/string-inlines.c: New file.
3453 * sysdeps/i386/string-inlines.c: New file.
3454 * sysdeps/i386/i486/Versions: Remove.
3455 All GLIBC_2.1.1 symbols moved...
3456 * sysdeps/i386/Versions (libc): ...here.
3457
3458 2003-04-29 Ulrich Drepper <drepper@redhat.com>
3459
3460 * sysdeps/i386/fpu/Makefile: New file.
3461 * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
3462 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
3463 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
3464 * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
3465 [PR libc/4987].
3466
3467 2003-04-28 Ulrich Drepper <drepper@redhat.com>
3468
3469 * nscd/nscd_getgr_r.c: Compact code a bit. Add some __builtin_expect.
3470 * nscd/nscd_getpw_r.c: Likewise.
3471 * nscd/nscd_gethst_r.c: Likewise.
3472
3473 2003-04-27 Ulrich Drepper <drepper@redhat.com>
3474
3475 * nscd/pwdcache.c: Initialize .version element in result.
3476 * nscd/grpcache.c: Likewise.
3477 * nscd/pwdcache.c: Likewise.
3478
3479 2003-04-27 Andreas Schwab <schwab@suse.de>
3480
3481 * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
3482 subdirectory.
3483
3484 2003-04-27 Andreas Schwab <schwab@suse.de>
3485
3486 * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
3487
3488 2003-04-27 Ulrich Drepper <drepper@redhat.com>
3489
3490 * nscd/connections.c (client_queued): New variable.
3491 (nscd_run): Revamp the loop. Don't call poll except for cleanup
3492 threads. Keep track of the number of delays caused because of busy
3493 worker threads.
3494 * nscd/nscd.h: Declare client_queued.
3495 * nscd/nscd_stat.c: Transmit and print client_queued information.
3496
3497 * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
3498
3499 * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
3500 define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
3501
3502 2003-04-26 Ulrich Drepper <drepper@redhat.com>
3503
3504 * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
3505 tracking of freed memory in static TLS block.
3506 * elf/Makefile: Add rules to build and run tst-tls13.
3507 * elf/tst-tls13.c: New file.
3508 * elf/tst-tlsmod13.c: New file.
3509 * elf/tst-tlsmod13a.c: New file.
3510
3511 * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
3512
3513 * elf/dl-reloc.c: Pretty printing.
3514
3515 2003-04-26 Roland McGrath <roland@redhat.com>
3516
3517 * Makerules ($(common-objpfx)shlib.lds): New target.
3518 (common-generated): Add it.
3519 (build-shlib, build-module): Use that instead of generating every time.
3520 ($(common-objpfx)libc.so): Depend on it.
3521 (lib%.so rule): Likewise.
3522 (build-module-helper-objlist): Remove %.lds.
3523 (LDSEDCMD-c.so): Variable removed.
3524 * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
3525 Depend on $(common-objpfx)shlib.lds.
3526 * dlfcn/Makefile ($(test-modules)): Likewise.
3527
3528 2003-04-26 Roland McGrath <roland@frob.com>
3529
3530 * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
3531
3532 2003-04-26 Andreas Schwab <schwab@suse.de>
3533
3534 * elf/dl-close.c (remove_slotinfo): Fix missing parens.
3535
3536 2003-04-25 Ulrich Drepper <drepper@redhat.com>
3537
3538 * nscd/cache.c (cache_search): Keep track of how many chain links
3539 we searched and update table statistics.
3540 (cache_add): Keep track of how many values are in the table.
3541 (prune_cache): Likewise. Keep track of locking success.
3542 Print messages about removed entries in separate pass.
3543 * nscd/connections.c (handle_request): Don't print debug message here.
3544 The caller will do it. Keep track of locking success.
3545 (nscd_run): Print debug message. Also print PID of the client process.
3546 * nscd/nscd.c (start_time): New variable.
3547 (main): Remember start time.
3548 * nscd/nscd.h: Declare start_time.
3549 (struct database): Add more members for new statistics.
3550 * nscd/nscd_stat.c: Add support for sending, receiving, and printing
3551 of new statistics.
3552
3553 * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
3554
3555 2003-04-22 Jakub Jelinek <jakub@redhat.com>
3556
3557 * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
3558 * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
3559 * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
3560 NO_TLS_OFFSET.
3561 * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
3562 * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
3563 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
3564 * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
3565 TLS_TCB_SIZE.
3566
3567 2003-04-24 Ulrich Drepper <drepper@redhat.com>
3568
3569 * nss/getent.c: Implement alternative host database lookup via
3570 getaddrinfo.
3571
3572 * include/ifaddrs.h: New file.
3573 * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
3574 AI_ADDRCONFIG...
3575 * resolv/netdb.h: ...here.
3576 * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
3577 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
3578 * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
3579 AI_ADDRCONFIG.
3580
3581 2003-04-24 Roland McGrath <roland@redhat.com>
3582
3583 * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
3584
3585 2003-04-24 Jakub Jelinek <jakub@redhat.com>
3586
3587 * elf/dl-reloc.c (allocate_static_tls): Rename to...
3588 (_dl_allocate_static_tls): ... this function. No longer static.
3589 (CHECK_STATIC_TLS): Adjust.
3590 * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
3591 * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
3592 Add SYM_MAP argument.
3593 (elf_machine_rela): Adjust caller. Declare SYM_MAP unconditionally.
3594 Check if SYM_MAP != NULL for R_PPC_DTPREL32. Only handle 32-bit
3595 TLS relocs here. #ifdef out relocs which never appear in
3596 .gnu.conflict section from dl-conflict.c processing.
3597 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
3598 Add SYM_MAP argument. Handle 16-bit TLS relocs here.
3599
3600 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
3601 out relocs which never appear in .gnu.conflict section from
3602 dl-conflict.c processing.
3603 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
3604 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3605 * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
3606 Use r_type in RESOLVE macro.
3607
3608 2003-04-23 Ulrich Drepper <drepper@redhat.com>
3609
3610 * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
3611 NULL. Remove code made redundant by this assumption.
3612 (__yp_unbind): Add call to free. Adjust all callers.
3613
3614 * nis/ypclnt.c (yp_all): Free the dom_binding object after
3615 unbinding it.
3616
3617 * grp/initgroups.c (getgrouplist): Don't copy too much into the
3618 user buffer if more groups are found than fit into it.
3619
3620 * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
3621 extend_alloca.
3622
3623 2003-04-23 Jakub Jelinek <jakub@redhat.com>
3624
3625 * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
3626 not rc == errno. Use extend_alloca.
3627
3628 * elf/tst-tls12.c (main): Fix declaration.
3629 * elf/tst-tls10.c (dummy): Make hidden instead of static.
3630 * elf/tst-tlsmod7.c (dummy): Likewise.
3631 * elf/tst-tlsmod8.c (dummy): Likewise.
3632 * elf/tst-tlsmod9.c (dummy): Likewise.
3633
3634 2003-04-22 Roland McGrath <roland@redhat.com>
3635
3636 * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
3637 (open_not_cancel): Make last argument non-optional.
3638 * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
3639 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
3640 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
3641
3642 * include/tls.h: Protect against multiple inclusion.
3643
3644 2003-04-22 Ulrich Drepper <drepper@redhat.com>
3645
3646 * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
3647 * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
3648 open_socket. Not static anymore.
3649 (nscd_gethst_r): Use __nscd_open_socket.
3650 * nscd/nscd_getgr_r.c (open_socket): Removed.
3651 (nscd_getgr_r): Use __nscd_open_socket.
3652 * nscd/nscd_getpw_r.c (open_socket): Removed.
3653 (nscd_getpw_r): Use __nscd_open_socket.
3654
3655 * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
3656 * nscd/connections.c (handle_request): Add cast to avoid warning.
3657
3658 2003-04-21 Ulrich Drepper <drepper@redhat.com>
3659
3660 * signal/sigfillset.c: Moved to...
3661 * sysdeps/generic/sigfillset.c: ...here. If SIGCANCEL is defined
3662 do not set the corresponding bit.
3663
3664 * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
3665 SIGCANCEL.
3666 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
3667 * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
3668 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
3669 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
3670 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
3671
3672 2003-04-20 Ulrich Drepper <drepper@redhat.com>
3673
3674 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
3675 first syscall parameter to const char*.
3676
3677 2003-04-19 Ulrich Drepper <drepper@redhat.com>
3678
3679 * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
3680
3681 * configure.in: Add AC_PROG_CXX.
3682 * config.make.in (CXX): Define.
3683
3684 * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
3685 __len to size_t to avoid warnings.
3686
3687 2003-04-18 Jes Sorensen <jes@wildopensource.com>
3688
3689 * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
3690 2.5.67.
3691 * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3692
3693 2003-04-19 Ulrich Drepper <drepper@redhat.com>
3694
3695 * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
3696 UNREGISTER_ATFORK if d == NULL.
3697
3698 * catgets/nl_types.h: Remove __THROW marker from cancellation points.
3699 * dirent/dirent.h: Likewise.
3700 * dlfcn/dlfcn.h: Likewise.
3701 * grp/grp.h: Likewise.
3702 * iconv/iconv.h: Likewise.
3703 * io/fcntl.h: Likewise.
3704 * io/ftw.h: Likewise.
3705 * libio/stdio.h: Likewise.
3706 * misc/sys/mman.h: Likewise.
3707 * misc/sys/select.h: Likewise.
3708 * misc/sys/syslog.h: Likewise.
3709 * misc/sys/uio.h: Likewise.
3710 * posix/spawn.h: Likewise.
3711 * posix/unistd.h: Likewise.
3712 * posix/sys/wait.h: Likewise.
3713 * pwd/pwd.h: Likewise.
3714 * resolv/netdb.h: Likewise.
3715 * rt/aio.h: Likewise.
3716 * shadow/shadow.h: Likewise.
3717 * signal/signal.h: Likewise.
3718 * socket/sys/socket.h: Likewise.
3719 * stdlib/stdlib.h: Likewise.
3720 * streams/stropts.h: Likewise.
3721 * string/string.h: Likewise.
3722 * sysdeps/gnu/utmpx.h: Likewise.
3723 * sysvipc/sys/msg.h: Likewise.
3724 * termios/termios.h: Likewise.
3725 * time/time.h: Likewise.
3726 * wcsmbs/wchar.h: Likewise.
3727 * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
3728 functions.
3729 * misc/daemon.c: Likewise.
3730 * sysdeps/generic/backtracesymsfd.c: Likewise.
3731 * sysdeps/generic/check_fds.c: Likewise.
3732 * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
3733 * sysdeps/unix/sysv/linux/not-cancel.h: New file.
3734 * sysdeps/generic/not-cancel.h: New file.
3735 * csu/Makefile (distribute): Add not-cancel.h.
3736 * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
3737 * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
3738 for assert.c and assert-perr.c to include <fatal-prepare.h>.
3739 * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
3740
3741 * sysdeps/posix/remove.c (remove): Rewrite. No need to restore
3742 errno and unlink first.
3743
3744 * io/ftw.c (ftw_dir): In all places assume fchdir is available.
3745
3746 2003-04-18 Ulrich Drepper <drepper@redhat.com>
3747
3748 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
3749 INTERNAL_SYSCALL instead of INLINE_SYSCALL.
3750
3751 2003-04-17 Ulrich Drepper <drepper@redhat.com>
3752
3753 * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
3754
3755 * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
3756 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
3757 replace.
3758
3759 * signal/Makefile (tests): Add tst-sigsimple.
3760 * signal/tst-sigsimple.c: New file.
3761
3762 2003-04-16 Jakub Jelinek <jakub@redhat.com>
3763
3764 * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
3765 tst-tls10.h.
3766 (tests): Add tst-tls1[0-2].
3767 (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
3768 ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
3769 ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
3770 ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
3771 ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
3772 ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
3773 ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
3774 * elf/tst-tls10.c: New test.
3775 * elf/tst-tls11.c: New test.
3776 * elf/tst-tls12.c: New test.
3777 * elf/tst-tls10.h: New file.
3778 * elf/tst-tlsmod7.c: New file.
3779 * elf/tst-tlsmod8.c: New file.
3780 * elf/tst-tlsmod9.c: New file.
3781 * elf/tst-tlsmod10.c: New file.
3782 * elf/tst-tlsmod11.c: New file.
3783 * elf/tst-tlsmod12.c: New file.
3784
3785 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
3786
3787 * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
3788 * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
3789 * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
3790
3791 2003-04-17 Ulrich Drepper <drepper@redhat.com>
3792
3793 * posix/regex.h: Include <sys/types.h>.
3794
3795 * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
3796 The signal number must be checked.
3797 * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
3798 The signal number must be checked [PR libc/5004].
3799
3800 * sysdeps/unix/sysv/linux/system.c: If compiled without threads
3801 don't do anything fancy.
3802
3803 * sysdeps/generic/bits/libc-lock.h: Define
3804 __rtld_lock_define_initialized_recursive.
3805
3806 * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
3807 contacting nscd if NOT_USENSCD_NAME > 0.
3808 * nss/nsswitch.c (__nss_disable_nscd): New function.
3809 * nss/nsswitch.h: Declare it.
3810 * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
3811 * nscd/nscd.c (main): Call __nss_disable_nscd.
3812
3813 2003-04-16 Ulrich Drepper <drepper@redhat.com>
3814
3815 * stdio-common/perror.c (perror): We don't need to set the offset
3816 to _IO_pos_bad, this is how streams are initialized.
3817
3818 * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
3819 (time_output): If necessary, allocate new buffer for .name string if
3820 padding is required.
3821
3822 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
3823 before copying. This might leave holes in the list. Adjust
3824 pointers if necessary.
3825 (netlink_receive): Allocate only one block.
3826 (free_netlink_handle): Adjust appropriately.
3827 (getifaddrs): Lots of cleanups.
3828
3829 * string/test-strncpy.c (do_one_test): Mark start and stop as
3830 possibly unused.
3831 * string/test-memchr.c: Likewise.
3832 * string/test-memcmp.c: Likewise.
3833 * string/test-memcpy.c: Likewise.
3834 * string/test-memmove.c: Likewise.
3835 * string/test-memset.c: Likewise.
3836 * string/test-strcat.c: Likewise.
3837 * string/test-strchr.c: Likewise.
3838 * string/test-strcmp.c: Likewise.
3839 * string/test-strcpy.c: Likewise.
3840 * string/test-strlen.c: Likewise.
3841 * string/test-strncmp.c: Likewise.
3842 * string/test-strpbrk.c: Likewise.
3843 * string/test-strrchr.c: Likewise.
3844 * string/test-strspn.c: Likewise.
3845
3846 2003-04-15 Roland McGrath <roland@redhat.com>
3847
3848 * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
3849
3850 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
3851 INTUSE(__register_frame_info_bases).
3852
3853 2003-04-15 Ulrich Drepper <drepper@redhat.com>
3854
3855 * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
3856 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
3857 AT_SYSINFO_EH_FRAME. Adjust string width.
3858 (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
3859 * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
3860 Add _dl_sysinfo_eh_frame field.
3861 * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
3862 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
3863 variable.
3864 [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
3865 if _dl_sysinfo_eh_frame is non-NULL.
3866
3867 * Makeconfig (gnulib): Add -lgcc_eh.
3868
3869 * config.h.in: Define HAVE_FORCED_UNWIND.
3870
3871 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
3872
3873 * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
3874 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
3875
3876 2003-04-15 Jakub Jelinek <jakub@redhat.com>
3877
3878 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
3879 checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
3880 against local symbol in conflict processing.
3881
3882 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
3883
3884 * sysdeps/powerpc/bits/atomic.h
3885 [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
3886 [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
3887 as abort stub.
3888 (__arch_compare_and_exchange_val_32_acq): Define.
3889 (atomic_compare_and_exchange_val_acq): Define.
3890
3891 2003-04-15 Ulrich Drepper <drepper@redhat.com>
3892
3893 * include/atomic.h: Pretty printing.
3894
3895 2003-04-14 Ulrich Drepper <drepper@redhat.com>
3896
3897 * stdio-common/vfscanf.c: Add casts to avoid warnings.
3898
3899 2003-04-14 Jakub Jelinek <jakub@redhat.com>
3900
3901 * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
3902 * sysdeps/x86_64/bits/atomic.h: Likewise.
3903
3904 2003-04-14 Ulrich Drepper <drepper@redhat.com>
3905
3906 * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
3907 POPARGS_1 to emit labels for the mov instructions.
3908
3909 2003-04-14 Jakub Jelinek <jakub@redhat.com>
3910
3911 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
3912
3913 2003-04-14 Roland McGrath <roland@redhat.com>
3914
3915 * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
3916 compiler warning.
3917
3918 * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
3919
3920 2003-04-14 Ulrich Drepper <drepper@redhat.com>
3921
3922 * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
3923 position. Reported by jreiser@BitWagon.com.
3924
3925 2003-04-13 Ulrich Drepper <drepper@redhat.com>
3926
3927 * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
3928 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
3929 * sysdeps/generic/unwind-dw2.c: Likewise.
3930 * sysdeps/generic/unwind-pe.h: Likewise.
3931
3932 2003-04-13 Alexandre Oliva <aoliva@redhat.com>
3933
3934 * sysdeps/unix/sysv/linux/mips/profil-counter: New.
3935 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
3936 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
3937 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
3938 (mcontext_t): Make it match the 32-bit mips kernel in o32.
3939 * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
3940 the mips and mips64 headers.
3941 (struct user): Port to n32/n64.
3942
3943 2003-04-12 Ulrich Drepper <drepper@redhat.com>
3944
3945 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
3946 avoid warning.
3947
3948 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
3949 __ASSUME_VSYSCALL is defined don't add restorer.
3950 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3951 __ASSUME_VSYSCALL for 2.5.53.
3952
3953 2003-04-11 Ulrich Drepper <drepper@redhat.com>
3954
3955 * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
3956 Remove HAVE_CANCELBUF code. Replace with code using the new
3957 initializers for unwind-based cleanup handling.
3958 * sysdeps/generic/unwind.h: Update from latest gcc version.
3959 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
3960 places to allow unwind data generation.
3961 * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
3962 * sysdeps/x86_64/bits/setjmp.h: Likewise.
3963 * sysdeps/sh/bits/setjmp.h: Likewise.
3964 * sysdeps/powerpc/bits/setjmp.h: Likewise.
3965 * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
3966 * sysdeps/alpha/bits/setjmp.h: Likewise.
3967
3968 2003-04-11 Roland McGrath <roland@redhat.com>
3969
3970 * csu/tst-empty.c: New file.
3971 * csu/Makefile (tests, tests-static): Add it.
3972
3973 2003-04-11 Jakub Jelinek <jakub@redhat.com>
3974
3975 * string/test-strcmp.c (do_random_tests): Test whether return value
3976 has been promoted to wordsize if the ABI requires caller to do so.
3977 * string/test-strncmp.c (do_random_tests): Likewise.
3978 * string/test-memcmp.c (do_random_tests): Likewise.
3979
3980 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
3981 before returning.
3982
3983 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
3984 (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
3985 is not defined, but the prctl constants are.
3986
3987 * string/tester.c (test_strcmp): Fix a typo.
3988
3989 2003-04-09 Ulrich Drepper <drepper@redhat.com>
3990
3991 * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
3992 * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
3993
3994 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
3995
3996 * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
3997 NewABI.
3998 (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
3999 NewABI.
4000 * sysdeps/mips/mips64/memcpy.S: Adjust register naming
4001 conventions.
4002 * sysdeps/mips/mips64/memset.S: Likewise.
4003 * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
4004 Use t0 instead of t4 as temporary.
4005
4006 2003-04-07 Ulrich Drepper <drepper@redhat.com>
4007
4008 * elf/ldconfig.c (parse_conf): Ignore leading whitespace. Use
4009 feof_unlocked instead of feof.
4010 (add_dir): Ignore trailing whitespace.
4011
4012 2003-04-07 Jakub Jelinek <jakub@redhat.com>
4013
4014 * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
4015 sum of SIZE1 and SIZE2 arguments.
4016
4017 2003-04-06 Ulrich Drepper <drepper@redhat.com>
4018
4019 * iconv/iconv_prog.c (process_block): Don't print message about
4020 invalid input if the -c option is used.
4021 (main): Correctly append IGNORE string for -c option.
4022
4023 2002-04-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4024
4025 * sysdeps/sh/bits/atomic.h: Moved to ...
4026 * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here. Add comments.
4027 (__arch_compare_and_exchange_val_*_acq): Add parens around macro
4028 arguments.
4029 (atomic_bit_set, atomic_bit_test_set): Likewise.
4030 (atomic_exchange_and_add): Likewise. Don't evaluate VALUE argument
4031 twice.
4032 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
4033
4034 2003-04-06 Roland McGrath <roland@redhat.com>
4035
4036 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
4037 restoration as done for setcontext yesterday.
4038
4039 2003-04-06 Jakub Jelinek <jakub@redhat.com>
4040
4041 * elf/rtld.c: Revert 2003-03-14 change.
4042 * elf/dl-conflict.c (_dl_resolve_conflicts): Move
4043 #if ! ELF_MACHINE_NO_RELA conditional into the routine.
4044
4045 2003-04-05 Ulrich Drepper <drepper@redhat.com>
4046
4047 * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
4048
4049 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
4050 Always initialize *signgamp before returning an error.
4051
4052 2003-04-05 Roland McGrath <roland@redhat.com>
4053
4054 * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
4055 below the stack pointer even if switching to the same context we are
4056 running right now.
4057
4058 2003-04-05 Ulrich Drepper <drepper@redhat.com>
4059
4060 * catgets/gencat.c (read_input_file): Make sure that \n is not
4061 alone on the line before testing for continuation.
4062
4063 * math/test-tgmath.c (compile_test): Initialize c.
4064
4065 2003-04-05 Alexandre Oliva <aoliva@redhat.com>
4066
4067 * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
4068 * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
4069 * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
4070 on mips n32.
4071 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
4072 XSTAT_IS_XSTAT64 must not be used for mips n64. Use 64-bit data
4073 structure on n32 as well.
4074 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
4075 data types on n32 and n64.
4076
4077 2003-04-05 Ulrich Drepper <drepper@redhat.com>
4078
4079 * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
4080 after getting them.
4081
4082 * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
4083 HAVE_register_atfork_malloc is defined use __register_atfork_malloc
4084 instead of __register_atfork.
4085
4086 2003-04-05 Jakub Jelinek <jakub@redhat.com>
4087
4088 * stdio-common/reg-printf.c (__register_printf_function): Calloc
4089 instead of malloc __printf_arginfo_table and __printf_function_table.
4090 Reported by John Reiser <jreiser@BitWagon.com>.
4091
4092 2003-04-04 Steven Munroe <sjmunroe@us.ibm.com>
4093
4094 * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
4095 * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
4096
4097 * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
4098 defining.
4099
4100 2003-04-04 Alexandre Oliva <aoliva@redhat.com>
4101
4102 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
4103 for n64 abi.
4104
4105 2003-04-03 Roland McGrath <roland@redhat.com>
4106
4107 * configure.in: Fix up use of compilation flags to match the build:
4108 For .s files, $ASFLAGS;
4109 For .S files, $CPPFLAGS $ASFLAGS;
4110 For .c files, $CFLAGS $CPPFLAGS;
4111 when linking, add $LDFLAGS.
4112 * configure: Regenerated.
4113
4114 2003-04-03 Jakub Jelinek <jakub@redhat.com>
4115
4116 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
4117 for atomic_compare_and_exchange_bool_acq failure.
4118
4119 2003-04-03 Ulrich Drepper <drepper@redhat.com>
4120
4121 * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
4122 _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
4123 _POSXI2_LOCALEDEF to 200112L. Remove _POSIX2_C_VERSION.
4124 Remove declaration of pthread_atfork.
4125
4126 2003-04-02 Ulrich Drepper <drepper@redhat.com>
4127
4128 * locale/iso-639.def: Add many more languages from the current ISO 639.
4129
4130 * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
4131 * sysdeps/generic/semtimedop.c: New file.
4132 * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
4133 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
4134 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4135 * sysvipc/Makefile (routines): Add semtimedop.
4136 * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
4137 * sysvipc/sys/sem.h: Declare semtimedop.
4138
4139 2003-04-02 Daniel Jacobowitz <drow@mvista.com>
4140
4141 * configure.in: Check for __register_frame_info in both
4142 -lgcc and -lgcc_eh.
4143 * configure: Regenerated.
4144
4145 2003-04-01 Roland McGrath <roland@redhat.com>
4146
4147 * scripts/abilist.awk: Allow dots in soname suffix.
4148
4149 * scripts/abilist.awk (emit): Fix bailout condition.
4150
4151 2003-04-01 Jakub Jelinek <jakub@redhat.com>
4152
4153 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
4154 IA-64 version.
4155
4156 * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
4157 register as input to asm.
4158
4159 2003-04-01 Jakub Jelinek <jakub@redhat.com>
4160
4161 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
4162
4163 2003-04-01 Andreas Jaeger <aj@suse.de>
4164
4165 * configure.in: Output as/ld as name if version is too old.
4166
4167 2003-03-31 Daniel Jacobowitz <drow@mvista.com>
4168
4169 * configure.in: Don't require an installed C library in the test
4170 for ".set" assembler support.
4171
4172 2003-03-31 Roland McGrath <roland@redhat.com>
4173
4174 * signal/tst-sigset.c: New file.
4175 * signal/Makefile (tests): Add it.
4176
4177 2003-03-31 Ulrich Drepper <drepper@redhat.com>
4178
4179 * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
4180 * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
4181 * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
4182 * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
4183 (__SIGRTMAX): Adjust accordingly.
4184 * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
4185 second compatibility symbol set.
4186 * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
4187
4188 2003-03-31 Andreas Schwab <schwab@suse.de>
4189
4190 * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
4191 Define.
4192 (atomic_decrement_and_test): Fix test.
4193
4194 2003-03-31 Jakub Jelinek <jakub@redhat.com>
4195
4196 * sysdeps/sparc/sparc32/bits/atomic.h: New file.
4197 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
4198 * sysdeps/sparc/sparc64/bits/atomic.h: New file.
4199 * sysdeps/sparc/sparc32/atomicity.h: Removed.
4200 * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
4201 * sysdeps/sparc/sparc64/atomicity.h: Removed.
4202
4203 2003-03-30 Roland McGrath <roland@redhat.com>
4204
4205 * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
4206
4207 * intl/po2test.sed: Anchor substitution regexps to fix last change.
4208
4209 2003-03-29 Paolo Bonzini <bonzini@gnu.org>
4210
4211 * intl/po2test.sed: Unify the transformations for msgid and msgstr
4212 and remove a useless s/// command.
4213
4214 2003-03-27 David Mosberger <davidm@hpl.hp.com>
4215
4216 * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
4217 directive into empty .prologue region to ensure that call-chain
4218 is terminated even for the first instruction.
4219
4220 * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
4221 to terminate call-chain right from the get-go.
4222
4223 * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
4224 stop bit between compare & branch.
4225
4226 2003-03-29 Ulrich Drepper <drepper@redhat.com>
4227
4228 * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
4229 point correctly [PR libc/4993].
4230
4231 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
4232 netlink_open calls if netlink is known to not be available.
4233
4234 2003-03-29 Alexandre Oliva <aoliva@redhat.com>
4235
4236 * configure.in: Add mips64* support.
4237 * sysdeps/mips/bits/endian.h: Make it bi-endian.
4238 * sysdeps/mips/mipsel/bits/endian.h: Removed.
4239 * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
4240 * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
4241 * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
4242 * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
4243 * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
4244 * sysdeps/mips/Implies: Moved wordsize-32 to...
4245 * sysdeps/mips/mips32/Implies: New file.
4246 * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
4247 ret_NOERRNO): New.
4248 (ret, PSEUDO_END): Moved past END.
4249 (PSEUDO): Moved to...
4250 * sysdeps/unix/mips/mips32/sysdep.h: New file.
4251 * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
4252 * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
4253 * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
4254 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
4255 * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
4256
4257 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
4258 Re-introduce ENTRY.
4259
4260 2003-03-28 Thorsten Kukuk <kukuk@suse.de>
4261
4262 * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
4263 * inet/test-ifaddrs.c: Allow AF_PACKET.
4264 * sysdeps/unix/sysv/linux/kernel-features.h: Add
4265 __ASSUME_NETLINK_SUPPORT.
4266
4267 2003-03-28 Ulrich Drepper <drepper@redhat.com>
4268
4269 * elf/vismain.c (do_test): Comment out tests which fail in the moment.
4270
4271 2003-03-26 H.J. Lu <hjl@gnu.org>
4272
4273 * elf/vismod.h (getvarlocal1): Return const char **.
4274 (getvarinmod1): Likewise.
4275 (getvaritcpt1): Likewise.
4276 (getvarlocal2): Likewise.
4277 (getvarinmod2): Likewise.
4278 (getvaritcpt2): Likewise.
4279 (getvaritcpt3): Likewise.
4280 * elf/vismain.c (do_test): Adjusted.
4281 * elf/vismod1.c (getvarlocal1): Return address.
4282 (getvarinmod1): Likewise.
4283 (getvaritcpt1): Likewise.
4284 * elf/vismod2.c (getvarlocal2): Likewise.
4285 (getvarinmod2): Likewise.
4286 (getvaritcpt2): Likewise.
4287 * elf/vismod3.c (getvaritcpt3): Likewise.
4288
4289 2003-03-28 Roland McGrath <roland@redhat.com>
4290
4291 * elf/vismain.c (do_test): Print both addresses when they don't match.
4292
4293 * scripts/abilist.awk: If given -v filename_regexp and/or -v
4294 libname_regexp when parsing names, then produce output only
4295 for those matching the given regexps. In combine mode, save all
4296 stanzas for a final sorting by stanza header at the end.
4297 Emit a blank line between stanzas.
4298
4299 * scripts/abilist.awk: When given -v combine=1, do parse_names and
4300 emit a single output stream with lib name in stanza header lines.
4301
4302 * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
4303
4304 2003-03-27 Roland McGrath <roland@redhat.com>
4305
4306 * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
4307 (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
4308
4309 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4310
4311 * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
4312 Return old value. Make asm output reg constraint earlyclobber.
4313 Renamed from...
4314 (__arch_compare_and_exchange_8_acq): ... this.
4315 (__arch_compare_and_exchange_val_16_acq):
4316 Return old value. Make asm output reg constraint earlyclobber.
4317 Renamed from...
4318 (__arch_compare_and_exchange_16_acq): ... this.
4319 (__arch_compare_and_exchange_val_32_acq):
4320 Return old value. Make asm output reg constraint earlyclobber.
4321 Renamed from...
4322 (__arch_compare_and_exchange_32_acq): ... this.
4323 (__arch_compare_and_exchange_val_64_acq):
4324 Renamed from...
4325 (__arch_compare_and_exchange_64_acq): ... this.
4326 (atomic_exchange_and_add): Use local variables and
4327 __arch_compare_and_exchange_val_64_acq.
4328 (atomic_add): Likewise.
4329 (atomic_add_negative, atomic_add_zero): Use local variables.
4330
4331 2003-03-28 Alexandre Oliva <aoliva@redhat.com>
4332
4333 * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
4334
4335 2003-03-27 Ulrich Drepper <drepper@redhat.com>
4336
4337 * Makefile: Remove libmd5crypt goal.
4338
4339 2003-03-25 Jakub Jelinek <jakub@redhat.com>
4340
4341 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
4342 special handling of relocations against local symbols.
4343
4344 2003-03-27 Steven Munroe <sjmunroe@us.ibm.com>
4345
4346 * sysdeps/powerpc/bits/atomic.h
4347 (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
4348 [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
4349 Define PPC64 specific version.
4350 [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
4351 Change (mem) constraint to "b".
4352 [__powerpc64__] (__arch_atomic_exchange_and add_64):
4353 Replace addi with add. Change (value) contraint to "r".
4354 Change (mem) constraint to "b".
4355 [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
4356 (__arch_atomic_exchange_32): Change (mem) constraint to "b".
4357 (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
4358 (__arch_atomic_decrement_if_positive_32): New macro.
4359 (atomic_decrement_if_positive): Use __arch* macros.
4360
4361 2003-03-27 Jakub Jelinek <jakub@redhat.com>
4362
4363 * sysdeps/ia64/fpu/libm-test-ulps: Update.
4364
4365 2003-03-27 Roland McGrath <roland@redhat.com>
4366
4367 * scripts/rpm2dynsym.sh: New file.
4368 * Makefile (distribute): Add it.
4369
4370 2003-03-27 David Mosberger <davidm@hpl.hp.com>
4371
4372 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
4373 ar.unat before returning. Add missing .mem.offset directives
4374 to ensure file gets assembled without warnings.
4375 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
4376
4377 2003-03-27 Jakub Jelinek <jakub@redhat.com>
4378
4379 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
4380 Return -1 instead of 0 if clock_getres failed.
4381
4382 2003-03-27 Roland McGrath <roland@redhat.com>
4383
4384 * scripts/abilist.awk: If variable `parse_names' is set, grok the file
4385 header lines and write out foo.symlist files for each foo.so.NN listed.
4386
4387 * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
4388 This symbol is exported, and we don't want to hide it.
4389 Add libc_hidden_proto instead.
4390 (_IO_file_jumps): Add libc_hidden_proto.
4391 * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
4392 Remove INTVARDEF.
4393 * libio/fileops.c (_IO_file_jumps): Likewise.
4394 * libio/stdfiles.c: Don't use INTUSE on them.
4395 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
4396 * libio/iofopen.c (__fopen_internal): Likewise.
4397 * libio/freopen.c (freopen): Likewise.
4398 * libio/freopen64.c (freopen64): Likewise.
4399 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
4400
4401 * Makerules (check-abi) [$(enable-check-abi) = warn]:
4402 Ignore exit status from diff.
4403 * configure.in (enable_check_abi): Document possible value "warn".
4404 Change default to no for now.
4405 * configure: Regenerated.
4406
4407 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
4408 macro calls and a #include <stub-tag.h> at the end.
4409 * Makerules ($(objpfx)stubs): Tweak sed commands.
4410
4411 * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
4412 caller column for *xattr syscalls, since they are in sysdeps/generic.
4413
4414 * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
4415 * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
4416
4417 2003-03-26 Roland McGrath <roland@redhat.com>
4418
4419 * Makerules (check-abi-config): Use /thread instead of /tls when
4420 use-thread and not just use-tls is set.
4421
4422 * Makerules (update-abi): Put quotes around $(update-abi-config).
4423
4424 * elf/Makefile (check-abi): Depend on check-abi-ld.
4425 (update-abi): Depend on update-abi-ld.
4426
4427 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
4428
4429 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
4430 do not check for errors (unless testing for 32bit variant).
4431 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
4432
4433 2003-03-27 Philip Blundell <philb@gnu.org>
4434
4435 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
4436 unconditional mov. Remove nop.
4437
4438 * sysdeps/unix/sysv/linux/kernel-features.h
4439 (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
4440 * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
4441 when __ASSUME_VFORK_SYSCALL is defined.
4442 * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
4443 __ASSUME_MMAP2_SYSCALL.
4444 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
4445 __ASSUME_REALTIME_SIGNALS.
4446
4447 2003-03-26 Ulrich Drepper <drepper@redhat.com>
4448
4449 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
4450 only if DL_NO_COPY_RELOCS is not defined.
4451 * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
4452
4453 2003-03-26 Roland McGrath <roland@redhat.com>
4454
4455 * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
4456 SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
4457 * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
4458 (sysdep_routines): Add stub-syscalls.
4459 ($(objpfx)stub-syscalls.c): New target.
4460 (generated): Add stub-syscalls.c.
4461
4462 * tls.make.c: Also define use-tls according to USE_TLS macro.
4463
4464 2003-03-26 Ulrich Drepper <drepper@redhat.com>
4465
4466 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
4467 no-op padding element.
4468 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
4469 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
4470 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
4471 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
4472
4473 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
4474
4475 * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
4476 condition check for the return value of getgroups32.
4477
4478 2003-03-26 Jakub Jelinek <jakub@redhat.com>
4479
4480 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
4481 Fix a typo.
4482 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
4483 PSEUDO_END_NOERRNO): Define.
4484 * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
4485 Define to PSEUDO_END.
4486
4487 2003-03-26 Ulrich Drepper <drepper@redhat.com>
4488
4489 * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
4490
4491 2003-03-25 Jiro SEKIBA <jir@yamato.ibm.com>
4492
4493 * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
4494 * iconvdata/bug-iconv4.c: New file.
4495 * iconvdata/Makefile (tests): Add bug-iconv4.
4496
4497 2003-03-25 H.J. Lu <hjl@gnu.org>
4498
4499 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
4500 symbols twice.
4501 (_dl_lookup_versioned_symbol): Likewise.
4502
4503 2003-03-26 Jakub Jelinek <jakub@redhat.com>
4504
4505 * csu/tst-atomic.c (do_test): Add some new
4506 atomic_compare_and_exchange_val_acq, atomic_add_zero,
4507 atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
4508 * include/atomic.h (atomic_add_negative, atomic_add_zero):
4509 Prefix local variable so that it doesn't clash with the one
4510 in atomic_exchange_and_add.
4511 * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
4512 pointers.
4513 (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
4514 * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
4515 value into register.
4516 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
4517 Cast newval to long.
4518 * sysdeps/x86_64/bits/atomic.h
4519 (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
4520 long.
4521 (atomic_exchange): Cast newvalue to long if sizeof == 8.
4522 (atomic_exchange_and_add): Cast value to long if sizeof == 8.
4523 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
4524 (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
4525
4526 2003-03-21 Martin Schwidefsky <schwidefskyde.ibm.com>
4527
4528 * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
4529 bit from backtrace addresses.
4530
4531 2003-03-21 Andreas Schwab <schwab@suse.de>
4532
4533 * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
4534 __chown symbols.
4535
4536 2003-03-25 Roland McGrath <roland@redhat.com>
4537
4538 * config.make.in (enable-check-abi): New variable from configure.
4539 * configure.in (enable_check_abi): New substituted variable,
4540 controlled by --{enable,disable}-check-abi (default yes).
4541 * configure: Regenerated.
4542 * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
4543 on check-abi dependency.
4544
4545 2003-03-26 Andreas Schwab <schwab@suse.de>
4546
4547 * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
4548 * include/atomic.h: Likewise.
4549
4550 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
4551
4552 2003-03-25 Roland McGrath <roland@redhat.com>
4553
4554 * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
4555 (__arch_atomic_exchange_64): New macro.
4556 (atomic_exchange): Use them.
4557 (__arch_atomic_exchange_and_add_32): New macro.
4558 (__arch_atomic_exchange_and_add_64): New macro.
4559 (atomic_exchange_and_add): Use them.
4560 Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
4561
4562 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
4563
4564 * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
4565 Define.
4566 * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
4567 ISA tests.
4568 (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
4569 (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
4570 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
4571 to decide whether to add padding.
4572 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
4573 to decide whether to add padding.
4574 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
4575 old_kernel_sigaction): Likewise.
4576
4577 2003-03-25 Ulrich Drepper <drepper@redhat.com>
4578
4579 * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
4580 atomic_add_zero were supposed to do.
4581 * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
4582 to x86 behavior.
4583
4584 * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
4585 This matches the new timer implementation.
4586 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
4587 Likewise.
4588 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
4589 Likewise.
4590 * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
4591 timer info for what the kernel provides these days.
4592 (struct sigevent): Add _tid field.
4593 Define SIGEV_THREAD_ID.
4594 Remove struct __pthread_attr_s forward declaration.
4595 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
4596 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
4597 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
4598 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
4599
4600 * Versions.def (librt): Add GLIBC_2.3.3.
4601
4602 * abilist/libpthread.abilist: Update for nptl.
4603
4604 2003-03-24 Jon Grimm <jgrimm@us.ibm.com>
4605
4606 * inet/netinet/in.h: Add IPPROTO_SCTP.
4607
4608 2003-03-24 Ulrich Drepper <drepper@redhat.com>
4609
4610 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
4611
4612 2003-03-24 Philip Blundell <philb@gnu.org>
4613
4614 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
4615 Remove a1 from clobber list.
4616
4617 2003-03-24 Ulrich Drepper <drepper@redhat.com>
4618
4619 * timezone/antarctica: Update from tzdata2003a.
4620 * timezone/asia: Likewise.
4621 * timezone/australasia: Likewise.
4622 * timezone/europe: Likewise.
4623 * timezone/iso3166.tab: Likewise.
4624 * timezone/northamerica: Likewise.
4625 * timezone/southamerica: Likewise.
4626 * timezone/zone.tab: Likewise.
4627
4628 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
4629
4630 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
4631
4632 2003-03-23 Ulrich Drepper <drepper@redhat.com>
4633
4634 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
4635 unwanted expansion by definining to ret. Patch by Ian Wienand.
4636
4637 * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
4638 the parameter description to denote no error checking. Generate
4639 appropriate pseudo asm code.
4640 * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
4641 * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
4642 getpgrp, and getppid with 'E'.
4643 * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
4644 PSEUDO_END_NOERRNO, and ret_NOERRNO.
4645 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
4646 * sysdeps/unix/sysdep.h: Likewise.
4647 * sysdeps/unix/alpha/sysdep.h: Likewise.
4648 * sysdeps/unix/sparc/sysdep.h: Likewise.
4649 * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
4650 * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
4651 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
4652 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
4653 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
4654 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
4655 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
4656 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4657 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
4658 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
4659 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
4660
4661 2003-03-23 Roland McGrath <roland@redhat.com>
4662
4663 * Makeconfig (+includes): Don't use $(last-includes).
4664
4665 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
4666
4667 * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
4668 * sysdeps/unix/sysv/linux/configure: Rebuilt.
4669
4670 2003-03-23 Jakub Jelinek <jakub@redhat.com>
4671
4672 * sysdeps/alpha/fpu/libm-test-ulps: Update.
4673 * sysdeps/arm/libm-test-ulps: Update.
4674 * sysdeps/hppa/fpu/libm-test-ulps: Update.
4675 * sysdeps/ia64/fpu/libm-test-ulps: Update.
4676 * sysdeps/mips/fpu/libm-test-ulps: Update.
4677 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
4678 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4679 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
4680 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
4681 * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
4682 * sysdeps/s390/fpu/libm-test-ulps: Update.
4683 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4684
4685 2003-03-22 Roland McGrath <roland@redhat.com>
4686
4687 * include/atomic.h: Put parens around all macro arguments.
4688 (__atomic_val_bysize, __atomic_bool_bysize): New macros.
4689 (atomic_compare_and_exchange_val_acq): Use it.
4690 (atomic_compare_and_exchange_bool_acq): Likewise.
4691 (atomic_increment_and_test): Invert sense of test.
4692 (atomic_decrement_and_test): Likewise.
4693 * csu/tst-atomic.c: Update those tests to match.
4694
4695 2003-03-22 Jakub Jelinek <jakub@redhat.com>
4696
4697 * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
4698 Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
4699 (atomic_compare_and_exchange_bool_acq): Add comment. Don't use
4700 __oldval variable in the macro, since it might be macro argument.
4701 (atomic_decrement_if_positive): Initialize __memp, remove setting
4702 of non-existent variable.
4703 (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
4704 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
4705 using atomic_compare_and_exchange_val_acq.
4706 (atomic_decrement_if_positive, atomic_bit_test_set): Define.
4707 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
4708 Renamed from...
4709 (__arch_compare_and_exchange_bool_8_acq): ... this.
4710 (__arch_compare_and_exchange_val_16_acq): Renamed from...
4711 (__arch_compare_and_exchange_bool_16_acq): ... this.
4712 (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed
4713 from...
4714 (__arch_compare_and_exchange_bool_32_acq): ... this.
4715 (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed
4716 from...
4717 (__arch_compare_and_exchange_bool_64_acq): ... this.
4718 (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
4719 variables types instead of assuming int.
4720 Change prefix of local variables to __arch.
4721 * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
4722 Remove.
4723 (atomic_compare_and_exchange_val_acq,
4724 atomic_compare_and_exchange_bool_acq): Define.
4725
4726 * csu/tst-atomic.c: New test.
4727 * csu/tst-atomic-long.c: New test.
4728 * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
4729
4730 * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
4731
4732 * sysdeps/s390/Versions: Add trailing newline.
4733
4734 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
4735 if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
4736
4737 2003-03-22 Andreas Schwab <schwab@suse.de>
4738
4739 * sysdeps/m68k/fpu/libm-test-ulps: Update.
4740
4741 * sysdeps/m68k/m68020/bits/atomic.h: New file.
4742 * sysdeps/m68k/m68020/atomicity.h: Removed.
4743
4744 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
4745
4746 * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
4747 data structures and macros. Protect from multiple inclusion.
4748
4749 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
4750 typo in #if test.
4751
4752 2003-03-21 Andreas Jaeger <aj@suse.de>
4753
4754 * sysdeps/i386/fpu/libm-test-ulps: Update.
4755
4756 * math/libm-test.inc (tgamma_test): Recompute some constants with
4757 36 digits precision.
4758 (lgamma_test): Likewise.
4759 (ccos_test): Likewise.
4760 (ccosh_test): Likewise.
4761 (clog10_test): Likewise.
4762 (csin_test): Likewise.
4763 (csinh_test): Likewise.
4764 (ctan_test): Likewise.
4765 (ctanh_test): Likewise.
4766
4767 2003-03-19 Jakub Jelinek <jakub@redhat.com>
4768
4769 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
4770
4771 2003-03-21 Roland McGrath <roland@redhat.com>
4772
4773 * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
4774 constraint to permit non-constant BIT argument.
4775 (atomic_bit_test_set): Likewise.
4776 * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
4777 (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32.
4778 For quadword case, use "i" constraint if __builtin_constant_p and < 32
4779 or "r" constraint otherwise.
4780
4781 * configure.in: Move AC_PROG_CC and other program-finding before all
4782 the version checks.
4783 * configure: Regenerated.
4784
4785 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
4786
4787 * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
4788 unaligned copying of 8-15 bytes. From Chris Demetriou
4789 <cgd@broadcom.com>. Fix label names.
4790 * sysdeps/mips/mips64/memset.S: Fix label names. Make similar
4791 change as to memcpy.S.
4792 * sysdeps/mips/memcpy.S: Formatting changes.
4793 * sysdeps/mips/memset.S: Likewise.
4794
4795 2003-03-21 Roland McGrath <roland@redhat.com>
4796
4797 * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
4798
4799 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
4800
4801 * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
4802 * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
4803
4804 2003-03-21 Roland McGrath <roland@redhat.com>
4805
4806 * sysdeps/i386/i486/bits/atomic.h
4807 (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
4808 version of the macro to avoid compile-time warnings.
4809 [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
4810 (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
4811 (atomic_increment, atomic_decrement): Likewise.
4812
4813 2003-03-21 Ulrich Drepper <drepper@redhat.com>
4814
4815 * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
4816 * sysdeps/i386/i486/bits/atomic.h: Likewise.
4817
4818 2003-03-21 Roland McGrath <roland@redhat.com>
4819
4820 * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
4821
4822 2003-03-20 Ulrich Drepper <drepper@redhat.com>
4823
4824 * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
4825 atomic_compare_and_exchange_val_rel,
4826 atomic_compare_and_exchange_bool_acq, and
4827 atomic_compare_and_exchange_bool_rel instead of
4828 atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
4829 * sysdeps/i386/i486/bits/atomic.h: Define
4830 __arch_compare_and_exchange_val_*_acq instead of
4831 __arch_compare_and_exchange_*_acq.
4832 * sysdeps/x86_64/bits/atomic.h: Likewise.
4833 * sysdeps/ia64/bits/atomic.h: Define
4834 __arch_compare_and_exchange_bool_*_acq instead of
4835 __arch_compare_and_exchange_*_acq.
4836 * sysdeps/powerpc/bits/atomic.h: Likewise.
4837 * sysdeps/s390/bits/atomic.h: Likewise.
4838 * gmon/mcount.c: Adjust for new form of compare&exchange macros.
4839 * malloc/set-freeres.c: Likewise.
4840 * nscd/cache.c: Likewise.
4841 * stdlib/cxa_finalize.c: Likewise.
4842 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
4843
4844 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
4845
4846 * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
4847 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
4848 * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
4849
4850 * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
4851 into high and low halves on n64.
4852 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4853 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4854 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4855
4856 2003-03-20 Ulrich Drepper <drepper@redhat.com>
4857
4858 * include/atomic.h (atomic_decrement_if_positive): Adjust for the
4859 correct atomic_compare_and_exchange_acq semantics.
4860
4861 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
4862
4863 * sysdeps/mips/ieee754.h: Remove excess #endif.
4864
4865 2003-03-20 Roland McGrath <roland@redhat.com>
4866
4867 * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
4868 variable. Remove superfluous memory clobber.
4869
4870 * include/atomic.h: Syntax braino fix.
4871
4872 * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
4873 in decimal. Don't bail if niced at start. Just check that nice call
4874 bumps the total at all.
4875
4876 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
4877
4878 * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
4879 including pc, gp, sp and fp, as long long.
4880 * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
4881 * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
4882 Add gp argument, and set gp in the jmpbuf to it.
4883 * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
4884
4885 2003-03-20 Ulrich Drepper <drepper@redhat.com>
4886
4887 * include/atomic.h: Define atomic_exchange and
4888 atomic_decrement_if_positive if not already defined. Add some
4889 __builtin_expect.
4890 * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
4891 * sysdeps/x86_64/bits/atomic.h: Likewise.
4892 * sysdeps/ia64/bits/atomic.h: Pretty printing. Define atomic_exchange.
4893 * sysdeps/powerpc/bits/atomic.h: Pretty printing. Define
4894 atomic_exchange, atomic_exchange_and_add, and
4895 atomic_decrement_if_positive
4896
4897 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
4898
4899 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
4900 with a single instruction.
4901
4902 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
4903 properly for n64.
4904 (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
4905 type.
4906 (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
4907 Word before comparing with gotsym. Take reloc_addr argument as
4908 void*. Remove the code added for the compiler to drop any
4909 alignment assumptions.
4910
4911 2003-03-19 Ulrich Drepper <drepper@redhat.com>
4912
4913 * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
4914 * include/atomic.h: New file.
4915 * sysdeps/i386/i486/bits/atomic.h: New file.
4916 * sysdeps/x86_64/bits/atomic.h: New file.
4917 * sysdeps/s390/bits/atomic.h: New file.
4918 * sysdeps/sh/bits/atomic.h: New file.
4919 * sysdeps/ia64/bits/atomic.h: New file.
4920 * sysdeps/powerpc/bits/atomic.h: New file.
4921 * sysdeps/generic/bits/atomic.h: New file.
4922 * sysdeps/i386/i486/atomicity.h: Removed.
4923 * sysdeps/x86_64/atomicity.h: Removed.
4924 * sysdeps/s390/s390-32/atomicity.h: Removed.
4925 * sysdeps/s390/s390-64/atomicity.h: Removed.
4926 * sysdeps/ia64/atomicity.h: Removed.
4927 * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
4928 * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
4929 * elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust
4930 use of macros from atomicity.h to new names and semantics.
4931 * gmon_mcount.c: Likewise.
4932 * malloc/set-freeres.c: Likewise.
4933 * nscd/cache.c: Likewise.
4934 * stdlib/cxa_finalize.c: Likewise.
4935 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
4936
4937 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
4938
4939 * sysdeps/mips/ieee754.h: New file, suitable to replace both
4940 ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
4941 mips-specific for now.
4942
4943 2003-03-19 Ulrich Drepper <drepper@redhat.com>
4944
4945 * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
4946 hexdigits correctly. Reported by Fred Tydeman <tydeman@tybor.com>.
4947 * stdlib/tst-strtod.c: Add test for the bug.
4948
4949 * posix/tst-nice.c (do_test): Remove invalid of return value.
4950 Don't run test if initial level != 0.
4951
4952 2003-03-19 Amos Waterland <apw@us.ibm.com>
4953
4954 * posix/tst-nice.c: New file.
4955 * posix/Makefile (tests): Add tst-nice.
4956
4957 2003-03-18 Roland McGrath <roland@redhat.com>
4958
4959 * abilist: New directory of libfoo.abilist files maintained using
4960 scripts/merge-abilist.awk and "make update-abi" rules.
4961 * Makefile (distribute): Add abilist/*.abilist.
4962 * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
4963 Depend on check-abi.
4964
4965 * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
4966 * configure: Regenerated.
4967
4968 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
4969
4970 2003-03-18 Ulrich Drepper <drepper@redhat.com>
4971
4972 * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
4973 correctly.
4974
4975 2003-03-18 Steven Munroe <sjmunroe@us.ibm.com>
4976
4977 * sysdeps/powerpc/powerpc64/memcpy.S: New file.
4978
4979 2003-03-18 Ulrich Drepper <drepper@redhat.com>
4980
4981 * Versions.def: Add GLIBC_2.3.3 for libpthread.
4982
4983 2003-03-17 Ulrich Drepper <drepper@redhat.com>
4984
4985 * sysdeps/generic/libc-start.c [!SHARED &&
4986 !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
4987
4988 2003-03-17 Roland McGrath <roland@redhat.com>
4989
4990 * include/ctype.h: Revert last change.
4991
4992 2003-03-17 Ulrich Drepper <drepper@redhat.com>
4993
4994 * argp/tst-argp1.c: Use test-skeleton.c.
4995 * locale/tst-C-locale.c: Likewise.
4996
4997 2003-03-17 Alexandre Oliva <aoliva@redhat.com>
4998
4999 * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
5000 * sysdeps/mips/mips64/n64/Implies: New file.
5001 * sysdeps/mips/mips64/n64/Makefile: New file.
5002 * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
5003 * sysdeps/mips/mips64/n32/Implies: New file.
5004 * sysdeps/mips/mips64/n32/Makefile: New file.
5005 * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
5006 * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
5007 * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
5008 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
5009 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
5010 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
5011 * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
5012 * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
5013 * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
5014 * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
5015 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
5016 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
5017 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
5018 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
5019
5020 * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
5021 lib64 for mips64/n64 and lib32 for mips64/n32.
5022 (ldd_rewrite_script): Needed for all mips64 configurations.
5023 * sysdeps/unix/sysv/linux/configure: Rebuilt.
5024 * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
5025 * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
5026
5027 * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
5028 well.
5029
5030 * sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
5031 asm/unistd.h into asm-unistd.h.
5032 * sysdeps/unix/sysv/linux/mips/configure: Generated.
5033 * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
5034 of syscall list.
5035 * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
5036 * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
5037 asm/unistd.h.
5038
5039 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
5040 * sysdeps/unix/sysv/linux/mips/ptrace.c: New file. Use long
5041 long type for registers on n32.
5042
5043 * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
5044 3 ABIs.
5045 * sysdeps/mips/mips64/gmp-mparam.h: New file. Define
5046 BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
5047 * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
5048 (__sigsetjmp_aux): Use them. Adjust for all 3 ABIs.
5049 * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
5050 * sysdeps/unix/mips/brk.S: Likewise.
5051 * sysdeps/unix/mips/sysdep.S: Likewise.
5052 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
5053 * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
5054 * sysdeps/mips/sys/ucontext.h: Likewise.
5055 * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
5056 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
5057 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
5058 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
5059 * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
5060 * sysdeps/mips/mips64/setjmp.S: Likewise.
5061 * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
5062 * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
5063 64-bit types.
5064
5065 2003-03-16 Ulrich Drepper <drepper@redhat.com>
5066
5067 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
5068 not at function level.
5069 * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
5070
5071 2003-03-15 Roland McGrath <roland@redhat.com>
5072
5073 * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
5074 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
5075 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
5076 * nis/nis_table.c (__create_ib_request): Likewise.
5077
5078 * posix/fnmatch_loop.c: Add casts for signedness.
5079 * nss/nss_files/files-hosts.c: Likewise.
5080 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
5081 * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
5082 * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
5083
5084 * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
5085 get errors into the log file.
5086 (libc_cv_broken_visibility_attribute): Likewise.
5087 (libc_cv_broken_alias_attribute): Likewise.
5088 (libc_cv_asm_weak_directive): Likewise.
5089 (libc_cv_need_minus_P): Likewise.
5090 (libc_cv_dot_text): Likewise.
5091 (libc_cv_asm_global_directive): Likewise.
5092 (libc_cv_asm_type_prefix): Likewise.
5093 * configure: Regenerated.
5094
5095 * nscd/cache.c (cache_search): Give first arg type `request_type'.
5096 * nscd/nscd.h: Update decl.
5097
5098 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
5099 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
5100 * elf/dl-close.c (_dl_close): Likewise.
5101 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
5102 * io/fts.c (fts_build): Likewise.
5103 * elf/cache.c (add_to_cache): Likewise.
5104 * locale/programs/locarchive.c (show_archive_content): Likewise.
5105
5106 * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
5107
5108 * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
5109 happy.
5110 (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
5111
5112 2003-03-15 Ulrich Drepper <drepper@redhat.com>
5113
5114 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
5115 code for most parts.
5116
5117 2003-03-15 Roland McGrath <roland@redhat.com>
5118
5119 * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
5120 * sysdeps/unix/sysv/linux/system.c: ... here.
5121 (FORK): Don't #define if already #define'd.
5122 * sysdeps/unix/sysv/linux/s390/system.c: File removed.
5123 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
5124 (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
5125
5126 * dlfcn/tst-dlinfo.c: New file.
5127 * dlfcn/Makefile (tests): Add tst-dlinfo.
5128 ($(objpfx)tst-dlinfo): New target.
5129
5130 * dlfcn/dlinfo.c: New file.
5131 * dlfcn/Makefile (libdl-routines): Add it.
5132 * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
5133 * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
5134 [__USE_GNU] (RTLD_DI_*): New enum constants.
5135 [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
5136 * elf/dl-load.c (cache_rpath): New inline function.
5137 (_dl_map_object): Use it.
5138 (_dl_rtld_di_serinfo): New function.
5139 * sysdeps/generic/ldsodefs.h: Declare it.
5140 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
5141
5142 * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
5143 (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
5144 (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
5145 (__libc_start_main): Just call the generic one for most of the work.
5146
5147 * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
5148 static function by that name instead of BP_SYM (__libc_start_main).
5149 [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
5150 [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
5151 [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
5152
5153 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
5154 Use this macro for extra AT_* cases.
5155 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
5156 New macro, guts from ...
5157 (__aux_init_cache): ... here, function removed.
5158 (DL_PLATFORM_INIT): Don't define this.
5159
5160 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
5161 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
5162
5163 * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
5164
5165 2003-03-14 Roland McGrath <roland@redhat.com>
5166
5167 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
5168
5169 2003-03-14 Jakub Jelinek <jakub@redhat.com>
5170
5171 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
5172
5173 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
5174 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
5175
5176 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
5177
5178 * sysdeps/mips/fpu/bits/mathdef.h: New.
5179 (__NO_LONG_DOUBLE_MATH): Define for o32.
5180
5181 * sysdeps/mips/sys/asm.h: Formatting changes.
5182 (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
5183 (CPADD): Define for all of them.
5184 (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
5185 SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
5186 NARGSAVE): Define per ABI spec.
5187 (END): Don't redefine.
5188 (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
5189 LONG_SRAV): Remove duplicate definitions.
5190 (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
5191 PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
5192 PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
5193 (PTR_LA): Define for all 3 ABIs.
5194
5195 * sysdeps/mips/dl-machine.h: Include sys/asm.h.
5196 (elf_machine_matches_host): Prevent linking of o32 and n32
5197 together.
5198 (elf_machine_dynamic): Document assumption on $gp.
5199 (STRINGXP, STRINGXV, STRINGV_): New macros.
5200 (elf_machine_load_address): Use them to stringize PTR_LA and
5201 PTR_SUBU.
5202 (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
5203 ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
5204 (_dl_runtime_resolve): Adjust it for all 3 ABIs.
5205 (__dl_runtime_resolve): Cast the symtab initializer to the
5206 right type.
5207 (RTLD_START): Use it. Adjust it for all 3 ABIs.
5208 (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
5209 Handle 64-bit R_MIPS_REL composite relocation and accept
5210 R_MIPS_64 relocations to shift addend size to 64 bits.
5211 Document assumption regarding local GOT entries. Document
5212 backward-compatibility departing from the ABI behavior in
5213 applying relocations that reference section symbols, no longer
5214 used. Support relocations to mis-aligned offsets.
5215 * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
5216
5217 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
5218
5219 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
5220 (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
5221 * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
5222 restore_rt functions. Use them.
5223
5224 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
5225 .set mips2 on new abis.
5226
5227 2003-03-13 Ulrich Drepper <drepper@redhat.com>
5228
5229 * posix/getconf.c: Recognize POSIX2_SYMLINKS.
5230 * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
5231 * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
5232 * sysdeps/posix/pathconf.c: Likewise.
5233 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
5234 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
5235 * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
5236
5237 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
5238 words.
5239
5240 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
5241
5242 * include/gmp.h: Include/gmp-mparam.h.
5243 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
5244 gmp-impl.h.
5245
5246 * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
5247 ELF_MACHINE_NO_RELA is set.
5248 * elf/rtld.c (dl_main): No prelink support for REL-only.
5249
5250 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
5251 FLAG_MIPS64_LIBN64): Define.
5252 * elf/cache.c (print_entry): Handle mips64 n32 and n64.
5253
5254 * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
5255 * sysdeps/mips/memset.S: Likewise.
5256 * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
5257 depending on the ABI.
5258
5259 * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
5260 Don't .set mips2 on new abi.
5261 (compare_and_swap): Likewise. Support 64-bit longs on n64.
5262
5263 * stdlib/fpioconst.h: Include gmp.h with angle brackets.
5264
5265 2003-03-13 Roland McGrath <roland@redhat.com>
5266
5267 * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
5268 found. Reported by Alexandre Oliva <aoliva@redhat.com>.
5269
5270 2003-03-13 Alexandre Oliva <aoliva@redhat.com>
5271
5272 * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
5273 literals long long.
5274 * stdlib/fpioconst.c: Likewise.
5275 * stdlib/strtod.c: Likewise.
5276
5277 * sysdeps/mips/add_n.S: Use L macro for local labels.
5278 * sysdeps/mips/addmul_1.S: Likewise.
5279 * sysdeps/mips/lshift.S: Likewise.
5280 * sysdeps/mips/memcpy.S: Likewise.
5281 * sysdeps/mips/memset.S: Likewise.
5282 * sysdeps/mips/mul_1.S: Likewise.
5283 * sysdeps/mips/rshift.S: Likewise.
5284 * sysdeps/mips/sub_n.S: Likewise.
5285 * sysdeps/mips/submul_1.S: Likewise.
5286 * sysdeps/mips/mips64/add_n.S: Likewise.
5287 * sysdeps/mips/mips64/addmul_1.S: Likewise.
5288 * sysdeps/mips/mips64/lshift.S: Likewise.
5289 * sysdeps/mips/mips64/mul_1.S: Likewise.
5290 * sysdeps/mips/mips64/rshift.S: Likewise.
5291 * sysdeps/mips/mips64/sub_n.S: Likewise.
5292 * sysdeps/mips/mips64/submul_1.S: Likewise.
5293 * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
5294 conventions. Define END as in sys/asm.h.
5295 * sysdeps/unix/mips/sysdep.S: Likewise.
5296 * sysdeps/unix/mips/wait.S: Likewise.
5297 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
5298
5299 * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
5300 Cast shifted values that may be too narrow to mp_limb_t.
5301 * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
5302 Likewise.
5303 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
5304 Likewise.
5305 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
5306 (__mpn_extract_long_double): Likewise.
5307 * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
5308 (__mpn_construct_long_double): Likewise.
5309 * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
5310 (__mpn_extract_long_double): Likewise.
5311 * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
5312 (__mpn_construct_long_double): Likewise.
5313
5314 2003-03-13 Roland McGrath <roland@redhat.com>
5315
5316 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
5317 entries in the map file match too.
5318
5319 2003-03-13 Guido Guenther <agx@sigxcpu.org>
5320
5321 * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
5322 label .Lthread_start since current binutils don't allow branches
5323 to globally visible symbols.
5324
5325 2003-03-13 Jakub Jelinek <jakub@redhat.com>
5326
5327 * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
5328 ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
5329 ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
5330 (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments
5331 clobbered by the syscall.
5332 (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
5333 ASM_ARGS_6): Change constraints from r to index of corresponding
5334 output register.
5335 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
5336 ptid and ctid to match kernel.
5337 * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
5338
5339 2003-03-12 Steven Munroe <sjmunroe@us.ibm.com>
5340
5341 * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
5342 AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64.
5343 * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
5344
5345 2003-03-11 Roland McGrath <roland@redhat.com>
5346
5347 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
5348 Check SYM_MAP rather than SYM as definedness check.
5349 Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
5350 Don't handle R_PPC64_REL24 reloc.
5351 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
5352
5353 * sysdeps/powerpc/powerpc64/dl-machine.h
5354 [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
5355 block, so we cover all the TPREL16* flavors without 6 ||s.
5356 [USE_TLS] (elf_machine_tprel): New function.
5357 (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
5358 and handle TPREL16 relocs too. Return rather than break for DTPREL64.
5359 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
5360
5361 2003-03-11 Ralf Baechle <ralf@linux-mips.org>
5362
5363 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
5364 instead of jalr to invoke subroutine so restoring the $gp register
5365 will work properly.
5366
5367 2003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
5368
5369 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
5370 to __NR_pread if not defined.
5371 (__NR_pwrite64): Define to __NR_pwrite if not defined.
5372
5373 2003-03-11 Jakub Jelinek <jakub@redhat.com>
5374
5375 * sysdeps/unix/sysv/linux/ia64/system.c: New file.
5376 * sysdeps/unix/sysv/linux/kernel-features.h
5377 (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
5378 kernel >= 2.5.64.
5379
5380 2003-03-11 Jakub Jelinek <jakub@redhat.com>
5381
5382 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
5383 allocate space even for the trailing '/'.
5384 Reported by John Reiser <jreiser@BitWagon.com>.
5385
5386 * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
5387 ASM_CLOBBERS_6): Define.
5388 (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
5389 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
5390 to match IA-32 order.
5391 * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
5392
5393 2003-03-10 Steven Munroe <sjmunroe@us.ibm.com>
5394
5395 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
5396 Copy extra params for NPTL to registers used in clone syscall.
5397
5398 2003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
5399
5400 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
5401 call names for pread and pwrite.
5402
5403 2003-03-10 Roland McGrath <roland@redhat.com>
5404
5405 * dlfcn/Makefile (libdl-routines): Add dladdr1.
5406 * dlfcn/dladdr1.c: New file.
5407 * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
5408 [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
5409 * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
5410 a const ElfNN_Sym ** to fill in.
5411 * include/dlfcn.h: Update decl. Include <link.h>.
5412 * dlfcn/dladdr.c (dladdr): Update caller.
5413 * malloc/mtrace.c (tr_where): Likewise.
5414 * sysdeps/generic/elf/backtracesyms.c: Likewise.
5415 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
5416 * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
5417 * Versions.def (libdl): Define GLIBC_2.3.3 set.
5418
5419 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
5420 assembler command.
5421 * sysdeps/unix/Makefile (compile-syscall): New variable.
5422 Pass -g0 to compiler for assembling syscall stubs from stdin.
5423
5424 * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
5425 (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
5426 Define these to do nothing.
5427
5428 * configure.in: New check for -g on .S files.
5429 * configure: Regenerated.
5430 * config.make.in (have-cpp-asm-debuginfo): New variable.
5431 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
5432 * Makeconfig (ASFLAGS): New variable, if undefined and
5433 $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
5434 * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
5435
5436 2003-03-09 Roland McGrath <roland@redhat.com>
5437
5438 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
5439 used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>.
5440
5441 2003-03-09 Ulrich Drepper <drepper@redhat.com>
5442
5443 * po/fi.po: Update from translation team.
5444 * po/ca.po: Likewise.
5445 * po/da.po: Likewise.
5446
5447 2003-03-08 Ulrich Drepper <drepper@redhat.com>
5448
5449 * rt/tst-aio7.c (do_test): Change BYTES into a #define.
5450
5451 2003-03-07 Ulrich Drepper <drepper@redhat.com>
5452
5453 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
5454
5455 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
5456
5457 2003-03-07 Roland McGrath <roland@redhat.com>
5458
5459 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
5460 * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
5461
5462 2003-03-04 Guido Guenther <agx@sigxcpu.org>
5463
5464 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
5465 stubs, we have INLINE_SYSCALL.
5466 * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
5467 MAP_NONBLOCK.
5468
5469 2003-03-06 Roland McGrath <roland@redhat.com>
5470
5471 * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1
5472 permanent extent and add a comment about testing its implicit teardown.
5473
5474 2003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
5475
5476 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
5477
5478 2003-03-05 Ulrich Drepper <drepper@redhat.com>
5479
5480 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
5481 reversed __builtin_expect expectation.
5482
5483 2003-03-05 Roland McGrath <roland@redhat.com>
5484
5485 * stdio-common/sscanf.c: Use prototype defn with ... syntax.
5486 * libio/swscanf.c: Likewise.
5487 * libio/swprintf.c: Likewise.
5488
5489 2003-03-04 Roland McGrath <roland@redhat.com>
5490
5491 * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
5492 (elf_machine_rela): Always use RESOLVE_MAP, needed for
5493 R_PPC64_JMP_SLOT as well as TLS cases.
5494 (BIT_INSERT): Move parenthesis where it ought to have been.
5495 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
5496
5497 * posix/confstr.c (confstr): Correct STRING_LEN values for
5498 _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
5499 break. Reported by Alexandre Julliard <julliard@winehq.com>.
5500
5501 2003-03-04 Jakub Jelinek <jakub@redhat.com>
5502
5503 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5504
5505 2003-03-04 Ulrich Drepper <drepper@redhat.com>
5506
5507 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
5508 clone parameters.
5509
5510 * po/sv.po: Update from translation team.
5511
5512 2003-03-04 Andreas Jaeger <aj@suse.de>
5513 Ulrich Drepper <drepper@redhat.com>
5514
5515 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
5516
5517 2003-03-03 Ulrich Drepper <drepper@redhat.com>
5518
5519 * sysdeps/generic/dl-sysdep.h: Add double include protection.
5520
5521 * po/tr.po: Update from translation team.
5522
5523 * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
5524 are holes between the segments. Only call mprotect to set
5525 proection to PROT_NONE if there are some.
5526
5527 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
5528 Update comment.
5529
5530 * include/sched.h (__clone2): Use ... instead of adding all the
5531 new parameters.
5532
5533 2003-03-03 Roland McGrath <roland@redhat.com>
5534
5535 * elf/dl-load.c (struct filebuf): Fix typo in last change.
5536
5537 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
5538 PI_STATIC_AND_HIDDEN.
5539
5540 2003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au>
5541
5542 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
5543 flags.
5544 * include/sched.h: Update clone2 prototype.
5545
5546 2003-03-03 Andreas Jaeger <aj@suse.de>
5547
5548 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
5549 (llrint): Use it to correct return type.
5550 (lrint): Likewise.
5551 (lround): Likewise.
5552 (llround): Likewise.
5553
5554 2003-03-03 Ulrich Drepper <drepper@redhat.com>
5555
5556 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
5557 byte filebuf size.
5558
5559 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
5560 if ccs parameter isn't valid. Reported by Andreas Schwab.
5561
5562 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
5563
5564 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
5565 for system call numbers > 255.
5566 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
5567 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
5568 INTERNAL_SYSCALL): Likewise.
5569 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
5570 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
5571 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
5572 INTERNAL_SYSCALL): Likewise.
5573
5574 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
5575
5576 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
5577 array if it is the initial dtv.
5578
5579 2003-03-03 Ulrich Drepper <drepper@redhat.com>
5580
5581 * po/es.po: Update from translation team.
5582 * po/fr.po: Likewise.
5583 * po/gl.po: Likewise.
5584 * po/sk.po: Likewise.
5585 * po/sv.po: Likewise.
5586
5587 * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
5588 * misc/sys/mman.h: Add prototype for remap_file_pages.
5589 * sysdeps/generic/remap_file_pages.c: New file.
5590 * misc/Makefile (routines): Add remap_file_pages.
5591 * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
5592
5593 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
5594 and MAP_NONBLOCK.
5595 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
5596 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
5597 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
5598 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
5599 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
5600 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
5601 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
5602 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
5603
5604 2003-03-03 Roland McGrath <roland@redhat.com>
5605
5606 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
5607 * sysdeps/ia64/dl-machine.h: Likewise.
5608 * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
5609 argument type.
5610 * sysdeps/ia64/dl-lookupcfg.h: Update decl.
5611
5612 * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
5613 * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
5614 * locale/Versions (libc: GLIBC_2.3): Move those to ...
5615 * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
5616 * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
5617 * Versions.def (libc): Add GLIBC_2.3.3 set.
5618
5619 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
5620 * sysdeps/ia64/dl-machine.h: Update decl.
5621
5622 2003-03-03 Andreas Jaeger <aj@suse.de>
5623
5624 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
5625
5626 2003-03-02 Roland McGrath <roland@redhat.com>
5627
5628 * scripts/abilist.awk: Reject data items with apparent 0 size.
5629
5630 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
5631 after foo.* as if it were a duplicate.
5632
5633 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
5634
5635 2003-03-02 Ulrich Drepper <drepper@redhat.com>
5636
5637 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
5638
5639 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
5640 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
5641 if not already defined. Use SYSDEP_GETRES to allow other files to
5642 provide alternative implementations.
5643 * sysdeps/unix/sysv/linux/clock_getres.c: New file
5644 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
5645 if not already defined. Use SYSDEP_GETTIME to allow other files to
5646 provide alternative implementations.
5647 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
5648 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
5649 if not already defined. Use SYSDEP_GETTIME to allow other files to
5650 provide alternative implementations.
5651 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
5652 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
5653 other files to provide alternative implementations. Rearrange
5654 tests for invalid parameters.
5655 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
5656 * sysdeps/unix/sysv/linux/sysconf.c: New file.
5657 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5658 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
5659 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
5660 _POSIX_MONOTONIC_CLOCK.
5661
5662 2003-03-02 Roland McGrath <roland@redhat.com>
5663
5664 * scripts/merge-abilist.awk: More checks for bogus input.
5665 Uniquify duplicate config names.
5666
5667 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
5668
5669 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
5670 from dl_reloc_overflow, make global.
5671 (__process_machine_rela): Update callers.
5672 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
5673 Add attribute_hidden to __process_machine_rela decl.
5674 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
5675
5676 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
5677 variable.
5678
5679 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
5680 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
5681 (elf_machine_rela): Clean up.
5682
5683 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
5684
5685 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
5686 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
5687 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
5688 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
5689 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
5690 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
5691 new relocs for TLS.
5692
5693 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
5694 macros out of [SHARED].
5695 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
5696
5697 * elf/elf.h: Define R_PPC_* relocs for TLS support.
5698 Clean up R_PPC64_* macro definition comments.
5699
5700 * configure.in: In "running configure fragment for" message,
5701 omit $srcdir from the name if we prepended it.
5702 * configure: Regenerated.
5703
5704 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
5705 From Jakub Jelinek <jakub@redhat.com>.
5706
5707 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
5708 which duplicated the O_DIRECT defn.
5709
5710 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
5711
5712 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
5713 random functions.
5714
5715 2003-03-01 Andreas Schwab <schwab@suse.de>
5716
5717 * resolv/Makefile (tests): Don't depend on
5718 $(objpfx)mtrace-tst-leaks when cross compiling.
5719
5720 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
5721 __libc_stack_end through GOT since it is a global symbol.
5722
5723 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
5724
5725 * argp/argp.h: Fix a typo.
5726 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
5727
5728 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
5729
5730 2003-02-27 Pat Rankin <rankin@pactechdata.com>
5731
5732 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
5733 char *.
5734 (get_subexp): Likewise.
5735
5736 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
5737
5738 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
5739
5740 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
5741
5742 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
5743
5744 2003-02-27 Roland McGrath <roland@redhat.com>
5745
5746 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
5747 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
5748 repeat it and avoids the test for the common case.
5749 Clean up and fix calculations for TLS relocs.
5750
5751 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
5752 * sysdeps/powerpc/dl-tls.h: ... here.
5753 (TLS_TP_OFFSET): New macro.
5754
5755 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
5756
5757 2003-02-27 Ulrich Drepper <drepper@redhat.com>
5758
5759 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
5760 code generation changes in recent gcc.
5761
5762 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
5763
5764 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
5765 Rename argument to avoid symbol conflict.
5766
5767 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
5768 [__USE_GNU] (O_DIRECT): New macro.
5769
5770 2003-02-24 David Mosberger <davidm@hpl.hp.com>
5771
5772 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
5773 unwind info.
5774
5775 2003-02-27 Ulrich Drepper <drepper@redhat.com>
5776
5777 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
5778 initializer anymore now that res_thread_freeres is more careful.
5779
5780 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
5781 except the PKTINFO. Reset interface in PKTINFO.
5782 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
5783
5784 2003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
5785
5786 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
5787 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
5788 Define.
5789 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
5790 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
5791 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
5792 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
5793
5794 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
5795 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
5796
5797 2003-02-25 Andreas Jaeger <aj@suse.de>
5798
5799 * manual/memory.texi (Malloc Tunable Parameters): Clarify
5800 behaviour of M_MMAP_THRESHOLD.
5801
5802 2003-02-25 Roland McGrath <roland@redhat.com>
5803
5804 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
5805 zero, inidicating _res was not initialized yet.
5806
5807 2003-02-24 Ulrich Drepper <drepper@redhat.com>
5808
5809 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
5810 test.
5811
5812 2003-02-24 Roland McGrath <roland@redhat.com>
5813
5814 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
5815
5816 2003-02-23 Roland McGrath <roland@redhat.com>
5817
5818 * sysdeps/posix/pause.c: New file.
5819 * sysdeps/unix/common/pause.c: File removed.
5820
5821 2003-02-23 Ulrich Drepper <drepper@redhat.com>
5822
5823 * sysdeps/generic/bits/confname.h: Remove #ifs.
5824
5825 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
5826 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
5827
5828 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
5829 element to -1.
5830
5831 2003-02-22 Ulrich Drepper <drepper@redhat.com>
5832
5833 * sysdeps/generic/dl-sysdep.c: Avoid warning.
5834
5835 2003-02-22 Roland McGrath <roland@redhat.com>
5836
5837 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
5838 * resolv/Makefile (tests): Add tst-leaks.
5839 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
5840 (tst-leaks-ENV): New variable.
5841 ($(objpfx)mtrace-tst-leaks): New target.
5842 (tests): Depend on it.
5843
5844 * include/libc-internal.h: Declare __libc_thread_freeres.
5845
5846 * Makerules: Fix last change to use $($(subdir)-version) when set.
5847
5848 * Makerules (install-lib-nosubdir): Depend on installed
5849 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
5850 regardless of the libfoo.so target's dependencies.
5851
5852 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
5853 Use that in $(MAKE) calls.
5854
5855 2003-02-22 Ulrich Drepper <drepper@redhat.com>
5856
5857 * catgets/gencat.c (read_input_file): Collision between
5858 auto-assigned numbers and user-defined nubmers is not fatal.
5859 Handle it.
5860 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
5861 * catgets/Makefile: Add rules to run test2.msg test.
5862 * catgets/test2.msg: New file.
5863
5864 * catgets/gencat.c (main): Return 1 if messages have been printed.
5865
5866 * iconv/iconv_prog.c (main): Unify messages.
5867
5868 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
5869 when shifting retval.
5870 * stdlib/tst-strtod.c (main): Add strtold test case.
5871 Reported by Fred J. Tydeman <tydeman@tybor.com>.
5872
5873 2003-02-21 Roland McGrath <roland@redhat.com>
5874
5875 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
5876 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
5877 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
5878
5879 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
5880 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
5881 (res_thread_freeres): New function, on __libc_thread_subfreeres and
5882 __libc_subfreeres.
5883
5884 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
5885 * malloc/thread-freeres.c: New file.
5886 * malloc/Makefile (aux): Add it.
5887 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
5888 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
5889 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
5890
5891 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
5892 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
5893
5894 2003-02-21 Roland McGrath <roland@frob.com>
5895
5896 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
5897
5898 * iconvdata/Makefile (tests): Add bug-iconv3 only if
5899 [$(have-thread-library) = yes].
5900
5901 2003-02-21 Ulrich Drepper <drepper@redhat.com>
5902
5903 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
5904
5905 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
5906 not chechk for errors (unless testing for 32bit variant).
5907 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
5908 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
5909 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
5910
5911 2003-02-21 Jakub Jelinek <jakub@redhat.com>
5912
5913 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
5914 Check for signed overflow, not unsigned.
5915
5916 * sysdeps/sparc/sparc64/elf/configure.in: New file.
5917 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
5918 Use -fcall-used-g6, not -fcall-used-g7.
5919
5920 2003-02-21 Andreas Jaeger <aj@suse.de>
5921
5922 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
5923 mode.
5924
5925 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
5926 clear whole mxcsr but only exceptions.
5927
5928 2003-02-21 Roland McGrath <roland@redhat.com>
5929
5930 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
5931 for libfoo.so that need $(make-link) rules.
5932
5933 2003-02-21 Roland McGrath <roland@frob.com>
5934
5935 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
5936 to match existing struct stat layout in mig protocols.
5937
5938 2003-02-20 Ulrich Drepper <drepper@redhat.com>
5939
5940 * version.h (VERSION): Bump to 2.3.2.
5941
5942 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
5943 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
5944 and dl-sysdep.h.
5945 * sysdeps/generic/Dist: Add sysdep-cancel.h.
5946 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
5947 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
5948 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
5949 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
5950 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
5951 ucontext_i.h.
5952 * Makefile (distribute): Add include/stubs-prologue.h,
5953 include/gnu/stubs.h, scripts/merge-abilist.awk, and
5954 scripts/extract-abilist.awk.
5955
5956 2003-02-20 Roland McGrath <roland@redhat.com>
5957
5958 * math/Makefile (distribute): Don't add generated files.
5959
5960 2003-02-20 Ulrich Drepper <drepper@redhat.com>
5961
5962 * math/Makefile: Rearrange variable definitions slightly to get
5963 definition in the right order.
5964
5965 2003-02-20 Roland McGrath <roland@redhat.com>
5966
5967 * Makerules: Clean up conditional around include of tls.make.
5968 * Make-dist: Export generating=t to prevent using that.
5969 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
5970
5971 2003-02-20 Ulrich Drepper <drepper@redhat.com>
5972
5973 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
5974 around in search if port IPPORT_RESERVED/2 has been test.
5975
5976 2002-02-20 Paolo Bonzini <bonzini@gnu.org>
5977
5978 * posix/regcomp.c: Remove inclusions.
5979 * posix/regexec.c: Likewise.
5980 * posix/regex_internal.c: Likewise.
5981 * posix/regex_internal.h: Add inclusions here.
5982 * posix/regex.c: Only include sys/types.h before regex.h. Include
5983 regex_internal.h here. Include regex_internal.c before regcomp.c
5984 and regexec.c (might expose more opportunities to the C compiler).
5985
5986 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
5987
5988 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
5989 [!_LIBC] (__wcrtomb): New definition.
5990 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
5991 HAVE_LOCALE_H as well.
5992
5993 2003-02-20 Ulrich Drepper <drepper@redhat.com>
5994
5995 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
5996 patch to check for system call errors.
5997
5998 2002-07-24 Philip Blundell <philb@gnu.org>
5999
6000 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
6001 on unknown systems.
6002
6003 2003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6004
6005 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
6006 * sysdeps/unix/sysv/linux/kernel-features.h
6007 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
6008 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
6009 if possible.
6010 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
6011 interprocedure branches.
6012 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
6013 * sysdeps/powerpc/nofpu/Dist: ...here.
6014 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
6015 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
6016 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
6017 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
6018 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
6019
6020 2003-02-18 Alan Modra <amodra@bigpond.net.au>
6021
6022 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
6023
6024 2003-02-20 Philip Blundell <philb@gnu.org>
6025
6026 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
6027 missing arguments to INTERNAL_SYSCALL_ERROR_P and
6028 INTERNAL_SYSCALL_ERRNO.
6029
6030 2003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
6031
6032 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
6033 for __ASSUME_32BITUIDS.
6034
6035 2003-02-20 Andreas Schwab <schwab@suse.de>
6036
6037 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
6038 POSIX_MADV_* constants.
6039
6040 2003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6041
6042 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
6043 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
6044 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
6045 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
6046
6047 2003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
6048
6049 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
6050
6051 2003-02-16 Roland McGrath <roland@redhat.com>
6052
6053 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
6054
6055 2003-02-19 Ulrich Drepper <drepper@redhat.com>
6056
6057 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
6058 decimal input digits.
6059 * stdlib/tst-strtod.c (main): Add test for strtof bug.
6060
6061 2003-02-18 Ulrich Drepper <drepper@redhat.com>
6062
6063 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
6064 invalid file descriptors and missing access permissions.
6065
6066 2003-02-17 Ulrich Drepper <drepper@redhat.com>
6067
6068 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
6069 been found.
6070
6071 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
6072 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
6073 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
6074 and LOGIN_NAME_MAX.
6075
6076 2003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
6077 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6078
6079 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
6080 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
6081 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
6082 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
6083 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
6084
6085 2003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6086
6087 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
6088 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
6089 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
6090 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
6091 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
6092 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
6093
6094 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
6095 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
6096 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
6097 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
6098
6099 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
6100 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
6101 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
6102 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
6103
6104 2003-02-14 Thorsten Kukuk <kukuk@suse.de>
6105
6106 * nss/getent.c (print_hosts): Print all IP addresses of one host.
6107
6108 2003-02-15 Roland McGrath <roland@frob.com>
6109
6110 * sysdeps/mach/hurd/tls.h: New file.
6111 * sysdeps/mach/hurd/i386/tls.h: New file.
6112
6113 * mach/errsystems.awk: Include <errno.h> in generated output.
6114
6115 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
6116 use target mach-before-compile instead of generated.
6117 (mach-before-compile): New target.
6118 * Makerules: Disable use of tls.make if $(generating) is set.
6119 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
6120 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
6121 mach-shortcuts.h so mach/ generation happens before hurd/.
6122
6123 2003-02-14 Ulrich Drepper <drepper@redhat.com>
6124
6125 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
6126 of demorm correctly if low word is zero.
6127 Reported by Fred J. Tydeman <tydeman@tybor.com>.
6128 * math/libm-test.inc (nextafter_test): New test, but disabled due
6129 to gcc bug.
6130
6131 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
6132 counter and only call __exit_thread if this is not the last thread.
6133
6134 2003-02-13 Jakub Jelinek <jakub@redhat.com>
6135
6136 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
6137 subtracting map->l_tls_offset.
6138
6139 2003-02-12 Ulrich Drepper <drepper@redhat.com>
6140
6141 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
6142 _CS_GNU_LIBPTHREAD_VERSION.
6143 * posix/conststr.c: Handle these new values.
6144 * posix/getconf.c: Likewise.
6145
6146 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
6147 masking of version index.
6148 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
6149
6150 2003-02-11 Ulrich Drepper <drepper@redhat.com>
6151
6152 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
6153 correctly. Reported by Thorsten Kukuk.
6154
6155 2003-02-10 Ulrich Drepper <drepper@redhat.com>
6156
6157 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
6158 _BSD_SOURCE to compiler.
6159 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
6160 Patches by Alan Modra.
6161
6162 2003-02-08 Ulrich Drepper <drepper@redhat.com>
6163
6164 * io/ftwtest.c: Get current working directory before and after the
6165 nftw call and make sure they match.
6166
6167 2003-02-08 Jim Meyering <jim@meyering.net>
6168
6169 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
6170 the current directory, not just when DIR contains a slash.
6171 Reported by Manoj Srivastava.
6172
6173 2003-02-07 Jim Meyering <jim@meyering.net>
6174
6175 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
6176 Include autoconf-recommended block of dirent/NAMELEN-related
6177 definitions and includes. Use NAMELEN throughout, rather than
6178 _D_EXACT_NAMLEN.
6179 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
6180 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
6181 (stpcpy): Declare, if necessary.
6182 (mempcpy): Define, if necessary.
6183 [!_LIBC] (__stpcpy, __mempcpy): Define.
6184 [!_LIBC] (LXSTAT, XSTAT): Define.
6185 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
6186 (find_object): Don't use c99-style struct initializer.
6187 Tweak wording in a couple comments.
6188
6189 2003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6190
6191 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
6192 for SH.
6193 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
6194 after the trapa instruction.
6195 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
6196 parameters.
6197 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
6198 (NEED_SYSCALL_INST_PAD): Define.
6199 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
6200 avoid to use definition for the kernel.
6201 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
6202 Save and restore the frame pointer.
6203 (SYSCALL_INST_PAD): Define.
6204 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
6205 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
6206 after trapa instruction.
6207 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
6208 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
6209
6210 2003-02-07 Jakub Jelinek <jakub@redhat.com>
6211
6212 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
6213 so that it can have aliases.
6214 * inet/herrno.c (h_errno): Put it into .bss not .data section.
6215
6216 2003-02-07 Ulrich Drepper <drepper@redhat.com>
6217
6218 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
6219 (profile_fixup): Likewise.
6220 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
6221
6222 2002-11-24 Robert Love <rml@tech9.net>
6223
6224 * posix/sched.h: Second parameter of sched_setaffinity and
6225 sched_getaffinity is `unsigned int', not `unsigned long'.
6226 * sysdeps/generic/sched_setaffinity.c: Likewise.
6227 * sysdeps/generic/sched_getaffinity.c: Likewise.
6228
6229 2003-02-05 Ulrich Drepper <drepper@redhat.com>
6230
6231 * debug/catchsegv.sh: Fix typo in error messsage.
6232 Reported by John Levon <levon@movementarian.org>.
6233
6234 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
6235 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
6236 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
6237 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6238 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
6239 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6240 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6241
6242 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
6243 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
6244
6245 2003-02-05 Jim Meyering <jim@meyering.net>
6246
6247 Fix a heap-corrupting bug.
6248 * io/ftw.c: Include <limits.h>.
6249 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
6250 (process_entry): Allocate enough space to hold the resulting
6251 file name. Don't presume that 2*dirbufsize is enough.
6252 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
6253 it is guaranteed to be defined.
6254
6255 2003-02-04 Ulrich Drepper <drepper@redhat.com>
6256
6257 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
6258 * iconvdata/bug-iconv3.c: New file.
6259
6260 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
6261
6262 * sysdeps/unix/sysv/linux/s390/system.c: New file.
6263
6264 2003-02-03 Jakub Jelinek <jakub@redhat.com>
6265
6266 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
6267 check.
6268 * config.h.in (BROKEN_SPARC_WDISP22): Add.
6269
6270 2003-02-03 Ulrich Drepper <drepper@redhat.com>
6271
6272 * sysdeps/i386/i686/memmove.S: New file.
6273
6274 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6275
6276 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
6277 Include kernel-features.h
6278 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
6279 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
6280 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
6281 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
6282
6283 2003-02-02 Jakub Jelinek <jakub@redhat.com>
6284
6285 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
6286
6287 2003-01-25 Jim Meyering <jim@meyering.net>
6288
6289 * io/ftw.c (object_compare): Compare inode numbers before device
6290 numbers, since the former are much more likely to differ.
6291
6292 2003-02-01 Ulrich Drepper <drepper@redhat.com>
6293
6294 * time/tzfile.c (__tzfile_compute): Change return value type to
6295 void. Adjust return statements.
6296 * include/time.h (__tzfile_compute): Adjust prototype.
6297
6298 2003-02-01 Jim Meyering <jim@meyering.net>
6299
6300 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
6301 always returns 1.
6302
6303 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6304
6305 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
6306 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
6307
6308 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6309
6310 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
6311 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
6312 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
6313 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
6314 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
6315 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
6316 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
6317 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
6318
6319 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6320
6321 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
6322 back to 2.4.19 for powerpc64.
6323 * sysdeps/unix/sysv/linux/kernel-features.h
6324 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
6325 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
6326
6327 2003-02-01 Ulrich Drepper <drepper@redhat.com>
6328
6329 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
6330 platforms with strange alignment requirements on wchar_t.
6331
6332 2003-01-31 Andreas Schwab <schwab@suse.de>
6333
6334 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
6335 aliases, already added by make-syscalls.sh.
6336 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6337 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6338 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6339 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6340 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6341 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6342 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6343 * sysdeps/unix/inet/syscalls.list: Likewise.
6344 * sysdeps/unix/syscalls.list: Likewise.
6345
6346 2003-01-31 Andreas Schwab <schwab@suse.de>
6347
6348 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
6349 any more.
6350
6351 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6352
6353 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
6354 not l to load tls from stack.
6355
6356 2003-01-30 Roland McGrath <roland@redhat.com>
6357
6358 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
6359 null argument before all else.
6360 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
6361
6362 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6363
6364 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
6365 Move to RESOLVE protected part of the header.
6366 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
6367 Likewise.
6368
6369 2003-01-30 Ulrich Drepper <drepper@redhat.com>
6370
6371 * stdio-common/Makefile (tests): Add bug15.
6372 (bug15-ENV): Define.
6373 * stdio-common/bug15.c: New file.
6374
6375 2002-10-07 Wolfram Gloger <wg@malloc.de>
6376
6377 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
6378 to foreign sbrk()'s if arena is contiguous. Bug report from
6379 Bruno Haible <bruno@clisp.org>.
6380
6381 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6382
6383 * sysdeps/s390/libc-tls.c: Include stdlib.h.
6384
6385 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6386
6387 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
6388 ps.__count.
6389
6390 2003-01-30 Ulrich Drepper <drepper@redhat.com>
6391
6392 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
6393 restoring of %r6.
6394 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
6395 64-bit load.
6396 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
6397
6398 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6399
6400 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
6401 (allocate_static_tls): ...here. Add __attribute_noinline__.
6402 Don't return on failure.
6403 (_dl_reloc_bad_type): Add __attribute_noinline__.
6404 * elf/do-rel.h (elf_dynamic_do_rel): Add
6405 __attribute__((always_inline)).
6406 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
6407 elf_machine_rel_relative, elf_machine_rela_relative,
6408 elf_machine_lazy_rel): Add prototypes with
6409 __attribute__((always_inline)).
6410
6411 2003-01-29 David Mosberger <davidm@hpl.hp.com>
6412
6413 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
6414
6415 2003-01-29 Roland McGrath <roland@redhat.com>
6416
6417 * configure.in: Barf if configured in $srcdir.
6418
6419 2003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
6420
6421 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
6422 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
6423
6424 2003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
6425
6426 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
6427 clone parameters to match the order used on ia32.
6428 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
6429
6430 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
6431
6432 * elf/elf.h: Add new s390 relocs.
6433 * elf/tls-macros.h: Add s390 versions.
6434 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
6435 * sysdeps/s390/dl-tls.h: New file.
6436 * sysdeps/s390/libc-tls.c: New file.
6437 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
6438 relocs for class PLT.
6439 (elf_machine_rela): Handle TLS relocs.
6440 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6441 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
6442 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
6443 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
6444 CLONE_CHILD_*TID flags.
6445 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
6446 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
6447 bit offset.
6448 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
6449 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
6450 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
6451 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
6452 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
6453 Likewise.
6454 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
6455 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
6456 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
6457 variants.
6458 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
6459 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
6460 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
6461 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
6462 variants.
6463
6464 2003-01-28 Ulrich Drepper <drepper@redhat.com>
6465
6466 * sysdeps/unix/common/pause.c (do_pause): New function. Split
6467 from __libc_pause. Implement using sigsuspend.
6468 (__libc_pause): Call do_pause to do the real work.
6469
6470 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
6471 sig_or_mask parameter is is_sig != 0.
6472
6473 2003-01-21 Philip Blundell <philb@gnu.org>
6474
6475 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
6476
6477 2003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
6478
6479 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
6480
6481 2003-01-27 Ulrich Drepper <drepper@redhat.com>
6482
6483 * stdio-common/bug14.c: Use official name for the locale.
6484
6485 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
6486 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
6487 instead of __libc_cleanup_region_end.
6488
6489 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
6490 as first parameter to __libc_cleanup_region_start.
6491
6492 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
6493 (__fe_nomask_env): Use __prctl not prctl.
6494 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
6495 prctl syscall.
6496
6497 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
6498
6499 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
6500
6501 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
6502 wrap-around in test.
6503
6504 2003-01-26 Andreas Schwab <schwab@suse.de>
6505
6506 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
6507 compatibility symbols. Remove INTDEF for __divdi3.
6508 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
6509 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
6510 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
6511 define.
6512 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
6513
6514 2003-01-24 Jakub Jelinek <jakub@redhat.com>
6515
6516 * elf/tls-macros.h: Add SPARC 32-bit definitions.
6517 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
6518 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
6519 for the first half of the header. Include tls.h.
6520 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
6521 relocs too.
6522 (elf_machine_rela): Handle TLS relocs.
6523 * sysdeps/sparc/dl-tls.h: New file.
6524
6525 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
6526 support.
6527
6528 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
6529 * sysdeps/sparc/sparc32/memchr.S: Likewise.
6530 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
6531 * sysdeps/sparc/sparc32/strcat.S: Likewise.
6532 * sysdeps/sparc/sparc32/strchr.S: Likewise.
6533 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
6534 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
6535 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
6536 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
6537 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
6538 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
6539 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
6540 * sysdeps/sparc/sparc64/strcat.S: Likewise.
6541 * sysdeps/sparc/sparc64/strchr.S: Likewise.
6542 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
6543 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
6544 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
6545 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
6546 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
6547 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
6548
6549 2003-01-24 Andreas Schwab <schwab@suse.de>
6550
6551 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
6552 elements, and process them backwards.
6553 * elf/Makefile ($(objpfx)tst-array4): New target.
6554 ($(objpfx)tst-array4.out): Likewise.
6555 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
6556 * elf/tst-array4.c: New file.
6557 * elf/tst-array4.exp: Likewise.
6558
6559 2003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
6560
6561 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
6562
6563 2003-01-27 Guido Guenther <agx@sigxcpu.org>
6564
6565 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
6566 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
6567 cancellation handling and handle both __NR_pread64 and __NR_pread.
6568 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
6569 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
6570 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
6571 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
6572 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
6573 case, use register names consistently.
6574
6575 2003-01-27 Wolfram Gloger <wg@malloc.de>
6576
6577 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
6578 pointer, not of the computed chunk. Bug report from Carlos
6579 O'Donell <carlos@baldric.uwo.ca>.
6580
6581 2003-01-25 Andreas Schwab <schwab@suse.de>
6582
6583 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
6584 addressing to save GOT entries.
6585
6586 2003-01-21 Jakub Jelinek <jakub@redhat.com>
6587
6588 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
6589 inline_syscall1, inline_syscall2, inline_syscall3,
6590 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
6591 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
6592 __attribute__((unused)) to ChEcK.
6593
6594 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
6595
6596 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
6597 Fix inline assembler constraints.
6598 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
6599 Likewise.
6600
6601 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
6602 -fPIC.
6603
6604 2003-01-20 Segher Boessenkool <segher@koffie.nl>
6605
6606 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
6607 compute the cosine, not the sine, even if x > 0.8.
6608
6609 2003-01-19 Ulrich Drepper <drepper@redhat.com>
6610
6611 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
6612 _nss_nis_setspent. Work around the different prototypes.
6613 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
6614 internal_nis_endrpcent.
6615 (internal_nis_endrpcent): Change return type to void. Change callers.
6616 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
6617 _nss_nis_setpwent. Work around the different prototypes.
6618 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
6619 of the function to...
6620 (internal_nis_endprotoent): ... here. New function.
6621 (internal_nis_setprotoent): Use internal_nis_endprotoent.
6622 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
6623 _nss_nis_setnetent. Work around the different prototypes.
6624 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
6625 of the function to...
6626 (internal_nis_endnetgrent): ... here. New function.
6627 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
6628
6629 2003-01-19 Jim Meyering <jim@meyering.net>
6630
6631 * time/strftime.c: (widen): Merge nearly-identical definitions.
6632 (nl_get_alt_digit) [! defined my_strftime]: Define.
6633 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
6634 _nl_get_alt_digit and _nl_get_walt_digit.
6635
6636 2003-01-19 Ulrich Drepper <drepper@redhat.com>
6637
6638 * time/strftime.c (my_strftime): Handle very large width
6639 specifications for numeric values correctly. Improve checks for
6640 overflow.
6641 * time/Makefile (tests): Add tst-strftime.
6642 * time/tst-strftime.c: New file.
6643
6644 2003-01-18 Ulrich Drepper <drepper@redhat.com>
6645
6646 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
6647 _nss_nis_sethostent. Work around the different prototypes.
6648 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
6649 _nss_nis_setgrent. Work around the different prototypes.
6650 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
6651 function. Split out from _nss_nis_endetherent.
6652 (internal_nis_setetherent): Use internal_nis_endetherent instead of
6653 duplicating the code.
6654 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
6655 of _nss_nis_setaliasent.
6656 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
6657 internal_nis_endservent code, don't duplicate it.
6658
6659 * inet/rexec.c (rexec_af): Protect socket operations with
6660 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
6661 * inet/rcmd.c (rcmd_af): Likewise.
6662
6663 2003-01-17 Roland McGrath <roland@redhat.com>
6664
6665 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
6666 Add test of value 0.80190127184058835.
6667
6668 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
6669
6670 2003-01-17 Richard Henderson <rth@redhat.com>
6671
6672 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
6673 relocs for class PLT.
6674 * sysdeps/alpha/libc-tls.c: New file.
6675 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
6676 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
6677
6678 2003-01-17 Jakub Jelinek <jakub@redhat.com>
6679
6680 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
6681 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
6682 on _dl_static_lock.
6683
6684 2003-01-17 Andreas Jaeger <aj@suse.de>
6685
6686 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
6687
6688 2003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
6689
6690 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
6691 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
6692 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
6693 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
6694 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
6695 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
6696 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
6697 is 2.4.21.
6698
6699 2003-01-16 Ulrich Drepper <drepper@redhat.com>
6700
6701 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
6702 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
6703 buffers.
6704
6705 * sysdeps/generic/sysconf.c: Unconditionally implement
6706 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
6707 * sysdeps/posix/sysconf.c: Likewise.
6708
6709 2003-01-16 Jakub Jelinek <jakub@redhat.com>
6710
6711 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
6712 set *err to the returned error, not to REG_ESPACE unconditionally.
6713 (build_word_op): Likewise.
6714 * posix/Makefile (tests): Add bug-regex16.
6715 * posix/bug-regex16.c: New test.
6716
6717 2003-01-16 Jakub Jelinek <jakub@redhat.com>
6718
6719 * elf/dl-load.c (_dl_map_object_from_fd): Use
6720 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
6721 been already initialized.
6722
6723 2003-01-15 Dmitry V. Levin <ldv@altlinux.org>
6724
6725 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
6726
6727 2003-01-16 Jakub Jelinek <jakub@redhat.com>
6728
6729 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
6730 allocated too. Reported by Al Viro <aviro@redhat.com>.
6731
6732 2003-01-16 Roland McGrath <roland@redhat.com>
6733
6734 Tweak merged .abilist file format to merge duplicate symbols in
6735 different sets into multi-version stanzas with new "| SET regexp..."
6736 header continuation lines.
6737 * scripts/merge-abilist.awk: Rewritten for new format.
6738 * scripts/extract-abilist.awk: Likewise.
6739
6740 2003-01-15 Ulrich Drepper <drepper@redhat.com>
6741
6742 * nscd/connections.c (nscd_run): Remove bogus return which isn't
6743 necessary with gcc 3.2+.
6744 (nscd_init): Don't use error() to print message, use dbg_log.
6745
6746 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
6747 expected size into state.
6748 (UNPACK_BYTES): Do the reverse.
6749 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
6750 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
6751 Reported by Al Viro <aviro@redhat.com>.
6752
6753 * stdio-common/Makefile (tests): Add bug14.
6754 * stdio-common/bug14.c: New file.
6755
6756 * stdio-common/vfscanf.c: When recognizing multibyte characters in
6757 string reset the byte counter after mbrtowc reported it is not a
6758 partial character. Reported by Al Viro <aviro@redhat.com>.
6759
6760 2003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
6761
6762 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
6763 sysdep-cancel.h, not sysdep.h.
6764
6765 2003-01-15 Ulrich Drepper <drepper@redhat.com>
6766
6767 * nscd/connections.c (nscd_run): Protect accept call with
6768 TEMP_FAILURE_RETRY.
6769
6770 2003-01-15 Andreas Schwab <schwab@suse.de>
6771
6772 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
6773 (common-generated): Add s-proto-bp.d.
6774 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
6775 of bp thunks.
6776 * sysdeps/unix/s-proto-bp.S: New file.
6777 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
6778 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
6779 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
6780
6781 2003-01-15 Roland McGrath <roland@redhat.com>
6782
6783 * Makerules: Use -include for tls.make, suppresses warning.
6784 Move gen-as-const-headers rules up so before-compile is set in time.
6785 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
6786
6787 2003-01-15 Ulrich Drepper <drepper@redhat.com>
6788
6789 * nscd/nscd.c (main): Make code to close all file descriptors
6790 faster and more robust.
6791
6792 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
6793 request with one writev call. Protect all read calls with
6794 TEMP_FAILURE_RETRY.
6795 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
6796 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6797
6798 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
6799 Protect writev calls with TEMP_FAILURE_RETRY.
6800 * nscd/grpcache.c: Likewise.
6801 * nscd/pwdcache.c: Likewise.
6802
6803 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
6804 IPv6 address in debug output.
6805
6806 2003-01-14 Roland McGrath <roland@redhat.com>
6807
6808 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
6809 $(objpfx) directories, and get rid of vpath directives. The previous
6810 arrangement resulted in files being written to the source directories
6811 when run in a clean build. Find all .abilist files in $(..)abilist/.
6812 (update-abi-%): Likewise.
6813 (generated): Don't add .symlist files, they'll be intermediates.
6814
6815 * sysdeps/generic/init-first.c: Add a comment.
6816
6817 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
6818
6819 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
6820 #includes and expressions.
6821
6822 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
6823 config list when it already contains cpu-.*-os.* without / part.
6824
6825 * Makerules (sed-remove-dotdot): New variable.
6826 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
6827 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
6828 (check-abi-config): New variable, append /tls or /notls to the tuple.
6829 (check-abi-%): Use that for -v config value.
6830 Find .abilist files in abilist/libfoo.abilist, not in subdir.
6831 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
6832
6833 2003-01-14 Ulrich Drepper <drepper@redhat.com>
6834
6835 * manual/install.texi: Correct description of header preparation for
6836 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
6837
6838 2003-01-14 Guido Guenther <agx@sigxcpu.org>
6839
6840 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
6841 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
6842 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
6843
6844 2003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
6845
6846 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6847 (INTERNAL_SYSCALL): Make use of ERR parameter.
6848 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
6849 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
6850 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
6851 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
6852
6853 2003-01-14 Ulrich Drepper <drepper@redhat.com>
6854
6855 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
6856 == IPPROTO_TCP.
6857 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
6858
6859 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
6860 Fix entry for bit 31.
6861
6862 * iconvdata/Makefile: Add rules to build IBM866NAV.
6863 * iconvdata/ibm866nav.c: New file.
6864 * iconvdata/tst-tables.sh: Add IBM866NAV.
6865 * iconvdata/gconv-modules: Add entries for IBM866NAV.
6866
6867 2003-01-13 Ulrich Drepper <drepper@redhat.com>
6868
6869 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
6870 to test void* parameters.
6871
6872 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
6873 source pointer before dereferencing.
6874 (__STRING_SMALLL_GET32): Likewise.
6875 (__memset_gc): Add missing parenthesis around macro arguments.
6876 Patch by Denis Zaitsev <zzz@cd-club.ru>.
6877
6878 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
6879 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
6880
6881 2003-01-14 Jakub Jelinek <jakub@redhat.com>
6882
6883 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
6884 defining.
6885
6886 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
6887
6888 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
6889 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
6890 here.
6891 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
6892
6893 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
6894
6895 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
6896 from here...
6897 (PSEUDO): ... to here.
6898 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
6899 from here...
6900 (PSEUDO): ... to here.
6901
6902 2003-01-13 Ulrich Drepper <drepper@redhat.com>
6903
6904 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
6905 dirent64 instead of struct dirent for dirent. Call readdir64
6906 instead of readdir.
6907
6908 * locale/programs/locfile.c (siblings_uncached): Use struct
6909 dirent64 instead of struct dirent for other_dentry. Call
6910 readdir64 instead of readdir.
6911
6912 * elf/ldconfig.c (direntry): Change type to struct dirent64.
6913 (search_dir): Use readdir64 instead of readdir.
6914 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
6915
6916 2003-01-12 Roland McGrath <roland@redhat.com>
6917
6918 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
6919 not strtol. The former is usable in ld.so, the latter not.
6920
6921 * include/fcntl.h: Declare __libc_creat.
6922
6923 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
6924 libhurduser-link.so-no-z-defs): New variables.
6925
6926 * malloc/malloc.c: Revert last change.
6927 * malloc/malloc.h (_int_*): Move these decls to ...
6928 * include/malloc.h: ... here. Add attribute_hidden.
6929 (_int_valloc): Declare it too.
6930
6931 2003-01-12 Ulrich Drepper <drepper@redhat.com>
6932
6933 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
6934 search for removed searchlist. Reported by Roland McGrath.
6935
6936 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
6937 given as start file.
6938
6939 * io/ftw.c (ftw_startup): Use correct name in check for symlink
6940 without existing target. Patch by Jim Meyering.
6941
6942 * Makerules (build-shlib-helper): Don't use -z defs linker option
6943 if no-z-defs is defined either.
6944
6945 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
6946
6947 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
6948 file.
6949
6950 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
6951
6952 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
6953 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6954
6955 2003-01-12 Ulrich Drepper <drepper@redhat.com>
6956
6957 * io/ftwtest-sh: Add test case for relative path with /. at the end.
6958
6959 2003-01-12 Jim Meyering <jim@meyering.net>
6960
6961 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
6962 use the basename if we've already chdir'd into its parent directory.
6963
6964 2003-01-12 Ulrich Drepper <drepper@redhat.com>
6965
6966 * io/ftw.c (process_entry): Use relative path when using chdir()
6967 to change directory after call to ftw_dir.
6968 * io/ftwtest-sh: Add test for relative path argument to nftw()
6969 with FTW_CHDIR option.
6970
6971 2002-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6972
6973 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
6974 Define for powerpc.
6975 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
6976 into account.
6977 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
6978 (INTERNAL_SYSCALL): Make use of ERR parameter.
6979 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
6980 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
6981 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
6982 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
6983
6984 2002-01-09 Richard Henderson <rth@redhat.com>
6985
6986 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
6987 DTPREL64 and TPREL64 without loadbase applied.
6988
6989 2002-01-09 Richard Henderson <rth@redhat.com>
6990
6991 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
6992 for NOT_IN_libc.
6993
6994 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
6995 * sysdeps/unix/alpha/sysdep.h: ... here.
6996 (PSEUDO_LOADGP): Remove.
6997 (PSEUDO_PROLOGUE): Load GP in non-pic case.
6998 (SYSCALL_ERROR_LABEL): New.
6999 (PSEUDO): Use it in error branch.
7000 (PSEUDO_END): Add $syscall_error label.
7001
7002 2003-01-12 Andreas Jaeger <aj@suse.de>
7003
7004 * math/bits/mathcalls.h: Round is a const function.
7005
7006 2003-01-11 Jim Meyering <jim@meyering.net>
7007
7008 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
7009 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
7010 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
7011 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
7012 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
7013 [!_LIBC] (internal_function, dirent64, MAX): Define.
7014 (__set_errno): Define if not already defined.
7015 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
7016 the basename, not the entire file name.
7017 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
7018 the basename, not the entire file name.
7019
7020 2003-01-12 Ulrich Drepper <drepper@redhat.com>
7021
7022 * string/tester.c (test_strcpy): Disable last added strcpy until
7023 it is fixed.
7024
7025 2003-01-11 Philip Blundell <philb@gnu.org>
7026
7027 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
7028
7029 2003-01-11 Andreas Schwab <schwab@suse.de>
7030
7031 * Makerules: Add vpath for %.dynsym and %.so so that the
7032 implicit rule chaining for check-abi works.
7033
7034 2003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7035
7036 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
7037 Add non-PIC case.
7038
7039 2003-01-11 Jakub Jelinek <jakub@redhat.com>
7040
7041 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
7042 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
7043 gp is used early.
7044 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
7045 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
7046 Ensure libc.so in DT_NEEDED.
7047 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
7048 CHECK_STATIC_TLS before l_tls_offset use.
7049 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
7050 Likewise.
7051 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
7052 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
7053 Allocate TLS_PRE_TCB_SIZE bytes below result.
7054 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
7055 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
7056 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
7057 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
7058 bytes below result and add tcb_offset to memsz.
7059 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
7060 * sysdeps/ia64/dl-machine.h: Include tls.h.
7061 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
7062 too.
7063 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
7064 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
7065 * sysdeps/ia64/libc-tls.c: New file.
7066
7067 2003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
7068
7069 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
7070 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
7071 Fix type. Move definition out of #if.
7072 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
7073 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
7074 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
7075 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
7076 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
7077 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
7078 support.
7079 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
7080 ftruncate64, pread64, pwrite64, truncate64 entries.
7081 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
7082 (INLINE_SYSCALL): New version that supports function call like
7083 syscalls. Add __builtin_expect.
7084 (LOADARGS_n): Add argument size safety checks.
7085 (INTERNAL_SYSCALL): New Macro.
7086 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
7087 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
7088 redefinition of elf_fpreg_t and elf_fpregset_t.
7089
7090 2003-01-12 Ulrich Drepper <drepper@redhat.com>
7091
7092 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
7093 simplify test for unloading. If loader of a DSO is unloaded do not
7094 use its scope anymore. Fall back to own scope and adjust opencounts.
7095 Fix several comments.
7096 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
7097 the l_searchlist, not only for l_initfini.
7098
7099 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
7100 dependencies if objects cannot be removed. Remove object with the
7101 definition as not unloadable if necessary.
7102
7103 * elf/reldep6.c: Create relocation dependency before closing the first
7104 module.
7105
7106 2003-01-10 Guido Günther <agx@sigxcpu.org>
7107
7108 * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
7109 * sysdeps/unix/mips/brk.S: Likewise.
7110 * sysdeps/unix/mips/pipe.S: Likewise.
7111
7112 2003-01-10 Andreas Schwab <schwab@suse.de>
7113
7114 * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
7115
7116 * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
7117 are known to have the vfork syscall.
7118
7119 * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
7120
7121 * sysdeps/unix/sysv/linux/kernel-features.h
7122 (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
7123 (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
7124 (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
7125
7126 2003-01-09 Jakub Jelinek <jakub@redhat.com>
7127
7128 * elf/Makefile: Add rules to build and run reldep9 test.
7129 * elf/reldep9.c: New file.
7130 * elf/reldep9mod1.c: New file.
7131 * elf/reldep9mod2.c: New file.
7132 * elf/reldep9mod3.c: New file.
7133
7134 2003-01-09 Jakub Jelinek <jakub@redhat.com>
7135
7136 * elf/Makefile: Add rules to build and run nodelete2 test.
7137 * elf/nodelete2.c: New file.
7138 * elf/nodel2mod1.c: New file.
7139 * elf/nodel2mod2.c: New file.
7140 * elf/nodel2mod3.c: New file.
7141
7142 2003-01-09 Jakub Jelinek <jakub@redhat.com>
7143
7144 * posix/test-vfork.c (noop): Add __attribute_noinline__.
7145 * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
7146 * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
7147 defining it.
7148 * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
7149 * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
7150 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
7151 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
7152 * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
7153
7154 2003-01-09 Andreas Schwab <schwab@suse.de>
7155
7156 * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
7157
7158 2003-01-08 Ulrich Drepper <drepper@redhat.com>
7159
7160 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
7161 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
7162 argument.
7163 (INTERNAL_SYSCALL_DECL): Define.
7164
7165 2003-01-06 Jakub Jelinek <jakub@redhat.com>
7166
7167 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
7168 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
7169 argument.
7170 (INTERNAL_SYSCALL_DECL): Define.
7171 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
7172 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
7173 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
7174 (INLINE_SYSCALL): Adjust.
7175 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
7176 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
7177 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
7178 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7179 * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
7180 add err argument to INTERNAL_SYSCALL* macros.
7181 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
7182 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
7183 * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
7184 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
7185 Likewise.
7186 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
7187 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
7188 INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
7189
7190 2003-01-07 Ulrich Drepper <drepper@redhat.com>
7191
7192 Unify symbols in user namespace exported by libc.so and libc.a.
7193 * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
7194 argp_fmtstream_free, and argp_fmtstream_printf.
7195 * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
7196 argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
7197 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
7198 argp_fmtstream_point.
7199 * gmon/gmon.c: Don't define write_profiling.
7200 * libio/genops.c: Don't define _cleanup.
7201
7202 * intl/explodename.c (_nl_find_language.c): Mark as static.
7203 * intl/loadinfo.h: Remove _nl_find_language prototype.
7204
7205 * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
7206 * libio/libioP.h: Remove declaration.
7207
7208 * libio/iopopen.c (_IO_proc_jumps): Mark as static.
7209 * libio/libioP.h: Remove declaration.
7210
7211 * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
7212 * sysdeps/generic/framestate.c: Define STATIC before including
7213 unwind-dw2.c.
7214
7215 * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
7216
7217 2003-01-06 Philip Blundell <philb@gnu.org>
7218
7219 * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
7220 [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
7221
7222 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
7223 directive.
7224 (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
7225 (SYSCALL_ERROR): New.
7226 (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
7227 handling code.
7228 (INTERNAL_SYSCALL): Define.
7229 (INLINE_SYSCALL): Use it.
7230 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
7231 * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
7232 SYSCALL_ERROR in place of __syscall_error.
7233
7234 2003-01-07 Jakub Jelinek <jakub@redhat.com>
7235
7236 * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
7237 __bswap_32, __bswap_64): Put x into temporary variable
7238 to avoid warnings.
7239 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
7240 (inline) functions.
7241 * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
7242 __bswap_32, __bswap_64): Put x into temporary variable
7243 to avoid warnings.
7244 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
7245 (inline) functions.
7246 * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
7247 Likewise.
7248
7249 2003-01-07 Jakub Jelinek <jakub@redhat.com>
7250
7251 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
7252 alias.
7253
7254 2003-01-07 Jakub Jelinek <jakub@redhat.com>
7255
7256 * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
7257 * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
7258
7259 2003-01-07 Ulrich Drepper <drepper@redhat.com>
7260
7261 * math/libm-test.inc (significand_test): New function.
7262 (main): Call it.
7263
7264 2003-01-06 Roland McGrath <roland@redhat.com>
7265
7266 * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
7267 arguments.
7268 (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
7269 (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
7270 (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
7271
7272 * string/tester.c (test_strcpy): Add test with `void *' arguments.
7273
7274 2003-01-06 Ulrich Drepper <drepper@redhat.com>
7275
7276 * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
7277 return significand and not the exponent.
7278 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
7279
7280 * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
7281 taking address of iov in INTERNAL_SYSCALL call. Patch by Franz Sirl.
7282
7283 * malloc/malloc.c: Mark all _int_* functions as static.
7284
7285 2003-01-06 Jakub Jelinek <jakub@redhat.com>
7286
7287 * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
7288 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
7289 handling.
7290 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
7291
7292 2003-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7293
7294 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
7295 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
7296 support.
7297 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
7298 ftruncate64, truncate64, pread64 and pwrite64 entries.
7299 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
7300 (INLINE_SYSCALL): Add __builtin_expect.
7301 (LOADARGS_n): Add argument size safety checks.
7302 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
7303 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
7304 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
7305 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
7306 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
7307 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
7308
7309 2003-01-06 Jakub Jelinek <jakub@redhat.com>
7310
7311 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
7312 * sysdeps/generic/creat.c: Include sysdep-cancel.h.
7313 (LIBC_CANCEL_HANDLED): Add.
7314
7315 * sysdeps/unix/sysv/linux/alpha/sysdep.h
7316 (inline_syscall_r0_constraint): Rename to...
7317 (inline_syscall_r0_out_constraint): ... this. Add =.
7318 (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
7319
7320 2003-01-06 Andreas Schwab <schwab@suse.de>
7321
7322 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
7323 sure this is always inlined.
7324 (elf_machine_rela): Likewise.
7325
7326 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
7327
7328 2003-01-04 Roland McGrath <roland@redhat.com>
7329
7330 * Makeconfig (+mkdep): Add -MP flag.
7331 Suggested by Art Haas <ahaas@airmail.net>.
7332
7333 2003-01-05 Andreas Schwab <schwab@suse.de>
7334
7335 * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
7336
7337 2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7338
7339 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
7340 SYSCALL_ERROR_HANDLER.
7341 * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
7342 * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
7343 Add support for cancellation handling.
7344 * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
7345 SYSCALL_ERROR_HANDLER.
7346 * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
7347 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
7348 Add support for cancellation handling.
7349 (SYSCALL_ERROR_HANDLER): Define PIC variants.
7350
7351 2003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7352
7353 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
7354 __syscall_pread64 and __syscall_pwrite64 cancelable.
7355 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
7356 (INTERNAL_SYSCALL): New macro.
7357 (LOADARGS_0, LOADARGS_1): Fix.
7358
7359 2003-01-05 Ulrich Drepper <drepper@redhat.com>
7360
7361 * Makerules (build-shlip-helper): Unless told otherwise, add
7362 -Wl,-z,defs to linker command line.
7363 * rt/Makefile (librt.so): Link with ld.so.
7364 * dlfcn/Makefile (libdl.so): Likewise.
7365
7366 2003-01-05 Jakub Jelinek <jakub@redhat.com>
7367
7368 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
7369 cancellation handling.
7370 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
7371 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
7372
7373 2003-01-04 Ulrich Drepper <drepper@redhat.com>
7374
7375 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
7376 order of parameters passed to kill.
7377
7378 2003-01-04 Andreas Schwab <schwab@suse.de>
7379
7380 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
7381
7382 2002-01-03 Paul Eggert <eggert@twinsun.com>
7383
7384 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
7385 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
7386 when compiling Bison 1.875's `bitset bset = obstack_alloc
7387 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
7388
7389 2003-01-04 Ulrich Drepper <drepper@redhat.com>
7390
7391 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove
7392 unnecessary code.
7393 Correct reference counter in case SIGQUIT handler installation failed.
7394
7395 2003-01-03 Ulrich Drepper <drepper@redhat.com>
7396
7397 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
7398 Define using _Pragma(weak ...).
7399
7400 2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
7401
7402 * resolv/res_libc.c: Provide declaration for __res_init_weak and
7403 reorder declarations.
7404
7405 2003-01-03 Art Haas <ahaas@airmail.net>
7406
7407 * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
7408 initializer syntax to C99.
7409 * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
7410 * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
7411 * localedata/tests-mbwc/dat_iswctype.c: Likewise.
7412 * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
7413 * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
7414 * localedata/tests-mbwc/dat_iswlower.c: Likewise.
7415 * localedata/tests-mbwc/dat_iswprint.c: Likewise.
7416 * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
7417 * localedata/tests-mbwc/dat_iswspace.c: Likewise.
7418 * localedata/tests-mbwc/dat_iswupper.c: Likewise.
7419 * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
7420 * localedata/tests-mbwc/dat_mblen.c: Likewise.
7421 * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
7422 * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
7423 * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
7424 * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
7425 * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
7426 * localedata/tests-mbwc/dat_strcoll.c: Likewise.
7427 * localedata/tests-mbwc/dat_strfmon.c: Likewise.
7428 * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
7429 * localedata/tests-mbwc/dat_swscanf.c: Likewise.
7430 * localedata/tests-mbwc/dat_towctrans.c: Likewise.
7431 * localedata/tests-mbwc/dat_towlower.c: Likewise.
7432 * localedata/tests-mbwc/dat_towupper.c: Likewise.
7433 * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
7434 * localedata/tests-mbwc/dat_wcscat.c: Likewise.
7435 * localedata/tests-mbwc/dat_wcschr.c: Likewise.
7436 * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
7437 * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
7438 * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
7439 * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
7440 * localedata/tests-mbwc/dat_wcslen.c: Likewise.
7441 * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
7442 * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
7443 * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
7444 * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
7445 * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
7446 * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
7447 * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
7448 * localedata/tests-mbwc/dat_wcstod.c: Likewise.
7449 * localedata/tests-mbwc/dat_wcstok.c: Likewise.
7450 * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
7451 * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
7452 * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
7453 * localedata/tests-mbwc/dat_wctob.c: Likewise.
7454 * localedata/tests-mbwc/dat_wctomb.c: Likewise.
7455 * localedata/tests-mbwc/dat_wctrans.c: Likewise.
7456 * localedata/tests-mbwc/dat_wctype.c: Likewise.
7457 * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
7458
7459 2003-01-03 Richard Henderson <rth@redhat.com>
7460
7461 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
7462 (inline_syscall_r0_constraint): New.
7463 (inline_syscall[0-6]): Use them.
7464
7465 2003-01-03 Jakub Jelinek <jakub@redhat.com>
7466
7467 * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
7468 Add rtld_hidden_proto.
7469 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
7470 (_dl_allocate_tls): Likewise. Remove INTDEF.
7471
7472 2002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7473
7474 * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu
7475 Morita <toshiyasu.morita@hsa.hitachi.com>.
7476 * sysdeps/sh/memcpy.S: Likewise.
7477
7478 2003-01-02 Ulrich Drepper <drepper@redhat.com>
7479
7480 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
7481 any, but unify the test.
7482
7483 2003-01-02 Jakub Jelinek <jakub@redhat.com>
7484
7485 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
7486 sigaction): Protect weak_alias and libc_hidden_weak with
7487 #ifndef LIBC_SIGACTION.
7488 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
7489 sigaction): Likewise.
7490 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
7491 sigaction): Likewise.
7492 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
7493 sigaction): Likewise.
7494 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
7495 sigaction): Likewise.
7496 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
7497 sigaction): Likewise.
7498 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
7499 sigaction): Likewise.
7500 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
7501 sigaction): Likewise. Remove SIGCANCEL handling here.
7502 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
7503 Likewise.
7504
7505 2003-01-02 Art Haas <ahaas@airmail.net>
7506
7507 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
7508
7509 2003-01-02 Ulrich Drepper <drepper@redhat.com>
7510
7511 * posix/getconf.c: Update copyright year.
7512 * nss/getent.c: Likewise.
7513 * nscd/nscd_nischeck.c: Likewise.
7514 * iconv/iconvconfig.c: Likewise.
7515 * iconv/iconv_prog.c: Likewise.
7516 * elf/ldconfig.c: Likewise.
7517 * catgets/gencat.c: Likewise.
7518 * csu/version.c: Likewise.
7519 * elf/ldd.bash.in: Likewise.
7520 * elf/sprof.c (print_version): Likewise.
7521 * locale/programs/locale.c: Likewise.
7522 * locale/programs/localedef.c: Likewise.
7523 * nscd/nscd.c (print_version): Likewise.
7524 * debug/xtrace.sh: Likewise.
7525 * malloc/memusage.sh: Likewise.
7526 * malloc/mtrace.pl: Likewise.
7527
7528 2003-01-01 Jakub Jelinek <jakub@redhat.com>
7529
7530 * io/sys/stat.h: Include time.h with __need_timespec even if
7531 __USE_MISC is defined but __USE_XOPEN is not.
7532
7533 2003-01-01 Andreas Jaeger <aj@suse.de>
7534
7535 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
7536 type to avoid strict aliasing problem.
7537 (_nss_dns_gethostbyname2_r): Likewise.
7538 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
7539 (_nss_dns_getnetbyname_r): Likewise.
7540 * resolv/gethnamaddr.c (_gethtent): Likewise.
7541 (gethostbyname2): Likewise.
7542
7543 2002-12-31 Ulrich Drepper <drepper@redhat.com>
7544
7545 * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
7546 to avoid using the exported symbols. Define aliases with the
7547 original names separately.
7548
7549 * include/time.h: Add libc_hidden_proto for __strftime_l.
7550 * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
7551 * time/strftime.c: Always use libc_hidden_def if _LIBC.
7552
7553 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
7554 * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
7555
7556 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
7557 tr_break.
7558
7559 * csu/Makefile (routines): Add dso_handle.
7560 * csu/dso_handle.c: New file.
7561
7562 2002-12-31 Roland McGrath <roland@redhat.com>
7563
7564 * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
7565 Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
7566 (S-CPPFLAGS): Add -DASSEMBLER here instead.
7567 (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
7568
7569 2002-12-31 Ulrich Drepper <drepper@redhat.com>
7570
7571 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
7572 is available.
7573
7574 2002-12-31 Andreas Jaeger <aj@suse.de>
7575
7576 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
7577 with Linux kernel.
7578 * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
7579 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
7580 * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
7581
7582 * sysdeps/unix/sysv/linux/kernel_stat.h
7583 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
7584
7585 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
7586 __unused[1-3] since they're needed by some platforms. Handle
7587 _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
7588
7589 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
7590 for structs stat and stat64.
7591 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
7592 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
7593 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
7594 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
7595
7596 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
7597
7598 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
7599 nsec resolution changes.
7600 (xstat64_conv): Likewise.
7601 (xstat32_conv): Likewise.
7602
7603 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
7604 struct kernel_stat.
7605
7606 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
7607 structs stat and stat64.
7608
7609 * time/time.h (__timespec_defined): Define for __USE_MISC.
7610
7611 2002-12-31 Ulrich Drepper <drepper@redhat.com>
7612
7613 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
7614 and __libc_current_sigrtmax.
7615
7616 2002-12-31 Jakub Jelinek <jakub@redhat.com>
7617
7618 * include/errno.h (__errno_location): Add prototype.
7619 Use libc_hidden_proto unconditionally.
7620 * include/netdb.h (__h_errno_location): Use libc_hidden_proto
7621 unconditionally.
7622 * include/resolv.h (__res_state): Likewise.
7623
7624 * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
7625 * include/sys/socket.h (accept): Add libc_hidden_proto.
7626 * include/errno.h (__errno_location): Likewise.
7627 * include/netdb.h (__h_errno_location): Likewise.
7628 * include/resolv.h (__res_state): Likewise.
7629 * include/unistd.h (__lseek): Likewise.
7630 * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
7631 * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
7632 * sysdeps/generic/res-state.c (__res_state): Likewise.
7633 * sysdeps/generic/accept.c (accept): Likewise.
7634 * sysdeps/generic/lseek.c (__lseek): Likewise.
7635 * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
7636 __libc_current_sigrtmax): Likewise.
7637 * sysdeps/mach/hurd/accept.c (accept): Likewise.
7638 * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
7639 * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
7640 * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
7641 * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
7642 * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
7643 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
7644 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
7645 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
7646 alias to llseek.
7647 (__GI_accept): New alias to accept.
7648 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
7649 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
7650 New alias to llseek.
7651 (__GI_accept): New alias to accept.
7652 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
7653 Likewise.
7654 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
7655 Likewise.
7656 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
7657
7658 * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
7659 strong_alias (name, __GI_name).
7660 * sysdeps/arm/bsd-_setjmp.S : Likewise.
7661 * sysdeps/hppa/bsd-_setjmp.S : Likewise.
7662 * sysdeps/i386/bsd-_setjmp.S : Likewise.
7663 * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
7664 * sysdeps/mips/bsd-_setjmp.S : Likewise.
7665 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
7666 * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
7667 * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
7668 * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
7669 * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
7670 * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
7671 * sysdeps/sh/bsd-_setjmp.S : Likewise.
7672 * sysdeps/sparc/sparc32/setjmp.S : Likewise.
7673 * sysdeps/unix/arm/fork.S : Likewise.
7674 * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
7675 * sysdeps/unix/bsd/i386/vfork.S : Likewise.
7676 * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
7677 * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
7678 * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
7679 * sysdeps/unix/bsd/vax/vfork.S : Likewise.
7680 * sysdeps/unix/i386/fork.S : Likewise.
7681 * sysdeps/unix/mips/fork.S : Likewise.
7682 * sysdeps/unix/sparc/fork.S : Likewise.
7683 * sysdeps/unix/sparc/vfork.S : Likewise.
7684 * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
7685 * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
7686 * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
7687 * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
7688 * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
7689 * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
7690 * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
7691 * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
7692 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
7693 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
7694 * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
7695 * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
7696 * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
7697 * sysdeps/unix/fork.S : Likewise.
7698 * sysdeps/vax/bsd-_setjmp.S : Likewise.
7699 * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
7700
7701 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
7702 inclusion.
7703
7704 2002-12-31 Ulrich Drepper <drepper@redhat.com>
7705
7706 * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
7707 * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
7708 * sysdeps/mach/hurd/fork.c: Likewise.
7709 * sysdeps/unix/sysv/aix/fork.c: Likewise.
7710 * sysdeps/unix/fork.S: Add __GI___fork alias.
7711 * sysdeps/unix/arm/fork.S: Likewise.
7712 * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
7713 * sysdeps/unix/i386/fork.S: Likewise.
7714 * sysdeps/unix/mips/fork.S: Likewise.
7715 * sysdeps/unix/sparc/fork.S: Likewise.
7716 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
7717 * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
7718 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
7719 * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
7720 * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
7721 * sysdeps/unix/bsd/i386/vfork.S: Likewise.
7722 * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
7723 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
7724 * sysdeps/unix/bsd/vax/vfork.S: Likewise.
7725 * sysdeps/unix/sparc/vfork.S: Likewise.
7726 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
7727 * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
7728 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
7729 * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
7730 * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
7731 * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
7732 * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
7733 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
7734
7735 * include/time.h: Add libc_hidden_proto for __nanosleep.
7736 * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
7737 * sysdeps/mach/nanosleep.c: Likewise.
7738 * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
7739 * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
7740
7741 * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
7742 _IO_list_unlock, and _IO_list_resetlock.
7743 * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
7744 _IO_list_unlock, and _IO_list_resetlock.
7745
7746 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
7747 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
7748 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
7749 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
7750
7751 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
7752 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
7753 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
7754 __GI___longjmp alias.
7755
7756 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
7757 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
7758 * sysdeps/arm/bsd-_setjmp.S: Likewise.
7759 * sysdeps/generic/bsd-_setjmp.c: Likewise.
7760 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
7761 * sysdeps/i386/bsd-_setjmp.S: Likewise.
7762 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
7763 * sysdeps/mips/bsd-_setjmp.S: Likewise.
7764 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
7765 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
7766 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
7767 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
7768 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
7769 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
7770 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
7771 * sysdeps/sh/bsd-_setjmp.S: Likewise.
7772 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
7773 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
7774 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
7775 * sysdeps/vax/bsd-_setjmp.S: Likewise.
7776 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
7777
7778 2002-12-30 Ulrich Drepper <drepper@redhat.com>
7779
7780 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
7781
7782 2002-12-30 Roland McGrath <roland@redhat.com>
7783
7784 * Rules (generated): Target removed.
7785 * mach/Makefile (generated): Define it here instead.
7786
7787 * math/Makefile (generated): Add m_*l and m_*f variants too.
7788
7789 2002-12-30 Ulrich Drepper <drepper@redhat.com>
7790
7791 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
7792 the to-be-deleted objects right away instead of later separately.
7793 The latter fails because the scope data structures of the DSO
7794 might already be gone.
7795
7796 * elf/Makefile: Add rules to build and run reldep8 test.
7797 * elf/reldep8.c: New file.
7798 * elf/reldep8mod1.c: New file.
7799 * elf/reldep8mod2.c: New file.
7800 * elf/reldep8mod3.c: New file.
7801 Contributed by Jakub Jelinek.
7802
7803 2002-12-24 GOTO Masanori <gotom@debian.or.jp>
7804
7805 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
7806 checking of return value ENOSYS from getdents64.
7807
7808 2002-12-28 Andreas Schwab <schwab@suse.de>
7809
7810 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
7811 ($(common-objpfx)s-%.d): Generalized from
7812 $(common-objpfx)s-proto.d rule.
7813 (common-generated): Add s-proto-cancel.d.
7814 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
7815 cancellable syscalls.
7816 * sysdeps/unix/s-proto-cancel.S: New file.
7817
7818 2002-12-29 Roland McGrath <roland@redhat.com>
7819
7820 * resolv/res_libc.c: Move _res defn magic after res_init defn
7821 so _res macro is in effect for that code.
7822
7823 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
7824 pattern for prepending $(..) so it doesn't affect $(foo).
7825
7826 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
7827
7828 2002-12-29 Jakub Jelinek <jakub@redhat.com>
7829
7830 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
7831 in hwcap.
7832
7833 2002-12-28 Ulrich Drepper <drepper@redhat.com>
7834
7835 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
7836
7837 2002-12-28 Andreas Jaeger <aj@suse.de>
7838
7839 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
7840 avoid warning.
7841 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
7842
7843 2002-12-27 Jakub Jelinek <jakub@redhat.com>
7844
7845 * inet/herrno.c (__h_errno_location): Remove.
7846 * inet/Makefile (routines): Add herrno-loc.
7847 * resolv/res_libc.c (__res_state): Remove.
7848 * resolv/Makefile (routines): Add res-state.
7849 * sysdeps/generic/herrno-loc.c: New file.
7850 * sysdeps/generic/res-state.c: New file.
7851
7852 2002-12-27 Jakub Jelinek <jakub@redhat.com>
7853
7854 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
7855 Only define if USE_DL_SYSINFO is defined.
7856
7857 2002-12-22 Jakub Jelinek <jakub@redhat.com>
7858
7859 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
7860 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
7861 Define. Patch by Richard Henderson and Jes Sorensen.
7862 (PSEUDO): Remove unnecessary ;;.
7863 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
7864 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
7865 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
7866 if not initializing thread pointer.
7867 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
7868 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
7869 make it weak also if NONTLS_INIT_TP.
7870 * sysdeps/unix/common/pause.c: Handle cancellation.
7871 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
7872 (LOADSYSCALL): Remove.
7873 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
7874 (SYSCALL_ERROR_HANDLER): Use it.
7875 (PSEUDO): Don't jump around error handler.
7876 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
7877 jump around error handler.
7878 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
7879 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
7880 to __syscall_error_handler on failure.
7881 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
7882 (LOADSYSCALL): Remove.
7883 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
7884 (SYSCALL_ERROR_HANDLER): Use it.
7885 (PSEUDO): Don't jump around error handler.
7886 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
7887 jump around error handler.
7888 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
7889 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
7890 to __syscall_error_handler on failure.
7891
7892 2002-12-27 Roland McGrath <roland@redhat.com>
7893
7894 * scripts/gen-as-const.awk: New file.
7895 * Makefile (distribute): Add it.
7896 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
7897 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
7898 to the list.
7899 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
7900
7901 2002-12-27 Andreas Schwab <schwab@suse.de>
7902
7903 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
7904
7905 2002-12-27 Jakub Jelinek <jakub@redhat.com>
7906
7907 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
7908 _environ is NULL.
7909
7910 2002-12-27 Andreas Schwab <schwab@suse.de>
7911
7912 * Makerules ($(common-objpfx)%.make): Filter through
7913 $(sed-remove-objpfx).
7914
7915 2002-12-23 Roland McGrath <roland@redhat.com>
7916
7917 * scripts/abilist.awk: Produce a more compact format, divided into
7918 stanzas for each version set, the set name listed only once.
7919 * scripts/extract-abilist.awk: New file.
7920 * scripts/merge-abilist.awk: New file.
7921 * Makerules (check-abi-%, update-abi-%): New pattern rules.
7922 (update-abi, check-abi): New targets.
7923 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
7924
7925 2002-12-19 Roland McGrath <roland@redhat.com>
7926
7927 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
7928
7929 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
7930 INTERNAL_SYSCALL.
7931
7932 2002-12-21 Andreas Schwab <schwab@suse.de>
7933
7934 * elf/check-textrel.c (handle_file): Swap p_type.
7935
7936 2002-12-21 Andreas Schwab <schwab@suse.de>
7937
7938 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
7939 (INLINE_SYSCALL): Use it.
7940 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
7941 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
7942
7943 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
7944 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
7945
7946 2002-12-20 Art Haas <ahaas@airmail.net>
7947
7948 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
7949 syntax to C99.
7950
7951 2002-12-21 Philip Blundell <philb@gnu.org>
7952
7953 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
7954 top as seventh arg to __libc_start_main.
7955 Reported by paulnash@wildseed.com.
7956
7957 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
7958
7959 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
7960 compatibility cruft when new enough kernel is assumed.
7961
7962 2002-12-20 Jakub Jelinek <jakub@redhat.com>
7963
7964 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
7965 instead of INLINE_SYSCALL.
7966
7967 2002-12-20 Ulrich Drepper <drepper@redhat.com>
7968
7969 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
7970 typo.
7971
7972 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
7973 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
7974 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
7975 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7976 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
7977 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7978 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
7979 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7980 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
7981 Patch by William Lee Irwin <wli@holomorphy.com>.
7982
7983 2002-12-20 Andreas Schwab <schwab@suse.de>
7984
7985 * locale/programs/ld-measurement.c (measurement_output): Fix
7986 index calculation.
7987
7988 2002-12-20 Ulrich Drepper <drepper@redhat.com>
7989
7990 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
7991 Redefine _IO_flockifle and _IO_funlockfile as inlines.
7992
7993 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
7994 builds add "tls" in the search path.
7995 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
7996 (path_hwcap): Recognize "tls".
7997
7998 2002-12-19 Ulrich Drepper <drepper@redhat.com>
7999
8000 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
8001 __waitpid instead of waitpid.
8002
8003 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
8004 int $0x80.
8005 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
8006 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
8007 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
8008
8009 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
8010 information for system calls.
8011
8012 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
8013 for ld.so.
8014
8015 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
8016
8017 2002-12-19 Roland McGrath <roland@redhat.com>
8018
8019 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
8020 * iconvdata/ibm922.h: Likewise.
8021 * iconvdata/ibm930.h: Likewise.
8022 * iconvdata/ibm932.h: Likewise.
8023 * iconvdata/ibm933.h: Likewise.
8024 * iconvdata/ibm935.h: Likewise.
8025 * iconvdata/ibm937.h: Likewise.
8026 * iconvdata/ibm939.h: Likewise.
8027 * iconvdata/ibm943.h: Likewise.
8028 * iconvdata/isiri-3342.h: Likewise.
8029
8030 2002-12-19 Ulrich Drepper <drepper@redhat.com>
8031
8032 * test-skeleton.c (main): Make sure correct value is seen as
8033 argv[0] after adjustment of argv, and argc.
8034
8035 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
8036 RTLD_CORRECT_DYNAMIC_WEAK is defined.
8037
8038 2002-12-19 Jakub Jelinek <jakub@redhat.com>
8039
8040 * nscd/connections.c (nscd_run): Shut up warning.
8041 * tst-ungetc.c (assert): Undefined before redefining.
8042
8043 2002-12-19 Ulrich Drepper <drepper@redhat.com>
8044
8045 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
8046 is used.
8047
8048 2002-12-17 Art Haas <ahaas@airmail.net>
8049
8050 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
8051 * iconvdata/cp775.h: Likewise.
8052 * iconvdata/ibm1046.h: Likewise.
8053 * iconvdata/ibm1124.h: Likewise.
8054 * iconvdata/ibm1129.h: Likewise.
8055 * iconvdata/ibm1132.h: Likewise.
8056 * iconvdata/ibm1133.h: Likewise.
8057 * iconvdata/ibm1160.h: Likewise.
8058 * iconvdata/ibm1161.h: Likewise.
8059 * iconvdata/ibm1162.h: Likewise.
8060 * iconvdata/ibm1163.h: Likewise.
8061 * iconvdata/ibm1164.h: Likewise.
8062
8063 2002-12-19 Ulrich Drepper <drepper@redhat.com>
8064
8065 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
8066 __ASSUME_CLONE_THREAD_FLAGS is defined.
8067 * sysdeps/unix/sysv/linux/kernel-features.h
8068 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
8069
8070 2002-12-18 Ulrich Drepper <drepper@redhat.com>
8071
8072 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
8073 of asm.
8074 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8075
8076 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
8077 _dl_sysinfo.
8078 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
8079 code.
8080 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
8081 _rtld_global.
8082 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
8083 code.
8084 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
8085 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
8086 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
8087 Add _dl_sysinfo.
8088
8089 2002-12-18 Jakub Jelinek <jakub@redhat.com>
8090
8091 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
8092 __libc_writev to...
8093 [libc: GLIBC_PRIVATE]: ...here.
8094 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
8095 __libc_msgsnd to...
8096 [libc: GLIBC_PRIVATE]: ...here.
8097
8098 2002-12-18 Ulrich Drepper <drepper@redhat.com>
8099
8100 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
8101 Use it instead of directly int $0x80.
8102 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
8103 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
8104 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
8105 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8106 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
8107 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
8108
8109 2002-12-17 Ulrich Drepper <drepper@redhat.com>
8110
8111 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
8112
8113 * elf/elf.h (AT_SYSINFO): New define.
8114 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
8115 AT_SYSINFO.
8116
8117 2002-12-17 Jakub Jelinek <jakub@redhat.com>
8118
8119 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
8120 Make cancelable.
8121 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
8122 Likewise.
8123 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
8124 Likewise.
8125 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
8126 Likewise.
8127 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
8128 Likewise.
8129 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
8130
8131 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
8132 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
8133 available, otherwise __libc_maybe_call.
8134 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
8135 cancellation handling.
8136 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
8137
8138 2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
8139
8140 * posix/regcomp.c (free_workarea_compile): Free the new member
8141 ORG_INDICES.
8142 (analyze): Initialize ORG_INDICES.
8143 (duplicate_node_closure): Search for a existing node, which is
8144 duplicated from the node ORG_DEST and satisfies the constraint
8145 CONSTRAINT. And use it to avoid inifimite loop.
8146 (search_duplicated_node): New function.
8147 (duplicate_node): Store the index of the original node.
8148 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
8149 if needed.
8150 * posix/regex_internal.h (re_dfa_t): Add new members.
8151
8152 2002-12-17 Ulrich Drepper <drepper@redhat.com>
8153
8154 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
8155
8156 2002-12-16 Ulrich Drepper <drepper@redhat.com>
8157
8158 * sysdeps/posix/system.c (do_system): Add support for installation
8159 of cancellation handlers.
8160 * sysdeps/unix/sysv/linux/i386/system.c: New file.
8161
8162 * stdlib/Makefile (tests): Add tst-system.
8163 * stdlib/tst-system.c: New file.
8164
8165 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
8166 CENABLE]: Don't lose content of %ebx.
8167
8168 2002-12-17 Jakub Jelinek <jakub@redhat.com>
8169
8170 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
8171 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
8172
8173 2002-12-16 Ulrich Drepper <drepper@redhat.com>
8174
8175 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
8176 fails to return a function pointer don't use it.
8177
8178 2002-12-16 Art Haas <ahaas@airmail.net>
8179
8180 * io/ftw.c: Convert GCC extension initializer syntax to C99.
8181 * iconvdata/iso-ir-165.c: Likewise.
8182 * iconvdata/jis0208.c: Likewise.
8183 * iconvdata/jis0212.c: Likewise.
8184
8185 2002-12-16 Ulrich Drepper <drepper@redhat.com>
8186
8187 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
8188 epoll_ctl, and epoll_wait.
8189 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
8190 epoll_create, epoll_ctl, and epoll_wait.
8191 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
8192 Davide Libenzi <davidel@xmailserver.org>.
8193 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
8194 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
8195 Add sys/epoll.h.
8196
8197 2002-12-16 Art Haas <ahaas@airmail.net>
8198
8199 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
8200 syntax to C99
8201 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
8202 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
8203 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
8204
8205 2002-12-16 Ulrich Drepper <drepper@redhat.com>
8206
8207 * stdio-common/Makefile (routines): Remove lockfile. Add
8208 flockfile, ftrylockfile, and funlockfile.
8209 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
8210 * sysdeps/generic/flockfile.c: New file.
8211 * sysdeps/generic/ftrylockfile.c: New file.
8212 * sysdeps/generic/funlockfile.c: New file.
8213
8214 2002-12-16 Jakub Jelinek <jakub@redhat.com>
8215
8216 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
8217 macros instead of doing the calls directly.
8218 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
8219 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
8220 targets.
8221
8222 2002-12-16 Jakub Jelinek <jakub@redhat.com>
8223
8224 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
8225 * sysdeps/ieee754/bits/nan.h: Likewise.
8226
8227 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
8228 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
8229
8230 2002-12-16 Roland McGrath <roland@redhat.com>
8231
8232 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
8233 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
8234 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
8235
8236 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
8237 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
8238 s_putpmsg.
8239 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
8240 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
8241 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
8242 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
8243 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
8244 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
8245 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
8246 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
8247
8248 2002-12-13 Paul Eggert <eggert@twinsun.com>
8249
8250 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
8251 is now u_int, not int.
8252 (struct XDR.x_handy): Now u_int, not int.
8253 * sunrpc/xdr_mem.c: Include <limits.h>.
8254 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
8255 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
8256 x_handy is now unsigned, not signed.
8257 Do not decrement x_handy if no change is made.
8258 (xdrmem_setpos): Check for int overflow.
8259 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
8260 (xdr_sizeof): Remove cast that is now unnecessary, now that
8261 x_handy is unsigned.
8262
8263 2002-12-15 Art Haas <ahaas@airmail.net>
8264
8265 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
8266 * iconvdata/gap.awk: Likewise.
8267 * iconvdata/gen-8bit-gap-1.sh: Likewise.
8268 * iconvdata/gen-8bit-gap.sh: Likewise.
8269 * locale/C-address.c: Likewise.
8270 * locale/C-collate.c: Likewise.
8271 * locale/C-ctype.c: Likewise.
8272 * locale/C-identification.c: Likewise.
8273 * locale/C-measurement.c: Likewise.
8274 * locale/C-messages.c: Likewise.
8275 * locale/C-monetary.c: Likewise.
8276 * locale/C-name.c: Likewise.
8277 * locale/C-numeric.c: Likewise.
8278 * locale/C-paper.c: Likewise.
8279 * locale/C-telephone.c: Likewise.
8280 * locale/C-time.c: Likewise.
8281 * nscd/connections.c: Likewise.
8282 * nscd/grpcache.c: Likewise.
8283 * nscd/hstcache.c: Likewise.
8284 * nscd/pwdcache.c: Likewise.
8285 * stdio-common/vfprintf.c: Likewise.
8286 * stdlib/random.c: Likewise.
8287 * sysdeps/generic/siglist.c: Likewise.
8288 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
8289 * sysdeps/ieee754/bits/nan.h: Likewise.
8290 * sysdeps/posix/sprofil.c: Likewise.
8291 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
8292 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
8293 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
8294
8295 2002-12-15 Roland McGrath <roland@redhat.com>
8296
8297 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
8298
8299 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
8300 <tls.h> here, no need for it.
8301 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
8302
8303 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
8304 parameter, not varargs parameter.
8305
8306 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
8307 argument so it's not an unused variable.
8308
8309 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
8310 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
8311 for users.
8312
8313 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
8314
8315 2002-12-15 Ulrich Drepper <drepper@redhat.com>
8316
8317 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
8318 original __libc_fcntl code. Just renamed.
8319
8320 2002-12-15 Andreas Schwab <schwab@suse.de>
8321
8322 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
8323
8324 2002-12-14 Olaf Hering <olh@suse.de>
8325
8326 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
8327 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
8328
8329 2002-12-15 Ulrich Drepper <drepper@redhat.com>
8330
8331 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
8332
8333 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
8334 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
8335
8336 * sysdeps/unix/sysv/linux/open64.c: New file.
8337
8338 * sysdeps/generic/pselect.c: Add support for cancellation handling.
8339 * sysdeps/posix/open64.c: Likewise.
8340 * sysdeps/posix/sigpause.c: Likewise.
8341 * sysdeps/posix/sigwait.c: Likewise.
8342 * sysdeps/posix/system.c: Likewise.
8343 * sysdeps/posix/waitid.c: Likewise.
8344 * sysdeps/unix/sysv/linux/accept.S: Likewise.
8345 * sysdeps/unix/sysv/linux/connect.S: Likewise.
8346 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
8347 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
8348 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
8349 * sysdeps/unix/sysv/linux/poll.c: Likewise.
8350 * sysdeps/unix/sysv/linux/pread.c: Likewise.
8351 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
8352 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
8353 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
8354 * sysdeps/unix/sysv/linux/readv.c: Likewise.
8355 * sysdeps/unix/sysv/linux/recv.S: Likewise.
8356 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
8357 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
8358 * sysdeps/unix/sysv/linux/send.S: Likewise.
8359 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
8360 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
8361 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
8362 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
8363 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
8364 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
8365 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
8366 * sysdeps/unix/sysv/linux/wait.c: Likewise.
8367 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
8368 * sysdeps/unix/sysv/linux/writev.c: Likewise.
8369 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
8370 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
8371
8372 2002-12-14 Jakub Jelinek <jakub@redhat.com>
8373
8374 * sysdeps/generic/sysdep-cancel.h: New file.
8375 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
8376 cancelable syscall.
8377 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
8378 recvmsg, send, sendmsg, sendto): Make cancelable.
8379 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
8380 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
8381 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
8382 sendto, osf_select): Likewise.
8383 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
8384 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
8385 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
8386 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
8387 sendto): Likewise.
8388 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
8389 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
8390 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
8391 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
8392 sendto): Likewise.
8393 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
8394 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
8395 sendto, select): Likewise.
8396 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
8397 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
8398 Likewise.
8399 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
8400 select, fcntl): Likewise.
8401 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
8402 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
8403 read, readv, select, sigsuspend, write, writev): Likewise.
8404
8405 2002-12-14 Jakub Jelinek <jakub@redhat.com>
8406
8407 * dirent/bug-readdir1.c: Include unistd.h.
8408
8409 2002-12-13 Jakub Jelinek <jakub@redhat.com>
8410
8411 * locale/programs/locale.c: Include locarchive.h.
8412 (ARCHIVE_NAME): Define.
8413 (write_archive_locales): New function.
8414 (write_locales): Use it. Ensure the same locale is not printed
8415 multiple times in verbose mode.
8416 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
8417 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
8418 functions.
8419 (struct nameent): New type.
8420 (nameentcmp): New function.
8421
8422 2002-12-14 Jakub Jelinek <jakub@redhat.com>
8423
8424 * posix/regex_internal.c (re_string_context_at): Guard wide char
8425 code with #ifdef RE_ENABLE_I18N.
8426
8427 2002-11-22 Paolo Bonzini <bonzini@gnu.org>
8428
8429 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
8430
8431 2002-12-13 Roland McGrath <roland@redhat.com>
8432
8433 * posix/bug-regex15.c: New file.
8434 * posix/Makefile (tests): Add it.
8435
8436 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
8437 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
8438
8439 2002-12-13 Ulrich Drepper <drepper@redhat.com>
8440
8441 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
8442
8443 * misc/syslog.c (log_cleanup): Don't use parameter in
8444 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
8445 pass NULL instead of a pointer to syslog_lock.
8446
8447 2002-12-12 Ulrich Drepper <drepper@redhat.com>
8448
8449 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
8450 linker map for all iconv modules.
8451 (distribute): Add gconv.map.
8452 * iconvdata/gconv.map: New file.
8453
8454 * elf/Makefile: Also check all iconv modules for text relocations.
8455
8456 * stdlib/Makefile: Remove code to automatically import GMP.
8457
8458 * elf/Makefile (tests): Add rules to build and run check-textrel.
8459 * elf/check-textrel.c: New file.
8460
8461 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
8462 directive.
8463
8464 2002-12-11 Jakub Jelinek <jakub@redhat.com>
8465
8466 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
8467 not st.st[am]time.
8468
8469 2002-04-30 Bruno Haible <bruno@clisp.org>
8470
8471 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
8472 the encoding if it already has slashes.
8473 Reported by Perry Rapp <prapp@erols.com>.
8474
8475 2002-12-11 Roland McGrath <roland@redhat.com>
8476
8477 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
8478 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
8479 Turn off PIC for compiling this file.
8480
8481 2002-12-11 Ulrich Drepper <drepper@redhat.com>
8482
8483 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
8484 definitions. Not needed.
8485 [_LIBC]: Use definitions from libc-lock.h instead of referencing
8486 pthread routines directly.
8487 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
8488 mutex_init calls.
8489 (arena_get2): Don't look at return value of mutex_lock.
8490
8491 2002-12-11 Roland McGrath <roland@redhat.com>
8492
8493 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
8494 elf-init.o instead of compiling a PIC version.
8495
8496 2002-12-11 Bruno Haible <bruno@clisp.org>
8497
8498 * intl/gettext.h: Renamed to ...
8499 * intl/gmo.h: ... here.
8500 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
8501 * intl/gettextP.h: Update.
8502 * intl/loadmsgcat.c: Update.
8503
8504 * intl/gettextP.h (PARAMS): Make more portable.
8505 (attribute_hidden): Define as empty macro if not already defined.
8506 * intl/hash-string.h (PARAMS): Make more portable.
8507 * intl/loadinfo.h (PARAMS): Likewise.
8508 * intl/plural-exp.h (PARAMS): Likewise.
8509 (attribute_hidden): Move definition near the definition of
8510 internal_function.
8511
8512 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
8513 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
8514
8515 2002-07-13 Bruno Haible <bruno@clisp.org>
8516
8517 * intl/dcigettext.c (freea): New macro.
8518 (FREE_BLOCKS): Free also the registered blocks.
8519 (DCIGETTEXT): Free the 'search' variable.
8520 Reported by Andreas Fischer <a.fischer@asentics.de>.
8521
8522 2002-04-27 Bruno Haible <bruno@clisp.org>
8523
8524 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
8525 * intl/dcigettext.c: Likewise.
8526 * intl/dcgettext.c: Likewise.
8527 * intl/dgettext.c: Likewise.
8528 * intl/gettext.c: Likewise.
8529 * intl/dcngettext.c: Likewise.
8530 * intl/dngettext.c: Likewise.
8531 * intl/ngettext.c: Likewise.
8532 * intl/textdomain.c: Likewise.
8533 * intl/bindtextdom.c: Likewise.
8534 * intl/plural-exp.h: Likewise.
8535
8536 2002-01-02 Bruno Haible <bruno@clisp.org>
8537
8538 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
8539
8540 2001-04-30 Bruno Haible <bruno@clisp.org>
8541
8542 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
8543 default macro definitions. Needed for mingw32.
8544
8545 2002-12-10 Ulrich Drepper <drepper@redhat.com>
8546
8547 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
8548 __builtin_constant_p to macro parameter.
8549
8550 * sysdeps/generic/sigpause.c: Define all functions as weak.
8551 * sysdeps/posix/sigpause.c: Likewise.
8552
8553 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
8554 type size_t.
8555
8556 2002-12-10 Jakub Jelinek <jakub@redhat.com>
8557
8558 * elf/tst-array1.c (preinit_array, init_array, fini_array):
8559 Explicitly align the array to sizeof (void *).
8560 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
8561
8562 * include/libc-symbols.h: Fix a comment typo.
8563
8564 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
8565 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
8566 Likewise.
8567 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
8568 Likewise.
8569 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
8570 (__libc_sigsuspend): Likewise.
8571 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
8572 (__libc_sigsuspend): Likewise.
8573 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
8574 (creat): New weak alias.
8575
8576 2002-12-10 Roland McGrath <roland@redhat.com>
8577
8578 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
8579 contributes a manual chapter.
8580 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
8581 around xref to it.
8582
8583 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
8584 and move contents to ...
8585 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
8586 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
8587 it instead of duplicating its contents.
8588 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
8589
8590 2002-12-09 Jakub Jelinek <jakub@redhat.com>
8591
8592 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
8593 defined.
8594 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
8595 function.
8596 (EXTRA_LD_ENVVARS): Use it.
8597 (DL_OSVERSION_INIT): Define.
8598 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
8599 dl-librecon.h.
8600 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
8601
8602 2002-12-10 Ulrich Drepper <drepper@redhat.com>
8603
8604 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
8605
8606 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
8607 call. It is not allowed to destroy pthread mutexes which are
8608 still in use even though it is safe for our implementations. If
8609 somebody still uses the descriptor it is a bug.
8610
8611 2002-12-09 Richard Henderson <rth@redhat.com>
8612
8613 * csu/abi-note.S: Use .p2align, not .align.
8614
8615 2002-12-09 Ulrich Drepper <drepper@redhat.com>
8616
8617 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
8618 __libc_select aliases.
8619
8620 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
8621 alias.
8622
8623 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
8624
8625 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
8626
8627 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
8628
8629 * sysdeps/unix/syscalls.list: Define __libc_select alias.
8630
8631 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
8632
8633 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
8634 __libc___xpg_sigpause aliases.
8635
8636 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
8637
8638 * misc/error.c: Remove use of USE_IN_LIBIO.
8639
8640 2002-12-08 Roland McGrath <roland@redhat.com>
8641
8642 * elf/Makefile (tests): Uncomment tst-array[123].
8643 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
8644 * csu/elf-init.c: New file.
8645 * csu/Makefile (routines, static-only-routines): Add elf-init.
8646 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
8647 and __libc_csu_fini in place of _fini.
8648 * sysdeps/arm/elf/start.S: Likewise.
8649 * sysdeps/cris/elf/start.S: Likewise.
8650 * sysdeps/hppa/elf/start.S: Likewise.
8651 * sysdeps/i386/elf/start.S: Likewise.
8652 * sysdeps/ia64/elf/start.S: Likewise.
8653 * sysdeps/m68k/elf/start.S: Likewise.
8654 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
8655 * sysdeps/mips/elf/start.S: Likewise.
8656 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
8657 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
8658 * sysdeps/s390/s390-32/elf/start.S: Likewise.
8659 * sysdeps/s390/s390-64/elf/start.S: Likewise.
8660 * sysdeps/sh/elf/start.S: Likewise.
8661 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
8662 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8663 * sysdeps/x86_64/elf/start.S: Likewise.
8664
8665 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
8666 struct containing function ptr and value, free it.
8667 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
8668 It's not safe to let the new thread use the SIGEV pointer.
8669
8670 2001-10-20 Paul Eggert <eggert@twinsun.com>
8671
8672 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
8673 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
8674 Use strerror_r that is only a macro, even if it is not a function.
8675 (strerror): Check for HAVE_DECL_STRERROR before declaring.
8676 (private_strerror): Use prototypes, not old-style function definition.
8677 (print_errno_message): New function.
8678 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
8679 char*-flavored one.
8680 (error_tail, error, error_at_line): Use it.
8681
8682 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
8683
8684 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
8685
8686 2002-12-08 Ulrich Drepper <drepper@redhat.com>
8687
8688 * scripts/output-format.sed: Fix bug in one of the s expressions
8689 which used / for one too many things.
8690
8691 * include/unistd.h: Declare __libc_close.
8692
8693 2002-12-07 Ulrich Drepper <drepper@redhat.com>
8694
8695 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
8696
8697 2002-12-07 Roland McGrath <roland@redhat.com>
8698
8699 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
8700 from 2002-12-06, but remove unnecessary memset call without removing
8701 necessary copy of initialization image.
8702
8703 * Makerules ($(common-objpfx)format.lds): New target.
8704 (common-generated): Add it.
8705 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
8706 * scripts/output-format.sed: New file.
8707 * Makefile (distribute): Add it.
8708
8709 2002-12-07 Ulrich Drepper <drepper@redhat.com>
8710
8711 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
8712 Reported by Art Haas <ahaas@airmail.net>.
8713
8714 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
8715
8716 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
8717
8718 2002-12-07 Jakub Jelinek <jakub@redhat.com>
8719
8720 * string/test-strncpy.c (do_random_tests): Improve test coverage.
8721
8722 2002-12-06 Ulrich Drepper <drepper@redhat.com>
8723
8724 * test-skeleton.c (timeout_handler): Allow expected signal to be
8725 SIGALRM.
8726
8727 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
8728
8729 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
8730
8731 2002-12-07 Jakub Jelinek <jakub@redhat.com>
8732
8733 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
8734 (SYSCALL_ERROR_HANDLER): Fix a pasto.
8735 Reported by Jeff Bailey <jbailey@nisa.net>.
8736
8737 2002-12-06 Ulrich Drepper <drepper@redhat.com>
8738
8739 * sysdeps/generic/libc-tls.c: Undo last patch.
8740
8741 * include/wctype.h: Define iswalnum with libc_hidden_proto.
8742
8743 * include/signal.h: Define raise with libc_hidden_proto.
8744
8745 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
8746 __execve instead of snprintf and execve.
8747
8748 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
8749 again a bit.
8750
8751 2002-12-06 Jakub Jelinek <jakub@redhat.com>
8752
8753 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
8754 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
8755
8756 2002-12-06 Ulrich Drepper <drepper@redhat.com>
8757
8758 * misc/syslog.c (log_cleanup): New function.
8759 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
8760 (closelog): Likewise.
8761
8762 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
8763 * elf/dl-iteratephdr.c: Likewise.
8764 * elf/dl-lookup.c: Likewise.
8765 * elf/dl-misc.c: Likewise.
8766 * elf/dl-open.c: Likewise.
8767 * elf/dl-support.c: Likewise.
8768 * elf/rtld.c: Likewise.
8769 * sysdeps/generic/ldsodefs.h: Likewise.
8770 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
8771 * sysdeps/mach/bits/libc-lock.h: Likewise.
8772 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
8773
8774 2002-12-06 Roland McGrath <roland@redhat.com>
8775
8776 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
8777
8778 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
8779 (malloc_starter, memalign_starter, free_starter): Don't define these.
8780 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
8781 Don't declare them either.
8782 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
8783 __pthread_initialize, so no need to set hooks to *_starter.
8784 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
8785 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
8786 (__libc_malloc_pthread_startup): New function.
8787 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
8788
8789 * malloc/hooks.c (memalign_starter): New function.
8790 * malloc/malloc.c: Declare it.
8791 * malloc/arena.c (save_memalign_hook): New variable.
8792 (ptmalloc_init): Set __memalign_hook to memalign_starter.
8793
8794 * elf/dl-minimal.c (free): Clear the memory.
8795 (calloc): Just call malloc, knowing all memory it returns is cleared.
8796
8797 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
8798 malloc and memset; calloc can avoid the zeroing when redundant.
8799 (_dl_tls_setup): Likewise.
8800 * elf/dl-load.c (decompose_rpath): Likewise.
8801 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
8802 call, since memory from sbrk at startup is already zero.
8803
8804 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
8805 error string for failure, null for success. Update callers.
8806 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
8807 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
8808
8809 2002-12-05 Jakub Jelinek <jakub@redhat.com>
8810
8811 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
8812 args to i:iipi.
8813 (readahead): Change args to i:iii.
8814 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
8815 Change args to i:iii.
8816 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
8817 args to i:iiii.
8818
8819 2002-12-05 Roland McGrath <roland@redhat.com>
8820
8821 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
8822 call all functions rather than none.
8823 Reported by Mark P. Mitchell <mark@codesourcery.com>.
8824
8825 2002-12-04 Roland McGrath <roland@redhat.com>
8826
8827 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
8828 on _nl_current_LC_* variables.
8829
8830 2002-12-05 Ulrich Drepper <drepper@redhat.com>
8831
8832 * dirent/bug-readdir1.c (main): Don't call closedir, just close
8833 the file descriptor. This is testing what the bug report was about.
8834
8835 2002-12-04 Ulrich Drepper <drepper@redhat.com>
8836
8837 * po/be.po: New file.
8838
8839 * argp/Makefile (tests): Add tst-argp1.
8840
8841 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
8842 Change type of _attribute to void*.
8843 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
8844 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
8845 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
8846 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
8847 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
8848
8849 2002-12-04 Roland McGrath <roland@redhat.com>
8850
8851 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
8852 members to the end, so a libpthread compiled with !USE_TLS will still
8853 find other members properly.
8854
8855 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
8856 operand for DEST memory. Fix dummy input operand to use SRC.
8857 Reported by Davin McCall <davmac@ozonline.com.au>.
8858
8859 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
8860 alignment when initializing the DTV entry.
8861
8862 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
8863 when TLS has not been set up, try to set it up if we can.
8864 * elf/tst-tls4.c: Revert last change.
8865 * elf/tst-tls5.c: Likewise.
8866 * elf/tst-tls6.c: Likewise.
8867 * elf/tst-tls7.c: Likewise.
8868 * elf/tst-tls8.c: Likewise.
8869 * elf/tst-tls9.c: Likewise.
8870
8871 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
8872 * sysdeps/generic/ldsodefs.h: Declare it.
8873 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
8874 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
8875 function, broken out of __libc_setup_tls.
8876 (init_static_tls): Likewise.
8877 (__libc_setup_tls): Call them.
8878 (_dl_tls_setup): New function, uses new subroutines.
8879
8880 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
8881 Clear the pointer when returning true.
8882 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
8883 first element of the slotinfo list too.
8884
8885 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
8886 [SHARED].
8887
8888 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
8889 (_dl_determine_tlsoffset): Likewise.
8890
8891 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
8892 startup_error_tsd, made global.
8893 (dl_main): Update initialization.
8894 * elf/dl-tsd.c: Likewise.
8895 * sysdeps/generic/ldsodefs.h: Declare it.
8896
8897 2002-12-03 Ulrich Drepper <drepper@redhat.com>
8898
8899 * manual/texinfo.tex: Update from latest upstream version.
8900
8901 2002-12-03 Roland McGrath <roland@redhat.com>
8902
8903 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
8904 area surplus in calculation for sbrk call.
8905
8906 * iconvdata/cp1125.c: New file.
8907 * iconvdata/Makefile (distribute): Add it.
8908 (modules): Add CP1125.
8909 (gen-8bit-gap-modules): Add cp1125.
8910 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
8911 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
8912
8913 2002-12-03 Andreas Jaeger <aj@suse.de>
8914
8915 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8916
8917 2002-12-03 Ulrich Drepper <drepper@redhat.com>
8918
8919 * sysdeps/posix/system.c (do_system): Make signal handler
8920 installation thread safe.
8921
8922 2002-12-02 Roland McGrath <roland@redhat.com>
8923
8924 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
8925 caller from EXTRA to -.
8926 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
8927 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
8928 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
8929
8930 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
8931
8932 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
8933 bits of RM are cleared.
8934
8935 2002-12-02 Roland McGrath <roland@redhat.com>
8936
8937 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
8938 TLS setup is required.
8939 * elf/tst-tls5.c: Likewise.
8940 * elf/tst-tls6.c: Likewise.
8941 * elf/tst-tls7.c: Likewise.
8942 * elf/tst-tls8.c: Likewise.
8943 * elf/tst-tls9.c: Likewise.
8944
8945 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
8946 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
8947 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
8948 for being null before calling free_slotinfo.
8949 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
8950 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
8951
8952 2002-11-30 Bruno Haible <bruno@clisp.org>
8953
8954 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
8955 (struct __gconv_step): New field __btowc_fct.
8956 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
8957 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
8958 __BUILTIN_TRANS.
8959 (__gconv_btwoc_ascii): New declaration.
8960 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
8961 (__gconv_btwoc_ascii): New function.
8962 * iconv/gconv_builtin.h: Add BtowcFct argument to all
8963 BUILTIN_TRANSFORMATION invocations.
8964 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
8965 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
8966 * iconv/gconv_builtin.c (map): New field btowc_fct.
8967 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
8968 btowc_fct field.
8969 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
8970 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
8971 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
8972 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
8973 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
8974 (gconv_init): Initialize __btowc_fct field.
8975 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
8976 * iconv/loop.c: Document ONEBYTE_BODY.
8977 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
8978 Undefine ONEBYTE_BODY at the end.
8979 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
8980 * iconvdata/8bit-gap.c (NONNUL): New macro.
8981 (BODY for FROM_LOOP): Use it.
8982 (ONEBYTE_BODY): New macro.
8983 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
8984 (NONNUL): New macro.
8985 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
8986 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
8987 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
8988 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
8989 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
8990 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
8991 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
8992 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
8993 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
8994 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
8995 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
8996 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
8997 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
8998 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
8999 * iconvdata/ibm932.c: Include <stdbool.h>.
9000 (TRUE, FALSE): Remove macros.
9001 (BODY for FROM_LOOP): Remove unused variable rp1.
9002 (ONEBYTE_BODY): New macro.
9003 (BODY for TO_LOOP): Use bool.
9004 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
9005 * iconvdata/ibm943.c: Include <stdbool.h>.
9006 (TRUE, FALSE): Remove macros.
9007 (BODY for FROM_LOOP): Remove unused variable rp1.
9008 (ONEBYTE_BODY): New macro.
9009 (BODY for TO_LOOP): Use bool.
9010 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
9011 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
9012 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
9013 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
9014 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
9015 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
9016 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
9017 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
9018 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
9019 * iconvdata/gbbig5.c: Tweak comment.
9020
9021 2002-12-02 Ulrich Drepper <drepper@redhat.com>
9022
9023 * po/fi.po: Update from translation team.
9024
9025 2002-12-01 Roland McGrath <roland@redhat.com>
9026
9027 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
9028 testing getdents64 return value.
9029
9030 * scripts/versions.awk: Don't pass -n flag to sort command.
9031
9032 * posix/bug-regex13.c: Include <string.h>.
9033
9034 * sysdeps/generic/libc-start.c (__libc_start_main): Do
9035 DL_SYSDEP_OSCHECK here.
9036 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
9037 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
9038
9039 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
9040 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
9041
9042 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
9043 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
9044
9045 * include/link.h: Comment typo fix.
9046
9047 2002-12-01 Roland McGrath <roland@frob.com>
9048
9049 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
9050 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
9051 _POSIX_MEMORY_PROTECTION): Likewise.
9052 (_POSIX_POLL, _POSIX_SELECT): Removed.
9053
9054 2002-11-28 Ulrich Drepper <drepper@redhat.com>
9055
9056 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
9057 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
9058
9059 2002-11-28 Jakub Jelinek <jakub@redhat.com>
9060
9061 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
9062 USE___THREAD.
9063 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
9064 "=v" constraints.
9065
9066 2002-11-28 Ulrich Drepper <drepper@redhat.com>
9067
9068 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
9069 branch prediction buffers by using unpaired call/ret.
9070
9071 2002-11-27 Ulrich Drepper <drepper@redhat.com>
9072
9073 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
9074 first parameters constraint string.
9075 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
9076
9077 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
9078
9079 * posix/regcomp.c (parse_expression): Set the bit since the back
9080 reference is used in the regular expression.
9081 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
9082 of malloc failure.
9083 (re_node_set_init_copy): Likewise.
9084 * posix/regex_internal.h (state_array_t): New structure.
9085 (re_sub_match_last_t): Likewise.
9086 (re_sub_match_top_t): Likewise.
9087 (re_match_context_t): Add new members.
9088 (re_dfa_t): Likewise.
9089 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
9090 to check the matching is really correct, and retry if failed.
9091 Move the routin pruning the impossible nodes from here, ...
9092 (prune_impossible_nodes): To this function.
9093 (check_matching): Invoke check_subexp_matching_top, and replace
9094 redundant checking with transit_state_bkref invocation.
9095 (proceed_next_node): Replace strncmp with memcmp. Reported by
9096 Paolo Bonzini <bonzini@gnu.org>.
9097 (update_cur_sifted_state): Remove search_subexp invocation.
9098 (search_subexp): Remove this function.
9099 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
9100 optimization.
9101 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
9102 Remove unused invocation of match_ctx_add_entry.
9103 (transit_state): Invoke check_subexp_matching_top.
9104 (check_subexp_matching_top): New function.
9105 (transit_state_bkref): Remove unused array.
9106 Merge transit_state_bkref_loop.
9107 (transit_state_bkref_loop): Use get_subexp instead of
9108 sift_states_backward. Use search_cur_bkref_entry for optimization.
9109 Merge this function to transit_state_bkref.
9110 (get_subexp): New function.
9111 (get_subexp_sub): Likewise.
9112 (find_subexp_node): Likewise.
9113 (check_arrival): Likewise.
9114 (check_arrival_expand_ecl): Likewise.
9115 (check_arrival_expand_ecl_sub): Likewise.
9116 (expand_bkref_cache): Likewise.
9117 (match_ctx_init): Initialize new members.
9118 (match_ctx_clean): New function.
9119 (match_ctx_free): Release new members.
9120 (match_ctx_free_subtops): New function.
9121 (match_ctx_add_entry): Fix indent.
9122 (search_cur_bkref_entry): New function.
9123 (match_ctx_add_subtop): Likewise.
9124 (match_ctx_add_sublast): Likewise.
9125
9126 2002-11-25 Ulrich Drepper <drepper@redhat.com>
9127
9128 * iconv/Makefile (tests): Remove tst-iconv4.c
9129 * iconv/tst-iconv4.c: Moved to...
9130 * iconvdata/tst-iconv4.c: ...here. New file.
9131 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
9132
9133 2002-11-25 Roland McGrath <roland@redhat.com>
9134
9135 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
9136 Grok AF_LINK if defined.
9137 From Momchil Velikov <velco@fadata.bg>.
9138
9139 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
9140 brdaddr, or dstaddr, just set those pointers to null and don't fail.
9141 Reported by Momchil Velikov <velco@fadata.bg>.
9142
9143 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
9144 is > sizeof IFR->ifa_addr, advance past the whole longer length.
9145 (__ifreq): Count up NIFS that way too.
9146 Reported by Momchil Velikov <velco@fadata.bg>.
9147
9148 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
9149
9150 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
9151 and <fpu_control.h>.
9152
9153 2002-11-24 Ulrich Drepper <drepper@redhat.com>
9154
9155 * elf/elf.h (EM_ST19): Fix typo.
9156
9157 2002-11-25 Jakub Jelinek <jakub@redhat.com>
9158
9159 * include/errno.h (__set_errno): Define as errno = val
9160 unconditionally.
9161
9162 2002-11-24 Roland McGrath <roland@redhat.com>
9163
9164 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
9165 * sysdeps/posix/writev.c: Likewise.
9166 From Momchil Velikov <velco@fadata.bg>.
9167
9168 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
9169 calling *GL(dl_error_catch_tsd) for a thread-local location.
9170 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
9171 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
9172 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
9173
9174 * libio/iofflush.c: Add libc_hidden_def.
9175 * libio/iofwrite.c: Likewise.
9176 * sysdeps/generic/sigtimedwait.c: Likewise.
9177 * sysdeps/generic/sigwaitinfo.c: Likewise.
9178 * sysdeps/posix/sigwait.c: Likewise.
9179 Reported by Momchil Velikov <velco@fadata.bg>.
9180
9181 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
9182 to match <arpa/inet.h> declaration.
9183 * inet/inet_netof.c (inet_netof): Likewise.
9184 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
9185 Reported by Momchil Velikov <velco@fadata.bg>.
9186
9187 * configure.in: Skip AUTOCONF check under --without-cvs.
9188 * configure: Regenerated.
9189
9190 * posix/Makefile (headers): Add bits/pthreadtypes.h.
9191 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
9192 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
9193
9194 2002-11-24 Andreas Schwab <schwab@suse.de>
9195
9196 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
9197 with six arguments.
9198
9199 2002-11-19 Jim Meyering <jim@meyering.net>
9200
9201 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
9202 as `static'.
9203 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
9204
9205 2002-11-23 Roland McGrath <roland@redhat.com>
9206
9207 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
9208 Just produce hex output for datum sizes.
9209
9210 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
9211 Reported by Luca Barbieri <ldb@ldb.ods.org>.
9212
9213 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
9214
9215 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
9216 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
9217 and __unused3 fields.
9218 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
9219 [__WORDSIZE == 32]: Only PPC32 requires __unused1
9220 and __unused2 fields.
9221 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
9222 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
9223 __unused3, and __unused4 fields.
9224
9225 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
9226 obtain lowest address for profiling in __monstartup call.
9227
9228 2002-11-21 Roland McGrath <roland@redhat.com>
9229
9230 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
9231 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
9232
9233 * locale/localeinfo.h (struct locale_data): Revert last change.
9234
9235 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
9236 From Ian Wienand <ianw@gelato.unsw.edu.au>.
9237
9238 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
9239 __NR_pread64 if not defined.
9240 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
9241 From Ian Wienand <ianw@gelato.unsw.edu.au>.
9242
9243 2002-11-21 Roland McGrath <roland@frob.com>
9244
9245 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
9246 __libc_multiple_libcs here. Call __setfpucw.
9247
9248 2002-11-21 Ulrich Drepper <drepper@redhat.com>
9249
9250 * elf/Makefile (tests): Don't run test-arrayX tests for now.
9251
9252 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
9253 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
9254 CLONE_CHILD_*TID flags.
9255
9256 2002-11-20 Andreas Jaeger <aj@suse.de>
9257
9258 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
9259 We pass struct ucontext on x86-64.
9260 (GET_PC): Adjust.
9261 (GET_FRAME): Adjust.
9262 (GET_STACK): Adjust.
9263
9264 2002-11-20 Roland McGrath <roland@redhat.com>
9265
9266 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
9267 conditionalize [! DO_VERSIONING] #error.
9268
9269 * scripts/abilist.awk: Grok function descriptor symbols.
9270
9271 * intl/tst-gettext.c (main): Check return values from setlocale.
9272 Add necessary unsetenv's to make LANG=existing-locale check work.
9273
9274 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
9275 so aborted prior runs don't confuse things.
9276
9277 * locale/localeinfo.h (struct locale_data: union locale_data_value):
9278 Use uintptr_t instead of unsigned int for `word' member.
9279 (_NL_CURRENT_WORD): Cast to uint32_t.
9280
9281 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
9282 value.
9283
9284 2002-11-20 Ulrich Drepper <drepper@redhat.com>
9285
9286 * elf/tls-macros.h: Add IA-64 definitions.
9287 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
9288
9289 * iconv/Makefile (tests): Add tst-iconv4.
9290 * iconv/tst-iconv4.c: New file.
9291
9292 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
9293 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
9294 __GCONV_INCOMPLETE_INPUT.
9295 (ucs4le_internal_loop): Likewise.
9296 (ucs4le_internal_loop_unaligned): Likewise.
9297 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
9298 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
9299 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
9300
9301 * iconv/loop.c (LOOPFCT): First test for empty input then for full
9302 output buffer.
9303
9304 * inet/getnameinfo.c: Use extend_alloca where appropriate.
9305 * sysdeps/posix/getaddrinfo.c: Likewise.
9306
9307 * include/alloca.h (extend_alloca): New define. Based on stack
9308 direction it'll try to append to the previouls allocated buffer.
9309
9310 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
9311
9312 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
9313 use the same service for AF_INET and AF_INET6.
9314
9315 2002-11-19 Ulrich Drepper <drepper@redhat.com>
9316
9317 * intl/localealias.c (read_alias_file): Use only about 400 bytes
9318 of stack space instead of 16k.
9319
9320 2002-11-18 Wolfram Gloger <wg@malloc.de>
9321
9322 * malloc/arena.c
9323 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
9324 nothing if not initialized. Bug report from Marcus Brinkmann
9325 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
9326
9327 2002-11-19 Roland McGrath <roland@redhat.com>
9328
9329 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
9330 sched_setaffinity.
9331
9332 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
9333 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
9334 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
9335 * configure: Regenerated.
9336
9337 2002-11-19 Ulrich Drepper <drepper@redhat.com>
9338
9339 * include/dlfcn.h: __libc_dlopen is now a macro calling
9340 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
9341 (__libc_dlopen_mode): New prototype.
9342 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
9343 new parameter. Store new parameter in mode field of structure passed
9344 to do_dlopen.
9345 (struct do_dlopen_args): Add new field mode.
9346 (do_dlopen): Pass mode from parameter structure to _dl_open.
9347
9348 2002-11-11 Randolf Chung <tausq@debian.org>
9349
9350 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
9351 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
9352 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
9353
9354 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
9355
9356 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
9357 Set -mdisable-fpregs for this file.
9358
9359 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
9360
9361 * sysdeps/unix/sysv/linux/configure.in:
9362 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
9363 from gcc-3.0 era for backwards compatibility.
9364 * sysdeps/unix/sysv/linux/configure: Regenerate.
9365
9366 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
9367 Define mcontext_t as a sigcontext.
9368
9369 2002-11-18 Roland McGrath <roland@redhat.com>
9370
9371 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
9372 Free memory in `last_result' if it was used.
9373
9374 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
9375 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
9376 Do the parsing inline instead of copying strings and calling
9377 inet_network, and properly skip all alias names not matching the form.
9378
9379 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
9380
9381 2002-11-17 Ulrich Drepper <drepper@redhat.com>
9382
9383 * manual/pattern.texi (Wordexp Example): Fix sample code.
9384
9385 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
9386 childs stack which will be loaded into the %esi register.
9387
9388 2002-11-14 Paul Eggert <eggert@twinsun.com>
9389
9390 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
9391 overflow when skipping the question part and when unpacking aliases.
9392
9393 2002-11-15 Roland McGrath <roland@redhat.com>
9394
9395 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
9396 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
9397 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
9398
9399 2002-11-15 Jakub Jelinek <jakub@redhat.com>
9400
9401 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
9402 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
9403
9404 2002-11-15 Roland McGrath <roland@redhat.com>
9405
9406 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
9407 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
9408 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
9409 (+make-include-of-dep): New canned sequence.
9410
9411 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
9412 From Dmitry V. Levin <ldv@altlinux.org>.
9413
9414 2002-11-14 Roland McGrath <roland@redhat.com>
9415
9416 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
9417 * inet/herrno.c (__libc_h_errno): Likewise.
9418 * resolv/res_libc.c (__libc_res): Likewise.
9419 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
9420 (__res_state) [! USE___THREAD]: Don't define as weak.
9421 * csu/Versions: Revert last change.
9422 * resolv/Versions: Revert last change.
9423
9424 * Makerules ($(common-objpfx)%.make): New pattern rule.
9425 * tls.make.c: New file.
9426 * Makefile (distribute): Add it.
9427
9428 * sysdeps/generic/errno.c [! USE___THREAD]
9429 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
9430 with compat_symbol so they are not link-time visible.
9431 [! USE___THREAD] (__libc_errno): New alias for errno.
9432 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
9433 Add __libc_errno here.
9434 * inet/herrno.c [USE___THREAD]: Use this conditional
9435 in place of [USE_TLS && HAVE___THREAD].
9436 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
9437 (h_errno, _h_errno): Declare these with compat_symbol so they are not
9438 link-time visible.
9439 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
9440 * resolv/res_libc.c [! USE___THREAD]
9441 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
9442 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
9443 (__libc_res): Define as alias for _res.
9444 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
9445 Add __libc_h_errno and __libc_res here.
9446
9447 2002-11-14 Jakub Jelinek <jakub@redhat.com>
9448
9449 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
9450 * resolv/Versions (h_errno, _res): Likewise.
9451
9452 2002-11-14 Roland McGrath <roland@redhat.com>
9453
9454 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
9455 (%.symlist): Likewise.
9456
9457 2002-11-13 Roland McGrath <roland@redhat.com>
9458
9459 * scripts/abilist.awk: New file.
9460 * Makefile (distribute): Add it.
9461 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
9462 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
9463 [$(subdir) = elf] (tests): Depend on libc.symlist.
9464 (generated, common-generated): Add those files.
9465
9466 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
9467 * configure: Regenerated.
9468 * config.make.in (OBJDUMP): New variable, substituted by configure.
9469
9470 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
9471 (mallochook, reallochook): Set them up.
9472 (checkhdr): Check HDR->magic2 value.
9473 (freehook): Reset HDR->magic2.
9474 (memalignhook): New static function.
9475 (old_memalign_hook): New static variable.
9476 (mcheck, reallochook): Set __memalign_hook to memalignhook.
9477
9478 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
9479 for the new TCB.
9480
9481 2002-11-13 Andreas Jaeger <aj@suse.de>
9482
9483 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
9484 attribute.
9485 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9486
9487 2002-11-11 Paul Eggert <eggert@twinsun.com>
9488
9489 * manual/crypt.texi (Cryptographic Functions): Mention that
9490 the MD5 one-way algorithm is compatible with BSD's.
9491
9492 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
9493
9494 * posix/regex_internal.c (re_string_skip_chars): Also return the last
9495 wide character.
9496 (re_string_reconstruct): Calculate the context by itself when the
9497 offset points out of the valid range.
9498 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
9499 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
9500 (IS_WIDE_WORD_CHAR): New macro.
9501 (IS_WIDE_NEWLINE): New macro.
9502
9503 2002-11-12 Andreas Jaeger <aj@suse.de>
9504
9505 * sysdeps/x86_64/strchr.S: Don't use one register for two
9506 purposes, this fixes a bug noticed by test-strchr.c.
9507
9508 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
9509 correctly.
9510
9511 2002-11-12 Roland McGrath <roland@redhat.com>
9512
9513 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
9514 (_G_IO_NO_BACKWARD_COMPAT): Define it.
9515
9516 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
9517 instead of <pt-machine.h>.
9518 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
9519 testandset.
9520 From Ian Wienand <ianw@gelato.unsw.edu.au>.
9521
9522 2002-11-10 Roland McGrath <roland@redhat.com>
9523
9524 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
9525 Call fputs instead of fwprintf (simpler to follow in debugger).
9526
9527 * crypt/md5-crypt.c: Doc fix.
9528
9529 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
9530 the beginning of generated target commands.
9531
9532 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
9533 dependencies for these in case implicit rule search skipped the
9534 nonexistent source directory.
9535 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
9536 files with $(object-suffixes) as targets too.
9537 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
9538 and a target for it using $(make-target-directory).
9539
9540 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
9541
9542 2002-11-10 Roland McGrath <roland@frob.com>
9543
9544 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
9545 * sysdeps/generic/bits/pthreadtypes.h: ... here.
9546
9547 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
9548 l_start == 0 and l_len == 1 as we do l_len == 0.
9549
9550 2002-11-10 Ulrich Drepper <drepper@redhat.com>
9551
9552 * po/da.po: Update from translation team.
9553
9554 2002-11-10 Roland McGrath <roland@redhat.com>
9555
9556 * config.make.in (includedir): New variable, substituted by configure.
9557 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
9558 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
9559
9560 2002-11-10 Andreas Jaeger <aj@suse.de>
9561
9562 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
9563 REG_OLDMASK and REG_CR2 to synch with kernel header.
9564 (NGREG): Increase.
9565
9566 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
9567 aliasing problem.
9568 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
9569 * nss/getnssent_r.c (__nss_getent_r): Likewise.
9570 (__nss_setent): Likewise.
9571 (__nss_getent_r): Likewise.
9572 * inet/getnetgrent_r.c (innetgr): Likewise.
9573 (__internal_setnetgrent_reuse): Likewise.
9574 (internal_getnetgrent_r): Likewise.
9575 * inet/ether_hton.c (ether_hostton): Likewise.
9576 * inet/ether_ntoh.c (ether_ntohost): Likewise.
9577 * sunrpc/netname.c (netname2user): Likewise.
9578 * sunrpc/publickey.c (getpublickey): Likewise.
9579 (getsecretkey): Likewise.
9580
9581 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
9582
9583 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
9584 error in range calculation.
9585
9586 2002-10-09 Jakub Jelinek <jakub@redhat.com>
9587
9588 * string/test-strspn.c (do_test): Ensure zero termination.
9589 * string/test-strpbrk.c (do_test): Likewise.
9590 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
9591 * string/test-strncpy.c (stupid_strncpy): Likewise.
9592 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
9593
9594 2002-10-08 Roland McGrath <roland@redhat.com>
9595
9596 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
9597 nonzero characters.
9598
9599 2002-09-22 H.J. Lu <hjl@gnu.org>
9600
9601 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
9602 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
9603 only if __NR_mmap2 is defined.
9604
9605 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
9606 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
9607 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
9608 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
9609
9610 2002-11-08 Jakub Jelinek <jakub@redhat.com>
9611
9612 * posix/bug-regex13.c (tests): Add new test.
9613
9614 * string/test-strchr.c (stupid_strchr): New function.
9615 (do_random_tests): Make sure the string is zero terminated.
9616 * string/test-strpbrk.c (stupid_strpbrk): New function.
9617 (do_random_tests): Make sure the string is zero terminated.
9618 * string/test-strcmp.c (stupid_strcmp): New function.
9619 (do_random_tests): Make sure the strings are zero terminated.
9620 * string/test-strspn.c (stupid_strspn): New function.
9621 (simple_strspn): Rename rej argument to acc.
9622 (do_random_tests): Make sure the string is zero terminated.
9623 * string/test-strcspn.c (stupid_strcspn): New function.
9624 * string/test-strncpy.c (stupid_strncpy): New function.
9625 * string/test-stpncpy.c (stupid_stpncpy): New function.
9626 * string/test-strncmp.c (stupid_strncmp): New function.
9627 (do_random_tests): Make sure the strings are zero terminated.
9628 * string/test-string.h (impl_t): Change test into long.
9629 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
9630
9631 2002-11-08 Roland McGrath <roland@redhat.com>
9632
9633 * sysdeps/ia64/elf/configure.in: Add TLS check.
9634 From Ian Wienand <ianw@cse.unsw.edu.au>.
9635 * sysdeps/ia64/elf/configure: Regenerated.
9636
9637 2002-11-07 Roland McGrath <roland@redhat.com>
9638
9639 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
9640 place of _IO_new_do_write.
9641 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
9642 #undef before versioned_symbol use.
9643
9644 2002-11-07 Richard Henderson <rth@redhat.com>
9645
9646 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
9647 * configure: Regenerated.
9648 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
9649 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
9650 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
9651 _dl_fini via gp-relative relocations.
9652 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
9653
9654 * elf/tls-macros.h: Add alpha versions.
9655 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
9656 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
9657 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
9658 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
9659 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
9660 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
9661 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
9662 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
9663 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
9664 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
9665 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
9666 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
9667 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
9668 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
9669 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
9670 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
9671 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
9672 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
9673
9674 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
9675 Kill argument registers across the inline syscall.
9676
9677 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
9678
9679 * linuxthreads/sysdeps/alpha/tls.h: New file.
9680 * sysdeps/alpha/dl-tls.h: New file.
9681
9682 2002-10-29 David Mosberger <davidm@hpl.hp.com>
9683
9684 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
9685 (gmon_initializer): New function.
9686 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
9687 __gmon_start__ here. Call it from gmon_initializer() instead.
9688
9689 2002-03-12 H.J. Lu <hjl@gnu.org>
9690
9691 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
9692 tst-array2, and tst-array3.
9693 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
9694 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
9695 ($(objpfx)tst-array1.out): New target.
9696 ($(objpfx)tst-array2): Likewise.
9697 ($(objpfx)tst-array2.out): Likewise.
9698 ($(objpfx)tst-array3.out): Likewise.
9699 * elf/tst-array1.c: New file.
9700 * elf/tst-array1.exp: Likewise.
9701 * elf/tst-array2.c: Likewise.
9702 * elf/tst-array2dep.c: Likewise.
9703 * elf/tst-array2.exp: Likewise.
9704 * elf/tst-array3.c: Likewise.
9705
9706 2002-10-28 David Mosberger <davidm@hpl.hp.com>
9707
9708 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
9709 Don't add L->l_addr to array entry values.
9710
9711 2002-11-07 Jakub Jelinek <jakub@redhat.com>
9712
9713 * string/test-string.h: New file.
9714 * string/test-strlen.c: New file.
9715 * string/test-string.h: New file.
9716 * string/test-strcmp.c: New file.
9717 * string/test-strchr.c: New file.
9718 * string/test-strrchr.c: New file.
9719 * string/test-strcpy.c: New file.
9720 * string/test-stpcpy.c: New file.
9721 * string/test-strncpy.c: New file.
9722 * string/test-stpncpy.c: New file.
9723 * string/test-strpbrk.c: New file.
9724 * string/test-strcspn.c: New file.
9725 * string/test-strspn.c: New file.
9726 * string/test-strcat.c: New file.
9727 * string/test-strncmp.c: New file.
9728 * string/test-memchr.c: New file.
9729 * string/test-memcmp.c: New file.
9730 * string/test-memset.c: New file.
9731 * string/test-memcpy.c: New file.
9732 * string/test-mempcpy.c: New file.
9733 * string/test-memmove.c: New file.
9734 * string/Makefile (strop-tests): New variable.
9735 (tests): Add strop-tests.
9736 (distribute): Add test-string.h.
9737
9738 2002-11-06 Ulrich Drepper <drepper@redhat.com>
9739
9740 * posix/regcomp.c: Use tabs instead of spaces.
9741 * posix/regexec.c: Likewise.
9742 * posix/regex_internal.h: Likewise.
9743
9744 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
9745
9746 2002-11-06 Jakub Jelinek <jakub@redhat.com>
9747
9748 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
9749 here.
9750 (regcomp): Don't set can_be_null here.
9751 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
9752 (re_compile_internal): Clear can_be_null, set regs_allocated.
9753
9754 * posix/regcomp.c (re_set_fastmap): New function.
9755 (re_compile_fastmap_iter): Use it. Remove redundant type ==
9756 COMPLEX_BRACKET check.
9757 * posix/regexec.c (re_search_internal): Optimize searching with
9758 fastmap. Call re_string_reconstruct even if match_first is
9759 smaller than raw_mbs_idx.
9760
9761 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
9762
9763 * posix/regcomp (free_dfa_content): Use free_state.
9764 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
9765 pointers in case that realloc failed.
9766 (re_node_set_merge): Likewise.
9767 (register_state): Likewise.
9768 (create_newstate_common): Invoke memory release functions in case of
9769 error conditions.
9770 (create_ci_newstate): Likewise.
9771 (create_cd_newstate): Likewise.
9772 (free_state): New function.
9773 * posix/regexec.c (re_search_internal): Invoke memory release
9774 functions in case of error conditions.
9775 (sift_states_backward): Likewise.
9776 (merge_state_array): Likewise.
9777 (add_epsilon_src_nodes): Likewise.
9778 (sub_epsilon_src_nodes): Likewise.
9779 (search_subexp): Likewise.
9780 (sift_states_bkref): Likewise.
9781 (transit_state_sb): Likewise.
9782 (transit_state_mb): Likewise.
9783 (transit_state_bkref_loop): Likewise.
9784 (group_nodes_into_DFAstates): Likewise.
9785 (push_fail_stack): Don't edit pointers in case that realloc failed.
9786 (extend_buffers): Likewise.
9787 (match_ctx_add_entry): Likewise.
9788
9789 2002-11-06 Roland McGrath <roland@redhat.com>
9790
9791 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
9792 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
9793
9794 * configure.in: Add checks on as and ld for binutils 2.13 or later.
9795 * configure: Regenerated.
9796
9797 2002-11-06 Ulrich Drepper <drepper@redhat.com>
9798
9799 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
9800 If re_compile_internal failed free fastmap buffer.
9801 (free_dfa_content): Broken out of regfree function. Frees all dfa
9802 related data.
9803 (regfree): Add free_dfa_content.
9804 (re_compile_internal): If any of the called functions fails free
9805 all dfa related memory.
9806
9807 2002-11-05 Ulrich Drepper <drepper@redhat.com>
9808
9809 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
9810 warnings from the kernel headers.
9811
9812 2002-11-05 Roland McGrath <roland@redhat.com>
9813
9814 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
9815 From Johannes Stezenbach <js@convergence.de>.
9816
9817 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
9818 #errlist-compat magic comment to give 123 as size.
9819 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
9820 (libc: GLIBC_2.2): ... here.
9821 (libc: GLIBC_2.3): Likewise.
9822
9823 2002-11-05 Ulrich Drepper <drepper@redhat.com>
9824
9825 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
9826 which happens at the beginning so that we can unload modules in
9827 __libc_freeres.
9828
9829 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9830
9831 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
9832 under [__USE_MISC || _ASM].
9833
9834 * elf/elf.h: Remove the obsolete SH TLS relocations.
9835
9836 2002-11-05 Ulrich Drepper <drepper@redhat.com>
9837
9838 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
9839
9840 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9841
9842 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
9843 __NR_pread64 and __NR_pwrite64.
9844 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
9845 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
9846 and __NR_pwrite64.
9847 Revert change to use INLINE_SYSCALL.
9848 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
9849 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
9850 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
9851 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
9852 INLINE_SYSCALL.
9853 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
9854
9855 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
9856 Update clobber list and add a comment about the syscall ABI.
9857
9858 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
9859 s_pwrite64, s_ftruncate, s_truncate): Re-add.
9860
9861 2002-11-05 Jakub Jelinek <jakub@redhat.com>
9862
9863 * iconv/gconv_dl.c (free_mem): Clear loaded.
9864 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
9865 cleanup if any.
9866
9867 2002-11-05 Ulrich Drepper <drepper@redhat.com>
9868
9869 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
9870
9871 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
9872 as old code without locking. _IO_seekoff calls this function after
9873 locking the stream.
9874 * libio/ioseekpos.c: Likewise for _IO_seekpos.
9875 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
9876 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
9877 prototypes.
9878 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
9879 of _IO_seekoff_internal.
9880 (_IO_rewind): Likewise.
9881 * libio/ioftell.c: Likewise.
9882 * libio/ftello.c: Likewise.
9883 * libio/ftello64.c: Likewise.
9884 * libio/iofgetpos.c: Likewise.
9885 * libio/iofgetpos64.c: Likewise.
9886 * libio/oldiofgetpos.c: Likewise.
9887 * libio/oldiofgetpos64.c: Likewise.
9888 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
9889 _IO_seekpos_internal.
9890 * libio/iofsetpos64.c: Likewise.
9891 * libio/oldiofsetpos.c: Likewise.
9892 * libio/oldiofsetpos64.c: Likewise.
9893
9894 2002-11-04 Roland McGrath <roland@redhat.com>
9895
9896 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
9897 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
9898 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
9899 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
9900 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
9901 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
9902 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
9903 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
9904 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
9905 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
9906 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
9907 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
9908 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
9909 Remove these, no longer used.
9910
9911 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9912
9913 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
9914 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
9915 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
9916 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
9917 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
9918 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
9919 syscall stubs.
9920
9921 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
9922 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
9923 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
9924 and __NR_pread.
9925 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
9926 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
9927 and __NR_pwrite.
9928 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
9929
9930 2002-11-03 Roland McGrath <roland@redhat.com>
9931
9932 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
9933 `_dl_tls_static_used'.
9934 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
9935 (__libc_setup_tls): Initialize it. Let the initial value of
9936 _dl_tls_static_size indicate some surplus space in the computed value.
9937 * elf/dl-open.c (_dl_tls_static_size): New variable.
9938 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
9939 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
9940 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
9941 (CHECK_STATIC_TLS): Use it.
9942 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
9943 closed objects occupied a trailing contiguous chunk of static TLS area.
9944
9945 2002-10-18 Bruno Haible <bruno@clisp.org>
9946
9947 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
9948
9949 2002-11-04 Ulrich Drepper <drepper@redhat.com>
9950
9951 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
9952 _wide_data->_IO_read_end if adjustment can be made in the current
9953 buffer.
9954
9955 * sysdeps/unix/sysv/linux/fexecve.c: New file.
9956
9957 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
9958 wide oriented streams are used.
9959
9960 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
9961 service hasn't been used [PR libc/4744].
9962
9963 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
9964 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
9965
9966 * manual/examples/dir.c: Don't include <stddef.h>.
9967 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
9968 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
9969
9970 2002-11-02 H.J. Lu <hjl@gnu.org>
9971
9972 * stdio-common/reg-printf.c: Include <stddef.h>.
9973
9974 2002-11-03 Ulrich Drepper <drepper@redhat.com>
9975
9976 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
9977
9978 * po/ca.po: Update from translation team.
9979 * po/es.po: Likewise.
9980
9981 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
9982 is defined write out memory map.
9983 * sysdeps/unix/sysv/linux/segfault.c: New file.
9984
9985 2002-11-02 Roland McGrath <roland@redhat.com>
9986
9987 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
9988 pointers that can alias.
9989 Reported by Daniel Jacobowitz <drow@mvista.com>.
9990
9991 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
9992
9993 2002-11-02 Roland McGrath <roland@redhat.com>
9994
9995 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
9996 description to be clearer and to say that *RESULT is set to ENTRY.
9997
9998 2002-10-30 Jakub Jelinek <jakub@redhat.com>
9999
10000 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
10001 dests_ch arrays together. Alloca or malloc dest_states,
10002 dest_states_word and dest_states_nl arrays together. Free memory on
10003 error exit.
10004
10005 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
10006
10007 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
10008 and current_saltbits.
10009
10010 2002-11-02 Roland McGrath <roland@redhat.com>
10011
10012 * stdio-common/reg-printf.c: Include <stdlib.h>.
10013
10014 2002-11-02 H.J. Lu <hjl@gnu.org>
10015
10016 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
10017 caller to EXTRA instead of execve.
10018
10019 2002-11-01 Roland McGrath <roland@redhat.com>
10020
10021 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
10022 in place of [!(USE_TLS && HAVE___THREAD)].
10023 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
10024
10025 2002-10-31 Roger Sayle <roger@eyesopen.com>
10026
10027 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
10028 New macros.
10029 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
10030
10031 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
10032 without defining FP_ROUNDMODE.
10033
10034 2002-10-29 Jakub Jelinek <jakub@redhat.com>
10035
10036 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
10037 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
10038 declare_symbol.
10039 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
10040 (OLD_SIGLIST_SIZE): Define.
10041 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
10042 (OLD_SIGLIST_SIZE): Define.
10043 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
10044
10045 2002-11-01 Jakub Jelinek <jakub@redhat.com>
10046
10047 * sysdeps/ia64/strncpy.S: Fix recovery code.
10048
10049 2002-10-30 Jakub Jelinek <jakub@redhat.com>
10050
10051 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
10052 New macros.
10053 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
10054 text_set_element.
10055 * elf/dl-libc.c (free_mem): Likewise.
10056 * iconv/gconv_conf.c (free_mem): Likewise.
10057 * iconv/gconv_db.c (free_mem): Likewise.
10058 * iconv/gconv_dl.c (free_mem): Likewise.
10059 * iconv/gconv_cache.c (free_mem): Likewise.
10060 * intl/finddomain.c (free_mem): Likewise.
10061 * intl/dcigettext.c (free_mem): Likewise.
10062 * locale/setlocale.c (free_mem): Likewise.
10063 * misc/fstab.c (fstab_free): Likewise.
10064 * nss/nsswitch.c (free_mem): Likewise.
10065 * posix/regcomp.c (free_mem): Likewise.
10066 * resolv/gai_misc.c (free_res): Likewise.
10067 * stdlib/fmtmsg.c (free_mem): Likewise.
10068 * sunrpc/clnt_perr.c (free_mem): Likewise.
10069 * sysdeps/generic/setenv.c (free_mem): Likewise.
10070 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
10071 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
10072 * time/tzset.c (free_mem): Likewise.
10073 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
10074 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
10075 * malloc/set-freeres.c (__libc_freeres): Likewise.
10076
10077 * login/getutent.c: Include stdlib.h instead of stddef.h.
10078 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
10079 (__getutent): Allocate buffer the first time it is run.
10080 * login/getutid.c: Include stdlib.h instead of stddef.h.
10081 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
10082 (__getutid): Allocate buffer the first time it is run.
10083 * login/getutline.c: Include stdlib.h instead of stddef.h.
10084 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
10085 (__getutline): Allocate buffer the first time it is run.
10086 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
10087 (mtrace): Allocate malloc_trace_buffer.
10088 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
10089 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
10090 * string/strerror.c: Include libintl.h and errno.h.
10091 (buf): New variable.
10092 (strerror): Only allocate buffer if actually needed (unknown error).
10093 * time/tzfile.c (transitions): Add libc_freeres_ptr.
10094 (freeres): Remove.
10095
10096 2002-10-25 Jakub Jelinek <jakub@redhat.com>
10097
10098 * include/libc-symbols.h (libc_freeres_ptr): New macro.
10099 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
10100 symbol_set_define.
10101 (__libc_freeres): Free all pointers in that section.
10102 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
10103 commands when creating .lds script.
10104 (LDSEDCMD-c.so): New variable.
10105 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
10106 (rcmd_af): Use strdup to allocate ahostbuf.
10107 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
10108 (rexec_af): Use strdup to allocate ahostbuf.
10109 * stdio-common/reg-printf.c (printf_funcs): Remove.
10110 (__printf_arginfo_table): Change into printf_arginfo_function **.
10111 Add libc_freeres_ptr.
10112 (__register_printf_function): Allocate __printf_arginfo_table
10113 and __printf_function_table the first time it is called.
10114 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
10115 printf_arginfo_function **.
10116 (parse_one_spec): Add __builtin_expect.
10117 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
10118 (free_mem): Remove.
10119 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
10120 (free_mem): Remove.
10121 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
10122 (string_space, map): Add libc_freeres_ptr.
10123 (free_mem): Remove.
10124 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
10125 (free_mem): Remove.
10126 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
10127 (free_mem): Remove.
10128 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
10129 (buffer): Add libc_freeres_ptr.
10130 (free_mem): Remove for _LIBC.
10131 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
10132 (free_mem): Remove.
10133 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
10134 (free_mem): Remove.
10135 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
10136 (free_mem): Remove.
10137 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
10138 (free_mem): Remove.
10139 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
10140 (free_mem): Remove.
10141 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
10142 (free_mem): Remove.
10143 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
10144 libc_freeres_ptr.
10145 (free_mem): Remove.
10146 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
10147 libc_freeres_ptr.
10148 (free_mem): Remove.
10149
10150 2002-10-30 Jakub Jelinek <jakub@redhat.com>
10151
10152 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
10153 instead of duplicating the whole function in libc.
10154
10155 2002-10-31 Roland McGrath <roland@redhat.com>
10156
10157 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
10158 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
10159
10160 2002-10-30 Jakub Jelinek <jakub@redhat.com>
10161
10162 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
10163 32bit-predefine when creating .new32 list and -U for each
10164 32bit-predefine when creating .new64 list.
10165 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
10166
10167 2002-10-29 Andreas Schwab <schwab@suse.de>
10168
10169 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
10170 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
10171
10172 2002-10-25 Roland McGrath <roland@redhat.com>
10173
10174 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
10175 * sysdeps/unix/sysv/linux/configure: Regenerated.
10176
10177 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
10178 _dl_starting_up decl.
10179
10180 2002-10-20 H.J. Lu <hjl@gnu.org>
10181
10182 * sysdeps/unix/sysv/linux/configure.in: Don't check
10183 /lib/modules/`uname -r`/build/include for kernel headers if
10184 cross compiling.
10185 * sysdeps/unix/sysv/linux/configure: Regenerated.
10186
10187 2002-10-25 Roland McGrath <roland@redhat.com>
10188
10189 * math/math.h (M_LOG2El): Correct the value.
10190 From Stephen L Moshier <steve@moshier.net>.
10191
10192 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
10193 conditional from __libc_multiple_libcs access. Remove kludge for weak
10194 symbol access with old compilers we no longer support.
10195 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
10196 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
10197
10198 2002-10-25 Roland McGrath <roland@redhat.com>
10199
10200 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
10201 implement SV_RESETHAND by translating it to SA_RESETHAND.
10202
10203 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
10204
10205 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
10206 type on ELF64 platforms.
10207
10208 2002-10-24 Ulrich Drepper <drepper@redhat.com>
10209
10210 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
10211
10212 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
10213
10214 2002-10-24 Jakub Jelinek <jakub@redhat.com>
10215
10216 * elf/dl-misc.c: Include <sysdep.h>.
10217 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
10218
10219 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
10220 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
10221 (INLINE_SYSCALL): Use that.
10222 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
10223 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
10224 (INLINE_SYSCALL): Use that.
10225 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
10226 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
10227 (INLINE_SYSCALL): Use that.
10228 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
10229 dl-sysdep.h.
10230 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
10231 (__INTERNAL_SYSCALL_STRING): Define.
10232 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
10233 dl-sysdep.h.
10234 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
10235 (__INTERNAL_SYSCALL_STRING): Define.
10236 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
10237 __SYSCALL_STRING to inline_syscall*.
10238 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
10239 New macros.
10240 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
10241 inline_syscall4, inline_syscall5, inline_syscall6): Add string
10242 argument.
10243
10244 2002-10-24 Roland McGrath <roland@redhat.com>
10245
10246 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
10247 * sysdeps/unix/sysv/linux/init-first.c: Not here.
10248 * sysdeps/powerpc/elf/libc-start.c: Or here.
10249 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
10250 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
10251 * sysdeps/unix/sysv/aix/init-first.c: Or here.
10252 * sysdeps/generic/libc-start.c: Or here.
10253 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
10254 access with [! SHARED].
10255 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
10256
10257 * libio/bug-wfflush.c: New file.
10258 * libio/Makefile (tests): Add bug-wfflush.
10259
10260 2002-10-23 Roland McGrath <roland@redhat.com>
10261
10262 * stdio-common/tst-fphex.c: New file.
10263 * stdio-common/Makefile (tests): Add tst-fphex.
10264 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
10265 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
10266 chars always before the value digits.
10267 Reported by James Antill <james.antill@redhat.com>.
10268
10269 2002-10-24 Jakub Jelinek <jakub@redhat.com>
10270
10271 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
10272 (free_mem): New function.
10273 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
10274 if not cross compiling.
10275 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
10276 (bug-regex14-ENV): Set.
10277 (bug-regex14-mem): New target.
10278 * posix/bug-regex14.c: New file.
10279
10280 2002-10-23 Roland McGrath <roland@redhat.com>
10281
10282 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
10283 target, so we don't touch it when the link fails.
10284
10285 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
10286 Check for the result overflowing off_t and fail with EOVERFLOW.
10287 * libio/ioftell.c (_IO_ftell): Likewise.
10288 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
10289
10290 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
10291 use a temporary timeval on the stack for gettimeofday and copy it.
10292 * login/logout.c (logout): Likewise.
10293 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
10294
10295 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
10296 Use __SWORD_TYPE instead of int for member types.
10297 (struct statfs64): Likewise.
10298 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
10299 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
10300 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
10301 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
10302 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
10303
10304 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
10305 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
10306 (ST_NODIRATIME): Restore fixed value of 2048.
10307 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
10308 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
10309
10310 Rearranged <bits/types.h> definitions to reduce duplication.
10311 * sysdeps/generic/bits/types.h: Rewritten, using macros from
10312 <bits/wordsize.h> and new header <bits/typesizes.h>.
10313 * posix/Makefile (headers): Add bits/typesizes.h here.
10314 * sysdeps/generic/bits/typesizes.h: New file.
10315 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
10316 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
10317 * sysdeps/mach/hurd/bits/typesizes.h: New file.
10318 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
10319 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
10320 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
10321 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
10322 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
10323 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
10324 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
10325 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
10326 <bits/pthreadtypes.h> here, not in <bits/types.h>.
10327 * signal/signal.h: Likewise.
10328
10329 * streams/stropts.h: Include <bits/xtitypes.h>.
10330 * streams/Makefile (headers): Add bits/xtitypes.h here.
10331 * sysdeps/generic/bits/xtitypes.h: New file.
10332 * sysdeps/s390/bits/xtitypes.h: New file.
10333 * sysdeps/ia64/bits/xtitypes.h: New file.
10334 * sysdeps/x86_64/bits/xtitypes.h: New file.
10335
10336 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
10337 * sysdeps/generic/bits/ipctypes.h: New file.
10338 * sysdeps/mips/bits/ipctypes.h: New file.
10339 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
10340 * sysdeps/gnu/bits/msq.h: Likewise.
10341 * sysvipc/sys/ipc.h: Likewise.
10342
10343 2002-10-22 Ulrich Drepper <drepper@redhat.com>
10344
10345 * elf/dl-load.c (struct filebuf): For buf element to have the
10346 alignment of ElfXX_Ehdr since this is what will be stored in it.
10347
10348 2002-10-22 Jakub Jelinek <jakub@redhat.com>
10349
10350 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
10351 into pointer to locrec_offset.
10352 (add_locale_to_archive): Adjust callers. Free normalized_name right
10353 before returning, not immediately after add_locale, pass it to
10354 add_alias if not NULL instead of name. Rename second normalized_name
10355 occurence to nnormalized_codeset_name.
10356
10357 * locale/programs/locarchive.c (enlarge_archive): Make sure
10358 string_size is always a multiple of 4.
10359 Reported by Andreas Schwab <schwab@suse.de>.
10360
10361 2002-10-21 Andreas Schwab <schwab@suse.de>
10362
10363 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
10364 caller to EXTRA instead of execve, since the latter has a
10365 higher-priority implementation in linuxthreads.
10366
10367 2002-10-21 Roland McGrath <roland@redhat.com>
10368
10369 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
10370 slotinfo list's len member to the proper size, not just 1.
10371 Initialize static_map.l_tls_initimage.
10372
10373 * elf/dl-open.c (dl_open_worker): Fix loop searching for
10374 dtv_slotinfo_list element containing new modules' l_tls_modid.
10375
10376 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
10377 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
10378 * elf/Makefile (tests): Add tst-tls9.
10379 (tests-static): Add tst-tls9-static.
10380 (tst-tls9-static-ENV): New variable.
10381 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
10382
10383 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
10384 modids used by partially loaded modules being closed can't be known.
10385
10386 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
10387
10388 * posix/Makefile: Add a test case for the bug reported by Aharon
10389 Robbins <arnold@skeeve.com>.
10390 * posix/bug-regex13.c: New file.
10391 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
10392
10393 2002-10-21 Ulrich Drepper <drepper@redhat.com>
10394
10395 * csu/gmon-start.c: Pretty printing.
10396
10397 2002-10-19 Art Haas <ahaas@neosoft.com>
10398
10399 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
10400 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
10401 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
10402 * configure: Regenerated.
10403
10404 2002-10-19 Roland McGrath <roland@redhat.com>
10405
10406 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
10407 and then set $subdirs directly, because the new Autoconf breaks
10408 compatibility in every way imaginable and insists on whining
10409 about usage that worked since the dawn of time.
10410 * configure: Regenerated.
10411
10412 * configure: Regenerated (using Autoconf 2.54).
10413 * sysdeps/alpha/elf/configure: Likewise.
10414 * sysdeps/generic/configure: Likewise.
10415 * sysdeps/i386/elf/configure: Likewise.
10416 * sysdeps/ia64/elf/configure: Likewise.
10417 * sysdeps/mach/hurd/configure: Likewise.
10418 * sysdeps/mach/configure: Likewise.
10419 * sysdeps/unix/configure: Likewise.
10420 * sysdeps/unix/common/configure: Likewise.
10421 * sysdeps/unix/sysv/aix/configure: Likewise.
10422 * sysdeps/unix/sysv/linux/configure: Likewise.
10423 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
10424 * sysdeps/x86_64/elf/configure: Likewise.
10425
10426 * config.make.in: Nix completely-soft nonsense.
10427 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
10428 of machine directories instead of fpu subdirectory.
10429 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
10430 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
10431 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
10432 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
10433 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
10434 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
10435 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
10436 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
10437 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
10438 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
10439 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
10440 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
10441 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
10442 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
10443 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
10444 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
10445 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
10446 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
10447 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
10448 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
10449 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
10450 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
10451 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
10452 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
10453 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
10454 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
10455 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
10456 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
10457 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
10458 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
10459 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
10460 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
10461 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
10462 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
10463 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
10464 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
10465 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
10466 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
10467 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
10468 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
10469
10470 2002-10-19 Bruno Haible <bruno@clisp.org>
10471
10472 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
10473
10474 2002-10-18 Roland McGrath <roland@redhat.com>
10475
10476 * io/Makefile (routines): Add lchmod.
10477 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
10478 * sysdeps/generic/lchmod.c: New file.
10479 * sysdeps/mach/hurd/lchmod.c: New file.
10480 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
10481
10482 2002-10-18 Art Haas <ahaas@neosoft.com>
10483
10484 * configure.in: Remove remaining AC_FD_CC macros, and replace
10485 AC_FD_MSG with AS_MESSAGE_FD.
10486
10487 2002-10-18 Roland McGrath <roland@redhat.com>
10488
10489 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
10490 typos: VALUE -> FINALADDR.
10491
10492 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
10493 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
10494 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
10495 (inline_syscall6): Move these macros ...
10496 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
10497
10498 * configure.in (libc_link_dests, libc_link_sources): Remove these
10499 variables and the AC_LINK_FILES call.
10500
10501 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
10502 change to put new symbols here instead of in GLIBC_2.2.
10503 * sysdeps/powerpc/Subdirs: Move this file ...
10504 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
10505
10506 2002-10-07 Roland McGrath <roland@redhat.com>
10507
10508 * sysdeps/generic/bits/time.h: Replaced with contents of the
10509 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
10510 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
10511 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
10512 macros is ok even for architectures that don't now implement them.
10513 * sysdeps/mach/hurd/bits/time.h: File removed.
10514 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
10515 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
10516 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
10517 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
10518 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
10519
10520 2002-10-18 Jeff Bailey <jbailey@gnu.org>
10521
10522 * configure.in: Replace obsolete AC_OUTPUT syntax with
10523 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
10524
10525 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
10526 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
10527
10528 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
10529 * sysdeps/alpha/elf/configure.in: Likewise.
10530 * sysdeps/i386/elf/configure.in: Likewise.
10531 * sysdeps/mach/hurd/configure.in: Likewise.
10532 * sysdeps/x86_64/elf/configure.in: Likewise.
10533
10534 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
10535
10536 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
10537 * sysdeps/generic/configure.in: Likewise.
10538 * sysdeps/i386/elf/configure.in: Likewise.
10539 * sysdeps/ia64/elf/configure.in: Likewise.
10540 * sysdeps/mach/configure.in: Likewise.
10541 * sysdeps/mach/hurd/configure.in: Likewise.
10542 * sysdeps/unix/configure.in: Likewise.
10543 * sysdeps/unix/common/configure.in: Likewise.
10544 * sysdeps/unix/sysv/aix/configure.in: Likewise.
10545 * sysdeps/unix/sysv/linux/configure.in: Likewise.
10546 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
10547 * sysdeps/x86_64/elf/configure.in: Likewise.
10548
10549 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
10550 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
10551 that it's obvious when extra autoconf machinery is being dragged in.
10552
10553 2002-10-18 Roland McGrath <roland@redhat.com>
10554
10555 * configure.in: Remove bogus echo included in
10556 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
10557 * configure: Regenerated.
10558
10559 2002-10-18 Jakub Jelinek <jakub@redhat.com>
10560
10561 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
10562 (statfs_filesize_max): New function.
10563 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
10564 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
10565 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
10566 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
10567 statfs_filesize_max.
10568 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
10569 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
10570 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
10571
10572 2002-10-17 Roland McGrath <roland@redhat.com>
10573
10574 * configure.in (MIG): Just AC_SUBST it here.
10575 * configure: Regenerated.
10576 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
10577 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
10578 * sysdeps/mach/configure: Regenerated.
10579
10580 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
10581 and AC_PROVIDE([_AS_CR_PREPARE]).
10582
10583 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
10584 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
10585
10586 * elf/dl-support.c: Move _dl_tls_* variables to ...
10587 * sysdeps/generic/libc-tls.c: ... here.
10588
10589 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
10590 allow IDX to be one past the current last slotinfo entry.
10591 (_dl_close): Pass IMAP->l_init_called for that parameter.
10592
10593 2002-10-07 Andreas Schwab <schwab@suse.de>
10594
10595 * aclocal.m4: Fix for autoconf 2.53.
10596 * configure.in: Likewise. Require autoconf 2.53.
10597
10598 2002-10-08 Richard Henderson <rth@redhat.com>
10599
10600 * soft-fp/op-4.h: Handle carry correctly in
10601 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
10602 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
10603 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
10604
10605 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
10606
10607 * configure.in: Compute completely-soft.
10608 * config.make.in: Make completely-soft available to sub-makes.
10609 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
10610 gcc-double-routines. Add sim-full.c. Add fenv_const and
10611 fe_nomask to libm-support.
10612 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
10613 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
10614 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
10615 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
10616 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
10617 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
10618 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
10619 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
10620 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
10621 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
10622 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
10623 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
10624 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
10625 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
10626 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
10627 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
10628 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
10629 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
10630 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
10631 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
10632 __sim_round_mode.
10633 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
10634 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
10635 FP_HANDLE_EXCEPTIONS.
10636 Define FP_ROUNDMODE.
10637 Redefine FP_* macros to correspond to the FE_* bit positions.
10638 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
10639 Define externs for __sim_exceptions, __sim_disabled_exceptions,
10640 __sim_round_mode, __simulate_exceptions.
10641 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
10642 * sysdeps/powerpc/bits/fenv.h: ...to here.
10643
10644 2002-10-06 Jakub Jelinek <jakub@redhat.com>
10645
10646 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
10647 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
10648 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
10649 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
10650 __builtin_expect.
10651
10652 2002-10-15 Jakub Jelinek <jakub@redhat.com>
10653
10654 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
10655 __libc_res_nsend): New prototypes.
10656 * resolv/res_query.c (QUERYSIZE): Define.
10657 (__libc_res_nquery): Renamed from res_nquery. Added answerp
10658 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
10659 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
10660 res_nsend, pass answerp.
10661 (res_nquery): Changed into wrapper around __libc_res_nquery.
10662 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
10663 argument. Call __libc_res_nquerydomain and __libc_res_nquery
10664 instead of the non-__libc_ variants, pass them answerp.
10665 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
10666 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
10667 Added answerp argument. Call __libc_res_nquery instead of
10668 res_nquery, pass answerp.
10669 (res_nquerydomain): Changed into wrapper around
10670 __libc_res_nquerydomain.
10671 * resolv/res_send.c: Include sys/ioctl.h.
10672 (MAXPACKET): Define.
10673 (send_vc): Change arguments. Reallocate answer buffer if it is
10674 too small.
10675 (send_dg): Likewise.
10676 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
10677 Reallocate answer buffer if it is too small and hooks are in use.
10678 Adjust calls to send_vc and send_dg.
10679 (res_nsend): Changed into wrapper around __libc_res_nsend.
10680 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
10681 just 1K answer buffer on the stack, use __libc_res_nsearch instead
10682 of res_nsearch.
10683 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
10684 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
10685 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
10686 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
10687 (gethostbyaddr): Similarly with __libc_res_nquery.
10688 * resolv/Versions (libresolv): Export __libc_res_nquery and
10689 __libc_res_nsearch at GLIBC_PRIVATE.
10690
10691 2002-10-17 Roland McGrath <roland@redhat.com>
10692
10693 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
10694 * configure: Regenerated.
10695
10696 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
10697 before performing the reloc, not after.
10698 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
10699
10700 2002-10-17 Ulrich Drepper <drepper@redhat.com>
10701
10702 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
10703 * locale/programs/linereader.c (lr_open): Likewise.
10704 * locale/programs/charmap-dir.c (charmap_open): Likewise.
10705 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
10706
10707 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
10708
10709 * posix/bug-regex11.c: Add a test case for the bug reported by
10710 Paolo Bonzini <bonzini@gnu.org>.
10711 * posix/regexec.c (sift_states_bkref): Use correct destination of
10712 the back reference.
10713
10714 2002-10-17 Roland McGrath <roland@redhat.com>
10715
10716 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
10717 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
10718 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
10719 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
10720 Call it after performing TPOFF relocs.
10721 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
10722 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
10723 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
10724
10725 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
10726 when closing a partially-initialized object.
10727
10728 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
10729 instead of _dl_fatal_printf when we see PT_TLS.
10730
10731 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
10732 instead of $(libof-$<).
10733
10734 2002-10-16 Roland McGrath <roland@redhat.com>
10735
10736 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
10737 instead of += to append, to be sure $(lib) gets expanded at defn time.
10738 (libof-$(cpp-src)): New variable, define this instead.
10739 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
10740 (lib): Don't use override.
10741 (CPPFLAGS-$(lib)): New variable, put -D's here.
10742 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
10743 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
10744 LIB found by $(libof-*) for basename, target, or source.
10745 * Makerules (CPPFLAGS-nonlib): New variable.
10746 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
10747 * locale/Makefile (lib): Likewise.
10748 * sunrpc/Makefile (lib): Likewise.
10749
10750 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
10751 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
10752 * sysdeps/unix/sysv/linux/pathconf.h: New file.
10753 (statfs_link_max): New function, guts from fpathconf.c.
10754 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
10755 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
10756 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
10757 to use the linux/pathconf.c code by #include rather than duplication.
10758 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
10759
10760 2002-10-16 Jakub Jelinek <jakub@redhat.com>
10761
10762 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
10763 Use __libc_errno only for libc itself.
10764
10765 2002-10-16 Andreas Jaeger <aj@suse.de>
10766
10767 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
10768
10769 2002-10-16 Ulrich Drepper <drepper@redhat.com>
10770
10771 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
10772 Use __libc_errno only for libc itself.
10773
10774 2002-10-15 Roland McGrath <roland@redhat.com>
10775 Jakub Jelinek <jakub@redhat.com>
10776
10777 * sysdeps/unix/sysv/linux/Makefile
10778 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
10779 sparc/Makefile to produce a bi-arch file as needed.
10780 That's now parameterized by the variable $(64bit-predefine).
10781 Use LC_ALL=C for `comm' commands in that rule.
10782 No longer conditional on [$(no_syscall_list_h)].
10783 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
10784 (64bit-predefine): New variable.
10785 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
10786 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
10787 * sysdeps/unix/sysv/linux/powerpc/Makefile
10788 (64bit-predefine): New variable.
10789
10790 2002-10-15 Roland McGrath <roland@redhat.com>
10791
10792 * sysdeps/unix/sysv/linux/Makefile
10793 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
10794
10795 * login/utmp-private.h: Declare __libc_utmp_lock.
10796 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
10797 and call __libc_utmp_jump_table functions directly, instead of using
10798 __setutent et al.
10799
10800 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
10801 * sysdeps/unix/sysv/linux/configure: Regenerated.
10802
10803 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
10804 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
10805 Use int32_t for ll_time.
10806 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
10807 Use int32_t instead of long int for ut_session.
10808 Use an anonymous struct with 32-bit fields for ut_tv.
10809 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
10810 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
10811 here as in utmp.h for `struct utmp'.
10812 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
10813 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
10814 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
10815 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
10816 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
10817 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
10818
10819 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
10820 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
10821 All the following files were identical or equivalent to it.
10822 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
10823 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
10824 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
10825 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
10826 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
10827 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
10828 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
10829 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
10830 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
10831 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
10832
10833 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
10834 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
10835 Other than the previously incorrect sign of msg_iovlen, this is a
10836 no-op on 32-bit platforms. On 64-bit platforms it makes this header
10837 match their layouts as well, so the following are now identical to it.
10838 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
10839 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
10840 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
10841 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
10842 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
10843
10844 2002-10-15 Ulrich Drepper <drepper@redhat.com>
10845
10846 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
10847 Define for 2.4+ kernels.
10848
10849 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
10850 are known to have the vfork syscall. Don't confuse the CPUs
10851 branch prediction unit by jumping to the return address.
10852
10853 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
10854 support for reiserfs and xfs.
10855
10856 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
10857 XFS link count.
10858 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
10859 and XFS_LINK_MAX.
10860 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
10861
10862 2002-10-16 Jakub Jelinek <jakub@redhat.com>
10863
10864 * include/libc-symbols.h (attribute_tls_model_ie): Define.
10865 * include/errno.h (errno): Define to __libc_errno in libc.so.
10866 Add attribute_tls_model_ie.
10867 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
10868 Add attribute_tls_model_ie.
10869 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
10870 attribute_tls_model_ie.
10871 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
10872 (h_errno): Define.
10873 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
10874 (_res): Define.
10875 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
10876 attribute_tls_model_ie.
10877 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
10878 __thread.
10879 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
10880 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
10881 __libc_errno in USE___THREAD case.
10882 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
10883 Likewise.
10884 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
10885 __attribute__((tls_model (""))).
10886 * configure: Rebuilt.
10887 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
10888
10889 2002-10-15 Ulrich Drepper <drepper@redhat.com>
10890
10891 * timezone/asia: Update from tzdata2002d.
10892 * timezone/australasia: Likewise.
10893 * timezone/iso3166.tab: Likewise.
10894 * timezone/southamerica: Likewise.
10895 * timezone/zone-tab: Likewise.
10896
10897 2002-10-15 Roland McGrath <roland@redhat.com>
10898
10899 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
10900 Adjust TCB pointer before calling free, so we get the whole block.
10901
10902 2002-10-14 Roland McGrath <roland@redhat.com>
10903
10904 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
10905 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
10906 extern using attribute_hidden instead of static, avoids warning.
10907
10908 2002-10-09 Jakub Jelinek <jakub@redhat.com>
10909
10910 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
10911 * sysdeps/unix/sysv/linux/configure: Rebuilt.
10912
10913 2002-10-14 Ulrich Drepper <drepper@redhat.com>
10914
10915 * po/sv.po: Update from translation team.
10916
10917 2002-10-12 H.J. Lu <hjl@gnu.org>
10918
10919 * sunrpc/thrsvc.c (PROCQUIT): New.
10920 (struct rpc_arg): New.
10921 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
10922 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
10923 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
10924 (main): Modified for struct rpc_arg *.
10925
10926 2002-10-14 Ulrich Drepper <drepper@redhat.com>
10927
10928 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
10929
10930 2002-10-14 Jakub Jelinek <jakub@redhat.com>
10931
10932 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
10933 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
10934 in ld.so even if __thread is supported.
10935
10936 2002-10-13 Jakub Jelinek <jakub@redhat.com>
10937
10938 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
10939 Add hack to prevent the compiler from clobbering the signal context.
10940 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
10941 Likewise.
10942 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
10943 Likewise.
10944
10945 2002-10-14 Andreas Jaeger <aj@suse.de>
10946
10947 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
10948 Guido Guenther <agx@sigxcpu.org>.
10949
10950 2002-10-14 Ulrich Drepper <drepper@redhat.com>
10951
10952 * po/sk.po: Update from translation team.
10953
10954 2002-09-26 Roland McGrath <roland@redhat.com>
10955
10956 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
10957 dynamic string tag.
10958 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
10959 DL_DST_LIB based on $(slibdir).
10960
10961 2002-10-13 Roland McGrath <roland@frob.com>
10962
10963 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
10964
10965 * sysdeps/mach/hurd/getresuid.c: New file.
10966 * sysdeps/mach/hurd/getresgid.c: New file.
10967 * sysdeps/mach/hurd/setresuid.c: New file.
10968 * sysdeps/mach/hurd/setresgid.c: New file.
10969
10970 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
10971 setresgid): Declare them.
10972 * NEWS: Mention it.
10973 * include/unistd.h
10974 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
10975 add libc_hidden_proto.
10976 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
10977 getresuid, getresgid, setresuid, setresgid here.
10978 * Versions.def (libc): Define GLIBC_2.3.2 set.
10979 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
10980 Add libc_hidden_def.
10981 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
10982 * sysdeps/generic/setresgid.c: New file.
10983 * sysdeps/generic/setresuid.c: New file.
10984 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
10985 (sysdep_routines): Don't add getresuid and getresgid here.
10986 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
10987 (sysdep_routines): Don't add setresuid and setresgid here.
10988 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
10989 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
10990 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
10991 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
10992 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
10993 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
10994 * posix/Makefile (routines): Add them all here instead.
10995 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
10996 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
10997 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
10998 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
10999 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
11000 [! __NR_setresuid]: Include generic file.
11001 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
11002 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
11003 [! __NR_setresuid]: Include generic file.
11004 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
11005 Caller is - now, not EXTRA.
11006 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
11007 (setresuid, setresgid, getresuid, getresgid): Likewise.
11008 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
11009 Add these calls here.
11010 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
11011 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
11012 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
11013 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
11014 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
11015 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
11016 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
11017 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
11018 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
11019
11020 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
11021 (sysdep_routines): Add setfsuid and setfsgid here.
11022 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
11023 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
11024 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
11025 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
11026 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11027 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
11028 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11029 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11030
11031 * hurd/errno.c: Renamed to ...
11032 * hurd/errno-loc.c: ... this.
11033 * hurd/Makefile (routines): errno -> errno-loc
11034
11035 2002-10-13 Ulrich Drepper <drepper@redhat.com>
11036
11037 * po/de.po: Update from translation team.
11038
11039 * MakeTAGS: Add -E flag to xgettext runs.
11040
11041 2002-10-12 Ulrich Drepper <drepper@redhat.com>
11042
11043 * po/fr.po: Update from translation team.
11044
11045 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
11046 Optimize a bit for use in glibc.
11047
11048 2002-10-12 Roland McGrath <roland@redhat.com>
11049
11050 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
11051 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
11052
11053 2002-10-12 Ulrich Drepper <drepper@redhat.com>
11054
11055 * po/sv.po: Update from translation team.
11056
11057 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
11058
11059 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
11060 OP_CONTEXT_NODE.
11061 (regfree): Likewise.
11062 (create_initial_state): Likewise.
11063 (analyze): Remove the substitutions which became useless.
11064 (calc_first): Likewise.
11065 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
11066 epsilon destination.
11067 (duplicate_node_closure): New function.
11068 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
11069 (calc_inveclosure): Likewise.
11070 (calc_eclosure): Likewise.
11071 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
11072 direct invocation of duplicate_node.
11073 (parse): Don't use comma operator in the return to avoid compiler
11074 warning.
11075 (parse_reg_exp): Likewise.
11076 (parse_branch): Likewise.
11077 (parse_expression): Likewise.
11078 (parse_sub_exp): Likewise.
11079 (parse_dup_op): Likewise.
11080 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
11081 which became useless.
11082 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
11083 (create_cd_newstate): Likewise.
11084 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
11085 (re_token_t): Likewise.
11086 (re_dfa_t): Likewise.
11087 (re_node_set_remove): New macro.
11088 * posix/regexec.c (check_matching): Remove the handling
11089 OP_CONTEXT_NODE.
11090 (check_halt_node_context): Likewise.
11091 (proceed_next_node): Likewise.
11092 (pop_fail_stack): Fix the memory leak.
11093 (set_regs): Likewise.
11094 (free_fail_stack_return): New function.
11095 (sift_states_backward): Fix the memory leak. Remove the handling
11096 OP_CONTEXT_NODE.
11097 (update_cur_sifted_state): Append some if clause to avoid redundant
11098 call.
11099 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
11100 back reference.
11101 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
11102 (check_subexp_limits): Likewise.
11103 (search_subexp): Likewise.
11104 (sift_states_bkref): Likewise.
11105 (transit_state_mb): Likewise.
11106 (transit_state_bkref_loop): Likewise.
11107 (transit_state_bkref_loop): Likewise.
11108 (group_nodes_into_DFAstates): Likewise.
11109 (check_node_accept): Likewise.
11110 (sift_ctx_init): Add initializing.
11111
11112 2002-10-12 Ulrich Drepper <drepper@redhat.com>
11113
11114 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
11115 __builtin_expect.
11116
11117 2002-10-11 Ulrich Drepper <drepper@redhat.com>
11118
11119 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
11120 duplicated variable c.
11121
11122 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
11123 if possible.
11124
11125 * sysdeps/unix/sysv/linux/i386/sysdep.h
11126 (INTERNAL_SYSCALL_ERROR_P): New define.
11127 (INTERNAL_SYSCALL_ERRNO): Likewise.
11128
11129 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
11130 Add hack to prevent the compiler from clobbering the signal context.
11131
11132 2002-10-11 Roland McGrath <roland@redhat.com>
11133
11134 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
11135 Fix typos.
11136
11137 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
11138 * sysdeps/sh/dl-lookupcfg.h: File removed.
11139 * sysdeps/i386/dl-lookupcfg.h: File removed.
11140
11141 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
11142 missing labels and ; from last change.
11143
11144 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
11145 number literals, so they are doubles instead of ints.
11146
11147 2002-10-09 Roland McGrath <roland@redhat.com>
11148
11149 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
11150 changed from [USE_TLS && HAVE___THREAD].
11151
11152 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
11153 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
11154 * sysdeps/x86_64/dl-machine.h
11155 (elf_machine_type_class, elf_machine_rela): Likewise.
11156 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
11157 Likewise.
11158
11159 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
11160 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
11161 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
11162
11163 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
11164 instead of ___tls_get_addr.
11165 (___tls_get_addr_internal): Add attribute_hidden to decl.
11166
11167 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
11168 _dl_error_catch_tsd.
11169 * elf/rtld.c (startup_error_tsd): New function.
11170 (dl_main): Point _dl_error_catch_tsd at that.
11171 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
11172 use new function pointer instead.
11173 * elf/dl-tsd.c: New file.
11174 * elf/Makefile (routines): Add it.
11175
11176 2002-10-07 Roland McGrath <roland@redhat.com>
11177
11178 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
11179 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
11180 take _dl_load_lock around calling __writev.
11181
11182 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
11183 (INLINE_SYSCALL): Use that.
11184
11185 * sysdeps/generic/dl-sysdep.h: New file.
11186 * sysdeps/mach/hurd/dl-sysdep.h: New file.
11187 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
11188 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
11189 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
11190 access it directly.
11191 * elf/dl-minimal.c (__errno_location): Removed.
11192 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
11193 Use GOTOFF access for errno.
11194 * sysdeps/unix/sysv/linux/i386/sysdep.h
11195 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
11196
11197 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
11198 Use PC-relative access for errno.
11199 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
11200 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
11201
11202 * include/tls.h: New file.
11203 (USE___THREAD): New macro.
11204 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
11205 libc or libpthread.
11206 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
11207 changed from [USE_TLS && HAVE___THREAD].
11208 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11209 * sysdeps/unix/i386/sysdep.S: Likewise.
11210 * sysdeps/unix/x86_64/sysdep.S: Likewise.
11211 * include/errno.h: Likewise.
11212 * include/netdb.h: Likewise.
11213 * include/resolv.h: Likewise.
11214
11215 * sysdeps/generic/errno.c: New file.
11216 * csu/Makefile (aux): New variable, list errno.
11217 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
11218 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
11219 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
11220 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
11221 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
11222 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
11223 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
11224 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
11225 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
11226 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
11227 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
11228 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
11229 * sysdeps/unix/alpha/sysdep.S: Likewise.
11230 * sysdeps/generic/start.c: Likewise.
11231 * sysdeps/unix/start.c: Likewise.
11232 * sysdeps/unix/arm/start.c: Likewise.
11233 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
11234 * sysdeps/unix/sparc/start.c: Likewise.
11235 * sysdeps/unix/sysv/irix4/start.c: Likewise.
11236 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
11237
11238 * manual/search.texi (Tree Search Function, Hash Search Function):
11239 Mention search.h clearly.
11240
11241 2002-10-05 Roland McGrath <roland@redhat.com>
11242
11243 * elf/dl-fxstat64.c: File removed.
11244 * elf/dl-xstat64.c: File removed.
11245 * elf/Makefile (rtld-routines): Remove them.
11246 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
11247 Instead, use strong_alias instead of versioned_symbol in the
11248 !SHLIB_COMPAT case.
11249 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
11250 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
11251
11252 * include/shlib-compat.h
11253 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
11254 [! NOT_IN_libc] (IS_IN_libc): Define it.
11255 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
11256 * elf/Makefile (CPPFLAGS-.os): Likewise.
11257
11258 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
11259 Return the status instead of calling exit.
11260
11261 * Makeconfig (CFLAGS): Prepend -std=gnu99.
11262 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
11263 Remove superfluous rm command, whose @ plus make bugs hid
11264 all these commands from the make output.
11265
11266 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
11267 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
11268 Use that file's contents instead of literal echo's for the prologue.
11269 * include/features.h: Include <gnu/stubs.h> unconditionally.
11270 * include/gnu/stubs.h: New file.
11271
11272 2002-09-30 Roland McGrath <roland@redhat.com>
11273
11274 * elf/rtld-Rules: New file.
11275 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
11276 $(objpfx)rtld-libc.a): New targets.
11277 (generated): Add them.
11278 (reloc-link): Remove -o $@ from the variable.
11279 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
11280 (distribute): Add rtld-Rules.
11281 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
11282 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
11283 (common-mostlyclean, common-clean): Clean up rtld-* files.
11284 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
11285
11286 2003-05-20 Jakub Jelinek <jakub@redhat.com>
11287
11288 * elf/dynamic-link.h (elf_get_dynamic_info): Add temp argument.
11289 If temp != NULL, copy dynamic entries which need relocation to temp
11290 array before relocating.
11291 (DL_RO_DYN_TEMP_CNT): Define.
11292 * elf/dl-load.c (_dl_map_object_from_fd): Adjust caller.
11293 * elf/rtld.c (_dl_start): Likewise.
11294 (dl_main): Likewise. Add dyn_temp static variable.
11295
11296 2002-10-11 Roland McGrath <roland@redhat.com>
11297
11298 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
11299 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
11300
11301 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
11302 proper set of no-op insn prefixes.
11303
11304 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
11305
11306 2002-10-11 Ulrich Drepper <drepper@redhat.com>
11307
11308 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
11309 __pthread_kill_other_threads_np.
11310
11311 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
11312
11313 2002-10-08 Roland McGrath <roland@redhat.com>
11314
11315 * locale/newlocale.c (__newlocale): If setting all categories to "C",
11316 just return &_nl_C_locobj instead of copying it.
11317 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
11318 * locale/duplocale.c (__duplocale): Likewise.
11319
11320 2002-10-07 Roland McGrath <roland@frob.com>
11321
11322 * config.h.in (HAVE_I386_SET_GDT): New #undef.
11323 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
11324 * sysdeps/mach/configure: Regenerated.
11325
11326 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11327
11328 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
11329 Add all necessary register outputs for syscall-clobbered registers.
11330
11331 2002-10-02 David Mosberger <davidm@hpl.hp.com>
11332
11333 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
11334 Itanium 2 (and Itanium).
11335 Fix unwind directives and make it fit in 80 columns.
11336 * sysdeps/ia64/memset.S: Likewise.
11337 * sysdeps/ia64/memcpy.S: Likewise.
11338 Move jump table to .rodata section.
11339
11340 2002-10-03 Roland McGrath <roland@frob.com>
11341
11342 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
11343 clobbers to asm.
11344
11345 2002-10-10 Andreas Jaeger <aj@suse.de>
11346
11347 * sysdeps/x86_64/_mcount.S: Restore correct registers.
11348
11349 2002-10-10 Ulrich Drepper <drepper@redhat.com>
11350
11351 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
11352
11353 2002-10-09 Ulrich Drepper <drepper@redhat.com>
11354
11355 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
11356 _dl_allocate_tls_init. Add rtld_hidden_proto.
11357 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
11358 rtld_hidden_def.
11359 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
11360
11361 * version.h (VERSION): Bump to 2.3.1.
11362
11363 * Make-dist: Add back one of the tar invocations removed before.
11364
11365 * stdlib/Makefile (distribute): Add allocalim.h.
11366
11367 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
11368 (__libc_tsd_address): Use correct variable name.
11369 Patch by Stefan Jones <stefan.jones@multigig.com>.
11370
11371 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
11372 Reported by edwardsg@sgi.com [PR libc/4678].
11373
11374 * Versions.def (libc): Add GLIBC_2.3.1.
11375 (libpthread): Add GLIBC_2.3.1.
11376
11377 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
11378 and __sigtimedwait.
11379 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
11380 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
11381 libc_hidden_def.
11382 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
11383 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
11384
11385 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
11386 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
11387 and make old name an alias.
11388 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
11389 and make old name an alias.
11390 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
11391 __libc_msgsnd.
11392
11393 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
11394 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
11395 __libc_writev.
11396 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
11397 old name an alias.
11398 * sysdeps/posix/readv.c: Likewise
11399 * sysdeps/unix/sysv/aix/readv.c: Likewise.
11400 * sysdeps/unix/sysv/linux/readv.c: Likewise.
11401 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
11402 old name an alias.
11403 * sysdeps/posix/writev.c: Likewise
11404 * sysdeps/unix/sysv/aix/writev.c: Likewise.
11405 * sysdeps/unix/sysv/linux/writev.c: Likewise.
11406
11407 * include/sys/wait.h: Declare __waitid.
11408 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
11409 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
11410 name an alias.
11411 * sysdeps/posix/waitid.c: Likewise.
11412 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
11413
11414 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
11415
11416 2002-10-07 Jakub Jelinek <jakub@redhat.com>
11417
11418 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
11419 prototypes.
11420 (__MAX_ALLOCA_CUTOFF): Define.
11421 Include allocalim.h.
11422 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
11423 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
11424 host_buffer depending on __libc_use_alloca.
11425 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
11426 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
11427 net_buffer depending on __libc_use_alloca.
11428 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
11429 buf depending on __libc_use_alloca.
11430 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
11431 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
11432 instead of hardcoded constants.
11433 Pass proper size argument to alloca and compute end for wide char
11434 version.
11435 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
11436 instead of hardcoded constants.
11437 * string/strcoll.c (strcoll): Likewise.
11438 * string/strxfrm.c (strxfrm): Likewise.
11439 * sysdeps/posix/readv.c (__readv): Likewise.
11440 * sysdeps/posix/writev.c (__writev): Likewise.
11441 * sysdeps/generic/allocalim.h: New file.
11442
11443 2002-10-08 Roland McGrath <roland@redhat.com>
11444
11445 * configure.in (aux_missing warning): Change "too old" to
11446 "incompatible versions", since for autoconf it's "too new" right now.
11447 * configure: Regenerated.
11448
11449 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
11450 one found doesn't work on our configure.in.
11451 * configure: Regenerated.
11452 * config.make.in (AUTOCONF): New substituted variable.
11453 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
11454 (autoconf-it): ... here, use that instead of defining conditionally.
11455 Use $(AUTOCONF) instead of literal autoconf.
11456 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
11457 with this condition.
11458 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
11459
11460 2002-10-08 Ulrich Drepper <drepper@redhat.com>
11461
11462 * Make-dist (dist): Cleanup a bit. We are not interested in the
11463 14 char filename limit anymore. Remove intermediate files and
11464 symlinks.
11465
11466 2002-10-05 Ulrich Drepper <drepper@redhat.com>
11467
11468 * po/sk.po: Update from translation team.
11469 * po/tr.po: Likewise.
11470 * po/gl.po: Likewise.
11471
11472 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
11473
11474 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
11475
11476 2002-10-03 Ulrich Drepper <drepper@redhat.com>
11477
11478 * version.h (RELEASE): Change to stable.
11479
11480 2002-10-03 Jakub Jelinek <jakub@redhat.com>
11481
11482 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
11483 __syscall_exit_group): New prototypes.
11484
11485 2002-10-03 Ulrich Drepper <drepper@redhat.com>
11486
11487 * glibc 2.3 released.
11488
11489
11490 See ChangeLog.13 for earlier changes.