1 2002-08-03 Ulrich Drepper <drepper@redhat.com>
3 * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
4 __strncasecmp_l, __strdup, __strndup, __strerror_r.
5 * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
7 * string/strdup.c (__strdup): Likewise.
8 * string/strndup.c (__strndup): Likewise.
9 * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
10 * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
12 2002-08-03 Jakub Jelinek <jakub@redhat.com>
14 * include/libio.h: New file.
15 * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
16 * libio/iolibio.h: #include <libio.h>, not "libio.h".
17 * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
18 * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
19 * sysdeps/unix/common/syscalls.list: Likewise.
20 * sysdeps/unix/inet/syscalls.list: Likewise.
21 * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
22 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
23 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
24 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
25 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
26 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
27 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
28 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
29 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
30 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
31 * sysdeps/unix/syscalls.list: Likewise.
33 2002-08-03 Jakub Jelinek <jakub@redhat.com>
34 Ulrich Drepper <drepper@redhat.com>
36 * malloc/malloc.c (public_cALLOc): Only divide if at least one of
37 the arguments is big enough to cause an overflow.
39 2002-08-03 Ulrich Drepper <drepper@redhat.com>
41 * assert/assert.c: Use hidden_def not INTDEF.
43 2002-08-03 Jakub Jelinek <jakub@redhat.com>
45 * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
48 2002-08-03 Roland McGrath <roland@redhat.com>
50 * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
51 * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
53 * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
54 * misc/syslog.c: Add libc_hidden_def.
55 * misc/err.c: Likewise.
56 * stdlib/exit.c: Likewise.
57 * stdlib/bsearch.c: Likewise.
58 * sysdeps/generic/getenv.c: Likewise.
60 * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
62 * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
63 libc_hidden_weak for every system call symbol defined.
65 * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
66 timelocal, localtime, strftime.
67 * time/asctime.c: Add libc_hidden_def.
68 * time/mktime.c: Likewise.
69 * time/localtime.c: Likewise.
70 * time/strftime.c: Likewise.
71 * time/strptime.c: Likewise.
72 * sysdeps/generic/time.c: Likewise.
73 * sysdeps/unix/time.c: Likewise.
74 * sysdeps/unix/sysv/i386/time.S: Likewise.
75 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
77 * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
78 inet_makeaddr, inet_netof, inet_addr, __inet_addr.
79 * resolv/inet_ntop.c: Likewise.
80 * resolv/inet_pton.c: Likewise.
81 * inet/inet_mkadr.c: Add libc_hidden_def.
82 * inet/inet_netof.c: Likewise.
83 * resolv/inet_addr.c: Likewise.
85 * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
86 clauses from conditionals for now. Will have to be fixed later
89 * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
91 2002-08-02 Ulrich Drepper <drepper@redhat.com>
93 * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
94 broken alias attribute handling.
95 * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
97 2002-08-02 Roland McGrath <roland@frob.com>
99 * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
100 since it sets the variables we use in a -D switch.
102 2002-08-02 Roland McGrath <roland@redhat.com>
104 * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
105 On 32-bit platforms they are the same; on 64-bit platforms ssize_t
106 matches long int, not int.
108 * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
109 * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
110 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
111 * wctype/wctrans.c (wctrans): Likewise.
112 * wctype/wctype.c (__wctype): Likewise.
113 * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
115 2002-08-02 Ulrich Drepper <drepper@redhat.com>
117 * assert/assert.c (__assert_fail): Fix typo in comment.
119 * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
120 * sunrpc/rpc_thread.c: Define it without static.
121 * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
123 2002-08-02 Jakub Jelinek <jakub@redhat.com>
125 * assert/assert.c (__assert_fail): Remove undef.
126 Replace INTDEF with libc_hidden_def.
127 * assert/__assert.c (__assert): Remove INTUSE.
128 * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
130 * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
131 hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
132 libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
133 rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
134 libm_hiden_ver): Define.
135 * include/assert.h (__assert_fail_internal): Remove.
136 (__assert_fail): Add prototype. Add hidden_proto.
137 * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
139 * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
140 (__mbrtowc, __mbrlen): Use libc_hidden_proto. Remove macros.
141 * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
142 Add libc_hidden_proto.
143 * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
144 __fcntl): Add libc_hidden_proto. Remove macros.
145 (__open_internal, __fcntl_internal): Remove.
146 * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
147 * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
148 * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
150 * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
152 * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
154 * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
155 * sysdeps/generic/open.c (__open): Remove undef.
156 Add libc_hidden_def. Remove INTDEF.
157 * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
159 * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
160 * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
161 * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
162 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
163 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
164 (__libc_fcntl): Add libc_hidden_def.
165 * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
166 (__open): Remove INTDEF2. Add libc_hidden_weak.
167 (__libc_open): Add libc_hidden_def.
168 * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
169 * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
170 * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
172 * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
174 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
176 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
177 (__libc_fcntl): Add libc_hidden_def.
178 * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
179 __getpgid_internal, __chown_internal): Remove.
180 (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
181 __GI___sched_setscheduler, __GI___select, __GI___setpgid,
183 * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
184 __getpid_internal, __open_internal, __write_internal): Remove.
185 (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
186 __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
187 __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
188 __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
189 * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
190 Replace INTDEF with libc_hidden_def.
191 * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
192 * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
193 * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
194 * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
195 * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
196 Add libc_hidden_proto.
197 * include/sys/poll.h (__poll): Add libc_hidden_proto.
198 * include/sys/select.h (__select): Likewise.
199 * include/sys/socket.h (__send): Likewise.
200 * include/sys/statfs.h (__statfs): Likewise.
201 * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
202 __getpid, __getpgid, __setpgid, __close, __read, __write,
203 __getpagesize, __sbrk): Likewise.
204 (__chown_internal, __dup2_internal, __getpid_internal,
205 __getpgid_internal, __close_internal, __write_internal,
206 __getpagesize_internal): Remove.
207 (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
209 * include/printf.h (__printf_fp): Add libc_hidden_proto.
210 * include/sched.h (__sched_setscheduler): Likewise.
211 * include/resolv.h (__res_ninit, __res_randomid): Likewise.
212 * include/stdlib.h (__secure_getenv): Likewise.
213 * include/signal.h (__sigaction, __sigsuspend): Likewise.
214 * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
215 * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
216 * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
217 * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
218 * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
219 * inet/getproto_r.c (NSS_attribute_hidden): Remove.
220 * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
221 * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
222 * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
223 * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
224 * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
225 * inet/getservent_r.c (NSS_attribute_hidden): Remove.
226 * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
227 * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
228 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
229 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
230 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
231 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
232 * libio/genops.c (__overflow): Add libc_hidden_def.
233 * libio/iovdprintf.c: Remove libio.h include.
234 * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
235 libc_hidden_weak): Define to nothing if not defined.
236 (__overflow, __woverflow): Add libc_hidden_proto.
237 * libio/wgenops.c (__woverflow): Add libc_hidden_def.
238 * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
239 (DB_LOOKUP_FCT): Add libc_hidden_proto.
240 * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
241 (DB_LOOKUP_FCT): Add libc_hidden_proto.
242 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
244 * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
245 * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
246 (__getpgid): Add libc_hidden_proto.
247 (__bsd_getpgrp): Remove INTUSE.
248 * resolv/res_init.c (__res_ninit, __res_randomid): Add
250 * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
251 * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
252 * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
253 * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
254 * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
255 * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
256 __rpc_thread_createerr): Add libc_hidden_def.
257 * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
259 * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
260 * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
261 * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
262 * sysdeps/generic/chown.c (__chown): Likewise.
263 * sysdeps/generic/close.c (__close): Likewise.
264 * sysdeps/generic/dup2.c (__dup2): Likewise.
265 * sysdeps/generic/pipe.c (__pipe): Likewise.
266 * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
267 * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
268 * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
269 * sysdeps/generic/read.c (__libc_read): Likewise.
270 (__read): Add libc_hidden_weak.
271 * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
272 * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
273 * sysdeps/generic/select.c (__select): Likewise.
274 * sysdeps/generic/send.c (__send): Likewise.
275 * sysdeps/generic/setpgid.c (__setpgid): Likewise.
276 * sysdeps/generic/sigaction.c (__sigaction): Likewise.
277 * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
278 * sysdeps/generic/statfs.c (__statfs): Likewise.
279 * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
280 * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
281 * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
282 Remove undef and INTDEF.
283 * sysdeps/generic/getpgid.c (__getpgid): Likewise.
284 * sysdeps/generic/getpid.c (__getpid): Likewise.
285 * sysdeps/generic/write.c (__libc_write): Likewise.
286 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
287 * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
288 * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
289 * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
290 * sysdeps/mach/hurd/chown.c (__chown): Likewise. Remove INTDEF.
291 * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
292 Remove undef and INTDEF.
293 * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
294 * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
295 * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
296 * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
297 * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
298 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
299 * sysdeps/mach/hurd/pipe.c: Include unistd.h.
300 (__pipe): Add libc_hidden_def.
301 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
303 * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
304 * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
305 * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
306 (__read): Add libc_hidden_weak.
307 * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
308 (__libc_pwrite64): Add libc_hidden_def.
309 * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
310 * sysdeps/mach/hurd/select.c (__select): Likewise.
311 * sysdeps/mach/hurd/send.c (__send): Likewise.
312 * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
313 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
314 * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
315 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
316 * sysdeps/posix/dup2.c: Likewise.
317 Remove undef and INTDEF.
318 * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
319 * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
320 (__pwrite64): Add libc_hidden_weak.
321 * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
322 * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
323 * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
324 * sysdeps/standalone/close.c (__close): Likewise.
325 * sysdeps/standalone/write.c (__libc_write): Likewise.
326 (__write): Add libc_hidden_weak.
327 * sysdeps/standalone/read.c (__read): Likewise.
328 (__libc_read): Add libc_hidden_def.
329 * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
330 * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
331 * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
332 * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
333 * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
334 * sysdeps/unix/bsd/poll.c (__poll): Likewise.
335 * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
336 * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
337 * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
338 __GI___sigaction): Add.
339 * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
340 * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
341 * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
342 * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
343 * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
344 __GI___setpgid): Add.
345 * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
346 Remove undef and INTDEF.
347 * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
348 * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
349 * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
350 * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
351 * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
352 * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
353 * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
354 * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
355 * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
356 * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
357 * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
358 * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
359 * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
360 * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
361 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
362 __GI___statfs, __GI___send): Add.
363 * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
364 libc_hidden_ver resp. libc_hidden_def.
365 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
367 * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
368 Likewise. Remove undef and INTDEF.
369 * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
370 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
371 __GI___statfs, __GI___send): Add.
372 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
374 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
376 * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
377 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
378 libc_hidden_ver resp. libc_hidden_def.
379 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
381 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
382 Add libc_hidden_weak.
383 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
385 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
386 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
388 * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
389 resp. libc_hidden_def.
390 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
392 * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise. Remove
394 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
395 Likewise. Remove undef.
396 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
398 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
399 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
401 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
403 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
404 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
405 Likewise. Remove undef and INTDEF.
406 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
408 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
410 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
412 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
413 (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
414 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
416 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
418 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
420 * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
422 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
423 * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
424 Remove undef and INTDEF.
425 * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
426 * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
428 * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
429 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
431 * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
433 * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
434 * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
435 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
437 * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
438 libc_hidden_def. Remove undef and INTDEF.
439 * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
440 * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
442 * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
443 * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
444 * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
445 * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
446 Remove undef and INTDEF.
447 * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
448 broken visibility attribute handling.
449 * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
451 2002-08-02 Ulrich Drepper <drepper@redhat.com>
453 * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
454 Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
456 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
459 2002-06-29 Todd Fries <todd@openbsd.org>
461 * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
463 2002-08-02 Jakub Jelinek <jakub@redhat.com>
465 * include/errno.h: Don't include tls.h if _ISOMAC is defined.
467 2002-07-30 Roland McGrath <roland@redhat.com>
469 * resolv/resolv.h (_res): Define macro unconditionally.
470 [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
471 * include/resolv.h: ... here.
472 [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
473 as a __thread variable.
474 * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
475 a __thread variable instead of a global.
476 * resolv/res_data.c [_LIBC]: Don't #undef _res.
478 * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
481 * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
483 * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
484 decls of memset and memcpy.
486 * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
487 * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
489 * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
491 * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
492 (__libc_tsd_define): Define using __thread.
494 * sunrpc/rpc_thread.c: Use __libc_tsd_define.
495 (__rpc_thread_variables): Use __libc_tsd_get.
496 (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
497 __rpc_thread_variables, which might allocate what we're about to free.
499 * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
500 thread-local variable.
501 * resolv/netdb.h (h_errno): Define macro unconditionally.
502 [_LIBC] (__set_h_errno): Macro moved to ...
503 * include/netdb.h: ... here.
504 [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
505 [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
506 [! _LIBC_REENTRANT]: #undef h_errno here.
508 * include/errno.h: Protect from multiple inclusion.
510 * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
511 before defining them, since Linux's <linux/posix_types.h> might have
514 2002-08-02 Jakub Jelinek <jakub@redhat.com>
516 * malloc/malloc.c (public_cALLOc): Check for overflow on
518 * sunrpc/xdr_array.c (xdr_array): Likewise.
519 * sunrpc/rpc/types.h (mem_free): Add comment.
520 Patch by Solar Designer <solar@openwall.com>.
522 2002-08-02 Jakub Jelinek <jakub@redhat.com>
524 * sysdeps/unix/sysv/linux/kernel-features.h
525 (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
527 2002-08-01 Roland McGrath <roland@redhat.com>
529 * libio/fileops.c (_IO_file_sync_mmap): New function.
530 (_IO_file_jumps_mmap): Use it.
531 (_IO_file_underflow_mmap): Rewritten. If after EOF or fflush,
532 repeat the stat check and resize the mapped buffer as necessary.
534 2002-07-31 Roland McGrath <roland@redhat.com>
536 * libio/fileops.c (decide_maybe_mmap): New static function.
537 Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
538 mmap the file contents. Then switch the jump tables to the mmap
539 tables if it worked, or the vanilla file tables if not.
540 (_IO_file_underflow_maybe_mmap): New function.
541 (_IO_file_seekoff_maybe_mmap): New function.
542 (_IO_file_xsgetn_maybe_mmap): New function.
543 (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
544 * libio/libioP.h: Declare those.
545 * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
546 (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
547 * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
548 If the stream is read-only, set its jump tables to those new ones.
549 * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
550 jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
551 We need the tables set before _IO_file_attach.
553 * libio/tst-mmap-eofsync.c: New file.
554 * libio/tst-mmap-fflushsync.c: New file.
555 * libio/bug-mmap-fflush.c: New file.
556 * libio/tst-mmap2-eofsync.c: New file.
557 * libio/Makefile (tests): Add them.
559 * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
560 _IO_file_underflow_mmap fails, it already set the appropriate bit.
562 2002-07-31 Jeff Bailey <jbailey@gnu.org>
564 * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
565 Declarations moved to <bits/sys_errlist.h>. Include that file.
566 * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
567 * sysdeps/generic/bits/sys_errlist.h: New file. This does *not*
568 declare sys_errlist and sys_nerr.
569 * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file. Does
570 provide declarations.
572 2002-07-31 Roland McGrath <roland@redhat.com>
574 * elf/rtld.c (dl_main): Fix typo in error message.
576 2002-07-31 Roland McGrath <roland@frob.com>
578 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
579 __xstat -> __xstat64, __lseek -> __libc_lseek64. Completes 2002-06-09
580 sysdeps/mach/hurd/dl-sysdep.c change.
582 2002-07-28 Ulrich Drepper <drepper@redhat.com>
584 * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
585 -r`/build/include for kernel headers.
587 * po/fi.po: New file.
589 2002-07-15 Alexandre Oliva <aoliva@redhat.com>
591 * configure.in (static_nss): Set to `yes' if --disable-shared.
593 2002-07-23 Bruno Haible <bruno@clisp.org>
595 * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
598 2002-07-25 Jakub Jelinek <jakub@redhat.com>
600 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
601 * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
604 2002-07-25 Jakub Jelinek <jakub@redhat.com>
606 * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
609 2002-07-21 Bruno Haible <bruno@clisp.org>
611 * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
612 * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
613 sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
614 trans_sysdep_tab_offset.
615 (struct sysdep_segment): New type.
616 (struct sysdep_string): New type.
617 (SEGMENTS_END): New macro.
618 * intl/gettextP.h (struct sysdep_string_desc): New type.
619 (struct loaded_domain): New fields malloced, n_sysdep_strings,
620 orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
621 orig_tab, trans_tab, hash_tab to const pointers because they point
622 into read-only memory.
623 * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
624 (PRI*): Define fallback values.
625 (get_sysdep_segment_value): New function.
626 (_nl_load_domain): Distinguish major and minor revision parts. Add
627 support for minor revision 1 with system dependent strings.
628 (_nl_unload_domain): Also free the 'malloced' field.
629 * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
630 now done in loadmsgcat.c. Add support for system dependent strings.
632 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
634 * posix/bug-regex7.c: New file.
635 * posix/bug-regex8.c: New file.
636 * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
638 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
640 * posix/bug-regex4.c (main): Fix typos.
641 * posix/bug-regex6.c (main): Likewise.
643 2002-07-27 Ulrich Drepper <drepper@redhat.com>
645 * posix/bug-regex6.c (main): Fix warnings.
647 * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
649 * iconv/iconv_prog.c (main): Improve error message for the cases
650 where -t and/or -f parameter are missing.
652 2002-07-10 Stepan Kasal <kasal@math.cas.cz>
654 * posix/regexec.c (re_match): Reorganize to remove duplicate code.
655 (re_search): Likewise.
656 (re_match_2): Likewise.
657 (re_search_2): Likewise.
658 (re_search_stub): New function.
659 (re_search_2_stub): New function.
660 * regcomp.c (re_compile_pattern): Typo in a comment fixed.
662 2002-07-10 Isamu Hasegawa <isamu@yamato.ibm.com>
664 * posix/regex_internal.h: Add new member STOP to struct re_string_t.
665 (re_string_eoi): Use STOP instead of LEN.
666 * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
667 (re_string_construct): Likewise.
668 (re_string_reconstruct): Adjust pstr->stop like pstr->len.
669 * posix/regexec.c (re_search_internal): Add a new argument STOP
670 so that it can handle the argument STOP of re_search_2 and re_match_2
672 (regexec): Adapt to new I/F of re_search_internal.
673 (re_search_stub): Likewise.
675 2002-07-25 Ulrich Drepper <drepper@redhat.com>
677 * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
679 * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
681 * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
682 * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
685 * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
686 * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
687 * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
688 alias for adjtimex syscall.
690 * elf/dl-minimal.c: Define __assert_fail_internal.
691 * assert/assert.c: Likewise.
692 * include/assert.h: Define __assert_file macro if !SHARED and not
695 * iconv/Makefile: Define NOT_IN_libc for objects in standalone
697 * locale/Makefile: Likewise.
698 * nscd/Makefile: Likewise.
699 * catgets/Makefile: Likewise.
701 2002-07-24 Ulrich Drepper <drepper@redhat.com>
703 * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
704 compute current position.
706 * stdio-common/tst-fseek.c (main): Improve error messages.
708 * libio/tst-freopen.c (main): Remove unused variable.
710 * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
711 succesful seek call. Simplify error checking.
713 2002-07-25 Jakub Jelinek <jakub@redhat.com>
715 * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
716 * sysdeps/ia64/fpu/libm_support.h: Likewise.
718 2002-07-19 Roland McGrath <roland@frob.com>
720 * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
721 __libc_enable_secure is set.
723 2002-07-24 Roland McGrath <roland@frob.com>
725 Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
726 This implementation supports only IPv4.
727 * inet/ifaddrs.h: New file.
728 * sysdeps/generic/ifaddrs.c: New file.
729 * sysdeps/gnu/ifaddrs.c: New file.
730 * inet/test-ifaddrs.c: New file.
731 * inet/Makefile (routines): Add ifaddrs.
732 (headers): Add ifaddrs.h here.
733 (tests): Add test-ifaddrs.
734 * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
736 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
737 socket call to get an AF_INET socket, instead of using __opensock.
738 The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
740 * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
741 if not -1 use it instead of calling __opensock.
742 * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
743 * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
744 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
746 * sysdeps/mach/hurd/ifreq.h: New file.
747 * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
748 * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
749 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
751 * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
752 which gets moved around. Calculate size of mmap'd buffer instead.
754 2002-07-24 Philip Blundell <philb@gnu.org>
756 * sysdeps/unix/arm/brk.S: Improve schedule.
757 * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
758 efficient instruction.
759 (__socket): Optimize return sequence.
761 2002-07-24 Ulrich Drepper <drepper@redhat.com>
763 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
764 sockets on old kernels.
766 2002-07-22 Philip Blundell <philb@gnu.org>
768 * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
769 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
772 2002-07-24 Ulrich Drepper <drepper@redhat.com>
774 * locale/hashval.h: Make more self-contained by defining LONG_BITS.
775 * locale/programs/simple-hash.c: Remove LONG_BITS definition.
777 * locale/programs/locarchive.c (add_locale_to_archive): Correct
778 test to detect duplicate locales.
780 * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
781 position would be before beginning of file.
782 (_IO_file_seekoff_mmap): Likewise.
783 * libio/Makefile (tests): Add bug-fseek.
784 * libio/bug-fseek.c: New file.
786 * intl/explodename.c: Remove support for CEN-style locale variables.
787 It was never used and shouldn't be since it's not portable.
788 * intl/finddomain.c: Likewise.
789 * intl/l10nflist.c: Likewise.
790 * intl/loadinfo.h: Likewise.
791 * locale/findlocale.c: Likewise.
793 2002-07-24 Roland McGrath <roland@frob.com>
795 * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
796 position, calculate it to take into account an active pushback buffer.
798 * libio/Makefile (tests): Add bug-ungetc.
799 * libio/bug-ungetc.c: New file.
801 2002-07-23 Ulrich Drepper <drepper@redhat.com>
803 * sysdeps/generic/libc-tls.c: New file.
804 * csu/Makefile (routines): Add libc-tls.
805 (static-only-routines): Add libc-tls.
806 * elf/dl-support.c (_dl_phdr): New variable.
807 (_dl_phnum): New variable.
808 (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
809 * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
810 for !SHARED. First look through auxiliary vector. If TLS always
811 call __pthread_initialize_minimal.
813 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
814 in mmap call is never zero.
816 2002-07-23 Andreas Jaeger <aj@suse.de>
818 * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
819 * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
821 2002-07-22 Ulrich Drepper <drepper@redhat.com>
823 * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
824 creation and removal of the temp file.
826 * libio/bug-rewind.c: Use test skeleton. Use create_temp_file for
828 * test-skeleton.c (create_temp_file): New function.
830 2002-07-22 Andreas Jaeger <aj@suse.de>
832 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
835 2002-07-21 Roland McGrath <roland@frob.com>
837 * wcsmbs/Makefile (strtox-CFLAGS): New variable,
838 put -I../include before -I../stdlib so we get the right errno.h et al.
839 (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
840 (CFLAGS-wcstof.c): Likewise.
841 (CFLAGS-wcstold.c): Likewise.
842 (CFLAGS-wcstod_l.c): Likewise.
843 (CFLAGS-wcstof_l.c): Likewise.
844 (CFLAGS-wcstold_l.c): Likewise.
846 2002-07-19 Roland McGrath <roland@frob.com>
848 * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
850 2002-07-20 Ulrich Drepper <drepper@redhat.com>
852 * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
853 __ASSUME_AT_XID is defined.
854 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
856 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
857 of AT_UID, AT_EUID, AT_GID, and AT_EGID.
859 * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
860 (CFLAGS-wcstof.c): Likewise.
861 (CFLAGS-wcstold.c): Likewise.
862 (CFLAGS-wcstod_l.c): Likewise.
863 (CFLAGS-wcstof_l.c): Likewise.
864 (CFLAGS-wcstold_l.c): Likewise.
866 2002-07-18 Jakub Jelinek <jakub@redhat.com>
868 * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
869 __priority_which_t): Always typedef to int for C++.
871 2002-07-19 Ulrich Drepper <drepper@redhat.com>
873 * configure.in: Add test for __thread support in compiler.
874 * config.h.in: Add HAVE___THREAD.
875 * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
876 * include/sys/errno.h: Moved to...
877 * stdlib/sys/errno.h: ...here. New file.
878 * stdlib/errno.h: New file. Moved from...
879 * include/errno.h: ...here. Changed into an internal header defining
880 libc-local things like __set_errno.
881 * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
883 * elf/dl-minimal.c: Include <tls.h>. Define errno as thread-local
884 variable if USE_TLS && HAVE___THREAD. Don't define __errno_location
886 * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
888 (_dl_start_final): ...here. Add code to initialize tls elements from
890 * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
891 if USE_TLS && HAVE___THREAD.
892 * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
893 * sysdeps/mach/hurd/bits/errno.h: Likewise.
894 * sysdeps/standalone/arm/bits/errno.h: Likewise.
895 * sysdeps/standalone/bits/errno.h: Likewise.
896 * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
897 * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
898 * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
899 * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
900 * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
901 * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
902 * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
903 * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
904 use GL(dl_rtld_map), use map parameter.
905 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
906 * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
907 USE_TLS && HAVE___THREAD.
908 * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
909 definitions. If USE_TLS && HAVE___THREAD store errooor value using
911 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
913 * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
914 * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
915 * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
916 * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
917 * sysdeps/unix/sysv/linux/readv.c: Likewise.
918 * sysdeps/unix/sysv/linux/writev.c: Likewise.
920 2002-07-17 Ulrich Drepper <drepper@redhat.com>
922 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
923 MS_INVALIDATE values.
925 2002-07-17 Andreas Schwab <schwab@suse.de>
926 Ulrich Drepper <drepper@redhat.com>
928 * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
929 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
930 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
931 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
933 2002-07-01 H.J. Lu <hjl@gnu.org>
935 * elf/circleload1.c (load_dso): Call "circlemod1" and check
938 * elf/circlemod1.c (circlemod1): Return int.
939 * elf/circlemod2.c (circlemod2): Likewise.
940 * elf/circlemod2a.c (circlemod2): Likewise.
941 * elf/circlemod3.c (circlemod3): Likewise.
942 (circlemod3a): A new function.
944 2002-07-16 Ulrich Drepper <drepper@redhat.com>
946 * catgets/tst-catgets.c (main): Don't expect results for
947 untranslated messages.
949 * glibcbug.in: Fix little typo. Remove STDIO.
951 * config.h.in: Fail if __FAST_MATH__ is defined.
952 * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
953 (CPPFLAGS-test-idouble.c): Likewise.
954 (CPPFLAGS-test-ildouble.c): Likewise.
956 2002-07-15 Ulrich Drepper <drepper@redhat.com>
958 * intl/tst-gettext.sh: Pass -f option to msgfmt.
959 * intl/tst-gettext.c: Correctly handle untranslated messages in
962 * po/de.po: Update from translation team.
964 2002-07-02 H.J. Lu <hjl@gnu.org>
966 * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>. Always
968 * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
970 * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
973 2002-07-15 Ulrich Drepper <drepper@redhat.com>
975 * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
976 TLS fail if USE_TLS is not defined.
978 * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
979 and adjust state for seek position. [PR libc/4070]
980 * libio/Makefile (tests): Add bug-rewind.
981 * libio/bug-rewind.c: New file.
983 2002-07-12 Philip Blundell <philb@gnu.org>
985 * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
986 (__backtrace): Use it.
987 * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define. [PR libc/2632]
989 2002-07-12 Philip Blundell <philb@gnu.org>
991 * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
992 R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
993 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
994 (elf_machine_rela): Remove unused variable.
996 * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
997 (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
1000 2002-07-12 Ulrich Drepper <drepper@redhat.com>
1002 * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
1004 2002-07-14 Andreas Jaeger <aj@suse.de>
1006 * sysdeps/x86_64/bits/link.h: Add biarch support.
1008 2002-07-13 Andreas Jaeger <aj@suse.de>
1010 * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
1011 Use correct indices.
1012 Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
1014 2002-07-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1016 * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
1017 * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
1018 * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
1019 * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
1020 * sysdeps/s390/s390-32/bits/link.h: Remove.
1021 * sysdeps/s390/s390-64/bits/link.h: Remove.
1022 * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
1023 * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
1024 * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
1025 * sysdeps/s390/bits/wordsize.h: New file.
1026 * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
1028 * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
1029 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
1030 * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
1031 * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
1032 * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
1033 * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
1034 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
1035 * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
1036 * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
1037 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
1038 * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
1039 * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
1041 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
1042 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
1043 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
1044 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
1045 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
1046 * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
1047 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
1049 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
1050 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
1052 * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
1053 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
1054 * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
1056 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
1057 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
1058 * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
1059 * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
1060 * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
1061 * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
1062 * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
1063 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
1065 * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
1066 * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
1067 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
1069 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
1070 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
1072 2002-07-11 Ulrich Drepper <drepper@redhat.com>
1074 * Versions.def (libc): Add GLIBC_2.3.
1075 * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
1076 * stdlib/canonicalize.c: Add compatibility version for realpath
1077 and make new code available in GLIBC_2.3.
1079 2002-07-06 Bruno Haible <bruno@clisp.org>
1081 * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
1083 2002-07-11 Ulrich Drepper <drepper@redhat.com>
1085 * resolv/res_hconf.c (_res_hconf_init): Move code into new
1086 function do_init. Use __libc_once.
1087 (do_init): New function.
1089 * iconvdata/iso8859-11.h: Removed.
1090 * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
1091 (distribute): Remove iso8859-11.h.
1092 * iconvdata/tst-tables.sh: Add ISO-8859-11.
1094 * stdio-common/vfscanf.c (inchar): Restore errno from previous
1095 underflow operation if c == (W)EOF.
1097 2002-07-03 Jakub Jelinek <jakub@redhat.com>
1099 * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
1100 non-zero, adjust exponent.
1101 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
1102 Remove NO_LONG_DOUBLE aliases.
1103 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
1104 * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
1105 (__log1pl): Raise divide by zero and invalid exceptions when needed.
1106 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
1108 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
1109 Fix BITS_PER_MP_LIMB 32 extraction.
1110 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
1111 exceptions for qNaNs.
1112 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
1113 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
1114 Raise exceptions when needed. Don't recurse unnecessarily.
1115 Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
1116 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
1117 exceptions for qNaNs.
1118 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
1119 to fix *quo return value sign.
1120 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
1122 * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
1124 2002-07-01 Jakub Jelinek <jakub@redhat.com>
1126 * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
1127 * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
1130 2002-07-10 Ulrich Drepper <drepper@redhat.com>
1132 * malloc/hooks.c (realloc_check): If mremap succeeds actually use
1135 * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
1136 output parameter. Reported by Denis Zaitsev <zzz@cd-club.ru>.
1138 * Versions.def (libthread_db): Add GLIBC_2.3.
1140 2002-07-09 Jakub Jelinek <jakub@redhat.com>
1142 * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
1143 new stream if possible.
1144 * libio/freopen64.c (freopen64): Likewise.
1145 * libio/Makefile (tests): Add tst-freopen.
1146 * libio/tst-freopen.c: New file.
1148 2002-07-03 Jakub Jelinek <jakub@redhat.com>
1150 * libio/stdio.h (obstack_printf): Add format attribute.
1151 (obstack_vprintf): Likewise.
1153 2002-07-04 Jakub Jelinek <jakub@redhat.com>
1155 * posix/regex_internal.h (re_token_t): Shrink the structure to 8
1156 resp. 16 bytes on 32-bit resp. 64-bit platforms.
1157 (re_charset_t, re_string_t): Reorder structure members for 64-bit
1160 2002-07-04 Jakub Jelinek <jakub@redhat.com>
1162 * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
1163 (init_dfa): ...here.
1165 2002-07-05 Isamu Hasegawa <isamu@yamato.ibm.com>
1167 * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
1168 OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
1169 nodes in parse trees.
1170 (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
1171 and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
1172 (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
1173 nodes which can epsilon transit.
1174 * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
1175 to IS_EPSILON_NODE macro.
1176 * posix/regexec.c (update_regs): New function to update registers
1177 by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
1178 (proceed_next_node): Use the entities of the nodes to determine
1179 whether the node can transit to.
1180 (set_regs): Use update_regs function to update registers.
1182 2002-07-03 Jakub Jelinek <jakub@redhat.com>
1184 * posix/bug-regex4.c (main): Remove duplicate setlocale.
1185 * posix/bug-regex6.c: New file.
1186 * posix/Makefile (tests): Add bug-regex6.
1187 (bug-regex6-ENV): Set LOCPATH.
1189 2002-07-10 Ulrich Drepper <drepper@redhat.com>
1191 * Versions.def [libpthread]: Add GLIBC_2.2.6.
1192 * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
1194 2002-07-06 Bruno Haible <bruno@clisp.org>
1196 * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
1198 2002-07-06 Bruno Haible <bruno@clisp.org>
1200 * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
1203 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
1205 * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
1207 * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
1209 * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
1211 * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
1212 * sysdeps/generic/bits/ustat.h: Likewise.
1214 * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
1216 2002-07-08 Andreas Jaeger <aj@suse.de>
1218 * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
1220 2002-07-08 Andreas Jaeger <aj@suse.de>
1222 * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
1224 2002-07-06 Andreas Jaeger <aj@suse.de>
1226 * sysdeps/x86_64/fpu/bits/mathinline.h: New.
1227 * sysdeps/x86_64/fpu/s_copysign.S: New.
1228 * sysdeps/x86_64/fpu/s_copysignf.S: New.
1229 * sysdeps/x86_64/fpu/s_copysignl.S: New.
1230 * sysdeps/x86_64/fpu/s_finitel.S: New.
1231 * sysdeps/x86_64/fpu/s_fmax.S: New.
1232 * sysdeps/x86_64/fpu/s_fmaxf.S: New.
1233 * sysdeps/x86_64/fpu/s_fmaxl.S: New.
1234 * sysdeps/x86_64/fpu/s_fmin.S: New.
1235 * sysdeps/x86_64/fpu/s_fminf.S: New.
1236 * sysdeps/x86_64/fpu/s_fminl.S: New.
1238 2002-06-05 Brian Youmans <3diff@gnu.org>
1240 * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
1241 * sysdeps/ia64/fpu/e_acosf.S: Likewise.
1242 * sysdeps/ia64/fpu/e_acosl.S: Likewise.
1243 * sysdeps/ia64/fpu/e_asin.S: Likewise.
1244 * sysdeps/ia64/fpu/e_asinf.S: Likewise.
1245 * sysdeps/ia64/fpu/e_asinl.S: Likewise.
1246 * sysdeps/ia64/fpu/e_atan2.S: Likewise.
1247 * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
1248 * sysdeps/ia64/fpu/e_cosh.S: Likewise.
1249 * sysdeps/ia64/fpu/e_coshf.S: Likewise.
1250 * sysdeps/ia64/fpu/e_coshl.S: Likewise.
1251 * sysdeps/ia64/fpu/e_exp.S: Likewise.
1252 * sysdeps/ia64/fpu/e_expf.S: Likewise.
1253 * sysdeps/ia64/fpu/e_fmod.S: Likewise.
1254 * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
1255 * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
1256 * sysdeps/ia64/fpu/e_hypot.S: Likewise.
1257 * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
1258 * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
1259 * sysdeps/ia64/fpu/e_log.S: Likewise.
1260 * sysdeps/ia64/fpu/e_logf.S: Likewise.
1261 * sysdeps/ia64/fpu/e_pow.S: Likewise.
1262 * sysdeps/ia64/fpu/e_powf.S: Likewise.
1263 * sysdeps/ia64/fpu/e_powl.S: Likewise.
1264 * sysdeps/ia64/fpu/e_remainder.S: Likewise.
1265 * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
1266 * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
1267 * sysdeps/ia64/fpu/e_scalb.S: Likewise.
1268 * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
1269 * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
1270 * sysdeps/ia64/fpu/e_sinh.S: Likewise.
1271 * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
1272 * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
1273 * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
1274 * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
1275 * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
1276 * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
1277 * sysdeps/ia64/fpu/libm_error.c: Likewise.
1278 * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
1279 * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
1280 * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
1281 * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
1282 * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
1283 * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
1284 * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
1285 * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
1286 * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
1287 * sysdeps/ia64/fpu/s_log1p.S: Likewise.
1288 * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
1289 * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
1290 * sysdeps/ia64/fpu/s_logb.S: Likewise.
1291 * sysdeps/ia64/fpu/s_logbf.S: Likewise.
1292 * sysdeps/ia64/fpu/s_logbl.S: Likewise.
1293 * sysdeps/ia64/fpu/s_modf.S: Likewise.
1294 * sysdeps/ia64/fpu/s_modff.S: Likewise.
1295 * sysdeps/ia64/fpu/s_modfl.S: Likewise.
1296 * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
1297 * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
1298 * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
1299 * sysdeps/ia64/fpu/s_rint.S: Likewise.
1300 * sysdeps/ia64/fpu/s_rintf.S: Likewise.
1301 * sysdeps/ia64/fpu/s_rintl.S: Likewise.
1302 * sysdeps/ia64/fpu/s_round.S: Likewise.
1303 * sysdeps/ia64/fpu/s_roundf.S: Likewise.
1304 * sysdeps/ia64/fpu/s_roundl.S: Likewise.
1305 * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
1306 * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
1307 * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
1308 * sysdeps/ia64/fpu/s_significand.S: Likewise.
1309 * sysdeps/ia64/fpu/s_significandf.S: Likewise.
1310 * sysdeps/ia64/fpu/s_significandl.S: Likewise.
1311 * sysdeps/ia64/fpu/s_tan.S: Likewise.
1312 * sysdeps/ia64/fpu/s_tanf.S: Likewise.
1313 * sysdeps/ia64/fpu/s_tanl.S: Likewise.
1314 * sysdeps/ia64/fpu/s_trunc.S: Likewise.
1315 * sysdeps/ia64/fpu/s_truncf.S: Likewise.
1316 * sysdeps/ia64/fpu/s_truncl.S: Likewise.
1317 * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
1318 reflect IBM donation of math library to FSF
1319 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1320 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1321 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1322 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1323 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1324 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1325 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1326 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1327 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1328 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1329 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1330 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
1331 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
1332 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
1333 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
1334 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
1335 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1336 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1337 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1338 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
1339 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
1340 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
1341 * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
1342 * sysdeps/vax/__longjmp.c: Likewise.
1343 * sysdeps/vax/setjmp.c: Likewise.
1344 * libio/filedoalloc.c: Fixed BSD copying permission notice to
1345 remove advertising clause
1346 * sysdeps/vax/htonl.s: Likewise.
1347 * sysdeps/vax/htons.s: Likewise.
1348 * libio/wfiledoalloc.c: Likewise.
1349 * stdlib/random.c: Likewise.
1350 * stdlib/random_r.c: Likewise.
1351 * sysdeps/mach/sys/reboot.h: Likewise.
1352 * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
1353 * sysdeps/posix/getaddrinfo.c: Likewise.
1354 * sunrpc/des_impl.c: Updated license permission notice to Lesser
1355 GPL and corrected pointer to point to the correct license.
1357 2002-07-04 Andreas Jaeger <aj@suse.de>
1359 * scripts/config.guess: New upstream version.
1360 * scripts/config.sub: Likewise.
1362 2002-07-02 Andreas Schwab <schwab@suse.de>
1364 * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
1365 in parallel to bumping up the buffer pointer.
1367 2002-07-01 Jakub Jelinek <jakub@redhat.com>
1369 * math/libm-test.inc (acos_test): Add missing L suffix for
1371 (cpow_test): Likewise.
1372 * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
1373 error for acos (0.0625).
1375 2002-06-30 Ulrich Drepper <drepper@redhat.com>
1377 * locale/iso-639.def: Add entry for Ganda.
1378 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
1380 (address_finish): Handle entries with two letter ISO 639 code.
1382 * iconvdata/Makefile: Recreate gconv-modules.cache file in target
1383 directory if it existed before.
1384 * iconv/iconvconfig.c: Implement --prefix option.
1386 * math/libm-test.inc (cexp_test): Add missing L suffix for
1387 expected result. Reported by Stephen L Moshier <steve@moshier.net>.
1388 * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
1391 2002-05-29 H.J. Lu <hjl@gnu.org>
1393 * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
1396 2002-05-28 H.J. Lu <hjl@gnu.org>
1398 * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
1399 are not dlopened on the dependency list of a dlopened object.
1401 2002-06-30 Ulrich Drepper <drepper@redhat.com>
1403 * elf/dl-lookup.c (add_dependency): It is not necessary to add
1404 dependencies if they are created between objects which are created
1405 while processing RTLD_NOW for objects loaded as part of the same
1408 2002-06-14 H.J. Lu <hjl@gnu.org>
1410 * elf/Makefile (tests): Add circleload1.
1411 (modules-names): Add circlemod1, circlemod2, circlemod3,
1412 circlemod1a, circlemod2a and circlemod3a.
1413 ($(objpfx)circleload1): New target.
1414 ($(objpfx)circleload1.out): Likewise.
1415 ($(objpfx)circlemod1.so): Likewise.
1416 ($(objpfx)circlemod2.so): Likewise.
1417 ($(objpfx)circlemod1a.so): Likewise.
1418 ($(objpfx)circlemod2a.so): Likewise.
1419 * elf/circleload1.c: New file.
1420 * elf/circlemod1.c: New file.
1421 * elf/circlemod1a.c: New file.
1422 * elf/circlemod2.c: New file.
1423 * elf/circlemod2a.c: New file.
1424 * elf/circlemod3.c: New file.
1425 * elf/circlemod3a.c: New file.
1427 2002-06-18 Amos Waterland <apw@us.ibm.com>
1429 * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
1431 * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
1432 add check for fd not open for writing.
1434 * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
1435 completed element(s) and do not suspend thread if so. Patch
1436 heavily modified by drepper.
1438 * rt/tst-aio7.c: New file. Regression test for problems which the
1439 above three changes fix.
1440 * rt/Makefile (tests): Add tst-aio7.
1442 2002-06-29 Ulrich Drepper <drepper@redhat.com>
1444 * rt/tst-aio6.c: Fix comment.
1446 * catgets/gencat.c (read_input_file): Handle more than one slash
1447 at end of line correctly [PR libc/3926].
1448 Based on a patch by Steven Kim <steven.kim@peregrine.com>.
1450 * catgets/sample.SJIS: Add test case for above bug.
1451 * catgets/test-gencat.c: Adjust test code.
1452 * catgets/test-gencat.sh: Adjust expected results.
1454 * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
1455 to skip relative relocations.
1456 Patch by Geoff Keating <geoffk@redhat.com>.
1458 2002-05-26 Bruno Haible <bruno@clisp.org>
1460 * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
1461 (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
1462 All callers changed.
1463 * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
1464 STANDARD_FROM_LOOP_ERR_HANDLER.
1465 (utf8_internal_loop): Likewise.
1466 (ucs2_internal_loop): Likewise.
1467 (internal_ucs2_loop): Perform error handling like in
1468 STANDARD_FROM_LOOP_ERR_HANDLER.
1469 * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
1470 in STANDARD_FROM_LOOP_ERR_HANDLER.
1471 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
1473 * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
1474 in STANDARD_FROM_LOOP_ERR_HANDLER.
1475 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
1477 * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
1478 in STANDARD_FROM_LOOP_ERR_HANDLER.
1479 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
1481 * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
1482 STANDARD_FROM_LOOP_ERR_HANDLER.
1483 * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
1484 * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
1485 * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
1486 * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
1487 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
1488 * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
1489 * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
1490 * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
1491 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
1492 * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
1493 * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
1494 * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
1495 * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
1496 * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
1497 * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
1498 * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
1499 * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
1500 * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
1501 * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
1502 * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
1503 * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
1504 * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
1505 * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
1506 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
1507 * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
1508 * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
1509 * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
1510 * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
1511 * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise. When ignoring
1512 an error, still set result = __GCONV_ILLEGAL_INPUT.
1513 (BODY for TO_LOOP): Likewise.
1514 * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
1515 STANDARD_FROM_LOOP_ERR_HANDLER.
1516 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
1517 * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
1518 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
1520 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
1521 * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
1522 STANDARD_FROM_LOOP_ERR_HANDLER.
1523 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
1524 * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
1525 STANDARD_FROM_LOOP_ERR_HANDLER.
1526 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
1527 * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
1528 STANDARD_FROM_LOOP_ERR_HANDLER.
1529 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
1530 * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
1531 STANDARD_FROM_LOOP_ERR_HANDLER.
1532 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
1533 * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
1534 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
1536 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
1537 * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
1538 * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
1539 * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
1541 2002-06-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1543 * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
1544 labels in assembler instructions.
1546 2002-06-25 Ulrich Drepper <drepper@redhat.com>
1548 * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
1549 not enough content is available.
1550 * libio/tst-eof.c: New file.
1551 * libio/Makefile (tests): Add tst-eof.
1553 * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
1555 * libio/tst-atime.c: New file.
1556 * libio/Makefile (tests): Add tst-atime.
1558 * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
1559 handling of overly long words.
1561 2002-06-25 Andreas Jaeger <aj@suse.de>
1563 * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
1564 to not use 32-bit pc relative relocations.
1565 (elf_machine_dynamic): Likewise.
1567 2002-06-21 Ulrich Drepper <drepper@redhat.com>
1569 * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
1570 (__GETDENTS): Check for failed getdents64 syscall.
1571 * dirent/Makefile (tests): Add bug-readdir1.
1572 * dirent/bug-readdir1.c: New file.
1574 2002-06-17 Jakub Jelinek <jakub@redhat.com>
1576 * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
1578 * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
1579 code. Print TLS modid and offset for modules containing PT_TLS
1582 2002-06-09 Jakub Jelinek <jakub@redhat.com>
1584 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
1585 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
1586 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
1587 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
1589 2002-06-07 Jakub Jelinek <jakub@redhat.com>
1591 * nss/getXXbyYY_r.c (NEW, NEW1): Define.
1592 (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
1593 (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
1594 * nss/getXXent_r.c (NEW, NEW1): Define.
1595 (NEW (REENTRANT_GETNAME)): Strong alias to
1596 INTERNAL (REENTRANT_GETNAME).
1597 (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
1599 2002-06-21 Ulrich Drepper <drepper@redhat.com>
1601 * libio/fileops.c (_IO_file_setbuf_mmap): New function.
1602 (_IO_file_jumps_mmap): Use it.
1603 * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
1604 * libio/libioP.h: Remove _IO_wdefault_setbuf and
1605 _IO_wdefault_setbuf_internal prorotypes. Add _IO_file_setbuf_mmap
1607 * libio/wfileops.c (_IO_wfile_setbuf): Removed.
1608 (_IO_wfile_jumps_mmap): Don't use it anymore.
1609 * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
1610 * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
1611 _IO_wdefault_setbuf.
1612 * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
1613 * libio/wstrops.c (_IO_wstr_jumps): Likewise.
1614 * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
1616 2002-06-05 Jakub Jelinek <jakub@redhat.com>
1618 * libio/Makefile (tests): Add tst-mmap-setvbuf.
1619 * libio/tst-mmap-setvbuf.c: New test.
1621 2002-06-21 Andreas Jaeger <aj@suse.de>
1623 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
1625 2002-06-18 Jakub Jelinek <jakub@redhat.com>
1627 * include/unistd.h (__fork_internal): Remove.
1628 (__fork): Don't define to __fork_internal.
1629 * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
1630 * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
1631 * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
1632 * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
1633 * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
1635 2002-06-20 Ulrich Drepper <drepper@redhat.com>
1637 * po/hr.po: New file.
1639 2002-06-11 Wolfram Gloger <wg@malloc.de>
1641 * malloc/malloc.c: Fix error path when new_heap() returns NULL.
1642 Reported by Michael Meissner <meissner@redhat.com>.
1644 2002-06-20 Ulrich Drepper <drepper@redhat.com>
1646 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
1647 Patch by Hans Boehm <hans_boehm@hp.com>.
1649 2002-06-20 Andreas Jaeger <aj@suse.de>
1651 * math/libm-test.inc: Use exact values as input parameters,
1652 compute output parameters with 36 digits for 128-bit long doubles.
1653 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
1654 * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
1655 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
1657 2002-06-13 Stephen L Moshier <steve@moshier.net>
1659 * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
1660 argument or result is subnormal.
1662 2002-06-19 Ulrich Drepper <drepper@redhat.com>
1664 * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
1666 * sysdeps/i386/fpu/s_remquof.S: Likewise.
1667 * sysdeps/i386/fpu/s_remquol.S: Likewise.
1669 * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
1671 2002-06-17 David Mosberger <davidm@hpl.hp.com>
1673 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
1674 typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
1675 Reported by Peter A. Buhr.
1677 2002-06-15 Roland McGrath <roland@frob.com>
1679 * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
1682 * sysdeps/mach/hurd/getcwd.c
1683 (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
1685 * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
1686 * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
1688 * sysdeps/alpha/divrem.h: Use local label instead of global one for
1689 jump to local subroutine.
1691 2002-06-14 Roland McGrath <roland@frob.com>
1693 * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
1694 * sysdeps/mach/hurd/Makeconfig: ... here.
1696 2002-06-13 Andreas Schwab <schwab@suse.de>
1698 * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
1699 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
1700 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
1702 2002-06-13 Roland McGrath <roland@frob.com>
1704 * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
1705 * hurd/hurdstartup.c (_hurd_startup): Likewise.
1706 Use intptr_t instead of int for argc in stack layout.
1707 * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
1708 (_dl_init_first): Likewise.
1709 (_hurd_stack_setup): Likewise.
1710 (init1): Add a cast.
1711 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
1713 * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
1714 argument to pfinet_siocgifconf RPC.
1716 2002-06-13 Andreas Schwab <schwab@suse.de>
1718 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
1721 2002-06-12 Roland McGrath <roland@frob.com>
1723 * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
1725 [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
1726 [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
1728 2002-06-11 Roland McGrath <roland@frob.com>
1730 * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
1731 file on [!RTLD_STAT64].
1732 * sysdeps/mach/hurd/fxstat64.c: Likewise.
1734 * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
1735 (__fdopen): Use INTUSE.
1736 * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
1738 * stdio-common/tmpfile64.c: File removed.
1739 * sysdeps/generic/tmpfile64.c: New file.
1740 * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
1741 if not already defined.
1742 (tmpfile): Use it in place of __GT_FILE.
1744 * include/unistd.h: Declare __chown_internal.
1746 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
1747 * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
1749 2002-06-09 Roland McGrath <roland@frob.com>
1751 Update to new Hurd RPC interfaces supporting 64-bit file sizes.
1752 * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
1753 value of HURD_INTERFACE_VERSION >= 20020609.
1754 * sysdeps/mach/hurd/configure: Regenerated.
1755 * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
1756 * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
1757 convert a struct stat64 into a struct stat and return 0 or -1
1758 with errno set to EOVERFLOW.
1759 * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
1760 for struct statfs64 to struct statfs.
1761 * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
1762 * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
1763 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
1764 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
1765 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
1766 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
1767 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
1768 * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
1769 * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
1770 * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
1771 * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
1772 * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
1773 * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
1774 * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
1775 * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
1776 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
1777 * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
1778 * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
1779 * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
1780 * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
1781 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
1782 Use struct stat64 for io_stat argument.
1783 * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
1784 * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
1786 * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
1787 * hurd/fd-write.c (_hurd_fd_write): Likewise.
1788 * hurd/hurd/fd.h: Update decls.
1789 * sysdeps/mach/hurd/getcwd.c
1790 (_hurd_canonicalize_directory_name_internal): Use ino64_t
1791 and struct dirent64.
1792 * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
1793 (__xstat): Renamed to __xstat64, use struct stat64 for argument.
1794 (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
1795 (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
1797 2002-06-08 Roland McGrath <roland@frob.com>
1799 * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
1800 instead of unsigned long int for __allocation and __size members.
1802 2002-06-09 Jakub Jelinek <jakub@redhat.com>
1804 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
1805 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
1806 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
1807 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
1809 2002-06-07 Roland McGrath <roland@frob.com>
1811 * sysdeps/mach/hurd/bits/environments.h: File removed.
1813 2002-06-07 Jakub Jelinek <jakub@redhat.com>
1815 * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
1816 * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
1817 * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
1818 * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
1819 * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
1820 (sendfile64): Likewise.
1821 * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
1822 * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
1823 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
1825 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
1827 * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
1830 2002-06-04 Bruno Haible <bruno@clisp.org>
1832 * sysdeps/cris/stackinfo.h: New file.
1834 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
1835 to an integer type before performing bit operations on it.
1837 2002-06-05 Roland McGrath <roland@frob.com>
1839 * sysdeps/generic/sendfile.c: Include <errno.h>.
1840 * sysdeps/generic/sendfile64.c: Likewise.
1842 * io/Makefile (routines): Add sendfile and sendfile64.
1843 (headers): Add sys/sendfile.h to the list.
1844 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
1845 * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
1846 * io/sys/sendfile.h: ... here.
1847 * sysdeps/generic/sendfile.c: New file.
1848 * sysdeps/generic/sendfile64.c: New file.
1850 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
1851 Move sendfile, sendfile64 to ...
1852 * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
1853 * sysdeps/mach/hurd/sendfile.c: New file.
1854 * sysdeps/mach/hurd/sendfile64.c: New file.
1856 * sysdeps/mach/nanosleep.c: New file.
1858 2002-06-04 Roland McGrath <roland@frob.com>
1860 * sysdeps/alpha/elf/configure.in: New file. Check for TLS support.
1861 * sysdeps/alpha/elf/configure: New file (generated).
1863 2002-06-02 Roland McGrath <roland@frob.com>
1865 * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
1867 2002-06-01 Roland McGrath <roland@frob.com>
1869 * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
1870 i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
1872 2002-05-19 Ulrich Drepper <drepper@redhat.com>
1874 * resolv/resolv.h (struct __res_state): Remove unused nstimes.
1876 * resolv/res_init.c (__res_vinit): Initialize nsmap array.
1877 Remove nstimes setting.
1878 (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
1879 * resolv/res_send.c (res_nsend): Don't close unconditionally if
1880 there is mix of IPv6 and IPv4 nameservers.
1881 Use nsmap array to find free slots and preserve nameserver ordering.
1884 2002-05-30 Ulrich Drepper <drepper@redhat.com>
1886 * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
1887 use this header with LFS.
1889 * po/sk.po: Update from translation team.
1891 2002-05-28 Andreas Schwab <schwab@suse.de>
1893 * sysdeps/generic/readelflib.c (process_elf_file): Give correct
1894 message when finding object of wrong class.
1896 2002-05-28 Jakub Jelinek <jakub@redhat.com>
1898 * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
1899 Patch by <radu@netsoft.ro>.
1901 2002-05-30 Ulrich Drepper <drepper@redhat.com>
1903 * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
1905 * sysdeps/unix/sysv/linux/readahead.c: New file.
1906 * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
1907 * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
1908 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
1909 Add sendfile64 alias to sendfile syscall.
1910 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1911 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1912 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1913 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
1916 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
1917 special section for PIC register loading.
1918 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
1920 * config.h.in: Define HAVE_HIDDEN.
1921 * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
1923 * elf/elf.h: Correct Alpha TLS relocations according to last spec.
1925 2002-05-28 Roland McGrath <roland@frob.com>
1927 * sysdeps/mach/alpha/setfpucw.c: New file.
1929 2002-05-26 Roland McGrath <roland@frob.com>
1931 * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
1932 Use integer_t instead of int for IOC_VOID case.
1934 2002-05-27 Alexandre Oliva <aoliva@redhat.com>
1936 * configure.in (DO_STATIC_NSS): Define if --disable-shared.
1938 2002-05-26 Bruno Haible <bruno@clisp.org>
1940 * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
1941 end of the ISO-8859-7 from idx table.
1943 2002-05-27 Ulrich Drepper <drepper@redhat.com>
1945 * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
1947 2002-05-24 David S. Miller <davem@redhat.com>
1949 * string/bits/string2.h (memset): Do not try to optimize when
1950 not _STRING_ARCH_unaligned if GCC will do the right thing.
1952 2002-05-21 Isamu Hasegawa <isamu@yamato.ibm.com>
1954 * posix/regex.c: Define `inline' as a macro into nothing for the
1955 compilers which lack the keyword.
1956 * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
1957 for the compatibility of gawk.
1958 * posix/regcomp.c: Add fake implementation of isblank() for the
1959 environments which lack the function.
1960 Don't use free_charset() in case of non-i18n envs.
1961 (build_range_exp): Don't use i18n related code in case of non-i18n
1963 (build_collating_symbol): Likewise.
1964 (build_equiv_class): Likewise.
1965 (build_charclass): Likewise.
1966 (re_compile_fastmap_iter): Likewise.
1967 (parse_bracket_exp): Likewise.
1968 (build_word_op): Likewise.
1969 (regfree): Don't use free_charset() in case of non-i18n envs.
1970 * posix/regex_internal.h: Remove COMPLEX_BRACKET from
1971 re_token_type_t in case of non-i18n envs.
1972 Don't define re_charset_t in case of non-i18n envs.
1973 Change the type of wcs of re_string_t from wchar_t to wint_t,
1974 since we store also WEOF.
1975 * posix/regex_internal.c: (re_string_realloc_buffers): Change
1976 the type of wcs of re_string_t from wchar_t to wint_t.
1977 (re_string_reconstruct): Likewise.
1978 (create_ci_newstate): Don't use i18n related code in case of
1980 (create_cd_newstate): Likewise.
1982 2002-05-24 Ulrich Drepper <drepper@redhat.com>
1984 * iconv/loop.c: Fix typo.
1986 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1988 * inet/ether_line.c (ether_line): Fix a typo causing only
1989 lower 4 bits of each ethernet address byte being assigned.
1990 Don't modify what line points to.
1991 * inet/tst-ether_aton.c (main): Add ether_line tests.
1993 2002-05-23 Marcus Brinkmann <marcus@gnu.org>
1995 * manual/filesys.texi: Don't make readlink example leak memory
1996 when readlink fails.
1998 2002-05-20 Ulrich Drepper <drepper@redhat.com>
2000 * iconv/loop.c: Fix condition for defining unaligned loop. Add
2001 some more security checks.
2003 2002-05-17 David S. Miller <davem@redhat.com>
2005 * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
2007 2002-05-16 David S. Miller <davem@redhat.com>
2009 * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
2010 (elf_machine_dynamic): Use it to force PIC register to be loaded.
2011 (elf_machine_load_address): Likewise.
2012 * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
2014 * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
2015 is unaligned, do not forget to fully initialize %g1 magic value.
2017 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
2018 register definitions and provide 32-bit variants of structures
2019 during 64-bit builds.
2021 * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
2022 * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
2023 * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
2024 * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
2025 _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
2026 (_FP_FROM_INT): Perform right shifts on unsigned integer type.
2027 Do not clear implicit one bit here, it must be done post-rounding.
2028 Only pad to the left using left shift if value uses less than the
2029 available fractional bits.
2031 2002-05-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2033 * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
2034 instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
2035 (shared-only-routines): Likewise.
2036 * sysdeps/powerpc/libgcc-compat.c: New file.
2037 * sysdeps/wordsize-32/cmpdi2.c: Removed.
2038 * sysdeps/wordsize-32/fixdfdi.c: Removed.
2039 * sysdeps/wordsize-32/fixsfdi.c: Removed.
2040 * sysdeps/wordsize-32/shdi3.c: Removed.
2042 2002-05-16 Bruno Haible <bruno@clisp.org>
2044 * MakeTAGS (libc.pot): Don't sort the output.
2045 * po/header.pot: Update to match xgettext 0.11 output.
2047 2002-05-16 Bruno Haible <bruno@clisp.org>
2049 * MakeTAGS (subdirs): Remove duplicates.
2051 2002-05-19 Ulrich Drepper <drepper@redhat.com>
2053 * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
2054 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
2057 2002-05-19 Andreas Jaeger <aj@suse.de>
2059 * sysdeps/unix/sysv/linux/configure.in: Warn against an
2060 installation in /usr/local.
2062 2002-05-16 Bruno Haible <bruno@clisp.org>
2064 * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
2065 string as argument of #error.
2067 2002-05-15 Ulrich Drepper <drepper@redhat.com>
2069 * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
2070 don't define static. Remove old __realpath function. TC1 of
2071 POSIX 2001 will allow the second parameter to be NULL.
2072 * stdlib/test-canon.c: Comment out test for NULL as second
2073 parameter of realpath.
2075 * time/offtime.c (__offtime): Set errno if overflow is detected.
2077 * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
2078 * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
2081 * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
2084 2002-05-15 Roland McGrath <roland@frob.com>
2086 * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
2088 2002-05-12 Bruno Haible <bruno@clisp.org>
2090 * iconvdata/testdata/EUC-JISX0213: New file.
2091 * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
2092 * iconvdata/testdata/SHIFT_JISX0213: New file.
2093 * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
2094 * iconvdata/testdata/ISO-2022-JP-3: New file.
2095 * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
2096 * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
2097 * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
2098 contains comments indicating precomposed characters.
2100 2002-04-21 Bruno Haible <bruno@clisp.org>
2102 * iconvdata/iso-2022-jp-3.c: New file.
2103 * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
2104 * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
2105 (LDFLAGS-ISO-2022-JP-3.so): New variable.
2106 (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
2107 (distribute): Add iso-2022-jp-3.c.
2109 2002-05-12 Bruno Haible <bruno@clisp.org>
2111 * iconvdata/tst-table-to.c (main): Restore handling of
2112 transliterations, broken by last patch.
2114 2002-05-12 Bruno Haible <bruno@clisp.org>
2116 * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
2118 2002-05-12 Bruno Haible <bruno@clisp.org>
2120 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
2121 when there is not enough room in the output buffer.
2122 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
2124 2002-04-20 Bruno Haible <bruno@clisp.org>
2126 * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
2128 (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
2129 Also make this macro work if FROM_DIRECTION evaluates to 0.
2130 (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
2131 (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
2132 of consume_incomplete.
2133 * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
2134 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
2136 * iconvdata/cp1258.c: Likewise.
2137 * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
2138 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
2140 * iconvdata/ibm933.c: Likewise.
2141 * iconvdata/ibm935.c: Likewise.
2142 * iconvdata/ibm937.c: Likewise.
2143 * iconvdata/ibm939.c: Likewise.
2144 * iconvdata/iso-2022-cn.c: Define
2145 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
2146 {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
2147 * iconvdata/iso-2022-cn-ext.c: Likewise.
2148 * iconvdata/iso-2022-jp.c: Define
2149 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
2150 {MIN,MAX}_NEEDED_{FROM,TO}.
2151 * iconvdata/tcvn5712-1.c: Define
2152 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
2153 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
2154 * iconvdata/euc-jisx0213.c: Define
2155 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
2156 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
2157 * iconvdata/shift_jisx0213.c: Likewise.
2159 2002-05-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2161 * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
2162 shdi3, fixdfdi, fixsfdi in csu dir.
2163 (shared-only-routines): Likewise.
2164 * sysdeps/wordsize-32/cmpdi2.c: New file.
2165 * sysdeps/wordsize-32/shdi3.c: New file.
2166 * sysdeps/wordsize-32/fixdfdi.c: New file.
2167 * sysdeps/wordsize-32/fixsfdi.c: New file.
2168 * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
2169 __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
2170 __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
2172 * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
2173 Only use va_arg if the argument will be used [PR libc/3259].
2175 2002-05-06 Michael A. Schmidt <mmaass@us.ibm.com>
2177 * catgets/catgets.c (catopen): Free buffer if internal catalog
2180 2002-05-14 Ulrich Drepper <drepper@redhat.com>
2182 * debug/xtrace.sh: Make more robust. For realtime tracking use
2183 non-buffering methods.
2184 * debug/pcprofiledump.c: Implement -u option.
2185 Patch by Roger Luethi <rl@hellgate.ch>.
2187 2002-05-11 Jakub Jelinek <jakub@redhat.com>
2189 * include/netinet/in.h (bindresvport_internal): Add prototype.
2190 * include/rpc/auth.h (authunix_create_internal,
2191 authunix_create_default_internal, authnone_create_internal,
2192 authdes_pk_create_internal): Add prototypes.
2193 * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
2194 clntudp_create_internal, clntudp_bufcreate_internal,
2195 clntunix_create_internal): Add prototypes.
2196 * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
2197 svc_getreq_internal, svc_getreq_common_internal,
2198 svc_getreqset_internal, svc_getreq_poll_internal,
2199 svc_register_internal, svc_unregister_internal,
2200 svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
2201 * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
2202 * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
2203 __setsockopt, __getsockname, __bind, __listen): Add prototypes.
2204 * inet/rexec.c (rexec_af): Use __listen and __getsockname.
2205 * inet/rcmd.c (rcmd_af): Use __listen.
2206 (rresvport_af): Use __bind.
2207 * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
2208 authunix_create, authunix_create_default, authnone_create,
2209 authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
2210 clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
2211 svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
2212 svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
2213 _authenticate, add INTDEF after such function definitions.
2214 Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
2215 __setsockopt, __getsockname instead of non-__ variants.
2216 * sunrpc/pmap_rmt.c: Likewise.
2217 * sunrpc/rtime.c: Likewise.
2218 * sunrpc/svc_udp.c: Likewise.
2219 * sunrpc/clnt_unix.c: Likewise.
2220 * sunrpc/svc_unix.c: Likewise.
2221 * sunrpc/bindrsvprt.c: Likewise.
2222 * sunrpc/svc_tcp.c: Likewise.
2223 * sunrpc/auth_none.c: Likewise.
2224 * sunrpc/clnt_raw.c: Likewise.
2225 * sunrpc/clnt_tcp.c: Likewise.
2226 * sunrpc/auth_unix.c: Likewise.
2227 * sunrpc/key_call.c: Likewise.
2228 * sunrpc/clnt_gen.c: Likewise.
2229 * sunrpc/pm_getmaps.c: Likewise.
2230 * sunrpc/clnt_simp.c: Likewise.
2231 * sunrpc/pmap_clnt.c: Likewise.
2232 * sunrpc/svc_run.c: Likewise.
2233 * sunrpc/svc.c: Likewise.
2234 * sunrpc/svc_simple.c: Likewise.
2235 * sunrpc/pm_getport.c: Likewise.
2236 * sunrpc/auth_des.c: Likewise.
2237 * sunrpc/svc_auth.c: Likewise.
2238 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
2239 __register_frame_info_table_bases, __deregister_frame_info_bases):
2241 (__register_frame_info_bases_internal,
2242 __register_frame_info_table_bases_internal,
2243 __deregister_frame_info_bases_internal): Add prototypes.
2244 (__register_frame_info, __register_frame): Use INTUSE in call to
2245 __register_frame_info_bases.
2246 (__register_frame_info_table): Similarly.
2247 (__deregister_frame_info, __deregister_frame): Similarly.
2248 * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
2249 sendto as weak alias.
2250 * sysdeps/mach/hurd/sendto.c: Likewise.
2251 * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
2252 recvfrom as weak alias.
2253 * sysdeps/mach/hurd/recvfrom.c: Likewise.
2254 * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
2255 * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
2256 recvmsg as weak alias.
2257 * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
2258 * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
2259 sendmsg as weak alias.
2260 * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
2261 * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
2262 setsockopt, add setsockopt as weak alias.
2263 * sysdeps/mach/hurd/setsockopt.c: Likewise.
2264 * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
2266 * sysdeps/mach/hurd/bind.c: Likewise.
2267 * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
2269 * sysdeps/mach/hurd/listen.c: Likewise.
2270 * sysdeps/generic/getsockname.c (__getsockname): Renamed from
2271 getsockname, add getsockname as weak alias.
2272 * sysdeps/mach/hurd/getsockname.c: Likewise.
2273 * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
2274 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
2275 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
2276 * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
2277 __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
2278 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
2280 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2281 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2282 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2283 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2284 * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
2285 * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
2286 * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
2287 * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
2288 * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
2289 * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
2290 * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
2291 * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
2293 2002-05-10 Jakub Jelinek <jakub@redhat.com>
2295 * locale/programs/localedef.h (show_archive_content): Add verbose
2297 * locale/programs/localedef.c (main): Adjust caller.
2298 * locale/programs/locarchive.c (struct nameent, struct dataent): New.
2299 (nameentcmp, dataentcmp): New functions.
2301 (show_archive_content): Print verbose listing with --list-archive -v.
2303 2002-05-14 Ulrich Drepper <drepper@redhat.com>
2305 * locale/programs/locarchive.c (open_archive): Take extra argument
2306 readonly. If true open file with O_RDONLY and don't create the
2307 archive if it doesn't exist.
2309 (close_archive): Don't do anything if fd element is -1.
2310 * locale/programs/localedef.h (open_archive): Adjust prototype.
2311 * locale/programs/locfile.c (write_all_categories): Adjust open_archive
2314 * malloc/malloc.c (__posix_memalign): Correct check for size of
2315 alignment value [PR libc/3444].
2317 * include/stdio.h: Remove references to old stdio implementation.
2319 * libio/Makefile (bug-ungetwc2-ENV): Define.
2321 2002-05-13 Roland McGrath <roland@frob.com>
2323 * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
2325 * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
2327 2002-05-13 Marcus Brinkmann <marcus@gnu.org>
2329 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
2330 Allocate three, not two, more than LEN when appending '/.'.
2331 * sysdeps/mach/hurd/chroot.c (chroot): Likewise. Don't check
2332 if NAME ends with '/.' if it is shorter than 2 chars.
2334 2002-05-12 Roland McGrath <roland@frob.com>
2336 * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
2337 files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
2339 * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
2340 file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
2342 2002-05-10 Jakub Jelinek <jakub@redhat.com>
2344 * sysdeps/ia64/Makefile: Remove extra endif.
2345 * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
2347 2002-05-10 Andreas Schwab <schwab@suse.de>
2349 * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
2351 2002-05-09 Andreas Jaeger <aj@suse.de>
2353 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New.
2354 * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
2355 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
2357 * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
2358 * sysdeps/wordsize-64/glob.c: ...here.
2359 * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
2360 * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
2361 * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
2363 2002-05-08 Roland McGrath <roland@frob.com>
2365 * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
2366 O_NOTRANS flag in "." lookup.
2368 2002-05-05 Ulrich Drepper <drepper@redhat.com>
2370 * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
2372 2002-05-04 Ulrich Drepper <drepper@redhat.com>
2374 * locale/duplocale.c (__duplocale): Update special members only
2375 when allocation succeeded.
2377 2002-05-03 Roland McGrath <roland@frob.com>
2379 * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
2380 we can only build libc.so.0.3(GLIBC_2.2.6) now.
2382 2002-05-02 Jakub Jelinek <jakub@redhat.com>
2384 * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
2385 * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
2386 __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
2387 * sysdeps/ia64/ia64libgcc.S: New file.
2389 2002-05-02 Ulrich Drepper <drepper@redhat.com>
2391 * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
2393 * malloc/memusage.c: Distinguish anonymous mmap.
2395 2002-05-01 Roland McGrath <roland@frob.com>
2397 * sysdeps/mach/hurd/close.c: #undef __close before function defn,
2398 and use INTDEF on it.
2399 * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
2401 * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
2403 * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
2405 2002-05-01 Ulrich Drepper <drepper@redhat.com>
2407 * malloc/memusage.c: Add support for tracking mmap & friends.
2408 * malloc/memusage.sh: Implement -m/--mmap option.
2410 2002-04-30 Jakub Jelinek <jakub@redhat.com>
2412 * locale/programs/locarchive.c (create_archive): Add archivefname
2413 argument, create fname from it.
2414 (enlarge_archive): Honour output_prefix.
2415 (open_archive): Likewise.
2417 2002-04-30 Jakub Jelinek <jakub@redhat.com>
2419 * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
2420 too many stpcpy macros.
2422 2002-04-26 Bruno Haible <bruno@clisp.org>
2424 * locale/programs/ld-collate.c (collate_read): Cast first argument
2427 2002-04-26 Bruno Haible <bruno@clisp.org>
2429 * include/libintl.h (__ngettext, __dngettext, __dcngettext,
2430 __dcngettext_internal): New declarations.
2431 (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
2432 attribute declarations.
2434 2002-04-30 Roland McGrath <roland@frob.com>
2436 Removed old GNU stdio implementation; GNU libio is now the only option.
2437 * configure.in: Removed --enable-libio option and @stdio@ subst var.
2438 Define USE_IN_LIBIO unconditionally.
2439 * configure: Regenerated.
2440 * Makeconfig (stdio): Set to libio by default.
2441 * config.make.in (stdio): Variable removed.
2442 * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
2443 * sysdeps/unix/sysv/linux/configure: Regenerated.
2444 * sysdeps/mach/hurd/configure.in: Don't test $stdio.
2445 * sysdeps/mach/hurd/configure: Regenerated.
2446 * stdio/.cvsignore: File removed.
2447 * stdio/Makefile: File removed.
2448 * stdio/Versions: File removed.
2449 * stdio/__fbufsize.c: File removed.
2450 * stdio/__flbf.c: File removed.
2451 * stdio/__fpending.c: File removed.
2452 * stdio/__fpurge.c: File removed.
2453 * stdio/__freadable.c: File removed.
2454 * stdio/__freading.c: File removed.
2455 * stdio/__fsetlocking.c: File removed.
2456 * stdio/__fwritable.c: File removed.
2457 * stdio/__fwriting.c: File removed.
2458 * stdio/clearerr.c: File removed.
2459 * stdio/fclose.c: File removed.
2460 * stdio/fcloseall.c: File removed.
2461 * stdio/feof.c: File removed.
2462 * stdio/ferror.c: File removed.
2463 * stdio/fflush.c: File removed.
2464 * stdio/fgetc.c: File removed.
2465 * stdio/fgetpos.c: File removed.
2466 * stdio/fgets.c: File removed.
2467 * stdio/fileno.c: File removed.
2468 * stdio/fmemopen.c: File removed.
2469 * stdio/fopen.c: File removed.
2470 * stdio/fopncook.c: File removed.
2471 * stdio/fputc.c: File removed.
2472 * stdio/fputs.c: File removed.
2473 * stdio/fread.c: File removed.
2474 * stdio/freopen.c: File removed.
2475 * stdio/fseek.c: File removed.
2476 * stdio/fsetpos.c: File removed.
2477 * stdio/ftell.c: File removed.
2478 * stdio/fwrite.c: File removed.
2479 * stdio/getc.c: File removed.
2480 * stdio/getchar.c: File removed.
2481 * stdio/getdelim.c: File removed.
2482 * stdio/gets.c: File removed.
2483 * stdio/glue.c: File removed.
2484 * stdio/internals.c: File removed.
2485 * stdio/linewrap.c: File removed.
2486 * stdio/linewrap.h: File removed.
2487 * stdio/memstream.c: File removed.
2488 * stdio/newstream.c: File removed.
2489 * stdio/obstream.c: File removed.
2490 * stdio/putc.c: File removed.
2491 * stdio/putchar.c: File removed.
2492 * stdio/puts.c: File removed.
2493 * stdio/rewind.c: File removed.
2494 * stdio/setbuf.c: File removed.
2495 * stdio/setbuffer.c: File removed.
2496 * stdio/setlinebuf.c: File removed.
2497 * stdio/setvbuf.c: File removed.
2498 * stdio/stdio.h: File removed.
2499 * stdio/ungetc.c: File removed.
2500 * stdio/vasprintf.c: File removed.
2501 * stdio/vscanf.c: File removed.
2502 * stdio/vsnprintf.c: File removed.
2503 * stdio/vsprintf.c: File removed.
2504 * stdio/vsscanf.c: File removed.
2505 * sysdeps/generic/defs.c: File removed.
2506 * sysdeps/generic/fdopen.c: File removed.
2507 * sysdeps/generic/pipestream.c: File removed.
2508 * sysdeps/generic/stdio_init.c: File removed.
2509 * sysdeps/generic/sysd-stdio.c: File removed.
2510 * sysdeps/generic/vdprintf.c: File removed.
2511 * sysdeps/mach/hurd/defs.c: File removed.
2512 * sysdeps/mach/hurd/fdopen.c: File removed.
2513 * sysdeps/mach/hurd/pipestream.c: File removed.
2514 * sysdeps/mach/hurd/stdio_init.c: File removed.
2515 * sysdeps/mach/hurd/sysd-stdio.c: File removed.
2516 * sysdeps/mach/hurd/vdprintf.c: File removed.
2517 * sysdeps/posix/defs.c: File removed.
2518 * sysdeps/posix/fdopen.c: File removed.
2519 * sysdeps/posix/pipestream.c: File removed.
2520 * sysdeps/posix/stdio_init.c: File removed.
2521 * sysdeps/posix/vdprintf.c: File removed.
2522 * sysdeps/unix/pipestream.c: File removed.
2523 * sysdeps/unix/sysv/sysd-stdio.c: File removed.
2524 * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
2525 * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
2527 2002-04-29 Roland McGrath <roland@frob.com>
2529 * include/libc-symbols.h (link_warning): Use `unused' attribute.
2531 2002-04-28 Ulrich Drepper <drepper@redhat.com>
2533 * sysdeps/generic/tls.h: Describe what must be defined.
2535 * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
2536 glob_in_dir [PR libc/3385].
2537 * posix/globtest.sh: Add test case.
2539 * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
2542 2002-04-27 Ulrich Drepper <drepper@redhat.com>
2544 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
2545 _internal symbol handling.
2546 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
2548 2002-04-26 Ulrich Drepper <drepper@redhat.com>
2550 * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
2551 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
2553 2002-04-26 Isamu Hasegawa <isamu@yamato.ibm.com>
2555 * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
2556 not _LIBC and RE_ENABLE_I18N.
2557 (build_range_exp): Implement for not _LIBC.
2558 (build_collating_symbol): Likewise.
2559 (parse_bracket_exp): Unify redundant error handlings.
2560 Don't erase mbcset for non matching list in multibyte envs.
2561 (build_word_op): Add '_' to matching list for \w operator.
2562 * posix/regex_internal.c (re_string_construct): Invoke
2563 build_upper_buffer in case of not RE_ENABLE_I18N.
2564 (re_string_reconstruct): Don't touch cur_state in case of not
2566 * posix/regex_internal.h (attribute_hidden): New macro in case of
2568 (re_charset_t): Define range_starts/ends in case of not _LIBC.
2569 * posix/regexec.c (sift_states_iter_mb): Hide in case of not
2571 (transit_state_mb): Likewise.
2572 (check_node_accept_bytes): Implement the code evaluating range
2573 expression in case of not _LIBC.
2574 (find_collation_sequence_value): Hide in case of not _LIBC.
2576 2002-04-26 Jakub Jelinek <jakub@redhat.com>
2578 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
2580 (__old_semctl, __new_semctl): Only use va_arg if the argument will
2583 2002-04-26 Ulrich Drepper <drepper@redhat.com>
2585 * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
2587 * sysdeps/ia64/strncpy.S: Fix recovery code.
2588 Patch by David Mosberger <davidm@hpl.hp.com>.
2590 2002-04-24 Ulrich Drepper <drepper@redhat.com>
2592 * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
2595 2002-04-14 Bruno Haible <bruno@clisp.org>
2597 * posix/regex.c (re_max_failures): Add back symbol for binary
2600 2002-04-22 Isamu Hasegawa <isamu@yamato.ibm.com>
2602 * posix/regcomp.c (re_compile_internal): Adapt it to new interface
2603 of buffer building functions.
2604 * posix/regex_internal.c (re_string_allocate): New function.
2605 (re_string_realloc_buffers): New function.
2606 (re_string_skip_chars): New function.
2607 (re_string_reconstruct): New function.
2608 (re_string_construct): Adapt it to new interface of buffer building
2610 (re_string_construct_common): Likewise.
2611 (build_wcs_buffer): Likewise.
2612 (build_wcs_upper_buffer): Likewise.
2613 (build_upper_buffer): Likewise.
2614 (re_string_translate_buffer): Likewise.
2615 (re_string_context_at): Adapt it to variable length buffers.
2616 * posix/regex_internal.h (re_string_t): Add new fields to handle
2617 variable length buffers.
2618 (re_match_context_t): Likewise.
2619 * posix/regexec.c (re_search_internal): Adapt it to new interface
2620 of re_string_t and re_match_context_t.
2621 (acquire_init_state_context): Likewise.
2622 (check_matching): Likewise.
2623 (check_halt_state_context): Likewise.
2624 (proceed_next_node): Likewise.
2625 (set_regs): Likewise.
2626 (sift_states_backward): Likewise.
2627 (clean_state_log_if_need): Likewise.
2628 (sift_states_iter_mb): Likewise.
2629 (sift_states_iter_bkref): Likewise.
2630 (add_epsilon_backreference): Likewise.
2631 (transit_state): Likewise.
2632 (transit_state_sb): Likewise.
2633 (transit_state_mb): Likewise.
2634 (transit_state_bkref): Likewise.
2635 (transit_state_bkref_loop): Likewise.
2636 (check_node_accept): Likewise.
2637 (match_ctx_init): Likewise.
2638 (extend_buffers): New function.
2640 2002-04-21 Bruno Haible <bruno@clisp.org>
2642 * iconvdata/tst-table.sh: For the second check, use the truncated
2643 GB18030 charmap table, like for the first check.
2645 2002-04-24 Ulrich Drepper <drepper@redhat.com>
2647 * elf/dl-load.c (open_verify): Correct __lseek parameters.
2648 Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
2650 2002-04-23 H.J. Lu <hjl@gnu.org>
2652 * include/math.h (isfinite): Fix a typo.
2654 2002-04-24 Ulrich Drepper <drepper@redhat.com>
2656 * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
2657 which is created by the test suite.
2659 2002-04-20 Bruno Haible <bruno@clisp.org>
2661 * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
2662 (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
2664 2002-04-20 Bruno Haible <bruno@clisp.org>
2666 * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
2667 to avoid gcc warning.
2669 2002-04-20 Bruno Haible <bruno@clisp.org>
2671 * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
2672 of data->__statep->__count.
2674 2002-04-20 Bruno Haible <bruno@clisp.org>
2676 * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
2678 * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
2680 2002-04-24 Roland McGrath <roland@frob.com>
2682 * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
2683 use END macro instead of our own .end directive.
2684 Use `callsys' insn mnemonic instead of `call_pal'.
2686 * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
2688 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
2689 macro; we need this for Hurd.
2691 Log entry was missing for 2002/03/24 commit of rev 1.8,
2692 goes with 2002-03-17 changes.
2693 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
2694 (sysdep_routines): Append ioperm here.
2695 (sysdep_headers): Append sys/io.h here.
2697 2002-04-23 Roland McGrath <roland@frob.com>
2699 * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
2700 * sysdeps/mach/hurd/sendto.c: Likewise.
2701 * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
2702 * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
2703 * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
2705 2002-04-22 Roland McGrath <roland@frob.com>
2707 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
2708 failure from i386_io_perm_* RPCs to ENOSYS.
2710 2002-04-22 Andreas Jaeger <aj@suse.de>
2712 * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
2714 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
2716 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
2717 register instead of destroying %rbx.
2719 2002-04-21 Ulrich Drepper <drepper@redhat.com>
2721 * string/string.h: Declare strerror_r also for XPG6.
2723 2002-04-19 Roland McGrath <roland@frob.com>
2725 * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
2727 2002-04-20 Ulrich Drepper <drepper@redhat.com>
2729 * Makefile: Add handling of xtests and xcheck targets.
2730 * MakeTAGS: Likewise.
2731 * Makeconfig: Likewise.
2732 * Makerules: Likewise.
2734 * manual/Makefile: Likewise.
2735 * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
2736 * sunrpc/thrsvc.c: New file. By Zack Weinberg.
2738 2002-04-11 Zack Weinberg <zack@codesourcery.com>
2740 * include/rpc/rpc.h (struct rpc_thread_variables): Remove
2742 * sunrpc/auth_none.c: Include bits/libc-lock.h.
2743 Delete #ifdef _RPC_THREAD_SAFE_ block.
2744 (authnone_private): Make a struct, not a pointer to struct.
2745 (authnone_private_guard): New once-control variable.
2746 (authnone_create_once): New function, split out of
2747 authnone_create. No need to allocate memory.
2748 (authnone_create): Just call authnone_create_once via
2749 __libc_once, then return &authnone_private->no_client.
2750 (authnone_marshal): Access private data via CLIENT argument,
2751 not authnone_private pointer.
2752 Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
2753 * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
2756 2002-04-12 H.J. Lu <hjl@gnu.org>
2758 * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
2760 2002-04-18 Bruno Haible <bruno@clisp.org>
2762 * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
2763 FROM_DIRECTION): Make the FROM direction stateless.
2764 * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
2765 FROM_DIRECTION): Likewise.
2767 2002-04-15 Bruno Haible <bruno@clisp.org>
2769 * iconvdata/JISX0213.TXT: New file.
2770 * iconvdata/jisx0213.h: New file.
2771 * iconvdata/jisx0213.c: New file.
2772 * iconvdata/euc-jisx0213.c: New file.
2773 * iconvdata/shift_jisx0213.c: New file.
2774 * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
2775 * iconvdata/EUC-JISX0213.precomposed: New file.
2776 * iconvdata/SHIFT_JISX0213.precomposed: New file.
2777 * iconvdata/SHIFT_JISX0213.irreversible: New file.
2778 * iconvdata/tst-table-to.c (main): Make it work for encodings for
2779 which the "to" direction is stateful.
2780 * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
2781 * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
2783 (libJISX0213-routines): New variable.
2784 (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
2785 (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
2786 (LDFLAGS-libJISX0213.so): New variable.
2787 (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
2788 SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
2789 jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
2791 2002-04-15 Bruno Haible <bruno@clisp.org>
2793 * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
2794 uint32_t. Update to Unicode 3.2.
2795 (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
2796 (BODY for TO_LOOP): Handle the ASCII range specially.
2797 * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
2798 * iconvdata/testdata/BIG5HKSCS: Remove a character.
2799 * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
2801 2002-04-15 Bruno Haible <bruno@clisp.org>
2803 * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
2804 __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
2806 2002-04-15 Bruno Haible <bruno@clisp.org>
2808 * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
2809 (ucs4_to_cns11643): Update.
2810 * iconvdata/cns11643.c: Update to Unicode 3.2.
2811 (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
2812 __cns11643_from_ucs4p2_tab): Regenerated.
2813 (__cns11643_from_ucs4p2c_tab): New array.
2814 * iconvdata/cvs11643l1.c: Update comments.
2815 * iconvdata/EUC-TW.irreversible: Remove two entries.
2817 2002-04-15 Bruno Haible <bruno@clisp.org>
2819 * locale/C-translit.h.in: Update to Unicode 3.2.
2820 Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
2821 <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
2823 2002-04-15 Bruno Haible <bruno@clisp.org>
2825 * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
2826 (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
2828 2002-04-15 Bruno Haible <bruno@clisp.org>
2830 * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
2831 invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
2832 always one byte, not 0 bytes in some cases and 2 bytes in others.
2834 * iconvdata/tst-table-from.c (main): Correct the usage message.
2836 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
2838 * posix/regcomp.c (parse_expression): Fix incorrect error code.
2839 (parse_dup_op): Fix error handling like "a{}".
2840 (parse_bracket_exp): Add error handling.
2841 (fetch_number): Add error handling for "a{<very_large_number>}".
2843 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
2845 * posix/regcomp.c (parse_bracket_symbol): Add error handling
2846 in case that the symbol name is too long.
2847 (build_charclass): Handle [:lower:]/[:uppper:] correctly
2848 in case of REG_ICASE.
2850 2002-04-19 Andreas Jaeger <aj@suse.de>
2852 * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
2853 <hartvige@mips.com>.
2855 2002-04-15 H.J. Lu <hjl@gnu.org>
2857 * include/math.h (__finitel_internal): Declare only if
2858 __NO_LONG_DOUBLE_MATH is not defined.
2859 (__isinfl_internal): Likewise.
2860 (__isnanl_internal): Likewise.
2862 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
2863 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2864 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2865 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2866 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2867 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2868 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2870 * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
2873 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
2874 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
2876 2002-04-15 Bruno Haible <bruno@clisp.org>
2878 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
2879 (BODY for TO_LOOP): Likewise.
2880 * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
2881 * iconvdata/tst-table.sh: Add support for encodings which contain
2882 precomposed Unicode characters, known to the iconv converter in both
2883 directions but not listed in the charmap.
2884 * iconvdata/IBM856.irreversible: New file.
2885 * iconvdata/IBM922.irreversible: New file.
2886 * iconvdata/IBM1132.irreversible: New file.
2887 * iconvdata/IBM1133.irreversible: New file.
2888 * iconvdata/IBM1160.irreversible: New file.
2889 * iconvdata/IBM1161.irreversible: New file.
2890 * iconvdata/IBM1163.irreversible: New file.
2891 * iconvdata/IBM1164.irreversible: New file.
2892 * iconvdata/ARMSCII-8.irreversible: New file.
2893 * iconvdata/TCVN5712-1.precomposed: New file.
2894 * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
2895 IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
2896 ARMSCII-8, TCVN5712-1.
2897 * iconvdata/Makefile (distribute): Add IBM856.irreversible,
2898 IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
2899 IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
2900 IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
2902 2002-04-17 Jakub Jelinek <jakub@redhat.com>
2904 * time/tst-mktime.c: Include <stdlib.h>. Use %d, not %ld format
2905 for EVENING69. Include offsets in TZ environment variable.
2907 2002-04-18 Ulrich Drepper <drepper@redhat.com>
2909 * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
2910 avoid compiler warnings.
2912 * locale/programs/localedef.c (main): Always call
2913 construct_output_path.
2915 * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
2917 * locale/programs/locfile.c (to_archive): New variable. To collect
2918 data which has to be added to the locale archive.
2919 (write_all_categories): Take new third parameter with locale name.
2920 Unless no_archive flag set add new locale data to the archive
2921 (write_locale_data): Unless no-archive flag set store generated data
2922 in to_archive data structure instead of generation output file.
2923 Add new parameter with locale category index.
2924 * locale/programs/locfile.h: Add new parameters in declaractions of
2925 write_all_categories and write_locale_data.
2926 * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
2927 --add-to-archive, and --delete-from-archive options. Pass extra
2928 parameter to write_all_categories.
2929 * locale/programs/localedef.h: Add prototypes for functions in
2931 * locale/locarchive.h: New file.
2932 * locale/programs/locarchive.c: New file.
2933 * locale/Makefile (distribute): Add programs/locarchive.c and
2935 (localedef-modules): Add md5 and locarchive.
2936 Add vpath to crypt subdir for md5.c.
2938 * locale/programs/ld-address.c: Pass locale category ID as new second
2939 parameter to write_locale_data.
2940 * locale/programs/ld-collate.c: Likewise.
2941 * locale/programs/ld-ctype.c: Likewise.
2942 * locale/programs/ld-identification.c: Likewise.
2943 * locale/programs/ld-measurement.c: Likewise.
2944 * locale/programs/ld-messages.c: Likewise.
2945 * locale/programs/ld-monetary.c: Likewise.
2946 * locale/programs/ld-name.c: Likewise.
2947 * locale/programs/ld-numeric.c: Likewise.
2948 * locale/programs/ld-paper.c: Likewise.
2949 * locale/programs/ld-telephone.c: Likewise.
2950 * locale/programs/ld-time.c: Likewise.
2952 * locale/simple-hash.c: Move compute_hashval function from here...
2953 * locale/hashval.h: ...to here. New file.
2954 * locale/simple-hash.h: Add prototype for compute_hashval.
2956 * include/libintl.h: Minor cleanups.
2958 2002-04-16 Ulrich Drepper <drepper@redhat.com>
2960 * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
2962 2002-04-15 Ulrich Drepper <drepper@redhat.com>
2964 * include/sys/stat.h: Fix typo. Patch by HJ Lu.
2966 2002-04-14 Bruno Haible <bruno@clisp.org>
2968 * locale/programs/charmap.c (charmap_read): Don't access result if
2971 2002-02-17 Andreas Schwab <schwab@suse.de>
2973 * elf/reldep7.c: New file.
2974 * elf/reldep7mod1.c: New file.
2975 * elf/reldep7mod2.c: New file.
2976 * elf/Makefile: Add rules to build and run reldep7.
2978 2002-04-14 Jakub Jelinek <jakub@redhat.com>
2980 * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
2981 the end of the function. Pass original flags to recursive call if
2982 add_dependency failed.
2983 (_dl_lookup_versioned_symbol): Likewise.
2985 2002-04-13 Jakub Jelinek <jakub@redhat.com>
2987 * time/mktime.c (__mktime_internal): If year is 69, don't bail out
2988 early, but check whether it overflowed afterwards.
2989 * time/tst-mktime.c (main): Add new tests.
2991 2002-04-14 Ulrich Drepper <drepper@redhat.com>
2993 * debug/xtrace.sh: Fix program name in help message.
2994 Patch by Roger Luethi <rl@hellgate.ch>.
2996 * include/sys/stat.h: Add prototypes for __lxstat_internal and
2997 __lxstat64_internal. Add macros __lxstat and __lxstat64 if not
2999 * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
3000 * sysdeps/mach/hurd/lxstat.c: Likewise.
3001 * sysdeps/unix/common/lxstat.c: Likewise.
3002 * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
3003 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
3004 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
3005 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
3006 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
3007 * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
3008 * sysdeps/mach/hurd/lxstat64.c: Likewise.
3009 * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
3010 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
3012 * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
3013 prototypes. Add __mbrlen and __mbrtowc macros.
3014 * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
3015 * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
3017 * include/unistd.h: Add prototype for __write_internal and add
3018 __libc_write macro is SHARED.
3019 * sysdeps/generic/write.c: Use INTDEF for __write.
3020 * sysdeps/mach/hurd/write.c: Likewise.
3021 * sysdeps/unix/sysv/aix/write.c: Likewise.
3022 * sysdeps/unix/syscalls.list: Add __libc_write alias.
3024 * assert/assert.c: Replace STR_N_SIZE with something usable in
3026 * assert/assert-perr.c: Likewise.
3028 * include/sys/socket.h: Declare __libc_sa_len_internal and define
3029 SA_LEN macro to use it if not NOT_IN_libc.
3030 * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
3032 * include/fcntl.h: Declare __open_internal and define __open and
3033 __libc_open macros if not NOT_IN_libc.
3034 * sysdeps/generic/open.c: Use INTDEF for __open.
3035 * sysdeps/mach/hurd/open.c: Likewise.
3036 * sysdeps/unix/sysv/aix/open.c: Likewise.
3037 * sysdeps/unix/syscalls.list: Add __open_internal alias.
3039 * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
3042 * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
3043 * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
3044 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
3045 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
3047 * include/wctype.h: Declare __iswalpha_l_internal,
3048 __iswdigit_l_internal, __iswspace_l_internal,
3049 __iswxdigit_l_internal, and __iswctype_internal. Define
3050 __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
3051 __iswxdigit_l macros if not NOT_IN_libc.
3052 * wctype/iswctype.c: Use INTDEF for __iswctype.
3053 * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
3055 * include/math.h: Declare __isinf_internal, __isinfl_internal,
3056 __isnan_internal, and __isnanl_internal.
3057 * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
3058 __isnan, and __isnanl.
3059 * stdio-common/printf_size.c: Likewise.
3060 * sysdeps/generic/printf_fphex.c: Likewise.
3061 * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
3062 * sysdeps/i386/fpu/s_isnanl.c: Likewise.
3063 * sysdeps/ia64/fpu/s_isinf.S: Likewise.
3064 * sysdeps/ia64/fpu/s_isnan.S: Likewise.
3065 * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
3066 * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
3067 * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
3068 * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
3069 * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
3070 * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
3071 * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
3072 * sysdeps/m68k/s_isinfl.c: Likewise.
3073 * sysdeps/m68k/fpu/s_isinf.c: Likewise.
3074 * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
3076 * include/sys/time.h: Declare __gettimeofday_internal and define
3077 __gettimeofday macro if not NOT_IN_libc.
3078 * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
3079 * sysdeps/mach/gettimeofday.c: Likewise.
3080 * sysdeps/posix/gettimeofday.c: Likewise.
3081 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
3082 * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
3083 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
3084 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
3086 * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
3087 and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
3088 Remove __lstat and __fstat inline functions.
3089 * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
3090 * sysdeps/mach/hurd/fxstat.c: Likewise.
3091 * sysdeps/unix/fxstat.c: Likewise.
3092 * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
3093 * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
3094 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
3095 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
3096 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
3097 * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
3098 * sysdeps/mach/hurd/fxstat64.c: Likewise.
3099 * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
3100 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
3102 * include/unistd.h: Declare __getpid_internal and define
3103 __getpid macro if not NOT_IN_libc.
3104 * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
3105 * sysdeps/generic/getpid.c: Likewise.
3106 * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
3107 * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
3109 * include/unistd.h: Declare __getpgid_internal and define
3110 __getpgid macro if not NOT_IN_libc.
3111 * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
3112 * sysdeps/mach/hurd/getpgid.c: Likewise.
3113 * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
3114 * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
3115 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
3116 * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
3118 * include/unistd.h: Declare __getpagesize_internal and define
3119 __getpagesize macro if not NOT_IN_libc.
3120 * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
3122 * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
3123 * sysdeps/mach/getpagesize.c: Likewise.
3124 * sysdeps/posix/getpagesize.c: Likewise.
3125 * sysdeps/unix/getpagesize.c: Likewise.
3126 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
3127 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
3128 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
3129 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
3131 2002-04-13 Andreas Jaeger <aj@suse.de>
3133 * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
3134 as clobber to reduce register pressure.
3135 (__strpbrk_cg): Likewise.
3136 (__mempcpy_by4): Likewise.
3137 (__strstr_cg): Likewise.
3138 Add prototype for __memrchr.
3140 2002-04-13 Andreas Schwab <schwab@suse.de>
3142 * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
3143 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
3144 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
3146 2002-04-13 Ulrich Drepper <drepper@redhat.com>
3148 * elf/do-lookup.h [!VERSIONED]: Add new parameter flags. Use it to
3149 check whether the caller prefers getting the most recent version of
3150 a symbol of the earliest version.
3151 * elf/dl-lookup.c: Adjust all callers of do_lookup. Change
3152 _dl_do_lookup to also take the new parameter and pass it on.
3153 Change 'explicit' parameter of _dl_lookup_symbol and
3154 _dl_lookup_versioned_symbol to flags. Adjust tests.
3155 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
3156 * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
3157 _dl_lookup_versioned_symbol.
3158 * elf/dl-reloc.c: Likewise.
3159 * elf/dl-runtime.c: Likewise.
3160 * elf/dl-sym.c: Likewise.
3161 * sysdeps/mips/dl-machine.h: Likewise.
3163 2002-04-11 Jakub Jelinek <jakub@redhat.com>
3165 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
3167 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
3169 2002-04-10 Andreas Jaeger <aj@suse.de>
3171 * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
3173 * include/argz.h: Remove extra char from last patch.
3175 2002-04-09 Ulrich Drepper <drepper@redhat.com>
3177 * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
3178 * sysdeps/unix/sysv/aix/chown.c: Likewise.
3179 * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
3180 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
3181 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
3182 * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
3184 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
3186 * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
3187 * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
3188 * intl/ngettext.c: Likewise.
3190 * include/sys/socket.h: Declare __connect_internal and define
3191 __connect macro if not NOT_IN_libc.
3192 * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
3193 * sysdeps/unix/sysv/aix/connect.c: Likewise.
3194 * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
3196 * include/unistd.h: Declare __close_internal and define __close macro
3198 * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
3199 WJUMP3): Add extra parenthesis to avoid expanding element names with
3200 macors like __close.
3201 * sysdeps/unix/syscalls.list: Add __close_internal alias.
3203 * include/unistd.h: Declare __dup2_internal and define __dup2 macro
3205 * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
3206 * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
3207 * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
3209 * include/unistd.h: Declare __fork_internal and define __fork macro
3211 * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
3212 * sysdeps/unix/sysv/aix/fork.c: Likewise.
3213 * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
3215 * include/stdio_ext.h: Declare __fsetlocking_internal and define
3216 __fsetlocking macro to use it if not NOT_IN_libc.
3217 * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
3219 * libio/__fbufsize.c: Correct copyright.
3220 * libio/__flbf.c: Likewise.
3221 * libio/__fpending.c: Likewise.
3222 * libio/__fpurge.c: Likewise.
3223 * libio/__freadable.c: Likewise.
3224 * libio/__freading.c: Likewise.
3225 * libio/__fsetlocking.c: Likewise.
3226 * libio/__fwritable.c: Likewise.
3227 * libio/__fwriting.c: Likewise.
3229 * include/stdio.h: Declare __asprintf_internal and define __asprintf
3230 macro to use it if not NOT_IN_libc.
3231 * stdio-common/asprintf.c: Use INTDEF for __asprintf.
3233 * include/mntent.h: Declare __setmntent_internal,
3234 __getmntent_r_internal, __endmntent_internal. Define __setmntent,
3235 __getmntent_r, and __endmntent macros to use these functions if not
3237 * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
3240 * include/math.h: Declare __finite_internal, __finitef_internal, and
3241 __finitel_internal. Redefine isfinite macro if in libc or libm using
3243 * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
3244 * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
3245 * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
3246 * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
3247 * sysdeps/i386/fpu/s_finitef.S: Likewise.
3248 * sysdeps/i386/fpu/s_finitel.S: Likewise.
3249 * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
3250 * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
3251 * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
3252 * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
3254 * include/fcntl.h: Declare __fcntl_internal. Define __fcntl macro
3255 to use this function if not NOT_IN_libc.
3256 * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
3257 * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
3258 * sysdeps/mach/hurd/fcntl.c: Likewise.
3259 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
3260 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
3262 * include/argz.h: Declare __argz_count_internal and
3263 __argz_stringify_internal.
3264 * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
3266 * string/argz-count.c: Use INTDEF for __argz_count.
3267 * string/argz-stringify.c: Use INTDEF for __argz_stringify.
3269 * include/stdlib.h: Declare __cxa_atexit_internal and define
3270 __cxa_atexit macro if not NOT_IN_libc.
3271 * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
3272 * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
3274 * assert/assert.c: Use INTDEF for __assert_fail.
3275 * assert/__assert.c: Use INTUSE for call to __assert_fail.
3276 * include/assert.h: Declare __assert_fail_internal.
3278 * extra-lib.mk: Mark assignment to lib with override.
3280 2002-04-08 Ulrich Drepper <drepper@redhat.com>
3282 * Makerules: Use cppflags-iterator.mk to add defines for all test
3285 2002-04-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
3287 * elf/elf.h: Define R_SH_TLS_xxx macros.
3288 * elf/rtld.c: Remove an extra parenthesis.
3289 * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
3291 * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
3292 * sysdeps/sh/dl-lookupcfg.h: New file.
3293 * sysdeps/sh/dl-tls.h: New file.
3294 * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
3295 ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
3296 (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
3297 R_SH_TLS_TPOFF32 relocations.
3299 2002-04-08 Ulrich Drepper <drepper@redhat.com>
3301 * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
3303 * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
3304 * include/stdlib.h: Likewise.
3306 2002-04-08 Jakub Jelinek <jakub@redhat.com>
3308 * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
3309 instead of _RTLD_LOCAL.
3310 * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
3311 * include/unistd.h: Likewise.
3312 * sysdeps/generic/ldsodefs.h: Likewise.
3314 * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
3315 if in libc or ld.so.
3317 2002-04-08 Andreas Jaeger <aj@suse.de>
3319 * elf/cache.c (print_entry): Support x86-64.
3321 2002-04-08 Ulrich Drepper <drepper@redhat.com>
3323 * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
3324 with one accessing the locale data structures directly.
3325 * stdio-common/printf-prs.c: Include localeinfo.h for new
3326 MB_CUR_MAX definition.
3328 * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
3329 is the name of the source file without extension.
3330 * Makefile (distribute): Add cppflags-iterator.mk.
3331 * cppflags-iterator.mk: New file.
3332 * extra-lib.mk: For the sources of the library run
3333 cppflags-iterator.mk.
3335 * include/libintl.h: Declare __dcgettext_internal and
3336 _libc_intl_domainname_internal. Define __dcgettext using these
3337 two symbols if used in libc itself.
3338 * argp/argp-help.c: Define dgettext using __dcgettext_internal and
3339 _libc_intl_domainname_internal.
3340 * argp/argp-parse.c: Likewise.
3341 * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
3342 * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
3343 * intl/gettext.c: Likewise.
3344 * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
3346 * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
3348 * posix/regex_internal.c (gettext): Likewise.
3350 2002-04-08 Andreas Jaeger <aj@suse.de>
3352 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
3354 * sysdeps/x86_64/fpu/s_llrint.S: New.
3355 * sysdeps/x86_64/fpu/s_llrintf.S: New.
3356 * sysdeps/x86_64/fpu/s_llrintl.S: New.
3357 * sysdeps/x86_64/fpu/s_lrint.S: New.
3358 * sysdeps/x86_64/fpu/s_lrintf.S: New
3359 * sysdeps/x86_64/fpu/s_lrintl.S: New.
3361 2002-04-08 Roland McGrath <roland@frob.com>
3363 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
3364 widening __hurd_fail value.
3366 2002-04-07 Roland McGrath <roland@frob.com>
3368 * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
3369 <mach/machine/alpha_instruction.h>.
3370 (_hurd_setup_sighandler): Take proper arguments for current decls.
3371 Update code to use _hurdsig_catch_fault.
3372 Use `callsys' instruction instead of `call_pal'.
3373 * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
3375 * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
3376 (ALIGN, at, AT, fp): New macros.
3378 2002-04-06 Roland McGrath <roland@frob.com>
3380 * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
3382 * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
3383 (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
3385 * sysdeps/mach/hurd/bind.c: Use prototype definition.
3386 * sysdeps/mach/hurd/connect.c: Likewise.
3387 * sysdeps/mach/hurd/getsockopt.c: Likewise.
3388 * sysdeps/mach/hurd/setsockopt.c: Likewise.
3390 * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
3393 * hurd/catch-exc.c: Use integer_t instead of int.
3394 * hurd/hurdfault.c: Likewise.
3396 * sysdeps/mach/hurd/alpha/exc2signal.c
3397 (_hurd_exception2signal): Rewritten.
3398 * sysdeps/mach/hurd/alpha/longjmp-ts.c
3399 (_hurd_longjmp_thread_state): Rewritten.
3401 2002-04-07 Ulrich Drepper <drepper@redhat.com>
3403 * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
3404 DB_LOOKUP_FCT prototype.
3405 * nss/getXXent_r.c: Likewise.
3406 * inet/getaliasent_r.c: Define NSS_attribute_hidden.
3407 * inet/getaliasname_r.c: Likewise.
3408 * inet/getnetbyad_r.c: Likewise.
3409 * inet/getnetbynm_r.c: Likewise.
3410 * inet/getnetent_r.c: Likewise.
3411 * inet/getproto_r.c: Likewise.
3412 * inet/getprtent_r.c: Likewise.
3413 * inet/getprtname_r.c: Likewise.
3414 * inet/getrpcbyname_r.c: Likewise.
3415 * inet/getrpcbynumber_r.c: Likewise.
3416 * inet/getrpcent_r.c: Likewise.
3417 * inet/getservent_r.c: Likewise.
3418 * inet/getsrvbynm_r.c: Likewise.
3419 * inet/getsrvbypt_r.c: Likewise.
3420 * shadow/getspent_r.c: Likewise.
3421 * shadow/getspnam_r.c: Likewise.
3423 * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
3425 * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
3426 Use i686-friendly PIC code.
3427 * sysdeps/i386/elf/setjmp.S: Likewise.
3429 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
3431 * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
3433 * elf/Versions: Remove it here.
3435 2002-04-06 Ulrich Drepper <drepper@redhat.com>
3437 * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
3438 direction. Reported by H . J . Lu <hjl@lucon.org>.
3440 2002-04-05 Ulrich Drepper <drepper@redhat.com>
3442 * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
3443 test just before the test runs.
3444 * intl/tst-translit.sh: Likewise.
3445 * intl/tst-codeset.sh: Likewise.
3447 * timezone/zic.c: Update from tzcode2002c.
3448 * timezone/asia: Update from tzdata2002c.
3449 * timezone/backward: Likewise.
3450 * timezone/europe: Likewise.
3451 * timezone/northamerica: Likewise.
3452 * timezone/northamerica: Likewise.
3453 * timezone/northamerica: Likewise.
3454 * timezone/southamerica: Likewise.
3455 * timezone/zone.tab: Likewise.
3457 2002-03-23 Jakub Jelinek <jakub@redhat.com>
3459 * sysdeps/generic/brk.c (__curbrk): Declare.
3460 * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
3461 * sysdeps/generic/dl-sbrk.c: Likewise.
3462 * sysdeps/unix/arm/dl-brk.S: New file.
3463 * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
3464 * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
3465 * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
3466 * sysdeps/unix/bsd/vax/dl-brk.S: New file.
3467 * sysdeps/unix/i386/dl-brk.S: New file.
3468 * sysdeps/unix/mips/dl-brk.S: New file.
3469 * sysdeps/unix/sparc/dl-brk.S: New file.
3470 * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
3471 * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
3472 * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
3473 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
3475 2002-04-03 Andreas Schwab <schwab@suse.de>
3477 * Makefile (headers): Add gnu/lib-names.h here instead of
3479 ($(inst_includedir)/gnu/lib-names.h): Remove explicit
3481 (install-headers): Add dependency on install-headers-nosubdir.
3482 * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
3483 instead of install-others.
3484 ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
3487 2002-04-05 Ulrich Drepper <drepper@redhat.com>
3489 * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
3490 Reported by Sam Roberts <sroberts@uniserve.com>.
3492 2002-04-03 Jakub Jelinek <jakub@redhat.com>
3494 * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
3495 l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
3496 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
3497 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
3499 2002-04-03 David Mosberger <davidm@hpl.hp.com>
3501 * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
3502 (RTLD_START): Ditto.
3503 (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
3504 dependency violation.
3506 2002-04-05 Jakub Jelinek <jakub@redhat.com>
3508 * time/mktime.c (__mktime_internal): Move check for year < 70 below
3509 all variable declarations.
3511 2002-04-04 Andreas Schwab <schwab@suse.de>
3513 * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
3515 2002-04-04 Andreas Jaeger <aj@suse.de>
3517 * sysdeps/x86_64/fpu/e_sqrt.c: New file.
3518 * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
3520 * sysdeps/x86_64/fpu/s_fabs.c: New file.
3521 * sysdeps/x86_64/fpu/s_fabsf.c: New file.
3522 * sysdeps/x86_64/fpu/s_fabsl.c: New file.
3524 * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
3526 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
3528 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
3529 * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
3531 * configure.in: Handle all mips entries the same.
3533 * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
3534 * sysdeps/mips/mips3/*: Likewise.
3535 * sysdeps/mips/p40/bits/endian.h: Likewise.
3537 2002-04-04 Ulrich Drepper <drepper@redhat.com>
3539 * misc/dirname.c (dirname): Ignore trailing slashes at end of
3540 non-null result [PR libc/2600].
3542 * misc/tst-dirname.c: Add more tests.
3544 2002-04-03 Ulrich Drepper <drepper@redhat.com>
3546 * locale/programs/charmap.c (charmap_read): If the charmap doesn't
3547 define a code_set_name provide one based on the filename.
3549 * malloc/hooks.c: Define weak_variable correctly for _LIBC.
3551 2001-12-28 Andreas Jaeger <aj@suse.de>
3553 * time/mktime.c (__mktime_internal): Check for year < 70
3556 2002-04-03 Andreas Jaeger <aj@suse.de>
3558 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
3560 Reported by Andi Kleen <ak@suse.de>.
3562 2002-04-03 Ulrich Drepper <drepper@redhat.com>
3564 * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
3565 * sysdeps/generic/w_lgammaf.c: Likewise.
3566 * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
3568 * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
3569 Adjust for new output format of the backtrace functions.
3571 * misc/syslog.c (vsyslog): Only use cleanup handler if
3572 _LIBC_REENTRANT is defined [PR libc/2924].
3574 * libio/Makefile (tests): Add bug-ungetwc2.
3575 * libio/bug-ungetwc2.c: New file.
3577 * manual/install.texi: Typographical and grammatical cleanup.
3578 Patch by Dennis Grace <dgrace@us.ibm.com>.
3580 * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
3581 parameter if mtflag. Patch by <jeongyun@innovay.com>.
3583 * sunrpc/rpc_svcout.c (printif): Remove third parameter. It was
3584 always "&". Adjust callers.
3585 Add "_" prefix to several generated definitions.
3586 Patch by paul@serice.net [PR libc/3158].
3588 2002-04-02 Ulrich Drepper <drepper@redhat.com>
3590 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
3591 size of _dl_arm_cap_flags.
3592 Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
3594 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
3597 2002-03-22 H.J. Lu <hjl@gnu.org>
3599 * scripts/firstversions.awk: Check the first version.
3601 2002-04-02 Ulrich Drepper <drepper@redhat.com>
3603 * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
3604 dependencies must be stable to work correctly.
3605 Reported by martin.lubich@datacon.at.
3607 * libio/bug-ungetwc1.c: New file.
3608 * libio/Makefile (tests): Add bug-ungetwc1.
3610 * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
3611 if stream was last used for writing.
3613 * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
3614 number [PR libc/3111].
3616 * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
3618 * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
3620 2002-04-02 Jakub Jelinek <jakub@redhat.com>
3622 * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
3623 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
3624 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
3625 * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
3626 * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
3628 2002-03-30 Jakub Jelinek <jakub@redhat.com>
3630 * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
3633 2002-03-29 Jakub Jelinek <jakub@redhat.com>
3635 * sysdeps/i386/fpu/s_fabs.S: New file.
3636 * sysdeps/i386/fpu/s_fabsf.S: New file.
3637 * sysdeps/i386/fpu/s_fabsl.S: New file.
3638 * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
3639 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
3640 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
3642 2002-04-02 Ulrich Drepper <drepper@redhat.com>
3644 * rt/tst-shm.c (do_test): Add one more test for size of shared
3647 2002-03-29 Wolfram Gloger <wg@malloc.de>
3649 * malloc/malloc.c: Add short description and prototypes for
3650 malloc_get_state, malloc_set_state and posix_memalign, for
3651 consistency and to avoid warnings with -Wstrict-prototypes.
3652 Reported by Andreas Jaeger <aj@suse.de>.
3654 2002-04-02 Ulrich Drepper <drepper@redhat.com>
3656 * po/gl.po: Update from translation team.
3658 2002-03-31 Roland McGrath <roland@frob.com>
3660 * hurd/hurdselect.c (_hurd_select): Fix
3661 MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
3662 Use a union rather than casts to compare mach_msg_type_t as int.
3664 2002-03-25 Roland McGrath <roland@frob.com>
3666 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
3667 check off the end of NAME when it's shorter than 2 chars.
3668 Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
3670 2002-03-17 Roland McGrath <roland@frob.com>
3672 * sysdeps/mach/hurd/i386/sys/io.h: New file.
3673 * sysdeps/mach/hurd/i386/ioperm.c: New file.
3674 * sysdeps/mach/hurd/i386/Dist: Add them.
3675 * sysdeps/mach/hurd/i386/Versions
3676 (libc: GLIBC_2.2.6): New set, add ioperm.
3677 * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
3678 (mach_interface_list): Check for mach_i386.defs.
3679 * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
3680 * sysdeps/mach/configure: Regenerated.
3682 2002-03-22 Ulrich Drepper <drepper@redhat.com>
3684 * po/fr.po: Update from translation team.
3686 2002-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
3688 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
3689 getpriority from syscalls list.
3691 2002-03-28 Andreas Jaeger <aj@suse.de>
3693 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
3694 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
3695 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
3696 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
3698 2002-03-27 Andreas Jaeger <aj@suse.de>
3700 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
3701 sigcontext): Follow further kernel change.
3703 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
3706 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
3707 Change for struct sigcontext change.
3709 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
3710 Follow changes in struct sigcontext.
3712 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
3713 sysycall, use wrapper instead.
3715 2002-03-26 Andreas Jaeger <aj@suse.de>
3717 * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
3718 read and write accesses as detailed as possible.
3719 (__memcpy_by2): Likewise.
3720 (__memcpy_g): Likewise.
3721 (memmove): Likewise.
3723 (__memset_ccn_by4): Likewise.
3724 (__memset_ccn_by2): Likewise.
3725 (__memset_gcn_by4): Likewise.
3726 (__memset_gcn_by2): Likewise.
3728 (__memrchr): Likewise.
3729 (rawmemchr): Likewise.
3730 (__strlen_g): Likewise.
3731 (__strcpy_g): Likewise.
3732 (__mempcpy_by4): Likewise.
3733 (__mempcpy_by2): Likewise.
3734 (__mempcpy_byn): Likewise.
3735 (__stpcpy_g): Likewise.
3736 (__strncpy_by4): Likewise.
3737 (__strncpy_by2): Likewise.
3738 (__strncpy_byn): Likewise.
3739 (__strncpy_gg): Likewise.
3740 (__strcat_c): Likewise.
3741 (__strcat_g): Likewise.
3742 (__strncat_g): Likewise.
3743 (__strcmp_gg): Likewise.
3744 (__strncmp_g): Likewise.
3745 (__strchr_c): Likewise.
3746 (__strchr_g): Likewise.
3747 (__strchrnul_c): Likewise.
3748 (__strchrnul_g): Likewise.
3749 (__strrchr_c): Likewise.
3750 (__strrchr_g): Likewise.
3751 (__strrchr_c): Likewise.
3752 (__strrchr_g): Likewise.
3753 (__strcspn_c1): Likewise.
3754 (__strcspn_cg): Likewise.
3755 (__strcspn_g): Likewise.
3756 (__strcspn_g): Likewise.
3757 (__strspn_c1): Likewise.
3758 (__strspn_cg): Likewise.
3759 (__strspn_g): Likewise.
3760 (__strspn_g): Likewise.
3761 (__strpbrk_cg): Likewise.
3762 (__strpbrk_g): Likewise.
3763 (__strstr_cg): Likewise.
3764 (__strstr_g): Likewise.
3766 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo. Reported by
3767 Michal Ludvig <mludvig@suse.cz>.
3769 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
3770 compatibilty, adjust for kernel changes.
3772 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
3773 sigcontext): Adjust for kernel changes.
3775 2002-03-25 Andreas Jaeger <aj@suse.de>
3777 * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
3779 Reported by Artur Zaprzala <zybi@talex.com.pl>.
3781 2002-03-24 Andreas Jaeger <aj@suse.de>
3783 * manual/memory.texi (Aligned Memory Blocks): Fix typo.
3785 * stdio-common/tst-fdopen.c (main): Remove unused variable.
3787 * iconv/tst-iconv3.c (main): Use correct printf strings.
3789 2002-03-18 Roland McGrath <roland@frob.com>
3791 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
3792 (CMGROUP_MAX): New macro.
3794 2002-03-23 Roland McGrath <roland@frob.com>
3796 * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
3797 * sysdeps/posix/shm_unlink.c: Likewise.
3799 2002-03-22 Roland McGrath <roland@frob.com>
3801 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
3802 * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
3803 under --enable-libio.
3804 * sysdeps/mach/hurd/configure: Regenerated.
3806 2002-03-23 Roland McGrath <roland@frob.com>
3808 * sysdeps/mach/hurd/i386/Makefile
3809 (sysdep_routines, shared-only-routines): Don't add framestate,
3810 reverting 2001-10-02 change.
3811 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
3812 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
3813 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
3814 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
3815 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
3816 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
3817 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
3818 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
3819 * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
3820 Do it here instead, only if [$(unwind-find-fde) = yes].
3822 2002-03-23 Andreas Jaeger <aj@suse.de>
3824 * signal/signal.h: Fix typo. Patch by Steve Kemp
3825 <skx@tardis.ed.ac.uk>.
3827 2002-03-22 Andreas Jaeger <aj@suse.de>
3829 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
3832 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
3833 _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
3834 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
3835 user_fpregs_struct): Rename fwd.
3837 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
3838 Follow sigcontext changes.
3840 2002-03-22 Andreas Jaeger <aj@suse.de>
3842 * sysdeps/mips/bits/nan.h: New file. Copy from generic one with
3843 changes for NaNs on MIPS.
3844 Patch by Hartvig Ekner <hartvige@mips.com>.
3846 2002-03-21 Ulrich Drepper <drepper@redhat.com>
3848 * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
3849 Use realloc if too large.
3850 (addgrbyid): Likewise.
3851 * nscd/hstcache.c (addhstbyname): Likewise.
3852 (addhstbyaddr): Likewise.
3853 (addhstbynamev6): Likewise.
3854 (addhstbyaddrv6): Likewise.
3855 * nscd/pwdcache.c (addpwbyname): Likewise.
3856 (addpwbyuid): Likewise.
3858 2002-03-21 Andreas Jaeger <aj@suse.de>
3860 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
3861 _fpstate): Add separate struct for x86-64.
3863 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
3864 user_fpregs_struct): Change member names to follow kernel.
3866 2002-03-20 Ulrich Drepper <drepper@redhat.com>
3868 * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
3869 Correctly close the UDP connection right away [PR libc/3120].
3871 2002-03-20 Andreas Jaeger <aj@suse.de>
3873 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
3874 user_fpregs_struct): Fix for changed kernel struct.
3875 (struct user_regs_struct): Likewise.
3876 (struct user): Likewise.
3877 Add 32-bit x86 compatibility.
3879 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
3881 2002-03-19 Andreas Jaeger <aj@suse.de>
3883 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
3885 2002-03-18 Andreas Jaeger <aj@suse.de>
3887 * iconvdata/Makefile: Only run tests when shared libs are
3890 2002-03-17 Andreas Jaeger <aj@suse.de>
3892 * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
3894 * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
3896 * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
3899 * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
3901 Patch by Hartvig Ekner <hartvige@mips.com>.
3903 * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
3904 * sysdeps/generic/unwind-pe.h: Likewise.
3906 * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
3909 * libio/stdio.c (AL2): Define variant when visibility attribute is
3912 * include/libc-symbols.h (_INTVARDEF): Define variant when
3913 visibility attribute is not supported.
3915 2002-03-16 Ulrich Drepper <drepper@redhat.com>
3917 * po/fr.po: Update from translation team.
3919 2002-02-25 Bruno Haible <bruno@clisp.org>
3921 * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
3923 2002-03-15 Ulrich Drepper <drepper@redhat.com>
3925 * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
3926 buffers if _IO_file_attach failed.
3928 * libio/fileops.c (_IO_file_open): Close file descriptor if
3929 _IO_SEEKOFF call failed.
3931 2002-03-15 H.J. Lu <hjl@gnu.org>
3932 Ulrich Drepper <drepper@redhat.com>
3934 * configure.in: Check for availability of
3935 init_array/fini_array/preinit_array handling in binutils.
3936 * config.h.in (HAVE_INITFINI_ARRAY): New macro.
3937 * config.make.in (have-initfini-array): New variable.
3939 2002-03-15 Ulrich Drepper <drepper@redhat.com>
3941 * stdio-common/tst-printf.c (main): Comment out one test which
3942 checked the compiler's ability to fold floating-point constants
3943 but not really printf.
3944 (rfg3): Make s const.
3945 * stdio-common/tst-printf.sh: Adjust for removed test.
3947 * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
3948 internal function. Adjust for internal_function calling convention.
3949 * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
3950 as internal_function.
3952 * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
3955 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
3956 declaration and definition.
3957 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
3959 * nss/getXXent_r.c: Likewise.
3960 * nss/nsswitch.h (db_lookup_function): Add internal_function to
3963 * include/time.h: Declare __localtime_r as hidden.
3965 * include/aliases.h: Declare __getaliasent_r as hidden.
3966 * include/grp.h: Declare __getgrent_r as hidden.
3967 * include/netdb.h: Declare __gethostent_r, __getnetent_r,
3968 __getservent_r, and __getprotoent_r as hidden.
3969 * include/pwd.h: Declare __getpwent_r as hidden.
3970 * include/shadow.h: Declare __getspent_r as hidden.
3971 * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
3973 * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
3974 and __gconv_transliterate as hidden.
3975 Add internal_function to __gconv_get_path declaration.
3976 * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
3977 definition. Add attribute_hidden to __gconv_read_conf definition.
3979 2002-03-14 Ulrich Drepper <drepper@redhat.com>
3981 * elf/rtld.c: Declare _environ as hidden.
3982 * sysdeps/generic/dl-environ.c: Likewise.
3983 * sysdeps/generic/dl-sysdep.c: Likewise.
3985 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
3986 _dl_mcount_internal as hidden.
3988 * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
3989 * sysdeps/generic/dl-brk.c: New file.
3990 * sysdeps/generic/dl-sbrk.c: New file.
3991 * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
3992 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
3994 * elf/dl-minimal.c (malloc): Declare _end as hidden.
3995 (__errno_location): New function. Declare errno as hidden.
3996 * elf/rtld.c (_dl_argc): Define as hidden.
3997 (_dl_skip_args): Define as hidden.
3998 (_begin, _end): Declare as hidden.
3999 * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
4000 * sysdeps/generic/entry.h (_start): Declare as hidden.
4001 * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
4002 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
4003 _dl_runtime_resolve and _dl_runtime_profile as hidden.
4004 (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
4006 2002-03-14 Roland McGrath <roland@frob.com>
4008 * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
4010 * Makeconfig (%.v.i, %.v): New implicit rules.
4011 (preprocess-versions): Variable removed.
4012 ($(common-objpfx)shlib-versions.v.i): New target giving just the
4013 shlib-versions input files as dependencies.
4014 ($(common-objpfx)soversions.i): Depend on that instead of the input
4015 files. Use it as input instead of using a pipeline.
4016 (postclean-generated): Append soversions.i, shlib-versions.v, and
4017 shlib-versions.v.i here.
4018 * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
4019 the Versions.def input files as dependencies.
4020 ($(common-objpfx)Versions.v.i): Likewise for Versions files.
4021 ($(common-objpfx)Versions.all): Depend on that instead of the input
4022 files. Use it as input instead of using a pipeline.
4023 ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
4024 (postclean-generated): Append those .v and .v.i files here.
4026 2002-03-14 Jakub Jelinek <jakub@redhat.com>
4028 * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
4029 * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
4032 2002-03-14 Jakub Jelinek <jakub@redhat.com>
4034 * sysdeps/generic/mp_clz_tab.c: New file.
4035 * sysdeps/i386/mp_clz_tab.c: New file.
4036 * sysdeps/hppa/mp_clz_tab.c: New file.
4037 * sysdeps/powerpc/mp_clz_tab.c: New file.
4038 * stdlib/Makefile (aux): Revert last patch.
4039 * math/Makefile (gmp-objs): Likewise.
4041 2002-03-13 Paul Eggert <eggert@twinsun.com>
4043 * time/strftime.c: Comment fixes for references to obsolescent
4044 standards, In most cases the simplest fix is to remove the
4045 confusing comments. Cross-referencing all the standards properly
4046 is a bit of a pain, and it should be enough to put that info in
4047 the documentation as I did in my recent time.texi patch.
4049 2002-03-13 Paul Eggert <eggert@twinsun.com>
4051 * manual/time.texi (Formatting Calendar Time):
4052 ISO C99 also specifies the E and O modifiers.
4053 %P is a GNU extension, and is not in ISO C99.
4054 Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
4055 %T is also in ISO C99.
4056 The RFC 822 example is not valid in arbitrary locales.
4057 Reword the POSIX.2 wording slightly, to make it a bit clearer
4058 that POSIX.2 formats are also supported by later POSIX versions.
4059 If a format was introduced in ISO C99 it is also required by
4062 2002-03-13 Ulrich Drepper <drepper@redhat.com>
4064 * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
4065 _sys_nerr_internal with INTVARDEF2.
4066 * include/libc-symbols.h (INTVARDEF2): New macro.
4067 * include/stdio.h (_sys_errlist_internal): Declare as hidden.
4068 (_sys_nerr_internal): Library.
4070 * sysdeps/posix/signal.c (_sigintr): Define as hidden.
4071 * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
4073 * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
4075 2002-03-13 Wolfram Gloger <wg@malloc.de>
4077 * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
4079 2002-03-02 Andreas Schwab <schwab@suse.de>
4081 * stdio-common/vfprintf.c (process_arg): Fix decimal format with
4082 'h' flag and positional arg.
4083 * stdio-common/tst-printf.c (rfg3): New function to test
4084 positional arguments.
4085 (main): Fix some warnings.
4087 2002-03-13 Jakub Jelinek <jakub@redhat.com>
4089 * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
4090 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
4092 2002-03-13 Ulrich Drepper <drepper@redhat.com>
4094 * grp/initgroups.c (__nss_group_data): Declare as hidden.
4096 * include/locale.h (_nl_C_locobj): Declare as hidden.
4098 * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
4099 * time/strptime.c (_nl_C_LC_TIME): Likewise.
4101 * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
4103 * include/sys/gmon.h: Declare _gmonparam as hidden.
4105 * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
4106 (__ctype32_wctrans): Likewise.
4107 (__ctype32_width): Likewise.
4109 * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
4112 * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
4114 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Define as
4115 hidden. Change all users of these variables.
4117 * posix/regex_internal.h (__re_error_msgid): Renamed from
4118 re_error_msgid. Declare as hidden.
4119 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Declare as
4122 * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
4123 (__printf_function_table): Likewise.
4124 * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
4126 (__printf_function_table): Likewise.
4128 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
4129 __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
4131 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
4132 * nss/nsswitch.c: Declare _nss_*_database as hidden.
4134 * stdlib/wctomb.c (__no_r_state): Declare as hidden.
4135 * stdlib/mbtowc.c (__no_r_state): Define as hidden.
4137 2002-03-12 Ulrich Drepper <drepper@redhat.com>
4139 * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
4140 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
4141 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
4142 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
4143 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
4144 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
4145 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
4146 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
4147 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
4148 _nl_C_LC_CTYPE_width: Declare as hidden.
4149 * include/locale.h: Declare _nl_locale_file_list.
4150 * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
4151 * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
4152 * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
4153 * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
4154 * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
4155 * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
4156 * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
4157 * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
4158 * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
4159 * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
4160 * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
4161 * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
4162 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
4163 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
4164 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
4165 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
4166 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
4167 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
4168 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
4169 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
4170 _nl_C_LC_CTYPE_width, and as hidden.
4171 * locale/findlocale.c: Declare _nl_C as hidden.
4172 * locale/newlocale.c: Likewise.
4173 * locale/setlocale.c: Define _nl_C as hidden. Remove declaration of
4174 _nl_locale_file_list.
4175 * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
4176 _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
4177 Define _nl_C_locobj as hidden.
4179 * malloc/mtrace.c (_mtrace_file): Define as hidden.
4180 (_mtrace_line): Likewise.
4182 * include/time.h: Declare __mon_yday as hidden.
4183 * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
4185 * libio/libioP.h: Declare __libio_codecvt as hidden.
4186 * libio/fileops.c: Declare __libio_translit as hidden.
4187 * libio/iofwide.c: Define __libio_translit as hidden.
4189 * login/getutent_r.c: Define __libc_utmp_lock as hidden.
4190 * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
4191 * login/getutline_r.c: Likewise.
4192 * login/utmpname.c: Likewise.
4194 * login/utmp-private.h: Declare __libc_utmp_file_functions,
4195 __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
4196 __libc_utmp_file_name as hidden.
4198 * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
4199 * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
4200 * locale/freelocale.c: Likewise.
4201 * locale/lc-time.c: Likewise.
4203 * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
4204 (__libc_ptyname2): Likewise.
4205 * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
4207 (__libc_ptyname2): Likewise.
4209 * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
4210 * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
4211 * sysdeps/generic/init-first.c: Likewise.
4212 * sysdeps/i386/init-first.c: Likewise.
4213 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
4214 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
4215 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
4216 * sysdeps/sh/init-first.c: Likewise.
4217 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
4218 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
4220 * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
4221 (_itowa_upper_digits): Likewise.
4223 * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
4224 * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
4227 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
4228 _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
4229 _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
4230 _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
4232 * gmon/gmon.c (__bb_head): Define as hidden.
4233 * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
4235 * argp/argp-parse.c (_argp_hang): Define as static.
4237 * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
4238 handling in latest compilers.
4240 * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
4242 * libio/fileops.c (_IO_file_jumps): Likewise.
4243 * libio/stdfiles.c (_IO_list_all): Likewise.
4244 * libio/wfileops.c (_IO_wfile_jumps): Likewise.
4246 * malloc/malloc.h: Move __libc_malloc_initialized declaration to
4248 * include/malloc.h: Add __libc_malloc_initialized declaration
4249 here. Mark variable hidden.
4250 * malloc/malloc.c: Include <malloc.h> not "malloc.h".
4252 * elf/dl-open.c (__libc_argc): Declare as hidden.
4253 (__libc_argv): Likewise.
4254 * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
4255 (__libc_argv): Likewise.
4256 * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
4257 __libc_argv as hidden.
4258 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
4259 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
4260 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
4261 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
4263 * include/stdlib.h (__libc_drand48_data): Declare as hidden.
4264 * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
4265 * stdlib/erand48.c: Likewise.
4266 * stdlib/jrand48.c: Likewise.
4267 * stdlib/lcong48.c: Likewise.
4268 * stdlib/lrand48.c: Likewise.
4269 * stdlib/mrand48.c: Likewise.
4270 * stdlib/nrand48.c: Likewise.
4271 * stdlib/seed48.c: Likewise.
4272 * stdlib/srand48.c: Likewise.
4274 * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
4275 (_itoa_lower_digits_internal): New declaration.
4276 (_itoa_upper_digits_internal): New declaration.
4277 (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
4278 * stdio-common.h (_itoa_lower_digits_internal): New declaration.
4279 (_itoa_upper_digits_internal): New declaration.
4280 (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
4282 * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
4283 * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
4285 * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
4286 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
4288 * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
4289 (_itowa_lower_digits): Likewise.
4290 (_itowa_upper_digits): Likewise.
4291 * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
4292 (_itowa_upper_digits): Likewise.
4294 * intl/plural-exp.h (attribute_hidden): Define as empty macro if
4295 not already defined.
4296 (GERMANIC_PLURAL): Declare as hidden.
4298 * posix/getopt.c (__getopt_initialized): Declare as hidden.
4299 (attribute_hidden): Define as empty macro if not already defined.
4301 * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
4302 (__gconv_max_path_elem_len): Likewise.
4303 (__gconv_path_envvar): Likewise.
4305 * math/Makefile (gmp-objs): Remove mp_clz_tab.
4306 * stdlib/Makefile (aux): Remove mp_clz_tab.
4307 * stdlib/mp_clz_tab.c: Removed. Not needed anywhere.
4309 * stdlib/exit.h (__exit_funcs): Declare as hidden.
4311 * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
4313 * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
4314 _nl_category_names, _nl_category_name_sizes, _nl_current,
4315 _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
4317 * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
4318 (_nl_current_default_domain): Likewise
4319 (_nl_state_lock): Likewise.
4320 * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
4321 (_nl_current_default_domain): Likewise
4322 (_nl_state_lock): Likewise.
4323 * intl/bindtextdom.c (_nl_state_lock): Likewise.
4325 * stdlib/fpioconst.h (__tens): Add attribute_hidden.
4326 (_fpioconst_pow10): Likewise.
4328 * include/time.h (_tmbuf): Add attribute_hidden.
4330 * time/tzset.c (tzstring_list): Define as static.
4332 * include/time.h: Add attribute_hidden to __tzname_cur_max and
4333 __use_tzfile declaration.
4335 * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
4336 and __wcsmbs_last_locale declaration.
4338 2002-02-25 Paul Eggert <eggert@twinsun.com>
4340 * timezone/Makefile (tzbases): Move systemv from here...
4341 (tzlinks): to here, since the entries in systemv were all changed
4342 from Zone to Link lines in tz-2001a. Bug reported (and patch
4343 tested) by Peter Breitenlohner.
4345 2002-03-07 Jakub Jelinek <jakub@redhat.com>
4347 * time/tst-posixtz.c (tests): Add new tests.
4348 (main): Test whether tzset() sets daylight properly.
4350 2002-03-06 Jakub Jelinek <jakub@redhat.com>
4352 * time/tzset.c (tz_compute): Move __daylight, __tzname and
4353 __tzname_cur_max setting...
4354 (tzset_internal): ...here.
4356 2002-03-06 Jakub Jelinek <jakub@redhat.com>
4358 * time/tzset.c (compute_change): Don't return any value.
4359 (tz_compute): Likewise. Don't handle southern hemisphere here.
4360 (__tz_convert): But here.
4362 2002-03-11 Ulrich Drepper <drepper@redhat.com>
4364 * manual/examples/mkfsock.c: Include <string.h> as well.
4365 Patch by Alain De Carolis <alaind@wseurope.com>.
4367 2002-03-06 Isamu Hasegawa <isamu@yamato.ibm.com>
4369 * posix/regexec.c (re_match): Fix incorrect register sizes.
4370 (re_search): Likewise.
4372 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
4374 * posix/regcomp.c (regfree): Remove a disused condition.
4375 * posix/regex_internal.c (re_acquire_state): Likewise.
4376 (re_acquire_state_context): Likewise.
4377 (register_state): Remove a redundant malloc invocation.
4378 * posix/regex_internal.h: (re_state_table_entry): Simplify
4381 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
4383 * posix/regcomp.c (regcomp): Add __builtin_expect to error
4384 handling conditions.
4385 (regerror): Likewise.
4386 (regfree): Likewise.
4387 (re_compile_internal): Likewise.
4388 (init_dfa): Likewise.
4389 (init_word_char): Likewise.
4390 (create_initial_state): Likewise.
4391 (analyze): Likewise.
4392 (analyze_tree): Likewise.
4393 (duplicate_node): Likewise.
4394 (calc_eclosure): Likewise.
4395 (calc_eclosure_iter): Likewise.
4397 (parse_reg_exp): Likewise.
4398 (parse_branch): Likewise.
4399 (parse_expression): Likewise.
4400 (parse_subexp): Likewise.
4401 (parse_dup_op): Likewise.
4402 (parse_bracket_exp): Likewise.
4403 (build_equiv_class): Likewise.
4404 (build_charclass): Likewise.
4405 (build_word_op): Likewise.
4406 (fetch_number): Likewise.
4407 (create_tree): Likewise.
4408 (duplicate_tree): Likewise.
4409 * posix/regex.c (BE): New macro.
4410 * posix/regexec.c (re_match): Add __builtin_expect to error
4411 handling conditions.
4412 (re_match_2): Likewise.
4413 (re_search): Likewise.
4414 (re_search_internal): Likewise.
4415 (check_matching): Likewise.
4416 (proceed_next_node): Likewise.
4417 (set_regs): Likewise.
4418 (sift_states_backward): Likewise.
4419 (add_epsilon_backreference): Likewise.
4420 (transit_state): Likewise.
4421 (transit_state_sb): Likewise.
4422 (transit_state_mb): Likewise.
4423 (transit_state_bkref): Likewise.
4424 (transit_state_bkref_loop): Likewise.
4425 (build_trtable): Likewise.
4426 (group_nodes_into_DFAstates): Likewise.
4427 (match_ctx_init): Likewise.
4428 (match_ctx_add_entry): Likewise.
4429 * posix/regex_internal.c (re_string_construct): Add __builtin_expect
4430 to error handling conditions.
4431 (re_string_construct_toupper): Likewise.
4432 (build_wcs_buffer): Likewise.
4433 (build_wcs_upper_buffer): Likewise.
4434 (build_upper_buffer): Likewise.
4435 (re_string_translate_buffer): Likewise.
4436 (re_node_set_alloc): Likewise.
4437 (re_node_set_init_1): Likewise.
4438 (re_node_set_init_2): Likewise.
4439 (re_node_set_init_copy): Likewise.
4440 (re_node_set_intersect): Likewise.
4441 (re_node_set_init_union): Likewise.
4442 (re_node_set_merge): Likewise.
4443 (re_node_set_insert): Likewise.
4444 (re_dfa_add_node): Likewise.
4445 (re_acquire_state): Likewise.
4446 (re_acquire_state_context): Likewise.
4447 (create_new_state_common): Likewise.
4448 (register_state): Likewise.
4449 (create_ci_new_state): Likewise.
4450 (create_cd_new_state): Likewise.
4451 (re_string_context_at): Remove redundant condition.
4453 2002-01-16 Roger Sayle <roger@eyesopen.com>
4455 * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
4457 * sysdeps/i386/i586/strlen.S: Fix typo in comment.
4459 2002-03-11 Jakub Jelinek <jakub@redhat.com>
4461 * sysdeps/i386/elf/configure.in: Fix comment.
4463 * sysdeps/sparc/sparc64/configure.in: New.
4464 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
4465 if .dynamic comes before .got.
4466 * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
4468 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
4469 HP_TIMING_ACCUM): Fix typos.
4471 2002-03-11 Ulrich Drepper <drepper@redhat.com>
4473 * string/strfry.c: Add some more randomness to the seed.
4474 Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
4476 * po/es.po: Update from translation team.
4477 * po/fr.po: Likewise.
4479 * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
4481 * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
4482 when determining type of format.
4483 Patch by James Antill <james@anqd.org> [PR libc/2787].
4485 2002-03-04 Jakub Jelinek <jakub@redhat.com>
4487 * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
4489 2002-03-11 Roland McGrath <roland@frob.com>
4491 * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
4493 * Versions.def (libc): Add GLIBC_2.2.6.
4494 * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
4495 * sysdeps/mach/hurd/errnos.awk: In generated macro, use
4496 __errno_location instead of __hurd_errno_location, and don't inline it.
4497 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
4498 * hurd/errno.c: New file.
4499 * hurd/Makefile (routines): Add errno.
4501 2002-03-11 Ulrich Drepper <drepper@redhat.com>
4503 * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
4504 ridiculously large widths and precisions [PR libc/3026].
4506 2002-03-11 Andreas Jaeger <aj@suse.de>
4508 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
4510 Patch by Susanne Oberhauser <froh@SuSE.de>.
4512 2002-03-11 Ulrich Drepper <drepper@redhat.com>
4514 * inet/rexec.c (ahostbuf): Define as static.
4516 * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
4517 (__ctype32_wctrans): Likewise.
4518 * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
4519 * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
4520 (__ctype32_wctrans): Likewise.
4521 (__ctype32_width): Likewise.
4523 * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
4524 They were never exported anyway.
4526 * gmon/gmon.c (_gmonparam): Add attribute_hidden.
4527 * gmon/sys/gmon.h: Remove declaration of _gmonparam. It wasn't
4529 * include/sys/gmon.h: Declare _gmonparam.
4531 * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
4532 symbols for getdents64. They were never exported.
4534 2002-03-09 Roland McGrath <roland@frob.com>
4536 * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
4537 Reported by Jon Arney <jarney1@cox.net>.
4539 2002-02-23 Roland McGrath <roland@frob.com>
4541 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
4543 (__hurd_errno_location): Function removed.
4545 2002-03-06 Andreas Jaeger <aj@suse.de>
4547 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
4550 2002-03-04 Andreas Jaeger <aj@suse.de>
4552 * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
4554 * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
4557 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
4559 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
4561 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
4563 * sysdeps/x86_64/bits/setjmp.h: New.
4565 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
4567 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
4569 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
4571 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
4572 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
4574 2002-02-28 Bo Thorsen <bo@suse.de>
4576 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
4579 2002-03-03 Andreas Jaeger <aj@suse.de>
4581 * sysdeps/x86_64/bits/wordsize.h: New file.
4583 * elf/nodlopenmod2.c: Provide prototype to avoid warning.
4584 * elf/tst-tlsmod1.c: Likewise.
4586 * posix/regcomp.c: Get regex.h from include dir for internal
4589 * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
4590 to libc-internal.h and include it.
4591 * include/libc-internal.h: Add __init_misc.
4593 * misc/init-misc.c: Include libc-internal.h for prototypes.
4595 * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
4597 * misc/error.c [_LIBC]: Include libioP.h for prototype of
4600 2002-03-03 Ulrich Drepper <drepper@redhat.com>
4602 * posix/regcomp.c: Compatibility changes to allow using the code
4605 2002-02-28 Hartvig Ekner <hartvige@mips.com>
4607 * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
4610 2002-03-02 Ulrich Drepper <drepper@redhat.com>
4612 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
4613 of .str elements in the returned data structure.
4615 * elf/elf.h: Add Alpha TLS bits.
4617 2002-02-28 Jakub Jelinek <jakub@redhat.com>
4619 * sysdeps/unix/sysv/linux/nice.c: New file.
4621 2002-03-01 Ulrich Drepper <drepper@redhat.com>
4623 * elf/Makefile (dl-routines): Add dl-origin.
4624 (elide-routines.os): Add dl-origin.
4625 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
4626 * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
4628 * include/libc-symbols.c: Define attribute_hidden depending on
4629 HAVE_VISIBILITY_ATTRIBUTE. Add definition of INTVARDEF.
4631 * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
4632 * elf/dl-load.c: Likewise.
4633 * elf/rtld.c: Likewise.
4634 * include/unistd.h: Declare __libc_enable_secure_internal.
4635 * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
4636 Use INTUSE with __libc_enable_secure.
4637 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
4639 * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
4640 * elf/dl-error.c: Likewise,
4641 * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
4643 * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
4644 * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
4645 function definition. Use INTDEF with _dl_get_origin.
4646 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
4648 * elf/dl-init.c: Use INTUSE with _dl_starting_up.
4649 * elf/rtld.c: Likewise. Use INTVARDEF for _dl_starting_up.
4651 * elf/dl-profile.c: Use INTDEF for _dl_mcount.
4652 * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
4653 * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
4655 * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
4656 * elf/dl-deps.c: Likewise.
4657 * elf/dl-error.c: Likewise.
4658 * elf/dl-fini.c: Likewise.
4659 * elf/dl-init.c: Likewise.
4660 * elf/dl-load.c: Likewise.
4661 * elf/dl-lookup.c: Likewise.
4662 * elf/dl-reloc.c: Likewise.
4663 * elf/dl-version.c: Likewise.
4664 * elf/do-lookup.h: Likewise.
4665 * sysdeps/arm/dl-machine.h: Likewise.
4666 * sysdeps/cris/dl-machine.h: Likewise.
4667 * sysdeps/hppa/dl-machine.h: Likewise.
4668 * sysdeps/i386/dl-machine.h: Likewise.
4669 * sysdeps/m68k/dl-machine.h: Likewise.
4670 * sysdeps/powerpc/dl-machine.h: Likewise.
4671 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
4672 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
4673 * sysdeps/sh/dl-machine.h: Likewise.
4674 * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
4675 * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
4676 * sysdeps/x86_64/dl-machine.h: Likewise.
4677 * elf/rtld.c: Use INTDEF for _dl_argv. Use rtld_progrname instead of
4678 _dl_argv[0]. Use INTUSE with _dl_argv.
4679 * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
4680 * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
4682 2002-02-28 Jakub Jelinek <jakub@redhat.com>
4684 * elf/rtld.c (_rtld_global): Remove .protected.
4685 (_rtld_local): Strong alias to _rtld_global.
4686 * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
4688 * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
4689 _rtld_local instead of _rtld_global.
4690 (_rtld_local): Add hidden extern, possibly in .sdata section.
4691 * configure.in: Add tests for visibility attribute and .sdata.
4692 * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
4693 * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
4694 * sysdeps/arm/dl-machine.h: Likewise.
4695 * sysdeps/generic/ldsodefs.h: Likewise.
4696 * sysdeps/hppa/dl-machine.h: Likewise.
4697 * sysdeps/cris/dl-machine.h: Likewise.
4698 * sysdeps/i386/dl-machine.h: Likewise.
4699 * sysdeps/ia64/dl-machine.h: Likewise.
4700 * sysdeps/m68k/dl-machine.h: Likewise.
4701 * sysdeps/mips/mips64/dl-machine.h: Likewise.
4702 * sysdeps/mips/dl-machine.h: Likewise.
4703 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
4704 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
4705 * sysdeps/sh/dl-machine.h: Likewise.
4706 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
4707 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
4708 * sysdeps/x86_64/dl-machine.h: Likewise.
4710 2002-02-28 Ulrich Drepper <drepper@redhat.com>
4712 * login/login.c (login): Always initialize ut_line field
4715 2002-02-28 Jakub Jelinek <jakub@redhat.com>
4717 * sysdeps/i386/Makefile (sysdep_routines): Add
4719 (shared-only-routines): Likewise.
4720 * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
4721 (shared-only-routines): Likewise.
4722 * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
4723 (shared-only-routines): Likewise.
4724 * sysdeps/wordsize-32/divdi3.c: New file.
4726 2002-02-28 Ulrich Drepper <drepper@redhat.com>
4728 * locale/iso-4217.def: Remove obsolete currencies for countries
4731 2002-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
4733 * posix/regcomp.c (regcomp): Remove a redundant condition.
4734 (init_word_char): Add a check on malloc failure.
4735 (create_initial_state): Likewise.
4736 (duplicate_node): Likewise.
4737 (calc_eclosure): Likewise.
4738 (calc_eclosure_iter): Likewise.
4739 (parse_expression): Likewise.
4740 (parse_bracket_exp): Remove unnecessary malloc invocations.
4741 (build_equiv_class): Likewise.
4742 (build_charclass): Likewise.
4743 * posix/regex_internal.c (re_node_set_intersect): Add a check
4745 (re_node_set_add_intersect): Likewise.
4746 (re_node_set_merge): Likewise.
4747 (re_acquire_state): Likewise.
4748 (re_acquire_state_context): Likewise.
4749 (create_newstate_common): Likewise.
4750 (register_state): Likewise.
4751 (create_ci_newstate): Likewise.
4752 (create_cd_newstate): Likewise.
4753 * posix/regex_internal.h: Fix prototypes of re_acquire_state
4754 and re_acquire_state_context.
4755 * posix/regexec.c (regexec): Suit it to the error handling of
4757 (re_match): Likewise.
4758 (re_search): Likewise.
4759 (re_search_internal): Add a check on malloc failure.
4760 (acquire_init_state_context): Likewise.
4761 (check_matching): Likewise.
4762 (proceed_next_node): Likewise.
4763 (set_regs): Likewise.
4764 (sift_states_backward): Likewise.
4765 (sift_states_iter_bkref): Likewise.
4766 (add_epsilon_backreference): Likewise.
4767 (transit_state): Likewise.
4768 (transit_state_sb): Likewise.
4769 (transit_state_mb): Likewise.
4770 (transit_state_bkref_loop): Likewise.
4771 (build_trtable): Likewise.
4772 (group_nodes_into_DFAstates): Likewise.
4773 (match_ctx_init): Likewise.
4774 (match_ctx_add_entry): Likewise.
4776 2002-02-27 Ulrich Drepper <drepper@redhat.com>
4778 * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
4779 l_libname if profiling is enabled [PR libc/2916].
4781 * sysdeps/ia64/dl-tls.h: New file.
4783 2002-02-27 Jakub Jelinek <jakub@redhat.com>
4785 * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
4786 Work around an Alpha gas bug.
4788 2002-02-27 Ulrich Drepper <drepper@redhat.com>
4790 * catgets/open_catalog.c (__open_catalog): Fix typo in code which
4791 uses read to load the catalog.
4792 Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
4794 2002-02-26 Ulrich Drepper <drepper@redhat.com>
4796 * posix/Makefile (distribute): Add regcomp.c, regexec.c,
4797 regex_internal.c, and regex_internal.h.
4798 (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
4799 * posix/regex.c: Complete rewrite.
4800 * posix/regexec.c: New file.
4801 * posix/regcomp.c: New file.
4802 * posix/regex_internal.c: New file.
4803 * posix/regex_internal.h: New file.
4804 * posix/regex.h (RE_ICASE): New macro.
4805 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
4807 * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
4808 ungetwc. It's a macro.
4809 * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
4811 Reported by Jason Merrill <jason@redhat.com>.
4813 2002-02-25 Jakub Jelinek <jakub@redhat.com>
4815 * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
4816 position to fp->_offset if it is set.
4817 * stdio-common/Makefile (tests): Add tst-fdopen.
4818 * stdio-common/tst-fdopen.c: New test.
4820 2002-02-25 Jakub Jelinek <jakub@redhat.com>
4822 * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
4823 * stdio-common/tst-ungetc.c (main): Add another test.
4825 2002-02-25 Ulrich Drepper <drepper@redhat.com>
4827 * assert/assert-perr.c: Use INTUSE to reference functions and variables
4828 inside libc itself. Use INTDEF and INTDEF2 to define appropriate
4829 aliases. Add prototypes for the new aliases.
4830 * assert/assert.c: Likewise.
4831 * include/libc-symbols.h: Likewise.
4832 * include/stdio.h: Likewise.
4833 * include/netinet/in.h: Likewise.
4834 * include/rpc/auth.h: Likewise.
4835 * include/rpc/auth_unix.h: Likewise.
4836 * include/rpc/key_prot.h: Likewise.
4837 * include/rpc/pmap_prot.h: Likewise.
4838 * include/rpc/pmap_rmt.h: Likewise.
4839 * include/rpc/rpc_msg.h: Likewise.
4840 * include/rpc/xdr.h: Likewise.
4841 * inet/gethstbyad_r.c: Likewise.
4842 * inet/gethstbynm2_r.c: Likewise.
4843 * inet/gethstbynm_r.c: Likewise.
4844 * inet/gethstent_r.c: Likewise.
4845 * inet/in6_addr.c: Likewise.
4846 * libio/__fpurge.c: Likewise.
4847 * libio/filedoalloc.c: Likewise.
4848 * libio/fileops.c: Likewise.
4849 * libio/ftello.c: Likewise.
4850 * libio/ftello64.c: Likewise.
4851 * libio/genops.c: Likewise.
4852 * libio/iofclose.c: Likewise.
4853 * libio/iofdopen.c: Likewise.
4854 * libio/iofflush.c: Likewise.
4855 * libio/iofflush_u.c: Likewise.
4856 * libio/iofgetpos.c: Likewise.
4857 * libio/iofgetpos64.c: Likewise.
4858 * libio/iofgets.c: Likewise.
4859 * libio/iofgets_u.c: Likewise.
4860 * libio/iofopen.c: Likewise.
4861 * libio/iofopncook.c: Likewise.
4862 * libio/iofputs.c: Likewise.
4863 * libio/iofread.c: Likewise.
4864 * libio/iofread_u.c: Likewise.
4865 * libio/iofsetpos.c: Likewise.
4866 * libio/iofsetpos64.c: Likewise.
4867 * libio/ioftell.c: Likewise.
4868 * libio/iofwrite.c: Likewise.
4869 * libio/iogetline.c: Likewise.
4870 * libio/iogets.c: Likewise.
4871 * libio/iogetwline.c: Likewise.
4872 * libio/iolibio.h: Likewise.
4873 * libio/iopadn.c: Likewise.
4874 * libio/iopopen.c: Likewise.
4875 * libio/ioseekoff.c: Likewise.
4876 * libio/ioseekpos.c: Likewise.
4877 * libio/iosetbuffer.c: Likewise.
4878 * libio/iosetvbuf.c: Likewise.
4879 * libio/ioungetc.c: Likewise.
4880 * libio/ioungetwc.c: Likewise.
4881 * libio/iovdprintf.c: Likewise.
4882 * libio/iovsprintf.c: Likewise.
4883 * libio/iovsscanf.c: Likewise.
4884 * libio/libioP.h: Likewise.
4885 * libio/memstream.c: Likewise.
4886 * libio/obprintf.c: Likewise.
4887 * libio/oldfileops.c: Likewise.
4888 * libio/oldiofclose.c: Likewise.
4889 * libio/oldiofdopen.c: Likewise.
4890 * libio/oldiofgetpos.c: Likewise.
4891 * libio/oldiofgetpos64.c: Likewise.
4892 * libio/oldiofopen.c: Likewise.
4893 * libio/oldiofsetpos.c: Likewise.
4894 * libio/oldiofsetpos64.c: Likewise.
4895 * libio/oldiopopen.c: Likewise.
4896 * libio/oldstdfiles.c: Likewise.
4897 * libio/putc.c: Likewise.
4898 * libio/setbuf.c: Likewise.
4899 * libio/setlinebuf.c: Likewise.
4900 * libio/stdfiles.c: Likewise.
4901 * libio/stdio.c: Likewise.
4902 * libio/strops.c: Likewise.
4903 * libio/vasprintf.c: Likewise.
4904 * libio/vscanf.c: Likewise.
4905 * libio/vsnprintf.c: Likewise.
4906 * libio/vswprintf.c: Likewise.
4907 * libio/wfiledoalloc.c: Likewise.
4908 * libio/wfileops.c: Likewise.
4909 * libio/wgenops.c: Likewise.
4910 * libio/wstrops.c: Likewise.
4911 * malloc/mtrace.c: Likewise.
4912 * misc/error.c: Likewise.
4913 * misc/syslog.c: Likewise.
4914 * nss/getXXbyYY_r.c: Likewise.
4915 * nss/getXXent_r.c: Likewise.
4916 * nss/hosts-lookup.c: Likewise.
4917 * stdio-common/getw.c
4918 * stdio-common/printf-prs.c: Likewise.
4919 * stdio-common/printf_fp.c: Likewise.
4920 * stdio-common/printf_size.c: Likewise.
4921 * stdio-common/putw.c: Likewise.
4922 * stdio-common/scanf.c: Likewise.
4923 * stdio-common/sprintf.c: Likewise.
4924 * stdio-common/tmpfile64.c: Likewise.
4925 * stdio-common/vfprintf.c: Likewise.
4926 * stdio-common/vfscanf.c: Likewise.
4927 * stdlib/strfmon.c: Likewise.
4928 * sunrpc/auth_des.c: Likewise.
4929 * sunrpc/auth_none.c: Likewise.
4930 * sunrpc/auth_unix.c: Likewise.
4931 * sunrpc/authdes_prot.c: Likewise.
4932 * sunrpc/authuxprot.c: Likewise.
4933 * sunrpc/clnt_perr.c: Likewise.
4934 * sunrpc/clnt_raw.c: Likewise.
4935 * sunrpc/clnt_tcp.c: Likewise.
4936 * sunrpc/clnt_udp.c: Likewise.
4937 * sunrpc/clnt_unix.c: Likewise.
4938 * sunrpc/key_call.c: Likewise.
4939 * sunrpc/key_prot.c: Likewise.
4940 * sunrpc/openchild.c: Likewise.
4941 * sunrpc/pm_getmaps.c: Likewise.
4942 * sunrpc/pm_getport.c: Likewise.
4943 * sunrpc/pmap_clnt.c: Likewise.
4944 * sunrpc/pmap_prot.c: Likewise.
4945 * sunrpc/pmap_prot2.c: Likewise.
4946 * sunrpc/pmap_rmt.c: Likewise.
4947 * sunrpc/rpc_cmsg.c: Likewise.
4948 * sunrpc/rpc_prot.c: Likewise.
4949 * sunrpc/svc_authux.c: Likewise.
4950 * sunrpc/svc_raw.c: Likewise.
4951 * sunrpc/svc_simple.c: Likewise.
4952 * sunrpc/svc_tcp.c: Likewise.
4953 * sunrpc/svc_udp.c: Likewise.
4954 * sunrpc/svc_unix.c: Likewise.
4955 * sunrpc/xdr.c: Likewise.
4956 * sunrpc/xdr_array.c: Likewise.
4957 * sunrpc/xdr_mem.c: Likewise.
4958 * sunrpc/xdr_rec.c: Likewise.
4959 * sunrpc/xdr_ref.c: Likewise.
4960 * sunrpc/xdr_stdio.c: Likewise.
4961 * sysdeps/generic/_strerror.c: Likewise.
4962 * sysdeps/generic/printf_fphex.c: Likewise.
4963 * sysdeps/generic/tmpfile.c: Likewise.
4964 * sysdeps/gnu/errlist.awk: Likewise.
4965 * sysdeps/gnu/errlist.c: Likewise.
4967 * libio/Makefile (routines): Remove iosprint.
4968 * libio/iosprintf.c: Removed
4971 2002-02-24 Ulrich Drepper <drepper@redhat.com>
4973 * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
4974 non_dynamic_init and exported now.
4975 * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
4976 * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
4978 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
4979 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
4980 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
4982 2002-02-23 Ulrich Drepper <drepper@redhat.com>
4984 * elf/dl-close.c (free_slotinfo): Check for end of list and return
4987 * locale/iso-639.def: Add language codes for Walloon.
4989 * elf/dl-fini.c (_dl_fini): Print some final statistics on the
4990 total number of relocations performed.
4992 * elf/sprof.c (load_profdata): If do_test provide information as
4993 to why loading failed.
4994 * elf/dl-profile.c (_dl_start_profile): Initialize all of
4997 * csu/set-init.c: Moved to...
4998 * sysdeps/mach/hurd/set-init.c: ...here. New file.
4999 * csu/Makefile: Don't compile set-init.
5000 * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
5001 * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
5003 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
5004 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
5005 * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
5007 * misc/init-misc.c: Always export __init_misc. Don't define hooks for
5010 2002-02-22 Ulrich Drepper <drepper@redhat.com>
5012 * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
5013 * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
5014 * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
5015 (_dl_deallocate_tls): New function.
5016 * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
5019 2002-02-21 Jakub Jelinek <jakub@redhat.com>
5021 * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
5022 * stdio-common/tst-fseek.c (main): Add test for this.
5024 2002-02-19 Ulrich Drepper <drepper@redhat.com.>
5026 * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
5028 2002-02-19 Jakub Jelinek <jakub@redhat.com>
5030 * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
5031 pointer before dereferencing.
5033 2002-02-18 Roland McGrath <roland@frob.com>
5035 * sysdeps/mach/hurd/times.c: Fix typo in last change.
5037 * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
5038 Use task_policy in place of task_priority.
5040 * sysdeps/generic/bits/mman.h
5041 (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
5042 * sysdeps/mach/msync.c: New file.
5044 * sysdeps/mach/powerpc/syscall.S: New file.
5046 * mach/msg.c [MACH_MSG_OVERWRITE]
5047 (__mach_msg_trap, __mach_msg_overwrite): New functions.
5048 * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
5050 * sysdeps/mach/configure.in: Check for clock.defs to put into
5051 mach_interface_list.
5052 * sysdeps/mach/configure: Regenerated.
5054 * mach/Makefile (mach-machine): New variable, set from $(base-machine).
5055 ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
5056 ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
5057 Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
5058 (mach-shortcuts): Add device_read_overwrite_request,
5059 device_read_overwrite, vm_read_overwrite, thread_switch.
5061 * configure.in (base_machine): Set to $machine by default.
5062 * configure: Regenerated.
5064 * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
5065 or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
5066 * sysdeps/mach/configure: Regenerated.
5067 * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
5069 * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
5071 * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
5073 * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
5074 Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
5076 2002-02-17 Roland McGrath <roland@frob.com>
5078 * sysdeps/mach/hurd/times.c
5079 [NO_CREATION_TIME] (startup_time): New static variable.
5080 [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
5081 (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
5082 creation_time from task_basic_info.
5083 (__times): Use __gettimeofday instead of __host_get_time.
5085 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
5086 Use untyped Mach IPC message format.
5088 * hurd/catch-exc.c: Include <assert.h>, missing from last change.
5090 * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
5091 _S_catch_exception_raise_state_identity,
5092 _hurdsig_fault_catch_exception_raise_state,
5093 _hurdsig_fault_catch_exception_raise_state_identity.
5095 * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
5097 * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
5098 __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
5100 * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
5101 `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
5103 * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
5104 (fmh, unfmh): Define these functions only #if FMH. Otherwise define
5105 them as no-op macros.
5106 [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
5107 (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
5109 * sysdeps/powerpc/dl-machine.h
5110 (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
5112 * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
5113 Use untyped Mach IPC message format.
5115 * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
5116 Handle untyped Mach IPC message formats.
5118 * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
5119 Expect different argument conventions when this is defined.
5120 [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
5121 [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
5122 * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
5123 [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
5124 for OSF Mach variant.
5125 (faulted): Use mig_reply_error_t for REPLY.
5126 (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
5127 in __thread_set_exception_ports call.
5128 (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
5129 __mach_port_set_attributes in place of __mach_port_set_qlimit.
5131 * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
5132 before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
5133 on Darwin, which includes bogons.
5135 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
5136 variable LOADBASE so it's not declared when it's not used.
5138 2002-02-16 Roland McGrath <roland@frob.com>
5140 * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
5141 to use BI.creation_time.
5143 * mach/Machrules (MIG): Add -x c to CPP value passed down.
5145 * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
5146 * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
5147 * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
5148 host_page_size instead of vm_statistics.
5150 * sysdeps/mach/Makefile (mach-before-compile): Don't include
5151 mach_interface.h here, since not all variants use that name.
5153 * sysdeps/mach/configure.in: Add some checks for Mach headers
5154 to ensure a sane installation.
5155 (mach_interface_list): Define this variable by checking for .defs
5156 files found in various variants.
5157 * configure.in (mach_interface_list): AC_SUBST this.
5158 * config.make.in (mach-interface-list): New substituted variable.
5159 * mach/Makefile (user-interfaces): Define this using the value
5160 of $(mach-interface-list) instead of mach, mach4.
5161 Updated other references to mach_interface to use it as well.
5163 * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
5165 * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
5166 mig_reply_error_t for OSF Mach variant.
5168 * mach/Makefile (routines): Remove bootprivport.
5169 * mach/bootprivport.c: File removed. It has never been used.
5171 * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
5172 Grok the OSF flavor of message format.
5173 (mach_msg_destroy_port): For MAKE_SEND and
5174 MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
5175 no-senders notification.
5177 2002-02-06 Roland McGrath <roland@frob.com>
5179 * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
5180 to here if 2.0 compatibility enabled ...
5181 (libc: GLIBC_2.1.3): ... from here.
5183 2002-02-15 Ulrich Drepper <drepper@redhat.com>
5185 * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
5187 * elf/dl-close.c (_dl_close): Likewise.
5189 2002-02-14 Ulrich Drepper <drepper@redhat.com>
5191 * elf/Makefile: Add rules to build and run tst-tls8.
5192 * elf/tst-tls8.c: New file.
5193 * elf/tst-tlsmod4.c: New file.
5195 * stdlib/test-a64l.c (tests): Add more test cases.
5197 * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
5198 Reported by Walter Harms <WHarms@bfs.de>.
5200 2002-02-11 Jes Sorensen <jes@trained-monkey.org>
5202 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
5203 definitions for struct sigcontext.
5204 Suggested by David Mosberger-Tang.
5206 2002-02-13 Ulrich Drepper <drepper@redhat.com>
5208 * elf/dl-close.c (remove_slotinfo): New function. Handles everything
5209 for removing reference of module in slotinfo list.
5210 (_dl_close): Use remove_slotinfo.
5211 * sysdeps/generic/dl-tls.c: General pretty printing.
5212 (oom): Define only if SHARED.
5213 (_dl_next_tls_modid): Correct starting point for the case we assume
5214 there is a gap. Add missing instruction grouping (doh!). Correct
5215 tests for reaching maximum index.
5216 * elf/Makefile: Add rules to build and run tst-tls7.
5217 * elf/tst-tls7.c: New file.
5218 * elf/tst-tlsmod3.c: New file.
5220 * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
5222 * elf/tst-tlsmod2.c: Likewise.
5224 * elf/dl-close.c (_dl_close): When closing an object using TLS
5225 either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
5226 true. Increment dl_tls_generation only if we closed any TLS-using
5228 * elf/tst-tls6.c: New file.
5229 * elf/Makefile: Add rules to build and run tst-tls6.
5231 * po/da.po: Update from translation team.
5233 * locale/categories.def: Fix typo [PR libc/2948].
5234 * po/Makefile (BROKEN_LINGUAS): Works with current gettext
5236 * locale/iso-4217.def: Update from official version [PR libc/2950].
5237 * glibcbug.in: Honor TMPDIR [PR libc/2951].
5238 * locale/programs/ld-collate.c (collate_finish): Bail out with a
5239 message if input is too confusion instead of using assert.
5240 (collate_read): Don't crash on unknown symbol [PR libc/2952].
5241 Patches by Alastair McKinstry <alastair@pdd.3com.com>.
5243 * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
5244 * elf/tst-tls2.c: Likewise.
5245 * elf/tst-tls3.c: Likewise.
5247 2002-02-13 Jakub Jelinek <jakub@redhat.com>
5249 * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
5251 2002-02-13 Ulrich Drepper <drepper@redhat.com>
5253 * elf/dl-open.c (dl_open_worker): Only bump the generation counter
5254 if this is really necessary.
5256 * elf/dl-close.c (_dl_close): Implement freeing entries in the
5258 (free_mem): Free memory for the slotinfo array if possible.
5260 2002-02-12 Andreas Schwab <schwab@suse.de>
5262 * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
5264 2002-02-12 Ulrich Drepper <drepper@redhat.com>
5266 * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
5268 (oom): New function.
5269 (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
5270 (_dl_determine_tlsoffset): Likewise.
5271 (_dl_allocate_tls): Likewise.
5272 (__TLS_GET_ADDR): Define if not already defined.
5273 (_dl_tls_symaddr): New function.
5274 (allocate_and_init): New function.
5275 (__tls_get_addr): Actually implement handling of generation counter
5276 and deferred allocation.
5277 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
5278 add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
5280 Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
5281 Declare _dl_tls_symaddr.
5282 * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
5284 * include/link.h (struct link_map): Remove l_tls_nextimage and
5286 * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
5287 instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
5288 (_dl_vsym): Likewise.
5289 * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
5291 (dl_main): Allow PT_TLS be present for empty segment. Remove
5292 nextimage list handling. Instead add all modules using TLS to
5293 dl_tls_dtv_slotinfo_list.
5294 * elf/dl-open.c (dl_open_worker): After successfully loading all
5295 objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
5296 * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
5297 empty segment don't do anything. Remove handling of initimage list.
5298 * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
5299 (GLIBC_PRIVATE): Add _dl_tls_symaddr.
5300 * elf/dl-minimal.c: Define __libc_memalign.
5301 * elf/dl-support.c: Remove _dl_initimage_list. Add
5302 _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
5304 * include/stdlib.h: Declare __libc_memalign.
5306 * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
5307 * elf/tst-tls4.c: New file.
5308 * elf/tst-tls5.c: New file.
5309 * elf/tst-tlsmod2.c: New file.
5311 * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
5313 * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
5315 * elf/tst-tls1.c: Use test-skeleton.c.
5316 * elf/tst-tls2.c: Likewise.
5317 * elf/tst-tls3.c: Likewise.
5319 * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
5321 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
5323 * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
5325 2002-02-10 Ulrich Drepper <drepper@redhat.com>
5327 * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
5329 * elf/tst-tls3.c: New file.
5330 * elf/tst-tlsmod1.c: New file.
5331 * elf/Makefile: Add rules to build and run tst-tls3.
5333 * sysdeps/i386/dl-machine.h: Include <tls.h>.
5334 (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
5337 * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
5339 * po/fr.po: Update from translation team.
5341 * elf/tls-macros.h: Add alternative macros for use in PIC.
5343 * elf/dl-lookup.c: Include <tls.h>.
5344 * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
5346 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
5347 required by passing pointer to last element of the list.
5349 * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
5350 l_tls_initimage to a place where it actually is performed.
5352 * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
5353 after globfree() calls.
5355 * elf/dl-deps.c (struct openaux_args): Add open_mode element.
5356 (openaux): Pass open_mode as new last argument to _dl_map_object.
5357 (_dl_map_object_deps): Add new argument open_mode. Initialize
5358 open_mode element of args variable with it.
5359 * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
5360 _dl_map_object_deps.
5361 * elf/rtld.c (dl_main): Add zero as last parameter to
5362 _dl_map_object_deps call.
5363 * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
5364 * elf/nodlopen2.c: New file.
5365 * elf/nodlopenmod2.c: New file.
5366 * elf/Makefile: Add rules to build and run nodlopen2.
5368 * elf/tst-tls1.c: Move TLS helper macros to...
5369 * elf/tls-macros.h: ...here. New file.
5370 * elf/tst-tls2.c: New file.
5371 * elf/Makefile (tests): Add tst-tls2.
5372 (distribute): Add tls-macros.h.
5374 * po/sv.po: Update from translation team.
5376 * elf/tst-tls1.c (main): Add complete set of tests. Split
5377 architecture specific definitions from the actual test code.
5379 * po/tr.po: Update from translation team.
5381 2002-02-09 Ulrich Drepper <drepper@redhat.com>
5383 * elf/Makefile (tests): Add tst-tls1.
5384 * elf/tst-tls1.c: New file.
5386 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
5387 alignment of TCB for now.
5389 * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
5390 initialization image for the application itself.
5392 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
5393 loop to initialize TLS block.
5395 2002-02-08 Richard Henderson <rth@redhat.com>
5397 * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
5398 _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
5400 * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
5402 2002-02-09 Jakub Jelinek <jakub@redhat.com>
5404 * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
5406 2002-02-08 Ulrich Drepper <drepper@redhat.com>
5408 * po/ca.po: Update from translation team.
5409 * po/sk.po: Likewise.
5411 * elf/rtld.c (_dl_start_final): Install DTV explicitly.
5412 (dl_main): Move dtv/static TLS handling before relocation.
5413 Unconditionally call _dl_tlsoffset. Call _dl_allocate_tls and
5414 TLS_INIT_TP to allocate and install the dtv/static TLS block.
5415 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
5416 so far uses TLS initialize GL(dl_tls_static_size) and
5417 GL(dl_tls_static_align) to account for the TCB.
5418 (_dl_allocate_tls): New function.
5419 * sysdeps/generic/ldsodefs.h (rtld_global): Add
5420 _dl_initial_dtv_malloced.
5422 * configure.in: Test for __builtin_memset more realistically.
5424 * csu/version.c (banner): If TLS support is available say so.
5426 2002-02-04 H.J. Lu <hjl@gnu.org>
5428 * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
5430 (__dl_runtime_resolve): Likewise.
5432 * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
5435 2001-11-15 H.J. Lu <hjl@gnu.org>
5437 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
5438 <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
5440 * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
5442 2002-02-07 H.J. Lu <hjl@gnu.org>
5444 * sysdeps/mips/atomicity.h (compare_and_swap): Remove
5446 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
5449 2002-02-07 Ulrich Drepper <drepper@redhat.com>
5451 * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
5453 * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
5454 ___tls_get_addr_internal.
5455 (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
5457 * po/ko.po: Update from translation team.
5459 2002-02-07 Jakub Jelinek <jakub@redhat.com>
5461 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
5462 attribute, change __pad{1,2} type to unsigned int.
5463 (struct stat64): Remove packed attribute.
5465 2002-02-07 Ulrich Drepper <drepper@redhat.com>
5467 * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
5469 2002-02-07 Andreas Schwab <schwab@suse.de>
5471 * configure.in: Fix check for -zcombreloc.
5473 2002-02-06 H.J. Lu <hjl@gnu.org>
5475 * config.h.in (HAVE_BUILTIN_MEMSET): New.
5476 * configure.in: Check if __builtin_memset really works.
5477 * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
5478 __GNUC_PREREQ (2, 96) before using __builtin_memset.
5480 2002-02-06 Jakub Jelinek <jakub@redhat.com>
5482 * io/bug-ftw3.c (main): Don't try the test if root.
5484 2002-02-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
5486 * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
5488 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
5489 Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
5490 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
5492 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
5493 a weak alias for __clone.
5494 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
5495 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
5496 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
5497 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
5498 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
5499 a weak alias for __mmap64.
5501 2002-02-05 H.J. Lu <hjl@gnu.org>
5503 * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
5504 (atomic_add): Likewise.
5505 (compare_and_swap): Likewise.
5506 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
5508 2002-02-07 Ulrich Drepper <drepper@redhat.com>
5510 * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
5512 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
5513 alignment of the TCB and store total size and alignment of static
5514 TLS block in _dl_tls_static_size and _dl_tls_static_align.
5515 tls_index is a typedef.
5516 * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
5517 _dl_tls_static_align.
5518 * sysdeps/i386/dl-tls.h: tls_index is a typedef.
5519 * elf/dl-support.c: Define _dl_tls_static_size and
5520 _dl_tls_static_align.
5522 2002-02-06 Ulrich Drepper <drepper@redhat.com>
5524 * configure.in: Add --without-tls option.
5525 * sysdeps/i386/elf/configure.in: Don't check for TLS support if
5526 --without-tls is given.
5528 * sysdeps/generic/dl-tls.c: Include <tls.h>.
5530 * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
5532 2002-02-06 Roland McGrath <roland@frob.com>
5534 * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
5535 * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
5537 * scripts/versions.awk: Improve error message for missing version.
5538 Each version inherits from the last one only if they have the same
5539 nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
5540 but not GLIBC_x and FOO_y.
5542 * scripts/firstversions.awk: Handle libraries that don't have each
5543 particular version named in the third column of shlib-versions.
5545 * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
5547 2002-02-06 Ulrich Drepper <drepper@redhat.com>
5549 * Versions.def [ld]: Add GLIBC_2.3.
5550 * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
5551 * elf/Makefile (dl-routines): Add dl-tls.
5552 (distribute): Add dl-tls.h.
5553 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
5554 _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
5555 Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
5556 * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
5557 along with the other info in the link map. Change queueing of init
5558 images for double linked list. Use _dl_next_tls_modid to compute
5560 * elf/rtld.c (_dl_start_final): Store alignment requirement
5561 along with the other info in rtld map and executable map.
5562 (dl_main): Add ld.so to the init image list if necessary. Compute
5563 final module ID with _dl_next_tls_modid.
5564 * include/link.h (struct link_map): Add l_tls_previmage and
5566 * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
5567 * sysdeps/i386/elf/Versions: New file.
5568 * sysdeps/generic/dl-tls.c: New file.
5569 * sysdeps/generic/dl-tls.h: New file.
5570 * sysdeps/i386/dl-tls.h: New file.
5572 2002-02-06 Roland McGrath <roland@frob.com>
5574 * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
5575 * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
5577 2002-01-05 Roland McGrath <roland@frob.com>
5579 * sysdeps/mach/configure.in: New file.
5580 * sysdeps/mach/configure: New generated file.
5582 * mach/Makefile (user-interfaces): Remove default_pager_helper.
5583 It has never been used by anything.
5585 2002-02-06 H.J. Lu <hjl@gnu.org>
5587 * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
5590 2002-02-06 Ulrich Drepper <drepper@redhat.com>
5592 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
5593 attribute((packed)) to counter stupid people misusing gcc options.
5594 (struct stat64): Likewise.
5596 2002-02-05 Ulrich Drepper <drepper@redhat.com>
5598 * elf/rtld.c (dl_main): Correct indentation. Use bool as type for
5599 the variables which are used as booleans.
5601 2002-02-06 Andreas Jaeger <aj@suse.de>
5603 * include/libc-symbols.h (INTUSE): Renamed from INT.
5604 * elf/dl-deps.c: Change users.
5605 * sysdeps/generic/dl-sysdep.c: Likewise.
5606 * sysdeps/generic/dl-cache.c: Likewise.
5607 * elf/dl-reloc.c: Likewise.
5608 * elf/rtld.c: Likewise.
5609 * elf/dl-version.c: Likewise.
5610 * elf/dl-load.c: Likewise.
5611 * elf/dl-dst.h: Likewise.
5612 * elf/dl-init.c: Likewise.
5613 * elf/dl-error.c: Likewise.
5614 * elf/dl-fini.c: Likewise.
5615 * elf/dl-runtime.c: Likewise.
5616 * elf/do-lookup.h: Likewise.
5618 * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
5620 * stdio-common/_itowa.h: Likewise.
5622 2002-02-05 Ulrich Drepper <drepper@redhat.com>
5624 * elf/dl-minimal.c: Define _itoa_lower_digits.
5626 * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
5629 * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
5630 loading modules with the DF_STATIC_TLS flag set.
5631 * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
5633 * include/link.h (struct link_map): Add l_flags field.
5634 * elf/elf.h (DF_STATIC_TLS): New definition.
5636 * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
5637 * dlfcn/bug-dlopen1.c: New file. By Bruno Haible.
5639 * elf/rtld.c (process_dl_debug): Correct printing help message.
5640 * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
5643 * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
5644 definition and pass &errno in use of this variable.
5645 Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
5647 2002-02-04 Andreas Schwab <schwab@suse.de>
5649 * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
5650 * locale/programs/charmap-dir.c: Wrap calls that output messages
5651 with WITH_CUR_LOCALE. Include "localedef.h" first.
5652 * locale/programs/charmap.c: Likewise.
5653 * locale/programs/ld-address.c: Likewise.
5654 * locale/programs/ld-collate.c: Likewise.
5655 * locale/programs/ld-ctype.c: Likewise.
5656 * locale/programs/ld-identification.c: Likewise.
5657 * locale/programs/ld-measurement.c: Likewise.
5658 * locale/programs/ld-messages.c: Likewise.
5659 * locale/programs/ld-monetary.c: Likewise.
5660 * locale/programs/ld-name.c: Likewise.
5661 * locale/programs/ld-numeric.c: Likewise.
5662 * locale/programs/ld-paper.c: Likewise.
5663 * locale/programs/ld-telephone.c: Likewise.
5664 * locale/programs/ld-time.c: Likewise.
5665 * locale/programs/linereader.c: Likewise.
5666 * locale/programs/linereader.h: Likewise.
5667 * locale/programs/localedef.c: Likewise.
5668 * locale/programs/locfile.c: Likewise.
5669 * locale/programs/repertoire.c: Likewise.
5671 2002-02-05 Ulrich Drepper <drepper@redhat.com>
5673 * elf/rtld.c (_dl_start_final): Determine load address to locate
5674 ehdr with GL(dl_rtld_map).l_map_start.
5676 * po/ca.po: Update from translation team.
5678 * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
5679 * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
5681 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
5683 * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
5685 2002-02-04 Ulrich Drepper <drepper@redhat.com>
5687 * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
5688 * include/link.h (struct link_map): Add various members for TLS
5690 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
5691 _rtld_tlsoffset, add _dl_initimage_list.
5692 * sysdeps/i386/dl-lookupcfg.h: New file.
5693 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
5694 TLS relocation. When using TLS we now use RESOLVE_MAP.
5695 (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
5698 * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
5701 * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
5702 thread-pointer as soon as possible.
5703 * sysdeps/generic/ldsodefs.h: Include <tls.h>. Define first TLS
5704 elements in rtld_global.
5705 * sysdeps/generic/tls.h: New file.
5706 * elf/Makefile (distribute): Add tls.h.
5707 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
5708 relocations. Not complete yet.
5710 * resolv/resolv.h: Allow user to define __need_res_state and only
5711 define __res_start structure then.
5712 * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
5714 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
5715 dl_cpuclock_offset initialization to _dl_start_final.
5716 (_dl_show_auxv): Avoid unnecessary sign extension.
5717 * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
5719 2002-02-03 Ulrich Drepper <drepper@redhat.com>
5721 * config.h.in: Add HAVE_TLS_SUPPORT.
5722 * sysdeps/i386/elf/configure.in: New file.
5724 2002-02-03 Andreas Schwab <schwab@suse.de>
5726 * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
5727 * sysdeps/posix/writev.c: Use ssize_t for bytes_written. Fix comment.
5729 2002-02-03 Thorsten Kukuk <kukuk@suse.de>
5731 * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
5732 alloca if the memory reqirements are too high.
5734 2002-02-03 Ulrich Drepper <drepper@redhat.com>
5736 * elf/dl-load.c (decompose_rpath): Avoid using strstr.
5737 * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
5738 the former is available anyway and speed isn't important here.
5739 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
5740 * elf/dl-version.c (match_symbol): Likewise.
5741 (_dl_check_map_versions): Likewise.
5742 * elf/rtld.c (process_envvars): Likewise.
5743 (print_statistics): Likewise.
5744 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
5745 * elf/dl-minimal.c (_itoa): Always define it. Make it work for all
5746 bases. Add assert to catch uses of unimplemented features.
5747 (__strsep): Add assert to catch uses of unimplemented features.
5748 * elf/dl-object.c (_dl_new_object): Don't use rawmemchr. Use strchr
5749 and avoid inline optimization.
5750 * elf/rtld.c (process_envvars): Likewise.
5751 * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
5752 * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
5753 * elf/rtld.c (dl_main): Avoid strsep inline optimization.
5755 2002-02-02 Ulrich Drepper <drepper@redhat.com>
5757 * stdio-common/_itoa.h: Minor simplifications of the code.
5758 * stdio-common/_itoa.c: Likewise.
5760 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
5761 instead of _dl_printf for debugging info output.
5763 * manual/examples/mkfsock.c (make_named_socket): Make sure name is
5764 always NUL-terminated. Patch by Chris D. Sloan <cds@cs.hmc.edu>.
5766 2002-02-01 H.J. Lu <hjl@gnu.org>
5768 * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
5769 (atomic_add): Likewise.
5770 (compare_and_swap): Return 0 only when failed to compare. Use
5773 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
5776 2002-02-03 kaz Kojima <kkojima@rr.iij4u.or.jp>
5778 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
5780 2002-02-02 Ulrich Drepper <drepper@redhat.com>
5782 * elf/dl-minimal.c (__strsep): New minimal implementation.
5784 2002-02-02 Paul Eggert <eggert@twinsun.com>
5786 * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
5787 (__mktime_internal): If no tm_isdst is requested, prefer solutions
5788 with tm_isdst > 0 when the requested time falls within a
5789 spring-forward gap [PR libc/2894].
5791 2002-02-03 Andreas Schwab <schwab@suse.de>
5793 * stdio-common/tst-rndseek.c: Increase timeout.
5795 2002-02-02 Ulrich Drepper <drepper@redhat.com>
5797 Change ld.so to not use functions which are exported. One cannot
5798 interpose them anyway. Use INT() to mark uses, INTDEF() to mark
5800 * include/libc-symbols.h: Define INT and INTDEF.
5801 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
5802 _dl_signal_error_internal, _dl_map_object_internal,
5803 _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
5804 _dl_lookup_versioned_symbol_internal,
5805 _dl_relocate_object_internal, _dl_debug_state_internal,
5806 _dl_start_profile_internal, and _dl_unload_cache_internal.
5807 * include/dlfcn.h: Declare _dl_catch_error_internal.
5808 * elf/rtld.c: Use INT for calls to any of the *_internal functions
5809 above. Add INTDEF to function definitions.
5810 * elf/dl-debug.c: Likewise.
5811 * elf/dl-deps.c: Likewise.
5812 * elf/dl-dst.h: Likewise.
5813 * elf/dl-error.c: Likewise.
5814 * elf/dl-fini.c: Likewise.
5815 * elf/dl-init.c: Likewise.
5816 * elf/dl-load.c: Likewise.
5817 * elf/dl-lookup.c: Likewise.
5818 * elf/dl-misc.c: Likewise.
5819 * elf/dl-open.c: Likewise.
5820 * elf/dl-profile.c: Likewise.
5821 * elf/dl-reloc.c: Likewise.
5822 * elf/dl-runtime.c: Likewise.
5823 * elf/dl-version.c: Likewise.
5824 * elf/do-lookup.h: Likewise.
5825 * sysdeps/generic/dl-cache.c: Likewise.
5826 * sysdeps/generic/dl-sysdep.c: Likewise.
5827 * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
5828 instead of _dl_init.
5829 * sysdeps/arm/dl-machine.h: Likewise.
5830 * sysdeps/cris/dl-machine.h: Likewise.
5831 * sysdeps/hppa/dl-machine.h: Likewise.
5832 * sysdeps/i386/dl-machine.h: Likewise.
5833 * sysdeps/ia64/dl-machine.h: Likewise.
5834 * sysdeps/m68k/dl-machine.h: Likewise.
5835 * sysdeps/mips/dl-machine.h: Likewise.
5836 * sysdeps/mips/mips64/dl-machine.h: Likewise.
5837 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
5838 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
5839 * sysdeps/sh/dl-machine.h: Likewise.
5840 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
5841 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
5842 * sysdeps/x86_64/dl-machine.h: Likewise.
5843 * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
5845 * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
5846 and _dl_debug_initialize.
5848 * elf/dl-object.c (_dl_new_object): Avoid using strrchr. We have
5850 * elf/rtld.c (dl_main): Avoid strrchr.
5851 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
5852 result of readlink. Search from the back for '/'.
5854 * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
5855 strncpy if possible.
5857 * sysdeps/generic/dl-environ.c (unsetenv): Optimize. Don't use
5859 * elf/dl-load.c (is_dst): Optimize. Don't call strncmp twice.
5860 * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
5861 strspn, and strcspn.
5862 (process_envvars): Don't use strcspn.
5864 * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
5865 (_dl_dst_substitute): Likewise.
5867 2002-02-01 Ulrich Drepper <drepper@redhat.com>
5869 * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
5870 code which is never used when relocating ld.so itself.
5872 * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
5873 starting ld.so itself. Move l_addr variable initialization closer
5875 (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
5877 2002-02-01 Jakub Jelinek <jakub@redhat.com>
5879 * Versions.def (libc): Add GLIBC_PRIVATE.
5880 (libdb, libnss_db, libdb1): Remove.
5881 (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
5882 libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
5883 (libpthread): Add GLIBC_PRIVATE.
5884 (libresolv): Likewise, remove GLIBC_2.1.
5885 (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
5886 GLIBC_2.2.3, GLIBC_2.3.
5887 * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
5888 * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
5889 _dl_sym, _dl_vsym): Likewise.
5890 (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
5891 _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
5892 _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
5893 _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
5894 _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
5895 _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
5896 _dl_relocate_object, _dl_signal_error, _dl_start_profile,
5897 _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
5899 (_dl_object_relocation_scope): Remove.
5900 * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
5901 * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
5902 __gconv_cache): Move to GLIBC_PRIVATE.
5903 * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
5904 __internal_setnetgrent): Likewise.
5905 * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
5906 __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
5907 * locale/Versions (__collate_element_hash, __collate_element_strings,
5908 __collate_symbol_classes, __collate_symbol_hash,
5909 __collate_symbol_strings, _nl_current_LC_COLLATE,
5910 _nl_current_LC_CTYPE): Likewise.
5911 * misc/Versions (__libc_fsync, __libc_msync): Likewise.
5912 * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
5913 (libnss_nis, libnss_nisplus): Likewise.
5914 * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
5915 _nss_files_parse_spent): Move to GLIBC_PRIVATE.
5916 (libnss_files): Move all symbols to GLIBC_PRIVATE.
5917 * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
5918 __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
5919 __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
5920 * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
5921 __ns_get16, __ns_samename): Likewise.
5922 (libnss_dns): Move all symbols to GLIBC_PRIVATE.
5923 * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
5925 * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
5926 __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
5927 __libc_connect): Likewise.
5928 * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
5930 * stdlib/Versions (__libc_system): Likewise.
5931 * sunrpc/Versions (__rpc_thread_destroy): Likewise.
5932 * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
5933 * sysdeps/ia64/fpu/Versions: Likewise.
5934 * sysdeps/ia64/Versions: Likewise.
5935 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
5936 * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
5938 * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
5939 * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
5940 __libc_sigaction): Likewise.
5941 * termios/Versions (__libc_tcdrain): Likewise.
5943 * misc/sys/cdefs (__attribute_noinline__): Define.
5944 * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
5945 __attribute_noinline__.
5947 * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
5948 * elf/dl-xstat64.c: New file.
5949 * elf/dl-fxstat64.c: New file.
5950 * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
5951 don't export __fxstat64 at multiple versions.
5952 * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
5953 * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
5955 2002-01-18 Isamu Hasegawa <isamu@yamato.ibm.com>
5957 * locale/program/ld-collate.c (collate_finish): Assign a wide
5958 char collation sequence value to multi character collating
5959 elements, and avoid over writing by non-character elements.
5961 2002-02-01 Ulrich Drepper <drepper@redhat.com>
5963 * elf/Makefile (distribute): Add dl-procinfo.c.
5964 * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
5965 * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
5967 2002-02-01 Jakub Jelinek <jakub@redhat.com>
5969 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
5971 * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
5972 _rtld_global struct.
5973 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
5974 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
5975 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
5976 * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
5977 * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
5978 _dl_fpu_control_set): Remove unused externs.
5979 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
5980 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
5981 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
5982 related variables in _rtld_global struct.
5983 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
5984 * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
5987 2002-02-01 Ulrich Drepper <drepper@redhat.com>
5989 * sysdeps/generic/dl-procinfo.c: New file.
5991 2002-02-01 Andreas Schwab <schwab@suse.de>
5993 * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
5995 2002-02-01 Ulrich Drepper <drepper@redhat.com>
5997 * elf/rtld.c (_dl_start): Mark as internal_function.
5998 * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
6000 (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
6001 General pretty printing.
6003 2002-01-31 Ulrich Drepper <drepper@redhat.com>
6005 * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
6006 * elf/dl-reloc.c: Pretty printing.
6007 * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
6008 procinfo-related variables in rtld_global struct.
6009 * elf/dl-support.c: Likewise.
6010 * elf/rtld.c: Likewise.
6011 * sysdeps/i386/i686/Makefile: Likewise.
6012 * sysdeps/i386/i686/hp-timing.c: Likewise.
6013 * sysdeps/i386/i686/hp-timing.h: Likewise.
6014 * sysdeps/ia64/Makefile: Likewise.
6015 * sysdeps/ia64/hp-timing.c: Likewise.
6016 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
6017 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
6018 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
6019 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
6020 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
6021 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
6022 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
6023 * sysdeps/x86_64/Makefile: Likewise.
6025 * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
6026 _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
6027 _dl_debug_fd to rtld_global.
6028 * elf/Versions: Likewise.
6029 * elf/dl-close.c: Likewise.
6030 * elf/dl-iteratephdr.c: Likewise.
6031 * elf/dl-lookup.c: Likewise.
6032 * elf/dl-misc.c: Likewise.
6033 * elf/dl-open.c: Likewise.
6034 * elf/dl-support.c: Likewise.
6035 * elf/do-lookup.h: Likewise.
6036 * elf/rtld.c: Likewise.
6037 * sysdeps/generic/dl-cache.c: Likewise.
6038 * sysdeps/generic/dl-sysdep.c: Likewise.
6039 * sysdeps/ia64/Versions: Likewise.
6040 * sysdeps/unix/clock_gettime.c: Likewise.
6041 * sysdeps/unix/clock_settime.c: Likewise.
6042 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
6043 * sysdeps/sparc/Versions: Removed.
6044 * sysdeps/i386/i686/Versions : Removed.
6045 * sysdeps/x86_64/Versions: Removed.
6046 * configure.in: Define HAVE_PROTECTED if .protected is available.
6047 * config.h.in: Add entry for HAVE_PROTECTED.
6049 2002-01-31 Jakub Jelinek <jakub@redhat.com.
6051 * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
6052 code in struct _rtld_global. Export this struct, remove all
6053 exports for the signal variables.
6054 * sysdeps/arm/dl-machine: Likewise.
6055 * sysdeps/generic/dl-origin: Likewise.
6056 * sysdeps/generic/dl-sysdep: Likewise.
6057 * sysdeps/generic/dl-cache: Likewise.
6058 * sysdeps/hppa/dl-fptr: Likewise.
6059 * sysdeps/hppa/dl-machine: Likewise.
6060 * sysdeps/cris/dl-machine: Likewise.
6061 * sysdeps/i386/dl-machine: Likewise.
6062 * sysdeps/ia64/dl-machine: Likewise.
6063 * sysdeps/m68k/dl-machine: Likewise.
6064 * sysdeps/mach/hurd/dl-sysdep: Likewise.
6065 * sysdeps/mips/mips64/dl-machine: Likewise.
6066 * sysdeps/mips/dl-machine: Likewise.
6067 * sysdeps/powerpc/elf/libc-start: Likewise.
6068 * sysdeps/powerpc/dl-machine: Likewise.
6069 * sysdeps/powerpc/dl-start: Likewise.
6070 * sysdeps/sparc/sparc32/dl-machine: Likewise.
6071 * sysdeps/sparc/sparc64/dl-machine: Likewise.
6072 * sysdeps/sh/dl-machine: Likewise.
6073 * sysdeps/s390/s390-32/dl-machine: Likewise.
6074 * sysdeps/s390/s390-64/dl-machine: Likewise.
6075 * sysdeps/unix/sysv/aix/libc-start: Likewise.
6076 * sysdeps/unix/sysv/aix/start-libc: Likewise.
6077 * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
6078 * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
6079 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
6080 * sysdeps/x86_64/dl-machine: Likewise.
6082 2002-01-31 Ulrich Drepper <drepper@redhat.com>
6084 * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
6087 2002-01-31 Andreas Schwab <schwab@suse.de>
6089 * sysdeps/posix/readv.c: Check for ssize_t overflow.
6091 2002-01-31 Andreas Schwab <schwab@suse.de>
6093 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
6094 reference to _dl_pagesize.
6096 2002-01-30 Ulrich Drepper <drepper@redhat.com>
6098 * Versions.def [ld]: Add GLIBC_2.3.
6099 * elf/dl-addr.c: Move global variables for SHARED code in struct
6100 _rtld_global. Export this struct, remove all exports for the
6102 * elf/dl-close.c: Likewise.
6103 * elf/dl-conflict.c: Likewise.
6104 * elf/dl-debug.c: Likewise.
6105 * elf/dl-deps.c: Likewise.
6106 * elf/dl-dst.h: Likewise.
6107 * elf/dl-error.c: Likewise.
6108 * elf/dl-fini.c: Likewise.
6109 * elf/dl-init.c: Likewise.
6110 * elf/dl-iteratephdr.c: Likewise.
6111 * elf/dl-libc.c: Likewise.
6112 * elf/dl-load.c: Likewise.
6113 * elf/dl-lookup.c: Likewise.
6114 * elf/dl-minimal.c: Likewise.
6115 * elf/dl-object.c: Likewise.
6116 * elf/dl-open.c: Likewise.
6117 * elf/dl-profile.c: Likewise.
6118 * elf/dl-profstub.c: Likewise.
6119 * elf/dl-reloc.c: Likewise.
6120 * elf/dl-runtime.c: Likewise.
6121 * elf/dl-support.c: Likewise.
6122 * elf/dl-sym.c: Likewise.
6123 * elf/dl-version.c: Likewise.
6124 * elf/do-lookup.h: Likewise.
6125 * elf/do-rel.h: Likewise.
6126 * elf/dynamic-link.h: Likewise.
6127 * elf/rtld.c: Likewise.
6128 * sysdeps/generic/dl-cache.c: Likewise.
6129 * sysdeps/generic/dl-sysdep.c: Likewise.
6130 * sysdeps/generic/ldsodefs.h: Likewise.
6131 * sysdeps/generic/libc-start.c: Likewise.
6132 * sysdeps/i386/dl-machine.h: Likewise.
6133 * sysdeps/ia64/dl-fptr.c: Likewise.
6134 * sysdeps/ia64/dl-machine.h: Likewise.
6135 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
6136 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
6137 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
6138 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
6139 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
6140 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
6141 * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
6142 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
6144 2002-01-29 Ulrich Drepper <drepper@redhat.com>
6146 * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
6148 (DL_STATIC_FUNCTION_ADDRESS): Likewise.
6150 * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
6152 * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
6154 * elf/rtld.c (_dl_start): Use __builtin_memset if available.
6156 2002-01-29 Ben Collins <bcollins@debian.org>
6158 * string/bits/string2.h (__mempcpy): Protect size arg for
6159 addition when using __builtin_memcpy.
6161 2002-01-29 Ulrich Drepper <drepper@redhat.com>
6163 * stdlib/Makefile (tests): Add tst-qsort.
6164 * stdlib/tst-qsort.c: New file. Written by Paul Eggert.
6166 * manual/signal.texi (Process Signal Mask): Document that
6167 pthread_sigmask, not sigprocmask, must be used in MT programs.
6168 Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
6170 * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
6172 * misc/Makefile (tests): Add tst-hsearch.
6173 * misc/tst-hsearch.c: New file.
6175 2002-01-18 Wolfram Gloger <wg@malloc.de>
6177 * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
6178 * malloc/malloc.h: Likewise.
6179 * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
6180 * malloc/arena.c: New file.
6181 * malloc/hooks.c: New file.
6182 * malloc/tst-mallocstate.c: New file.
6183 * malloc/Makefile: Add new testcase tst-mallocstate.
6184 Add arena.c and hooks.c to distribute. Fix commented CPPFLAGS.
6186 2002-01-28 Ulrich Drepper <drepper@redhat.com>
6188 * stdlib/msort.c: Remove last patch. The optimization violates the
6189 same rule which qsort.c had problems with.
6191 2002-01-27 Paul Eggert <eggert@twinsun.com>
6193 * stdlib/qsort.c (_quicksort): Do not apply the comparison function
6194 to a pivot element that lies outside the array to be sorted, as
6195 ISO C99 requires that the comparison function be called only with
6196 addresses of array elements [PR libc/2880].
6198 2002-01-28 Ulrich Drepper <drepper@redhat.com>
6200 * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
6201 for SHARED code. Reported by Ben Collins <bcollins@debian.org>.
6203 * timezone/asia: Update from tzdata2002b.
6204 * timezone/australasia: Likewise.
6205 * timezone/backward: Likewise.
6206 * timezone/europe: Likewise.
6207 * timezone/leapseconds: Likewise.
6208 * timezone/iso3166.tab: Likewise.
6209 * timezone/zone.tab: Likewise.
6211 2002-01-23 Richard Henderson <rth@redhat.com>
6213 * sysdeps/alpha/Makefile (pic-ccflag): New variable.
6215 2002-01-28 Ulrich Drepper <drepper@redhat.com>
6217 * string/strxfrm.c: Allocate one more byte for rulearr and clear
6218 this element [PR libc/2855].
6220 * string/strcoll.c: Handle zero-length arguments specially
6223 2002-01-23 Jakub Jelinek <jakub@redhat.com>
6225 * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
6226 __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
6227 short lengths and constant src.
6228 (strcpy): Don't optimize for gcc 3.0+.
6229 (__stpcpy): For gcc 3.0+, don't use
6230 __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
6231 for short string literal src.
6233 2002-01-23 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
6235 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
6238 2001-01-22 Paul Eggert <eggert@twinsun.com>
6240 * manual/llio.texi (Linked Channels, Cleaning Streams):
6241 Make it clearer that a just-opened input stream might need cleaning.
6243 2002-01-21 H.J. Lu <hjl@gnu.org>
6245 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
6246 Don't use label at end of compound statement.
6248 2002-01-28 Stephen L Moshier <moshier@mediaone.net>
6250 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
6251 Remove test for negative integer arg; sin_pi does it correctly.
6253 2002-01-20 Ulrich Drepper <drepper@redhat.com>
6255 * nscd/Makefile (distribute): Filter out xmalloc.c.
6257 2002-01-19 Ulrich Drepper <drepper@redhat.com>
6259 * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
6260 Set offset if read end wasn't the buffer end.
6261 (_IO_file_seekoff_mmap): New function.
6262 (_IO_file_xsgetn_mmap): New function.
6263 (_IO_file_jumps_mmap): Use the two new functions.
6264 * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
6266 * libio/libioP.h: Declare _IO_file_seekoff_mmap and
6267 _IO_file_underflow_mmap.
6268 * libio/iofopen.c: Don't position file descriptor at end of file.
6269 * libio/tst-widetext.c: Improve error messages.
6270 * stdio-common/tst-rndseek.c: Likewise.
6272 2002-01-18 Ulrich Drepper <drepper@redhat.com>
6274 * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
6275 end of enum for !_GNU_SOURCE.
6276 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
6277 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
6278 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
6279 * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
6280 values unless _GNU_SOURCE.
6282 * iconvdata/tcvn5712-1.c: Minor cleanups.
6284 2002-01-18 Andreas Schwab <schwab@suse.de>
6286 * sysdeps/unix/sysv/linux/configure.in
6287 (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
6289 2002-01-16 Roger Sayle <roger@eyesopen.com>
6291 * stdlib/msort.c (msort_with_tmp): Replace implementation with
6292 more efficient "Towers of Hanoi" mergesort.
6293 (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
6294 for generic, sizeof(int) and sizeof(long) variants respectively.
6296 2002-01-17 Ulrich Drepper <drepper@redhat.com>
6298 * manual/syslog.texi (openlog): Describe possible problems with
6300 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
6302 * nscd/nscd.c (drop_privileges): Removed. Adjust caller.
6303 * nscd/connections.c (begin_drop_privileges): New function.
6304 (finish_drop_privileges): New function.
6305 (nscd_init): Call the new functions which also install all groups
6306 for the server user.
6307 * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
6308 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
6310 2002-01-17 H.J. Lu <hjl@gnu.org>
6312 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
6315 2002-01-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
6317 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
6318 instructions for pointer operations.
6319 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
6321 2002-01-17 Andreas Jaeger <aj@suse.de>
6323 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
6324 __uint128_t build-in.
6326 * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
6327 PowerPC, sync with 2.2 branch.
6329 2002-01-16 Ulrich Drepper <drepper@redhat.com>
6331 * posix/getconf.c: Update copyright year.
6332 * nss/getent.c: Likewise.
6333 * nscd/nscd_nischeck.c: Likewise.
6334 * iconv/iconvconfig.c: Likewise.
6335 * iconv/iconv_prog.c: Likewise.
6336 * elf/ldconfig.c: Likewise.
6337 * catgets/gencat.c: Likewise.
6338 * csu/version.c: Likewise.
6339 * elf/ldd.bash.in: Likewise.
6340 * elf/sprof.c (print_version): Likewise.
6341 * locale/programs/locale.c: Likewise.
6342 * locale/programs/localedef.c: Likewise.
6343 * nscd/nscd.c (print_version): Likewise.
6344 * debug/xtrace.sh: Likewise.
6345 * malloc/memusage.sh: Likewise.
6346 * malloc/mtrace.pl: Likewise.
6348 2002-01-16 Andreas Schwab <schwab@suse.de>
6350 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
6351 reliably remove "-ia64" from rtld name.
6353 2002-01-16 Ulrich Drepper <drepper@redhat.com>
6355 * iconvdata/gb18030.c: Bug fixes and support for more characters.
6356 Patch by Yu Shao <yshao@redhat.com>.
6358 2002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com>
6360 * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
6361 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
6362 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
6364 2002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
6366 * sysdeps/s390/fpu/libm-test-ulps: Update.
6368 2002-01-11 Ulrich Drepper <drepper@redhat.com>
6370 * elf/elf.h: Update x86 relocations.
6372 2002-01-10 Ulrich Drepper <drepper@redhat.com>
6374 * locale/programs/charmap.c (new_width): Check whether byte
6375 sequences for both ends of range have the same length.
6377 2002-01-09 Jakub Jelinek <jakub@redhat.com>
6379 * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
6381 2002-01-09 Jakub Jelinek <jakub@redhat.com>
6383 * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
6385 (__full_ieee754_sqrt): Add __attribute_used__.
6387 2002-01-10 Ulrich Drepper <drepper@redhat.com>
6389 * sysdeps/generic/group_member.c (__group_member): Also check
6390 groups[0] [PR libc/2781].
6392 2002-01-08 Ulrich Drepper <drepper@redhat.com>
6394 * Makefile (distribute): Add scripts/cpp.
6395 * elf/Makefile (distribute): Add reldep6mod[01234].c,
6396 unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
6397 unwind-dw2-fde.h, and dwarf2.h.
6398 * sysdeps/unix/bsd/bsd4.4/Dist: New file.
6399 * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
6400 * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
6401 * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
6403 2002-01-07 Roland McGrath <roland@frob.com>
6405 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
6406 volatile on type of ARGC so the compiler doesn't get clever.
6408 2002-01-07 Andreas Jaeger <aj@suse.de>
6410 * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
6411 * sysdeps/i386/bits/byteswap.h: Likewise.
6412 * sysdeps/ia64/bits/byteswap.h: Likewise.
6413 * sysdeps/m68k/bits/byteswap.h: Likewise.
6414 * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
6415 * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
6417 2002-01-02 Bruno Haible <bruno@clisp.org>
6419 * intl/plural.y: Fix %expect count.
6421 2002-01-03 Jakub Jelinek <jakub@redhat.com>
6423 * elf/Makefile (routines, shared-only-routines): Add
6424 unwind-dw2-fde-glibc instead of unwind-dw2-fde.
6425 * elf/elf.h (PT_GNU_EH_FRAME): Define.
6426 * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
6427 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
6428 Optimize if .eh_frame section contains no FDEs.
6429 (__register_frame, __deregister_frame_info_bases,
6430 __deregister_frame): Likewise.
6431 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
6432 DW_CFA_restore handling.
6434 2002-01-07 Stephen L Moshier <moshier@mediaone.net>
6436 * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
6438 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
6439 for x < 0.25 and restore original range reduction method.
6440 (__ieee754_lgammal_r): Make sure signgam is set before returning.
6442 2002-01-07 Ulrich Drepper <drepper@redhat.com>
6444 * libio/fileops.c (_IO_file_underflow_mmap): New function.
6445 (_IO_file_close_mmap): New function.
6446 (_IO_file_jumps_mmap): New variable.
6447 * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
6448 trying to convert rest of byte buffer.
6449 (_IO_wfile_underflow_mmap): New function.
6450 (_IO_wfile_jumps_mmap): New variable.
6451 * libio/iofopen.c (__fopen_maybe_mmap): New function.
6452 (__fopen_internal): New function. Split out from _IO_new_fopen.
6453 (_IO_new_fopen): Call __fopen_internal.
6454 * libio/iofopen64.c: Just call __fopen_internal.
6455 * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
6457 * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
6458 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
6459 _IO_file_close_mmap.
6461 * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
6462 * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
6464 * stdio-common/Makefile (tests): Add tst-rndseek.
6465 * stdio-common/tst-rndseek.c: New file.
6467 2002-01-05 Roland McGrath <roland@frob.com>
6469 * config.h.in (HAVE_MIG_RETCODE): New #undef.
6470 * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
6471 swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
6472 * sysdeps/mach/hurd/configure: Regenerated.
6474 2002-01-03 Ulrich Drepper <drepper@redhat.com>
6476 * elf/elf.h: Add more TLS definitions.
6478 2002-01-02 Ulrich Drepper <drepper@redhat.com>
6480 * include/features.h (__GLIBC_MINOR__): Bump to 3.
6482 2002-01-02 Roland McGrath <roland@frob.com>
6484 * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
6485 __sigisemptyset. Don't use MASK uninitialized.
6487 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
6488 * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
6489 * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
6490 __sigdelset, __sigaddset, __sigorset.
6492 * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
6493 * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
6495 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
6496 _hurd_ports is null.
6498 * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
6499 for old CMU and new OSF Mach interface flavors.
6500 * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
6501 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
6503 * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
6505 * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
6506 Pass extra arguments to task_create for OSF variant.
6507 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
6509 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
6510 conditional on [HAVE_AUX_VECTOR].
6512 * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
6513 mach_msg_timeout_t as type of final argument.
6515 * hurd/privports.c (__get_privileged_ports):
6516 Change host_priv_t to mach_port_t in argument type.
6517 * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
6520 * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
6521 multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H].
6522 * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
6523 * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
6524 * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
6525 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
6527 2002-01-01 Roland McGrath <roland@frob.com>
6529 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
6531 2002-01-01 Ulrich Drepper <drepper@redhat.com>
6533 * include/stdlib.h: Define inlines for the _l variants of the strto*
6536 2002-01-01 Roland McGrath <roland@frob.com>
6538 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
6540 * mach/Machrules (MIG): Set CPP as well as CC.
6542 2001-12-31 Ulrich Drepper <drepper@redhat.com>
6544 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
6545 locale to parse /proc/loadavg [PR libc/2760].
6547 2001-12-31 Jakub Jelinek <jakub@redhat.com>
6549 * elf/dl-conflict.c: Include sys/param.h.
6550 (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
6551 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
6553 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
6554 literals to avoid warnings.
6556 2001-12-31 Andreas Jaeger <aj@suse.de>
6558 * configure.in: Don't check for gsed since we do not use it anywhere.
6560 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
6562 * io/fts.c: Update from BSD to fix memory leaks.
6564 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
6566 * crypt/md5-crypt.c: Realloc error handling memory leak fix.
6567 * elf/chroot_canon.c: Likewise.
6568 * elf/dl-object.c: Likewise.
6569 * iconv/iconv_charmap.c: Likewise.
6570 * iconv/iconv_prog.c: Likewise.
6571 * libio/iogetdelim.c: Likewise.
6572 * locale/lc-time.c: Likewise.
6573 * stdlib/canonicalize.c: Likewise.
6574 * sunrpc/svc.c: Likewise.
6575 * sysdeps/generic/glob.c: Likewise.
6577 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
6579 * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
6580 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
6581 remove high order bit from the program counter.
6582 * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
6584 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
6586 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
6587 unnecessary code and add missing reloc types.
6588 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
6589 case for reloc type R_390_NONE.
6591 2001-12-28 Andreas Jaeger <aj@suse.de>
6593 * io/bug-ftw3.c: Include string.h for prototypes.
6595 * crypt/md5test.c (main): Remove unused variable.
6597 * dlfcn/modstatic.c: Add prototype to avoid warning.
6599 2001-12-26 Roland McGrath <roland@frob.com>
6601 * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
6602 check only (SS->pending & MASK) for the signal to return.
6603 From Jeroen Dekkers <jeroen@dekkers.cx>.
6605 2001-12-22 Roland McGrath <roland@frob.com>
6607 * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
6608 Use preprocessor #if conditionals instead of `if' to avoid
6609 warnings about divide by zero in dead code.
6611 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
6612 _hurd_port_init, and __hurd_self_sigstate.
6614 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
6616 2001-12-21 Andreas Jaeger <aj@suse.de>
6618 * elf/dblloadmod1.c: Add prototype to avoid warning.
6619 * elf/dblloadmod2.c: Likewise.
6620 * elf/dblloadmod3.c: Likewise.
6621 * elf/reldepmod5.c: Likewise.
6622 * elf/reldepmod6.c: Likewise.
6624 * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
6625 for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
6626 used on all architectures.
6628 * sunrpc/svc_tcp.c: Add noreturn attribute for
6629 svctcp_rendezvous_abort.
6630 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
6632 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
6635 2001-12-19 Jakub Jelinek <jakub@redhat.com>
6637 * manual/llio.texi (aio_fsync): Fix a typo.
6638 Patch by Tammy Fox <tfox@redhat.com>.
6640 2001-12-18 Jakub Jelinek <jakub@redhat.com>
6642 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
6643 stack bias from child stack pointer before passing it to clone syscall.
6645 2001-12-18 Ulrich Drepper <drepper@redhat.com>
6647 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
6649 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
6650 Reported by Thorsten Kukuk <kukuk@suse.de>.
6652 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
6655 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
6657 2001-12-18 Thorsten Kukuk <kukuk@suse.de>
6659 * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
6660 conforming: return EBADF if file descriptor is invalid and EINVAL
6661 if file descriptor is no valid tty.
6662 * login/tst-grantpt.c: New file.
6663 * login/Makefile (tests): Add tst-grantpt.
6665 2001-12-17 Ulrich Drepper <drepper@redhat.com>
6667 * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
6668 different than implemented in last patch.
6669 * io/bug-ftw3.c: Adjust test for changed handling of
6670 inaccessibility of toplevel dir.
6672 2001-12-16 Roland McGrath <roland@frob.com>
6674 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
6675 * grp/initgroups.c (internal_getgrouplist): Likewise.
6677 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
6678 `default:' to silence new GCC warning.
6679 Rewrite cast of lvalue to silence new GCC warning.
6681 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
6683 * sysdeps/mach/hurd/spawni.c: New file, by me with a
6684 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
6686 2001-12-14 Ulrich Drepper <drepper@redhat.com>
6688 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
6689 Patch by Stephen R. van den Berg.
6691 * crypt/md5.h: Define md5_uintptr.
6693 2001-12-13 Ulrich Drepper <drepper@redhat.com>
6695 * libio/tst_swprintf.c (main): Add test for string argument with
6697 * stdio-common/Makefile (tests): Add tst-sprintf.
6698 * stdio-common/tst-sprintf.c: New file.
6700 2001-12-13 Andreas Schwab <schwab@suse.de>
6702 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
6703 zero precision with wide character string format.
6705 2001-12-13 Thorsten Kukuk <kukuk@suse.de>
6707 * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
6708 but have a user supplied buffer, return the empty buffer, not NULL.
6710 2001-12-13 Ulrich Drepper <drepper@redhat.com>
6712 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
6713 Patch by Eric Sharkey <sharkey@netrics.com>.
6715 * crypt/md5test.c (main): Add test for multiple calls to
6716 __md5_process_bytes to itererate over input string.
6718 2001-12-12 Ulrich Drepper <drepper@redhat.com>
6720 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
6721 from __nis_findfastest. Take timeout value from parameter.
6722 (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
6723 * nis/nis_intern.h: Define parameters controlling __nis_findfastest
6724 [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>.
6726 2001-12-12 Andreas Jaeger <aj@suse.de>
6728 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
6729 combreloc test so that it works in this case.
6731 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
6733 2001-12-12 NIIBE Yutaka <gniibe@m17n.org>
6735 * sysdeps/sh/Makefile: New file.
6736 * sysdeps/sh/_mcount.S: New file.
6737 * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
6738 * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
6740 2001-12-11 Ulrich Drepper <drepper@redhat.com>
6742 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
6743 limitation [PR libc/2564].
6745 2001-12-11 Jakub Jelinek <jakub@redhat.com>
6747 * elf/Makefile (dl-routines): Add conflict.
6748 (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
6749 (ld.so): Add _begin local symbol.
6750 * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
6752 * elf/dl-deps.c (_dl_build_local_scope): New.
6753 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
6755 * elf/do-rel.h (VALIDX): Define.
6756 (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
6757 lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations
6759 * elf/dl-conflict.c: New file.
6760 * elf/dl-lookup.c (_dl_debug_bindings): New.
6761 (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always
6763 (_dl_lookup_symbol_skip): Likewise.
6764 (_dl_lookup_versioned_symbol): Likewise.
6765 (_dl_lookup_versioned_symbol_skip): Likewise.
6766 * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
6767 define to ElfW(Rel).
6768 * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
6769 tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
6771 Don't adjust address dynamic tags if l_addr is 0.
6772 * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
6773 (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
6774 (VALIDX, ADDRIDX): Define.
6775 (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
6776 (dl_main): Print library list for LD_TRACE_PRELINKING.
6777 If prelinking information can be used, skip relocating libraries and
6778 call _dl_resolve_conflicts instead.
6779 (process_envvars): Handle LD_TRACE_PRELINKING envvar.
6780 * elf/dl-load.c (_dl_map_object): Don't create fake libs
6781 if LD_TRACE_PRELINKING.
6782 * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
6784 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
6785 (DL_DEBUG_PRELINK): Define.
6786 (_dl_resolve_conflicts): Add prototype.
6788 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
6789 .plt for prelinked libraries where prelinking info cannot be used.
6790 (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
6791 section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
6792 * sysdeps/arm/bits/link.h: New file.
6793 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
6795 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
6796 (ELF_MACHINE_PLT_REL): Define.
6797 (elf_machine_rela, elf_machine_rela_relative): New.
6798 (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
6799 of adjusting it if prelinked and prelinking cannot be used.
6800 * sysdeps/i386/bits/link.h: New file.
6801 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
6803 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
6804 (ELF_MACHINE_PLT_REL): Define.
6805 (elf_machine_rela, elf_machine_rela_relative): New.
6806 (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
6807 of adjusting it if prelinked and prelinking cannot be used.
6808 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
6809 conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP
6810 to find out map for R_PPC_JMP_SLOT relocs.
6811 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
6812 (OPCODE_BA): Define.
6813 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
6814 libraries where prelinking info cannot be used.
6815 (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
6816 (elf_machine_fixup_plt): Call sparc_fixup_plt.
6817 (elf_machine_rela): Set value to 0 if relocating conflicts.
6818 Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
6819 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
6820 (sparc64_fixup_plt): Fix a typo.
6821 (elf_machine_rela): Set value to 0 if relocating conflicts.
6822 Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
6823 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
6824 libraries where prelinking info cannot be used.
6825 * sysdeps/sh/bits/link.h: New file.
6826 * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
6828 (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
6829 of adjusting it if prelinked and prelinking cannot be used.
6830 * sysdeps/s390/s390-32/bits/link.h: New file.
6831 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
6832 Save original content of .got[1].
6833 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
6834 of adjusting it if prelinked and prelinking cannot be used.
6835 * sysdeps/s390/s390-64/bits/link.h: New file.
6836 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
6837 Save original content of .got[1].
6838 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
6839 of adjusting it if prelinked and prelinking cannot be used.
6840 * sysdeps/x86_64/bits/link.h: New file.
6841 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
6842 Save original content of .got[1].
6843 (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
6844 of adjusting it if prelinked and prelinking cannot be used.
6846 2001-12-11 Ulrich Drepper <drepper@redhat.com>
6848 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
6849 where appropriate instead of numbers. Little optimizations.
6851 2001-12-10 Roland McGrath <roland@frob.com>
6853 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
6856 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
6857 set to GLIBC_2.2.5, not GLIBC_2.2.4.
6859 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
6860 Fix conditionals so this is set by default for stdio and not for libio.
6861 * sysdeps/mach/hurd/configure: Regenerated.
6863 2001-12-10 Thorsten Kukuk <kukuk@suse.de>
6865 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
6867 2001-12-10 Ulrich Drepper <drepper@redhat.com>
6869 * io/Makefile (tests): Add bug-ftw3.
6870 * io/bug-ftw3.c: New file.
6872 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
6873 matches and GLOB_NOCHECK is set.
6874 * posix/globtest.sh: Correct expected result for NOCHECK test.
6876 * po/ca.po: Update from translation team.
6878 2001-12-09 Ulrich Drepper <drepper@redhat.com>
6880 Implement transliteration of characters in strings of the locale
6882 * locale/programs/linereader.c: Adjust for additional parameter to
6884 (get_string): If character <Uxxxx> is not found try to transliterate
6886 * locale/programs/ld-ctype.c: Adjust for additional parameter to
6887 lr_token. Add const to charmap parameter of all functions.
6888 (find_translit, find_translit2): New functions.
6889 * locale/programs/charmap.c: Adjust for additional parameter to
6891 * locale/programs/repertoire.c: Likewise.
6892 * locale/programs/linereader.h: Likewise.
6893 * locale/programs/ld-address.c: Likewise. Add const to charmap
6894 parameter of all functions.
6895 * locale/programs/ld-collate.c: Likewise.
6896 * locale/programs/ld-identification.c: Likewise.
6897 * locale/programs/ld-measurement.c: Likewise.
6898 * locale/programs/ld-messages.c: Likewise.
6899 * locale/programs/ld-monetary.c: Likewise.
6900 * locale/programs/ld-name.c: Likewise.
6901 * locale/programs/ld-numeric.c: Likewise.
6902 * locale/programs/ld-paper.c: Likewise.
6903 * locale/programs/ld-paper.c: Likewise.
6904 * locale/programs/ld-telephone.c: Likewise.
6905 * locale/programs/ld-time.c: Likewise.
6906 * locale/programs/locfile.c: Likewise.
6907 * locale/programs/localedef.c: Likewise.
6908 * locale/programs/localedef.h: Likewise.
6909 * locale/programs/locfile.h: Likewise. Add declaration for
6911 * locale/programs/simple-hash.c: Add const to first parameter of
6912 find_entry, iterate_table, and lookup.
6913 * locale/programs/simple-hash.h: Likewise.
6914 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
6916 * include/locale.h: Define __LC_LAST.
6917 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
6919 2001-12-07 Geoff Keating <geoffk@redhat.com>
6921 * sysdeps/powerpc/Dist: Update for recent FP changes.
6922 * sysdeps/powerpc/fpu/Dist: Likewise.
6924 2001-12-07 Andreas Schwab <schwab@suse.de>
6926 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
6928 2001-12-06 Geoff Keating <geoffk@redhat.com>
6930 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
6931 save/restore functions here.
6932 (libm-support): Don't define these functions here.
6933 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
6935 * sysdeps/powerpc/fe_nomask.c: Move to...
6936 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
6937 * sysdeps/powerpc/fprrest.S: Move to...
6938 * sysdeps/powerpc/fpu/fprrest.S: ... here.
6939 * sysdeps/powerpc/fprsave.S: Move to...
6940 * sysdeps/powerpc/fpu/fprsave.S: ... here.
6942 2001-12-06 Ulrich Drepper <drepper@redhat.com>
6944 * sysdeps/unix/sysv/linux/opensock.c: New file.
6946 2001-12-06 Geoff Keating <geoffk@redhat.com>
6948 * config.make.in (with-fp): Define from configure.
6949 * configure.in: Substitute with_fp.
6950 * configure: Regenerate.
6951 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
6952 specified, and don't change FPU environment.
6954 2001-12-06 Ulrich Drepper <drepper@redhat.com>
6956 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
6957 * assert/assert.c: Check result of __asprintf call and don't use
6958 string if it failed.
6959 * assert/assert-perr.c: Likewise.
6960 * inet/rcmd.c: Likewise.
6961 * locale/programs/localedef.c (main): Check result of
6962 construct_output_path and exit if it failed.
6963 (construct_output_path): Check result of asprintf and mkdir calls and
6964 fail if they failed.
6965 * posix/getopt.c: Check result of __asprintf calls and fail if
6967 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
6969 2001-12-05 Ulrich Drepper <drepper@redhat.com>
6971 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
6973 * sysdeps/generic/strncase.c: Likewise.
6974 * string/tester.c: Add tests for strcasecmp and strncasecmp.
6976 2001-12-05 Geoff Keating <geoffk@redhat.com>
6978 * scripts/cpp: Test the exit status from 'type', not 'awk'.
6980 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
6981 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
6982 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
6983 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
6984 * sysdeps/powerpc/fclrexcpt.c: Move to...
6985 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
6986 * sysdeps/powerpc/fpu_control.h: Move to...
6987 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
6989 2001-12-05 Ulrich Drepper <drepper@redhat.com>
6991 * iconvdata/ibm1129.h: Remove duplicate mappings.
6992 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
6993 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
6994 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
6996 * timezone/zic.c: Fix handling of turnaround times.
6997 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
6999 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
7001 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
7004 2001-12-05 Ulrich Drepper <drepper@redhat.com>
7006 * posix/regex.c: For use outside glibc defined bounded pointer
7007 macros here. Patch by Jim Meyering <jim@meyering.net>.
7009 * iconvdata/Makefile (modules): Add TCVN5712-1.
7010 * iconvdata/TESTS: Add TCVN5712-1.
7011 * iconvdata/gconv-modules: Likewise.
7012 * iconvdata/tcvn5712-1.c: New file.
7013 * iconvdata/testdata/TCVN-5712: New file.
7014 * iconvdata/testdata/TCVN-5712..UTF8: New file.
7016 2001-12-04 Ulrich Drepper <drepper@redhat.com>
7018 * iconvdata/cp1258.c: Optimize conversion from UCS4.
7020 2001-12-02 Roland McGrath <roland@frob.com>
7022 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
7024 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
7025 Reported by Jeff Bailey <jbailey@nisa.net>.
7027 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
7028 Reported by Jeff Bailey <jbailey@nisa.net>.
7030 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
7031 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
7032 Reported by Jeff Bailey <jbailey@nisa.net>.
7034 2001-12-01 Roland McGrath <roland@frob.com>
7036 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
7037 missing backslash in test arguments.
7038 * sysdeps/mach/hurd/configure: Regenerated.
7040 2001-11-26 Roland McGrath <roland@frob.com>
7042 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
7043 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
7045 2001-11-30 Ulrich Drepper <drepper@redhat.com>
7047 * iconvdata/Makefile (modules): Add ARMSCII-8.
7048 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
7049 * iconvdata/armscii-8.c: New file.
7051 2001-11-29 Jakub Jelinek <jakub@redhat.com>
7053 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
7054 don't match, fix {{a,b},c} globbing, clean up.
7055 Patch by Flavio Veloso <flaviovs@magnux.com>.
7056 * posix/globtest.sh: Add new tests.
7058 2001-11-29 Andreas Jaeger <aj@suse.de>
7060 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
7061 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
7063 * sysdeps/generic/abort.c: Include libioP.h for
7064 _IO_flush_all_lockp prototype.
7066 2001-11-29 Ulrich Drepper <drepper@redhat.com>
7068 * posix/regex.h: Define __restrict_arr correctly.
7070 2001-11-28 Ulrich Drepper <drepper@redhat.com>
7072 * iconvdata/ibm1163.c: New file.
7073 * iconvdata/ibm1163.h: New file.
7074 * iconvdata/ibm1164.c: New file.
7075 * iconvdata/ibm1164.h: New file.
7076 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
7077 * iconvdata/Makefile: Likewise.
7078 * iconvdata/testdata/IBM1163: New file.
7079 * iconvdata/testdata/IBM1163..UTF8: New file.
7080 * iconvdata/testdata/IBM1164: New file.
7081 * iconvdata/testdata/IBM1164..UTF8: New file.
7082 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
7084 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
7085 * iconvdata/ibm1124.h: Likewise.
7086 * iconvdata/ibm1132.h: Likewise.
7087 * iconvdata/ibm1133.h: Likewise.
7088 * iconvdata/ibm1160.h: Likewise.
7089 * iconvdata/ibm1161.h: Likewise.
7090 * iconvdata/ibm1162.h: Likewise.
7091 * iconvdata/ibm856.h: Likewise.
7092 * iconvdata/ibm922.h: Likewise.
7093 * iconvdata/ibm930.h: Likewise.
7094 * iconvdata/ibm932.h: Likewise.
7095 * iconvdata/ibm933.h: Likewise.
7096 * iconvdata/ibm935.h: Likewise.
7097 * iconvdata/ibm937.h: Likewise.
7098 * iconvdata/ibm939.h: Likewise.
7099 * iconvdata/ibm943.h: Likewise.
7100 * iconvdata/ibm930.c: Pretty printing.
7101 * iconvdata/ibm937.c: Avoid access accross array boundary.
7103 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
7104 the current locale's codeset.
7105 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
7107 * iconv/iconv_prog.c: Pass empty strings as default value for to-
7108 and from-charset. Don't determine locale's charset here.
7110 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
7111 as the old _IO_flush_all but lock only if parameter is nonzero.
7112 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
7113 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
7114 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
7115 if libio is used [PR libc/2575].
7117 2001-11-28 Jakub Jelinek <jakub@redhat.com>
7119 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
7120 __signbitl): Only define for ISO C99.
7122 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
7124 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
7125 herrnop to NETDB_INTERNAL if we run out of buffer space.
7127 2001-11-28 Ulrich Drepper <drepper@redhat.com>
7129 * nss/nss_files/files-XXX.c (internal_getent): Correct input
7130 overflow test for platforms with signed char.
7131 Reported by Andrew Haley <aph@cambridge.redhat.com>.
7133 2001-11-28 Bruno Haible <bruno@clisp.org>
7135 * locale/programs/simple-hash.c (lookup_2): Remove function.
7136 (insert_entry_2): Call lookup instead of lookup_2.
7138 2001-03-04 Bruno Haible <bruno@clisp.org>
7140 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
7142 2001-10-31 Bruno Haible <bruno@clisp.org>
7144 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
7146 2001-03-21 Bruno Haible <bruno@clisp.org>
7148 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
7149 chokes on empty macro arguments.
7150 * intl/plural.y: Add #pragma for alloca on AIX 3.
7152 2001-11-27 Ulrich Drepper <drepper@redhat.com>
7154 * intl/dcigettext.c (guess_category_value): Only implement for
7155 glibc. Otherwise rely on function _nl_locale_name which isn't
7156 present in the glibc sources.
7158 2001-09-24 Bruno Haible <bruno@clisp.org>
7160 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
7161 transliteration when building on a glibc system but outside glibc.
7163 2001-09-22 Bruno Haible <bruno@clisp.org>
7165 * intl/plural-eval.c: New file, extracted from dcigettext.c.
7166 * intl/dcigettext.c (plural_eval): Remove function, moved to
7168 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
7169 Include plural-eval.c.
7171 2001-09-22 Bruno Haible <bruno@clisp.org>
7173 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
7174 don't start with a digit; nplurals must be positive.
7176 2001-09-02 Bruno Haible <bruno@clisp.org>
7178 * intl/plural-exp.h: New file, extracted from gettextP.h.
7179 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
7180 * intl/gettextP.h (struct expression, struct parse_args,
7181 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
7182 * intl/loadmsgcat.c: Include plural-exp.h.
7183 (PLURAL_PARSE): Move macro to plural-exp.h.
7184 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
7186 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
7187 EXTRACT_PLURAL_EXPRESSION.
7188 (_nl_unload_domain): Update.
7189 * intl/dcigettext.c: Include plural-exp.h.
7190 * intl/plural.y: Include plural-exp.h, not gettextP.h.
7191 (FREE_EXPRESSION): Move macro to plural-exp.h.
7192 * intl/Makefile (routines): Add plural-exp.
7193 (distribute): Add plural-exp.h.
7195 2001-07-28 Bruno Haible <bruno@clisp.org>
7197 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
7198 isdigit, tolower argument to 'unsigned char'.
7199 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
7201 * intl/localealias.c (read_alias_file): Cast isspace argument to
7204 2001-10-20 Bruno Haible <bruno@clisp.org>
7206 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
7208 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
7209 with the variable 'index' in plural_lookup.
7210 * intl/l10nflist.c (strchr): Likewise.
7211 * intl/localealias.c (strchr): Likewise.
7213 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
7214 * intl/bindtextdom.c: Likewise.
7215 * intl/dcigettext.c: Likewise.
7216 * intl/dgettext.c: Likewise.
7217 * intl/dngettext.c: Likewise.
7218 * intl/explodename.c: Likewise.
7219 * intl/finddomain.c: Likewise.
7220 * intl/gettext.c: Likewise.
7221 * intl/l10nflist.c: Likewise.
7222 * intl/loadmsgcat.c: Likewise.
7223 * intl/localealias.c: Likewise.
7224 * intl/ngettext.c: Likewise.
7225 * intl/textdomain.c: Likewise.
7226 * intl/gettext.h: Assume <limits.h> exists.
7228 2001-11-27 Ulrich Drepper <drepper@redhat.com>
7230 * stdio-common/Makefile (tests): Add scanf11.
7231 * stdio-common/scanf11.c: New file.
7233 2001-11-26 Ulrich Drepper <drepper@redhat.com>
7235 * version.h (RELEASE): Define as development.
7236 (VERSION): Set to 2.2.90.
7238 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
7240 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
7241 * nis/nss_nis/nis-grp.c: Likewise.
7242 * nis/nss_nisplus/nisplus-grp.c: Likewise.
7244 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
7245 * nis/nss_nis/nis-pwd.c: Likewise.
7246 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
7248 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
7249 * nis/nss_nisplus/nisplus-parser.c: Likewise.
7250 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
7252 * nscd/grpcache.c: Use strtoul instead of atol.
7253 * nscd/pwdcache.c: Likewise.
7254 * nss/getent.c: Likewise.
7256 2001-11-27 Paul Eggert <eggert@twinsun.com>
7258 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
7259 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
7261 2001-11-19 Bruno Haible <bruno@clisp.org>
7263 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
7265 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
7266 improves the quality of the hash function, especially for short
7269 2001-11-26 Ulrich Drepper <drepper@redhat.com>
7271 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
7272 are found call conv_error and not input_error [PR libc/2669].
7274 * math/bits/mathcalls.h: Mark ceil and floor as const.
7275 Reported by David Mosberger.
7277 2001-11-21 Jim Meyering <meyering@lucent.com>
7279 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
7280 Define to be __-prefixed.
7281 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
7283 2001-11-26 Andreas Jaeger <aj@suse.de>
7285 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
7288 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
7290 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
7293 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
7294 unused variables. Fix threshold for returning 1.0.
7296 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
7299 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
7300 remove unused variables.
7302 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
7304 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
7305 include local math header files.
7307 2001-11-22 Andreas Jaeger <aj@suse.de>
7309 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
7312 2001-11-21 Andreas Jaeger <aj@suse.de>
7314 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
7316 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
7319 2001-11-15 Andreas Jaeger <aj@suse.de>
7321 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
7322 compilers that support it.
7324 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
7325 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
7326 * stdlib/stdlib.h: Likewise.
7328 2001-11-17 Ulrich Drepper <drepper@redhat.com>
7330 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
7331 statement with gotos.
7332 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
7334 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
7336 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
7338 2001-11-15 Ulrich Drepper <drepper@redhat.com>
7340 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
7342 2001-10-02 Jakub Jelinek <jakub@redhat.com>
7343 H.J. Lu <hjl@gnu.org>
7345 * Versions.def (libc): Add GCC_3.0.
7346 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
7347 if gcc supports this flag.
7348 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
7349 (gcc3): Allow glibc to be compiled with gcc 3.x.
7350 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
7351 * config.make.in (static-libgcc, unwind-find-fde): Add.
7352 * Makerules (build-shlib-helper, build-module-helper): Use it.
7353 * scripts/versions.awk: Make sure GLIBC_ versions come first.
7354 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
7356 (_fini): Call __deregister_frame_info_bases if
7357 __register_frame_info_bases was used to register.
7358 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
7360 (__register_frame_info_bases, __register_frame_info_table_bases,
7361 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
7362 * elf/Makefile (routines): Add unwind-dw2-fde.
7363 (shared-only-routines): Add unwind-dw2-fde.
7364 * sysdeps/alpha/gccframe.h: New file.
7365 * sysdeps/arm/gccframe.h: New file.
7366 * sysdeps/generic/framestate.c: New file.
7367 * sysdeps/generic/dwarf2.h: New file.
7368 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
7369 * sysdeps/generic/unwind-dw2-fde.c: New file.
7370 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
7371 * sysdeps/generic/unwind-dw2-fde.h: New file.
7372 * sysdeps/generic/unwind-dw2.c: New file.
7373 * sysdeps/generic/unwind-pe.h: New file.
7374 * sysdeps/generic/unwind.h: New file.
7375 * sysdeps/hppa/gccframe.h: New file.
7376 * sysdeps/i386/gccframe.h: New file.
7377 * sysdeps/m68k/gccframe.h: New file.
7378 * sysdeps/mips/gccframe.h: New file.
7379 * sysdeps/powerpc/gccframe.h: New file.
7380 * sysdeps/s390/gccframe.h: New file.
7381 * sysdeps/sh/gccframe.h: New file.
7382 * sysdeps/sparc/gccframe.h: New file.
7383 * sysdeps/vax/gccframe.h: New file.
7384 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
7385 Set on all architectures except ia64.
7386 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
7388 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
7389 __deregister_frame_info): Move to elf/Versions.
7390 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
7391 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
7392 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
7393 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
7394 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
7395 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
7396 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
7397 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
7398 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
7399 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
7400 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
7401 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
7402 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7403 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
7404 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
7405 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
7406 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
7407 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
7409 2001-11-15 Jeff Law <law@redhat.com>
7411 * posix/regex.c (uintptr_t): Do not provide a definition if the
7412 system provided one.
7414 2001-11-13 Roland McGrath <roland@frob.com>
7416 * stdio-common/tmpfile.c: Moved to ...
7417 * sysdeps/generic/tmpfile.c: ... here.
7418 * sysdeps/mach/hurd/tmpfile.c: New file.
7420 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
7421 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
7422 (fopenport): Define as weak alias.
7424 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
7425 * libio/libioP.h: ... to here.
7427 2001-11-12 Ulrich Drepper <drepper@redhat.com>
7429 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
7430 program header twice. Construct list with the needed information.
7432 2001-11-10 Ulrich Drepper <drepper@redhat.com>
7434 * po/ca.po: Update from translation team.
7436 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
7437 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
7438 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
7439 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
7441 2001-11-10 Andreas Jaeger <aj@suse.de>
7443 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
7444 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
7445 Contributed by Stephen L Moshier <moshier@mediaone.net>.
7447 2001-11-09 Ulrich Drepper <drepper@redhat.com>
7449 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
7451 * elf/dl-load.c (is_dst): New function.
7452 (_dl_dst_count): Use is_dst to check for DST variable.
7453 (_dl_dst_substitute): Likewise.
7455 2001-11-09 Roland McGrath <roland@frob.com>
7457 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
7458 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
7459 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
7460 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
7461 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
7462 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
7463 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
7464 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
7465 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
7466 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
7467 * sysdeps/mach/hurd/powerpc/Dist: New file.
7469 * hurd/privports.c (__get_privileged_ports):
7470 Only contact the proc server if necessary for this call.
7471 Suggested by Neal H Walfield <neal@cs.uml.edu>.
7472 Check error return for mach_port_mod_refs.
7474 2001-11-09 Andreas Schwab <schwab@suse.de>
7476 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
7478 2001-11-09 Ulrich Drepper <drepper@redhat.com>
7480 * elf/dl-load.c (lose): Remove some unnecessary code. The new
7481 object is always the last in the list.
7482 (_dl_map_object_from_fd): Delete code to remove from object list
7483 when DF_1_NOOPEN is seen. This is done in lose.
7485 2001-11-08 Ulrich Drepper <drepper@redhat.com>
7487 * elf/dl-object.c (_dl_new_object): Various small optimizations.
7489 2001-11-07 Ulrich Drepper <drepper@redhat.com>
7491 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
7492 HWCAP_CHECK macro code.
7494 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
7495 Now returns MAP_FAILED on error.
7496 * elf/rtld.c: Adjust caller.
7497 * sysdeps/generic/dl-cache.c: Likewise.
7498 * sysdeps/generic/ldsodefs.h: Adjust description.
7500 * elf/dl-version.c (match_symbol): Optimize error handling for size.
7501 (_dl_check_map_versions): Likewise.
7503 2001-11-06 Ulrich Drepper <drepper@redhat.com>
7505 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
7506 _dl_signal_error directly, always use lose. Set fd to -1 after
7508 (lose): Don't call close if fd == -1.
7510 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
7512 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
7513 Also fix typo @code {mbsinit} to @code{mbsinit}.
7515 2001-11-06 Ulrich Drepper <drepper@redhat.com>
7517 * elf/dl-profile.c: Replace state variable with simple flag named
7518 running. Remove commented-out code.
7520 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
7521 (_dl_init_paths): Likewise.
7522 (_dl_map_object_from_fd): Likewise.
7523 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
7525 2001-11-06 Roland McGrath <roland@frob.com>
7527 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
7528 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
7530 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
7531 sysdeps/powerpc/elf/sysdep.h.
7532 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
7534 2001-11-05 Ulrich Drepper <drepper@redhat.com>
7536 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
7538 (process_envvars): Some more optimizations.
7539 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
7541 * elf/elf.h: Add dynamic tag definitions for prelinking.
7543 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
7544 Rewrite code to remove environment varables for SUID binaries.
7545 Small optimization in LD_PROFILE handling.
7546 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
7548 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
7550 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
7552 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
7553 strings. Change type of second parameter.
7554 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
7557 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
7559 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
7561 * manual/string.texi: Fix typos.
7562 * manual/examples/argp-ex2.c: Likewise.
7564 2001-11-05 Roland McGrath <roland@frob.com>
7566 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
7567 the more-specific unix/sysv/linux/powerpc file and breaks everything.
7568 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
7569 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
7570 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
7571 here, put under [__ELF__].
7573 2001-11-05 Ulrich Drepper <drepper@redhat.com>
7575 * manual/charset.texi: Extensive editing work.
7576 * manual/nss.texi: Likewise.
7577 Changes by Dennis Grace <dgrace@us.ibm.com>.
7579 2001-11-04 Roland McGrath <roland@frob.com>
7581 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
7582 parameter to dir_mkfile.
7584 2001-11-02 Jakub Jelinek <jakub@redhat.com>
7586 * string/bits/string2.h (__strndup): If n is smaller than len, set
7588 * string/tester.c (test_strndup): New function.
7591 2001-11-01 Ulrich Drepper <drepper@redhat.com>
7593 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
7595 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
7596 * scripts/cpp: New file.
7598 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
7599 for rtld_search_dirs content. Minor optimizations.
7601 2001-10-31 Ulrich Drepper <drepper@redhat.com>
7603 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
7604 avoiding unnecessary duplication.
7606 2001-10-31 Jakub Jelinek <jakub@redhat.com>
7608 * elf/dl-load.c (_dl_map_object): If library was found using
7609 LD_LIBRARY_PATH, don't try RUNPATH list.
7611 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
7613 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
7614 Correct second argument of register_dump call.
7615 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
7618 2001-10-31 Ulrich Drepper <drepper@redhat.com>
7620 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
7622 * iconvdata/TESTS: Likewise.
7623 * iconvdata/gconv-modules: Likewise.
7624 * iconvdata/ibm1132.c: New file.
7625 * iconvdata/ibm1132.h: New file.
7626 * iconvdata/ibm1133.c: New file.
7627 * iconvdata/ibm1133.h: New file.
7628 * iconvdata/ibm1162.c: New file.
7629 * iconvdata/ibm1162.h: New file.
7630 * iconvdata/testdata/IBM1132: New file.
7631 * iconvdata/testdata/IBM1132..UTF8: New file.
7632 * iconvdata/testdata/IBM1133: New file.
7633 * iconvdata/testdata/IBM1133..UTF8: New file.
7634 * iconvdata/testdata/IBM1162: New file.
7635 * iconvdata/testdata/IBM1162..UTF8: New file.
7636 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
7638 * string/string.h: Fix typo in comment.
7639 * wcsmbs/wchar.h: Likewise.
7641 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
7643 * manual/getopt.texi (getopt_long, getopt_long_only): Include
7644 const in type of longopts parameter.
7646 2001-10-29 Andreas Jaeger <aj@suse.de>
7648 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
7650 2001-10-29 Kevin Ryde <user42@zip.com.au>
7652 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
7653 output, clarify `#' behaviour on 0.
7654 (Floating-Point Conversions): Clarify that %g only uses %e when
7655 the exponent would be greater than 1.
7657 2001-10-28 Roland McGrath <roland@frob.com>
7659 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
7660 * sysdeps/mach/powerpc/machine-sp.h: New file.
7661 * sysdeps/mach/powerpc/sysdep.h: New file.
7662 * sysdeps/mach/powerpc/thread_state.h: New file.
7664 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
7665 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
7666 expect to need the same thing on every platform.
7668 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
7669 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
7671 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
7672 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
7673 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
7674 Move all these assembly-related definitions to ...
7675 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
7677 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
7678 by Peter Bruin <pjbruin@dds.nl>.
7680 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
7681 packing results for a `poll' call.
7683 2001-10-26 Ulrich Drepper <drepper@redhat.com>
7685 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
7687 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
7690 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
7692 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
7694 2001-10-24 H.J. Lu <hjl@gnu.org>
7696 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
7697 Use __BEGIN_DECLS/__END_DECLS around prototypes.
7698 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
7700 2001-10-21 Jim Meyering <meyering@lucent.com>
7702 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
7703 this code would end up calling gettext even in packages built
7705 * posix/getopt.c (_): Likewise.
7706 * posix/regex.c (_): Likewise.
7708 2001-10-26 Ulrich Drepper <drepper@redhat.com>
7710 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
7712 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
7713 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
7715 2001-10-19 Jakub Jelinek <jakub@redhat.com>
7717 * misc/sys/cdefs.h (__attribute_used__): Define.
7718 * elf/rtld.c (_dl_start): Add __attribute_used__.
7719 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
7721 2001-10-25 Andreas Schwab <schwab@suse.de>
7723 * stdlib/a64l.c: Expect least significant digit first.
7724 * stdlib/l64a.c: Produce least significant digit first.
7725 * stdlib/Makefile (tests): Add test-a64l.
7726 * stdlib/test-a64l.c: New file.
7727 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
7729 2001-10-21 Ulrich Drepper <drepper@redhat.com>
7731 * po/sk.po: Update from translation team.
7733 2001-10-18 Ulrich Drepper <drepper@redhat.com>
7735 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
7737 2001-10-18 Andreas Schwab <schwab@suse.de>
7739 * math/libm-test.inc (print_ulps): Print ulp values rounded to
7741 (print_function_ulps): Likewise.
7742 (print_complex_function_ulps): Likewise.
7743 (print_max_error): Likewise.
7744 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
7746 2001-10-16 Andreas Schwab <schwab@suse.de>
7748 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
7751 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
7752 BSD_SETJMP or BSD__SETJMP is defined, resp.
7753 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
7754 a tail call to __sigsetjmp that would require extending the
7756 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
7757 * sysdeps/m68k/bsd-setjmp.S: Deleted.
7758 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
7759 Reported by Jes Sorensen <jes@trained-monkey.org>.
7761 2001-10-16 Andreas Jaeger <aj@suse.de>
7763 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
7764 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
7767 2001-10-15 Ulrich Drepper <drepper@redhat.com>
7769 * po/ca.po: New file. Contributed by the translation team.
7771 2001-10-15 Ralf Baechle <ralf@gnu.org>
7773 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
7774 a varargs prototype. Remove dependency from kernel header files.
7776 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
7777 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
7779 2001-10-14 Ulrich Drepper <drepper@redhat.com>
7781 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
7782 to generate hexadecimal identifier.
7783 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
7785 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
7787 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
7789 2001-10-14 Ulrich Drepper <drepper@redhat.com>
7791 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
7792 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
7793 Contributed by Stephen L Moshier <moshier@mediaone.net>.
7795 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
7796 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
7797 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
7798 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
7799 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
7800 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
7802 * timezone/africa: Update from tzdata2001d.
7803 * timezone/asia: Likewise.
7804 * timezone/australasia: Likewise.
7805 * timezone/backward: Likewise.
7806 * timezone/europe: Likewise.
7807 * timezone/leapseconds: Likewise.
7808 * timezone/northamerica: Likewise.
7809 * timezone/southamerica: Likewise.
7810 * timezone/zone.tab: Likewise.
7812 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
7814 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
7815 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
7817 2001-10-12 Ulrich Drepper <drepper@redhat.com>
7819 * elf/elf.h (PT_TLS): New definition.
7821 2001-10-10 Jeff Bailey <jbailey@nisa.net>
7823 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
7826 2001-10-07 Roland McGrath <roland@frob.com>
7828 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
7830 2001-10-10 Ulrich Drepper <drepper@redhat.com>
7832 * elf/elf.h: Add more ELFOSABI_* constants.
7834 2001-10-04 Ben Collins <bcollins@debian.org>
7836 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
7837 decleration of __need_wchar_t.
7839 2001-10-03 Jakub Jelinek <jakub@redhat.com>
7841 * string/bits/string2.h (__strsep_g): Add prototype.
7843 * string/Versions (__strsep): Remove.
7844 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
7846 2001-10-07 Ulrich Drepper <drepper@redhat.com>
7848 * manua/llio.texi: Clarify file references added by mmap.
7849 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
7851 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
7853 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
7854 Add sc_loadrs and sc_rbs_bas to match current kernel.
7856 2001-09-27 Jakub Jelinek <jakub@redhat.com>
7858 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
7860 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
7862 2001-09-27 Jakub Jelinek <jakub@redhat.com>
7864 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
7865 object has been bumped because of relocation dependency, avoid
7866 duplicates in l_scope.
7867 (show_scope): Fix typos.
7868 * elf/Makefile: Add rules to build and run reldep6.
7869 * elf/reldep6.c: New file.
7870 * elf/reldep6mod0.c: New file.
7871 * elf/reldep6mod1.c: New file.
7872 * elf/reldep6mod2.c: New file.
7873 * elf/reldep6mod3.c: New file.
7874 * elf/reldep6mod4.c: New file.
7876 2001-09-26 Jakub Jelinek <jakub@redhat.com>
7878 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
7880 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
7881 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
7882 for non-lazy binding. Fix .plt[32768+] handling.
7883 (elf_machine_plt_value): Don't add addend.
7884 (elf_machine_rela): Call sparc64_fixup_plt instead of
7885 elf_machine_fixup_plt.
7886 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
7887 dynamic linker at 0xfffff800XXXXXXXX.
7889 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
7891 2001-09-28 Ulrich Drepper <drepper@redhat.com>
7893 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
7895 2001-09-25 Jakub Jelinek <jakub@redhat.com>
7897 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
7898 declare __cmsg_data field if its size would be bigger than 0.
7899 (CMSG_DATA): Adjust accordingly.
7900 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
7901 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
7902 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
7903 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
7904 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7905 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
7906 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
7908 2001-09-25 Ulrich Drepper <drepper@redhat.com>
7910 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
7911 * iconvdata/testdata/IBM1160: New file.
7912 * iconvdata/testdata/IBM1160..UTF8: New file.
7913 * iconvdata/testdata/IBM1161: New file.
7914 * iconvdata/testdata/IBM1161..UTF8: New file.
7915 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
7917 2001-09-24 Ulrich Drepper <drepper@redhat.com>
7919 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
7920 UL_SETFSIZE computations better.
7922 * rt/Makefile: Remove use of filter for librt again.
7924 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
7925 UL_SETFSIZE computations better.
7927 * string/Versions: Export __strsep for GLIBC_2.2.5.
7928 * string/bits/string2.h: Define all __STRING_INLINE functions if
7929 _FORCE_INLINES is defined.
7930 Use int instead of char of parameter types.
7931 (__strsep): Don't use __strsep_g. Don't define it.
7932 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
7933 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
7935 (__stpcpy_a_small): Renamed from __stpcpy_small.
7936 (__strcspn_c1): Don't define if _FORCE_INLINES.
7937 (__strspn_c1): Likewise.
7939 2001-09-22 Ben Collins <bcollins@debian.org>
7941 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
7942 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
7943 * sysdeps/ia64/bits/sigaction.h: Likewise.
7944 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
7946 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
7948 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
7950 2001-09-24 Jakub Jelinek <jakub@redhat.com>
7952 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
7954 2001-09-24 Ulrich Drepper <drepper@redhat.com>
7956 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
7958 2001-09-20 H.J. Lu <hjl@gnu.org>
7960 * include/dlfcn.h (__RTLD_SPROF): New definiton.
7961 * elf/dl-open.c (dl_open_worker): Return immediately after loading
7963 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
7964 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
7966 2001-09-20 H.J. Lu <hjl@gnu.org>
7968 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
7971 2001-09-22 Ulrich Drepper <drepper@redhat.com>
7973 * nss/getent.c: Accept -s parameter to overwrite rules in
7974 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
7976 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
7977 with as many ".0" as necessary to form a complete address
7978 inet_network understands.
7980 * nss/getent.c: Various cleanups. Use simpler and fewer function
7983 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
7985 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
7987 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
7989 2001-09-22 Ulrich Drepper <drepper@redhat.com>
7991 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
7993 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
7994 * iconvdata/ibm1160.c: New file.
7995 * iconvdata/ibm1160.h: New file.
7996 * iconvdata/ibm1161.c: New file.
7997 * iconvdata/ibm1161.h: New file.
7998 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
8000 2001-09-19 Jakub Jelinek <jakub@redhat.com>
8002 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
8003 difference between base address and first PT_LOAD's virtual address,
8004 not the base address.
8006 2001-09-11 Tom Rix <trix@redhat.com>
8008 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
8009 ifdef for __getopt_clean_environment.
8010 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
8012 2001-09-22 Andreas Jaeger <aj@suse.de>
8014 * elf/reldep4.c (main): Add proper prototype to fix warning.
8016 * elf/reldep5.c (main): Remove unused variable.
8018 * math/math_private.h: Add prototypes.
8020 2001-09-21 Andreas Jaeger <aj@suse.de>
8022 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
8023 * sysdeps/x86_64/Dist: New file.
8024 * sysdeps/x86_64/soft-fp/Dist: New file.
8026 * sysdeps/gnu/Dist: Remove eval.c.
8028 2001-09-20 Ulrich Drepper <drepper@redhat.com>
8030 * malloc/memusage.c (realloc): Don't count already allocated
8032 (me): Always use dlsym() to find the real implementations.
8034 * malloc/memusage.sh: Make -n option actually do something.
8036 2001-09-20 Andreas Jaeger <aj@suse.de>
8038 * elf/elf.h (R_390_NUM): Correct value.
8040 * Versions.def: Add missing versions 2.2.3 for libthread_db and
8043 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
8044 for x86-64, install x86-64 into */lib64.
8046 * shlib-versions: Add x86-64.
8048 * elf/elf.h: Add x86-64 relocations.
8050 2001-09-19 Ulrich Drepper <drepper@redhat.com>
8052 * po/fr.po: Update from translation team.
8054 2001-09-19 Andreas Jaeger <aj@suse.de>
8056 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
8057 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
8058 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
8059 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
8060 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
8061 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
8062 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
8063 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
8064 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
8065 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
8066 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
8067 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
8068 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
8069 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
8070 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
8071 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
8072 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
8073 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
8074 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
8075 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
8076 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
8077 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
8078 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
8079 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
8080 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
8081 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
8082 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
8083 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
8084 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
8085 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
8086 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
8087 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
8088 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
8089 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
8090 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
8091 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
8092 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
8093 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
8094 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
8095 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
8096 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
8097 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
8098 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
8099 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
8100 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
8101 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
8102 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
8103 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
8104 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
8105 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
8106 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
8107 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
8108 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
8109 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
8110 * sysdeps/unix/x86_64/sysdep.S: New file.
8111 * sysdeps/unix/x86_64/sysdep.h: New file.
8112 * sysdeps/x86_64/Implies: New file.
8113 * sysdeps/x86_64/Makefile: New file.
8114 * sysdeps/x86_64/Versions: New file.
8115 * sysdeps/x86_64/__longjmp.S: New file.
8116 * sysdeps/x86_64/abort-instr.h: New file.
8117 * sysdeps/x86_64/atomicity.h: New file.
8118 * sysdeps/x86_64/bits/endian.h: New file.
8119 * sysdeps/x86_64/bits/setjmp.h: New file.
8120 * sysdeps/x86_64/bits/string.h: New file.
8121 * sysdeps/x86_64/bp-asm.h: New file.
8122 * sysdeps/x86_64/bsd-_setjmp.S: New file.
8123 * sysdeps/x86_64/bsd-setjmp.S: New file.
8124 * sysdeps/x86_64/dl-machine.h: New file.
8125 * sysdeps/x86_64/elf/initfini.c: New file.
8126 * sysdeps/x86_64/elf/start.S: New file.
8127 * sysdeps/x86_64/ffs.c: New file.
8128 * sysdeps/x86_64/ffsll.c: New file.
8129 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
8130 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
8131 * sysdeps/x86_64/fpu/e_acosl.c: New file.
8132 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
8133 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
8134 * sysdeps/x86_64/fpu/e_expl.c: New file.
8135 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
8136 * sysdeps/x86_64/fpu/e_log10l.S: New file.
8137 * sysdeps/x86_64/fpu/e_log2l.S: New file.
8138 * sysdeps/x86_64/fpu/e_logl.S: New file.
8139 * sysdeps/x86_64/fpu/e_powl.S: New file.
8140 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
8141 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
8142 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
8143 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
8144 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
8145 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
8146 * sysdeps/x86_64/fpu/fegetenv.c: New file.
8147 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
8148 * sysdeps/x86_64/fpu/fegetround.c: New file.
8149 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
8150 * sysdeps/x86_64/fpu/fesetenv.c: New file.
8151 * sysdeps/x86_64/fpu/fesetround.c: New file.
8152 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
8153 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
8154 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
8155 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
8156 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
8157 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
8158 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
8159 * sysdeps/x86_64/fpu/s_atanl.c: New file.
8160 * sysdeps/x86_64/fpu/s_cosl.S: New file.
8161 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
8162 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
8163 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
8164 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
8165 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
8166 * sysdeps/x86_64/fpu/s_logbl.c: New file.
8167 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
8168 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
8169 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
8170 * sysdeps/x86_64/fpu/s_rintl.c: New file.
8171 * sysdeps/x86_64/fpu/s_significandl.c: New file.
8172 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
8173 * sysdeps/x86_64/fpu/s_sinl.S: New file.
8174 * sysdeps/x86_64/fpu/s_tanl.S: New file.
8175 * sysdeps/x86_64/gmp-mparam.h: New file.
8176 * sysdeps/x86_64/hp-timing.c: New file.
8177 * sysdeps/x86_64/hp-timing.h: New file.
8178 * sysdeps/x86_64/htonl.S: New file.
8179 * sysdeps/x86_64/memusage.h: New file.
8180 * sysdeps/x86_64/setjmp.S: New file.
8181 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
8182 * sysdeps/x86_64/stackinfo.h: New file.
8183 * sysdeps/x86_64/sysdep.h: New file.
8184 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
8186 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
8189 2001-09-18 Ulrich Drepper <drepper@redhat.com>
8191 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
8192 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
8194 2001-09-18 Andreas Schwab <schwab@suse.de>
8196 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
8197 list, now that l_scope is a pointer.
8199 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
8202 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
8204 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
8205 (elf_machine_rela_relative): Add a missing declaration.
8207 2001-09-18 Jakub Jelinek <jakub@redhat.com>
8209 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
8210 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
8211 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
8212 ldd-rewrite scripts.
8214 2001-09-18 Ulrich Drepper <drepper@redhat.com>
8216 * elf/ldd.bash.in: Update copyright message.
8218 2001-09-17 H.J. Lu <hjl@gnu.org>
8220 * hurd/hurdmalloc.c (bcopy): Removed.
8221 (realloc): Replace bcopy with memcpy.
8222 * hurd/path-lookup.c (file_name_path_scan): Likewise.
8223 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
8224 * sunrpc/rpcinfo.c (pmapdump): Likewise.
8226 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
8227 (gethostbyaddr): Likewise.
8228 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
8230 2001-09-18 Ulrich Drepper <drepper@redhat.com>
8232 * sysdeps/gnu/eval.c: Removed.
8234 2001-09-18 Andreas Jaeger <aj@suse.de>
8236 * sysdeps/i386/fpu/s_logbl.S: Move to ...
8237 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
8239 * sysdeps/i386/fpu/s_rintl.S: Move to ...
8240 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
8242 * sysdeps/i386/fpu/s_significandl.S: Move to ...
8243 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
8245 2001-09-16 Ulrich Drepper <drepper@redhat.com>
8247 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
8250 2001-09-14 H.J. Lu <hjl@gnu.org>
8252 * sysdeps/mips/fpu/libm-test-ulps: Updated.
8254 2001-09-14 Ulrich Drepper <drepper@redhat.com>
8256 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
8257 Patch by Florian La Roche <laroche@redhat.com>.
8259 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
8261 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
8264 2001-09-14 Andreas Schwab <schwab@suse.de>
8266 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
8267 Sumner <bls@sgi.com>.
8268 * posix/execlp.c: Likewise.
8270 2001-09-13 Jakub Jelinek <jakub@redhat.com>
8272 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
8273 is already found earlier in the search scope.
8275 2001-09-12 Jakub Jelinek <jakub@redhat.com>
8277 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
8280 2001-09-13 Ulrich Drepper <drepper@redhat.com>
8282 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
8284 2001-09-12 Ulrich Drepper <drepper@redhat.com>
8286 * config.h.in: Enforce optimization to be used.
8287 * Makeconfig (preprocess-versions): Define ASSEMBLER.
8288 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
8289 * posix/Makefile (annexc-CFLAGS): Define to -O.
8290 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
8292 2001-09-11 Ulrich Drepper <drepper@redhat.com>
8294 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
8295 Patch by Stephan Kulow.
8297 2001-09-08 Ben Collins <bcollins@debian.org>
8299 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
8300 usage of RESOLVE() (r_type, not reloc->r_type).
8302 2001-09-08 Ulrich Drepper <drepper@redhat.com>
8304 * elf/dl-object.c: Avoid allocating extra memory block for name.
8305 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
8306 allocated separately.
8307 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
8309 2001-09-08 H.J. Lu <hjl@gnu.org>
8311 * po/zh_TW.po: Fix a typo.
8313 2001-09-07 Tom Rix <trix@redhat.com>
8315 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
8317 2001-08-26 Tom Rix <trix@redhat.com>
8319 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
8320 command line options.
8321 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
8322 * sysdeps/unix/sysv/aix/start.c: Removed.
8323 * sysdeps/unix/sysv/aix/start-libc.c: New file.
8324 * sysdeps/unix/sysv/aix/init-first.c: New file.
8325 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
8327 2001-09-08 Ben Collins <bcollins@debian.org>
8329 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
8330 * sysdeps/generic/dl-machine.h: Likewise.
8331 * sysdeps/hppa/dl-fptr.c: Likewise.
8332 * sysdeps/ia64/dl-fptr.c: Likewise.
8333 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
8334 * sysdeps/mips/dl-machine.h: Likewise.
8335 * sysdeps/mips/mips64/dl-machine.h: Likewise.
8336 * sysdeps/powerpc/dl-machine.c: Likewise.
8338 2001-09-07 Ben Collins <bcollins@debian.org>
8340 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
8342 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
8344 2001-09-08 Ulrich Drepper <drepper@redhat.com>
8346 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
8347 dependencies if necessary.
8349 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
8350 loaded directly) determine length if l_initfini list by iterating
8351 over its elements. Minor optimizations.
8352 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
8353 for dependency objects.
8354 If object was already loaded check whether any of the dependencies
8355 is already on the relocation dependency list. If yes, remove the
8356 latter. Minor optimizations.
8357 * elf/dl-lookup.c (add_dependency): Add check for self reference of
8358 maps here. Search l_initfini list only if the object was loaded
8359 directly and not only as a dependency.
8360 (_dl_lookup_symbol): Add relocation dependency also if object
8361 is not in global scope. Remove test for self-reference here.
8362 (_dl_lookup_versioned_symbol): Likewise.
8363 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
8364 element of first name record.
8365 * elf/loadtest.c: Add some more test to recognize early if an object
8367 * elf/Makefile: Add rules to build and run reldep5.
8368 * elf/reldep5.c: New file.
8369 * elf/reldepmod5.c: New file.
8370 * elf/reldepmod6.c: New file.
8372 * elf/reldep2.c: Fix typo.
8374 2001-09-07 Ulrich Drepper <drepper@redhat.com>
8376 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
8377 elements. Change l_scope to be a pointer only.
8378 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
8379 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
8380 here add searchlist of newly open file to the dependency's scope.
8381 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
8382 only searchlist from its scope. Free own scope array if necessary.
8383 * elf/Makefile (tests): Add dblload and dblunload now.
8385 2001-09-06 Andreas Jaeger <aj@suse.de>
8387 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
8390 2001-09-05 Ulrich Drepper <drepper@redhat.com>
8392 * elf/Makefile: Add rules to build new tests. Don't run them yet since
8394 * elf/dblload.c: New file.
8395 * elf/dblloadmod1.c: New file.
8396 * elf/dblloadmod2.c: New file.
8397 * elf/dblloadmod3.c: New file.
8398 * elf/dblunload.c: New file.
8400 2001-09-04 Richard Henderson <rth@redhat.com>
8402 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
8403 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
8405 2001-09-04 Ulrich Drepper <drepper@redhat.com>
8407 Correct very misleading message for error in failed runtime relocation.
8408 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
8410 (_dl_signal_cerror): Likewise.
8411 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
8412 * elf/dl-close.c: Likewise.
8413 * elf/dl-deps.c: Likewise.
8414 * elf/dl-load.c: Likewise.
8415 * elf/dl-lookup.c: Likewise.
8416 * elf/dl-open.c: Likewise.
8417 * elf/dl-reloc.c: Likewise.
8418 * elf/dl-sym.c: Likewise.
8419 * elf/dl-version.c: Likewise.
8420 * sysdeps/generic/dl-sysdep.c: Likewise.
8422 2001-09-04 Jakub Jelinek <jakub@redhat.com>
8424 * iconv/strtab.c (strtabinit): Initialize null Strent.
8425 (newstring): Move len == 0 handling...
8426 (strtabadd): ...here.
8427 If len == 1, return null Strent.
8428 When inserting a suffix of an existing string, check if
8429 it is not equal to some suffix already recorded.
8430 Copy left and right members over if adding longer string.
8432 2001-09-04 Jakub Jelinek <jakub@redhat.com>
8434 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
8436 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
8437 (__syscall_gethostname): Add prototype.
8439 2001-09-04 Ulrich Drepper <drepper@redhat.com>
8441 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
8443 2001-09-02 Ulrich Drepper <drepper@redhat.com>
8445 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
8447 2001-08-27 Roland McGrath <roland@frob.com>
8449 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
8450 short, copy that much into NAME anyway before returning error.
8452 2001-09-01 Richard Henderson <rth@redhat.com>
8454 * sysdeps/alpha/elf/Dist: Remove file.
8455 * sysdeps/alpha/elf/Makefile: Remove file.
8456 * sysdeps/alpha/elf/crtbegin.S: Remove file.
8457 * sysdeps/alpha/elf/crtend.S: Remove file.
8458 * sysdeps/alpha/elf/initfini.c: New file.
8460 2001-09-01 Mark Kettenis <kettenis@gnu.org>
8462 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
8463 * iconv/tst-iconv3.c: Likewise.
8465 2001-09-01 Jakub Jelinek <jakub@redhat.com>
8467 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
8469 2001-09-01 Ulrich Drepper <drepper@redhat.com>
8471 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
8473 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
8474 * iconv/iconv_prog.c (insert_cache): New function.
8475 (print_known_names): If cache is used call insert_cache to use the
8476 information from the cache [PR libc/2509].
8478 2001-08-31 Ulrich Drepper <drepper@redhat.com>
8480 * time/strptime.c (strptime_internal): Recognize 'l' format and
8481 handle it like 'I' for symmetry with strftime.
8483 2001-08-31 Richard Henderson <rth@redhat.com>
8485 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
8486 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
8487 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
8488 (print_statistics): Make scalar unsigned long long.
8489 * sysdeps/alpha/hp-timing.h: New file.
8491 2001-08-31 Jakub Jelinek <jakub@redhat.com>
8493 * stdio-common/perror.c (perror): Save errno early, pass it
8494 down to perror_internal.
8495 (perror_internal): Add errnum argument.
8497 2001-08-31 Jakub Jelinek <jakub@redhat.com>
8499 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
8500 Don't add old memory content for R_ALPHA_REFQUAD.
8502 2001-08-30 Ulrich Drepper <drepper@redhat.com>
8504 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
8507 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
8508 instead of open, __close instead of close, __getpagesize instead
8511 * string/argz-stringify.c (__argz_stringify): Use __strnlen
8513 * include/string.h (strndupa): Redefine here to use __strnlen
8515 * string/strndup.c (__strndup): Use __strnlen not strnlen.
8517 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
8520 2001-08-30 Jakub Jelinek <jakub@redhat.com>
8522 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
8523 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
8524 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
8525 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
8526 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
8527 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
8528 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
8530 2001-08-30 Ulrich Drepper <drepper@redhat.com>
8532 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
8534 2001-08-30 Andreas Jaeger <aj@suse.de>
8536 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
8537 contributed Stephen L Moshier.
8539 2001-08-30 Jakub Jelinek <jakub@redhat.com>
8541 * sunrpc/etc.rpc (sgi_fam): Add.
8543 2001-08-30 Ulrich Drepper <drepper@redhat.com>
8545 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
8547 2001-08-29 Ulrich Drepper <drepper@redhat.com>
8549 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
8550 first is from a previous call.
8551 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
8553 2001-08-29 Andreas Schwab <schwab@suse.de>
8555 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
8557 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
8559 * config.make.in (INSTALL_SCRIPT): Define.
8560 * Makeconfig (INSTALL_SCRIPT): Define.
8561 * Makerules (do-install-script): New macro to install scripts using
8563 (install-bin-script): New rule to install scripts with
8565 (install-bin-script-nosubdir): New rule.
8566 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
8567 (distinfo-vars): Add $(install-bin-script).
8568 * Rules (others): Likewise.
8569 * Makefile (glibcbug): Install with install-bin-script.
8570 * debug/Makefile (xtrace): Likewise.
8571 (catchsegv): Likewise.
8572 * elf/Makefile (ldd): Likewise.
8573 * malloc/Makefile (mtrace): Likewise.
8574 * timezone/Makefile (tzselect): Likewise.
8576 2001-08-29 H.J. Lu <hjl@gnu.org>
8578 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
8579 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
8580 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
8582 2001-08-29 Andreas Schwab <schwab@suse.de>
8584 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
8586 2001-08-28 H.J. Lu <hjl@gnu.org>
8588 * Makeconfig (combreloc-LDFLAGS): New variable.
8589 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
8590 * config.make.in (have-z-combreloc): New variable.
8591 * configure.in: Substitute libc_cv_z_combreloc.
8593 2001-08-29 Ulrich Drepper <drepper@redhat.com>
8595 * po/sv.po: Update from translation team.
8596 * po/fr.po: Likewise.
8597 * po/da.po: Likewise.
8599 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
8601 * Makerules: Fix a typo: MD% -> MD5.
8603 2001-08-28 Ulrich Drepper <drepper@redhat.com>
8605 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
8606 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
8608 2001-08-28 Andreas Jaeger <aj@suse.de>
8610 * manual/libc-texinfo.sh: Add entry about free manuals.
8612 * manual/contrib.texi (Contributors): Fix cross reference.
8614 * manual/libc.texinfo (Copying): Include freemanuals.
8616 * manual/Makefile (appendices): Add freemanuals.
8618 * manual/freemanuals.texi: New file.
8619 Patch by Brian Youmans <3diff@gnu.org>.
8621 * manual/libm-err-tab.pl: Pretty print more platforms, print a
8624 * manual/math.texi (Errors in Math Functions): Fix grammar, start
8625 table on separate page.
8626 Patch by Brian Youmans <3diff@gnu.org>.
8628 2001-08-27 Ulrich Drepper <drepper@redhat.com>
8630 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
8631 the connection went down after we first used it try to connect
8632 again and resend the message before printing to the console.
8633 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
8635 2001-08-27 Jakub Jelinek <jakub@redhat.com>
8637 * string/tst-strlen.c (main): Test strnlen (, -1) too.
8638 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
8641 2001-08-27 Ulrich Drepper <drepper@redhat.com>
8643 * iconv/strtab.c (searchstring): Use correct length for comparison.
8644 (strtabadd): Account total size correct if new string has old string as
8647 2001-08-27 Jakub Jelinek <jakub@redhat.com>
8649 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
8651 2001-08-27 Andreas Jaeger <aj@suse.de>
8653 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
8655 * math/libm-test.inc (j0_test): Add extra tests.
8656 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
8657 not x, in Hankel approximation.
8658 Patches by Stephen L Moshier.
8660 2001-08-26 Ulrich Drepper <drepper@redhat.com>
8662 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
8665 * configure.in: Fix test for .rela.dyn section.
8667 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
8669 2001-08-26 Jakub Jelinek <jakub@redhat.com>
8671 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
8672 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
8673 Pass type_class to _dl_lookup_*.
8674 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
8675 Pass around just type_class instead of noexec, noplt pair.
8676 (_dl_lookup_versioned_symbol): Likewise.
8677 (_dl_lookup_symbol_skip): Pass around just type_class instead of
8679 (_dl_lookup_versioned_symbol_skip): Likewise.
8680 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
8681 * elf/do-lookup.h (do_lookup): Likewise.
8682 * include/link.h (struct link_map): Replace noexec and noplt fields
8683 in l_lookup_cache with type_class field.
8684 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
8685 ELF_RTYPE_CLASS_COPY): Define.
8686 Adjust prototypes for _dl_lookup_symbol and
8687 _dl_lookup_versioned_symbol.
8688 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
8689 elf_machine_lookup_noexec_p): Remove.
8690 (elf_machine_type_class): Define.
8691 * sysdeps/arm/dl-machine.h: Likewise.
8692 * sysdeps/hppa/dl-machine.h: Likewise.
8693 * sysdeps/cris/dl-machine.h: Likewise.
8694 * sysdeps/i386/dl-machine.h: Likewise.
8695 * sysdeps/ia64/dl-machine.h: Likewise.
8696 * sysdeps/m68k/dl-machine.h: Likewise.
8697 * sysdeps/mips/mips64/dl-machine.h: Likewise.
8698 * sysdeps/mips/dl-machine.h: Likewise.
8699 * sysdeps/powerpc/dl-machine.h: Likewise.
8700 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8701 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8702 * sysdeps/sh/dl-machine.h: Likewise.
8703 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8704 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8706 2001-08-26 Ulrich Drepper <drepper@redhat.com>
8708 * manual/message.texi (Advanced gettext functions): Change
8709 description of plural forms for Slovak.
8710 Reported by Marcel Telka <marcel@telka.sk>.
8712 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
8713 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
8715 2001-08-26 Jakub Jelinek <jakub@redhat.com>
8717 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
8718 typo. Patch by Florian La Roche <laroche@redhat.com>.
8720 2001-08-26 Ulrich Drepper <drepper@redhat.com>
8722 * include/link.h (struct link_map): Add l_lookup_cache element.
8723 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
8724 (RESOLVE_MAP): Likewise.
8725 (_dl_relocate_object): Remove cache initialization.
8726 * elf/dl-lookup.c: Rip out cache handling code.
8727 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
8730 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
8731 remove some __builtin_expect.
8732 (_dl_lookup_versioned_symbol): Likewise.
8734 * config.h.in: Add HAVE_Z_COMBRELOC.
8735 * configure.in: Add test for -z combreloc.
8737 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
8738 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
8739 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
8740 case to almost no code.
8742 2001-08-25 Ulrich Drepper <drepper@redhat.com>
8744 * po/tr.po: Update from translation team.
8746 2001-08-24 Andreas Jaeger <aj@suse.de>
8748 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
8751 2001-08-24 Ulrich Drepper <drepper@redhat.com>
8753 * elf/rtld.c (print_statistics): Printf % after percent values.
8754 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
8756 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
8757 don't have to compute the hash value and initialize current_value.
8758 Move reference_name variable to where it is needed.
8759 (_dl_lookup_versioned_symbol): Likewise.
8761 2001-08-24 Roland McGrath <roland@frob.com>
8763 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
8764 Just test that strerror returns non-null for a few errno codes.
8766 2001-08-23 Roland McGrath <roland@frob.com>
8768 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
8769 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
8771 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
8773 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
8776 2001-08-24 Ulrich Drepper <drepper@redhat.com>
8778 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
8781 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
8782 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
8784 * elf/rtld.c: Include <sys/param.h>.
8785 * elf/dl-reloc.c: Likewise.
8787 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
8789 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
8790 empty to prevent junk from being generated.
8791 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
8793 2001-08-24 Jakub Jelinek <jakub@redhat.com>
8795 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
8796 records. Rename endrel to relative, initialize it to r, and use it
8797 in elf_machine_rel_relative calls. Point r after relative relocs.
8799 2001-08-24 Ulrich Drepper <drepper@redhat.com>
8801 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
8804 2001-08-24 Jakub Jelinek <jakub@redhat.com>
8806 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
8807 necessary. Undefine newly defined macros at the end.
8808 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
8809 Rename from elf_machine_rel_relative.
8810 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
8811 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
8812 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
8813 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
8815 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
8817 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
8819 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
8821 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
8822 Likewise. Fix argument types.
8823 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
8824 Likewise. Fix argument types.
8825 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
8827 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
8828 ElfW(Rel) in argument.
8829 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
8832 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
8834 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
8836 2001-08-24 Andreas Jaeger <aj@suse.de>
8838 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
8839 Stephen L Moshier <moshier@mediaone.net>.
8841 2001-08-24 Ulrich Drepper <drepper@redhat.com>
8843 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
8844 first if RELCOUNT is set.
8846 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
8847 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
8848 elf_machine_rel_relative.
8849 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
8850 Minor optimizations.
8851 * sysdeps/arm/dl-machine.h: Likewise.
8852 * sysdeps/cris/dl-machine.h: Likewise.
8853 * sysdeps/hppa/dl-machine.h: Likewise.
8854 * sysdeps/i386/dl-machine.h: Likewise.
8855 * sysdeps/ia64/dl-machine.h: Likewise.
8856 * sysdeps/m68k/dl-machine.h: Likewise.
8857 * sysdeps/mips/dl-machine.h: Likewise.
8858 * sysdeps/powerpc/dl-machine.h: Likewise.
8859 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8860 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8861 * sysdeps/sh/dl-machine.h: Likewise.
8862 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8863 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8865 2001-08-23 Roland McGrath <roland@frob.com>
8867 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
8869 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
8870 sysdeps/mach version. Implement counting ("recursive") mutexes
8871 on top of cthreads mutexes.
8872 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
8874 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
8875 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
8876 (__libc_cleanup_region_start, __libc_cleanup_region_end,
8877 __libc_clean_end): Define these to call the cleanup function after
8878 normal exit when they're supposed to.
8880 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
8881 Take new first arg DOIT, a boolean saying whether to really install
8882 any cleanup handler.
8883 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
8884 (__libc_cleanup_end): Likewise.
8885 * sysdeps/generic/bits/libc-lock.h: Same changes.
8886 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
8887 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
8888 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
8890 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
8891 * sysdeps/generic/bits/stdio-lock.h
8892 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
8894 2001-08-23 Jakub Jelinek <jakub@redhat.com>
8896 * elf/ldconfig.c (search_dir): Remove stale symlinks.
8898 2001-08-23 Jakub Jelinek <jakub@redhat.com>
8900 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
8901 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
8903 (_dl_lookup_versioned_symbol): Likewise.
8904 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
8906 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
8907 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
8908 (lookup_cache, lookup_cache_versioned): Add declarations.
8910 2001-08-23 Ulrich Drepper <drepper@redhat.com>
8912 * stdlib/tst-random.c (main): Swap parameters in fail call.
8913 Patch by Pete Bevin <pete@petebevin.com>.
8915 2001-08-23 Jakub Jelinek <jakub@redhat.com>
8917 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
8919 2001-08-23 Ulrich Drepper <drepper@redhat.com>
8921 * malloc/obstack.c: Indent preprocessor directives.
8922 Patch by Jim Meyering <meyering@ascend.com>.
8924 * po/ja.po: Update from translation team.
8926 2001-08-23 Roland McGrath <roland@frob.com>
8928 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
8930 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
8931 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
8933 2001-08-22 Roland McGrath <roland@frob.com>
8935 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
8936 __libc_lock_define_recursive.
8937 * elf/dl-open.c: Don't declare it here any more.
8938 * elf/dl-close.c: Likewise.
8939 * elf/dl-lookup.c: Likewise.
8940 * elf/dl-iteratephdr.c: Likewise.
8941 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
8942 __libc_lock_unlock_recursive.
8943 * elf/dl-close.c (_dl_close): Likewise
8944 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
8945 * elf/dl-open.c (_dl_open): Likewise
8947 * sysdeps/generic/bits/libc-lock.h
8948 (__libc_lock_define_recursive): New macro.
8949 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
8950 (_IO_lock_lock): Use __libc_lock_lock_recursive.
8951 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
8953 * conform/conformtest.pl (checknamespace): Sort the output list.
8955 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
8956 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
8957 definitions conditional on [__USE_XOPEN].
8959 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
8960 these unconditionally, not only use [__USE_BSD], so as to match
8961 the sysdeps/unix/sysv/linux files.
8963 2001-08-22 Ulrich Drepper <drepper@redhat.com>
8965 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
8968 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
8971 2001-08-22 Roland McGrath <roland@frob.com>
8973 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
8974 conditionalization of sa_handler/sa_sigaction member types to
8975 match the sysdeps/unix/sysv/linux file.
8977 2001-08-22 Ulrich Drepper <drepper@redhat.com>
8979 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
8980 symbol sizes a bit better.
8982 * sysdeps/ia64/strncpy.S: Complete rewrite.
8983 Contributed by Jakub Jelinek <jakub@redhat.com>.
8985 * string/stratcliff.c (main): Add strncpy test.
8987 2001-08-22 Roland McGrath <roland@frob.com>
8989 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
8990 and don't declare unsetenv or _environ directly.
8991 (unsetenv): Return int, not void. Use __environ instead of _environ.
8993 2001-08-01 Mark Kettenis <kettenis@gnu.org>
8995 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
8996 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
8997 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
8998 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
8999 test for cmsg struct size.
9001 2001-04-23 Paul Eggert <eggert@twinsun.com>
9003 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
9004 Rename __argc to ___argc in prototypes to avoid compatibility
9005 problems with systems that reserve the identifier "__argc".
9006 Similarly for __argv.
9008 2001-08-21 Roland McGrath <roland@frob.com>
9010 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
9012 * mach/Makefile (tests): Removed.
9013 * mach/hello.c: File removed.
9015 2001-08-22 Ulrich Drepper <drepper@redhat.com>
9017 * po/sv.po: Update from translation team.
9019 * stdio-common/vfscanf.c: Fix handling of %l[].
9020 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
9022 * libio/Makefile (tests): Add tst-sscanf.
9023 * libio/tst-sscanf.c: New file.
9025 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
9026 * malloc/mtrace.c (tr_where): dli_sname always points to a
9027 non-empty string if != NULL.
9028 Reported by Tim Janik <timj@gtk.org>.
9030 2001-08-22 Jakub Jelinek <jakub@redhat.com>
9032 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
9033 buf. Free resources on failure.
9034 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
9035 (makefd_xprt): Likewise.
9036 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
9037 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
9038 * sunrpc/auth_unix.c (authunix_create): Likewise.
9040 2001-08-21 Jakub Jelinek <jakub@redhat.com>
9042 * string/strnlen.c: Remove.
9043 * sysdeps/generic/strnlen.c: New file.
9044 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
9046 2001-08-21 Roland McGrath <roland@frob.com>
9048 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
9049 as a macro, not an extern inline function.
9051 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
9052 * Versions.def (libc): Add GLIBC_2.2.5 set.
9053 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
9054 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
9056 2001-08-20 Roland McGrath <roland@frob.com>
9058 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
9059 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
9061 2001-08-21 Ulrich Drepper <drepper@redhat.com>
9063 * string/bits/string2.h: Remove strnlen optimization here.
9064 * sysdeps/i386/i486/bits/string.h: Add it here.
9066 2001-08-21 Wolfram Gloger <wg@malloc.de>
9068 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
9070 2001-08-21 Ulrich Drepper <drepper@redhat.com>
9072 * po/gl.po: Update from translation team.
9074 2001-08-20 Ulrich Drepper <drepper@redhat.com>
9076 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
9077 * misc/err.c (convert_and_print): Likewise.
9079 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
9082 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
9084 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
9085 change of the gregset_t type.
9086 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
9088 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
9090 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
9092 2001-08-20 Ulrich Drepper <drepper@redhat.com>
9094 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
9096 * string/strnlen.c: Fix the implementation. We cannot use memchr.
9098 2001-08-18 Mark Kettenis <kettenis@gnu.org>
9100 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
9101 before calling the cthreads initialization code.
9103 2001-08-20 Ulrich Drepper <drepper@redhat.com>
9105 * argp/argp-help.c: Fix two problems introduced in last change.
9107 * include/dirent.h: Include <dirstream.h> first.
9109 2001-08-19 Ulrich Drepper <drepper@redhat.com>
9111 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
9113 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
9114 * sunrpc/xdr_rec.c: Likewise.
9115 * sunrpc/xdr_mem.c: Likewise.
9116 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
9117 * sunrpc/rpc_cmsg.c: Likewise.
9118 * sunrpc/getrpcport.c (getrpcport): Likewise.
9119 * sunrpc/clnt_simp.c (callrpc): Likewise.
9120 * sunrpc/clnt_gen.c (clnt_create): Likewise.
9121 * string/envz.c: Likewise.
9123 * po/ko.po: Update from translation team.
9125 * argp/argp-help.c: Handle wide oriented stderr stream.
9127 2001-08-18 Ulrich Drepper <drepper@redhat.com>
9129 * sysdeps/generic/strtol.c: Little optimizations. Add some
9132 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
9134 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
9135 * wcsmbs/wcwidth.c (wcwdith): Likewise.
9136 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
9138 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
9140 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
9142 * time/time.h (struct timespec): Use __time_t for tv_sec element.
9144 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
9145 wchar_t for function declarations and defintions.
9147 * misc/sys/select.h: Define __need_time_t before including <time.h>.
9148 Define suseconds_t if it hasn't happened yet.
9150 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
9152 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
9154 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
9157 * conform/data/stddef.h-data: Remove wint_t.
9159 * conform/conformtest.pl: Change namespace test to take #undef
9162 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
9164 * conform/data/sys/socket.h-data: Add sockatmark.
9166 2001-08-17 Ulrich Drepper <drepper@redhat.com>
9168 * io/fts.c: Update from recent BSD source.
9170 2001-08-17 Roland McGrath <roland@frob.com>
9172 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
9173 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
9176 2001-08-17 Ulrich Drepper <drepper@redhat.com>
9178 * locale/duplocale.c (__duplocale): Also initialize the special
9181 * conform/data/netdb.h-data: Adjust gai_strerror return type.
9183 2001-08-17 Andreas Jaeger <aj@suse.de>
9185 * misc/getpass.c: Include wchar.h for prototypes.
9186 * malloc/obstack.c: Likewise.
9188 2001-08-17 Ulrich Drepper <drepper@redhat.com>
9190 * sunrpc/svc_simple.c (universal): Use __write instead of write.
9192 * wcsmbs/wcscoll.c: Also define __wcscoll.
9193 * include/wchar.h: Declare __wcscoll.
9195 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
9196 * libio/vwprintf.c: Likewise.
9197 * libio/wprintf.c: Likewise.
9199 * iconv/gconv_cache.c: Use __munmap instead of munmap.
9201 2001-08-16 Ulrich Drepper <drepper@redhat.com>
9203 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
9205 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
9206 wcslen, and __wcscoll instead of wcscoll.
9208 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
9210 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
9211 __getuid instead of getuid.
9213 * stdio-common/perror.c (perror): Use __close instead of close.
9214 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
9215 * libio/freopen.c (freopen): Likewise.
9216 * libio/freopen64.c (freopen64): Likewise.
9218 * libio/tst-ungetwc2.c (main): Define str const.
9220 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
9221 * libio/fwprintf.c: Also define __fwprintf.
9222 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
9223 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
9224 * assert/assert-perr.c: Likewise.
9225 * assert/assert.c: Likewise.
9226 * gmon/gmon.c: Likewise.
9227 * inet/rcmd.c: Likewise.
9228 * malloc/obstack.c: Likewise.
9229 * misc/err.c: Likewise.
9230 * misc/error.c: Likewise.
9231 * misc/getpass.c: Likewise.
9232 * posix/getopt.c: Likewise.
9233 * resolv/res_hconf.c: Likewise.
9234 * stdio-common/perror.c: Likewise.
9235 * stdio-common/psignal.c: Likewise.
9236 * stdlib/fmtmsg.c: Likewise.
9237 * sunrpc/auth_unix.c: Likewise.
9238 * sunrpc/clnt_perr.c: Likewise.
9239 * sunrpc/clnt_tcp.c: Likewise.
9240 * sunrpc/clnt_udp.c: Likewise.
9241 * sunrpc/clnt_unix.c: Likewise.
9242 * sunrpc/svc_simple.c: Likewise.
9243 * sunrpc/svc_tcp.c: Likewise.
9244 * sunrpc/svc_udp.c: Likewise.
9245 * sunrpc/svc_unix.c: Likewise.
9246 * sunrpc/xdr.c: Likewise.
9247 * sunrpc/xdr_array.c: Likewise.
9248 * sunrpc/xdr_rec.c: Likewise.
9249 * sunrpc/xdr_ref.c: Likewise.
9250 * sysdeps/generic/wordexp.c: Likewise.
9252 * po/it.po: Update from translation team.
9254 * misc/err.c: Handle wide oriented stderr stream.
9256 2001-08-14 Tom Rix <trix@redhat.com>
9258 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
9259 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
9261 2001-08-13 Tom Rix <trix@redhat.com>
9263 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
9264 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
9267 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
9269 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
9270 Store the access registers to the ucontext structure.
9271 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
9274 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
9275 Load the access registers from the ucontext structure.
9276 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
9279 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
9280 offsets to the new ucontext layout.
9281 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
9283 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
9284 of the ucontext structure.
9285 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
9287 2001-08-15 Ulrich Drepper <drepper@redhat.com>
9289 * misc/error.c (error): Handle wide oriented stderr stream correctly.
9290 (error_at_line): Likewise.
9292 * stdio-common/perror.c (perror): Implement according to standard.
9293 The stream orientation must not be changed if the stream was not
9294 oriented before the call.
9295 * stdio-common/Makefile (tests): Add tst-perror.
9296 * stdio-common/tst-perror.c: New file.
9299 See ChangeLog.12 for earlier changes.