]> sourceware.org Git - glibc.git/blame - ChangeLog
Update.
[glibc.git] / ChangeLog
CommitLineData
ea493b56
UD
12003-08-27 Ulrich Drepper <drepper@redhat.com>
2
3 * sysdeps/x86_64/fpu/bits/mathinline.h: Define __signbitf,
4 __signbit, and __signbitl inline functions.
5
6 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Use
7 HIDDEN_JUMPTARGET instead of JUMPTARGET to call exit().
8
9 * sysdeps/x86_64/bsd-_setjmp.S [PIC]: Jump to __GI___sigsetjmp.
10 * sysdeps/x86_64/setjmp.S: Add libc_hidden_def for __sigsetjmp.
11
f8df79db
UD
122003-08-27 Jakub Jelinek <jakub@redhat.com>
13
14 * inet/inet_mkadr.c (inet_makeaddr): Optimize.
15
577822c0
UD
162003-08-27 Ulrich Drepper <drepper@redhat.com>
17
18 * include/stdio.h: Add declarations for __builtin_fwrite and
19 __builtin_fwrite_unlocked.
20
45c24c06
UD
212003-08-27 Jakub Jelinek <jakub@redhat.com>
22
23 * sysdeps/unix/opendir.c (__opendir): Make sure even struct dirent64
24 fits into allocation. Add padding on 32-bit arches so that
25 dirp->data is enough aligned for struct dirent64.
26 Avoid clearing of the buffer, just clear DIR structure.
27
5556fc6a
UD
282003-08-26 Ulrich Drepper <drepper@redhat.com>
29
30 * nss/nsswitch.c: Add libc_hidden_def for __nss_lookup_function.
31 * nss/nsswitch.h: Add libc_hidden_proto for __nss_lookup_function.
32
d54869a9
UD
332003-08-26 Steven Munroe <sjmunroe@us.ibm.com>
34
35 * sysdeps/powerpc/powerpc64/elf/Makefile: New file.
36
a49daee2
UD
372003-08-26 Jakub Jelinek <jakub@redhat.com>
38
39 * login/programs/utmpdump.c (print_entry): Cast tv_usec to long
40 to match format string.
41 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (union semun): Add
42 __old_buf.
43 (__new_semctl): Shut up warning.
44 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
45 (_dl_string_hwcap): Add __attribute__ ((always_inline)).
46
2fe98a4a
UD
472003-08-26 Jakub Jelinek <jakub@redhat.com>
48
49 * elf/ldconfig.c (search_dir): When checking for GNU-style .so
50 link file use the real file name, not the resolved name we got by
51 following the symlinks.
52
41c26b68
UD
532003-08-25 Ulrich Drepper <drepper@redhat.com>
54
55 * libio/oldfileops.c (_IO_old_file_init): Initialize _mode field
56 if the object size is large enough.
57
82d8607d
UD
582003-08-25 Jakub Jelinek <jakub@redhat.com>
59
60 * elf/ldconfig.c (search_dir): Treat symlink as regular file
61 if it won't point to itself unless it is .so symlink for the linker.
62
1c8c5277
UD
632003-08-25 Ulrich Drepper <drepper@redhat.com>
64
65 * libio/libio.h (_IO_fwide): In the mode==0 optimization, don't
66 use _mode if _IO_fwide_maybe_incompatible.
67 * libio/iofwide.c (_IO_fwide): Move the test for mode == 0 after
68 the compatibility test.
69
0b9225cd
UD
702003-08-25 Jakub Jelinek <jakub@redhat.com>
71
72 * elf/cache.c (save_cache): Don't write beyond end of file_entries
73 buffer.
74 Duplicate last old cache entry if the count would be odd.
75
ecc791d3
AJ
762003-08-25 Andreas Jaeger <aj@suse.de>
77
78 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Cast arguments of
79 __LONG_LONG_PAIR to long.
80
47ceb39d
UD
812003-08-25 Philip Blundell <philb@gnu.org>
82
83 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define.
84 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
85
544f3cdf
UD
862003-08-18 Alfred M. Szmidt <ams@kemisten.nu>
87
88 * sysdeps/generic/bits/libc-lock.h (__libc_cleanup_pop): Redefine
89 and use __libc_cleanup_region_end instead.
90
395412a0
UD
912003-08-25 Ulrich Drepper <drepper@redhat.com>
92
93 * elf/ldconfig.c (search_dir): Revert patch of 2003-7-21.
94
089d05d5
UD
952003-08-22 Ulrich Drepper <drepper@redhat.com>
96
97 * io/fcntl.h (posix_fallocate): Change type of third parameter to
98 off_t.
99 (posix_fallocate64): Change type of third parameter to off64_t.
100 * sysdeps/generic/posix_fallocate.c: Adjust for type change.
101 * sysdeps/posix/posix_fallocate.c: Likewise.
102 * sysdeps/generic/posix_fallocate64.c: Likewise.
103 * sysdeps/posix/posix_fallocate64.c: Likewise. Add compatibility
104 code for 32-bit platforms.
105 * sysdeps/unix/sysv/linux/i386/Versions: Add new version for
106 posix_fallocate64.
107 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Likewise.
108 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
109 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
110
75f2e0d1
UD
1112003-08-19 Ulrich Drepper <drepper@redhat.com>
112
87865838
UD
113 * string/bits/string2.h (__STRING2_COPY_TYPE): Add attribute to
114 the type, not to name.
115
5dfe6778
UD
116 * stdio-common/test-vfprintf.c (main): Don't write temporary file
117 into source directory.
118
9a3a9dd8
UD
119 * malloc/malloc.c (_int_free): Add cheap test for some invalid
120 block sizes.
121
75f2e0d1
UD
122 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo in
123 syscall name.
124
ee4e5a3d
UD
1252003-08-18 Ulrich Drepper <drepper@redhat.com>
126
127 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Fold EISDIR error
128 into EINVAL.
129
ee2f68f2
RM
1302003-08-18 H.J. Lu <hongjiu.lu@intel.com>
131
132 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Use _dl_reloc_bad_type.
133 (elf_machine_lazy_rel): Likewise.
134
0f98eee5
UD
1352003-08-18 Art Haas <ahaas@airmail.net>
136
137 * malloc/malloc.h: Remove unneeded ';' where closing the C++
138 extern block.
139
3f3aaac1
UD
1402003-08-18 Ulrich Drepper <drepper@redhat.com>
141
142 * sysdeps/ia64/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Support
143 loading big binaries where @gprel(sym) cannot be handled in 'add'
144 but instead has to be used with 'movl'.
145
5c99719c
AJ
1462003-08-17 Juergen Kreileder <jk@blackdown.de>
147 Andreas Jaeger <aj@suse.de>
148
149 * sysdeps/x86_64/bits/byteswap.h: New file.
995fe06d 150
8269c5f1
AJ
1512003-08-17 Andreas Jaeger <aj@suse.de>
152
995fe06d
AJ
153 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo.
154
137ffcdc
UD
1552003-08-16 Jakub Jelinek <jakub@redhat.com>
156
157 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_ERRVAL,
158 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
159 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_ERRVAL,
160 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
161 * sysdeps/unix/alpha/sysdep.h (PSEUDO_ERRVAL,
162 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
163 * sysdeps/unix/mips/sysdep.h (PSEUDO_ERRVAL,
164 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
165 * sysdeps/unix/sparc/sysdep.h (PSEUDO_ERRVAL,
166 ret_ERRVAL): Define.
167 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_ERRVAL,
168 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
169 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO_ERRVAL,
170 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
171 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO_ERRVAL):
172 Define.
173 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_ERRVAL,
174 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
175 * sysdeps/unix/sysdep.h (PSEUDO_END_ERRVAL): Define.
176
177 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64,
178 posix_fadvise64_64): Remove.
179 * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64): Add
180 V flag.
181 * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64):
182 Likewise.
183 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
184 (posix_fadvise64): Likewise.
185 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
186 (posix_fadvise64): Likewise.
187 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
188 (posix_fadvise64): Likewise.
189 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64):
190 Likewise.
191 * sysdeps/unix/sysv/linux/i386/posix_fadvise64_64.S: Moved to...
192 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: ...here.
193 (__posix_fadvise64_l64): Fix a typo in fadvise64 syscall invocation.
194 (__posix_fadvise64_l32): New function.
195 * sysdeps/unix/sysv/linux/i386/Makefile: Revert last change.
196 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Export
197 posix_fadvise64@@GLIBC_2.3.3.
198 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
199 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
200 * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Return
201 error value.
202 * sysdeps/unix/sysv/linux/posix_fadvise64.c: New file.
203
204 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
205 (SYSCALL_ERROR_HANDLER): Use TLS errno/__libc_errno if USE___THREAD.
206
2072003-08-15 Jakub Jelinek <jakub@redhat.com>
208
209 * sysdeps/sparc/sparc32/dl-machine.h (WEAKADDR): Remove.
210 (elf_machine_matches_host): Remove weak extern stuff.
211 Use GL(dl_hwcap) unconditionally and GL(dl_hwcap_mask) if SHARED.
212 (elf_machine_runtime_setup, sparc_fixup_plt): Remove weak extern
213 stuff. Use GL(dl_hwcap) unconditionally.
214
36a8cf1e
UD
2152003-08-16 Alan Modra <amodra@bigpond.net.au>
216
217 * sysdeps/powerpc/powerpc64/elf/start.S: Add a nop after
218 __libc_start_main branch.
219
878edcef
AJ
2202003-08-16 Jakub Jelinek <jakub@redhat.com>,
221 Andreas Jaeger <aj@suse.de>
222
223 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS
224 instead of setting errno.
225 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
226
4a4ac20b
AJ
2272003-08-16 Andreas Jaeger <aj@suse.de>
228
229 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype.
230 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
231
bfef9264
UD
2322003-08-15 Ulrich Drepper <drepper@redhat.com>
233
bfef9264
UD
234 * io/fcntl.h (posix_fadvise64): Change type of third parameter to
235 off_t.
236 * sysdeps/unix/sysv/linux/posix_fadvise.c: Adjust definition.
237 * sysdeps/unix/make-syscalls.sh: Recognize V prefix to the parameter
238 description indicating the error value is returned, not -1.
bfef9264
UD
239 * sysdeps/unix/sysv/linux/kernel-features.h: Add definition of
240 __ASSUME_FADVISE64_64_SYSCALL.
241 * sysdeps/unix/sysv/linux/syscalls.list: Don't define madvise and
242 posix_madvise in one file. Have posix_madvise defined with error
243 value returned.
244 Define posix_fadvise64_64 entry. Add version info to posix_fadvise64
245 entry.
bfef9264
UD
246 * sysdeps/unix/sysv/linux/i386/posix_fadvise.S: New file.
247 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_ERRVAL,
248 PSEUDO_END_ERRVAL, and ret_ERRVAL.
249 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
250 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
f38afd78
UD
251 * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.3.3]: Add
252 posix_fadvise64.
bfef9264
UD
253
254 * posix/Makefile (routines): Add posix_madvise.
255 * sysdeps/generic/madvise.c: Don't define posix_madvise.
256 * sysdeps/generic/posix_madvise.c: New file.
257 * sysdeps/unix/sysv/aix/posix_madvise.c: New file.
f38afd78
UD
258 * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (subdir_routines):
259 Add posix_fadvise64_64.
bfef9264 260
20d9b98f
UD
2612003-08-15 Jakub Jelinek <jakub@redhat.com>
262
263 * assert/assert.h (assert_perror): Use __builtin_expect for gcc >=
264 3.0, not for !gcc or gcc < 3.0.
265
d57a3f0e
UD
2662003-08-11 Carlos O'Donell <carlos@baldric.uwo.ca>
267
268 * dlfcn/default.c (main): Cast dlsym loaded value to same type as main.
269 Address passed to test_in_mod1 and test_in_mod2 without casting.
270 * dlfcn/defaultmod1.c: Change prototype of test_in_mod1.
271 (test_in_mod1): Cast dlsym loaded value to same type as mainp.
272 * dlfcn/defaultmod2.c: Change prototype of test_in_mod2.
273 (test_in_mod2): Cast dlsym loaded value to same type as mainp.
274
2752003-08-15 Jakub Jelinek <jakub@redhat.com>
276
277 * sysdeps/sparc/sparc32/elf/configure.in (libc_cv_sparc32_tls):
278 Change quotes before using [].
279
280 * sysdeps/unix/sysv/linux/sparc/sys/user.h: New file.
281
282 * sysdeps/sparc/sparc32/bits/atomic.h (__sparc32_atomic_lock):
283 Renamed to...
284 (__sparc32_atomic_locks): ...this. Change into 64-byte array.
285 (__sparc32_atomic_do_lock, __sparc32_atomic_do_unlock): Add addr
286 argument. Select one of 64 locks from address bits.
287 (atomic_compare_and_exchange_val_acq,
288 atomic_compare_and_exchange_bool_acq): Pass memory address to
289 __sparc32_atomic_do_{,un}lock.
290
41d70e88
UD
2912003-08-14 Ulrich Drepper <drepper@redhat.com>
292
9b0a6e96
UD
293 * assert/assert.h (assert): Use !! in front of expression to allow
294 use of pointers.
295
41d70e88
UD
296 * iconvdata/cp932.c: Fixed checking of a few border of code areas.
297 Changed conversion of JIS X 0201 from using a table to calculating.
298 * iconvdata/euc-jp-ms.c: Fixed conversion table and rewrote
299 conversion routine. Changed CHARSET_NAME definition from EUCJP-MS to
300 EUC-JP-MS.
301 * iconvdata/tst-tables.sh: Add CP932 and EUC-JP-MS.
302 * iconvdata/CP932.irreversible: New file.
303 * iconvdata/EUC-JP-MS.irreversible: New file.
304 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
305
b61c8aba
UD
3062003-08-13 Ulrich Drepper <drepper@redhat.com>
307
308 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add time syscall.
309
310 * elf/Makefile: Use LC_ALL=C in a few cases where we call external
311 text processing tools.
312
313 * sysdeps/pthread/aio_misc.h (struct waitlist): Don't add caller_pid
314 element unless BROKEN_THREAD_SIGNALS is defined.
315 (struct requestlist): Likewise.
316 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Don't fill in
317 caller_pid of new request unless BROKEN_THREAD_SIGNALS is defined.
318 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
319 * sysdeps/pthread/aio_notify.c (__aio_notify_only): Remove caller_pid
320 parameter unless BROKEN_THREAD_SIGNALS is defined. Adjust callers.
321 Pass current PID to __aio_sigqueue.
322 * sysdeps/pthread/lio_listio.c (lio_listio): Adjust __aio_notify_only
323 call. Don't initialize caller_pid field of waitlist element.
324
bbdef797
UD
3252003-08-12 Jakub Jelinek <jakub@redhat.com>
326
327 * libio/libioP.h (_IO_vtable_offset): Define.
328 * libio/freopen.c (freopen): Use it.
329 * libio/ioputs.c (_IO_puts): Likewise.
330 * libio/freopen64.c (freopen64): Likewise.
331 * libio/genops.c (__underflow, __uflow, _IO_flush_all_lockp):
332 Likewise.
333 * libio/iofclose.c (_IO_new_fclose): Likewise.
334 * libio/iofputs.c (_IO_fputs): Likewise.
335 * libio/ioftell.c (_IO_ftell): Likewise.
336 * libio/iofwrite.c (_IO_fwrite): Likewise.
337 * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
338 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
339 * stdio-common/vfprintf.c (ORIENT, vfprintf): Likewise.
340 * stdio-common/vfscanf.c (ORIENT): Likewise.
341
ca91553a
UD
3422003-08-11 Ulrich Drepper <drepper@redhat.com>
343
344 * assert/assert.h: Use __builtin_expect in assert and
345 assert_perror definitions if possible.
346
334fcf2a
UD
3472003-08-07 Jakub Jelinek <jakub@redhat.com>
348
349 * sysdeps/generic/ldsodefs.h (_rtld_global): Add
350 _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
351 * elf/rtld.c (rtld_lock_default_lock_recursive,
352 rtld_lock_default_unlock_recursive): New functions.
353 (dl_main): Initialize _dl_rtld_lock_recursive and
354 _dl_rtld_unlock_recursive.
355
3562003-08-05 Jakub Jelinek <jakub@redhat.com>
357
358 * elf/ldconfig.c (main): Append SLIBDIR and LIBDIR to
359 config_file directories instead of prepending.
360
0cbc6c4e
UD
3612003-08-02 Ulrich Drepper <drepper@redhat.com>
362
363 * sysdeps/unix/sysv/linux/kernel-features.h: Define
364 __ASSUME_CLONE_STOPPED.
365
20eb7970
UD
3662003-08-01 Ulrich Drepper <drepper@redhat.com>
367
368 * sysdeps/generic/bits/libc-lock.h
369 (__libc_cleanup_push,__libc_cleanup_pop): Define even here.
370
16018ac7
RM
3712003-08-01 Roland McGrath <roland@frob.com>
372
373 * sysdeps/mach/hurd/getdents.c: Just use sysdeps/generic/getdents.c.
374
d347a4ab
UD
3752003-07-31 Jakub Jelinek <jakub@redhat.com>
376
973d66e4
UD
377 * sysdeps/generic/bits/types.h (__ssize_t): Use __SSIZE_T_TYPE
378 instead of __SWORD_TYPE.
379 * sysdeps/generic/bits/typesizes.h (__SSIZE_T_TYPE): Define.
380 * sysdeps/mach/hurd/bits/typesizes.h (__SSIZE_T_TYPE): Define.
381 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h (__SSIZE_T_TYPE):
382 Define.
383 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__SSIZE_T_TYPE):
384 Define.
385 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__SSIZE_T_TYPE):
386 Define.
387 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New file.
388
d347a4ab
UD
389 * dlfcn/dlerror.c (once): New.
390 (dlerror): Call __libc_once.
391 (_dlerror_run): Remove once.
392
d347a4ab
UD
393 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
394 Sync with 2.5.7 and 2.5.73 kernel changes.
395
d347a4ab
UD
396 * dlfcn/eval.c (funcall): Add noinline attribute to shut up warnings.
397 * elf/rtld.c (dl_main): Cast ElfW(Addr) arguments with %Zx/%Zd
398 formats to size_t.
399 * elf/dl-lookup.c (_dl_debug_bindings): Likewise.
400 * elf/tst-tls6.c (do_test): Use %zd format for l_tls_modid.
401 * elf/tst-tls8.c (do_test): Use %zd format for modid1 and modid2.
402 * gmon/tst-sprofil.c (main): Add parens to shut up warning.
403 * iconv/tst-iconv3.c (main): Use %td instead of %zd for pointer
404 difference argument.
405 * stdio-common/tst-wc-printf.c (main): Cast arguments with %C
406 format to wint_t.
407 * stdlib/tst-limits.c (main): For WORD_BIT and LONG_BIT, use
408 %d format and cast expected value to int.
409 * sysdeps/generic/libc-start.c (STATIC): Add
410 __attribute__((always_inline) if LIBC_START_MAIN is already defined.
411 * sysdeps/powerpc/fpu/w_sqrt.c (a_nan, a_inf): Change from uint32_t
412 to ieee_float_shape_type.
413 (__sqrt): Avoid type punning.
414 * sysdeps/powerpc/fpu/w_sqrtf.c (a_nan, a_inf): Change from uint32_t
415 to ieee_float_shape_type.
416 (__sqrtf): Avoid type punning.
417 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Don't define
418 refsym if in dl-conflict.c.
419 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
420 * sysdeps/unix/sysv/linux/i386/semctl.c (union semun): Add __old_buf.
421 (__new_semctl): Shut up warning.
422 * sysdeps/unix/sysv/linux/semctl.c (union semun): Add __old_buf.
423 (__new_semctl): Shut up warning.
424 * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Wrap long lines.
425 Change old into union of __old_shmid_ds and __old_shminfo structs.
426 Adjust all users.
427 * wcsmbs/wcsmbs-tst1.c (main): Cast arguments with %C format to wint_t.
428
d347a4ab
UD
429 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Fix actime and
430 modtime computation.
431 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
432 * sysdeps/posix/utimes.c (__utimes): Likewise.
433
adc12574
UD
4342003-07-30 Jakub Jelinek <jakub@redhat.com>
435
436 * elf/dl-reloc.c (_dl_allocate_static_tls): Don't return any value,
437 call dl_signal_error directly. If already relocated, call
438 GL(dl_init_static_tls) directly, otherwise queue it for later.
439 (CHECK_STATIC_TLS): Undo 2003-07-24 change.
440 * elf/rtld.c (dl_main): Initialize GL(dl_init_static_tls).
441 * elf/dl-open.c (dl_open_worker): Call GL_dl_init_static_tls
442 for all static TLS initializations delayed in _dl_allocate_static_tls.
443 * elf/dl-support.c (_dl_init_static_tls): New variable.
444 * include/link.h (struct link_map): Add l_need_tls_init.
445 * sysdeps/generic/ldsodefs.h (_rtld_global): Add _dl_init_static_tls.
446 (_dl_nothread_init_static_tls): New prototype.
447 (_dl_allocate_static_tls): Adjust prototype.
448
449 * elf/tls-macros.h (VAR_INT_DEF): Add alignment directive.
450
87d254a7
AO
4512003-07-31 Alexandre Oliva <aoliva@redhat.com>
452
453 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
454 elf_machine_rel_relative, elf_machine_rela_relative): Don't assume
455 reloc_addr is aligned.
456 * sysdeps/alpha/dl-machine.h (elf_machine_rela,
457 elf_machine_rela_relative): Adjust.
458 * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela,
459 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
460 * sysdeps/cris/dl-machine.h (elf_machine_rela,
461 elf_machine_rela_relative): Adjust.
462 * sysdeps/hppa/dl-machine.h (elf_machine_rela,
463 elf_machine_rela_relative): Adjust.
464 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela,
465 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
466 * sysdeps/ia64/dl-machine.h (elf_machine_rela,
467 elf_machine_rela_relative): Adjust.
468 * sysdeps/m68k/dl-machine.h (elf_machine_rela,
469 elf_machine_rela_relative): Adjust.
470 * sysdeps/mips/dl-machine.h (elf_machine_rela,
471 elf_machine_rela_relative): Adjust.
472 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela,
473 elf_machine_rela_relative): Adjust.
474 * sysdeps/powerpc/powerpc64/dl-machine.h
475 (elf_machine_rela_relative, elf_machine_rela): Adjust.
476 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela,
477 elf_machine_rela_relative): Adjust.
478 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela,
adc12574 479 elf_machine_rela_relative): Adjust.
87d254a7
AO
480 * sysdeps/sh/dl-machine.h (elf_machine_rela,
481 elf_machine_rela_relative): Adjust.
482 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
483 elf_machine_rela_relative): Adjust.
484 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
485 elf_machine_rela_relative): Adjust.
486 * sysdeps/x86_64/dl-machine.h (elf_machine_rela,
487 elf_machine_rela_relative): Adjust.
488
20539fd5
UD
4892003-07-29 Ulrich Drepper <drepper@redhat.com>
490
491 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Restore
492 alignment of TCB used before the last change so that it matches
493 ld's output for IE code.
494
0d2f48bb
RM
4952003-07-29 Jakub Jelinek <jakub@redhat.com>
496
497 * include/ctype.h (__ctype_b_loc, __ctype_toupper_loc,
498 __ctype_tolower_loc): Avoid "dereferencing type-punned pointer will
499 break strict-aliasing rules" warnings.
500
a7f6c66e
RM
5012003-07-29 Roland McGrath <roland@redhat.com>
502
6e0bb375 503 * elf/Makefile: Revert accidental changes in last commit.
98c24a32 504 * elf/dl-support.c: Likewise.
6e0bb375 505
a7f6c66e
RM
506 * rt/tst-timer2.c: New file.
507 * rt/Makefile (tests): Add it.
508
172ce013
RM
5092003-07-25 Jakub Jelinek <jakub@redhat.com>
510
511 * elf/dl-support.c (_dl_hwcap): Add nocommon attribute.
512
5181d776
RM
5132003-07-29 Roland McGrath <roland@redhat.com>
514
515 * elf/Makefile (tests) [$(build-shared) = yes]:
516 Depend on $(test-modules).
517 * dlfcn/Makefile: Likewise.
518
23195635
RM
5192003-07-28 Roland McGrath <roland@redhat.com>
520
bba446f7
RM
521 * sysdeps/generic/bits/types.h (__STD_TYPE): New macro.
522 Use that instead of `typedef' when using __*_TYPE macros in rhs.
523
23195635
RM
524 * elf/tst-tls14.c [USE_TLS && HAVE___THREAD]: Conditionalize on this.
525 * elf/tst-tlsmod14a.c: Likewise.
526
527 * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h>
528 before <linux/sysctl.h>.
529
54943a03
UD
5302003-07-27 Ulrich Drepper <drepper@redhat.com>
531
35107e0c
UD
532 * sysdeps/unix/sysv/syscalls.list: time syscall never fails.
533 * sysdeps/unix/sysv/linux/x86_64/time.S: time syscall never fails.
534 * sysdeps/unix/sysv/i386/time.S: time syscall never fails.
54943a03
UD
535 * sysdeps/unix/syscalls.list: umask syscall never fails.
536
deac8082
AJ
5372003-07-27 Andreas Jaeger <aj@suse.de>
538
539 * sysdeps/unix/sysv/linux/init-first.c: Mark init as used.
540
3e360d34
UD
5412003-07-25 Jakub Jelinek <jakub@redhat.com>
542
543 * sysdeps/unix/sysv/linux/a.out.h: Replace with i386 version.
544 Include bits/a.out.h.
545 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
546 bits/a.out.h.
547 * sysdeps/unix/sysv/linux/bits/a.out.h: New file.
548 * sysdeps/unix/sysv/linux/i386/bits/a.out.h: New file.
549 * sysdeps/unix/sysv/linux/m68k/bits/a.out.h: New file.
550 * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: New file.
551 * sysdeps/unix/sysv/linux/alpha/a.out.h: New file.
552 * sysdeps/unix/sysv/linux/alpha/bits/a.out.h: New file.
553 * sysdeps/unix/sysv/linux/sparc/a.out.h: New file.
554 * sysdeps/unix/sysv/linux/sparc/bits/a.out.h: New file.
555
7b787f85
UD
5562003-07-24 Jakub Jelinek <jakub@redhat.com>
557
558 * sysdeps/pthread/aio_cancel.c (aio_cancel): Return AIO_ALLDONE
559 if aiocbp != NULL and has already completed. Return -1/EINVAL if
560 aiocbp->aio_fildes does not match fildes.
561
99fe3b0e
UD
5622003-07-24 Ulrich Drepper <drepper@redhat.com>
563
02ade8d6
UD
564 * timezone/zic.c (rpytime): Replace cheap overflow check with a
565 functioning one.
566
99fe3b0e
UD
567 * include/link.h (struct link_map): Add l_tls_firstbyte_offset field.
568 * sysdeps/generic/dl-tls.c [TLS_TCB_AT_TP] (_dl_determine_tlsoffset):
569 Fix calculation of offsets to take misalignment of first byte in
570 file into account.
571 * elf/dl-load.c (_dl_map_object_from_fd): Initialize
572 l_tls_firstbyte_offset field.
573 * elf/rtld.c (_dl_start_final, _dl_start, dl_main): Likewise.
574 * elf/dl-reloc.c (_dl_allocate_static_tls): Change return type to int.
575 Take l_tls_firstbyte_offset information into account.
adc12574 576 (CHECK_STATIC_TLS): _dl_allocate_static_tls can fail now.
99fe3b0e
UD
577 * sysdeps/generic/ldsodefs.h: Adjust _dl_allocate_static_tls prototype.
578 * elf/Makefile: Add rules to build and run tst-tls14.
579 * elf/tst-tls14.c: New file.
580 * elf/tst-tlsmod14a.c: New file.
581 * elf/tst-tlsmod14b.c: New file.
582
6bc0b954
UD
5832003-07-23 Jakub Jelinek <jakub@redhat.com>
584
585 * sysdeps/pthread/lio_listio.c (LIO_OPCODE_BASE): Define.
586 (lio_listio): Use it.
587 * sysdeps/pthread/lio_listio64.c: Include lio_listio.c instead of
588 after few defines to avoid duplication.
589
0e9d6240
UD
5902003-07-22 Jakub Jelinek <jakub@redhat.com>
591
9d79e037
UD
592 * include/stdio.h (__libc_fatal): Add libc_hidden_proto.
593 * include/dlfcn.h (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
594 Likewise.
595 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
596 Add libc_hidden_def.
597 * sysdeps/generic/libc_fatal.c (__libc_fatal): Likewise.
598 * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
599 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Likewise.
600 * elf/Versions (libc): Export __libc_dlopen_mode@@GLIBC_PRIVATE,
601 __libc_dlsym@@GLIBC_PRIVATE and __libc_dlclose@@GLIBC_PRIVATE.
602 * libio/Versions (libc): Export __libc_fatal@@GLIBC_PRIVATE.
603 * sysdeps/generic/unwind-dw2.c: Readd #ifs removed during last
604 change.
605 * sysdeps/generic/unwind.inc: Removed.
606
0e9d6240
UD
607 * include/resolv.h (__resp): Declare. Define to __libc_resp
608 if in libc.so.
609 (_res): If USE___THREAD, define to (*__resp).
610 * resolv/res_libc.c (_res): Normal .bss variable with compat_symbol
611 even if USE___THREAD.
612 (__resp): New __thread variable.
613 (__libc_resp): New alias.
614 * resolv/Versions (libc): Export _res@GLIBC_2.0 even if
615 USE_TLS && HAVE___THREAD. Export __resp@@GLIBC_PRIVATE.
616 * sysdeps/generic/res-state.c (__res_state): Return __resp
617 if USE___THREAD.
618
11bf8ce1
UD
6192003-07-22 H.J. Lu <hongjiu.lu@intel.com>
620
621 * elf/dl-support.c (_dl_hwcap): New variable.
622 (_dl_aux_init): Initialize GL(dl_hwcap) for static binaries.
623
624 * sysdeps/i386/fpu/fclrexcpt.c: Include <unistd.h>, <ldsodefs.h>
625 and <dl-procinfo.h>.
626 (__feclearexcept): Clear MXCSR if needed.
627 * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
628
629 * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Document
630 that newer hardware needs more than these macros.
631
632 * sysdeps/i386/setfpucw.c: New file.
633
6342003-07-22 Jakub Jelinek <jakub@redhat.com>
635
636 * elf/Makefile (CFLAGS-ldconfig.c): Define IS_IN_ldconfig.
637 * elf/ldconfig.c: Include dl-procinfo.c.
638 (PROCINFO_CLASS): Define.
639 * sysdeps/generic/ldsodefs.h (PROCINFO_CLASS): Define.
640 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: New file.
641 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: New file.
642 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (PROCINFO_CLASS):
643 Define if not yet defined. Use it instead of EXTERN. Undefine
644 at the end of the file.
645 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (PROCINFO_CLASS):
646 Likewise.
647 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c
648 (PROCINFO_CLASS): Likewise.
649 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c
650 (PROCINFO_CLASS): Likewise.
651
6522003-07-22 H.J. Lu <hongjiu.lu@intel.com>
653
654 * elf/ldconfig.c (main): Issue a fatal error if relative path
655 is used to build cache.
656
6572003-07-22 Ulrich Drepper <drepper@redhat.com>
658
659 * elf/readlib.c (process_file): Avoid possible overflow in assignment.
660
873a1928
RM
6612003-07-21 Art Haas <ahaas@airmail.net>
662
663 * manual/charset.texi (Converting a Character): Fix example code so a
664 valid pointer is returned.
665
9fb978c8
AJ
6662003-07-22 Andreas Jaeger <aj@suse.de>
667
8c1bfa30
AJ
668 * elf/readlib.c (process_file): Check that file is a shared
669 object.
670
42251450
AJ
671 * elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
672 will not optimize it away.
673 (__DTOR_END__): Likewise.
674 (__CTOR_END__): Likewise.
675
9fb978c8
AJ
676 * include/libc-symbols.h (_elf_set_element): Use attribute used so
677 that gcc will not optimize it away.
678 (link_warning): Likewise.
679
4009c3d9
UD
6802003-07-22 Ulrich Drepper <drepper@redhat.com>
681
682 * wcsmbs/wcpncpy.c (__wcpncpy): Correct destination pointer handling.
683 * wcsmbs/Makefile (tests): Add tst-wcpncpy.
684 * wcsmbs/tst-wcpncpy.c: New file.
685
1a379ea0
UD
6862003-07-21 Ulrich Drepper <drepper@redhat.com>
687
7e939b21
UD
688 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_STOPPED): Define.
689
2775fdb5
UD
690 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of
691 stmxcsr and ldmxcsr.
692
1a379ea0
UD
693 * Makerules (build-module-helper): Add -z defs unless explicitly said
694 not to do it.
695 * dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs
696 which has undefined symbols.
697 * elf/Makefile: Likewise.
698
b72e048f
UD
699 * sysdeps/i386/fpu/fedisblxcpt.c: Use dl_hwcap, not dl_hwcap_mask.
700 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
701 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
702 * sysdeps/i386/fpu/fesetround.c: Likewise.
703 * sysdeps/i386/fpu/ftestexcept.c: Likewise.
704
ca86a763
UD
7052003-07-21 HJ Lu <hongjiu.lu@intel.com>
706
707 * elf/ldconfig.c (search_dir): Treat symlink as regular file
708 if it won't point to itself.
709
66c79db9
UD
7102003-07-20 Ulrich Drepper <drepper@redhat.com>
711
712 * sysdeps/ia64/hp-timing.h (REPEAT_READ): Cast to long int not to int.
713
183f2df1
AJ
7142003-07-20 Andreas Jaeger <aj@suse.de>
715
716 * iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called
717 STANDARD_TO_LOOP_ERR_HANDLER.
718 * iconvdata/euc-jp-ms.c (BODY): Likewise.
719
4e0dc4af
UD
7202003-07-19 Ulrich Drepper <drepper@redhat.com>
721
3f56243a
UD
722 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO): Fix typo.
723
4e0dc4af
UD
724 * sysdeps/unix/sysv/linux/syscalls.list: Remove affinity syscalls.
725
989d866b
AJ
7262003-07-16 Daniel Jacobowitz <drow@mvista.com>
727 Andreas Jaeger <aj@suse.de>
728
729 * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to
730 256K, remove unneeded declaration of __getpagesize.
731
a6fe2ab3
UD
7322003-07-16 Andreas Schwab <schwab@suse.de>
733
734 * sysdeps/unix/sysv/linux/futimes.c: Include <string.h>.
735
dade1ade
UD
7362003-07-15 Ulrich Drepper <drepper@redhat.com>
737
738 * io/test-utime.c (main): Make test yet more robust.
739
9df2c61c
UD
7402003-07-14 Ulrich Drepper <drepper@redhat.com>
741
73299943
UD
742 More cancellation handling fixups.
743 * sysdeps/unix/sysv/linux/not-cancel.h: Add waitpid_not_cancel.
744 * sysdeps/generic/not-cancel.h: Likewise.
745 * catgets/open_catalog.c: Use not-cancelable syscalls.
746 * time/Makefile (CFLAGS-getdate.c): Add -fexceptions.
747 * sysdeps/unix/sysv/linux/llseek.c: Must not be cancelable.
748 * sysdeps/unix/syscalls.list: Don't mark lseek as cancelable.
749 * dlfcn/dlfcn.h: Mark dlopen with __THROW again.
750 * io/fcntl.h: Don't mark posix_fallocate with __THROW.
751 * libio/fileops.c: Use not-cancelable syscalls for fclose.
752 * libio/iopopen.c: Use no-cancelable syscalls.
753 * libio/stdio.h: Mark popen and pclose with __THROW again.
754 * misc/Makefile (CFLAGS-syslog.c): Add -fexceptions.
755 * misc/syslog.c: Fix locking and cancellation cleanup handling.
756 * posix/unistd.h: Mark ttyname and ttyname_r again with __THROW.
757 * stdio-common/Makefile (CFLAGS-tmpfile.c, CFLAGS-tmpfile64.c,
758 CFLAGS-tempname.c): Add -fexceptions.
759 * stdlib/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
760 * string/string.h: Mark strerror and strerror_r with _THROW again.
761 * sysdeps/generic/unwind.inc: New file. Copied from gcc.
762 * sysdeps/generic/unwind-dw2.c: Update from gcc version. Remove
763 #ifs since we now need all the code compiled.
764 * sysdeps/posix/spawni.c: Use close_not_cancel instead of close.
765 * sysdeps/unix/closedir.c: Use not-cancelable syscalls.
766 * sysdeps/unix/opendir.c: Likewise.
767
9df2c61c
UD
768 * iconvdata/Makefile (modules): Add CP932 and EUC-JP-MS.
769 Add rule for EUC-JP-MS dependency.
770 * iconvdata/cp932.c: New file.
771 * iconvdata/eucjp-ms.c: New file.
772 * iconvdata/gconv-modules: Add entries for CP932 and EUC-JP-MS.
773 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
774
7752003-07-15 Jakub Jelinek <jakub@redhat.com>
776
777 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket): Add
778 cfi directives.
779
255476a9
UD
7802003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
781
782 * sysdeps/unix/sysv/linux/kernel-features.h
783 (__ASSUME_FIXED_CLONE_SYSCALL): New macro.
784 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Use it.
785
786 * sysdeps/unix/sysv/linux/utimes.c: Include sysdep.h.
787
b1b060c3
UD
7882003-07-14 Ulrich Drepper <drepper@redhat.com>
789
790 * sysdeps/unix/sysv/linux/kernel-features.h: Define
791 __ASSUME_TGKILL for Alpha appropriately.
792
f4e0175f
UD
7932003-07-12 Ulrich Drepper <drepper@redhat.com>
794
04963cc6 795 * sysdeps/unix/sysv/linux/bits/statfs.h (_STATFS_F_FRSIZE): Define.
9291eb49
UD
796 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h (_STATFS_F_FRSIZE):
797 Likewise.
798 * sysdeps/unix/sysv/linux/s390/bits/statfs.h (_STATFS_F_FRSIZE):
799 Likewise.
04963cc6 800
f4e0175f
UD
801 * sysdeps/unix/sysv/linux/kernel-features.h: Define
802 __ASSUME_UTIMES for x86 and kernels > 2.5.75.
803
804 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with
805 second parameter == NULL.
806 * sysdeps/unix/sysv/linux/utimes.c: New file.
807
8082003-07-12 Jakub Jelinek <jakub@redhat.com>
809
810 * sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h.
811 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix
812 a typo.
813
82bae9f9
UD
8142003-07-12 Ulrich Drepper <drepper@redhat.com>
815
327e1637 816 * time/sys/time.h: Namespace cleanup.
82bae9f9
UD
817 * sysdeps/unix/sysv/linux/kernel-features.h: Define
818 __ASSUME_UTIMES for the architectures which always had the syscall.
819 * sysdeps/unix/sysv/linux/futimes.c: New file.
820
4a17085f
UD
8212003-07-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
822
823 * sysdeps/unix/sysv/linux/sh/socket.S: Save and restore the PR
824 register across CENABLE and CDISABLE.
825
6080ecdf
UD
8262003-07-11 Jakub Jelinek <jakub@redhat.com>
827
828 * sysdeps/unix/sysv/linux/sigwait.c: Include string.h.
829 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
830 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
831 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Cast value to unsigned
832 int before assigning to max to avoid warnings.
833
f05bf186
UD
8342003-07-11 Jakub Jelinek <jakub@redhat.com>
835
836 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket): Add
837 cfi directives.
838 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Likewise.
839 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
840
7fbf17e4
UD
8412003-07-10 Jakub Jelinek <jakub@redhat.com>
842
843 * sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of
844 .data.rel.ro.local to "aw".
845
231e88a4
UD
8462003-07-10 Ulrich Drepper <drepper@redhat.com>
847
f135896a 848 * sysdeps/m68k/Makefile: Remove CLFAGS-.oS addition.
231e88a4
UD
849 * Makeconfig (CFLAGS-.oS): Use PIC-ccflag instead of pic-ccflag.
850 (PIC-ccflag): Define.
851
57a5ea02
UD
8522003-07-04 Jakub Jelinek <jakub@redhat.com>
853
854 * sysdeps/s390/s390-32/elf/start.S: Emit position independent code
855 if PIC.
856 * sysdeps/s390/s390-64/elf/start.S: Likewise.
857
8582003-07-07 Jakub Jelinek <jakub@redhat.com>
859
860 * sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address)
861 into .data.rel.ro.local section if PIC to avoid DT_TEXTREL.
862
d810b358
UD
8632003-07-07 Ulrich Drepper <drepper@redhat.com>
864
865 * sysdeps/unix/sysv/linux/kernel-features.h: Version
866 __ASSUME_CORRECT_SI_PID and __ASSUME_TGKILL if possible.
867
868 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
869 compilation with HAVE_AUX_SECURE defined.
870
6fe93e82
RH
8712003-07-05 Richard Henderson <rth@redhat.com>
872
873 * sysdeps/alpha/elf/initfini.c: Avoid .ent/.end.
874
fbd90f6c
UD
8752003-07-03 Ulrich Drepper <drepper@redhat.com>
876
877 * configure.in: Also check for .cfi_rel_offset pseudo-op.
878
414f49c0
UD
8792003-07-03 Jakub Jelinek <jakub@redhat.com>
880
881 * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency): Fix a
882 typo.
883
1418bf99
UD
8842003-07-03 Ulrich Drepper <drepper@redhat.com>
885
886 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_CLKTCK):
887 Define.
888 * sysdeps/unix/sysv/linux/prof-freq.h: New file.
889
6d8d57bc
UD
8902003-07-02 Jakub Jelinek <jakub@redhat.com>
891
892 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Protect new_sysinfo
893 decl and use with #ifdef NEED_DL_SYSINFO.
894
ef8783de
UD
8952003-07-02 Ulrich Drepper <drepper@redhat.com>
896
fcdac13a
UD
897 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't set
898 GL(dl_sysinfo) unles GL(dl_sysinfo_dso) is also set.
899 * sysdeps/unix/sysv/linux/kernel-features.h: Define
900 __ASSUME_VSYSCALL only for 2.5.69 and up since this is when the
901 vsyscall DSO was added.
902
ef8783de
UD
903 * posix/bits/posix1_lim.h (_POSIX_NGROUPS_MAX): Define to 8 or 0
904 depending on selected standard.
905 (NGROUPS_MAX): Define to 8 if not defined.
906
af05f48c
AJ
9072003-07-02 Andreas Jaeger <aj@suse.de>
908
909 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: New file.
910
b5d5b67b
UD
9112003-05-04 H.J. Lu <hongjiu.lu@intel.com>
912
913 * malloc/arena.c (arena_get2): Add atomic_write_barrier.
914 * malloc/thread-m.h: Include <atomic.h>.
915 (atomic_full_barrier): Provide default.
916 (atomic_read_barrier): Likewise.
917 (atomic_write_barrier): Likewise.
918 * sysdeps/ia64/bits/atomic.h (atomic_full_barrier): New #define.
919
5a8e918d
UD
9202003-06-30 Ulrich Drepper <drepper@redhat.com>
921
922 * sysdeps/generic/sysdep.h: Define cfi_rel_offset and CFI_REL_OFFSET.
923
bbf1f957
RH
9242003-06-30 Richard Henderson <rth@redhat.com>
925
926 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_bool_*_int):
927 Invert the sense of the return value.
928 (__arch_exchange_16_int): Fix paste-o.
929 (__arch_exchange_{32,64}_int): Fix think-o.
930
931 * sysdeps/unix/sysv/linux/alpha/clone.S: Load child_tid properly.
932
cbdce766
RH
9332003-06-30 Richard Henderson <rth@redhat.com>
934
935 * include/sys/resource.h (__getrusage): Mark hidden.
936 * include/sys/time.h (__settimeofday, __setitimer, __utimes): Likewise.
937 * include/sys/wait.h (__wait4): Likewise.
938
7f4b68d6
AJ
9392003-06-17 Guido Guenther <agx@sigxcpu.org>
940
941 * sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT
942 case.
943 (xstat_conv): Rename to __xstat_conv and remove static inline.
944 (xstat64_conv): Likewise.
945
5245d8a1
UD
9462003-06-29 Ulrich Drepper <drepper@redhat.com>
947
948 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Handle parameter
949 values which cannot be handled in one nanosleep call.
950
5a81730f
UD
9512003-06-25 Alfred M. Szmidt <ams@kemisten.nu>
952
953 * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros.
954 (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them.
955
956 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix.
957
8d4d88bc
UD
9582003-06-04 Thorsten Kukuk <kukuk@suse.de>
959
960 * sysdeps/unix/sysv/linux/net/if_arp.h: Sync with kernel header,
961 fix typo.
962
b14be6fe
UD
9632003-06-26 Steven Munroe <sjmunroe@us.ibm.com>
964
965 * sysdeps/unix/sysv/linux/xstatconv.h [!STAT_IS_KERNEL_STAT]:
966 Conditionalize function definitions that use struct kernel_stat.
967 * sysdeps/unix/sysv/linux/fxstat.c: Remove __syscall_fstat extern.
968 * sysdeps/unix/sysv/linux/lxstat.c: Remove __syscall_lstat extern.
969 * sysdeps/unix/sysv/linux/xstat.c: Remove __syscall_stat extern.
970
b4431a72
UD
9712003-06-28 Ulrich Drepper <drepper@redhat.com>
972
973 * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Add real
974 implementation.
975
bbca27a4
UD
9762003-06-07 Thorsten Kukuk <kukuk@suse.de>
977
5a8e918d
UD
978 * nis/nss_compat/compat-grp.c: Remove unused nis_first variable.
979 (getgrent_next_file): Don't store group name to early in blacklist.
bbca27a4
UD
980
981 * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Save strlen result
982 and use memcpy instead of strcpy.
983
9842003-06-28 Ulrich Drepper <drepper@redhat.com>
985
986 * nis/nss_compat/compat-grp.c: Optimize several little things. Use
987 stream unlocked.
988 * nis/nss_compat/compat-initgroups.c: Likewise.
989 * nis/nss_compat/compat-pwd.c: Likewise.
990 * nis/nss_compat/compat-spwd.c: Likewise.
991
9922003-06-27 Thorsten Kukuk <kukuk@suse.de>
993
994 * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+
995 functions, dlopen corresponding NSS module instead.
996
080ffa73
RM
9972003-06-27 Jeroen Dekkers <jeroen@dekkers.cx>
998
999 * sysdeps/mach/hurd/alpha/init-first.c: Remove call to __libc_init.
1000 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
1001 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
1002 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1003
7d7ff54c
UD
10042003-06-27 Ulrich Drepper <drepper@redhat.com>
1005
1006 * rt/Makefile (CFLAGS-librt-cancellation.c): Define.
1007
768a8fcd
RM
10082003-06-26 Roland McGrath <roland@frob.com>
1009
1010 * sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME.
1011 * sysdeps/mach/configure: Regenerated.
1012 * sysdeps/mach/hurd/times.c (times_init): Function removed.
1013 (__times): Assume `creation_time' field is available.
1014 * sysdeps/mach/hurd/Makefile [$(subdir) = csu] (sysdep_routines):
1015 Don't append set-init.
1016 * sysdeps/mach/hurd/set-init.c: File removed.
1017
1a7de7da
RM
10182003-06-26 Roland McGrath <roland@redhat.com>
1019
1020 * elf/elf.h (AT_SECURE): New macro.
1021 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Grok it,
1022 set __libc_enable_secure.
1023 (_dl_show_auxv): Add AT_SECURE to name table.
1024 * elf/dl-support.c (_dl_aux_init): Grok AT_SECURE, set
1025 __libc_enable_secure and __libc_enable_secure_decided.
1026 * sysdeps/unix/sysv/linux/ldsodefs.h
1027 [__ASSUME_AT_SECURE] (HAVE_AUX_SECURE): Define it.
1028 * sysdeps/unix/sysv/linux/kernel-features.h
72541de9 1029 [__LINUX_KERNEL_VERSION >= 132426] (__ASSUME_AT_SECURE): Define it.
1a7de7da 1030
95a305be
UD
10312003-06-26 Ulrich Drepper <drepper@redhat.com>
1032
1033 * io/test-utime.c: If _STATBUF_ST_NSEC is defined, adjust lower
1034 boundary test to take rounding of nanoseconds into account.
1035
1036 * sysdeps/unix/sysv/linux/bits/stat.h: Define _STATBUF_ST_NSEC.
1037 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1038 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise.
1039 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1040 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1041 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1042 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1043
6476910b
AS
10442003-06-26 Andreas Schwab <schwab@suse.de>
1045
1046 * sysdeps/m68k/fpu/bits/mathinline.h: Don't inline frexp.
1047 * sysdeps/m68k/fpu/s_frexp.c: Put implementation here.
1048 * sysdeps/m68k/fpu/s_frexpl.c: Fix to handle unnormalized numbers.
1049
1e2e27fd
UD
10502003-06-17 Thorsten Kukuk <kukuk@suse.de>
1051
1052 * nis/Makefile: Remove NIS/NIS+ files from nss_compat module.
1053 * nis/nss_compat/compat-grp.c: Don't use our own NIS/NIS+ functions,
1054 dlopen corresponding NSS module instead.
1055 * nis/nss_compat/compat-pwd.c: Likewise.
1056 * nis/nss_compat/compat-spwd.c: Likewise.
1057 * nis/nss_compat/compat-initgroups.c: Disabled for now.
1058 * nss/Versions: Export __nss_lookup_function.
1059
10602003-06-19 Daniel Jacobowitz <drow@mvista.com>
1061
1062 * sysdeps/unix/sysv/linux/kernel-features.h: Update kernel features
1063 for the SH architecture.
1064
10652003-06-25 Thorsten Kukuk <kukuk@suse.de>
1066
1067 * csu/Makefile: Use CPPFLAGS to find correct linux/version.h.
1068
fa4a36fd
AJ
10692003-06-25 Andreas Jaeger <aj@suse.de>
1070
c53320c0
AJ
1071 * stdlib/tst-strtod.c (main): Declare constant long double as
1072 suggested by Jakub Jelinek and Andreas Schwab.
1073
346f3a90
AJ
1074 * posix/tst-nanosleep.c: Include <time.h> for nanosleep
1075 declaration.
1e2e27fd 1076
346f3a90
AJ
1077 * stdio-common/tst-fphex.c: Fix format string.
1078
fa4a36fd
AJ
1079 * posix/transbug.c: Include <string.h> for memset and strlen
1080 declarations.
1081
1082 * stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration.
1083
1084 * stdlib/tst-strtod.c (main): Pass long double value.
1085
1086 * test-skeleton.c: Include <time.h> for nanosleep declaration.
1087
657f0417
UD
10882003-06-25 Ulrich Drepper <drepper@redhat.com>
1089
1090 * include/time.h: Don't define CLOCK_IDFIELD_SIZE if _ISOMAC is
1091 defined.
1092
81b215af
UD
10932003-06-11 Jakub Jelinek <jakub@redhat.com>
1094
1095 * elf/Versions (libc): Add _dl_open_hook@GLIBC_PRIVATE.
1096 * elf/dl-libc.c (struct dl_open_hook): New.
1097 (_dl_open_hook): New variable.
1098 (do_dlsym_private): New function.
1099 (__libc_dlopen_mode) [!SHARED]: Lookup _dl_open_hook@GLIBC_PRIVATE
1100 and initialize it if found.
1101 (__libc_dlopen_mode) [SHARED]: If _dl_open_hook is non-NULL,
1102 call dlopen_mode hook.
1103 (__libc_dlsym) [SHARED]: If _dl_open_hook is non-NULL,
1104 call dlsym hook.
1105 (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL,
1106 call dlclose hook.
1107
bd89c0b5
UD
11082003-06-25 Ulrich Drepper <drepper@redhat.com>
1109
1110 * sysdeps/unix/sysv/linux/cris/sysdep.h (INLINE_SYSCALL): Cast
1111 result to long int so that extensions to long long int work.
1112 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
1113
11142003-06-19 Jakub Jelinek <jakub@redhat.com>
1115
1116 * elf/ldconfig.c (main): Use add_system_dir instead of add_dir.
1117 * sysdeps/generic/dl-cache.h (add_system_dir): Define.
1118 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: Include sparc
1119 dl-cache.h.
1120 * sysdeps/unix/sysv/linux/s390/dl-cache.h: New file.
1121 * sysdeps/unix/sysv/linux/mips/dl-cache.h: New file.
1122 * sysdeps/unix/sysv/linux/powerpc/dl-cache.h: New file.
1123 * sysdeps/unix/sysv/linux/sparc/dl-cache.h: New file.
1124
6d0e6e84
UD
11252003-06-19 Jakub Jelinek <jakub@redhat.com>
1126
1127 * test-skeleton.c (timeout_handler): If waitpid returned 0,
1128 retry once after a second. If killed == 0, assume
1129 WTERMSIG (status) == SIGKILL.
1130
1775abf0
RM
11312003-06-18 Roland McGrath <roland@redhat.com>
1132
1133 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Catch uninitialized
1134 elements in the table instead of printing an empty name string.
1135
11362003-06-05 Roland McGrath <roland@redhat.com>
1137
1138 * elf/elf.h (PT_GNU_STACK): New macro.
1139
51d1ca00
UD
11402003-06-24 Ulrich Drepper <drepper@redhat.com>
1141
4165d44d
UD
1142 * include/time.h: Define CLOCK_IDFIELD_SIZE.
1143 * sysdeps/posix/clock_getres.c: Recognize thread CPU clock IDs.
1144 * sysdeps/unix/clock_gettime.c: Likewise.
1145 * sysdeps/unix/clock_settime.c: Likewise.
1146 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Adjust for new
1147 clock id for thread CPU clocks.
1148
51d1ca00
UD
1149 * sysdeps/unix/sysv/linux/fstatfs64.c (__fstatfs64): Add support
1150 for the fstatfs64 syscall.
1151 * sysdeps/unix/sysv/linux/statfs64.c (__statfs64): Add support for
1152 the statfs64 syscall.
1153
1154 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1155 __ASSUME_STATFS64 appropriately.
1156
1157 * sysdeps/unix/sysv/linux/internal_statvfs.c: Use f_frsize field
1158 from statfs structure if it has been filled in.
1159
1160 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_frsize
1161 field.
1162 (struct statfs64): Likewise.
1163 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: Likewise.
1164 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
1165
e67f1e92
RH
11662003-06-24 Richard Henderson <rth@redhat.com>
1167
1168 * sysdeps/unix/sysv/linux/alpha/syscalls.list (pread, pwrite): Use
1169 the 64-bit syscall name.
1170
160b780a
RH
1171 * sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue.
1172
750cd4ff
RH
1173 * sysdeps/alpha/fpu/bits/mathinline.h: Honor
1174 __LIBC_INTERNAL_MATH_INLINES. Implement __signbitf, __signbit.
1175
c5206c31
RH
1176 * sysdeps/unix/sysv/linux/alpha/clone.S: Use HIDDEN_JUMPTARGET.
1177 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use
1178 libc_hidden_def.
1179 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
1180 * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use libc_hidden_proto
1181 on them.
1182
9638f69f
RH
1183 * sysdeps/alpha/bits/atomic.h: New file.
1184
f637655d
AS
11852003-06-24 Andreas Schwab <schwab@suse.de>
1186
1187 * sysdeps/m68k/fpu/libm-test-ulps: Update.
1188
d98efcf5
AJ
11892003-06-24 Andreas Jaeger <aj@suse.de>
1190
1191 * sysdeps/unix/sysv/linux/x86_64/stat.h (_STAT_VER_LINUX): Avoid
1192 redeclaration with 32-bit code.
1193
24176967
UD
11942003-05-19 Ed Connell <ed.connell@sas.com>
1195
1196 * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain
1197 floating point mask.
1198 * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise.
1199
7b0a32a3
UD
12002003-06-23 Ulrich Drepper <drepper@redhat.com>
1201
67b78ef9
UD
1202 * sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex,
1203 __aio_enqueue_request, __aio_find_req, __aio_find_req_fd,
1204 __aio_free_request, __aio_notify, and __aio_sigqueue as hidden.
1205
1206 * sysdeps/pthread/aio_suspend.c (aio_suspend): Set errno to the result
1207 of pthread_cond_wait if there was an error. Use pthread_cleanup_*
51d1ca00 1208 instead of __libc_cleanup_region_*.
7b0a32a3 1209
27681b99
RH
12102003-06-20 Richard Henderson <rth@redhat.com>
1211
1212 * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases.
1213 * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New.
1214
c795f356
RH
12152003-06-20 Richard Henderson <rth@redhat.com>
1216
1217 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
1218 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
1219 Unset for alpha.
1220 (__ASSUME_TIMEVAL64): Set for alpha.
1221 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
1222 adjtimex, osf_sigprocmask, old_adjtimex.
1223 * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
1224 __ASSUME_TIMEVAL64. Reorg tv64 functions to avoid uninit variable.
1225 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
1226 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
1227 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
1228 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
1229 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
1230 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
1231 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
1232 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
1233 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
1234 PIC code sequence.
1235 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
1236 * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
1237 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
1238 * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
1239 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
1240 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
1241 sys_ustat, sys_mknod, adjtimex, old_adjtimex.
1242 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
1243 defer to __syscall_name; error for rt_sigaction.
1244 * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
1245
fae49c62
UD
12462003-06-18 Ulrich Drepper <drepper@redhat.com>
1247
6a00759b
UD
1248 * malloc/malloc.c (public_mALLINFo): Initialize malloc if it
1249 hasn't happened yet.
1250
50441a98 1251 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
6a00759b 1252 Fix completely broken implementation. The second parameter is of
50441a98
UD
1253 type struct ucontext*.
1254
1255 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always
1256 inline.
1257
1258 * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash.
1259 * sysdeps/generic/dl-hash.h: Likewise.
1260
1261 * sysdeps/generic/memcmp.c: Remove inline from
1262 memcmp_common_alignment and memcmp_not_common_alignment definition.
1263
fae49c62
UD
1264 * intl/localealias.c (read_alias_file): Determine whether line is
1265 read incompletely early, before we modify the line.
1266
22163624
UD
12672003-06-17 Jakub Jelinek <jakub@redhat.com>
1268
1269 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela)
1270 <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
1271
aebcf54c
UD
12722003-06-17 Paul Mackerras <paulus@samba.org>
1273
1274 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file.
1275 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: New file.
1276 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: New file.
1277 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: New file.
1278 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: New file.
1279 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Adjust.
1280
f23b30e2
UD
12812003-06-17 Jakub Jelinek <jakub@redhat.com>
1282
1283 * posix/regcomp.c (build_word_op): Use alnum instead of alpha class.
1284
bbde8527
UD
12852003-06-17 Ulrich Drepper <drepper@redhat.com>
1286
60d73a7a
UD
1287 * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
1288 takes care of enabling cancellation.
1289
1290 * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
1291 cancelable. It's not correct to disable cancellation. Instead of
1292 a cleanup handler.
1293
aa3cee21
UD
1294 * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
1295 and part of the incoming set, create a temporary set without this
1296 signal.
1297 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
1298 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1299
bbde8527 1300 * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
aa3cee21 1301 returning because seconds==0. Add __builtin_expect.
bbde8527 1302
f60db8ed
UD
13032003-06-16 Ulrich Drepper <drepper@redhat.com>
1304
1305 * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
1306
1307 * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
1308 variable.
1309
2f7f7bc6
UD
13102003-06-16 Thorsten Kukuk <kukuk@suse.de>
1311
1312 * include/libc-symbols.h: Add static_link_warning macro.
1313 * grp/initgroups.c: Print linker warning if this function
1314 is called in a static linked binary.
1315 * nss/getXXbyYY.c: Likewise.
1316 * nss/getXXbyYY_r.c: Likewise.
1317 * nss/getXXent.c: Likewise.
1318 * nss/getXXent_r.c: Likewise.
1319 * sysdeps/posix/getaddrinfo.c: Likewise.
1320
13212003-06-16 Bruno Haible <bruno@clisp.org>
1322
1323 * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
1324 LATIN-9.
1325 (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
1326 (IBM1047): Add alias IBM-1047.
1327 (GBK): Add aliases MS936, WINDOWS-936.
1328
13292003-06-16 Jakub Jelinek <jakub@redhat.com>
1330
1331 * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
1332 defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
1333 (__xstat64_conv): Change xstat_conv to __xstat_conv.
1334
301a6724
UD
13352003-06-16 Ulrich Drepper <drepper@redhat.com>
1336
90a2545a
UD
1337 * locale/iso-639.def: Update from current official ISO 639.
1338
301a6724
UD
1339 * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
1340
13412003-06-15 Andreas Jaeger <aj@suse.de>
1342
1343 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
1344 of MXCSR.
1345 * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
1346 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
2f7f7bc6 1347 Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
301a6724
UD
1348
1349 * math/tgmath.h (carg): Handle real arguments.
1350 (conj): Likewise.
1351 (cproj): Likewise.
1352 (cimag): Likewise.
1353 (creal): Likewise.
1354
1355 * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
1356 (tests): Add test-tgmath-ret.
1357 * math/test-tgmath-ret.c: New file.
1358
1359 * math/tgmath.h (ilogb): Return always an int.
1360
4cfde896
UD
13612003-06-16 Ulrich Drepper <drepper@redhat.com>
1362
1363 * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
301a6724 1364 computation so that prelinking works.
4cfde896 1365
7a114794
UD
13662003-06-15 Ulrich Drepper <drepper@redhat.com>
1367
553eca26
UD
1368 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
1369 linker's map.
1370 * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
1371 dynamic linker's map.
1372
7a114794
UD
1373 Fix cancellation point handling wrt exception based cleanup.
1374 * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
1375 * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
1376 with exceptions.
1377 * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
1378 sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
1379 * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
1380 exceptions.
1381 * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
1382 sigwait.c, and sigwaitinfo.c with exceptions.
1383 * stdlib/Makefile: Compile system.c with exceptions.
1384 * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
1385 * termios/Makefile: Compile tcdrain.c with exceptions.
1386 * sysdeps/generic/lockf.c: Add comment explaining the cancellation
1387 situation.
1388 * sysdeps/generic/pselect.c: Likewise.
1389 * sysdeps/posix/sigpause.c: Likewise.
1390 * sysdeps/posix/system.c: Likewise.
1391 * sysdeps/posix/waitid.c: Likewise.
1392 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
1393 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
1394 * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
1395 INTERNAL_SYSCALL to not use push inside asm statement so that
1396 unwind info is correct around the syscall.
1397 * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
1398 * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
1399
2b450048
AJ
14002003-06-15 Andreas Jaeger <aj@suse.de>
1401
1402 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1403 Add CFI directives.
1404
05c49e6f
AJ
14052003-06-15 Guido Guenther <agx@sigxcpu.org>
1406
1407 * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
1408 create $(objpfx).
1409
a4596570
UD
14102003-06-14 Ulrich Drepper <drepper@redhat.com>
1411
8ba1d429
UD
1412 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
1413 not close.
1414
1415 * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
1416 * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
1417 definition.
1418
4cfde896 1419 * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
a4596570
UD
1420 * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
1421 * inet/Makefile (routines): Add inet6_option.
1422 * inet/inet6_option.c: New file.
1423 * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
1424 inet6_option_init, inet6_option_append, inet6_option_alloc,
1425 inet6_option_next, and inet6_option_find.
1426
25337753
UD
14272003-06-13 Ulrich Drepper <drepper@redhat.com>
1428
a4596570
UD
1429 * inet/netinet/ip6.h (struct ip6_ext): Define.
1430
da4fef4b
UD
1431 * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
1432
25337753
UD
1433 Fixing gcc 3.3 warnings, part II.
1434 * argp/argp-help.c (hol_entry_long_iterate): Always inline.
1435 * elf/dl-load.c (cache_rpath): Don't inline.
1436 * iconvdata/cns11642l2.h: Always inline all functions.
1437 * iconvdata/iso-ir-165.h: Likewise.
1438 * locale/Makefile (aux): Add coll-lookup.
1439 * locale/coll-lookup.c: New file.
1440 * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
1441 (collseq_table_lookup): Likewise.
1442 * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
1443 * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
1444 change.
1445 * posix/regcomp.c: Likewise.
1446 * posix/regexec.c: Likewise.
1447 * locale/programs/3level.h (*_get): Always inline.
1448 * locale/programs/locfile.h: Move definition of handle_copy to...
1449 * locale/programs/locfile.c: ...here.
1450 * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
1451 (obstack_int32_grow_fast): Likewise.
1452 (utf8_encode): Likewise.
1453 (find_element): Avoid aliasing problems.
1454 (insert_value): Likewise.
1455 (collate_read): Likewise.
1456 * nss/getent.c (print_hosts): Don't inline
1457 (print_networks): Likewise.
1458 (print_shadow): Likewise.
1459 (build_doc): Likewise.
1460 * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
1461 inline.
1462 * posix/regcomp.c (re_set_fastmap): Always inline.
1463 (seek_collating_symbol_entry): Likewise.
1464 (lookup_collation_sequence_value): Likewise.
1465 (build_range_exp): Likewise.
1466 (build_collating_symbol): Likewise.
1467 * posix/regexec.c (acquire_init_state_context): Don't inline.
1468 (clean_state_log_if_need): Likewise.
1469 * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
1470 adjust all callers.
1471 (evConsTime): Likewise.
1472 (evAddTime): Likewise.
1473 (evSubTime): Likewise.
1474 (evNowTime): Likewise.
1475 (evTimeSpec): Removed.
1476 (__libc_res_nsend): Avoid aliasing problem.
1477 * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
1478 * sysdeps/unix/sysv/linux/ifreq.c: ...here.
1479 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
1480 Always inline.
1481 (_dl_string_platform): Likewise.
1482 * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
1483 (wcwidth_table_lookup): Likewise.
1484 (wctrans_table_lookup): Likewise.
1485
1486 * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
1487
e6d32996
UD
14882003-06-12 Ulrich Drepper <drepper@redhat.com>
1489
1490 * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
1491
b54aa55d
UD
14922003-05-29 Jim Meyering <jim@meyering.net>
1493
1494 * time/strftime.c (my_strftime) [!defined _NL_CURRENT
1495 && HAVE_STRFTIME]: Use underlying_strftime for %r.
1496 Suggested by Daniel Yacob <locales@geez.org>.
1497
9d1e8e8e
UD
14982003-06-12 Steven Munroe <sjmunroe@us.ibm.com>
1499
1500 * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
1501 @got notation with @toc.
1502 * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
1503 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
1504
ad316adf
UD
15052003-06-12 Ulrich Drepper <drepper@redhat.com>
1506
f60db8ed 1507 * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
2ce1a10f
UD
1508 if only PF_INET address is needed.
1509
1510 * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
1511 case of an error.
1512
ad316adf
UD
1513 * scripts/config.guess: Update from upstream version.
1514 * scripts/config.sub: Likewise.
1515
15162003-06-12 Jakub Jelinek <jakub@redhat.com>
1517
1518 * locale/programs/ld-time.c (time_output): Also copy the era format,
1519 not only the name.
1520
66b110e8
UD
15212003-06-12 H.J. Lu <hongjiu.lu@intel.com>
1522
1523 * posix/transbug.c (run_test): Return 1 for failure.
1524 (do_test): Compare only if run_test is successful.
1525
15262003-06-12 Simon Josefsson <jas@extundo.com>
1527
1528 * argp/argp.h [!__THROW]: Define if undefined.
1529
3bbbaea9
UD
15302003-06-12 Ulrich Drepper <drepper@redhat.com>
1531
1532 * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
1533 more than four parameters.
1534 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
1535
15362003-06-12 Jakub Jelinek <jakub@redhat.com>
1537
1538 * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
1539 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
1540 * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
1541
1542 * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
1543
693ca688
RM
15442003-06-12 Roland McGrath <roland@redhat.com>
1545
1546 * Makerules ($(objpfx)stubs): Rewrite sed magic.
1547
45ec72e8
UD
15482003-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
1549
1550 * posix/regcomp.c (parse_expression): Deliver translation to
1551 build_word_op, and build_charclass.
1552 (build_charclass): Apply translation for character classes too.
1553 (build_word_op): Deliver translation to build_charclass.
66b110e8 1554 * posix/transbug.c: New file.
45ec72e8
UD
1555 * posix/Makefile (tests): Add transbug.
1556
15572003-06-04 Paolo Bonzini <bonzini@gnu.org>
1558
1559 * posix/regexec.c (group_nodes_into_DFAstates): Check for
1560 NEXT_ENDBUF_CONSTRAINT. Move check for constraints which do a
1561 'continue' before the others.
1562
9c7ff11a
UD
15632003-06-11 Ulrich Drepper <drepper@redhat.com>
1564
70e1c930
UD
1565 * dirent/scandir.c (SCANDIR): Reset errno after calling selector
1566 function [PR libc/5045].
1567
2236d6e1
UD
1568 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
1569 also for P4.
1570
9c7ff11a
UD
1571 * time/tzfile.c: Add a couple of __builtin_expect.
1572
1573 Remove warnings gcc 3.3 shows.
1574 * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
1575 * elf/dl-load.c (fillin_rpath): Likewise.
1576 (add_path): Likewise.
1577 * elf/dl-version.c (find_needed): Always inline.
1578 * elf/do-lookup.c (FCT): Don't inline.
1579 * iconv/Makefile: Extend vpath to intl subdir.
1580 (iconvconfig-modules): Add hash-string.
1581 * iconv/gconv_charset.h (strip): Don't inline.
1582 (upstr): Always inline.
1583 Move __gconv_compare_alias prototype to...
1584 * iconv/gconv_int.h: ...here.
1585 * iconv/gconv_db.c: Don't include gconv_charset.h.
1586 * iconv/gconv_conf.c (add_alias): Don't inline.
1587 (insert_module): Likewise.
1588 * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
1589 (internal_ucs4_loop_unaligned): Likewise.
1590 (internal_ucs4_loop_single): Likewise.
1591 (ucs4_internal_loop): Likewise.
1592 (ucs4_internal_loop_unaligned): Likewise.
1593 (ucs4_internal_loop_single): Likewise.
1594 (internal_ucs4le_loop): Always inline.
1595 (internal_ucs4le_loop_unaligned): Likewise.
1596 (internal_ucs4le_loop_single): Likewise.
1597 (ucs4le_internal_loop): Likewise.
1598 (ucs4le_internal_loop_unaligned): Likewise.
1599 (ucs4le_internal_loop_single): Likewise.
1600 * iconv/loop.c: Always inline the defined functions.
1601 * iconvdata/cns11642.h: Likewise.
1602 * iconvdata/cns11642l1.h: Likewise.
1603 * iconvdata/euc-kr.c: Likewise.
1604 * iconvdata/gb2312.h: Likewise.
1605 * iconvdata/jis0201.h: Likewise.
1606 * iconvdata/jis0208.h: Likewise.
1607 * iconvdata/jis0212.h: Likewise.
1608 * iconvdata/jisx0213.h: Likewise.
1609 * iconvdata/ksc5601.h: Likewise.
1610 * iconvdata/utf-7.c (base64): Don't inline.
1611 * include/libc-symbols.h (symbol_set_first_element): Add cast
1612 (symbol_set_end_p): Likewise.
1613 * include/set-hooks (RUN_HOOK): Likewise.
1614 * inet/Makefile (aux): Add ifreq.
1615 * intl/Makefile (aux): Add some entries from routines. Add
1616 hash-string.
1617 * intl/hash-string.c: New file.
1618 * intl/hash-string.h: Remove hash_string definition. Declare
1619 __hash_string.
1620 * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
1621 * iconv/iconvconfig.c (new_name): Likewise.
1622 * intl/dcigettext.c (_nl_find_msg): Likewise.
1623 * intl/loadmsgcat.c (_nl_load_domain): Likewise.
1624 * io/ftw.c (open_dir_stream): Always inline.
1625 (process_entry): Don't inline.
1626 * locale/findlocale.c: Include gconv_int.h.
1627 * locale/setlocale.c (new_composite_name): Don't inline.
1628 * locale/weight.h (findidx): Always inline.
1629 * locale/weightwc.h (findidx): Likewise.
1630 * locale/programs/linereader.c (lr_ignore_rest): Define here.
1631 * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
1632 just declare it.
1633 (lr_getc): Always inline.
1634 (lr_ungetc): Likewise.
1635 * nss/nss_files/files-parse.c (parse_list): Likewise.
1636 * stdio-common/Makefile (aux): Add printf-parsemb and
1637 printf-parsewc.
1638 * stdio-common/_itoa.h (_itoa_word): Always inline.
1639 (_fitoa_word, _fitoa): Don't define here, only declare.
1640 * stdio-common/_itoa.c (_iftoa_word): Add here.
1641 (_fitoa): Likewise.
1642 * stdio-common/_itowa.h (_itowa_word): Always inline.
1643 * stdio-common/printf-parse.h (read_int): Don't inline.
1644 (find_spec): Don't define.
1645 Declare __find_specmb and __find_specwc.
1646 (parse_one_spec): Don't define.
1647 Declare __parse_one_specmb and __parse_one_specwc.
1648 * stdio-common/printf-parsemb.c: New file.
1649 * stdio-common/printf-parsewc.c: New file.
1650 * stdio-common/vfprintf.c: Update calls to find_spec and
1651 parse_one_spec for new names.
1652 * stdio-common/printf-prs.c: Likewise. Define DONT_NEED_READ_INT.
1653 * stdlib/Makefile (aux): Add grouping and groupingwc.
1654 * stdlib/grouping.c: New file.
1655 * stdlib/groupingwc.c: New file.
1656 * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
1657 Just prototype.
1658 * stdlib/rpmatch.c (try): Don't inline.
1659 * stdlib/strtod.c (round_and_return): Don't line.
1660 (str_to_mpn): Likewise.
1661 (__mpn_lshift_1): Always inline. Optimize only for constant count.
1662 Adjust for name change of correctly_grouped_prefix.
1663 * sysdeps/generic/strtol.c: Adjust for name change of
1664 correctly_grouped_prefix.
1665 * string/strxfrm.c (utf8_encode): Don't inline.
1666 * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
1667 * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
1668 * sysdeps/generic/ifreq.c: New file.
1669 * sysdeps/unix/sysv/linux/ifreq.c: New file.
1670 * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
1671 * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
1672 * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
1673 * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
1674 (fde_split): Likewise.
1675 (fde_merge): Likewise.
1676 (end_fde_sort): Likewise.
1677 (init_object): Likewise.
1678 (binary_search_unencoded_fdes): Likewise.
1679 (binary_search_single_encoding_fdes): Likewise.
1680 (binary_search_mixed_encoding_fdes): Likewise.
1681 * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
1682 * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
1683 * sysdeps/posix/sprofil.c (profil_count): Don't inline.
1684 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
1685 Add xstatconv.
1686 * sysdeps/unix/sysv/linux/xstatconv.h: New file.
1687 * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
1688 Export them. Prepend __ to name.
1689 * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
1690 * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
1691 conversion functions.
1692 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
1693 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
1694 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
1695 * sysdeps/unix/sysv/linux/xstat.c: Likewise.
1696 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
1697 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
1698 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
1699 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
1700 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
1701 __statfs_filesize_max, __statfs_symlinks): Define here. __ prepended
1702 to name. Change callers.
1703 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
1704 __statfs_filesize_max, __statfs_symlinks): Don't define here, just
1705 declare.
1706 * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
1707 * time/tzfile.c (decode): Always inline.
1708 * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
1709 Remove cast in tomb function call.
1710 * wcsmbs/wcsrtombs.c Likewise.
1711 * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
1712 tomb function call.
1713
c98d505c
UD
17142003-06-10 Ulrich Drepper <drepper@redhat.com>
1715
1716 * po/zh_CN.po: Update from translation team.
1717
17182003-06-10 Jakub Jelinek <jakub@redhat.com>
1719
1720 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
1721 IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
1722
06120d79
UD
17232003-06-10 Ulrich Drepper <drepper@redhat.com>
1724
66b110e8
UD
1725 * inet/Makefile (aux): Add check_pf.
1726 * include/ifaddrs.h: Add prototype for __check_pf.
1727 * sysdeps/generic/check_pf.c: New file.
1728 * sysdeps/unix/sysv/linux/check_pf.c: New file.
1dc869d1
UD
1729 * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
1730 from no_netlink_support. Export.
1731 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
1732 call __check_pf.
1733
1734 * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
1735
06120d79
UD
1736 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
1737 from getifaddr calls.
1738
54c92465
UD
17392003-06-09 Jakub Jelinek <jakub@redhat.com>
1740
1741 * sysdeps/unix/sysv/linux/kernel-features.h
1742 (__ASSUME_SETRESGID_SYSCALL): Define.
1743 * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
1744 instead of __ASSUME_SETRESUID_SYSCALL.
1745 (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
1746 defined.
1747 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
1748 inline syscall if __NR_setresuid32 is defined.
1749 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
1750 __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
1751 * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
1752 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
1753 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
1754 code handling non-existant setresgid32 syscall with
1755 #if __ASSUME_SETRESGID_SYSCALL == 0.
1756
17572003-06-09 Andreas Schwab <schwab@suse.de>
1758
1759 * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
1760 ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
1761 $(objpfx)rpc-proto.d.
1762 (rpcsvc-dt-files, rpcsvc-depfiles): Define. Include
1763 $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
1764 ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
1765
bcd5f356
UD
17662003-06-08 Ulrich Drepper <drepper@redhat.com>
1767
eae59a56
UD
1768 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
1769 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
1770 defined drop compatibility code.
1771 * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
1772 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
1773 defined drop compatibility code.
1774 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
1775 setresuid32 syscall directly if possible.
1776 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
1777 setresgid32 syscall directly if possible.
f0da6a7d
UD
1778 * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
1779 compliant. Don't change sgid.
1780 * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
1781 compliant. Don't change suid.
1782
bcd5f356
UD
1783 * config.h.in: Add have-forced-unwind.
1784 * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
1785
e1d8e1b7
UD
17862003-06-07 Ulrich Drepper <drepper@redhat.com>
1787
ede0f73a
UD
1788 * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
1789 returned status from child matches.
1790
e1d8e1b7
UD
1791 * Makeconfig (gnulib): Add -lgcc_eh once again.
1792
3a370de8
UD
17932003-06-06 Ulrich Drepper <drepper@redhat.com>
1794
53854476
UD
1795 * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
1796
3a370de8
UD
1797 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
1798 %edx for first parameter. This means no pushl and therefore the
1799 unwind info isn't screwed up.
1800
6f1e513d
RH
18012003-06-04 Richard Henderson <rth@redhat.com>
1802
bcd5f356
UD
1803 * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
1804 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
1805 * sysdeps/alpha/elf/start.S: Likewise. Remove pointless allocation.
1806 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
1807 entry sequence and explicit relocs. Add unwind info for sigreturn
1808 and rt_sigreturn.
1809 * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
f212e8dc 1810
bcd5f356
UD
1811 * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
1812 Annotate some parameters.
1813 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
a56e4568 1814
bcd5f356 1815 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
44c7664f 1816
bcd5f356
UD
1817 * include/libc-symbols.h (symbol_set_declare): Use arrays
1818 of unspecified size.
6f1e513d 1819
cc7ee408
UD
18202003-06-04 Jakub Jelinek <jakub@redhat.com>
1821
1822 * config.make.in (ASFLAGS-config): New.
1823 * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
1824 * configure.in (libc_cv_as_noexecstack): New check.
1825 (ASFLAGS_config): Substitute.
1826
18272003-06-04 Jakub Jelinek <jakub@redhat.com>
1828
1829 * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
1830 hypot, logb): Protect with #ifdef __FAST_MATH__.
1831
18322003-06-04 Thorsten Kukuk <kukuk@suse.de>
1833
1834 * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
1835 #ifdef __FAST_MATH__.
1836
1fb2614a
UD
18372003-06-03 Ulrich Drepper <drepper@redhat.com>
1838
1839 * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
1840 DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
1841 * posix/globtest.sh: Adjust for this change.
1842
332afd9e
UD
1843 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
1844 to get the actual PID value used in the records passed up.
1845 (getifaddrs): Don't initialize nh.pid here.
1846
bb958f59
UD
18472003-06-02 Ulrich Drepper <drepper@redhat.com>
1848
7aebf855
UD
1849 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
1850 optimization.
1851
63ae67a9
UD
1852 * po/zh_CN.po: Update from translation team.
1853
bb958f59 1854 * posix/getconf.c (main): Also recognize names without the
cc7ee408 1855 _POSIX_ prefix.
bb958f59
UD
1856
1857 * elf/Makefile (CFLAGS-dl-lookup.c): Define.
1858
051ed63d
UD
18592003-06-02 Bernd Schmidt <bernds@redhat.com>
1860
1861 * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
1862 ldexpf, ldexpl): Only define if __FAST_MATH__.
1863
0f501b7f
RM
18642003-06-02 Richard C. Bilson <rcbilson@plg.uwaterloo.ca>
1865
1866 Replace hard-coded offsets into struct sigcontext with generated file.
1867 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
1868 * sysdeps/unix/sysv/linux/ia64/Makefile
1869 [$(subdir) = stdlib] (gen-as-const-headers): Add it.
1870 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
1871 defining SC_* macros here.
1872
4a5f21e4
RM
18732003-06-02 Jakub Jelinek <jakub@redhat.com>
1874
1875 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
1876
32c1ba12
RM
18772003-06-01 Jakub Jelinek <jakub@redhat.com>
1878
1879 * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
1880
80b54217
UD
18812003-06-01 Ulrich Drepper <drepper@redhat.com>
1882
6f1acb30
UD
1883 * test-skeleton.c (main): Request getopt to not reorder the
1884 command line.
1885
80b54217
UD
1886 * elf/Makefile (CFLAGS-dl-runtime.c): Define.
1887
1888 * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
1889 stpncpy.
1890
31195be2
UD
18912003-05-31 Ulrich Drepper <drepper@redhat.com>
1892
1893 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
1894
06e2e0a7
UD
18952003-05-31 Jakub Jelinek <jakub@redhat.com>
1896
1897 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
1898 New function.
1899 (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
1900 RESOLVE_CONFLICT_FIND_MAP. If RESOLVE_CONFLICT_FIND_MAP is defined,
1901 call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
1902
49b65043
UD
19032003-05-31 Ulrich Drepper <drepper@redhat.com>
1904
06e2e0a7
UD
1905 * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
1906 CFI directives.
1907
1908 * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
b6da933b 1909
49b65043
UD
1910 * libio/fileops.c (_IO_file_open): Don't mark as inline.
1911
b6da933b 1912 * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
49b65043
UD
1913 attribute used.
1914
5d4f57bd
UD
19152003-05-30 Ulrich Drepper <drepper@redhat.com>
1916
1917 * scripts/config.guess: Update from master copy.
1918 * scripts/config.sub: Likewise.
1919
d38145ff
AJ
19202003-05-30 Guido Guenther <agx@sigxcpu.org>
1921
1922 * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
1923 SETUP_GP64 and friends.
1924 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
1925 names in internal_syscall{6,7}.
1926 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
1927 * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
1928 number of syscall arguments.
1929 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1930 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
1931 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
1932
2b1c0eea
AJ
19332003-05-30 Andreas Jaeger <aj@suse.de>
1934
1935 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1936 Add CFI directives.
1937
1938 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
1939 directives.
1940
1941 * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
1942
1943 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
1944 Add CFI directives.
1945
284bdc42
UD
19462003-05-30 Jakub Jelinek <jakub@redhat.com>
1947
1948 * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
1949 SHARED.
1950
73f082a2
RM
19512003-05-11 Andreas Schwab <schwab@suse.de>
1952
1953 * Makerules: Always use -MP together with -MD.
1954 (sed-remove-dotot): Substitute $(..) also at start of line.
1955 ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
1956 Generated defines with a single compiler call.
1957 Use $(sed-remove-dotdot).
1958 * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
1959 of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
1960 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
1961 Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
1962 * sysdeps/unix/sysv/linux/mips/Makefile
1963 ($(objpfx)syscall-%.h): Likewise.
1964
862ef982
RM
19652003-05-28 Roland McGrath <roland@redhat.com>
1966
1967 * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
1968
fe2dcbcc
RM
19692003-05-26 Aldy Hernandez <aldyh@redhat.com>
1970
1971 * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
1972
f85a9e61
RM
19732003-05-28 Roland McGrath <roland@redhat.com>
1974
1975 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
1976 rt_sigprocmask system call.
1977 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
1978 From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
1979
bc4647a1
UD
19802003-05-28 Ulrich Drepper <drepper@redhat.com>
1981
1982 * include/libc-symbols.h: Define hidden attribute for real also if
1983 LIBC_NONSHARED is defined. Patch by Jakub Jelinek.
1984
1985 * csu/Makefile: Add rules to build Scrt1.o.
1986 * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
2bcba929 1987 * sysdeps/x86_64/elf/start.S: Likewise.
bc4647a1 1988
40a54e4d
UD
19892003-05-27 Jakub Jelinek <jakub@redhat.com>
1990
1991 * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
1992 pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
1993 * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
1994 pa_short_int, pa_u_short_int and pa_float.
1995
19962003-05-26 Jakub Jelinek <jakub@redhat.com>
1997
1998 * libio/strops.c (_IO_str_init_static): Change into a wrapper around
1999 _IO_str_init_static_internal.
2000 (_IO_str_init_static_internal): Moved from _IO_str_init_static,
2001 change size argument to _IO_size_t, don't limit sprintf to 64M.
2002 (_IO_str_init_readonly): Call _IO_str_init_static_internal.
2003 * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
2004 _IO_size_t, don't limit swprintf to 256M.
2005 (_IO_wstr_init_readonly): Remove.
2006 * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
2007 Adjust prototypes.
2008 (_IO_wstr_init_readonly): Remove prototype.
2009 * libio/iovsprintf.c (_IO_vsprintf): Use
2010 _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
2011 * libio/iovsscanf.c (_IO_vsscanf): Likewise.
2012 * libio/memstream.c (open_memstream): Likewise.
2013 * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
2014 * libio/vasprintf.c (_IO_vasprintf): Likewise.
2015 * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
2016 * stdio-common/tst-sprintf.c (main): Add new test.
2017
6458d814
UD
20182003-05-26 Ulrich Drepper <drepper@redhat.com>
2019
2020 * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
2021 other implementation in respect of multiple uses of parameter with
2022 different types.
2023
69431c9a
UD
20242003-05-25 Ulrich Drepper <drepper@redhat.com>
2025
2026 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2027 __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
2028
5550a8fa
AJ
20292003-05-22 Andreas Jaeger <aj@suse.de>
2030
2031 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
2032 directives.
2033 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
2034 * sysdeps/x86_64/strtok.S: Likewise.
2035
3087604f
AJ
20362003-05-20 Guido Guenther <agx@sigxcpu.org>
2037
2038 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
2039 to -60 and define SI_TKILL.
2040
cca4aa58
UD
20412003-05-21 H.J. Lu <hongjiu.lu@intel.com>
2042
69431c9a 2043 * math/test-fenv.c (feexcp_nomask_test): Fix comment.
cca4aa58
UD
2044 (feexcp_mask_test): Likewise.
2045
6d1d0720
UD
20462003-05-21 Ulrich Drepper <drepper@redhat.com>
2047
84c9409e
UD
2048 * locale/programs/locale.c (main): Fix typo in last patch.
2049
6d1d0720
UD
2050 * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
2051 __init_array_start, __init_array_end, __fini_array_start, and
2052 __fini_array_end as hidden.
2053
2e119864
UD
20542003-05-21 Petter Reinholdtsen <pere@hungry.com>
2055
2056 * locale/programs/locale.c (main): Report an error if setlocale()
2057 fails [PR libc/2254].
2058
20592003-05-21 Jakub Jelinek <jakub@redhat.com>
2060
2061 * sysdeps/unix/sysv/linux/s390/system.c: New file.
2062
20632003-05-21 Jakub Jelinek <jakub@redhat.com>
2064
2065 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
2066 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
2067 LOADARGS_6): Don't error if syscall argument is a string literal.
2068 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
2069 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
2070 LOADARGS_6): Likewise.
2071
50189569
AJ
20722003-05-21 Andreas Jaeger <aj@suse.de>
2073
2074 * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
2075 cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
2076 cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
2077
2078 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
2079 (ENTRY): Likewise.
2080 (END): Likewise.
2081
2082 * configure.in: Test for asm cfi directives.
2083
2084 * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
2085
4bd2d98c
AJ
20862003-05-17 Andreas Jaeger <aj@suse.de>
2087
2384fe20
AJ
2088 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
2089
4bd2d98c
AJ
2090 * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
2091
7ffac51f
UD
20922003-05-16 Ulrich Drepper <drepper@redhat.com>
2093
0a8730cb
UD
2094 * rt/Makefile (tests): Add tst-clock_nanosleep.
2095 * rt/tst-clock_nanosleep.c: New file.
2096 * posix/Makefile (tests): Add tst-nanosleep.
2097 * posix/tst-nanosleep.c: New file.
2098
a8078760
UD
2099 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
2100
23ae6451
UD
2101 * include/features.h (__USE_XOPEN2K): Define also for
2102 _POSIX_C_SOURCE>=200112L.
2103
bc58c14e
UD
2104 * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
2105 SI_TKILL code into SI_USER.
2106 * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
2107
7ffac51f
UD
2108 * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
2109
63c7a7e8
UD
21102003-05-15 Jakub Jelinek <jakub@redhat.com>
2111
2112 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
2113 Remove sym argument, always use refsym.
2114 (__process_machine_rela): Adjust callers.
2115 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
2116 Likewise.
2117 * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
2118 Adjust prototype.
2119 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
2120
115a45a7
UD
21212003-05-15 Ulrich Drepper <drepper@redhat.com>
2122
2123 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
2124 (DL_NEED_SYSINFO -> NEED_DL_SYSINFO). If aux value is not known
2125 print numeric values.
2126
b523afae
UD
21272003-05-12 Thorsten Kukuk <kukuk@suse.de>
2128
2129 * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
2130
f0725b01
UD
21312003-05-14 Andreas Schwab <schwab@suse.de>
2132
2133 * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
2134
81f3ac4c
UD
21352003-05-14 Jakub Jelinek <jakub@redhat.com>
2136
2137 * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
2138 even if no DT_NEEDED is present.
2139
c9300aef
UD
21402003-05-13 David Mosberger <davidm@hpl.hp.com>
2141
2142 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
2143 2003-03-27: setjmp is NOT a leaf-routine (due to the call to
2144 __sigjmp_save) so we can't keep the saved unat value in a scratch
2145 register (r16). Use loc2 instead.
2146
d7234d9f
UD
21472003-05-13 Ulrich Drepper <drepper@redhat.com>
2148
1ad318d3
UD
2149 * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
2150 binaries it has to be relocatable.
2151
d7234d9f
UD
2152 * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
2153
7158eae4
UD
21542003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
2155
2156 * sysdeps/powerpc/bits/atomic.h
2157 (__arch_compare_and_exchange_bool_8_rel): Define.
2158 (__arch_compare_and_exchange_bool_16_rel): Define.
2159 (__ARCH_REL_INSTR): Define if not already defined.
2160 (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
2161 (__arch_atomic_decrement_if_positive_32):
2162 Add "memory" to clobber list.
2163 (__arch_compare_and_exchange_val_32_acq): Remove release sync.
2164 (__arch_compare_and_exchange_val_32_rel): Define.
2165 (__arch_atomic_exchange_32): Remove.
2166 (__arch_atomic_exchange_32_acq): Define.
2167 (__arch_atomic_exchange_32_rel): Define.
2168 (atomic_compare_and_exchange_val_rel): Define.
2169 (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
2170 (atomic_exchange_rel): Define.
2171 * sysdeps/powerpc/powerpc32/bits/atomic.h
2172 (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
2173 (__arch_compare_and_exchange_bool_32_rel): Define.
2174 (__arch_compare_and_exchange_bool_64_rel): Define.
2175 (__arch_compare_and_exchange_val_64_rel): Define.
2176 (__arch_atomic_exchange_64): Remove.
2177 (__arch_atomic_exchange_64_acq): Define.
2178 (__arch_atomic_exchange_64_rel): Define.
2179 * sysdeps/powerpc/powerpc64/bits/atomic.h
2180 (__arch_compare_and_exchange_bool_32_rel): Define.
2181 (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
2182 (__arch_compare_and_exchange_bool_64_rel): Define.
2183 (__arch_compare_and_exchange_val_64_acq): Remove release sync.
2184 (__arch_compare_and_exchange_val_64_rel): Define.
2185 (__arch_atomic_exchange_64): Remove.
2186 (__arch_atomic_exchange_64_acq): Define.
2187 (__arch_atomic_exchange_64_rel): Define.
2188 (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
2189 (__arch_atomic_decrement_if_positive_64):
2190 Add "memory" to clobber list.
2191 [!UP](__ARCH_REL_INSTR): Define as lwsync.
2192
edf205d5
UD
21932003-05-11 Andreas Schwab <schwab@suse.de>
2194
2195 * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
2196
21972003-05-11 Ulrich Drepper <drepper@redhat.com>
2198
2199 * time/tst-strftime.c (do_test): Add tests for - flag.
2200
22012003-05-11 Jim Meyering <jim@meyering.net>
2202
2203 * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
7158eae4 2204 the space-padded-by-default conversion specifiers, %e, %k, %l.
edf205d5 2205
8403786b
AS
22062003-05-11 Andreas Schwab <schwab@suse.de>
2207
2208 * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
2209
0e563cd6
UD
22102003-05-10 Ulrich Drepper <drepper@redhat.com>
2211
2212 * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
2213 already defined and when really needed.
2214 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
2215
d9997a45
UD
22162003-05-09 Thorsten Kukuk <kukuk@suse.de>
2217
2218 * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
2219 headers, add defines from kernel header, move it from here...
2220 * inet/netinet/igmp.h: ... to here.
2221 * inet/Makefile (headers): Add netinet/igmp.h.
2222 * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
2223 * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
2224
22252003-05-10 Ulrich Drepper <drepper@redhat.com>
2226
2227 * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
2228 use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
2229
22302003-05-09 Thorsten Kukuk <kukuk@suse.de>
2231
2232 * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
2233 (remove __THROW from possible cancellation points).
2234
de85d40b
UD
22352003-05-10 Ulrich Drepper <drepper@redhat.com>
2236
d067c97e 2237 * posix/sched.h (CPU_SETSIZE): Define.
de85d40b 2238
880867a4
UD
22392003-05-09 Ulrich Drepper <drepper@redhat.com>
2240
c7652699
UD
2241 * Makeconfig (gnulib): Remove -lgcc_eh again.
2242
949ec764
UD
2243 * posix/sched.h: Change prototypes of sched_getaffinity and
2244 sched_setaffinity. Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
2245 * sysdeps/generic/sched_getaffinity.c: Adjust definition.
2246 * sysdeps/generic/sched_setaffinity.c: Likewise.
2247 * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
2248 __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
2249 __CPU_CLR, and __CPU_ISSET.
2250 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
2251 * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
2252 * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
2253
2254 * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
2255 (atomic_exchange_rel): New #define.
2256 * sysdeps/ia64/bits/atomic.h: Likewise.
2257 * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
2258 atomic_exchange.
2259 * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
2260 * sysdeps/powerpc/bits/atomic.h: Likewise.
2261 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
2262 * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
2263 * sysdeps/x86_64/bits/atomic.h: Likewise.
2264 * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
2265
880867a4
UD
2266 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
2267
92d83c72
UD
22682003-05-08 Ulrich Drepper <drepper@redhat.com>
2269
2270 * malloc/thread-m.h: Remove special handling of thread_atfork if
2271 HAVE_register_atfork_malloc is defined.
2272
7618d44c
AJ
22732003-05-07 Andreas Jaeger <aj@suse.de>
2274
2275 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
2276 information.
2277
14a2bd4b
UD
22782003-05-06 Ulrich Drepper <drepper@redhat.com>
2279
2280 * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
2281 * libio/oldiofopen.c (_IO_old_fopen): Likewise.
2282 * libio/libioP.h: Declare _IO_old_init.
2283 * libio/genops.c (_IO_no_init): Split in two. New function
2284 _IO_old_init.
2285
9946f75a
UD
22862003-05-05 Ulrich Drepper <drepper@redhat.com>
2287
be4d8038
UD
2288 * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
2289 variable.
2290 (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
2291 is nonzero.
2292 * include/unistd.h: Declare __libc_enable_secure_decided.
2293 * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
2294 and AT_EGID. If all found, set __libc_enable_secure and
2295 __libc_enable_secure_decided.
2296
9946f75a
UD
2297 * sysdeps/generic/libc-start.c [!SHARED]: Call
2298 __libc_check_standard_fds after __libc_init_first.
2299
955a7039
RM
23002003-05-05 Roland McGrath <roland@redhat.com>
2301
2302 * Makerules (common-before-compile): New variable.
2303 ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
2304 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise. Move this rule
2305 to after all setting of before-compile.
2306
4661a153
UD
23072003-05-05 Jakub Jelinek <jakub@redhat.com>
2308
2309 * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
2310 __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
2311 * sysdeps/powerpc/powerpc32/bits/atomic.h
2312 (__arch_compare_and_exchange_val_64_acq): Likewise.
2313 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
2314 (__arch_compare_and_exchange_val_8_acq,
2315 __arch_compare_and_exchange_val_16_acq,
2316 __arch_compare_and_exchange_val_64_acq): Likewise.
2317 * sysdeps/sparc/sparc64/bits/atomic.h
2318 (__arch_compare_and_exchange_val_8_acq,
2319 __arch_compare_and_exchange_val_16_acq): Likewise.
2320 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
2321 __arch_compare_and_exchange_val_16_acq,
2322 __arch_compare_and_exchange_val_64_acq): Likewise.
2323 * sysdeps/unix/sysv/linux/sh/bits/atomic.h
2324 (__arch_compare_and_exchange_val_64_acq): Likewise.
2325 * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
2326 up warning.
2327 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
2328
2329 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2330 (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
2331 Return long instead of int.
2332 (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
2333 0xfffff001u with -4095UL.
2334
461e1ce0
AJ
23352003-05-05 Andreas Jaeger <aj@suse.de>
2336
c7c8ca97
AJ
2337 * sysdeps/x86_64/fpu_control.h: New from i386.
2338
461e1ce0
AJ
2339 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
2340 Define if not defined.
2341
955a7039
RM
2342 * sunrpc/Makefile (generated-dirs): New variable.
2343 * resolv/Makefile (generated): New variable.
0696c2c0 2344
4b0b5882
RM
23452003-05-04 Roland McGrath <roland@redhat.com>
2346
c6696b79
RM
2347 * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
2348 Depend on $(before-compile).
2349
4b0b5882
RM
2350 * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
2351 pattern rule. The implicit rule could be ruled out when $(objpfx)
2352 didn't exist at the time of its consideration (ugh!).
2353
2354 * Makerules (+make-deps): Fix target matching.
2355 Use $(sed-remove-dotdot).
2356
a12ce44f
UD
23572003-05-03 Ulrich Drepper <drepper@redhat.com>
2358
2359 * nscd/nscd.c (main): Parse config file right after parsing
2360 parameters. Then, if get_stats is true, call receive_print_stats.
2361 Drop parameter from nscd_init call.
2362 (get_stats): New variable.
2363 (parse_opt): Set get_stats, don't call receive_print_stats here.
2364 * nscd/nscd.h: Declare dbs, stat_user, and stat_uid. Adjust nscd_init
2365 prototype.
2366 * nscd/connections.c (stat_user, stat_uid): New variables.
2367 (dbs): Make global.
2368 (nscd_init): Don't read configuration file here. Drop parameter.
2369 (handle_request): Cleanup handling of non-database lookup requests.
2370 * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
2371 Get UID of the specified user. Use xstrdup instead of strdup.
2372 * nscd/nscd_stat.c (receive_print_stats): Check UID. If not zero,
2373 check stat_user.
2374 * nscd/Makefile (nscd-modules): Add xstrdup.
2375 * nscd/nscd.conf: Document stat-user entry.
2376
23772003-05-03 H.J. Lu <hongjiu.lu@intel.com>
2378
2379 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
2380 if not defined.
2381
f866314b
UD
23822003-04-22 Roland McGrath <roland@redhat.com>
2383
2384 * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
2385 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
2386 dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
2387 * elf/dl-support.c: Update defn.
2388 * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
2389 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
2390 Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
2391 (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
2392 * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
2393 set, set up a link_map for the preloaded, prelinked object.
2394
05d3d580
RM
23952003-05-03 Roland McGrath <roland@redhat.com>
2396
2397 * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
2398 * stdio-common/Makefile: ... not here.
2399
2400 * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
2401 * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
2402
0a8fe089
UD
24032003-05-02 Ulrich Drepper <drepper@redhat.com>
2404
ba080fa6
UD
2405 * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
2406
90a315b0
UD
2407 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
2408
f903b515
UD
2409 * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
2410 comparing ftab elements.
2411 (_dl_unmap): Fix typo in test.
ceb927c9
UD
2412 (_dl_make_fptr): Fix typos introduced in last change.
2413
0a8fe089
UD
2414 * sysdeps/generic/dl-fptr.c: Put back one optimization from the
2415 original patch. Use non-exported symbols. Mark translatable
2416 strings. Pretty printing.
2417
a0c8a249
RM
24182003-05-02 Roland McGrath <roland@redhat.com>
2419
2420 * Makerules (do-stamp): Do $(make-target-directory).
2421
a92026c9
UD
24222003-04-07 H.J. Lu <hjl@gnu.org>
2423
2424 * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
2425
24262003-04-03 H.J. Lu <hjl@gnu.org>
2427
2428 * sysdeps/ia64/dl-fptr.c: Moved to ...
2429 * sysdeps/generic/dl-fptr.c: Here.
2430
2431 * sysdeps/generic/dl-fptr.h: New.
2432 * sysdeps/ia64/dl-fptr.h: New.
2433
2434 * sysdeps/ia64/dl-symaddr.c: Moved to ...
2435 * sysdeps/generic/dl-symaddr.c: here.
2436
2437 * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
2438 (IA64_BOOT_FPTR_TABLE_LEN): Removed.
2439 (ia64_fdesc): Likewise.
2440 (ia64_fdesc_table): Likewise.
2441 (__ia64_make_fptr): Likewise.
2442 (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
2443 with _dl_boot_fptr_table.
2444 (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
2445 `struct fdesc'.
2446 (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
2447
362f5ae2
RM
24482003-05-01 Roland McGrath <roland@redhat.com>
2449
2450 * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
2451 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
2452
2453 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
2454 Use $(make-target-directory).
2455 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
2456
2457 * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
2458 (compile-command.S): Don't use ifndef. Append $(compile-mkdep-flags).
2459 (compile-command.s, compile-command.c): Likewise.
2460 ($(objpfx)%.d): All such pattern rules removed.
2461 ($(+sysdir_pfx)sysd-rules): Don't generate them.
2462 ($(common-objpfx)dummy.d): Target removed.
2463 (make-dummy-dep): Variable removed.
2464 (generate-md5): Likewise.
2465 (%.d: %.dt): New pattern rule.
2466 (+depfiles): Use $(wildcard) function to get just existing *.d files
2467 and .d files for existing *.dt files.
2468 (common-clean): Remove all *.d and *.dt files.
2469 (before-compile): Add $(objpfx). when it doesn't exist,
2470 regardless of $(no_deps).
2471 * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
2472 (rtld-depfiles): Use .os.d instead of .d names.
2473 Include existing *.d files and .d files for existing *.dt files.
2474
2475 * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
2476 Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
2477
2478 * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
2479 Do s-*.d includes only if we have some syscall routines in this subdir.
2480
2481 * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
2482 @nobits. The former is accepted by gas on any ELF platform.
2483
a234e27d
UD
24842003-05-01 Ulrich Drepper <drepper@redhat.com>
2485
cf20f569
UD
2486 * sysdeps/unix/sysv/linux/semtimedop.c: New file.
2487
a234e27d
UD
2488 * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
2489
24902003-04-29 Andreas Schwab <schwab@suse.de>
2491
2492 * string/test-strcat.c (do_one_test): Fix attribute name.
2493
27b301e4
AO
24942003-04-30 Alexandre Oliva <aoliva@redhat.com>
2495
2496 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
2497 uc_flags long for all ABIs.
2498
f545f1df
AJ
24992003-04-30 Andreas Jaeger <aj@suse.de>
2500
2501 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
2502 (DR_CONTROL_RESERVED): Use correct value for 64-bit.
2503 Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
2504 Add bi-arch support.
2505
f773ff64
UD
25062003-04-30 Ulrich Drepper <drepper@redhat.com>
2507
2508 * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
2509 (__posix_memalign): Use __memalign_internal instead of memalign.
2510
20792f99
RM
25112003-04-29 Roland McGrath <roland@redhat.com>
2512
2513 * configure.in: Search for AUTOCONF unconditionally.
2514 Just don't complain about missing it under --without-cvs.
20792f99
RM
2515
2516 * include/libc-symbols.h (__symbol_set_attribute): New macro,
2517 give hidden for [SHARED] and weak for [! SHARED].
2518 (symbol_set_declare): Use that. Never need weak_extern these days.
2519 * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
2520 Depend on $(..)Makerules.
2521
85dd1003
UD
25222003-04-29 Ulrich Drepper <drepper@redhat.com>
2523
153da599
UD
2524 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
2525 variants of socket, bind, recvmsg, and sendto.
2526
85dd1003
UD
2527 * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
2528
2529 * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
2530 * signal/sigaddset.c: Add libc_hidden_def.
2531 * signal/sigdelset.c: Likewise.
2532
25332003-04-29 Jakub Jelinek <jakub@redhat.com>
2534
2535 * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
2536 to the end of the file.
2537
2538 * configure.in: Change __oline__ to $LINENO.
2539 (HAVE_BUILTIN_REDIRECTION): New check.
2540 * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
2541 * include/libc-symbols.h (libc_hidden_builtin_proto,
2542 libc_hidden_builtin_def, libc_hidden_builtin_weak,
2543 libc_hidden_builtin_ver): Define.
2544 * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
2545 strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
2546 strspn, strstr): Add libc_hidden_builtin_proto.
2547 * intl/plural.y: Include string.h.
2548 * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
2549 libc_hidden_builtin_def.
2550 * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
2551 * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
2552 * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
2553 * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
2554 * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
2555 * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
2556 * sysdeps/alpha/memchr.S (memchr): Likewise.
2557 * sysdeps/alpha/memset.S (memset): Likewise.
2558 * sysdeps/alpha/strcat.S (strcat): Likewise.
2559 * sysdeps/alpha/strchr.S (strchr): Likewise.
2560 * sysdeps/alpha/strcmp.S (strcmp): Likewise.
2561 * sysdeps/alpha/strcpy.S (strcpy): Likewise.
2562 * sysdeps/alpha/strlen.S (strlen): Likewise.
2563 * sysdeps/alpha/strncmp.S (strncmp): Likewise.
2564 * sysdeps/alpha/strncpy.S (strncpy): Likewise.
2565 * sysdeps/alpha/strrchr.S (strrchr): Likewise.
2566 * sysdeps/arm/memset.S (memset): Likewise.
2567 * sysdeps/arm/strlen.S (strlen): Likewise.
2568 * sysdeps/generic/memchr.c (memchr): Likewise.
2569 * sysdeps/generic/memcpy.c (memcpy): Likewise.
2570 * sysdeps/generic/memmove.c (memmove): Likewise.
2571 * sysdeps/generic/memset.c (memset): Likewise.
2572 * sysdeps/generic/strcat.c (strcat): Likewise.
2573 * sysdeps/generic/strchr.c (strchr): Likewise.
2574 * sysdeps/generic/strcmp.c (strcmp): Likewise.
2575 * sysdeps/generic/strcpy.c (strcpy): Likewise.
2576 * sysdeps/generic/strcspn.c (strcspn): Likewise.
2577 * sysdeps/generic/strlen.c (strlen): Likewise.
2578 * sysdeps/generic/strncmp.c (strncmp): Likewise.
2579 * sysdeps/generic/strncpy.c (strncpy): Likewise.
2580 * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
2581 * sysdeps/generic/strrchr.c (strrchr): Likewise.
2582 * sysdeps/generic/strspn.c (strspn): Likewise.
2583 * sysdeps/generic/strstr.c (strstr): Likewise.
2584 * sysdeps/i386/i486/strcat.S (strcat): Likewise.
2585 * sysdeps/i386/i486/strlen.S (strlen): Likewise.
2586 * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
2587 * sysdeps/i386/i586/memset.S (memset): Likewise.
2588 * sysdeps/i386/i586/strchr.S (strchr): Likewise.
2589 * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
2590 * sysdeps/i386/i586/strlen.S (strlen): Likewise.
2591 * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
2592 * sysdeps/i386/i686/memmove.S (memmove): Likewise.
2593 * sysdeps/i386/i686/memset.S (memset): Likewise.
2594 * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
2595 * sysdeps/i386/memchr.S (memchr): Likewise.
2596 * sysdeps/i386/memset.c (memset): Likewise.
2597 * sysdeps/i386/strchr.S (strchr): Likewise.
2598 * sysdeps/i386/strcspn.S (strcspn): Likewise.
2599 * sysdeps/i386/strlen.c (strlen): Likewise.
2600 * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
2601 * sysdeps/i386/strrchr.S (strrchr): Likewise.
2602 * sysdeps/i386/strspn.S (strspn): Likewise.
2603 * sysdeps/ia64/memchr.S (memchr): Likewise.
2604 * sysdeps/ia64/memcpy.S (memcpy): Likewise.
2605 * sysdeps/ia64/memmove.S (memmove): Likewise.
2606 * sysdeps/ia64/memset.S (memset): Likewise.
2607 * sysdeps/ia64/strcat.S (strcat): Likewise.
2608 * sysdeps/ia64/strchr.S (strchr): Likewise.
2609 * sysdeps/ia64/strcmp.S (strcmp): Likewise.
2610 * sysdeps/ia64/strcpy.S (strcpy): Likewise.
2611 * sysdeps/ia64/strlen.S (strlen): Likewise.
2612 * sysdeps/ia64/strncmp.S (strncmp): Likewise.
2613 * sysdeps/ia64/strncpy.S (strncpy): Likewise.
2614 * sysdeps/m68k/memchr.S (memchr): Likewise.
2615 * sysdeps/m68k/strchr.S (strchr): Likewise.
2616 * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
2617 * sysdeps/mips/mips64/memset.S (memset): Likewise.
2618 * sysdeps/mips/memcpy.S (memcpy): Likewise.
2619 * sysdeps/mips/memset.S (memset): Likewise.
2620 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
2621 * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
2622 * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
2623 * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
2624 * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
2625 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
2626 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
2627 * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
2628 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
2629 * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
2630 * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
2631 * sysdeps/powerpc/strcat.c (strcat): Likewise.
2632 * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
2633 * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
2634 * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
2635 * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
2636 * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
2637 * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
2638 * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
2639 * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
2640 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
2641 * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
2642 * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
2643 * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
2644 * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
2645 * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
2646 * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
2647 * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
2648 * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
2649 * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
2650 * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
2651 * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
2652 * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
2653 * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
2654 * sysdeps/sh/memcpy.S (memcpy): Likewise.
2655 * sysdeps/sh/memset.S (memset): Likewise.
2656 * sysdeps/sh/strlen.S (strlen): Likewise.
2657 * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
2658 * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
2659 * sysdeps/s390/s390-32/memset.S (memset): Likewise.
2660 * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
2661 * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
2662 * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
2663 * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
2664 * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
2665 * sysdeps/s390/s390-64/memset.S (memset): Likewise.
2666 * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
2667 * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
2668 * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
2669 * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
2670 * sysdeps/x86_64/memset.S (memset): Likewise.
2671 * sysdeps/x86_64/strcat.S (strcat): Likewise.
2672 * sysdeps/x86_64/strchr.S (strchr): Likewise.
2673 * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
2674 * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
2675 * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
2676 * sysdeps/x86_64/strlen.S (strlen): Likewise.
2677 * sysdeps/x86_64/strspn.S (strspn): Likewise.
2678 * string/string-inlines.c: Move...
2679 * sysdeps/generic/string-inlines.c: ...here.
2680 (__memcpy_g, __strchr_g): Remove.
2681 (__NO_INLINE__): Define before including <string.h>,
2682 undefine after. Include bits/string.h and bits/string2.h.
2683 * sysdeps/i386/i486/string-inlines.c: New file.
2684 * sysdeps/i386/string-inlines.c: New file.
2685 * sysdeps/i386/i486/Versions: Remove.
2686 All GLIBC_2.1.1 symbols moved...
2687 * sysdeps/i386/Versions (libc): ...here.
2688
e40468fa
UD
26892003-04-29 Ulrich Drepper <drepper@redhat.com>
2690
2691 * sysdeps/i386/fpu/Makefile: New file.
2692 * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
2693 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
2694 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
2695 * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
2696 [PR libc/4987].
2697
12c80513
UD
26982003-04-28 Ulrich Drepper <drepper@redhat.com>
2699
2700 * nscd/nscd_getgr_r.c: Compact code a bit. Add some __builtin_expect.
2701 * nscd/nscd_getpw_r.c: Likewise.
2702 * nscd/nscd_gethst_r.c: Likewise.
2703
fe453812
UD
27042003-04-27 Ulrich Drepper <drepper@redhat.com>
2705
2706 * nscd/pwdcache.c: Initialize .version element in result.
2707 * nscd/grpcache.c: Likewise.
2708 * nscd/pwdcache.c: Likewise.
2709
bf7725a9
RM
27102003-04-27 Andreas Schwab <schwab@suse.de>
2711
2712 * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
2713 subdirectory.
2714
26576375
AS
27152003-04-27 Andreas Schwab <schwab@suse.de>
2716
2717 * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
2718
a7ed068e
UD
27192003-04-27 Ulrich Drepper <drepper@redhat.com>
2720
a16e3585
UD
2721 * nscd/connections.c (client_queued): New variable.
2722 (nscd_run): Revamp the loop. Don't call poll except for cleanup
2723 threads. Keep track of the number of delays caused because of busy
2724 worker threads.
2725 * nscd/nscd.h: Declare client_queued.
2726 * nscd/nscd_stat.c: Transmit and print client_queued information.
2727
76352f64
UD
2728 * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
2729
a7ed068e
UD
2730 * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
2731 define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
2732
541765b6
UD
27332003-04-26 Ulrich Drepper <drepper@redhat.com>
2734
2735 * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
2736 tracking of freed memory in static TLS block.
2737 * elf/Makefile: Add rules to build and run tst-tls13.
2738 * elf/tst-tls13.c: New file.
2739 * elf/tst-tlsmod13.c: New file.
2740 * elf/tst-tlsmod13a.c: New file.
2741
2742 * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
2743
2744 * elf/dl-reloc.c: Pretty printing.
2745
358cad7c
RM
27462003-04-26 Roland McGrath <roland@redhat.com>
2747
2748 * Makerules ($(common-objpfx)shlib.lds): New target.
2749 (common-generated): Add it.
2750 (build-shlib, build-module): Use that instead of generating every time.
2751 ($(common-objpfx)libc.so): Depend on it.
2752 (lib%.so rule): Likewise.
2753 (build-module-helper-objlist): Remove %.lds.
5ae340e3 2754 (LDSEDCMD-c.so): Variable removed.
358cad7c
RM
2755 * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
2756 Depend on $(common-objpfx)shlib.lds.
2757 * dlfcn/Makefile ($(test-modules)): Likewise.
2758
d3f063bc
RM
27592003-04-26 Roland McGrath <roland@frob.com>
2760
2761 * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
2762
06a04e09
UD
27632003-04-26 Andreas Schwab <schwab@suse.de>
2764
2765 * elf/dl-close.c (remove_slotinfo): Fix missing parens.
2766
f24dca48
UD
27672003-04-25 Ulrich Drepper <drepper@redhat.com>
2768
c86e6aec
UD
2769 * nscd/cache.c (cache_search): Keep track of how many chain links
2770 we searched and update table statistics.
2771 (cache_add): Keep track of how many values are in the table.
2772 (prune_cache): Likewise. Keep track of locking success.
2773 Print messages about removed entries in separate pass.
2774 * nscd/connections.c (handle_request): Don't print debug message here.
2775 The caller will do it. Keep track of locking success.
2776 (nscd_run): Print debug message. Also print PID of the client process.
2777 * nscd/nscd.c (start_time): New variable.
2778 (main): Remember start time.
2779 * nscd/nscd.h: Declare start_time.
2780 (struct database): Add more members for new statistics.
2781 * nscd/nscd_stat.c: Add support for sending, receiving, and printing
2782 of new statistics.
2783
f24dca48
UD
2784 * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
2785
299601a1
UD
27862003-04-22 Jakub Jelinek <jakub@redhat.com>
2787
2788 * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
2789 * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
2790 * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
2791 NO_TLS_OFFSET.
2792 * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
2793 * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
2794 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
2795 * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
2796 TLS_TCB_SIZE.
2797
925c3c5c
UD
27982003-04-24 Ulrich Drepper <drepper@redhat.com>
2799
29bfc945
UD
2800 * nss/getent.c: Implement alternative host database lookup via
2801 getaddrinfo.
2802
925c3c5c
UD
2803 * include/ifaddrs.h: New file.
2804 * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
2805 AI_ADDRCONFIG...
2806 * resolv/netdb.h: ...here.
2807 * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
2808 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
2809 * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
2810 AI_ADDRCONFIG.
2811
4c513679
RM
28122003-04-24 Roland McGrath <roland@redhat.com>
2813
2814 * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
2815
8e27f45e
RM
28162003-04-24 Jakub Jelinek <jakub@redhat.com>
2817
2818 * elf/dl-reloc.c (allocate_static_tls): Rename to...
2819 (_dl_allocate_static_tls): ... this function. No longer static.
2820 (CHECK_STATIC_TLS): Adjust.
2821 * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
2822 * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
2823 Add SYM_MAP argument.
2824 (elf_machine_rela): Adjust caller. Declare SYM_MAP unconditionally.
2825 Check if SYM_MAP != NULL for R_PPC_DTPREL32. Only handle 32-bit
2826 TLS relocs here. #ifdef out relocs which never appear in
2827 .gnu.conflict section from dl-conflict.c processing.
2828 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
2829 Add SYM_MAP argument. Handle 16-bit TLS relocs here.
2830
2831 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
2832 out relocs which never appear in .gnu.conflict section from
2833 dl-conflict.c processing.
2834 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
2835 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2836 * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
2837 Use r_type in RESOLVE macro.
2838
b9b9a51e
UD
28392003-04-23 Ulrich Drepper <drepper@redhat.com>
2840
4c513679 2841 * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
345d9208
UD
2842 NULL. Remove code made redundant by this assumption.
2843 (__yp_unbind): Add call to free. Adjust all callers.
2844
47ae3942 2845 * nis/ypclnt.c (yp_all): Free the dom_binding object after
29bfc945 2846 unbinding it.
47ae3942 2847
b9b9a51e
UD
2848 * grp/initgroups.c (getgrouplist): Don't copy too much into the
2849 user buffer if more groups are found than fit into it.
2850
2851 * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
2852 extend_alloca.
2853
63af556f
RM
28542003-04-23 Jakub Jelinek <jakub@redhat.com>
2855
370b4d44
UD
2856 * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
2857 not rc == errno. Use extend_alloca.
2858
63af556f
RM
2859 * elf/tst-tls12.c (main): Fix declaration.
2860 * elf/tst-tls10.c (dummy): Make hidden instead of static.
2861 * elf/tst-tlsmod7.c (dummy): Likewise.
2862 * elf/tst-tlsmod8.c (dummy): Likewise.
2863 * elf/tst-tlsmod9.c (dummy): Likewise.
2864
28652003-04-22 Roland McGrath <roland@redhat.com>
2866
2867 * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
2868 (open_not_cancel): Make last argument non-optional.
2869 * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
2870 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
2871 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
2872
2873 * include/tls.h: Protect against multiple inclusion.
2874
4c5dd2a2
UD
28752003-04-22 Ulrich Drepper <drepper@redhat.com>
2876
2877 * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
2878 * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
2879 open_socket. Not static anymore.
2880 (nscd_gethst_r): Use __nscd_open_socket.
2881 * nscd/nscd_getgr_r.c (open_socket): Removed.
2882 (nscd_getgr_r): Use __nscd_open_socket.
2883 * nscd/nscd_getpw_r.c (open_socket): Removed.
2884 (nscd_getpw_r): Use __nscd_open_socket.
2885
2886 * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
2887 * nscd/connections.c (handle_request): Add cast to avoid warning.
2888
e7608d77
UD
28892003-04-21 Ulrich Drepper <drepper@redhat.com>
2890
6a87ee19
UD
2891 * signal/sigfillset.c: Moved to...
2892 * sysdeps/generic/sigfillset.c: ...here. If SIGCANCEL is defined
2893 do not set the corresponding bit.
2894
e7608d77
UD
2895 * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
2896 SIGCANCEL.
2897 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
2898 * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
2899 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
2900 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
2901 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
2902
680dd6f2
UD
29032003-04-20 Ulrich Drepper <drepper@redhat.com>
2904
a4faf243 2905 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
e7608d77 2906 first syscall parameter to const char*.
680dd6f2 2907
0b3df49e
UD
29082003-04-19 Ulrich Drepper <drepper@redhat.com>
2909
40c90e00
UD
2910 * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
2911
58a7a325
UD
2912 * configure.in: Add AC_PROG_CXX.
2913 * config.make.in (CXX): Define.
2914
0b3df49e
UD
2915 * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
2916 __len to size_t to avoid warnings.
2917
84a420c0
UD
29182003-04-18 Jes Sorensen <jes@wildopensource.com>
2919
2920 * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
2921 2.5.67.
2922 * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
2923
2c008571
UD
29242003-04-19 Ulrich Drepper <drepper@redhat.com>
2925
4e648ea3
UD
2926 * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
2927 UNREGISTER_ATFORK if d == NULL.
2928
2c008571
UD
2929 * catgets/nl_types.h: Remove __THROW marker from cancellation points.
2930 * dirent/dirent.h: Likewise.
2931 * dlfcn/dlfcn.h: Likewise.
2932 * grp/grp.h: Likewise.
2933 * iconv/iconv.h: Likewise.
2934 * io/fcntl.h: Likewise.
2935 * io/ftw.h: Likewise.
2936 * libio/stdio.h: Likewise.
2937 * misc/sys/mman.h: Likewise.
2938 * misc/sys/select.h: Likewise.
2939 * misc/sys/syslog.h: Likewise.
2940 * misc/sys/uio.h: Likewise.
2941 * posix/spawn.h: Likewise.
2942 * posix/unistd.h: Likewise.
2943 * posix/sys/wait.h: Likewise.
2944 * pwd/pwd.h: Likewise.
2945 * resolv/netdb.h: Likewise.
2946 * rt/aio.h: Likewise.
2947 * shadow/shadow.h: Likewise.
2948 * signal/signal.h: Likewise.
2949 * socket/sys/socket.h: Likewise.
2950 * stdlib/stdlib.h: Likewise.
2951 * streams/stropts.h: Likewise.
2952 * string/string.h: Likewise.
2953 * sysdeps/gnu/utmpx.h: Likewise.
2954 * sysvipc/sys/msg.h: Likewise.
2955 * termios/termios.h: Likewise.
2956 * time/time.h: Likewise.
2957 * wcsmbs/wchar.h: Likewise.
2958 * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
2959 functions.
2960 * misc/daemon.c: Likewise.
2961 * sysdeps/generic/backtracesymsfd.c: Likewise.
2962 * sysdeps/generic/check_fds.c: Likewise.
2963 * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
2964 * sysdeps/unix/sysv/linux/not-cancel.h: New file.
2965 * sysdeps/generic/not-cancel.h: New file.
2966 * csu/Makefile (distribute): Add not-cancel.h.
2967 * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
2968 * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
2969 for assert.c and assert-perr.c to include <fatal-prepare.h>.
2970 * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
2971
2972 * sysdeps/posix/remove.c (remove): Rewrite. No need to restore
2973 errno and unlink first.
2974
2975 * io/ftw.c (ftw_dir): In all places assume fchdir is available.
2976
29772003-04-18 Ulrich Drepper <drepper@redhat.com>
2978
2979 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
2980 INTERNAL_SYSCALL instead of INLINE_SYSCALL.
2981
aae9d42b
UD
29822003-04-17 Ulrich Drepper <drepper@redhat.com>
2983
7c2842bf
UD
2984 * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
2985
2986 * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
2987 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
2988 replace.
2989
aae9d42b
UD
2990 * signal/Makefile (tests): Add tst-sigsimple.
2991 * signal/tst-sigsimple.c: New file.
2992
94c24227
UD
29932003-04-16 Jakub Jelinek <jakub@redhat.com>
2994
2995 * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
2996 tst-tls10.h.
2997 (tests): Add tst-tls1[0-2].
2998 (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
2999 ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
3000 ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
3001 ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
3002 ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
3003 ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
3004 ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
3005 * elf/tst-tls10.c: New test.
3006 * elf/tst-tls11.c: New test.
3007 * elf/tst-tls12.c: New test.
3008 * elf/tst-tls10.h: New file.
3009 * elf/tst-tlsmod7.c: New file.
3010 * elf/tst-tlsmod8.c: New file.
3011 * elf/tst-tlsmod9.c: New file.
3012 * elf/tst-tlsmod10.c: New file.
3013 * elf/tst-tlsmod11.c: New file.
3014 * elf/tst-tlsmod12.c: New file.
3015
30162003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
3017
3018 * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
3019 * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
3020 * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
3021
ef4d5b32
UD
30222003-04-17 Ulrich Drepper <drepper@redhat.com>
3023
94c24227
UD
3024 * posix/regex.h: Include <sys/types.h>.
3025
66cd688c
UD
3026 * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
3027 The signal number must be checked.
89e28f65
UD
3028 * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
3029 The signal number must be checked [PR libc/5004].
3030
9e9f1f15
UD
3031 * sysdeps/unix/sysv/linux/system.c: If compiled without threads
3032 don't do anything fancy.
3033
3034 * sysdeps/generic/bits/libc-lock.h: Define
3035 __rtld_lock_define_initialized_recursive.
3036
ef4d5b32
UD
3037 * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
3038 contacting nscd if NOT_USENSCD_NAME > 0.
3039 * nss/nsswitch.c (__nss_disable_nscd): New function.
3040 * nss/nsswitch.h: Declare it.
3041 * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
3042 * nscd/nscd.c (main): Call __nss_disable_nscd.
3043
81641068
UD
30442003-04-16 Ulrich Drepper <drepper@redhat.com>
3045
a4de3776
UD
3046 * stdio-common/perror.c (perror): We don't need to set the offset
3047 to _IO_pos_bad, this is how streams are initialized.
3048
86d27307
UD
3049 * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
3050 (time_output): If necessary, allocate new buffer for .name string if
3051 padding is required.
3052
31dfab9e
UD
3053 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
3054 before copying. This might leave holes in the list. Adjust
3055 pointers if necessary.
3056 (netlink_receive): Allocate only one block.
3057 (free_netlink_handle): Adjust appropriately.
3058 (getifaddrs): Lots of cleanups.
3059
1dd42dfc 3060 * string/test-strncpy.c (do_one_test): Mark start and stop as
81641068 3061 possibly unused.
c9df3df9
UD
3062 * string/test-memchr.c: Likewise.
3063 * string/test-memcmp.c: Likewise.
3064 * string/test-memcpy.c: Likewise.
3065 * string/test-memmove.c: Likewise.
3066 * string/test-memset.c: Likewise.
3067 * string/test-strcat.c: Likewise.
3068 * string/test-strchr.c: Likewise.
3069 * string/test-strcmp.c: Likewise.
3070 * string/test-strcpy.c: Likewise.
3071 * string/test-strlen.c: Likewise.
3072 * string/test-strncmp.c: Likewise.
3073 * string/test-strpbrk.c: Likewise.
3074 * string/test-strrchr.c: Likewise.
3075 * string/test-strspn.c: Likewise.
81641068 3076
4ab6f47c
RM
30772003-04-15 Roland McGrath <roland@redhat.com>
3078
3079 * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
3080
3081 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
3082 INTUSE(__register_frame_info_bases).
3083
162434a6
UD
30842003-04-15 Ulrich Drepper <drepper@redhat.com>
3085
3086 * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
3087 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
dce3db56 3088 AT_SYSINFO_EH_FRAME. Adjust string width.
162434a6
UD
3089 (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
3090 * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
3091 Add _dl_sysinfo_eh_frame field.
3092 * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
3093 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
3094 variable.
3095 [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
3096 if _dl_sysinfo_eh_frame is non-NULL.
3097
3098 * Makeconfig (gnulib): Add -lgcc_eh.
3099
3100 * config.h.in: Define HAVE_FORCED_UNWIND.
3101
482eb33c
UD
31022003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
3103
3104 * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
3105 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
3106
aa3f2410
UD
31072003-04-15 Jakub Jelinek <jakub@redhat.com>
3108
3109 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
3110 checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
3111 against local symbol in conflict processing.
3112
6087c485
UD
31132003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
3114
3115 * sysdeps/powerpc/bits/atomic.h
3116 [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
3117 [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
3118 as abort stub.
3119 (__arch_compare_and_exchange_val_32_acq): Define.
3120 (atomic_compare_and_exchange_val_acq): Define.
3121
a1b5424f
UD
31222003-04-15 Ulrich Drepper <drepper@redhat.com>
3123
3124 * include/atomic.h: Pretty printing.
3125
52a7f7c0
UD
31262003-04-14 Ulrich Drepper <drepper@redhat.com>
3127
3128 * stdio-common/vfscanf.c: Add casts to avoid warnings.
3129
bd4f43b4
UD
31302003-04-14 Jakub Jelinek <jakub@redhat.com>
3131
3132 * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
3133 * sysdeps/x86_64/bits/atomic.h: Likewise.
3134
31352003-04-14 Ulrich Drepper <drepper@redhat.com>
3136
3137 * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
3138 POPARGS_1 to emit labels for the mov instructions.
3139
31402003-04-14 Jakub Jelinek <jakub@redhat.com>
3141
3142 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
3143
8133a3fd
RM
31442003-04-14 Roland McGrath <roland@redhat.com>
3145
3146 * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
3147 compiler warning.
3148
3149 * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
3150
39a46c42
UD
31512003-04-14 Ulrich Drepper <drepper@redhat.com>
3152
3153 * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
3154 position. Reported by jreiser@BitWagon.com.
3155
a1fb9649
UD
31562003-04-13 Ulrich Drepper <drepper@redhat.com>
3157
3158 * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
3159 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
3160 * sysdeps/generic/unwind-dw2.c: Likewise.
3161 * sysdeps/generic/unwind-pe.h: Likewise.
3162
6a1aff69
AO
31632003-04-13 Alexandre Oliva <aoliva@redhat.com>
3164
3165 * sysdeps/unix/sysv/linux/mips/profil-counter: New.
3166 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
3167 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
3168 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
3169 (mcontext_t): Make it match the 32-bit mips kernel in o32.
3170 * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
3171 the mips and mips64 headers.
3172 (struct user): Port to n32/n64.
3173
7cc1894c
UD
31742003-04-12 Ulrich Drepper <drepper@redhat.com>
3175
3176 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
3177 avoid warning.
3178
3179 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
3180 __ASSUME_VSYSCALL is defined don't add restorer.
3181 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3182 __ASSUME_VSYSCALL for 2.5.53.
3183
09d65ff3
UD
31842003-04-11 Ulrich Drepper <drepper@redhat.com>
3185
3186 * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
3187 Remove HAVE_CANCELBUF code. Replace with code using the new
3188 initializers for unwind-based cleanup handling.
3189 * sysdeps/generic/unwind.h: Update from latest gcc version.
3190 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
3191 places to allow unwind data generation.
3192 * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
3193 * sysdeps/x86_64/bits/setjmp.h: Likewise.
3194 * sysdeps/sh/bits/setjmp.h: Likewise.
3195 * sysdeps/powerpc/bits/setjmp.h: Likewise.
3196 * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
3197 * sysdeps/alpha/bits/setjmp.h: Likewise.
3198
0dc44b51
RM
31992003-04-11 Roland McGrath <roland@redhat.com>
3200
3201 * csu/tst-empty.c: New file.
3202 * csu/Makefile (tests, tests-static): Add it.
3203
52a5e975
RM
32042003-04-11 Jakub Jelinek <jakub@redhat.com>
3205
9fb0cae8
RM
3206 * string/test-strcmp.c (do_random_tests): Test whether return value
3207 has been promoted to wordsize if the ABI requires caller to do so.
3208 * string/test-strncmp.c (do_random_tests): Likewise.
3209 * string/test-memcmp.c (do_random_tests): Likewise.
3210
3211 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
3212 before returning.
3213
b35fce97
RM
3214 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
3215 (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
3216 is not defined, but the prctl constants are.
3217
52a5e975
RM
3218 * string/tester.c (test_strcmp): Fix a typo.
3219
539f1d28
UD
32202003-04-09 Ulrich Drepper <drepper@redhat.com>
3221
3222 * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
3223 * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
3224
c9efbeda
AO
32252003-04-08 Alexandre Oliva <aoliva@redhat.com>
3226
3227 * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
3228 NewABI.
3229 (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
3230 NewABI.
3231 * sysdeps/mips/mips64/memcpy.S: Adjust register naming
3232 conventions.
3233 * sysdeps/mips/mips64/memset.S: Likewise.
3234 * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
3235 Use t0 instead of t4 as temporary.
3236
cb4d04cd
UD
32372003-04-07 Ulrich Drepper <drepper@redhat.com>
3238
3239 * elf/ldconfig.c (parse_conf): Ignore leading whitespace. Use
3240 feof_unlocked instead of feof.
3241 (add_dir): Ignore trailing whitespace.
3242
0a7cfefb
RM
32432003-04-07 Jakub Jelinek <jakub@redhat.com>
3244
3245 * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
3246 sum of SIZE1 and SIZE2 arguments.
3247
e8b0d4a1
UD
32482003-04-06 Ulrich Drepper <drepper@redhat.com>
3249
3250 * iconv/iconv_prog.c (process_block): Don't print message about
3251 invalid input if the -c option is used.
3252 (main): Correctly append IGNORE string for -c option.
3253
e87d07a0
RM
32542002-04-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3255
3256 * sysdeps/sh/bits/atomic.h: Moved to ...
3257 * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here. Add comments.
3258 (__arch_compare_and_exchange_val_*_acq): Add parens around macro
e8b0d4a1 3259 arguments.
e87d07a0
RM
3260 (atomic_bit_set, atomic_bit_test_set): Likewise.
3261 (atomic_exchange_and_add): Likewise. Don't evaluate VALUE argument
3262 twice.
3263 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
3264
24ff6479
RM
32652003-04-06 Roland McGrath <roland@redhat.com>
3266
3267 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
3268 restoration as done for setcontext yesterday.
3269
efedd9cf
UD
32702003-04-06 Jakub Jelinek <jakub@redhat.com>
3271
3272 * elf/rtld.c: Revert 2003-03-14 change.
3273 * elf/dl-conflict.c (_dl_resolve_conflicts): Move
3274 #if ! ELF_MACHINE_NO_RELA conditional into the routine.
3275
abefbc51
UD
32762003-04-05 Ulrich Drepper <drepper@redhat.com>
3277
a9f17952
UD
3278 * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
3279
abefbc51
UD
3280 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
3281 Always initialize *signgamp before returning an error.
3282
a5392bed
UD
32832003-04-05 Roland McGrath <roland@redhat.com>
3284
3285 * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
3286 below the stack pointer even if switching to the same context we are
3287 running right now.
3288
ee6bf14d
UD
32892003-04-05 Ulrich Drepper <drepper@redhat.com>
3290
a5392bed
UD
3291 * catgets/gencat.c (read_input_file): Make sure that \n is not
3292 alone on the line before testing for continuation.
3293
3294 * math/test-tgmath.c (compile_test): Initialize c.
ee6bf14d 3295
743f1874
AO
32962003-04-05 Alexandre Oliva <aoliva@redhat.com>
3297
3298 * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
3299 * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
3300 * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
3301 on mips n32.
ee6bf14d 3302 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
743f1874
AO
3303 XSTAT_IS_XSTAT64 must not be used for mips n64. Use 64-bit data
3304 structure on n32 as well.
3305 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
3306 data types on n32 and n64.
3307
54e0138f
UD
33082003-04-05 Ulrich Drepper <drepper@redhat.com>
3309
b4068b0a
UD
3310 * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
3311 after getting them.
3312
54e0138f
UD
3313 * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
3314 HAVE_register_atfork_malloc is defined use __register_atfork_malloc
3315 instead of __register_atfork.
3316
d0f534e9
RM
33172003-04-05 Jakub Jelinek <jakub@redhat.com>
3318
3319 * stdio-common/reg-printf.c (__register_printf_function): Calloc
3320 instead of malloc __printf_arginfo_table and __printf_function_table.
3321 Reported by John Reiser <jreiser@BitWagon.com>.
3322
beb03cee
RM
33232003-04-04 Steven Munroe <sjmunroe@us.ibm.com>
3324
3325 * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
3326 * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
3327
3328 * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
3329 defining.
3330
26b54a6b
AO
33312003-04-04 Alexandre Oliva <aoliva@redhat.com>
3332
3333 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
3334 for n64 abi.
3335
ff084b87
RM
33362003-04-03 Roland McGrath <roland@redhat.com>
3337
3338 * configure.in: Fix up use of compilation flags to match the build:
3339 For .s files, $ASFLAGS;
3340 For .S files, $CPPFLAGS $ASFLAGS;
3341 For .c files, $CFLAGS $CPPFLAGS;
3342 when linking, add $LDFLAGS.
3343 * configure: Regenerated.
3344
dd59050d
UD
33452003-04-03 Jakub Jelinek <jakub@redhat.com>
3346
3347 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
3348 for atomic_compare_and_exchange_bool_acq failure.
3349
148bb057
UD
33502003-04-03 Ulrich Drepper <drepper@redhat.com>
3351
3352 * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
3353 _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
3354 _POSXI2_LOCALEDEF to 200112L. Remove _POSIX2_C_VERSION.
3355 Remove declaration of pthread_atfork.
3356
d903678a
UD
33572003-04-02 Ulrich Drepper <drepper@redhat.com>
3358
fab07ed6
UD
3359 * locale/iso-639.def: Add many more languages from the current ISO 639.
3360
d903678a
UD
3361 * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
3362 * sysdeps/generic/semtimedop.c: New file.
3363 * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
3364 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
3365 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3366 * sysvipc/Makefile (routines): Add semtimedop.
3367 * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
3368 * sysvipc/sys/sem.h: Declare semtimedop.
3369
42607429
RM
33702003-04-02 Daniel Jacobowitz <drow@mvista.com>
3371
3372 * configure.in: Check for __register_frame_info in both
3373 -lgcc and -lgcc_eh.
3374 * configure: Regenerated.
3375
a95ced3e
RM
33762003-04-01 Roland McGrath <roland@redhat.com>
3377
3378 * scripts/abilist.awk: Allow dots in soname suffix.
3379
3380 * scripts/abilist.awk (emit): Fix bailout condition.
3381
fbb7fc75
UD
33822003-04-01 Jakub Jelinek <jakub@redhat.com>
3383
9a197dcc
RM
3384 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
3385 IA-64 version.
3386
fbb7fc75
UD
3387 * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
3388 register as input to asm.
3389
4b1a1328
UD
33902003-04-01 Jakub Jelinek <jakub@redhat.com>
3391
3392 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
3393
73588175
AJ
33942003-04-01 Andreas Jaeger <aj@suse.de>
3395
3396 * configure.in: Output as/ld as name if version is too old.
3397
640f0119
RM
33982003-03-31 Daniel Jacobowitz <drow@mvista.com>
3399
3400 * configure.in: Don't require an installed C library in the test
3401 for ".set" assembler support.
640f0119
RM
3402
34032003-03-31 Roland McGrath <roland@redhat.com>
3404
3405 * signal/tst-sigset.c: New file.
3406 * signal/Makefile (tests): Add it.
3407
582b54aa
UD
34082003-03-31 Ulrich Drepper <drepper@redhat.com>
3409
3410 * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
3411 * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
3412 * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
3413 * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
3414 (__SIGRTMAX): Adjust accordingly.
3415 * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
3416 second compatibility symbol set.
3417 * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
3418
0c2601fa
AS
34192003-03-31 Andreas Schwab <schwab@suse.de>
3420
3421 * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
3422 Define.
3423 (atomic_decrement_and_test): Fix test.
3424
0a9d1b3b
RM
34252003-03-31 Jakub Jelinek <jakub@redhat.com>
3426
3427 * sysdeps/sparc/sparc32/bits/atomic.h: New file.
3428 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
3429 * sysdeps/sparc/sparc64/bits/atomic.h: New file.
3430 * sysdeps/sparc/sparc32/atomicity.h: Removed.
3431 * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
3432 * sysdeps/sparc/sparc64/atomicity.h: Removed.
3433
9ec8bbb1
RM
34342003-03-30 Roland McGrath <roland@redhat.com>
3435
d692f3f8
RM
3436 * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
3437
9ec8bbb1
RM
3438 * intl/po2test.sed: Anchor substitution regexps to fix last change.
3439
f8278d5d
RM
34402003-03-29 Paolo Bonzini <bonzini@gnu.org>
3441
582b54aa
UD
3442 * intl/po2test.sed: Unify the transformations for msgid and msgstr
3443 and remove a useless s/// command.
f8278d5d 3444
266227ab
UD
34452003-03-27 David Mosberger <davidm@hpl.hp.com>
3446
3447 * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
3448 directive into empty .prologue region to ensure that call-chain
3449 is terminated even for the first instruction.
3450
3451 * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
3452 to terminate call-chain right from the get-go.
3453
3454 * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
3455 stop bit between compare & branch.
3456
ea473bad
UD
34572003-03-29 Ulrich Drepper <drepper@redhat.com>
3458
d8592d04
UD
3459 * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
3460 point correctly [PR libc/4993].
3461
ea473bad
UD
3462 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
3463 netlink_open calls if netlink is known to not be available.
3464
c7da3ff8
AO
34652003-03-29 Alexandre Oliva <aoliva@redhat.com>
3466
e077d10d 3467 * configure.in: Add mips64* support.
e077d10d
AO
3468 * sysdeps/mips/bits/endian.h: Make it bi-endian.
3469 * sysdeps/mips/mipsel/bits/endian.h: Removed.
3470 * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
3471 * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
3472 * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
3473 * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
3474 * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
3475 * sysdeps/mips/Implies: Moved wordsize-32 to...
3476 * sysdeps/mips/mips32/Implies: New file.
3477 * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
3478 ret_NOERRNO): New.
3479 (ret, PSEUDO_END): Moved past END.
3480 (PSEUDO): Moved to...
3481 * sysdeps/unix/mips/mips32/sysdep.h: New file.
3482 * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
3483 * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
3484 * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
3485 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
3486 * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
3487
c7da3ff8
AO
3488 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
3489 Re-introduce ENTRY.
3490
e0c09a43
UD
34912003-03-28 Thorsten Kukuk <kukuk@suse.de>
3492
3493 * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
3494 * inet/test-ifaddrs.c: Allow AF_PACKET.
3495 * sysdeps/unix/sysv/linux/kernel-features.h: Add
3496 __ASSUME_NETLINK_SUPPORT.
3497
129422e1
UD
34982003-03-28 Ulrich Drepper <drepper@redhat.com>
3499
3500 * elf/vismain.c (do_test): Comment out tests which fail in the moment.
3501
5972c58b
RM
35022003-03-26 H.J. Lu <hjl@gnu.org>
3503
3504 * elf/vismod.h (getvarlocal1): Return const char **.
3505 (getvarinmod1): Likewise.
3506 (getvaritcpt1): Likewise.
3507 (getvarlocal2): Likewise.
3508 (getvarinmod2): Likewise.
3509 (getvaritcpt2): Likewise.
3510 (getvaritcpt3): Likewise.
3511 * elf/vismain.c (do_test): Adjusted.
3512 * elf/vismod1.c (getvarlocal1): Return address.
3513 (getvarinmod1): Likewise.
3514 (getvaritcpt1): Likewise.
3515 * elf/vismod2.c (getvarlocal2): Likewise.
3516 (getvarinmod2): Likewise.
3517 (getvaritcpt2): Likewise.
3518 * elf/vismod3.c (getvaritcpt3): Likewise.
3519
7e30918b
RM
35202003-03-28 Roland McGrath <roland@redhat.com>
3521
5972c58b
RM
3522 * elf/vismain.c (do_test): Print both addresses when they don't match.
3523
f0248ca5
RM
3524 * scripts/abilist.awk: If given -v filename_regexp and/or -v
3525 libname_regexp when parsing names, then produce output only
3526 for those matching the given regexps. In combine mode, save all
3527 stanzas for a final sorting by stanza header at the end.
3528 Emit a blank line between stanzas.
3529
7e30918b
RM
3530 * scripts/abilist.awk: When given -v combine=1, do parse_names and
3531 emit a single output stream with lib name in stanza header lines.
3532
3533 * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
3534
c6acf1e3
RM
35352003-03-27 Roland McGrath <roland@redhat.com>
3536
3537 * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
3538 (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
3539
dd731d53
UD
35402003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3541
3542 * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
3543 Return old value. Make asm output reg constraint earlyclobber.
3544 Renamed from...
3545 (__arch_compare_and_exchange_8_acq): ... this.
3546 (__arch_compare_and_exchange_val_16_acq):
3547 Return old value. Make asm output reg constraint earlyclobber.
3548 Renamed from...
3549 (__arch_compare_and_exchange_16_acq): ... this.
3550 (__arch_compare_and_exchange_val_32_acq):
3551 Return old value. Make asm output reg constraint earlyclobber.
3552 Renamed from...
3553 (__arch_compare_and_exchange_32_acq): ... this.
3554 (__arch_compare_and_exchange_val_64_acq):
3555 Renamed from...
3556 (__arch_compare_and_exchange_64_acq): ... this.
3557 (atomic_exchange_and_add): Use local variables and
3558 __arch_compare_and_exchange_val_64_acq.
3559 (atomic_add): Likewise.
3560 (atomic_add_negative, atomic_add_zero): Use local variables.
3561
d270cb11
AO
35622003-03-28 Alexandre Oliva <aoliva@redhat.com>
3563
3e60b5f2
AO
3564 * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
3565
a854f531
UD
35662003-03-27 Ulrich Drepper <drepper@redhat.com>
3567
dd731d53 3568 * Makefile: Remove libmd5crypt goal.
a854f531 3569
41bc895a
RM
35702003-03-25 Jakub Jelinek <jakub@redhat.com>
3571
3572 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
3573 special handling of relocations against local symbols.
3574
3171ae99
UD
35752003-03-27 Steven Munroe <sjmunroe@us.ibm.com>
3576
3577 * sysdeps/powerpc/bits/atomic.h
3578 (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
3579 [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
3580 Define PPC64 specific version.
3581 [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
3582 Change (mem) constraint to "b".
3583 [__powerpc64__] (__arch_atomic_exchange_and add_64):
3584 Replace addi with add. Change (value) contraint to "r".
3585 Change (mem) constraint to "b".
3586 [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
3587 (__arch_atomic_exchange_32): Change (mem) constraint to "b".
3588 (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
3589 (__arch_atomic_decrement_if_positive_32): New macro.
3590 (atomic_decrement_if_positive): Use __arch* macros.
3591
d5527b17
UD
35922003-03-27 Jakub Jelinek <jakub@redhat.com>
3593
3594 * sysdeps/ia64/fpu/libm-test-ulps: Update.
3595
c7356b6d
RM
35962003-03-27 Roland McGrath <roland@redhat.com>
3597
3598 * scripts/rpm2dynsym.sh: New file.
3599 * Makefile (distribute): Add it.
3600
28cf3058
UD
36012003-03-27 David Mosberger <davidm@hpl.hp.com>
3602
3603 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
3604 ar.unat before returning. Add missing .mem.offset directives
3605 to ensure file gets assembled without warnings.
3606 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
3607
0d5420ec
UD
36082003-03-27 Jakub Jelinek <jakub@redhat.com>
3609
3610 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
3611 Return -1 instead of 0 if clock_getres failed.
3612
fd54683c
RM
36132003-03-27 Roland McGrath <roland@redhat.com>
3614
15a686af
RM
3615 * scripts/abilist.awk: If variable `parse_names' is set, grok the file
3616 header lines and write out foo.symlist files for each foo.so.NN listed.
3617
3618 * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
3619 This symbol is exported, and we don't want to hide it.
3620 Add libc_hidden_proto instead.
3621 (_IO_file_jumps): Add libc_hidden_proto.
3622 * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
3623 Remove INTVARDEF.
3624 * libio/fileops.c (_IO_file_jumps): Likewise.
3625 * libio/stdfiles.c: Don't use INTUSE on them.
3626 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
3627 * libio/iofopen.c (__fopen_internal): Likewise.
3628 * libio/freopen.c (freopen): Likewise.
3629 * libio/freopen64.c (freopen64): Likewise.
3630 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
3631
fd54683c
RM
3632 * Makerules (check-abi) [$(enable-check-abi) = warn]:
3633 Ignore exit status from diff.
3634 * configure.in (enable_check_abi): Document possible value "warn".
3635 Change default to no for now.
3636 * configure: Regenerated.
3637
3638 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
3639 macro calls and a #include <stub-tag.h> at the end.
3640 * Makerules ($(objpfx)stubs): Tweak sed commands.
3641
3642 * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
3643 caller column for *xattr syscalls, since they are in sysdeps/generic.
3644
3645 * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
3646 * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
3647
36482003-03-26 Roland McGrath <roland@redhat.com>
3649
3650 * Makerules (check-abi-config): Use /thread instead of /tls when
3651 use-thread and not just use-tls is set.
3652
3653 * Makerules (update-abi): Put quotes around $(update-abi-config).
3654
3655 * elf/Makefile (check-abi): Depend on check-abi-ld.
3656 (update-abi): Depend on update-abi-ld.
3657
85763515
UD
36582003-03-26 GOTO Masanori <gotom@debian.or.jp>
3659
3660 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
3661 do not check for errors (unless testing for 32bit variant).
3662 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
3663
312472fc
RM
36642003-03-27 Philip Blundell <philb@gnu.org>
3665
3666 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
3667 unconditional mov. Remove nop.
3668
3669 * sysdeps/unix/sysv/linux/kernel-features.h
3670 (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
3671 * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
3672 when __ASSUME_VFORK_SYSCALL is defined.
3673 * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
3674 __ASSUME_MMAP2_SYSCALL.
3675 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
3676 __ASSUME_REALTIME_SIGNALS.
3677
18ef464b
UD
36782003-03-26 Ulrich Drepper <drepper@redhat.com>
3679
3680 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
3681 only if DL_NO_COPY_RELOCS is not defined.
3682 * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
3683
04676765
RM
36842003-03-26 Roland McGrath <roland@redhat.com>
3685
3686 * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
3687 SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
3688 * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
3689 (sysdep_routines): Add stub-syscalls.
3690 ($(objpfx)stub-syscalls.c): New target.
3691 (generated): Add stub-syscalls.c.
3692
3693 * tls.make.c: Also define use-tls according to USE_TLS macro.
3694
11d52c31
UD
36952003-03-26 Ulrich Drepper <drepper@redhat.com>
3696
3697 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
3698 no-op padding element.
3699 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
3700 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
3701 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
3702 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
3703
37042003-03-26 GOTO Masanori <gotom@debian.or.jp>
3705
3706 * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
3707 condition check for the return value of getgroups32.
3708
37092003-03-26 Jakub Jelinek <jakub@redhat.com>
3710
3711 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
3712 Fix a typo.
3713 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
3714 PSEUDO_END_NOERRNO): Define.
3715 * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
3716 Define to PSEUDO_END.
3717
f064e4c5
UD
37182003-03-26 Ulrich Drepper <drepper@redhat.com>
3719
3720 * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
3721
bdb6126c
UD
37222003-03-25 Jiro SEKIBA <jir@yamato.ibm.com>
3723
3724 * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
3725 * iconvdata/bug-iconv4.c: New file.
3726 * iconvdata/Makefile (tests): Add bug-iconv4.
3727
697119d6
UD
37282003-03-25 H.J. Lu <hjl@gnu.org>
3729
3730 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
3731 symbols twice.
3732 (_dl_lookup_versioned_symbol): Likewise.
3733
859e708f
RM
37342003-03-26 Jakub Jelinek <jakub@redhat.com>
3735
3736 * csu/tst-atomic.c (do_test): Add some new
3737 atomic_compare_and_exchange_val_acq, atomic_add_zero,
3738 atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
3739 * include/atomic.h (atomic_add_negative, atomic_add_zero):
3740 Prefix local variable so that it doesn't clash with the one
3741 in atomic_exchange_and_add.
3742 * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
3743 pointers.
3744 (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
3745 * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
3746 value into register.
3747 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
3748 Cast newval to long.
3749 * sysdeps/x86_64/bits/atomic.h
3750 (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
3751 long.
3752 (atomic_exchange): Cast newvalue to long if sizeof == 8.
3753 (atomic_exchange_and_add): Cast value to long if sizeof == 8.
3754 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
3755 (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
3756
dd410d4d
RM
37572003-03-21 Martin Schwidefsky <schwidefskyde.ibm.com>
3758
3759 * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
3760 bit from backtrace addresses.
3761
37622003-03-21 Andreas Schwab <schwab@suse.de>
3763
3764 * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
3765 __chown symbols.
3766
6a1c6a1f
RM
37672003-03-25 Roland McGrath <roland@redhat.com>
3768
3769 * config.make.in (enable-check-abi): New variable from configure.
3770 * configure.in (enable_check_abi): New substituted variable,
3771 controlled by --{enable,disable}-check-abi (default yes).
3772 * configure: Regenerated.
3773 * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
3774 on check-abi dependency.
3775
fb0216dd
AS
37762003-03-26 Andreas Schwab <schwab@suse.de>
3777
9fdf211e
AS
3778 * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
3779 * include/atomic.h: Likewise.
3780
fb0216dd
AS
3781 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
3782
7456156f
RM
37832003-03-25 Roland McGrath <roland@redhat.com>
3784
3785 * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
3786 (__arch_atomic_exchange_64): New macro.
3787 (atomic_exchange): Use them.
3788 (__arch_atomic_exchange_and_add_32): New macro.
3789 (__arch_atomic_exchange_and_add_64): New macro.
3790 (atomic_exchange_and_add): Use them.
3791 Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
3792
1b12060c
AO
37932003-03-25 Alexandre Oliva <aoliva@redhat.com>
3794
3795 * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
3796 Define.
3797 * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
3798 ISA tests.
3799 (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
3800 (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
3801 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
3802 to decide whether to add padding.
3803 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
3804 to decide whether to add padding.
3805 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
3806 old_kernel_sigaction): Likewise.
3807
09402f5b
UD
38082003-03-25 Ulrich Drepper <drepper@redhat.com>
3809
3810 * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
3811 atomic_add_zero were supposed to do.
3812 * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
3813 to x86 behavior.
3814
3815 * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
3816 This matches the new timer implementation.
bacb0296
UD
3817 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
3818 Likewise.
3819 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
3820 Likewise.
09402f5b
UD
3821 * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
3822 timer info for what the kernel provides these days.
3823 (struct sigevent): Add _tid field.
3824 Define SIGEV_THREAD_ID.
42374865
UD
3825 Remove struct __pthread_attr_s forward declaration.
3826 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
3827 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
3828 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
3829 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
09402f5b
UD
3830
3831 * Versions.def (librt): Add GLIBC_2.3.3.
3832
3833 * abilist/libpthread.abilist: Update for nptl.
3834
5e826ab5
UD
38352003-03-24 Jon Grimm <jgrimm@us.ibm.com>
3836
3837 * inet/netinet/in.h: Add IPPROTO_SCTP.
3838
38392003-03-24 Ulrich Drepper <drepper@redhat.com>
3840
3841 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
3842
c6289757
UD
38432003-03-24 Philip Blundell <philb@gnu.org>
3844
3845 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
3846 Remove a1 from clobber list.
3847
38482003-03-24 Ulrich Drepper <drepper@redhat.com>
3849
3850 * timezone/antarctica: Update from tzdata2003a.
3851 * timezone/asia: Likewise.
3852 * timezone/australasia: Likewise.
3853 * timezone/europe: Likewise.
3854 * timezone/iso3166.tab: Likewise.
3855 * timezone/northamerica: Likewise.
3856 * timezone/southamerica: Likewise.
3857 * timezone/zone.tab: Likewise.
3858
38592003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
3860
3861 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
3862
9eb88290
UD
38632003-03-23 Ulrich Drepper <drepper@redhat.com>
3864
6ea5c103
UD
3865 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
3866 unwanted expansion by definining to ret. Patch by Ian Wienand.
3867
9eb88290
UD
3868 * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
3869 the parameter description to denote no error checking. Generate
3870 appropriate pseudo asm code.
3871 * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
3872 * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
3873 getpgrp, and getppid with 'E'.
3874 * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
3875 PSEUDO_END_NOERRNO, and ret_NOERRNO.
3876 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
3877 * sysdeps/unix/sysdep.h: Likewise.
3878 * sysdeps/unix/alpha/sysdep.h: Likewise.
3879 * sysdeps/unix/sparc/sysdep.h: Likewise.
3880 * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
3881 * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
3882 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
3883 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
3884 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
3885 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
3886 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
3887 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
3888 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
3889 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
3890 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
3891
3045a1fe
RM
38922003-03-23 Roland McGrath <roland@redhat.com>
3893
3894 * Makeconfig (+includes): Don't use $(last-includes).
3895
ad551664
AO
38962003-03-22 Alexandre Oliva <aoliva@redhat.com>
3897
3898 * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
3899 * sysdeps/unix/sysv/linux/configure: Rebuilt.
3900
f92abad6
RM
39012003-03-23 Jakub Jelinek <jakub@redhat.com>
3902
3903 * sysdeps/alpha/fpu/libm-test-ulps: Update.
3904 * sysdeps/arm/libm-test-ulps: Update.
3905 * sysdeps/hppa/fpu/libm-test-ulps: Update.
3906 * sysdeps/ia64/fpu/libm-test-ulps: Update.
3907 * sysdeps/mips/fpu/libm-test-ulps: Update.
3908 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
3909 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3910 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
3911 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
3912 * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
3913 * sysdeps/s390/fpu/libm-test-ulps: Update.
3914 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3915
d15851ec
RM
39162003-03-22 Roland McGrath <roland@redhat.com>
3917
fe4610b3
RM
3918 * include/atomic.h: Put parens around all macro arguments.
3919 (__atomic_val_bysize, __atomic_bool_bysize): New macros.
3920 (atomic_compare_and_exchange_val_acq): Use it.
3921 (atomic_compare_and_exchange_bool_acq): Likewise.
3922 (atomic_increment_and_test): Invert sense of test.
3923 (atomic_decrement_and_test): Likewise.
3924 * csu/tst-atomic.c: Update those tests to match.
d15851ec
RM
3925
39262003-03-22 Jakub Jelinek <jakub@redhat.com>
3927
3928 * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
3929 Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
3930 (atomic_compare_and_exchange_bool_acq): Add comment. Don't use
3931 __oldval variable in the macro, since it might be macro argument.
3932 (atomic_decrement_if_positive): Initialize __memp, remove setting
3933 of non-existent variable.
3934 (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
3935 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
3936 using atomic_compare_and_exchange_val_acq.
3937 (atomic_decrement_if_positive, atomic_bit_test_set): Define.
3938 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
3939 Renamed from...
3940 (__arch_compare_and_exchange_bool_8_acq): ... this.
3941 (__arch_compare_and_exchange_val_16_acq): Renamed from...
3942 (__arch_compare_and_exchange_bool_16_acq): ... this.
3943 (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed
3944 from...
3945 (__arch_compare_and_exchange_bool_32_acq): ... this.
3946 (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed
3947 from...
3948 (__arch_compare_and_exchange_bool_64_acq): ... this.
3949 (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
3950 variables types instead of assuming int.
3951 Change prefix of local variables to __arch.
3952 * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
3953 Remove.
3954 (atomic_compare_and_exchange_val_acq,
3955 atomic_compare_and_exchange_bool_acq): Define.
3956
3957 * csu/tst-atomic.c: New test.
3958 * csu/tst-atomic-long.c: New test.
3959 * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
3960
3961 * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
3962
3963 * sysdeps/s390/Versions: Add trailing newline.
3964
3965 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
3966 if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
3967
faa58057
AS
39682003-03-22 Andreas Schwab <schwab@suse.de>
3969
01e694fc
AS
3970 * sysdeps/m68k/fpu/libm-test-ulps: Update.
3971
faa58057
AS
3972 * sysdeps/m68k/m68020/bits/atomic.h: New file.
3973 * sysdeps/m68k/m68020/atomicity.h: Removed.
3974
039f839c
AO
39752003-03-22 Alexandre Oliva <aoliva@redhat.com>
3976
dda8854a
AO
3977 * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
3978 data structures and macros. Protect from multiple inclusion.
3979
039f839c
AO
3980 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
3981 typo in #if test.
3982
34f8ef1b
AJ
39832003-03-21 Andreas Jaeger <aj@suse.de>
3984
3985 * sysdeps/i386/fpu/libm-test-ulps: Update.
3986
3987 * math/libm-test.inc (tgamma_test): Recompute some constants with
3988 36 digits precision.
3989 (lgamma_test): Likewise.
3990 (ccos_test): Likewise.
3991 (ccosh_test): Likewise.
3992 (clog10_test): Likewise.
3993 (csin_test): Likewise.
3994 (csinh_test): Likewise.
3995 (ctan_test): Likewise.
3996 (ctanh_test): Likewise.
3997
39982003-03-19 Jakub Jelinek <jakub@redhat.com>
3999
4000 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
4001
4baa087a
RM
40022003-03-21 Roland McGrath <roland@redhat.com>
4003
4004 * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
4005 constraint to permit non-constant BIT argument.
4006 (atomic_bit_test_set): Likewise.
4007 * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
4008 (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32.
4009 For quadword case, use "i" constraint if __builtin_constant_p and < 32
4010 or "r" constraint otherwise.
4011
4012 * configure.in: Move AC_PROG_CC and other program-finding before all
4013 the version checks.
4014 * configure: Regenerated.
4015
8f9fb000
AO
40162003-03-21 Alexandre Oliva <aoliva@redhat.com>
4017
4018 * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
4019 unaligned copying of 8-15 bytes. From Chris Demetriou
4020 <cgd@broadcom.com>. Fix label names.
4021 * sysdeps/mips/mips64/memset.S: Fix label names. Make similar
4022 change as to memcpy.S.
4023 * sysdeps/mips/memcpy.S: Formatting changes.
4024 * sysdeps/mips/memset.S: Likewise.
4025
88b3f3ed
RM
40262003-03-21 Roland McGrath <roland@redhat.com>
4027
4028 * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
4029
ee7b7036
AO
40302003-03-21 Alexandre Oliva <aoliva@redhat.com>
4031
4032 * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
4033 * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
4034
a60581ad
RM
40352003-03-21 Roland McGrath <roland@redhat.com>
4036
4037 * sysdeps/i386/i486/bits/atomic.h
4038 (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
4039 version of the macro to avoid compile-time warnings.
4040 [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
a60581ad
RM
4041 (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
4042 (atomic_increment, atomic_decrement): Likewise.
4043
4541b483
UD
40442003-03-21 Ulrich Drepper <drepper@redhat.com>
4045
4046 * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
4047 * sysdeps/i386/i486/bits/atomic.h: Likewise.
4048
2923c644
RM
40492003-03-21 Roland McGrath <roland@redhat.com>
4050
4051 * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
4052
9f07eae2
UD
40532003-03-20 Ulrich Drepper <drepper@redhat.com>
4054
4055 * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
4056 atomic_compare_and_exchange_val_rel,
4057 atomic_compare_and_exchange_bool_acq, and
4058 atomic_compare_and_exchange_bool_rel instead of
4059 atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
4060 * sysdeps/i386/i486/bits/atomic.h: Define
4061 __arch_compare_and_exchange_val_*_acq instead of
4062 __arch_compare_and_exchange_*_acq.
4063 * sysdeps/x86_64/bits/atomic.h: Likewise.
4064 * sysdeps/ia64/bits/atomic.h: Define
4065 __arch_compare_and_exchange_bool_*_acq instead of
4066 __arch_compare_and_exchange_*_acq.
4067 * sysdeps/powerpc/bits/atomic.h: Likewise.
4068 * sysdeps/s390/bits/atomic.h: Likewise.
4069 * gmon/mcount.c: Adjust for new form of compare&exchange macros.
4070 * malloc/set-freeres.c: Likewise.
4071 * nscd/cache.c: Likewise.
4072 * stdlib/cxa_finalize.c: Likewise.
4073 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
4074
4b5e1c5f
AO
40752003-03-20 Alexandre Oliva <aoliva@redhat.com>
4076
d20152e1
AO
4077 * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
4078 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
4079 * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
4080
4b5e1c5f
AO
4081 * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
4082 into high and low halves on n64.
4083 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4084 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4085 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4086
6848aba6
UD
40872003-03-20 Ulrich Drepper <drepper@redhat.com>
4088
4089 * include/atomic.h (atomic_decrement_if_positive): Adjust for the
4090 correct atomic_compare_and_exchange_acq semantics.
4091
f1f8a9ec
AO
40922003-03-20 Alexandre Oliva <aoliva@redhat.com>
4093
4094 * sysdeps/mips/ieee754.h: Remove excess #endif.
4095
2ff16e04
RM
40962003-03-20 Roland McGrath <roland@redhat.com>
4097
4098 * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
4099 variable. Remove superfluous memory clobber.
4100
4101 * include/atomic.h: Syntax braino fix.
4102
4103 * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
4104 in decimal. Don't bail if niced at start. Just check that nice call
4105 bumps the total at all.
4106
53fcb885
AO
41072003-03-20 Alexandre Oliva <aoliva@redhat.com>
4108
4109 * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
4110 including pc, gp, sp and fp, as long long.
4111 * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
4112 * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
4113 Add gp argument, and set gp in the jmpbuf to it.
4114 * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
4115
f79466a8
UD
41162003-03-20 Ulrich Drepper <drepper@redhat.com>
4117
4118 * include/atomic.h: Define atomic_exchange and
4119 atomic_decrement_if_positive if not already defined. Add some
4120 __builtin_expect.
4121 * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
4122 * sysdeps/x86_64/bits/atomic.h: Likewise.
4123 * sysdeps/ia64/bits/atomic.h: Pretty printing. Define atomic_exchange.
4124 * sysdeps/powerpc/bits/atomic.h: Pretty printing. Define
4125 atomic_exchange, atomic_exchange_and_add, and
4126 atomic_decrement_if_positive
4127
50449bed
AO
41282003-03-20 Alexandre Oliva <aoliva@redhat.com>
4129
bfd49d55
AO
4130 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
4131 with a single instruction.
4132
50449bed
AO
4133 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
4134 properly for n64.
4135 (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
4136 type.
4137 (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
4138 Word before comparing with gotsym. Take reloc_addr argument as
4139 void*. Remove the code added for the compiler to drop any
4140 alignment assumptions.
4141
4009bf40
UD
41422003-03-19 Ulrich Drepper <drepper@redhat.com>
4143
4144 * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
4145 * include/atomic.h: New file.
4146 * sysdeps/i386/i486/bits/atomic.h: New file.
4147 * sysdeps/x86_64/bits/atomic.h: New file.
4148 * sysdeps/s390/bits/atomic.h: New file.
4149 * sysdeps/sh/bits/atomic.h: New file.
4150 * sysdeps/ia64/bits/atomic.h: New file.
4151 * sysdeps/powerpc/bits/atomic.h: New file.
4152 * sysdeps/generic/bits/atomic.h: New file.
4153 * sysdeps/i386/i486/atomicity.h: Removed.
4154 * sysdeps/x86_64/atomicity.h: Removed.
4155 * sysdeps/s390/s390-32/atomicity.h: Removed.
4156 * sysdeps/s390/s390-64/atomicity.h: Removed.
4157 * sysdeps/ia64/atomicity.h: Removed.
4158 * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
4159 * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
4160 * elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust
4161 use of macros from atomicity.h to new names and semantics.
4162 * gmon_mcount.c: Likewise.
4163 * malloc/set-freeres.c: Likewise.
4164 * nscd/cache.c: Likewise.
4165 * stdlib/cxa_finalize.c: Likewise.
4166 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
4167
ce3a4adf
AO
41682003-03-19 Alexandre Oliva <aoliva@redhat.com>
4169
4009bf40 4170 * sysdeps/mips/ieee754.h: New file, suitable to replace both
ce3a4adf
AO
4171 ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
4172 mips-specific for now.
4173
8c937b84
UD
41742003-03-19 Ulrich Drepper <drepper@redhat.com>
4175
4009bf40 4176 * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
85b5767c
UD
4177 hexdigits correctly. Reported by Fred Tydeman <tydeman@tybor.com>.
4178 * stdlib/tst-strtod.c: Add test for the bug.
4179
8c937b84
UD
4180 * posix/tst-nice.c (do_test): Remove invalid of return value.
4181 Don't run test if initial level != 0.
4182
cb8ed941
UD
41832003-03-19 Amos Waterland <apw@us.ibm.com>
4184
4185 * posix/tst-nice.c: New file.
4186 * posix/Makefile (tests): Add tst-nice.
4187
32a448ed
RM
41882003-03-18 Roland McGrath <roland@redhat.com>
4189
94659495
RM
4190 * abilist: New directory of libfoo.abilist files maintained using
4191 scripts/merge-abilist.awk and "make update-abi" rules.
4192 * Makefile (distribute): Add abilist/*.abilist.
4193 * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
4194 Depend on check-abi.
4195
32a448ed
RM
4196 * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
4197 * configure: Regenerated.
4198
4199 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
4200
dacb2bad
UD
42012003-03-18 Ulrich Drepper <drepper@redhat.com>
4202
4203 * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
4204 correctly.
4205
a14b373c
UD
42062003-03-18 Steven Munroe <sjmunroe@us.ibm.com>
4207
4208 * sysdeps/powerpc/powerpc64/memcpy.S: New file.
4209
d5cb8389
UD
42102003-03-18 Ulrich Drepper <drepper@redhat.com>
4211
4212 * Versions.def: Add GLIBC_2.3.3 for libpthread.
4213
97026947
UD
42142003-03-17 Ulrich Drepper <drepper@redhat.com>
4215
4216 * sysdeps/generic/libc-start.c [!SHARED &&
4217 !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
4218
98054a05
RM
42192003-03-17 Roland McGrath <roland@redhat.com>
4220
4221 * include/ctype.h: Revert last change.
4222
0a8d8004
UD
42232003-03-17 Ulrich Drepper <drepper@redhat.com>
4224
4225 * argp/tst-argp1.c: Use test-skeleton.c.
4226 * locale/tst-C-locale.c: Likewise.
4227
c27d6848
AO
42282003-03-17 Alexandre Oliva <aoliva@redhat.com>
4229
5a0e429d
AO
4230 * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
4231 * sysdeps/mips/mips64/n64/Implies: New file.
4232 * sysdeps/mips/mips64/n64/Makefile: New file.
4233 * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
4234 * sysdeps/mips/mips64/n32/Implies: New file.
4235 * sysdeps/mips/mips64/n32/Makefile: New file.
4236 * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
4237 * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
4238 * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
4239 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
4240 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
4241 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
4242 * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
4243 * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
4244 * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
4245 * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
4246 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
4247 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
4248 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
4249 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
4250
fc32835a
AO
4251 * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
4252 lib64 for mips64/n64 and lib32 for mips64/n32.
4253 (ldd_rewrite_script): Needed for all mips64 configurations.
4254 * sysdeps/unix/sysv/linux/configure: Rebuilt.
4255 * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
4256 * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
4257
c3b519b7
AO
4258 * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
4259 well.
4260
c27d6848
AO
4261 * sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
4262 asm/unistd.h into asm-unistd.h.
4263 * sysdeps/unix/sysv/linux/mips/configure: Generated.
4264 * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
4265 of syscall list.
4266 * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
4267 * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
4268 asm/unistd.h.
4269
935af0f2
AO
4270 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
4271 * sysdeps/unix/sysv/linux/mips/ptrace.c: New file. Use long
4272 long type for registers on n32.
4273
4947b4b2
AO
4274 * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
4275 3 ABIs.
4276 * sysdeps/mips/mips64/gmp-mparam.h: New file. Define
4277 BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
4278 * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
4279 (__sigsetjmp_aux): Use them. Adjust for all 3 ABIs.
4280 * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
4281 * sysdeps/unix/mips/brk.S: Likewise.
4282 * sysdeps/unix/mips/sysdep.S: Likewise.
4283 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
4284 * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
4285 * sysdeps/mips/sys/ucontext.h: Likewise.
4286 * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
4287 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
4288 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
4289 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
4290 * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
4291 * sysdeps/mips/mips64/setjmp.S: Likewise.
4292 * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
4293 * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
4294 64-bit types.
4295
b6e2f87a
UD
42962003-03-16 Ulrich Drepper <drepper@redhat.com>
4297
4298 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
4299 not at function level.
4300 * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
4301
638bb1f3
RM
43022003-03-15 Roland McGrath <roland@redhat.com>
4303
8112cc70
RM
4304 * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
4305 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
4306 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
4307 * nis/nis_table.c (__create_ib_request): Likewise.
4308
eb64f8cb 4309 * posix/fnmatch_loop.c: Add casts for signedness.
addc92bd 4310 * nss/nss_files/files-hosts.c: Likewise.
eb64f8cb
RM
4311 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
4312 * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
4313 * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
4314
385cce41
RM
4315 * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
4316 get errors into the log file.
4317 (libc_cv_broken_visibility_attribute): Likewise.
4318 (libc_cv_broken_alias_attribute): Likewise.
4319 (libc_cv_asm_weak_directive): Likewise.
4320 (libc_cv_need_minus_P): Likewise.
4321 (libc_cv_dot_text): Likewise.
4322 (libc_cv_asm_global_directive): Likewise.
4323 (libc_cv_asm_type_prefix): Likewise.
4324 * configure: Regenerated.
4325
638bb1f3
RM
4326 * nscd/cache.c (cache_search): Give first arg type `request_type'.
4327 * nscd/nscd.h: Update decl.
4328
4329 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
4330 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
4331 * elf/dl-close.c (_dl_close): Likewise.
4332 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
4333 * io/fts.c (fts_build): Likewise.
4334 * elf/cache.c (add_to_cache): Likewise.
4335 * locale/programs/locarchive.c (show_archive_content): Likewise.
4336
4337 * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
4338
4339 * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
4340 happy.
4341 (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
4342
c04dad40
UD
43432003-03-15 Ulrich Drepper <drepper@redhat.com>
4344
4345 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
4346 code for most parts.
4347
124dcac8
RM
43482003-03-15 Roland McGrath <roland@redhat.com>
4349
7eecc0c2
RM
4350 * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
4351 * sysdeps/unix/sysv/linux/system.c: ... here.
4352 (FORK): Don't #define if already #define'd.
4353 * sysdeps/unix/sysv/linux/s390/system.c: File removed.
4354 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
4355 (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
4356
45e4762c
RM
4357 * dlfcn/tst-dlinfo.c: New file.
4358 * dlfcn/Makefile (tests): Add tst-dlinfo.
4359 ($(objpfx)tst-dlinfo): New target.
4360
4361 * dlfcn/dlinfo.c: New file.
4362 * dlfcn/Makefile (libdl-routines): Add it.
4363 * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
4364 * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
4365 [__USE_GNU] (RTLD_DI_*): New enum constants.
4366 [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
4367 * elf/dl-load.c (cache_rpath): New inline function.
4368 (_dl_map_object): Use it.
4369 (_dl_rtld_di_serinfo): New function.
4370 * sysdeps/generic/ldsodefs.h: Declare it.
4371 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
4372
124dcac8
RM
4373 * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
4374 (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
4375 (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
4376 (__libc_start_main): Just call the generic one for most of the work.
4377
4378 * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
4379 static function by that name instead of BP_SYM (__libc_start_main).
4380 [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
4381 [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
4382 [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
4383
4384 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
4385 Use this macro for extra AT_* cases.
4386 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
4387 New macro, guts from ...
4388 (__aux_init_cache): ... here, function removed.
4389 (DL_PLATFORM_INIT): Don't define this.
4390
4391 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
4392 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
4393
e993ec9a 4394 * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
124dcac8 4395
39d8c1a2
RM
43962003-03-14 Roland McGrath <roland@redhat.com>
4397
4398 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
4399
c58859ce
RM
44002003-03-14 Jakub Jelinek <jakub@redhat.com>
4401
4402 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
4403
4404 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
4405 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
4406
44bc0afb
AO
44072003-03-14 Alexandre Oliva <aoliva@redhat.com>
4408
882dda66
AO
4409 * sysdeps/mips/fpu/bits/mathdef.h: New.
4410 (__NO_LONG_DOUBLE_MATH): Define for o32.
4411
4abdb6ca
AO
4412 * sysdeps/mips/sys/asm.h: Formatting changes.
4413 (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
4414 (CPADD): Define for all of them.
4415 (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
4416 SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
4417 NARGSAVE): Define per ABI spec.
4418 (END): Don't redefine.
4419 (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
4420 LONG_SRAV): Remove duplicate definitions.
4421 (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
4422 PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
4423 PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
4424 (PTR_LA): Define for all 3 ABIs.
4425
365eccdb
AO
4426 * sysdeps/mips/dl-machine.h: Include sys/asm.h.
4427 (elf_machine_matches_host): Prevent linking of o32 and n32
4428 together.
4429 (elf_machine_dynamic): Document assumption on $gp.
4430 (STRINGXP, STRINGXV, STRINGV_): New macros.
4431 (elf_machine_load_address): Use them to stringize PTR_LA and
4432 PTR_SUBU.
4433 (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
4434 ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
4435 (_dl_runtime_resolve): Adjust it for all 3 ABIs.
4436 (__dl_runtime_resolve): Cast the symtab initializer to the
4437 right type.
4438 (RTLD_START): Use it. Adjust it for all 3 ABIs.
4439 (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
4440 Handle 64-bit R_MIPS_REL composite relocation and accept
4441 R_MIPS_64 relocations to shift addend size to 64 bits.
4442 Document assumption regarding local GOT entries. Document
4443 backward-compatibility departing from the ABI behavior in
4444 applying relocations that reference section symbols, no longer
4445 used. Support relocations to mis-aligned offsets.
4446 * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
4447
d4c803f8
AO
4448 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
4449
84c63a76
AO
4450 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
4451 (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
4452 * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
4453 restore_rt functions. Use them.
4454
44bc0afb
AO
4455 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
4456 .set mips2 on new abis.
4457
564cd8b6
UD
44582003-03-13 Ulrich Drepper <drepper@redhat.com>
4459
4460 * posix/getconf.c: Recognize POSIX2_SYMLINKS.
4461 * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
4462 * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
4463 * sysdeps/posix/pathconf.c: Likewise.
4464 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
4465 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
4466 * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
4467
4468 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
4469 words.
4470
3be9dc8e
AO
44712003-03-14 Alexandre Oliva <aoliva@redhat.com>
4472
4473 * include/gmp.h: Include/gmp-mparam.h.
4474 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
4475 gmp-impl.h.
4476
a77dcecf
AO
4477 * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
4478 ELF_MACHINE_NO_RELA is set.
4479 * elf/rtld.c (dl_main): No prelink support for REL-only.
4480
b5bac573
AO
4481 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
4482 FLAG_MIPS64_LIBN64): Define.
4483 * elf/cache.c (print_entry): Handle mips64 n32 and n64.
4484
5ace1393
AO
4485 * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
4486 * sysdeps/mips/memset.S: Likewise.
4487 * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
4488 depending on the ABI.
4489
1b12a2cb
AO
4490 * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
4491 Don't .set mips2 on new abi.
4492 (compare_and_swap): Likewise. Support 64-bit longs on n64.
4493
264befa8
AO
4494 * stdlib/fpioconst.h: Include gmp.h with angle brackets.
4495
d8a5edc2
RM
44962003-03-13 Roland McGrath <roland@redhat.com>
4497
4498 * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
4499 found. Reported by Alexandre Oliva <aoliva@redhat.com>.
4500
45012003-03-13 Alexandre Oliva <aoliva@redhat.com>
4502
4503 * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
4504 literals long long.
4505 * stdlib/fpioconst.c: Likewise.
4506 * stdlib/strtod.c: Likewise.
4507
4508 * sysdeps/mips/add_n.S: Use L macro for local labels.
4509 * sysdeps/mips/addmul_1.S: Likewise.
4510 * sysdeps/mips/lshift.S: Likewise.
4511 * sysdeps/mips/memcpy.S: Likewise.
4512 * sysdeps/mips/memset.S: Likewise.
4513 * sysdeps/mips/mul_1.S: Likewise.
4514 * sysdeps/mips/rshift.S: Likewise.
4515 * sysdeps/mips/sub_n.S: Likewise.
4516 * sysdeps/mips/submul_1.S: Likewise.
4517 * sysdeps/mips/mips64/add_n.S: Likewise.
4518 * sysdeps/mips/mips64/addmul_1.S: Likewise.
4519 * sysdeps/mips/mips64/lshift.S: Likewise.
4520 * sysdeps/mips/mips64/mul_1.S: Likewise.
4521 * sysdeps/mips/mips64/rshift.S: Likewise.
4522 * sysdeps/mips/mips64/sub_n.S: Likewise.
4523 * sysdeps/mips/mips64/submul_1.S: Likewise.
4524 * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
4525 conventions. Define END as in sys/asm.h.
4526 * sysdeps/unix/mips/sysdep.S: Likewise.
4527 * sysdeps/unix/mips/wait.S: Likewise.
4528 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
4529
4530 * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
4531 Cast shifted values that may be too narrow to mp_limb_t.
4532 * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
4533 Likewise.
4534 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
4535 Likewise.
4536 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
4537 (__mpn_extract_long_double): Likewise.
4538 * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
4539 (__mpn_construct_long_double): Likewise.
4540 * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
4541 (__mpn_extract_long_double): Likewise.
4542 * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
4543 (__mpn_construct_long_double): Likewise.
4544
6461e577
RM
45452003-03-13 Roland McGrath <roland@redhat.com>
4546
4547 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
4548 entries in the map file match too.
4549
6fde8d53
AJ
45502003-03-13 Guido Guenther <agx@sigxcpu.org>
4551
4552 * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
4553 label .Lthread_start since current binutils don't allow branches
4554 to globally visible symbols.
4555
b5ec5617
UD
45562003-03-13 Jakub Jelinek <jakub@redhat.com>
4557
4558 * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
4559 ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
4560 ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
4561 (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments
4562 clobbered by the syscall.
4563 (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
4564 ASM_ARGS_6): Change constraints from r to index of corresponding
4565 output register.
4566 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
4567 ptid and ctid to match kernel.
4568 * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
4569
3cd69852
RM
45702003-03-12 Steven Munroe <sjmunroe@us.ibm.com>
4571
b5ec5617 4572 * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
3cd69852 4573 AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64.
b5ec5617 4574 * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
3cd69852 4575
d63609a7
RM
45762003-03-11 Roland McGrath <roland@redhat.com>
4577
4578 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
4579 Check SYM_MAP rather than SYM as definedness check.
4580 Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
4581 Don't handle R_PPC64_REL24 reloc.
4582 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
4583
4584 * sysdeps/powerpc/powerpc64/dl-machine.h
4585 [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
4586 block, so we cover all the TPREL16* flavors without 6 ||s.
4587 [USE_TLS] (elf_machine_tprel): New function.
4588 (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
4589 and handle TPREL16 relocs too. Return rather than break for DTPREL64.
4590 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
4591
b874af99
UD
45922003-03-11 Ralf Baechle <ralf@linux-mips.org>
4593
4594 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
4595 instead of jalr to invoke subroutine so restoring the $gp register
4596 will work properly.
4597
6c477888
UD
45982003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
4599
4600 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
4601 to __NR_pread if not defined.
4602 (__NR_pwrite64): Define to __NR_pwrite if not defined.
4603
f006d3a0
UD
46042003-03-11 Jakub Jelinek <jakub@redhat.com>
4605
4606 * sysdeps/unix/sysv/linux/ia64/system.c: New file.
4607 * sysdeps/unix/sysv/linux/kernel-features.h
4608 (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
4609 kernel >= 2.5.64.
4610
b33e6163
RM
46112003-03-11 Jakub Jelinek <jakub@redhat.com>
4612
4613 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
4614 allocate space even for the trailing '/'.
4615 Reported by John Reiser <jreiser@BitWagon.com>.
4616
4617 * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
4618 ASM_CLOBBERS_6): Define.
4619 (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
4620 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
4621 to match IA-32 order.
4622 * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
4623
19afbd2c
RM
46242003-03-10 Steven Munroe <sjmunroe@us.ibm.com>
4625
f006d3a0 4626 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
19afbd2c
RM
4627 Copy extra params for NPTL to registers used in clone syscall.
4628
ce2290cb
RM
46292003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
4630
4631 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
4632 call names for pread and pwrite.
4633
e48f9638
RM
46342003-03-10 Roland McGrath <roland@redhat.com>
4635
d38c777e
RM
4636 * dlfcn/Makefile (libdl-routines): Add dladdr1.
4637 * dlfcn/dladdr1.c: New file.
4638 * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
4639 [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
4640 * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
4641 a const ElfNN_Sym ** to fill in.
4642 * include/dlfcn.h: Update decl. Include <link.h>.
4643 * dlfcn/dladdr.c (dladdr): Update caller.
4644 * malloc/mtrace.c (tr_where): Likewise.
4645 * sysdeps/generic/elf/backtracesyms.c: Likewise.
4646 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
4647 * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
4648 * Versions.def (libdl): Define GLIBC_2.3.3 set.
4649
e48f9638
RM
4650 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
4651 assembler command.
4652 * sysdeps/unix/Makefile (compile-syscall): New variable.
4653 Pass -g0 to compiler for assembling syscall stubs from stdin.
4654
4655 * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
4656 (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
4657 Define these to do nothing.
4658
4659 * configure.in: New check for -g on .S files.
4660 * configure: Regenerated.
4661 * config.make.in (have-cpp-asm-debuginfo): New variable.
4662 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
4663 * Makeconfig (ASFLAGS): New variable, if undefined and
4664 $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
4665 * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
4666
fcc60e3b
RM
46672003-03-09 Roland McGrath <roland@redhat.com>
4668
4669 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
4670 used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>.
4671
e51838c8
UD
46722003-03-09 Ulrich Drepper <drepper@redhat.com>
4673
4674 * po/fi.po: Update from translation team.
8049ef78 4675 * po/ca.po: Likewise.
c37cae9e 4676 * po/da.po: Likewise.
e51838c8 4677
05ae97d8
UD
46782003-03-08 Ulrich Drepper <drepper@redhat.com>
4679
4680 * rt/tst-aio7.c (do_test): Change BYTES into a #define.
4681
b6b9ee9b
UD
46822003-03-07 Ulrich Drepper <drepper@redhat.com>
4683
fcc60e3b 4684 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
35457070 4685
b6b9ee9b
UD
4686 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
4687
6326c93c
RM
46882003-03-07 Roland McGrath <roland@redhat.com>
4689
4690 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
4691 * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
4692
2090a1d0
AJ
46932003-03-04 Guido Guenther <agx@sigxcpu.org>
4694
4695 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
4696 stubs, we have INLINE_SYSCALL.
4697 * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
4698 MAP_NONBLOCK.
4699
696efd11
RM
47002003-03-06 Roland McGrath <roland@redhat.com>
4701
4702 * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1
4703 permanent extent and add a comment about testing its implicit teardown.
4704
f1a56a2b
RM
47052003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
4706
4707 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
4708
49400d0e
UD
47092003-03-05 Ulrich Drepper <drepper@redhat.com>
4710
4711 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
4712 reversed __builtin_expect expectation.
4713
5fc728a2
RM
47142003-03-05 Roland McGrath <roland@redhat.com>
4715
4716 * stdio-common/sscanf.c: Use prototype defn with ... syntax.
4717 * libio/swscanf.c: Likewise.
4718 * libio/swprintf.c: Likewise.
4719
510793fd
RM
47202003-03-04 Roland McGrath <roland@redhat.com>
4721
790eed83
RM
4722 * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
4723 (elf_machine_rela): Always use RESOLVE_MAP, needed for
4724 R_PPC64_JMP_SLOT as well as TLS cases.
4725 (BIT_INSERT): Move parenthesis where it ought to have been.
4726 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
4727
510793fd
RM
4728 * posix/confstr.c (confstr): Correct STRING_LEN values for
4729 _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
4730 break. Reported by Alexandre Julliard <julliard@winehq.com>.
4731
0de28d5c
UD
47322003-03-04 Jakub Jelinek <jakub@redhat.com>
4733
4734 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
4735
269e8af7
UD
47362003-03-04 Ulrich Drepper <drepper@redhat.com>
4737
e2b80a58
UD
4738 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
4739 clone parameters.
4740
269e8af7
UD
4741 * po/sv.po: Update from translation team.
4742
330a187b 47432003-03-04 Andreas Jaeger <aj@suse.de>
269e8af7 4744 Ulrich Drepper <drepper@redhat.com>
330a187b
AJ
4745
4746 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
4747
4f6f0a8f
UD
47482003-03-03 Ulrich Drepper <drepper@redhat.com>
4749
cc775edf
UD
4750 * sysdeps/generic/dl-sysdep.h: Add double include protection.
4751
75081542
UD
4752 * po/tr.po: Update from translation team.
4753
6fffb9a2
UD
4754 * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
4755 are holes between the segments. Only call mprotect to set
4756 proection to PROT_NONE if there are some.
4757
4758 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
4759 Update comment.
4760
4f6f0a8f
UD
4761 * include/sched.h (__clone2): Use ... instead of adding all the
4762 new parameters.
4763
ce78b460
RM
47642003-03-03 Roland McGrath <roland@redhat.com>
4765
868b9d6a
RM
4766 * elf/dl-load.c (struct filebuf): Fix typo in last change.
4767
ce78b460
RM
4768 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
4769 PI_STATIC_AND_HIDDEN.
ce78b460 4770
625f22fc
UD
47712003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au>
4772
4773 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
4774 flags.
4775 * include/sched.h: Update clone2 prototype.
4776
71502ebe
UD
47772003-03-03 Andreas Jaeger <aj@suse.de>
4778
4779 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
4780 (llrint): Use it to correct return type.
4781 (lrint): Likewise.
4782 (lround): Likewise.
4783 (llround): Likewise.
4784
d15a8404
UD
47852003-03-03 Ulrich Drepper <drepper@redhat.com>
4786
ca97fb53
UD
4787 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
4788 byte filebuf size.
4789
1739d268
UD
4790 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
4791 if ccs parameter isn't valid. Reported by Andreas Schwab.
4792
47932003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
4794
4795 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
4796 for system call numbers > 255.
4797 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
4798 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
4799 INTERNAL_SYSCALL): Likewise.
4800 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
4801 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
4802 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
4803 INTERNAL_SYSCALL): Likewise.
4804
48052003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
4806
4807 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
4808 array if it is the initial dtv.
4809
48102003-03-03 Ulrich Drepper <drepper@redhat.com>
4811
4812 * po/es.po: Update from translation team.
4813 * po/fr.po: Likewise.
71502ebe 4814 * po/gl.po: Likewise.
1739d268
UD
4815 * po/sk.po: Likewise.
4816 * po/sv.po: Likewise.
4817
d15a8404
UD
4818 * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
4819 * misc/sys/mman.h: Add prototype for remap_file_pages.
4820 * sysdeps/generic/remap_file_pages.c: New file.
3c531a87 4821 * misc/Makefile (routines): Add remap_file_pages.
a05be180 4822 * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
d15a8404
UD
4823
4824 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
4825 and MAP_NONBLOCK.
4826 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
4827 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
4828 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
4829 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
4830 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
4831 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
4832 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
4833 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
4834
ea6a015b
RM
48352003-03-03 Roland McGrath <roland@redhat.com>
4836
a49f5762
RM
4837 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
4838 * sysdeps/ia64/dl-machine.h: Likewise.
4839 * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
4840 argument type.
4841 * sysdeps/ia64/dl-lookupcfg.h: Update decl.
4842
4843 * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
4844 * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
4845 * locale/Versions (libc: GLIBC_2.3): Move those to ...
4846 * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
4847 * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
4848 * Versions.def (libc): Add GLIBC_2.3.3 set.
4849
ea6a015b
RM
4850 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
4851 * sysdeps/ia64/dl-machine.h: Update decl.
4852
62584540
AJ
48532003-03-03 Andreas Jaeger <aj@suse.de>
4854
d15a8404 4855 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
62584540 4856
78c3fb45
RM
48572003-03-02 Roland McGrath <roland@redhat.com>
4858
4859 * scripts/abilist.awk: Reject data items with apparent 0 size.
4860
4861 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
4862 after foo.* as if it were a duplicate.
4863
4864 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
4865
885bafa1
UD
48662003-03-02 Ulrich Drepper <drepper@redhat.com>
4867
1be3d664
UD
4868 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
4869
885bafa1
UD
4870 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
4871 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
4872 if not already defined. Use SYSDEP_GETRES to allow other files to
4873 provide alternative implementations.
4874 * sysdeps/unix/sysv/linux/clock_getres.c: New file
4875 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
4876 if not already defined. Use SYSDEP_GETTIME to allow other files to
4877 provide alternative implementations.
4878 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
4879 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
4880 if not already defined. Use SYSDEP_GETTIME to allow other files to
4881 provide alternative implementations.
4882 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
4883 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
4884 other files to provide alternative implementations. Rearrange
4885 tests for invalid parameters.
4886 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
4887 * sysdeps/unix/sysv/linux/sysconf.c: New file.
4888 * sysdeps/unix/sysv/linux/kernel-features.h: Define
78c3fb45 4889 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
885bafa1
UD
4890 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
4891 _POSIX_MONOTONIC_CLOCK.
4892
bb0ddc2f
RM
48932003-03-02 Roland McGrath <roland@redhat.com>
4894
8f3846a9
RM
4895 * scripts/merge-abilist.awk: More checks for bogus input.
4896 Uniquify duplicate config names.
4897
4898 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
4899
7551556f
RM
4900 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
4901 from dl_reloc_overflow, make global.
4902 (__process_machine_rela): Update callers.
4903 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
4904 Add attribute_hidden to __process_machine_rela decl.
4905 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
4906
3a601d31
RM
4907 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
4908 variable.
4909
bb0ddc2f
RM
4910 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
4911 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
4912 (elf_machine_rela): Clean up.
4913
4914 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
4915
4916 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
4917 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
4918 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
4919 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
4920 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
4921 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
4922 new relocs for TLS.
4923
4924 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
4925 macros out of [SHARED].
4926 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
4927
4928 * elf/elf.h: Define R_PPC_* relocs for TLS support.
4929 Clean up R_PPC64_* macro definition comments.
7ed33cba 4930
d1149385
RM
4931 * configure.in: In "running configure fragment for" message,
4932 omit $srcdir from the name if we prepended it.
4933 * configure: Regenerated.
4934
7ed33cba
RM
4935 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
4936 From Jakub Jelinek <jakub@redhat.com>.
4937
4938 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
4939 which duplicated the O_DIRECT defn.
4940
49412003-03-01 GOTO Masanori <gotom@debian.or.jp>
4942
4943 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
4944 random functions.
4945
4191f43d
AS
49462003-03-01 Andreas Schwab <schwab@suse.de>
4947
7ed33cba
RM
4948 * resolv/Makefile (tests): Don't depend on
4949 $(objpfx)mtrace-tst-leaks when cross compiling.
4950
4191f43d
AS
4951 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
4952 __libc_stack_end through GOT since it is a global symbol.
4953
85c54a32
UD
49542003-03-01 GOTO Masanori <gotom@debian.or.jp>
4955
4956 * argp/argp.h: Fix a typo.
4957 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
4958
4959 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
4960
49612003-02-27 Pat Rankin <rankin@pactechdata.com>
4962
4963 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
4964 char *.
4965 (get_subexp): Likewise.
4966
a6861e64
UD
49672003-03-01 GOTO Masanori <gotom@debian.or.jp>
4968
4969 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
4970
49712003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
4972
4973 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
4974
a6963e69
RM
49752003-02-27 Roland McGrath <roland@redhat.com>
4976
4977 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
4978 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
4979 repeat it and avoids the test for the common case.
4980 Clean up and fix calculations for TLS relocs.
4981
4982 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
4983 * sysdeps/powerpc/dl-tls.h: ... here.
4984 (TLS_TP_OFFSET): New macro.
4985
4986 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
4987
427f5fa1
UD
49882003-02-27 Ulrich Drepper <drepper@redhat.com>
4989
4990 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
4991 code generation changes in recent gcc.
4992
73a061bb
RM
49932003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
4994
4995 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
4996 Rename argument to avoid symbol conflict.
4997
4998 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
4999 [__USE_GNU] (O_DIRECT): New macro.
5000
d2637c70
UD
50012003-02-24 David Mosberger <davidm@hpl.hp.com>
5002
5003 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
5004 unwind info.
5005
d148ed25
UD
50062003-02-27 Ulrich Drepper <drepper@redhat.com>
5007
e361e438
UD
5008 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
5009 initializer anymore now that res_thread_freeres is more careful.
5010
d148ed25
UD
5011 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
5012 except the PKTINFO. Reset interface in PKTINFO.
dbf6131c 5013 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
d148ed25 5014
fec41719
RM
50152003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
5016
d148ed25
UD
5017 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
5018 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
5019 Define.
fec41719
RM
5020 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
5021 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
afafddab
RM
5022 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
5023 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
fec41719 5024
d148ed25 5025 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
fec41719
RM
5026 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
5027
56ce76ea
AJ
50282003-02-25 Andreas Jaeger <aj@suse.de>
5029
5030 * manual/memory.texi (Malloc Tunable Parameters): Clarify
5031 behaviour of M_MMAP_THRESHOLD.
5032
724fad20
RM
50332003-02-25 Roland McGrath <roland@redhat.com>
5034
5035 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
5036 zero, inidicating _res was not initialized yet.
5037
80d80779
UD
50382003-02-24 Ulrich Drepper <drepper@redhat.com>
5039
5040 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
5041 test.
5042
81b47a8b
RM
50432003-02-24 Roland McGrath <roland@redhat.com>
5044
5045 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
5046
de217051
RM
50472003-02-23 Roland McGrath <roland@redhat.com>
5048
5049 * sysdeps/posix/pause.c: New file.
5050 * sysdeps/unix/common/pause.c: File removed.
5051
fd1a0d0c
UD
50522003-02-23 Ulrich Drepper <drepper@redhat.com>
5053
cdd8e46f
UD
5054 * sysdeps/generic/bits/confname.h: Remove #ifs.
5055
5a6bbb41
UD
5056 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
5057 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
5058
fd1a0d0c
UD
5059 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
5060 element to -1.
5061
249062b0
UD
50622003-02-22 Ulrich Drepper <drepper@redhat.com>
5063
5064 * sysdeps/generic/dl-sysdep.c: Avoid warning.
5065
92cc462c
RM
50662003-02-22 Roland McGrath <roland@redhat.com>
5067
ce84ab61
RM
5068 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
5069 * resolv/Makefile (tests): Add tst-leaks.
5070 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
5071 (tst-leaks-ENV): New variable.
5072 ($(objpfx)mtrace-tst-leaks): New target.
5073 (tests): Depend on it.
5074
d2d442a5
RM
5075 * include/libc-internal.h: Declare __libc_thread_freeres.
5076
7a0c303e
RM
5077 * Makerules: Fix last change to use $($(subdir)-version) when set.
5078
cc8bfce9
RM
5079 * Makerules (install-lib-nosubdir): Depend on installed
5080 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
5081 regardless of the libfoo.so target's dependencies.
5082
92cc462c
RM
5083 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
5084 Use that in $(MAKE) calls.
5085
e57f9f75
UD
50862003-02-22 Ulrich Drepper <drepper@redhat.com>
5087
819c56e7
UD
5088 * catgets/gencat.c (read_input_file): Collision between
5089 auto-assigned numbers and user-defined nubmers is not fatal.
5090 Handle it.
5091 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
c780aa21
UD
5092 * catgets/Makefile: Add rules to run test2.msg test.
5093 * catgets/test2.msg: New file.
819c56e7
UD
5094
5095 * catgets/gencat.c (main): Return 1 if messages have been printed.
5096
757f9fcb
UD
5097 * iconv/iconv_prog.c (main): Unify messages.
5098
e57f9f75
UD
5099 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
5100 when shifting retval.
5101 * stdlib/tst-strtod.c (main): Add strtold test case.
5102 Reported by Fred J. Tydeman <tydeman@tybor.com>.
5103
e8783fd5
RM
51042003-02-21 Roland McGrath <roland@redhat.com>
5105
2a3d906e
RM
5106 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
5107 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
5108 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
5109
5110 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
5111 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
5112 (res_thread_freeres): New function, on __libc_thread_subfreeres and
5113 __libc_subfreeres.
5114
5115 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
e8783fd5
RM
5116 * malloc/thread-freeres.c: New file.
5117 * malloc/Makefile (aux): Add it.
2a3d906e 5118 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
e8783fd5
RM
5119 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
5120 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
5121
5122 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
5123 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
5124
51252003-02-21 Roland McGrath <roland@frob.com>
5126
5127 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
5128
5129 * iconvdata/Makefile (tests): Add bug-iconv3 only if
5130 [$(have-thread-library) = yes].
5131
1c848253
UD
51322003-02-21 Ulrich Drepper <drepper@redhat.com>
5133
9c03686d
UD
5134 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
5135
1c848253
UD
5136 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
5137 not chechk for errors (unless testing for 32bit variant).
5138 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
5139 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
5140 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
5141
6f50cb00
UD
51422003-02-21 Jakub Jelinek <jakub@redhat.com>
5143
5144 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
5145 Check for signed overflow, not unsigned.
5146
cef0a48d
UD
5147 * sysdeps/sparc/sparc64/elf/configure.in: New file.
5148 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
5149 Use -fcall-used-g6, not -fcall-used-g7.
5150
dd3608b9
AJ
51512003-02-21 Andreas Jaeger <aj@suse.de>
5152
5153 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
5154 mode.
5155
5156 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
5157 clear whole mxcsr but only exceptions.
5158
59fed0e2
RM
51592003-02-21 Roland McGrath <roland@redhat.com>
5160
5161 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
5162 for libfoo.so that need $(make-link) rules.
5163
36f0ccda
RM
51642003-02-21 Roland McGrath <roland@frob.com>
5165
5166 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
5167 to match existing struct stat layout in mig protocols.
5168
ec503662
UD
51692003-02-20 Ulrich Drepper <drepper@redhat.com>
5170
5171 * version.h (VERSION): Bump to 2.3.2.
5172
5173 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
5174 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
5175 and dl-sysdep.h.
5176 * sysdeps/generic/Dist: Add sysdep-cancel.h.
5177 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
5178 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
5179 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
5180 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
5181 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
5182 ucontext_i.h.
5183 * Makefile (distribute): Add include/stubs-prologue.h,
5184 include/gnu/stubs.h, scripts/merge-abilist.awk, and
5185 scripts/extract-abilist.awk.
5186
af57745c
RM
51872003-02-20 Roland McGrath <roland@redhat.com>
5188
5189 * math/Makefile (distribute): Don't add generated files.
5190
6314208a
UD
51912003-02-20 Ulrich Drepper <drepper@redhat.com>
5192
6314208a
UD
5193 * math/Makefile: Rearrange variable definitions slightly to get
5194 definition in the right order.
5195
ab10a294
RM
51962003-02-20 Roland McGrath <roland@redhat.com>
5197
5198 * Makerules: Clean up conditional around include of tls.make.
5199 * Make-dist: Export generating=t to prevent using that.
5200 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
5201
54e1cabc
UD
52022003-02-20 Ulrich Drepper <drepper@redhat.com>
5203
5204 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
5205 around in search if port IPPORT_RESERVED/2 has been test.
5206
ec503662 52072002-02-20 Paolo Bonzini <bonzini@gnu.org>
54e1cabc
UD
5208
5209 * posix/regcomp.c: Remove inclusions.
5210 * posix/regexec.c: Likewise.
5211 * posix/regex_internal.c: Likewise.
5212 * posix/regex_internal.h: Add inclusions here.
5213 * posix/regex.c: Only include sys/types.h before regex.h. Include
5214 regex_internal.h here. Include regex_internal.c before regcomp.c
5215 and regexec.c (might expose more opportunities to the C compiler).
5216
5217 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
5218
5219 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
5220 [!_LIBC] (__wcrtomb): New definition.
5221 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
5222 HAVE_LOCALE_H as well.
5223
6eb74f33
UD
52242003-02-20 Ulrich Drepper <drepper@redhat.com>
5225
5226 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
5227 patch to check for system call errors.
5228
05856976
UD
52292002-07-24 Philip Blundell <philb@gnu.org>
5230
5231 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
5232 on unknown systems.
5233
52342003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5235
5236 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
5237 * sysdeps/unix/sysv/linux/kernel-features.h
5238 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
5239 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
5240 if possible.
5241 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
5242 interprocedure branches.
5243 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
5244 * sysdeps/powerpc/nofpu/Dist: ...here.
5245 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
5246 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
5247 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
5248 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
5249 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
5250
a592f998
UD
52512003-02-18 Alan Modra <amodra@bigpond.net.au>
5252
5253 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
5254
44ed664b
UD
52552003-02-20 Philip Blundell <philb@gnu.org>
5256
5257 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
5258 missing arguments to INTERNAL_SYSCALL_ERROR_P and
5259 INTERNAL_SYSCALL_ERRNO.
5260
ffdcfcb0
UD
52612003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
5262
5263 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
5264 for __ASSUME_32BITUIDS.
5265
4b2ed419
AS
52662003-02-20 Andreas Schwab <schwab@suse.de>
5267
5268 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
5269 POSIX_MADV_* constants.
5270
01b28852
UD
52712003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5272
5273 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
5274 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
5275 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
5276 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
5277
a70e514b
UD
52782003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
5279
5280 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
5281
ade67411
RM
52822003-02-16 Roland McGrath <roland@redhat.com>
5283
5284 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
5285
1c524710
UD
52862003-02-19 Ulrich Drepper <drepper@redhat.com>
5287
01b28852 5288 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
1c524710 5289 decimal input digits.
b5f7b119 5290 * stdlib/tst-strtod.c (main): Add test for strtof bug.
1c524710 5291
2f7dc594
UD
52922003-02-18 Ulrich Drepper <drepper@redhat.com>
5293
5294 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
5295 invalid file descriptors and missing access permissions.
5296
46d7e2ba
UD
52972003-02-17 Ulrich Drepper <drepper@redhat.com>
5298
8bd3f184 5299 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
2cfe49db
UD
5300 been found.
5301
46d7e2ba
UD
5302 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
5303 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
5304 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
5305 and LOGIN_NAME_MAX.
5306
b2740a3b
UD
53072003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
5308 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5309
5310 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
5311 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
5312 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
5313 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
5314 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
5315
81b50572
UD
53162003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5317
5318 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
5319 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
5320 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
5321 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
5322 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
5323 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
5324
5325 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
5326 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
5327 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
5328 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
5329
5330 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
5331 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
5332 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
5333 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
5334
fdcd8f9c
UD
53352003-02-14 Thorsten Kukuk <kukuk@suse.de>
5336
5337 * nss/getent.c (print_hosts): Print all IP addresses of one host.
5338
7125d3cf
RM
53392003-02-15 Roland McGrath <roland@frob.com>
5340
8321ef15
RM
5341 * sysdeps/mach/hurd/tls.h: New file.
5342 * sysdeps/mach/hurd/i386/tls.h: New file.
5343
b0104b6f
RM
5344 * mach/errsystems.awk: Include <errno.h> in generated output.
5345
7125d3cf
RM
5346 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
5347 use target mach-before-compile instead of generated.
5348 (mach-before-compile): New target.
5349 * Makerules: Disable use of tls.make if $(generating) is set.
5350 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
5351 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
5352 mach-shortcuts.h so mach/ generation happens before hurd/.
5353
47202270
UD
53542003-02-14 Ulrich Drepper <drepper@redhat.com>
5355
a439bb2f
UD
5356 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
5357 of demorm correctly if low word is zero.
5358 Reported by Fred J. Tydeman <tydeman@tybor.com>.
757de559
UD
5359 * math/libm-test.inc (nextafter_test): New test, but disabled due
5360 to gcc bug.
a439bb2f 5361
47202270
UD
5362 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
5363 counter and only call __exit_thread if this is not the last thread.
5364
dac0f772
UD
53652003-02-13 Jakub Jelinek <jakub@redhat.com>
5366
5367 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
5368 subtracting map->l_tls_offset.
5369
7437cbd1
UD
53702003-02-12 Ulrich Drepper <drepper@redhat.com>
5371
2067577c
UD
5372 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
5373 _CS_GNU_LIBPTHREAD_VERSION.
5374 * posix/conststr.c: Handle these new values.
5375 * posix/getconf.c: Likewise.
5376
7437cbd1
UD
5377 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
5378 masking of version index.
5379 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
5380
969c9da7
UD
53812003-02-11 Ulrich Drepper <drepper@redhat.com>
5382
5383 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
5384 correctly. Reported by Thorsten Kukuk.
5385
e5ffa64a
UD
53862003-02-10 Ulrich Drepper <drepper@redhat.com>
5387
5388 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
5389 _BSD_SOURCE to compiler.
5390 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
5391 Patches by Alan Modra.
5392
34c86f42
UD
53932003-02-08 Ulrich Drepper <drepper@redhat.com>
5394
5395 * io/ftwtest.c: Get current working directory before and after the
5396 nftw call and make sure they match.
5397
53982003-02-08 Jim Meyering <jim@meyering.net>
5399
2067577c 5400 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
34c86f42
UD
5401 the current directory, not just when DIR contains a slash.
5402 Reported by Manoj Srivastava.
5403
ae9ecd08
UD
54042003-02-07 Jim Meyering <jim@meyering.net>
5405
5406 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
5407 Include autoconf-recommended block of dirent/NAMELEN-related
5408 definitions and includes. Use NAMELEN throughout, rather than
5409 _D_EXACT_NAMLEN.
5410 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
5411 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
5412 (stpcpy): Declare, if necessary.
5413 (mempcpy): Define, if necessary.
5414 [!_LIBC] (__stpcpy, __mempcpy): Define.
5415 [!_LIBC] (LXSTAT, XSTAT): Define.
5416 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
5417 (find_object): Don't use c99-style struct initializer.
5418 Tweak wording in a couple comments.
5419
2a051a7d
UD
54202003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5421
5422 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
5423 for SH.
5424 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
5425 after the trapa instruction.
5426 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
5427 parameters.
5428 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
5429 (NEED_SYSCALL_INST_PAD): Define.
5430 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
5431 avoid to use definition for the kernel.
5432 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
5433 Save and restore the frame pointer.
5434 (SYSCALL_INST_PAD): Define.
5435 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
5436 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
5437 after trapa instruction.
5438 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
5439 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
5440
1f503475
UD
54412003-02-07 Jakub Jelinek <jakub@redhat.com>
5442
5443 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
5444 so that it can have aliases.
5445 * inet/herrno.c (h_errno): Put it into .bss not .data section.
5446
eecc378c
UD
54472003-02-07 Ulrich Drepper <drepper@redhat.com>
5448
5449 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
5450 (profile_fixup): Likewise.
1f503475 5451 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
eecc378c 5452
ce96c93d
UD
54532002-11-24 Robert Love <rml@tech9.net>
5454
5455 * posix/sched.h: Second parameter of sched_setaffinity and
5456 sched_getaffinity is `unsigned int', not `unsigned long'.
5457 * sysdeps/generic/sched_setaffinity.c: Likewise.
5458 * sysdeps/generic/sched_getaffinity.c: Likewise.
5459
e0f86659
UD
54602003-02-05 Ulrich Drepper <drepper@redhat.com>
5461
432cf458 5462 * debug/catchsegv.sh: Fix typo in error messsage.
ce96c93d 5463 Reported by John Levon <levon@movementarian.org>.
432cf458 5464
5cd09cd6
UD
5465 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
5466 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
5467 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
5468 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5469 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
5470 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5471 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5472
e0f86659
UD
5473 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
5474 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
5475
5049f197
UD
54762003-02-05 Jim Meyering <jim@meyering.net>
5477
5478 Fix a heap-corrupting bug.
5479 * io/ftw.c: Include <limits.h>.
5480 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
5481 (process_entry): Allocate enough space to hold the resulting
5482 file name. Don't presume that 2*dirbufsize is enough.
5483 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
5484 it is guaranteed to be defined.
5485
6f1cff95
UD
54862003-02-04 Ulrich Drepper <drepper@redhat.com>
5487
5488 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
5489 * iconvdata/bug-iconv3.c: New file.
5490
b33b0d0d
UD
54912003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
5492
5493 * sysdeps/unix/sysv/linux/s390/system.c: New file.
5494
6900ded2
UD
54952003-02-03 Jakub Jelinek <jakub@redhat.com>
5496
5497 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
5498 check.
5499 * config.h.in (BROKEN_SPARC_WDISP22): Add.
5500
663684b2
UD
55012003-02-03 Ulrich Drepper <drepper@redhat.com>
5502
5503 * sysdeps/i386/i686/memmove.S: New file.
5504
3e4fc359
UD
55052003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
5506
5507 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
5508 Include kernel-features.h
5509 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
5510 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
5511 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
5512 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
5513
75dec09e
UD
55142003-02-02 Jakub Jelinek <jakub@redhat.com>
5515
5516 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
5517
78e88510
UD
55182003-01-25 Jim Meyering <jim@meyering.net>
5519
5520 * io/ftw.c (object_compare): Compare inode numbers before device
5521 numbers, since the former are much more likely to differ.
5522
38e68573
UD
55232003-02-01 Ulrich Drepper <drepper@redhat.com>
5524
5525 * time/tzfile.c (__tzfile_compute): Change return value type to
5526 void. Adjust return statements.
5527 * include/time.h (__tzfile_compute): Adjust prototype.
5528
55292003-02-01 Jim Meyering <jim@meyering.net>
5530
5531 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
5532 always returns 1.
5533
55342003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
5535
5536 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
5537 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
5538
55392003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
5540
5541 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
5542 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
5543 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
5544 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
5545 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
5546 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
5547 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
5548 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
5549
55502003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
5551
5552 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
5553 back to 2.4.19 for powerpc64.
5554 * sysdeps/unix/sysv/linux/kernel-features.h
5555 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
5556 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
5557
55582003-02-01 Ulrich Drepper <drepper@redhat.com>
5559
5560 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
5561 platforms with strange alignment requirements on wchar_t.
5562
b67fcc1e
UD
55632003-01-31 Andreas Schwab <schwab@suse.de>
5564
5565 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
5566 aliases, already added by make-syscalls.sh.
5567 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5568 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
5569 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
5570 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5571 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5572 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5573 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5574 * sysdeps/unix/inet/syscalls.list: Likewise.
5575 * sysdeps/unix/syscalls.list: Likewise.
5576
fb784fd5
AS
55772003-01-31 Andreas Schwab <schwab@suse.de>
5578
5579 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
5580 any more.
5581
c4c1336c
UD
55822003-01-30 Jakub Jelinek <jakub@redhat.com>
5583
5584 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
5585 not l to load tls from stack.
5586
d6f5e721
RM
55872003-01-30 Roland McGrath <roland@redhat.com>
5588
5589 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
5590 null argument before all else.
5591 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
5592
7ba7c829
UD
55932003-01-30 Jakub Jelinek <jakub@redhat.com>
5594
5595 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
5596 Move to RESOLVE protected part of the header.
5597 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
5598 Likewise.
5599
56002003-01-30 Ulrich Drepper <drepper@redhat.com>
5601
5602 * stdio-common/Makefile (tests): Add bug15.
5603 (bug15-ENV): Define.
5604 * stdio-common/bug15.c: New file.
5605
886d5973
UD
56062002-10-07 Wolfram Gloger <wg@malloc.de>
5607
5608 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
5609 to foreign sbrk()'s if arena is contiguous. Bug report from
5610 Bruno Haible <bruno@clisp.org>.
5611
56122003-01-30 Jakub Jelinek <jakub@redhat.com>
5613
5614 * sysdeps/s390/libc-tls.c: Include stdlib.h.
5615
56162003-01-30 Jakub Jelinek <jakub@redhat.com>
5617
5618 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
5619 ps.__count.
5620
56212003-01-30 Ulrich Drepper <drepper@redhat.com>
5622
5623 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
5624 restoring of %r6.
5625 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
5626 64-bit load.
5627 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
5628
56292003-01-30 Jakub Jelinek <jakub@redhat.com>
5630
5631 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
5632 (allocate_static_tls): ...here. Add __attribute_noinline__.
5633 Don't return on failure.
5634 (_dl_reloc_bad_type): Add __attribute_noinline__.
5635 * elf/do-rel.h (elf_dynamic_do_rel): Add
5636 __attribute__((always_inline)).
5637 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
5638 elf_machine_rel_relative, elf_machine_rela_relative,
5639 elf_machine_lazy_rel): Add prototypes with
5640 __attribute__((always_inline)).
5641
56422003-01-29 David Mosberger <davidm@hpl.hp.com>
5643
5644 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
5645
871afd6b
RM
56462003-01-29 Roland McGrath <roland@redhat.com>
5647
5648 * configure.in: Barf if configured in $srcdir.
871afd6b 5649
1e49399d
UD
56502003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
5651
5652 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
1e2f8718 5653 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
1e49399d 5654
db34912e
UD
56552003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
5656
5657 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
5658 clone parameters to match the order used on ia32.
5659 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
5660
e6ebd2e4
UD
56612003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
5662
5663 * elf/elf.h: Add new s390 relocs.
5664 * elf/tls-macros.h: Add s390 versions.
5665 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
5666 * sysdeps/s390/dl-tls.h: New file.
5667 * sysdeps/s390/libc-tls.c: New file.
5668 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
5669 relocs for class PLT.
5670 (elf_machine_rela): Handle TLS relocs.
5671 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
5672 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
5673 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
5674 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
5675 CLONE_CHILD_*TID flags.
5676 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
5677 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
5678 bit offset.
5679 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
5680 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
5681 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
5682 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
5683 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
5684 Likewise.
5685 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
5686 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
5687 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
5688 variants.
5689 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
5690 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
5691 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
5692 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
5693 variants.
5694
772e3426
UD
56952003-01-28 Ulrich Drepper <drepper@redhat.com>
5696
5697 * sysdeps/unix/common/pause.c (do_pause): New function. Split
5698 from __libc_pause. Implement using sigsuspend.
5699 (__libc_pause): Call do_pause to do the real work.
5700
5701 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
5702 sig_or_mask parameter is is_sig != 0.
5703
0566b130
UD
57042003-01-21 Philip Blundell <philb@gnu.org>
5705
5706 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
5707
a15698cb
UD
57082003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
5709
5710 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
5711
b7e033f7
UD
57122003-01-27 Ulrich Drepper <drepper@redhat.com>
5713
e6fb8846
UD
5714 * stdio-common/bug14.c: Use official name for the locale.
5715
1fc46908
UD
5716 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
5717 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
5718 instead of __libc_cleanup_region_end.
5719
5720 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
5721 as first parameter to __libc_cleanup_region_start.
5722
68ff8426
UD
5723 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
5724 (__fe_nomask_env): Use __prctl not prctl.
5725 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
5726 prctl syscall.
5727
809cd222
UD
5728 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
5729
5730 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
5731
b7e033f7
UD
5732 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
5733 wrap-around in test.
5734
62f29da7
UD
57352003-01-26 Andreas Schwab <schwab@suse.de>
5736
5737 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
5738 compatibility symbols. Remove INTDEF for __divdi3.
5739 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
5740 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
5741 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
5742 define.
5743 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
5744
57452003-01-24 Jakub Jelinek <jakub@redhat.com>
5746
5747 * elf/tls-macros.h: Add SPARC 32-bit definitions.
5748 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
5749 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
5750 for the first half of the header. Include tls.h.
5751 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
5752 relocs too.
5753 (elf_machine_rela): Handle TLS relocs.
5754 * sysdeps/sparc/dl-tls.h: New file.
5755
5756 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
5757 support.
5758
5759 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
5760 * sysdeps/sparc/sparc32/memchr.S: Likewise.
5761 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
5762 * sysdeps/sparc/sparc32/strcat.S: Likewise.
5763 * sysdeps/sparc/sparc32/strchr.S: Likewise.
5764 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
5765 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
5766 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
5767 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
5768 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
5769 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
5770 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
5771 * sysdeps/sparc/sparc64/strcat.S: Likewise.
5772 * sysdeps/sparc/sparc64/strchr.S: Likewise.
5773 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
5774 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
5775 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
5776 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
5777 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
5778 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
5779
57802003-01-24 Andreas Schwab <schwab@suse.de>
5781
5782 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
5783 elements, and process them backwards.
5784 * elf/Makefile ($(objpfx)tst-array4): New target.
5785 ($(objpfx)tst-array4.out): Likewise.
5786 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
5787 * elf/tst-array4.c: New file.
5788 * elf/tst-array4.exp: Likewise.
5789
57902003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
5791
5792 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
5793
57942003-01-27 Guido Guenther <agx@sigxcpu.org>
5795
5796 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
5797 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
5798 cancellation handling and handle both __NR_pread64 and __NR_pread.
5799 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
5800 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
5801 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
5802 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
5803 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
5804 case, use register names consistently.
5805
58062003-01-27 Wolfram Gloger <wg@malloc.de>
5807
5808 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
5809 pointer, not of the computed chunk. Bug report from Carlos
5810 O'Donell <carlos@baldric.uwo.ca>.
5811
251c0f71
AS
58122003-01-25 Andreas Schwab <schwab@suse.de>
5813
5814 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
5815 addressing to save GOT entries.
5816
86dfa4eb
RM
58172003-01-21 Jakub Jelinek <jakub@redhat.com>
5818
5819 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
5820 inline_syscall1, inline_syscall2, inline_syscall3,
5821 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
5822 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
5823 __attribute__((unused)) to ChEcK.
5824
d5b6c817
UD
58252003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
5826
5827 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
5828 Fix inline assembler constraints.
5829 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
5830 Likewise.
5831
5832 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
5833 -fPIC.
5834
83c9a671
RM
58352003-01-20 Segher Boessenkool <segher@koffie.nl>
5836
5837 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
5838 compute the cosine, not the sine, even if x > 0.8.
5839
b677d674
UD
58402003-01-19 Ulrich Drepper <drepper@redhat.com>
5841
5842 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
5843 _nss_nis_setspent. Work around the different prototypes.
5844 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
5845 internal_nis_endrpcent.
5846 (internal_nis_endrpcent): Change return type to void. Change callers.
5847 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
5848 _nss_nis_setpwent. Work around the different prototypes.
5849 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
5850 of the function to...
5851 (internal_nis_endprotoent): ... here. New function.
5852 (internal_nis_setprotoent): Use internal_nis_endprotoent.
5853 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
5854 _nss_nis_setnetent. Work around the different prototypes.
5855 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
5856 of the function to...
5857 (internal_nis_endnetgrent): ... here. New function.
5858 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
5859
978bd143
UD
58602003-01-19 Jim Meyering <jim@meyering.net>
5861
5862 * time/strftime.c: (widen): Merge nearly-identical definitions.
5863 (nl_get_alt_digit) [! defined my_strftime]: Define.
5864 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
5865 _nl_get_alt_digit and _nl_get_walt_digit.
5866
b1a173f7
UD
58672003-01-19 Ulrich Drepper <drepper@redhat.com>
5868
5869 * time/strftime.c (my_strftime): Handle very large width
5870 specifications for numeric values correctly. Improve checks for
5871 overflow.
5872 * time/Makefile (tests): Add tst-strftime.
5873 * time/tst-strftime.c: New file.
5874
039c1b75
UD
58752003-01-18 Ulrich Drepper <drepper@redhat.com>
5876
6675b191
UD
5877 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
5878 _nss_nis_sethostent. Work around the different prototypes.
5879 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
5880 _nss_nis_setgrent. Work around the different prototypes.
5881 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
5882 function. Split out from _nss_nis_endetherent.
5883 (internal_nis_setetherent): Use internal_nis_endetherent instead of
5884 duplicating the code.
5885 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
5886 of _nss_nis_setaliasent.
5887 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
5888 internal_nis_endservent code, don't duplicate it.
5889
039c1b75
UD
5890 * inet/rexec.c (rexec_af): Protect socket operations with
5891 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
5892 * inet/rcmd.c (rcmd_af): Likewise.
5893
62431425
RM
58942003-01-17 Roland McGrath <roland@redhat.com>
5895
d32e4346
RM
5896 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
5897 Add test of value 0.80190127184058835.
5898
62431425
RM
5899 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
5900
0f0b7994
UD
59012003-01-17 Richard Henderson <rth@redhat.com>
5902
5903 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
5904 relocs for class PLT.
5905 * sysdeps/alpha/libc-tls.c: New file.
5906 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
5907 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
5908
59092003-01-17 Jakub Jelinek <jakub@redhat.com>
5910
5911 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
5912 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
5913 on _dl_static_lock.
5914
1d4ff70e
AJ
59152003-01-17 Andreas Jaeger <aj@suse.de>
5916
5917 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
5918
609b4783
UD
59192003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
5920
5921 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
5922 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
5923 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
5924 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
5925 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
5926 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
5927 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
5928 is 2.4.21.
5929
59302003-01-16 Ulrich Drepper <drepper@redhat.com>
5931
5932 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
5933 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
5934 buffers.
5935
5936 * sysdeps/generic/sysconf.c: Unconditionally implement
5937 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
5938 * sysdeps/posix/sysconf.c: Likewise.
5939
7b7b9e70
UD
59402003-01-16 Jakub Jelinek <jakub@redhat.com>
5941
5942 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
5943 set *err to the returned error, not to REG_ESPACE unconditionally.
5944 (build_word_op): Likewise.
5945 * posix/Makefile (tests): Add bug-regex16.
5946 * posix/bug-regex16.c: New test.
5947
850dcfca
UD
59482003-01-16 Jakub Jelinek <jakub@redhat.com>
5949
5950 * elf/dl-load.c (_dl_map_object_from_fd): Use
5951 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
5952 been already initialized.
5953
a1f8ec97
UD
59542003-01-15 Dmitry V. Levin <ldv@altlinux.org>
5955
5956 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
5957
f811dbdc
UD
59582003-01-16 Jakub Jelinek <jakub@redhat.com>
5959
5960 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
5961 allocated too. Reported by Al Viro <aviro@redhat.com>.
5962
4dd98447
RM
59632003-01-16 Roland McGrath <roland@redhat.com>
5964
5965 Tweak merged .abilist file format to merge duplicate symbols in
5966 different sets into multi-version stanzas with new "| SET regexp..."
5967 header continuation lines.
5968 * scripts/merge-abilist.awk: Rewritten for new format.
5969 * scripts/extract-abilist.awk: Likewise.
5970
0f740059
UD
59712003-01-15 Ulrich Drepper <drepper@redhat.com>
5972
e09edf23
UD
5973 * nscd/connections.c (nscd_run): Remove bogus return which isn't
5974 necessary with gcc 3.2+.
5975 (nscd_init): Don't use error() to print message, use dbg_log.
5976
ea31b613
UD
5977 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
5978 expected size into state.
5979 (UNPACK_BYTES): Do the reverse.
41f112ad 5980 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
ea31b613
UD
5981 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
5982 Reported by Al Viro <aviro@redhat.com>.
5983
a1a2fec1
UD
5984 * stdio-common/Makefile (tests): Add bug14.
5985 * stdio-common/bug14.c: New file.
5986
0f740059
UD
5987 * stdio-common/vfscanf.c: When recognizing multibyte characters in
5988 string reset the byte counter after mbrtowc reported it is not a
5989 partial character. Reported by Al Viro <aviro@redhat.com>.
5990
c16abc04
UD
59912003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
5992
5993 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
5994 sysdep-cancel.h, not sysdep.h.
5995
59962003-01-15 Ulrich Drepper <drepper@redhat.com>
5997
5998 * nscd/connections.c (nscd_run): Protect accept call with
5999 TEMP_FAILURE_RETRY.
6000
c841fa22
AS
60012003-01-15 Andreas Schwab <schwab@suse.de>
6002
6003 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
6004 (common-generated): Add s-proto-bp.d.
6005 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
6006 of bp thunks.
6007 * sysdeps/unix/s-proto-bp.S: New file.
6008 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
6009 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
6010 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
6011
73917724
RM
60122003-01-15 Roland McGrath <roland@redhat.com>
6013
6014 * Makerules: Use -include for tls.make, suppresses warning.
6015 Move gen-as-const-headers rules up so before-compile is set in time.
6016 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
6017
c9f24336
UD
60182003-01-15 Ulrich Drepper <drepper@redhat.com>
6019
d4397629
UD
6020 * nscd/nscd.c (main): Make code to close all file descriptors
6021 faster and more robust.
6022
9caf4f1c
UD
6023 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
6024 request with one writev call. Protect all read calls with
6025 TEMP_FAILURE_RETRY.
6026 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
6027 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6028
6029 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
6030 Protect writev calls with TEMP_FAILURE_RETRY.
6031 * nscd/grpcache.c: Likewise.
6032 * nscd/pwdcache.c: Likewise.
6033
c9f24336
UD
6034 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
6035 IPv6 address in debug output.
6036
9ae10332
RM
60372003-01-14 Roland McGrath <roland@redhat.com>
6038
6039 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
6040 $(objpfx) directories, and get rid of vpath directives. The previous
6041 arrangement resulted in files being written to the source directories
6042 when run in a clean build. Find all .abilist files in $(..)abilist/.
6043 (update-abi-%): Likewise.
6044 (generated): Don't add .symlist files, they'll be intermediates.
6045
6046 * sysdeps/generic/init-first.c: Add a comment.
6047
6048 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
6049
6050 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
6051 #includes and expressions.
6052
6053 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
6054 config list when it already contains cpu-.*-os.* without / part.
6055
6056 * Makerules (sed-remove-dotdot): New variable.
6057 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
6058 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
6059 (check-abi-config): New variable, append /tls or /notls to the tuple.
6060 (check-abi-%): Use that for -v config value.
6061 Find .abilist files in abilist/libfoo.abilist, not in subdir.
6062 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
6063
a8d87c92
UD
60642003-01-14 Ulrich Drepper <drepper@redhat.com>
6065
6066 * manual/install.texi: Correct description of header preparation for
6067 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
6068
574b892e
UD
60692003-01-14 Guido Guenther <agx@sigxcpu.org>
6070
6071 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
6072 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
6073 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
6074
60752003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
6076
6077 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6078 (INTERNAL_SYSCALL): Make use of ERR parameter.
6079 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
6080 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
6081 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
6082 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
6083
2c255347
UD
60842003-01-14 Ulrich Drepper <drepper@redhat.com>
6085
086311a9
UD
6086 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
6087 == IPPROTO_TCP.
6088 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
6089
2f279b14
UD
6090 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
6091 Fix entry for bit 31.
6092
2c255347
UD
6093 * iconvdata/Makefile: Add rules to build IBM866NAV.
6094 * iconvdata/ibm866nav.c: New file.
6095 * iconvdata/tst-tables.sh: Add IBM866NAV.
6096 * iconvdata/gconv-modules: Add entries for IBM866NAV.
6097
642eb2a2
UD
60982003-01-13 Ulrich Drepper <drepper@redhat.com>
6099
6100 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
6101 to test void* parameters.
6102
6103 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
6104 source pointer before dereferencing.
6105 (__STRING_SMALLL_GET32): Likewise.
6106 (__memset_gc): Add missing parenthesis around macro arguments.
574b892e 6107 Patch by Denis Zaitsev <zzz@cd-club.ru>.
642eb2a2
UD
6108
6109 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
574b892e 6110 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
642eb2a2 6111
115bb61d
UD
61122003-01-14 Jakub Jelinek <jakub@redhat.com>
6113
6114 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
6115 defining.
6116
61172003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
6118
6119 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
6120 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
6121 here.
6122 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
6123
61242003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
6125
6126 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
6127 from here...
6128 (PSEUDO): ... to here.
6129 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
6130 from here...
6131 (PSEUDO): ... to here.
6132
9ef0a840
UD
61332003-01-13 Ulrich Drepper <drepper@redhat.com>
6134
6135 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
6136 dirent64 instead of struct dirent for dirent. Call readdir64
6137 instead of readdir.
6138
6139 * locale/programs/locfile.c (siblings_uncached): Use struct
6140 dirent64 instead of struct dirent for other_dentry. Call
6141 readdir64 instead of readdir.
6142
6143 * elf/ldconfig.c (direntry): Change type to struct dirent64.
6144 (search_dir): Use readdir64 instead of readdir.
6145 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
6146
f1c5213d
RM
61472003-01-12 Roland McGrath <roland@redhat.com>
6148
c01ec9c7
RM
6149 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
6150 not strtol. The former is usable in ld.so, the latter not.
6151
f1c5213d
RM
6152 * include/fcntl.h: Declare __libc_creat.
6153
6154 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
6155 libhurduser-link.so-no-z-defs): New variables.
6156
6157 * malloc/malloc.c: Revert last change.
6158 * malloc/malloc.h (_int_*): Move these decls to ...
6159 * include/malloc.h: ... here. Add attribute_hidden.
6160 (_int_valloc): Declare it too.
6161
73398a44
UD
61622003-01-12 Ulrich Drepper <drepper@redhat.com>
6163
115bb61d 6164 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
1376cd8c
UD
6165 search for removed searchlist. Reported by Roland McGrath.
6166
40212ce0
UD
6167 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
6168 given as start file.
6169
6170 * io/ftw.c (ftw_startup): Use correct name in check for symlink
6171 without existing target. Patch by Jim Meyering.
6172
73398a44
UD
6173 * Makerules (build-shlib-helper): Don't use -z defs linker option
6174 if no-z-defs is defined either.
6175
61762003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
6177
6178 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
6179 file.
6180
61812003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
6182
6183 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
6184 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6185
b2608c22
UD
61862003-01-12 Ulrich Drepper <drepper@redhat.com>
6187
6188 * io/ftwtest-sh: Add test case for relative path with /. at the end.
6189
61902003-01-12 Jim Meyering <jim@meyering.net>
6191
6192 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
6193 use the basename if we've already chdir'd into its parent directory.
6194
a5ce5fcf
UD
61952003-01-12 Ulrich Drepper <drepper@redhat.com>
6196
6197 * io/ftw.c (process_entry): Use relative path when using chdir()
b2608c22 6198 to change directory after call to ftw_dir.
a5ce5fcf
UD
6199 * io/ftwtest-sh: Add test for relative path argument to nftw()
6200 with FTW_CHDIR option.
6201
b398ae3c
UD
62022002-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6203
6204 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
6205 Define for powerpc.
6206 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
6207 into account.
6208 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
6209 (INTERNAL_SYSCALL): Make use of ERR parameter.
6210 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
6211 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
6212 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
6213 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
6214
62152002-01-09 Richard Henderson <rth@redhat.com>
6216
6217 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
6218 DTPREL64 and TPREL64 without loadbase applied.
6219
62202002-01-09 Richard Henderson <rth@redhat.com>
6221
6222 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
6223 for NOT_IN_libc.
6224
6225 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
6226 * sysdeps/unix/alpha/sysdep.h: ... here.
6227 (PSEUDO_LOADGP): Remove.
6228 (PSEUDO_PROLOGUE): Load GP in non-pic case.
6229 (SYSCALL_ERROR_LABEL): New.
6230 (PSEUDO): Use it in error branch.
6231 (PSEUDO_END): Add $syscall_error label.
6232
1f8613a6
AJ
62332003-01-12 Andreas Jaeger <aj@suse.de>
6234
6235 * math/bits/mathcalls.h: Round is a const function.
6236
aff4519d
UD
62372003-01-11 Jim Meyering <jim@meyering.net>
6238
6239 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
6240 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
6241 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
6242 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
6243 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
6244 [!_LIBC] (internal_function, dirent64, MAX): Define.
6245 (__set_errno): Define if not already defined.
6246 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
6247 the basename, not the entire file name.
6248 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
6249 the basename, not the entire file name.
6250
62512003-01-12 Ulrich Drepper <drepper@redhat.com>
6252
6253 * string/tester.c (test_strcpy): Disable last added strcpy until
6254 it is fixed.
6255
62562003-01-11 Philip Blundell <philb@gnu.org>
6257
6258 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
6259
62602003-01-11 Andreas Schwab <schwab@suse.de>
6261
6262 * Makerules: Add vpath for %.dynsym and %.so so that the
6263 implicit rule chaining for check-abi works.
6264
62652003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6266
6267 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
6268 Add non-PIC case.
6269
62702003-01-11 Jakub Jelinek <jakub@redhat.com>
6271
6272 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
6273 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
6274 gp is used early.
6275 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
6276 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
6277 Ensure libc.so in DT_NEEDED.
6278 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
6279 CHECK_STATIC_TLS before l_tls_offset use.
6280 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
6281 Likewise.
6282 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
6283 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
6284 Allocate TLS_PRE_TCB_SIZE bytes below result.
6285 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
6286 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
6287 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
6288 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
6289 bytes below result and add tcb_offset to memsz.
6290 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
6291 * sysdeps/ia64/dl-machine.h: Include tls.h.
6292 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
6293 too.
6294 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
6295 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
6296 * sysdeps/ia64/libc-tls.c: New file.
6297
62982003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
6299
6300 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
6301 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
6302 Fix type. Move definition out of #if.
6303 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
6304 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
6305 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
6306 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
6307 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
6308 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
6309 support.
6310 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
6311 ftruncate64, pread64, pwrite64, truncate64 entries.
6312 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6313 (INLINE_SYSCALL): New version that supports function call like
6314 syscalls. Add __builtin_expect.
6315 (LOADARGS_n): Add argument size safety checks.
6316 (INTERNAL_SYSCALL): New Macro.
6317 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
6318 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
6319 redefinition of elf_fpreg_t and elf_fpregset_t.
6320
63212003-01-12 Ulrich Drepper <drepper@redhat.com>
6322
6323 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
6324 simplify test for unloading. If loader of a DSO is unloaded do not
6325 use its scope anymore. Fall back to own scope and adjust opencounts.
6326 Fix several comments.
6327 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
6328 the l_searchlist, not only for l_initfini.
6329
6330 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
6331 dependencies if objects cannot be removed. Remove object with the
6332 definition as not unloadable if necessary.
6333
6334 * elf/reldep6.c: Create relocation dependency before closing the first
6335 module.
6336
6337