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