]> sourceware.org Git - glibc.git/blame - ChangeLog
Additional configury for SPARC64/ELF.
[glibc.git] / ChangeLog
CommitLineData
dd3608b9
AJ
12003-02-21 Andreas Jaeger <aj@suse.de>
2
3 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
4 mode.
5
6 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
7 clear whole mxcsr but only exceptions.
8
59fed0e2
RM
92003-02-21 Roland McGrath <roland@redhat.com>
10
11 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
12 for libfoo.so that need $(make-link) rules.
13
36f0ccda
RM
142003-02-21 Roland McGrath <roland@frob.com>
15
16 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
17 to match existing struct stat layout in mig protocols.
18
ec503662
UD
192003-02-20 Ulrich Drepper <drepper@redhat.com>
20
21 * version.h (VERSION): Bump to 2.3.2.
22
23 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
24 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
25 and dl-sysdep.h.
26 * sysdeps/generic/Dist: Add sysdep-cancel.h.
27 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
28 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
29 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
30 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
31 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
32 ucontext_i.h.
33 * Makefile (distribute): Add include/stubs-prologue.h,
34 include/gnu/stubs.h, scripts/merge-abilist.awk, and
35 scripts/extract-abilist.awk.
36
af57745c
RM
372003-02-20 Roland McGrath <roland@redhat.com>
38
39 * math/Makefile (distribute): Don't add generated files.
40
6314208a
UD
412003-02-20 Ulrich Drepper <drepper@redhat.com>
42
6314208a
UD
43 * math/Makefile: Rearrange variable definitions slightly to get
44 definition in the right order.
45
ab10a294
RM
462003-02-20 Roland McGrath <roland@redhat.com>
47
48 * Makerules: Clean up conditional around include of tls.make.
49 * Make-dist: Export generating=t to prevent using that.
50 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
51
54e1cabc
UD
522003-02-20 Ulrich Drepper <drepper@redhat.com>
53
54 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
55 around in search if port IPPORT_RESERVED/2 has been test.
56
ec503662 572002-02-20 Paolo Bonzini <bonzini@gnu.org>
54e1cabc
UD
58
59 * posix/regcomp.c: Remove inclusions.
60 * posix/regexec.c: Likewise.
61 * posix/regex_internal.c: Likewise.
62 * posix/regex_internal.h: Add inclusions here.
63 * posix/regex.c: Only include sys/types.h before regex.h. Include
64 regex_internal.h here. Include regex_internal.c before regcomp.c
65 and regexec.c (might expose more opportunities to the C compiler).
66
67 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
68
69 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
70 [!_LIBC] (__wcrtomb): New definition.
71 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
72 HAVE_LOCALE_H as well.
73
6eb74f33
UD
742003-02-20 Ulrich Drepper <drepper@redhat.com>
75
76 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
77 patch to check for system call errors.
78
05856976
UD
792002-07-24 Philip Blundell <philb@gnu.org>
80
81 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
82 on unknown systems.
83
842003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
85
86 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
87 * sysdeps/unix/sysv/linux/kernel-features.h
88 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
89 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
90 if possible.
91 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
92 interprocedure branches.
93 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
94 * sysdeps/powerpc/nofpu/Dist: ...here.
95 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
96 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
97 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
98 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
99 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
100
a592f998
UD
1012003-02-18 Alan Modra <amodra@bigpond.net.au>
102
103 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
104
44ed664b
UD
1052003-02-20 Philip Blundell <philb@gnu.org>
106
107 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
108 missing arguments to INTERNAL_SYSCALL_ERROR_P and
109 INTERNAL_SYSCALL_ERRNO.
110
ffdcfcb0
UD
1112003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
112
113 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
114 for __ASSUME_32BITUIDS.
115
4b2ed419
AS
1162003-02-20 Andreas Schwab <schwab@suse.de>
117
118 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
119 POSIX_MADV_* constants.
120
01b28852
UD
1212003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
122
123 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
124 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
125 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
126 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
127
a70e514b
UD
1282003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
129
130 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
131
ade67411
RM
1322003-02-16 Roland McGrath <roland@redhat.com>
133
134 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
135
1c524710
UD
1362003-02-19 Ulrich Drepper <drepper@redhat.com>
137
01b28852 138 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
1c524710 139 decimal input digits.
b5f7b119 140 * stdlib/tst-strtod.c (main): Add test for strtof bug.
1c524710 141
2f7dc594
UD
1422003-02-18 Ulrich Drepper <drepper@redhat.com>
143
144 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
145 invalid file descriptors and missing access permissions.
146
46d7e2ba
UD
1472003-02-17 Ulrich Drepper <drepper@redhat.com>
148
8bd3f184 149 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
2cfe49db
UD
150 been found.
151
46d7e2ba
UD
152 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
153 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
154 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
155 and LOGIN_NAME_MAX.
156
b2740a3b
UD
1572003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
158 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
159
160 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
161 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
162 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
163 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
164 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
165
81b50572
UD
1662003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
167
168 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
169 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
170 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
171 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
172 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
173 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
174
175 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
176 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
177 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
178 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
179
180 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
181 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
182 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
183 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
184
fdcd8f9c
UD
1852003-02-14 Thorsten Kukuk <kukuk@suse.de>
186
187 * nss/getent.c (print_hosts): Print all IP addresses of one host.
188
7125d3cf
RM
1892003-02-15 Roland McGrath <roland@frob.com>
190
8321ef15
RM
191 * sysdeps/mach/hurd/tls.h: New file.
192 * sysdeps/mach/hurd/i386/tls.h: New file.
193
b0104b6f
RM
194 * mach/errsystems.awk: Include <errno.h> in generated output.
195
7125d3cf
RM
196 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
197 use target mach-before-compile instead of generated.
198 (mach-before-compile): New target.
199 * Makerules: Disable use of tls.make if $(generating) is set.
200 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
201 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
202 mach-shortcuts.h so mach/ generation happens before hurd/.
203
47202270
UD
2042003-02-14 Ulrich Drepper <drepper@redhat.com>
205
a439bb2f
UD
206 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
207 of demorm correctly if low word is zero.
208 Reported by Fred J. Tydeman <tydeman@tybor.com>.
757de559
UD
209 * math/libm-test.inc (nextafter_test): New test, but disabled due
210 to gcc bug.
a439bb2f 211
47202270
UD
212 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
213 counter and only call __exit_thread if this is not the last thread.
214
dac0f772
UD
2152003-02-13 Jakub Jelinek <jakub@redhat.com>
216
217 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
218 subtracting map->l_tls_offset.
219
7437cbd1
UD
2202003-02-12 Ulrich Drepper <drepper@redhat.com>
221
2067577c
UD
222 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
223 _CS_GNU_LIBPTHREAD_VERSION.
224 * posix/conststr.c: Handle these new values.
225 * posix/getconf.c: Likewise.
226
7437cbd1
UD
227 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
228 masking of version index.
229 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
230
969c9da7
UD
2312003-02-11 Ulrich Drepper <drepper@redhat.com>
232
233 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
234 correctly. Reported by Thorsten Kukuk.
235
e5ffa64a
UD
2362003-02-10 Ulrich Drepper <drepper@redhat.com>
237
238 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
239 _BSD_SOURCE to compiler.
240 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
241 Patches by Alan Modra.
242
34c86f42
UD
2432003-02-08 Ulrich Drepper <drepper@redhat.com>
244
245 * io/ftwtest.c: Get current working directory before and after the
246 nftw call and make sure they match.
247
2482003-02-08 Jim Meyering <jim@meyering.net>
249
2067577c 250 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
34c86f42
UD
251 the current directory, not just when DIR contains a slash.
252 Reported by Manoj Srivastava.
253
ae9ecd08
UD
2542003-02-07 Jim Meyering <jim@meyering.net>
255
256 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
257 Include autoconf-recommended block of dirent/NAMELEN-related
258 definitions and includes. Use NAMELEN throughout, rather than
259 _D_EXACT_NAMLEN.
260 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
261 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
262 (stpcpy): Declare, if necessary.
263 (mempcpy): Define, if necessary.
264 [!_LIBC] (__stpcpy, __mempcpy): Define.
265 [!_LIBC] (LXSTAT, XSTAT): Define.
266 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
267 (find_object): Don't use c99-style struct initializer.
268 Tweak wording in a couple comments.
269
2a051a7d
UD
2702003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
271
272 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
273 for SH.
274 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
275 after the trapa instruction.
276 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
277 parameters.
278 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
279 (NEED_SYSCALL_INST_PAD): Define.
280 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
281 avoid to use definition for the kernel.
282 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
283 Save and restore the frame pointer.
284 (SYSCALL_INST_PAD): Define.
285 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
286 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
287 after trapa instruction.
288 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
289 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
290
1f503475
UD
2912003-02-07 Jakub Jelinek <jakub@redhat.com>
292
293 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
294 so that it can have aliases.
295 * inet/herrno.c (h_errno): Put it into .bss not .data section.
296
eecc378c
UD
2972003-02-07 Ulrich Drepper <drepper@redhat.com>
298
299 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
300 (profile_fixup): Likewise.
1f503475 301 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
eecc378c 302
ce96c93d
UD
3032002-11-24 Robert Love <rml@tech9.net>
304
305 * posix/sched.h: Second parameter of sched_setaffinity and
306 sched_getaffinity is `unsigned int', not `unsigned long'.
307 * sysdeps/generic/sched_setaffinity.c: Likewise.
308 * sysdeps/generic/sched_getaffinity.c: Likewise.
309
e0f86659
UD
3102003-02-05 Ulrich Drepper <drepper@redhat.com>
311
432cf458 312 * debug/catchsegv.sh: Fix typo in error messsage.
ce96c93d 313 Reported by John Levon <levon@movementarian.org>.
432cf458 314
5cd09cd6
UD
315 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
316 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
317 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
318 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
319 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
320 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
321 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
322
e0f86659
UD
323 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
324 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
325
5049f197
UD
3262003-02-05 Jim Meyering <jim@meyering.net>
327
328 Fix a heap-corrupting bug.
329 * io/ftw.c: Include <limits.h>.
330 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
331 (process_entry): Allocate enough space to hold the resulting
332 file name. Don't presume that 2*dirbufsize is enough.
333 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
334 it is guaranteed to be defined.
335
6f1cff95
UD
3362003-02-04 Ulrich Drepper <drepper@redhat.com>
337
338 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
339 * iconvdata/bug-iconv3.c: New file.
340
b33b0d0d
UD
3412003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
342
343 * sysdeps/unix/sysv/linux/s390/system.c: New file.
344
6900ded2
UD
3452003-02-03 Jakub Jelinek <jakub@redhat.com>
346
347 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
348 check.
349 * config.h.in (BROKEN_SPARC_WDISP22): Add.
350
663684b2
UD
3512003-02-03 Ulrich Drepper <drepper@redhat.com>
352
353 * sysdeps/i386/i686/memmove.S: New file.
354
3e4fc359
UD
3552003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
356
357 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
358 Include kernel-features.h
359 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
360 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
361 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
362 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
363
75dec09e
UD
3642003-02-02 Jakub Jelinek <jakub@redhat.com>
365
366 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
367
78e88510
UD
3682003-01-25 Jim Meyering <jim@meyering.net>
369
370 * io/ftw.c (object_compare): Compare inode numbers before device
371 numbers, since the former are much more likely to differ.
372
38e68573
UD
3732003-02-01 Ulrich Drepper <drepper@redhat.com>
374
375 * time/tzfile.c (__tzfile_compute): Change return value type to
376 void. Adjust return statements.
377 * include/time.h (__tzfile_compute): Adjust prototype.
378
3792003-02-01 Jim Meyering <jim@meyering.net>
380
381 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
382 always returns 1.
383
3842003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
385
386 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
387 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
388
3892003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
390
391 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
392 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
393 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
394 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
395 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
396 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
397 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
398 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
399
4002003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
401
402 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
403 back to 2.4.19 for powerpc64.
404 * sysdeps/unix/sysv/linux/kernel-features.h
405 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
406 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
407
4082003-02-01 Ulrich Drepper <drepper@redhat.com>
409
410 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
411 platforms with strange alignment requirements on wchar_t.
412
b67fcc1e
UD
4132003-01-31 Andreas Schwab <schwab@suse.de>
414
415 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
416 aliases, already added by make-syscalls.sh.
417 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
418 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
419 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
420 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
421 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
422 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
423 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
424 * sysdeps/unix/inet/syscalls.list: Likewise.
425 * sysdeps/unix/syscalls.list: Likewise.
426
fb784fd5
AS
4272003-01-31 Andreas Schwab <schwab@suse.de>
428
429 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
430 any more.
431
c4c1336c
UD
4322003-01-30 Jakub Jelinek <jakub@redhat.com>
433
434 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
435 not l to load tls from stack.
436
d6f5e721
RM
4372003-01-30 Roland McGrath <roland@redhat.com>
438
439 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
440 null argument before all else.
441 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
442
7ba7c829
UD
4432003-01-30 Jakub Jelinek <jakub@redhat.com>
444
445 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
446 Move to RESOLVE protected part of the header.
447 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
448 Likewise.
449
4502003-01-30 Ulrich Drepper <drepper@redhat.com>
451
452 * stdio-common/Makefile (tests): Add bug15.
453 (bug15-ENV): Define.
454 * stdio-common/bug15.c: New file.
455
886d5973
UD
4562002-10-07 Wolfram Gloger <wg@malloc.de>
457
458 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
459 to foreign sbrk()'s if arena is contiguous. Bug report from
460 Bruno Haible <bruno@clisp.org>.
461
4622003-01-30 Jakub Jelinek <jakub@redhat.com>
463
464 * sysdeps/s390/libc-tls.c: Include stdlib.h.
465
4662003-01-30 Jakub Jelinek <jakub@redhat.com>
467
468 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
469 ps.__count.
470
4712003-01-30 Ulrich Drepper <drepper@redhat.com>
472
473 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
474 restoring of %r6.
475 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
476 64-bit load.
477 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
478
4792003-01-30 Jakub Jelinek <jakub@redhat.com>
480
481 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
482 (allocate_static_tls): ...here. Add __attribute_noinline__.
483 Don't return on failure.
484 (_dl_reloc_bad_type): Add __attribute_noinline__.
485 * elf/do-rel.h (elf_dynamic_do_rel): Add
486 __attribute__((always_inline)).
487 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
488 elf_machine_rel_relative, elf_machine_rela_relative,
489 elf_machine_lazy_rel): Add prototypes with
490 __attribute__((always_inline)).
491
4922003-01-29 David Mosberger <davidm@hpl.hp.com>
493
494 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
495
871afd6b
RM
4962003-01-29 Roland McGrath <roland@redhat.com>
497
498 * configure.in: Barf if configured in $srcdir.
871afd6b 499
1e49399d
UD
5002003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
501
502 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
1e2f8718 503 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
1e49399d 504
db34912e
UD
5052003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
506
507 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
508 clone parameters to match the order used on ia32.
509 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
510
e6ebd2e4
UD
5112003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
512
513 * elf/elf.h: Add new s390 relocs.
514 * elf/tls-macros.h: Add s390 versions.
515 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
516 * sysdeps/s390/dl-tls.h: New file.
517 * sysdeps/s390/libc-tls.c: New file.
518 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
519 relocs for class PLT.
520 (elf_machine_rela): Handle TLS relocs.
521 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
522 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
523 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
524 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
525 CLONE_CHILD_*TID flags.
526 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
527 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
528 bit offset.
529 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
530 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
531 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
532 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
533 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
534 Likewise.
535 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
536 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
537 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
538 variants.
539 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
540 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
541 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
542 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
543 variants.
544
772e3426
UD
5452003-01-28 Ulrich Drepper <drepper@redhat.com>
546
547 * sysdeps/unix/common/pause.c (do_pause): New function. Split
548 from __libc_pause. Implement using sigsuspend.
549 (__libc_pause): Call do_pause to do the real work.
550
551 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
552 sig_or_mask parameter is is_sig != 0.
553
0566b130
UD
5542003-01-21 Philip Blundell <philb@gnu.org>
555
556 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
557
a15698cb
UD
5582003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
559
560 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
561
b7e033f7
UD
5622003-01-27 Ulrich Drepper <drepper@redhat.com>
563
e6fb8846
UD
564 * stdio-common/bug14.c: Use official name for the locale.
565
1fc46908
UD
566 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
567 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
568 instead of __libc_cleanup_region_end.
569
570 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
571 as first parameter to __libc_cleanup_region_start.
572
68ff8426
UD
573 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
574 (__fe_nomask_env): Use __prctl not prctl.
575 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
576 prctl syscall.
577
809cd222
UD
578 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
579
580 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
581
b7e033f7
UD
582 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
583 wrap-around in test.
584
62f29da7
UD
5852003-01-26 Andreas Schwab <schwab@suse.de>
586
587 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
588 compatibility symbols. Remove INTDEF for __divdi3.
589 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
590 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
591 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
592 define.
593 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
594
5952003-01-24 Jakub Jelinek <jakub@redhat.com>
596
597 * elf/tls-macros.h: Add SPARC 32-bit definitions.
598 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
599 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
600 for the first half of the header. Include tls.h.
601 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
602 relocs too.
603 (elf_machine_rela): Handle TLS relocs.
604 * sysdeps/sparc/dl-tls.h: New file.
605
606 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
607 support.
608
609 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
610 * sysdeps/sparc/sparc32/memchr.S: Likewise.
611 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
612 * sysdeps/sparc/sparc32/strcat.S: Likewise.
613 * sysdeps/sparc/sparc32/strchr.S: Likewise.
614 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
615 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
616 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
617 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
618 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
619 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
620 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
621 * sysdeps/sparc/sparc64/strcat.S: Likewise.
622 * sysdeps/sparc/sparc64/strchr.S: Likewise.
623 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
624 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
625 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
626 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
627 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
628 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
629
6302003-01-24 Andreas Schwab <schwab@suse.de>
631
632 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
633 elements, and process them backwards.
634 * elf/Makefile ($(objpfx)tst-array4): New target.
635 ($(objpfx)tst-array4.out): Likewise.
636 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
637 * elf/tst-array4.c: New file.
638 * elf/tst-array4.exp: Likewise.
639
6402003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
641
642 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
643
6442003-01-27 Guido Guenther <agx@sigxcpu.org>
645
646 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
647 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
648 cancellation handling and handle both __NR_pread64 and __NR_pread.
649 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
650 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
651 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
652 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
653 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
654 case, use register names consistently.
655
6562003-01-27 Wolfram Gloger <wg@malloc.de>
657
658 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
659 pointer, not of the computed chunk. Bug report from Carlos
660 O'Donell <carlos@baldric.uwo.ca>.
661
251c0f71
AS
6622003-01-25 Andreas Schwab <schwab@suse.de>
663
664 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
665 addressing to save GOT entries.
666
86dfa4eb
RM
6672003-01-21 Jakub Jelinek <jakub@redhat.com>
668
669 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
670 inline_syscall1, inline_syscall2, inline_syscall3,
671 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
672 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
673 __attribute__((unused)) to ChEcK.
674
d5b6c817
UD
6752003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
676
677 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
678 Fix inline assembler constraints.
679 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
680 Likewise.
681
682 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
683 -fPIC.
684
83c9a671
RM
6852003-01-20 Segher Boessenkool <segher@koffie.nl>
686
687 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
688 compute the cosine, not the sine, even if x > 0.8.
689
b677d674
UD
6902003-01-19 Ulrich Drepper <drepper@redhat.com>
691
692 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
693 _nss_nis_setspent. Work around the different prototypes.
694 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
695 internal_nis_endrpcent.
696 (internal_nis_endrpcent): Change return type to void. Change callers.
697 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
698 _nss_nis_setpwent. Work around the different prototypes.
699 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
700 of the function to...
701 (internal_nis_endprotoent): ... here. New function.
702 (internal_nis_setprotoent): Use internal_nis_endprotoent.
703 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
704 _nss_nis_setnetent. Work around the different prototypes.
705 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
706 of the function to...
707 (internal_nis_endnetgrent): ... here. New function.
708 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
709
978bd143
UD
7102003-01-19 Jim Meyering <jim@meyering.net>
711
712 * time/strftime.c: (widen): Merge nearly-identical definitions.
713 (nl_get_alt_digit) [! defined my_strftime]: Define.
714 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
715 _nl_get_alt_digit and _nl_get_walt_digit.
716
b1a173f7
UD
7172003-01-19 Ulrich Drepper <drepper@redhat.com>
718
719 * time/strftime.c (my_strftime): Handle very large width
720 specifications for numeric values correctly. Improve checks for
721 overflow.
722 * time/Makefile (tests): Add tst-strftime.
723 * time/tst-strftime.c: New file.
724
039c1b75
UD
7252003-01-18 Ulrich Drepper <drepper@redhat.com>
726
6675b191
UD
727 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
728 _nss_nis_sethostent. Work around the different prototypes.
729 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
730 _nss_nis_setgrent. Work around the different prototypes.
731 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
732 function. Split out from _nss_nis_endetherent.
733 (internal_nis_setetherent): Use internal_nis_endetherent instead of
734 duplicating the code.
735 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
736 of _nss_nis_setaliasent.
737 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
738 internal_nis_endservent code, don't duplicate it.
739
039c1b75
UD
740 * inet/rexec.c (rexec_af): Protect socket operations with
741 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
742 * inet/rcmd.c (rcmd_af): Likewise.
743
62431425
RM
7442003-01-17 Roland McGrath <roland@redhat.com>
745
d32e4346
RM
746 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
747 Add test of value 0.80190127184058835.
748
62431425
RM
749 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
750
0f0b7994
UD
7512003-01-17 Richard Henderson <rth@redhat.com>
752
753 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
754 relocs for class PLT.
755 * sysdeps/alpha/libc-tls.c: New file.
756 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
757 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
758
7592003-01-17 Jakub Jelinek <jakub@redhat.com>
760
761 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
762 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
763 on _dl_static_lock.
764
1d4ff70e
AJ
7652003-01-17 Andreas Jaeger <aj@suse.de>
766
767 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
768
609b4783
UD
7692003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
770
771 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
772 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
773 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
774 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
775 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
776 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
777 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
778 is 2.4.21.
779
7802003-01-16 Ulrich Drepper <drepper@redhat.com>
781
782 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
783 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
784 buffers.
785
786 * sysdeps/generic/sysconf.c: Unconditionally implement
787 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
788 * sysdeps/posix/sysconf.c: Likewise.
789
7b7b9e70
UD
7902003-01-16 Jakub Jelinek <jakub@redhat.com>
791
792 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
793 set *err to the returned error, not to REG_ESPACE unconditionally.
794 (build_word_op): Likewise.
795 * posix/Makefile (tests): Add bug-regex16.
796 * posix/bug-regex16.c: New test.
797
850dcfca
UD
7982003-01-16 Jakub Jelinek <jakub@redhat.com>
799
800 * elf/dl-load.c (_dl_map_object_from_fd): Use
801 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
802 been already initialized.
803
a1f8ec97
UD
8042003-01-15 Dmitry V. Levin <ldv@altlinux.org>
805
806 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
807
f811dbdc
UD
8082003-01-16 Jakub Jelinek <jakub@redhat.com>
809
810 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
811 allocated too. Reported by Al Viro <aviro@redhat.com>.
812
4dd98447
RM
8132003-01-16 Roland McGrath <roland@redhat.com>
814
815 Tweak merged .abilist file format to merge duplicate symbols in
816 different sets into multi-version stanzas with new "| SET regexp..."
817 header continuation lines.
818 * scripts/merge-abilist.awk: Rewritten for new format.
819 * scripts/extract-abilist.awk: Likewise.
820
0f740059
UD
8212003-01-15 Ulrich Drepper <drepper@redhat.com>
822
e09edf23
UD
823 * nscd/connections.c (nscd_run): Remove bogus return which isn't
824 necessary with gcc 3.2+.
825 (nscd_init): Don't use error() to print message, use dbg_log.
826
ea31b613
UD
827 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
828 expected size into state.
829 (UNPACK_BYTES): Do the reverse.
41f112ad 830 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
ea31b613
UD
831 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
832 Reported by Al Viro <aviro@redhat.com>.
833
a1a2fec1
UD
834 * stdio-common/Makefile (tests): Add bug14.
835 * stdio-common/bug14.c: New file.
836
0f740059
UD
837 * stdio-common/vfscanf.c: When recognizing multibyte characters in
838 string reset the byte counter after mbrtowc reported it is not a
839 partial character. Reported by Al Viro <aviro@redhat.com>.
840
c16abc04
UD
8412003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
842
843 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
844 sysdep-cancel.h, not sysdep.h.
845
8462003-01-15 Ulrich Drepper <drepper@redhat.com>
847
848 * nscd/connections.c (nscd_run): Protect accept call with
849 TEMP_FAILURE_RETRY.
850
c841fa22
AS
8512003-01-15 Andreas Schwab <schwab@suse.de>
852
853 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
854 (common-generated): Add s-proto-bp.d.
855 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
856 of bp thunks.
857 * sysdeps/unix/s-proto-bp.S: New file.
858 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
859 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
860 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
861
73917724
RM
8622003-01-15 Roland McGrath <roland@redhat.com>
863
864 * Makerules: Use -include for tls.make, suppresses warning.
865 Move gen-as-const-headers rules up so before-compile is set in time.
866 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
867
c9f24336
UD
8682003-01-15 Ulrich Drepper <drepper@redhat.com>
869
d4397629
UD
870 * nscd/nscd.c (main): Make code to close all file descriptors
871 faster and more robust.
872
9caf4f1c
UD
873 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
874 request with one writev call. Protect all read calls with
875 TEMP_FAILURE_RETRY.
876 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
877 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
878
879 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
880 Protect writev calls with TEMP_FAILURE_RETRY.
881 * nscd/grpcache.c: Likewise.
882 * nscd/pwdcache.c: Likewise.
883
c9f24336
UD
884 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
885 IPv6 address in debug output.
886
9ae10332
RM
8872003-01-14 Roland McGrath <roland@redhat.com>
888
889 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
890 $(objpfx) directories, and get rid of vpath directives. The previous
891 arrangement resulted in files being written to the source directories
892 when run in a clean build. Find all .abilist files in $(..)abilist/.
893 (update-abi-%): Likewise.
894 (generated): Don't add .symlist files, they'll be intermediates.
895
896 * sysdeps/generic/init-first.c: Add a comment.
897
898 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
899
900 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
901 #includes and expressions.
902
903 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
904 config list when it already contains cpu-.*-os.* without / part.
905
906 * Makerules (sed-remove-dotdot): New variable.
907 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
908 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
909 (check-abi-config): New variable, append /tls or /notls to the tuple.
910 (check-abi-%): Use that for -v config value.
911 Find .abilist files in abilist/libfoo.abilist, not in subdir.
912 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
913
a8d87c92
UD
9142003-01-14 Ulrich Drepper <drepper@redhat.com>
915
916 * manual/install.texi: Correct description of header preparation for
917 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
918
574b892e
UD
9192003-01-14 Guido Guenther <agx@sigxcpu.org>
920
921 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
922 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
923 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
924
9252003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
926
927 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
928 (INTERNAL_SYSCALL): Make use of ERR parameter.
929 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
930 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
931 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
932 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
933
2c255347
UD
9342003-01-14 Ulrich Drepper <drepper@redhat.com>
935
086311a9
UD
936 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
937 == IPPROTO_TCP.
938 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
939
2f279b14
UD
940 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
941 Fix entry for bit 31.
942
2c255347
UD
943 * iconvdata/Makefile: Add rules to build IBM866NAV.
944 * iconvdata/ibm866nav.c: New file.
945 * iconvdata/tst-tables.sh: Add IBM866NAV.
946 * iconvdata/gconv-modules: Add entries for IBM866NAV.
947
642eb2a2
UD
9482003-01-13 Ulrich Drepper <drepper@redhat.com>
949
950 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
951 to test void* parameters.
952
953 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
954 source pointer before dereferencing.
955 (__STRING_SMALLL_GET32): Likewise.
956 (__memset_gc): Add missing parenthesis around macro arguments.
574b892e 957 Patch by Denis Zaitsev <zzz@cd-club.ru>.
642eb2a2
UD
958
959 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
574b892e 960 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
642eb2a2 961
115bb61d
UD
9622003-01-14 Jakub Jelinek <jakub@redhat.com>
963
964 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
965 defining.
966
9672003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
968
969 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
970 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
971 here.
972 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
973
9742003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
975
976 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
977 from here...
978 (PSEUDO): ... to here.
979 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
980 from here...
981 (PSEUDO): ... to here.
982
9ef0a840
UD
9832003-01-13 Ulrich Drepper <drepper@redhat.com>
984
985 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
986 dirent64 instead of struct dirent for dirent. Call readdir64
987 instead of readdir.
988
989 * locale/programs/locfile.c (siblings_uncached): Use struct
990 dirent64 instead of struct dirent for other_dentry. Call
991 readdir64 instead of readdir.
992
993 * elf/ldconfig.c (direntry): Change type to struct dirent64.
994 (search_dir): Use readdir64 instead of readdir.
995 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
996
f1c5213d
RM
9972003-01-12 Roland McGrath <roland@redhat.com>
998
c01ec9c7
RM
999 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
1000 not strtol. The former is usable in ld.so, the latter not.
1001
f1c5213d
RM
1002 * include/fcntl.h: Declare __libc_creat.
1003
1004 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
1005 libhurduser-link.so-no-z-defs): New variables.
1006
1007 * malloc/malloc.c: Revert last change.
1008 * malloc/malloc.h (_int_*): Move these decls to ...
1009 * include/malloc.h: ... here. Add attribute_hidden.
1010 (_int_valloc): Declare it too.
1011
73398a44
UD
10122003-01-12 Ulrich Drepper <drepper@redhat.com>
1013
115bb61d 1014 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
1376cd8c
UD
1015 search for removed searchlist. Reported by Roland McGrath.
1016
40212ce0
UD
1017 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
1018 given as start file.
1019
1020 * io/ftw.c (ftw_startup): Use correct name in check for symlink
1021 without existing target. Patch by Jim Meyering.
1022
73398a44
UD
1023 * Makerules (build-shlib-helper): Don't use -z defs linker option
1024 if no-z-defs is defined either.
1025
10262003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
1027
1028 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
1029 file.
1030
10312003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
1032
1033 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
1034 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1035
b2608c22
UD
10362003-01-12 Ulrich Drepper <drepper@redhat.com>
1037
1038 * io/ftwtest-sh: Add test case for relative path with /. at the end.
1039
10402003-01-12 Jim Meyering <jim@meyering.net>
1041
1042 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
1043 use the basename if we've already chdir'd into its parent directory.
1044
a5ce5fcf
UD
10452003-01-12 Ulrich Drepper <drepper@redhat.com>
1046
1047 * io/ftw.c (process_entry): Use relative path when using chdir()
b2608c22 1048 to change directory after call to ftw_dir.
a5ce5fcf
UD
1049 * io/ftwtest-sh: Add test for relative path argument to nftw()
1050 with FTW_CHDIR option.
1051
b398ae3c
UD
10522002-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1053
1054 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
1055 Define for powerpc.
1056 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
1057 into account.
1058 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
1059 (INTERNAL_SYSCALL): Make use of ERR parameter.
1060 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
1061 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
1062 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
1063 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
1064
10652002-01-09 Richard Henderson <rth@redhat.com>
1066
1067 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
1068 DTPREL64 and TPREL64 without loadbase applied.
1069
10702002-01-09 Richard Henderson <rth@redhat.com>
1071
1072 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
1073 for NOT_IN_libc.
1074
1075 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
1076 * sysdeps/unix/alpha/sysdep.h: ... here.
1077 (PSEUDO_LOADGP): Remove.
1078 (PSEUDO_PROLOGUE): Load GP in non-pic case.
1079 (SYSCALL_ERROR_LABEL): New.
1080 (PSEUDO): Use it in error branch.
1081 (PSEUDO_END): Add $syscall_error label.
1082
1f8613a6
AJ
10832003-01-12 Andreas Jaeger <aj@suse.de>
1084
1085 * math/bits/mathcalls.h: Round is a const function.
1086
aff4519d
UD
10872003-01-11 Jim Meyering <jim@meyering.net>
1088
1089 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
1090 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
1091 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
1092 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
1093 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
1094 [!_LIBC] (internal_function, dirent64, MAX): Define.
1095 (__set_errno): Define if not already defined.
1096 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
1097 the basename, not the entire file name.
1098 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
1099 the basename, not the entire file name.
1100
11012003-01-12 Ulrich Drepper <drepper@redhat.com>
1102
1103 * string/tester.c (test_strcpy): Disable last added strcpy until
1104 it is fixed.
1105
11062003-01-11 Philip Blundell <philb@gnu.org>
1107
1108 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
1109
11102003-01-11 Andreas Schwab <schwab@suse.de>
1111
1112 * Makerules: Add vpath for %.dynsym and %.so so that the
1113 implicit rule chaining for check-abi works.
1114
11152003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1116
1117 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
1118 Add non-PIC case.
1119
11202003-01-11 Jakub Jelinek <jakub@redhat.com>
1121
1122 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
1123 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
1124 gp is used early.
1125 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
1126 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
1127 Ensure libc.so in DT_NEEDED.
1128 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
1129 CHECK_STATIC_TLS before l_tls_offset use.
1130 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
1131 Likewise.
1132 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
1133 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
1134 Allocate TLS_PRE_TCB_SIZE bytes below result.
1135 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
1136 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
1137 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
1138 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
1139 bytes below result and add tcb_offset to memsz.
1140 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
1141 * sysdeps/ia64/dl-machine.h: Include tls.h.
1142 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
1143 too.
1144 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
1145 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
1146 * sysdeps/ia64/libc-tls.c: New file.
1147
11482003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
1149
1150 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
1151 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
1152 Fix type. Move definition out of #if.
1153 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
1154 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
1155 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
1156 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
1157 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
1158 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
1159 support.
1160 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
1161 ftruncate64, pread64, pwrite64, truncate64 entries.
1162 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
1163 (INLINE_SYSCALL): New version that supports function call like
1164 syscalls. Add __builtin_expect.
1165 (LOADARGS_n): Add argument size safety checks.
1166 (INTERNAL_SYSCALL): New Macro.
1167 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
1168 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
1169 redefinition of elf_fpreg_t and elf_fpregset_t.
1170
11712003-01-12 Ulrich Drepper <drepper@redhat.com>
1172
1173 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
1174 simplify test for unloading. If loader of a DSO is unloaded do not
1175 use its scope anymore. Fall back to own scope and adjust opencounts.
1176 Fix several comments.
1177 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
1178 the l_searchlist, not only for l_initfini.
1179
1180 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
1181 dependencies if objects cannot be removed. Remove object with the
1182 definition as not unloadable if necessary.
1183
1184 * elf/reldep6.c: Create relocation dependency before closing the first
1185 module.
1186
1187