]> sourceware.org Git - glibc.git/blame - ChangeLog
Update.
[glibc.git] / ChangeLog
CommitLineData
46d7e2ba
UD
12003-02-17 Ulrich Drepper <drepper@redhat.com>
2
3 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
4 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
5 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
6 and LOGIN_NAME_MAX.
7
b2740a3b
UD
82003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
9 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10
11 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
12 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
13 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
14 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
15 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
16
81b50572
UD
172003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
18
19 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
20 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
21 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
22 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
23 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
24 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
25
26 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
27 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
28 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
29 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
30
31 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
32 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
33 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
34 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
35
fdcd8f9c
UD
362003-02-14 Thorsten Kukuk <kukuk@suse.de>
37
38 * nss/getent.c (print_hosts): Print all IP addresses of one host.
39
7125d3cf
RM
402003-02-15 Roland McGrath <roland@frob.com>
41
8321ef15
RM
42 * sysdeps/mach/hurd/tls.h: New file.
43 * sysdeps/mach/hurd/i386/tls.h: New file.
44
b0104b6f
RM
45 * mach/errsystems.awk: Include <errno.h> in generated output.
46
7125d3cf
RM
47 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
48 use target mach-before-compile instead of generated.
49 (mach-before-compile): New target.
50 * Makerules: Disable use of tls.make if $(generating) is set.
51 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
52 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
53 mach-shortcuts.h so mach/ generation happens before hurd/.
54
47202270
UD
552003-02-14 Ulrich Drepper <drepper@redhat.com>
56
a439bb2f
UD
57 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
58 of demorm correctly if low word is zero.
59 Reported by Fred J. Tydeman <tydeman@tybor.com>.
757de559
UD
60 * math/libm-test.inc (nextafter_test): New test, but disabled due
61 to gcc bug.
a439bb2f 62
47202270
UD
63 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
64 counter and only call __exit_thread if this is not the last thread.
65
dac0f772
UD
662003-02-13 Jakub Jelinek <jakub@redhat.com>
67
68 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
69 subtracting map->l_tls_offset.
70
7437cbd1
UD
712003-02-12 Ulrich Drepper <drepper@redhat.com>
72
2067577c
UD
73 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
74 _CS_GNU_LIBPTHREAD_VERSION.
75 * posix/conststr.c: Handle these new values.
76 * posix/getconf.c: Likewise.
77
7437cbd1
UD
78 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
79 masking of version index.
80 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
81
969c9da7
UD
822003-02-11 Ulrich Drepper <drepper@redhat.com>
83
84 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
85 correctly. Reported by Thorsten Kukuk.
86
e5ffa64a
UD
872003-02-10 Ulrich Drepper <drepper@redhat.com>
88
89 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
90 _BSD_SOURCE to compiler.
91 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
92 Patches by Alan Modra.
93
34c86f42
UD
942003-02-08 Ulrich Drepper <drepper@redhat.com>
95
96 * io/ftwtest.c: Get current working directory before and after the
97 nftw call and make sure they match.
98
992003-02-08 Jim Meyering <jim@meyering.net>
100
2067577c 101 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
34c86f42
UD
102 the current directory, not just when DIR contains a slash.
103 Reported by Manoj Srivastava.
104
ae9ecd08
UD
1052003-02-07 Jim Meyering <jim@meyering.net>
106
107 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
108 Include autoconf-recommended block of dirent/NAMELEN-related
109 definitions and includes. Use NAMELEN throughout, rather than
110 _D_EXACT_NAMLEN.
111 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
112 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
113 (stpcpy): Declare, if necessary.
114 (mempcpy): Define, if necessary.
115 [!_LIBC] (__stpcpy, __mempcpy): Define.
116 [!_LIBC] (LXSTAT, XSTAT): Define.
117 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
118 (find_object): Don't use c99-style struct initializer.
119 Tweak wording in a couple comments.
120
2a051a7d
UD
1212003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
122
123 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
124 for SH.
125 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
126 after the trapa instruction.
127 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
128 parameters.
129 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
130 (NEED_SYSCALL_INST_PAD): Define.
131 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
132 avoid to use definition for the kernel.
133 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
134 Save and restore the frame pointer.
135 (SYSCALL_INST_PAD): Define.
136 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
137 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
138 after trapa instruction.
139 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
140 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
141
1f503475
UD
1422003-02-07 Jakub Jelinek <jakub@redhat.com>
143
144 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
145 so that it can have aliases.
146 * inet/herrno.c (h_errno): Put it into .bss not .data section.
147
eecc378c
UD
1482003-02-07 Ulrich Drepper <drepper@redhat.com>
149
150 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
151 (profile_fixup): Likewise.
1f503475 152 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
eecc378c 153
ce96c93d
UD
1542002-11-24 Robert Love <rml@tech9.net>
155
156 * posix/sched.h: Second parameter of sched_setaffinity and
157 sched_getaffinity is `unsigned int', not `unsigned long'.
158 * sysdeps/generic/sched_setaffinity.c: Likewise.
159 * sysdeps/generic/sched_getaffinity.c: Likewise.
160
e0f86659
UD
1612003-02-05 Ulrich Drepper <drepper@redhat.com>
162
432cf458 163 * debug/catchsegv.sh: Fix typo in error messsage.
ce96c93d 164 Reported by John Levon <levon@movementarian.org>.
432cf458 165
5cd09cd6
UD
166 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
167 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
168 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
169 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
170 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
171 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
172 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
173
e0f86659
UD
174 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
175 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
176
5049f197
UD
1772003-02-05 Jim Meyering <jim@meyering.net>
178
179 Fix a heap-corrupting bug.
180 * io/ftw.c: Include <limits.h>.
181 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
182 (process_entry): Allocate enough space to hold the resulting
183 file name. Don't presume that 2*dirbufsize is enough.
184 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
185 it is guaranteed to be defined.
186
6f1cff95
UD
1872003-02-04 Ulrich Drepper <drepper@redhat.com>
188
189 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
190 * iconvdata/bug-iconv3.c: New file.
191
b33b0d0d
UD
1922003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
193
194 * sysdeps/unix/sysv/linux/s390/system.c: New file.
195
6900ded2
UD
1962003-02-03 Jakub Jelinek <jakub@redhat.com>
197
198 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
199 check.
200 * config.h.in (BROKEN_SPARC_WDISP22): Add.
201
663684b2
UD
2022003-02-03 Ulrich Drepper <drepper@redhat.com>
203
204 * sysdeps/i386/i686/memmove.S: New file.
205
3e4fc359
UD
2062003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
207
208 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
209 Include kernel-features.h
210 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
211 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
212 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
213 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
214
75dec09e
UD
2152003-02-02 Jakub Jelinek <jakub@redhat.com>
216
217 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
218
78e88510
UD
2192003-01-25 Jim Meyering <jim@meyering.net>
220
221 * io/ftw.c (object_compare): Compare inode numbers before device
222 numbers, since the former are much more likely to differ.
223
38e68573
UD
2242003-02-01 Ulrich Drepper <drepper@redhat.com>
225
226 * time/tzfile.c (__tzfile_compute): Change return value type to
227 void. Adjust return statements.
228 * include/time.h (__tzfile_compute): Adjust prototype.
229
2302003-02-01 Jim Meyering <jim@meyering.net>
231
232 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
233 always returns 1.
234
2352003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
236
237 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
238 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
239
2402003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
241
242 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
243 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
244 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
245 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
246 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
247 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
248 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
249 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
250
2512003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
252
253 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
254 back to 2.4.19 for powerpc64.
255 * sysdeps/unix/sysv/linux/kernel-features.h
256 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
257 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
258
2592003-02-01 Ulrich Drepper <drepper@redhat.com>
260
261 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
262 platforms with strange alignment requirements on wchar_t.
263
b67fcc1e
UD
2642003-01-31 Andreas Schwab <schwab@suse.de>
265
266 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
267 aliases, already added by make-syscalls.sh.
268 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
269 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
270 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
271 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
272 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
273 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
274 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
275 * sysdeps/unix/inet/syscalls.list: Likewise.
276 * sysdeps/unix/syscalls.list: Likewise.
277
fb784fd5
AS
2782003-01-31 Andreas Schwab <schwab@suse.de>
279
280 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
281 any more.
282
c4c1336c
UD
2832003-01-30 Jakub Jelinek <jakub@redhat.com>
284
285 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
286 not l to load tls from stack.
287
d6f5e721
RM
2882003-01-30 Roland McGrath <roland@redhat.com>
289
290 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
291 null argument before all else.
292 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
293
7ba7c829
UD
2942003-01-30 Jakub Jelinek <jakub@redhat.com>
295
296 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
297 Move to RESOLVE protected part of the header.
298 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
299 Likewise.
300
3012003-01-30 Ulrich Drepper <drepper@redhat.com>
302
303 * stdio-common/Makefile (tests): Add bug15.
304 (bug15-ENV): Define.
305 * stdio-common/bug15.c: New file.
306
886d5973
UD
3072002-10-07 Wolfram Gloger <wg@malloc.de>
308
309 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
310 to foreign sbrk()'s if arena is contiguous. Bug report from
311 Bruno Haible <bruno@clisp.org>.
312
3132003-01-30 Jakub Jelinek <jakub@redhat.com>
314
315 * sysdeps/s390/libc-tls.c: Include stdlib.h.
316
3172003-01-30 Jakub Jelinek <jakub@redhat.com>
318
319 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
320 ps.__count.
321
3222003-01-30 Ulrich Drepper <drepper@redhat.com>
323
324 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
325 restoring of %r6.
326 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
327 64-bit load.
328 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
329
3302003-01-30 Jakub Jelinek <jakub@redhat.com>
331
332 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
333 (allocate_static_tls): ...here. Add __attribute_noinline__.
334 Don't return on failure.
335 (_dl_reloc_bad_type): Add __attribute_noinline__.
336 * elf/do-rel.h (elf_dynamic_do_rel): Add
337 __attribute__((always_inline)).
338 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
339 elf_machine_rel_relative, elf_machine_rela_relative,
340 elf_machine_lazy_rel): Add prototypes with
341 __attribute__((always_inline)).
342
3432003-01-29 David Mosberger <davidm@hpl.hp.com>
344
345 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
346
871afd6b
RM
3472003-01-29 Roland McGrath <roland@redhat.com>
348
349 * configure.in: Barf if configured in $srcdir.
871afd6b 350
1e49399d
UD
3512003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
352
353 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
1e2f8718 354 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
1e49399d 355
db34912e
UD
3562003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
357
358 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
359 clone parameters to match the order used on ia32.
360 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
361
e6ebd2e4
UD
3622003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
363
364 * elf/elf.h: Add new s390 relocs.
365 * elf/tls-macros.h: Add s390 versions.
366 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
367 * sysdeps/s390/dl-tls.h: New file.
368 * sysdeps/s390/libc-tls.c: New file.
369 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
370 relocs for class PLT.
371 (elf_machine_rela): Handle TLS relocs.
372 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
373 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
374 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
375 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
376 CLONE_CHILD_*TID flags.
377 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
378 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
379 bit offset.
380 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
381 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
382 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
383 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
384 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
385 Likewise.
386 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
387 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
388 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
389 variants.
390 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
391 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
392 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
393 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
394 variants.
395
772e3426
UD
3962003-01-28 Ulrich Drepper <drepper@redhat.com>
397
398 * sysdeps/unix/common/pause.c (do_pause): New function. Split
399 from __libc_pause. Implement using sigsuspend.
400 (__libc_pause): Call do_pause to do the real work.
401
402 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
403 sig_or_mask parameter is is_sig != 0.
404
0566b130
UD
4052003-01-21 Philip Blundell <philb@gnu.org>
406
407 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
408
a15698cb
UD
4092003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
410
411 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
412
b7e033f7
UD
4132003-01-27 Ulrich Drepper <drepper@redhat.com>
414
e6fb8846
UD
415 * stdio-common/bug14.c: Use official name for the locale.
416
1fc46908
UD
417 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
418 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
419 instead of __libc_cleanup_region_end.
420
421 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
422 as first parameter to __libc_cleanup_region_start.
423
68ff8426
UD
424 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
425 (__fe_nomask_env): Use __prctl not prctl.
426 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
427 prctl syscall.
428
809cd222
UD
429 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
430
431 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
432
b7e033f7
UD
433 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
434 wrap-around in test.
435
62f29da7
UD
4362003-01-26 Andreas Schwab <schwab@suse.de>
437
438 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
439 compatibility symbols. Remove INTDEF for __divdi3.
440 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
441 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
442 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
443 define.
444 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
445
4462003-01-24 Jakub Jelinek <jakub@redhat.com>
447
448 * elf/tls-macros.h: Add SPARC 32-bit definitions.
449 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
450 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
451 for the first half of the header. Include tls.h.
452 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
453 relocs too.
454 (elf_machine_rela): Handle TLS relocs.
455 * sysdeps/sparc/dl-tls.h: New file.
456
457 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
458 support.
459
460 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
461 * sysdeps/sparc/sparc32/memchr.S: Likewise.
462 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
463 * sysdeps/sparc/sparc32/strcat.S: Likewise.
464 * sysdeps/sparc/sparc32/strchr.S: Likewise.
465 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
466 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
467 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
468 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
469 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
470 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
471 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
472 * sysdeps/sparc/sparc64/strcat.S: Likewise.
473 * sysdeps/sparc/sparc64/strchr.S: Likewise.
474 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
475 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
476 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
477 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
478 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
479 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
480
4812003-01-24 Andreas Schwab <schwab@suse.de>
482
483 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
484 elements, and process them backwards.
485 * elf/Makefile ($(objpfx)tst-array4): New target.
486 ($(objpfx)tst-array4.out): Likewise.
487 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
488 * elf/tst-array4.c: New file.
489 * elf/tst-array4.exp: Likewise.
490
4912003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
492
493 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
494
4952003-01-27 Guido Guenther <agx@sigxcpu.org>
496
497 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
498 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
499 cancellation handling and handle both __NR_pread64 and __NR_pread.
500 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
501 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
502 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
503 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
504 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
505 case, use register names consistently.
506
5072003-01-27 Wolfram Gloger <wg@malloc.de>
508
509 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
510 pointer, not of the computed chunk. Bug report from Carlos
511 O'Donell <carlos@baldric.uwo.ca>.
512
251c0f71
AS
5132003-01-25 Andreas Schwab <schwab@suse.de>
514
515 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
516 addressing to save GOT entries.
517
86dfa4eb
RM
5182003-01-21 Jakub Jelinek <jakub@redhat.com>
519
520 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
521 inline_syscall1, inline_syscall2, inline_syscall3,
522 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
523 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
524 __attribute__((unused)) to ChEcK.
525
d5b6c817
UD
5262003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
527
528 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
529 Fix inline assembler constraints.
530 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
531 Likewise.
532
533 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
534 -fPIC.
535
83c9a671
RM
5362003-01-20 Segher Boessenkool <segher@koffie.nl>
537
538 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
539 compute the cosine, not the sine, even if x > 0.8.
540
b677d674
UD
5412003-01-19 Ulrich Drepper <drepper@redhat.com>
542
543 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
544 _nss_nis_setspent. Work around the different prototypes.
545 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
546 internal_nis_endrpcent.
547 (internal_nis_endrpcent): Change return type to void. Change callers.
548 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
549 _nss_nis_setpwent. Work around the different prototypes.
550 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
551 of the function to...
552 (internal_nis_endprotoent): ... here. New function.
553 (internal_nis_setprotoent): Use internal_nis_endprotoent.
554 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
555 _nss_nis_setnetent. Work around the different prototypes.
556 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
557 of the function to...
558 (internal_nis_endnetgrent): ... here. New function.
559 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
560
978bd143
UD
5612003-01-19 Jim Meyering <jim@meyering.net>
562
563 * time/strftime.c: (widen): Merge nearly-identical definitions.
564 (nl_get_alt_digit) [! defined my_strftime]: Define.
565 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
566 _nl_get_alt_digit and _nl_get_walt_digit.
567
b1a173f7
UD
5682003-01-19 Ulrich Drepper <drepper@redhat.com>
569
570 * time/strftime.c (my_strftime): Handle very large width
571 specifications for numeric values correctly. Improve checks for
572 overflow.
573 * time/Makefile (tests): Add tst-strftime.
574 * time/tst-strftime.c: New file.
575
039c1b75
UD
5762003-01-18 Ulrich Drepper <drepper@redhat.com>
577
6675b191
UD
578 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
579 _nss_nis_sethostent. Work around the different prototypes.
580 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
581 _nss_nis_setgrent. Work around the different prototypes.
582 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
583 function. Split out from _nss_nis_endetherent.
584 (internal_nis_setetherent): Use internal_nis_endetherent instead of
585 duplicating the code.
586 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
587 of _nss_nis_setaliasent.
588 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
589 internal_nis_endservent code, don't duplicate it.
590
039c1b75
UD
591 * inet/rexec.c (rexec_af): Protect socket operations with
592 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
593 * inet/rcmd.c (rcmd_af): Likewise.
594
62431425
RM
5952003-01-17 Roland McGrath <roland@redhat.com>
596
d32e4346
RM
597 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
598 Add test of value 0.80190127184058835.
599
62431425
RM
600 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
601
0f0b7994
UD
6022003-01-17 Richard Henderson <rth@redhat.com>
603
604 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
605 relocs for class PLT.
606 * sysdeps/alpha/libc-tls.c: New file.
607 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
608 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
609
6102003-01-17 Jakub Jelinek <jakub@redhat.com>
611
612 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
613 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
614 on _dl_static_lock.
615
1d4ff70e
AJ
6162003-01-17 Andreas Jaeger <aj@suse.de>
617
618 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
619
609b4783
UD
6202003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
621
622 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
623 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
624 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
625 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
626 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
627 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
628 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
629 is 2.4.21.
630
6312003-01-16 Ulrich Drepper <drepper@redhat.com>
632
633 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
634 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
635 buffers.
636
637 * sysdeps/generic/sysconf.c: Unconditionally implement
638 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
639 * sysdeps/posix/sysconf.c: Likewise.
640
7b7b9e70
UD
6412003-01-16 Jakub Jelinek <jakub@redhat.com>
642
643 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
644 set *err to the returned error, not to REG_ESPACE unconditionally.
645 (build_word_op): Likewise.
646 * posix/Makefile (tests): Add bug-regex16.
647 * posix/bug-regex16.c: New test.
648
850dcfca
UD
6492003-01-16 Jakub Jelinek <jakub@redhat.com>
650
651 * elf/dl-load.c (_dl_map_object_from_fd): Use
652 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
653 been already initialized.
654
a1f8ec97
UD
6552003-01-15 Dmitry V. Levin <ldv@altlinux.org>
656
657 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
658
f811dbdc
UD
6592003-01-16 Jakub Jelinek <jakub@redhat.com>
660
661 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
662 allocated too. Reported by Al Viro <aviro@redhat.com>.
663
4dd98447
RM
6642003-01-16 Roland McGrath <roland@redhat.com>
665
666 Tweak merged .abilist file format to merge duplicate symbols in
667 different sets into multi-version stanzas with new "| SET regexp..."
668 header continuation lines.
669 * scripts/merge-abilist.awk: Rewritten for new format.
670 * scripts/extract-abilist.awk: Likewise.
671
0f740059
UD
6722003-01-15 Ulrich Drepper <drepper@redhat.com>
673
e09edf23
UD
674 * nscd/connections.c (nscd_run): Remove bogus return which isn't
675 necessary with gcc 3.2+.
676 (nscd_init): Don't use error() to print message, use dbg_log.
677
ea31b613
UD
678 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
679 expected size into state.
680 (UNPACK_BYTES): Do the reverse.
41f112ad 681 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
ea31b613
UD
682 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
683 Reported by Al Viro <aviro@redhat.com>.
684
a1a2fec1
UD
685 * stdio-common/Makefile (tests): Add bug14.
686 * stdio-common/bug14.c: New file.
687
0f740059
UD
688 * stdio-common/vfscanf.c: When recognizing multibyte characters in
689 string reset the byte counter after mbrtowc reported it is not a
690 partial character. Reported by Al Viro <aviro@redhat.com>.
691
c16abc04
UD
6922003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
693
694 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
695 sysdep-cancel.h, not sysdep.h.
696
6972003-01-15 Ulrich Drepper <drepper@redhat.com>
698
699 * nscd/connections.c (nscd_run): Protect accept call with
700 TEMP_FAILURE_RETRY.
701
c841fa22
AS
7022003-01-15 Andreas Schwab <schwab@suse.de>
703
704 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
705 (common-generated): Add s-proto-bp.d.
706 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
707 of bp thunks.
708 * sysdeps/unix/s-proto-bp.S: New file.
709 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
710 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
711 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
712
73917724
RM
7132003-01-15 Roland McGrath <roland@redhat.com>
714
715 * Makerules: Use -include for tls.make, suppresses warning.
716 Move gen-as-const-headers rules up so before-compile is set in time.
717 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
718
c9f24336
UD
7192003-01-15 Ulrich Drepper <drepper@redhat.com>
720
d4397629
UD
721 * nscd/nscd.c (main): Make code to close all file descriptors
722 faster and more robust.
723
9caf4f1c
UD
724 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
725 request with one writev call. Protect all read calls with
726 TEMP_FAILURE_RETRY.
727 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
728 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
729
730 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
731 Protect writev calls with TEMP_FAILURE_RETRY.
732 * nscd/grpcache.c: Likewise.
733 * nscd/pwdcache.c: Likewise.
734
c9f24336
UD
735 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
736 IPv6 address in debug output.
737
9ae10332
RM
7382003-01-14 Roland McGrath <roland@redhat.com>
739
740 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
741 $(objpfx) directories, and get rid of vpath directives. The previous
742 arrangement resulted in files being written to the source directories
743 when run in a clean build. Find all .abilist files in $(..)abilist/.
744 (update-abi-%): Likewise.
745 (generated): Don't add .symlist files, they'll be intermediates.
746
747 * sysdeps/generic/init-first.c: Add a comment.
748
749 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
750
751 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
752 #includes and expressions.
753
754 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
755 config list when it already contains cpu-.*-os.* without / part.
756
757 * Makerules (sed-remove-dotdot): New variable.
758 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
759 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
760 (check-abi-config): New variable, append /tls or /notls to the tuple.
761 (check-abi-%): Use that for -v config value.
762 Find .abilist files in abilist/libfoo.abilist, not in subdir.
763 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
764
a8d87c92
UD
7652003-01-14 Ulrich Drepper <drepper@redhat.com>
766
767 * manual/install.texi: Correct description of header preparation for
768 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
769
574b892e
UD
7702003-01-14 Guido Guenther <agx@sigxcpu.org>
771
772 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
773 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
774 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
775
7762003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
777
778 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
779 (INTERNAL_SYSCALL): Make use of ERR parameter.
780 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
781 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
782 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
783 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
784
2c255347
UD
7852003-01-14 Ulrich Drepper <drepper@redhat.com>
786
086311a9
UD
787 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
788 == IPPROTO_TCP.
789 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
790
2f279b14
UD
791 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
792 Fix entry for bit 31.
793
2c255347
UD
794 * iconvdata/Makefile: Add rules to build IBM866NAV.
795 * iconvdata/ibm866nav.c: New file.
796 * iconvdata/tst-tables.sh: Add IBM866NAV.
797 * iconvdata/gconv-modules: Add entries for IBM866NAV.
798
642eb2a2
UD
7992003-01-13 Ulrich Drepper <drepper@redhat.com>
800
801 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
802 to test void* parameters.
803
804 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
805 source pointer before dereferencing.
806 (__STRING_SMALLL_GET32): Likewise.
807 (__memset_gc): Add missing parenthesis around macro arguments.
574b892e 808 Patch by Denis Zaitsev <zzz@cd-club.ru>.
642eb2a2
UD
809
810 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
574b892e 811 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
642eb2a2 812
115bb61d
UD
8132003-01-14 Jakub Jelinek <jakub@redhat.com>
814
815 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
816 defining.
817
8182003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
819
820 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
821 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
822 here.
823 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
824
8252003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
826
827 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
828 from here...
829 (PSEUDO): ... to here.
830 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
831 from here...
832 (PSEUDO): ... to here.
833
9ef0a840
UD
8342003-01-13 Ulrich Drepper <drepper@redhat.com>
835
836 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
837 dirent64 instead of struct dirent for dirent. Call readdir64
838 instead of readdir.
839
840 * locale/programs/locfile.c (siblings_uncached): Use struct
841 dirent64 instead of struct dirent for other_dentry. Call
842 readdir64 instead of readdir.
843
844 * elf/ldconfig.c (direntry): Change type to struct dirent64.
845 (search_dir): Use readdir64 instead of readdir.
846 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
847
f1c5213d
RM
8482003-01-12 Roland McGrath <roland@redhat.com>
849
c01ec9c7
RM
850 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
851 not strtol. The former is usable in ld.so, the latter not.
852
f1c5213d
RM
853 * include/fcntl.h: Declare __libc_creat.
854
855 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
856 libhurduser-link.so-no-z-defs): New variables.
857
858 * malloc/malloc.c: Revert last change.
859 * malloc/malloc.h (_int_*): Move these decls to ...
860 * include/malloc.h: ... here. Add attribute_hidden.
861 (_int_valloc): Declare it too.
862
73398a44
UD
8632003-01-12 Ulrich Drepper <drepper@redhat.com>
864
115bb61d 865 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
1376cd8c
UD
866 search for removed searchlist. Reported by Roland McGrath.
867
40212ce0
UD
868 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
869 given as start file.
870
871 * io/ftw.c (ftw_startup): Use correct name in check for symlink
872 without existing target. Patch by Jim Meyering.
873
73398a44
UD
874 * Makerules (build-shlib-helper): Don't use -z defs linker option
875 if no-z-defs is defined either.
876
8772003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
878
879 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
880 file.
881
8822003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
883
884 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
885 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
886
b2608c22
UD
8872003-01-12 Ulrich Drepper <drepper@redhat.com>
888
889 * io/ftwtest-sh: Add test case for relative path with /. at the end.
890
8912003-01-12 Jim Meyering <jim@meyering.net>
892
893 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
894 use the basename if we've already chdir'd into its parent directory.
895
a5ce5fcf
UD
8962003-01-12 Ulrich Drepper <drepper@redhat.com>
897
898 * io/ftw.c (process_entry): Use relative path when using chdir()
b2608c22 899 to change directory after call to ftw_dir.
a5ce5fcf
UD
900 * io/ftwtest-sh: Add test for relative path argument to nftw()
901 with FTW_CHDIR option.
902
b398ae3c
UD
9032002-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
904
905 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
906 Define for powerpc.
907 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
908 into account.
909 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
910 (INTERNAL_SYSCALL): Make use of ERR parameter.
911 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
912 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
913 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
914 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
915
9162002-01-09 Richard Henderson <rth@redhat.com>
917
918 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
919 DTPREL64 and TPREL64 without loadbase applied.
920
9212002-01-09 Richard Henderson <rth@redhat.com>
922
923 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
924 for NOT_IN_libc.
925
926 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
927 * sysdeps/unix/alpha/sysdep.h: ... here.
928 (PSEUDO_LOADGP): Remove.
929 (PSEUDO_PROLOGUE): Load GP in non-pic case.
930 (SYSCALL_ERROR_LABEL): New.
931 (PSEUDO): Use it in error branch.
932 (PSEUDO_END): Add $syscall_error label.
933
1f8613a6
AJ
9342003-01-12 Andreas Jaeger <aj@suse.de>
935
936 * math/bits/mathcalls.h: Round is a const function.
937
aff4519d
UD
9382003-01-11 Jim Meyering <jim@meyering.net>
939
940 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
941 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
942 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
943 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
944 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
945 [!_LIBC] (internal_function, dirent64, MAX): Define.
946 (__set_errno): Define if not already defined.
947 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
948 the basename, not the entire file name.
949 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
950 the basename, not the entire file name.
951
9522003-01-12 Ulrich Drepper <drepper@redhat.com>
953
954 * string/tester.c (test_strcpy): Disable last added strcpy until
955 it is fixed.
956
9572003-01-11 Philip Blundell <philb@gnu.org>
958
959 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
960
9612003-01-11 Andreas Schwab <schwab@suse.de>
962
963 * Makerules: Add vpath for %.dynsym and %.so so that the
964 implicit rule chaining for check-abi works.
965
9662003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
967
968 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
969 Add non-PIC case.
970
9712003-01-11 Jakub Jelinek <jakub@redhat.com>
972
973 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
974 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
975 gp is used early.
976 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
977 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
978 Ensure libc.so in DT_NEEDED.
979 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
980 CHECK_STATIC_TLS before l_tls_offset use.
981 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
982 Likewise.
983 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
984 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
985 Allocate TLS_PRE_TCB_SIZE bytes below result.
986 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
987 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
988 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
989 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
990 bytes below result and add tcb_offset to memsz.
991 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
992 * sysdeps/ia64/dl-machine.h: Include tls.h.
993 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
994 too.
995 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
996 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
997 * sysdeps/ia64/libc-tls.c: New file.
998
9992003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
1000
1001 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
1002 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
1003 Fix type. Move definition out of #if.
1004 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
1005 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
1006 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
1007 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
1008 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
1009 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
1010 support.
1011 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
1012 ftruncate64, pread64, pwrite64, truncate64 entries.
1013 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
1014 (INLINE_SYSCALL): New version that supports function call like
1015 syscalls. Add __builtin_expect.
1016 (LOADARGS_n): Add argument size safety checks.
1017 (INTERNAL_SYSCALL): New Macro.
1018 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
1019 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
1020 redefinition of elf_fpreg_t and elf_fpregset_t.
1021
10222003-01-12 Ulrich Drepper <drepper@redhat.com>
1023
1024 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
1025 simplify test for unloading. If loader of a DSO is unloaded do not
1026 use its scope anymore. Fall back to own scope and adjust opencounts.
1027 Fix several comments.
1028 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
1029 the l_searchlist, not only for l_initfini.
1030
1031 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
1032 dependencies if objects cannot be removed. Remove object with the
1033 definition as not unloadable if necessary.
1034
1035 * elf/reldep6.c: Create relocation dependency before closing the first
1036 module.
1037
1038