]> sourceware.org Git - glibc.git/blame - ChangeLog
2003-03-03 Roland McGrath <roland@redhat.com>
[glibc.git] / ChangeLog
CommitLineData
ea6a015b
RM
12003-03-03 Roland McGrath <roland@redhat.com>
2
3 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
4 * sysdeps/ia64/dl-machine.h: Update decl.
5
62584540
AJ
62003-03-03 Andreas Jaeger <aj@suse.de>
7
8 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing
9 brace.
10
78c3fb45
RM
112003-03-02 Roland McGrath <roland@redhat.com>
12
13 * scripts/abilist.awk: Reject data items with apparent 0 size.
14
15 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
16 after foo.* as if it were a duplicate.
17
18 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
19
885bafa1
UD
202003-03-02 Ulrich Drepper <drepper@redhat.com>
21
1be3d664
UD
22 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
23
885bafa1
UD
24 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
25 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
26 if not already defined. Use SYSDEP_GETRES to allow other files to
27 provide alternative implementations.
28 * sysdeps/unix/sysv/linux/clock_getres.c: New file
29 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
30 if not already defined. Use SYSDEP_GETTIME to allow other files to
31 provide alternative implementations.
32 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
33 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
34 if not already defined. Use SYSDEP_GETTIME to allow other files to
35 provide alternative implementations.
36 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
37 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
38 other files to provide alternative implementations. Rearrange
39 tests for invalid parameters.
40 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
41 * sysdeps/unix/sysv/linux/sysconf.c: New file.
42 * sysdeps/unix/sysv/linux/kernel-features.h: Define
78c3fb45 43 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
885bafa1
UD
44 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
45 _POSIX_MONOTONIC_CLOCK.
46
bb0ddc2f
RM
472003-03-02 Roland McGrath <roland@redhat.com>
48
8f3846a9
RM
49 * scripts/merge-abilist.awk: More checks for bogus input.
50 Uniquify duplicate config names.
51
52 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
53
7551556f
RM
54 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
55 from dl_reloc_overflow, make global.
56 (__process_machine_rela): Update callers.
57 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
58 Add attribute_hidden to __process_machine_rela decl.
59 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
60
3a601d31
RM
61 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
62 variable.
63
bb0ddc2f
RM
64 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
65 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
66 (elf_machine_rela): Clean up.
67
68 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
69
70 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
71 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
72 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
73 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
74 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
75 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
76 new relocs for TLS.
77
78 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
79 macros out of [SHARED].
80 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
81
82 * elf/elf.h: Define R_PPC_* relocs for TLS support.
83 Clean up R_PPC64_* macro definition comments.
7ed33cba 84
d1149385
RM
85 * configure.in: In "running configure fragment for" message,
86 omit $srcdir from the name if we prepended it.
87 * configure: Regenerated.
88
7ed33cba
RM
89 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
90 From Jakub Jelinek <jakub@redhat.com>.
91
92 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
93 which duplicated the O_DIRECT defn.
94
952003-03-01 GOTO Masanori <gotom@debian.or.jp>
96
97 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
98 random functions.
99
4191f43d
AS
1002003-03-01 Andreas Schwab <schwab@suse.de>
101
7ed33cba
RM
102 * resolv/Makefile (tests): Don't depend on
103 $(objpfx)mtrace-tst-leaks when cross compiling.
104
4191f43d
AS
105 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
106 __libc_stack_end through GOT since it is a global symbol.
107
85c54a32
UD
1082003-03-01 GOTO Masanori <gotom@debian.or.jp>
109
110 * argp/argp.h: Fix a typo.
111 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
112
113 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
114
1152003-02-27 Pat Rankin <rankin@pactechdata.com>
116
117 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
118 char *.
119 (get_subexp): Likewise.
120
a6861e64
UD
1212003-03-01 GOTO Masanori <gotom@debian.or.jp>
122
123 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
124
1252003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
126
127 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
128
a6963e69
RM
1292003-02-27 Roland McGrath <roland@redhat.com>
130
131 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
132 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
133 repeat it and avoids the test for the common case.
134 Clean up and fix calculations for TLS relocs.
135
136 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
137 * sysdeps/powerpc/dl-tls.h: ... here.
138 (TLS_TP_OFFSET): New macro.
139
140 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
141
427f5fa1
UD
1422003-02-27 Ulrich Drepper <drepper@redhat.com>
143
144 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
145 code generation changes in recent gcc.
146
73a061bb
RM
1472003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
148
149 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
150 Rename argument to avoid symbol conflict.
151
152 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
153 [__USE_GNU] (O_DIRECT): New macro.
154
d2637c70
UD
1552003-02-24 David Mosberger <davidm@hpl.hp.com>
156
157 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
158 unwind info.
159
d148ed25
UD
1602003-02-27 Ulrich Drepper <drepper@redhat.com>
161
e361e438
UD
162 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
163 initializer anymore now that res_thread_freeres is more careful.
164
d148ed25
UD
165 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
166 except the PKTINFO. Reset interface in PKTINFO.
dbf6131c 167 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
d148ed25 168
fec41719
RM
1692003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
170
d148ed25
UD
171 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
172 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
173 Define.
fec41719
RM
174 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
175 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
afafddab
RM
176 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
177 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
fec41719 178
d148ed25 179 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
fec41719
RM
180 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
181
56ce76ea
AJ
1822003-02-25 Andreas Jaeger <aj@suse.de>
183
184 * manual/memory.texi (Malloc Tunable Parameters): Clarify
185 behaviour of M_MMAP_THRESHOLD.
186
724fad20
RM
1872003-02-25 Roland McGrath <roland@redhat.com>
188
189 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
190 zero, inidicating _res was not initialized yet.
191
80d80779
UD
1922003-02-24 Ulrich Drepper <drepper@redhat.com>
193
194 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
195 test.
196
81b47a8b
RM
1972003-02-24 Roland McGrath <roland@redhat.com>
198
199 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
200
de217051
RM
2012003-02-23 Roland McGrath <roland@redhat.com>
202
203 * sysdeps/posix/pause.c: New file.
204 * sysdeps/unix/common/pause.c: File removed.
205
fd1a0d0c
UD
2062003-02-23 Ulrich Drepper <drepper@redhat.com>
207
cdd8e46f
UD
208 * sysdeps/generic/bits/confname.h: Remove #ifs.
209
5a6bbb41
UD
210 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
211 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
212
fd1a0d0c
UD
213 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
214 element to -1.
215
249062b0
UD
2162003-02-22 Ulrich Drepper <drepper@redhat.com>
217
218 * sysdeps/generic/dl-sysdep.c: Avoid warning.
219
92cc462c
RM
2202003-02-22 Roland McGrath <roland@redhat.com>
221
ce84ab61
RM
222 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
223 * resolv/Makefile (tests): Add tst-leaks.
224 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
225 (tst-leaks-ENV): New variable.
226 ($(objpfx)mtrace-tst-leaks): New target.
227 (tests): Depend on it.
228
d2d442a5
RM
229 * include/libc-internal.h: Declare __libc_thread_freeres.
230
7a0c303e
RM
231 * Makerules: Fix last change to use $($(subdir)-version) when set.
232
cc8bfce9
RM
233 * Makerules (install-lib-nosubdir): Depend on installed
234 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
235 regardless of the libfoo.so target's dependencies.
236
92cc462c
RM
237 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
238 Use that in $(MAKE) calls.
239
e57f9f75
UD
2402003-02-22 Ulrich Drepper <drepper@redhat.com>
241
819c56e7
UD
242 * catgets/gencat.c (read_input_file): Collision between
243 auto-assigned numbers and user-defined nubmers is not fatal.
244 Handle it.
245 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
c780aa21
UD
246 * catgets/Makefile: Add rules to run test2.msg test.
247 * catgets/test2.msg: New file.
819c56e7
UD
248
249 * catgets/gencat.c (main): Return 1 if messages have been printed.
250
757f9fcb
UD
251 * iconv/iconv_prog.c (main): Unify messages.
252
e57f9f75
UD
253 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
254 when shifting retval.
255 * stdlib/tst-strtod.c (main): Add strtold test case.
256 Reported by Fred J. Tydeman <tydeman@tybor.com>.
257
e8783fd5
RM
2582003-02-21 Roland McGrath <roland@redhat.com>
259
2a3d906e
RM
260 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
261 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
262 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
263
264 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
265 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
266 (res_thread_freeres): New function, on __libc_thread_subfreeres and
267 __libc_subfreeres.
268
269 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
e8783fd5
RM
270 * malloc/thread-freeres.c: New file.
271 * malloc/Makefile (aux): Add it.
2a3d906e 272 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
e8783fd5
RM
273 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
274 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
275
276 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
277 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
278
2792003-02-21 Roland McGrath <roland@frob.com>
280
281 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
282
283 * iconvdata/Makefile (tests): Add bug-iconv3 only if
284 [$(have-thread-library) = yes].
285
1c848253
UD
2862003-02-21 Ulrich Drepper <drepper@redhat.com>
287
9c03686d
UD
288 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
289
1c848253
UD
290 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
291 not chechk for errors (unless testing for 32bit variant).
292 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
293 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
294 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
295
6f50cb00
UD
2962003-02-21 Jakub Jelinek <jakub@redhat.com>
297
298 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
299 Check for signed overflow, not unsigned.
300
cef0a48d
UD
301 * sysdeps/sparc/sparc64/elf/configure.in: New file.
302 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
303 Use -fcall-used-g6, not -fcall-used-g7.
304
dd3608b9
AJ
3052003-02-21 Andreas Jaeger <aj@suse.de>
306
307 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
308 mode.
309
310 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
311 clear whole mxcsr but only exceptions.
312
59fed0e2
RM
3132003-02-21 Roland McGrath <roland@redhat.com>
314
315 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
316 for libfoo.so that need $(make-link) rules.
317
36f0ccda
RM
3182003-02-21 Roland McGrath <roland@frob.com>
319
320 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
321 to match existing struct stat layout in mig protocols.
322
ec503662
UD
3232003-02-20 Ulrich Drepper <drepper@redhat.com>
324
325 * version.h (VERSION): Bump to 2.3.2.
326
327 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
328 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
329 and dl-sysdep.h.
330 * sysdeps/generic/Dist: Add sysdep-cancel.h.
331 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
332 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
333 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
334 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
335 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
336 ucontext_i.h.
337 * Makefile (distribute): Add include/stubs-prologue.h,
338 include/gnu/stubs.h, scripts/merge-abilist.awk, and
339 scripts/extract-abilist.awk.
340
af57745c
RM
3412003-02-20 Roland McGrath <roland@redhat.com>
342
343 * math/Makefile (distribute): Don't add generated files.
344
6314208a
UD
3452003-02-20 Ulrich Drepper <drepper@redhat.com>
346
6314208a
UD
347 * math/Makefile: Rearrange variable definitions slightly to get
348 definition in the right order.
349
ab10a294
RM
3502003-02-20 Roland McGrath <roland@redhat.com>
351
352 * Makerules: Clean up conditional around include of tls.make.
353 * Make-dist: Export generating=t to prevent using that.
354 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
355
54e1cabc
UD
3562003-02-20 Ulrich Drepper <drepper@redhat.com>
357
358 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
359 around in search if port IPPORT_RESERVED/2 has been test.
360
ec503662 3612002-02-20 Paolo Bonzini <bonzini@gnu.org>
54e1cabc
UD
362
363 * posix/regcomp.c: Remove inclusions.
364 * posix/regexec.c: Likewise.
365 * posix/regex_internal.c: Likewise.
366 * posix/regex_internal.h: Add inclusions here.
367 * posix/regex.c: Only include sys/types.h before regex.h. Include
368 regex_internal.h here. Include regex_internal.c before regcomp.c
369 and regexec.c (might expose more opportunities to the C compiler).
370
371 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
372
373 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
374 [!_LIBC] (__wcrtomb): New definition.
375 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
376 HAVE_LOCALE_H as well.
377
6eb74f33
UD
3782003-02-20 Ulrich Drepper <drepper@redhat.com>
379
380 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
381 patch to check for system call errors.
382
05856976
UD
3832002-07-24 Philip Blundell <philb@gnu.org>
384
385 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
386 on unknown systems.
387
3882003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
389
390 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
391 * sysdeps/unix/sysv/linux/kernel-features.h
392 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
393 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
394 if possible.
395 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
396 interprocedure branches.
397 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
398 * sysdeps/powerpc/nofpu/Dist: ...here.
399 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
400 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
401 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
402 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
403 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
404
a592f998
UD
4052003-02-18 Alan Modra <amodra@bigpond.net.au>
406
407 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
408
44ed664b
UD
4092003-02-20 Philip Blundell <philb@gnu.org>
410
411 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
412 missing arguments to INTERNAL_SYSCALL_ERROR_P and
413 INTERNAL_SYSCALL_ERRNO.
414
ffdcfcb0
UD
4152003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
416
417 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
418 for __ASSUME_32BITUIDS.
419
4b2ed419
AS
4202003-02-20 Andreas Schwab <schwab@suse.de>
421
422 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
423 POSIX_MADV_* constants.
424
01b28852
UD
4252003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
426
427 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
428 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
429 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
430 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
431
a70e514b
UD
4322003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
433
434 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
435
ade67411
RM
4362003-02-16 Roland McGrath <roland@redhat.com>
437
438 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
439
1c524710
UD
4402003-02-19 Ulrich Drepper <drepper@redhat.com>
441
01b28852 442 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
1c524710 443 decimal input digits.
b5f7b119 444 * stdlib/tst-strtod.c (main): Add test for strtof bug.
1c524710 445
2f7dc594
UD
4462003-02-18 Ulrich Drepper <drepper@redhat.com>
447
448 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
449 invalid file descriptors and missing access permissions.
450
46d7e2ba
UD
4512003-02-17 Ulrich Drepper <drepper@redhat.com>
452
8bd3f184 453 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
2cfe49db
UD
454 been found.
455
46d7e2ba
UD
456 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
457 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
458 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
459 and LOGIN_NAME_MAX.
460
b2740a3b
UD
4612003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
462 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
463
464 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
465 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
466 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
467 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
468 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
469
81b50572
UD
4702003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
471
472 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
473 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
474 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
475 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
476 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
477 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
478
479 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
480 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
481 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
482 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
483
484 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
485 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
486 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
487 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
488
fdcd8f9c
UD
4892003-02-14 Thorsten Kukuk <kukuk@suse.de>
490
491 * nss/getent.c (print_hosts): Print all IP addresses of one host.
492
7125d3cf
RM
4932003-02-15 Roland McGrath <roland@frob.com>
494
8321ef15
RM
495 * sysdeps/mach/hurd/tls.h: New file.
496 * sysdeps/mach/hurd/i386/tls.h: New file.
497
b0104b6f
RM
498 * mach/errsystems.awk: Include <errno.h> in generated output.
499
7125d3cf
RM
500 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
501 use target mach-before-compile instead of generated.
502 (mach-before-compile): New target.
503 * Makerules: Disable use of tls.make if $(generating) is set.
504 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
505 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
506 mach-shortcuts.h so mach/ generation happens before hurd/.
507
47202270
UD
5082003-02-14 Ulrich Drepper <drepper@redhat.com>
509
a439bb2f
UD
510 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
511 of demorm correctly if low word is zero.
512 Reported by Fred J. Tydeman <tydeman@tybor.com>.
757de559
UD
513 * math/libm-test.inc (nextafter_test): New test, but disabled due
514 to gcc bug.
a439bb2f 515
47202270
UD
516 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
517 counter and only call __exit_thread if this is not the last thread.
518
dac0f772
UD
5192003-02-13 Jakub Jelinek <jakub@redhat.com>
520
521 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
522 subtracting map->l_tls_offset.
523
7437cbd1
UD
5242003-02-12 Ulrich Drepper <drepper@redhat.com>
525
2067577c
UD
526 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
527 _CS_GNU_LIBPTHREAD_VERSION.
528 * posix/conststr.c: Handle these new values.
529 * posix/getconf.c: Likewise.
530
7437cbd1
UD
531 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
532 masking of version index.
533 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
534
969c9da7
UD
5352003-02-11 Ulrich Drepper <drepper@redhat.com>
536
537 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
538 correctly. Reported by Thorsten Kukuk.
539
e5ffa64a
UD
5402003-02-10 Ulrich Drepper <drepper@redhat.com>
541
542 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
543 _BSD_SOURCE to compiler.
544 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
545 Patches by Alan Modra.
546
34c86f42
UD
5472003-02-08 Ulrich Drepper <drepper@redhat.com>
548
549 * io/ftwtest.c: Get current working directory before and after the
550 nftw call and make sure they match.
551
5522003-02-08 Jim Meyering <jim@meyering.net>
553
2067577c 554 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
34c86f42
UD
555 the current directory, not just when DIR contains a slash.
556 Reported by Manoj Srivastava.
557
ae9ecd08
UD
5582003-02-07 Jim Meyering <jim@meyering.net>
559
560 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
561 Include autoconf-recommended block of dirent/NAMELEN-related
562 definitions and includes. Use NAMELEN throughout, rather than
563 _D_EXACT_NAMLEN.
564 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
565 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
566 (stpcpy): Declare, if necessary.
567 (mempcpy): Define, if necessary.
568 [!_LIBC] (__stpcpy, __mempcpy): Define.
569 [!_LIBC] (LXSTAT, XSTAT): Define.
570 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
571 (find_object): Don't use c99-style struct initializer.
572 Tweak wording in a couple comments.
573
2a051a7d
UD
5742003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
575
576 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
577 for SH.
578 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
579 after the trapa instruction.
580 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
581 parameters.
582 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
583 (NEED_SYSCALL_INST_PAD): Define.
584 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
585 avoid to use definition for the kernel.
586 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
587 Save and restore the frame pointer.
588 (SYSCALL_INST_PAD): Define.
589 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
590 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
591 after trapa instruction.
592 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
593 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
594
1f503475
UD
5952003-02-07 Jakub Jelinek <jakub@redhat.com>
596
597 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
598 so that it can have aliases.
599 * inet/herrno.c (h_errno): Put it into .bss not .data section.
600
eecc378c
UD
6012003-02-07 Ulrich Drepper <drepper@redhat.com>
602
603 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
604 (profile_fixup): Likewise.
1f503475 605 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
eecc378c 606
ce96c93d
UD
6072002-11-24 Robert Love <rml@tech9.net>
608
609 * posix/sched.h: Second parameter of sched_setaffinity and
610 sched_getaffinity is `unsigned int', not `unsigned long'.
611 * sysdeps/generic/sched_setaffinity.c: Likewise.
612 * sysdeps/generic/sched_getaffinity.c: Likewise.
613
e0f86659
UD
6142003-02-05 Ulrich Drepper <drepper@redhat.com>
615
432cf458 616 * debug/catchsegv.sh: Fix typo in error messsage.
ce96c93d 617 Reported by John Levon <levon@movementarian.org>.
432cf458 618
5cd09cd6
UD
619 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
620 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
621 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
622 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
623 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
624 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
625 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
626
e0f86659
UD
627 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
628 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
629
5049f197
UD
6302003-02-05 Jim Meyering <jim@meyering.net>
631
632 Fix a heap-corrupting bug.
633 * io/ftw.c: Include <limits.h>.
634 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
635 (process_entry): Allocate enough space to hold the resulting
636 file name. Don't presume that 2*dirbufsize is enough.
637 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
638 it is guaranteed to be defined.
639
6f1cff95
UD
6402003-02-04 Ulrich Drepper <drepper@redhat.com>
641
642 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
643 * iconvdata/bug-iconv3.c: New file.
644
b33b0d0d
UD
6452003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
646
647 * sysdeps/unix/sysv/linux/s390/system.c: New file.
648
6900ded2
UD
6492003-02-03 Jakub Jelinek <jakub@redhat.com>
650
651 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
652 check.
653 * config.h.in (BROKEN_SPARC_WDISP22): Add.
654
663684b2
UD
6552003-02-03 Ulrich Drepper <drepper@redhat.com>
656
657 * sysdeps/i386/i686/memmove.S: New file.
658
3e4fc359
UD
6592003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
660
661 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
662 Include kernel-features.h
663 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
664 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
665 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
666 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
667
75dec09e
UD
6682003-02-02 Jakub Jelinek <jakub@redhat.com>
669
670 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
671
78e88510
UD
6722003-01-25 Jim Meyering <jim@meyering.net>
673
674 * io/ftw.c (object_compare): Compare inode numbers before device
675 numbers, since the former are much more likely to differ.
676
38e68573
UD
6772003-02-01 Ulrich Drepper <drepper@redhat.com>
678
679 * time/tzfile.c (__tzfile_compute): Change return value type to
680 void. Adjust return statements.
681 * include/time.h (__tzfile_compute): Adjust prototype.
682
6832003-02-01 Jim Meyering <jim@meyering.net>
684
685 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
686 always returns 1.
687
6882003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
689
690 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
691 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
692
6932003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
694
695 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
696 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
697 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
698 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
699 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
700 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
701 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
702 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
703
7042003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
705
706 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
707 back to 2.4.19 for powerpc64.
708 * sysdeps/unix/sysv/linux/kernel-features.h
709 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
710 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
711
7122003-02-01 Ulrich Drepper <drepper@redhat.com>
713
714 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
715 platforms with strange alignment requirements on wchar_t.
716
b67fcc1e
UD
7172003-01-31 Andreas Schwab <schwab@suse.de>
718
719 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
720 aliases, already added by make-syscalls.sh.
721 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
722 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
723 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
724 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
725 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
726 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
727 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
728 * sysdeps/unix/inet/syscalls.list: Likewise.
729 * sysdeps/unix/syscalls.list: Likewise.
730
fb784fd5
AS
7312003-01-31 Andreas Schwab <schwab@suse.de>
732
733 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
734 any more.
735
c4c1336c
UD
7362003-01-30 Jakub Jelinek <jakub@redhat.com>
737
738 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
739 not l to load tls from stack.
740
d6f5e721
RM
7412003-01-30 Roland McGrath <roland@redhat.com>
742
743 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
744 null argument before all else.
745 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
746
7ba7c829
UD
7472003-01-30 Jakub Jelinek <jakub@redhat.com>
748
749 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
750 Move to RESOLVE protected part of the header.
751 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
752 Likewise.
753
7542003-01-30 Ulrich Drepper <drepper@redhat.com>
755
756 * stdio-common/Makefile (tests): Add bug15.
757 (bug15-ENV): Define.
758 * stdio-common/bug15.c: New file.
759
886d5973
UD
7602002-10-07 Wolfram Gloger <wg@malloc.de>
761
762 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
763 to foreign sbrk()'s if arena is contiguous. Bug report from
764 Bruno Haible <bruno@clisp.org>.
765
7662003-01-30 Jakub Jelinek <jakub@redhat.com>
767
768 * sysdeps/s390/libc-tls.c: Include stdlib.h.
769
7702003-01-30 Jakub Jelinek <jakub@redhat.com>
771
772 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
773 ps.__count.
774
7752003-01-30 Ulrich Drepper <drepper@redhat.com>
776
777 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
778 restoring of %r6.
779 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
780 64-bit load.
781 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
782
7832003-01-30 Jakub Jelinek <jakub@redhat.com>
784
785 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
786 (allocate_static_tls): ...here. Add __attribute_noinline__.
787 Don't return on failure.
788 (_dl_reloc_bad_type): Add __attribute_noinline__.
789 * elf/do-rel.h (elf_dynamic_do_rel): Add
790 __attribute__((always_inline)).
791 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
792 elf_machine_rel_relative, elf_machine_rela_relative,
793 elf_machine_lazy_rel): Add prototypes with
794 __attribute__((always_inline)).
795
7962003-01-29 David Mosberger <davidm@hpl.hp.com>
797
798 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
799
871afd6b
RM
8002003-01-29 Roland McGrath <roland@redhat.com>
801
802 * configure.in: Barf if configured in $srcdir.
871afd6b 803
1e49399d
UD
8042003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
805
806 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
1e2f8718 807 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
1e49399d 808
db34912e
UD
8092003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
810
811 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
812 clone parameters to match the order used on ia32.
813 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
814
e6ebd2e4
UD
8152003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
816
817 * elf/elf.h: Add new s390 relocs.
818 * elf/tls-macros.h: Add s390 versions.
819 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
820 * sysdeps/s390/dl-tls.h: New file.
821 * sysdeps/s390/libc-tls.c: New file.
822 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
823 relocs for class PLT.
824 (elf_machine_rela): Handle TLS relocs.
825 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
826 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
827 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
828 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
829 CLONE_CHILD_*TID flags.
830 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
831 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
832 bit offset.
833 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
834 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
835 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
836 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
837 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
838 Likewise.
839 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
840 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
841 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
842 variants.
843 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
844 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
845 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
846 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
847 variants.
848
772e3426
UD
8492003-01-28 Ulrich Drepper <drepper@redhat.com>
850
851 * sysdeps/unix/common/pause.c (do_pause): New function. Split
852 from __libc_pause. Implement using sigsuspend.
853 (__libc_pause): Call do_pause to do the real work.
854
855 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
856 sig_or_mask parameter is is_sig != 0.
857
0566b130
UD
8582003-01-21 Philip Blundell <philb@gnu.org>
859
860 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
861
a15698cb
UD
8622003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
863
864 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
865
b7e033f7
UD
8662003-01-27 Ulrich Drepper <drepper@redhat.com>
867
e6fb8846
UD
868 * stdio-common/bug14.c: Use official name for the locale.
869
1fc46908
UD
870 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
871 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
872 instead of __libc_cleanup_region_end.
873
874 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
875 as first parameter to __libc_cleanup_region_start.
876
68ff8426
UD
877 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
878 (__fe_nomask_env): Use __prctl not prctl.
879 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
880 prctl syscall.
881
809cd222
UD
882 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
883
884 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
885
b7e033f7
UD
886 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
887 wrap-around in test.
888
62f29da7
UD
8892003-01-26 Andreas Schwab <schwab@suse.de>
890
891 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
892 compatibility symbols. Remove INTDEF for __divdi3.
893 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
894 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
895 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
896 define.
897 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
898
8992003-01-24 Jakub Jelinek <jakub@redhat.com>
900
901 * elf/tls-macros.h: Add SPARC 32-bit definitions.
902 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
903 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
904 for the first half of the header. Include tls.h.
905 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
906 relocs too.
907 (elf_machine_rela): Handle TLS relocs.
908 * sysdeps/sparc/dl-tls.h: New file.
909
910 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
911 support.
912
913 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
914 * sysdeps/sparc/sparc32/memchr.S: Likewise.
915 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
916 * sysdeps/sparc/sparc32/strcat.S: Likewise.
917 * sysdeps/sparc/sparc32/strchr.S: Likewise.
918 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
919 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
920 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
921 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
922 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
923 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
924 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
925 * sysdeps/sparc/sparc64/strcat.S: Likewise.
926 * sysdeps/sparc/sparc64/strchr.S: Likewise.
927 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
928 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
929 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
930 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
931 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
932 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
933
9342003-01-24 Andreas Schwab <schwab@suse.de>
935
936 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
937 elements, and process them backwards.
938 * elf/Makefile ($(objpfx)tst-array4): New target.
939 ($(objpfx)tst-array4.out): Likewise.
940 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
941 * elf/tst-array4.c: New file.
942 * elf/tst-array4.exp: Likewise.
943
9442003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
945
946 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
947
9482003-01-27 Guido Guenther <agx@sigxcpu.org>
949
950 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
951 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
952 cancellation handling and handle both __NR_pread64 and __NR_pread.
953 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
954 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
955 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
956 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
957 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
958 case, use register names consistently.
959
9602003-01-27 Wolfram Gloger <wg@malloc.de>
961
962 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
963 pointer, not of the computed chunk. Bug report from Carlos
964 O'Donell <carlos@baldric.uwo.ca>.
965
251c0f71
AS
9662003-01-25 Andreas Schwab <schwab@suse.de>
967
968 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
969 addressing to save GOT entries.
970
86dfa4eb
RM
9712003-01-21 Jakub Jelinek <jakub@redhat.com>
972
973 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
974 inline_syscall1, inline_syscall2, inline_syscall3,
975 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
976 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
977 __attribute__((unused)) to ChEcK.
978
d5b6c817
UD
9792003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
980
981 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
982 Fix inline assembler constraints.
983 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
984 Likewise.
985
986 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
987 -fPIC.
988
83c9a671
RM
9892003-01-20 Segher Boessenkool <segher@koffie.nl>
990
991 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
992 compute the cosine, not the sine, even if x > 0.8.
993
b677d674
UD
9942003-01-19 Ulrich Drepper <drepper@redhat.com>
995
996 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
997 _nss_nis_setspent. Work around the different prototypes.
998 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
999 internal_nis_endrpcent.
1000 (internal_nis_endrpcent): Change return type to void. Change callers.
1001 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
1002 _nss_nis_setpwent. Work around the different prototypes.
1003 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
1004 of the function to...
1005 (internal_nis_endprotoent): ... here. New function.
1006 (internal_nis_setprotoent): Use internal_nis_endprotoent.
1007 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
1008 _nss_nis_setnetent. Work around the different prototypes.
1009 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
1010 of the function to...
1011 (internal_nis_endnetgrent): ... here. New function.
1012 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
1013
978bd143
UD
10142003-01-19 Jim Meyering <jim@meyering.net>
1015
1016 * time/strftime.c: (widen): Merge nearly-identical definitions.
1017 (nl_get_alt_digit) [! defined my_strftime]: Define.
1018 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
1019 _nl_get_alt_digit and _nl_get_walt_digit.
1020
b1a173f7
UD
10212003-01-19 Ulrich Drepper <drepper@redhat.com>
1022
1023 * time/strftime.c (my_strftime): Handle very large width
1024 specifications for numeric values correctly. Improve checks for
1025 overflow.
1026 * time/Makefile (tests): Add tst-strftime.
1027 * time/tst-strftime.c: New file.
1028
039c1b75
UD
10292003-01-18 Ulrich Drepper <drepper@redhat.com>
1030
6675b191
UD
1031 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
1032 _nss_nis_sethostent. Work around the different prototypes.
1033 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
1034 _nss_nis_setgrent. Work around the different prototypes.
1035 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
1036 function. Split out from _nss_nis_endetherent.
1037 (internal_nis_setetherent): Use internal_nis_endetherent instead of
1038 duplicating the code.
1039 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
1040 of _nss_nis_setaliasent.
1041 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
1042 internal_nis_endservent code, don't duplicate it.
1043
039c1b75
UD
1044 * inet/rexec.c (rexec_af): Protect socket operations with
1045 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
1046 * inet/rcmd.c (rcmd_af): Likewise.
1047
62431425
RM
10482003-01-17 Roland McGrath <roland@redhat.com>
1049
d32e4346
RM
1050 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
1051 Add test of value 0.80190127184058835.
1052
62431425
RM
1053 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
1054
0f0b7994
UD
10552003-01-17 Richard Henderson <rth@redhat.com>
1056
1057 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
1058 relocs for class PLT.
1059 * sysdeps/alpha/libc-tls.c: New file.
1060 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
1061 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
1062
10632003-01-17 Jakub Jelinek <jakub@redhat.com>
1064
1065 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
1066 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
1067 on _dl_static_lock.
1068
1d4ff70e
AJ
10692003-01-17 Andreas Jaeger <aj@suse.de>
1070
1071 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
1072
609b4783
UD
10732003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
1074
1075 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
1076 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
1077 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
1078 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
1079 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
1080 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
1081 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
1082 is 2.4.21.
1083
10842003-01-16 Ulrich Drepper <drepper@redhat.com>
1085
1086 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
1087 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
1088 buffers.
1089
1090 * sysdeps/generic/sysconf.c: Unconditionally implement
1091 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
1092 * sysdeps/posix/sysconf.c: Likewise.
1093
7b7b9e70
UD
10942003-01-16 Jakub Jelinek <jakub@redhat.com>
1095
1096 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
1097 set *err to the returned error, not to REG_ESPACE unconditionally.
1098 (build_word_op): Likewise.
1099 * posix/Makefile (tests): Add bug-regex16.
1100 * posix/bug-regex16.c: New test.
1101
850dcfca
UD
11022003-01-16 Jakub Jelinek <jakub@redhat.com>
1103
1104 * elf/dl-load.c (_dl_map_object_from_fd): Use
1105 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
1106 been already initialized.
1107
a1f8ec97
UD
11082003-01-15 Dmitry V. Levin <ldv@altlinux.org>
1109
1110 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
1111
f811dbdc
UD
11122003-01-16 Jakub Jelinek <jakub@redhat.com>
1113
1114 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
1115 allocated too. Reported by Al Viro <aviro@redhat.com>.
1116
4dd98447
RM
11172003-01-16 Roland McGrath <roland@redhat.com>
1118
1119 Tweak merged .abilist file format to merge duplicate symbols in
1120 different sets into multi-version stanzas with new "| SET regexp..."
1121 header continuation lines.
1122 * scripts/merge-abilist.awk: Rewritten for new format.
1123 * scripts/extract-abilist.awk: Likewise.
1124
0f740059
UD
11252003-01-15 Ulrich Drepper <drepper@redhat.com>
1126
e09edf23
UD
1127 * nscd/connections.c (nscd_run): Remove bogus return which isn't
1128 necessary with gcc 3.2+.
1129 (nscd_init): Don't use error() to print message, use dbg_log.
1130
ea31b613
UD
1131 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
1132 expected size into state.
1133 (UNPACK_BYTES): Do the reverse.
41f112ad 1134 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
ea31b613
UD
1135 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
1136 Reported by Al Viro <aviro@redhat.com>.
1137
a1a2fec1
UD
1138 * stdio-common/Makefile (tests): Add bug14.
1139 * stdio-common/bug14.c: New file.
1140
0f740059
UD
1141 * stdio-common/vfscanf.c: When recognizing multibyte characters in
1142 string reset the byte counter after mbrtowc reported it is not a
1143 partial character. Reported by Al Viro <aviro@redhat.com>.
1144
c16abc04
UD
11452003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
1146
1147 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
1148 sysdep-cancel.h, not sysdep.h.
1149
11502003-01-15 Ulrich Drepper <drepper@redhat.com>
1151
1152 * nscd/connections.c (nscd_run): Protect accept call with
1153 TEMP_FAILURE_RETRY.
1154
c841fa22
AS
11552003-01-15 Andreas Schwab <schwab@suse.de>
1156
1157 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
1158 (common-generated): Add s-proto-bp.d.
1159 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
1160 of bp thunks.
1161 * sysdeps/unix/s-proto-bp.S: New file.
1162 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
1163 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
1164 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
1165
73917724
RM
11662003-01-15 Roland McGrath <roland@redhat.com>
1167
1168 * Makerules: Use -include for tls.make, suppresses warning.
1169 Move gen-as-const-headers rules up so before-compile is set in time.
1170 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
1171
c9f24336
UD
11722003-01-15 Ulrich Drepper <drepper@redhat.com>
1173
d4397629
UD
1174 * nscd/nscd.c (main): Make code to close all file descriptors
1175 faster and more robust.
1176
9caf4f1c
UD
1177 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
1178 request with one writev call. Protect all read calls with
1179 TEMP_FAILURE_RETRY.
1180 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
1181 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
1182
1183 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
1184 Protect writev calls with TEMP_FAILURE_RETRY.
1185 * nscd/grpcache.c: Likewise.
1186 * nscd/pwdcache.c: Likewise.
1187
c9f24336
UD
1188 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
1189 IPv6 address in debug output.
1190
9ae10332
RM
11912003-01-14 Roland McGrath <roland@redhat.com>
1192
1193 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
1194 $(objpfx) directories, and get rid of vpath directives. The previous
1195 arrangement resulted in files being written to the source directories
1196 when run in a clean build. Find all .abilist files in $(..)abilist/.
1197 (update-abi-%): Likewise.
1198 (generated): Don't add .symlist files, they'll be intermediates.
1199
1200 * sysdeps/generic/init-first.c: Add a comment.
1201
1202 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
1203
1204 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
1205 #includes and expressions.
1206
1207 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
1208 config list when it already contains cpu-.*-os.* without / part.
1209
1210 * Makerules (sed-remove-dotdot): New variable.
1211 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
1212 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
1213 (check-abi-config): New variable, append /tls or /notls to the tuple.
1214 (check-abi-%): Use that for -v config value.
1215 Find .abilist files in abilist/libfoo.abilist, not in subdir.
1216 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
1217
a8d87c92
UD
12182003-01-14 Ulrich Drepper <drepper@redhat.com>
1219
1220 * manual/install.texi: Correct description of header preparation for
1221 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
1222
574b892e
UD
12232003-01-14 Guido Guenther <agx@sigxcpu.org>
1224
1225 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
1226 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
1227 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
1228
12292003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
1230
1231 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
1232 (INTERNAL_SYSCALL): Make use of ERR parameter.
1233 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
1234 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
1235 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
1236 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
1237
2c255347
UD
12382003-01-14 Ulrich Drepper <drepper@redhat.com>
1239
086311a9
UD
1240 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
1241 == IPPROTO_TCP.
1242 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
1243
2f279b14
UD
1244 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
1245 Fix entry for bit 31.
1246
2c255347
UD
1247 * iconvdata/Makefile: Add rules to build IBM866NAV.
1248 * iconvdata/ibm866nav.c: New file.
1249 * iconvdata/tst-tables.sh: Add IBM866NAV.
1250 * iconvdata/gconv-modules: Add entries for IBM866NAV.
1251
642eb2a2
UD
12522003-01-13 Ulrich Drepper <drepper@redhat.com>
1253
1254 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
1255 to test void* parameters.
1256
1257 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
1258 source pointer before dereferencing.
1259 (__STRING_SMALLL_GET32): Likewise.
1260 (__memset_gc): Add missing parenthesis around macro arguments.
574b892e 1261 Patch by Denis Zaitsev <zzz@cd-club.ru>.
642eb2a2
UD
1262
1263 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
574b892e 1264 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
642eb2a2 1265
115bb61d
UD
12662003-01-14 Jakub Jelinek <jakub@redhat.com>
1267
1268 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
1269 defining.
1270
12712003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
1272
1273 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
1274 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
1275 here.
1276 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
1277
12782003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
1279
1280 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
1281 from here...
1282 (PSEUDO): ... to here.
1283 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
1284 from here...
1285 (PSEUDO): ... to here.
1286
9ef0a840
UD
12872003-01-13 Ulrich Drepper <drepper@redhat.com>
1288
1289 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
1290 dirent64 instead of struct dirent for dirent. Call readdir64
1291 instead of readdir.
1292
1293 * locale/programs/locfile.c (siblings_uncached): Use struct
1294 dirent64 instead of struct dirent for other_dentry. Call
1295 readdir64 instead of readdir.
1296
1297 * elf/ldconfig.c (direntry): Change type to struct dirent64.
1298 (search_dir): Use readdir64 instead of readdir.
1299 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
1300
f1c5213d
RM
13012003-01-12 Roland McGrath <roland@redhat.com>
1302
c01ec9c7
RM
1303 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
1304 not strtol. The former is usable in ld.so, the latter not.
1305
f1c5213d
RM
1306 * include/fcntl.h: Declare __libc_creat.
1307
1308 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
1309 libhurduser-link.so-no-z-defs): New variables.
1310
1311 * malloc/malloc.c: Revert last change.
1312 * malloc/malloc.h (_int_*): Move these decls to ...
1313 * include/malloc.h: ... here. Add attribute_hidden.
1314 (_int_valloc): Declare it too.
1315
73398a44
UD
13162003-01-12 Ulrich Drepper <drepper@redhat.com>
1317
115bb61d 1318 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
1376cd8c
UD
1319 search for removed searchlist. Reported by Roland McGrath.
1320
40212ce0
UD
1321 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
1322 given as start file.
1323
1324 * io/ftw.c (ftw_startup): Use correct name in check for symlink
1325 without existing target. Patch by Jim Meyering.
1326
73398a44
UD
1327 * Makerules (build-shlib-helper): Don't use -z defs linker option
1328 if no-z-defs is defined either.
1329
13302003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
1331
1332 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
1333 file.
1334
13352003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
1336
1337 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
1338 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1339
b2608c22
UD
13402003-01-12 Ulrich Drepper <drepper@redhat.com>
1341
1342 * io/ftwtest-sh: Add test case for relative path with /. at the end.
1343
13442003-01-12 Jim Meyering <jim@meyering.net>
1345
1346 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
1347 use the basename if we've already chdir'd into its parent directory.
1348
a5ce5fcf
UD
13492003-01-12 Ulrich Drepper <drepper@redhat.com>
1350
1351 * io/ftw.c (process_entry): Use relative path when using chdir()
b2608c22 1352 to change directory after call to ftw_dir.
a5ce5fcf
UD
1353 * io/ftwtest-sh: Add test for relative path argument to nftw()
1354 with FTW_CHDIR option.
1355
b398ae3c
UD
13562002-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1357
1358 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
1359 Define for powerpc.
1360 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
1361 into account.
1362 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
1363 (INTERNAL_SYSCALL): Make use of ERR parameter.
1364 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
1365 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
1366 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
1367 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
1368
13692002-01-09 Richard Henderson <rth@redhat.com>
1370
1371 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
1372 DTPREL64 and TPREL64 without loadbase applied.
1373
13742002-01-09 Richard Henderson <rth@redhat.com>
1375
1376 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
1377 for NOT_IN_libc.
1378
1379 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
1380 * sysdeps/unix/alpha/sysdep.h: ... here.
1381 (PSEUDO_LOADGP): Remove.
1382 (PSEUDO_PROLOGUE): Load GP in non-pic case.
1383 (SYSCALL_ERROR_LABEL): New.
1384 (PSEUDO): Use it in error branch.
1385 (PSEUDO_END): Add $syscall_error label.
1386
1f8613a6
AJ
13872003-01-12 Andreas Jaeger <aj@suse.de>
1388
1389 * math/bits/mathcalls.h: Round is a const function.
1390
aff4519d
UD
13912003-01-11 Jim Meyering <jim@meyering.net>
1392
1393 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
1394 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
1395 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
1396 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
1397 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
1398 [!_LIBC] (internal_function, dirent64, MAX): Define.
1399 (__set_errno): Define if not already defined.
1400 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
1401 the basename, not the entire file name.
1402 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
1403 the basename, not the entire file name.
1404
14052003-01-12 Ulrich Drepper <drepper@redhat.com>
1406
1407 * string/tester.c (test_strcpy): Disable last added strcpy until
1408 it is fixed.
1409
14102003-01-11 Philip Blundell <philb@gnu.org>
1411
1412 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
1413
14142003-01-11 Andreas Schwab <schwab@suse.de>
1415
1416 * Makerules: Add vpath for %.dynsym and %.so so that the
1417 implicit rule chaining for check-abi works.
1418
14192003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1420
1421 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
1422 Add non-PIC case.
1423
14242003-01-11 Jakub Jelinek <jakub@redhat.com>
1425
1426 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
1427 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
1428 gp is used early.
1429 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
1430 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
1431 Ensure libc.so in DT_NEEDED.
1432 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
1433 CHECK_STATIC_TLS before l_tls_offset use.
1434 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
1435 Likewise.
1436 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
1437 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
1438 Allocate TLS_PRE_TCB_SIZE bytes below result.
1439 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
1440 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
1441 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
1442 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
1443 bytes below result and add tcb_offset to memsz.
1444 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
1445 * sysdeps/ia64/dl-machine.h: Include tls.h.
1446 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
1447 too.
1448 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
1449 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
1450 * sysdeps/ia64/libc-tls.c: New file.
1451
14522003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
1453
1454 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
1455 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
1456 Fix type. Move definition out of #if.
1457 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
1458 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
1459 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
1460 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
1461 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
1462 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
1463 support.
1464 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
1465 ftruncate64, pread64, pwrite64, truncate64 entries.
1466 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
1467 (INLINE_SYSCALL): New version that supports function call like
1468 syscalls. Add __builtin_expect.
1469 (LOADARGS_n): Add argument size safety checks.
1470 (INTERNAL_SYSCALL): New Macro.
1471 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
1472 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
1473 redefinition of elf_fpreg_t and elf_fpregset_t.
1474
14752003-01-12 Ulrich Drepper <drepper@redhat.com>
1476
1477 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
1478 simplify test for unloading. If loader of a DSO is unloaded do not
1479 use its scope anymore. Fall back to own scope and adjust opencounts.
1480 Fix several comments.
1481 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
1482 the l_searchlist, not only for l_initfini.
1483
1484 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
1485 dependencies if objects cannot be removed. Remove object with the
1486 definition as not unloadable if necessary.
1487
1488 * elf/reldep6.c: Create relocation dependency before closing the first
1489 module.
1490
1491