Update.
[kopensolaris-gnu/glibc.git] / ChangeLog
1 2003-07-12  Ulrich Drepper  <drepper@redhat.com>
2
3         * sysdeps/unix/sysv/linux/bits/statfs.h (_STATFS_F_FRSIZE): Define.
4         * sysdeps/unix/sysv/linux/alpha/bits/statfs.h (_STATFS_F_FRSIZE):
5         Likewise.
6         * sysdeps/unix/sysv/linux/s390/bits/statfs.h (_STATFS_F_FRSIZE):
7         Likewise.
8
9         * sysdeps/unix/sysv/linux/kernel-features.h: Define
10         __ASSUME_UTIMES for x86 and kernels > 2.5.75.
11
12         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with
13         second parameter == NULL.
14         * sysdeps/unix/sysv/linux/utimes.c: New file.
15
16 2003-07-12  Jakub Jelinek  <jakub@redhat.com>
17
18         * sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h.
19         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix
20         a typo.
21
22 2003-07-12  Ulrich Drepper  <drepper@redhat.com>
23
24         * time/sys/time.h: Namespace cleanup.
25         * sysdeps/unix/sysv/linux/kernel-features.h: Define
26         __ASSUME_UTIMES for the architectures which always had the syscall.
27         * sysdeps/unix/sysv/linux/futimes.c: New file.
28
29 2003-07-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
30
31         * sysdeps/unix/sysv/linux/sh/socket.S: Save and restore the PR
32         register across CENABLE and CDISABLE.
33
34 2003-07-11  Jakub Jelinek  <jakub@redhat.com>
35
36         * sysdeps/unix/sysv/linux/sigwait.c: Include string.h.
37         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
38         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
39         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Cast value to unsigned
40         int before assigning to max to avoid warnings.
41
42 2003-07-11  Jakub Jelinek  <jakub@redhat.com>
43
44         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket): Add
45         cfi directives.
46         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Likewise.
47         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
48
49 2003-07-10  Jakub Jelinek  <jakub@redhat.com>
50
51         * sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of
52         .data.rel.ro.local to "aw".
53
54 2003-07-10  Ulrich Drepper  <drepper@redhat.com>
55
56         * sysdeps/m68k/Makefile: Remove CLFAGS-.oS addition.
57         * Makeconfig (CFLAGS-.oS): Use PIC-ccflag instead of pic-ccflag.
58         (PIC-ccflag): Define.
59
60 2003-07-04  Jakub Jelinek  <jakub@redhat.com>
61
62         * sysdeps/s390/s390-32/elf/start.S: Emit position independent code
63         if PIC.
64         * sysdeps/s390/s390-64/elf/start.S: Likewise.
65
66 2003-07-07  Jakub Jelinek  <jakub@redhat.com>
67
68         * sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address)
69         into .data.rel.ro.local section if PIC to avoid DT_TEXTREL.
70
71 2003-07-07  Ulrich Drepper  <drepper@redhat.com>
72
73         * sysdeps/unix/sysv/linux/kernel-features.h: Version
74         __ASSUME_CORRECT_SI_PID and __ASSUME_TGKILL if possible.
75
76         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
77         compilation with HAVE_AUX_SECURE defined.
78
79 2003-07-05  Richard Henderson  <rth@redhat.com>
80
81         * sysdeps/alpha/elf/initfini.c: Avoid .ent/.end.
82
83 2003-07-03  Ulrich Drepper  <drepper@redhat.com>
84
85         * configure.in: Also check for .cfi_rel_offset pseudo-op.
86
87 2003-07-03  Jakub Jelinek  <jakub@redhat.com>
88
89         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency): Fix a
90         typo.
91
92 2003-07-03  Ulrich Drepper  <drepper@redhat.com>
93
94         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_CLKTCK):
95         Define.
96         * sysdeps/unix/sysv/linux/prof-freq.h: New file.
97
98 2003-07-02  Jakub Jelinek  <jakub@redhat.com>
99
100         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Protect new_sysinfo
101         decl and use with #ifdef NEED_DL_SYSINFO.
102
103 2003-07-02  Ulrich Drepper  <drepper@redhat.com>
104
105         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't set
106         GL(dl_sysinfo) unles GL(dl_sysinfo_dso) is also set.
107         * sysdeps/unix/sysv/linux/kernel-features.h: Define
108         __ASSUME_VSYSCALL only for 2.5.69 and up since this is when the
109         vsyscall DSO was added.
110
111         * posix/bits/posix1_lim.h (_POSIX_NGROUPS_MAX): Define to 8 or 0
112         depending on selected standard.
113         (NGROUPS_MAX): Define to 8 if not defined.
114
115 2003-07-02  Andreas Jaeger  <aj@suse.de>
116
117         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: New file.
118
119 2003-05-04  H.J. Lu  <hongjiu.lu@intel.com>
120
121         * malloc/arena.c (arena_get2): Add atomic_write_barrier.
122         * malloc/thread-m.h: Include <atomic.h>.
123         (atomic_full_barrier): Provide default.
124         (atomic_read_barrier): Likewise.
125         (atomic_write_barrier): Likewise.
126         * sysdeps/ia64/bits/atomic.h (atomic_full_barrier): New #define.
127
128 2003-06-30  Ulrich Drepper  <drepper@redhat.com>
129
130         * sysdeps/generic/sysdep.h: Define cfi_rel_offset and CFI_REL_OFFSET.
131
132 2003-06-30  Richard Henderson  <rth@redhat.com>
133
134         * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_bool_*_int):
135         Invert the sense of the return value.
136         (__arch_exchange_16_int): Fix paste-o.
137         (__arch_exchange_{32,64}_int): Fix think-o.
138
139         * sysdeps/unix/sysv/linux/alpha/clone.S: Load child_tid properly.
140
141 2003-06-30  Richard Henderson  <rth@redhat.com>
142
143         * include/sys/resource.h (__getrusage): Mark hidden.
144         * include/sys/time.h (__settimeofday, __setitimer, __utimes): Likewise.
145         * include/sys/wait.h (__wait4): Likewise.
146
147 2003-06-17  Guido Guenther  <agx@sigxcpu.org>
148
149         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT
150         case.
151         (xstat_conv): Rename to __xstat_conv and remove static inline.
152         (xstat64_conv): Likewise.
153
154 2003-06-29  Ulrich Drepper  <drepper@redhat.com>
155
156         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Handle parameter
157         values which cannot be handled in one nanosleep call.
158
159 2003-06-25  Alfred M. Szmidt  <ams@kemisten.nu>
160
161         * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros.
162         (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them.
163
164         * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix.
165
166 2003-06-04  Thorsten Kukuk  <kukuk@suse.de>
167
168         * sysdeps/unix/sysv/linux/net/if_arp.h: Sync with kernel header,
169         fix typo.
170
171 2003-06-26  Steven Munroe  <sjmunroe@us.ibm.com>
172
173         * sysdeps/unix/sysv/linux/xstatconv.h [!STAT_IS_KERNEL_STAT]:
174         Conditionalize function definitions that use struct kernel_stat.
175         * sysdeps/unix/sysv/linux/fxstat.c: Remove __syscall_fstat extern.
176         * sysdeps/unix/sysv/linux/lxstat.c: Remove __syscall_lstat extern.
177         * sysdeps/unix/sysv/linux/xstat.c: Remove __syscall_stat extern.
178
179 2003-06-28  Ulrich Drepper  <drepper@redhat.com>
180
181         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Add real
182         implementation.
183
184 2003-06-07  Thorsten Kukuk  <kukuk@suse.de>
185
186         * nis/nss_compat/compat-grp.c: Remove unused nis_first variable.
187         (getgrent_next_file): Don't store group name to early in blacklist.
188
189         * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Save strlen result
190         and use memcpy instead of strcpy.
191
192 2003-06-28  Ulrich Drepper  <drepper@redhat.com>
193
194         * nis/nss_compat/compat-grp.c: Optimize several little things.  Use
195         stream unlocked.
196         * nis/nss_compat/compat-initgroups.c: Likewise.
197         * nis/nss_compat/compat-pwd.c: Likewise.
198         * nis/nss_compat/compat-spwd.c: Likewise.
199
200 2003-06-27  Thorsten Kukuk  <kukuk@suse.de>
201
202         * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+
203         functions, dlopen corresponding NSS module instead.
204
205 2003-06-27  Jeroen Dekkers  <jeroen@dekkers.cx>
206
207         * sysdeps/mach/hurd/alpha/init-first.c: Remove call to __libc_init.
208         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
209         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
210         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
211
212 2003-06-27  Ulrich Drepper  <drepper@redhat.com>
213
214         * rt/Makefile (CFLAGS-librt-cancellation.c): Define.
215
216 2003-06-26  Roland McGrath  <roland@frob.com>
217
218         * sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME.
219         * sysdeps/mach/configure: Regenerated.
220         * sysdeps/mach/hurd/times.c (times_init): Function removed.
221         (__times): Assume `creation_time' field is available.
222         * sysdeps/mach/hurd/Makefile [$(subdir) = csu] (sysdep_routines):
223         Don't append set-init.
224         * sysdeps/mach/hurd/set-init.c: File removed.
225
226 2003-06-26  Roland McGrath  <roland@redhat.com>
227
228         * elf/elf.h (AT_SECURE): New macro.
229         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Grok it,
230         set __libc_enable_secure.
231         (_dl_show_auxv): Add AT_SECURE to name table.
232         * elf/dl-support.c (_dl_aux_init): Grok AT_SECURE, set
233         __libc_enable_secure and __libc_enable_secure_decided.
234         * sysdeps/unix/sysv/linux/ldsodefs.h
235         [__ASSUME_AT_SECURE] (HAVE_AUX_SECURE): Define it.
236         * sysdeps/unix/sysv/linux/kernel-features.h
237         [__LINUX_KERNEL_VERSION >= 132426] (__ASSUME_AT_SECURE): Define it.
238
239 2003-06-26  Ulrich Drepper  <drepper@redhat.com>
240
241         * io/test-utime.c: If _STATBUF_ST_NSEC is defined, adjust lower
242         boundary test to take rounding of nanoseconds into account.
243
244         * sysdeps/unix/sysv/linux/bits/stat.h: Define _STATBUF_ST_NSEC.
245         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
246         * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise.
247         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
248         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
249         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
250         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
251
252 2003-06-26  Andreas Schwab  <schwab@suse.de>
253
254         * sysdeps/m68k/fpu/bits/mathinline.h: Don't inline frexp.
255         * sysdeps/m68k/fpu/s_frexp.c: Put implementation here.
256         * sysdeps/m68k/fpu/s_frexpl.c: Fix to handle unnormalized numbers.
257
258 2003-06-17  Thorsten Kukuk  <kukuk@suse.de>
259
260         * nis/Makefile: Remove NIS/NIS+ files from nss_compat module.
261         * nis/nss_compat/compat-grp.c: Don't use our own NIS/NIS+ functions,
262         dlopen corresponding NSS module instead.
263         * nis/nss_compat/compat-pwd.c: Likewise.
264         * nis/nss_compat/compat-spwd.c: Likewise.
265         * nis/nss_compat/compat-initgroups.c: Disabled for now.
266         * nss/Versions: Export __nss_lookup_function.
267
268 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
269
270         * sysdeps/unix/sysv/linux/kernel-features.h: Update kernel features
271         for the SH architecture.
272
273 2003-06-25  Thorsten Kukuk  <kukuk@suse.de>
274
275         * csu/Makefile: Use CPPFLAGS to find correct linux/version.h.
276
277 2003-06-25  Andreas Jaeger  <aj@suse.de>
278
279         * stdlib/tst-strtod.c (main): Declare constant long double as
280         suggested by Jakub Jelinek and Andreas Schwab.
281
282         * posix/tst-nanosleep.c: Include <time.h> for nanosleep
283         declaration.
284
285         * stdio-common/tst-fphex.c: Fix format string.
286
287         * posix/transbug.c: Include <string.h> for memset and strlen
288         declarations.
289
290         * stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration.
291
292         * stdlib/tst-strtod.c (main): Pass long double value.
293
294         * test-skeleton.c: Include <time.h> for nanosleep declaration.
295
296 2003-06-25  Ulrich Drepper  <drepper@redhat.com>
297
298         * include/time.h: Don't define CLOCK_IDFIELD_SIZE if _ISOMAC is
299         defined.
300
301 2003-06-11  Jakub Jelinek  <jakub@redhat.com>
302
303         * elf/Versions (libc): Add _dl_open_hook@GLIBC_PRIVATE.
304         * elf/dl-libc.c (struct dl_open_hook): New.
305         (_dl_open_hook): New variable.
306         (do_dlsym_private): New function.
307         (__libc_dlopen_mode) [!SHARED]: Lookup _dl_open_hook@GLIBC_PRIVATE
308         and initialize it if found.
309         (__libc_dlopen_mode) [SHARED]: If _dl_open_hook is non-NULL,
310         call dlopen_mode hook.
311         (__libc_dlsym) [SHARED]: If _dl_open_hook is non-NULL,
312         call dlsym hook.
313         (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL,
314         call dlclose hook.
315
316 2003-06-25  Ulrich Drepper  <drepper@redhat.com>
317
318         * sysdeps/unix/sysv/linux/cris/sysdep.h (INLINE_SYSCALL): Cast
319         result to long int so that extensions to long long int work.
320         Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
321
322 2003-06-19  Jakub Jelinek  <jakub@redhat.com>
323
324         * elf/ldconfig.c (main): Use add_system_dir instead of add_dir.
325         * sysdeps/generic/dl-cache.h (add_system_dir): Define.
326         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: Include sparc
327         dl-cache.h.
328         * sysdeps/unix/sysv/linux/s390/dl-cache.h: New file.
329         * sysdeps/unix/sysv/linux/mips/dl-cache.h: New file.
330         * sysdeps/unix/sysv/linux/powerpc/dl-cache.h: New file.
331         * sysdeps/unix/sysv/linux/sparc/dl-cache.h: New file.
332
333 2003-06-19  Jakub Jelinek  <jakub@redhat.com>
334
335         * test-skeleton.c (timeout_handler): If waitpid returned 0,
336         retry once after a second.  If killed == 0, assume
337         WTERMSIG (status) == SIGKILL.
338
339 2003-06-18  Roland McGrath  <roland@redhat.com>
340
341         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Catch uninitialized
342         elements in the table instead of printing an empty name string.
343
344 2003-06-05  Roland McGrath  <roland@redhat.com>
345
346         * elf/elf.h (PT_GNU_STACK): New macro.
347
348 2003-06-24  Ulrich Drepper  <drepper@redhat.com>
349
350         * include/time.h: Define CLOCK_IDFIELD_SIZE.
351         * sysdeps/posix/clock_getres.c: Recognize thread CPU clock IDs.
352         * sysdeps/unix/clock_gettime.c: Likewise.
353         * sysdeps/unix/clock_settime.c: Likewise.
354         * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Adjust for new
355         clock id for thread CPU clocks.
356
357         * sysdeps/unix/sysv/linux/fstatfs64.c (__fstatfs64): Add support
358         for the fstatfs64 syscall.
359         * sysdeps/unix/sysv/linux/statfs64.c (__statfs64): Add support for
360         the statfs64 syscall.
361
362         * sysdeps/unix/sysv/linux/kernel-features.h: Define
363         __ASSUME_STATFS64 appropriately.
364
365         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use f_frsize field
366         from statfs structure if it has been filled in.
367
368         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_frsize
369         field.
370         (struct statfs64): Likewise.
371         * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: Likewise.
372         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
373
374 2003-06-24  Richard Henderson  <rth@redhat.com>
375
376         * sysdeps/unix/sysv/linux/alpha/syscalls.list (pread, pwrite): Use
377         the 64-bit syscall name.
378
379         * sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue.
380
381         * sysdeps/alpha/fpu/bits/mathinline.h: Honor
382         __LIBC_INTERNAL_MATH_INLINES.  Implement __signbitf, __signbit.
383
384         * sysdeps/unix/sysv/linux/alpha/clone.S: Use HIDDEN_JUMPTARGET.
385         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use
386         libc_hidden_def.
387         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
388         * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use libc_hidden_proto
389         on them.
390
391         * sysdeps/alpha/bits/atomic.h: New file.
392
393 2003-06-24  Andreas Schwab  <schwab@suse.de>
394
395         * sysdeps/m68k/fpu/libm-test-ulps: Update.
396
397 2003-06-24  Andreas Jaeger  <aj@suse.de>
398
399         * sysdeps/unix/sysv/linux/x86_64/stat.h (_STAT_VER_LINUX): Avoid
400         redeclaration with 32-bit code.
401
402 2003-05-19  Ed Connell  <ed.connell@sas.com>
403
404         * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain
405         floating point mask.
406         * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise.
407
408 2003-06-23  Ulrich Drepper  <drepper@redhat.com>
409
410         * sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex,
411         __aio_enqueue_request, __aio_find_req, __aio_find_req_fd,
412         __aio_free_request, __aio_notify, and __aio_sigqueue as hidden.
413
414         * sysdeps/pthread/aio_suspend.c (aio_suspend): Set errno to the result
415         of pthread_cond_wait if there was an error.  Use pthread_cleanup_*
416         instead of __libc_cleanup_region_*.
417
418 2003-06-20  Richard Henderson  <rth@redhat.com>
419
420         * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases.
421         * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New.
422
423 2003-06-20  Richard Henderson  <rth@redhat.com>
424
425         * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
426         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
427         Unset for alpha.
428         (__ASSUME_TIMEVAL64): Set for alpha.
429         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
430         adjtimex, osf_sigprocmask, old_adjtimex.
431         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
432         __ASSUME_TIMEVAL64.  Reorg tv64 functions to avoid uninit variable.
433         * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
434         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
435         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
436         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
437         * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
438         * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
439         * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
440         * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
441         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
442         PIC code sequence.
443         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
444         * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
445         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
446         * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
447         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
448         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
449         sys_ustat, sys_mknod, adjtimex, old_adjtimex.
450         * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
451         defer to __syscall_name; error for rt_sigaction.
452         * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
453
454 2003-06-18  Ulrich Drepper  <drepper@redhat.com>
455
456         * malloc/malloc.c (public_mALLINFo): Initialize malloc if it
457         hasn't happened yet.
458
459         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
460         Fix completely broken implementation.  The second parameter is of
461         type struct ucontext*.
462
463         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always
464         inline.
465
466         * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash.
467         * sysdeps/generic/dl-hash.h: Likewise.
468
469         * sysdeps/generic/memcmp.c: Remove inline from
470         memcmp_common_alignment and memcmp_not_common_alignment definition.
471
472         * intl/localealias.c (read_alias_file): Determine whether line is
473         read incompletely early, before we modify the line.
474
475 2003-06-17  Jakub Jelinek  <jakub@redhat.com>
476
477         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela)
478         <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
479
480 2003-06-17  Paul Mackerras  <paulus@samba.org>
481
482         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file.
483         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: New file.
484         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: New file.
485         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: New file.
486         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: New file.
487         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Adjust.
488
489 2003-06-17  Jakub Jelinek  <jakub@redhat.com>
490
491         * posix/regcomp.c (build_word_op): Use alnum instead of alpha class.
492
493 2003-06-17  Ulrich Drepper  <drepper@redhat.com>
494
495         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
496         takes care of enabling cancellation.
497
498         * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
499         cancelable.  It's not correct to disable cancellation.  Instead of
500         a cleanup handler.
501
502         * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
503         and part of the incoming set, create a temporary set without this
504         signal.
505         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
506         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
507
508         * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
509         returning because seconds==0.  Add __builtin_expect.
510
511 2003-06-16  Ulrich Drepper  <drepper@redhat.com>
512
513         * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
514
515         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
516         variable.
517
518 2003-06-16  Thorsten Kukuk  <kukuk@suse.de>
519
520         * include/libc-symbols.h: Add static_link_warning macro.
521         * grp/initgroups.c: Print linker warning if this function
522         is called in a static linked binary.
523         * nss/getXXbyYY.c: Likewise.
524         * nss/getXXbyYY_r.c: Likewise.
525         * nss/getXXent.c: Likewise.
526         * nss/getXXent_r.c: Likewise.
527         * sysdeps/posix/getaddrinfo.c: Likewise.
528
529 2003-06-16  Bruno Haible  <bruno@clisp.org>
530
531         * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
532         LATIN-9.
533         (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
534         (IBM1047): Add alias IBM-1047.
535         (GBK): Add aliases MS936, WINDOWS-936.
536
537 2003-06-16  Jakub Jelinek  <jakub@redhat.com>
538
539         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
540         defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
541         (__xstat64_conv): Change xstat_conv to __xstat_conv.
542
543 2003-06-16  Ulrich Drepper  <drepper@redhat.com>
544
545         * locale/iso-639.def: Update from current official ISO 639.
546
547         * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
548
549 2003-06-15  Andreas Jaeger  <aj@suse.de>
550
551         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
552         of MXCSR.
553         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
554         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
555         Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
556
557         * math/tgmath.h (carg): Handle real arguments.
558         (conj): Likewise.
559         (cproj): Likewise.
560         (cimag): Likewise.
561         (creal): Likewise.
562
563         * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
564         (tests): Add test-tgmath-ret.
565         * math/test-tgmath-ret.c: New file.
566
567         * math/tgmath.h (ilogb): Return always an int.
568
569 2003-06-16  Ulrich Drepper  <drepper@redhat.com>
570
571         * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
572         computation so that prelinking works.
573
574 2003-06-15  Ulrich Drepper  <drepper@redhat.com>
575
576         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
577         linker's map.
578         * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
579         dynamic linker's map.
580
581         Fix cancellation point handling wrt exception based cleanup.
582         * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
583         * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
584         with exceptions.
585         * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
586         sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
587         * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
588         exceptions.
589         * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
590         sigwait.c, and sigwaitinfo.c with exceptions.
591         * stdlib/Makefile: Compile system.c with exceptions.
592         * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
593         * termios/Makefile: Compile tcdrain.c with exceptions.
594         * sysdeps/generic/lockf.c: Add comment explaining the cancellation
595         situation.
596         * sysdeps/generic/pselect.c: Likewise.
597         * sysdeps/posix/sigpause.c: Likewise.
598         * sysdeps/posix/system.c: Likewise.
599         * sysdeps/posix/waitid.c: Likewise.
600         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
601         * sysdeps/unix/sysv/linux/usleep.c: Likewise.
602         * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
603         INTERNAL_SYSCALL to not use push inside asm statement so that
604         unwind info is correct around the syscall.
605         * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
606         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
607
608 2003-06-15  Andreas Jaeger  <aj@suse.de>
609
610         * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
611         Add CFI directives.
612
613 2003-06-15  Guido Guenther  <agx@sigxcpu.org>
614
615         * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
616         create $(objpfx).
617
618 2003-06-14  Ulrich Drepper  <drepper@redhat.com>
619
620         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
621         not close.
622
623         * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
624         * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
625         definition.
626
627         * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
628         * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
629         * inet/Makefile (routines): Add inet6_option.
630         * inet/inet6_option.c: New file.
631         * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
632         inet6_option_init, inet6_option_append, inet6_option_alloc,
633         inet6_option_next, and inet6_option_find.
634
635 2003-06-13  Ulrich Drepper  <drepper@redhat.com>
636
637         * inet/netinet/ip6.h (struct ip6_ext): Define.
638
639         * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
640
641         Fixing gcc 3.3 warnings, part II.
642         * argp/argp-help.c (hol_entry_long_iterate): Always inline.
643         * elf/dl-load.c (cache_rpath): Don't inline.
644         * iconvdata/cns11642l2.h: Always inline all functions.
645         * iconvdata/iso-ir-165.h: Likewise.
646         * locale/Makefile (aux): Add coll-lookup.
647         * locale/coll-lookup.c: New file.
648         * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
649         (collseq_table_lookup): Likewise.
650         * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
651         * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
652         change.
653         * posix/regcomp.c: Likewise.
654         * posix/regexec.c: Likewise.
655         * locale/programs/3level.h (*_get): Always inline.
656         * locale/programs/locfile.h: Move definition of handle_copy to...
657         * locale/programs/locfile.c: ...here.
658         * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
659         (obstack_int32_grow_fast): Likewise.
660         (utf8_encode): Likewise.
661         (find_element): Avoid aliasing problems.
662         (insert_value): Likewise.
663         (collate_read): Likewise.
664         * nss/getent.c (print_hosts): Don't inline
665         (print_networks): Likewise.
666         (print_shadow): Likewise.
667         (build_doc): Likewise.
668         * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
669         inline.
670         * posix/regcomp.c (re_set_fastmap): Always inline.
671         (seek_collating_symbol_entry): Likewise.
672         (lookup_collation_sequence_value): Likewise.
673         (build_range_exp): Likewise.
674         (build_collating_symbol): Likewise.
675         * posix/regexec.c (acquire_init_state_context): Don't inline.
676         (clean_state_log_if_need): Likewise.
677         * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
678         adjust all callers.
679         (evConsTime): Likewise.
680         (evAddTime): Likewise.
681         (evSubTime): Likewise.
682         (evNowTime): Likewise.
683         (evTimeSpec): Removed.
684         (__libc_res_nsend): Avoid aliasing problem.
685         * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
686         * sysdeps/unix/sysv/linux/ifreq.c: ...here.
687         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
688         Always inline.
689         (_dl_string_platform): Likewise.
690         * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
691         (wcwidth_table_lookup): Likewise.
692         (wctrans_table_lookup): Likewise.
693
694         * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
695
696 2003-06-12  Ulrich Drepper  <drepper@redhat.com>
697
698         * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
699
700 2003-05-29  Jim Meyering  <jim@meyering.net>
701
702         * time/strftime.c (my_strftime) [!defined _NL_CURRENT
703         && HAVE_STRFTIME]: Use underlying_strftime for %r.
704         Suggested by Daniel Yacob <locales@geez.org>.
705
706 2003-06-12  Steven Munroe  <sjmunroe@us.ibm.com>
707
708         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
709         @got notation with @toc.
710         * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
711         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
712
713 2003-06-12  Ulrich Drepper  <drepper@redhat.com>
714
715         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
716         if only PF_INET address is needed.
717
718         * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
719         case of an error.
720
721         * scripts/config.guess: Update from upstream version.
722         * scripts/config.sub: Likewise.
723
724 2003-06-12  Jakub Jelinek  <jakub@redhat.com>
725
726         * locale/programs/ld-time.c (time_output): Also copy the era format,
727         not only the name.
728
729 2003-06-12  H.J. Lu  <hongjiu.lu@intel.com>
730
731         * posix/transbug.c (run_test): Return 1 for failure.
732         (do_test): Compare only if run_test is successful.
733
734 2003-06-12  Simon Josefsson  <jas@extundo.com>
735
736         * argp/argp.h [!__THROW]: Define if undefined.
737
738 2003-06-12  Ulrich Drepper  <drepper@redhat.com>
739
740         * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
741         more than four parameters.
742         Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
743
744 2003-06-12  Jakub Jelinek  <jakub@redhat.com>
745
746         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
747         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
748         * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
749
750         * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
751
752 2003-06-12  Roland McGrath  <roland@redhat.com>
753
754         * Makerules ($(objpfx)stubs): Rewrite sed magic.
755
756 2003-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
757
758         * posix/regcomp.c (parse_expression): Deliver translation to
759         build_word_op, and build_charclass.
760         (build_charclass): Apply translation for character classes too.
761         (build_word_op): Deliver translation to build_charclass.
762         * posix/transbug.c: New file.
763         * posix/Makefile (tests): Add transbug.
764
765 2003-06-04  Paolo Bonzini  <bonzini@gnu.org>
766
767         * posix/regexec.c (group_nodes_into_DFAstates): Check for
768         NEXT_ENDBUF_CONSTRAINT.  Move check for constraints which do a
769         'continue' before the others.
770
771 2003-06-11  Ulrich Drepper  <drepper@redhat.com>
772
773         * dirent/scandir.c (SCANDIR): Reset errno after calling selector
774         function [PR libc/5045].
775
776         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
777         also for P4.
778
779         * time/tzfile.c: Add a couple of __builtin_expect.
780
781         Remove warnings gcc 3.3 shows.
782         * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
783         * elf/dl-load.c (fillin_rpath): Likewise.
784         (add_path): Likewise.
785         * elf/dl-version.c (find_needed): Always inline.
786         * elf/do-lookup.c (FCT): Don't inline.
787         * iconv/Makefile: Extend vpath to intl subdir.
788         (iconvconfig-modules): Add hash-string.
789         * iconv/gconv_charset.h (strip): Don't inline.
790         (upstr): Always inline.
791         Move __gconv_compare_alias prototype to...
792         * iconv/gconv_int.h: ...here.
793         * iconv/gconv_db.c: Don't include gconv_charset.h.
794         * iconv/gconv_conf.c (add_alias): Don't inline.
795         (insert_module): Likewise.
796         * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
797         (internal_ucs4_loop_unaligned): Likewise.
798         (internal_ucs4_loop_single): Likewise.
799         (ucs4_internal_loop): Likewise.
800         (ucs4_internal_loop_unaligned): Likewise.
801         (ucs4_internal_loop_single): Likewise.
802         (internal_ucs4le_loop): Always inline.
803         (internal_ucs4le_loop_unaligned): Likewise.
804         (internal_ucs4le_loop_single): Likewise.
805         (ucs4le_internal_loop): Likewise.
806         (ucs4le_internal_loop_unaligned): Likewise.
807         (ucs4le_internal_loop_single): Likewise.
808         * iconv/loop.c: Always inline the defined functions.
809         * iconvdata/cns11642.h: Likewise.
810         * iconvdata/cns11642l1.h: Likewise.
811         * iconvdata/euc-kr.c: Likewise.
812         * iconvdata/gb2312.h: Likewise.
813         * iconvdata/jis0201.h: Likewise.
814         * iconvdata/jis0208.h: Likewise.
815         * iconvdata/jis0212.h: Likewise.
816         * iconvdata/jisx0213.h: Likewise.
817         * iconvdata/ksc5601.h: Likewise.
818         * iconvdata/utf-7.c (base64): Don't inline.
819         * include/libc-symbols.h (symbol_set_first_element): Add cast
820         (symbol_set_end_p): Likewise.
821         * include/set-hooks (RUN_HOOK): Likewise.
822         * inet/Makefile (aux): Add ifreq.
823         * intl/Makefile (aux): Add some entries from routines.  Add
824         hash-string.
825         * intl/hash-string.c: New file.
826         * intl/hash-string.h: Remove hash_string definition.  Declare
827         __hash_string.
828         * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
829         * iconv/iconvconfig.c (new_name): Likewise.
830         * intl/dcigettext.c (_nl_find_msg): Likewise.
831         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
832         * io/ftw.c (open_dir_stream): Always inline.
833         (process_entry): Don't inline.
834         * locale/findlocale.c: Include gconv_int.h.
835         * locale/setlocale.c (new_composite_name): Don't inline.
836         * locale/weight.h (findidx): Always inline.
837         * locale/weightwc.h (findidx): Likewise.
838         * locale/programs/linereader.c (lr_ignore_rest): Define here.
839         * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
840         just declare it.
841         (lr_getc): Always inline.
842         (lr_ungetc): Likewise.
843         * nss/nss_files/files-parse.c (parse_list): Likewise.
844         * stdio-common/Makefile (aux): Add printf-parsemb and
845         printf-parsewc.
846         * stdio-common/_itoa.h (_itoa_word): Always inline.
847         (_fitoa_word, _fitoa): Don't define here, only declare.
848         * stdio-common/_itoa.c (_iftoa_word): Add here.
849         (_fitoa): Likewise.
850         * stdio-common/_itowa.h (_itowa_word): Always inline.
851         * stdio-common/printf-parse.h (read_int): Don't inline.
852         (find_spec): Don't define.
853         Declare __find_specmb and __find_specwc.
854         (parse_one_spec): Don't define.
855         Declare __parse_one_specmb and __parse_one_specwc.
856         * stdio-common/printf-parsemb.c: New file.
857         * stdio-common/printf-parsewc.c: New file.
858         * stdio-common/vfprintf.c: Update calls to find_spec and
859         parse_one_spec for new names.
860         * stdio-common/printf-prs.c: Likewise.  Define DONT_NEED_READ_INT.
861         * stdlib/Makefile (aux): Add grouping and groupingwc.
862         * stdlib/grouping.c: New file.
863         * stdlib/groupingwc.c: New file.
864         * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
865         Just prototype.
866         * stdlib/rpmatch.c (try): Don't inline.
867         * stdlib/strtod.c (round_and_return): Don't line.
868         (str_to_mpn): Likewise.
869         (__mpn_lshift_1): Always inline.  Optimize only for constant count.
870         Adjust for name change of correctly_grouped_prefix.
871         * sysdeps/generic/strtol.c: Adjust for name change of
872         correctly_grouped_prefix.
873         * string/strxfrm.c (utf8_encode): Don't inline.
874         * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
875         * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
876         * sysdeps/generic/ifreq.c: New file.
877         * sysdeps/unix/sysv/linux/ifreq.c: New file.
878         * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
879         * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
880         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
881         * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
882         (fde_split): Likewise.
883         (fde_merge): Likewise.
884         (end_fde_sort): Likewise.
885         (init_object): Likewise.
886         (binary_search_unencoded_fdes): Likewise.
887         (binary_search_single_encoding_fdes): Likewise.
888         (binary_search_mixed_encoding_fdes): Likewise.
889         * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
890         * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
891         * sysdeps/posix/sprofil.c (profil_count): Don't inline.
892         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
893         Add xstatconv.
894         * sysdeps/unix/sysv/linux/xstatconv.h: New file.
895         * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
896         Export them.  Prepend __ to name.
897         * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
898         * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
899         conversion functions.
900         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
901         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
902         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
903         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
904         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
905         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
906         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
907         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
908         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
909         __statfs_filesize_max, __statfs_symlinks): Define here.  __ prepended
910         to name.  Change callers.
911         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
912         __statfs_filesize_max, __statfs_symlinks): Don't define here, just
913         declare.
914         * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
915         * time/tzfile.c (decode): Always inline.
916         * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
917         Remove cast in tomb function call.
918         * wcsmbs/wcsrtombs.c Likewise.
919         * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
920         tomb function call.
921
922 2003-06-10  Ulrich Drepper  <drepper@redhat.com>
923
924         * po/zh_CN.po: Update from translation team.
925
926 2003-06-10  Jakub Jelinek  <jakub@redhat.com>
927
928         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
929         IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
930
931 2003-06-10  Ulrich Drepper  <drepper@redhat.com>
932
933         * inet/Makefile (aux): Add check_pf.
934         * include/ifaddrs.h: Add prototype for __check_pf.
935         * sysdeps/generic/check_pf.c: New file.
936         * sysdeps/unix/sysv/linux/check_pf.c: New file.
937         * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
938         from no_netlink_support.  Export.
939         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
940         call __check_pf.
941
942         * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
943
944         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
945         from getifaddr calls.
946
947 2003-06-09  Jakub Jelinek  <jakub@redhat.com>
948
949         * sysdeps/unix/sysv/linux/kernel-features.h
950         (__ASSUME_SETRESGID_SYSCALL): Define.
951         * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
952         instead of __ASSUME_SETRESUID_SYSCALL.
953         (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
954         defined.
955         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
956         inline syscall if __NR_setresuid32 is defined.
957         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
958         __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
959         * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
960         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
961         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
962         code handling non-existant setresgid32 syscall with
963         #if __ASSUME_SETRESGID_SYSCALL == 0.
964
965 2003-06-09  Andreas Schwab  <schwab@suse.de>
966
967         * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
968         ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
969         $(objpfx)rpc-proto.d.
970         (rpcsvc-dt-files, rpcsvc-depfiles): Define.  Include
971         $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
972         ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
973
974 2003-06-08  Ulrich Drepper  <drepper@redhat.com>
975
976         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
977         syscall directly if possible.  If __ASSUME_SETRESUID_SYSCALL is
978         defined drop compatibility code.
979         * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
980         syscall directly if possible.  If __ASSUME_SETRESUID_SYSCALL is
981         defined drop compatibility code.
982         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
983         setresuid32 syscall directly if possible.
984         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
985         setresgid32 syscall directly if possible.
986         * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
987         compliant.  Don't change sgid.
988         * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
989         compliant.  Don't change suid.
990
991         * config.h.in: Add have-forced-unwind.
992         * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
993
994 2003-06-07  Ulrich Drepper  <drepper@redhat.com>
995
996         * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
997         returned status from child matches.
998
999         * Makeconfig (gnulib): Add -lgcc_eh once again.
1000
1001 2003-06-06  Ulrich Drepper  <drepper@redhat.com>
1002
1003         * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
1004
1005         * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
1006         %edx for first parameter.  This means no pushl and therefore the
1007         unwind info isn't screwed up.
1008
1009 2003-06-04  Richard Henderson  <rth@redhat.com>
1010
1011         * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
1012         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
1013         * sysdeps/alpha/elf/start.S: Likewise.  Remove pointless allocation.
1014         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
1015         entry sequence and explicit relocs.  Add unwind info for sigreturn
1016         and rt_sigreturn.
1017         * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
1018
1019         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
1020         Annotate some parameters.
1021         * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
1022
1023         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
1024
1025         * include/libc-symbols.h (symbol_set_declare): Use arrays
1026         of unspecified size.
1027
1028 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
1029
1030         * config.make.in (ASFLAGS-config): New.
1031         * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
1032         * configure.in (libc_cv_as_noexecstack): New check.
1033         (ASFLAGS_config): Substitute.
1034
1035 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
1036
1037         * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
1038         hypot, logb): Protect with #ifdef __FAST_MATH__.
1039
1040 2003-06-04  Thorsten Kukuk  <kukuk@suse.de>
1041
1042         * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
1043         #ifdef __FAST_MATH__.
1044
1045 2003-06-03  Ulrich Drepper  <drepper@redhat.com>
1046
1047         * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
1048         DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
1049         * posix/globtest.sh: Adjust for this change.
1050
1051         * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
1052         to get the actual PID value used in the records passed up.
1053         (getifaddrs): Don't initialize nh.pid here.
1054
1055 2003-06-02  Ulrich Drepper  <drepper@redhat.com>
1056
1057         * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
1058         optimization.
1059
1060         * po/zh_CN.po: Update from translation team.
1061
1062         * posix/getconf.c (main): Also recognize names without the
1063         _POSIX_ prefix.
1064
1065         * elf/Makefile (CFLAGS-dl-lookup.c): Define.
1066
1067 2003-06-02  Bernd Schmidt  <bernds@redhat.com>
1068
1069         * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
1070         ldexpf, ldexpl): Only define if __FAST_MATH__.
1071
1072 2003-06-02  Richard C. Bilson  <rcbilson@plg.uwaterloo.ca>
1073
1074         Replace hard-coded offsets into struct sigcontext with generated file.
1075         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
1076         * sysdeps/unix/sysv/linux/ia64/Makefile
1077         [$(subdir) = stdlib] (gen-as-const-headers): Add it.
1078         * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
1079         defining SC_* macros here.
1080
1081 2003-06-02  Jakub Jelinek  <jakub@redhat.com>
1082
1083         * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
1084
1085 2003-06-01  Jakub Jelinek  <jakub@redhat.com>
1086
1087         * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
1088
1089 2003-06-01  Ulrich Drepper  <drepper@redhat.com>
1090
1091         * test-skeleton.c (main): Request getopt to not reorder the
1092         command line.
1093
1094         * elf/Makefile (CFLAGS-dl-runtime.c): Define.
1095
1096         * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
1097         stpncpy.
1098
1099 2003-05-31  Ulrich Drepper  <drepper@redhat.com>
1100
1101         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
1102
1103 2003-05-31  Jakub Jelinek  <jakub@redhat.com>
1104
1105         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
1106         New function.
1107         (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
1108         RESOLVE_CONFLICT_FIND_MAP.  If RESOLVE_CONFLICT_FIND_MAP is defined,
1109         call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
1110
1111 2003-05-31  Ulrich Drepper  <drepper@redhat.com>
1112
1113         * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
1114         CFI directives.
1115
1116         * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
1117
1118         * libio/fileops.c (_IO_file_open): Don't mark as inline.
1119
1120         * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
1121         attribute used.
1122
1123 2003-05-30  Ulrich Drepper  <drepper@redhat.com>
1124
1125         * scripts/config.guess: Update from master copy.
1126         * scripts/config.sub: Likewise.
1127
1128 2003-05-30  Guido Guenther  <agx@sigxcpu.org>
1129
1130         * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
1131         SETUP_GP64 and friends.
1132         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
1133         names in internal_syscall{6,7}.
1134         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
1135         * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
1136         number of syscall arguments.
1137         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1138         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
1139         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
1140
1141 2003-05-30  Andreas Jaeger  <aj@suse.de>
1142
1143         * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1144         Add CFI directives.
1145
1146         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
1147         directives.
1148
1149         * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
1150
1151         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
1152         Add CFI directives.
1153
1154 2003-05-30  Jakub Jelinek  <jakub@redhat.com>
1155
1156         * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
1157         SHARED.
1158
1159 2003-05-11  Andreas Schwab  <schwab@suse.de>
1160
1161         * Makerules: Always use -MP together with -MD.
1162         (sed-remove-dotot): Substitute $(..) also at start of line.
1163         ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
1164         Generated defines with a single compiler call.
1165         Use $(sed-remove-dotdot).
1166         * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
1167         of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
1168         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
1169         Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
1170         * sysdeps/unix/sysv/linux/mips/Makefile
1171         ($(objpfx)syscall-%.h): Likewise.
1172
1173 2003-05-28  Roland McGrath  <roland@redhat.com>
1174
1175         * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
1176
1177 2003-05-26  Aldy Hernandez  <aldyh@redhat.com>
1178
1179         * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
1180
1181 2003-05-28  Roland McGrath  <roland@redhat.com>
1182
1183         * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
1184         rt_sigprocmask system call.
1185         * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
1186         From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
1187
1188 2003-05-28  Ulrich Drepper  <drepper@redhat.com>
1189
1190         * include/libc-symbols.h: Define hidden attribute for real also if
1191         LIBC_NONSHARED is defined.  Patch by Jakub Jelinek.
1192
1193         * csu/Makefile: Add rules to build Scrt1.o.
1194         * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
1195         * sysdeps/x86_64/elf/start.S: Likewise.
1196
1197 2003-05-27  Jakub Jelinek  <jakub@redhat.com>
1198
1199         * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
1200         pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
1201         * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
1202         pa_short_int, pa_u_short_int and pa_float.
1203
1204 2003-05-26  Jakub Jelinek  <jakub@redhat.com>
1205
1206         * libio/strops.c (_IO_str_init_static): Change into a wrapper around
1207         _IO_str_init_static_internal.
1208         (_IO_str_init_static_internal): Moved from _IO_str_init_static,
1209         change size argument to _IO_size_t, don't limit sprintf to 64M.
1210         (_IO_str_init_readonly): Call _IO_str_init_static_internal.
1211         * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
1212         _IO_size_t, don't limit swprintf to 256M.
1213         (_IO_wstr_init_readonly): Remove.
1214         * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
1215         Adjust prototypes.
1216         (_IO_wstr_init_readonly): Remove prototype.
1217         * libio/iovsprintf.c (_IO_vsprintf): Use
1218         _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
1219         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
1220         * libio/memstream.c (open_memstream): Likewise.
1221         * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
1222         * libio/vasprintf.c (_IO_vasprintf): Likewise.
1223         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
1224         * stdio-common/tst-sprintf.c (main): Add new test.
1225
1226 2003-05-26  Ulrich Drepper  <drepper@redhat.com>
1227
1228         * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
1229         other implementation in respect of multiple uses of parameter with
1230         different types.
1231
1232 2003-05-25  Ulrich Drepper  <drepper@redhat.com>
1233
1234         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1235         __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
1236
1237 2003-05-22  Andreas Jaeger  <aj@suse.de>
1238
1239         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
1240         directives.
1241         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
1242         * sysdeps/x86_64/strtok.S: Likewise.
1243
1244 2003-05-20  Guido Guenther  <agx@sigxcpu.org>
1245
1246         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
1247         to -60 and define SI_TKILL.
1248
1249 2003-05-21  H.J. Lu  <hongjiu.lu@intel.com>
1250
1251         * math/test-fenv.c (feexcp_nomask_test): Fix comment.
1252         (feexcp_mask_test): Likewise.
1253
1254 2003-05-21  Ulrich Drepper  <drepper@redhat.com>
1255
1256         * locale/programs/locale.c (main): Fix typo in last patch.
1257
1258         * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
1259         __init_array_start, __init_array_end, __fini_array_start, and
1260         __fini_array_end as hidden.
1261
1262 2003-05-21  Petter Reinholdtsen  <pere@hungry.com>
1263
1264         * locale/programs/locale.c (main): Report an error if setlocale()
1265         fails [PR libc/2254].
1266
1267 2003-05-21  Jakub Jelinek  <jakub@redhat.com>
1268
1269         * sysdeps/unix/sysv/linux/s390/system.c: New file.
1270
1271 2003-05-21  Jakub Jelinek  <jakub@redhat.com>
1272
1273         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
1274         LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
1275         LOADARGS_6): Don't error if syscall argument is a string literal.
1276         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
1277         LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
1278         LOADARGS_6): Likewise.
1279
1280 2003-05-21  Andreas Jaeger  <aj@suse.de>
1281
1282         * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
1283         cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
1284         cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
1285
1286         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
1287         (ENTRY): Likewise.
1288         (END): Likewise.
1289
1290         * configure.in: Test for asm cfi directives.
1291
1292         * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
1293
1294 2003-05-17  Andreas Jaeger  <aj@suse.de>
1295
1296         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
1297
1298         * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
1299
1300 2003-05-16  Ulrich Drepper  <drepper@redhat.com>
1301
1302         * rt/Makefile (tests): Add tst-clock_nanosleep.
1303         * rt/tst-clock_nanosleep.c: New file.
1304         * posix/Makefile (tests): Add tst-nanosleep.
1305         * posix/tst-nanosleep.c: New file.
1306
1307         * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
1308
1309         * include/features.h (__USE_XOPEN2K): Define also for
1310         _POSIX_C_SOURCE>=200112L.
1311
1312         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
1313         SI_TKILL code into SI_USER.
1314         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
1315
1316         * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
1317
1318 2003-05-15  Jakub Jelinek  <jakub@redhat.com>
1319
1320         * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
1321         Remove sym argument, always use refsym.
1322         (__process_machine_rela): Adjust callers.
1323         * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
1324         Likewise.
1325         * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
1326         Adjust prototype.
1327         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
1328
1329 2003-05-15  Ulrich Drepper  <drepper@redhat.com>
1330
1331         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
1332         (DL_NEED_SYSINFO -> NEED_DL_SYSINFO).  If aux value is not known
1333         print numeric values.
1334
1335 2003-05-12  Thorsten Kukuk  <kukuk@suse.de>
1336
1337         * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
1338
1339 2003-05-14  Andreas Schwab  <schwab@suse.de>
1340
1341         * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
1342
1343 2003-05-14  Jakub Jelinek  <jakub@redhat.com>
1344
1345         * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
1346         even if no DT_NEEDED is present.
1347
1348 2003-05-13  David Mosberger  <davidm@hpl.hp.com>
1349
1350         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
1351         2003-03-27: setjmp is NOT a leaf-routine (due to the call to
1352         __sigjmp_save) so we can't keep the saved unat value in a scratch
1353         register (r16).  Use loc2 instead.
1354
1355 2003-05-13  Ulrich Drepper  <drepper@redhat.com>
1356
1357         * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
1358         binaries it has to be relocatable.
1359
1360         * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
1361
1362 2003-05-12  Steven Munroe  <sjmunroe@us.ibm.com>
1363
1364         * sysdeps/powerpc/bits/atomic.h
1365         (__arch_compare_and_exchange_bool_8_rel): Define.
1366         (__arch_compare_and_exchange_bool_16_rel): Define.
1367         (__ARCH_REL_INSTR): Define if not already defined.
1368         (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
1369         (__arch_atomic_decrement_if_positive_32):
1370         Add "memory" to clobber list.
1371         (__arch_compare_and_exchange_val_32_acq): Remove release sync.
1372         (__arch_compare_and_exchange_val_32_rel): Define.
1373         (__arch_atomic_exchange_32): Remove.
1374         (__arch_atomic_exchange_32_acq): Define.
1375         (__arch_atomic_exchange_32_rel): Define.
1376         (atomic_compare_and_exchange_val_rel): Define.
1377         (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
1378         (atomic_exchange_rel): Define.
1379         * sysdeps/powerpc/powerpc32/bits/atomic.h
1380         (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
1381         (__arch_compare_and_exchange_bool_32_rel): Define.
1382         (__arch_compare_and_exchange_bool_64_rel): Define.
1383         (__arch_compare_and_exchange_val_64_rel): Define.
1384         (__arch_atomic_exchange_64): Remove.
1385         (__arch_atomic_exchange_64_acq): Define.
1386         (__arch_atomic_exchange_64_rel): Define.
1387         * sysdeps/powerpc/powerpc64/bits/atomic.h
1388         (__arch_compare_and_exchange_bool_32_rel): Define.
1389         (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
1390         (__arch_compare_and_exchange_bool_64_rel): Define.
1391         (__arch_compare_and_exchange_val_64_acq): Remove release sync.
1392         (__arch_compare_and_exchange_val_64_rel): Define.
1393         (__arch_atomic_exchange_64): Remove.
1394         (__arch_atomic_exchange_64_acq): Define.
1395         (__arch_atomic_exchange_64_rel): Define.
1396         (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
1397         (__arch_atomic_decrement_if_positive_64):
1398         Add "memory" to clobber list.
1399         [!UP](__ARCH_REL_INSTR): Define as lwsync.
1400
1401 2003-05-11  Andreas Schwab  <schwab@suse.de>
1402
1403         * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
1404
1405 2003-05-11  Ulrich Drepper  <drepper@redhat.com>
1406
1407         * time/tst-strftime.c (do_test): Add tests for - flag.
1408
1409 2003-05-11  Jim Meyering  <jim@meyering.net>
1410
1411         * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
1412         the space-padded-by-default conversion specifiers, %e, %k, %l.
1413
1414 2003-05-11  Andreas Schwab  <schwab@suse.de>
1415
1416         * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
1417
1418 2003-05-10  Ulrich Drepper  <drepper@redhat.com>
1419
1420         * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
1421         already defined and when really needed.
1422         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
1423
1424 2003-05-09  Thorsten Kukuk  <kukuk@suse.de>
1425
1426         * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
1427         headers, add defines from kernel header, move it from here...
1428         * inet/netinet/igmp.h: ... to here.
1429         * inet/Makefile (headers): Add netinet/igmp.h.
1430         * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
1431         * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
1432
1433 2003-05-10  Ulrich Drepper  <drepper@redhat.com>
1434
1435         * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
1436         use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
1437
1438 2003-05-09  Thorsten Kukuk <kukuk@suse.de>
1439
1440         * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
1441         (remove __THROW from possible cancellation points).
1442
1443 2003-05-10  Ulrich Drepper  <drepper@redhat.com>
1444
1445         * posix/sched.h (CPU_SETSIZE): Define.
1446
1447 2003-05-09  Ulrich Drepper  <drepper@redhat.com>
1448
1449         * Makeconfig (gnulib): Remove -lgcc_eh again.
1450
1451         * posix/sched.h: Change prototypes of sched_getaffinity and
1452         sched_setaffinity.  Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
1453         * sysdeps/generic/sched_getaffinity.c: Adjust definition.
1454         * sysdeps/generic/sched_setaffinity.c: Likewise.
1455         * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
1456         __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
1457         __CPU_CLR, and __CPU_ISSET.
1458         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
1459         * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
1460         * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
1461
1462         * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
1463         (atomic_exchange_rel): New #define.
1464         * sysdeps/ia64/bits/atomic.h: Likewise.
1465         * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
1466         atomic_exchange.
1467         * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
1468         * sysdeps/powerpc/bits/atomic.h: Likewise.
1469         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
1470         * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
1471         * sysdeps/x86_64/bits/atomic.h: Likewise.
1472         * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
1473
1474         * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
1475
1476 2003-05-08  Ulrich Drepper  <drepper@redhat.com>
1477
1478         * malloc/thread-m.h: Remove special handling of thread_atfork if
1479         HAVE_register_atfork_malloc is defined.
1480
1481 2003-05-07  Andreas Jaeger  <aj@suse.de>
1482
1483         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
1484         information.
1485
1486 2003-05-06  Ulrich Drepper  <drepper@redhat.com>
1487
1488         * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
1489         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
1490         * libio/libioP.h: Declare _IO_old_init.
1491         * libio/genops.c (_IO_no_init): Split in two.  New function
1492         _IO_old_init.
1493
1494 2003-05-05  Ulrich Drepper  <drepper@redhat.com>
1495
1496         * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
1497         variable.
1498         (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
1499         is nonzero.
1500         * include/unistd.h: Declare __libc_enable_secure_decided.
1501         * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
1502         and AT_EGID.  If all found, set __libc_enable_secure and
1503         __libc_enable_secure_decided.
1504
1505         * sysdeps/generic/libc-start.c [!SHARED]: Call
1506         __libc_check_standard_fds after __libc_init_first.
1507
1508 2003-05-05  Roland McGrath  <roland@redhat.com>
1509
1510         * Makerules (common-before-compile): New variable.
1511         ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
1512         ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.  Move this rule
1513         to after all setting of before-compile.
1514
1515 2003-05-05  Jakub Jelinek  <jakub@redhat.com>
1516
1517         * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
1518         __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
1519         * sysdeps/powerpc/powerpc32/bits/atomic.h
1520         (__arch_compare_and_exchange_val_64_acq): Likewise.
1521         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
1522         (__arch_compare_and_exchange_val_8_acq,
1523         __arch_compare_and_exchange_val_16_acq,
1524         __arch_compare_and_exchange_val_64_acq): Likewise.
1525         * sysdeps/sparc/sparc64/bits/atomic.h
1526         (__arch_compare_and_exchange_val_8_acq,
1527         __arch_compare_and_exchange_val_16_acq): Likewise.
1528         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
1529         __arch_compare_and_exchange_val_16_acq,
1530         __arch_compare_and_exchange_val_64_acq): Likewise.
1531         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
1532         (__arch_compare_and_exchange_val_64_acq): Likewise.
1533         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
1534         up warning.
1535         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
1536
1537         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1538         (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
1539         Return long instead of int.
1540         (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
1541         0xfffff001u with -4095UL.
1542
1543 2003-05-05  Andreas Jaeger  <aj@suse.de>
1544
1545         * sysdeps/x86_64/fpu_control.h: New from i386.
1546
1547         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
1548         Define if not defined.
1549
1550         * sunrpc/Makefile (generated-dirs): New variable.
1551         * resolv/Makefile (generated): New variable.
1552
1553 2003-05-04  Roland McGrath  <roland@redhat.com>
1554
1555         * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
1556         Depend on $(before-compile).
1557
1558         * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
1559         pattern rule.  The implicit rule could be ruled out when $(objpfx)
1560         didn't exist at the time of its consideration (ugh!).
1561
1562         * Makerules (+make-deps): Fix target matching.
1563         Use $(sed-remove-dotdot).
1564
1565 2003-05-03  Ulrich Drepper  <drepper@redhat.com>
1566
1567         * nscd/nscd.c (main): Parse config file right after parsing
1568         parameters.  Then, if get_stats is true, call receive_print_stats.
1569         Drop parameter from nscd_init call.
1570         (get_stats): New variable.
1571         (parse_opt): Set get_stats, don't call receive_print_stats here.
1572         * nscd/nscd.h: Declare dbs, stat_user, and stat_uid.  Adjust nscd_init
1573         prototype.
1574         * nscd/connections.c (stat_user, stat_uid): New variables.
1575         (dbs): Make global.
1576         (nscd_init): Don't read configuration file here.  Drop parameter.
1577         (handle_request): Cleanup handling of non-database lookup requests.
1578         * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
1579         Get UID of the specified user.  Use xstrdup instead of strdup.
1580         * nscd/nscd_stat.c (receive_print_stats): Check UID.  If not zero,
1581         check stat_user.
1582         * nscd/Makefile (nscd-modules): Add xstrdup.
1583         * nscd/nscd.conf: Document stat-user entry.
1584
1585 2003-05-03  H.J. Lu  <hongjiu.lu@intel.com>
1586
1587         * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
1588         if not defined.
1589
1590 2003-04-22  Roland McGrath  <roland@redhat.com>
1591
1592         * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
1593         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
1594         dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
1595         * elf/dl-support.c: Update defn.
1596         * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
1597         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
1598         Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
1599         (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
1600         * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
1601         set, set up a link_map for the preloaded, prelinked object.
1602
1603 2003-05-03  Roland McGrath  <roland@redhat.com>
1604
1605         * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
1606         * stdio-common/Makefile: ... not here.
1607
1608         * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
1609         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
1610
1611 2003-05-02  Ulrich Drepper  <drepper@redhat.com>
1612
1613         * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
1614
1615         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
1616
1617         * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
1618         comparing ftab elements.
1619         (_dl_unmap): Fix typo in test.
1620         (_dl_make_fptr): Fix typos introduced in last change.
1621
1622         * sysdeps/generic/dl-fptr.c: Put back one optimization from the
1623         original patch.  Use non-exported symbols.  Mark translatable
1624         strings.  Pretty printing.
1625
1626 2003-05-02  Roland McGrath  <roland@redhat.com>
1627
1628         * Makerules (do-stamp): Do $(make-target-directory).
1629
1630 2003-04-07  H.J. Lu  <hjl@gnu.org>
1631
1632         * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
1633
1634 2003-04-03  H.J. Lu  <hjl@gnu.org>
1635
1636         * sysdeps/ia64/dl-fptr.c: Moved to ...
1637         * sysdeps/generic/dl-fptr.c: Here.
1638
1639         * sysdeps/generic/dl-fptr.h: New.
1640         * sysdeps/ia64/dl-fptr.h: New.
1641
1642         * sysdeps/ia64/dl-symaddr.c: Moved to ...
1643         * sysdeps/generic/dl-symaddr.c: here.
1644
1645         * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
1646         (IA64_BOOT_FPTR_TABLE_LEN): Removed.
1647         (ia64_fdesc): Likewise.
1648         (ia64_fdesc_table): Likewise.
1649         (__ia64_make_fptr): Likewise.
1650         (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
1651         with _dl_boot_fptr_table.
1652         (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
1653         `struct fdesc'.
1654         (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
1655
1656 2003-05-01  Roland McGrath  <roland@redhat.com>
1657
1658         * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
1659         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
1660
1661         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
1662         Use $(make-target-directory).
1663         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
1664
1665         * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
1666         (compile-command.S): Don't use ifndef.  Append $(compile-mkdep-flags).
1667         (compile-command.s, compile-command.c): Likewise.
1668         ($(objpfx)%.d): All such pattern rules removed.
1669         ($(+sysdir_pfx)sysd-rules): Don't generate them.
1670         ($(common-objpfx)dummy.d): Target removed.
1671         (make-dummy-dep): Variable removed.
1672         (generate-md5): Likewise.
1673         (%.d: %.dt): New pattern rule.
1674         (+depfiles): Use $(wildcard) function to get just existing *.d files
1675         and .d files for existing *.dt files.
1676         (common-clean): Remove all *.d and *.dt files.
1677         (before-compile): Add $(objpfx). when it doesn't exist,
1678         regardless of $(no_deps).
1679         * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
1680         (rtld-depfiles): Use .os.d instead of .d names.
1681         Include existing *.d files and .d files for existing *.dt files.
1682
1683         * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
1684         Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
1685
1686         * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
1687         Do s-*.d includes only if we have some syscall routines in this subdir.
1688
1689         * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
1690         @nobits.  The former is accepted by gas on any ELF platform.
1691
1692 2003-05-01  Ulrich Drepper  <drepper@redhat.com>
1693
1694         * sysdeps/unix/sysv/linux/semtimedop.c: New file.
1695
1696         * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
1697
1698 2003-04-29  Andreas Schwab  <schwab@suse.de>
1699
1700         * string/test-strcat.c (do_one_test): Fix attribute name.
1701
1702 2003-04-30  Alexandre Oliva  <aoliva@redhat.com>
1703
1704         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
1705         uc_flags long for all ABIs.
1706
1707 2003-04-30  Andreas Jaeger  <aj@suse.de>
1708
1709         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
1710         (DR_CONTROL_RESERVED): Use correct value for 64-bit.
1711         Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
1712         Add bi-arch support.
1713
1714 2003-04-30  Ulrich Drepper  <drepper@redhat.com>
1715
1716         * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
1717         (__posix_memalign): Use __memalign_internal instead of memalign.
1718
1719 2003-04-29  Roland McGrath  <roland@redhat.com>
1720
1721         * configure.in: Search for AUTOCONF unconditionally.
1722         Just don't complain about missing it under --without-cvs.
1723
1724         * include/libc-symbols.h (__symbol_set_attribute): New macro,
1725         give hidden for [SHARED] and weak for [! SHARED].
1726         (symbol_set_declare): Use that.  Never need weak_extern these days.
1727         * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
1728         Depend on $(..)Makerules.
1729
1730 2003-04-29  Ulrich Drepper  <drepper@redhat.com>
1731
1732         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
1733         variants of socket, bind, recvmsg, and sendto.
1734
1735         * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
1736
1737         * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
1738         * signal/sigaddset.c: Add libc_hidden_def.
1739         * signal/sigdelset.c: Likewise.
1740
1741 2003-04-29  Jakub Jelinek  <jakub@redhat.com>
1742
1743         * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
1744         to the end of the file.
1745
1746         * configure.in: Change __oline__ to $LINENO.
1747         (HAVE_BUILTIN_REDIRECTION): New check.
1748         * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
1749         * include/libc-symbols.h (libc_hidden_builtin_proto,
1750         libc_hidden_builtin_def, libc_hidden_builtin_weak,
1751         libc_hidden_builtin_ver): Define.
1752         * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
1753         strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
1754         strspn, strstr): Add libc_hidden_builtin_proto.
1755         * intl/plural.y: Include string.h.
1756         * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
1757         libc_hidden_builtin_def.
1758         * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
1759         * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
1760         * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
1761         * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
1762         * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
1763         * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
1764         * sysdeps/alpha/memchr.S (memchr): Likewise.
1765         * sysdeps/alpha/memset.S (memset): Likewise.
1766         * sysdeps/alpha/strcat.S (strcat): Likewise.
1767         * sysdeps/alpha/strchr.S (strchr): Likewise.
1768         * sysdeps/alpha/strcmp.S (strcmp): Likewise.
1769         * sysdeps/alpha/strcpy.S (strcpy): Likewise.
1770         * sysdeps/alpha/strlen.S (strlen): Likewise.
1771         * sysdeps/alpha/strncmp.S (strncmp): Likewise.
1772         * sysdeps/alpha/strncpy.S (strncpy): Likewise.
1773         * sysdeps/alpha/strrchr.S (strrchr): Likewise.
1774         * sysdeps/arm/memset.S (memset): Likewise.
1775         * sysdeps/arm/strlen.S (strlen): Likewise.
1776         * sysdeps/generic/memchr.c (memchr): Likewise.
1777         * sysdeps/generic/memcpy.c (memcpy): Likewise.
1778         * sysdeps/generic/memmove.c (memmove): Likewise.
1779         * sysdeps/generic/memset.c (memset): Likewise.
1780         * sysdeps/generic/strcat.c (strcat): Likewise.
1781         * sysdeps/generic/strchr.c (strchr): Likewise.
1782         * sysdeps/generic/strcmp.c (strcmp): Likewise.
1783         * sysdeps/generic/strcpy.c (strcpy): Likewise.
1784         * sysdeps/generic/strcspn.c (strcspn): Likewise.
1785         * sysdeps/generic/strlen.c (strlen): Likewise.
1786         * sysdeps/generic/strncmp.c (strncmp): Likewise.
1787         * sysdeps/generic/strncpy.c (strncpy): Likewise.
1788         * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
1789         * sysdeps/generic/strrchr.c (strrchr): Likewise.
1790         * sysdeps/generic/strspn.c (strspn): Likewise.
1791         * sysdeps/generic/strstr.c (strstr): Likewise.
1792         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
1793         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
1794         * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
1795         * sysdeps/i386/i586/memset.S (memset): Likewise.
1796         * sysdeps/i386/i586/strchr.S (strchr): Likewise.
1797         * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
1798         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
1799         * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
1800         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
1801         * sysdeps/i386/i686/memset.S (memset): Likewise.
1802         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
1803         * sysdeps/i386/memchr.S (memchr): Likewise.
1804         * sysdeps/i386/memset.c (memset): Likewise.
1805         * sysdeps/i386/strchr.S (strchr): Likewise.
1806         * sysdeps/i386/strcspn.S (strcspn): Likewise.
1807         * sysdeps/i386/strlen.c (strlen): Likewise.
1808         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
1809         * sysdeps/i386/strrchr.S (strrchr): Likewise.
1810         * sysdeps/i386/strspn.S (strspn): Likewise.
1811         * sysdeps/ia64/memchr.S (memchr): Likewise.
1812         * sysdeps/ia64/memcpy.S (memcpy): Likewise.
1813         * sysdeps/ia64/memmove.S (memmove): Likewise.
1814         * sysdeps/ia64/memset.S (memset): Likewise.
1815         * sysdeps/ia64/strcat.S (strcat): Likewise.
1816         * sysdeps/ia64/strchr.S (strchr): Likewise.
1817         * sysdeps/ia64/strcmp.S (strcmp): Likewise.
1818         * sysdeps/ia64/strcpy.S (strcpy): Likewise.
1819         * sysdeps/ia64/strlen.S (strlen): Likewise.
1820         * sysdeps/ia64/strncmp.S (strncmp): Likewise.
1821         * sysdeps/ia64/strncpy.S (strncpy): Likewise.
1822         * sysdeps/m68k/memchr.S (memchr): Likewise.
1823         * sysdeps/m68k/strchr.S (strchr): Likewise.
1824         * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
1825         * sysdeps/mips/mips64/memset.S (memset): Likewise.
1826         * sysdeps/mips/memcpy.S (memcpy): Likewise.
1827         * sysdeps/mips/memset.S (memset): Likewise.
1828         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
1829         * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
1830         * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
1831         * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
1832         * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
1833         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
1834         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
1835         * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
1836         * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
1837         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
1838         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
1839         * sysdeps/powerpc/strcat.c (strcat): Likewise.
1840         * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
1841         * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
1842         * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
1843         * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
1844         * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
1845         * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
1846         * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
1847         * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
1848         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
1849         * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
1850         * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
1851         * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
1852         * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
1853         * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
1854         * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
1855         * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
1856         * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
1857         * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
1858         * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
1859         * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
1860         * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
1861         * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
1862         * sysdeps/sh/memcpy.S (memcpy): Likewise.
1863         * sysdeps/sh/memset.S (memset): Likewise.
1864         * sysdeps/sh/strlen.S (strlen): Likewise.
1865         * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
1866         * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
1867         * sysdeps/s390/s390-32/memset.S (memset): Likewise.
1868         * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
1869         * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
1870         * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
1871         * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
1872         * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
1873         * sysdeps/s390/s390-64/memset.S (memset): Likewise.
1874         * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
1875         * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
1876         * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
1877         * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
1878         * sysdeps/x86_64/memset.S (memset): Likewise.
1879         * sysdeps/x86_64/strcat.S (strcat): Likewise.
1880         * sysdeps/x86_64/strchr.S (strchr): Likewise.
1881         * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
1882         * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
1883         * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
1884         * sysdeps/x86_64/strlen.S (strlen): Likewise.
1885         * sysdeps/x86_64/strspn.S (strspn): Likewise.
1886         * string/string-inlines.c: Move...
1887         * sysdeps/generic/string-inlines.c: ...here.
1888         (__memcpy_g, __strchr_g): Remove.
1889         (__NO_INLINE__): Define before including <string.h>,
1890         undefine after.  Include bits/string.h and bits/string2.h.
1891         * sysdeps/i386/i486/string-inlines.c: New file.
1892         * sysdeps/i386/string-inlines.c: New file.
1893         * sysdeps/i386/i486/Versions: Remove.
1894         All GLIBC_2.1.1 symbols moved...
1895         * sysdeps/i386/Versions (libc): ...here.
1896
1897 2003-04-29  Ulrich Drepper  <drepper@redhat.com>
1898
1899         * sysdeps/i386/fpu/Makefile: New file.
1900         * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
1901         * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
1902         * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
1903         * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
1904         [PR libc/4987].
1905
1906 2003-04-28  Ulrich Drepper  <drepper@redhat.com>
1907
1908         * nscd/nscd_getgr_r.c: Compact code a bit.  Add some __builtin_expect.
1909         * nscd/nscd_getpw_r.c: Likewise.
1910         * nscd/nscd_gethst_r.c: Likewise.
1911
1912 2003-04-27  Ulrich Drepper  <drepper@redhat.com>
1913
1914         * nscd/pwdcache.c: Initialize .version element in result.
1915         * nscd/grpcache.c: Likewise.
1916         * nscd/pwdcache.c: Likewise.
1917
1918 2003-04-27  Andreas Schwab  <schwab@suse.de>
1919
1920         * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
1921         subdirectory.
1922
1923 2003-04-27  Andreas Schwab  <schwab@suse.de>
1924
1925         * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
1926
1927 2003-04-27  Ulrich Drepper  <drepper@redhat.com>
1928
1929         * nscd/connections.c (client_queued): New variable.
1930         (nscd_run): Revamp the loop.  Don't call poll except for cleanup
1931         threads.  Keep track of the number of delays caused because of busy
1932         worker threads.
1933         * nscd/nscd.h: Declare client_queued.
1934         * nscd/nscd_stat.c: Transmit and print client_queued information.
1935
1936         * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
1937
1938         * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
1939         define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
1940
1941 2003-04-26  Ulrich Drepper  <drepper@redhat.com>
1942
1943         * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
1944         tracking of freed memory in static TLS block.
1945         * elf/Makefile: Add rules to build and run tst-tls13.
1946         * elf/tst-tls13.c: New file.
1947         * elf/tst-tlsmod13.c: New file.
1948         * elf/tst-tlsmod13a.c: New file.
1949
1950         * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
1951
1952         * elf/dl-reloc.c: Pretty printing.
1953
1954 2003-04-26  Roland McGrath  <roland@redhat.com>
1955
1956         * Makerules ($(common-objpfx)shlib.lds): New target.
1957         (common-generated): Add it.
1958         (build-shlib, build-module): Use that instead of generating every time.
1959         ($(common-objpfx)libc.so): Depend on it.
1960         (lib%.so rule): Likewise.
1961         (build-module-helper-objlist): Remove %.lds.
1962         (LDSEDCMD-c.so): Variable removed.
1963         * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
1964         Depend on $(common-objpfx)shlib.lds.
1965         * dlfcn/Makefile ($(test-modules)): Likewise.
1966
1967 2003-04-26  Roland McGrath  <roland@frob.com>
1968
1969         * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
1970
1971 2003-04-26  Andreas Schwab  <schwab@suse.de>
1972
1973         * elf/dl-close.c (remove_slotinfo): Fix missing parens.
1974
1975 2003-04-25  Ulrich Drepper  <drepper@redhat.com>
1976
1977         * nscd/cache.c (cache_search): Keep track of how many chain links
1978         we searched and update table statistics.
1979         (cache_add): Keep track of how many values are in the table.
1980         (prune_cache): Likewise.  Keep track of locking success.
1981         Print messages about removed entries in separate pass.
1982         * nscd/connections.c (handle_request): Don't print debug message here.
1983         The caller will do it.  Keep track of locking success.
1984         (nscd_run): Print debug message.  Also print PID of the client process.
1985         * nscd/nscd.c (start_time): New variable.
1986         (main): Remember start time.
1987         * nscd/nscd.h: Declare start_time.
1988         (struct database): Add more members for new statistics.
1989         * nscd/nscd_stat.c: Add support for sending, receiving, and printing
1990         of new statistics.
1991
1992         * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
1993
1994 2003-04-22  Jakub Jelinek  <jakub@redhat.com>
1995
1996         * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
1997         * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
1998         * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
1999         NO_TLS_OFFSET.
2000         * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
2001         * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
2002         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
2003         * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
2004         TLS_TCB_SIZE.
2005
2006 2003-04-24  Ulrich Drepper  <drepper@redhat.com>
2007
2008         * nss/getent.c: Implement alternative host database lookup via
2009         getaddrinfo.
2010
2011         * include/ifaddrs.h: New file.
2012         * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
2013         AI_ADDRCONFIG...
2014         * resolv/netdb.h: ...here.
2015         * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
2016         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
2017         * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
2018         AI_ADDRCONFIG.
2019
2020 2003-04-24  Roland McGrath  <roland@redhat.com>
2021
2022         * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
2023
2024 2003-04-24  Jakub Jelinek  <jakub@redhat.com>
2025
2026         * elf/dl-reloc.c (allocate_static_tls): Rename to...
2027         (_dl_allocate_static_tls): ... this function.  No longer static.
2028         (CHECK_STATIC_TLS): Adjust.
2029         * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
2030         * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
2031         Add SYM_MAP argument.
2032         (elf_machine_rela): Adjust caller.  Declare SYM_MAP unconditionally.
2033         Check if SYM_MAP != NULL for R_PPC_DTPREL32.  Only handle 32-bit
2034         TLS relocs here.  #ifdef out relocs which never appear in
2035         .gnu.conflict section from dl-conflict.c processing.
2036         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
2037         Add SYM_MAP argument.  Handle 16-bit TLS relocs here.
2038
2039         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
2040         out relocs which never appear in .gnu.conflict section from
2041         dl-conflict.c processing.
2042         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
2043         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2044         * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
2045         Use r_type in RESOLVE macro.
2046
2047 2003-04-23  Ulrich Drepper  <drepper@redhat.com>
2048
2049         * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
2050         NULL.  Remove code made redundant by this assumption.
2051         (__yp_unbind): Add call to free.  Adjust all callers.
2052
2053         * nis/ypclnt.c (yp_all): Free the dom_binding object after
2054         unbinding it.
2055
2056         * grp/initgroups.c (getgrouplist): Don't copy too much into the
2057         user buffer if more groups are found than fit into it.
2058
2059         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
2060         extend_alloca.
2061
2062 2003-04-23  Jakub Jelinek  <jakub@redhat.com>
2063
2064         * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
2065         not rc == errno.  Use extend_alloca.
2066
2067         * elf/tst-tls12.c (main): Fix declaration.
2068         * elf/tst-tls10.c (dummy): Make hidden instead of static.
2069         * elf/tst-tlsmod7.c (dummy): Likewise.
2070         * elf/tst-tlsmod8.c (dummy): Likewise.
2071         * elf/tst-tlsmod9.c (dummy): Likewise.
2072
2073 2003-04-22  Roland McGrath  <roland@redhat.com>
2074
2075         * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
2076         (open_not_cancel): Make last argument non-optional.
2077         * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
2078         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
2079         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
2080
2081         * include/tls.h: Protect against multiple inclusion.
2082
2083 2003-04-22  Ulrich Drepper  <drepper@redhat.com>
2084
2085         * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
2086         * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
2087         open_socket.  Not static anymore.
2088         (nscd_gethst_r): Use __nscd_open_socket.
2089         * nscd/nscd_getgr_r.c (open_socket): Removed.
2090         (nscd_getgr_r): Use __nscd_open_socket.
2091         * nscd/nscd_getpw_r.c (open_socket): Removed.
2092         (nscd_getpw_r): Use __nscd_open_socket.
2093
2094         * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
2095         * nscd/connections.c (handle_request): Add cast to avoid warning.
2096
2097 2003-04-21  Ulrich Drepper  <drepper@redhat.com>
2098
2099         * signal/sigfillset.c: Moved to...
2100         * sysdeps/generic/sigfillset.c: ...here.  If SIGCANCEL is defined
2101         do not set the corresponding bit.
2102
2103         * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
2104         SIGCANCEL.
2105         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
2106         * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
2107         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
2108         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
2109         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
2110
2111 2003-04-20  Ulrich Drepper  <drepper@redhat.com>
2112
2113         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
2114         first syscall parameter to const char*.
2115
2116 2003-04-19  Ulrich Drepper  <drepper@redhat.com>
2117
2118         * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
2119
2120         * configure.in: Add AC_PROG_CXX.
2121         * config.make.in (CXX): Define.
2122
2123         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
2124         __len to size_t to avoid warnings.
2125
2126 2003-04-18  Jes Sorensen  <jes@wildopensource.com>
2127
2128         * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
2129         2.5.67.
2130         * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
2131
2132 2003-04-19  Ulrich Drepper  <drepper@redhat.com>
2133
2134         * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
2135         UNREGISTER_ATFORK if d == NULL.
2136
2137         * catgets/nl_types.h: Remove __THROW marker from cancellation points.
2138         * dirent/dirent.h: Likewise.
2139         * dlfcn/dlfcn.h: Likewise.
2140         * grp/grp.h: Likewise.
2141         * iconv/iconv.h: Likewise.
2142         * io/fcntl.h: Likewise.
2143         * io/ftw.h: Likewise.
2144         * libio/stdio.h: Likewise.
2145         * misc/sys/mman.h: Likewise.
2146         * misc/sys/select.h: Likewise.
2147         * misc/sys/syslog.h: Likewise.
2148         * misc/sys/uio.h: Likewise.
2149         * posix/spawn.h: Likewise.
2150         * posix/unistd.h: Likewise.
2151         * posix/sys/wait.h: Likewise.
2152         * pwd/pwd.h: Likewise.
2153         * resolv/netdb.h: Likewise.
2154         * rt/aio.h: Likewise.
2155         * shadow/shadow.h: Likewise.
2156         * signal/signal.h: Likewise.
2157         * socket/sys/socket.h: Likewise.
2158         * stdlib/stdlib.h: Likewise.
2159         * streams/stropts.h: Likewise.
2160         * string/string.h: Likewise.
2161         * sysdeps/gnu/utmpx.h: Likewise.
2162         * sysvipc/sys/msg.h: Likewise.
2163         * termios/termios.h: Likewise.
2164         * time/time.h: Likewise.
2165         * wcsmbs/wchar.h: Likewise.
2166         * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
2167         functions.
2168         * misc/daemon.c: Likewise.
2169         * sysdeps/generic/backtracesymsfd.c: Likewise.
2170         * sysdeps/generic/check_fds.c: Likewise.
2171         * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
2172         * sysdeps/unix/sysv/linux/not-cancel.h: New file.
2173         * sysdeps/generic/not-cancel.h: New file.
2174         * csu/Makefile (distribute): Add not-cancel.h.
2175         * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
2176         * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
2177         for assert.c and assert-perr.c to include <fatal-prepare.h>.
2178         * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
2179
2180         * sysdeps/posix/remove.c (remove): Rewrite.  No need to restore
2181         errno and unlink first.
2182
2183         * io/ftw.c (ftw_dir): In all places assume fchdir is available.
2184
2185 2003-04-18  Ulrich Drepper  <drepper@redhat.com>
2186
2187         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
2188         INTERNAL_SYSCALL instead of INLINE_SYSCALL.
2189
2190 2003-04-17  Ulrich Drepper  <drepper@redhat.com>
2191
2192         * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
2193
2194         * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
2195         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
2196         replace.
2197
2198         * signal/Makefile (tests): Add tst-sigsimple.
2199         * signal/tst-sigsimple.c: New file.
2200
2201 2003-04-16  Jakub Jelinek  <jakub@redhat.com>
2202
2203         * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
2204         tst-tls10.h.
2205         (tests): Add tst-tls1[0-2].
2206         (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
2207         ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
2208         ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
2209         ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
2210         ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
2211         ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
2212         ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
2213         * elf/tst-tls10.c: New test.
2214         * elf/tst-tls11.c: New test.
2215         * elf/tst-tls12.c: New test.
2216         * elf/tst-tls10.h: New file.
2217         * elf/tst-tlsmod7.c: New file.
2218         * elf/tst-tlsmod8.c: New file.
2219         * elf/tst-tlsmod9.c: New file.
2220         * elf/tst-tlsmod10.c: New file.
2221         * elf/tst-tlsmod11.c: New file.
2222         * elf/tst-tlsmod12.c: New file.
2223
2224 2003-04-15  Steven Munroe  <sjmunroe@us.ibm.com>
2225
2226         * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
2227         * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
2228         * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
2229
2230 2003-04-17  Ulrich Drepper  <drepper@redhat.com>
2231
2232         * posix/regex.h: Include <sys/types.h>.
2233
2234         * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
2235         The signal number must be checked.
2236         * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
2237         The signal number must be checked [PR libc/5004].
2238
2239         * sysdeps/unix/sysv/linux/system.c: If compiled without threads
2240         don't do anything fancy.
2241
2242         * sysdeps/generic/bits/libc-lock.h: Define
2243         __rtld_lock_define_initialized_recursive.
2244
2245         * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
2246         contacting nscd if NOT_USENSCD_NAME > 0.
2247         * nss/nsswitch.c (__nss_disable_nscd): New function.
2248         * nss/nsswitch.h: Declare it.
2249         * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
2250         * nscd/nscd.c (main): Call __nss_disable_nscd.
2251
2252 2003-04-16  Ulrich Drepper  <drepper@redhat.com>
2253
2254         * stdio-common/perror.c (perror): We don't need to set the offset
2255         to _IO_pos_bad, this is how streams are initialized.
2256
2257         * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
2258         (time_output): If necessary, allocate new buffer for .name string if
2259         padding is required.
2260
2261         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
2262         before copying.  This might leave holes in the list.  Adjust
2263         pointers if necessary.
2264         (netlink_receive): Allocate only one block.
2265         (free_netlink_handle): Adjust appropriately.
2266         (getifaddrs): Lots of cleanups.
2267
2268         * string/test-strncpy.c (do_one_test): Mark start and stop as
2269         possibly unused.
2270         * string/test-memchr.c: Likewise.
2271         * string/test-memcmp.c: Likewise.
2272         * string/test-memcpy.c: Likewise.
2273         * string/test-memmove.c: Likewise.
2274         * string/test-memset.c: Likewise.
2275         * string/test-strcat.c: Likewise.
2276         * string/test-strchr.c: Likewise.
2277         * string/test-strcmp.c: Likewise.
2278         * string/test-strcpy.c: Likewise.
2279         * string/test-strlen.c: Likewise.
2280         * string/test-strncmp.c: Likewise.
2281         * string/test-strpbrk.c: Likewise.
2282         * string/test-strrchr.c: Likewise.
2283         * string/test-strspn.c: Likewise.
2284
2285 2003-04-15  Roland McGrath  <roland@redhat.com>
2286
2287         * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
2288
2289         * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
2290         INTUSE(__register_frame_info_bases).
2291
2292 2003-04-15  Ulrich Drepper  <drepper@redhat.com>
2293
2294         * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
2295         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
2296         AT_SYSINFO_EH_FRAME.  Adjust string width.
2297         (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
2298         * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
2299         Add _dl_sysinfo_eh_frame field.
2300         * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
2301         * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
2302         variable.
2303         [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
2304         if _dl_sysinfo_eh_frame is non-NULL.
2305
2306         * Makeconfig (gnulib): Add -lgcc_eh.
2307
2308         * config.h.in: Define HAVE_FORCED_UNWIND.
2309
2310 2003-04-15  Steven Munroe  <sjmunroe@us.ibm.com>
2311
2312         * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
2313         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
2314
2315 2003-04-15  Jakub Jelinek  <jakub@redhat.com>
2316
2317         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
2318         checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
2319         against local symbol in conflict processing.
2320
2321 2003-04-15  Steven Munroe  <sjmunroe@us.ibm.com>
2322
2323         * sysdeps/powerpc/bits/atomic.h
2324         [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
2325         [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
2326         as abort stub.
2327         (__arch_compare_and_exchange_val_32_acq): Define.
2328         (atomic_compare_and_exchange_val_acq): Define.
2329
2330 2003-04-15  Ulrich Drepper  <drepper@redhat.com>
2331
2332         * include/atomic.h: Pretty printing.
2333
2334 2003-04-14  Ulrich Drepper  <drepper@redhat.com>
2335
2336         * stdio-common/vfscanf.c: Add casts to avoid warnings.
2337
2338 2003-04-14  Jakub Jelinek  <jakub@redhat.com>
2339
2340         * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
2341         * sysdeps/x86_64/bits/atomic.h: Likewise.
2342
2343 2003-04-14  Ulrich Drepper  <drepper@redhat.com>
2344
2345         * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
2346         POPARGS_1 to emit labels for the mov instructions.
2347
2348 2003-04-14  Jakub Jelinek  <jakub@redhat.com>
2349
2350         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
2351
2352 2003-04-14  Roland McGrath  <roland@redhat.com>
2353
2354         * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
2355         compiler warning.
2356
2357         * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
2358
2359 2003-04-14  Ulrich Drepper  <drepper@redhat.com>
2360
2361         * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
2362         position.  Reported by jreiser@BitWagon.com.
2363
2364 2003-04-13  Ulrich Drepper  <drepper@redhat.com>
2365
2366         * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
2367         * sysdeps/generic/unwind-dw2-fde.h: Likewise.
2368         * sysdeps/generic/unwind-dw2.c: Likewise.
2369         * sysdeps/generic/unwind-pe.h: Likewise.
2370
2371 2003-04-13  Alexandre Oliva  <aoliva@redhat.com>
2372
2373         * sysdeps/unix/sysv/linux/mips/profil-counter: New.
2374         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
2375         * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
2376         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
2377         (mcontext_t): Make it match the 32-bit mips kernel in o32.
2378         * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
2379         the mips and mips64 headers.
2380         (struct user): Port to n32/n64.
2381
2382 2003-04-12  Ulrich Drepper  <drepper@redhat.com>
2383
2384         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
2385         avoid warning.
2386
2387         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
2388         __ASSUME_VSYSCALL is defined don't add restorer.
2389         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2390         __ASSUME_VSYSCALL for 2.5.53.
2391
2392 2003-04-11  Ulrich Drepper  <drepper@redhat.com>
2393
2394         * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
2395         Remove HAVE_CANCELBUF code.  Replace with code using the new
2396         initializers for unwind-based cleanup handling.
2397         * sysdeps/generic/unwind.h: Update from latest gcc version.
2398         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
2399         places to allow unwind data generation.
2400         * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
2401         * sysdeps/x86_64/bits/setjmp.h: Likewise.
2402         * sysdeps/sh/bits/setjmp.h: Likewise.
2403         * sysdeps/powerpc/bits/setjmp.h: Likewise.
2404         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
2405         * sysdeps/alpha/bits/setjmp.h: Likewise.
2406
2407 2003-04-11  Roland McGrath  <roland@redhat.com>
2408
2409         * csu/tst-empty.c: New file.
2410         * csu/Makefile (tests, tests-static): Add it.
2411
2412 2003-04-11  Jakub Jelinek  <jakub@redhat.com>
2413
2414         * string/test-strcmp.c (do_random_tests): Test whether return value
2415         has been promoted to wordsize if the ABI requires caller to do so.
2416         * string/test-strncmp.c (do_random_tests): Likewise.
2417         * string/test-memcmp.c (do_random_tests): Likewise.
2418
2419         * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
2420         before returning.
2421
2422         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
2423         (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
2424         is not defined, but the prctl constants are.
2425
2426         * string/tester.c (test_strcmp): Fix a typo.
2427
2428 2003-04-09  Ulrich Drepper  <drepper@redhat.com>
2429
2430         * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
2431         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
2432
2433 2003-04-08  Alexandre Oliva  <aoliva@redhat.com>
2434
2435         * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
2436         NewABI.
2437         (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
2438         NewABI.
2439         * sysdeps/mips/mips64/memcpy.S: Adjust register naming
2440         conventions.
2441         * sysdeps/mips/mips64/memset.S: Likewise.
2442         * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
2443         Use t0 instead of t4 as temporary.
2444
2445 2003-04-07  Ulrich Drepper  <drepper@redhat.com>
2446
2447         * elf/ldconfig.c (parse_conf): Ignore leading whitespace.  Use
2448         feof_unlocked instead of feof.
2449         (add_dir): Ignore trailing whitespace.
2450
2451 2003-04-07  Jakub Jelinek  <jakub@redhat.com>
2452
2453         * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
2454         sum of SIZE1 and SIZE2 arguments.
2455
2456 2003-04-06  Ulrich Drepper  <drepper@redhat.com>
2457
2458         * iconv/iconv_prog.c (process_block): Don't print message about
2459         invalid input if the -c option is used.
2460         (main): Correctly append IGNORE string for -c option.
2461
2462 2002-04-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2463
2464         * sysdeps/sh/bits/atomic.h: Moved to ...
2465         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here.  Add comments.
2466         (__arch_compare_and_exchange_val_*_acq): Add parens around macro
2467         arguments.
2468         (atomic_bit_set, atomic_bit_test_set): Likewise.
2469         (atomic_exchange_and_add): Likewise.  Don't evaluate VALUE argument
2470         twice.
2471         (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
2472
2473 2003-04-06  Roland McGrath  <roland@redhat.com>
2474
2475         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
2476         restoration as done for setcontext yesterday.
2477
2478 2003-04-06  Jakub Jelinek  <jakub@redhat.com>
2479
2480         * elf/rtld.c: Revert 2003-03-14 change.
2481         * elf/dl-conflict.c (_dl_resolve_conflicts): Move
2482         #if ! ELF_MACHINE_NO_RELA conditional into the routine.
2483
2484 2003-04-05  Ulrich Drepper  <drepper@redhat.com>
2485
2486         * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
2487
2488         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
2489         Always initialize *signgamp before returning an error.
2490
2491 2003-04-05  Roland McGrath  <roland@redhat.com>
2492
2493         * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
2494         below the stack pointer even if switching to the same context we are
2495         running right now.
2496
2497 2003-04-05  Ulrich Drepper  <drepper@redhat.com>
2498
2499         * catgets/gencat.c (read_input_file): Make sure that \n is not
2500         alone on the line before testing for continuation.
2501
2502         * math/test-tgmath.c (compile_test): Initialize c.
2503
2504 2003-04-05  Alexandre Oliva  <aoliva@redhat.com>
2505
2506         * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
2507         * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
2508         * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
2509         on mips n32.
2510         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
2511         XSTAT_IS_XSTAT64 must not be used for mips n64.  Use 64-bit data
2512         structure on n32 as well.
2513         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
2514         data types on n32 and n64.
2515
2516 2003-04-05  Ulrich Drepper  <drepper@redhat.com>
2517
2518         * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
2519         after getting them.
2520
2521         * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
2522         HAVE_register_atfork_malloc is defined use __register_atfork_malloc
2523         instead of __register_atfork.
2524
2525 2003-04-05  Jakub Jelinek  <jakub@redhat.com>
2526
2527         * stdio-common/reg-printf.c (__register_printf_function): Calloc
2528         instead of malloc __printf_arginfo_table and __printf_function_table.
2529         Reported by John Reiser <jreiser@BitWagon.com>.
2530
2531 2003-04-04  Steven Munroe  <sjmunroe@us.ibm.com>
2532
2533         * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
2534         * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
2535
2536         * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
2537         defining.
2538
2539 2003-04-04  Alexandre Oliva  <aoliva@redhat.com>
2540
2541         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
2542         for n64 abi.
2543
2544 2003-04-03  Roland McGrath  <roland@redhat.com>
2545
2546         * configure.in: Fix up use of compilation flags to match the build:
2547         For .s files, $ASFLAGS;
2548         For .S files, $CPPFLAGS $ASFLAGS;
2549         For .c files, $CFLAGS $CPPFLAGS;
2550         when linking, add $LDFLAGS.
2551         * configure: Regenerated.
2552
2553 2003-04-03  Jakub Jelinek  <jakub@redhat.com>
2554
2555         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
2556         for atomic_compare_and_exchange_bool_acq failure.
2557
2558 2003-04-03  Ulrich Drepper  <drepper@redhat.com>
2559
2560         * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
2561         _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
2562         _POSXI2_LOCALEDEF to 200112L.  Remove _POSIX2_C_VERSION.
2563         Remove declaration of pthread_atfork.
2564
2565 2003-04-02  Ulrich Drepper  <drepper@redhat.com>
2566
2567         * locale/iso-639.def: Add many more languages from the current ISO 639.
2568
2569         * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
2570         * sysdeps/generic/semtimedop.c: New file.
2571         * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
2572         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
2573         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2574         * sysvipc/Makefile (routines): Add semtimedop.
2575         * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
2576         * sysvipc/sys/sem.h: Declare semtimedop.
2577
2578 2003-04-02  Daniel Jacobowitz  <drow@mvista.com>
2579
2580         * configure.in: Check for __register_frame_info in both
2581         -lgcc and -lgcc_eh.
2582         * configure: Regenerated.
2583
2584 2003-04-01  Roland McGrath  <roland@redhat.com>
2585
2586         * scripts/abilist.awk: Allow dots in soname suffix.
2587
2588         * scripts/abilist.awk (emit): Fix bailout condition.
2589
2590 2003-04-01  Jakub Jelinek  <jakub@redhat.com>
2591
2592         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
2593         IA-64 version.
2594
2595         * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
2596         register as input to asm.
2597
2598 2003-04-01  Jakub Jelinek  <jakub@redhat.com>
2599
2600         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
2601
2602 2003-04-01  Andreas Jaeger  <aj@suse.de>
2603
2604         * configure.in: Output as/ld as name if version is too old.
2605
2606 2003-03-31  Daniel Jacobowitz  <drow@mvista.com>
2607
2608         * configure.in: Don't require an installed C library in the test
2609         for ".set" assembler support.
2610
2611 2003-03-31  Roland McGrath  <roland@redhat.com>
2612
2613         * signal/tst-sigset.c: New file.
2614         * signal/Makefile (tests): Add it.
2615
2616 2003-03-31  Ulrich Drepper  <drepper@redhat.com>
2617
2618         * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
2619         * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
2620         * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
2621         * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
2622         (__SIGRTMAX): Adjust accordingly.
2623         * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
2624         second compatibility symbol set.
2625         * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
2626
2627 2003-03-31  Andreas Schwab  <schwab@suse.de>
2628
2629         * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
2630         Define.
2631         (atomic_decrement_and_test): Fix test.
2632
2633 2003-03-31  Jakub Jelinek  <jakub@redhat.com>
2634
2635         * sysdeps/sparc/sparc32/bits/atomic.h: New file.
2636         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
2637         * sysdeps/sparc/sparc64/bits/atomic.h: New file.
2638         * sysdeps/sparc/sparc32/atomicity.h: Removed.
2639         * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
2640         * sysdeps/sparc/sparc64/atomicity.h: Removed.
2641
2642 2003-03-30  Roland McGrath  <roland@redhat.com>
2643
2644         * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
2645
2646         * intl/po2test.sed: Anchor substitution regexps to fix last change.
2647
2648 2003-03-29  Paolo Bonzini  <bonzini@gnu.org>
2649
2650         * intl/po2test.sed: Unify the transformations for msgid and msgstr
2651         and remove a useless s/// command.
2652
2653 2003-03-27  David Mosberger  <davidm@hpl.hp.com>
2654
2655         * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
2656         directive into empty .prologue region to ensure that call-chain
2657         is terminated even for the first instruction.
2658
2659         * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
2660         to terminate call-chain right from the get-go.
2661
2662         * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
2663         stop bit between compare & branch.
2664
2665 2003-03-29  Ulrich Drepper  <drepper@redhat.com>
2666
2667         * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
2668         point correctly [PR libc/4993].
2669
2670         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
2671         netlink_open calls if netlink is known to not be available.
2672
2673 2003-03-29  Alexandre Oliva  <aoliva@redhat.com>
2674
2675         * configure.in: Add mips64* support.
2676         * sysdeps/mips/bits/endian.h: Make it bi-endian.
2677         * sysdeps/mips/mipsel/bits/endian.h: Removed.
2678         * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
2679         * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
2680         * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
2681         * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
2682         * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
2683         * sysdeps/mips/Implies: Moved wordsize-32 to...
2684         * sysdeps/mips/mips32/Implies: New file.
2685         * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
2686         ret_NOERRNO): New.
2687         (ret, PSEUDO_END): Moved past END.
2688         (PSEUDO): Moved to...
2689         * sysdeps/unix/mips/mips32/sysdep.h: New file.
2690         * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
2691         * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
2692         * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
2693         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
2694         * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
2695
2696         * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
2697         Re-introduce ENTRY.
2698
2699 2003-03-28  Thorsten Kukuk  <kukuk@suse.de>
2700
2701         * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
2702         * inet/test-ifaddrs.c: Allow AF_PACKET.
2703         * sysdeps/unix/sysv/linux/kernel-features.h: Add
2704         __ASSUME_NETLINK_SUPPORT.
2705
2706 2003-03-28  Ulrich Drepper  <drepper@redhat.com>
2707
2708         * elf/vismain.c (do_test): Comment out tests which fail in the moment.
2709
2710 2003-03-26  H.J. Lu  <hjl@gnu.org>
2711
2712         * elf/vismod.h (getvarlocal1): Return const char **.
2713         (getvarinmod1): Likewise.
2714         (getvaritcpt1): Likewise.
2715         (getvarlocal2): Likewise.
2716         (getvarinmod2): Likewise.
2717         (getvaritcpt2): Likewise.
2718         (getvaritcpt3): Likewise.
2719         * elf/vismain.c (do_test): Adjusted.
2720         * elf/vismod1.c (getvarlocal1): Return address.
2721         (getvarinmod1): Likewise.
2722         (getvaritcpt1): Likewise.
2723         * elf/vismod2.c (getvarlocal2): Likewise.
2724         (getvarinmod2): Likewise.
2725         (getvaritcpt2): Likewise.
2726         * elf/vismod3.c (getvaritcpt3): Likewise.
2727
2728 2003-03-28  Roland McGrath  <roland@redhat.com>
2729
2730         * elf/vismain.c (do_test): Print both addresses when they don't match.
2731
2732         * scripts/abilist.awk: If given -v filename_regexp and/or -v
2733         libname_regexp when parsing names, then produce output only
2734         for those matching the given regexps.  In combine mode, save all
2735         stanzas for a final sorting by stanza header at the end.
2736         Emit a blank line between stanzas.
2737
2738         * scripts/abilist.awk: When given -v combine=1, do parse_names and
2739         emit a single output stream with lib name in stanza header lines.
2740
2741         * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
2742
2743 2003-03-27  Roland McGrath  <roland@redhat.com>
2744
2745         * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
2746         (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
2747
2748 2003-03-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2749
2750         * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
2751         Return old value. Make asm output reg constraint earlyclobber.
2752         Renamed from...
2753         (__arch_compare_and_exchange_8_acq): ... this.
2754         (__arch_compare_and_exchange_val_16_acq):
2755         Return old value. Make asm output reg constraint earlyclobber.
2756         Renamed from...
2757         (__arch_compare_and_exchange_16_acq): ... this.
2758         (__arch_compare_and_exchange_val_32_acq):
2759         Return old value. Make asm output reg constraint earlyclobber.
2760         Renamed from...
2761         (__arch_compare_and_exchange_32_acq): ... this.
2762         (__arch_compare_and_exchange_val_64_acq):
2763         Renamed from...
2764         (__arch_compare_and_exchange_64_acq): ... this.
2765         (atomic_exchange_and_add): Use local variables and
2766         __arch_compare_and_exchange_val_64_acq.
2767         (atomic_add): Likewise.
2768         (atomic_add_negative, atomic_add_zero): Use local variables.
2769
2770 2003-03-28  Alexandre Oliva  <aoliva@redhat.com>
2771
2772         * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
2773
2774 2003-03-27  Ulrich Drepper  <drepper@redhat.com>
2775
2776         * Makefile: Remove libmd5crypt goal.
2777
2778 2003-03-25  Jakub Jelinek  <jakub@redhat.com>
2779
2780         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
2781         special handling of relocations against local symbols.
2782
2783 2003-03-27  Steven Munroe  <sjmunroe@us.ibm.com>
2784
2785         * sysdeps/powerpc/bits/atomic.h
2786         (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
2787         [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
2788         Define PPC64 specific version.
2789         [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
2790         Change (mem) constraint to "b".
2791         [__powerpc64__] (__arch_atomic_exchange_and add_64):
2792         Replace addi with add. Change (value) contraint to "r".
2793         Change (mem) constraint to "b".
2794         [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
2795         (__arch_atomic_exchange_32): Change (mem) constraint to "b".
2796         (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
2797         (__arch_atomic_decrement_if_positive_32): New macro.
2798         (atomic_decrement_if_positive): Use __arch* macros.
2799
2800 2003-03-27  Jakub Jelinek  <jakub@redhat.com>
2801
2802         * sysdeps/ia64/fpu/libm-test-ulps: Update.
2803
2804 2003-03-27  Roland McGrath  <roland@redhat.com>
2805
2806         * scripts/rpm2dynsym.sh: New file.
2807         * Makefile (distribute): Add it.
2808
2809 2003-03-27  David Mosberger  <davidm@hpl.hp.com>
2810
2811         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
2812         ar.unat before returning.  Add missing .mem.offset directives
2813         to ensure file gets assembled without warnings.
2814         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
2815
2816 2003-03-27  Jakub Jelinek  <jakub@redhat.com>
2817
2818         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
2819         Return -1 instead of 0 if clock_getres failed.
2820
2821 2003-03-27  Roland McGrath  <roland@redhat.com>
2822
2823         * scripts/abilist.awk: If variable `parse_names' is set, grok the file
2824         header lines and write out foo.symlist files for each foo.so.NN listed.
2825
2826         * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
2827         This symbol is exported, and we don't want to hide it.
2828         Add libc_hidden_proto instead.
2829         (_IO_file_jumps): Add libc_hidden_proto.
2830         * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
2831         Remove INTVARDEF.
2832         * libio/fileops.c (_IO_file_jumps): Likewise.
2833         * libio/stdfiles.c: Don't use INTUSE on them.
2834         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
2835         * libio/iofopen.c (__fopen_internal): Likewise.
2836         * libio/freopen.c (freopen): Likewise.
2837         * libio/freopen64.c (freopen64): Likewise.
2838         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
2839
2840         * Makerules (check-abi) [$(enable-check-abi) = warn]:
2841         Ignore exit status from diff.
2842         * configure.in (enable_check_abi): Document possible value "warn".
2843         Change default to no for now.
2844         * configure: Regenerated.
2845
2846         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
2847         macro calls and a #include <stub-tag.h> at the end.
2848         * Makerules ($(objpfx)stubs): Tweak sed commands.
2849
2850         * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
2851         caller column for *xattr syscalls, since they are in sysdeps/generic.
2852
2853         * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
2854         * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
2855
2856 2003-03-26  Roland McGrath  <roland@redhat.com>
2857
2858         * Makerules (check-abi-config): Use /thread instead of /tls when
2859         use-thread and not just use-tls is set.
2860
2861         * Makerules (update-abi): Put quotes around $(update-abi-config).
2862
2863         * elf/Makefile (check-abi): Depend on check-abi-ld.
2864         (update-abi): Depend on update-abi-ld.
2865
2866 2003-03-26  GOTO Masanori  <gotom@debian.or.jp>
2867
2868         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
2869         do not check for errors (unless testing for 32bit variant).
2870         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
2871
2872 2003-03-27  Philip Blundell  <philb@gnu.org>
2873
2874         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
2875         unconditional mov.  Remove nop.
2876
2877         * sysdeps/unix/sysv/linux/kernel-features.h
2878         (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
2879         * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
2880         when __ASSUME_VFORK_SYSCALL is defined.
2881         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
2882         __ASSUME_MMAP2_SYSCALL.
2883         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
2884         __ASSUME_REALTIME_SIGNALS.
2885
2886 2003-03-26  Ulrich Drepper  <drepper@redhat.com>
2887
2888         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
2889         only if DL_NO_COPY_RELOCS is not defined.
2890         * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
2891
2892 2003-03-26  Roland McGrath  <roland@redhat.com>
2893
2894         * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
2895         SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
2896         * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
2897         (sysdep_routines): Add stub-syscalls.
2898         ($(objpfx)stub-syscalls.c): New target.
2899         (generated): Add stub-syscalls.c.
2900
2901         * tls.make.c: Also define use-tls according to USE_TLS macro.
2902
2903 2003-03-26  Ulrich Drepper  <drepper@redhat.com>
2904
2905         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
2906         no-op padding element.
2907         * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
2908         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
2909         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
2910         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
2911
2912 2003-03-26  GOTO Masanori  <gotom@debian.or.jp>
2913
2914         * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
2915         condition check for the return value of getgroups32.
2916
2917 2003-03-26  Jakub Jelinek  <jakub@redhat.com>
2918
2919         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
2920         Fix a typo.
2921         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
2922         PSEUDO_END_NOERRNO): Define.
2923         * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
2924         Define to PSEUDO_END.
2925
2926 2003-03-26  Ulrich Drepper  <drepper@redhat.com>
2927
2928         * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
2929
2930 2003-03-25  Jiro SEKIBA  <jir@yamato.ibm.com>
2931
2932         * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
2933         * iconvdata/bug-iconv4.c: New file.
2934         * iconvdata/Makefile (tests): Add bug-iconv4.
2935
2936 2003-03-25  H.J. Lu  <hjl@gnu.org>
2937
2938         * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
2939         symbols twice.
2940         (_dl_lookup_versioned_symbol): Likewise.
2941
2942 2003-03-26  Jakub Jelinek  <jakub@redhat.com>
2943
2944         * csu/tst-atomic.c (do_test): Add some new
2945         atomic_compare_and_exchange_val_acq, atomic_add_zero,
2946         atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
2947         * include/atomic.h (atomic_add_negative, atomic_add_zero):
2948         Prefix local variable so that it doesn't clash with the one
2949         in atomic_exchange_and_add.
2950         * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
2951         pointers.
2952         (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
2953         * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
2954         value into register.
2955         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
2956         Cast newval to long.
2957         * sysdeps/x86_64/bits/atomic.h
2958         (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
2959         long.
2960         (atomic_exchange): Cast newvalue to long if sizeof == 8.
2961         (atomic_exchange_and_add): Cast value to long if sizeof == 8.
2962         (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
2963         (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
2964
2965 2003-03-21  Martin Schwidefsky  <schwidefskyde.ibm.com>
2966
2967         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
2968         bit from backtrace addresses.
2969
2970 2003-03-21  Andreas Schwab  <schwab@suse.de>
2971
2972         * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
2973         __chown symbols.
2974
2975 2003-03-25  Roland McGrath  <roland@redhat.com>
2976
2977         * config.make.in (enable-check-abi): New variable from configure.
2978         * configure.in (enable_check_abi): New substituted variable,
2979         controlled by --{enable,disable}-check-abi (default yes).
2980         * configure: Regenerated.
2981         * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
2982         on check-abi dependency.
2983
2984 2003-03-26  Andreas Schwab  <schwab@suse.de>
2985
2986         * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
2987         * include/atomic.h: Likewise.
2988
2989         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
2990
2991 2003-03-25  Roland McGrath  <roland@redhat.com>
2992
2993         * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
2994         (__arch_atomic_exchange_64): New macro.
2995         (atomic_exchange): Use them.
2996         (__arch_atomic_exchange_and_add_32): New macro.
2997         (__arch_atomic_exchange_and_add_64): New macro.
2998         (atomic_exchange_and_add): Use them.
2999         Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
3000
3001 2003-03-25  Alexandre Oliva  <aoliva@redhat.com>
3002
3003         * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
3004         Define.
3005         * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
3006         ISA tests.
3007         (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
3008         (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
3009         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
3010         to decide whether to add padding.
3011         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
3012         to decide whether to add padding.
3013         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
3014         old_kernel_sigaction): Likewise.
3015
3016 2003-03-25  Ulrich Drepper  <drepper@redhat.com>
3017
3018         * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
3019         atomic_add_zero were supposed to do.
3020         * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
3021         to x86 behavior.
3022
3023         * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
3024         This matches the new timer implementation.
3025         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
3026         Likewise.
3027         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
3028         Likewise.
3029         * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
3030         timer info for what the kernel provides these days.
3031         (struct sigevent): Add _tid field.
3032         Define SIGEV_THREAD_ID.
3033         Remove struct __pthread_attr_s forward declaration.
3034         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
3035         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
3036         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
3037         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
3038
3039         * Versions.def (librt): Add GLIBC_2.3.3.
3040
3041         * abilist/libpthread.abilist: Update for nptl.
3042
3043 2003-03-24  Jon Grimm  <jgrimm@us.ibm.com>
3044
3045         * inet/netinet/in.h: Add IPPROTO_SCTP.
3046
3047 2003-03-24  Ulrich Drepper  <drepper@redhat.com>
3048
3049         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
3050
3051 2003-03-24  Philip Blundell  <philb@gnu.org>
3052
3053         * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
3054         Remove a1 from clobber list.
3055
3056 2003-03-24  Ulrich Drepper  <drepper@redhat.com>
3057
3058         * timezone/antarctica: Update from tzdata2003a.
3059         * timezone/asia: Likewise.
3060         * timezone/australasia: Likewise.
3061         * timezone/europe: Likewise.
3062         * timezone/iso3166.tab: Likewise.
3063         * timezone/northamerica: Likewise.
3064         * timezone/southamerica: Likewise.
3065         * timezone/zone.tab: Likewise.
3066
3067 2003-03-24  Steven Munroe  <sjmunroe@us.ibm.com>
3068
3069         * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
3070
3071 2003-03-23  Ulrich Drepper  <drepper@redhat.com>
3072
3073         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
3074         unwanted expansion by definining to ret.  Patch by Ian Wienand.
3075
3076         * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
3077         the parameter description to denote no error checking.  Generate
3078         appropriate pseudo asm code.
3079         * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
3080         * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
3081         getpgrp, and getppid with 'E'.
3082         * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
3083         PSEUDO_END_NOERRNO, and ret_NOERRNO.
3084         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
3085         * sysdeps/unix/sysdep.h: Likewise.
3086         * sysdeps/unix/alpha/sysdep.h: Likewise.
3087         * sysdeps/unix/sparc/sysdep.h: Likewise.
3088         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
3089         * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
3090         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
3091         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
3092         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
3093         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
3094         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
3095         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
3096         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
3097         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
3098         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
3099
3100 2003-03-23  Roland McGrath  <roland@redhat.com>
3101
3102         * Makeconfig (+includes): Don't use $(last-includes).
3103
3104 2003-03-22  Alexandre Oliva  <aoliva@redhat.com>
3105
3106         * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
3107         * sysdeps/unix/sysv/linux/configure: Rebuilt.
3108
3109 2003-03-23  Jakub Jelinek  <jakub@redhat.com>
3110
3111         * sysdeps/alpha/fpu/libm-test-ulps: Update.
3112         * sysdeps/arm/libm-test-ulps: Update.
3113         * sysdeps/hppa/fpu/libm-test-ulps: Update.
3114         * sysdeps/ia64/fpu/libm-test-ulps: Update.
3115         * sysdeps/mips/fpu/libm-test-ulps: Update.
3116         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
3117         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3118         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
3119         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
3120         * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
3121         * sysdeps/s390/fpu/libm-test-ulps: Update.
3122         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3123
3124 2003-03-22  Roland McGrath  <roland@redhat.com>
3125
3126         * include/atomic.h: Put parens around all macro arguments.
3127         (__atomic_val_bysize, __atomic_bool_bysize): New macros.
3128         (atomic_compare_and_exchange_val_acq): Use it.
3129         (atomic_compare_and_exchange_bool_acq): Likewise.
3130         (atomic_increment_and_test): Invert sense of test.
3131         (atomic_decrement_and_test): Likewise.
3132         * csu/tst-atomic.c: Update those tests to match.
3133
3134 2003-03-22  Jakub Jelinek  <jakub@redhat.com>
3135
3136         * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
3137         Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
3138         (atomic_compare_and_exchange_bool_acq): Add comment.  Don't use
3139         __oldval variable in the macro, since it might be macro argument.
3140         (atomic_decrement_if_positive): Initialize __memp, remove setting
3141         of non-existent variable.
3142         (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
3143         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
3144         using atomic_compare_and_exchange_val_acq.
3145         (atomic_decrement_if_positive, atomic_bit_test_set): Define.
3146         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
3147         Renamed from...
3148         (__arch_compare_and_exchange_bool_8_acq): ... this.
3149         (__arch_compare_and_exchange_val_16_acq): Renamed from...
3150         (__arch_compare_and_exchange_bool_16_acq): ... this.
3151         (__arch_compare_and_exchange_val_32_acq): Return old value.  Renamed
3152         from...
3153         (__arch_compare_and_exchange_bool_32_acq): ... this.
3154         (__arch_compare_and_exchange_val_64_acq): Return old value.  Renamed
3155         from...
3156         (__arch_compare_and_exchange_bool_64_acq): ... this.
3157         (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
3158         variables types instead of assuming int.
3159         Change prefix of local variables to __arch.
3160         * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
3161         Remove.
3162         (atomic_compare_and_exchange_val_acq,
3163         atomic_compare_and_exchange_bool_acq): Define.
3164
3165         * csu/tst-atomic.c: New test.
3166         * csu/tst-atomic-long.c: New test.
3167         * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
3168
3169         * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
3170
3171         * sysdeps/s390/Versions: Add trailing newline.
3172
3173         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
3174         if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
3175
3176 2003-03-22  Andreas Schwab  <schwab@suse.de>
3177
3178         * sysdeps/m68k/fpu/libm-test-ulps: Update.
3179
3180         * sysdeps/m68k/m68020/bits/atomic.h: New file.
3181         * sysdeps/m68k/m68020/atomicity.h: Removed.
3182
3183 2003-03-22  Alexandre Oliva  <aoliva@redhat.com>
3184
3185         * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
3186         data structures and macros.  Protect from multiple inclusion.
3187
3188         * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
3189         typo in #if test.
3190
3191 2003-03-21  Andreas Jaeger  <aj@suse.de>
3192
3193         * sysdeps/i386/fpu/libm-test-ulps: Update.
3194
3195         * math/libm-test.inc (tgamma_test): Recompute some constants with
3196         36 digits precision.
3197         (lgamma_test): Likewise.
3198         (ccos_test): Likewise.
3199         (ccosh_test): Likewise.
3200         (clog10_test): Likewise.
3201         (csin_test): Likewise.
3202         (csinh_test): Likewise.
3203         (ctan_test): Likewise.
3204         (ctanh_test): Likewise.
3205
3206 2003-03-19  Jakub Jelinek  <jakub@redhat.com>
3207
3208         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
3209
3210 2003-03-21  Roland McGrath  <roland@redhat.com>
3211
3212         * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
3213         constraint to permit non-constant BIT argument.
3214         (atomic_bit_test_set): Likewise.
3215         * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
3216         (atomic_bit_set): Likewise.  Use 1UL in case that BIT might be >= 32.
3217         For quadword case, use "i" constraint if __builtin_constant_p and < 32
3218         or "r" constraint otherwise.
3219
3220         * configure.in: Move AC_PROG_CC and other program-finding before all
3221         the version checks.
3222         * configure: Regenerated.
3223
3224 2003-03-21  Alexandre Oliva  <aoliva@redhat.com>
3225
3226         * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
3227         unaligned copying of 8-15 bytes.  From Chris Demetriou
3228         <cgd@broadcom.com>.  Fix label names.
3229         * sysdeps/mips/mips64/memset.S: Fix label names.  Make similar
3230         change as to memcpy.S.
3231         * sysdeps/mips/memcpy.S: Formatting changes.
3232         * sysdeps/mips/memset.S: Likewise.
3233
3234 2003-03-21  Roland McGrath  <roland@redhat.com>
3235
3236         * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
3237
3238 2003-03-21  Alexandre Oliva  <aoliva@redhat.com>
3239
3240         * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
3241         * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
3242
3243 2003-03-21  Roland McGrath  <roland@redhat.com>
3244
3245         * sysdeps/i386/i486/bits/atomic.h
3246         (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
3247         version of the macro to avoid compile-time warnings.
3248         [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
3249         (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
3250         (atomic_increment, atomic_decrement): Likewise.
3251
3252 2003-03-21  Ulrich Drepper  <drepper@redhat.com>
3253
3254         * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
3255         * sysdeps/i386/i486/bits/atomic.h: Likewise.
3256
3257 2003-03-21  Roland McGrath  <roland@redhat.com>
3258
3259         * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
3260
3261 2003-03-20  Ulrich Drepper  <drepper@redhat.com>
3262
3263         * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
3264         atomic_compare_and_exchange_val_rel,
3265         atomic_compare_and_exchange_bool_acq, and
3266         atomic_compare_and_exchange_bool_rel instead of
3267         atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
3268         * sysdeps/i386/i486/bits/atomic.h: Define
3269         __arch_compare_and_exchange_val_*_acq instead of
3270         __arch_compare_and_exchange_*_acq.
3271         * sysdeps/x86_64/bits/atomic.h: Likewise.
3272         * sysdeps/ia64/bits/atomic.h: Define
3273         __arch_compare_and_exchange_bool_*_acq instead of
3274         __arch_compare_and_exchange_*_acq.
3275         * sysdeps/powerpc/bits/atomic.h: Likewise.
3276         * sysdeps/s390/bits/atomic.h: Likewise.
3277         * gmon/mcount.c: Adjust for new form of compare&exchange macros.
3278         * malloc/set-freeres.c: Likewise.
3279         * nscd/cache.c: Likewise.
3280         * stdlib/cxa_finalize.c: Likewise.
3281         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
3282
3283 2003-03-20  Alexandre Oliva  <aoliva@redhat.com>
3284
3285         * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
3286         * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
3287         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
3288
3289         * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
3290         into high and low halves on n64.
3291         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3292         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3293         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
3294
3295 2003-03-20  Ulrich Drepper  <drepper@redhat.com>
3296
3297         * include/atomic.h (atomic_decrement_if_positive): Adjust for the
3298         correct atomic_compare_and_exchange_acq semantics.
3299
3300 2003-03-20  Alexandre Oliva  <aoliva@redhat.com>
3301
3302         * sysdeps/mips/ieee754.h: Remove excess #endif.
3303
3304 2003-03-20  Roland McGrath  <roland@redhat.com>
3305
3306         * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
3307         variable.  Remove superfluous memory clobber.
3308
3309         * include/atomic.h: Syntax braino fix.
3310
3311         * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
3312         in decimal.  Don't bail if niced at start.  Just check that nice call
3313         bumps the total at all.
3314
3315 2003-03-20  Alexandre Oliva  <aoliva@redhat.com>
3316
3317         * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
3318         including pc, gp, sp and fp, as long long.
3319         * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
3320         * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
3321         Add gp argument, and set gp in the jmpbuf to it.
3322         * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
3323
3324 2003-03-20  Ulrich Drepper  <drepper@redhat.com>
3325
3326         * include/atomic.h: Define atomic_exchange and
3327         atomic_decrement_if_positive if not already defined.  Add some
3328         __builtin_expect.
3329         * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
3330         * sysdeps/x86_64/bits/atomic.h: Likewise.
3331         * sysdeps/ia64/bits/atomic.h: Pretty printing.  Define atomic_exchange.
3332         * sysdeps/powerpc/bits/atomic.h: Pretty printing.  Define
3333         atomic_exchange, atomic_exchange_and_add, and
3334         atomic_decrement_if_positive
3335
3336 2003-03-20  Alexandre Oliva  <aoliva@redhat.com>
3337
3338         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
3339         with a single instruction.
3340
3341         * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
3342         properly for n64.
3343         (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
3344         type.
3345         (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
3346         Word before comparing with gotsym.  Take reloc_addr argument as
3347         void*.  Remove the code added for the compiler to drop any
3348         alignment assumptions.
3349
3350 2003-03-19  Ulrich Drepper  <drepper@redhat.com>
3351
3352         * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
3353         * include/atomic.h: New file.
3354         * sysdeps/i386/i486/bits/atomic.h: New file.
3355         * sysdeps/x86_64/bits/atomic.h: New file.
3356         * sysdeps/s390/bits/atomic.h: New file.
3357         * sysdeps/sh/bits/atomic.h: New file.
3358         * sysdeps/ia64/bits/atomic.h: New file.
3359         * sysdeps/powerpc/bits/atomic.h: New file.
3360         * sysdeps/generic/bits/atomic.h: New file.
3361         * sysdeps/i386/i486/atomicity.h: Removed.
3362         * sysdeps/x86_64/atomicity.h: Removed.
3363         * sysdeps/s390/s390-32/atomicity.h: Removed.
3364         * sysdeps/s390/s390-64/atomicity.h: Removed.
3365         * sysdeps/ia64/atomicity.h: Removed.
3366         * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
3367         * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
3368         * elf/dl-profile.c: Use atomic.h instead of atomicity.h.  Adjust
3369         use of macros from atomicity.h to new names and semantics.
3370         * gmon_mcount.c: Likewise.
3371         * malloc/set-freeres.c: Likewise.
3372         * nscd/cache.c: Likewise.
3373         * stdlib/cxa_finalize.c: Likewise.
3374         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
3375
3376 2003-03-19  Alexandre Oliva  <aoliva@redhat.com>
3377
3378         * sysdeps/mips/ieee754.h: New file, suitable to replace both
3379         ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
3380         mips-specific for now.
3381
3382 2003-03-19  Ulrich Drepper  <drepper@redhat.com>
3383
3384         * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
3385         hexdigits correctly.  Reported by Fred Tydeman <tydeman@tybor.com>.
3386         * stdlib/tst-strtod.c: Add test for the bug.
3387
3388         * posix/tst-nice.c (do_test): Remove invalid of return value.
3389         Don't run test if initial level != 0.
3390
3391 2003-03-19  Amos Waterland  <apw@us.ibm.com>
3392
3393         * posix/tst-nice.c: New file.
3394         * posix/Makefile (tests): Add tst-nice.
3395
3396 2003-03-18  Roland McGrath  <roland@redhat.com>
3397
3398         * abilist: New directory of libfoo.abilist files maintained using
3399         scripts/merge-abilist.awk and "make update-abi" rules.
3400         * Makefile (distribute): Add abilist/*.abilist.
3401         * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
3402         Depend on check-abi.
3403
3404         * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
3405         * configure: Regenerated.
3406
3407         * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
3408
3409 2003-03-18  Ulrich Drepper  <drepper@redhat.com>
3410
3411         * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
3412         correctly.
3413
3414 2003-03-18  Steven Munroe  <sjmunroe@us.ibm.com>
3415
3416         * sysdeps/powerpc/powerpc64/memcpy.S: New file.
3417
3418 2003-03-18  Ulrich Drepper  <drepper@redhat.com>
3419
3420         * Versions.def: Add GLIBC_2.3.3 for libpthread.
3421
3422 2003-03-17  Ulrich Drepper  <drepper@redhat.com>
3423
3424         * sysdeps/generic/libc-start.c [!SHARED &&
3425         !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
3426
3427 2003-03-17  Roland McGrath  <roland@redhat.com>
3428
3429         * include/ctype.h: Revert last change.
3430
3431 2003-03-17  Ulrich Drepper  <drepper@redhat.com>
3432
3433         * argp/tst-argp1.c: Use test-skeleton.c.
3434         * locale/tst-C-locale.c: Likewise.
3435
3436 2003-03-17  Alexandre Oliva  <aoliva@redhat.com>
3437
3438         * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
3439         * sysdeps/mips/mips64/n64/Implies: New file.
3440         * sysdeps/mips/mips64/n64/Makefile: New file.
3441         * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
3442         * sysdeps/mips/mips64/n32/Implies: New file.
3443         * sysdeps/mips/mips64/n32/Makefile: New file.
3444         * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
3445         * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
3446         * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
3447         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
3448         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
3449         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
3450         * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
3451         * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
3452         * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
3453         * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
3454         * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
3455         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
3456         * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
3457         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
3458
3459         * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
3460         lib64 for mips64/n64 and lib32 for mips64/n32.
3461         (ldd_rewrite_script): Needed for all mips64 configurations.
3462         * sysdeps/unix/sysv/linux/configure: Rebuilt.
3463         * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
3464         * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
3465
3466         * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
3467         well.
3468
3469         * sysdeps/unix/sysv/linux/mips/configure.in: New.  Pre-process
3470         asm/unistd.h into asm-unistd.h.
3471         * sysdeps/unix/sysv/linux/mips/configure: Generated.
3472         * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
3473         of syscall list.
3474         * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
3475         * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
3476         asm/unistd.h.
3477
3478         * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
3479         * sysdeps/unix/sysv/linux/mips/ptrace.c: New file.  Use long
3480         long type for registers on n32.
3481
3482         * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
3483         3 ABIs.
3484         * sysdeps/mips/mips64/gmp-mparam.h: New file.  Define
3485         BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
3486         * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
3487         (__sigsetjmp_aux): Use them.  Adjust for all 3 ABIs.
3488         * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
3489         * sysdeps/unix/mips/brk.S: Likewise.
3490         * sysdeps/unix/mips/sysdep.S: Likewise.
3491         * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
3492         * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
3493         * sysdeps/mips/sys/ucontext.h: Likewise.
3494         * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
3495         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
3496         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
3497         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
3498         * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
3499         * sysdeps/mips/mips64/setjmp.S: Likewise.
3500         * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
3501         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
3502         64-bit types.
3503
3504 2003-03-16  Ulrich Drepper  <drepper@redhat.com>
3505
3506         * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
3507         not at function level.
3508         * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
3509
3510 2003-03-15  Roland McGrath  <roland@redhat.com>
3511
3512         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
3513         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
3514         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
3515         * nis/nis_table.c (__create_ib_request): Likewise.
3516
3517         * posix/fnmatch_loop.c: Add casts for signedness.
3518         * nss/nss_files/files-hosts.c: Likewise.
3519         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3520         * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
3521         * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
3522
3523         * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
3524         get errors into the log file.
3525         (libc_cv_broken_visibility_attribute): Likewise.
3526         (libc_cv_broken_alias_attribute): Likewise.
3527         (libc_cv_asm_weak_directive): Likewise.
3528         (libc_cv_need_minus_P): Likewise.
3529         (libc_cv_dot_text): Likewise.
3530         (libc_cv_asm_global_directive): Likewise.
3531         (libc_cv_asm_type_prefix): Likewise.
3532         * configure: Regenerated.
3533
3534         * nscd/cache.c (cache_search): Give first arg type `request_type'.
3535         * nscd/nscd.h: Update decl.
3536
3537         * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
3538         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
3539         * elf/dl-close.c (_dl_close): Likewise.
3540         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
3541         * io/fts.c (fts_build): Likewise.
3542         * elf/cache.c (add_to_cache): Likewise.
3543         * locale/programs/locarchive.c (show_archive_content): Likewise.
3544
3545         * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
3546
3547         * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
3548         happy.
3549         (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
3550
3551 2003-03-15  Ulrich Drepper  <drepper@redhat.com>