]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
* sysdeps/posix/system.c (do_system): New function, guts broken out of
[thirdparty/glibc.git] / ChangeLog
1 2002-08-05 Roland McGrath <roland@redhat.com>
2
3 * sysdeps/posix/system.c (do_system): New function, guts broken out of
4 __libc_system.
5 (__libc_system): Call it, putting just the line == NULL test here.
6
7 * include/libc-symbols.h (__hidden_proto): Add extern keywords so
8 variables work right.
9
10 * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
11 * elf/dl-close.c (_dl_close): Likewise.
12
13 * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
14 in6addr_any, in6addr_loopback. Remove decls for
15 bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
16 * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
17 * sunrpc/svc_tcp.c (svctcp_create): Likewise.
18 * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
19 * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
20 * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
21 * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
22 in6addr_loopback.
23 * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
24
25 * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
26 ether_aton_r.
27 * inet/ether_aton_r.c: Add libc_hidden_def.
28 * inet/ether_ntoa_r.c: Likewise.
29
30 * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
31 netname2user, host2netname.
32 * sunrpc/netname.c: Add libc_hidden_def.
33
34 * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
35 rexec_af, rresvport_af, ruserok_af.
36 * inet/rcmd.c: Add libc_hidden_def.
37 * inet/getnetgrent_r.c: Likewise.
38
39 * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
40 xprt_unregister.
41 * sunrpc/svc.c: Add libc_hidden_def.
42 * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
43 pmap_set, pmap_unset.
44 * sunrpc/pmap_clnt.c: Add libc_hidden_def.
45 * sunrpc/pm_getport.c: Likewise.
46 * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
47 * sunrpc/publickey.c: Add libc_hidden_def.
48
49 2002-08-05 Ulrich Drepper <drepper@redhat.com>
50
51 * elf/rtld.c (_dl_start): Don't use memset. Use same tricks as for
52 the other memset call in this function.
53
54 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
55 at correct index. Clear BSS region now that memalign is used.
56
57 2002-08-05 Roland McGrath <roland@redhat.com>
58
59 * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
60 * sysdeps/generic/uname.c: Add libc_hidden_def.
61 * sysdeps/mach/hurd/uname.c: Likewise.
62
63 2002-08-05 Jakub Jelinek <jakub@redhat.com>
64
65 * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
66 wcspbrk): Add libc_hidden_proto.
67 * time/strftime.c (my_strftime): Add libc_hidden_def.
68 (strftime): Remove libc_hidden_def.
69 * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
70 * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
71 * wcsmbs/wcsspn.c (wcsspn): Likewise.
72 * wcsmbs/wcscmp.c (wcscmp): Likewise.
73 * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
74 * wcsmbs/wcscoll.c (wcscoll): Likewise.
75
76 * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
77 __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
78 __rpc_thread_createerr): Add libc_hidden_proto.
79 * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
80 __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
81 __rpc_thread_createerr): Add libc_hidden_def.
82
83 * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
84 clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
85 * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
86 clnt_perror, clnt_sperror): Add libc_hidden_def.
87 * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
88
89 * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
90 libc_hidden_proto.
91 * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
92 * sunrpc/des_soft.c (des_setparity): Likewise.
93
94 * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
95 Add libc_hidden_proto.
96 * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
97 Add libc_hidden_def.
98
99 2002-08-05 Roland McGrath <roland@redhat.com>
100
101 * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
102 `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
103 * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
104 * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
105 dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
106 old data, abandoning the original memory allocated by rtld at startup,
107 instead of calling realloc normally.
108
109 2002-08-05 Ulrich Drepper <drepper@redhat.com>
110
111 * po/fr.po: Update from translation team.
112
113 2002-08-04 Roland McGrath <roland@redhat.com>
114
115 * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
116 then generate a dummy module under the given name, obeying the
117 normal rules for the "caller" field.
118
119 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
120 actually iterate over the elements. Fix typo p_type -> p_vaddr.
121
122 * include/pthread.h: Don't declare __pthread_initialize_minimal as
123 weak here; we declare it weak or strong in the one place we use it.
124 * sysdeps/generic/libc-start.c: ... which is here.
125 Don't make the decl weak if [USE_TLS], since static programs need TLS
126 setup even when single-threaded.
127
128 * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
129
130 * elf/Makefile (test-srcs): Add $(modules-names) to it.
131 (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
132 CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
133 all these variables.
134
135 2002-08-04 Ulrich Drepper <drepper@redhat.com>
136
137 * include/stdio.h: Don't define macro magic to redirect function
138 calls if _ISOMAC is defined.
139
140 * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
141 ldouble asin tests.
142
143 2002-08-04 Roland McGrath <roland@redhat.com>
144
145 * stdlib/lrand48_r.c: Add libc_hidden_def.
146
147 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
148 TCB with __libc_memalign instead of mmap.
149 (_dl_deallocate_tls): Free it with free instead of munmap.
150
151 * Makerules (cpp-srcs-left): When setting this to run
152 cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
153 words. Combine the two loops into one on the concatenated list,
154 including those as well as $(test-srcs).
155
156 * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
157 since we align here with optimally minimal waste anyway.
158 (malloc): Just call that.
159
160 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
161 the right variable.
162
163 * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
164 to compute memory location for l_tls_initimage.
165 * elf/rtld.c (_dl_start): Likewise.
166 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
167
168 * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
169 because the .d file is generated in the non-shared case and
170 so fails to catch them otherwise.
171
172 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
173 split out of _dl_allocate_tls.
174 (_dl_allocate_tls_init): Likewise.
175 (_dl_allocate_tls): Call those.
176 * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
177 * elf/rtld.c (dl_main): Call them separately instead of calling
178 _dl_allocate_tls. Delay _dl_allocate_tls_init until after relocation
179 is finished, so that the initializer data has been relocated before we
180 copy it into the main thread's TLS block.
181
182 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
183 loop conditions, prevented the last used module from being initialized.
184
185 2002-08-04 Jakub Jelinek <jakub@redhat.com>
186
187 * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
188 if glob resp. globfree are not macros.
189 * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
190 * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
191 Add libc_hidden_ver.
192 * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
193 libc_hidden_def.
194 * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
195 instead of libc_hidden_weak.
196 * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
197 libc_hidden_ver instead of libc_hidden_def.
198 * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
199 libc_hidden_ver instead of libc_hidden_def.
200 (wcstoll, wcstoq): Remove libc_hidden_weak.
201 * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
202 libc_hidden_ver.
203 * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
204 libc_hidden_ver.
205 * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
206 libc_hidden_ver.
207 * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
208 libc_hidden_ver.
209
210 2002-08-04 Ulrich Drepper <drepper@redhat.com>
211
212 * stdio-common/psignal.c: Declare _sys_siglist_internal. Use USEINT
213 to access _sys_siglist.
214 * string/strsignal.c: Likewise.
215 * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
216 * sysdeps/gnu/siglist.c: Likewise.
217 * sysdeps/unix/siglist.c: Likewise.
218 * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
219
220 * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
221
222 * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
223
224 * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
225 alias and use it.
226 * intl/bindtextdom.c: Use _nl_default_dirname_internal.
227
228 * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
229 * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
230 * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
231
232 * include/time.h: Add libc_hidden_proto for __gmtime_r.
233 * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
234
235 * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
236 and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
237 and __gconv_get_cache respectively.
238 * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
239 defined static. Change all users.
240 (__gconv_get_cache): New function.
241 * iconv/gconv_db.c (__gconv_get_modules_db): New function.
242 (__gconv_get_alias_db): New function.
243 * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
244 (__conv_modules_db): Likewise.
245 Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
246 and __gconv_get_alias_db.
247 * iconv/iconv_prog.c: Use the new functions instead of accessing the
248 variables.
249
250 * include/stdlib.h: Add prototype and libc_hidden_proto for
251 __default_morecore.
252 * sysdeps/generic/morecore.c: Include <stdlib.h>.
253
254 * malloc/obstack.c: Remove fputs macro.
255
256 * malloc/mtrace.c: Remove fopen macro.
257
258 2002-08-04 Jakub Jelinek <jakub@redhat.com>
259
260 * manual/debug.texi: Fix spelling to programmatically.
261 Reported by <hayastan132@hotmail.com>.
262
263 2002-08-04 Ulrich Drepper <drepper@redhat.com>
264
265 * include/libio.h: Add libc_hidden_proto for __uflow.
266 * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
267 fgetpos to _IO_* names.
268 Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
269 fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
270 * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
271 putwc_unlocked, vswscanf.
272 * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
273 * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
274 * libio/fseek.c: Likewise.
275 * libio/fmemopen.c: Include "libioP.h". Call _IO_fopencookie and
276 not fopencookie.
277 * libio/genops.c (__uflow): Add libc_hidden_def.
278 * libio/iofflush_u.c (fflush_unlocked): Likewise.
279 * libio/iofgets_u.c (fgets_unlocked): Likewise.
280 * libio/iofputs_u.c (fputs_unlocked): Likewise.
281 * libio/iofputws_u.c (fputws_unlocked): Likewise.
282 * libio/iofread_u.c (fread_unlocked): Likewise.
283 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
284 * libio/iovswscanf.c (vswscanf): Likewise.
285 * libio/putwc_u.c (putwc_unlocked): Likewise.
286 * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
287 * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
288 * malloc/mtrace.c: Likewise.
289
290 * sunrpc/clnt_perr.c: Remove fputs macro.
291 * sunrpc/svc_simple.c: Likewise.
292 * sunrpc/svc_tcp.c: Likewise.
293 * sunrpc/svc_udp.c: Likewise.
294 * sunrpc/xdr_rec.c: Likewise.
295 * sunrpc/xdr_ref.c: Likewise.
296
297 * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
298 iconv_prog, linereader, and charmap-dir.
299 * locale/Makefile: Likewise for locale and charmap-dir.
300 * malloc/Makefile: Likewise for memusagestat.
301 * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
302 * sunrpc/Makefile: Likewise for rpc_main.
303 * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
304 * timezone/Makefile: Likewise for zic.
305
306 * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
307
308 * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
309 * elf/dl-close.c (_dl_close): Add libc_hidden_def.
310 * elf/dl-open.c (_dl_open): Add libc_hidden_def.
311 * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
312 _dl_close.
313
314 * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
315 __wunderflow.
316 * libio/genops.c (__underflow): Add libc_hidden_def.
317 * libio/wgenops.c (__wuflow): Likewise.
318 (__wunderflow): Likewise.
319
320 * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
321 * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
322
323 * include/stdio.h: Add libc_hidden_proto for __vfscanf.
324 * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
325
326 * include/string.h: Add libc_hidden_proto for __strverscmp.
327 * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
328
329 * include/unistd.h: Add libc_hidden_proto for __sysconf.
330 * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
331 * sysdeps/posix/sysconf.c: Likewise.
332 * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
333 * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
334
335 * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
336 __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
337 __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
338 __iswxdigit_l, __towlower_l, __towupper_l.
339 * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
340 * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
341
342 * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
343 * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
344 * sysdeps/mach/hurd/xmknod.c: Likewise.
345 * sysdeps/unix/xmknod.c: Likewise.
346 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
347 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
348 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
349
350 * sunrpc/svc.c: Add missing INTUSE for _authenticate.
351
352 2002-08-03 Roland McGrath <roland@redhat.com>
353
354 * include/sys/resource.h: Use libc_hidden_proto for getpriority,
355 setpriority.
356 * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
357 * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
358 * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
359 * sysdeps/mach/hurd/setpriority.c: Likewise.
360 * sysdeps/mach/hurd/getpriority.c: Likewise.
361 * sysdeps/generic/setpriority.c: Likewise.
362 * sysdeps/generic/getpriority.c: Likewise.
363
364 * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
365 * malloc/mcheck.c: Add libc_hidden_def.
366
367 * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
368 * misc/hsearch_r.c: Add libc_hidden_def.
369
370 * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
371 * posix/fnmatch.c: Add libc_hidden_weak.
372
373 * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
374 execl, execle, execlp, execvp, getpid, getsid.
375 * sysdeps/generic/alarm.c: Add libc_hidden_def.
376 * sysdeps/unix/alarm.c: Likewise.
377 * posix/confstr.c: Likewise.
378 * posix/execvp.c: Likewise.
379 * posix/execlp.c: Likewise.
380 * posix/execle.c: Likewise.
381 * posix/execl.c: Likewise.
382 * sysdeps/generic/getsid.c: Likewise.
383 * sysdeps/mach/hurd/getsid.c: Likewise.
384 * sysdeps/generic/getpid.c: Add libc_hidden_weak.
385 * sysdeps/mach/hurd/getpid.c: Likewise.
386
387 * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
388 qecvt_r, qfcvt_r, lrand48_r.
389 * misc/efgcvt_r.c: Add libc_hidden_def.
390
391 * include/wordexp.h: Use libc_hidden_proto for wordfree.
392 * sysdeps/generic/wordexp.c: Add libc_hidden_def.
393
394 * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
395 * locale/nl_langinfo.c: Add libc_hidden_def.
396
397 * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
398 * sysdeps/generic/glob.c: Add libc_hidden_def.
399 * sysdeps/generic/glob64.c: Likewise.
400 * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
401
402 * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
403
404 * elf/Makefile (CFLAGS-vismod2.c): New variable.
405
406 * locale/setlocale.c (_nl_current_names): Variable moved ...
407 * locale/localename.c (_nl_current_names): ... here, new file.
408 Make it global, with attribute_hidden.
409 * locale/localeinfo.h: Declare it.
410 * locale/Makefile (aux): Add localename.
411 * locale/localename.c (__current_locale_name): New function.
412 * include/locale.h (__current_locale_name): Declare it.
413 * intl/dcigettext.c (guess_category_value): Use that instead of
414 calling setlocale.
415
416 * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
417 [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
418 [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
419 * locale/newlocale.c: Add alias to __ name.
420 * locale/duplocale.c: Likewise.
421 * locale/freelocale.c: Likewise.
422 * locale/uselocale.c: New file.
423 * locale/Makefile (routines): Add it.
424 * locale/Versions (libc: GLIBC_2.3): New set.
425 Add newlocale, duplocale, freelocale, uselocale.
426 (libc: GLIBC_PRIVATE): Add __uselocale.
427
428 * locale/localeinfo.h [SHARED]
429 (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
430 (_NL_CURRENT_DATA): Define using that.
431 (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
432 (_NL_CURRENT_DEFINE): Define to empty.
433 [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
434 conditionalized on this.
435 * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
436 taking initializer of _nl_C_locobj.
437 [SHARED] (_nl_global_locale): New variable, using that initializer.
438 (_nl_C_locobj): Use new macro for initialzier.
439 * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
440 [! SHARED] (CATEGORY_USED): New macro.
441 [SHARED] (CATEGORY_USED, _nl_C): New macros.
442 (setdata, setlocale): Use that macro instead of examining _nl_current.
443 (setdata): Set the slot in _nl_global_locale.
444 Conditionalize setting of _nl_current on [! SHARED].
445 * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
446 declaration as an extern.
447 * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
448
449 * include/locale.h: Use libc_hidden_proto for setlocale.
450 * locale/setlocale.c: Add libc_hidden_def.
451
452 * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
453
454 * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
455 * misc/hsearch_r.c: Add libc_hidden_def.
456 * misc/lsearch.c: Likewise.
457
458 * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
459 endttyent.
460 * misc/getttyent.c: Add libc_hidden_def.
461
462 * include/mcheck.h: Use libc_hidden_proto for mcheck.
463 * malloc/mcheck.c: Add libc_hidden_def.
464
465 * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
466 * include/argz.h: Use libc_hidden_proto for argz_delete.
467 * string/argz-delete.c: Add libc_hidden_def.
468 * string/envz.c: Likewise. Use <envz.h>, not "envz.h".
469
470 * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
471 HIDDEN_JUMPTARGET for _exit.
472 * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
473 * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
474 * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
475 * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
476
477 * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
478 [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
479 [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
480 * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
481
482 * include/stdlib.h: Use libc_hidden_proto for abort,
483 __strtof_internal, __strtod_internal, __strtold_internal,
484 __strtol_internal, __strtoll_internal, __strtoul_internal,
485 __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
486 __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
487 __strtoul_l_internal, __strtoull_l_internal.
488 * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
489 __wcstod_internal, __wcstold_internal, __wcstol_internal,
490 __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
491 ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
492 ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
493 __wcsncasecmp_l.
494 * sysdeps/generic/abort.c: Add libc_hidden_def.
495 * stdlib/strtod.c: Likewise.
496 * sysdeps/generic/strtol.c: Likewise.
497 * sysdeps/wordsize-64/strtol.c: Likewise.
498 * sysdeps/wordsize-64/wcstol.c: Likewise.
499 * sysdeps/wordsize-64/wcstol_l.c: Likewise.
500
501 * include/stdlib.h: Use libc_hidden_proto for qsort.
502 * stdlib/msort.c: Add libc_hidden_def.
503
504 * include/utime.h: Use libc_hidden_proto for utime.
505 * sysdeps/generic/utime.c: Add libc_hidden_def.
506 * sysdeps/unix/utime.c: Likewise.
507
508 * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
509 * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
510 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
511 * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
512 * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
513
514 * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
515 sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
516 and __libc_current_sigrtmax.
517 * signal/sigismem.c: Add libc_hidden_def.
518 * signal/sigfillset.c: Likewise.
519 * signal/sigempty.c: Likewise.
520 * sysdeps/generic/sigpause.c (__sigpause): Likewise.
521 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
522 * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
523 * sysdeps/posix/raise.c: Likewise.
524 * sysdeps/generic/raise.c: Likewise.
525
526 2002-08-03 Ulrich Drepper <drepper@redhat.com>
527
528 * include/string.h: Use libc_hidden_proto for __stpcpy.
529 * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
530 * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
531 * sysdeps/generic/stpcpy.c: Likewise.
532 * sysdeps/i386/stpcpy.S: Likewise.
533 * sysdeps/i386/i586/stpcpy.S: Likewise.
534 * sysdeps/powerpc/stpcpy.S: Likewise.
535 * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
536 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
537
538 * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
539 __strncasecmp_l, __strdup, __strndup, __strerror_r.
540 * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
541 libc_hidden_def.
542 * string/strdup.c (__strdup): Likewise.
543 * string/strndup.c (__strndup): Likewise.
544 * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
545 * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
546
547 2002-08-03 Jakub Jelinek <jakub@redhat.com>
548
549 * include/libio.h: New file.
550 * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
551 * libio/iolibio.h: #include <libio.h>, not "libio.h".
552 * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
553 * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
554 * sysdeps/unix/common/syscalls.list: Likewise.
555 * sysdeps/unix/inet/syscalls.list: Likewise.
556 * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
557 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
558 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
559 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
560 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
561 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
562 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
563 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
564 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
565 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
566 * sysdeps/unix/syscalls.list: Likewise.
567
568 2002-08-03 Jakub Jelinek <jakub@redhat.com>
569 Ulrich Drepper <drepper@redhat.com>
570
571 * malloc/malloc.c (public_cALLOc): Only divide if at least one of
572 the arguments is big enough to cause an overflow.
573
574 2002-08-03 Ulrich Drepper <drepper@redhat.com>
575
576 * assert/assert.c: Use hidden_def not INTDEF.
577
578 2002-08-03 Jakub Jelinek <jakub@redhat.com>
579
580 * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
581 not defined.
582
583 2002-08-03 Roland McGrath <roland@redhat.com>
584
585 * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
586 * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
587 verr, verrx.
588 * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
589 * misc/syslog.c: Add libc_hidden_def.
590 * misc/err.c: Likewise.
591 * stdlib/exit.c: Likewise.
592 * stdlib/bsearch.c: Likewise.
593 * sysdeps/generic/getenv.c: Likewise.
594
595 * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
596
597 * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
598 libc_hidden_weak for every system call symbol defined.
599
600 * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
601 timelocal, localtime, strftime.
602 * time/asctime.c: Add libc_hidden_def.
603 * time/mktime.c: Likewise.
604 * time/localtime.c: Likewise.
605 * time/strftime.c: Likewise.
606 * time/strptime.c: Likewise.
607 * sysdeps/generic/time.c: Likewise.
608 * sysdeps/unix/time.c: Likewise.
609 * sysdeps/unix/sysv/i386/time.S: Likewise.
610 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
611
612 * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
613 inet_makeaddr, inet_netof, inet_addr, __inet_addr.
614 * resolv/inet_ntop.c: Likewise.
615 * resolv/inet_pton.c: Likewise.
616 * inet/inet_mkadr.c: Add libc_hidden_def.
617 * inet/inet_netof.c: Likewise.
618 * resolv/inet_addr.c: Likewise.
619
620 * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
621 clauses from conditionals for now. Will have to be fixed later
622 for older compilers.
623
624 * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
625
626 2002-08-02 Ulrich Drepper <drepper@redhat.com>
627
628 * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
629 broken alias attribute handling.
630 * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
631
632 2002-08-02 Roland McGrath <roland@frob.com>
633
634 * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
635 since it sets the variables we use in a -D switch.
636
637 2002-08-02 Roland McGrath <roland@redhat.com>
638
639 * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
640 On 32-bit platforms they are the same; on 64-bit platforms ssize_t
641 matches long int, not int.
642
643 * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
644 * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
645 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
646 * wctype/wctrans.c (wctrans): Likewise.
647 * wctype/wctype.c (__wctype): Likewise.
648 * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
649
650 2002-08-02 Ulrich Drepper <drepper@redhat.com>
651
652 * assert/assert.c (__assert_fail): Fix typo in comment.
653
654 * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
655 * sunrpc/rpc_thread.c: Define it without static.
656 * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
657
658 2002-08-02 Jakub Jelinek <jakub@redhat.com>
659
660 * assert/assert.c (__assert_fail): Remove undef.
661 Replace INTDEF with libc_hidden_def.
662 * assert/__assert.c (__assert): Remove INTUSE.
663 * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
664 libc_hidden_weak.
665 * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
666 hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
667 libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
668 rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
669 libm_hiden_ver): Define.
670 * include/assert.h (__assert_fail_internal): Remove.
671 (__assert_fail): Add prototype. Add hidden_proto.
672 * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
673 libc_hidden_proto.
674 * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
675 (__mbrtowc, __mbrlen): Use libc_hidden_proto. Remove macros.
676 * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
677 Add libc_hidden_proto.
678 * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
679 __fcntl): Add libc_hidden_proto. Remove macros.
680 (__open_internal, __fcntl_internal): Remove.
681 * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
682 * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
683 * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
684 libc_hiden_proto.
685 * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
686 libc_hidden_def.
687 * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
688 Add libc_hidden_def.
689 * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
690 * sysdeps/generic/open.c (__open): Remove undef.
691 Add libc_hidden_def. Remove INTDEF.
692 * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
693 Add libc_hidden_def.
694 * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
695 * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
696 * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
697 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
698 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
699 (__libc_fcntl): Add libc_hidden_def.
700 * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
701 (__open): Remove INTDEF2. Add libc_hidden_weak.
702 (__libc_open): Add libc_hidden_def.
703 * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
704 * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
705 * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
706 Add libc_hidden_def.
707 * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
708 Add libc_hidden_def.
709 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
710 undef.
711 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
712 (__libc_fcntl): Add libc_hidden_def.
713 * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
714 __getpgid_internal, __chown_internal): Remove.
715 (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
716 __GI___sched_setscheduler, __GI___select, __GI___setpgid,
717 __GI___chown): Add.
718 * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
719 __getpid_internal, __open_internal, __write_internal): Remove.
720 (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
721 __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
722 __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
723 __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
724 * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
725 Replace INTDEF with libc_hidden_def.
726 * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
727 * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
728 * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
729 * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
730 * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
731 Add libc_hidden_proto.
732 * include/sys/poll.h (__poll): Add libc_hidden_proto.
733 * include/sys/select.h (__select): Likewise.
734 * include/sys/socket.h (__send): Likewise.
735 * include/sys/statfs.h (__statfs): Likewise.
736 * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
737 __getpid, __getpgid, __setpgid, __close, __read, __write,
738 __getpagesize, __sbrk): Likewise.
739 (__chown_internal, __dup2_internal, __getpid_internal,
740 __getpgid_internal, __close_internal, __write_internal,
741 __getpagesize_internal): Remove.
742 (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
743 Remove macros.
744 * include/printf.h (__printf_fp): Add libc_hidden_proto.
745 * include/sched.h (__sched_setscheduler): Likewise.
746 * include/resolv.h (__res_ninit, __res_randomid): Likewise.
747 * include/stdlib.h (__secure_getenv): Likewise.
748 * include/signal.h (__sigaction, __sigsuspend): Likewise.
749 * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
750 * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
751 * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
752 * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
753 * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
754 * inet/getproto_r.c (NSS_attribute_hidden): Remove.
755 * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
756 * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
757 * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
758 * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
759 * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
760 * inet/getservent_r.c (NSS_attribute_hidden): Remove.
761 * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
762 * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
763 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
764 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
765 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
766 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
767 * libio/genops.c (__overflow): Add libc_hidden_def.
768 * libio/iovdprintf.c: Remove libio.h include.
769 * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
770 libc_hidden_weak): Define to nothing if not defined.
771 (__overflow, __woverflow): Add libc_hidden_proto.
772 * libio/wgenops.c (__woverflow): Add libc_hidden_def.
773 * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
774 (DB_LOOKUP_FCT): Add libc_hidden_proto.
775 * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
776 (DB_LOOKUP_FCT): Add libc_hidden_proto.
777 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
778 and libc_hidden_def.
779 * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
780 * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
781 (__getpgid): Add libc_hidden_proto.
782 (__bsd_getpgrp): Remove INTUSE.
783 * resolv/res_init.c (__res_ninit, __res_randomid): Add
784 libc_hidden_def.
785 * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
786 * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
787 * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
788 * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
789 * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
790 * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
791 __rpc_thread_createerr): Add libc_hidden_def.
792 * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
793 libc_hidden_def.
794 * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
795 * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
796 * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
797 * sysdeps/generic/chown.c (__chown): Likewise.
798 * sysdeps/generic/close.c (__close): Likewise.
799 * sysdeps/generic/dup2.c (__dup2): Likewise.
800 * sysdeps/generic/pipe.c (__pipe): Likewise.
801 * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
802 * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
803 * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
804 * sysdeps/generic/read.c (__libc_read): Likewise.
805 (__read): Add libc_hidden_weak.
806 * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
807 * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
808 * sysdeps/generic/select.c (__select): Likewise.
809 * sysdeps/generic/send.c (__send): Likewise.
810 * sysdeps/generic/setpgid.c (__setpgid): Likewise.
811 * sysdeps/generic/sigaction.c (__sigaction): Likewise.
812 * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
813 * sysdeps/generic/statfs.c (__statfs): Likewise.
814 * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
815 * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
816 * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
817 Remove undef and INTDEF.
818 * sysdeps/generic/getpgid.c (__getpgid): Likewise.
819 * sysdeps/generic/getpid.c (__getpid): Likewise.
820 * sysdeps/generic/write.c (__libc_write): Likewise.
821 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
822 * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
823 * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
824 * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
825 * sysdeps/mach/hurd/chown.c (__chown): Likewise. Remove INTDEF.
826 * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
827 Remove undef and INTDEF.
828 * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
829 * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
830 * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
831 * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
832 * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
833 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
834 * sysdeps/mach/hurd/pipe.c: Include unistd.h.
835 (__pipe): Add libc_hidden_def.
836 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
837 libc_hidden_weak.
838 * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
839 * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
840 * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
841 (__read): Add libc_hidden_weak.
842 * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
843 (__libc_pwrite64): Add libc_hidden_def.
844 * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
845 * sysdeps/mach/hurd/select.c (__select): Likewise.
846 * sysdeps/mach/hurd/send.c (__send): Likewise.
847 * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
848 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
849 * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
850 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
851 * sysdeps/posix/dup2.c: Likewise.
852 Remove undef and INTDEF.
853 * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
854 * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
855 (__pwrite64): Add libc_hidden_weak.
856 * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
857 * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
858 * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
859 * sysdeps/standalone/close.c (__close): Likewise.
860 * sysdeps/standalone/write.c (__libc_write): Likewise.
861 (__write): Add libc_hidden_weak.
862 * sysdeps/standalone/read.c (__read): Likewise.
863 (__libc_read): Add libc_hidden_def.
864 * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
865 * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
866 * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
867 * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
868 * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
869 * sysdeps/unix/bsd/poll.c (__poll): Likewise.
870 * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
871 * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
872 * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
873 __GI___sigaction): Add.
874 * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
875 * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
876 * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
877 * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
878 * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
879 __GI___setpgid): Add.
880 * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
881 Remove undef and INTDEF.
882 * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
883 * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
884 * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
885 * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
886 * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
887 * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
888 * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
889 * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
890 * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
891 * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
892 * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
893 * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
894 * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
895 * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
896 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
897 __GI___statfs, __GI___send): Add.
898 * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
899 libc_hidden_ver resp. libc_hidden_def.
900 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
901 libc_hidden_def.
902 * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
903 Likewise. Remove undef and INTDEF.
904 * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
905 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
906 __GI___statfs, __GI___send): Add.
907 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
908 libc_hidden_def.
909 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
910 Likewise.
911 * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
912 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
913 libc_hidden_ver resp. libc_hidden_def.
914 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
915 __GI___send): Add.
916 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
917 Add libc_hidden_weak.
918 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
919 Add libc_hidden_def.
920 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
921 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
922 libc_hidden_weak.
923 * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
924 resp. libc_hidden_def.
925 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
926 libc_hidden_weak.
927 * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise. Remove
928 INTDEF.
929 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
930 Likewise. Remove undef.
931 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
932 libc_hidden_weak.
933 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
934 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
935 libc_hidden_weak.
936 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
937 libc_hidden_def.
938 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
939 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
940 Likewise. Remove undef and INTDEF.
941 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
942 libc_hidden_def.
943 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
944 libc_hidden_weak.
945 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
946 libc_hidden_def.
947 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
948 (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
949 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
950 libc_hidden_weak.
951 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
952 Add libc_hidden_def.
953 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
954 __GI___statfs): Add.
955 * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
956 libc_hidden_weak.
957 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
958 * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
959 Remove undef and INTDEF.
960 * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
961 * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
962 libc_hidden_def.
963 * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
964 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
965 libc_hidden_weak.
966 * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
967 libc_hidden_def.
968 * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
969 * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
970 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
971 Add.
972 * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
973 libc_hidden_def. Remove undef and INTDEF.
974 * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
975 * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
976 libc_hidden_def.
977 * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
978 * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
979 * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
980 * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
981 Remove undef and INTDEF.
982 * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
983 broken visibility attribute handling.
984 * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
985
986 2002-08-02 Ulrich Drepper <drepper@redhat.com>
987
988 * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
989 Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
990
991 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
992 previous patch.
993
994 2002-06-29 Todd Fries <todd@openbsd.org>
995
996 * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
997
998 2002-08-02 Jakub Jelinek <jakub@redhat.com>
999
1000 * include/errno.h: Don't include tls.h if _ISOMAC is defined.
1001
1002 2002-07-30 Roland McGrath <roland@redhat.com>
1003
1004 * resolv/resolv.h (_res): Define macro unconditionally.
1005 [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
1006 * include/resolv.h: ... here.
1007 [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
1008 as a __thread variable.
1009 * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
1010 a __thread variable instead of a global.
1011 * resolv/res_data.c [_LIBC]: Don't #undef _res.
1012
1013 * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
1014 time we test it.
1015
1016 * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
1017
1018 * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
1019 decls of memset and memcpy.
1020
1021 * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
1022 * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
1023
1024 * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
1025
1026 * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
1027 (__libc_tsd_define): Define using __thread.
1028
1029 * sunrpc/rpc_thread.c: Use __libc_tsd_define.
1030 (__rpc_thread_variables): Use __libc_tsd_get.
1031 (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
1032 __rpc_thread_variables, which might allocate what we're about to free.
1033
1034 * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
1035 thread-local variable.
1036 * resolv/netdb.h (h_errno): Define macro unconditionally.
1037 [_LIBC] (__set_h_errno): Macro moved to ...
1038 * include/netdb.h: ... here.
1039 [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
1040 [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
1041 [! _LIBC_REENTRANT]: #undef h_errno here.
1042
1043 * include/errno.h: Protect from multiple inclusion.
1044
1045 * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
1046 before defining them, since Linux's <linux/posix_types.h> might have
1047 defined them.
1048
1049 2002-08-02 Jakub Jelinek <jakub@redhat.com>
1050
1051 * malloc/malloc.c (public_cALLOc): Check for overflow on
1052 multiplication.
1053 * sunrpc/xdr_array.c (xdr_array): Likewise.
1054 * sunrpc/rpc/types.h (mem_free): Add comment.
1055 Patch by Solar Designer <solar@openwall.com>.
1056
1057 2002-08-02 Jakub Jelinek <jakub@redhat.com>
1058
1059 * sysdeps/unix/sysv/linux/kernel-features.h
1060 (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
1061
1062 2002-08-01 Roland McGrath <roland@redhat.com>
1063
1064 * libio/fileops.c (_IO_file_sync_mmap): New function.
1065 (_IO_file_jumps_mmap): Use it.
1066 (_IO_file_underflow_mmap): Rewritten. If after EOF or fflush,
1067 repeat the stat check and resize the mapped buffer as necessary.
1068
1069 2002-07-31 Roland McGrath <roland@redhat.com>
1070
1071 * libio/fileops.c (decide_maybe_mmap): New static function.
1072 Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
1073 mmap the file contents. Then switch the jump tables to the mmap
1074 tables if it worked, or the vanilla file tables if not.
1075 (_IO_file_underflow_maybe_mmap): New function.
1076 (_IO_file_seekoff_maybe_mmap): New function.
1077 (_IO_file_xsgetn_maybe_mmap): New function.
1078 (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
1079 * libio/libioP.h: Declare those.
1080 * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
1081 (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
1082 * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
1083 If the stream is read-only, set its jump tables to those new ones.
1084 * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
1085 jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
1086 We need the tables set before _IO_file_attach.
1087
1088 * libio/tst-mmap-eofsync.c: New file.
1089 * libio/tst-mmap-fflushsync.c: New file.
1090 * libio/bug-mmap-fflush.c: New file.
1091 * libio/tst-mmap2-eofsync.c: New file.
1092 * libio/Makefile (tests): Add them.
1093
1094 * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
1095 _IO_file_underflow_mmap fails, it already set the appropriate bit.
1096
1097 2002-07-31 Jeff Bailey <jbailey@gnu.org>
1098
1099 * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
1100 Declarations moved to <bits/sys_errlist.h>. Include that file.
1101 * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
1102 * sysdeps/generic/bits/sys_errlist.h: New file. This does *not*
1103 declare sys_errlist and sys_nerr.
1104 * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file. Does
1105 provide declarations.
1106
1107 2002-07-31 Roland McGrath <roland@redhat.com>
1108
1109 * elf/rtld.c (dl_main): Fix typo in error message.
1110
1111 2002-07-31 Roland McGrath <roland@frob.com>
1112
1113 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
1114 __xstat -> __xstat64, __lseek -> __libc_lseek64. Completes 2002-06-09
1115 sysdeps/mach/hurd/dl-sysdep.c change.
1116
1117 2002-07-28 Ulrich Drepper <drepper@redhat.com>
1118
1119 * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
1120 -r`/build/include for kernel headers.
1121
1122 * po/fi.po: New file.
1123
1124 2002-07-15 Alexandre Oliva <aoliva@redhat.com>
1125
1126 * configure.in (static_nss): Set to `yes' if --disable-shared.
1127
1128 2002-07-23 Bruno Haible <bruno@clisp.org>
1129
1130 * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
1131 is set.
1132
1133 2002-07-25 Jakub Jelinek <jakub@redhat.com>
1134
1135 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
1136 * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
1137 arguments.
1138
1139 2002-07-25 Jakub Jelinek <jakub@redhat.com>
1140
1141 * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
1142 alias.
1143
1144 2002-07-21 Bruno Haible <bruno@clisp.org>
1145
1146 * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
1147 * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
1148 sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
1149 trans_sysdep_tab_offset.
1150 (struct sysdep_segment): New type.
1151 (struct sysdep_string): New type.
1152 (SEGMENTS_END): New macro.
1153 * intl/gettextP.h (struct sysdep_string_desc): New type.
1154 (struct loaded_domain): New fields malloced, n_sysdep_strings,
1155 orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
1156 orig_tab, trans_tab, hash_tab to const pointers because they point
1157 into read-only memory.
1158 * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
1159 (PRI*): Define fallback values.
1160 (get_sysdep_segment_value): New function.
1161 (_nl_load_domain): Distinguish major and minor revision parts. Add
1162 support for minor revision 1 with system dependent strings.
1163 (_nl_unload_domain): Also free the 'malloced' field.
1164 * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
1165 now done in loadmsgcat.c. Add support for system dependent strings.
1166
1167 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
1168
1169 * posix/bug-regex7.c: New file.
1170 * posix/bug-regex8.c: New file.
1171 * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
1172
1173 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
1174
1175 * posix/bug-regex4.c (main): Fix typos.
1176 * posix/bug-regex6.c (main): Likewise.
1177
1178 2002-07-27 Ulrich Drepper <drepper@redhat.com>
1179
1180 * posix/bug-regex6.c (main): Fix warnings.
1181
1182 * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
1183
1184 * iconv/iconv_prog.c (main): Improve error message for the cases
1185 where -t and/or -f parameter are missing.
1186
1187 2002-07-10 Stepan Kasal <kasal@math.cas.cz>
1188
1189 * posix/regexec.c (re_match): Reorganize to remove duplicate code.
1190 (re_search): Likewise.
1191 (re_match_2): Likewise.
1192 (re_search_2): Likewise.
1193 (re_search_stub): New function.
1194 (re_search_2_stub): New function.
1195 * regcomp.c (re_compile_pattern): Typo in a comment fixed.
1196
1197 2002-07-10 Isamu Hasegawa <isamu@yamato.ibm.com>
1198
1199 * posix/regex_internal.h: Add new member STOP to struct re_string_t.
1200 (re_string_eoi): Use STOP instead of LEN.
1201 * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
1202 (re_string_construct): Likewise.
1203 (re_string_reconstruct): Adjust pstr->stop like pstr->len.
1204 * posix/regexec.c (re_search_internal): Add a new argument STOP
1205 so that it can handle the argument STOP of re_search_2 and re_match_2
1206 correctly.
1207 (regexec): Adapt to new I/F of re_search_internal.
1208 (re_search_stub): Likewise.
1209
1210 2002-07-25 Ulrich Drepper <drepper@redhat.com>
1211
1212 * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
1213
1214 * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
1215
1216 * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
1217 * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
1218 of __divdi3.
1219
1220 * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
1221 * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
1222 * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
1223 alias for adjtimex syscall.
1224
1225 * elf/dl-minimal.c: Define __assert_fail_internal.
1226 * assert/assert.c: Likewise.
1227 * include/assert.h: Define __assert_file macro if !SHARED and not
1228 NOT_IN_libc.
1229
1230 * iconv/Makefile: Define NOT_IN_libc for objects in standalone
1231 programs.
1232 * locale/Makefile: Likewise.
1233 * nscd/Makefile: Likewise.
1234 * catgets/Makefile: Likewise.
1235
1236 2002-07-24 Ulrich Drepper <drepper@redhat.com>
1237
1238 * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
1239 compute current position.
1240
1241 * stdio-common/tst-fseek.c (main): Improve error messages.
1242
1243 * libio/tst-freopen.c (main): Remove unused variable.
1244
1245 * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
1246 succesful seek call. Simplify error checking.
1247
1248 2002-07-25 Jakub Jelinek <jakub@redhat.com>
1249
1250 * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
1251 * sysdeps/ia64/fpu/libm_support.h: Likewise.
1252
1253 2002-07-19 Roland McGrath <roland@frob.com>
1254
1255 * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
1256 __libc_enable_secure is set.
1257
1258 2002-07-24 Roland McGrath <roland@frob.com>
1259
1260 Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
1261 This implementation supports only IPv4.
1262 * inet/ifaddrs.h: New file.
1263 * sysdeps/generic/ifaddrs.c: New file.
1264 * sysdeps/gnu/ifaddrs.c: New file.
1265 * inet/test-ifaddrs.c: New file.
1266 * inet/Makefile (routines): Add ifaddrs.
1267 (headers): Add ifaddrs.h here.
1268 (tests): Add test-ifaddrs.
1269 * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
1270
1271 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
1272 socket call to get an AF_INET socket, instead of using __opensock.
1273 The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
1274
1275 * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
1276 if not -1 use it instead of calling __opensock.
1277 * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
1278 * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
1279 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
1280
1281 * sysdeps/mach/hurd/ifreq.h: New file.
1282 * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
1283 * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
1284 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
1285
1286 * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
1287 which gets moved around. Calculate size of mmap'd buffer instead.
1288
1289 2002-07-24 Philip Blundell <philb@gnu.org>
1290
1291 * sysdeps/unix/arm/brk.S: Improve schedule.
1292 * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
1293 efficient instruction.
1294 (__socket): Optimize return sequence.
1295
1296 2002-07-24 Ulrich Drepper <drepper@redhat.com>
1297
1298 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
1299 sockets on old kernels.
1300
1301 2002-07-22 Philip Blundell <philb@gnu.org>
1302
1303 * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
1304 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
1305 alias.
1306
1307 2002-07-24 Ulrich Drepper <drepper@redhat.com>
1308
1309 * locale/hashval.h: Make more self-contained by defining LONG_BITS.
1310 * locale/programs/simple-hash.c: Remove LONG_BITS definition.
1311
1312 * locale/programs/locarchive.c (add_locale_to_archive): Correct
1313 test to detect duplicate locales.
1314
1315 * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
1316 position would be before beginning of file.
1317 (_IO_file_seekoff_mmap): Likewise.
1318 * libio/Makefile (tests): Add bug-fseek.
1319 * libio/bug-fseek.c: New file.
1320
1321 * intl/explodename.c: Remove support for CEN-style locale variables.
1322 It was never used and shouldn't be since it's not portable.
1323 * intl/finddomain.c: Likewise.
1324 * intl/l10nflist.c: Likewise.
1325 * intl/loadinfo.h: Likewise.
1326 * locale/findlocale.c: Likewise.
1327
1328 2002-07-24 Roland McGrath <roland@frob.com>
1329
1330 * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
1331 position, calculate it to take into account an active pushback buffer.
1332
1333 * libio/Makefile (tests): Add bug-ungetc.
1334 * libio/bug-ungetc.c: New file.
1335
1336 2002-07-23 Ulrich Drepper <drepper@redhat.com>
1337
1338 * sysdeps/generic/libc-tls.c: New file.
1339 * csu/Makefile (routines): Add libc-tls.
1340 (static-only-routines): Add libc-tls.
1341 * elf/dl-support.c (_dl_phdr): New variable.
1342 (_dl_phnum): New variable.
1343 (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
1344 * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
1345 for !SHARED. First look through auxiliary vector. If TLS always
1346 call __pthread_initialize_minimal.
1347
1348 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
1349 in mmap call is never zero.
1350
1351 2002-07-23 Andreas Jaeger <aj@suse.de>
1352
1353 * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
1354 * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
1355
1356 2002-07-22 Ulrich Drepper <drepper@redhat.com>
1357
1358 * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
1359 creation and removal of the temp file.
1360
1361 * libio/bug-rewind.c: Use test skeleton. Use create_temp_file for
1362 file creation.
1363 * test-skeleton.c (create_temp_file): New function.
1364
1365 2002-07-22 Andreas Jaeger <aj@suse.de>
1366
1367 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
1368 local label.
1369
1370 2002-07-21 Roland McGrath <roland@frob.com>
1371
1372 * wcsmbs/Makefile (strtox-CFLAGS): New variable,
1373 put -I../include before -I../stdlib so we get the right errno.h et al.
1374 (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
1375 (CFLAGS-wcstof.c): Likewise.
1376 (CFLAGS-wcstold.c): Likewise.
1377 (CFLAGS-wcstod_l.c): Likewise.
1378 (CFLAGS-wcstof_l.c): Likewise.
1379 (CFLAGS-wcstold_l.c): Likewise.
1380
1381 2002-07-19 Roland McGrath <roland@frob.com>
1382
1383 * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
1384
1385 2002-07-20 Ulrich Drepper <drepper@redhat.com>
1386
1387 * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
1388 __ASSUME_AT_XID is defined.
1389 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
1390 for 2.4.1 and up.
1391 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
1392 of AT_UID, AT_EUID, AT_GID, and AT_EGID.
1393
1394 * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
1395 (CFLAGS-wcstof.c): Likewise.
1396 (CFLAGS-wcstold.c): Likewise.
1397 (CFLAGS-wcstod_l.c): Likewise.
1398 (CFLAGS-wcstof_l.c): Likewise.
1399 (CFLAGS-wcstold_l.c): Likewise.
1400
1401 2002-07-18 Jakub Jelinek <jakub@redhat.com>
1402
1403 * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
1404 __priority_which_t): Always typedef to int for C++.
1405
1406 2002-07-19 Ulrich Drepper <drepper@redhat.com>
1407
1408 * configure.in: Add test for __thread support in compiler.
1409 * config.h.in: Add HAVE___THREAD.
1410 * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
1411 * include/sys/errno.h: Moved to...
1412 * stdlib/sys/errno.h: ...here. New file.
1413 * stdlib/errno.h: New file. Moved from...
1414 * include/errno.h: ...here. Changed into an internal header defining
1415 libc-local things like __set_errno.
1416 * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
1417 bits/errno.h.
1418 * elf/dl-minimal.c: Include <tls.h>. Define errno as thread-local
1419 variable if USE_TLS && HAVE___THREAD. Don't define __errno_location
1420 either.
1421 * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
1422 from...
1423 (_dl_start_final): ...here. Add code to initialize tls elements from
1424 bootstrap_map.
1425 * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
1426 if USE_TLS && HAVE___THREAD.
1427 * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
1428 * sysdeps/mach/hurd/bits/errno.h: Likewise.
1429 * sysdeps/standalone/arm/bits/errno.h: Likewise.
1430 * sysdeps/standalone/bits/errno.h: Likewise.
1431 * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
1432 * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
1433 * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
1434 * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
1435 * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
1436 * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
1437 * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
1438 * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
1439 use GL(dl_rtld_map), use map parameter.
1440 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
1441 * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
1442 USE_TLS && HAVE___THREAD.
1443 * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
1444 definitions. If USE_TLS && HAVE___THREAD store errooor value using
1445 TLS code sequence.
1446 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
1447
1448 * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
1449 * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
1450 * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
1451 * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
1452 * sysdeps/unix/sysv/linux/readv.c: Likewise.
1453 * sysdeps/unix/sysv/linux/writev.c: Likewise.
1454
1455 2002-07-17 Ulrich Drepper <drepper@redhat.com>
1456
1457 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
1458 MS_INVALIDATE values.
1459
1460 2002-07-17 Andreas Schwab <schwab@suse.de>
1461 Ulrich Drepper <drepper@redhat.com>
1462
1463 * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
1464 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
1465 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
1466 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1467
1468 2002-07-01 H.J. Lu <hjl@gnu.org>
1469
1470 * elf/circleload1.c (load_dso): Call "circlemod1" and check
1471 return value.
1472
1473 * elf/circlemod1.c (circlemod1): Return int.
1474 * elf/circlemod2.c (circlemod2): Likewise.
1475 * elf/circlemod2a.c (circlemod2): Likewise.
1476 * elf/circlemod3.c (circlemod3): Likewise.
1477 (circlemod3a): A new function.
1478
1479 2002-07-16 Ulrich Drepper <drepper@redhat.com>
1480
1481 * catgets/tst-catgets.c (main): Don't expect results for
1482 untranslated messages.
1483
1484 * glibcbug.in: Fix little typo. Remove STDIO.
1485
1486 * config.h.in: Fail if __FAST_MATH__ is defined.
1487 * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
1488 (CPPFLAGS-test-idouble.c): Likewise.
1489 (CPPFLAGS-test-ildouble.c): Likewise.
1490
1491 2002-07-15 Ulrich Drepper <drepper@redhat.com>
1492
1493 * intl/tst-gettext.sh: Pass -f option to msgfmt.
1494 * intl/tst-gettext.c: Correctly handle untranslated messages in
1495 positive tests.
1496
1497 * po/de.po: Update from translation team.
1498
1499 2002-07-02 H.J. Lu <hjl@gnu.org>
1500
1501 * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>. Always
1502 use ll/sc.
1503 * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
1504
1505 * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
1506 to 2.4.0 for mips.
1507
1508 2002-07-15 Ulrich Drepper <drepper@redhat.com>
1509
1510 * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
1511 TLS fail if USE_TLS is not defined.
1512
1513 * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
1514 and adjust state for seek position. [PR libc/4070]
1515 * libio/Makefile (tests): Add bug-rewind.
1516 * libio/bug-rewind.c: New file.
1517
1518 2002-07-12 Philip Blundell <philb@gnu.org>
1519
1520 * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
1521 (__backtrace): Use it.
1522 * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define. [PR libc/2632]
1523
1524 2002-07-12 Philip Blundell <philb@gnu.org>
1525
1526 * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
1527 R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
1528 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
1529 (elf_machine_rela): Remove unused variable.
1530
1531 * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
1532 (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
1533 define.
1534
1535 2002-07-12 Ulrich Drepper <drepper@redhat.com>
1536
1537 * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
1538
1539 2002-07-14 Andreas Jaeger <aj@suse.de>
1540
1541 * sysdeps/x86_64/bits/link.h: Add biarch support.
1542
1543 2002-07-13 Andreas Jaeger <aj@suse.de>
1544
1545 * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
1546 Use correct indices.
1547 Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
1548
1549 2002-07-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1550
1551 * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
1552 * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
1553 * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
1554 * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
1555 * sysdeps/s390/s390-32/bits/link.h: Remove.
1556 * sysdeps/s390/s390-64/bits/link.h: Remove.
1557 * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
1558 * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
1559 * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
1560 * sysdeps/s390/bits/wordsize.h: New file.
1561 * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
1562 elfclass.h.
1563 * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
1564 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
1565 * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
1566 * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
1567 * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
1568 * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
1569 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
1570 * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
1571 * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
1572 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
1573 * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
1574 * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
1575 resource.h.
1576 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
1577 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
1578 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
1579 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
1580 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
1581 * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
1582 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
1583 sigaction.h.
1584 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
1585 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
1586 siginfo.h.
1587 * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
1588 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
1589 * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
1590 socket.h.
1591 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
1592 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
1593 * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
1594 * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
1595 * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
1596 * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
1597 * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
1598 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
1599 procfs.h.
1600 * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
1601 * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
1602 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
1603 ucontext.h.
1604 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
1605 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
1606
1607 2002-07-11 Ulrich Drepper <drepper@redhat.com>
1608
1609 * Versions.def (libc): Add GLIBC_2.3.
1610 * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
1611 * stdlib/canonicalize.c: Add compatibility version for realpath
1612 and make new code available in GLIBC_2.3.
1613
1614 2002-07-06 Bruno Haible <bruno@clisp.org>
1615
1616 * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
1617
1618 2002-07-11 Ulrich Drepper <drepper@redhat.com>
1619
1620 * resolv/res_hconf.c (_res_hconf_init): Move code into new
1621 function do_init. Use __libc_once.
1622 (do_init): New function.
1623
1624 * iconvdata/iso8859-11.h: Removed.
1625 * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
1626 (distribute): Remove iso8859-11.h.
1627 * iconvdata/tst-tables.sh: Add ISO-8859-11.
1628
1629 * stdio-common/vfscanf.c (inchar): Restore errno from previous
1630 underflow operation if c == (W)EOF.
1631
1632 2002-07-03 Jakub Jelinek <jakub@redhat.com>
1633
1634 * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
1635 non-zero, adjust exponent.
1636 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
1637 Remove NO_LONG_DOUBLE aliases.
1638 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
1639 * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
1640 (__log1pl): Raise divide by zero and invalid exceptions when needed.
1641 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
1642 1**y and -1**+-Inf.
1643 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
1644 Fix BITS_PER_MP_LIMB 32 extraction.
1645 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
1646 exceptions for qNaNs.
1647 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
1648 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
1649 Raise exceptions when needed. Don't recurse unnecessarily.
1650 Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
1651 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
1652 exceptions for qNaNs.
1653 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
1654 to fix *quo return value sign.
1655 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
1656 case -Inf argument.
1657 * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
1658
1659 2002-07-01 Jakub Jelinek <jakub@redhat.com>
1660
1661 * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
1662 * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
1663 -DNDEBUG.
1664
1665 2002-07-10 Ulrich Drepper <drepper@redhat.com>
1666
1667 * malloc/hooks.c (realloc_check): If mremap succeeds actually use
1668 the result.
1669
1670 * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
1671 output parameter. Reported by Denis Zaitsev <zzz@cd-club.ru>.
1672
1673 * Versions.def (libthread_db): Add GLIBC_2.3.
1674
1675 2002-07-09 Jakub Jelinek <jakub@redhat.com>
1676
1677 * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
1678 new stream if possible.
1679 * libio/freopen64.c (freopen64): Likewise.
1680 * libio/Makefile (tests): Add tst-freopen.
1681 * libio/tst-freopen.c: New file.
1682
1683 2002-07-03 Jakub Jelinek <jakub@redhat.com>
1684
1685 * libio/stdio.h (obstack_printf): Add format attribute.
1686 (obstack_vprintf): Likewise.
1687
1688 2002-07-04 Jakub Jelinek <jakub@redhat.com>
1689
1690 * posix/regex_internal.h (re_token_t): Shrink the structure to 8
1691 resp. 16 bytes on 32-bit resp. 64-bit platforms.
1692 (re_charset_t, re_string_t): Reorder structure members for 64-bit
1693 architectures.
1694
1695 2002-07-04 Jakub Jelinek <jakub@redhat.com>
1696
1697 * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
1698 (init_dfa): ...here.
1699
1700 2002-07-05 Isamu Hasegawa <isamu@yamato.ibm.com>
1701
1702 * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
1703 OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
1704 nodes in parse trees.
1705 (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
1706 and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
1707 (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
1708 nodes which can epsilon transit.
1709 * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
1710 to IS_EPSILON_NODE macro.
1711 * posix/regexec.c (update_regs): New function to update registers
1712 by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
1713 (proceed_next_node): Use the entities of the nodes to determine
1714 whether the node can transit to.
1715 (set_regs): Use update_regs function to update registers.
1716
1717 2002-07-03 Jakub Jelinek <jakub@redhat.com>
1718
1719 * posix/bug-regex4.c (main): Remove duplicate setlocale.
1720 * posix/bug-regex6.c: New file.
1721 * posix/Makefile (tests): Add bug-regex6.
1722 (bug-regex6-ENV): Set LOCPATH.
1723
1724 2002-07-10 Ulrich Drepper <drepper@redhat.com>
1725
1726 * Versions.def [libpthread]: Add GLIBC_2.2.6.
1727 * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
1728
1729 2002-07-06 Bruno Haible <bruno@clisp.org>
1730
1731 * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
1732
1733 2002-07-06 Bruno Haible <bruno@clisp.org>
1734
1735 * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
1736 declarations.
1737
1738 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
1739
1740 * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
1741
1742 * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
1743 not _UTSNAME_H.
1744 * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
1745
1746 * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
1747 * sysdeps/generic/bits/ustat.h: Likewise.
1748
1749 * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
1750
1751 2002-07-08 Andreas Jaeger <aj@suse.de>
1752
1753 * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
1754
1755 2002-07-08 Andreas Jaeger <aj@suse.de>
1756
1757 * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
1758
1759 2002-07-06 Andreas Jaeger <aj@suse.de>
1760
1761 * sysdeps/x86_64/fpu/bits/mathinline.h: New.
1762 * sysdeps/x86_64/fpu/s_copysign.S: New.
1763 * sysdeps/x86_64/fpu/s_copysignf.S: New.
1764 * sysdeps/x86_64/fpu/s_copysignl.S: New.
1765 * sysdeps/x86_64/fpu/s_finitel.S: New.
1766 * sysdeps/x86_64/fpu/s_fmax.S: New.
1767 * sysdeps/x86_64/fpu/s_fmaxf.S: New.
1768 * sysdeps/x86_64/fpu/s_fmaxl.S: New.
1769 * sysdeps/x86_64/fpu/s_fmin.S: New.
1770 * sysdeps/x86_64/fpu/s_fminf.S: New.
1771 * sysdeps/x86_64/fpu/s_fminl.S: New.
1772
1773 2002-06-05 Brian Youmans <3diff@gnu.org>
1774
1775 * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
1776 * sysdeps/ia64/fpu/e_acosf.S: Likewise.
1777 * sysdeps/ia64/fpu/e_acosl.S: Likewise.
1778 * sysdeps/ia64/fpu/e_asin.S: Likewise.
1779 * sysdeps/ia64/fpu/e_asinf.S: Likewise.
1780 * sysdeps/ia64/fpu/e_asinl.S: Likewise.
1781 * sysdeps/ia64/fpu/e_atan2.S: Likewise.
1782 * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
1783 * sysdeps/ia64/fpu/e_cosh.S: Likewise.
1784 * sysdeps/ia64/fpu/e_coshf.S: Likewise.
1785 * sysdeps/ia64/fpu/e_coshl.S: Likewise.
1786 * sysdeps/ia64/fpu/e_exp.S: Likewise.
1787 * sysdeps/ia64/fpu/e_expf.S: Likewise.
1788 * sysdeps/ia64/fpu/e_fmod.S: Likewise.
1789 * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
1790 * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
1791 * sysdeps/ia64/fpu/e_hypot.S: Likewise.
1792 * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
1793 * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
1794 * sysdeps/ia64/fpu/e_log.S: Likewise.
1795 * sysdeps/ia64/fpu/e_logf.S: Likewise.
1796 * sysdeps/ia64/fpu/e_pow.S: Likewise.
1797 * sysdeps/ia64/fpu/e_powf.S: Likewise.
1798 * sysdeps/ia64/fpu/e_powl.S: Likewise.
1799 * sysdeps/ia64/fpu/e_remainder.S: Likewise.
1800 * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
1801 * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
1802 * sysdeps/ia64/fpu/e_scalb.S: Likewise.
1803 * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
1804 * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
1805 * sysdeps/ia64/fpu/e_sinh.S: Likewise.
1806 * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
1807 * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
1808 * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
1809 * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
1810 * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
1811 * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
1812 * sysdeps/ia64/fpu/libm_error.c: Likewise.
1813 * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
1814 * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
1815 * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
1816 * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
1817 * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
1818 * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
1819 * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
1820 * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
1821 * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
1822 * sysdeps/ia64/fpu/s_log1p.S: Likewise.
1823 * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
1824 * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
1825 * sysdeps/ia64/fpu/s_logb.S: Likewise.
1826 * sysdeps/ia64/fpu/s_logbf.S: Likewise.
1827 * sysdeps/ia64/fpu/s_logbl.S: Likewise.
1828 * sysdeps/ia64/fpu/s_modf.S: Likewise.
1829 * sysdeps/ia64/fpu/s_modff.S: Likewise.
1830 * sysdeps/ia64/fpu/s_modfl.S: Likewise.
1831 * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
1832 * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
1833 * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
1834 * sysdeps/ia64/fpu/s_rint.S: Likewise.
1835 * sysdeps/ia64/fpu/s_rintf.S: Likewise.
1836 * sysdeps/ia64/fpu/s_rintl.S: Likewise.
1837 * sysdeps/ia64/fpu/s_round.S: Likewise.
1838 * sysdeps/ia64/fpu/s_roundf.S: Likewise.
1839 * sysdeps/ia64/fpu/s_roundl.S: Likewise.
1840 * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
1841 * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
1842 * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
1843 * sysdeps/ia64/fpu/s_significand.S: Likewise.
1844 * sysdeps/ia64/fpu/s_significandf.S: Likewise.
1845 * sysdeps/ia64/fpu/s_significandl.S: Likewise.
1846 * sysdeps/ia64/fpu/s_tan.S: Likewise.
1847 * sysdeps/ia64/fpu/s_tanf.S: Likewise.
1848 * sysdeps/ia64/fpu/s_tanl.S: Likewise.
1849 * sysdeps/ia64/fpu/s_trunc.S: Likewise.
1850 * sysdeps/ia64/fpu/s_truncf.S: Likewise.
1851 * sysdeps/ia64/fpu/s_truncl.S: Likewise.
1852 * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
1853 reflect IBM donation of math library to FSF
1854 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1855 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1856 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1857 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1858 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1859 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1860 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1861 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1862 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1863 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1864 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1865 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
1866 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
1867 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
1868 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
1869 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
1870 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1871 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1872 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1873 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
1874 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
1875 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
1876 * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
1877 * sysdeps/vax/__longjmp.c: Likewise.
1878 * sysdeps/vax/setjmp.c: Likewise.
1879 * libio/filedoalloc.c: Fixed BSD copying permission notice to
1880 remove advertising clause
1881 * sysdeps/vax/htonl.s: Likewise.
1882 * sysdeps/vax/htons.s: Likewise.
1883 * libio/wfiledoalloc.c: Likewise.
1884 * stdlib/random.c: Likewise.
1885 * stdlib/random_r.c: Likewise.
1886 * sysdeps/mach/sys/reboot.h: Likewise.
1887 * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
1888 * sysdeps/posix/getaddrinfo.c: Likewise.
1889 * sunrpc/des_impl.c: Updated license permission notice to Lesser
1890 GPL and corrected pointer to point to the correct license.
1891
1892 2002-07-04 Andreas Jaeger <aj@suse.de>
1893
1894 * scripts/config.guess: New upstream version.
1895 * scripts/config.sub: Likewise.
1896
1897 2002-07-02 Andreas Schwab <schwab@suse.de>
1898
1899 * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
1900 in parallel to bumping up the buffer pointer.
1901
1902 2002-07-01 Jakub Jelinek <jakub@redhat.com>
1903
1904 * math/libm-test.inc (acos_test): Add missing L suffix for
1905 expected result.
1906 (cpow_test): Likewise.
1907 * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
1908 error for acos (0.0625).
1909
1910 2002-06-30 Ulrich Drepper <drepper@redhat.com>
1911
1912 * locale/iso-639.def: Add entry for Ganda.
1913 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
1914 definition.
1915 (address_finish): Handle entries with two letter ISO 639 code.
1916
1917 * iconvdata/Makefile: Recreate gconv-modules.cache file in target
1918 directory if it existed before.
1919 * iconv/iconvconfig.c: Implement --prefix option.
1920
1921 * math/libm-test.inc (cexp_test): Add missing L suffix for
1922 expected result. Reported by Stephen L Moshier <steve@moshier.net>.
1923 * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
1924 1.25 i).
1925
1926 2002-05-29 H.J. Lu <hjl@gnu.org>
1927
1928 * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
1929 is turned on.
1930
1931 2002-05-28 H.J. Lu <hjl@gnu.org>
1932
1933 * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
1934 are not dlopened on the dependency list of a dlopened object.
1935
1936 2002-06-30 Ulrich Drepper <drepper@redhat.com>
1937
1938 * elf/dl-lookup.c (add_dependency): It is not necessary to add
1939 dependencies if they are created between objects which are created
1940 while processing RTLD_NOW for objects loaded as part of the same
1941 dlopen call.
1942
1943 2002-06-14 H.J. Lu <hjl@gnu.org>
1944
1945 * elf/Makefile (tests): Add circleload1.
1946 (modules-names): Add circlemod1, circlemod2, circlemod3,
1947 circlemod1a, circlemod2a and circlemod3a.
1948 ($(objpfx)circleload1): New target.
1949 ($(objpfx)circleload1.out): Likewise.
1950 ($(objpfx)circlemod1.so): Likewise.
1951 ($(objpfx)circlemod2.so): Likewise.
1952 ($(objpfx)circlemod1a.so): Likewise.
1953 ($(objpfx)circlemod2a.so): Likewise.
1954 * elf/circleload1.c: New file.
1955 * elf/circlemod1.c: New file.
1956 * elf/circlemod1a.c: New file.
1957 * elf/circlemod2.c: New file.
1958 * elf/circlemod2a.c: New file.
1959 * elf/circlemod3.c: New file.
1960 * elf/circlemod3a.c: New file.
1961
1962 2002-06-18 Amos Waterland <apw@us.ibm.com>
1963
1964 * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
1965 file descriptor.
1966 * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
1967 add check for fd not open for writing.
1968
1969 * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
1970 completed element(s) and do not suspend thread if so. Patch
1971 heavily modified by drepper.
1972
1973 * rt/tst-aio7.c: New file. Regression test for problems which the
1974 above three changes fix.
1975 * rt/Makefile (tests): Add tst-aio7.
1976
1977 2002-06-29 Ulrich Drepper <drepper@redhat.com>
1978
1979 * rt/tst-aio6.c: Fix comment.
1980
1981 * catgets/gencat.c (read_input_file): Handle more than one slash
1982 at end of line correctly [PR libc/3926].
1983 Based on a patch by Steven Kim <steven.kim@peregrine.com>.
1984
1985 * catgets/sample.SJIS: Add test case for above bug.
1986 * catgets/test-gencat.c: Adjust test code.
1987 * catgets/test-gencat.sh: Adjust expected results.
1988
1989 * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
1990 to skip relative relocations.
1991 Patch by Geoff Keating <geoffk@redhat.com>.
1992
1993 2002-05-26 Bruno Haible <bruno@clisp.org>
1994
1995 * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
1996 (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
1997 All callers changed.
1998 * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
1999 STANDARD_FROM_LOOP_ERR_HANDLER.
2000 (utf8_internal_loop): Likewise.
2001 (ucs2_internal_loop): Likewise.
2002 (internal_ucs2_loop): Perform error handling like in
2003 STANDARD_FROM_LOOP_ERR_HANDLER.
2004 * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
2005 in STANDARD_FROM_LOOP_ERR_HANDLER.
2006 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2007 handling.
2008 * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
2009 in STANDARD_FROM_LOOP_ERR_HANDLER.
2010 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2011 handling.
2012 * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
2013 in STANDARD_FROM_LOOP_ERR_HANDLER.
2014 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2015 handling.
2016 * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
2017 STANDARD_FROM_LOOP_ERR_HANDLER.
2018 * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
2019 * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
2020 * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
2021 * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
2022 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
2023 * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
2024 * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
2025 * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
2026 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
2027 * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
2028 * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
2029 * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
2030 * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
2031 * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
2032 * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
2033 * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
2034 * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
2035 * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
2036 * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
2037 * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
2038 * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
2039 * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
2040 * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
2041 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
2042 * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
2043 * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
2044 * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
2045 * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
2046 * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise. When ignoring
2047 an error, still set result = __GCONV_ILLEGAL_INPUT.
2048 (BODY for TO_LOOP): Likewise.
2049 * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
2050 STANDARD_FROM_LOOP_ERR_HANDLER.
2051 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2052 * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
2053 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2054 handling.
2055 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2056 * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
2057 STANDARD_FROM_LOOP_ERR_HANDLER.
2058 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2059 * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
2060 STANDARD_FROM_LOOP_ERR_HANDLER.
2061 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2062 * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
2063 STANDARD_FROM_LOOP_ERR_HANDLER.
2064 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2065 * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
2066 STANDARD_FROM_LOOP_ERR_HANDLER.
2067 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2068 * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
2069 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2070 handling.
2071 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2072 * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
2073 * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
2074 * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
2075
2076 2002-06-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2077
2078 * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
2079 labels in assembler instructions.
2080
2081 2002-06-25 Ulrich Drepper <drepper@redhat.com>
2082
2083 * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
2084 not enough content is available.
2085 * libio/tst-eof.c: New file.
2086 * libio/Makefile (tests): Add tst-eof.
2087
2088 * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
2089 update atime.
2090 * libio/tst-atime.c: New file.
2091 * libio/Makefile (tests): Add tst-atime.
2092
2093 * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
2094 handling of overly long words.
2095
2096 2002-06-25 Andreas Jaeger <aj@suse.de>
2097
2098 * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
2099 to not use 32-bit pc relative relocations.
2100 (elf_machine_dynamic): Likewise.
2101
2102 2002-06-21 Ulrich Drepper <drepper@redhat.com>
2103
2104 * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
2105 (__GETDENTS): Check for failed getdents64 syscall.
2106 * dirent/Makefile (tests): Add bug-readdir1.
2107 * dirent/bug-readdir1.c: New file.
2108
2109 2002-06-17 Jakub Jelinek <jakub@redhat.com>
2110
2111 * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
2112 lookups.
2113 * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
2114 code. Print TLS modid and offset for modules containing PT_TLS
2115 segments.
2116
2117 2002-06-09 Jakub Jelinek <jakub@redhat.com>
2118
2119 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
2120 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
2121 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
2122 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
2123
2124 2002-06-07 Jakub Jelinek <jakub@redhat.com>
2125
2126 * nss/getXXbyYY_r.c (NEW, NEW1): Define.
2127 (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
2128 (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
2129 * nss/getXXent_r.c (NEW, NEW1): Define.
2130 (NEW (REENTRANT_GETNAME)): Strong alias to
2131 INTERNAL (REENTRANT_GETNAME).
2132 (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
2133
2134 2002-06-21 Ulrich Drepper <drepper@redhat.com>
2135
2136 * libio/fileops.c (_IO_file_setbuf_mmap): New function.
2137 (_IO_file_jumps_mmap): Use it.
2138 * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
2139 * libio/libioP.h: Remove _IO_wdefault_setbuf and
2140 _IO_wdefault_setbuf_internal prorotypes. Add _IO_file_setbuf_mmap
2141 prototype.
2142 * libio/wfileops.c (_IO_wfile_setbuf): Removed.
2143 (_IO_wfile_jumps_mmap): Don't use it anymore.
2144 * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
2145 * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
2146 _IO_wdefault_setbuf.
2147 * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
2148 * libio/wstrops.c (_IO_wstr_jumps): Likewise.
2149 * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
2150
2151 2002-06-05 Jakub Jelinek <jakub@redhat.com>
2152
2153 * libio/Makefile (tests): Add tst-mmap-setvbuf.
2154 * libio/tst-mmap-setvbuf.c: New test.
2155
2156 2002-06-21 Andreas Jaeger <aj@suse.de>
2157
2158 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
2159
2160 2002-06-18 Jakub Jelinek <jakub@redhat.com>
2161
2162 * include/unistd.h (__fork_internal): Remove.
2163 (__fork): Don't define to __fork_internal.
2164 * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
2165 * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
2166 * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
2167 * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
2168 * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
2169
2170 2002-06-20 Ulrich Drepper <drepper@redhat.com>
2171
2172 * po/hr.po: New file.
2173
2174 2002-06-11 Wolfram Gloger <wg@malloc.de>
2175
2176 * malloc/malloc.c: Fix error path when new_heap() returns NULL.
2177 Reported by Michael Meissner <meissner@redhat.com>.
2178
2179 2002-06-20 Ulrich Drepper <drepper@redhat.com>
2180
2181 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
2182 Patch by Hans Boehm <hans_boehm@hp.com>.
2183
2184 2002-06-20 Andreas Jaeger <aj@suse.de>
2185
2186 * math/libm-test.inc: Use exact values as input parameters,
2187 compute output parameters with 36 digits for 128-bit long doubles.
2188 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
2189 * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
2190 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
2191
2192 2002-06-13 Stephen L Moshier <steve@moshier.net>
2193
2194 * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
2195 argument or result is subnormal.
2196
2197 2002-06-19 Ulrich Drepper <drepper@redhat.com>
2198
2199 * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
2200 quotient.
2201 * sysdeps/i386/fpu/s_remquof.S: Likewise.
2202 * sysdeps/i386/fpu/s_remquol.S: Likewise.
2203
2204 * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
2205
2206 2002-06-17 David Mosberger <davidm@hpl.hp.com>
2207
2208 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
2209 typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
2210 Reported by Peter A. Buhr.
2211
2212 2002-06-15 Roland McGrath <roland@frob.com>
2213
2214 * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
2215 warning.
2216
2217 * sysdeps/mach/hurd/getcwd.c
2218 (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
2219
2220 * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
2221 * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
2222
2223 * sysdeps/alpha/divrem.h: Use local label instead of global one for
2224 jump to local subroutine.
2225
2226 2002-06-14 Roland McGrath <roland@frob.com>
2227
2228 * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
2229 * sysdeps/mach/hurd/Makeconfig: ... here.
2230
2231 2002-06-13 Andreas Schwab <schwab@suse.de>
2232
2233 * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
2234 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
2235 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
2236
2237 2002-06-13 Roland McGrath <roland@frob.com>
2238
2239 * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
2240 * hurd/hurdstartup.c (_hurd_startup): Likewise.
2241 Use intptr_t instead of int for argc in stack layout.
2242 * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
2243 (_dl_init_first): Likewise.
2244 (_hurd_stack_setup): Likewise.
2245 (init1): Add a cast.
2246 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
2247
2248 * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
2249 argument to pfinet_siocgifconf RPC.
2250
2251 2002-06-13 Andreas Schwab <schwab@suse.de>
2252
2253 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
2254 expansion order.
2255
2256 2002-06-12 Roland McGrath <roland@frob.com>
2257
2258 * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
2259 if already defined.
2260 [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
2261 [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
2262
2263 2002-06-11 Roland McGrath <roland@frob.com>
2264
2265 * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
2266 file on [!RTLD_STAT64].
2267 * sysdeps/mach/hurd/fxstat64.c: Likewise.
2268
2269 * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
2270 (__fdopen): Use INTUSE.
2271 * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
2272
2273 * stdio-common/tmpfile64.c: File removed.
2274 * sysdeps/generic/tmpfile64.c: New file.
2275 * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
2276 if not already defined.
2277 (tmpfile): Use it in place of __GT_FILE.
2278
2279 * include/unistd.h: Declare __chown_internal.
2280
2281 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
2282 * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
2283
2284 2002-06-09 Roland McGrath <roland@frob.com>
2285
2286 Update to new Hurd RPC interfaces supporting 64-bit file sizes.
2287 * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
2288 value of HURD_INTERFACE_VERSION >= 20020609.
2289 * sysdeps/mach/hurd/configure: Regenerated.
2290 * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
2291 * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
2292 convert a struct stat64 into a struct stat and return 0 or -1
2293 with errno set to EOVERFLOW.
2294 * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
2295 for struct statfs64 to struct statfs.
2296 * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
2297 * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
2298 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
2299 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
2300 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
2301 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
2302 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
2303 * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
2304 * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
2305 * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
2306 * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
2307 * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
2308 * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
2309 * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
2310 * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
2311 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
2312 * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
2313 * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
2314 * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
2315 * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
2316 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
2317 Use struct stat64 for io_stat argument.
2318 * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
2319 * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
2320 to io_seek.
2321 * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
2322 * hurd/fd-write.c (_hurd_fd_write): Likewise.
2323 * hurd/hurd/fd.h: Update decls.
2324 * sysdeps/mach/hurd/getcwd.c
2325 (_hurd_canonicalize_directory_name_internal): Use ino64_t
2326 and struct dirent64.
2327 * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
2328 (__xstat): Renamed to __xstat64, use struct stat64 for argument.
2329 (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
2330 (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
2331
2332 2002-06-08 Roland McGrath <roland@frob.com>
2333
2334 * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
2335 instead of unsigned long int for __allocation and __size members.
2336
2337 2002-06-09 Jakub Jelinek <jakub@redhat.com>
2338
2339 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
2340 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
2341 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
2342 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
2343
2344 2002-06-07 Roland McGrath <roland@frob.com>
2345
2346 * sysdeps/mach/hurd/bits/environments.h: File removed.
2347
2348 2002-06-07 Jakub Jelinek <jakub@redhat.com>
2349
2350 * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
2351 * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
2352 * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
2353 * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
2354 * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
2355 (sendfile64): Likewise.
2356 * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
2357 * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
2358 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
2359 Likewise.
2360 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
2361
2362 * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
2363 already defined.
2364
2365 2002-06-04 Bruno Haible <bruno@clisp.org>
2366
2367 * sysdeps/cris/stackinfo.h: New file.
2368
2369 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
2370 to an integer type before performing bit operations on it.
2371
2372 2002-06-05 Roland McGrath <roland@frob.com>
2373
2374 * sysdeps/generic/sendfile.c: Include <errno.h>.
2375 * sysdeps/generic/sendfile64.c: Likewise.
2376
2377 * io/Makefile (routines): Add sendfile and sendfile64.
2378 (headers): Add sys/sendfile.h to the list.
2379 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
2380 * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
2381 * io/sys/sendfile.h: ... here.
2382 * sysdeps/generic/sendfile.c: New file.
2383 * sysdeps/generic/sendfile64.c: New file.
2384
2385 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
2386 Move sendfile, sendfile64 to ...
2387 * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
2388 * sysdeps/mach/hurd/sendfile.c: New file.
2389 * sysdeps/mach/hurd/sendfile64.c: New file.
2390
2391 * sysdeps/mach/nanosleep.c: New file.
2392
2393 2002-06-04 Roland McGrath <roland@frob.com>
2394
2395 * sysdeps/alpha/elf/configure.in: New file. Check for TLS support.
2396 * sysdeps/alpha/elf/configure: New file (generated).
2397
2398 2002-06-02 Roland McGrath <roland@frob.com>
2399
2400 * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
2401
2402 2002-06-01 Roland McGrath <roland@frob.com>
2403
2404 * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
2405 i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
2406
2407 2002-05-19 Ulrich Drepper <drepper@redhat.com>
2408
2409 * resolv/resolv.h (struct __res_state): Remove unused nstimes.
2410 Add nsmap.
2411 * resolv/res_init.c (__res_vinit): Initialize nsmap array.
2412 Remove nstimes setting.
2413 (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
2414 * resolv/res_send.c (res_nsend): Don't close unconditionally if
2415 there is mix of IPv6 and IPv4 nameservers.
2416 Use nsmap array to find free slots and preserve nameserver ordering.
2417 Fix RES_ROTATE.
2418
2419 2002-05-30 Ulrich Drepper <drepper@redhat.com>
2420
2421 * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
2422 use this header with LFS.
2423
2424 * po/sk.po: Update from translation team.
2425
2426 2002-05-28 Andreas Schwab <schwab@suse.de>
2427
2428 * sysdeps/generic/readelflib.c (process_elf_file): Give correct
2429 message when finding object of wrong class.
2430
2431 2002-05-28 Jakub Jelinek <jakub@redhat.com>
2432
2433 * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
2434 Patch by <radu@netsoft.ro>.
2435
2436 2002-05-30 Ulrich Drepper <drepper@redhat.com>
2437
2438 * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
2439 Add readahead.
2440 * sysdeps/unix/sysv/linux/readahead.c: New file.
2441 * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
2442 * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
2443 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
2444 Add sendfile64 alias to sendfile syscall.
2445 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2446 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2447 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2448 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
2449 syscall.
2450
2451 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
2452 special section for PIC register loading.
2453 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
2454
2455 * config.h.in: Define HAVE_HIDDEN.
2456 * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
2457
2458 * elf/elf.h: Correct Alpha TLS relocations according to last spec.
2459
2460 2002-05-28 Roland McGrath <roland@frob.com>
2461
2462 * sysdeps/mach/alpha/setfpucw.c: New file.
2463
2464 2002-05-26 Roland McGrath <roland@frob.com>
2465
2466 * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
2467 Use integer_t instead of int for IOC_VOID case.
2468
2469 2002-05-27 Alexandre Oliva <aoliva@redhat.com>
2470
2471 * configure.in (DO_STATIC_NSS): Define if --disable-shared.
2472
2473 2002-05-26 Bruno Haible <bruno@clisp.org>
2474
2475 * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
2476 end of the ISO-8859-7 from idx table.
2477
2478 2002-05-27 Ulrich Drepper <drepper@redhat.com>
2479
2480 * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
2481
2482 2002-05-24 David S. Miller <davem@redhat.com>
2483
2484 * string/bits/string2.h (memset): Do not try to optimize when
2485 not _STRING_ARCH_unaligned if GCC will do the right thing.
2486
2487 2002-05-21 Isamu Hasegawa <isamu@yamato.ibm.com>
2488
2489 * posix/regex.c: Define `inline' as a macro into nothing for the
2490 compilers which lack the keyword.
2491 * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
2492 for the compatibility of gawk.
2493 * posix/regcomp.c: Add fake implementation of isblank() for the
2494 environments which lack the function.
2495 Don't use free_charset() in case of non-i18n envs.
2496 (build_range_exp): Don't use i18n related code in case of non-i18n
2497 envs.
2498 (build_collating_symbol): Likewise.
2499 (build_equiv_class): Likewise.
2500 (build_charclass): Likewise.
2501 (re_compile_fastmap_iter): Likewise.
2502 (parse_bracket_exp): Likewise.
2503 (build_word_op): Likewise.
2504 (regfree): Don't use free_charset() in case of non-i18n envs.
2505 * posix/regex_internal.h: Remove COMPLEX_BRACKET from
2506 re_token_type_t in case of non-i18n envs.
2507 Don't define re_charset_t in case of non-i18n envs.
2508 Change the type of wcs of re_string_t from wchar_t to wint_t,
2509 since we store also WEOF.
2510 * posix/regex_internal.c: (re_string_realloc_buffers): Change
2511 the type of wcs of re_string_t from wchar_t to wint_t.
2512 (re_string_reconstruct): Likewise.
2513 (create_ci_newstate): Don't use i18n related code in case of
2514 non-i18n envs.
2515 (create_cd_newstate): Likewise.
2516
2517 2002-05-24 Ulrich Drepper <drepper@redhat.com>
2518
2519 * iconv/loop.c: Fix typo.
2520
2521 2002-05-23 Jakub Jelinek <jakub@redhat.com>
2522
2523 * inet/ether_line.c (ether_line): Fix a typo causing only
2524 lower 4 bits of each ethernet address byte being assigned.
2525 Don't modify what line points to.
2526 * inet/tst-ether_aton.c (main): Add ether_line tests.
2527
2528 2002-05-23 Marcus Brinkmann <marcus@gnu.org>
2529
2530 * manual/filesys.texi: Don't make readlink example leak memory
2531 when readlink fails.
2532
2533 2002-05-20 Ulrich Drepper <drepper@redhat.com>
2534
2535 * iconv/loop.c: Fix condition for defining unaligned loop. Add
2536 some more security checks.
2537
2538 2002-05-17 David S. Miller <davem@redhat.com>
2539
2540 * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
2541
2542 2002-05-16 David S. Miller <davem@redhat.com>
2543
2544 * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
2545 (elf_machine_dynamic): Use it to force PIC register to be loaded.
2546 (elf_machine_load_address): Likewise.
2547 * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
2548
2549 * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
2550 is unaligned, do not forget to fully initialize %g1 magic value.
2551
2552 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
2553 register definitions and provide 32-bit variants of structures
2554 during 64-bit builds.
2555
2556 * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
2557 * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
2558 * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
2559 * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
2560 _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
2561 (_FP_FROM_INT): Perform right shifts on unsigned integer type.
2562 Do not clear implicit one bit here, it must be done post-rounding.
2563 Only pad to the left using left shift if value uses less than the
2564 available fractional bits.
2565
2566 2002-05-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2567
2568 * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
2569 instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
2570 (shared-only-routines): Likewise.
2571 * sysdeps/powerpc/libgcc-compat.c: New file.
2572 * sysdeps/wordsize-32/cmpdi2.c: Removed.
2573 * sysdeps/wordsize-32/fixdfdi.c: Removed.
2574 * sysdeps/wordsize-32/fixsfdi.c: Removed.
2575 * sysdeps/wordsize-32/shdi3.c: Removed.
2576
2577 2002-05-16 Bruno Haible <bruno@clisp.org>
2578
2579 * MakeTAGS (libc.pot): Don't sort the output.
2580 * po/header.pot: Update to match xgettext 0.11 output.
2581
2582 2002-05-16 Bruno Haible <bruno@clisp.org>
2583
2584 * MakeTAGS (subdirs): Remove duplicates.
2585
2586 2002-05-19 Ulrich Drepper <drepper@redhat.com>
2587
2588 * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
2589 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
2590 alias.
2591
2592 2002-05-19 Andreas Jaeger <aj@suse.de>
2593
2594 * sysdeps/unix/sysv/linux/configure.in: Warn against an
2595 installation in /usr/local.
2596
2597 2002-05-16 Bruno Haible <bruno@clisp.org>
2598
2599 * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
2600 string as argument of #error.
2601
2602 2002-05-15 Ulrich Drepper <drepper@redhat.com>
2603
2604 * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
2605 don't define static. Remove old __realpath function. TC1 of
2606 POSIX 2001 will allow the second parameter to be NULL.
2607 * stdlib/test-canon.c: Comment out test for NULL as second
2608 parameter of realpath.
2609
2610 * time/offtime.c (__offtime): Set errno if overflow is detected.
2611
2612 * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
2613 * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
2614 dl-brk and dl-sbrk.
2615
2616 * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
2617 (fdimf): Likewise.
2618
2619 2002-05-15 Roland McGrath <roland@frob.com>
2620
2621 * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
2622
2623 2002-05-12 Bruno Haible <bruno@clisp.org>
2624
2625 * iconvdata/testdata/EUC-JISX0213: New file.
2626 * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
2627 * iconvdata/testdata/SHIFT_JISX0213: New file.
2628 * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
2629 * iconvdata/testdata/ISO-2022-JP-3: New file.
2630 * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
2631 * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
2632 * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
2633 contains comments indicating precomposed characters.
2634
2635 2002-04-21 Bruno Haible <bruno@clisp.org>
2636
2637 * iconvdata/iso-2022-jp-3.c: New file.
2638 * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
2639 * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
2640 (LDFLAGS-ISO-2022-JP-3.so): New variable.
2641 (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
2642 (distribute): Add iso-2022-jp-3.c.
2643
2644 2002-05-12 Bruno Haible <bruno@clisp.org>
2645
2646 * iconvdata/tst-table-to.c (main): Restore handling of
2647 transliterations, broken by last patch.
2648
2649 2002-05-12 Bruno Haible <bruno@clisp.org>
2650
2651 * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
2652
2653 2002-05-12 Bruno Haible <bruno@clisp.org>
2654
2655 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
2656 when there is not enough room in the output buffer.
2657 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
2658
2659 2002-04-20 Bruno Haible <bruno@clisp.org>
2660
2661 * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
2662 macros.
2663 (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
2664 Also make this macro work if FROM_DIRECTION evaluates to 0.
2665 (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
2666 (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
2667 of consume_incomplete.
2668 * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
2669 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
2670 4, not 8.
2671 * iconvdata/cp1258.c: Likewise.
2672 * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
2673 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
2674 not 2.
2675 * iconvdata/ibm933.c: Likewise.
2676 * iconvdata/ibm935.c: Likewise.
2677 * iconvdata/ibm937.c: Likewise.
2678 * iconvdata/ibm939.c: Likewise.
2679 * iconvdata/iso-2022-cn.c: Define
2680 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
2681 {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
2682 * iconvdata/iso-2022-cn-ext.c: Likewise.
2683 * iconvdata/iso-2022-jp.c: Define
2684 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
2685 {MIN,MAX}_NEEDED_{FROM,TO}.
2686 * iconvdata/tcvn5712-1.c: Define
2687 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
2688 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
2689 * iconvdata/euc-jisx0213.c: Define
2690 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
2691 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
2692 * iconvdata/shift_jisx0213.c: Likewise.
2693
2694 2002-05-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2695
2696 * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
2697 shdi3, fixdfdi, fixsfdi in csu dir.
2698 (shared-only-routines): Likewise.
2699 * sysdeps/wordsize-32/cmpdi2.c: New file.
2700 * sysdeps/wordsize-32/shdi3.c: New file.
2701 * sysdeps/wordsize-32/fixdfdi.c: New file.
2702 * sysdeps/wordsize-32/fixsfdi.c: New file.
2703 * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
2704 __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
2705 __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
2706
2707 * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
2708 Only use va_arg if the argument will be used [PR libc/3259].
2709
2710 2002-05-06 Michael A. Schmidt <mmaass@us.ibm.com>
2711
2712 * catgets/catgets.c (catopen): Free buffer if internal catalog
2713 open fails.
2714
2715 2002-05-14 Ulrich Drepper <drepper@redhat.com>
2716
2717 * debug/xtrace.sh: Make more robust. For realtime tracking use
2718 non-buffering methods.
2719 * debug/pcprofiledump.c: Implement -u option.
2720 Patch by Roger Luethi <rl@hellgate.ch>.
2721
2722 2002-05-11 Jakub Jelinek <jakub@redhat.com>
2723
2724 * include/netinet/in.h (bindresvport_internal): Add prototype.
2725 * include/rpc/auth.h (authunix_create_internal,
2726 authunix_create_default_internal, authnone_create_internal,
2727 authdes_pk_create_internal): Add prototypes.
2728 * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
2729 clntudp_create_internal, clntudp_bufcreate_internal,
2730 clntunix_create_internal): Add prototypes.
2731 * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
2732 svc_getreq_internal, svc_getreq_common_internal,
2733 svc_getreqset_internal, svc_getreq_poll_internal,
2734 svc_register_internal, svc_unregister_internal,
2735 svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
2736 * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
2737 * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
2738 __setsockopt, __getsockname, __bind, __listen): Add prototypes.
2739 * inet/rexec.c (rexec_af): Use __listen and __getsockname.
2740 * inet/rcmd.c (rcmd_af): Use __listen.
2741 (rresvport_af): Use __bind.
2742 * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
2743 authunix_create, authunix_create_default, authnone_create,
2744 authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
2745 clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
2746 svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
2747 svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
2748 _authenticate, add INTDEF after such function definitions.
2749 Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
2750 __setsockopt, __getsockname instead of non-__ variants.
2751 * sunrpc/pmap_rmt.c: Likewise.
2752 * sunrpc/rtime.c: Likewise.
2753 * sunrpc/svc_udp.c: Likewise.
2754 * sunrpc/clnt_unix.c: Likewise.
2755 * sunrpc/svc_unix.c: Likewise.
2756 * sunrpc/bindrsvprt.c: Likewise.
2757 * sunrpc/svc_tcp.c: Likewise.
2758 * sunrpc/auth_none.c: Likewise.
2759 * sunrpc/clnt_raw.c: Likewise.
2760 * sunrpc/clnt_tcp.c: Likewise.
2761 * sunrpc/auth_unix.c: Likewise.
2762 * sunrpc/key_call.c: Likewise.
2763 * sunrpc/clnt_gen.c: Likewise.
2764 * sunrpc/pm_getmaps.c: Likewise.
2765 * sunrpc/clnt_simp.c: Likewise.
2766 * sunrpc/pmap_clnt.c: Likewise.
2767 * sunrpc/svc_run.c: Likewise.
2768 * sunrpc/svc.c: Likewise.
2769 * sunrpc/svc_simple.c: Likewise.
2770 * sunrpc/pm_getport.c: Likewise.
2771 * sunrpc/auth_des.c: Likewise.
2772 * sunrpc/svc_auth.c: Likewise.
2773 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
2774 __register_frame_info_table_bases, __deregister_frame_info_bases):
2775 Add INTDEF.
2776 (__register_frame_info_bases_internal,
2777 __register_frame_info_table_bases_internal,
2778 __deregister_frame_info_bases_internal): Add prototypes.
2779 (__register_frame_info, __register_frame): Use INTUSE in call to
2780 __register_frame_info_bases.
2781 (__register_frame_info_table): Similarly.
2782 (__deregister_frame_info, __deregister_frame): Similarly.
2783 * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
2784 sendto as weak alias.
2785 * sysdeps/mach/hurd/sendto.c: Likewise.
2786 * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
2787 recvfrom as weak alias.
2788 * sysdeps/mach/hurd/recvfrom.c: Likewise.
2789 * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
2790 * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
2791 recvmsg as weak alias.
2792 * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
2793 * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
2794 sendmsg as weak alias.
2795 * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
2796 * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
2797 setsockopt, add setsockopt as weak alias.
2798 * sysdeps/mach/hurd/setsockopt.c: Likewise.
2799 * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
2800 weak alias.
2801 * sysdeps/mach/hurd/bind.c: Likewise.
2802 * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
2803 as weak alias.
2804 * sysdeps/mach/hurd/listen.c: Likewise.
2805 * sysdeps/generic/getsockname.c (__getsockname): Renamed from
2806 getsockname, add getsockname as weak alias.
2807 * sysdeps/mach/hurd/getsockname.c: Likewise.
2808 * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
2809 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
2810 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
2811 * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
2812 __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
2813 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
2814 Add aliases.
2815 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2816 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2817 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2818 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2819 * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
2820 * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
2821 * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
2822 * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
2823 * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
2824 * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
2825 * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
2826 * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
2827
2828 2002-05-10 Jakub Jelinek <jakub@redhat.com>
2829
2830 * locale/programs/localedef.h (show_archive_content): Add verbose
2831 argument.
2832 * locale/programs/localedef.c (main): Adjust caller.
2833 * locale/programs/locarchive.c (struct nameent, struct dataent): New.
2834 (nameentcmp, dataentcmp): New functions.
2835 (xstrcmp): Remove.
2836 (show_archive_content): Print verbose listing with --list-archive -v.
2837
2838 2002-05-14 Ulrich Drepper <drepper@redhat.com>
2839
2840 * locale/programs/locarchive.c (open_archive): Take extra argument
2841 readonly. If true open file with O_RDONLY and don't create the
2842 archive if it doesn't exist.
2843 Adapt all callers.
2844 (close_archive): Don't do anything if fd element is -1.
2845 * locale/programs/localedef.h (open_archive): Adjust prototype.
2846 * locale/programs/locfile.c (write_all_categories): Adjust open_archive
2847 call.
2848
2849 * malloc/malloc.c (__posix_memalign): Correct check for size of
2850 alignment value [PR libc/3444].
2851
2852 * include/stdio.h: Remove references to old stdio implementation.
2853
2854 * libio/Makefile (bug-ungetwc2-ENV): Define.
2855
2856 2002-05-13 Roland McGrath <roland@frob.com>
2857
2858 * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
2859
2860 * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
2861
2862 2002-05-13 Marcus Brinkmann <marcus@gnu.org>
2863
2864 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
2865 Allocate three, not two, more than LEN when appending '/.'.
2866 * sysdeps/mach/hurd/chroot.c (chroot): Likewise. Don't check
2867 if NAME ends with '/.' if it is shorter than 2 chars.
2868
2869 2002-05-12 Roland McGrath <roland@frob.com>
2870
2871 * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
2872 files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
2873
2874 * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
2875 file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
2876
2877 2002-05-10 Jakub Jelinek <jakub@redhat.com>
2878
2879 * sysdeps/ia64/Makefile: Remove extra endif.
2880 * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
2881
2882 2002-05-10 Andreas Schwab <schwab@suse.de>
2883
2884 * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
2885
2886 2002-05-09 Andreas Jaeger <aj@suse.de>
2887
2888 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New.
2889 * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
2890 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
2891
2892 * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
2893 * sysdeps/wordsize-64/glob.c: ...here.
2894 * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
2895 * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
2896 * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
2897
2898 2002-05-08 Roland McGrath <roland@frob.com>
2899
2900 * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
2901 O_NOTRANS flag in "." lookup.
2902
2903 2002-05-05 Ulrich Drepper <drepper@redhat.com>
2904
2905 * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
2906
2907 2002-05-04 Ulrich Drepper <drepper@redhat.com>
2908
2909 * locale/duplocale.c (__duplocale): Update special members only
2910 when allocation succeeded.
2911
2912 2002-05-03 Roland McGrath <roland@frob.com>
2913
2914 * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
2915 we can only build libc.so.0.3(GLIBC_2.2.6) now.
2916
2917 2002-05-02 Jakub Jelinek <jakub@redhat.com>
2918
2919 * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
2920 * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
2921 __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
2922 * sysdeps/ia64/ia64libgcc.S: New file.
2923
2924 2002-05-02 Ulrich Drepper <drepper@redhat.com>
2925
2926 * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
2927
2928 * malloc/memusage.c: Distinguish anonymous mmap.
2929
2930 2002-05-01 Roland McGrath <roland@frob.com>
2931
2932 * sysdeps/mach/hurd/close.c: #undef __close before function defn,
2933 and use INTDEF on it.
2934 * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
2935
2936 * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
2937
2938 * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
2939
2940 2002-05-01 Ulrich Drepper <drepper@redhat.com>
2941
2942 * malloc/memusage.c: Add support for tracking mmap & friends.
2943 * malloc/memusage.sh: Implement -m/--mmap option.
2944
2945 2002-04-30 Jakub Jelinek <jakub@redhat.com>
2946
2947 * locale/programs/locarchive.c (create_archive): Add archivefname
2948 argument, create fname from it.
2949 (enlarge_archive): Honour output_prefix.
2950 (open_archive): Likewise.
2951
2952 2002-04-30 Jakub Jelinek <jakub@redhat.com>
2953
2954 * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
2955 too many stpcpy macros.
2956
2957 2002-04-26 Bruno Haible <bruno@clisp.org>
2958
2959 * locale/programs/ld-collate.c (collate_read): Cast first argument
2960 for "%.*s" to int.
2961
2962 2002-04-26 Bruno Haible <bruno@clisp.org>
2963
2964 * include/libintl.h (__ngettext, __dngettext, __dcngettext,
2965 __dcngettext_internal): New declarations.
2966 (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
2967 attribute declarations.
2968
2969 2002-04-30 Roland McGrath <roland@frob.com>
2970
2971 Removed old GNU stdio implementation; GNU libio is now the only option.
2972 * configure.in: Removed --enable-libio option and @stdio@ subst var.
2973 Define USE_IN_LIBIO unconditionally.
2974 * configure: Regenerated.
2975 * Makeconfig (stdio): Set to libio by default.
2976 * config.make.in (stdio): Variable removed.
2977 * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
2978 * sysdeps/unix/sysv/linux/configure: Regenerated.
2979 * sysdeps/mach/hurd/configure.in: Don't test $stdio.
2980 * sysdeps/mach/hurd/configure: Regenerated.
2981 * stdio/.cvsignore: File removed.
2982 * stdio/Makefile: File removed.
2983 * stdio/Versions: File removed.
2984 * stdio/__fbufsize.c: File removed.
2985 * stdio/__flbf.c: File removed.
2986 * stdio/__fpending.c: File removed.
2987 * stdio/__fpurge.c: File removed.
2988 * stdio/__freadable.c: File removed.
2989 * stdio/__freading.c: File removed.
2990 * stdio/__fsetlocking.c: File removed.
2991 * stdio/__fwritable.c: File removed.
2992 * stdio/__fwriting.c: File removed.
2993 * stdio/clearerr.c: File removed.
2994 * stdio/fclose.c: File removed.
2995 * stdio/fcloseall.c: File removed.
2996 * stdio/feof.c: File removed.
2997 * stdio/ferror.c: File removed.
2998 * stdio/fflush.c: File removed.
2999 * stdio/fgetc.c: File removed.
3000 * stdio/fgetpos.c: File removed.
3001 * stdio/fgets.c: File removed.
3002 * stdio/fileno.c: File removed.
3003 * stdio/fmemopen.c: File removed.
3004 * stdio/fopen.c: File removed.
3005 * stdio/fopncook.c: File removed.
3006 * stdio/fputc.c: File removed.
3007 * stdio/fputs.c: File removed.
3008 * stdio/fread.c: File removed.
3009 * stdio/freopen.c: File removed.
3010 * stdio/fseek.c: File removed.
3011 * stdio/fsetpos.c: File removed.
3012 * stdio/ftell.c: File removed.
3013 * stdio/fwrite.c: File removed.
3014 * stdio/getc.c: File removed.
3015 * stdio/getchar.c: File removed.
3016 * stdio/getdelim.c: File removed.
3017 * stdio/gets.c: File removed.
3018 * stdio/glue.c: File removed.
3019 * stdio/internals.c: File removed.
3020 * stdio/linewrap.c: File removed.
3021 * stdio/linewrap.h: File removed.
3022 * stdio/memstream.c: File removed.
3023 * stdio/newstream.c: File removed.
3024 * stdio/obstream.c: File removed.
3025 * stdio/putc.c: File removed.
3026 * stdio/putchar.c: File removed.
3027 * stdio/puts.c: File removed.
3028 * stdio/rewind.c: File removed.
3029 * stdio/setbuf.c: File removed.
3030 * stdio/setbuffer.c: File removed.
3031 * stdio/setlinebuf.c: File removed.
3032 * stdio/setvbuf.c: File removed.
3033 * stdio/stdio.h: File removed.
3034 * stdio/ungetc.c: File removed.
3035 * stdio/vasprintf.c: File removed.
3036 * stdio/vscanf.c: File removed.
3037 * stdio/vsnprintf.c: File removed.
3038 * stdio/vsprintf.c: File removed.
3039 * stdio/vsscanf.c: File removed.
3040 * sysdeps/generic/defs.c: File removed.
3041 * sysdeps/generic/fdopen.c: File removed.
3042 * sysdeps/generic/pipestream.c: File removed.
3043 * sysdeps/generic/stdio_init.c: File removed.
3044 * sysdeps/generic/sysd-stdio.c: File removed.
3045 * sysdeps/generic/vdprintf.c: File removed.
3046 * sysdeps/mach/hurd/defs.c: File removed.
3047 * sysdeps/mach/hurd/fdopen.c: File removed.
3048 * sysdeps/mach/hurd/pipestream.c: File removed.
3049 * sysdeps/mach/hurd/stdio_init.c: File removed.
3050 * sysdeps/mach/hurd/sysd-stdio.c: File removed.
3051 * sysdeps/mach/hurd/vdprintf.c: File removed.
3052 * sysdeps/posix/defs.c: File removed.
3053 * sysdeps/posix/fdopen.c: File removed.
3054 * sysdeps/posix/pipestream.c: File removed.
3055 * sysdeps/posix/stdio_init.c: File removed.
3056 * sysdeps/posix/vdprintf.c: File removed.
3057 * sysdeps/unix/pipestream.c: File removed.
3058 * sysdeps/unix/sysv/sysd-stdio.c: File removed.
3059 * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
3060 * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
3061
3062 2002-04-29 Roland McGrath <roland@frob.com>
3063
3064 * include/libc-symbols.h (link_warning): Use `unused' attribute.
3065
3066 2002-04-28 Ulrich Drepper <drepper@redhat.com>
3067
3068 * sysdeps/generic/tls.h: Describe what must be defined.
3069
3070 * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
3071 glob_in_dir [PR libc/3385].
3072 * posix/globtest.sh: Add test case.
3073
3074 * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
3075 //TRANSLIT twice.
3076
3077 2002-04-27 Ulrich Drepper <drepper@redhat.com>
3078
3079 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
3080 _internal symbol handling.
3081 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
3082
3083 2002-04-26 Ulrich Drepper <drepper@redhat.com>
3084
3085 * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
3086 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
3087
3088 2002-04-26 Isamu Hasegawa <isamu@yamato.ibm.com>
3089
3090 * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
3091 not _LIBC and RE_ENABLE_I18N.
3092 (build_range_exp): Implement for not _LIBC.
3093 (build_collating_symbol): Likewise.
3094 (parse_bracket_exp): Unify redundant error handlings.
3095 Don't erase mbcset for non matching list in multibyte envs.
3096 (build_word_op): Add '_' to matching list for \w operator.
3097 * posix/regex_internal.c (re_string_construct): Invoke
3098 build_upper_buffer in case of not RE_ENABLE_I18N.
3099 (re_string_reconstruct): Don't touch cur_state in case of not
3100 RE_ENABLE_I18N.
3101 * posix/regex_internal.h (attribute_hidden): New macro in case of
3102 not _LIBC.
3103 (re_charset_t): Define range_starts/ends in case of not _LIBC.
3104 * posix/regexec.c (sift_states_iter_mb): Hide in case of not
3105 RE_ENABLE_I18N.
3106 (transit_state_mb): Likewise.
3107 (check_node_accept_bytes): Implement the code evaluating range
3108 expression in case of not _LIBC.
3109 (find_collation_sequence_value): Hide in case of not _LIBC.
3110
3111 2002-04-26 Jakub Jelinek <jakub@redhat.com>
3112
3113 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
3114 i386/semctl.c.
3115 (__old_semctl, __new_semctl): Only use va_arg if the argument will
3116 be used.
3117
3118 2002-04-26 Ulrich Drepper <drepper@redhat.com>
3119
3120 * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
3121
3122 * sysdeps/ia64/strncpy.S: Fix recovery code.
3123 Patch by David Mosberger <davidm@hpl.hp.com>.
3124
3125 2002-04-24 Ulrich Drepper <drepper@redhat.com>
3126
3127 * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
3128 GLIBC_2.2.6.
3129
3130 2002-04-14 Bruno Haible <bruno@clisp.org>
3131
3132 * posix/regex.c (re_max_failures): Add back symbol for binary
3133 compatibility.
3134
3135 2002-04-22 Isamu Hasegawa <isamu@yamato.ibm.com>
3136
3137 * posix/regcomp.c (re_compile_internal): Adapt it to new interface
3138 of buffer building functions.
3139 * posix/regex_internal.c (re_string_allocate): New function.
3140 (re_string_realloc_buffers): New function.
3141 (re_string_skip_chars): New function.
3142 (re_string_reconstruct): New function.
3143 (re_string_construct): Adapt it to new interface of buffer building
3144 functions.
3145 (re_string_construct_common): Likewise.
3146 (build_wcs_buffer): Likewise.
3147 (build_wcs_upper_buffer): Likewise.
3148 (build_upper_buffer): Likewise.
3149 (re_string_translate_buffer): Likewise.
3150 (re_string_context_at): Adapt it to variable length buffers.
3151 * posix/regex_internal.h (re_string_t): Add new fields to handle
3152 variable length buffers.
3153 (re_match_context_t): Likewise.
3154 * posix/regexec.c (re_search_internal): Adapt it to new interface
3155 of re_string_t and re_match_context_t.
3156 (acquire_init_state_context): Likewise.
3157 (check_matching): Likewise.
3158 (check_halt_state_context): Likewise.
3159 (proceed_next_node): Likewise.
3160 (set_regs): Likewise.
3161 (sift_states_backward): Likewise.
3162 (clean_state_log_if_need): Likewise.
3163 (sift_states_iter_mb): Likewise.
3164 (sift_states_iter_bkref): Likewise.
3165 (add_epsilon_backreference): Likewise.
3166 (transit_state): Likewise.
3167 (transit_state_sb): Likewise.
3168 (transit_state_mb): Likewise.
3169 (transit_state_bkref): Likewise.
3170 (transit_state_bkref_loop): Likewise.
3171 (check_node_accept): Likewise.
3172 (match_ctx_init): Likewise.
3173 (extend_buffers): New function.
3174
3175 2002-04-21 Bruno Haible <bruno@clisp.org>
3176
3177 * iconvdata/tst-table.sh: For the second check, use the truncated
3178 GB18030 charmap table, like for the first check.
3179
3180 2002-04-24 Ulrich Drepper <drepper@redhat.com>
3181
3182 * elf/dl-load.c (open_verify): Correct __lseek parameters.
3183 Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
3184
3185 2002-04-23 H.J. Lu <hjl@gnu.org>
3186
3187 * include/math.h (isfinite): Fix a typo.
3188
3189 2002-04-24 Ulrich Drepper <drepper@redhat.com>
3190
3191 * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
3192 which is created by the test suite.
3193
3194 2002-04-20 Bruno Haible <bruno@clisp.org>
3195
3196 * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
3197 (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
3198
3199 2002-04-20 Bruno Haible <bruno@clisp.org>
3200
3201 * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
3202 to avoid gcc warning.
3203
3204 2002-04-20 Bruno Haible <bruno@clisp.org>
3205
3206 * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
3207 of data->__statep->__count.
3208
3209 2002-04-20 Bruno Haible <bruno@clisp.org>
3210
3211 * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
3212 tag characters.
3213 * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
3214
3215 2002-04-24 Roland McGrath <roland@frob.com>
3216
3217 * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
3218 use END macro instead of our own .end directive.
3219 Use `callsys' insn mnemonic instead of `call_pal'.
3220
3221 * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
3222
3223 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
3224 macro; we need this for Hurd.
3225
3226 Log entry was missing for 2002/03/24 commit of rev 1.8,
3227 goes with 2002-03-17 changes.
3228 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
3229 (sysdep_routines): Append ioperm here.
3230 (sysdep_headers): Append sys/io.h here.
3231
3232 2002-04-23 Roland McGrath <roland@frob.com>
3233
3234 * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
3235 * sysdeps/mach/hurd/sendto.c: Likewise.
3236 * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
3237 * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
3238 * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
3239
3240 2002-04-22 Roland McGrath <roland@frob.com>
3241
3242 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
3243 failure from i386_io_perm_* RPCs to ENOSYS.
3244
3245 2002-04-22 Andreas Jaeger <aj@suse.de>
3246
3247 * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
3248
3249 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
3250
3251 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
3252 register instead of destroying %rbx.
3253
3254 2002-04-21 Ulrich Drepper <drepper@redhat.com>
3255
3256 * string/string.h: Declare strerror_r also for XPG6.
3257
3258 2002-04-19 Roland McGrath <roland@frob.com>
3259
3260 * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
3261
3262 2002-04-20 Ulrich Drepper <drepper@redhat.com>
3263
3264 * Makefile: Add handling of xtests and xcheck targets.
3265 * MakeTAGS: Likewise.
3266 * Makeconfig: Likewise.
3267 * Makerules: Likewise.
3268 * Rules: Likewise.
3269 * manual/Makefile: Likewise.
3270 * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
3271 * sunrpc/thrsvc.c: New file. By Zack Weinberg.
3272
3273 2002-04-11 Zack Weinberg <zack@codesourcery.com>
3274
3275 * include/rpc/rpc.h (struct rpc_thread_variables): Remove
3276 authnone_private_s.
3277 * sunrpc/auth_none.c: Include bits/libc-lock.h.
3278 Delete #ifdef _RPC_THREAD_SAFE_ block.
3279 (authnone_private): Make a struct, not a pointer to struct.
3280 (authnone_private_guard): New once-control variable.
3281 (authnone_create_once): New function, split out of
3282 authnone_create. No need to allocate memory.
3283 (authnone_create): Just call authnone_create_once via
3284 __libc_once, then return &authnone_private->no_client.
3285 (authnone_marshal): Access private data via CLIENT argument,
3286 not authnone_private pointer.
3287 Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
3288 * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
3289 authnone_private_s.
3290
3291 2002-04-12 H.J. Lu <hjl@gnu.org>
3292
3293 * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
3294
3295 2002-04-18 Bruno Haible <bruno@clisp.org>
3296
3297 * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
3298 FROM_DIRECTION): Make the FROM direction stateless.
3299 * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
3300 FROM_DIRECTION): Likewise.
3301
3302 2002-04-15 Bruno Haible <bruno@clisp.org>
3303
3304 * iconvdata/JISX0213.TXT: New file.
3305 * iconvdata/jisx0213.h: New file.
3306 * iconvdata/jisx0213.c: New file.
3307 * iconvdata/euc-jisx0213.c: New file.
3308 * iconvdata/shift_jisx0213.c: New file.
3309 * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
3310 * iconvdata/EUC-JISX0213.precomposed: New file.
3311 * iconvdata/SHIFT_JISX0213.precomposed: New file.
3312 * iconvdata/SHIFT_JISX0213.irreversible: New file.
3313 * iconvdata/tst-table-to.c (main): Make it work for encodings for
3314 which the "to" direction is stateful.
3315 * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
3316 * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
3317 SHIFT_JISX0213.
3318 (libJISX0213-routines): New variable.
3319 (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
3320 (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
3321 (LDFLAGS-libJISX0213.so): New variable.
3322 (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
3323 SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
3324 jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
3325
3326 2002-04-15 Bruno Haible <bruno@clisp.org>
3327
3328 * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
3329 uint32_t. Update to Unicode 3.2.
3330 (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
3331 (BODY for TO_LOOP): Handle the ASCII range specially.
3332 * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
3333 * iconvdata/testdata/BIG5HKSCS: Remove a character.
3334 * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
3335
3336 2002-04-15 Bruno Haible <bruno@clisp.org>
3337
3338 * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
3339 __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
3340
3341 2002-04-15 Bruno Haible <bruno@clisp.org>
3342
3343 * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
3344 (ucs4_to_cns11643): Update.
3345 * iconvdata/cns11643.c: Update to Unicode 3.2.
3346 (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
3347 __cns11643_from_ucs4p2_tab): Regenerated.
3348 (__cns11643_from_ucs4p2c_tab): New array.
3349 * iconvdata/cvs11643l1.c: Update comments.
3350 * iconvdata/EUC-TW.irreversible: Remove two entries.
3351
3352 2002-04-15 Bruno Haible <bruno@clisp.org>
3353
3354 * locale/C-translit.h.in: Update to Unicode 3.2.
3355 Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
3356 <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
3357
3358 2002-04-15 Bruno Haible <bruno@clisp.org>
3359
3360 * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
3361 (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
3362
3363 2002-04-15 Bruno Haible <bruno@clisp.org>
3364
3365 * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
3366 invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
3367 always one byte, not 0 bytes in some cases and 2 bytes in others.
3368
3369 * iconvdata/tst-table-from.c (main): Correct the usage message.
3370
3371 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
3372
3373 * posix/regcomp.c (parse_expression): Fix incorrect error code.
3374 (parse_dup_op): Fix error handling like "a{}".
3375 (parse_bracket_exp): Add error handling.
3376 (fetch_number): Add error handling for "a{<very_large_number>}".
3377
3378 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
3379
3380 * posix/regcomp.c (parse_bracket_symbol): Add error handling
3381 in case that the symbol name is too long.
3382 (build_charclass): Handle [:lower:]/[:uppper:] correctly
3383 in case of REG_ICASE.
3384
3385 2002-04-19 Andreas Jaeger <aj@suse.de>
3386
3387 * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
3388 <hartvige@mips.com>.
3389
3390 2002-04-15 H.J. Lu <hjl@gnu.org>
3391
3392 * include/math.h (__finitel_internal): Declare only if
3393 __NO_LONG_DOUBLE_MATH is not defined.
3394 (__isinfl_internal): Likewise.
3395 (__isnanl_internal): Likewise.
3396
3397 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
3398 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3399 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3400 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3401 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3402 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3403 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3404
3405 * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
3406 __fcntl_internal.
3407
3408 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
3409 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
3410
3411 2002-04-15 Bruno Haible <bruno@clisp.org>
3412
3413 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
3414 (BODY for TO_LOOP): Likewise.
3415 * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
3416 * iconvdata/tst-table.sh: Add support for encodings which contain
3417 precomposed Unicode characters, known to the iconv converter in both
3418 directions but not listed in the charmap.
3419 * iconvdata/IBM856.irreversible: New file.
3420 * iconvdata/IBM922.irreversible: New file.
3421 * iconvdata/IBM1132.irreversible: New file.
3422 * iconvdata/IBM1133.irreversible: New file.
3423 * iconvdata/IBM1160.irreversible: New file.
3424 * iconvdata/IBM1161.irreversible: New file.
3425 * iconvdata/IBM1163.irreversible: New file.
3426 * iconvdata/IBM1164.irreversible: New file.
3427 * iconvdata/ARMSCII-8.irreversible: New file.
3428 * iconvdata/TCVN5712-1.precomposed: New file.
3429 * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
3430 IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
3431 ARMSCII-8, TCVN5712-1.
3432 * iconvdata/Makefile (distribute): Add IBM856.irreversible,
3433 IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
3434 IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
3435 IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
3436
3437 2002-04-17 Jakub Jelinek <jakub@redhat.com>
3438
3439 * time/tst-mktime.c: Include <stdlib.h>. Use %d, not %ld format
3440 for EVENING69. Include offsets in TZ environment variable.
3441
3442 2002-04-18 Ulrich Drepper <drepper@redhat.com>
3443
3444 * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
3445 avoid compiler warnings.
3446
3447 * locale/programs/localedef.c (main): Always call
3448 construct_output_path.
3449
3450 * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
3451
3452 * locale/programs/locfile.c (to_archive): New variable. To collect
3453 data which has to be added to the locale archive.
3454 (write_all_categories): Take new third parameter with locale name.
3455 Unless no_archive flag set add new locale data to the archive
3456 (write_locale_data): Unless no-archive flag set store generated data
3457 in to_archive data structure instead of generation output file.
3458 Add new parameter with locale category index.
3459 * locale/programs/locfile.h: Add new parameters in declaractions of
3460 write_all_categories and write_locale_data.
3461 * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
3462 --add-to-archive, and --delete-from-archive options. Pass extra
3463 parameter to write_all_categories.
3464 * locale/programs/localedef.h: Add prototypes for functions in
3465 locarchive.c.
3466 * locale/locarchive.h: New file.
3467 * locale/programs/locarchive.c: New file.
3468 * locale/Makefile (distribute): Add programs/locarchive.c and
3469 locarchive.h.
3470 (localedef-modules): Add md5 and locarchive.
3471 Add vpath to crypt subdir for md5.c.
3472
3473 * locale/programs/ld-address.c: Pass locale category ID as new second
3474 parameter to write_locale_data.
3475 * locale/programs/ld-collate.c: Likewise.
3476 * locale/programs/ld-ctype.c: Likewise.
3477 * locale/programs/ld-identification.c: Likewise.
3478 * locale/programs/ld-measurement.c: Likewise.
3479 * locale/programs/ld-messages.c: Likewise.
3480 * locale/programs/ld-monetary.c: Likewise.
3481 * locale/programs/ld-name.c: Likewise.
3482 * locale/programs/ld-numeric.c: Likewise.
3483 * locale/programs/ld-paper.c: Likewise.
3484 * locale/programs/ld-telephone.c: Likewise.
3485 * locale/programs/ld-time.c: Likewise.
3486
3487 * locale/simple-hash.c: Move compute_hashval function from here...
3488 * locale/hashval.h: ...to here. New file.
3489 * locale/simple-hash.h: Add prototype for compute_hashval.
3490
3491 * include/libintl.h: Minor cleanups.
3492
3493 2002-04-16 Ulrich Drepper <drepper@redhat.com>
3494
3495 * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
3496
3497 2002-04-15 Ulrich Drepper <drepper@redhat.com>
3498
3499 * include/sys/stat.h: Fix typo. Patch by HJ Lu.
3500
3501 2002-04-14 Bruno Haible <bruno@clisp.org>
3502
3503 * locale/programs/charmap.c (charmap_read): Don't access result if
3504 result == NULL.
3505
3506 2002-02-17 Andreas Schwab <schwab@suse.de>
3507
3508 * elf/reldep7.c: New file.
3509 * elf/reldep7mod1.c: New file.
3510 * elf/reldep7mod2.c: New file.
3511 * elf/Makefile: Add rules to build and run reldep7.
3512
3513 2002-04-14 Jakub Jelinek <jakub@redhat.com>
3514
3515 * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
3516 the end of the function. Pass original flags to recursive call if
3517 add_dependency failed.
3518 (_dl_lookup_versioned_symbol): Likewise.
3519
3520 2002-04-13 Jakub Jelinek <jakub@redhat.com>
3521
3522 * time/mktime.c (__mktime_internal): If year is 69, don't bail out
3523 early, but check whether it overflowed afterwards.
3524 * time/tst-mktime.c (main): Add new tests.
3525
3526 2002-04-14 Ulrich Drepper <drepper@redhat.com>
3527
3528 * debug/xtrace.sh: Fix program name in help message.
3529 Patch by Roger Luethi <rl@hellgate.ch>.
3530
3531 * include/sys/stat.h: Add prototypes for __lxstat_internal and
3532 __lxstat64_internal. Add macros __lxstat and __lxstat64 if not
3533 NOT_IN_libc.
3534 * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
3535 * sysdeps/mach/hurd/lxstat.c: Likewise.
3536 * sysdeps/unix/common/lxstat.c: Likewise.
3537 * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
3538 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
3539 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
3540 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
3541 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
3542 * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
3543 * sysdeps/mach/hurd/lxstat64.c: Likewise.
3544 * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
3545 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
3546
3547 * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
3548 prototypes. Add __mbrlen and __mbrtowc macros.
3549 * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
3550 * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
3551
3552 * include/unistd.h: Add prototype for __write_internal and add
3553 __libc_write macro is SHARED.
3554 * sysdeps/generic/write.c: Use INTDEF for __write.
3555 * sysdeps/mach/hurd/write.c: Likewise.
3556 * sysdeps/unix/sysv/aix/write.c: Likewise.
3557 * sysdeps/unix/syscalls.list: Add __libc_write alias.
3558
3559 * assert/assert.c: Replace STR_N_SIZE with something usable in
3560 macro arguments.
3561 * assert/assert-perr.c: Likewise.
3562
3563 * include/sys/socket.h: Declare __libc_sa_len_internal and define
3564 SA_LEN macro to use it if not NOT_IN_libc.
3565 * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
3566
3567 * include/fcntl.h: Declare __open_internal and define __open and
3568 __libc_open macros if not NOT_IN_libc.
3569 * sysdeps/generic/open.c: Use INTDEF for __open.
3570 * sysdeps/mach/hurd/open.c: Likewise.
3571 * sysdeps/unix/sysv/aix/open.c: Likewise.
3572 * sysdeps/unix/syscalls.list: Add __open_internal alias.
3573
3574 * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
3575 has correct number.
3576
3577 * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
3578 * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
3579 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
3580 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
3581
3582 * include/wctype.h: Declare __iswalpha_l_internal,
3583 __iswdigit_l_internal, __iswspace_l_internal,
3584 __iswxdigit_l_internal, and __iswctype_internal. Define
3585 __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
3586 __iswxdigit_l macros if not NOT_IN_libc.
3587 * wctype/iswctype.c: Use INTDEF for __iswctype.
3588 * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
3589
3590 * include/math.h: Declare __isinf_internal, __isinfl_internal,
3591 __isnan_internal, and __isnanl_internal.
3592 * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
3593 __isnan, and __isnanl.
3594 * stdio-common/printf_size.c: Likewise.
3595 * sysdeps/generic/printf_fphex.c: Likewise.
3596 * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
3597 * sysdeps/i386/fpu/s_isnanl.c: Likewise.
3598 * sysdeps/ia64/fpu/s_isinf.S: Likewise.
3599 * sysdeps/ia64/fpu/s_isnan.S: Likewise.
3600 * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
3601 * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
3602 * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
3603 * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
3604 * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
3605 * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
3606 * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
3607 * sysdeps/m68k/s_isinfl.c: Likewise.
3608 * sysdeps/m68k/fpu/s_isinf.c: Likewise.
3609 * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
3610
3611 * include/sys/time.h: Declare __gettimeofday_internal and define
3612 __gettimeofday macro if not NOT_IN_libc.
3613 * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
3614 * sysdeps/mach/gettimeofday.c: Likewise.
3615 * sysdeps/posix/gettimeofday.c: Likewise.
3616 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
3617 * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
3618 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
3619 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
3620
3621 * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
3622 and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
3623 Remove __lstat and __fstat inline functions.
3624 * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
3625 * sysdeps/mach/hurd/fxstat.c: Likewise.
3626 * sysdeps/unix/fxstat.c: Likewise.
3627 * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
3628 * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
3629 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
3630 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
3631 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
3632 * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
3633 * sysdeps/mach/hurd/fxstat64.c: Likewise.
3634 * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
3635 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
3636
3637 * include/unistd.h: Declare __getpid_internal and define
3638 __getpid macro if not NOT_IN_libc.
3639 * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
3640 * sysdeps/generic/getpid.c: Likewise.
3641 * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
3642 * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
3643
3644 * include/unistd.h: Declare __getpgid_internal and define
3645 __getpgid macro if not NOT_IN_libc.
3646 * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
3647 * sysdeps/mach/hurd/getpgid.c: Likewise.
3648 * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
3649 * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
3650 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
3651 * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
3652
3653 * include/unistd.h: Declare __getpagesize_internal and define
3654 __getpagesize macro if not NOT_IN_libc.
3655 * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
3656 __getpagesize.
3657 * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
3658 * sysdeps/mach/getpagesize.c: Likewise.
3659 * sysdeps/posix/getpagesize.c: Likewise.
3660 * sysdeps/unix/getpagesize.c: Likewise.
3661 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
3662 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
3663 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
3664 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
3665
3666 2002-04-13 Andreas Jaeger <aj@suse.de>
3667
3668 * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
3669 as clobber to reduce register pressure.
3670 (__strpbrk_cg): Likewise.
3671 (__mempcpy_by4): Likewise.
3672 (__strstr_cg): Likewise.
3673 Add prototype for __memrchr.
3674
3675 2002-04-13 Andreas Schwab <schwab@suse.de>
3676
3677 * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
3678 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
3679 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
3680
3681 2002-04-13 Ulrich Drepper <drepper@redhat.com>
3682
3683 * elf/do-lookup.h [!VERSIONED]: Add new parameter flags. Use it to
3684 check whether the caller prefers getting the most recent version of
3685 a symbol of the earliest version.
3686 * elf/dl-lookup.c: Adjust all callers of do_lookup. Change
3687 _dl_do_lookup to also take the new parameter and pass it on.
3688 Change 'explicit' parameter of _dl_lookup_symbol and
3689 _dl_lookup_versioned_symbol to flags. Adjust tests.
3690 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
3691 * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
3692 _dl_lookup_versioned_symbol.
3693 * elf/dl-reloc.c: Likewise.
3694 * elf/dl-runtime.c: Likewise.
3695 * elf/dl-sym.c: Likewise.
3696 * sysdeps/mips/dl-machine.h: Likewise.
3697
3698 2002-04-11 Jakub Jelinek <jakub@redhat.com>
3699
3700 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
3701 in a token.
3702 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
3703
3704 2002-04-10 Andreas Jaeger <aj@suse.de>
3705
3706 * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
3707
3708 * include/argz.h: Remove extra char from last patch.
3709
3710 2002-04-09 Ulrich Drepper <drepper@redhat.com>
3711
3712 * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
3713 * sysdeps/unix/sysv/aix/chown.c: Likewise.
3714 * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
3715 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
3716 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
3717 * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
3718 __chown_internal.
3719 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
3720
3721 * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
3722 * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
3723 * intl/ngettext.c: Likewise.
3724
3725 * include/sys/socket.h: Declare __connect_internal and define
3726 __connect macro if not NOT_IN_libc.
3727 * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
3728 * sysdeps/unix/sysv/aix/connect.c: Likewise.
3729 * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
3730
3731 * include/unistd.h: Declare __close_internal and define __close macro
3732 if not NOT_IN_libc.
3733 * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
3734 WJUMP3): Add extra parenthesis to avoid expanding element names with
3735 macors like __close.
3736 * sysdeps/unix/syscalls.list: Add __close_internal alias.
3737
3738 * include/unistd.h: Declare __dup2_internal and define __dup2 macro
3739 if not NOT_IN_libc.
3740 * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
3741 * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
3742 * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
3743
3744 * include/unistd.h: Declare __fork_internal and define __fork macro
3745 if not NOT_IN_libc.
3746 * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
3747 * sysdeps/unix/sysv/aix/fork.c: Likewise.
3748 * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
3749
3750 * include/stdio_ext.h: Declare __fsetlocking_internal and define
3751 __fsetlocking macro to use it if not NOT_IN_libc.
3752 * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
3753
3754 * libio/__fbufsize.c: Correct copyright.
3755 * libio/__flbf.c: Likewise.
3756 * libio/__fpending.c: Likewise.
3757 * libio/__fpurge.c: Likewise.
3758 * libio/__freadable.c: Likewise.
3759 * libio/__freading.c: Likewise.
3760 * libio/__fsetlocking.c: Likewise.
3761 * libio/__fwritable.c: Likewise.
3762 * libio/__fwriting.c: Likewise.
3763
3764 * include/stdio.h: Declare __asprintf_internal and define __asprintf
3765 macro to use it if not NOT_IN_libc.
3766 * stdio-common/asprintf.c: Use INTDEF for __asprintf.
3767
3768 * include/mntent.h: Declare __setmntent_internal,
3769 __getmntent_r_internal, __endmntent_internal. Define __setmntent,
3770 __getmntent_r, and __endmntent macros to use these functions if not
3771 NOT_IN_libc.
3772 * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
3773 __endmntent.
3774
3775 * include/math.h: Declare __finite_internal, __finitef_internal, and
3776 __finitel_internal. Redefine isfinite macro if in libc or libm using
3777 these functions.
3778 * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
3779 * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
3780 * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
3781 * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
3782 * sysdeps/i386/fpu/s_finitef.S: Likewise.
3783 * sysdeps/i386/fpu/s_finitel.S: Likewise.
3784 * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
3785 * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
3786 * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
3787 * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
3788
3789 * include/fcntl.h: Declare __fcntl_internal. Define __fcntl macro
3790 to use this function if not NOT_IN_libc.
3791 * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
3792 * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
3793 * sysdeps/mach/hurd/fcntl.c: Likewise.
3794 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
3795 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
3796
3797 * include/argz.h: Declare __argz_count_internal and
3798 __argz_stringify_internal.
3799 * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
3800 __argz_stringify.
3801 * string/argz-count.c: Use INTDEF for __argz_count.
3802 * string/argz-stringify.c: Use INTDEF for __argz_stringify.
3803
3804 * include/stdlib.h: Declare __cxa_atexit_internal and define
3805 __cxa_atexit macro if not NOT_IN_libc.
3806 * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
3807 * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
3808
3809 * assert/assert.c: Use INTDEF for __assert_fail.
3810 * assert/__assert.c: Use INTUSE for call to __assert_fail.
3811 * include/assert.h: Declare __assert_fail_internal.
3812
3813 * extra-lib.mk: Mark assignment to lib with override.
3814
3815 2002-04-08 Ulrich Drepper <drepper@redhat.com>
3816
3817 * Makerules: Use cppflags-iterator.mk to add defines for all test
3818 source files.
3819
3820 2002-04-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
3821
3822 * elf/elf.h: Define R_SH_TLS_xxx macros.
3823 * elf/rtld.c: Remove an extra parenthesis.
3824 * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
3825 TLS_GD macros.
3826 * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
3827 * sysdeps/sh/dl-lookupcfg.h: New file.
3828 * sysdeps/sh/dl-tls.h: New file.
3829 * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
3830 ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
3831 (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
3832 R_SH_TLS_TPOFF32 relocations.
3833
3834 2002-04-08 Ulrich Drepper <drepper@redhat.com>
3835
3836 * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
3837 of NOT_IN_LIBC.
3838 * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
3839 * include/stdlib.h: Likewise.
3840
3841 2002-04-08 Jakub Jelinek <jakub@redhat.com>
3842
3843 * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
3844 instead of _RTLD_LOCAL.
3845 * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
3846 * include/unistd.h: Likewise.
3847 * sysdeps/generic/ldsodefs.h: Likewise.
3848
3849 * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
3850 if in libc or ld.so.
3851
3852 2002-04-08 Andreas Jaeger <aj@suse.de>
3853
3854 * elf/cache.c (print_entry): Support x86-64.
3855
3856 2002-04-08 Ulrich Drepper <drepper@redhat.com>
3857
3858 * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
3859 with one accessing the locale data structures directly.
3860 * stdio-common/printf-prs.c: Include localeinfo.h for new
3861 MB_CUR_MAX definition.
3862
3863 * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
3864 is the name of the source file without extension.
3865 * Makefile (distribute): Add cppflags-iterator.mk.
3866 * cppflags-iterator.mk: New file.
3867 * extra-lib.mk: For the sources of the library run
3868 cppflags-iterator.mk.
3869
3870 * include/libintl.h: Declare __dcgettext_internal and
3871 _libc_intl_domainname_internal. Define __dcgettext using these
3872 two symbols if used in libc itself.
3873 * argp/argp-help.c: Define dgettext using __dcgettext_internal and
3874 _libc_intl_domainname_internal.
3875 * argp/argp-parse.c: Likewise.
3876 * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
3877 * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
3878 * intl/gettext.c: Likewise.
3879 * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
3880 alias.
3881 * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
3882 __dcgettext.
3883 * posix/regex_internal.c (gettext): Likewise.
3884
3885 2002-04-08 Andreas Jaeger <aj@suse.de>
3886
3887 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
3888
3889 * sysdeps/x86_64/fpu/s_llrint.S: New.
3890 * sysdeps/x86_64/fpu/s_llrintf.S: New.
3891 * sysdeps/x86_64/fpu/s_llrintl.S: New.
3892 * sysdeps/x86_64/fpu/s_lrint.S: New.
3893 * sysdeps/x86_64/fpu/s_lrintf.S: New
3894 * sysdeps/x86_64/fpu/s_lrintl.S: New.
3895
3896 2002-04-08 Roland McGrath <roland@frob.com>
3897
3898 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
3899 widening __hurd_fail value.
3900
3901 2002-04-07 Roland McGrath <roland@frob.com>
3902
3903 * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
3904 <mach/machine/alpha_instruction.h>.
3905 (_hurd_setup_sighandler): Take proper arguments for current decls.
3906 Update code to use _hurdsig_catch_fault.
3907 Use `callsys' instruction instead of `call_pal'.
3908 * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
3909
3910 * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
3911 (ALIGN, at, AT, fp): New macros.
3912
3913 2002-04-06 Roland McGrath <roland@frob.com>
3914
3915 * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
3916
3917 * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
3918 (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
3919
3920 * sysdeps/mach/hurd/bind.c: Use prototype definition.
3921 * sysdeps/mach/hurd/connect.c: Likewise.
3922 * sysdeps/mach/hurd/getsockopt.c: Likewise.
3923 * sysdeps/mach/hurd/setsockopt.c: Likewise.
3924
3925 * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
3926 __msg_sig_post RPC.
3927
3928 * hurd/catch-exc.c: Use integer_t instead of int.
3929 * hurd/hurdfault.c: Likewise.
3930
3931 * sysdeps/mach/hurd/alpha/exc2signal.c
3932 (_hurd_exception2signal): Rewritten.
3933 * sysdeps/mach/hurd/alpha/longjmp-ts.c
3934 (_hurd_longjmp_thread_state): Rewritten.
3935
3936 2002-04-07 Ulrich Drepper <drepper@redhat.com>
3937
3938 * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
3939 DB_LOOKUP_FCT prototype.
3940 * nss/getXXent_r.c: Likewise.
3941 * inet/getaliasent_r.c: Define NSS_attribute_hidden.
3942 * inet/getaliasname_r.c: Likewise.
3943 * inet/getnetbyad_r.c: Likewise.
3944 * inet/getnetbynm_r.c: Likewise.
3945 * inet/getnetent_r.c: Likewise.
3946 * inet/getproto_r.c: Likewise.
3947 * inet/getprtent_r.c: Likewise.
3948 * inet/getprtname_r.c: Likewise.
3949 * inet/getrpcbyname_r.c: Likewise.
3950 * inet/getrpcbynumber_r.c: Likewise.
3951 * inet/getrpcent_r.c: Likewise.
3952 * inet/getservent_r.c: Likewise.
3953 * inet/getsrvbynm_r.c: Likewise.
3954 * inet/getsrvbypt_r.c: Likewise.
3955 * shadow/getspent_r.c: Likewise.
3956 * shadow/getspnam_r.c: Likewise.
3957
3958 * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
3959
3960 * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
3961 Use i686-friendly PIC code.
3962 * sysdeps/i386/elf/setjmp.S: Likewise.
3963
3964 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
3965
3966 * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
3967 list.
3968 * elf/Versions: Remove it here.
3969
3970 2002-04-06 Ulrich Drepper <drepper@redhat.com>
3971
3972 * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
3973 direction. Reported by H . J . Lu <hjl@lucon.org>.
3974
3975 2002-04-05 Ulrich Drepper <drepper@redhat.com>
3976
3977 * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
3978 test just before the test runs.
3979 * intl/tst-translit.sh: Likewise.
3980 * intl/tst-codeset.sh: Likewise.
3981
3982 * timezone/zic.c: Update from tzcode2002c.
3983 * timezone/asia: Update from tzdata2002c.
3984 * timezone/backward: Likewise.
3985 * timezone/europe: Likewise.
3986 * timezone/northamerica: Likewise.
3987 * timezone/northamerica: Likewise.
3988 * timezone/northamerica: Likewise.
3989 * timezone/southamerica: Likewise.
3990 * timezone/zone.tab: Likewise.
3991
3992 2002-03-23 Jakub Jelinek <jakub@redhat.com>
3993
3994 * sysdeps/generic/brk.c (__curbrk): Declare.
3995 * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
3996 * sysdeps/generic/dl-sbrk.c: Likewise.
3997 * sysdeps/unix/arm/dl-brk.S: New file.
3998 * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
3999 * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
4000 * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
4001 * sysdeps/unix/bsd/vax/dl-brk.S: New file.
4002 * sysdeps/unix/i386/dl-brk.S: New file.
4003 * sysdeps/unix/mips/dl-brk.S: New file.
4004 * sysdeps/unix/sparc/dl-brk.S: New file.
4005 * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
4006 * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
4007 * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
4008 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
4009
4010 2002-04-03 Andreas Schwab <schwab@suse.de>
4011
4012 * Makefile (headers): Add gnu/lib-names.h here instead of
4013 install-others.
4014 ($(inst_includedir)/gnu/lib-names.h): Remove explicit
4015 installation rule.
4016 (install-headers): Add dependency on install-headers-nosubdir.
4017 * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
4018 instead of install-others.
4019 ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
4020 installation rule.
4021
4022 2002-04-05 Ulrich Drepper <drepper@redhat.com>
4023
4024 * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
4025 Reported by Sam Roberts <sroberts@uniserve.com>.
4026
4027 2002-04-03 Jakub Jelinek <jakub@redhat.com>
4028
4029 * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
4030 l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
4031 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
4032 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
4033
4034 2002-04-03 David Mosberger <davidm@hpl.hp.com>
4035
4036 * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
4037 (RTLD_START): Ditto.
4038 (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
4039 dependency violation.
4040
4041 2002-04-05 Jakub Jelinek <jakub@redhat.com>
4042
4043 * time/mktime.c (__mktime_internal): Move check for year < 70 below
4044 all variable declarations.
4045
4046 2002-04-04 Andreas Schwab <schwab@suse.de>
4047
4048 * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
4049
4050 2002-04-04 Andreas Jaeger <aj@suse.de>
4051
4052 * sysdeps/x86_64/fpu/e_sqrt.c: New file.
4053 * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
4054
4055 * sysdeps/x86_64/fpu/s_fabs.c: New file.
4056 * sysdeps/x86_64/fpu/s_fabsf.c: New file.
4057 * sysdeps/x86_64/fpu/s_fabsl.c: New file.
4058
4059 * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
4060
4061 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
4062
4063 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
4064 * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
4065
4066 * configure.in: Handle all mips entries the same.
4067
4068 * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
4069 * sysdeps/mips/mips3/*: Likewise.
4070 * sysdeps/mips/p40/bits/endian.h: Likewise.
4071
4072 2002-04-04 Ulrich Drepper <drepper@redhat.com>
4073
4074 * misc/dirname.c (dirname): Ignore trailing slashes at end of
4075 non-null result [PR libc/2600].
4076
4077 * misc/tst-dirname.c: Add more tests.
4078
4079 2002-04-03 Ulrich Drepper <drepper@redhat.com>
4080
4081 * locale/programs/charmap.c (charmap_read): If the charmap doesn't
4082 define a code_set_name provide one based on the filename.
4083
4084 * malloc/hooks.c: Define weak_variable correctly for _LIBC.
4085
4086 2001-12-28 Andreas Jaeger <aj@suse.de>
4087
4088 * time/mktime.c (__mktime_internal): Check for year < 70
4089 [PR libc/2738].
4090
4091 2002-04-03 Andreas Jaeger <aj@suse.de>
4092
4093 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
4094 shmat.
4095 Reported by Andi Kleen <ak@suse.de>.
4096
4097 2002-04-03 Ulrich Drepper <drepper@redhat.com>
4098
4099 * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
4100 * sysdeps/generic/w_lgammaf.c: Likewise.
4101 * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
4102
4103 * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
4104 Adjust for new output format of the backtrace functions.
4105
4106 * misc/syslog.c (vsyslog): Only use cleanup handler if
4107 _LIBC_REENTRANT is defined [PR libc/2924].
4108
4109 * libio/Makefile (tests): Add bug-ungetwc2.
4110 * libio/bug-ungetwc2.c: New file.
4111
4112 * manual/install.texi: Typographical and grammatical cleanup.
4113 Patch by Dennis Grace <dgrace@us.ibm.com>.
4114
4115 * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
4116 parameter if mtflag. Patch by <jeongyun@innovay.com>.
4117
4118 * sunrpc/rpc_svcout.c (printif): Remove third parameter. It was
4119 always "&". Adjust callers.
4120 Add "_" prefix to several generated definitions.
4121 Patch by paul@serice.net [PR libc/3158].
4122
4123 2002-04-02 Ulrich Drepper <drepper@redhat.com>
4124
4125 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
4126 size of _dl_arm_cap_flags.
4127 Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
4128
4129 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
4130 Define as 8.
4131
4132 2002-03-22 H.J. Lu <hjl@gnu.org>
4133
4134 * scripts/firstversions.awk: Check the first version.
4135
4136 2002-04-02 Ulrich Drepper <drepper@redhat.com>
4137
4138 * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
4139 dependencies must be stable to work correctly.
4140 Reported by martin.lubich@datacon.at.
4141
4142 * libio/bug-ungetwc1.c: New file.
4143 * libio/Makefile (tests): Add bug-ungetwc1.
4144
4145 * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
4146 if stream was last used for writing.
4147
4148 * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
4149 number [PR libc/3111].
4150
4151 * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
4152 to ...
4153 * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
4154
4155 2002-04-02 Jakub Jelinek <jakub@redhat.com>
4156
4157 * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
4158 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
4159 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
4160 * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
4161 * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
4162
4163 2002-03-30 Jakub Jelinek <jakub@redhat.com>
4164
4165 * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
4166 dynamic tags.
4167
4168 2002-03-29 Jakub Jelinek <jakub@redhat.com>
4169
4170 * sysdeps/i386/fpu/s_fabs.S: New file.
4171 * sysdeps/i386/fpu/s_fabsf.S: New file.
4172 * sysdeps/i386/fpu/s_fabsl.S: New file.
4173 * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
4174 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
4175 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
4176
4177 2002-04-02 Ulrich Drepper <drepper@redhat.com>
4178
4179 * rt/tst-shm.c (do_test): Add one more test for size of shared
4180 memory object.
4181
4182 2002-03-29 Wolfram Gloger <wg@malloc.de>
4183
4184 * malloc/malloc.c: Add short description and prototypes for
4185 malloc_get_state, malloc_set_state and posix_memalign, for
4186 consistency and to avoid warnings with -Wstrict-prototypes.
4187 Reported by Andreas Jaeger <aj@suse.de>.
4188
4189 2002-04-02 Ulrich Drepper <drepper@redhat.com>
4190
4191 * po/gl.po: Update from translation team.
4192
4193 2002-03-31 Roland McGrath <roland@frob.com>
4194
4195 * hurd/hurdselect.c (_hurd_select): Fix
4196 MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
4197 Use a union rather than casts to compare mach_msg_type_t as int.
4198
4199 2002-03-25 Roland McGrath <roland@frob.com>
4200
4201 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
4202 check off the end of NAME when it's shorter than 2 chars.
4203 Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
4204
4205 2002-03-17 Roland McGrath <roland@frob.com>
4206
4207 * sysdeps/mach/hurd/i386/sys/io.h: New file.
4208 * sysdeps/mach/hurd/i386/ioperm.c: New file.
4209 * sysdeps/mach/hurd/i386/Dist: Add them.
4210 * sysdeps/mach/hurd/i386/Versions
4211 (libc: GLIBC_2.2.6): New set, add ioperm.
4212 * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
4213 (mach_interface_list): Check for mach_i386.defs.
4214 * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
4215 * sysdeps/mach/configure: Regenerated.
4216
4217 2002-03-22 Ulrich Drepper <drepper@redhat.com>
4218
4219 * po/fr.po: Update from translation team.
4220
4221 2002-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
4222
4223 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
4224 getpriority from syscalls list.
4225
4226 2002-03-28 Andreas Jaeger <aj@suse.de>
4227
4228 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
4229 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
4230 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
4231 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
4232
4233 2002-03-27 Andreas Jaeger <aj@suse.de>
4234
4235 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
4236 sigcontext): Follow further kernel change.
4237
4238 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
4239 kernel change.
4240
4241 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
4242 Change for struct sigcontext change.
4243
4244 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
4245 Follow changes in struct sigcontext.
4246
4247 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
4248 sysycall, use wrapper instead.
4249
4250 2002-03-26 Andreas Jaeger <aj@suse.de>
4251
4252 * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
4253 read and write accesses as detailed as possible.
4254 (__memcpy_by2): Likewise.
4255 (__memcpy_g): Likewise.
4256 (memmove): Likewise.
4257 (memcmp): Likewise.
4258 (__memset_ccn_by4): Likewise.
4259 (__memset_ccn_by2): Likewise.
4260 (__memset_gcn_by4): Likewise.
4261 (__memset_gcn_by2): Likewise.
4262 (memchr): Likewise.
4263 (__memrchr): Likewise.
4264 (rawmemchr): Likewise.
4265 (__strlen_g): Likewise.
4266 (__strcpy_g): Likewise.
4267 (__mempcpy_by4): Likewise.
4268 (__mempcpy_by2): Likewise.
4269 (__mempcpy_byn): Likewise.
4270 (__stpcpy_g): Likewise.
4271 (__strncpy_by4): Likewise.
4272 (__strncpy_by2): Likewise.
4273 (__strncpy_byn): Likewise.
4274 (__strncpy_gg): Likewise.
4275 (__strcat_c): Likewise.
4276 (__strcat_g): Likewise.
4277 (__strncat_g): Likewise.
4278 (__strcmp_gg): Likewise.
4279 (__strncmp_g): Likewise.
4280 (__strchr_c): Likewise.
4281 (__strchr_g): Likewise.
4282 (__strchrnul_c): Likewise.
4283 (__strchrnul_g): Likewise.
4284 (__strrchr_c): Likewise.
4285 (__strrchr_g): Likewise.
4286 (__strrchr_c): Likewise.
4287 (__strrchr_g): Likewise.
4288 (__strcspn_c1): Likewise.
4289 (__strcspn_cg): Likewise.
4290 (__strcspn_g): Likewise.
4291 (__strcspn_g): Likewise.
4292 (__strspn_c1): Likewise.
4293 (__strspn_cg): Likewise.
4294 (__strspn_g): Likewise.
4295 (__strspn_g): Likewise.
4296 (__strpbrk_cg): Likewise.
4297 (__strpbrk_g): Likewise.
4298 (__strstr_cg): Likewise.
4299 (__strstr_g): Likewise.
4300
4301 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo. Reported by
4302 Michal Ludvig <mludvig@suse.cz>.
4303
4304 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
4305 compatibilty, adjust for kernel changes.
4306
4307 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
4308 sigcontext): Adjust for kernel changes.
4309
4310 2002-03-25 Andreas Jaeger <aj@suse.de>
4311
4312 * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
4313 little endian.
4314 Reported by Artur Zaprzala <zybi@talex.com.pl>.
4315
4316 2002-03-24 Andreas Jaeger <aj@suse.de>
4317
4318 * manual/memory.texi (Aligned Memory Blocks): Fix typo.
4319
4320 * stdio-common/tst-fdopen.c (main): Remove unused variable.
4321
4322 * iconv/tst-iconv3.c (main): Use correct printf strings.
4323
4324 2002-03-18 Roland McGrath <roland@frob.com>
4325
4326 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
4327 (CMGROUP_MAX): New macro.
4328
4329 2002-03-23 Roland McGrath <roland@frob.com>
4330
4331 * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
4332 * sysdeps/posix/shm_unlink.c: Likewise.
4333
4334 2002-03-22 Roland McGrath <roland@frob.com>
4335
4336 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
4337 * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
4338 under --enable-libio.
4339 * sysdeps/mach/hurd/configure: Regenerated.
4340
4341 2002-03-23 Roland McGrath <roland@frob.com>
4342
4343 * sysdeps/mach/hurd/i386/Makefile
4344 (sysdep_routines, shared-only-routines): Don't add framestate,
4345 reverting 2001-10-02 change.
4346 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
4347 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
4348 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
4349 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
4350 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
4351 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
4352 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
4353 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
4354 * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
4355 Do it here instead, only if [$(unwind-find-fde) = yes].
4356
4357 2002-03-23 Andreas Jaeger <aj@suse.de>
4358
4359 * signal/signal.h: Fix typo. Patch by Steve Kemp
4360 <skx@tardis.ed.ac.uk>.
4361
4362 2002-03-22 Andreas Jaeger <aj@suse.de>
4363
4364 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
4365 getresuid.
4366
4367 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
4368 _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
4369 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
4370 user_fpregs_struct): Rename fwd.
4371
4372 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
4373 Follow sigcontext changes.
4374
4375 2002-03-22 Andreas Jaeger <aj@suse.de>
4376
4377 * sysdeps/mips/bits/nan.h: New file. Copy from generic one with
4378 changes for NaNs on MIPS.
4379 Patch by Hartvig Ekner <hartvige@mips.com>.
4380
4381 2002-03-21 Ulrich Drepper <drepper@redhat.com>
4382
4383 * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
4384 Use realloc if too large.
4385 (addgrbyid): Likewise.
4386 * nscd/hstcache.c (addhstbyname): Likewise.
4387 (addhstbyaddr): Likewise.
4388 (addhstbynamev6): Likewise.
4389 (addhstbyaddrv6): Likewise.
4390 * nscd/pwdcache.c (addpwbyname): Likewise.
4391 (addpwbyuid): Likewise.
4392
4393 2002-03-21 Andreas Jaeger <aj@suse.de>
4394
4395 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
4396 _fpstate): Add separate struct for x86-64.
4397
4398 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
4399 user_fpregs_struct): Change member names to follow kernel.
4400
4401 2002-03-20 Ulrich Drepper <drepper@redhat.com>
4402
4403 * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
4404 Correctly close the UDP connection right away [PR libc/3120].
4405
4406 2002-03-20 Andreas Jaeger <aj@suse.de>
4407
4408 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
4409 user_fpregs_struct): Fix for changed kernel struct.
4410 (struct user_regs_struct): Likewise.
4411 (struct user): Likewise.
4412 Add 32-bit x86 compatibility.
4413
4414 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
4415
4416 2002-03-19 Andreas Jaeger <aj@suse.de>
4417
4418 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
4419
4420 2002-03-18 Andreas Jaeger <aj@suse.de>
4421
4422 * iconvdata/Makefile: Only run tests when shared libs are
4423 available.
4424
4425 2002-03-17 Andreas Jaeger <aj@suse.de>
4426
4427 * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
4428
4429 * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
4430
4431 * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
4432 bits.
4433
4434 * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
4435 (CAUSE_SHIFT): New.
4436 Patch by Hartvig Ekner <hartvige@mips.com>.
4437
4438 * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
4439 * sysdeps/generic/unwind-pe.h: Likewise.
4440
4441 * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
4442 type to _IO_setb.
4443
4444 * libio/stdio.c (AL2): Define variant when visibility attribute is
4445 not supported.
4446
4447 * include/libc-symbols.h (_INTVARDEF): Define variant when
4448 visibility attribute is not supported.
4449
4450 2002-03-16 Ulrich Drepper <drepper@redhat.com>
4451
4452 * po/fr.po: Update from translation team.
4453
4454 2002-02-25 Bruno Haible <bruno@clisp.org>
4455
4456 * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
4457
4458 2002-03-15 Ulrich Drepper <drepper@redhat.com>
4459
4460 * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
4461 buffers if _IO_file_attach failed.
4462
4463 * libio/fileops.c (_IO_file_open): Close file descriptor if
4464 _IO_SEEKOFF call failed.
4465
4466 2002-03-15 H.J. Lu <hjl@gnu.org>
4467 Ulrich Drepper <drepper@redhat.com>
4468
4469 * configure.in: Check for availability of
4470 init_array/fini_array/preinit_array handling in binutils.
4471 * config.h.in (HAVE_INITFINI_ARRAY): New macro.
4472 * config.make.in (have-initfini-array): New variable.
4473
4474 2002-03-15 Ulrich Drepper <drepper@redhat.com>
4475
4476 * stdio-common/tst-printf.c (main): Comment out one test which
4477 checked the compiler's ability to fold floating-point constants
4478 but not really printf.
4479 (rfg3): Make s const.
4480 * stdio-common/tst-printf.sh: Adjust for removed test.
4481
4482 * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
4483 internal function. Adjust for internal_function calling convention.
4484 * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
4485 as internal_function.
4486
4487 * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
4488 hidden.
4489
4490 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
4491 declaration and definition.
4492 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
4493 declaration.
4494 * nss/getXXent_r.c: Likewise.
4495 * nss/nsswitch.h (db_lookup_function): Add internal_function to
4496 definition.
4497
4498 * include/time.h: Declare __localtime_r as hidden.
4499
4500 * include/aliases.h: Declare __getaliasent_r as hidden.
4501 * include/grp.h: Declare __getgrent_r as hidden.
4502 * include/netdb.h: Declare __gethostent_r, __getnetent_r,
4503 __getservent_r, and __getprotoent_r as hidden.
4504 * include/pwd.h: Declare __getpwent_r as hidden.
4505 * include/shadow.h: Declare __getspent_r as hidden.
4506 * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
4507
4508 * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
4509 and __gconv_transliterate as hidden.
4510 Add internal_function to __gconv_get_path declaration.
4511 * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
4512 definition. Add attribute_hidden to __gconv_read_conf definition.
4513
4514 2002-03-14 Ulrich Drepper <drepper@redhat.com>
4515
4516 * elf/rtld.c: Declare _environ as hidden.
4517 * sysdeps/generic/dl-environ.c: Likewise.
4518 * sysdeps/generic/dl-sysdep.c: Likewise.
4519
4520 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
4521 _dl_mcount_internal as hidden.
4522
4523 * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
4524 * sysdeps/generic/dl-brk.c: New file.
4525 * sysdeps/generic/dl-sbrk.c: New file.
4526 * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
4527 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
4528
4529 * elf/dl-minimal.c (malloc): Declare _end as hidden.
4530 (__errno_location): New function. Declare errno as hidden.
4531 * elf/rtld.c (_dl_argc): Define as hidden.
4532 (_dl_skip_args): Define as hidden.
4533 (_begin, _end): Declare as hidden.
4534 * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
4535 * sysdeps/generic/entry.h (_start): Declare as hidden.
4536 * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
4537 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
4538 _dl_runtime_resolve and _dl_runtime_profile as hidden.
4539 (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
4540
4541 2002-03-14 Roland McGrath <roland@frob.com>
4542
4543 * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
4544
4545 * Makeconfig (%.v.i, %.v): New implicit rules.
4546 (preprocess-versions): Variable removed.
4547 ($(common-objpfx)shlib-versions.v.i): New target giving just the
4548 shlib-versions input files as dependencies.
4549 ($(common-objpfx)soversions.i): Depend on that instead of the input
4550 files. Use it as input instead of using a pipeline.
4551 (postclean-generated): Append soversions.i, shlib-versions.v, and
4552 shlib-versions.v.i here.
4553 * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
4554 the Versions.def input files as dependencies.
4555 ($(common-objpfx)Versions.v.i): Likewise for Versions files.
4556 ($(common-objpfx)Versions.all): Depend on that instead of the input
4557 files. Use it as input instead of using a pipeline.
4558 ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
4559 (postclean-generated): Append those .v and .v.i files here.
4560
4561 2002-03-14 Jakub Jelinek <jakub@redhat.com>
4562
4563 * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
4564 * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
4565 Remove.
4566
4567 2002-03-14 Jakub Jelinek <jakub@redhat.com>
4568
4569 * sysdeps/generic/mp_clz_tab.c: New file.
4570 * sysdeps/i386/mp_clz_tab.c: New file.
4571 * sysdeps/hppa/mp_clz_tab.c: New file.
4572 * sysdeps/powerpc/mp_clz_tab.c: New file.
4573 * stdlib/Makefile (aux): Revert last patch.
4574 * math/Makefile (gmp-objs): Likewise.
4575
4576 2002-03-13 Paul Eggert <eggert@twinsun.com>
4577
4578 * time/strftime.c: Comment fixes for references to obsolescent
4579 standards, In most cases the simplest fix is to remove the
4580 confusing comments. Cross-referencing all the standards properly
4581 is a bit of a pain, and it should be enough to put that info in
4582 the documentation as I did in my recent time.texi patch.
4583
4584 2002-03-13 Paul Eggert <eggert@twinsun.com>
4585
4586 * manual/time.texi (Formatting Calendar Time):
4587 ISO C99 also specifies the E and O modifiers.
4588 %P is a GNU extension, and is not in ISO C99.
4589 Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
4590 %T is also in ISO C99.
4591 The RFC 822 example is not valid in arbitrary locales.
4592 Reword the POSIX.2 wording slightly, to make it a bit clearer
4593 that POSIX.2 formats are also supported by later POSIX versions.
4594 If a format was introduced in ISO C99 it is also required by
4595 POSIX.1-2001.
4596
4597 2002-03-13 Ulrich Drepper <drepper@redhat.com>
4598
4599 * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
4600 _sys_nerr_internal with INTVARDEF2.
4601 * include/libc-symbols.h (INTVARDEF2): New macro.
4602 * include/stdio.h (_sys_errlist_internal): Declare as hidden.
4603 (_sys_nerr_internal): Library.
4604
4605 * sysdeps/posix/signal.c (_sigintr): Define as hidden.
4606 * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
4607
4608 * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
4609
4610 2002-03-13 Wolfram Gloger <wg@malloc.de>
4611
4612 * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
4613
4614 2002-03-02 Andreas Schwab <schwab@suse.de>
4615
4616 * stdio-common/vfprintf.c (process_arg): Fix decimal format with
4617 'h' flag and positional arg.
4618 * stdio-common/tst-printf.c (rfg3): New function to test
4619 positional arguments.
4620 (main): Fix some warnings.
4621
4622 2002-03-13 Jakub Jelinek <jakub@redhat.com>
4623
4624 * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
4625 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
4626
4627 2002-03-13 Ulrich Drepper <drepper@redhat.com>
4628
4629 * grp/initgroups.c (__nss_group_data): Declare as hidden.
4630
4631 * include/locale.h (_nl_C_locobj): Declare as hidden.
4632
4633 * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
4634 * time/strptime.c (_nl_C_LC_TIME): Likewise.
4635
4636 * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
4637
4638 * include/sys/gmon.h: Declare _gmonparam as hidden.
4639
4640 * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
4641 (__ctype32_wctrans): Likewise.
4642 (__ctype32_width): Likewise.
4643
4644 * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
4645 use of __ttyname.
4646
4647 * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
4648 Define as hidden.
4649 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Define as
4650 hidden. Change all users of these variables.
4651
4652 * posix/regex_internal.h (__re_error_msgid): Renamed from
4653 re_error_msgid. Declare as hidden.
4654 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Declare as
4655 hidden.
4656
4657 * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
4658 (__printf_function_table): Likewise.
4659 * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
4660 hidden.
4661 (__printf_function_table): Likewise.
4662
4663 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
4664 __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
4665
4666 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
4667 * nss/nsswitch.c: Declare _nss_*_database as hidden.
4668
4669 * stdlib/wctomb.c (__no_r_state): Declare as hidden.
4670 * stdlib/mbtowc.c (__no_r_state): Define as hidden.
4671
4672 2002-03-12 Ulrich Drepper <drepper@redhat.com>
4673
4674 * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
4675 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
4676 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
4677 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
4678 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
4679 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
4680 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
4681 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
4682 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
4683 _nl_C_LC_CTYPE_width: Declare as hidden.
4684 * include/locale.h: Declare _nl_locale_file_list.
4685 * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
4686 * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
4687 * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
4688 * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
4689 * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
4690 * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
4691 * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
4692 * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
4693 * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
4694 * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
4695 * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
4696 * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
4697 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
4698 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
4699 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
4700 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
4701 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
4702 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
4703 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
4704 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
4705 _nl_C_LC_CTYPE_width, and as hidden.
4706 * locale/findlocale.c: Declare _nl_C as hidden.
4707 * locale/newlocale.c: Likewise.
4708 * locale/setlocale.c: Define _nl_C as hidden. Remove declaration of
4709 _nl_locale_file_list.
4710 * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
4711 _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
4712 Define _nl_C_locobj as hidden.
4713
4714 * malloc/mtrace.c (_mtrace_file): Define as hidden.
4715 (_mtrace_line): Likewise.
4716
4717 * include/time.h: Declare __mon_yday as hidden.
4718 * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
4719
4720 * libio/libioP.h: Declare __libio_codecvt as hidden.
4721 * libio/fileops.c: Declare __libio_translit as hidden.
4722 * libio/iofwide.c: Define __libio_translit as hidden.
4723
4724 * login/getutent_r.c: Define __libc_utmp_lock as hidden.
4725 * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
4726 * login/getutline_r.c: Likewise.
4727 * login/utmpname.c: Likewise.
4728
4729 * login/utmp-private.h: Declare __libc_utmp_file_functions,
4730 __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
4731 __libc_utmp_file_name as hidden.
4732
4733 * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
4734 * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
4735 * locale/freelocale.c: Likewise.
4736 * locale/lc-time.c: Likewise.
4737
4738 * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
4739 (__libc_ptyname2): Likewise.
4740 * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
4741 hidden.
4742 (__libc_ptyname2): Likewise.
4743
4744 * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
4745 * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
4746 * sysdeps/generic/init-first.c: Likewise.
4747 * sysdeps/i386/init-first.c: Likewise.
4748 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
4749 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
4750 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
4751 * sysdeps/sh/init-first.c: Likewise.
4752 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
4753 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
4754
4755 * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
4756 (_itowa_upper_digits): Likewise.
4757
4758 * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
4759 * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
4760 as hidden.
4761
4762 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
4763 _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
4764 _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
4765 _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
4766
4767 * gmon/gmon.c (__bb_head): Define as hidden.
4768 * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
4769
4770 * argp/argp-parse.c (_argp_hang): Define as static.
4771
4772 * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
4773 handling in latest compilers.
4774
4775 * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
4776 define alias.
4777 * libio/fileops.c (_IO_file_jumps): Likewise.
4778 * libio/stdfiles.c (_IO_list_all): Likewise.
4779 * libio/wfileops.c (_IO_wfile_jumps): Likewise.
4780
4781 * malloc/malloc.h: Move __libc_malloc_initialized declaration to
4782 include/malloc.h.
4783 * include/malloc.h: Add __libc_malloc_initialized declaration
4784 here. Mark variable hidden.
4785 * malloc/malloc.c: Include <malloc.h> not "malloc.h".
4786
4787 * elf/dl-open.c (__libc_argc): Declare as hidden.
4788 (__libc_argv): Likewise.
4789 * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
4790 (__libc_argv): Likewise.
4791 * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
4792 __libc_argv as hidden.
4793 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
4794 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
4795 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
4796 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
4797
4798 * include/stdlib.h (__libc_drand48_data): Declare as hidden.
4799 * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
4800 * stdlib/erand48.c: Likewise.
4801 * stdlib/jrand48.c: Likewise.
4802 * stdlib/lcong48.c: Likewise.
4803 * stdlib/lrand48.c: Likewise.
4804 * stdlib/mrand48.c: Likewise.
4805 * stdlib/nrand48.c: Likewise.
4806 * stdlib/seed48.c: Likewise.
4807 * stdlib/srand48.c: Likewise.
4808
4809 * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
4810 (_itoa_lower_digits_internal): New declaration.
4811 (_itoa_upper_digits_internal): New declaration.
4812 (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
4813 * stdio-common.h (_itoa_lower_digits_internal): New declaration.
4814 (_itoa_upper_digits_internal): New declaration.
4815 (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
4816 _itoa_lower_digits.
4817 * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
4818 * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
4819
4820 * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
4821 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
4822
4823 * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
4824 (_itowa_lower_digits): Likewise.
4825 (_itowa_upper_digits): Likewise.
4826 * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
4827 (_itowa_upper_digits): Likewise.
4828
4829 * intl/plural-exp.h (attribute_hidden): Define as empty macro if
4830 not already defined.
4831 (GERMANIC_PLURAL): Declare as hidden.
4832
4833 * posix/getopt.c (__getopt_initialized): Declare as hidden.
4834 (attribute_hidden): Define as empty macro if not already defined.
4835
4836 * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
4837 (__gconv_max_path_elem_len): Likewise.
4838 (__gconv_path_envvar): Likewise.
4839
4840 * math/Makefile (gmp-objs): Remove mp_clz_tab.
4841 * stdlib/Makefile (aux): Remove mp_clz_tab.
4842 * stdlib/mp_clz_tab.c: Removed. Not needed anywhere.
4843
4844 * stdlib/exit.h (__exit_funcs): Declare as hidden.
4845
4846 * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
4847
4848 * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
4849 _nl_category_names, _nl_category_name_sizes, _nl_current,
4850 _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
4851
4852 * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
4853 (_nl_current_default_domain): Likewise
4854 (_nl_state_lock): Likewise.
4855 * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
4856 (_nl_current_default_domain): Likewise
4857 (_nl_state_lock): Likewise.
4858 * intl/bindtextdom.c (_nl_state_lock): Likewise.
4859
4860 * stdlib/fpioconst.h (__tens): Add attribute_hidden.
4861 (_fpioconst_pow10): Likewise.
4862
4863 * include/time.h (_tmbuf): Add attribute_hidden.
4864
4865 * time/tzset.c (tzstring_list): Define as static.
4866
4867 * include/time.h: Add attribute_hidden to __tzname_cur_max and
4868 __use_tzfile declaration.
4869
4870 * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
4871 and __wcsmbs_last_locale declaration.
4872
4873 2002-02-25 Paul Eggert <eggert@twinsun.com>
4874
4875 * timezone/Makefile (tzbases): Move systemv from here...
4876 (tzlinks): to here, since the entries in systemv were all changed
4877 from Zone to Link lines in tz-2001a. Bug reported (and patch
4878 tested) by Peter Breitenlohner.
4879
4880 2002-03-07 Jakub Jelinek <jakub@redhat.com>
4881
4882 * time/tst-posixtz.c (tests): Add new tests.
4883 (main): Test whether tzset() sets daylight properly.
4884
4885 2002-03-06 Jakub Jelinek <jakub@redhat.com>
4886
4887 * time/tzset.c (tz_compute): Move __daylight, __tzname and
4888 __tzname_cur_max setting...
4889 (tzset_internal): ...here.
4890
4891 2002-03-06 Jakub Jelinek <jakub@redhat.com>
4892
4893 * time/tzset.c (compute_change): Don't return any value.
4894 (tz_compute): Likewise. Don't handle southern hemisphere here.
4895 (__tz_convert): But here.
4896
4897 2002-03-11 Ulrich Drepper <drepper@redhat.com>
4898
4899 * manual/examples/mkfsock.c: Include <string.h> as well.
4900 Patch by Alain De Carolis <alaind@wseurope.com>.
4901
4902 2002-03-06 Isamu Hasegawa <isamu@yamato.ibm.com>
4903
4904 * posix/regexec.c (re_match): Fix incorrect register sizes.
4905 (re_search): Likewise.
4906
4907 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
4908
4909 * posix/regcomp.c (regfree): Remove a disused condition.
4910 * posix/regex_internal.c (re_acquire_state): Likewise.
4911 (re_acquire_state_context): Likewise.
4912 (register_state): Remove a redundant malloc invocation.
4913 * posix/regex_internal.h: (re_state_table_entry): Simplify
4914 the structure.
4915
4916 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
4917
4918 * posix/regcomp.c (regcomp): Add __builtin_expect to error
4919 handling conditions.
4920 (regerror): Likewise.
4921 (regfree): Likewise.
4922 (re_compile_internal): Likewise.
4923 (init_dfa): Likewise.
4924 (init_word_char): Likewise.
4925 (create_initial_state): Likewise.
4926 (analyze): Likewise.
4927 (analyze_tree): Likewise.
4928 (duplicate_node): Likewise.
4929 (calc_eclosure): Likewise.
4930 (calc_eclosure_iter): Likewise.
4931 (parse): Likewise.
4932 (parse_reg_exp): Likewise.
4933 (parse_branch): Likewise.
4934 (parse_expression): Likewise.
4935 (parse_subexp): Likewise.
4936 (parse_dup_op): Likewise.
4937 (parse_bracket_exp): Likewise.
4938 (build_equiv_class): Likewise.
4939 (build_charclass): Likewise.
4940 (build_word_op): Likewise.
4941 (fetch_number): Likewise.
4942 (create_tree): Likewise.
4943 (duplicate_tree): Likewise.
4944 * posix/regex.c (BE): New macro.
4945 * posix/regexec.c (re_match): Add __builtin_expect to error
4946 handling conditions.
4947 (re_match_2): Likewise.
4948 (re_search): Likewise.
4949 (re_search_internal): Likewise.
4950 (check_matching): Likewise.
4951 (proceed_next_node): Likewise.
4952 (set_regs): Likewise.
4953 (sift_states_backward): Likewise.
4954 (add_epsilon_backreference): Likewise.
4955 (transit_state): Likewise.
4956 (transit_state_sb): Likewise.
4957 (transit_state_mb): Likewise.
4958 (transit_state_bkref): Likewise.
4959 (transit_state_bkref_loop): Likewise.
4960 (build_trtable): Likewise.
4961 (group_nodes_into_DFAstates): Likewise.
4962 (match_ctx_init): Likewise.
4963 (match_ctx_add_entry): Likewise.
4964 * posix/regex_internal.c (re_string_construct): Add __builtin_expect
4965 to error handling conditions.
4966 (re_string_construct_toupper): Likewise.
4967 (build_wcs_buffer): Likewise.
4968 (build_wcs_upper_buffer): Likewise.
4969 (build_upper_buffer): Likewise.
4970 (re_string_translate_buffer): Likewise.
4971 (re_node_set_alloc): Likewise.
4972 (re_node_set_init_1): Likewise.
4973 (re_node_set_init_2): Likewise.
4974 (re_node_set_init_copy): Likewise.
4975 (re_node_set_intersect): Likewise.
4976 (re_node_set_init_union): Likewise.
4977 (re_node_set_merge): Likewise.
4978 (re_node_set_insert): Likewise.
4979 (re_dfa_add_node): Likewise.
4980 (re_acquire_state): Likewise.
4981 (re_acquire_state_context): Likewise.
4982 (create_new_state_common): Likewise.
4983 (register_state): Likewise.
4984 (create_ci_new_state): Likewise.
4985 (create_cd_new_state): Likewise.
4986 (re_string_context_at): Remove redundant condition.
4987
4988 2002-01-16 Roger Sayle <roger@eyesopen.com>
4989
4990 * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
4991
4992 * sysdeps/i386/i586/strlen.S: Fix typo in comment.
4993
4994 2002-03-11 Jakub Jelinek <jakub@redhat.com>
4995
4996 * sysdeps/i386/elf/configure.in: Fix comment.
4997
4998 * sysdeps/sparc/sparc64/configure.in: New.
4999 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
5000 if .dynamic comes before .got.
5001 * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
5002
5003 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
5004 HP_TIMING_ACCUM): Fix typos.
5005
5006 2002-03-11 Ulrich Drepper <drepper@redhat.com>
5007
5008 * string/strfry.c: Add some more randomness to the seed.
5009 Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
5010
5011 * po/es.po: Update from translation team.
5012 * po/fr.po: Likewise.
5013
5014 * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
5015
5016 * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
5017 when determining type of format.
5018 Patch by James Antill <james@anqd.org> [PR libc/2787].
5019
5020 2002-03-04 Jakub Jelinek <jakub@redhat.com>
5021
5022 * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
5023
5024 2002-03-11 Roland McGrath <roland@frob.com>
5025
5026 * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
5027
5028 * Versions.def (libc): Add GLIBC_2.2.6.
5029 * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
5030 * sysdeps/mach/hurd/errnos.awk: In generated macro, use
5031 __errno_location instead of __hurd_errno_location, and don't inline it.
5032 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
5033 * hurd/errno.c: New file.
5034 * hurd/Makefile (routines): Add errno.
5035
5036 2002-03-11 Ulrich Drepper <drepper@redhat.com>
5037
5038 * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
5039 ridiculously large widths and precisions [PR libc/3026].
5040
5041 2002-03-11 Andreas Jaeger <aj@suse.de>
5042
5043 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
5044 support.
5045 Patch by Susanne Oberhauser <froh@SuSE.de>.
5046
5047 2002-03-11 Ulrich Drepper <drepper@redhat.com>
5048
5049 * inet/rexec.c (ahostbuf): Define as static.
5050
5051 * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
5052 (__ctype32_wctrans): Likewise.
5053 * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
5054 * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
5055 (__ctype32_wctrans): Likewise.
5056 (__ctype32_width): Likewise.
5057
5058 * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
5059 They were never exported anyway.
5060
5061 * gmon/gmon.c (_gmonparam): Add attribute_hidden.
5062 * gmon/sys/gmon.h: Remove declaration of _gmonparam. It wasn't
5063 exported.
5064 * include/sys/gmon.h: Declare _gmonparam.
5065
5066 * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
5067 symbols for getdents64. They were never exported.
5068
5069 2002-03-09 Roland McGrath <roland@frob.com>
5070
5071 * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
5072 Reported by Jon Arney <jarney1@cox.net>.
5073
5074 2002-02-23 Roland McGrath <roland@frob.com>
5075
5076 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
5077 declaration.
5078 (__hurd_errno_location): Function removed.
5079
5080 2002-03-06 Andreas Jaeger <aj@suse.de>
5081
5082 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
5083 32-bit.
5084
5085 2002-03-04 Andreas Jaeger <aj@suse.de>
5086
5087 * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
5088
5089 * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
5090 x86-64.
5091
5092 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
5093
5094 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
5095
5096 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
5097
5098 * sysdeps/x86_64/bits/setjmp.h: New.
5099
5100 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
5101
5102 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
5103
5104 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
5105 for x86.
5106 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
5107 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
5108
5109 2002-02-28 Bo Thorsen <bo@suse.de>
5110
5111 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
5112 version.
5113
5114 2002-03-03 Andreas Jaeger <aj@suse.de>
5115
5116 * sysdeps/x86_64/bits/wordsize.h: New file.
5117
5118 * elf/nodlopenmod2.c: Provide prototype to avoid warning.
5119 * elf/tst-tlsmod1.c: Likewise.
5120
5121 * posix/regcomp.c: Get regex.h from include dir for internal
5122 prototypes.
5123
5124 * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
5125 to libc-internal.h and include it.
5126 * include/libc-internal.h: Add __init_misc.
5127
5128 * misc/init-misc.c: Include libc-internal.h for prototypes.
5129
5130 * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
5131
5132 * misc/error.c [_LIBC]: Include libioP.h for prototype of
5133 _IO_putc_internal.
5134
5135 2002-03-03 Ulrich Drepper <drepper@redhat.com>
5136
5137 * posix/regcomp.c: Compatibility changes to allow using the code
5138 outside glibc.
5139
5140 2002-02-28 Hartvig Ekner <hartvige@mips.com>
5141
5142 * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
5143 compiled non-PIC.
5144
5145 2002-03-02 Ulrich Drepper <drepper@redhat.com>
5146
5147 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
5148 of .str elements in the returned data structure.
5149
5150 * elf/elf.h: Add Alpha TLS bits.
5151
5152 2002-02-28 Jakub Jelinek <jakub@redhat.com>
5153
5154 * sysdeps/unix/sysv/linux/nice.c: New file.
5155
5156 2002-03-01 Ulrich Drepper <drepper@redhat.com>
5157
5158 * elf/Makefile (dl-routines): Add dl-origin.
5159 (elide-routines.os): Add dl-origin.
5160 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
5161 * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
5162 _dl_debug_state.
5163 * include/libc-symbols.c: Define attribute_hidden depending on
5164 HAVE_VISIBILITY_ATTRIBUTE. Add definition of INTVARDEF.
5165
5166 * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
5167 * elf/dl-load.c: Likewise.
5168 * elf/rtld.c: Likewise.
5169 * include/unistd.h: Declare __libc_enable_secure_internal.
5170 * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
5171 Use INTUSE with __libc_enable_secure.
5172 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
5173
5174 * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
5175 * elf/dl-error.c: Likewise,
5176 * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
5177
5178 * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
5179 * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
5180 function definition. Use INTDEF with _dl_get_origin.
5181 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
5182
5183 * elf/dl-init.c: Use INTUSE with _dl_starting_up.
5184 * elf/rtld.c: Likewise. Use INTVARDEF for _dl_starting_up.
5185
5186 * elf/dl-profile.c: Use INTDEF for _dl_mcount.
5187 * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
5188 * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
5189
5190 * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
5191 * elf/dl-deps.c: Likewise.
5192 * elf/dl-error.c: Likewise.
5193 * elf/dl-fini.c: Likewise.
5194 * elf/dl-init.c: Likewise.
5195 * elf/dl-load.c: Likewise.
5196 * elf/dl-lookup.c: Likewise.
5197 * elf/dl-reloc.c: Likewise.
5198 * elf/dl-version.c: Likewise.
5199 * elf/do-lookup.h: Likewise.
5200 * sysdeps/arm/dl-machine.h: Likewise.
5201 * sysdeps/cris/dl-machine.h: Likewise.
5202 * sysdeps/hppa/dl-machine.h: Likewise.
5203 * sysdeps/i386/dl-machine.h: Likewise.
5204 * sysdeps/m68k/dl-machine.h: Likewise.
5205 * sysdeps/powerpc/dl-machine.h: Likewise.
5206 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
5207 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
5208 * sysdeps/sh/dl-machine.h: Likewise.
5209 * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
5210 * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
5211 * sysdeps/x86_64/dl-machine.h: Likewise.
5212 * elf/rtld.c: Use INTDEF for _dl_argv. Use rtld_progrname instead of
5213 _dl_argv[0]. Use INTUSE with _dl_argv.
5214 * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
5215 * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
5216
5217 2002-02-28 Jakub Jelinek <jakub@redhat.com>
5218
5219 * elf/rtld.c (_rtld_global): Remove .protected.
5220 (_rtld_local): Strong alias to _rtld_global.
5221 * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
5222 only .os object.
5223 * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
5224 _rtld_local instead of _rtld_global.
5225 (_rtld_local): Add hidden extern, possibly in .sdata section.
5226 * configure.in: Add tests for visibility attribute and .sdata.
5227 * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
5228 * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
5229 * sysdeps/arm/dl-machine.h: Likewise.
5230 * sysdeps/generic/ldsodefs.h: Likewise.
5231 * sysdeps/hppa/dl-machine.h: Likewise.
5232 * sysdeps/cris/dl-machine.h: Likewise.
5233 * sysdeps/i386/dl-machine.h: Likewise.
5234 * sysdeps/ia64/dl-machine.h: Likewise.
5235 * sysdeps/m68k/dl-machine.h: Likewise.
5236 * sysdeps/mips/mips64/dl-machine.h: Likewise.
5237 * sysdeps/mips/dl-machine.h: Likewise.
5238 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
5239 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
5240 * sysdeps/sh/dl-machine.h: Likewise.
5241 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
5242 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
5243 * sysdeps/x86_64/dl-machine.h: Likewise.
5244
5245 2002-02-28 Ulrich Drepper <drepper@redhat.com>
5246
5247 * login/login.c (login): Always initialize ut_line field
5248 [PR libc/2991].
5249
5250 2002-02-28 Jakub Jelinek <jakub@redhat.com>
5251
5252 * sysdeps/i386/Makefile (sysdep_routines): Add
5253 divdi3 in csu dir.
5254 (shared-only-routines): Likewise.
5255 * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
5256 (shared-only-routines): Likewise.
5257 * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
5258 (shared-only-routines): Likewise.
5259 * sysdeps/wordsize-32/divdi3.c: New file.
5260
5261 2002-02-28 Ulrich Drepper <drepper@redhat.com>
5262
5263 * locale/iso-4217.def: Remove obsolete currencies for countries
5264 with Euro.
5265
5266 2002-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
5267
5268 * posix/regcomp.c (regcomp): Remove a redundant condition.
5269 (init_word_char): Add a check on malloc failure.
5270 (create_initial_state): Likewise.
5271 (duplicate_node): Likewise.
5272 (calc_eclosure): Likewise.
5273 (calc_eclosure_iter): Likewise.
5274 (parse_expression): Likewise.
5275 (parse_bracket_exp): Remove unnecessary malloc invocations.
5276 (build_equiv_class): Likewise.
5277 (build_charclass): Likewise.
5278 * posix/regex_internal.c (re_node_set_intersect): Add a check
5279 on malloc failure.
5280 (re_node_set_add_intersect): Likewise.
5281 (re_node_set_merge): Likewise.
5282 (re_acquire_state): Likewise.
5283 (re_acquire_state_context): Likewise.
5284 (create_newstate_common): Likewise.
5285 (register_state): Likewise.
5286 (create_ci_newstate): Likewise.
5287 (create_cd_newstate): Likewise.
5288 * posix/regex_internal.h: Fix prototypes of re_acquire_state
5289 and re_acquire_state_context.
5290 * posix/regexec.c (regexec): Suit it to the error handling of
5291 re_search_internal.
5292 (re_match): Likewise.
5293 (re_search): Likewise.
5294 (re_search_internal): Add a check on malloc failure.
5295 (acquire_init_state_context): Likewise.
5296 (check_matching): Likewise.
5297 (proceed_next_node): Likewise.
5298 (set_regs): Likewise.
5299 (sift_states_backward): Likewise.
5300 (sift_states_iter_bkref): Likewise.
5301 (add_epsilon_backreference): Likewise.
5302 (transit_state): Likewise.
5303 (transit_state_sb): Likewise.
5304 (transit_state_mb): Likewise.
5305 (transit_state_bkref_loop): Likewise.
5306 (build_trtable): Likewise.
5307 (group_nodes_into_DFAstates): Likewise.
5308 (match_ctx_init): Likewise.
5309 (match_ctx_add_entry): Likewise.
5310
5311 2002-02-27 Ulrich Drepper <drepper@redhat.com>
5312
5313 * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
5314 l_libname if profiling is enabled [PR libc/2916].
5315
5316 * sysdeps/ia64/dl-tls.h: New file.
5317
5318 2002-02-27 Jakub Jelinek <jakub@redhat.com>
5319
5320 * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
5321 Work around an Alpha gas bug.
5322
5323 2002-02-27 Ulrich Drepper <drepper@redhat.com>
5324
5325 * catgets/open_catalog.c (__open_catalog): Fix typo in code which
5326 uses read to load the catalog.
5327 Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
5328
5329 2002-02-26 Ulrich Drepper <drepper@redhat.com>
5330
5331 * posix/Makefile (distribute): Add regcomp.c, regexec.c,
5332 regex_internal.c, and regex_internal.h.
5333 (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
5334 * posix/regex.c: Complete rewrite.
5335 * posix/regexec.c: New file.
5336 * posix/regcomp.c: New file.
5337 * posix/regex_internal.c: New file.
5338 * posix/regex_internal.h: New file.
5339 * posix/regex.h (RE_ICASE): New macro.
5340 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
5341
5342 * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
5343 ungetwc. It's a macro.
5344 * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
5345 implementation.
5346 Reported by Jason Merrill <jason@redhat.com>.
5347
5348 2002-02-25 Jakub Jelinek <jakub@redhat.com>
5349
5350 * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
5351 position to fp->_offset if it is set.
5352 * stdio-common/Makefile (tests): Add tst-fdopen.
5353 * stdio-common/tst-fdopen.c: New test.
5354
5355 2002-02-25 Jakub Jelinek <jakub@redhat.com>
5356
5357 * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
5358 * stdio-common/tst-ungetc.c (main): Add another test.
5359
5360 2002-02-25 Ulrich Drepper <drepper@redhat.com>
5361
5362 * assert/assert-perr.c: Use INTUSE to reference functions and variables
5363 inside libc itself. Use INTDEF and INTDEF2 to define appropriate
5364 aliases. Add prototypes for the new aliases.
5365 * assert/assert.c: Likewise.
5366 * include/libc-symbols.h: Likewise.
5367 * include/stdio.h: Likewise.
5368 * include/netinet/in.h: Likewise.
5369 * include/rpc/auth.h: Likewise.
5370 * include/rpc/auth_unix.h: Likewise.
5371 * include/rpc/key_prot.h: Likewise.
5372 * include/rpc/pmap_prot.h: Likewise.
5373 * include/rpc/pmap_rmt.h: Likewise.
5374 * include/rpc/rpc_msg.h: Likewise.
5375 * include/rpc/xdr.h: Likewise.
5376 * inet/gethstbyad_r.c: Likewise.
5377 * inet/gethstbynm2_r.c: Likewise.
5378 * inet/gethstbynm_r.c: Likewise.
5379 * inet/gethstent_r.c: Likewise.
5380 * inet/in6_addr.c: Likewise.
5381 * libio/__fpurge.c: Likewise.
5382 * libio/filedoalloc.c: Likewise.
5383 * libio/fileops.c: Likewise.
5384 * libio/ftello.c: Likewise.
5385 * libio/ftello64.c: Likewise.
5386 * libio/genops.c: Likewise.
5387 * libio/iofclose.c: Likewise.
5388 * libio/iofdopen.c: Likewise.
5389 * libio/iofflush.c: Likewise.
5390 * libio/iofflush_u.c: Likewise.
5391 * libio/iofgetpos.c: Likewise.
5392 * libio/iofgetpos64.c: Likewise.
5393 * libio/iofgets.c: Likewise.
5394 * libio/iofgets_u.c: Likewise.
5395 * libio/iofopen.c: Likewise.
5396 * libio/iofopncook.c: Likewise.
5397 * libio/iofputs.c: Likewise.
5398 * libio/iofread.c: Likewise.
5399 * libio/iofread_u.c: Likewise.
5400 * libio/iofsetpos.c: Likewise.
5401 * libio/iofsetpos64.c: Likewise.
5402 * libio/ioftell.c: Likewise.
5403 * libio/iofwrite.c: Likewise.
5404 * libio/iogetline.c: Likewise.
5405 * libio/iogets.c: Likewise.
5406 * libio/iogetwline.c: Likewise.
5407 * libio/iolibio.h: Likewise.
5408 * libio/iopadn.c: Likewise.
5409 * libio/iopopen.c: Likewise.
5410 * libio/ioseekoff.c: Likewise.
5411 * libio/ioseekpos.c: Likewise.
5412 * libio/iosetbuffer.c: Likewise.
5413 * libio/iosetvbuf.c: Likewise.
5414 * libio/ioungetc.c: Likewise.
5415 * libio/ioungetwc.c: Likewise.
5416 * libio/iovdprintf.c: Likewise.
5417 * libio/iovsprintf.c: Likewise.
5418 * libio/iovsscanf.c: Likewise.
5419 * libio/libioP.h: Likewise.
5420 * libio/memstream.c: Likewise.
5421 * libio/obprintf.c: Likewise.
5422 * libio/oldfileops.c: Likewise.
5423 * libio/oldiofclose.c: Likewise.
5424 * libio/oldiofdopen.c: Likewise.
5425 * libio/oldiofgetpos.c: Likewise.
5426 * libio/oldiofgetpos64.c: Likewise.
5427 * libio/oldiofopen.c: Likewise.
5428 * libio/oldiofsetpos.c: Likewise.
5429 * libio/oldiofsetpos64.c: Likewise.
5430 * libio/oldiopopen.c: Likewise.
5431 * libio/oldstdfiles.c: Likewise.
5432 * libio/putc.c: Likewise.
5433 * libio/setbuf.c: Likewise.
5434 * libio/setlinebuf.c: Likewise.
5435 * libio/stdfiles.c: Likewise.
5436 * libio/stdio.c: Likewise.
5437 * libio/strops.c: Likewise.
5438 * libio/vasprintf.c: Likewise.
5439 * libio/vscanf.c: Likewise.
5440 * libio/vsnprintf.c: Likewise.
5441 * libio/vswprintf.c: Likewise.
5442 * libio/wfiledoalloc.c: Likewise.
5443 * libio/wfileops.c: Likewise.
5444 * libio/wgenops.c: Likewise.
5445 * libio/wstrops.c: Likewise.
5446 * malloc/mtrace.c: Likewise.
5447 * misc/error.c: Likewise.
5448 * misc/syslog.c: Likewise.
5449 * nss/getXXbyYY_r.c: Likewise.
5450 * nss/getXXent_r.c: Likewise.
5451 * nss/hosts-lookup.c: Likewise.
5452 * stdio-common/getw.c
5453 * stdio-common/printf-prs.c: Likewise.
5454 * stdio-common/printf_fp.c: Likewise.
5455 * stdio-common/printf_size.c: Likewise.
5456 * stdio-common/putw.c: Likewise.
5457 * stdio-common/scanf.c: Likewise.
5458 * stdio-common/sprintf.c: Likewise.
5459 * stdio-common/tmpfile64.c: Likewise.
5460 * stdio-common/vfprintf.c: Likewise.
5461 * stdio-common/vfscanf.c: Likewise.
5462 * stdlib/strfmon.c: Likewise.
5463 * sunrpc/auth_des.c: Likewise.
5464 * sunrpc/auth_none.c: Likewise.
5465 * sunrpc/auth_unix.c: Likewise.
5466 * sunrpc/authdes_prot.c: Likewise.
5467 * sunrpc/authuxprot.c: Likewise.
5468 * sunrpc/clnt_perr.c: Likewise.
5469 * sunrpc/clnt_raw.c: Likewise.
5470 * sunrpc/clnt_tcp.c: Likewise.
5471 * sunrpc/clnt_udp.c: Likewise.
5472 * sunrpc/clnt_unix.c: Likewise.
5473 * sunrpc/key_call.c: Likewise.
5474 * sunrpc/key_prot.c: Likewise.
5475 * sunrpc/openchild.c: Likewise.
5476 * sunrpc/pm_getmaps.c: Likewise.
5477 * sunrpc/pm_getport.c: Likewise.
5478 * sunrpc/pmap_clnt.c: Likewise.
5479 * sunrpc/pmap_prot.c: Likewise.
5480 * sunrpc/pmap_prot2.c: Likewise.
5481 * sunrpc/pmap_rmt.c: Likewise.
5482 * sunrpc/rpc_cmsg.c: Likewise.
5483 * sunrpc/rpc_prot.c: Likewise.
5484 * sunrpc/svc_authux.c: Likewise.
5485 * sunrpc/svc_raw.c: Likewise.
5486 * sunrpc/svc_simple.c: Likewise.
5487 * sunrpc/svc_tcp.c: Likewise.
5488 * sunrpc/svc_udp.c: Likewise.
5489 * sunrpc/svc_unix.c: Likewise.
5490 * sunrpc/xdr.c: Likewise.
5491 * sunrpc/xdr_array.c: Likewise.
5492 * sunrpc/xdr_mem.c: Likewise.
5493 * sunrpc/xdr_rec.c: Likewise.
5494 * sunrpc/xdr_ref.c: Likewise.
5495 * sunrpc/xdr_stdio.c: Likewise.
5496 * sysdeps/generic/_strerror.c: Likewise.
5497 * sysdeps/generic/printf_fphex.c: Likewise.
5498 * sysdeps/generic/tmpfile.c: Likewise.
5499 * sysdeps/gnu/errlist.awk: Likewise.
5500 * sysdeps/gnu/errlist.c: Likewise.
5501
5502 * libio/Makefile (routines): Remove iosprint.
5503 * libio/iosprintf.c: Removed
5504
5505
5506 2002-02-24 Ulrich Drepper <drepper@redhat.com>
5507
5508 * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
5509 non_dynamic_init and exported now.
5510 * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
5511 * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
5512 !SHARED.
5513 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
5514 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
5515 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
5516
5517 2002-02-23 Ulrich Drepper <drepper@redhat.com>
5518
5519 * elf/dl-close.c (free_slotinfo): Check for end of list and return
5520 true in this case.
5521
5522 * locale/iso-639.def: Add language codes for Walloon.
5523
5524 * elf/dl-fini.c (_dl_fini): Print some final statistics on the
5525 total number of relocations performed.
5526
5527 * elf/sprof.c (load_profdata): If do_test provide information as
5528 to why loading failed.
5529 * elf/dl-profile.c (_dl_start_profile): Initialize all of
5530 hist_hdr.dimen.
5531
5532 * csu/set-init.c: Moved to...
5533 * sysdeps/mach/hurd/set-init.c: ...here. New file.
5534 * csu/Makefile: Don't compile set-init.
5535 * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
5536 * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
5537 to __libc_init.
5538 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
5539 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
5540 * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
5541 __libc_init.
5542 * misc/init-misc.c: Always export __init_misc. Don't define hooks for
5543 __libc_subinit.
5544
5545 2002-02-22 Ulrich Drepper <drepper@redhat.com>
5546
5547 * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
5548 * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
5549 * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
5550 (_dl_deallocate_tls): New function.
5551 * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
5552 _dl_deallocate_tls.
5553
5554 2002-02-21 Jakub Jelinek <jakub@redhat.com>
5555
5556 * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
5557 * stdio-common/tst-fseek.c (main): Add test for this.
5558
5559 2002-02-19 Ulrich Drepper <drepper@redhat.com.>
5560
5561 * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
5562
5563 2002-02-19 Jakub Jelinek <jakub@redhat.com>
5564
5565 * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
5566 pointer before dereferencing.
5567
5568 2002-02-18 Roland McGrath <roland@frob.com>
5569
5570 * sysdeps/mach/hurd/times.c: Fix typo in last change.
5571
5572 * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
5573 Use task_policy in place of task_priority.
5574
5575 * sysdeps/generic/bits/mman.h
5576 (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
5577 * sysdeps/mach/msync.c: New file.
5578
5579 * sysdeps/mach/powerpc/syscall.S: New file.
5580
5581 * mach/msg.c [MACH_MSG_OVERWRITE]
5582 (__mach_msg_trap, __mach_msg_overwrite): New functions.
5583 * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
5584
5585 * sysdeps/mach/configure.in: Check for clock.defs to put into
5586 mach_interface_list.
5587 * sysdeps/mach/configure: Regenerated.
5588
5589 * mach/Makefile (mach-machine): New variable, set from $(base-machine).
5590 ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
5591 ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
5592 Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
5593 (mach-shortcuts): Add device_read_overwrite_request,
5594 device_read_overwrite, vm_read_overwrite, thread_switch.
5595
5596 * configure.in (base_machine): Set to $machine by default.
5597 * configure: Regenerated.
5598
5599 * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
5600 or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
5601 * sysdeps/mach/configure: Regenerated.
5602 * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
5603
5604 * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
5605
5606 * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
5607
5608 * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
5609 Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
5610
5611 2002-02-17 Roland McGrath <roland@frob.com>
5612
5613 * sysdeps/mach/hurd/times.c
5614 [NO_CREATION_TIME] (startup_time): New static variable.
5615 [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
5616 (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
5617 creation_time from task_basic_info.
5618 (__times): Use __gettimeofday instead of __host_get_time.
5619
5620 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
5621 Use untyped Mach IPC message format.
5622
5623 * hurd/catch-exc.c: Include <assert.h>, missing from last change.
5624
5625 * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
5626 _S_catch_exception_raise_state_identity,
5627 _hurdsig_fault_catch_exception_raise_state,
5628 _hurdsig_fault_catch_exception_raise_state_identity.
5629
5630 * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
5631
5632 * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
5633 __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
5634
5635 * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
5636 `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
5637
5638 * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
5639 (fmh, unfmh): Define these functions only #if FMH. Otherwise define
5640 them as no-op macros.
5641 [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
5642 (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
5643
5644 * sysdeps/powerpc/dl-machine.h
5645 (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
5646
5647 * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
5648 Use untyped Mach IPC message format.
5649
5650 * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
5651 Handle untyped Mach IPC message formats.
5652
5653 * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
5654 Expect different argument conventions when this is defined.
5655 [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
5656 [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
5657 * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
5658 [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
5659 for OSF Mach variant.
5660 (faulted): Use mig_reply_error_t for REPLY.
5661 (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
5662 in __thread_set_exception_ports call.
5663 (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
5664 __mach_port_set_attributes in place of __mach_port_set_qlimit.
5665
5666 * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
5667 before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
5668 on Darwin, which includes bogons.
5669
5670 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
5671 variable LOADBASE so it's not declared when it's not used.
5672
5673 2002-02-16 Roland McGrath <roland@frob.com>
5674
5675 * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
5676 to use BI.creation_time.
5677
5678 * mach/Machrules (MIG): Add -x c to CPP value passed down.
5679
5680 * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
5681 * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
5682 * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
5683 host_page_size instead of vm_statistics.
5684
5685 * sysdeps/mach/Makefile (mach-before-compile): Don't include
5686 mach_interface.h here, since not all variants use that name.
5687
5688 * sysdeps/mach/configure.in: Add some checks for Mach headers
5689 to ensure a sane installation.
5690 (mach_interface_list): Define this variable by checking for .defs
5691 files found in various variants.
5692 * configure.in (mach_interface_list): AC_SUBST this.
5693 * config.make.in (mach-interface-list): New substituted variable.
5694 * mach/Makefile (user-interfaces): Define this using the value
5695 of $(mach-interface-list) instead of mach, mach4.
5696 Updated other references to mach_interface to use it as well.
5697
5698 * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
5699
5700 * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
5701 mig_reply_error_t for OSF Mach variant.
5702
5703 * mach/Makefile (routines): Remove bootprivport.
5704 * mach/bootprivport.c: File removed. It has never been used.
5705
5706 * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
5707 Grok the OSF flavor of message format.
5708 (mach_msg_destroy_port): For MAKE_SEND and
5709 MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
5710 no-senders notification.
5711
5712 2002-02-06 Roland McGrath <roland@frob.com>
5713
5714 * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
5715 to here if 2.0 compatibility enabled ...
5716 (libc: GLIBC_2.1.3): ... from here.
5717
5718 2002-02-15 Ulrich Drepper <drepper@redhat.com>
5719
5720 * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
5721 generation counter.
5722 * elf/dl-close.c (_dl_close): Likewise.
5723
5724 2002-02-14 Ulrich Drepper <drepper@redhat.com>
5725
5726 * elf/Makefile: Add rules to build and run tst-tls8.
5727 * elf/tst-tls8.c: New file.
5728 * elf/tst-tlsmod4.c: New file.
5729
5730 * stdlib/test-a64l.c (tests): Add more test cases.
5731
5732 * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
5733 Reported by Walter Harms <WHarms@bfs.de>.
5734
5735 2002-02-11 Jes Sorensen <jes@trained-monkey.org>
5736
5737 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
5738 definitions for struct sigcontext.
5739 Suggested by David Mosberger-Tang.
5740
5741 2002-02-13 Ulrich Drepper <drepper@redhat.com>
5742
5743 * elf/dl-close.c (remove_slotinfo): New function. Handles everything
5744 for removing reference of module in slotinfo list.
5745 (_dl_close): Use remove_slotinfo.
5746 * sysdeps/generic/dl-tls.c: General pretty printing.
5747 (oom): Define only if SHARED.
5748 (_dl_next_tls_modid): Correct starting point for the case we assume
5749 there is a gap. Add missing instruction grouping (doh!). Correct
5750 tests for reaching maximum index.
5751 * elf/Makefile: Add rules to build and run tst-tls7.
5752 * elf/tst-tls7.c: New file.
5753 * elf/tst-tlsmod3.c: New file.
5754
5755 * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
5756 USE_TLS.
5757 * elf/tst-tlsmod2.c: Likewise.
5758
5759 * elf/dl-close.c (_dl_close): When closing an object using TLS
5760 either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
5761 true. Increment dl_tls_generation only if we closed any TLS-using
5762 object.
5763 * elf/tst-tls6.c: New file.
5764 * elf/Makefile: Add rules to build and run tst-tls6.
5765
5766 * po/da.po: Update from translation team.
5767
5768 * locale/categories.def: Fix typo [PR libc/2948].
5769 * po/Makefile (BROKEN_LINGUAS): Works with current gettext
5770 [PR libc/2949].
5771 * locale/iso-4217.def: Update from official version [PR libc/2950].
5772 * glibcbug.in: Honor TMPDIR [PR libc/2951].
5773 * locale/programs/ld-collate.c (collate_finish): Bail out with a
5774 message if input is too confusion instead of using assert.
5775 (collate_read): Don't crash on unknown symbol [PR libc/2952].
5776 Patches by Alastair McKinstry <alastair@pdd.3com.com>.
5777
5778 * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
5779 * elf/tst-tls2.c: Likewise.
5780 * elf/tst-tls3.c: Likewise.
5781
5782 2002-02-13 Jakub Jelinek <jakub@redhat.com>
5783
5784 * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
5785
5786 2002-02-13 Ulrich Drepper <drepper@redhat.com>
5787
5788 * elf/dl-open.c (dl_open_worker): Only bump the generation counter
5789 if this is really necessary.
5790
5791 * elf/dl-close.c (_dl_close): Implement freeing entries in the
5792 slotinfo array.
5793 (free_mem): Free memory for the slotinfo array if possible.
5794
5795 2002-02-12 Andreas Schwab <schwab@suse.de>
5796
5797 * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
5798
5799 2002-02-12 Ulrich Drepper <drepper@redhat.com>
5800
5801 * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
5802 TLS_DTV_UNALLOCATE.
5803 (oom): New function.
5804 (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
5805 (_dl_determine_tlsoffset): Likewise.
5806 (_dl_allocate_tls): Likewise.
5807 (__TLS_GET_ADDR): Define if not already defined.
5808 (_dl_tls_symaddr): New function.
5809 (allocate_and_init): New function.
5810 (__tls_get_addr): Actually implement handling of generation counter
5811 and deferred allocation.
5812 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
5813 add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
5814 _dl_tls_generation.
5815 Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
5816 Declare _dl_tls_symaddr.
5817 * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
5818 SHARED.
5819 * include/link.h (struct link_map): Remove l_tls_nextimage and
5820 l_tls_previmage.
5821 * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
5822 instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
5823 (_dl_vsym): Likewise.
5824 * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
5825 layout.
5826 (dl_main): Allow PT_TLS be present for empty segment. Remove
5827 nextimage list handling. Instead add all modules using TLS to
5828 dl_tls_dtv_slotinfo_list.
5829 * elf/dl-open.c (dl_open_worker): After successfully loading all
5830 objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
5831 * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
5832 empty segment don't do anything. Remove handling of initimage list.
5833 * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
5834 (GLIBC_PRIVATE): Add _dl_tls_symaddr.
5835 * elf/dl-minimal.c: Define __libc_memalign.
5836 * elf/dl-support.c: Remove _dl_initimage_list. Add
5837 _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
5838 _dl_tls_generation.
5839 * include/stdlib.h: Declare __libc_memalign.
5840
5841 * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
5842 * elf/tst-tls4.c: New file.
5843 * elf/tst-tls5.c: New file.
5844 * elf/tst-tlsmod2.c: New file.
5845
5846 * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
5847
5848 * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
5849
5850 * elf/tst-tls1.c: Use test-skeleton.c.
5851 * elf/tst-tls2.c: Likewise.
5852 * elf/tst-tls3.c: Likewise.
5853
5854 * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
5855
5856 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
5857
5858 * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
5859
5860 2002-02-10 Ulrich Drepper <drepper@redhat.com>
5861
5862 * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
5863
5864 * elf/tst-tls3.c: New file.
5865 * elf/tst-tlsmod1.c: New file.
5866 * elf/Makefile: Add rules to build and run tst-tls3.
5867
5868 * sysdeps/i386/dl-machine.h: Include <tls.h>.
5869 (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
5870 TLS relocations.
5871
5872 * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
5873
5874 * po/fr.po: Update from translation team.
5875
5876 * elf/tls-macros.h: Add alternative macros for use in PIC.
5877
5878 * elf/dl-lookup.c: Include <tls.h>.
5879 * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
5880
5881 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
5882 required by passing pointer to last element of the list.
5883
5884 * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
5885 l_tls_initimage to a place where it actually is performed.
5886
5887 * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
5888 after globfree() calls.
5889
5890 * elf/dl-deps.c (struct openaux_args): Add open_mode element.
5891 (openaux): Pass open_mode as new last argument to _dl_map_object.
5892 (_dl_map_object_deps): Add new argument open_mode. Initialize
5893 open_mode element of args variable with it.
5894 * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
5895 _dl_map_object_deps.
5896 * elf/rtld.c (dl_main): Add zero as last parameter to
5897 _dl_map_object_deps call.
5898 * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
5899 * elf/nodlopen2.c: New file.
5900 * elf/nodlopenmod2.c: New file.
5901 * elf/Makefile: Add rules to build and run nodlopen2.
5902
5903 * elf/tst-tls1.c: Move TLS helper macros to...
5904 * elf/tls-macros.h: ...here. New file.
5905 * elf/tst-tls2.c: New file.
5906 * elf/Makefile (tests): Add tst-tls2.
5907 (distribute): Add tls-macros.h.
5908
5909 * po/sv.po: Update from translation team.
5910
5911 * elf/tst-tls1.c (main): Add complete set of tests. Split
5912 architecture specific definitions from the actual test code.
5913
5914 * po/tr.po: Update from translation team.
5915
5916 2002-02-09 Ulrich Drepper <drepper@redhat.com>
5917
5918 * elf/Makefile (tests): Add tst-tls1.
5919 * elf/tst-tls1.c: New file.
5920
5921 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
5922 alignment of TCB for now.
5923
5924 * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
5925 initialization image for the application itself.
5926
5927 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
5928 loop to initialize TLS block.
5929
5930 2002-02-08 Richard Henderson <rth@redhat.com>
5931
5932 * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
5933 _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
5934
5935 * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
5936
5937 2002-02-09 Jakub Jelinek <jakub@redhat.com>
5938
5939 * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
5940
5941 2002-02-08 Ulrich Drepper <drepper@redhat.com>
5942
5943 * po/ca.po: Update from translation team.
5944 * po/sk.po: Likewise.
5945
5946 * elf/rtld.c (_dl_start_final): Install DTV explicitly.
5947 (dl_main): Move dtv/static TLS handling before relocation.
5948 Unconditionally call _dl_tlsoffset. Call _dl_allocate_tls and
5949 TLS_INIT_TP to allocate and install the dtv/static TLS block.
5950 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
5951 so far uses TLS initialize GL(dl_tls_static_size) and
5952 GL(dl_tls_static_align) to account for the TCB.
5953 (_dl_allocate_tls): New function.
5954 * sysdeps/generic/ldsodefs.h (rtld_global): Add
5955 _dl_initial_dtv_malloced.
5956
5957 * configure.in: Test for __builtin_memset more realistically.
5958
5959 * csu/version.c (banner): If TLS support is available say so.
5960
5961 2002-02-04 H.J. Lu <hjl@gnu.org>
5962
5963 * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
5964 __attribute_used__.
5965 (__dl_runtime_resolve): Likewise.
5966
5967 * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
5968 declaration.
5969
5970 2001-11-15 H.J. Lu <hjl@gnu.org>
5971
5972 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
5973 <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
5974
5975 * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
5976
5977 2002-02-07 H.J. Lu <hjl@gnu.org>
5978
5979 * sysdeps/mips/atomicity.h (compare_and_swap): Remove
5980 ".set noreorder".
5981 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
5982 Likewise.
5983
5984 2002-02-07 Ulrich Drepper <drepper@redhat.com>
5985
5986 * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
5987
5988 * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
5989 ___tls_get_addr_internal.
5990 (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
5991
5992 * po/ko.po: Update from translation team.
5993
5994 2002-02-07 Jakub Jelinek <jakub@redhat.com>
5995
5996 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
5997 attribute, change __pad{1,2} type to unsigned int.
5998 (struct stat64): Remove packed attribute.
5999
6000 2002-02-07 Ulrich Drepper <drepper@redhat.com>
6001
6002 * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
6003
6004 2002-02-07 Andreas Schwab <schwab@suse.de>
6005
6006 * configure.in: Fix check for -zcombreloc.
6007
6008 2002-02-06 H.J. Lu <hjl@gnu.org>
6009
6010 * config.h.in (HAVE_BUILTIN_MEMSET): New.
6011 * configure.in: Check if __builtin_memset really works.
6012 * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
6013 __GNUC_PREREQ (2, 96) before using __builtin_memset.
6014
6015 2002-02-06 Jakub Jelinek <jakub@redhat.com>
6016
6017 * io/bug-ftw3.c (main): Don't try the test if root.
6018
6019 2002-02-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
6020
6021 * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
6022 constraints.
6023 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
6024 Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
6025 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
6026 Likewise.
6027 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
6028 a weak alias for __clone.
6029 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
6030 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
6031 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
6032 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
6033 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
6034 a weak alias for __mmap64.
6035
6036 2002-02-05 H.J. Lu <hjl@gnu.org>
6037
6038 * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
6039 (atomic_add): Likewise.
6040 (compare_and_swap): Likewise.
6041 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
6042
6043 2002-02-07 Ulrich Drepper <drepper@redhat.com>
6044
6045 * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
6046
6047 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
6048 alignment of the TCB and store total size and alignment of static
6049 TLS block in _dl_tls_static_size and _dl_tls_static_align.
6050 tls_index is a typedef.
6051 * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
6052 _dl_tls_static_align.
6053 * sysdeps/i386/dl-tls.h: tls_index is a typedef.
6054 * elf/dl-support.c: Define _dl_tls_static_size and
6055 _dl_tls_static_align.
6056
6057 2002-02-06 Ulrich Drepper <drepper@redhat.com>
6058
6059 * configure.in: Add --without-tls option.
6060 * sysdeps/i386/elf/configure.in: Don't check for TLS support if
6061 --without-tls is given.
6062
6063 * sysdeps/generic/dl-tls.c: Include <tls.h>.
6064
6065 * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
6066
6067 2002-02-06 Roland McGrath <roland@frob.com>
6068
6069 * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
6070 * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
6071
6072 * scripts/versions.awk: Improve error message for missing version.
6073 Each version inherits from the last one only if they have the same
6074 nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
6075 but not GLIBC_x and FOO_y.
6076
6077 * scripts/firstversions.awk: Handle libraries that don't have each
6078 particular version named in the third column of shlib-versions.
6079
6080 * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
6081
6082 2002-02-06 Ulrich Drepper <drepper@redhat.com>
6083
6084 * Versions.def [ld]: Add GLIBC_2.3.
6085 * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
6086 * elf/Makefile (dl-routines): Add dl-tls.
6087 (distribute): Add dl-tls.h.
6088 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
6089 _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
6090 Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
6091 * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
6092 along with the other info in the link map. Change queueing of init
6093 images for double linked list. Use _dl_next_tls_modid to compute
6094 l_tls_modid.
6095 * elf/rtld.c (_dl_start_final): Store alignment requirement
6096 along with the other info in rtld map and executable map.
6097 (dl_main): Add ld.so to the init image list if necessary. Compute
6098 final module ID with _dl_next_tls_modid.
6099 * include/link.h (struct link_map): Add l_tls_previmage and
6100 l_tls_align.
6101 * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
6102 * sysdeps/i386/elf/Versions: New file.
6103 * sysdeps/generic/dl-tls.c: New file.
6104 * sysdeps/generic/dl-tls.h: New file.
6105 * sysdeps/i386/dl-tls.h: New file.
6106
6107 2002-02-06 Roland McGrath <roland@frob.com>
6108
6109 * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
6110 * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
6111
6112 2002-01-05 Roland McGrath <roland@frob.com>
6113
6114 * sysdeps/mach/configure.in: New file.
6115 * sysdeps/mach/configure: New generated file.
6116
6117 * mach/Makefile (user-interfaces): Remove default_pager_helper.
6118 It has never been used by anything.
6119
6120 2002-02-06 H.J. Lu <hjl@gnu.org>
6121
6122 * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
6123 is included.
6124
6125 2002-02-06 Ulrich Drepper <drepper@redhat.com>
6126
6127 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
6128 attribute((packed)) to counter stupid people misusing gcc options.
6129 (struct stat64): Likewise.
6130
6131 2002-02-05 Ulrich Drepper <drepper@redhat.com>
6132
6133 * elf/rtld.c (dl_main): Correct indentation. Use bool as type for
6134 the variables which are used as booleans.
6135
6136 2002-02-06 Andreas Jaeger <aj@suse.de>
6137
6138 * include/libc-symbols.h (INTUSE): Renamed from INT.
6139 * elf/dl-deps.c: Change users.
6140 * sysdeps/generic/dl-sysdep.c: Likewise.
6141 * sysdeps/generic/dl-cache.c: Likewise.
6142 * elf/dl-reloc.c: Likewise.
6143 * elf/rtld.c: Likewise.
6144 * elf/dl-version.c: Likewise.
6145 * elf/dl-load.c: Likewise.
6146 * elf/dl-dst.h: Likewise.
6147 * elf/dl-init.c: Likewise.
6148 * elf/dl-error.c: Likewise.
6149 * elf/dl-fini.c: Likewise.
6150 * elf/dl-runtime.c: Likewise.
6151 * elf/do-lookup.h: Likewise.
6152
6153 * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
6154 definition.
6155 * stdio-common/_itowa.h: Likewise.
6156
6157 2002-02-05 Ulrich Drepper <drepper@redhat.com>
6158
6159 * elf/dl-minimal.c: Define _itoa_lower_digits.
6160
6161 * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
6162 DT_FLAGS set.
6163
6164 * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
6165 loading modules with the DF_STATIC_TLS flag set.
6166 * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
6167 element.
6168 * include/link.h (struct link_map): Add l_flags field.
6169 * elf/elf.h (DF_STATIC_TLS): New definition.
6170
6171 * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
6172 * dlfcn/bug-dlopen1.c: New file. By Bruno Haible.
6173
6174 * elf/rtld.c (process_dl_debug): Correct printing help message.
6175 * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
6176 for %s.
6177
6178 * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
6179 definition and pass &errno in use of this variable.
6180 Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
6181
6182 2002-02-04 Andreas Schwab <schwab@suse.de>
6183
6184 * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
6185 * locale/programs/charmap-dir.c: Wrap calls that output messages
6186 with WITH_CUR_LOCALE. Include "localedef.h" first.
6187 * locale/programs/charmap.c: Likewise.
6188 * locale/programs/ld-address.c: Likewise.
6189 * locale/programs/ld-collate.c: Likewise.
6190 * locale/programs/ld-ctype.c: Likewise.
6191 * locale/programs/ld-identification.c: Likewise.
6192 * locale/programs/ld-measurement.c: Likewise.
6193 * locale/programs/ld-messages.c: Likewise.
6194 * locale/programs/ld-monetary.c: Likewise.
6195 * locale/programs/ld-name.c: Likewise.
6196 * locale/programs/ld-numeric.c: Likewise.
6197 * locale/programs/ld-paper.c: Likewise.
6198 * locale/programs/ld-telephone.c: Likewise.
6199 * locale/programs/ld-time.c: Likewise.
6200 * locale/programs/linereader.c: Likewise.
6201 * locale/programs/linereader.h: Likewise.
6202 * locale/programs/localedef.c: Likewise.
6203 * locale/programs/locfile.c: Likewise.
6204 * locale/programs/repertoire.c: Likewise.
6205
6206 2002-02-05 Ulrich Drepper <drepper@redhat.com>
6207
6208 * elf/rtld.c (_dl_start_final): Determine load address to locate
6209 ehdr with GL(dl_rtld_map).l_map_start.
6210
6211 * po/ca.po: Update from translation team.
6212
6213 * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
6214 * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
6215 header entry.
6216 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
6217 _dl_tls_module_cnt.
6218 * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
6219
6220 2002-02-04 Ulrich Drepper <drepper@redhat.com>
6221
6222 * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
6223 * include/link.h (struct link_map): Add various members for TLS
6224 information.
6225 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
6226 _rtld_tlsoffset, add _dl_initimage_list.
6227 * sysdeps/i386/dl-lookupcfg.h: New file.
6228 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
6229 TLS relocation. When using TLS we now use RESOLVE_MAP.
6230 (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
6231 is used.
6232
6233 * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
6234 unused.
6235
6236 * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
6237 thread-pointer as soon as possible.
6238 * sysdeps/generic/ldsodefs.h: Include <tls.h>. Define first TLS
6239 elements in rtld_global.
6240 * sysdeps/generic/tls.h: New file.
6241 * elf/Makefile (distribute): Add tls.h.
6242 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
6243 relocations. Not complete yet.
6244
6245 * resolv/resolv.h: Allow user to define __need_res_state and only
6246 define __res_start structure then.
6247 * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
6248
6249 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
6250 dl_cpuclock_offset initialization to _dl_start_final.
6251 (_dl_show_auxv): Avoid unnecessary sign extension.
6252 * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
6253
6254 2002-02-03 Ulrich Drepper <drepper@redhat.com>
6255
6256 * config.h.in: Add HAVE_TLS_SUPPORT.
6257 * sysdeps/i386/elf/configure.in: New file.
6258
6259 2002-02-03 Andreas Schwab <schwab@suse.de>
6260
6261 * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
6262 * sysdeps/posix/writev.c: Use ssize_t for bytes_written. Fix comment.
6263
6264 2002-02-03 Thorsten Kukuk <kukuk@suse.de>
6265
6266 * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
6267 alloca if the memory reqirements are too high.
6268
6269 2002-02-03 Ulrich Drepper <drepper@redhat.com>
6270
6271 * elf/dl-load.c (decompose_rpath): Avoid using strstr.
6272 * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
6273 the former is available anyway and speed isn't important here.
6274 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
6275 * elf/dl-version.c (match_symbol): Likewise.
6276 (_dl_check_map_versions): Likewise.
6277 * elf/rtld.c (process_envvars): Likewise.
6278 (print_statistics): Likewise.
6279 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
6280 * elf/dl-minimal.c (_itoa): Always define it. Make it work for all
6281 bases. Add assert to catch uses of unimplemented features.
6282 (__strsep): Add assert to catch uses of unimplemented features.
6283 * elf/dl-object.c (_dl_new_object): Don't use rawmemchr. Use strchr
6284 and avoid inline optimization.
6285 * elf/rtld.c (process_envvars): Likewise.
6286 * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
6287 * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
6288 * elf/rtld.c (dl_main): Avoid strsep inline optimization.
6289
6290 2002-02-02 Ulrich Drepper <drepper@redhat.com>
6291
6292 * stdio-common/_itoa.h: Minor simplifications of the code.
6293 * stdio-common/_itoa.c: Likewise.
6294
6295 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
6296 instead of _dl_printf for debugging info output.
6297
6298 * manual/examples/mkfsock.c (make_named_socket): Make sure name is
6299 always NUL-terminated. Patch by Chris D. Sloan <cds@cs.hmc.edu>.
6300
6301 2002-02-01 H.J. Lu <hjl@gnu.org>
6302
6303 * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
6304 (atomic_add): Likewise.
6305 (compare_and_swap): Return 0 only when failed to compare. Use
6306 branch likely.
6307
6308 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
6309 branch likely.
6310
6311 2002-02-03 kaz Kojima <kkojima@rr.iij4u.or.jp>
6312
6313 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
6314
6315 2002-02-02 Ulrich Drepper <drepper@redhat.com>
6316
6317 * elf/dl-minimal.c (__strsep): New minimal implementation.
6318
6319 2002-02-02 Paul Eggert <eggert@twinsun.com>
6320
6321 * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
6322 (__mktime_internal): If no tm_isdst is requested, prefer solutions
6323 with tm_isdst > 0 when the requested time falls within a
6324 spring-forward gap [PR libc/2894].
6325
6326 2002-02-03 Andreas Schwab <schwab@suse.de>
6327
6328 * stdio-common/tst-rndseek.c: Increase timeout.
6329
6330 2002-02-02 Ulrich Drepper <drepper@redhat.com>
6331
6332 Change ld.so to not use functions which are exported. One cannot
6333 interpose them anyway. Use INT() to mark uses, INTDEF() to mark
6334 definitions.
6335 * include/libc-symbols.h: Define INT and INTDEF.
6336 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
6337 _dl_signal_error_internal, _dl_map_object_internal,
6338 _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
6339 _dl_lookup_versioned_symbol_internal,
6340 _dl_relocate_object_internal, _dl_debug_state_internal,
6341 _dl_start_profile_internal, and _dl_unload_cache_internal.
6342 * include/dlfcn.h: Declare _dl_catch_error_internal.
6343 * elf/rtld.c: Use INT for calls to any of the *_internal functions
6344 above. Add INTDEF to function definitions.
6345 * elf/dl-debug.c: Likewise.
6346 * elf/dl-deps.c: Likewise.
6347 * elf/dl-dst.h: Likewise.
6348 * elf/dl-error.c: Likewise.
6349 * elf/dl-fini.c: Likewise.
6350 * elf/dl-init.c: Likewise.
6351 * elf/dl-load.c: Likewise.
6352 * elf/dl-lookup.c: Likewise.
6353 * elf/dl-misc.c: Likewise.
6354 * elf/dl-open.c: Likewise.
6355 * elf/dl-profile.c: Likewise.
6356 * elf/dl-reloc.c: Likewise.
6357 * elf/dl-runtime.c: Likewise.
6358 * elf/dl-version.c: Likewise.
6359 * elf/do-lookup.h: Likewise.
6360 * sysdeps/generic/dl-cache.c: Likewise.
6361 * sysdeps/generic/dl-sysdep.c: Likewise.
6362 * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
6363 instead of _dl_init.
6364 * sysdeps/arm/dl-machine.h: Likewise.
6365 * sysdeps/cris/dl-machine.h: Likewise.
6366 * sysdeps/hppa/dl-machine.h: Likewise.
6367 * sysdeps/i386/dl-machine.h: Likewise.
6368 * sysdeps/ia64/dl-machine.h: Likewise.
6369 * sysdeps/m68k/dl-machine.h: Likewise.
6370 * sysdeps/mips/dl-machine.h: Likewise.
6371 * sysdeps/mips/mips64/dl-machine.h: Likewise.
6372 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6373 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6374 * sysdeps/sh/dl-machine.h: Likewise.
6375 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
6376 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
6377 * sysdeps/x86_64/dl-machine.h: Likewise.
6378 * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
6379
6380 * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
6381 and _dl_debug_initialize.
6382
6383 * elf/dl-object.c (_dl_new_object): Avoid using strrchr. We have
6384 more information.
6385 * elf/rtld.c (dl_main): Avoid strrchr.
6386 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
6387 result of readlink. Search from the back for '/'.
6388
6389 * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
6390 strncpy if possible.
6391
6392 * sysdeps/generic/dl-environ.c (unsetenv): Optimize. Don't use
6393 strncmp.
6394 * elf/dl-load.c (is_dst): Optimize. Don't call strncmp twice.
6395 * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
6396 strspn, and strcspn.
6397 (process_envvars): Don't use strcspn.
6398
6399 * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
6400 (_dl_dst_substitute): Likewise.
6401
6402 2002-02-01 Ulrich Drepper <drepper@redhat.com>
6403
6404 * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
6405 code which is never used when relocating ld.so itself.
6406
6407 * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
6408 starting ld.so itself. Move l_addr variable initialization closer
6409 to use.
6410 (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
6411
6412 2002-02-01 Jakub Jelinek <jakub@redhat.com>
6413
6414 * Versions.def (libc): Add GLIBC_PRIVATE.
6415 (libdb, libnss_db, libdb1): Remove.
6416 (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
6417 libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
6418 (libpthread): Add GLIBC_PRIVATE.
6419 (libresolv): Likewise, remove GLIBC_2.1.
6420 (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
6421 GLIBC_2.2.3, GLIBC_2.3.
6422 * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
6423 * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
6424 _dl_sym, _dl_vsym): Likewise.
6425 (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
6426 _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
6427 _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
6428 _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
6429 _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
6430 _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
6431 _dl_relocate_object, _dl_signal_error, _dl_start_profile,
6432 _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
6433 Likewise.
6434 (_dl_object_relocation_scope): Remove.
6435 * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
6436 * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
6437 __gconv_cache): Move to GLIBC_PRIVATE.
6438 * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
6439 __internal_setnetgrent): Likewise.
6440 * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
6441 __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
6442 * locale/Versions (__collate_element_hash, __collate_element_strings,
6443 __collate_symbol_classes, __collate_symbol_hash,
6444 __collate_symbol_strings, _nl_current_LC_COLLATE,
6445 _nl_current_LC_CTYPE): Likewise.
6446 * misc/Versions (__libc_fsync, __libc_msync): Likewise.
6447 * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
6448 (libnss_nis, libnss_nisplus): Likewise.
6449 * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
6450 _nss_files_parse_spent): Move to GLIBC_PRIVATE.
6451 (libnss_files): Move all symbols to GLIBC_PRIVATE.
6452 * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
6453 __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
6454 __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
6455 * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
6456 __ns_get16, __ns_samename): Likewise.
6457 (libnss_dns): Move all symbols to GLIBC_PRIVATE.
6458 * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
6459 GLIBC_PRIVATE.
6460 * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
6461 __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
6462 __libc_connect): Likewise.
6463 * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
6464 Likewise.
6465 * stdlib/Versions (__libc_system): Likewise.
6466 * sunrpc/Versions (__rpc_thread_destroy): Likewise.
6467 * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
6468 * sysdeps/ia64/fpu/Versions: Likewise.
6469 * sysdeps/ia64/Versions: Likewise.
6470 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
6471 * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
6472 to GLIBC_PRIVATE.
6473 * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
6474 * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
6475 __libc_sigaction): Likewise.
6476 * termios/Versions (__libc_tcdrain): Likewise.
6477
6478 * misc/sys/cdefs (__attribute_noinline__): Define.
6479 * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
6480 __attribute_noinline__.
6481
6482 * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
6483 * elf/dl-xstat64.c: New file.
6484 * elf/dl-fxstat64.c: New file.
6485 * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
6486 don't export __fxstat64 at multiple versions.
6487 * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
6488 * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
6489
6490 2002-01-18 Isamu Hasegawa <isamu@yamato.ibm.com>
6491
6492 * locale/program/ld-collate.c (collate_finish): Assign a wide
6493 char collation sequence value to multi character collating
6494 elements, and avoid over writing by non-character elements.
6495
6496 2002-02-01 Ulrich Drepper <drepper@redhat.com>
6497
6498 * elf/Makefile (distribute): Add dl-procinfo.c.
6499 * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
6500 * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
6501
6502 2002-02-01 Jakub Jelinek <jakub@redhat.com>
6503
6504 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
6505 definition.
6506 * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
6507 _rtld_global struct.
6508 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
6509 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
6510 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
6511 * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
6512 * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
6513 _dl_fpu_control_set): Remove unused externs.
6514 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
6515 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
6516 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
6517 related variables in _rtld_global struct.
6518 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
6519 * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
6520 unused extern.
6521
6522 2002-02-01 Ulrich Drepper <drepper@redhat.com>
6523
6524 * sysdeps/generic/dl-procinfo.c: New file.
6525
6526 2002-02-01 Andreas Schwab <schwab@suse.de>
6527
6528 * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
6529
6530 2002-02-01 Ulrich Drepper <drepper@redhat.com>
6531
6532 * elf/rtld.c (_dl_start): Mark as internal_function.
6533 * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
6534 in register.
6535 (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
6536 General pretty printing.
6537
6538 2002-01-31 Ulrich Drepper <drepper@redhat.com>
6539
6540 * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
6541 * elf/dl-reloc.c: Pretty printing.
6542 * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
6543 procinfo-related variables in rtld_global struct.
6544 * elf/dl-support.c: Likewise.
6545 * elf/rtld.c: Likewise.
6546 * sysdeps/i386/i686/Makefile: Likewise.
6547 * sysdeps/i386/i686/hp-timing.c: Likewise.
6548 * sysdeps/i386/i686/hp-timing.h: Likewise.
6549 * sysdeps/ia64/Makefile: Likewise.
6550 * sysdeps/ia64/hp-timing.c: Likewise.
6551 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
6552 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
6553 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
6554 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
6555 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
6556 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
6557 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
6558 * sysdeps/x86_64/Makefile: Likewise.
6559
6560 * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
6561 _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
6562 _dl_debug_fd to rtld_global.
6563 * elf/Versions: Likewise.
6564 * elf/dl-close.c: Likewise.
6565 * elf/dl-iteratephdr.c: Likewise.
6566 * elf/dl-lookup.c: Likewise.
6567 * elf/dl-misc.c: Likewise.
6568 * elf/dl-open.c: Likewise.
6569 * elf/dl-support.c: Likewise.
6570 * elf/do-lookup.h: Likewise.
6571 * elf/rtld.c: Likewise.
6572 * sysdeps/generic/dl-cache.c: Likewise.
6573 * sysdeps/generic/dl-sysdep.c: Likewise.
6574 * sysdeps/ia64/Versions: Likewise.
6575 * sysdeps/unix/clock_gettime.c: Likewise.
6576 * sysdeps/unix/clock_settime.c: Likewise.
6577 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
6578 * sysdeps/sparc/Versions: Removed.
6579 * sysdeps/i386/i686/Versions : Removed.
6580 * sysdeps/x86_64/Versions: Removed.
6581 * configure.in: Define HAVE_PROTECTED if .protected is available.
6582 * config.h.in: Add entry for HAVE_PROTECTED.
6583
6584 2002-01-31 Jakub Jelinek <jakub@redhat.com.
6585
6586 * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
6587 code in struct _rtld_global. Export this struct, remove all
6588 exports for the signal variables.
6589 * sysdeps/arm/dl-machine: Likewise.
6590 * sysdeps/generic/dl-origin: Likewise.
6591 * sysdeps/generic/dl-sysdep: Likewise.
6592 * sysdeps/generic/dl-cache: Likewise.
6593 * sysdeps/hppa/dl-fptr: Likewise.
6594 * sysdeps/hppa/dl-machine: Likewise.
6595 * sysdeps/cris/dl-machine: Likewise.
6596 * sysdeps/i386/dl-machine: Likewise.
6597 * sysdeps/ia64/dl-machine: Likewise.
6598 * sysdeps/m68k/dl-machine: Likewise.
6599 * sysdeps/mach/hurd/dl-sysdep: Likewise.
6600 * sysdeps/mips/mips64/dl-machine: Likewise.
6601 * sysdeps/mips/dl-machine: Likewise.
6602 * sysdeps/powerpc/elf/libc-start: Likewise.
6603 * sysdeps/powerpc/dl-machine: Likewise.
6604 * sysdeps/powerpc/dl-start: Likewise.
6605 * sysdeps/sparc/sparc32/dl-machine: Likewise.
6606 * sysdeps/sparc/sparc64/dl-machine: Likewise.
6607 * sysdeps/sh/dl-machine: Likewise.
6608 * sysdeps/s390/s390-32/dl-machine: Likewise.
6609 * sysdeps/s390/s390-64/dl-machine: Likewise.
6610 * sysdeps/unix/sysv/aix/libc-start: Likewise.
6611 * sysdeps/unix/sysv/aix/start-libc: Likewise.
6612 * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
6613 * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
6614 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
6615 * sysdeps/x86_64/dl-machine: Likewise.
6616
6617 2002-01-31 Ulrich Drepper <drepper@redhat.com>
6618
6619 * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
6620 are too high.
6621
6622 2002-01-31 Andreas Schwab <schwab@suse.de>
6623
6624 * sysdeps/posix/readv.c: Check for ssize_t overflow.
6625
6626 2002-01-31 Andreas Schwab <schwab@suse.de>
6627
6628 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
6629 reference to _dl_pagesize.
6630
6631 2002-01-30 Ulrich Drepper <drepper@redhat.com>
6632
6633 * Versions.def [ld]: Add GLIBC_2.3.
6634 * elf/dl-addr.c: Move global variables for SHARED code in struct
6635 _rtld_global. Export this struct, remove all exports for the
6636 signal variables.
6637 * elf/dl-close.c: Likewise.
6638 * elf/dl-conflict.c: Likewise.
6639 * elf/dl-debug.c: Likewise.
6640 * elf/dl-deps.c: Likewise.
6641 * elf/dl-dst.h: Likewise.
6642 * elf/dl-error.c: Likewise.
6643 * elf/dl-fini.c: Likewise.
6644 * elf/dl-init.c: Likewise.
6645 * elf/dl-iteratephdr.c: Likewise.
6646 * elf/dl-libc.c: Likewise.
6647 * elf/dl-load.c: Likewise.
6648 * elf/dl-lookup.c: Likewise.
6649 * elf/dl-minimal.c: Likewise.
6650 * elf/dl-object.c: Likewise.
6651 * elf/dl-open.c: Likewise.
6652 * elf/dl-profile.c: Likewise.
6653 * elf/dl-profstub.c: Likewise.
6654 * elf/dl-reloc.c: Likewise.
6655 * elf/dl-runtime.c: Likewise.
6656 * elf/dl-support.c: Likewise.
6657 * elf/dl-sym.c: Likewise.
6658 * elf/dl-version.c: Likewise.
6659 * elf/do-lookup.h: Likewise.
6660 * elf/do-rel.h: Likewise.
6661 * elf/dynamic-link.h: Likewise.
6662 * elf/rtld.c: Likewise.
6663 * sysdeps/generic/dl-cache.c: Likewise.
6664 * sysdeps/generic/dl-sysdep.c: Likewise.
6665 * sysdeps/generic/ldsodefs.h: Likewise.
6666 * sysdeps/generic/libc-start.c: Likewise.
6667 * sysdeps/i386/dl-machine.h: Likewise.
6668 * sysdeps/ia64/dl-fptr.c: Likewise.
6669 * sysdeps/ia64/dl-machine.h: Likewise.
6670 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
6671 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
6672 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
6673 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
6674 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
6675 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
6676 * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
6677 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
6678
6679 2002-01-29 Ulrich Drepper <drepper@redhat.com>
6680
6681 * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
6682 to avoid warning
6683 (DL_STATIC_FUNCTION_ADDRESS): Likewise.
6684
6685 * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
6686 SHARED version.
6687 * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
6688
6689 * elf/rtld.c (_dl_start): Use __builtin_memset if available.
6690
6691 2002-01-29 Ben Collins <bcollins@debian.org>
6692
6693 * string/bits/string2.h (__mempcpy): Protect size arg for
6694 addition when using __builtin_memcpy.
6695
6696 2002-01-29 Ulrich Drepper <drepper@redhat.com>
6697
6698 * stdlib/Makefile (tests): Add tst-qsort.
6699 * stdlib/tst-qsort.c: New file. Written by Paul Eggert.
6700
6701 * manual/signal.texi (Process Signal Mask): Document that
6702 pthread_sigmask, not sigprocmask, must be used in MT programs.
6703 Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
6704
6705 * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
6706 found.
6707 * misc/Makefile (tests): Add tst-hsearch.
6708 * misc/tst-hsearch.c: New file.
6709
6710 2002-01-18 Wolfram Gloger <wg@malloc.de>
6711
6712 * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
6713 * malloc/malloc.h: Likewise.
6714 * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
6715 * malloc/arena.c: New file.
6716 * malloc/hooks.c: New file.
6717 * malloc/tst-mallocstate.c: New file.
6718 * malloc/Makefile: Add new testcase tst-mallocstate.
6719 Add arena.c and hooks.c to distribute. Fix commented CPPFLAGS.
6720
6721 2002-01-28 Ulrich Drepper <drepper@redhat.com>
6722
6723 * stdlib/msort.c: Remove last patch. The optimization violates the
6724 same rule which qsort.c had problems with.
6725
6726 2002-01-27 Paul Eggert <eggert@twinsun.com>
6727
6728 * stdlib/qsort.c (_quicksort): Do not apply the comparison function
6729 to a pivot element that lies outside the array to be sorted, as
6730 ISO C99 requires that the comparison function be called only with
6731 addresses of array elements [PR libc/2880].
6732
6733 2002-01-28 Ulrich Drepper <drepper@redhat.com>
6734
6735 * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
6736 for SHARED code. Reported by Ben Collins <bcollins@debian.org>.
6737
6738 * timezone/asia: Update from tzdata2002b.
6739 * timezone/australasia: Likewise.
6740 * timezone/backward: Likewise.
6741 * timezone/europe: Likewise.
6742 * timezone/leapseconds: Likewise.
6743 * timezone/iso3166.tab: Likewise.
6744 * timezone/zone.tab: Likewise.
6745
6746 2002-01-23 Richard Henderson <rth@redhat.com>
6747
6748 * sysdeps/alpha/Makefile (pic-ccflag): New variable.
6749
6750 2002-01-28 Ulrich Drepper <drepper@redhat.com>
6751
6752 * string/strxfrm.c: Allocate one more byte for rulearr and clear
6753 this element [PR libc/2855].
6754
6755 * string/strcoll.c: Handle zero-length arguments specially
6756 [PR libc/2856].
6757
6758 2002-01-23 Jakub Jelinek <jakub@redhat.com>
6759
6760 * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
6761 __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
6762 short lengths and constant src.
6763 (strcpy): Don't optimize for gcc 3.0+.
6764 (__stpcpy): For gcc 3.0+, don't use
6765 __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
6766 for short string literal src.
6767
6768 2002-01-23 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
6769
6770 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
6771 Set for arm, too.
6772
6773 2001-01-22 Paul Eggert <eggert@twinsun.com>
6774
6775 * manual/llio.texi (Linked Channels, Cleaning Streams):
6776 Make it clearer that a just-opened input stream might need cleaning.
6777
6778 2002-01-21 H.J. Lu <hjl@gnu.org>
6779
6780 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
6781 Don't use label at end of compound statement.
6782
6783 2002-01-28 Stephen L Moshier <moshier@mediaone.net>
6784
6785 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
6786 Remove test for negative integer arg; sin_pi does it correctly.
6787
6788 2002-01-20 Ulrich Drepper <drepper@redhat.com>
6789
6790 * nscd/Makefile (distribute): Filter out xmalloc.c.
6791
6792 2002-01-19 Ulrich Drepper <drepper@redhat.com>
6793
6794 * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
6795 Set offset if read end wasn't the buffer end.
6796 (_IO_file_seekoff_mmap): New function.
6797 (_IO_file_xsgetn_mmap): New function.
6798 (_IO_file_jumps_mmap): Use the two new functions.
6799 * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
6800 != end buffer.
6801 * libio/libioP.h: Declare _IO_file_seekoff_mmap and
6802 _IO_file_underflow_mmap.
6803 * libio/iofopen.c: Don't position file descriptor at end of file.
6804 * libio/tst-widetext.c: Improve error messages.
6805 * stdio-common/tst-rndseek.c: Likewise.
6806
6807 2002-01-18 Ulrich Drepper <drepper@redhat.com>
6808
6809 * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
6810 end of enum for !_GNU_SOURCE.
6811 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
6812 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
6813 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
6814 * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
6815 values unless _GNU_SOURCE.
6816
6817 * iconvdata/tcvn5712-1.c: Minor cleanups.
6818
6819 2002-01-18 Andreas Schwab <schwab@suse.de>
6820
6821 * sysdeps/unix/sysv/linux/configure.in
6822 (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
6823
6824 2002-01-16 Roger Sayle <roger@eyesopen.com>
6825
6826 * stdlib/msort.c (msort_with_tmp): Replace implementation with
6827 more efficient "Towers of Hanoi" mergesort.
6828 (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
6829 for generic, sizeof(int) and sizeof(long) variants respectively.
6830
6831 2002-01-17 Ulrich Drepper <drepper@redhat.com>
6832
6833 * manual/syslog.texi (openlog): Describe possible problems with
6834 first parameter.
6835 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
6836
6837 * nscd/nscd.c (drop_privileges): Removed. Adjust caller.
6838 * nscd/connections.c (begin_drop_privileges): New function.
6839 (finish_drop_privileges): New function.
6840 (nscd_init): Call the new functions which also install all groups
6841 for the server user.
6842 * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
6843 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
6844
6845 2002-01-17 H.J. Lu <hjl@gnu.org>
6846
6847 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
6848 `const' from `got'.
6849
6850 2002-01-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
6851
6852 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
6853 instructions for pointer operations.
6854 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
6855
6856 2002-01-17 Andreas Jaeger <aj@suse.de>
6857
6858 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
6859 __uint128_t build-in.
6860
6861 * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
6862 PowerPC, sync with 2.2 branch.
6863
6864 2002-01-16 Ulrich Drepper <drepper@redhat.com>
6865
6866 * posix/getconf.c: Update copyright year.
6867 * nss/getent.c: Likewise.
6868 * nscd/nscd_nischeck.c: Likewise.
6869 * iconv/iconvconfig.c: Likewise.
6870 * iconv/iconv_prog.c: Likewise.
6871 * elf/ldconfig.c: Likewise.
6872 * catgets/gencat.c: Likewise.
6873 * csu/version.c: Likewise.
6874 * elf/ldd.bash.in: Likewise.
6875 * elf/sprof.c (print_version): Likewise.
6876 * locale/programs/locale.c: Likewise.
6877 * locale/programs/localedef.c: Likewise.
6878 * nscd/nscd.c (print_version): Likewise.
6879 * debug/xtrace.sh: Likewise.
6880 * malloc/memusage.sh: Likewise.
6881 * malloc/mtrace.pl: Likewise.
6882
6883 2002-01-16 Andreas Schwab <schwab@suse.de>
6884
6885 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
6886 reliably remove "-ia64" from rtld name.
6887
6888 2002-01-16 Ulrich Drepper <drepper@redhat.com>
6889
6890 * iconvdata/gb18030.c: Bug fixes and support for more characters.
6891 Patch by Yu Shao <yshao@redhat.com>.
6892
6893 2002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com>
6894
6895 * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
6896 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
6897 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
6898
6899 2002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
6900
6901 * sysdeps/s390/fpu/libm-test-ulps: Update.
6902
6903 2002-01-11 Ulrich Drepper <drepper@redhat.com>
6904
6905 * elf/elf.h: Update x86 relocations.
6906
6907 2002-01-10 Ulrich Drepper <drepper@redhat.com>
6908
6909 * locale/programs/charmap.c (new_width): Check whether byte
6910 sequences for both ends of range have the same length.
6911
6912 2002-01-09 Jakub Jelinek <jakub@redhat.com>
6913
6914 * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
6915
6916 2002-01-09 Jakub Jelinek <jakub@redhat.com>
6917
6918 * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
6919 string literals.
6920 (__full_ieee754_sqrt): Add __attribute_used__.
6921
6922 2002-01-10 Ulrich Drepper <drepper@redhat.com>
6923
6924 * sysdeps/generic/group_member.c (__group_member): Also check
6925 groups[0] [PR libc/2781].
6926
6927 2002-01-08 Ulrich Drepper <drepper@redhat.com>
6928
6929 * Makefile (distribute): Add scripts/cpp.
6930 * elf/Makefile (distribute): Add reldep6mod[01234].c,
6931 unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
6932 unwind-dw2-fde.h, and dwarf2.h.
6933 * sysdeps/unix/bsd/bsd4.4/Dist: New file.
6934 * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
6935 * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
6936 * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
6937
6938 2002-01-07 Roland McGrath <roland@frob.com>
6939
6940 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
6941 volatile on type of ARGC so the compiler doesn't get clever.
6942
6943 2002-01-07 Andreas Jaeger <aj@suse.de>
6944
6945 * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
6946 * sysdeps/i386/bits/byteswap.h: Likewise.
6947 * sysdeps/ia64/bits/byteswap.h: Likewise.
6948 * sysdeps/m68k/bits/byteswap.h: Likewise.
6949 * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
6950 * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
6951
6952 2002-01-02 Bruno Haible <bruno@clisp.org>
6953
6954 * intl/plural.y: Fix %expect count.
6955
6956 2002-01-03 Jakub Jelinek <jakub@redhat.com>
6957
6958 * elf/Makefile (routines, shared-only-routines): Add
6959 unwind-dw2-fde-glibc instead of unwind-dw2-fde.
6960 * elf/elf.h (PT_GNU_EH_FRAME): Define.
6961 * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
6962 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
6963 Optimize if .eh_frame section contains no FDEs.
6964 (__register_frame, __deregister_frame_info_bases,
6965 __deregister_frame): Likewise.
6966 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
6967 DW_CFA_restore handling.
6968
6969 2002-01-07 Stephen L Moshier <moshier@mediaone.net>
6970
6971 * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
6972
6973 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
6974 for x < 0.25 and restore original range reduction method.
6975 (__ieee754_lgammal_r): Make sure signgam is set before returning.
6976
6977 2002-01-07 Ulrich Drepper <drepper@redhat.com>
6978
6979 * libio/fileops.c (_IO_file_underflow_mmap): New function.
6980 (_IO_file_close_mmap): New function.
6981 (_IO_file_jumps_mmap): New variable.
6982 * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
6983 trying to convert rest of byte buffer.
6984 (_IO_wfile_underflow_mmap): New function.
6985 (_IO_wfile_jumps_mmap): New variable.
6986 * libio/iofopen.c (__fopen_maybe_mmap): New function.
6987 (__fopen_internal): New function. Split out from _IO_new_fopen.
6988 (_IO_new_fopen): Call __fopen_internal.
6989 * libio/iofopen64.c: Just call __fopen_internal.
6990 * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
6991 successfully.
6992 * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
6993 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
6994 _IO_file_close_mmap.
6995
6996 * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
6997 * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
6998
6999 * stdio-common/Makefile (tests): Add tst-rndseek.
7000 * stdio-common/tst-rndseek.c: New file.
7001
7002 2002-01-05 Roland McGrath <roland@frob.com>
7003
7004 * config.h.in (HAVE_MIG_RETCODE): New #undef.
7005 * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
7006 swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
7007 * sysdeps/mach/hurd/configure: Regenerated.
7008
7009 2002-01-03 Ulrich Drepper <drepper@redhat.com>
7010
7011 * elf/elf.h: Add more TLS definitions.
7012
7013 2002-01-02 Ulrich Drepper <drepper@redhat.com>
7014
7015 * include/features.h (__GLIBC_MINOR__): Bump to 3.
7016
7017 2002-01-02 Roland McGrath <roland@frob.com>
7018
7019 * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
7020 __sigisemptyset. Don't use MASK uninitialized.
7021
7022 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
7023 * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
7024 * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
7025 __sigdelset, __sigaddset, __sigorset.
7026
7027 * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
7028 * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
7029
7030 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
7031 _hurd_ports is null.
7032
7033 * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
7034 for old CMU and new OSF Mach interface flavors.
7035 * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
7036 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
7037
7038 * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
7039
7040 * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
7041 Pass extra arguments to task_create for OSF variant.
7042 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
7043
7044 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
7045 conditional on [HAVE_AUX_VECTOR].
7046
7047 * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
7048 mach_msg_timeout_t as type of final argument.
7049
7050 * hurd/privports.c (__get_privileged_ports):
7051 Change host_priv_t to mach_port_t in argument type.
7052 * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
7053 Update decls.
7054
7055 * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
7056 multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H].
7057 * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
7058 * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
7059 * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
7060 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
7061
7062 2002-01-01 Roland McGrath <roland@frob.com>
7063
7064 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
7065
7066 2002-01-01 Ulrich Drepper <drepper@redhat.com>
7067
7068 * include/stdlib.h: Define inlines for the _l variants of the strto*
7069 functions.
7070
7071 2002-01-01 Roland McGrath <roland@frob.com>
7072
7073 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
7074
7075 * mach/Machrules (MIG): Set CPP as well as CC.
7076
7077 2001-12-31 Ulrich Drepper <drepper@redhat.com>
7078
7079 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
7080 locale to parse /proc/loadavg [PR libc/2760].
7081
7082 2001-12-31 Jakub Jelinek <jakub@redhat.com>
7083
7084 * elf/dl-conflict.c: Include sys/param.h.
7085 (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
7086 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
7087 warning.
7088 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
7089 literals to avoid warnings.
7090
7091 2001-12-31 Andreas Jaeger <aj@suse.de>
7092
7093 * configure.in: Don't check for gsed since we do not use it anywhere.
7094
7095 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
7096
7097 * io/fts.c: Update from BSD to fix memory leaks.
7098
7099 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
7100
7101 * crypt/md5-crypt.c: Realloc error handling memory leak fix.
7102 * elf/chroot_canon.c: Likewise.
7103 * elf/dl-object.c: Likewise.
7104 * iconv/iconv_charmap.c: Likewise.
7105 * iconv/iconv_prog.c: Likewise.
7106 * libio/iogetdelim.c: Likewise.
7107 * locale/lc-time.c: Likewise.
7108 * stdlib/canonicalize.c: Likewise.
7109 * sunrpc/svc.c: Likewise.
7110 * sysdeps/generic/glob.c: Likewise.
7111
7112 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
7113
7114 * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
7115 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
7116 remove high order bit from the program counter.
7117 * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
7118
7119 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
7120
7121 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
7122 unnecessary code and add missing reloc types.
7123 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
7124 case for reloc type R_390_NONE.
7125
7126 2001-12-28 Andreas Jaeger <aj@suse.de>
7127
7128 * io/bug-ftw3.c: Include string.h for prototypes.
7129
7130 * crypt/md5test.c (main): Remove unused variable.
7131
7132 * dlfcn/modstatic.c: Add prototype to avoid warning.
7133
7134 2001-12-26 Roland McGrath <roland@frob.com>
7135
7136 * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
7137 check only (SS->pending & MASK) for the signal to return.
7138 From Jeroen Dekkers <jeroen@dekkers.cx>.
7139
7140 2001-12-22 Roland McGrath <roland@frob.com>
7141
7142 * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
7143 Use preprocessor #if conditionals instead of `if' to avoid
7144 warnings about divide by zero in dead code.
7145
7146 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
7147 _hurd_port_init, and __hurd_self_sigstate.
7148
7149 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
7150
7151 2001-12-21 Andreas Jaeger <aj@suse.de>
7152
7153 * elf/dblloadmod1.c: Add prototype to avoid warning.
7154 * elf/dblloadmod2.c: Likewise.
7155 * elf/dblloadmod3.c: Likewise.
7156 * elf/reldepmod5.c: Likewise.
7157 * elf/reldepmod6.c: Likewise.
7158
7159 * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
7160 for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
7161 used on all architectures.
7162
7163 * sunrpc/svc_tcp.c: Add noreturn attribute for
7164 svctcp_rendezvous_abort.
7165 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
7166
7167 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
7168 to avoid warning.
7169
7170 2001-12-19 Jakub Jelinek <jakub@redhat.com>
7171
7172 * manual/llio.texi (aio_fsync): Fix a typo.
7173 Patch by Tammy Fox <tfox@redhat.com>.
7174
7175 2001-12-18 Jakub Jelinek <jakub@redhat.com>
7176
7177 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
7178 stack bias from child stack pointer before passing it to clone syscall.
7179
7180 2001-12-18 Ulrich Drepper <drepper@redhat.com>
7181
7182 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
7183 _SC_TZNAME_MAX.
7184 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
7185 Reported by Thorsten Kukuk <kukuk@suse.de>.
7186
7187 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
7188 add some casts.
7189
7190 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
7191
7192 2001-12-18 Thorsten Kukuk <kukuk@suse.de>
7193
7194 * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
7195 conforming: return EBADF if file descriptor is invalid and EINVAL
7196 if file descriptor is no valid tty.
7197 * login/tst-grantpt.c: New file.
7198 * login/Makefile (tests): Add tst-grantpt.
7199
7200 2001-12-17 Ulrich Drepper <drepper@redhat.com>
7201
7202 * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
7203 different than implemented in last patch.
7204 * io/bug-ftw3.c: Adjust test for changed handling of
7205 inaccessibility of toplevel dir.
7206
7207 2001-12-16 Roland McGrath <roland@frob.com>
7208
7209 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
7210 * grp/initgroups.c (internal_getgrouplist): Likewise.
7211
7212 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
7213 `default:' to silence new GCC warning.
7214 Rewrite cast of lvalue to silence new GCC warning.
7215
7216 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
7217
7218 * sysdeps/mach/hurd/spawni.c: New file, by me with a
7219 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
7220
7221 2001-12-14 Ulrich Drepper <drepper@redhat.com>
7222
7223 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
7224 Patch by Stephen R. van den Berg.
7225
7226 * crypt/md5.h: Define md5_uintptr.
7227
7228 2001-12-13 Ulrich Drepper <drepper@redhat.com>
7229
7230 * libio/tst_swprintf.c (main): Add test for string argument with
7231 zero precision.
7232 * stdio-common/Makefile (tests): Add tst-sprintf.
7233 * stdio-common/tst-sprintf.c: New file.
7234
7235 2001-12-13 Andreas Schwab <schwab@suse.de>
7236
7237 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
7238 zero precision with wide character string format.
7239
7240 2001-12-13 Thorsten Kukuk <kukuk@suse.de>
7241
7242 * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
7243 but have a user supplied buffer, return the empty buffer, not NULL.
7244
7245 2001-12-13 Ulrich Drepper <drepper@redhat.com>
7246
7247 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
7248 Patch by Eric Sharkey <sharkey@netrics.com>.
7249
7250 * crypt/md5test.c (main): Add test for multiple calls to
7251 __md5_process_bytes to itererate over input string.
7252
7253 2001-12-12 Ulrich Drepper <drepper@redhat.com>
7254
7255 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
7256 from __nis_findfastest. Take timeout value from parameter.
7257 (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
7258 * nis/nis_intern.h: Define parameters controlling __nis_findfastest
7259 [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>.
7260
7261 2001-12-12 Andreas Jaeger <aj@suse.de>
7262
7263 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
7264 combreloc test so that it works in this case.
7265
7266 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
7267
7268 2001-12-12 NIIBE Yutaka <gniibe@m17n.org>
7269
7270 * sysdeps/sh/Makefile: New file.
7271 * sysdeps/sh/_mcount.S: New file.
7272 * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
7273 * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
7274
7275 2001-12-11 Ulrich Drepper <drepper@redhat.com>
7276
7277 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
7278 limitation [PR libc/2564].
7279
7280 2001-12-11 Jakub Jelinek <jakub@redhat.com>
7281
7282 * elf/Makefile (dl-routines): Add conflict.
7283 (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
7284 (ld.so): Add _begin local symbol.
7285 * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
7286 Define.
7287 * elf/dl-deps.c (_dl_build_local_scope): New.
7288 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
7289 of all libraries.
7290 * elf/do-rel.h (VALIDX): Define.
7291 (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
7292 lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations
7293 can be skipped.
7294 * elf/dl-conflict.c: New file.
7295 * elf/dl-lookup.c (_dl_debug_bindings): New.
7296 (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always
7297 non-NULL.
7298 (_dl_lookup_symbol_skip): Likewise.
7299 (_dl_lookup_versioned_symbol): Likewise.
7300 (_dl_lookup_versioned_symbol_skip): Likewise.
7301 * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
7302 define to ElfW(Rel).
7303 * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
7304 tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
7305 ranges.
7306 Don't adjust address dynamic tags if l_addr is 0.
7307 * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
7308 (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
7309 (VALIDX, ADDRIDX): Define.
7310 (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
7311 (dl_main): Print library list for LD_TRACE_PRELINKING.
7312 If prelinking information can be used, skip relocating libraries and
7313 call _dl_resolve_conflicts instead.
7314 (process_envvars): Handle LD_TRACE_PRELINKING envvar.
7315 * elf/dl-load.c (_dl_map_object): Don't create fake libs
7316 if LD_TRACE_PRELINKING.
7317 * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
7318 + DT_ADDRNUM.
7319 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
7320 (DL_DEBUG_PRELINK): Define.
7321 (_dl_resolve_conflicts): Add prototype.
7322
7323 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
7324 .plt for prelinked libraries where prelinking info cannot be used.
7325 (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
7326 section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
7327 * sysdeps/arm/bits/link.h: New file.
7328 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
7329 content of .got[1].
7330 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
7331 (ELF_MACHINE_PLT_REL): Define.
7332 (elf_machine_rela, elf_machine_rela_relative): New.
7333 (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
7334 of adjusting it if prelinked and prelinking cannot be used.
7335 * sysdeps/i386/bits/link.h: New file.
7336 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
7337 content of .got[1].
7338 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
7339 (ELF_MACHINE_PLT_REL): Define.
7340 (elf_machine_rela, elf_machine_rela_relative): New.
7341 (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
7342 of adjusting it if prelinked and prelinking cannot be used.
7343 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
7344 conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP
7345 to find out map for R_PPC_JMP_SLOT relocs.
7346 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
7347 (OPCODE_BA): Define.
7348 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
7349 libraries where prelinking info cannot be used.
7350 (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
7351 (elf_machine_fixup_plt): Call sparc_fixup_plt.
7352 (elf_machine_rela): Set value to 0 if relocating conflicts.
7353 Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
7354 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
7355 (sparc64_fixup_plt): Fix a typo.
7356 (elf_machine_rela): Set value to 0 if relocating conflicts.
7357 Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
7358 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
7359 libraries where prelinking info cannot be used.
7360 * sysdeps/sh/bits/link.h: New file.
7361 * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
7362 content of .got[1].
7363 (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
7364 of adjusting it if prelinked and prelinking cannot be used.
7365 * sysdeps/s390/s390-32/bits/link.h: New file.
7366 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
7367 Save original content of .got[1].
7368 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
7369 of adjusting it if prelinked and prelinking cannot be used.
7370 * sysdeps/s390/s390-64/bits/link.h: New file.
7371 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
7372 Save original content of .got[1].
7373 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
7374 of adjusting it if prelinked and prelinking cannot be used.
7375 * sysdeps/x86_64/bits/link.h: New file.
7376 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
7377 Save original content of .got[1].
7378 (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
7379 of adjusting it if prelinked and prelinking cannot be used.
7380
7381 2001-12-11 Ulrich Drepper <drepper@redhat.com>
7382
7383 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
7384 where appropriate instead of numbers. Little optimizations.
7385
7386 2001-12-10 Roland McGrath <roland@frob.com>
7387
7388 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
7389 set it.
7390
7391 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
7392 set to GLIBC_2.2.5, not GLIBC_2.2.4.
7393
7394 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
7395 Fix conditionals so this is set by default for stdio and not for libio.
7396 * sysdeps/mach/hurd/configure: Regenerated.
7397
7398 2001-12-10 Thorsten Kukuk <kukuk@suse.de>
7399
7400 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
7401
7402 2001-12-10 Ulrich Drepper <drepper@redhat.com>
7403
7404 * io/Makefile (tests): Add bug-ftw3.
7405 * io/bug-ftw3.c: New file.
7406
7407 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
7408 matches and GLOB_NOCHECK is set.
7409 * posix/globtest.sh: Correct expected result for NOCHECK test.
7410
7411 * po/ca.po: Update from translation team.
7412
7413 2001-12-09 Ulrich Drepper <drepper@redhat.com>
7414
7415 Implement transliteration of characters in strings of the locale
7416 definitions.
7417 * locale/programs/linereader.c: Adjust for additional parameter to
7418 lr_token.
7419 (get_string): If character <Uxxxx> is not found try to transliterate
7420 it.
7421 * locale/programs/ld-ctype.c: Adjust for additional parameter to
7422 lr_token. Add const to charmap parameter of all functions.
7423 (find_translit, find_translit2): New functions.
7424 * locale/programs/charmap.c: Adjust for additional parameter to
7425 lr_token.
7426 * locale/programs/repertoire.c: Likewise.
7427 * locale/programs/linereader.h: Likewise.
7428 * locale/programs/ld-address.c: Likewise. Add const to charmap
7429 parameter of all functions.
7430 * locale/programs/ld-collate.c: Likewise.
7431 * locale/programs/ld-identification.c: Likewise.
7432 * locale/programs/ld-measurement.c: Likewise.
7433 * locale/programs/ld-messages.c: Likewise.
7434 * locale/programs/ld-monetary.c: Likewise.
7435 * locale/programs/ld-name.c: Likewise.
7436 * locale/programs/ld-numeric.c: Likewise.
7437 * locale/programs/ld-paper.c: Likewise.
7438 * locale/programs/ld-paper.c: Likewise.
7439 * locale/programs/ld-telephone.c: Likewise.
7440 * locale/programs/ld-time.c: Likewise.
7441 * locale/programs/locfile.c: Likewise.
7442 * locale/programs/localedef.c: Likewise.
7443 * locale/programs/localedef.h: Likewise.
7444 * locale/programs/locfile.h: Likewise. Add declaration for
7445 find_translit.
7446 * locale/programs/simple-hash.c: Add const to first parameter of
7447 find_entry, iterate_table, and lookup.
7448 * locale/programs/simple-hash.h: Likewise.
7449 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
7450 instead.
7451 * include/locale.h: Define __LC_LAST.
7452 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
7453
7454 2001-12-07 Geoff Keating <geoffk@redhat.com>
7455
7456 * sysdeps/powerpc/Dist: Update for recent FP changes.
7457 * sysdeps/powerpc/fpu/Dist: Likewise.
7458
7459 2001-12-07 Andreas Schwab <schwab@suse.de>
7460
7461 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
7462
7463 2001-12-06 Geoff Keating <geoffk@redhat.com>
7464
7465 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
7466 save/restore functions here.
7467 (libm-support): Don't define these functions here.
7468 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
7469 functions here.
7470 * sysdeps/powerpc/fe_nomask.c: Move to...
7471 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
7472 * sysdeps/powerpc/fprrest.S: Move to...
7473 * sysdeps/powerpc/fpu/fprrest.S: ... here.
7474 * sysdeps/powerpc/fprsave.S: Move to...
7475 * sysdeps/powerpc/fpu/fprsave.S: ... here.
7476
7477 2001-12-06 Ulrich Drepper <drepper@redhat.com>
7478
7479 * sysdeps/unix/sysv/linux/opensock.c: New file.
7480
7481 2001-12-06 Geoff Keating <geoffk@redhat.com>
7482
7483 * config.make.in (with-fp): Define from configure.
7484 * configure.in: Substitute with_fp.
7485 * configure: Regenerate.
7486 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
7487 specified, and don't change FPU environment.
7488
7489 2001-12-06 Ulrich Drepper <drepper@redhat.com>
7490
7491 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
7492 * assert/assert.c: Check result of __asprintf call and don't use
7493 string if it failed.
7494 * assert/assert-perr.c: Likewise.
7495 * inet/rcmd.c: Likewise.
7496 * locale/programs/localedef.c (main): Check result of
7497 construct_output_path and exit if it failed.
7498 (construct_output_path): Check result of asprintf and mkdir calls and
7499 fail if they failed.
7500 * posix/getopt.c: Check result of __asprintf calls and fail if
7501 they failed.
7502 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
7503
7504 2001-12-05 Ulrich Drepper <drepper@redhat.com>
7505
7506 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
7507 patch.
7508 * sysdeps/generic/strncase.c: Likewise.
7509 * string/tester.c: Add tests for strcasecmp and strncasecmp.
7510
7511 2001-12-05 Geoff Keating <geoffk@redhat.com>
7512
7513 * scripts/cpp: Test the exit status from 'type', not 'awk'.
7514
7515 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
7516 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
7517 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
7518 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
7519 * sysdeps/powerpc/fclrexcpt.c: Move to...
7520 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
7521 * sysdeps/powerpc/fpu_control.h: Move to...
7522 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
7523
7524 2001-12-05 Ulrich Drepper <drepper@redhat.com>
7525
7526 * iconvdata/ibm1129.h: Remove duplicate mappings.
7527 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
7528 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
7529 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
7530
7531 * timezone/zic.c: Fix handling of turnaround times.
7532 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
7533
7534 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
7535
7536 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
7537 overflow problem.
7538
7539 2001-12-05 Ulrich Drepper <drepper@redhat.com>
7540
7541 * posix/regex.c: For use outside glibc defined bounded pointer
7542 macros here. Patch by Jim Meyering <jim@meyering.net>.
7543
7544 * iconvdata/Makefile (modules): Add TCVN5712-1.
7545 * iconvdata/TESTS: Add TCVN5712-1.
7546 * iconvdata/gconv-modules: Likewise.
7547 * iconvdata/tcvn5712-1.c: New file.
7548 * iconvdata/testdata/TCVN-5712: New file.
7549 * iconvdata/testdata/TCVN-5712..UTF8: New file.
7550
7551 2001-12-04 Ulrich Drepper <drepper@redhat.com>
7552
7553 * iconvdata/cp1258.c: Optimize conversion from UCS4.
7554
7555 2001-12-02 Roland McGrath <roland@frob.com>
7556
7557 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
7558
7559 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
7560 Reported by Jeff Bailey <jbailey@nisa.net>.
7561
7562 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
7563 Reported by Jeff Bailey <jbailey@nisa.net>.
7564
7565 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
7566 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
7567 Reported by Jeff Bailey <jbailey@nisa.net>.
7568
7569 2001-12-01 Roland McGrath <roland@frob.com>
7570
7571 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
7572 missing backslash in test arguments.
7573 * sysdeps/mach/hurd/configure: Regenerated.
7574
7575 2001-11-26 Roland McGrath <roland@frob.com>
7576
7577 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
7578 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
7579
7580 2001-11-30 Ulrich Drepper <drepper@redhat.com>
7581
7582 * iconvdata/Makefile (modules): Add ARMSCII-8.
7583 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
7584 * iconvdata/armscii-8.c: New file.
7585
7586 2001-11-29 Jakub Jelinek <jakub@redhat.com>
7587
7588 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
7589 don't match, fix {{a,b},c} globbing, clean up.
7590 Patch by Flavio Veloso <flaviovs@magnux.com>.
7591 * posix/globtest.sh: Add new tests.
7592
7593 2001-11-29 Andreas Jaeger <aj@suse.de>
7594
7595 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
7596 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
7597
7598 * sysdeps/generic/abort.c: Include libioP.h for
7599 _IO_flush_all_lockp prototype.
7600
7601 2001-11-29 Ulrich Drepper <drepper@redhat.com>
7602
7603 * posix/regex.h: Define __restrict_arr correctly.
7604
7605 2001-11-28 Ulrich Drepper <drepper@redhat.com>
7606
7607 * iconvdata/ibm1163.c: New file.
7608 * iconvdata/ibm1163.h: New file.
7609 * iconvdata/ibm1164.c: New file.
7610 * iconvdata/ibm1164.h: New file.
7611 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
7612 * iconvdata/Makefile: Likewise.
7613 * iconvdata/testdata/IBM1163: New file.
7614 * iconvdata/testdata/IBM1163..UTF8: New file.
7615 * iconvdata/testdata/IBM1164: New file.
7616 * iconvdata/testdata/IBM1164..UTF8: New file.
7617 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
7618
7619 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
7620 * iconvdata/ibm1124.h: Likewise.
7621 * iconvdata/ibm1132.h: Likewise.
7622 * iconvdata/ibm1133.h: Likewise.
7623 * iconvdata/ibm1160.h: Likewise.
7624 * iconvdata/ibm1161.h: Likewise.
7625 * iconvdata/ibm1162.h: Likewise.
7626 * iconvdata/ibm856.h: Likewise.
7627 * iconvdata/ibm922.h: Likewise.
7628 * iconvdata/ibm930.h: Likewise.
7629 * iconvdata/ibm932.h: Likewise.
7630 * iconvdata/ibm933.h: Likewise.
7631 * iconvdata/ibm935.h: Likewise.
7632 * iconvdata/ibm937.h: Likewise.
7633 * iconvdata/ibm939.h: Likewise.
7634 * iconvdata/ibm943.h: Likewise.
7635 * iconvdata/ibm930.c: Pretty printing.
7636 * iconvdata/ibm937.c: Avoid access accross array boundary.
7637
7638 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
7639 the current locale's codeset.
7640 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
7641 empty input string.
7642 * iconv/iconv_prog.c: Pass empty strings as default value for to-
7643 and from-charset. Don't determine locale's charset here.
7644
7645 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
7646 as the old _IO_flush_all but lock only if parameter is nonzero.
7647 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
7648 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
7649 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
7650 if libio is used [PR libc/2575].
7651
7652 2001-11-28 Jakub Jelinek <jakub@redhat.com>
7653
7654 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
7655 __signbitl): Only define for ISO C99.
7656
7657 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
7658
7659 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
7660 herrnop to NETDB_INTERNAL if we run out of buffer space.
7661
7662 2001-11-28 Ulrich Drepper <drepper@redhat.com>
7663
7664 * nss/nss_files/files-XXX.c (internal_getent): Correct input
7665 overflow test for platforms with signed char.
7666 Reported by Andrew Haley <aph@cambridge.redhat.com>.
7667
7668 2001-11-28 Bruno Haible <bruno@clisp.org>
7669
7670 * locale/programs/simple-hash.c (lookup_2): Remove function.
7671 (insert_entry_2): Call lookup instead of lookup_2.
7672
7673 2001-03-04 Bruno Haible <bruno@clisp.org>
7674
7675 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
7676
7677 2001-10-31 Bruno Haible <bruno@clisp.org>
7678
7679 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
7680
7681 2001-03-21 Bruno Haible <bruno@clisp.org>
7682
7683 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
7684 chokes on empty macro arguments.
7685 * intl/plural.y: Add #pragma for alloca on AIX 3.
7686
7687 2001-11-27 Ulrich Drepper <drepper@redhat.com>
7688
7689 * intl/dcigettext.c (guess_category_value): Only implement for
7690 glibc. Otherwise rely on function _nl_locale_name which isn't
7691 present in the glibc sources.
7692
7693 2001-09-24 Bruno Haible <bruno@clisp.org>
7694
7695 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
7696 transliteration when building on a glibc system but outside glibc.
7697
7698 2001-09-22 Bruno Haible <bruno@clisp.org>
7699
7700 * intl/plural-eval.c: New file, extracted from dcigettext.c.
7701 * intl/dcigettext.c (plural_eval): Remove function, moved to
7702 intl/plural-eval.c.
7703 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
7704 Include plural-eval.c.
7705
7706 2001-09-22 Bruno Haible <bruno@clisp.org>
7707
7708 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
7709 don't start with a digit; nplurals must be positive.
7710
7711 2001-09-02 Bruno Haible <bruno@clisp.org>
7712
7713 * intl/plural-exp.h: New file, extracted from gettextP.h.
7714 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
7715 * intl/gettextP.h (struct expression, struct parse_args,
7716 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
7717 * intl/loadmsgcat.c: Include plural-exp.h.
7718 (PLURAL_PARSE): Move macro to plural-exp.h.
7719 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
7720 plural-exp.c.
7721 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
7722 EXTRACT_PLURAL_EXPRESSION.
7723 (_nl_unload_domain): Update.
7724 * intl/dcigettext.c: Include plural-exp.h.
7725 * intl/plural.y: Include plural-exp.h, not gettextP.h.
7726 (FREE_EXPRESSION): Move macro to plural-exp.h.
7727 * intl/Makefile (routines): Add plural-exp.
7728 (distribute): Add plural-exp.h.
7729
7730 2001-07-28 Bruno Haible <bruno@clisp.org>
7731
7732 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
7733 isdigit, tolower argument to 'unsigned char'.
7734 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
7735 'unsigned char'.
7736 * intl/localealias.c (read_alias_file): Cast isspace argument to
7737 'unsigned char'.
7738
7739 2001-10-20 Bruno Haible <bruno@clisp.org>
7740
7741 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
7742 anyway.)
7743 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
7744 with the variable 'index' in plural_lookup.
7745 * intl/l10nflist.c (strchr): Likewise.
7746 * intl/localealias.c (strchr): Likewise.
7747
7748 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
7749 * intl/bindtextdom.c: Likewise.
7750 * intl/dcigettext.c: Likewise.
7751 * intl/dgettext.c: Likewise.
7752 * intl/dngettext.c: Likewise.
7753 * intl/explodename.c: Likewise.
7754 * intl/finddomain.c: Likewise.
7755 * intl/gettext.c: Likewise.
7756 * intl/l10nflist.c: Likewise.
7757 * intl/loadmsgcat.c: Likewise.
7758 * intl/localealias.c: Likewise.
7759 * intl/ngettext.c: Likewise.
7760 * intl/textdomain.c: Likewise.
7761 * intl/gettext.h: Assume <limits.h> exists.
7762
7763 2001-11-27 Ulrich Drepper <drepper@redhat.com>
7764
7765 * stdio-common/Makefile (tests): Add scanf11.
7766 * stdio-common/scanf11.c: New file.
7767
7768 2001-11-26 Ulrich Drepper <drepper@redhat.com>
7769
7770 * version.h (RELEASE): Define as development.
7771 (VERSION): Set to 2.2.90.
7772
7773 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
7774
7775 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
7776 * nis/nss_nis/nis-grp.c: Likewise.
7777 * nis/nss_nisplus/nisplus-grp.c: Likewise.
7778
7779 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
7780 * nis/nss_nis/nis-pwd.c: Likewise.
7781 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
7782
7783 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
7784 * nis/nss_nisplus/nisplus-parser.c: Likewise.
7785 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
7786
7787 * nscd/grpcache.c: Use strtoul instead of atol.
7788 * nscd/pwdcache.c: Likewise.
7789 * nss/getent.c: Likewise.
7790
7791 2001-11-27 Paul Eggert <eggert@twinsun.com>
7792
7793 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
7794 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
7795
7796 2001-11-19 Bruno Haible <bruno@clisp.org>
7797
7798 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
7799 90%.
7800 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
7801 improves the quality of the hash function, especially for short
7802 strings.
7803
7804 2001-11-26 Ulrich Drepper <drepper@redhat.com>
7805
7806 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
7807 are found call conv_error and not input_error [PR libc/2669].
7808
7809 * math/bits/mathcalls.h: Mark ceil and floor as const.
7810 Reported by David Mosberger.
7811
7812 2001-11-21 Jim Meyering <meyering@lucent.com>
7813
7814 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
7815 Define to be __-prefixed.
7816 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
7817
7818 2001-11-26 Andreas Jaeger <aj@suse.de>
7819
7820 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
7821 avoid warning.
7822
7823 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
7824
7825 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
7826 initialization.
7827
7828 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
7829 unused variables. Fix threshold for returning 1.0.
7830
7831 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
7832 argument.
7833
7834 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
7835 remove unused variables.
7836
7837 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
7838
7839 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
7840 include local math header files.
7841
7842 2001-11-22 Andreas Jaeger <aj@suse.de>
7843
7844 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
7845 avoid warning.
7846
7847 2001-11-21 Andreas Jaeger <aj@suse.de>
7848
7849 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
7850
7851 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
7852 sys/debugreg.h
7853
7854 2001-11-15 Andreas Jaeger <aj@suse.de>
7855
7856 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
7857 compilers that support it.
7858
7859 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
7860 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
7861 * stdlib/stdlib.h: Likewise.
7862
7863 2001-11-17 Ulrich Drepper <drepper@redhat.com>
7864
7865 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
7866 statement with gotos.
7867 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
7868
7869 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
7870
7871 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
7872
7873 2001-11-15 Ulrich Drepper <drepper@redhat.com>
7874
7875 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
7876
7877 2001-10-02 Jakub Jelinek <jakub@redhat.com>
7878 H.J. Lu <hjl@gnu.org>
7879
7880 * Versions.def (libc): Add GCC_3.0.
7881 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
7882 if gcc supports this flag.
7883 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
7884 (gcc3): Allow glibc to be compiled with gcc 3.x.
7885 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
7886 * config.make.in (static-libgcc, unwind-find-fde): Add.
7887 * Makerules (build-shlib-helper, build-module-helper): Use it.
7888 * scripts/versions.awk: Make sure GLIBC_ versions come first.
7889 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
7890 necessary.
7891 (_fini): Call __deregister_frame_info_bases if
7892 __register_frame_info_bases was used to register.
7893 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
7894 for GLIBC_2.0.
7895 (__register_frame_info_bases, __register_frame_info_table_bases,
7896 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
7897 * elf/Makefile (routines): Add unwind-dw2-fde.
7898 (shared-only-routines): Add unwind-dw2-fde.
7899 * sysdeps/alpha/gccframe.h: New file.
7900 * sysdeps/arm/gccframe.h: New file.
7901 * sysdeps/generic/framestate.c: New file.
7902 * sysdeps/generic/dwarf2.h: New file.
7903 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
7904 * sysdeps/generic/unwind-dw2-fde.c: New file.
7905 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
7906 * sysdeps/generic/unwind-dw2-fde.h: New file.
7907 * sysdeps/generic/unwind-dw2.c: New file.
7908 * sysdeps/generic/unwind-pe.h: New file.
7909 * sysdeps/generic/unwind.h: New file.
7910 * sysdeps/hppa/gccframe.h: New file.
7911 * sysdeps/i386/gccframe.h: New file.
7912 * sysdeps/m68k/gccframe.h: New file.
7913 * sysdeps/mips/gccframe.h: New file.
7914 * sysdeps/powerpc/gccframe.h: New file.
7915 * sysdeps/s390/gccframe.h: New file.
7916 * sysdeps/sh/gccframe.h: New file.
7917 * sysdeps/sparc/gccframe.h: New file.
7918 * sysdeps/vax/gccframe.h: New file.
7919 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
7920 Set on all architectures except ia64.
7921 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
7922 for i386.
7923 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
7924 __deregister_frame_info): Move to elf/Versions.
7925 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
7926 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
7927 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
7928 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
7929 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
7930 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
7931 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
7932 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
7933 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
7934 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
7935 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
7936 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
7937 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7938 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
7939 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
7940 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
7941 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
7942 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
7943
7944 2001-11-15 Jeff Law <law@redhat.com>
7945
7946 * posix/regex.c (uintptr_t): Do not provide a definition if the
7947 system provided one.
7948
7949 2001-11-13 Roland McGrath <roland@frob.com>
7950
7951 * stdio-common/tmpfile.c: Moved to ...
7952 * sysdeps/generic/tmpfile.c: ... here.
7953 * sysdeps/mach/hurd/tmpfile.c: New file.
7954
7955 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
7956 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
7957 (fopenport): Define as weak alias.
7958
7959 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
7960 * libio/libioP.h: ... to here.
7961
7962 2001-11-12 Ulrich Drepper <drepper@redhat.com>
7963
7964 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
7965 program header twice. Construct list with the needed information.
7966
7967 2001-11-10 Ulrich Drepper <drepper@redhat.com>
7968
7969 * po/ca.po: Update from translation team.
7970
7971 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
7972 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
7973 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
7974 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
7975
7976 2001-11-10 Andreas Jaeger <aj@suse.de>
7977
7978 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
7979 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
7980 Contributed by Stephen L Moshier <moshier@mediaone.net>.
7981
7982 2001-11-09 Ulrich Drepper <drepper@redhat.com>
7983
7984 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
7985 correctly.
7986 * elf/dl-load.c (is_dst): New function.
7987 (_dl_dst_count): Use is_dst to check for DST variable.
7988 (_dl_dst_substitute): Likewise.
7989
7990 2001-11-09 Roland McGrath <roland@frob.com>
7991
7992 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
7993 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
7994 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
7995 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
7996 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
7997 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
7998 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
7999 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
8000 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
8001 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
8002 * sysdeps/mach/hurd/powerpc/Dist: New file.
8003
8004 * hurd/privports.c (__get_privileged_ports):
8005 Only contact the proc server if necessary for this call.
8006 Suggested by Neal H Walfield <neal@cs.uml.edu>.
8007 Check error return for mach_port_mod_refs.
8008
8009 2001-11-09 Andreas Schwab <schwab@suse.de>
8010
8011 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
8012
8013 2001-11-09 Ulrich Drepper <drepper@redhat.com>
8014
8015 * elf/dl-load.c (lose): Remove some unnecessary code. The new
8016 object is always the last in the list.
8017 (_dl_map_object_from_fd): Delete code to remove from object list
8018 when DF_1_NOOPEN is seen. This is done in lose.
8019
8020 2001-11-08 Ulrich Drepper <drepper@redhat.com>
8021
8022 * elf/dl-object.c (_dl_new_object): Various small optimizations.
8023
8024 2001-11-07 Ulrich Drepper <drepper@redhat.com>
8025
8026 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
8027 HWCAP_CHECK macro code.
8028
8029 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
8030 Now returns MAP_FAILED on error.
8031 * elf/rtld.c: Adjust caller.
8032 * sysdeps/generic/dl-cache.c: Likewise.
8033 * sysdeps/generic/ldsodefs.h: Adjust description.
8034
8035 * elf/dl-version.c (match_symbol): Optimize error handling for size.
8036 (_dl_check_map_versions): Likewise.
8037
8038 2001-11-06 Ulrich Drepper <drepper@redhat.com>
8039
8040 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
8041 _dl_signal_error directly, always use lose. Set fd to -1 after
8042 file is closed.
8043 (lose): Don't call close if fd == -1.
8044
8045 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
8046
8047 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
8048 Also fix typo @code {mbsinit} to @code{mbsinit}.
8049
8050 2001-11-06 Ulrich Drepper <drepper@redhat.com>
8051
8052 * elf/dl-profile.c: Replace state variable with simple flag named
8053 running. Remove commented-out code.
8054
8055 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
8056 (_dl_init_paths): Likewise.
8057 (_dl_map_object_from_fd): Likewise.
8058 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
8059
8060 2001-11-06 Roland McGrath <roland@frob.com>
8061
8062 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
8063 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
8064
8065 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
8066 sysdeps/powerpc/elf/sysdep.h.
8067 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
8068
8069 2001-11-05 Ulrich Drepper <drepper@redhat.com>
8070
8071 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
8072 speed.
8073 (process_envvars): Some more optimizations.
8074 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
8075
8076 * elf/elf.h: Add dynamic tag definitions for prelinking.
8077
8078 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
8079 Rewrite code to remove environment varables for SUID binaries.
8080 Small optimization in LD_PROFILE handling.
8081 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
8082 changes.
8083 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
8084
8085 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
8086
8087 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
8088 strings. Change type of second parameter.
8089 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
8090 for last change.
8091
8092 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
8093
8094 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
8095
8096 * manual/string.texi: Fix typos.
8097 * manual/examples/argp-ex2.c: Likewise.
8098
8099 2001-11-05 Roland McGrath <roland@frob.com>
8100
8101 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
8102 the more-specific unix/sysv/linux/powerpc file and breaks everything.
8103 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
8104 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
8105 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
8106 here, put under [__ELF__].
8107
8108 2001-11-05 Ulrich Drepper <drepper@redhat.com>
8109
8110 * manual/charset.texi: Extensive editing work.
8111 * manual/nss.texi: Likewise.
8112 Changes by Dennis Grace <dgrace@us.ibm.com>.
8113
8114 2001-11-04 Roland McGrath <roland@frob.com>
8115
8116 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
8117 parameter to dir_mkfile.
8118
8119 2001-11-02 Jakub Jelinek <jakub@redhat.com>
8120
8121 * string/bits/string2.h (__strndup): If n is smaller than len, set
8122 len to n + 1.
8123 * string/tester.c (test_strndup): New function.
8124 (main): Call it.
8125
8126 2001-11-01 Ulrich Drepper <drepper@redhat.com>
8127
8128 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
8129
8130 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
8131 * scripts/cpp: New file.
8132
8133 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
8134 for rtld_search_dirs content. Minor optimizations.
8135
8136 2001-10-31 Ulrich Drepper <drepper@redhat.com>
8137
8138 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
8139 avoiding unnecessary duplication.
8140
8141 2001-10-31 Jakub Jelinek <jakub@redhat.com>
8142
8143 * elf/dl-load.c (_dl_map_object): If library was found using
8144 LD_LIBRARY_PATH, don't try RUNPATH list.
8145
8146 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
8147
8148 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
8149 Correct second argument of register_dump call.
8150 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
8151 Likewise.
8152
8153 2001-10-31 Ulrich Drepper <drepper@redhat.com>
8154
8155 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
8156 modules.
8157 * iconvdata/TESTS: Likewise.
8158 * iconvdata/gconv-modules: Likewise.
8159 * iconvdata/ibm1132.c: New file.
8160 * iconvdata/ibm1132.h: New file.
8161 * iconvdata/ibm1133.c: New file.
8162 * iconvdata/ibm1133.h: New file.
8163 * iconvdata/ibm1162.c: New file.
8164 * iconvdata/ibm1162.h: New file.
8165 * iconvdata/testdata/IBM1132: New file.
8166 * iconvdata/testdata/IBM1132..UTF8: New file.
8167 * iconvdata/testdata/IBM1133: New file.
8168 * iconvdata/testdata/IBM1133..UTF8: New file.
8169 * iconvdata/testdata/IBM1162: New file.
8170 * iconvdata/testdata/IBM1162..UTF8: New file.
8171 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
8172
8173 * string/string.h: Fix typo in comment.
8174 * wcsmbs/wchar.h: Likewise.
8175
8176 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
8177
8178 * manual/getopt.texi (getopt_long, getopt_long_only): Include
8179 const in type of longopts parameter.
8180
8181 2001-10-29 Andreas Jaeger <aj@suse.de>
8182
8183 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
8184
8185 2001-10-29 Kevin Ryde <user42@zip.com.au>
8186
8187 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
8188 output, clarify `#' behaviour on 0.
8189 (Floating-Point Conversions): Clarify that %g only uses %e when
8190 the exponent would be greater than 1.
8191
8192 2001-10-28 Roland McGrath <roland@frob.com>
8193
8194 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
8195 * sysdeps/mach/powerpc/machine-sp.h: New file.
8196 * sysdeps/mach/powerpc/sysdep.h: New file.
8197 * sysdeps/mach/powerpc/thread_state.h: New file.
8198
8199 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
8200 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
8201 expect to need the same thing on every platform.
8202
8203 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
8204 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
8205
8206 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
8207 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
8208 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
8209 Move all these assembly-related definitions to ...
8210 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
8211
8212 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
8213 by Peter Bruin <pjbruin@dds.nl>.
8214
8215 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
8216 packing results for a `poll' call.
8217
8218 2001-10-26 Ulrich Drepper <drepper@redhat.com>
8219
8220 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
8221 correctly.
8222 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
8223 bracket expression.
8224
8225 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
8226 nrules value.
8227 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
8228
8229 2001-10-24 H.J. Lu <hjl@gnu.org>
8230
8231 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
8232 Use __BEGIN_DECLS/__END_DECLS around prototypes.
8233 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
8234
8235 2001-10-21 Jim Meyering <meyering@lucent.com>
8236
8237 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
8238 this code would end up calling gettext even in packages built
8239 with --disable-nls.
8240 * posix/getopt.c (_): Likewise.
8241 * posix/regex.c (_): Likewise.
8242
8243 2001-10-26 Ulrich Drepper <drepper@redhat.com>
8244
8245 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
8246 lookup not ip6.int.
8247 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
8248 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
8249
8250 2001-10-19 Jakub Jelinek <jakub@redhat.com>
8251
8252 * misc/sys/cdefs.h (__attribute_used__): Define.
8253 * elf/rtld.c (_dl_start): Add __attribute_used__.
8254 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
8255
8256 2001-10-25 Andreas Schwab <schwab@suse.de>
8257
8258 * stdlib/a64l.c: Expect least significant digit first.
8259 * stdlib/l64a.c: Produce least significant digit first.
8260 * stdlib/Makefile (tests): Add test-a64l.
8261 * stdlib/test-a64l.c: New file.
8262 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
8263
8264 2001-10-21 Ulrich Drepper <drepper@redhat.com>
8265
8266 * po/sk.po: Update from translation team.
8267
8268 2001-10-18 Ulrich Drepper <drepper@redhat.com>
8269
8270 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
8271
8272 2001-10-18 Andreas Schwab <schwab@suse.de>
8273
8274 * math/libm-test.inc (print_ulps): Print ulp values rounded to
8275 next whole number.
8276 (print_function_ulps): Likewise.
8277 (print_complex_function_ulps): Likewise.
8278 (print_max_error): Likewise.
8279 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
8280
8281 2001-10-16 Andreas Schwab <schwab@suse.de>
8282
8283 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
8284 implementation.
8285
8286 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
8287 BSD_SETJMP or BSD__SETJMP is defined, resp.
8288 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
8289 a tail call to __sigsetjmp that would require extending the
8290 caller's frame.
8291 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
8292 * sysdeps/m68k/bsd-setjmp.S: Deleted.
8293 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
8294 Reported by Jes Sorensen <jes@trained-monkey.org>.
8295
8296 2001-10-16 Andreas Jaeger <aj@suse.de>
8297
8298 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
8299 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
8300 close PR libc/2589.
8301
8302 2001-10-15 Ulrich Drepper <drepper@redhat.com>
8303
8304 * po/ca.po: New file. Contributed by the translation team.
8305
8306 2001-10-15 Ralf Baechle <ralf@gnu.org>
8307
8308 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
8309 a varargs prototype. Remove dependency from kernel header files.
8310
8311 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
8312 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
8313
8314 2001-10-14 Ulrich Drepper <drepper@redhat.com>
8315
8316 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
8317 to generate hexadecimal identifier.
8318 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
8319
8320 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
8321
8322 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
8323
8324 2001-10-14 Ulrich Drepper <drepper@redhat.com>
8325
8326 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
8327 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
8328 Contributed by Stephen L Moshier <moshier@mediaone.net>.
8329
8330 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
8331 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
8332 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
8333 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
8334 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
8335 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
8336
8337 * timezone/africa: Update from tzdata2001d.
8338 * timezone/asia: Likewise.
8339 * timezone/australasia: Likewise.
8340 * timezone/backward: Likewise.
8341 * timezone/europe: Likewise.
8342 * timezone/leapseconds: Likewise.
8343 * timezone/northamerica: Likewise.
8344 * timezone/southamerica: Likewise.
8345 * timezone/zone.tab: Likewise.
8346
8347 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
8348
8349 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
8350 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
8351
8352 2001-10-12 Ulrich Drepper <drepper@redhat.com>
8353
8354 * elf/elf.h (PT_TLS): New definition.
8355
8356 2001-10-10 Jeff Bailey <jbailey@nisa.net>
8357
8358 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
8359 bits/errno.h
8360
8361 2001-10-07 Roland McGrath <roland@frob.com>
8362
8363 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
8364
8365 2001-10-10 Ulrich Drepper <drepper@redhat.com>
8366
8367 * elf/elf.h: Add more ELFOSABI_* constants.
8368
8369 2001-10-04 Ben Collins <bcollins@debian.org>
8370
8371 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
8372 decleration of __need_wchar_t.
8373
8374 2001-10-03 Jakub Jelinek <jakub@redhat.com>
8375
8376 * string/bits/string2.h (__strsep_g): Add prototype.
8377 (__strsep): Use it.
8378 * string/Versions (__strsep): Remove.
8379 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
8380
8381 2001-10-07 Ulrich Drepper <drepper@redhat.com>
8382
8383 * manua/llio.texi: Clarify file references added by mmap.
8384 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
8385
8386 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
8387
8388 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
8389 Add sc_loadrs and sc_rbs_bas to match current kernel.
8390
8391 2001-09-27 Jakub Jelinek <jakub@redhat.com>
8392
8393 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
8394
8395 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
8396
8397 2001-09-27 Jakub Jelinek <jakub@redhat.com>
8398
8399 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
8400 object has been bumped because of relocation dependency, avoid
8401 duplicates in l_scope.
8402 (show_scope): Fix typos.
8403 * elf/Makefile: Add rules to build and run reldep6.
8404 * elf/reldep6.c: New file.
8405 * elf/reldep6mod0.c: New file.
8406 * elf/reldep6mod1.c: New file.
8407 * elf/reldep6mod2.c: New file.
8408 * elf/reldep6mod3.c: New file.
8409 * elf/reldep6mod4.c: New file.
8410
8411 2001-09-26 Jakub Jelinek <jakub@redhat.com>
8412
8413 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
8414 sparc64_fixup_plt.
8415 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
8416 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
8417 for non-lazy binding. Fix .plt[32768+] handling.
8418 (elf_machine_plt_value): Don't add addend.
8419 (elf_machine_rela): Call sparc64_fixup_plt instead of
8420 elf_machine_fixup_plt.
8421 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
8422 dynamic linker at 0xfffff800XXXXXXXX.
8423
8424 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
8425
8426 2001-09-28 Ulrich Drepper <drepper@redhat.com>
8427
8428 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
8429
8430 2001-09-25 Jakub Jelinek <jakub@redhat.com>
8431
8432 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
8433 declare __cmsg_data field if its size would be bigger than 0.
8434 (CMSG_DATA): Adjust accordingly.
8435 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
8436 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
8437 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
8438 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
8439 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
8440 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
8441 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
8442
8443 2001-09-25 Ulrich Drepper <drepper@redhat.com>
8444
8445 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
8446 * iconvdata/testdata/IBM1160: New file.
8447 * iconvdata/testdata/IBM1160..UTF8: New file.
8448 * iconvdata/testdata/IBM1161: New file.
8449 * iconvdata/testdata/IBM1161..UTF8: New file.
8450 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
8451
8452 2001-09-24 Ulrich Drepper <drepper@redhat.com>
8453
8454 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
8455 UL_SETFSIZE computations better.
8456
8457 * rt/Makefile: Remove use of filter for librt again.
8458
8459 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
8460 UL_SETFSIZE computations better.
8461
8462 * string/Versions: Export __strsep for GLIBC_2.2.5.
8463 * string/bits/string2.h: Define all __STRING_INLINE functions if
8464 _FORCE_INLINES is defined.
8465 Use int instead of char of parameter types.
8466 (__strsep): Don't use __strsep_g. Don't define it.
8467 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
8468 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
8469 __strcpy_small.
8470 (__stpcpy_a_small): Renamed from __stpcpy_small.
8471 (__strcspn_c1): Don't define if _FORCE_INLINES.
8472 (__strspn_c1): Likewise.
8473
8474 2001-09-22 Ben Collins <bcollins@debian.org>
8475
8476 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
8477 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
8478 * sysdeps/ia64/bits/sigaction.h: Likewise.
8479 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
8480
8481 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
8482
8483 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
8484
8485 2001-09-24 Jakub Jelinek <jakub@redhat.com>
8486
8487 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
8488
8489 2001-09-24 Ulrich Drepper <drepper@redhat.com>
8490
8491 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
8492
8493 2001-09-20 H.J. Lu <hjl@gnu.org>
8494
8495 * include/dlfcn.h (__RTLD_SPROF): New definiton.
8496 * elf/dl-open.c (dl_open_worker): Return immediately after loading
8497 for __RTLD_SPROF.
8498 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
8499 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
8500
8501 2001-09-20 H.J. Lu <hjl@gnu.org>
8502
8503 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
8504 don't add 1.
8505
8506 2001-09-22 Ulrich Drepper <drepper@redhat.com>
8507
8508 * nss/getent.c: Accept -s parameter to overwrite rules in
8509 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
8510
8511 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
8512 with as many ".0" as necessary to form a complete address
8513 inet_network understands.
8514
8515 * nss/getent.c: Various cleanups. Use simpler and fewer function
8516 calls.
8517
8518 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
8519
8520 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
8521 _JMPBUF_UNWINDS.
8522 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
8523
8524 2001-09-22 Ulrich Drepper <drepper@redhat.com>
8525
8526 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
8527 IBM1161.
8528 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
8529 * iconvdata/ibm1160.c: New file.
8530 * iconvdata/ibm1160.h: New file.
8531 * iconvdata/ibm1161.c: New file.
8532 * iconvdata/ibm1161.h: New file.
8533 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
8534
8535 2001-09-19 Jakub Jelinek <jakub@redhat.com>
8536
8537 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
8538 difference between base address and first PT_LOAD's virtual address,
8539 not the base address.
8540
8541 2001-09-11 Tom Rix <trix@redhat.com>
8542
8543 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
8544 ifdef for __getopt_clean_environment.
8545 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
8546
8547 2001-09-22 Andreas Jaeger <aj@suse.de>
8548
8549 * elf/reldep4.c (main): Add proper prototype to fix warning.
8550
8551 * elf/reldep5.c (main): Remove unused variable.
8552
8553 * math/math_private.h: Add prototypes.
8554
8555 2001-09-21 Andreas Jaeger <aj@suse.de>
8556
8557 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
8558 * sysdeps/x86_64/Dist: New file.
8559 * sysdeps/x86_64/soft-fp/Dist: New file.
8560
8561 * sysdeps/gnu/Dist: Remove eval.c.
8562
8563 2001-09-20 Ulrich Drepper <drepper@redhat.com>
8564
8565 * malloc/memusage.c (realloc): Don't count already allocated
8566 memory in the sums.
8567 (me): Always use dlsym() to find the real implementations.
8568
8569 * malloc/memusage.sh: Make -n option actually do something.
8570
8571 2001-09-20 Andreas Jaeger <aj@suse.de>
8572
8573 * elf/elf.h (R_390_NUM): Correct value.
8574
8575 * Versions.def: Add missing versions 2.2.3 for libthread_db and
8576 libpthread.
8577
8578 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
8579 for x86-64, install x86-64 into */lib64.
8580
8581 * shlib-versions: Add x86-64.
8582
8583 * elf/elf.h: Add x86-64 relocations.
8584
8585 2001-09-19 Ulrich Drepper <drepper@redhat.com>
8586
8587 * po/fr.po: Update from translation team.
8588
8589 2001-09-19 Andreas Jaeger <aj@suse.de>
8590
8591 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
8592 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
8593 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
8594 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
8595 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
8596 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
8597 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
8598 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
8599 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
8600 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
8601 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
8602 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
8603 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
8604 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
8605 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
8606 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
8607 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
8608 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
8609 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
8610 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
8611 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
8612 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
8613 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
8614 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
8615 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
8616 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
8617 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
8618 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
8619 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
8620 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
8621 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
8622 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
8623 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
8624 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
8625 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
8626 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
8627 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
8628 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
8629 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
8630 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
8631 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
8632 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
8633 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
8634 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
8635 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
8636 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
8637 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
8638 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
8639 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
8640 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
8641 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
8642 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
8643 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
8644 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
8645 * sysdeps/unix/x86_64/sysdep.S: New file.
8646 * sysdeps/unix/x86_64/sysdep.h: New file.
8647 * sysdeps/x86_64/Implies: New file.
8648 * sysdeps/x86_64/Makefile: New file.
8649 * sysdeps/x86_64/Versions: New file.
8650 * sysdeps/x86_64/__longjmp.S: New file.
8651 * sysdeps/x86_64/abort-instr.h: New file.
8652 * sysdeps/x86_64/atomicity.h: New file.
8653 * sysdeps/x86_64/bits/endian.h: New file.
8654 * sysdeps/x86_64/bits/setjmp.h: New file.
8655 * sysdeps/x86_64/bits/string.h: New file.
8656 * sysdeps/x86_64/bp-asm.h: New file.
8657 * sysdeps/x86_64/bsd-_setjmp.S: New file.
8658 * sysdeps/x86_64/bsd-setjmp.S: New file.
8659 * sysdeps/x86_64/dl-machine.h: New file.
8660 * sysdeps/x86_64/elf/initfini.c: New file.
8661 * sysdeps/x86_64/elf/start.S: New file.
8662 * sysdeps/x86_64/ffs.c: New file.
8663 * sysdeps/x86_64/ffsll.c: New file.
8664 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
8665 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
8666 * sysdeps/x86_64/fpu/e_acosl.c: New file.
8667 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
8668 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
8669 * sysdeps/x86_64/fpu/e_expl.c: New file.
8670 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
8671 * sysdeps/x86_64/fpu/e_log10l.S: New file.
8672 * sysdeps/x86_64/fpu/e_log2l.S: New file.
8673 * sysdeps/x86_64/fpu/e_logl.S: New file.
8674 * sysdeps/x86_64/fpu/e_powl.S: New file.
8675 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
8676 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
8677 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
8678 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
8679 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
8680 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
8681 * sysdeps/x86_64/fpu/fegetenv.c: New file.
8682 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
8683 * sysdeps/x86_64/fpu/fegetround.c: New file.
8684 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
8685 * sysdeps/x86_64/fpu/fesetenv.c: New file.
8686 * sysdeps/x86_64/fpu/fesetround.c: New file.
8687 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
8688 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
8689 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
8690 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
8691 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
8692 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
8693 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
8694 * sysdeps/x86_64/fpu/s_atanl.c: New file.
8695 * sysdeps/x86_64/fpu/s_cosl.S: New file.
8696 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
8697 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
8698 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
8699 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
8700 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
8701 * sysdeps/x86_64/fpu/s_logbl.c: New file.
8702 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
8703 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
8704 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
8705 * sysdeps/x86_64/fpu/s_rintl.c: New file.
8706 * sysdeps/x86_64/fpu/s_significandl.c: New file.
8707 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
8708 * sysdeps/x86_64/fpu/s_sinl.S: New file.
8709 * sysdeps/x86_64/fpu/s_tanl.S: New file.
8710 * sysdeps/x86_64/gmp-mparam.h: New file.
8711 * sysdeps/x86_64/hp-timing.c: New file.
8712 * sysdeps/x86_64/hp-timing.h: New file.
8713 * sysdeps/x86_64/htonl.S: New file.
8714 * sysdeps/x86_64/memusage.h: New file.
8715 * sysdeps/x86_64/setjmp.S: New file.
8716 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
8717 * sysdeps/x86_64/stackinfo.h: New file.
8718 * sysdeps/x86_64/sysdep.h: New file.
8719 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
8720
8721 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
8722 L Moshier.
8723
8724 2001-09-18 Ulrich Drepper <drepper@redhat.com>
8725
8726 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
8727 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
8728
8729 2001-09-18 Andreas Schwab <schwab@suse.de>
8730
8731 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
8732 list, now that l_scope is a pointer.
8733
8734 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
8735 scope list.
8736
8737 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
8738
8739 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
8740 (elf_machine_rela_relative): Add a missing declaration.
8741
8742 2001-09-18 Jakub Jelinek <jakub@redhat.com>
8743
8744 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
8745 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
8746 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
8747 ldd-rewrite scripts.
8748
8749 2001-09-18 Ulrich Drepper <drepper@redhat.com>
8750
8751 * elf/ldd.bash.in: Update copyright message.
8752
8753 2001-09-17 H.J. Lu <hjl@gnu.org>
8754
8755 * hurd/hurdmalloc.c (bcopy): Removed.
8756 (realloc): Replace bcopy with memcpy.
8757 * hurd/path-lookup.c (file_name_path_scan): Likewise.
8758 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
8759 * sunrpc/rpcinfo.c (pmapdump): Likewise.
8760
8761 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
8762 (gethostbyaddr): Likewise.
8763 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
8764
8765 2001-09-18 Ulrich Drepper <drepper@redhat.com>
8766
8767 * sysdeps/gnu/eval.c: Removed.
8768
8769 2001-09-18 Andreas Jaeger <aj@suse.de>
8770
8771 * sysdeps/i386/fpu/s_logbl.S: Move to ...
8772 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
8773
8774 * sysdeps/i386/fpu/s_rintl.S: Move to ...
8775 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
8776
8777 * sysdeps/i386/fpu/s_significandl.S: Move to ...
8778 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
8779
8780 2001-09-16 Ulrich Drepper <drepper@redhat.com>
8781
8782 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
8783 nrules value.
8784
8785 2001-09-14 H.J. Lu <hjl@gnu.org>
8786
8787 * sysdeps/mips/fpu/libm-test-ulps: Updated.
8788
8789 2001-09-14 Ulrich Drepper <drepper@redhat.com>
8790
8791 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
8792 Patch by Florian La Roche <laroche@redhat.com>.
8793
8794 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
8795
8796 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
8797 ETHER_CRC_LEN.
8798
8799 2001-09-14 Andreas Schwab <schwab@suse.de>
8800
8801 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
8802 Sumner <bls@sgi.com>.
8803 * posix/execlp.c: Likewise.
8804
8805 2001-09-13 Jakub Jelinek <jakub@redhat.com>
8806
8807 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
8808 is already found earlier in the search scope.
8809
8810 2001-09-12 Jakub Jelinek <jakub@redhat.com>
8811
8812 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
8813 filter.
8814
8815 2001-09-13 Ulrich Drepper <drepper@redhat.com>
8816
8817 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
8818
8819 2001-09-12 Ulrich Drepper <drepper@redhat.com>
8820
8821 * config.h.in: Enforce optimization to be used.
8822 * Makeconfig (preprocess-versions): Define ASSEMBLER.
8823 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
8824 * posix/Makefile (annexc-CFLAGS): Define to -O.
8825 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
8826
8827 2001-09-11 Ulrich Drepper <drepper@redhat.com>
8828
8829 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
8830 Patch by Stephan Kulow.
8831
8832 2001-09-08 Ben Collins <bcollins@debian.org>
8833
8834 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
8835 usage of RESOLVE() (r_type, not reloc->r_type).
8836
8837 2001-09-08 Ulrich Drepper <drepper@redhat.com>
8838
8839 * elf/dl-object.c: Avoid allocating extra memory block for name.
8840 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
8841 allocated separately.
8842 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
8843
8844 2001-09-08 H.J. Lu <hjl@gnu.org>
8845
8846 * po/zh_TW.po: Fix a typo.
8847
8848 2001-09-07 Tom Rix <trix@redhat.com>
8849
8850 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
8851
8852 2001-08-26 Tom Rix <trix@redhat.com>
8853
8854 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
8855 command line options.
8856 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
8857 * sysdeps/unix/sysv/aix/start.c: Removed.
8858 * sysdeps/unix/sysv/aix/start-libc.c: New file.
8859 * sysdeps/unix/sysv/aix/init-first.c: New file.
8860 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
8861
8862 2001-09-08 Ben Collins <bcollins@debian.org>
8863
8864 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
8865 * sysdeps/generic/dl-machine.h: Likewise.
8866 * sysdeps/hppa/dl-fptr.c: Likewise.
8867 * sysdeps/ia64/dl-fptr.c: Likewise.
8868 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
8869 * sysdeps/mips/dl-machine.h: Likewise.
8870 * sysdeps/mips/mips64/dl-machine.h: Likewise.
8871 * sysdeps/powerpc/dl-machine.c: Likewise.
8872
8873 2001-09-07 Ben Collins <bcollins@debian.org>
8874
8875 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
8876
8877 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
8878
8879 2001-09-08 Ulrich Drepper <drepper@redhat.com>
8880
8881 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
8882 dependencies if necessary.
8883
8884 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
8885 loaded directly) determine length if l_initfini list by iterating
8886 over its elements. Minor optimizations.
8887 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
8888 for dependency objects.
8889 If object was already loaded check whether any of the dependencies
8890 is already on the relocation dependency list. If yes, remove the
8891 latter. Minor optimizations.
8892 * elf/dl-lookup.c (add_dependency): Add check for self reference of
8893 maps here. Search l_initfini list only if the object was loaded
8894 directly and not only as a dependency.
8895 (_dl_lookup_symbol): Add relocation dependency also if object
8896 is not in global scope. Remove test for self-reference here.
8897 (_dl_lookup_versioned_symbol): Likewise.
8898 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
8899 element of first name record.
8900 * elf/loadtest.c: Add some more test to recognize early if an object
8901 wasn't unloaded.
8902 * elf/Makefile: Add rules to build and run reldep5.
8903 * elf/reldep5.c: New file.
8904 * elf/reldepmod5.c: New file.
8905 * elf/reldepmod6.c: New file.
8906
8907 * elf/reldep2.c: Fix typo.
8908
8909 2001-09-07 Ulrich Drepper <drepper@redhat.com>
8910
8911 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
8912 elements. Change l_scope to be a pointer only.
8913 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
8914 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
8915 here add searchlist of newly open file to the dependency's scope.
8916 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
8917 only searchlist from its scope. Free own scope array if necessary.
8918 * elf/Makefile (tests): Add dblload and dblunload now.
8919
8920 2001-09-06 Andreas Jaeger <aj@suse.de>
8921
8922 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
8923 Stephen L Moshier.
8924
8925 2001-09-05 Ulrich Drepper <drepper@redhat.com>
8926
8927 * elf/Makefile: Add rules to build new tests. Don't run them yet since
8928 they both fail.
8929 * elf/dblload.c: New file.
8930 * elf/dblloadmod1.c: New file.
8931 * elf/dblloadmod2.c: New file.
8932 * elf/dblloadmod3.c: New file.
8933 * elf/dblunload.c: New file.
8934
8935 2001-09-04 Richard Henderson <rth@redhat.com>
8936
8937 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
8938 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
8939
8940 2001-09-04 Ulrich Drepper <drepper@redhat.com>
8941
8942 Correct very misleading message for error in failed runtime relocation.
8943 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
8944 place of the error.
8945 (_dl_signal_cerror): Likewise.
8946 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
8947 * elf/dl-close.c: Likewise.
8948 * elf/dl-deps.c: Likewise.
8949 * elf/dl-load.c: Likewise.
8950 * elf/dl-lookup.c: Likewise.
8951 * elf/dl-open.c: Likewise.
8952 * elf/dl-reloc.c: Likewise.
8953 * elf/dl-sym.c: Likewise.
8954 * elf/dl-version.c: Likewise.
8955 * sysdeps/generic/dl-sysdep.c: Likewise.
8956
8957 2001-09-04 Jakub Jelinek <jakub@redhat.com>
8958
8959 * iconv/strtab.c (strtabinit): Initialize null Strent.
8960 (newstring): Move len == 0 handling...
8961 (strtabadd): ...here.
8962 If len == 1, return null Strent.
8963 When inserting a suffix of an existing string, check if
8964 it is not equal to some suffix already recorded.
8965 Copy left and right members over if adding longer string.
8966
8967 2001-09-04 Jakub Jelinek <jakub@redhat.com>
8968
8969 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
8970
8971 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
8972 (__syscall_gethostname): Add prototype.
8973
8974 2001-09-04 Ulrich Drepper <drepper@redhat.com>
8975
8976 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
8977
8978 2001-09-02 Ulrich Drepper <drepper@redhat.com>
8979
8980 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
8981
8982 2001-08-27 Roland McGrath <roland@frob.com>
8983
8984 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
8985 short, copy that much into NAME anyway before returning error.
8986
8987 2001-09-01 Richard Henderson <rth@redhat.com>
8988
8989 * sysdeps/alpha/elf/Dist: Remove file.
8990 * sysdeps/alpha/elf/Makefile: Remove file.
8991 * sysdeps/alpha/elf/crtbegin.S: Remove file.
8992 * sysdeps/alpha/elf/crtend.S: Remove file.
8993 * sysdeps/alpha/elf/initfini.c: New file.
8994
8995 2001-09-01 Mark Kettenis <kettenis@gnu.org>
8996
8997 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
8998 * iconv/tst-iconv3.c: Likewise.
8999
9000 2001-09-01 Jakub Jelinek <jakub@redhat.com>
9001
9002 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
9003
9004 2001-09-01 Ulrich Drepper <drepper@redhat.com>
9005
9006 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
9007 export it.
9008 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
9009 * iconv/iconv_prog.c (insert_cache): New function.
9010 (print_known_names): If cache is used call insert_cache to use the
9011 information from the cache [PR libc/2509].
9012
9013 2001-08-31 Ulrich Drepper <drepper@redhat.com>
9014
9015 * time/strptime.c (strptime_internal): Recognize 'l' format and
9016 handle it like 'I' for symmetry with strftime.
9017
9018 2001-08-31 Richard Henderson <rth@redhat.com>
9019
9020 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
9021 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
9022 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
9023 (print_statistics): Make scalar unsigned long long.
9024 * sysdeps/alpha/hp-timing.h: New file.
9025
9026 2001-08-31 Jakub Jelinek <jakub@redhat.com>
9027
9028 * stdio-common/perror.c (perror): Save errno early, pass it
9029 down to perror_internal.
9030 (perror_internal): Add errnum argument.
9031
9032 2001-08-31 Jakub Jelinek <jakub@redhat.com>
9033
9034 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
9035 Don't add old memory content for R_ALPHA_REFQUAD.
9036
9037 2001-08-30 Ulrich Drepper <drepper@redhat.com>
9038
9039 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
9040 memory correctly.
9041
9042 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
9043 instead of open, __close instead of close, __getpagesize instead
9044 of getpagesize.
9045
9046 * string/argz-stringify.c (__argz_stringify): Use __strnlen
9047 instead of strnlen.
9048 * include/string.h (strndupa): Redefine here to use __strnlen
9049 instead of strnlen.
9050 * string/strndup.c (__strndup): Use __strnlen not strnlen.
9051
9052 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
9053 connected).
9054
9055 2001-08-30 Jakub Jelinek <jakub@redhat.com>
9056
9057 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
9058 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
9059 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
9060 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
9061 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
9062 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
9063 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
9064
9065 2001-08-30 Ulrich Drepper <drepper@redhat.com>
9066
9067 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
9068
9069 2001-08-30 Andreas Jaeger <aj@suse.de>
9070
9071 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
9072 contributed Stephen L Moshier.
9073
9074 2001-08-30 Jakub Jelinek <jakub@redhat.com>
9075
9076 * sunrpc/etc.rpc (sgi_fam): Add.
9077
9078 2001-08-30 Ulrich Drepper <drepper@redhat.com>
9079
9080 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
9081
9082 2001-08-29 Ulrich Drepper <drepper@redhat.com>
9083
9084 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
9085 first is from a previous call.
9086 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
9087
9088 2001-08-29 Andreas Schwab <schwab@suse.de>
9089
9090 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
9091
9092 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
9093
9094 * config.make.in (INSTALL_SCRIPT): Define.
9095 * Makeconfig (INSTALL_SCRIPT): Define.
9096 * Makerules (do-install-script): New macro to install scripts using
9097 INSTALL_SCRIPT.
9098 (install-bin-script): New rule to install scripts with
9099 do-install-script.
9100 (install-bin-script-nosubdir): New rule.
9101 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
9102 (distinfo-vars): Add $(install-bin-script).
9103 * Rules (others): Likewise.
9104 * Makefile (glibcbug): Install with install-bin-script.
9105 * debug/Makefile (xtrace): Likewise.
9106 (catchsegv): Likewise.
9107 * elf/Makefile (ldd): Likewise.
9108 * malloc/Makefile (mtrace): Likewise.
9109 * timezone/Makefile (tzselect): Likewise.
9110
9111 2001-08-29 H.J. Lu <hjl@gnu.org>
9112
9113 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
9114 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
9115 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
9116
9117 2001-08-29 Andreas Schwab <schwab@suse.de>
9118
9119 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
9120
9121 2001-08-28 H.J. Lu <hjl@gnu.org>
9122
9123 * Makeconfig (combreloc-LDFLAGS): New variable.
9124 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
9125 * config.make.in (have-z-combreloc): New variable.
9126 * configure.in: Substitute libc_cv_z_combreloc.
9127
9128 2001-08-29 Ulrich Drepper <drepper@redhat.com>
9129
9130 * po/sv.po: Update from translation team.
9131 * po/fr.po: Likewise.
9132 * po/da.po: Likewise.
9133
9134 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
9135
9136 * Makerules: Fix a typo: MD% -> MD5.
9137
9138 2001-08-28 Ulrich Drepper <drepper@redhat.com>
9139
9140 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
9141 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
9142
9143 2001-08-28 Andreas Jaeger <aj@suse.de>
9144
9145 * manual/libc-texinfo.sh: Add entry about free manuals.
9146
9147 * manual/contrib.texi (Contributors): Fix cross reference.
9148
9149 * manual/libc.texinfo (Copying): Include freemanuals.
9150
9151 * manual/Makefile (appendices): Add freemanuals.
9152
9153 * manual/freemanuals.texi: New file.
9154 Patch by Brian Youmans <3diff@gnu.org>.
9155
9156 * manual/libm-err-tab.pl: Pretty print more platforms, print a
9157 smaller table.
9158
9159 * manual/math.texi (Errors in Math Functions): Fix grammar, start
9160 table on separate page.
9161 Patch by Brian Youmans <3diff@gnu.org>.
9162
9163 2001-08-27 Ulrich Drepper <drepper@redhat.com>
9164
9165 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
9166 the connection went down after we first used it try to connect
9167 again and resend the message before printing to the console.
9168 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
9169
9170 2001-08-27 Jakub Jelinek <jakub@redhat.com>
9171
9172 * string/tst-strlen.c (main): Test strnlen (, -1) too.
9173 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
9174 bit set.
9175
9176 2001-08-27 Ulrich Drepper <drepper@redhat.com>
9177
9178 * iconv/strtab.c (searchstring): Use correct length for comparison.
9179 (strtabadd): Account total size correct if new string has old string as
9180 substring.
9181
9182 2001-08-27 Jakub Jelinek <jakub@redhat.com>
9183
9184 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
9185
9186 2001-08-27 Andreas Jaeger <aj@suse.de>
9187
9188 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
9189
9190 * math/libm-test.inc (j0_test): Add extra tests.
9191 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
9192 not x, in Hankel approximation.
9193 Patches by Stephen L Moshier.
9194
9195 2001-08-26 Ulrich Drepper <drepper@redhat.com>
9196
9197 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
9198 link_map.
9199
9200 * configure.in: Fix test for .rela.dyn section.
9201
9202 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
9203
9204 2001-08-26 Jakub Jelinek <jakub@redhat.com>
9205
9206 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
9207 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
9208 Pass type_class to _dl_lookup_*.
9209 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
9210 Pass around just type_class instead of noexec, noplt pair.
9211 (_dl_lookup_versioned_symbol): Likewise.
9212 (_dl_lookup_symbol_skip): Pass around just type_class instead of
9213 noexec, noplt pair.
9214 (_dl_lookup_versioned_symbol_skip): Likewise.
9215 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
9216 * elf/do-lookup.h (do_lookup): Likewise.
9217 * include/link.h (struct link_map): Replace noexec and noplt fields
9218 in l_lookup_cache with type_class field.
9219 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
9220 ELF_RTYPE_CLASS_COPY): Define.
9221 Adjust prototypes for _dl_lookup_symbol and
9222 _dl_lookup_versioned_symbol.
9223 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
9224 elf_machine_lookup_noexec_p): Remove.
9225 (elf_machine_type_class): Define.
9226 * sysdeps/arm/dl-machine.h: Likewise.
9227 * sysdeps/hppa/dl-machine.h: Likewise.
9228 * sysdeps/cris/dl-machine.h: Likewise.
9229 * sysdeps/i386/dl-machine.h: Likewise.
9230 * sysdeps/ia64/dl-machine.h: Likewise.
9231 * sysdeps/m68k/dl-machine.h: Likewise.
9232 * sysdeps/mips/mips64/dl-machine.h: Likewise.
9233 * sysdeps/mips/dl-machine.h: Likewise.
9234 * sysdeps/powerpc/dl-machine.h: Likewise.
9235 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9236 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9237 * sysdeps/sh/dl-machine.h: Likewise.
9238 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9239 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9240
9241 2001-08-26 Ulrich Drepper <drepper@redhat.com>
9242
9243 * manual/message.texi (Advanced gettext functions): Change
9244 description of plural forms for Slovak.
9245 Reported by Marcel Telka <marcel@telka.sk>.
9246
9247 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
9248 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
9249
9250 2001-08-26 Jakub Jelinek <jakub@redhat.com>
9251
9252 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
9253 typo. Patch by Florian La Roche <laroche@redhat.com>.
9254
9255 2001-08-26 Ulrich Drepper <drepper@redhat.com>
9256
9257 * include/link.h (struct link_map): Add l_lookup_cache element.
9258 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
9259 (RESOLVE_MAP): Likewise.
9260 (_dl_relocate_object): Remove cache initialization.
9261 * elf/dl-lookup.c: Rip out cache handling code.
9262 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
9263 declarations.
9264
9265 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
9266 remove some __builtin_expect.
9267 (_dl_lookup_versioned_symbol): Likewise.
9268
9269 * config.h.in: Add HAVE_Z_COMBRELOC.
9270 * configure.in: Add test for -z combreloc.
9271
9272 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
9273 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
9274 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
9275 case to almost no code.
9276
9277 2001-08-25 Ulrich Drepper <drepper@redhat.com>
9278
9279 * po/tr.po: Update from translation team.
9280
9281 2001-08-24 Andreas Jaeger <aj@suse.de>
9282
9283 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
9284 make clean works.
9285
9286 2001-08-24 Ulrich Drepper <drepper@redhat.com>
9287
9288 * elf/rtld.c (print_statistics): Printf % after percent values.
9289 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
9290
9291 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
9292 don't have to compute the hash value and initialize current_value.
9293 Move reference_name variable to where it is needed.
9294 (_dl_lookup_versioned_symbol): Likewise.
9295
9296 2001-08-24 Roland McGrath <roland@frob.com>
9297
9298 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
9299 Just test that strerror returns non-null for a few errno codes.
9300
9301 2001-08-23 Roland McGrath <roland@frob.com>
9302
9303 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
9304 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
9305
9306 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
9307
9308 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
9309 __mach_reply_port.
9310
9311 2001-08-24 Ulrich Drepper <drepper@redhat.com>
9312
9313 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
9314 returns NULL.
9315
9316 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
9317 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
9318 doesn't do it.
9319 * elf/rtld.c: Include <sys/param.h>.
9320 * elf/dl-reloc.c: Likewise.
9321
9322 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
9323
9324 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
9325 empty to prevent junk from being generated.
9326 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
9327
9328 2001-08-24 Jakub Jelinek <jakub@redhat.com>
9329
9330 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
9331 records. Rename endrel to relative, initialize it to r, and use it
9332 in elf_machine_rel_relative calls. Point r after relative relocs.
9333
9334 2001-08-24 Ulrich Drepper <drepper@redhat.com>
9335
9336 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
9337 of R_386_NONE.
9338
9339 2001-08-24 Jakub Jelinek <jakub@redhat.com>
9340
9341 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
9342 necessary. Undefine newly defined macros at the end.
9343 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
9344 Rename from elf_machine_rel_relative.
9345 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
9346 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
9347 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
9348 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
9349 Likewise.
9350 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
9351 Likewise.
9352 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
9353 Fix argument types.
9354 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
9355 Fix argument types.
9356 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
9357 Likewise. Fix argument types.
9358 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
9359 Likewise. Fix argument types.
9360 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
9361 Fix argument types.
9362 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
9363 ElfW(Rel) in argument.
9364 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
9365 function.
9366
9367 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
9368
9369 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
9370
9371 2001-08-24 Andreas Jaeger <aj@suse.de>
9372
9373 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
9374 Stephen L Moshier <moshier@mediaone.net>.
9375
9376 2001-08-24 Ulrich Drepper <drepper@redhat.com>
9377
9378 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
9379 first if RELCOUNT is set.
9380
9381 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
9382 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
9383 elf_machine_rel_relative.
9384 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
9385 Minor optimizations.
9386 * sysdeps/arm/dl-machine.h: Likewise.
9387 * sysdeps/cris/dl-machine.h: Likewise.
9388 * sysdeps/hppa/dl-machine.h: Likewise.
9389 * sysdeps/i386/dl-machine.h: Likewise.
9390 * sysdeps/ia64/dl-machine.h: Likewise.
9391 * sysdeps/m68k/dl-machine.h: Likewise.
9392 * sysdeps/mips/dl-machine.h: Likewise.
9393 * sysdeps/powerpc/dl-machine.h: Likewise.
9394 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9395 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9396 * sysdeps/sh/dl-machine.h: Likewise.
9397 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9398 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9399
9400 2001-08-23 Roland McGrath <roland@frob.com>
9401
9402 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
9403
9404 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
9405 sysdeps/mach version. Implement counting ("recursive") mutexes
9406 on top of cthreads mutexes.
9407 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
9408
9409 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
9410 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
9411 (__libc_cleanup_region_start, __libc_cleanup_region_end,
9412 __libc_clean_end): Define these to call the cleanup function after
9413 normal exit when they're supposed to.
9414
9415 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
9416 Take new first arg DOIT, a boolean saying whether to really install
9417 any cleanup handler.
9418 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
9419 (__libc_cleanup_end): Likewise.
9420 * sysdeps/generic/bits/libc-lock.h: Same changes.
9421 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
9422 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
9423 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
9424 Likewise.
9425 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
9426 * sysdeps/generic/bits/stdio-lock.h
9427 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
9428
9429 2001-08-23 Jakub Jelinek <jakub@redhat.com>
9430
9431 * elf/ldconfig.c (search_dir): Remove stale symlinks.
9432
9433 2001-08-23 Jakub Jelinek <jakub@redhat.com>
9434
9435 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
9436 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
9437 lookups in cache.
9438 (_dl_lookup_versioned_symbol): Likewise.
9439 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
9440 relocation lookup.
9441 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
9442 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
9443 (lookup_cache, lookup_cache_versioned): Add declarations.
9444
9445 2001-08-23 Ulrich Drepper <drepper@redhat.com>
9446
9447 * stdlib/tst-random.c (main): Swap parameters in fail call.
9448 Patch by Pete Bevin <pete@petebevin.com>.
9449
9450 2001-08-23 Jakub Jelinek <jakub@redhat.com>
9451
9452 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
9453
9454 2001-08-23 Ulrich Drepper <drepper@redhat.com>
9455
9456 * malloc/obstack.c: Indent preprocessor directives.
9457 Patch by Jim Meyering <meyering@ascend.com>.
9458
9459 * po/ja.po: Update from translation team.
9460
9461 2001-08-23 Roland McGrath <roland@frob.com>
9462
9463 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
9464
9465 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
9466 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
9467
9468 2001-08-22 Roland McGrath <roland@frob.com>
9469
9470 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
9471 __libc_lock_define_recursive.
9472 * elf/dl-open.c: Don't declare it here any more.
9473 * elf/dl-close.c: Likewise.
9474 * elf/dl-lookup.c: Likewise.
9475 * elf/dl-iteratephdr.c: Likewise.
9476 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
9477 __libc_lock_unlock_recursive.
9478 * elf/dl-close.c (_dl_close): Likewise
9479 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
9480 * elf/dl-open.c (_dl_open): Likewise
9481
9482 * sysdeps/generic/bits/libc-lock.h
9483 (__libc_lock_define_recursive): New macro.
9484 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
9485 (_IO_lock_lock): Use __libc_lock_lock_recursive.
9486 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
9487
9488 * conform/conformtest.pl (checknamespace): Sort the output list.
9489
9490 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
9491 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
9492 definitions conditional on [__USE_XOPEN].
9493
9494 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
9495 these unconditionally, not only use [__USE_BSD], so as to match
9496 the sysdeps/unix/sysv/linux files.
9497
9498 2001-08-22 Ulrich Drepper <drepper@redhat.com>
9499
9500 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
9501 avoid warnings.
9502
9503 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
9504 DL_LOOKUP_ADDRESS.
9505
9506 2001-08-22 Roland McGrath <roland@frob.com>
9507
9508 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
9509 conditionalization of sa_handler/sa_sigaction member types to
9510 match the sysdeps/unix/sysv/linux file.
9511
9512 2001-08-22 Ulrich Drepper <drepper@redhat.com>
9513
9514 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
9515 symbol sizes a bit better.
9516
9517 * sysdeps/ia64/strncpy.S: Complete rewrite.
9518 Contributed by Jakub Jelinek <jakub@redhat.com>.
9519
9520 * string/stratcliff.c (main): Add strncpy test.
9521
9522 2001-08-22 Roland McGrath <roland@frob.com>
9523
9524 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
9525 and don't declare unsetenv or _environ directly.
9526 (unsetenv): Return int, not void. Use __environ instead of _environ.
9527
9528 2001-08-01 Mark Kettenis <kettenis@gnu.org>
9529
9530 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
9531 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
9532 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
9533 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
9534 test for cmsg struct size.
9535
9536 2001-04-23 Paul Eggert <eggert@twinsun.com>
9537
9538 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
9539 Rename __argc to ___argc in prototypes to avoid compatibility
9540 problems with systems that reserve the identifier "__argc".
9541 Similarly for __argv.
9542
9543 2001-08-21 Roland McGrath <roland@frob.com>
9544
9545 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
9546
9547 * mach/Makefile (tests): Removed.
9548 * mach/hello.c: File removed.
9549
9550 2001-08-22 Ulrich Drepper <drepper@redhat.com>
9551
9552 * po/sv.po: Update from translation team.
9553
9554 * stdio-common/vfscanf.c: Fix handling of %l[].
9555 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
9556
9557 * libio/Makefile (tests): Add tst-sscanf.
9558 * libio/tst-sscanf.c: New file.
9559
9560 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
9561 * malloc/mtrace.c (tr_where): dli_sname always points to a
9562 non-empty string if != NULL.
9563 Reported by Tim Janik <timj@gtk.org>.
9564
9565 2001-08-22 Jakub Jelinek <jakub@redhat.com>
9566
9567 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
9568 buf. Free resources on failure.
9569 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
9570 (makefd_xprt): Likewise.
9571 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
9572 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
9573 * sunrpc/auth_unix.c (authunix_create): Likewise.
9574
9575 2001-08-21 Jakub Jelinek <jakub@redhat.com>
9576
9577 * string/strnlen.c: Remove.
9578 * sysdeps/generic/strnlen.c: New file.
9579 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
9580
9581 2001-08-21 Roland McGrath <roland@frob.com>
9582
9583 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
9584 as a macro, not an extern inline function.
9585
9586 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
9587 * Versions.def (libc): Add GLIBC_2.2.5 set.
9588 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
9589 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
9590
9591 2001-08-20 Roland McGrath <roland@frob.com>
9592
9593 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
9594 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
9595
9596 2001-08-21 Ulrich Drepper <drepper@redhat.com>
9597
9598 * string/bits/string2.h: Remove strnlen optimization here.
9599 * sysdeps/i386/i486/bits/string.h: Add it here.
9600
9601 2001-08-21 Wolfram Gloger <wg@malloc.de>
9602
9603 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
9604
9605 2001-08-21 Ulrich Drepper <drepper@redhat.com>
9606
9607 * po/gl.po: Update from translation team.
9608
9609 2001-08-20 Ulrich Drepper <drepper@redhat.com>
9610
9611 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
9612 * misc/err.c (convert_and_print): Likewise.
9613
9614 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
9615 function calls.
9616
9617 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
9618
9619 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
9620 change of the gregset_t type.
9621 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
9622
9623 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
9624
9625 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
9626
9627 2001-08-20 Ulrich Drepper <drepper@redhat.com>
9628
9629 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
9630
9631 * string/strnlen.c: Fix the implementation. We cannot use memchr.
9632
9633 2001-08-18 Mark Kettenis <kettenis@gnu.org>
9634
9635 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
9636 before calling the cthreads initialization code.
9637
9638 2001-08-20 Ulrich Drepper <drepper@redhat.com>
9639
9640 * argp/argp-help.c: Fix two problems introduced in last change.
9641
9642 * include/dirent.h: Include <dirstream.h> first.
9643
9644 2001-08-19 Ulrich Drepper <drepper@redhat.com>
9645
9646 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
9647
9648 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
9649 * sunrpc/xdr_rec.c: Likewise.
9650 * sunrpc/xdr_mem.c: Likewise.
9651 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
9652 * sunrpc/rpc_cmsg.c: Likewise.
9653 * sunrpc/getrpcport.c (getrpcport): Likewise.
9654 * sunrpc/clnt_simp.c (callrpc): Likewise.
9655 * sunrpc/clnt_gen.c (clnt_create): Likewise.
9656 * string/envz.c: Likewise.
9657
9658 * po/ko.po: Update from translation team.
9659
9660 * argp/argp-help.c: Handle wide oriented stderr stream.
9661
9662 2001-08-18 Ulrich Drepper <drepper@redhat.com>
9663
9664 * sysdeps/generic/strtol.c: Little optimizations. Add some
9665 __builtin_expect.
9666
9667 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
9668
9669 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
9670 * wcsmbs/wcwidth.c (wcwdith): Likewise.
9671 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
9672
9673 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
9674
9675 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
9676
9677 * time/time.h (struct timespec): Use __time_t for tv_sec element.
9678
9679 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
9680 wchar_t for function declarations and defintions.
9681
9682 * misc/sys/select.h: Define __need_time_t before including <time.h>.
9683 Define suseconds_t if it hasn't happened yet.
9684
9685 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
9686
9687 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
9688
9689 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
9690 <stddef.h>.
9691
9692 * conform/data/stddef.h-data: Remove wint_t.
9693
9694 * conform/conformtest.pl: Change namespace test to take #undef
9695 lines into account.
9696
9697 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
9698
9699 * conform/data/sys/socket.h-data: Add sockatmark.
9700
9701 2001-08-17 Ulrich Drepper <drepper@redhat.com>
9702
9703 * io/fts.c: Update from recent BSD source.
9704
9705 2001-08-17 Roland McGrath <roland@frob.com>
9706
9707 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
9708 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
9709 Likewise.
9710
9711 2001-08-17 Ulrich Drepper <drepper@redhat.com>
9712
9713 * locale/duplocale.c (__duplocale): Also initialize the special
9714 __ctype_* elements.
9715
9716 * conform/data/netdb.h-data: Adjust gai_strerror return type.
9717
9718 2001-08-17 Andreas Jaeger <aj@suse.de>
9719
9720 * misc/getpass.c: Include wchar.h for prototypes.
9721 * malloc/obstack.c: Likewise.
9722
9723 2001-08-17 Ulrich Drepper <drepper@redhat.com>
9724
9725 * sunrpc/svc_simple.c (universal): Use __write instead of write.
9726
9727 * wcsmbs/wcscoll.c: Also define __wcscoll.
9728 * include/wchar.h: Declare __wcscoll.
9729
9730 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
9731 * libio/vwprintf.c: Likewise.
9732 * libio/wprintf.c: Likewise.
9733
9734 * iconv/gconv_cache.c: Use __munmap instead of munmap.
9735
9736 2001-08-16 Ulrich Drepper <drepper@redhat.com>
9737
9738 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
9739 instead of mbrtowc.
9740 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
9741 wcslen, and __wcscoll instead of wcscoll.
9742
9743 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
9744
9745 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
9746 __getuid instead of getuid.
9747
9748 * stdio-common/perror.c (perror): Use __close instead of close.
9749 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
9750 * libio/freopen.c (freopen): Likewise.
9751 * libio/freopen64.c (freopen64): Likewise.
9752
9753 * libio/tst-ungetwc2.c (main): Define str const.
9754
9755 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
9756 * libio/fwprintf.c: Also define __fwprintf.
9757 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
9758 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
9759 * assert/assert-perr.c: Likewise.
9760 * assert/assert.c: Likewise.
9761 * gmon/gmon.c: Likewise.
9762 * inet/rcmd.c: Likewise.
9763 * malloc/obstack.c: Likewise.
9764 * misc/err.c: Likewise.
9765 * misc/error.c: Likewise.
9766 * misc/getpass.c: Likewise.
9767 * posix/getopt.c: Likewise.
9768 * resolv/res_hconf.c: Likewise.
9769 * stdio-common/perror.c: Likewise.
9770 * stdio-common/psignal.c: Likewise.
9771 * stdlib/fmtmsg.c: Likewise.
9772 * sunrpc/auth_unix.c: Likewise.
9773 * sunrpc/clnt_perr.c: Likewise.
9774 * sunrpc/clnt_tcp.c: Likewise.
9775 * sunrpc/clnt_udp.c: Likewise.
9776 * sunrpc/clnt_unix.c: Likewise.
9777 * sunrpc/svc_simple.c: Likewise.
9778 * sunrpc/svc_tcp.c: Likewise.
9779 * sunrpc/svc_udp.c: Likewise.
9780 * sunrpc/svc_unix.c: Likewise.
9781 * sunrpc/xdr.c: Likewise.
9782 * sunrpc/xdr_array.c: Likewise.
9783 * sunrpc/xdr_rec.c: Likewise.
9784 * sunrpc/xdr_ref.c: Likewise.
9785 * sysdeps/generic/wordexp.c: Likewise.
9786
9787 * po/it.po: Update from translation team.
9788
9789 * misc/err.c: Handle wide oriented stderr stream.
9790
9791 2001-08-14 Tom Rix <trix@redhat.com>
9792
9793 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
9794 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
9795
9796 2001-08-13 Tom Rix <trix@redhat.com>
9797
9798 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
9799 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
9800 and __intptr_t.
9801
9802 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
9803
9804 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
9805 Store the access registers to the ucontext structure.
9806 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
9807 Likewise.
9808
9809 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
9810 Load the access registers from the ucontext structure.
9811 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
9812 Likewise.
9813
9814 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
9815 offsets to the new ucontext layout.
9816 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
9817
9818 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
9819 of the ucontext structure.
9820 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
9821
9822 2001-08-15 Ulrich Drepper <drepper@redhat.com>
9823
9824 * misc/error.c (error): Handle wide oriented stderr stream correctly.
9825 (error_at_line): Likewise.
9826
9827 * stdio-common/perror.c (perror): Implement according to standard.
9828 The stream orientation must not be changed if the stream was not
9829 oriented before the call.
9830 * stdio-common/Makefile (tests): Add tst-perror.
9831 * stdio-common/tst-perror.c: New file.
9832
9833
9834 See ChangeLog.12 for earlier changes.