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