]> sourceware.org Git - glibc.git/blame - ChangeLog
* include/sys/resource.h: Use libc_hidden_proto for getpriority,
[glibc.git] / ChangeLog
CommitLineData
284128f6
RM
12002-08-03 Roland McGrath <roland@redhat.com>
2
a14f26ef
RM
3 * include/sys/resource.h: Use libc_hidden_proto for getpriority,
4 setpriority.
5 * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
6 * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
7 * sysdeps/mach/hurd/setpriority.c: Likewise.
8 * sysdeps/mach/hurd/getpriority.c: Likewise.
9 * sysdeps/generic/setpriority.c: Likewise.
10 * sysdeps/generic/getpriority.c: Likewise.
11
12 * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
13 * malloc/mcheck.c: Add libc_hidden_def.
14
15 * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
16 * misc/hsearch_r.c: Add libc_hidden_def.
17
18 * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
19 * posix/fnmatch.c: Add libc_hidden_weak.
20
c41f555e
RM
21 * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
22 execl, execle, execlp, execvp, getpid, getsid.
23 * sysdeps/generic/alarm.c: Add libc_hidden_def.
24 * sysdeps/unix/alarm.c: Likewise.
25 * posix/confstr.c: Likewise.
26 * posix/execvp.c: Likewise.
27 * posix/execlp.c: Likewise.
28 * posix/execle.c: Likewise.
29 * posix/execl.c: Likewise.
30 * sysdeps/generic/getsid.c: Likewise.
31 * sysdeps/mach/hurd/getsid.c: Likewise.
32 * sysdeps/generic/getpid.c: Add libc_hidden_weak.
33 * sysdeps/mach/hurd/getpid.c: Likewise.
34
35 * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
36 qecvt_r, qfcvt_r, lrand48_r.
37 * misc/efgcvt_r.c: Add libc_hidden_def.
38
39 * include/wordexp.h: Use libc_hidden_proto for wordfree.
40 * sysdeps/generic/wordexp.c: Add libc_hidden_def.
41
42 * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
43 * locale/nl_langinfo.c: Add libc_hidden_def.
44
45 * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
46 * sysdeps/generic/glob.c: Add libc_hidden_def.
47 * sysdeps/generic/glob64.c: Likewise.
48 * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
49
dc18d4d8
RM
50 * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
51
52 * elf/Makefile (CFLAGS-vismod2.c): New variable.
53
30c14c31
RM
54 * locale/setlocale.c (_nl_current_names): Variable moved ...
55 * locale/localename.c (_nl_current_names): ... here, new file.
56 Make it global, with attribute_hidden.
57 * locale/localeinfo.h: Declare it.
58 * locale/Makefile (aux): Add localename.
59 * locale/localename.c (__current_locale_name): New function.
60 * include/locale.h (__current_locale_name): Declare it.
61 * intl/dcigettext.c (guess_category_value): Use that instead of
62 calling setlocale.
63
64 * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
65 [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
66 [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
67 * locale/newlocale.c: Add alias to __ name.
68 * locale/duplocale.c: Likewise.
69 * locale/freelocale.c: Likewise.
70 * locale/uselocale.c: New file.
71 * locale/Makefile (routines): Add it.
72 * locale/Versions (libc: GLIBC_2.3): New set.
73 Add newlocale, duplocale, freelocale, uselocale.
74 (libc: GLIBC_PRIVATE): Add __uselocale.
75
76 * locale/localeinfo.h [SHARED]
77 (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
78 (_NL_CURRENT_DATA): Define using that.
79 (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
80 (_NL_CURRENT_DEFINE): Define to empty.
81 [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
82 conditionalized on this.
83 * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
84 taking initializer of _nl_C_locobj.
85 [SHARED] (_nl_global_locale): New variable, using that initializer.
86 (_nl_C_locobj): Use new macro for initialzier.
87 * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
88 [! SHARED] (CATEGORY_USED): New macro.
89 [SHARED] (CATEGORY_USED, _nl_C): New macros.
90 (setdata, setlocale): Use that macro instead of examining _nl_current.
91 (setdata): Set the slot in _nl_global_locale.
92 Conditionalize setting of _nl_current on [! SHARED].
93 * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
94 declaration as an extern.
95 * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
96
97 * include/locale.h: Use libc_hidden_proto for setlocale.
98 * locale/setlocale.c: Add libc_hidden_def.
99
100 * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
101
509d1b68
RM
102 * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
103 * misc/hsearch_r.c: Add libc_hidden_def.
104 * misc/lsearch.c: Likewise.
105
106 * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
107 endttyent.
108 * misc/getttyent.c: Add libc_hidden_def.
109
110 * include/mcheck.h: Use libc_hidden_proto for mcheck.
111 * malloc/mcheck.c: Add libc_hidden_def.
112
113 * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
114 * include/argz.h: Use libc_hidden_proto for argz_delete.
115 * string/argz-delete.c: Add libc_hidden_def.
116 * string/envz.c: Likewise. Use <envz.h>, not "envz.h".
117
118 * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
119 HIDDEN_JUMPTARGET for _exit.
120 * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
121 * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
122 * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
123 * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
124
125 * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
126 [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
127 [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
128 * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
129
130 * include/stdlib.h: Use libc_hidden_proto for abort,
131 __strtof_internal, __strtod_internal, __strtold_internal,
132 __strtol_internal, __strtoll_internal, __strtoul_internal,
133 __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
134 __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
135 __strtoul_l_internal, __strtoull_l_internal.
136 * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
137 __wcstod_internal, __wcstold_internal, __wcstol_internal,
138 __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
139 ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
140 ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
141 __wcsncasecmp_l.
142 * sysdeps/generic/abort.c: Add libc_hidden_def.
143 * stdlib/strtod.c: Likewise.
144 * sysdeps/generic/strtol.c: Likewise.
145 * sysdeps/wordsize-64/strtol.c: Likewise.
146 * sysdeps/wordsize-64/wcstol.c: Likewise.
147 * sysdeps/wordsize-64/wcstol_l.c: Likewise.
148
284128f6
RM
149 * include/stdlib.h: Use libc_hidden_proto for qsort.
150 * stdlib/msort.c: Add libc_hidden_def.
151
152 * include/utime.h: Use libc_hidden_proto for utime.
153 * sysdeps/generic/utime.c: Add libc_hidden_def.
154 * sysdeps/unix/utime.c: Likewise.
155
156 * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
157 * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
158 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
159 * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
160 * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
161
162 * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
163 sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
164 and __libc_current_sigrtmax.
165 * signal/sigismem.c: Add libc_hidden_def.
166 * signal/sigfillset.c: Likewise.
167 * signal/sigempty.c: Likewise.
168 * sysdeps/generic/sigpause.c (__sigpause): Likewise.
169 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
170 * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
02926a63
RM
171 * sysdeps/posix/raise.c: Likewise.
172 * sysdeps/generic/raise.c: Likewise.
284128f6 173
5b070c75
UD
1742002-08-03 Ulrich Drepper <drepper@redhat.com>
175
b28d7a3d
UD
176 * include/string.h: Use libc_hidden_proto for __stpcpy.
177 * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
178 * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
179 * sysdeps/generic/stpcpy.c: Likewise.
180 * sysdeps/i386/stpcpy.S: Likewise.
181 * sysdeps/i386/i586/stpcpy.S: Likewise.
182 * sysdeps/powerpc/stpcpy.S: Likewise.
183 * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
184 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
185
5b070c75
UD
186 * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
187 __strncasecmp_l, __strdup, __strndup, __strerror_r.
188 * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
189 libc_hidden_def.
190 * string/strdup.c (__strdup): Likewise.
191 * string/strndup.c (__strndup): Likewise.
192 * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
193 * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
194
602d9786
UD
1952002-08-03 Jakub Jelinek <jakub@redhat.com>
196
197 * include/libio.h: New file.
198 * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
199 * libio/iolibio.h: #include <libio.h>, not "libio.h".
200 * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
201 * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
202 * sysdeps/unix/common/syscalls.list: Likewise.
203 * sysdeps/unix/inet/syscalls.list: Likewise.
204 * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
205 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
206 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
207 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
208 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
209 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
210 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
211 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
212 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
213 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
214 * sysdeps/unix/syscalls.list: Likewise.
215
d9af917d
UD
2162002-08-03 Jakub Jelinek <jakub@redhat.com>
217 Ulrich Drepper <drepper@redhat.com>
218
219 * malloc/malloc.c (public_cALLOc): Only divide if at least one of
602d9786 220 the arguments is big enough to cause an overflow.
d9af917d 221
7abb683a
UD
2222002-08-03 Ulrich Drepper <drepper@redhat.com>
223
224 * assert/assert.c: Use hidden_def not INTDEF.
225
2262002-08-03 Jakub Jelinek <jakub@redhat.com>
227
228 * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
229 not defined.
230
bc139347
RM
2312002-08-03 Roland McGrath <roland@redhat.com>
232
a757607d
RM
233 * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
234 * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
235 verr, verrx.
236 * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
237 * misc/syslog.c: Add libc_hidden_def.
238 * misc/err.c: Likewise.
239 * stdlib/exit.c: Likewise.
240 * stdlib/bsearch.c: Likewise.
241 * sysdeps/generic/getenv.c: Likewise.
242
c5598d47
RM
243 * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
244
245 * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
246 libc_hidden_weak for every system call symbol defined.
247
248 * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
249 timelocal, localtime, strftime.
250 * time/asctime.c: Add libc_hidden_def.
251 * time/mktime.c: Likewise.
252 * time/localtime.c: Likewise.
253 * time/strftime.c: Likewise.
254 * time/strptime.c: Likewise.
255 * sysdeps/generic/time.c: Likewise.
256 * sysdeps/unix/time.c: Likewise.
257 * sysdeps/unix/sysv/i386/time.S: Likewise.
258 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
259
260 * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
261 inet_makeaddr, inet_netof, inet_addr, __inet_addr.
262 * resolv/inet_ntop.c: Likewise.
263 * resolv/inet_pton.c: Likewise.
264 * inet/inet_mkadr.c: Add libc_hidden_def.
265 * inet/inet_netof.c: Likewise.
266 * resolv/inet_addr.c: Likewise.
267
268 * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
269 clauses from conditionals for now. Will have to be fixed later
270 for older compilers.
271
bc139347
RM
272 * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
273
37ba7d66
UD
2742002-08-02 Ulrich Drepper <drepper@redhat.com>
275
276 * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
277 broken alias attribute handling.
278 * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
279
656f8223
RM
2802002-08-02 Roland McGrath <roland@frob.com>
281
282 * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
283 since it sets the variables we use in a -D switch.
284
8fe04771
RM
2852002-08-02 Roland McGrath <roland@redhat.com>
286
8102f4f9
RM
287 * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
288 On 32-bit platforms they are the same; on 64-bit platforms ssize_t
289 matches long int, not int.
290
8fe04771
RM
291 * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
292 * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
293 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
294 * wctype/wctrans.c (wctrans): Likewise.
295 * wctype/wctype.c (__wctype): Likewise.
296 * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
297
37ba7d66
UD
2982002-08-02 Ulrich Drepper <drepper@redhat.com>
299
300 * assert/assert.c (__assert_fail): Fix typo in comment.
301
bc139347
RM
302 * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
303 * sunrpc/rpc_thread.c: Define it without static.
37ba7d66
UD
304 * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
305
3062002-08-02 Jakub Jelinek <jakub@redhat.com>
307
308 * assert/assert.c (__assert_fail): Remove undef.
309 Replace INTDEF with libc_hidden_def.
310 * assert/__assert.c (__assert): Remove INTUSE.
311 * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
312 libc_hidden_weak.
313 * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
314 hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
315 libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
316 rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
317 libm_hiden_ver): Define.
318 * include/assert.h (__assert_fail_internal): Remove.
319 (__assert_fail): Add prototype. Add hidden_proto.
320 * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
321 libc_hidden_proto.
322 * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
323 (__mbrtowc, __mbrlen): Use libc_hidden_proto. Remove macros.
324 * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
325 Add libc_hidden_proto.
326 * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
327 __fcntl): Add libc_hidden_proto. Remove macros.
328 (__open_internal, __fcntl_internal): Remove.
329 * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
330 * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
331 * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
332 libc_hiden_proto.
333 * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
334 libc_hidden_def.
335 * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
336 Add libc_hidden_def.
337 * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
338 * sysdeps/generic/open.c (__open): Remove undef.
339 Add libc_hidden_def. Remove INTDEF.
340 * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
341 Add libc_hidden_def.
342 * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
343 * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
344 * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
345 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
346 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
347 (__libc_fcntl): Add libc_hidden_def.
348 * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
349 (__open): Remove INTDEF2. Add libc_hidden_weak.
350 (__libc_open): Add libc_hidden_def.
351 * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
352 * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
353 * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
354 Add libc_hidden_def.
355 * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
356 Add libc_hidden_def.
357 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
358 undef.
359 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
360 (__libc_fcntl): Add libc_hidden_def.
361 * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
362 __getpgid_internal, __chown_internal): Remove.
363 (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
364 __GI___sched_setscheduler, __GI___select, __GI___setpgid,
365 __GI___chown): Add.
366 * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
367 __getpid_internal, __open_internal, __write_internal): Remove.
368 (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
369 __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
370 __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
371 __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
372 * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
373 Replace INTDEF with libc_hidden_def.
374 * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
375 * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
376 * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
377 * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
378 * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
379 Add libc_hidden_proto.
380 * include/sys/poll.h (__poll): Add libc_hidden_proto.
381 * include/sys/select.h (__select): Likewise.
382 * include/sys/socket.h (__send): Likewise.
383 * include/sys/statfs.h (__statfs): Likewise.
384 * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
385 __getpid, __getpgid, __setpgid, __close, __read, __write,
386 __getpagesize, __sbrk): Likewise.
387 (__chown_internal, __dup2_internal, __getpid_internal,
388 __getpgid_internal, __close_internal, __write_internal,
389 __getpagesize_internal): Remove.
390 (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
391 Remove macros.
392 * include/printf.h (__printf_fp): Add libc_hidden_proto.
393 * include/sched.h (__sched_setscheduler): Likewise.
394 * include/resolv.h (__res_ninit, __res_randomid): Likewise.
395 * include/stdlib.h (__secure_getenv): Likewise.
396 * include/signal.h (__sigaction, __sigsuspend): Likewise.
397 * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
398 * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
399 * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
400 * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
401 * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
402 * inet/getproto_r.c (NSS_attribute_hidden): Remove.
403 * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
404 * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
405 * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
406 * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
407 * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
408 * inet/getservent_r.c (NSS_attribute_hidden): Remove.
409 * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
410 * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
411 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
412 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
413 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
414 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
415 * libio/genops.c (__overflow): Add libc_hidden_def.
416 * libio/iovdprintf.c: Remove libio.h include.
417 * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
418 libc_hidden_weak): Define to nothing if not defined.
419 (__overflow, __woverflow): Add libc_hidden_proto.
420 * libio/wgenops.c (__woverflow): Add libc_hidden_def.
421 * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
422 (DB_LOOKUP_FCT): Add libc_hidden_proto.
423 * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
424 (DB_LOOKUP_FCT): Add libc_hidden_proto.
425 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
426 and libc_hidden_def.
427 * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
428 * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
429 (__getpgid): Add libc_hidden_proto.
430 (__bsd_getpgrp): Remove INTUSE.
431 * resolv/res_init.c (__res_ninit, __res_randomid): Add
432 libc_hidden_def.
433 * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
434 * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
435 * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
436 * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
437 * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
438 * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
439 __rpc_thread_createerr): Add libc_hidden_def.
440 * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
441 libc_hidden_def.
442 * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
443 * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
444 * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
445 * sysdeps/generic/chown.c (__chown): Likewise.
446 * sysdeps/generic/close.c (__close): Likewise.
447 * sysdeps/generic/dup2.c (__dup2): Likewise.
448 * sysdeps/generic/pipe.c (__pipe): Likewise.
449 * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
450 * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
451 * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
452 * sysdeps/generic/read.c (__libc_read): Likewise.
453 (__read): Add libc_hidden_weak.
454 * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
455 * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
456 * sysdeps/generic/select.c (__select): Likewise.
457 * sysdeps/generic/send.c (__send): Likewise.
458 * sysdeps/generic/setpgid.c (__setpgid): Likewise.
459 * sysdeps/generic/sigaction.c (__sigaction): Likewise.
460 * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
461 * sysdeps/generic/statfs.c (__statfs): Likewise.
462 * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
463 * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
464 * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
465 Remove undef and INTDEF.
466 * sysdeps/generic/getpgid.c (__getpgid): Likewise.
467 * sysdeps/generic/getpid.c (__getpid): Likewise.
468 * sysdeps/generic/write.c (__libc_write): Likewise.
469 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
470 * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
471 * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
472 * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
473 * sysdeps/mach/hurd/chown.c (__chown): Likewise. Remove INTDEF.
474 * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
475 Remove undef and INTDEF.
476 * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
477 * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
478 * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
479 * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
480 * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
481 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
482 * sysdeps/mach/hurd/pipe.c: Include unistd.h.
483 (__pipe): Add libc_hidden_def.
484 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
485 libc_hidden_weak.
486 * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
487 * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
488 * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
489 (__read): Add libc_hidden_weak.
490 * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
491 (__libc_pwrite64): Add libc_hidden_def.
492 * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
493 * sysdeps/mach/hurd/select.c (__select): Likewise.
494 * sysdeps/mach/hurd/send.c (__send): Likewise.
495 * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
496 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
497 * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
498 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
499 * sysdeps/posix/dup2.c: Likewise.
500 Remove undef and INTDEF.
501 * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
502 * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
503 (__pwrite64): Add libc_hidden_weak.
504 * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
505 * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
506 * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
507 * sysdeps/standalone/close.c (__close): Likewise.
508 * sysdeps/standalone/write.c (__libc_write): Likewise.
509 (__write): Add libc_hidden_weak.
510 * sysdeps/standalone/read.c (__read): Likewise.
511 (__libc_read): Add libc_hidden_def.
512 * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
513 * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
514 * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
515 * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
516 * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
517 * sysdeps/unix/bsd/poll.c (__poll): Likewise.
518 * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
519 * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
520 * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
521 __GI___sigaction): Add.
522 * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
523 * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
524 * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
525 * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
526 * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
527 __GI___setpgid): Add.
528 * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
529 Remove undef and INTDEF.
530 * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
531 * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
532 * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
533 * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
534 * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
535 * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
536 * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
537 * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
538 * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
539 * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
540 * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
541 * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
542 * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
543 * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
544 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
545 __GI___statfs, __GI___send): Add.
546 * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
547 libc_hidden_ver resp. libc_hidden_def.
548 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
549 libc_hidden_def.
550 * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
551 Likewise. Remove undef and INTDEF.
552 * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
553 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
554 __GI___statfs, __GI___send): Add.
555 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
556 libc_hidden_def.
557 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
558 Likewise.
559 * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
560 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
561 libc_hidden_ver resp. libc_hidden_def.
562 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
563 __GI___send): Add.
564 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
565 Add libc_hidden_weak.
566 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
567 Add libc_hidden_def.
568 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
569 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
570 libc_hidden_weak.
571 * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
572 resp. libc_hidden_def.
573 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
574 libc_hidden_weak.
575 * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise. Remove
576 INTDEF.
577 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
578 Likewise. Remove undef.
579 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
580 libc_hidden_weak.
581 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
582 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
583 libc_hidden_weak.
584 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
585 libc_hidden_def.
586 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
587 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
588 Likewise. Remove undef and INTDEF.
589 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
590 libc_hidden_def.
591 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
592 libc_hidden_weak.
593 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
594 libc_hidden_def.
595 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
596 (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
597 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
598 libc_hidden_weak.
599 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
600 Add libc_hidden_def.
601 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
602 __GI___statfs): Add.
603 * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
604 libc_hidden_weak.
605 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
606 * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
607 Remove undef and INTDEF.
608 * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
609 * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
610 libc_hidden_def.
611 * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
612 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
613 libc_hidden_weak.
614 * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
615 libc_hidden_def.
616 * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
617 * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
618 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
619 Add.
620 * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
621 libc_hidden_def. Remove undef and INTDEF.
622 * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
623 * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
624 libc_hidden_def.
625 * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
626 * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
627 * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
628 * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
629 Remove undef and INTDEF.
630 * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
631 broken visibility attribute handling.
632 * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
633
62a08e44
UD
6342002-08-02 Ulrich Drepper <drepper@redhat.com>
635
ae309ba9
UD
636 * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
637 Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
638
62a08e44
UD
639 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
640 previous patch.
641
6422002-06-29 Todd Fries <todd@openbsd.org>
643
644 * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
645
c64f25a3
UD
6462002-08-02 Jakub Jelinek <jakub@redhat.com>
647
648 * include/errno.h: Don't include tls.h if _ISOMAC is defined.
649
fc10bc8d
RM
6502002-07-30 Roland McGrath <roland@redhat.com>
651
652 * resolv/resolv.h (_res): Define macro unconditionally.
653 [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
654 * include/resolv.h: ... here.
655 [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
656 as a __thread variable.
657 * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
658 a __thread variable instead of a global.
659 * resolv/res_data.c [_LIBC]: Don't #undef _res.
660
661 * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
662 time we test it.
663
664 * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
665
666 * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
667 decls of memset and memcpy.
668
669 * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
670 * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
671
672 * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
673
674 * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
675 (__libc_tsd_define): Define using __thread.
676
677 * sunrpc/rpc_thread.c: Use __libc_tsd_define.
678 (__rpc_thread_variables): Use __libc_tsd_get.
679 (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
680 __rpc_thread_variables, which might allocate what we're about to free.
681
682 * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
683 thread-local variable.
684 * resolv/netdb.h (h_errno): Define macro unconditionally.
685 [_LIBC] (__set_h_errno): Macro moved to ...
686 * include/netdb.h: ... here.
687 [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
688 [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
689 [! _LIBC_REENTRANT]: #undef h_errno here.
690
691 * include/errno.h: Protect from multiple inclusion.
692
693 * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
694 before defining them, since Linux's <linux/posix_types.h> might have
695 defined them.
696
06c2c536
UD
6972002-08-02 Jakub Jelinek <jakub@redhat.com>
698
699 * malloc/malloc.c (public_cALLOc): Check for overflow on
700 multiplication.
701 * sunrpc/xdr_array.c (xdr_array): Likewise.
702 * sunrpc/rpc/types.h (mem_free): Add comment.
703 Patch by Solar Designer <solar@openwall.com>.
704
7052002-08-02 Jakub Jelinek <jakub@redhat.com>
706
707 * sysdeps/unix/sysv/linux/kernel-features.h
708 (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
709
fc10bc8d 7102002-08-01 Roland McGrath <roland@redhat.com>
acbee5f6
RM
711
712 * libio/fileops.c (_IO_file_sync_mmap): New function.
713 (_IO_file_jumps_mmap): Use it.
714 (_IO_file_underflow_mmap): Rewritten. If after EOF or fflush,
715 repeat the stat check and resize the mapped buffer as necessary.
716
fc10bc8d 7172002-07-31 Roland McGrath <roland@redhat.com>
acbee5f6
RM
718
719 * libio/fileops.c (decide_maybe_mmap): New static function.
720 Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
721 mmap the file contents. Then switch the jump tables to the mmap
722 tables if it worked, or the vanilla file tables if not.
723 (_IO_file_underflow_maybe_mmap): New function.
724 (_IO_file_seekoff_maybe_mmap): New function.
725 (_IO_file_xsgetn_maybe_mmap): New function.
726 (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
727 * libio/libioP.h: Declare those.
728 * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
729 (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
730 * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
731 If the stream is read-only, set its jump tables to those new ones.
732 * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
733 jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
734 We need the tables set before _IO_file_attach.
735
736 * libio/tst-mmap-eofsync.c: New file.
737 * libio/tst-mmap-fflushsync.c: New file.
738 * libio/bug-mmap-fflush.c: New file.
739 * libio/tst-mmap2-eofsync.c: New file.
740 * libio/Makefile (tests): Add them.
741
742 * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
743 _IO_file_underflow_mmap fails, it already set the appropriate bit.
744
b264e1d1
RM
7452002-07-31 Jeff Bailey <jbailey@gnu.org>
746
06c2c536 747 * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
b264e1d1 748 Declarations moved to <bits/sys_errlist.h>. Include that file.
06c2c536
UD
749 * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
750 * sysdeps/generic/bits/sys_errlist.h: New file. This does *not*
751 declare sys_errlist and sys_nerr.
752 * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file. Does
b264e1d1
RM
753 provide declarations.
754
fc10bc8d 7552002-07-31 Roland McGrath <roland@redhat.com>
935f95dd
RM
756
757 * elf/rtld.c (dl_main): Fix typo in error message.
758
2edcd24e
RM
7592002-07-31 Roland McGrath <roland@frob.com>
760
761 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
762 __xstat -> __xstat64, __lseek -> __libc_lseek64. Completes 2002-06-09
763 sysdeps/mach/hurd/dl-sysdep.c change.
764
79996eee
UD
7652002-07-28 Ulrich Drepper <drepper@redhat.com>
766
79c38d7f
UD
767 * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
768 -r`/build/include for kernel headers.
769
79996eee
UD
770 * po/fi.po: New file.
771
3172f58f
UD
7722002-07-15 Alexandre Oliva <aoliva@redhat.com>
773
774 * configure.in (static_nss): Set to `yes' if --disable-shared.
775
7762002-07-23 Bruno Haible <bruno@clisp.org>
777
778 * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
779 is set.
780
7812002-07-25 Jakub Jelinek <jakub@redhat.com>
782
783 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
784 * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
785 arguments.
786
7872002-07-25 Jakub Jelinek <jakub@redhat.com>
788
789 * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
790 alias.
791
7922002-07-21 Bruno Haible <bruno@clisp.org>
793
794 * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
795 * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
796 sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
797 trans_sysdep_tab_offset.
798 (struct sysdep_segment): New type.
799 (struct sysdep_string): New type.
800 (SEGMENTS_END): New macro.
801 * intl/gettextP.h (struct sysdep_string_desc): New type.
802 (struct loaded_domain): New fields malloced, n_sysdep_strings,
803 orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
804 orig_tab, trans_tab, hash_tab to const pointers because they point
805 into read-only memory.
806 * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
807 (PRI*): Define fallback values.
808 (get_sysdep_segment_value): New function.
809 (_nl_load_domain): Distinguish major and minor revision parts. Add
810 support for minor revision 1 with system dependent strings.
811 (_nl_unload_domain): Also free the 'malloced' field.
812 * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
813 now done in loadmsgcat.c. Add support for system dependent strings.
814
d683fe11
UD
8152002-07-16 Stepan Kasal <kasal@math.cas.cz>
816
817 * posix/bug-regex7.c: New file.
818 * posix/bug-regex8.c: New file.
819 * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
820
8212002-07-16 Stepan Kasal <kasal@math.cas.cz>
822
823 * posix/bug-regex4.c (main): Fix typos.
824 * posix/bug-regex6.c (main): Likewise.
825
ac3d553b
UD
8262002-07-27 Ulrich Drepper <drepper@redhat.com>
827
d683fe11
UD
828 * posix/bug-regex6.c (main): Fix warnings.
829
ac3d553b
UD
830 * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
831
832 * iconv/iconv_prog.c (main): Improve error message for the cases
833 where -t and/or -f parameter are missing.
834
8352002-07-10 Stepan Kasal <kasal@math.cas.cz>
836
837 * posix/regexec.c (re_match): Reorganize to remove duplicate code.
838 (re_search): Likewise.
839 (re_match_2): Likewise.
840 (re_search_2): Likewise.
841 (re_search_stub): New function.
842 (re_search_2_stub): New function.
843 * regcomp.c (re_compile_pattern): Typo in a comment fixed.
844
8452002-07-10 Isamu Hasegawa <isamu@yamato.ibm.com>
846
847 * posix/regex_internal.h: Add new member STOP to struct re_string_t.
848 (re_string_eoi): Use STOP instead of LEN.
849 * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
850 (re_string_construct): Likewise.
851 (re_string_reconstruct): Adjust pstr->stop like pstr->len.
852 * posix/regexec.c (re_search_internal): Add a new argument STOP
853 so that it can handle the argument STOP of re_search_2 and re_match_2
854 correctly.
855 (regexec): Adapt to new I/F of re_search_internal.
856 (re_search_stub): Likewise.
857
51d46f73
UD
8582002-07-25 Ulrich Drepper <drepper@redhat.com>
859
85ae1f39
UD
860 * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
861
bc32ebd3
UD
862 * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
863
51d46f73
UD
864 * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
865 * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
866 of __divdi3.
867
868 * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
869 * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
870 * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
871 alias for adjtimex syscall.
872
873 * elf/dl-minimal.c: Define __assert_fail_internal.
874 * assert/assert.c: Likewise.
875 * include/assert.h: Define __assert_file macro if !SHARED and not
876 NOT_IN_libc.
877
878 * iconv/Makefile: Define NOT_IN_libc for objects in standalone
879 programs.
880 * locale/Makefile: Likewise.
881 * nscd/Makefile: Likewise.
882 * catgets/Makefile: Likewise.
883
78ce5a3b
UD
8842002-07-24 Ulrich Drepper <drepper@redhat.com>
885
886 * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
887 compute current position.
888
889 * stdio-common/tst-fseek.c (main): Improve error messages.
890
891 * libio/tst-freopen.c (main): Remove unused variable.
892
893 * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
51d46f73 894 succesful seek call. Simplify error checking.
78ce5a3b
UD
895
8962002-07-25 Jakub Jelinek <jakub@redhat.com>
897
898 * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
899 * sysdeps/ia64/fpu/libm_support.h: Likewise.
900
a753ffb2
RM
9012002-07-19 Roland McGrath <roland@frob.com>
902
903 * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
904 __libc_enable_secure is set.
905
11d657d7
RM
9062002-07-24 Roland McGrath <roland@frob.com>
907
7f1deee6
RM
908 Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
909 This implementation supports only IPv4.
910 * inet/ifaddrs.h: New file.
911 * sysdeps/generic/ifaddrs.c: New file.
912 * sysdeps/gnu/ifaddrs.c: New file.
913 * inet/test-ifaddrs.c: New file.
914 * inet/Makefile (routines): Add ifaddrs.
915 (headers): Add ifaddrs.h here.
916 (tests): Add test-ifaddrs.
917 * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
918
919 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
920 socket call to get an AF_INET socket, instead of using __opensock.
921 The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
922
923 * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
924 if not -1 use it instead of calling __opensock.
925 * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
926 * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
927 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
928
929 * sysdeps/mach/hurd/ifreq.h: New file.
930 * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
931 * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
932 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
933
11d657d7
RM
934 * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
935 which gets moved around. Calculate size of mmap'd buffer instead.
936
6e96b6ec
UD
9372002-07-24 Philip Blundell <philb@gnu.org>
938
939 * sysdeps/unix/arm/brk.S: Improve schedule.
940 * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
941 efficient instruction.
942 (__socket): Optimize return sequence.
943
be45f421
UD
9442002-07-24 Ulrich Drepper <drepper@redhat.com>
945
946 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
947 sockets on old kernels.
948
7a9a2681
UD
9492002-07-22 Philip Blundell <philb@gnu.org>
950
951 * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
952 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
953 alias.
954
405550bf
UD
9552002-07-24 Ulrich Drepper <drepper@redhat.com>
956
6e96b6ec 957 * locale/hashval.h: Make more self-contained by defining LONG_BITS.
405550bf
UD
958 * locale/programs/simple-hash.c: Remove LONG_BITS definition.
959
960 * locale/programs/locarchive.c (add_locale_to_archive): Correct
961 test to detect duplicate locales.
962
963 * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
964 position would be before beginning of file.
965 (_IO_file_seekoff_mmap): Likewise.
966 * libio/Makefile (tests): Add bug-fseek.
967 * libio/bug-fseek.c: New file.
968
969 * intl/explodename.c: Remove support for CEN-style locale variables.
970 It was never used and shouldn't be since it's not portable.
971 * intl/finddomain.c: Likewise.
972 * intl/l10nflist.c: Likewise.
973 * intl/loadinfo.h: Likewise.
974 * locale/findlocale.c: Likewise.
975
7e93f915
RM
9762002-07-24 Roland McGrath <roland@frob.com>
977
978 * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
979 position, calculate it to take into account an active pushback buffer.
980
981 * libio/Makefile (tests): Add bug-ungetc.
982 * libio/bug-ungetc.c: New file.
983
8a30f00f
UD
9842002-07-23 Ulrich Drepper <drepper@redhat.com>
985
986 * sysdeps/generic/libc-tls.c: New file.
987 * csu/Makefile (routines): Add libc-tls.
988 (static-only-routines): Add libc-tls.
989 * elf/dl-support.c (_dl_phdr): New variable.
990 (_dl_phnum): New variable.
991 (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
992 * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
993 for !SHARED. First look through auxiliary vector. If TLS always
994 call __pthread_initialize_minimal.
995
996 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
997 in mmap call is never zero.
998
deb1a1df
AJ
9992002-07-23 Andreas Jaeger <aj@suse.de>
1000
1001 * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
1002 * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
1003
3fa3d0b2
UD
10042002-07-22 Ulrich Drepper <drepper@redhat.com>
1005
97887d35
UD
1006 * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
1007 creation and removal of the temp file.
1008
3fa3d0b2
UD
1009 * libio/bug-rewind.c: Use test skeleton. Use create_temp_file for
1010 file creation.
1011 * test-skeleton.c (create_temp_file): New function.
1012
bb379770
AJ
10132002-07-22 Andreas Jaeger <aj@suse.de>
1014
1015 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
1016 local label.
1017
8470bd53
RM
10182002-07-21 Roland McGrath <roland@frob.com>
1019
1020 * wcsmbs/Makefile (strtox-CFLAGS): New variable,
1021 put -I../include before -I../stdlib so we get the right errno.h et al.
1022 (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
1023 (CFLAGS-wcstof.c): Likewise.
1024 (CFLAGS-wcstold.c): Likewise.
1025 (CFLAGS-wcstod_l.c): Likewise.
1026 (CFLAGS-wcstof_l.c): Likewise.
1027 (CFLAGS-wcstold_l.c): Likewise.
1028
5bff6009
RM
10292002-07-19 Roland McGrath <roland@frob.com>
1030
1031 * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
1032
864dd9b2
UD
10332002-07-20 Ulrich Drepper <drepper@redhat.com>
1034
846c6907
UD
1035 * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
1036 __ASSUME_AT_XID is defined.
1037 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
1038 for 2.4.1 and up.
1039 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
1040 of AT_UID, AT_EUID, AT_GID, and AT_EGID.
1041
864dd9b2
UD
1042 * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
1043 (CFLAGS-wcstof.c): Likewise.
1044 (CFLAGS-wcstold.c): Likewise.
1045 (CFLAGS-wcstod_l.c): Likewise.
1046 (CFLAGS-wcstof_l.c): Likewise.
1047 (CFLAGS-wcstold_l.c): Likewise.
1048
48f6e9ae
UD
10492002-07-18 Jakub Jelinek <jakub@redhat.com>
1050
1051 * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
1052 __priority_which_t): Always typedef to int for C++.
1053
739d440d
UD
10542002-07-19 Ulrich Drepper <drepper@redhat.com>
1055
1056 * configure.in: Add test for __thread support in compiler.
1057 * config.h.in: Add HAVE___THREAD.
1058 * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
1059 * include/sys/errno.h: Moved to...
1060 * stdlib/sys/errno.h: ...here. New file.
1061 * stdlib/errno.h: New file. Moved from...
1062 * include/errno.h: ...here. Changed into an internal header defining
1063 libc-local things like __set_errno.
1064 * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
1065 bits/errno.h.
1066 * elf/dl-minimal.c: Include <tls.h>. Define errno as thread-local
1067 variable if USE_TLS && HAVE___THREAD. Don't define __errno_location
1068 either.
1069 * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
1070 from...
1071 (_dl_start_final): ...here. Add code to initialize tls elements from
1072 bootstrap_map.
1073 * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
1074 if USE_TLS && HAVE___THREAD.
1075 * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
1076 * sysdeps/mach/hurd/bits/errno.h: Likewise.
1077 * sysdeps/standalone/arm/bits/errno.h: Likewise.
1078 * sysdeps/standalone/bits/errno.h: Likewise.
1079 * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
1080 * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
1081 * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
1082 * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
1083 * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
1084 * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
1085 * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
1086 * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
1087 use GL(dl_rtld_map), use map parameter.
1088 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
1089 * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
1090 USE_TLS && HAVE___THREAD.
1091 * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
1092 definitions. If USE_TLS && HAVE___THREAD store errooor value using
1093 TLS code sequence.
1094 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
1095
1096 * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
1097 * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
1098 * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
1099 * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
1100 * sysdeps/unix/sysv/linux/readv.c: Likewise.
1101 * sysdeps/unix/sysv/linux/writev.c: Likewise.
1102
9df63767
UD
11032002-07-17 Ulrich Drepper <drepper@redhat.com>
1104
1105 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
1106 MS_INVALIDATE values.
1107
cd682e15
UD
11082002-07-17 Andreas Schwab <schwab@suse.de>
1109 Ulrich Drepper <drepper@redhat.com>
1110
1111 * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
1112 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
1113 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
1114 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1115
11fa51b8
UD
11162002-07-01 H.J. Lu <hjl@gnu.org>
1117
1118 * elf/circleload1.c (load_dso): Call "circlemod1" and check
1119 return value.
1120
1121 * elf/circlemod1.c (circlemod1): Return int.
1122 * elf/circlemod2.c (circlemod2): Likewise.
1123 * elf/circlemod2a.c (circlemod2): Likewise.
1124 * elf/circlemod3.c (circlemod3): Likewise.
1125 (circlemod3a): A new function.
1126
8a989129
UD
11272002-07-16 Ulrich Drepper <drepper@redhat.com>
1128
d747a0a5
UD
1129 * catgets/tst-catgets.c (main): Don't expect results for
1130 untranslated messages.
1131
8a989129
UD
1132 * glibcbug.in: Fix little typo. Remove STDIO.
1133
1134 * config.h.in: Fail if __FAST_MATH__ is defined.
d747a0a5
UD
1135 * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
1136 (CPPFLAGS-test-idouble.c): Likewise.
1137 (CPPFLAGS-test-ildouble.c): Likewise.
8a989129 1138
d2afebcc
UD
11392002-07-15 Ulrich Drepper <drepper@redhat.com>
1140
1141 * intl/tst-gettext.sh: Pass -f option to msgfmt.
1142 * intl/tst-gettext.c: Correctly handle untranslated messages in
1143 positive tests.
1144
1145 * po/de.po: Update from translation team.
1146
a99bfa85
UD
11472002-07-02 H.J. Lu <hjl@gnu.org>
1148
1149 * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>. Always
1150 use ll/sc.
1151 * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
1152
1153 * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
1154 to 2.4.0 for mips.
1155
706d1dee
UD
11562002-07-15 Ulrich Drepper <drepper@redhat.com>
1157
807bce82 1158 * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
a99bfa85 1159 TLS fail if USE_TLS is not defined.
807bce82 1160
706d1dee
UD
1161 * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
1162 and adjust state for seek position. [PR libc/4070]
1163 * libio/Makefile (tests): Add bug-rewind.
1164 * libio/bug-rewind.c: New file.
1165
c3da4f0c
UD
11662002-07-12 Philip Blundell <philb@gnu.org>
1167
1168 * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
1169 (__backtrace): Use it.
1170 * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define. [PR libc/2632]
1171
11722002-07-12 Philip Blundell <philb@gnu.org>
1173
1174 * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
1175 R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
1176 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
1177 (elf_machine_rela): Remove unused variable.
1178
1179 * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
1180 (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
1181 define.
1182
11832002-07-12 Ulrich Drepper <drepper@redhat.com>
1184
1185 * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
1186
3dbd4a6f
AJ
11872002-07-14 Andreas Jaeger <aj@suse.de>
1188
1189 * sysdeps/x86_64/bits/link.h: Add biarch support.
1190
631aeba4
AJ
11912002-07-13 Andreas Jaeger <aj@suse.de>
1192
1193 * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
1194 Use correct indices.
1195 Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
1196
7bf75551
UD
11972002-07-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1198
1199 * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
1200 * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
1201 * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
1202 * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
1203 * sysdeps/s390/s390-32/bits/link.h: Remove.
1204 * sysdeps/s390/s390-64/bits/link.h: Remove.
1205 * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
1206 * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
1207 * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
1208 * sysdeps/s390/bits/wordsize.h: New file.
1209 * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
1210 elfclass.h.
1211 * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
1212 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
1213 * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
1214 * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
1215 * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
1216 * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
1217 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
1218 * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
1219 * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
1220 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
1221 * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
1222 * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
1223 resource.h.
1224 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
1225 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
1226 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
1227 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
1228 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
1229 * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
1230 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
1231 sigaction.h.
1232 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
1233 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
1234 siginfo.h.
1235 * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
1236 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
1237 * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
1238 socket.h.
1239 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
1240 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
1241 * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
1242 * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
1243 * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
1244 * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
1245 * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
1246 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
1247 procfs.h.
1248 * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
1249 * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
1250 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
1251 ucontext.h.
1252 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
1253 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
1254
3e0dd85b
UD
12552002-07-11 Ulrich Drepper <drepper@redhat.com>
1256
1257 * Versions.def (libc): Add GLIBC_2.3.
1258 * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
1259 * stdlib/canonicalize.c: Add compatibility version for realpath
1260 and make new code available in GLIBC_2.3.
1261
1ae915d9
UD
12622002-07-06 Bruno Haible <bruno@clisp.org>
1263
1264 * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
1265
7d68a8ec
UD
12662002-07-11 Ulrich Drepper <drepper@redhat.com>
1267
9d957ce2
UD
1268 * resolv/res_hconf.c (_res_hconf_init): Move code into new
1269 function do_init. Use __libc_once.
1270 (do_init): New function.
1271
cb2a71bb
UD
1272 * iconvdata/iso8859-11.h: Removed.
1273 * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
1274 (distribute): Remove iso8859-11.h.
1275 * iconvdata/tst-tables.sh: Add ISO-8859-11.
1276
7d68a8ec
UD
1277 * stdio-common/vfscanf.c (inchar): Restore errno from previous
1278 underflow operation if c == (W)EOF.
1279
52e1b618
UD
12802002-07-03 Jakub Jelinek <jakub@redhat.com>
1281
d683fe11 1282 * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
52e1b618
UD
1283 non-zero, adjust exponent.
1284 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
1285 Remove NO_LONG_DOUBLE aliases.
1286 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
1287 * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
1288 (__log1pl): Raise divide by zero and invalid exceptions when needed.
1289 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
1290 1**y and -1**+-Inf.
1291 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
1292 Fix BITS_PER_MP_LIMB 32 extraction.
1293 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
1294 exceptions for qNaNs.
1295 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
1296 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
1297 Raise exceptions when needed. Don't recurse unnecessarily.
1298 Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
1299 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
1300 exceptions for qNaNs.
1301 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
1302 to fix *quo return value sign.
1303 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
1304 case -Inf argument.
1305 * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
1306
13072002-07-01 Jakub Jelinek <jakub@redhat.com>
1308
1309 * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
1310 * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
1311 -DNDEBUG.
1312
b664d723
UD
13132002-07-10 Ulrich Drepper <drepper@redhat.com>
1314
1315 * malloc/hooks.c (realloc_check): If mremap succeeds actually use
1316 the result.
1317
1318 * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
1319 output parameter. Reported by Denis Zaitsev <zzz@cd-club.ru>.
1320
1321 * Versions.def (libthread_db): Add GLIBC_2.3.
1322
13232002-07-09 Jakub Jelinek <jakub@redhat.com>
1324
1325 * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
1326 new stream if possible.
1327 * libio/freopen64.c (freopen64): Likewise.
1328 * libio/Makefile (tests): Add tst-freopen.
1329 * libio/tst-freopen.c: New file.
1330
13312002-07-03 Jakub Jelinek <jakub@redhat.com>
1332
1333 * libio/stdio.h (obstack_printf): Add format attribute.
1334 (obstack_vprintf): Likewise.
1335
13362002-07-04 Jakub Jelinek <jakub@redhat.com>
1337
1338 * posix/regex_internal.h (re_token_t): Shrink the structure to 8
1339 resp. 16 bytes on 32-bit resp. 64-bit platforms.
1340 (re_charset_t, re_string_t): Reorder structure members for 64-bit
1341 architectures.
1342
13432002-07-04 Jakub Jelinek <jakub@redhat.com>
1344
1345 * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
1346 (init_dfa): ...here.
1347
13482002-07-05 Isamu Hasegawa <isamu@yamato.ibm.com>
1349
1350 * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
1351 OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
1352 nodes in parse trees.
1353 (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
1354 and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
1355 (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
1356 nodes which can epsilon transit.
1357 * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
1358 to IS_EPSILON_NODE macro.
1359 * posix/regexec.c (update_regs): New function to update registers
1360 by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
1361 (proceed_next_node): Use the entities of the nodes to determine
1362 whether the node can transit to.
1363 (set_regs): Use update_regs function to update registers.
1364
13652002-07-03 Jakub Jelinek <jakub@redhat.com>
1366
1367 * posix/bug-regex4.c (main): Remove duplicate setlocale.
1368 * posix/bug-regex6.c: New file.
1369 * posix/Makefile (tests): Add bug-regex6.
1370 (bug-regex6-ENV): Set LOCPATH.
1371
81c64d40 13722002-07-10 Ulrich Drepper <drepper@redhat.com>
06c9b64b 1373
81c64d40
UD
1374 * Versions.def [libpthread]: Add GLIBC_2.2.6.
1375 * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
1376
13772002-07-06 Bruno Haible <bruno@clisp.org>
1378
1379 * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
06c9b64b 1380
09c81ddf
AJ
13812002-07-06 Bruno Haible <bruno@clisp.org>
1382
6f9ddfff
AJ
1383 * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
1384 declarations.
1385
09c81ddf
AJ
1386 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
1387
1388 * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
1389
1390 * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
1391 not _UTSNAME_H.
1392 * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
1393
1394 * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
1395 * sysdeps/generic/bits/ustat.h: Likewise.
1396
81c64d40 1397 * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
09c81ddf 1398
4d891752
AJ
13992002-07-08 Andreas Jaeger <aj@suse.de>
1400
1401 * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
1402
9dda82d0
AJ
14032002-07-08 Andreas Jaeger <aj@suse.de>
1404
1405 * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
1406
9359218f
AJ
14072002-07-06 Andreas Jaeger <aj@suse.de>
1408
1409 * sysdeps/x86_64/fpu/bits/mathinline.h: New.
1410 * sysdeps/x86_64/fpu/s_copysign.S: New.
1411 * sysdeps/x86_64/fpu/s_copysignf.S: New.
1412 * sysdeps/x86_64/fpu/s_copysignl.S: New.
1413 * sysdeps/x86_64/fpu/s_finitel.S: New.
1414 * sysdeps/x86_64/fpu/s_fmax.S: New.
1415 * sysdeps/x86_64/fpu/s_fmaxf.S: New.
1416 * sysdeps/x86_64/fpu/s_fmaxl.S: New.
1417 * sysdeps/x86_64/fpu/s_fmin.S: New.
1418 * sysdeps/x86_64/fpu/s_fminf.S: New.
1419 * sysdeps/x86_64/fpu/s_fminl.S: New.
1420
aeb25823
AJ
14212002-06-05 Brian Youmans <3diff@gnu.org>
1422
1423 * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
1424 * sysdeps/ia64/fpu/e_acosf.S: Likewise.
1425 * sysdeps/ia64/fpu/e_acosl.S: Likewise.
1426 * sysdeps/ia64/fpu/e_asin.S: Likewise.
1427 * sysdeps/ia64/fpu/e_asinf.S: Likewise.
1428 * sysdeps/ia64/fpu/e_asinl.S: Likewise.
1429 * sysdeps/ia64/fpu/e_atan2.S: Likewise.
1430 * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
1431 * sysdeps/ia64/fpu/e_cosh.S: Likewise.
1432 * sysdeps/ia64/fpu/e_coshf.S: Likewise.
1433 * sysdeps/ia64/fpu/e_coshl.S: Likewise.
1434 * sysdeps/ia64/fpu/e_exp.S: Likewise.
1435 * sysdeps/ia64/fpu/e_expf.S: Likewise.
1436 * sysdeps/ia64/fpu/e_fmod.S: Likewise.
1437 * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
1438 * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
1439 * sysdeps/ia64/fpu/e_hypot.S: Likewise.
1440 * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
1441 * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
1442 * sysdeps/ia64/fpu/e_log.S: Likewise.
1443 * sysdeps/ia64/fpu/e_logf.S: Likewise.
1444 * sysdeps/ia64/fpu/e_pow.S: Likewise.
1445 * sysdeps/ia64/fpu/e_powf.S: Likewise.
1446 * sysdeps/ia64/fpu/e_powl.S: Likewise.
1447 * sysdeps/ia64/fpu/e_remainder.S: Likewise.
1448 * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
1449 * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
1450 * sysdeps/ia64/fpu/e_scalb.S: Likewise.
1451 * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
1452 * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
1453 * sysdeps/ia64/fpu/e_sinh.S: Likewise.
1454 * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
1455 * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
1456 * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
1457 * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
1458 * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
1459 * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
1460 * sysdeps/ia64/fpu/libm_error.c: Likewise.
1461 * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
1462 * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
1463 * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
1464 * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
1465 * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
1466 * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
1467 * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
1468 * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
1469 * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
1470 * sysdeps/ia64/fpu/s_log1p.S: Likewise.
1471 * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
1472 * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
1473 * sysdeps/ia64/fpu/s_logb.S: Likewise.
1474 * sysdeps/ia64/fpu/s_logbf.S: Likewise.
1475 * sysdeps/ia64/fpu/s_logbl.S: Likewise.
1476 * sysdeps/ia64/fpu/s_modf.S: Likewise.
1477 * sysdeps/ia64/fpu/s_modff.S: Likewise.
1478 * sysdeps/ia64/fpu/s_modfl.S: Likewise.
1479 * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
1480 * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
1481 * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
1482 * sysdeps/ia64/fpu/s_rint.S: Likewise.
1483 * sysdeps/ia64/fpu/s_rintf.S: Likewise.
1484 * sysdeps/ia64/fpu/s_rintl.S: Likewise.
1485 * sysdeps/ia64/fpu/s_round.S: Likewise.
1486 * sysdeps/ia64/fpu/s_roundf.S: Likewise.
1487 * sysdeps/ia64/fpu/s_roundl.S: Likewise.
1488 * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
1489 * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
1490 * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
1491 * sysdeps/ia64/fpu/s_significand.S: Likewise.
1492 * sysdeps/ia64/fpu/s_significandf.S: Likewise.
1493 * sysdeps/ia64/fpu/s_significandl.S: Likewise.
1494 * sysdeps/ia64/fpu/s_tan.S: Likewise.
1495 * sysdeps/ia64/fpu/s_tanf.S: Likewise.
1496 * sysdeps/ia64/fpu/s_tanl.S: Likewise.
1497 * sysdeps/ia64/fpu/s_trunc.S: Likewise.
1498 * sysdeps/ia64/fpu/s_truncf.S: Likewise.
1499 * sysdeps/ia64/fpu/s_truncl.S: Likewise.
1500 * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
1501 reflect IBM donation of math library to FSF
1502 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1503 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1504 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1505 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1506 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1507 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1508 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1509 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1510 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1511 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1512 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1513 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
1514 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
1515 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
1516 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
1517 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
1518 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1519 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1520 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1521 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
1522 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
1523 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
1524 * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
1525 * sysdeps/vax/__longjmp.c: Likewise.
1526 * sysdeps/vax/setjmp.c: Likewise.
1527 * libio/filedoalloc.c: Fixed BSD copying permission notice to
1528 remove advertising clause
1529 * sysdeps/vax/htonl.s: Likewise.
1530 * sysdeps/vax/htons.s: Likewise.
1531 * libio/wfiledoalloc.c: Likewise.
1532 * stdlib/random.c: Likewise.
1533 * stdlib/random_r.c: Likewise.
1534 * sysdeps/mach/sys/reboot.h: Likewise.
1535 * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
1536 * sysdeps/posix/getaddrinfo.c: Likewise.
1537 * sunrpc/des_impl.c: Updated license permission notice to Lesser
1538 GPL and corrected pointer to point to the correct license.
1539
5db44419
AJ
15402002-07-04 Andreas Jaeger <aj@suse.de>
1541
1542 * scripts/config.guess: New upstream version.
1543 * scripts/config.sub: Likewise.
1544
358e5875
AS
15452002-07-02 Andreas Schwab <schwab@suse.de>
1546
1547 * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
1548 in parallel to bumping up the buffer pointer.
1549
32f65d5d
AJ
15502002-07-01 Jakub Jelinek <jakub@redhat.com>
1551
1552 * math/libm-test.inc (acos_test): Add missing L suffix for
1553 expected result.
1554 (cpow_test): Likewise.
1555 * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
1556 error for acos (0.0625).
1557
9d0c92b2
UD
15582002-06-30 Ulrich Drepper <drepper@redhat.com>
1559
690df9e7
UD
1560 * locale/iso-639.def: Add entry for Ganda.
1561 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
1562 definition.
1563 (address_finish): Handle entries with two letter ISO 639 code.
1564
1565 * iconvdata/Makefile: Recreate gconv-modules.cache file in target
d8d5a647
UD
1566 directory if it existed before.
1567 * iconv/iconvconfig.c: Implement --prefix option.
1568
9d0c92b2 1569 * math/libm-test.inc (cexp_test): Add missing L suffix for
690df9e7 1570 expected result. Reported by Stephen L Moshier <steve@moshier.net>.
9d0c92b2
UD
1571 * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
1572 1.25 i).
1573
8081721a
UD
15742002-05-29 H.J. Lu <hjl@gnu.org>
1575
1576 * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
1577 is turned on.
1578
0b5045fe
UD
15792002-05-28 H.J. Lu <hjl@gnu.org>
1580
1581 * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
1582 are not dlopened on the dependency list of a dlopened object.
1583
6d78cd00
UD
15842002-06-30 Ulrich Drepper <drepper@redhat.com>
1585
1586 * elf/dl-lookup.c (add_dependency): It is not necessary to add
1587 dependencies if they are created between objects which are created
1588 while processing RTLD_NOW for objects loaded as part of the same
1589 dlopen call.
1590
15912002-06-14 H.J. Lu <hjl@gnu.org>
1592
1593 * elf/Makefile (tests): Add circleload1.
1594 (modules-names): Add circlemod1, circlemod2, circlemod3,
1595 circlemod1a, circlemod2a and circlemod3a.
1596 ($(objpfx)circleload1): New target.
1597 ($(objpfx)circleload1.out): Likewise.
1598 ($(objpfx)circlemod1.so): Likewise.
1599 ($(objpfx)circlemod2.so): Likewise.
1600 ($(objpfx)circlemod1a.so): Likewise.
1601 ($(objpfx)circlemod2a.so): Likewise.
1602 * elf/circleload1.c: New file.
1603 * elf/circlemod1.c: New file.
1604 * elf/circlemod1a.c: New file.
1605 * elf/circlemod2.c: New file.
1606 * elf/circlemod2a.c: New file.
1607 * elf/circlemod3.c: New file.
1608 * elf/circlemod3a.c: New file.
1609
8b8cc76f
UD
16102002-06-18 Amos Waterland <apw@us.ibm.com>
1611
1612 * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
1613 file descriptor.
1614 * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
1615 add check for fd not open for writing.
1616
1617 * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
1618 completed element(s) and do not suspend thread if so. Patch
1619 heavily modified by drepper.
1620
1621 * rt/tst-aio7.c: New file. Regression test for problems which the
1622 above three changes fix.
1623 * rt/Makefile (tests): Add tst-aio7.
1624
eabea972
UD
16252002-06-29 Ulrich Drepper <drepper@redhat.com>
1626
8b8cc76f
UD
1627 * rt/tst-aio6.c: Fix comment.
1628
eabea972
UD
1629 * catgets/gencat.c (read_input_file): Handle more than one slash
1630 at end of line correctly [PR libc/3926].
1631 Based on a patch by Steven Kim <steven.kim@peregrine.com>.
1632
1633 * catgets/sample.SJIS: Add test case for above bug.
1634 * catgets/test-gencat.c: Adjust test code.
1635 * catgets/test-gencat.sh: Adjust expected results.
1636
1637 * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
1638 to skip relative relocations.
1639 Patch by Geoff Keating <geoffk@redhat.com>.
1640
e438a468 16412002-05-26 Bruno Haible <bruno@clisp.org>
8dae594a 1642
e438a468
UD
1643 * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
1644 (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
1645 All callers changed.
1646 * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
1647 STANDARD_FROM_LOOP_ERR_HANDLER.
1648 (utf8_internal_loop): Likewise.
1649 (ucs2_internal_loop): Likewise.
1650 (internal_ucs2_loop): Perform error handling like in
1651 STANDARD_FROM_LOOP_ERR_HANDLER.
1652 * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
1653 in STANDARD_FROM_LOOP_ERR_HANDLER.
1654 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
1655 handling.
1656 * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
1657 in STANDARD_FROM_LOOP_ERR_HANDLER.
1658 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
1659 handling.
1660 * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
1661 in STANDARD_FROM_LOOP_ERR_HANDLER.
1662 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
1663 handling.
1664 * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
1665 STANDARD_FROM_LOOP_ERR_HANDLER.
1666 * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
1667 * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
1668 * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
1669 * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
1670 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
1671 * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
1672 * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
1673 * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
1674 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
1675 * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
1676 * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
1677 * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
1678 * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
1679 * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
1680 * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
1681 * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
1682 * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
1683 * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
1684 * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
1685 * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
1686 * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
1687 * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
1688 * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
1689 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
1690 * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
1691 * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
1692 * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
1693 * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
1694 * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise. When ignoring
1695 an error, still set result = __GCONV_ILLEGAL_INPUT.
1696 (BODY for TO_LOOP): Likewise.
1697 * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
1698 STANDARD_FROM_LOOP_ERR_HANDLER.
1699 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
1700 * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
1701 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
1702 handling.
1703 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
1704 * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
1705 STANDARD_FROM_LOOP_ERR_HANDLER.
1706 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
1707 * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
1708 STANDARD_FROM_LOOP_ERR_HANDLER.
1709 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
1710 * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
1711 STANDARD_FROM_LOOP_ERR_HANDLER.
1712 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
1713 * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
1714 STANDARD_FROM_LOOP_ERR_HANDLER.
1715 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
1716 * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
1717 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
1718 handling.
1719 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
1720 * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
1721 * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
1722 * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
1723
17242002-06-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1725
1726 * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
1727 labels in assembler instructions.
8dae594a 1728
51909ff7
UD
17292002-06-25 Ulrich Drepper <drepper@redhat.com>
1730
8dae594a 1731 * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
c4292489
UD
1732 not enough content is available.
1733 * libio/tst-eof.c: New file.
1734 * libio/Makefile (tests): Add tst-eof.
1735
1736 * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
1737 update atime.
1738 * libio/tst-atime.c: New file.
1739 * libio/Makefile (tests): Add tst-atime.
1740
51909ff7
UD
1741 * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
1742 handling of overly long words.
1743
13cfe899
AJ
17442002-06-25 Andreas Jaeger <aj@suse.de>
1745
1746 * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
1747 to not use 32-bit pc relative relocations.
1748 (elf_machine_dynamic): Likewise.
1749
05ae4d6a
UD
17502002-06-21 Ulrich Drepper <drepper@redhat.com>
1751
1752 * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
1753 (__GETDENTS): Check for failed getdents64 syscall.
1754 * dirent/Makefile (tests): Add bug-readdir1.
1755 * dirent/bug-readdir1.c: New file.
1756
bff334e0
UD
17572002-06-17 Jakub Jelinek <jakub@redhat.com>
1758
1759 * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
1760 lookups.
1761 * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
1762 code. Print TLS modid and offset for modules containing PT_TLS
1763 segments.
1764
17652002-06-09 Jakub Jelinek <jakub@redhat.com>
1766
1767 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
1768 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
1769 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
1770 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
1771
17722002-06-07 Jakub Jelinek <jakub@redhat.com>
1773
1774 * nss/getXXbyYY_r.c (NEW, NEW1): Define.
1775 (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
1776 (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
1777 * nss/getXXent_r.c (NEW, NEW1): Define.
1778 (NEW (REENTRANT_GETNAME)): Strong alias to
1779 INTERNAL (REENTRANT_GETNAME).
1780 (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
1781
17822002-06-21 Ulrich Drepper <drepper@redhat.com>
1783
1784 * libio/fileops.c (_IO_file_setbuf_mmap): New function.
1785 (_IO_file_jumps_mmap): Use it.
1786 * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
1787 * libio/libioP.h: Remove _IO_wdefault_setbuf and
1788 _IO_wdefault_setbuf_internal prorotypes. Add _IO_file_setbuf_mmap
1789 prototype.
1790 * libio/wfileops.c (_IO_wfile_setbuf): Removed.
1791 (_IO_wfile_jumps_mmap): Don't use it anymore.
1792 * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
1793 * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
1794 _IO_wdefault_setbuf.
1795 * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
1796 * libio/wstrops.c (_IO_wstr_jumps): Likewise.
1797 * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
1798
17992002-06-05 Jakub Jelinek <jakub@redhat.com>
1800
1801 * libio/Makefile (tests): Add tst-mmap-setvbuf.
1802 * libio/tst-mmap-setvbuf.c: New test.
1803
1a4876ef
AJ
18042002-06-21 Andreas Jaeger <aj@suse.de>
1805
1806 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
1807
e6ac0e78
UD
18082002-06-18 Jakub Jelinek <jakub@redhat.com>
1809
1810 * include/unistd.h (__fork_internal): Remove.
1811 (__fork): Don't define to __fork_internal.
1812 * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
1813 * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
1814 * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
1815 * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
1816 * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
1817
18182002-06-20 Ulrich Drepper <drepper@redhat.com>
1819
1820 * po/hr.po: New file.
1821
18222002-06-11 Wolfram Gloger <wg@malloc.de>
1823
1824 * malloc/malloc.c: Fix error path when new_heap() returns NULL.
1825 Reported by Michael Meissner <meissner@redhat.com>.
1826
18272002-06-20 Ulrich Drepper <drepper@redhat.com>
1828
1829 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
1830 Patch by Hans Boehm <hans_boehm@hp.com>.
1831
1af437d6
AJ
18322002-06-20 Andreas Jaeger <aj@suse.de>
1833
1834 * math/libm-test.inc: Use exact values as input parameters,
1835 compute output parameters with 36 digits for 128-bit long doubles.
1836 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
1837 * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
5155a72b 1838 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
1af437d6 1839
4c49989e
UD
18402002-06-13 Stephen L Moshier <steve@moshier.net>
1841
1842 * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
1843 argument or result is subnormal.
1844
18452002-06-19 Ulrich Drepper <drepper@redhat.com>
1846
1847 * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
1848 quotient.
1849 * sysdeps/i386/fpu/s_remquof.S: Likewise.
1850 * sysdeps/i386/fpu/s_remquol.S: Likewise.
1851
1852 * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
1853
280f4c0d
AJ
18542002-06-17 David Mosberger <davidm@hpl.hp.com>
1855
1856 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
1857 typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
1858 Reported by Peter A. Buhr.
1859
f5eaa9d5
RM
18602002-06-15 Roland McGrath <roland@frob.com>
1861
5b6cab3e
RM
1862 * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
1863 warning.
1864
1865 * sysdeps/mach/hurd/getcwd.c
1866 (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
1867
3b9b82ec
RM
1868 * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
1869 * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
1870
f5eaa9d5
RM
1871 * sysdeps/alpha/divrem.h: Use local label instead of global one for
1872 jump to local subroutine.
1873
6fb26a2f
RM
18742002-06-14 Roland McGrath <roland@frob.com>
1875
1876 * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
1877 * sysdeps/mach/hurd/Makeconfig: ... here.
1878
97f7dc70
AS
18792002-06-13 Andreas Schwab <schwab@suse.de>
1880
1881 * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
1882 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
1883 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
1884
8f0ac69e
RM
18852002-06-13 Roland McGrath <roland@frob.com>
1886
1887 * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
1888 * hurd/hurdstartup.c (_hurd_startup): Likewise.
1889 Use intptr_t instead of int for argc in stack layout.
1890 * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
1891 (_dl_init_first): Likewise.
1892 (_hurd_stack_setup): Likewise.
1893 (init1): Add a cast.
b83cbb99
RM
1894 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
1895
1896 * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
1897 argument to pfinet_siocgifconf RPC.
8f0ac69e 1898
3580423e
AS
18992002-06-13 Andreas Schwab <schwab@suse.de>
1900
1901 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
1902 expansion order.
1903
650f6700
RM
19042002-06-12 Roland McGrath <roland@frob.com>
1905
1906 * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
1907 if already defined.
1908 [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
1909 [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
1910
337738b7
RM
19112002-06-11 Roland McGrath <roland@frob.com>
1912
1913 * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
1914 file on [!RTLD_STAT64].
1915 * sysdeps/mach/hurd/fxstat64.c: Likewise.
1916
1917 * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
1918 (__fdopen): Use INTUSE.
1919 * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
1920
1921 * stdio-common/tmpfile64.c: File removed.
1922 * sysdeps/generic/tmpfile64.c: New file.
1923 * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
1924 if not already defined.
1925 (tmpfile): Use it in place of __GT_FILE.
1926
1927 * include/unistd.h: Declare __chown_internal.
1928
1929 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
1930 * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
1931
19322002-06-09 Roland McGrath <roland@frob.com>
1933
1934 Update to new Hurd RPC interfaces supporting 64-bit file sizes.
1935 * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
1936 value of HURD_INTERFACE_VERSION >= 20020609.
1937 * sysdeps/mach/hurd/configure: Regenerated.
1938 * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
1939 * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
1940 convert a struct stat64 into a struct stat and return 0 or -1
1941 with errno set to EOVERFLOW.
1942 * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
1943 for struct statfs64 to struct statfs.
1944 * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
1945 * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
1946 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
1947 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
1948 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
1949 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
1950 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
1951 * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
1952 * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
1953 * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
1954 * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
1955 * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
1956 * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
1957 * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
1958 * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
1959 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
1960 * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
1961 * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
1962 * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
1963 * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
1964 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
1965 Use struct stat64 for io_stat argument.
1966 * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
1967 * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
1968 to io_seek.
1969 * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
1970 * hurd/fd-write.c (_hurd_fd_write): Likewise.
1971 * hurd/hurd/fd.h: Update decls.
1972 * sysdeps/mach/hurd/getcwd.c
1973 (_hurd_canonicalize_directory_name_internal): Use ino64_t
1974 and struct dirent64.
1975 * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
1976 (__xstat): Renamed to __xstat64, use struct stat64 for argument.
1977 (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
1978 (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
1979
19802002-06-08 Roland McGrath <roland@frob.com>
1981
1982 * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
1983 instead of unsigned long int for __allocation and __size members.
1984
7e12a965
AJ
19852002-06-09 Jakub Jelinek <jakub@redhat.com>
1986
1987 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
1988 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
1989 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
1990 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
1991
acee1897
RM
19922002-06-07 Roland McGrath <roland@frob.com>
1993
1994 * sysdeps/mach/hurd/bits/environments.h: File removed.
1995
7baf750c
AJ
19962002-06-07 Jakub Jelinek <jakub@redhat.com>
1997
4c49989e
UD
1998 * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
1999 * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
2000 * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
2001 * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
7baf750c
AJ
2002 * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
2003 (sendfile64): Likewise.
2004 * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
2005 * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
2006 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
2007 Likewise.
2008 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
2009
2010 * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
2011 already defined.
2012
32d4ea6b
AJ
20132002-06-04 Bruno Haible <bruno@clisp.org>
2014
2015 * sysdeps/cris/stackinfo.h: New file.
2016
2017 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
2018 to an integer type before performing bit operations on it.
2019
7db20e36
RM
20202002-06-05 Roland McGrath <roland@frob.com>
2021
e6dd9633
RM
2022 * sysdeps/generic/sendfile.c: Include <errno.h>.
2023 * sysdeps/generic/sendfile64.c: Likewise.
2024
7db20e36
RM
2025 * io/Makefile (routines): Add sendfile and sendfile64.
2026 (headers): Add sys/sendfile.h to the list.
2027 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
2028 * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
2029 * io/sys/sendfile.h: ... here.
2030 * sysdeps/generic/sendfile.c: New file.
2031 * sysdeps/generic/sendfile64.c: New file.
e6dd9633 2032
7db20e36
RM
2033 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
2034 Move sendfile, sendfile64 to ...
2035 * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
2036 * sysdeps/mach/hurd/sendfile.c: New file.
2037 * sysdeps/mach/hurd/sendfile64.c: New file.
2038
2039 * sysdeps/mach/nanosleep.c: New file.
2040
17d7201a
RM
20412002-06-04 Roland McGrath <roland@frob.com>
2042
2043 * sysdeps/alpha/elf/configure.in: New file. Check for TLS support.
2044 * sysdeps/alpha/elf/configure: New file (generated).
2045
c35f1320
RM
20462002-06-02 Roland McGrath <roland@frob.com>
2047
2048 * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
2049
20502002-06-01 Roland McGrath <roland@frob.com>
2051
2052 * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
2053 i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
2054
337738b7 20552002-05-19 Ulrich Drepper <drepper@redhat.com>
b64e1566
UD
2056
2057 * resolv/resolv.h (struct __res_state): Remove unused nstimes.
2058 Add nsmap.
2059 * resolv/res_init.c (__res_vinit): Initialize nsmap array.
2060 Remove nstimes setting.
2061 (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
2062 * resolv/res_send.c (res_nsend): Don't close unconditionally if
2063 there is mix of IPv6 and IPv4 nameservers.
2064 Use nsmap array to find free slots and preserve nameserver ordering.
2065 Fix RES_ROTATE.
2066
63fb40b3
UD
20672002-05-30 Ulrich Drepper <drepper@redhat.com>
2068
2afdb783
UD
2069 * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
2070 use this header with LFS.
2071
63fb40b3
UD
2072 * po/sk.po: Update from translation team.
2073
20742002-05-28 Andreas Schwab <schwab@suse.de>
2075
2076 * sysdeps/generic/readelflib.c (process_elf_file): Give correct
2077 message when finding object of wrong class.
2078
20792002-05-28 Jakub Jelinek <jakub@redhat.com>
2080
2081 * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
2082 Patch by <radu@netsoft.ro>.
2083
9bd64602
UD
20842002-05-30 Ulrich Drepper <drepper@redhat.com>
2085
2086 * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
2087 Add readahead.
2088 * sysdeps/unix/sysv/linux/readahead.c: New file.
2089 * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
2090 * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
2091 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
2092 Add sendfile64 alias to sendfile syscall.
2093 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2094 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2095 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2096 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
2097 syscall.
2098
2099 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
2100 special section for PIC register loading.
2101 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
2102
2103 * config.h.in: Define HAVE_HIDDEN.
2104 * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
2105
2106 * elf/elf.h: Correct Alpha TLS relocations according to last spec.
2107
de3fa828
RM
21082002-05-28 Roland McGrath <roland@frob.com>
2109
2110 * sysdeps/mach/alpha/setfpucw.c: New file.
2111
21122002-05-26 Roland McGrath <roland@frob.com>
2113
2114 * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
2115 Use integer_t instead of int for IOC_VOID case.
2116
834cef7c
UD
21172002-05-27 Alexandre Oliva <aoliva@redhat.com>
2118
2119 * configure.in (DO_STATIC_NSS): Define if --disable-shared.
2120
21212002-05-26 Bruno Haible <bruno@clisp.org>
2122
2123 * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
2124 end of the ISO-8859-7 from idx table.
2125
21262002-05-27 Ulrich Drepper <drepper@redhat.com>
2127
2128 * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
2129
21302002-05-24 David S. Miller <davem@redhat.com>
2131
2132 * string/bits/string2.h (memset): Do not try to optimize when
2133 not _STRING_ARCH_unaligned if GCC will do the right thing.
2134
c0a0f9a3
UD
21352002-05-21 Isamu Hasegawa <isamu@yamato.ibm.com>
2136
2137 * posix/regex.c: Define `inline' as a macro into nothing for the
2138 compilers which lack the keyword.
2139 * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
2140 for the compatibility of gawk.
2141 * posix/regcomp.c: Add fake implementation of isblank() for the
2142 environments which lack the function.
2143 Don't use free_charset() in case of non-i18n envs.
2144 (build_range_exp): Don't use i18n related code in case of non-i18n
2145 envs.
2146 (build_collating_symbol): Likewise.
2147 (build_equiv_class): Likewise.
2148 (build_charclass): Likewise.
2149 (re_compile_fastmap_iter): Likewise.
2150 (parse_bracket_exp): Likewise.
2151 (build_word_op): Likewise.
2152 (regfree): Don't use free_charset() in case of non-i18n envs.
2153 * posix/regex_internal.h: Remove COMPLEX_BRACKET from
2154 re_token_type_t in case of non-i18n envs.
2155 Don't define re_charset_t in case of non-i18n envs.
2156 Change the type of wcs of re_string_t from wchar_t to wint_t,
2157 since we store also WEOF.
2158 * posix/regex_internal.c: (re_string_realloc_buffers): Change
2159 the type of wcs of re_string_t from wchar_t to wint_t.
2160 (re_string_reconstruct): Likewise.
2161 (create_ci_newstate): Don't use i18n related code in case of
2162 non-i18n envs.
2163 (create_cd_newstate): Likewise.
2164
21652002-05-24 Ulrich Drepper <drepper@redhat.com>
2166
2167 * iconv/loop.c: Fix typo.
2168
21692002-05-23 Jakub Jelinek <jakub@redhat.com>
2170
2171 * inet/ether_line.c (ether_line): Fix a typo causing only
2172 lower 4 bits of each ethernet address byte being assigned.
2173 Don't modify what line points to.
2174 * inet/tst-ether_aton.c (main): Add ether_line tests.
2175
21762002-05-23 Marcus Brinkmann <marcus@gnu.org>
2177
2178 * manual/filesys.texi: Don't make readlink example leak memory
2179 when readlink fails.
2180
4a0de63b
UD
21812002-05-20 Ulrich Drepper <drepper@redhat.com>
2182
2183 * iconv/loop.c: Fix condition for defining unaligned loop. Add
2184 some more security checks.
2185
cf299341
UD
21862002-05-17 David S. Miller <davem@redhat.com>
2187
2188 * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
2189
21902002-05-16 David S. Miller <davem@redhat.com>
2191
2192 * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
2193 (elf_machine_dynamic): Use it to force PIC register to be loaded.
2194 (elf_machine_load_address): Likewise.
2195 * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
2196
2197 * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
2198 is unaligned, do not forget to fully initialize %g1 magic value.
2199
2200 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
2201 register definitions and provide 32-bit variants of structures
2202 during 64-bit builds.
2203
2204 * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
2205 * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
2206 * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
2207 * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
2208 _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
2209 (_FP_FROM_INT): Perform right shifts on unsigned integer type.
2210 Do not clear implicit one bit here, it must be done post-rounding.
2211 Only pad to the left using left shift if value uses less than the
2212 available fractional bits.
2213
509bd8e3
UD
22142002-05-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2215
2216 * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
2217 instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
2218 (shared-only-routines): Likewise.
2219 * sysdeps/powerpc/libgcc-compat.c: New file.
2220 * sysdeps/wordsize-32/cmpdi2.c: Removed.
2221 * sysdeps/wordsize-32/fixdfdi.c: Removed.
2222 * sysdeps/wordsize-32/fixsfdi.c: Removed.
2223 * sysdeps/wordsize-32/shdi3.c: Removed.
2224
4c393b68
UD
22252002-05-16 Bruno Haible <bruno@clisp.org>
2226
2227 * MakeTAGS (libc.pot): Don't sort the output.
2228 * po/header.pot: Update to match xgettext 0.11 output.
2229
22302002-05-16 Bruno Haible <bruno@clisp.org>
2231
2232 * MakeTAGS (subdirs): Remove duplicates.
2233
3ace764d
UD
22342002-05-19 Ulrich Drepper <drepper@redhat.com>
2235
2236 * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
2237 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
2238 alias.
2239
79ab8d89
AJ
22402002-05-19 Andreas Jaeger <aj@suse.de>
2241
2242 * sysdeps/unix/sysv/linux/configure.in: Warn against an
2243 installation in /usr/local.
2244
bc9307fc
AJ
22452002-05-16 Bruno Haible <bruno@clisp.org>
2246
2247 * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
2248 string as argument of #error.
2249
4e960bbf
UD
22502002-05-15 Ulrich Drepper <drepper@redhat.com>
2251
f7501ae6
UD
2252 * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
2253 don't define static. Remove old __realpath function. TC1 of
2254 POSIX 2001 will allow the second parameter to be NULL.
2255 * stdlib/test-canon.c: Comment out test for NULL as second
2256 parameter of realpath.
2257
2258 * time/offtime.c (__offtime): Set errno if overflow is detected.
2259
4e960bbf
UD
2260 * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
2261 * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
2262 dl-brk and dl-sbrk.
2263
2264 * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
2265 (fdimf): Likewise.
2266
18197159
RM
22672002-05-15 Roland McGrath <roland@frob.com>
2268
2269 * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
2270
faaa6f62
UD
22712002-05-12 Bruno Haible <bruno@clisp.org>
2272
2273 * iconvdata/testdata/EUC-JISX0213: New file.
2274 * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
2275 * iconvdata/testdata/SHIFT_JISX0213: New file.
2276 * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
2277 * iconvdata/testdata/ISO-2022-JP-3: New file.
2278 * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
2279 * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
2280 * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
2281 contains comments indicating precomposed characters.
2282
22832002-04-21 Bruno Haible <bruno@clisp.org>
2284
2285 * iconvdata/iso-2022-jp-3.c: New file.
2286 * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
2287 * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
2288 (LDFLAGS-ISO-2022-JP-3.so): New variable.
2289 (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
2290 (distribute): Add iso-2022-jp-3.c.
2291
22922002-05-12 Bruno Haible <bruno@clisp.org>
2293
2294 * iconvdata/tst-table-to.c (main): Restore handling of
2295 transliterations, broken by last patch.
2296
22972002-05-12 Bruno Haible <bruno@clisp.org>
2298
2299 * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
2300
23012002-05-12 Bruno Haible <bruno@clisp.org>
2302
2303 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
2304 when there is not enough room in the output buffer.
2305 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
2306
23072002-04-20 Bruno Haible <bruno@clisp.org>
2308
2309 * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
2310 macros.
2311 (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
2312 Also make this macro work if FROM_DIRECTION evaluates to 0.
2313 (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
2314 (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
2315 of consume_incomplete.
2316 * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
2317 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
2318 4, not 8.
2319 * iconvdata/cp1258.c: Likewise.
2320 * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
2321 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
2322 not 2.
2323 * iconvdata/ibm933.c: Likewise.
2324 * iconvdata/ibm935.c: Likewise.
2325 * iconvdata/ibm937.c: Likewise.
2326 * iconvdata/ibm939.c: Likewise.
2327 * iconvdata/iso-2022-cn.c: Define
2328 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
2329 {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
2330 * iconvdata/iso-2022-cn-ext.c: Likewise.
2331 * iconvdata/iso-2022-jp.c: Define
2332 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
2333 {MIN,MAX}_NEEDED_{FROM,TO}.
2334 * iconvdata/tcvn5712-1.c: Define
2335 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
2336 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
2337 * iconvdata/euc-jisx0213.c: Define
2338 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
2339 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
2340 * iconvdata/shift_jisx0213.c: Likewise.
2341
23422002-05-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2343
2344 * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
2345 shdi3, fixdfdi, fixsfdi in csu dir.
2346 (shared-only-routines): Likewise.
2347 * sysdeps/wordsize-32/cmpdi2.c: New file.
2348 * sysdeps/wordsize-32/shdi3.c: New file.
2349 * sysdeps/wordsize-32/fixdfdi.c: New file.
2350 * sysdeps/wordsize-32/fixsfdi.c: New file.
2351 * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
2352 __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
2353 __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
2354
2355 * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
2356 Only use va_arg if the argument will be used [PR libc/3259].
2357
23582002-05-06 Michael A. Schmidt <mmaass@us.ibm.com>
2359
2360 * catgets/catgets.c (catopen): Free buffer if internal catalog
2361 open fails.
2362
23632002-05-14 Ulrich Drepper <drepper@redhat.com>
2364
2365 * debug/xtrace.sh: Make more robust. For realtime tracking use
2366 non-buffering methods.
2367 * debug/pcprofiledump.c: Implement -u option.
2368 Patch by Roger Luethi <rl@hellgate.ch>.
2369
b2bffca2
UD
23702002-05-11 Jakub Jelinek <jakub@redhat.com>
2371
2372 * include/netinet/in.h (bindresvport_internal): Add prototype.
2373 * include/rpc/auth.h (authunix_create_internal,
2374 authunix_create_default_internal, authnone_create_internal,
2375 authdes_pk_create_internal): Add prototypes.
2376 * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
2377 clntudp_create_internal, clntudp_bufcreate_internal,
2378 clntunix_create_internal): Add prototypes.
2379 * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
2380 svc_getreq_internal, svc_getreq_common_internal,
2381 svc_getreqset_internal, svc_getreq_poll_internal,
2382 svc_register_internal, svc_unregister_internal,
2383 svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
2384 * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
2385 * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
2386 __setsockopt, __getsockname, __bind, __listen): Add prototypes.
2387 * inet/rexec.c (rexec_af): Use __listen and __getsockname.
2388 * inet/rcmd.c (rcmd_af): Use __listen.
2389 (rresvport_af): Use __bind.
2390 * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
2391 authunix_create, authunix_create_default, authnone_create,
2392 authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
2393 clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
2394 svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
2395 svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
2396 _authenticate, add INTDEF after such function definitions.
2397 Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
2398 __setsockopt, __getsockname instead of non-__ variants.
2399 * sunrpc/pmap_rmt.c: Likewise.
2400 * sunrpc/rtime.c: Likewise.
2401 * sunrpc/svc_udp.c: Likewise.
2402 * sunrpc/clnt_unix.c: Likewise.
2403 * sunrpc/svc_unix.c: Likewise.
2404 * sunrpc/bindrsvprt.c: Likewise.
2405 * sunrpc/svc_tcp.c: Likewise.
2406 * sunrpc/auth_none.c: Likewise.
2407 * sunrpc/clnt_raw.c: Likewise.
2408 * sunrpc/clnt_tcp.c: Likewise.
2409 * sunrpc/auth_unix.c: Likewise.
2410 * sunrpc/key_call.c: Likewise.
2411 * sunrpc/clnt_gen.c: Likewise.
2412 * sunrpc/pm_getmaps.c: Likewise.
2413 * sunrpc/clnt_simp.c: Likewise.
2414 * sunrpc/pmap_clnt.c: Likewise.
2415 * sunrpc/svc_run.c: Likewise.
2416 * sunrpc/svc.c: Likewise.
2417 * sunrpc/svc_simple.c: Likewise.
2418 * sunrpc/pm_getport.c: Likewise.
2419 * sunrpc/auth_des.c: Likewise.
2420 * sunrpc/svc_auth.c: Likewise.
2421 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
2422 __register_frame_info_table_bases, __deregister_frame_info_bases):
2423 Add INTDEF.
2424 (__register_frame_info_bases_internal,
2425 __register_frame_info_table_bases_internal,
2426 __deregister_frame_info_bases_internal): Add prototypes.
2427 (__register_frame_info, __register_frame): Use INTUSE in call to
2428 __register_frame_info_bases.
2429 (__register_frame_info_table): Similarly.
2430 (__deregister_frame_info, __deregister_frame): Similarly.
2431 * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
2432 sendto as weak alias.
2433 * sysdeps/mach/hurd/sendto.c: Likewise.
2434 * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
2435 recvfrom as weak alias.
2436 * sysdeps/mach/hurd/recvfrom.c: Likewise.
2437 * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
2438 * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
2439 recvmsg as weak alias.
2440 * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
2441 * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
2442 sendmsg as weak alias.
2443 * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
2444 * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
2445 setsockopt, add setsockopt as weak alias.
2446 * sysdeps/mach/hurd/setsockopt.c: Likewise.
2447 * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
2448 weak alias.
2449 * sysdeps/mach/hurd/bind.c: Likewise.
2450 * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
2451 as weak alias.
2452 * sysdeps/mach/hurd/listen.c: Likewise.
2453 * sysdeps/generic/getsockname.c (__getsockname): Renamed from
2454 getsockname, add getsockname as weak alias.
2455 * sysdeps/mach/hurd/getsockname.c: Likewise.
2456 * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
2457 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
2458 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
2459 * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
2460 __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
2461 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
2462 Add aliases.
2463 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2464 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2465 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2466 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2467 * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
2468 * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
2469 * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
2470 * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
2471 * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
2472 * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
2473 * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
2474 * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
2475
24762002-05-10 Jakub Jelinek <jakub@redhat.com>
2477
2478 * locale/programs/localedef.h (show_archive_content): Add verbose
2479 argument.
2480 * locale/programs/localedef.c (main): Adjust caller.
2481 * locale/programs/locarchive.c (struct nameent, struct dataent): New.
2482 (nameentcmp, dataentcmp): New functions.
2483 (xstrcmp): Remove.
2484 (show_archive_content): Print verbose listing with --list-archive -v.
2485
848438d4
UD
24862002-05-14 Ulrich Drepper <drepper@redhat.com>
2487
b2bffca2
UD
2488 * locale/programs/locarchive.c (open_archive): Take extra argument
2489 readonly. If true open file with O_RDONLY and don't create the
2490 archive if it doesn't exist.
2491 Adapt all callers.
2492 (close_archive): Don't do anything if fd element is -1.
2493 * locale/programs/localedef.h (open_archive): Adjust prototype.
2494 * locale/programs/locfile.c (write_all_categories): Adjust open_archive
2495 call.
2496
2497 * malloc/malloc.c (__posix_memalign): Correct check for size of
2498 alignment value [PR libc/3444].
2499
848438d4
UD
2500 * include/stdio.h: Remove references to old stdio implementation.
2501
2502 * libio/Makefile (bug-ungetwc2-ENV): Define.
2503
0c981d96
RM
25042002-05-13 Roland McGrath <roland@frob.com>
2505
2506 * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
2507
2508 * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
2509
ab7dd85b
RM
25102002-05-13 Marcus Brinkmann <marcus@gnu.org>
2511
848438d4
UD
2512 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
2513 Allocate three, not two, more than LEN when appending '/.'.
2514 * sysdeps/mach/hurd/chroot.c (chroot): Likewise. Don't check
2515 if NAME ends with '/.' if it is shorter than 2 chars.
ab7dd85b 2516
6f142836
RM
25172002-05-12 Roland McGrath <roland@frob.com>
2518
ab7dd85b
RM
2519 * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
2520 files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
2521
6f142836
RM
2522 * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
2523 file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
2524
527d3701
AJ
25252002-05-10 Jakub Jelinek <jakub@redhat.com>
2526
2527 * sysdeps/ia64/Makefile: Remove extra endif.
2528 * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
2529
4265a10e
AS
25302002-05-10 Andreas Schwab <schwab@suse.de>
2531
2532 * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
2533
29139a8c
AJ
25342002-05-09 Andreas Jaeger <aj@suse.de>
2535
40ff7949 2536 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New.
72b05b87
AJ
2537 * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
2538 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
40ff7949 2539
72b05b87
AJ
2540 * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
2541 * sysdeps/wordsize-64/glob.c: ...here.
29139a8c
AJ
2542 * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
2543 * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
2544 * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
2545
d1a60a28
RM
25462002-05-08 Roland McGrath <roland@frob.com>
2547
2548 * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
2549 O_NOTRANS flag in "." lookup.
2550
64ae9b09
UD
25512002-05-05 Ulrich Drepper <drepper@redhat.com>
2552
2553 * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
2554
65fae6a6
UD
25552002-05-04 Ulrich Drepper <drepper@redhat.com>
2556
2557 * locale/duplocale.c (__duplocale): Update special members only
2558 when allocation succeeded.
2559
74ba5a33
RM
25602002-05-03 Roland McGrath <roland@frob.com>
2561
2562 * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
2563 we can only build libc.so.0.3(GLIBC_2.2.6) now.
2564
38a7d8ba
UD
25652002-05-02 Jakub Jelinek <jakub@redhat.com>
2566
2567 * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
2568 * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
2569 __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
2570 * sysdeps/ia64/ia64libgcc.S: New file.
2571
25722002-05-02 Ulrich Drepper <drepper@redhat.com>
2573
2574 * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
2575
2576 * malloc/memusage.c: Distinguish anonymous mmap.
2577
51975631
RM
25782002-05-01 Roland McGrath <roland@frob.com>
2579
2580 * sysdeps/mach/hurd/close.c: #undef __close before function defn,
2581 and use INTDEF on it.
2582 * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
2583
2584 * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
2585
2586 * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
2587
94eb5b36
UD
25882002-05-01 Ulrich Drepper <drepper@redhat.com>
2589
2590 * malloc/memusage.c: Add support for tracking mmap & friends.
2591 * malloc/memusage.sh: Implement -m/--mmap option.
2592
531bafd8
UD
25932002-04-30 Jakub Jelinek <jakub@redhat.com>
2594
2595 * locale/programs/locarchive.c (create_archive): Add archivefname
2596 argument, create fname from it.
2597 (enlarge_archive): Honour output_prefix.
2598 (open_archive): Likewise.
2599
26002002-04-30 Jakub Jelinek <jakub@redhat.com>
2601
2602 * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
2603 too many stpcpy macros.
2604
26052002-04-26 Bruno Haible <bruno@clisp.org>
2606
2607 * locale/programs/ld-collate.c (collate_read): Cast first argument
2608 for "%.*s" to int.
2609
26102002-04-26 Bruno Haible <bruno@clisp.org>
2611
2612 * include/libintl.h (__ngettext, __dngettext, __dcngettext,
2613 __dcngettext_internal): New declarations.
2614 (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
2615 attribute declarations.
2616
bd138dcf
RM
26172002-04-30 Roland McGrath <roland@frob.com>
2618
2619 Removed old GNU stdio implementation; GNU libio is now the only option.
2620 * configure.in: Removed --enable-libio option and @stdio@ subst var.
2621 Define USE_IN_LIBIO unconditionally.
2622 * configure: Regenerated.
2623 * Makeconfig (stdio): Set to libio by default.
2624 * config.make.in (stdio): Variable removed.
2625 * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
2626 * sysdeps/unix/sysv/linux/configure: Regenerated.
2627 * sysdeps/mach/hurd/configure.in: Don't test $stdio.
2628 * sysdeps/mach/hurd/configure: Regenerated.
2629 * stdio/.cvsignore: File removed.
2630 * stdio/Makefile: File removed.
2631 * stdio/Versions: File removed.
2632 * stdio/__fbufsize.c: File removed.
2633 * stdio/__flbf.c: File removed.
2634 * stdio/__fpending.c: File removed.
2635 * stdio/__fpurge.c: File removed.
2636 * stdio/__freadable.c: File removed.
2637 * stdio/__freading.c: File removed.
2638 * stdio/__fsetlocking.c: File removed.
2639 * stdio/__fwritable.c: File removed.
2640 * stdio/__fwriting.c: File removed.
2641 * stdio/clearerr.c: File removed.
2642 * stdio/fclose.c: File removed.
2643 * stdio/fcloseall.c: File removed.
2644 * stdio/feof.c: File removed.
2645 * stdio/ferror.c: File removed.
2646 * stdio/fflush.c: File removed.
2647 * stdio/fgetc.c: File removed.
2648 * stdio/fgetpos.c: File removed.
2649 * stdio/fgets.c: File removed.
2650 * stdio/fileno.c: File removed.
2651 * stdio/fmemopen.c: File removed.
2652 * stdio/fopen.c: File removed.
2653 * stdio/fopncook.c: File removed.
2654 * stdio/fputc.c: File removed.
2655 * stdio/fputs.c: File removed.
2656 * stdio/fread.c: File removed.
2657 * stdio/freopen.c: File removed.
2658 * stdio/fseek.c: File removed.
2659 * stdio/fsetpos.c: File removed.
2660 * stdio/ftell.c: File removed.
2661 * stdio/fwrite.c: File removed.
2662 * stdio/getc.c: File removed.
2663 * stdio/getchar.c: File removed.
2664 * stdio/getdelim.c: File removed.
2665 * stdio/gets.c: File removed.
2666 * stdio/glue.c: File removed.
2667 * stdio/internals.c: File removed.
2668 * stdio/linewrap.c: File removed.
2669 * stdio/linewrap.h: File removed.
2670 * stdio/memstream.c: File removed.
2671 * stdio/newstream.c: File removed.
2672 * stdio/obstream.c: File removed.
2673 * stdio/putc.c: File removed.
2674 * stdio/putchar.c: File removed.
2675 * stdio/puts.c: File removed.
2676 * stdio/rewind.c: File removed.
2677 * stdio/setbuf.c: File removed.
2678 * stdio/setbuffer.c: File removed.
2679 * stdio/setlinebuf.c: File removed.
2680 * stdio/setvbuf.c: File removed.
2681 * stdio/stdio.h: File removed.
2682 * stdio/ungetc.c: File removed.
2683 * stdio/vasprintf.c: File removed.
2684 * stdio/vscanf.c: File removed.
2685 * stdio/vsnprintf.c: File removed.
2686 * stdio/vsprintf.c: File removed.
2687 * stdio/vsscanf.c: File removed.
2688 * sysdeps/generic/defs.c: File removed.
2689 * sysdeps/generic/fdopen.c: File removed.
2690 * sysdeps/generic/pipestream.c: File removed.
2691 * sysdeps/generic/stdio_init.c: File removed.
2692 * sysdeps/generic/sysd-stdio.c: File removed.
2693 * sysdeps/generic/vdprintf.c: File removed.
2694 * sysdeps/mach/hurd/defs.c: File removed.
2695 * sysdeps/mach/hurd/fdopen.c: File removed.
2696 * sysdeps/mach/hurd/pipestream.c: File removed.
2697 * sysdeps/mach/hurd/stdio_init.c: File removed.
2698 * sysdeps/mach/hurd/sysd-stdio.c: File removed.
2699 * sysdeps/mach/hurd/vdprintf.c: File removed.
2700 * sysdeps/posix/defs.c: File removed.
2701 * sysdeps/posix/fdopen.c: File removed.
2702 * sysdeps/posix/pipestream.c: File removed.
2703 * sysdeps/posix/stdio_init.c: File removed.
2704 * sysdeps/posix/vdprintf.c: File removed.
2705 * sysdeps/unix/pipestream.c: File removed.
2706 * sysdeps/unix/sysv/sysd-stdio.c: File removed.
2707 * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
2708 * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
2709
c75bdef4
RM
27102002-04-29 Roland McGrath <roland@frob.com>
2711
2712 * include/libc-symbols.h (link_warning): Use `unused' attribute.
2713
bc3bb89c
UD
27142002-04-28 Ulrich Drepper <drepper@redhat.com>
2715
8543f93d 2716 * sysdeps/generic/tls.h: Describe what must be defined.
b74ea861 2717
add09583
UD
2718 * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
2719 glob_in_dir [PR libc/3385].
2720 * posix/globtest.sh: Add test case.
2721
bc3bb89c
UD
2722 * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
2723 //TRANSLIT twice.
2724
a5d07eb2
UD
27252002-04-27 Ulrich Drepper <drepper@redhat.com>
2726
2727 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
2728 _internal symbol handling.
2729 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
2730
5f267ab0
UD
27312002-04-26 Ulrich Drepper <drepper@redhat.com>
2732
2733 * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
2734 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
2735
434d3784
UD
27362002-04-26 Isamu Hasegawa <isamu@yamato.ibm.com>
2737
2738 * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
2739 not _LIBC and RE_ENABLE_I18N.
2740 (build_range_exp): Implement for not _LIBC.
2741 (build_collating_symbol): Likewise.
2742 (parse_bracket_exp): Unify redundant error handlings.
2743 Don't erase mbcset for non matching list in multibyte envs.
2744 (build_word_op): Add '_' to matching list for \w operator.
2745 * posix/regex_internal.c (re_string_construct): Invoke
2746 build_upper_buffer in case of not RE_ENABLE_I18N.
2747 (re_string_reconstruct): Don't touch cur_state in case of not
2748 RE_ENABLE_I18N.
2749 * posix/regex_internal.h (attribute_hidden): New macro in case of
2750 not _LIBC.
2751 (re_charset_t): Define range_starts/ends in case of not _LIBC.
2752 * posix/regexec.c (sift_states_iter_mb): Hide in case of not
2753 RE_ENABLE_I18N.
2754 (transit_state_mb): Likewise.
2755 (check_node_accept_bytes): Implement the code evaluating range
2756 expression in case of not _LIBC.
2757 (find_collation_sequence_value): Hide in case of not _LIBC.
2758
27592002-04-26 Jakub Jelinek <jakub@redhat.com>
2760
2761 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
2762 i386/semctl.c.
2763 (__old_semctl, __new_semctl): Only use va_arg if the argument will
2764 be used.
2765
dde9407b
UD
27662002-04-26 Ulrich Drepper <drepper@redhat.com>
2767
58fe8d10
UD
2768 * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
2769
dde9407b
UD
2770 * sysdeps/ia64/strncpy.S: Fix recovery code.
2771 Patch by David Mosberger <davidm@hpl.hp.com>.
2772
39ebfd80
UD
27732002-04-24 Ulrich Drepper <drepper@redhat.com>
2774
2775 * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
2776 GLIBC_2.2.6.
2777
80c00d31
UD
27782002-04-14 Bruno Haible <bruno@clisp.org>
2779
2780 * posix/regex.c (re_max_failures): Add back symbol for binary
2781 compatibility.
2782
612546c6
UD
27832002-04-22 Isamu Hasegawa <isamu@yamato.ibm.com>
2784
2785 * posix/regcomp.c (re_compile_internal): Adapt it to new interface
2786 of buffer building functions.
2787 * posix/regex_internal.c (re_string_allocate): New function.
2788 (re_string_realloc_buffers): New function.
2789 (re_string_skip_chars): New function.
2790 (re_string_reconstruct): New function.
2791 (re_string_construct): Adapt it to new interface of buffer building
2792 functions.
2793 (re_string_construct_common): Likewise.
2794 (build_wcs_buffer): Likewise.
2795 (build_wcs_upper_buffer): Likewise.
2796 (build_upper_buffer): Likewise.
2797 (re_string_translate_buffer): Likewise.
2798 (re_string_context_at): Adapt it to variable length buffers.
2799 * posix/regex_internal.h (re_string_t): Add new fields to handle
2800 variable length buffers.
2801 (re_match_context_t): Likewise.
2802 * posix/regexec.c (re_search_internal): Adapt it to new interface
2803 of re_string_t and re_match_context_t.
2804 (acquire_init_state_context): Likewise.
2805 (check_matching): Likewise.
2806 (check_halt_state_context): Likewise.
2807 (proceed_next_node): Likewise.
2808 (set_regs): Likewise.
2809 (sift_states_backward): Likewise.
2810 (clean_state_log_if_need): Likewise.
2811 (sift_states_iter_mb): Likewise.
2812 (sift_states_iter_bkref): Likewise.
2813 (add_epsilon_backreference): Likewise.
2814 (transit_state): Likewise.
2815 (transit_state_sb): Likewise.
2816 (transit_state_mb): Likewise.
2817 (transit_state_bkref): Likewise.
2818 (transit_state_bkref_loop): Likewise.
2819 (check_node_accept): Likewise.
2820 (match_ctx_init): Likewise.
2821 (extend_buffers): New function.
2822
28232002-04-21 Bruno Haible <bruno@clisp.org>
2824
2825 * iconvdata/tst-table.sh: For the second check, use the truncated
2826 GB18030 charmap table, like for the first check.
2827
0e15c4b6
UD
28282002-04-24 Ulrich Drepper <drepper@redhat.com>
2829
2830 * elf/dl-load.c (open_verify): Correct __lseek parameters.
2831 Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
2832
28332002-04-23 H.J. Lu <hjl@gnu.org>
2834
2835 * include/math.h (isfinite): Fix a typo.
2836
28372002-04-24 Ulrich Drepper <drepper@redhat.com>
2838
2839 * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
2840 which is created by the test suite.
2841
28422002-04-20 Bruno Haible <bruno@clisp.org>
2843
2844 * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
2845 (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
2846
28472002-04-20 Bruno Haible <bruno@clisp.org>
2848
2849 * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
2850 to avoid gcc warning.
2851
28522002-04-20 Bruno Haible <bruno@clisp.org>
2853
2854 * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
2855 of data->__statep->__count.
2856
28572002-04-20 Bruno Haible <bruno@clisp.org>
2858
2859 * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
2860 tag characters.
2861 * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
2862
39bbac1e
RM
28632002-04-24 Roland McGrath <roland@frob.com>
2864
2865 * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
2866 use END macro instead of our own .end directive.
2867 Use `callsys' insn mnemonic instead of `call_pal'.
2868
2869 * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
2870
2871 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
2872 macro; we need this for Hurd.
2873
2874 Log entry was missing for 2002/03/24 commit of rev 1.8,
2875 goes with 2002-03-17 changes.
2876 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
2877 (sysdep_routines): Append ioperm here.
2878 (sysdep_headers): Append sys/io.h here.
2879
5edf59cf
RM
28802002-04-23 Roland McGrath <roland@frob.com>
2881
2882 * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
2883 * sysdeps/mach/hurd/sendto.c: Likewise.
2884 * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
2885 * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
2886 * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
2887
1f8720c3
RM
28882002-04-22 Roland McGrath <roland@frob.com>
2889
2890 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
2891 failure from i386_io_perm_* RPCs to ENOSYS.
2892
5c443778
AJ
28932002-04-22 Andreas Jaeger <aj@suse.de>
2894
0e15c4b6 2895 * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
eb655ccb 2896
0e15c4b6 2897 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
eb655ccb 2898
5c443778
AJ
2899 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
2900 register instead of destroying %rbx.
2901
47cbdebd
UD
29022002-04-21 Ulrich Drepper <drepper@redhat.com>
2903
2904 * string/string.h: Declare strerror_r also for XPG6.
2905
5dab676e
RM
29062002-04-19 Roland McGrath <roland@frob.com>
2907
2908 * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
2909
c238ecf7
UD
29102002-04-20 Ulrich Drepper <drepper@redhat.com>
2911
2912 * Makefile: Add handling of xtests and xcheck targets.
2913 * MakeTAGS: Likewise.
2914 * Makeconfig: Likewise.
2915 * Makerules: Likewise.
2916 * Rules: Likewise.
b1113ed2 2917 * manual/Makefile: Likewise.
c238ecf7
UD
2918 * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
2919 * sunrpc/thrsvc.c: New file. By Zack Weinberg.
2920
cbba1b88
UD
29212002-04-11 Zack Weinberg <zack@codesourcery.com>
2922
2923 * include/rpc/rpc.h (struct rpc_thread_variables): Remove
2924 authnone_private_s.
2925 * sunrpc/auth_none.c: Include bits/libc-lock.h.
2926 Delete #ifdef _RPC_THREAD_SAFE_ block.
2927 (authnone_private): Make a struct, not a pointer to struct.
2928 (authnone_private_guard): New once-control variable.
2929 (authnone_create_once): New function, split out of
2930 authnone_create. No need to allocate memory.
2931 (authnone_create): Just call authnone_create_once via
2932 __libc_once, then return &authnone_private->no_client.
2933 (authnone_marshal): Access private data via CLIENT argument,
2934 not authnone_private pointer.
2935 Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
2936 * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
2937 authnone_private_s.
2938
f89bd0e5
UD
29392002-04-12 H.J. Lu <hjl@gnu.org>
2940
2941 * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
2942
02779eaa
UD
29432002-04-18 Bruno Haible <bruno@clisp.org>
2944
2945 * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
2946 FROM_DIRECTION): Make the FROM direction stateless.
2947 * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
2948 FROM_DIRECTION): Likewise.
2949
93a568aa
UD
29502002-04-15 Bruno Haible <bruno@clisp.org>
2951
2952 * iconvdata/JISX0213.TXT: New file.
2953 * iconvdata/jisx0213.h: New file.
2954 * iconvdata/jisx0213.c: New file.
2955 * iconvdata/euc-jisx0213.c: New file.
2956 * iconvdata/shift_jisx0213.c: New file.
2957 * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
2958 * iconvdata/EUC-JISX0213.precomposed: New file.
2959 * iconvdata/SHIFT_JISX0213.precomposed: New file.
2960 * iconvdata/SHIFT_JISX0213.irreversible: New file.
2961 * iconvdata/tst-table-to.c (main): Make it work for encodings for
2962 which the "to" direction is stateful.
2963 * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
2964 * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
2965 SHIFT_JISX0213.
2966 (libJISX0213-routines): New variable.
2967 (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
2968 (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
2969 (LDFLAGS-libJISX0213.so): New variable.
2970 (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
2971 SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
2972 jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
2973
29742002-04-15 Bruno Haible <bruno@clisp.org>
2975
2976 * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
2977 uint32_t. Update to Unicode 3.2.
2978 (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
2979 (BODY for TO_LOOP): Handle the ASCII range specially.
2980 * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
2981 * iconvdata/testdata/BIG5HKSCS: Remove a character.
2982 * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
2983
29842002-04-15 Bruno Haible <bruno@clisp.org>
2985
2986 * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
2987 __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
2988
29892002-04-15 Bruno Haible <bruno@clisp.org>
2990
2991 * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
2992 (ucs4_to_cns11643): Update.
2993 * iconvdata/cns11643.c: Update to Unicode 3.2.
2994 (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
2995 __cns11643_from_ucs4p2_tab): Regenerated.
2996 (__cns11643_from_ucs4p2c_tab): New array.
02779eaa 2997 * iconvdata/cvs11643l1.c: Update comments.
93a568aa
UD
2998 * iconvdata/EUC-TW.irreversible: Remove two entries.
2999
30002002-04-15 Bruno Haible <bruno@clisp.org>
3001
3002 * locale/C-translit.h.in: Update to Unicode 3.2.
3003 Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
3004 <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
3005
e2806aaf
UD
30062002-04-15 Bruno Haible <bruno@clisp.org>
3007
3008 * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
3009 (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
3010
30112002-04-15 Bruno Haible <bruno@clisp.org>
3012
3013 * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
3014 invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
3015 always one byte, not 0 bytes in some cases and 2 bytes in others.
3016
3017 * iconvdata/tst-table-from.c (main): Correct the usage message.
3018
30192002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
3020
3021 * posix/regcomp.c (parse_expression): Fix incorrect error code.
3022 (parse_dup_op): Fix error handling like "a{}".
3023 (parse_bracket_exp): Add error handling.
3024 (fetch_number): Add error handling for "a{<very_large_number>}".
3025
30262002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
3027
3028 * posix/regcomp.c (parse_bracket_symbol): Add error handling
3029 in case that the symbol name is too long.
3030 (build_charclass): Handle [:lower:]/[:uppper:] correctly
3031 in case of REG_ICASE.
3032
c7823e14
AJ
30332002-04-19 Andreas Jaeger <aj@suse.de>
3034
3035 * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
3036 <hartvige@mips.com>.
3037
a8fa4947
UD
30382002-04-15 H.J. Lu <hjl@gnu.org>
3039
3040 * include/math.h (__finitel_internal): Declare only if
3041 __NO_LONG_DOUBLE_MATH is not defined.
3042 (__isinfl_internal): Likewise.
3043 (__isnanl_internal): Likewise.
3044
3045 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
3046 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3047 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3048 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
02779eaa 3049 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
a8fa4947
UD
3050 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3051 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3052
3053 * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
3054 __fcntl_internal.
3055
3056 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
3057 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
3058
9813858f
UD
30592002-04-15 Bruno Haible <bruno@clisp.org>
3060
3061 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
3062 (BODY for TO_LOOP): Likewise.
3063 * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
3064 * iconvdata/tst-table.sh: Add support for encodings which contain
3065 precomposed Unicode characters, known to the iconv converter in both
3066 directions but not listed in the charmap.
3067 * iconvdata/IBM856.irreversible: New file.
3068 * iconvdata/IBM922.irreversible: New file.
3069 * iconvdata/IBM1132.irreversible: New file.
3070 * iconvdata/IBM1133.irreversible: New file.
3071 * iconvdata/IBM1160.irreversible: New file.
3072 * iconvdata/IBM1161.irreversible: New file.
3073 * iconvdata/IBM1163.irreversible: New file.
3074 * iconvdata/IBM1164.irreversible: New file.
3075 * iconvdata/ARMSCII-8.irreversible: New file.
3076 * iconvdata/TCVN5712-1.precomposed: New file.
3077 * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
3078 IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
3079 ARMSCII-8, TCVN5712-1.
3080 * iconvdata/Makefile (distribute): Add IBM856.irreversible,
3081 IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
3082 IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
3083 IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
3084
30852002-04-17 Jakub Jelinek <jakub@redhat.com>
3086
3087 * time/tst-mktime.c: Include <stdlib.h>. Use %d, not %ld format
3088 for EVENING69. Include offsets in TZ environment variable.
3089
a7b65cdc
UD
30902002-04-18 Ulrich Drepper <drepper@redhat.com>
3091
b459976e
UD
3092 * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
3093 avoid compiler warnings.
3094
3095 * locale/programs/localedef.c (main): Always call
3096 construct_output_path.
3097
d648d845
UD
3098 * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
3099
a7b65cdc
UD
3100 * locale/programs/locfile.c (to_archive): New variable. To collect
3101 data which has to be added to the locale archive.
3102 (write_all_categories): Take new third parameter with locale name.
3103 Unless no_archive flag set add new locale data to the archive
3104 (write_locale_data): Unless no-archive flag set store generated data
3105 in to_archive data structure instead of generation output file.
3106 Add new parameter with locale category index.
3107 * locale/programs/locfile.h: Add new parameters in declaractions of
3108 write_all_categories and write_locale_data.
3109 * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
3110 --add-to-archive, and --delete-from-archive options. Pass extra
3111 parameter to write_all_categories.
3112 * locale/programs/localedef.h: Add prototypes for functions in
3113 locarchive.c.
3114 * locale/locarchive.h: New file.
3115 * locale/programs/locarchive.c: New file.
3116 * locale/Makefile (distribute): Add programs/locarchive.c and
3117 locarchive.h.
3118 (localedef-modules): Add md5 and locarchive.
3119 Add vpath to crypt subdir for md5.c.
3120
3121 * locale/programs/ld-address.c: Pass locale category ID as new second
3122 parameter to write_locale_data.
3123 * locale/programs/ld-collate.c: Likewise.
3124 * locale/programs/ld-ctype.c: Likewise.
3125 * locale/programs/ld-identification.c: Likewise.
3126 * locale/programs/ld-measurement.c: Likewise.
3127 * locale/programs/ld-messages.c: Likewise.
3128 * locale/programs/ld-monetary.c: Likewise.
3129 * locale/programs/ld-name.c: Likewise.
3130 * locale/programs/ld-numeric.c: Likewise.
3131 * locale/programs/ld-paper.c: Likewise.
3132 * locale/programs/ld-telephone.c: Likewise.
3133 * locale/programs/ld-time.c: Likewise.
3134
3135 * locale/simple-hash.c: Move compute_hashval function from here...
3136 * locale/hashval.h: ...to here. New file.
3137 * locale/simple-hash.h: Add prototype for compute_hashval.
3138
3139 * include/libintl.h: Minor cleanups.
3140
c7769404
UD
31412002-04-16 Ulrich Drepper <drepper@redhat.com>
3142
3143 * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
3144
449a85c1
UD
31452002-04-15 Ulrich Drepper <drepper@redhat.com>
3146
3147 * include/sys/stat.h: Fix typo. Patch by HJ Lu.
3148
659f290a
UD
31492002-04-14 Bruno Haible <bruno@clisp.org>
3150
3151 * locale/programs/charmap.c (charmap_read): Don't access result if
3152 result == NULL.
3153
a41d8a74
UD
31542002-02-17 Andreas Schwab <schwab@suse.de>
3155
a7b65cdc
UD
3156 * elf/reldep7.c: New file.
3157 * elf/reldep7mod1.c: New file.
3158 * elf/reldep7mod2.c: New file.
3159 * elf/Makefile: Add rules to build and run reldep7.
a41d8a74 3160
78575a84
UD
31612002-04-14 Jakub Jelinek <jakub@redhat.com>
3162
3163 * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
3164 the end of the function. Pass original flags to recursive call if
3165 add_dependency failed.
3166 (_dl_lookup_versioned_symbol): Likewise.
3167
31682002-04-13 Jakub Jelinek <jakub@redhat.com>
3169
3170 * time/mktime.c (__mktime_internal): If year is 69, don't bail out
3171 early, but check whether it overflowed afterwards.
3172 * time/tst-mktime.c (main): Add new tests.
3173
d060e318
UD
31742002-04-14 Ulrich Drepper <drepper@redhat.com>
3175
78575a84
UD
3176 * debug/xtrace.sh: Fix program name in help message.
3177 Patch by Roger Luethi <rl@hellgate.ch>.
3178
fab656f5
UD
3179 * include/sys/stat.h: Add prototypes for __lxstat_internal and
3180 __lxstat64_internal. Add macros __lxstat and __lxstat64 if not
3181 NOT_IN_libc.
3182 * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
3183 * sysdeps/mach/hurd/lxstat.c: Likewise.
3184 * sysdeps/unix/common/lxstat.c: Likewise.
3185 * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
3186 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
3187 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
3188 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
3189 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
3190 * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
3191 * sysdeps/mach/hurd/lxstat64.c: Likewise.
3192 * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
c7769404 3193 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
fab656f5
UD
3194
3195 * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
3196 prototypes. Add __mbrlen and __mbrtowc macros.
3197 * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
3198 * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
3199
3200 * include/unistd.h: Add prototype for __write_internal and add
3201 __libc_write macro is SHARED.
3202 * sysdeps/generic/write.c: Use INTDEF for __write.
3203 * sysdeps/mach/hurd/write.c: Likewise.
3204 * sysdeps/unix/sysv/aix/write.c: Likewise.
3205 * sysdeps/unix/syscalls.list: Add __libc_write alias.
3206
3207 * assert/assert.c: Replace STR_N_SIZE with something usable in
3208 macro arguments.
3209 * assert/assert-perr.c: Likewise.
3210
08f60074
UD
3211 * include/sys/socket.h: Declare __libc_sa_len_internal and define
3212 SA_LEN macro to use it if not NOT_IN_libc.
3213 * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
3214
3215 * include/fcntl.h: Declare __open_internal and define __open and
3216 __libc_open macros if not NOT_IN_libc.
3217 * sysdeps/generic/open.c: Use INTDEF for __open.
3218 * sysdeps/mach/hurd/open.c: Likewise.
3219 * sysdeps/unix/sysv/aix/open.c: Likewise.
3220 * sysdeps/unix/syscalls.list: Add __open_internal alias.
3221
3222 * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
3223 has correct number.
3224
3225 * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
3226 * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
3227 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
3228 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
3229
3230 * include/wctype.h: Declare __iswalpha_l_internal,
3231 __iswdigit_l_internal, __iswspace_l_internal,
3232 __iswxdigit_l_internal, and __iswctype_internal. Define
3233 __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
3234 __iswxdigit_l macros if not NOT_IN_libc.
3235 * wctype/iswctype.c: Use INTDEF for __iswctype.
3236 * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
3237
f83af095
UD
3238 * include/math.h: Declare __isinf_internal, __isinfl_internal,
3239 __isnan_internal, and __isnanl_internal.
3240 * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
3241 __isnan, and __isnanl.
3242 * stdio-common/printf_size.c: Likewise.
3243 * sysdeps/generic/printf_fphex.c: Likewise.
3244 * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
3245 * sysdeps/i386/fpu/s_isnanl.c: Likewise.
3246 * sysdeps/ia64/fpu/s_isinf.S: Likewise.
3247 * sysdeps/ia64/fpu/s_isnan.S: Likewise.
3248 * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
3249 * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
3250 * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
3251 * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
3252 * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
3253 * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
3254 * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
3255 * sysdeps/m68k/s_isinfl.c: Likewise.
3256 * sysdeps/m68k/fpu/s_isinf.c: Likewise.
3257 * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
3258
29886719
UD
3259 * include/sys/time.h: Declare __gettimeofday_internal and define
3260 __gettimeofday macro if not NOT_IN_libc.
3261 * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
3262 * sysdeps/mach/gettimeofday.c: Likewise.
3263 * sysdeps/posix/gettimeofday.c: Likewise.
3264 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
3265 * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
3266 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
3267 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
3268
d060e318
UD
3269 * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
3270 and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
3271 Remove __lstat and __fstat inline functions.
3272 * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
3273 * sysdeps/mach/hurd/fxstat.c: Likewise.
3274 * sysdeps/unix/fxstat.c: Likewise.
3275 * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
3276 * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
3277 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
3278 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
3279 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
3280 * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
3281 * sysdeps/mach/hurd/fxstat64.c: Likewise.
3282 * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
3283 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
3284
3285 * include/unistd.h: Declare __getpid_internal and define
3286 __getpid macro if not NOT_IN_libc.
3287 * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
3288 * sysdeps/generic/getpid.c: Likewise.
3289 * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
f9663bd4 3290 * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
d060e318
UD
3291
3292 * include/unistd.h: Declare __getpgid_internal and define
3293 __getpgid macro if not NOT_IN_libc.
3294 * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
3295 * sysdeps/mach/hurd/getpgid.c: Likewise.
3296 * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
3297 * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
3298 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
3299 * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
3300
3301 * include/unistd.h: Declare __getpagesize_internal and define
3302 __getpagesize macro if not NOT_IN_libc.
3303 * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
3304 __getpagesize.
3305 * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
3306 * sysdeps/mach/getpagesize.c: Likewise.
3307 * sysdeps/posix/getpagesize.c: Likewise.
3308 * sysdeps/unix/getpagesize.c: Likewise.
3309 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
3310 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
3311 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
3312 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
3313
f69e66d6
AJ
33142002-04-13 Andreas Jaeger <aj@suse.de>
3315
3316 * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
3317 as clobber to reduce register pressure.
3318 (__strpbrk_cg): Likewise.
3319 (__mempcpy_by4): Likewise.
3320 (__strstr_cg): Likewise.
3321 Add prototype for __memrchr.
3322
53af71e0
AS
33232002-04-13 Andreas Schwab <schwab@suse.de>
3324
3325 * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
3326 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
3327 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
3328
f9f2a150
UD
33292002-04-13 Ulrich Drepper <drepper@redhat.com>
3330
3331 * elf/do-lookup.h [!VERSIONED]: Add new parameter flags. Use it to
3332 check whether the caller prefers getting the most recent version of
3333 a symbol of the earliest version.
3334 * elf/dl-lookup.c: Adjust all callers of do_lookup. Change
3335 _dl_do_lookup to also take the new parameter and pass it on.
3336 Change 'explicit' parameter of _dl_lookup_symbol and
3337 _dl_lookup_versioned_symbol to flags. Adjust tests.
3338 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
3339 * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
3340 _dl_lookup_versioned_symbol.
3341 * elf/dl-reloc.c: Likewise.
3342 * elf/dl-runtime.c: Likewise.
3343 * elf/dl-sym.c: Likewise.
3344 * sysdeps/mips/dl-machine.h: Likewise.
3345
61bb2ef0
UD
33462002-04-11 Jakub Jelinek <jakub@redhat.com>
3347
3348 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
3349 in a token.
3350 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
3351
6c289839
AJ
33522002-04-10 Andreas Jaeger <aj@suse.de>
3353
61bb2ef0 3354 * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
6b4e1929 3355
6c289839
AJ
3356 * include/argz.h: Remove extra char from last patch.
3357
6311efee
UD
33582002-04-09 Ulrich Drepper <drepper@redhat.com>
3359
6b87a564
UD
3360 * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
3361 * sysdeps/unix/sysv/aix/chown.c: Likewise.
3362 * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
3363 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
3364 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
3365 * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
3366 __chown_internal.
61bb2ef0 3367 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
6b87a564
UD
3368
3369 * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
3370 * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
3371 * intl/ngettext.c: Likewise.
3372
3373 * include/sys/socket.h: Declare __connect_internal and define
3374 __connect macro if not NOT_IN_libc.
3375 * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
3376 * sysdeps/unix/sysv/aix/connect.c: Likewise.
3377 * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
3378
3379 * include/unistd.h: Declare __close_internal and define __close macro
3380 if not NOT_IN_libc.
3381 * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
3382 WJUMP3): Add extra parenthesis to avoid expanding element names with
3383 macors like __close.
3384 * sysdeps/unix/syscalls.list: Add __close_internal alias.
3385
3386 * include/unistd.h: Declare __dup2_internal and define __dup2 macro
3387 if not NOT_IN_libc.
3388 * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
3389 * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
3390 * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
3391
3392 * include/unistd.h: Declare __fork_internal and define __fork macro
3393 if not NOT_IN_libc.
3394 * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
3395 * sysdeps/unix/sysv/aix/fork.c: Likewise.
3396 * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
3397
3398 * include/stdio_ext.h: Declare __fsetlocking_internal and define
3399 __fsetlocking macro to use it if not NOT_IN_libc.
3400 * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
3401
3402 * libio/__fbufsize.c: Correct copyright.
3403 * libio/__flbf.c: Likewise.
3404 * libio/__fpending.c: Likewise.
3405 * libio/__fpurge.c: Likewise.
3406 * libio/__freadable.c: Likewise.
3407 * libio/__freading.c: Likewise.
3408 * libio/__fsetlocking.c: Likewise.
3409 * libio/__fwritable.c: Likewise.
3410 * libio/__fwriting.c: Likewise.
3411
3412 * include/stdio.h: Declare __asprintf_internal and define __asprintf
3413 macro to use it if not NOT_IN_libc.
3414 * stdio-common/asprintf.c: Use INTDEF for __asprintf.
3415
3416 * include/mntent.h: Declare __setmntent_internal,
3417 __getmntent_r_internal, __endmntent_internal. Define __setmntent,
3418 __getmntent_r, and __endmntent macros to use these functions if not
3419 NOT_IN_libc.
3420 * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
3421 __endmntent.
3422
3423 * include/math.h: Declare __finite_internal, __finitef_internal, and
3424 __finitel_internal. Redefine isfinite macro if in libc or libm using
3425 these functions.
3426 * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
3427 * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
3428 * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
3429 * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
3430 * sysdeps/i386/fpu/s_finitef.S: Likewise.
3431 * sysdeps/i386/fpu/s_finitel.S: Likewise.
3432 * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
3433 * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
3434 * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
3435 * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
3436
3437 * include/fcntl.h: Declare __fcntl_internal. Define __fcntl macro
3438 to use this function if not NOT_IN_libc.
3439 * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
3440 * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
3441 * sysdeps/mach/hurd/fcntl.c: Likewise.
3442 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
3443 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
3444
3445 * include/argz.h: Declare __argz_count_internal and
3446 __argz_stringify_internal.
3447 * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
3448 __argz_stringify.
3449 * string/argz-count.c: Use INTDEF for __argz_count.
3450 * string/argz-stringify.c: Use INTDEF for __argz_stringify.
3451
3452 * include/stdlib.h: Declare __cxa_atexit_internal and define
3453 __cxa_atexit macro if not NOT_IN_libc.
3454 * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
3455 * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
3456
3457 * assert/assert.c: Use INTDEF for __assert_fail.
3458 * assert/__assert.c: Use INTUSE for call to __assert_fail.
3459 * include/assert.h: Declare __assert_fail_internal.
3460
6311efee
UD
3461 * extra-lib.mk: Mark assignment to lib with override.
3462
776cc5d3
UD
34632002-04-08 Ulrich Drepper <drepper@redhat.com>
3464
3465 * Makerules: Use cppflags-iterator.mk to add defines for all test
3466 source files.
3467
3632a260
UD
34682002-04-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
3469
3470 * elf/elf.h: Define R_SH_TLS_xxx macros.
3471 * elf/rtld.c: Remove an extra parenthesis.
3472 * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
3473 TLS_GD macros.
3474 * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
3475 * sysdeps/sh/dl-lookupcfg.h: New file.
3476 * sysdeps/sh/dl-tls.h: New file.
3477 * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
3478 ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
3479 (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
3480 R_SH_TLS_TPOFF32 relocations.
3481
403e0597
UD
34822002-04-08 Ulrich Drepper <drepper@redhat.com>
3483
3484 * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
3485 of NOT_IN_LIBC.
3486 * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
3487 * include/stdlib.h: Likewise.
3488
34892002-04-08 Jakub Jelinek <jakub@redhat.com>
3490
3491 * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
3492 instead of _RTLD_LOCAL.
3493 * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
3494 * include/unistd.h: Likewise.
3495 * sysdeps/generic/ldsodefs.h: Likewise.
3496
3497 * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
3498 if in libc or ld.so.
3499
fdedb42e
AJ
35002002-04-08 Andreas Jaeger <aj@suse.de>
3501
3502 * elf/cache.c (print_entry): Support x86-64.
3503
71319b9c
UD
35042002-04-08 Ulrich Drepper <drepper@redhat.com>
3505
403e0597
UD
3506 * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
3507 with one accessing the locale data structures directly.
3508 * stdio-common/printf-prs.c: Include localeinfo.h for new
3509 MB_CUR_MAX definition.
3510
71319b9c
UD
3511 * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
3512 is the name of the source file without extension.
3513 * Makefile (distribute): Add cppflags-iterator.mk.
3514 * cppflags-iterator.mk: New file.
3515 * extra-lib.mk: For the sources of the library run
3516 cppflags-iterator.mk.
3517
3518 * include/libintl.h: Declare __dcgettext_internal and
3519 _libc_intl_domainname_internal. Define __dcgettext using these
3520 two symbols if used in libc itself.
3521 * argp/argp-help.c: Define dgettext using __dcgettext_internal and
3522 _libc_intl_domainname_internal.
3523 * argp/argp-parse.c: Likewise.
3524 * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
3525 * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
3526 * intl/gettext.c: Likewise.
3527 * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
3528 alias.
3529 * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
3530 __dcgettext.
3531 * posix/regex_internal.c (gettext): Likewise.
3532
36993507
AJ
35332002-04-08 Andreas Jaeger <aj@suse.de>
3534
82b610ba
AJ
3535 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
3536
36993507
AJ
3537 * sysdeps/x86_64/fpu/s_llrint.S: New.
3538 * sysdeps/x86_64/fpu/s_llrintf.S: New.
3539 * sysdeps/x86_64/fpu/s_llrintl.S: New.
3540 * sysdeps/x86_64/fpu/s_lrint.S: New.
3541 * sysdeps/x86_64/fpu/s_lrintf.S: New
3542 * sysdeps/x86_64/fpu/s_lrintl.S: New.
3543
b82006e0
RM
35442002-04-08 Roland McGrath <roland@frob.com>
3545
3546 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
3547 widening __hurd_fail value.
3548
f899db60
RM
35492002-04-07 Roland McGrath <roland@frob.com>
3550
3551 * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
3552 <mach/machine/alpha_instruction.h>.
3553 (_hurd_setup_sighandler): Take proper arguments for current decls.
3554 Update code to use _hurdsig_catch_fault.
3555 Use `callsys' instruction instead of `call_pal'.
3556 * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
3557
3558 * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
3559 (ALIGN, at, AT, fp): New macros.
3560
7ce93726
RM
35612002-04-06 Roland McGrath <roland@frob.com>
3562
3563 * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
3564
3565 * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
3566 (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
3567
3568 * sysdeps/mach/hurd/bind.c: Use prototype definition.
3569 * sysdeps/mach/hurd/connect.c: Likewise.
3570 * sysdeps/mach/hurd/getsockopt.c: Likewise.
3571 * sysdeps/mach/hurd/setsockopt.c: Likewise.
3572
3573 * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
3574 __msg_sig_post RPC.
3575
3576 * hurd/catch-exc.c: Use integer_t instead of int.
3577 * hurd/hurdfault.c: Likewise.
3578
3579 * sysdeps/mach/hurd/alpha/exc2signal.c
3580 (_hurd_exception2signal): Rewritten.
3581 * sysdeps/mach/hurd/alpha/longjmp-ts.c
3582 (_hurd_longjmp_thread_state): Rewritten.
3583
af5fac2f
UD
35842002-04-07 Ulrich Drepper <drepper@redhat.com>
3585
b44e3016
UD
3586 * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
3587 DB_LOOKUP_FCT prototype.
3588 * nss/getXXent_r.c: Likewise.
3589 * inet/getaliasent_r.c: Define NSS_attribute_hidden.
3590 * inet/getaliasname_r.c: Likewise.
3591 * inet/getnetbyad_r.c: Likewise.
3592 * inet/getnetbynm_r.c: Likewise.
3593 * inet/getnetent_r.c: Likewise.
3594 * inet/getproto_r.c: Likewise.
3595 * inet/getprtent_r.c: Likewise.
3596 * inet/getprtname_r.c: Likewise.
3597 * inet/getrpcbyname_r.c: Likewise.
3598 * inet/getrpcbynumber_r.c: Likewise.
3599 * inet/getrpcent_r.c: Likewise.
3600 * inet/getservent_r.c: Likewise.
3601 * inet/getsrvbynm_r.c: Likewise.
3602 * inet/getsrvbypt_r.c: Likewise.
3603 * shadow/getspent_r.c: Likewise.
3604 * shadow/getspnam_r.c: Likewise.
3605
3606 * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
3607
3608 * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
3609 Use i686-friendly PIC code.
3610 * sysdeps/i386/elf/setjmp.S: Likewise.
3611
3612 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
3613
af5fac2f
UD
3614 * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
3615 list.
3616 * elf/Versions: Remove it here.
3617
8b76d772
UD
36182002-04-06 Ulrich Drepper <drepper@redhat.com>
3619
3620 * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
3621 direction. Reported by H . J . Lu <hjl@lucon.org>.
3622
3fc2f6c8
UD
36232002-04-05 Ulrich Drepper <drepper@redhat.com>
3624
b344de2a
UD
3625 * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
3626 test just before the test runs.
3627 * intl/tst-translit.sh: Likewise.
3628 * intl/tst-codeset.sh: Likewise.
3629
3fc2f6c8
UD
3630 * timezone/zic.c: Update from tzcode2002c.
3631 * timezone/asia: Update from tzdata2002c.
3632 * timezone/backward: Likewise.
3633 * timezone/europe: Likewise.
3634 * timezone/northamerica: Likewise.
3635 * timezone/northamerica: Likewise.
3636 * timezone/northamerica: Likewise.
3637 * timezone/southamerica: Likewise.
3638 * timezone/zone.tab: Likewise.
3639
6736e93b
UD
36402002-03-23 Jakub Jelinek <jakub@redhat.com>
3641
3642 * sysdeps/generic/brk.c (__curbrk): Declare.
3643 * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
3644 * sysdeps/generic/dl-sbrk.c: Likewise.
3645 * sysdeps/unix/arm/dl-brk.S: New file.
3646 * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
3647 * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
3648 * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
3649 * sysdeps/unix/bsd/vax/dl-brk.S: New file.
3650 * sysdeps/unix/i386/dl-brk.S: New file.
3651 * sysdeps/unix/mips/dl-brk.S: New file.
3652 * sysdeps/unix/sparc/dl-brk.S: New file.
3653 * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
3654 * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
3655 * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
3656 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
6736e93b
UD
3657
36582002-04-03 Andreas Schwab <schwab@suse.de>
3659
3660 * Makefile (headers): Add gnu/lib-names.h here instead of
3661 install-others.
3662 ($(inst_includedir)/gnu/lib-names.h): Remove explicit
3663 installation rule.
3664 (install-headers): Add dependency on install-headers-nosubdir.
3665 * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
3666 instead of install-others.
3667 ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
3668 installation rule.
3669
36702002-04-05 Ulrich Drepper <drepper@redhat.com>
3671
3672 * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
3673 Reported by Sam Roberts <sroberts@uniserve.com>.
3674
36752002-04-03 Jakub Jelinek <jakub@redhat.com>
3676
3677 * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
3678 l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
3679 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
3680 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
3681
36822002-04-03 David Mosberger <davidm@hpl.hp.com>
3683
3684 * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
3685 (RTLD_START): Ditto.
3686 (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
3687 dependency violation.
3688
55544141
UD
36892002-04-05 Jakub Jelinek <jakub@redhat.com>
3690
3691 * time/mktime.c (__mktime_internal): Move check for year < 70 below
3692 all variable declarations.
3693
36942002-04-04 Andreas Schwab <schwab@suse.de>
3695
3696 * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
3697
2b904739
AJ
36982002-04-04 Andreas Jaeger <aj@suse.de>
3699
3700 * sysdeps/x86_64/fpu/e_sqrt.c: New file.
3701 * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
3702
3703 * sysdeps/x86_64/fpu/s_fabs.c: New file.
3704 * sysdeps/x86_64/fpu/s_fabsf.c: New file.
3705 * sysdeps/x86_64/fpu/s_fabsl.c: New file.
3706
3707 * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
3708
3709 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
3710
3711 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
55544141 3712 * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
2b904739
AJ
3713
3714 * configure.in: Handle all mips entries the same.
3715
55544141 3716 * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
2b904739
AJ
3717 * sysdeps/mips/mips3/*: Likewise.
3718 * sysdeps/mips/p40/bits/endian.h: Likewise.
3719
d3d48616
UD
37202002-04-04 Ulrich Drepper <drepper@redhat.com>
3721
3722 * misc/dirname.c (dirname): Ignore trailing slashes at end of
3723 non-null result [PR libc/2600].
3724
3725 * misc/tst-dirname.c: Add more tests.
3726
4a10c7fe
UD
37272002-04-03 Ulrich Drepper <drepper@redhat.com>
3728
3729 * locale/programs/charmap.c (charmap_read): If the charmap doesn't
3730 define a code_set_name provide one based on the filename.
3731
3732 * malloc/hooks.c: Define weak_variable correctly for _LIBC.
3733
37342001-12-28 Andreas Jaeger <aj@suse.de>
3735
3736 * time/mktime.c (__mktime_internal): Check for year < 70
3737 [PR libc/2738].
3738
efe86019
AJ
37392002-04-03 Andreas Jaeger <aj@suse.de>
3740
3741 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
3742 shmat.
3743 Reported by Andi Kleen <ak@suse.de>.
3744
c64bd6c2
UD
37452002-04-03 Ulrich Drepper <drepper@redhat.com>
3746
4a10c7fe
UD
3747 * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
3748 * sysdeps/generic/w_lgammaf.c: Likewise.
3749 * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
3750
3751 * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
3752 Adjust for new output format of the backtrace functions.
3753
3754 * misc/syslog.c (vsyslog): Only use cleanup handler if
3755 _LIBC_REENTRANT is defined [PR libc/2924].
3756
737fa90d
UD
3757 * libio/Makefile (tests): Add bug-ungetwc2.
3758 * libio/bug-ungetwc2.c: New file.
3759
a4d62195
UD
3760 * manual/install.texi: Typographical and grammatical cleanup.
3761 Patch by Dennis Grace <dgrace@us.ibm.com>.
3762
be916937
UD
3763 * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
3764 parameter if mtflag. Patch by <jeongyun@innovay.com>.
3765
c64bd6c2
UD
3766 * sunrpc/rpc_svcout.c (printif): Remove third parameter. It was
3767 always "&". Adjust callers.
3768 Add "_" prefix to several generated definitions.
3769 Patch by paul@serice.net [PR libc/3158].
3770
b028b8ad
UD
37712002-04-02 Ulrich Drepper <drepper@redhat.com>
3772
3773 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
3774 size of _dl_arm_cap_flags.
3775 Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
3776
3777 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
3778 Define as 8.
3779
37802002-03-22 H.J. Lu <hjl@gnu.org>
3781
3782 * scripts/firstversions.awk: Check the first version.
3783
44c4ccbc
UD
37842002-04-02 Ulrich Drepper <drepper@redhat.com>
3785
8693ad52
UD
3786 * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
3787 dependencies must be stable to work correctly.
3788 Reported by martin.lubich@datacon.at.
3789
3384a8d6
UD
3790 * libio/bug-ungetwc1.c: New file.
3791 * libio/Makefile (tests): Add bug-ungetwc1.
3792
3793 * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
3794 if stream was last used for writing.
3795
d2225273 3796 * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
7a73a7e6 3797 number [PR libc/3111].
d2225273 3798
44c4ccbc
UD
3799 * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
3800 to ...
3801 * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
3802
f7ddf3d3
UD
38032002-04-02 Jakub Jelinek <jakub@redhat.com>
3804
3805 * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
3806 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
3807 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
3808 * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
3809 * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
3810
38112002-03-30 Jakub Jelinek <jakub@redhat.com>
3812
3813 * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
3814 dynamic tags.
3815
38162002-03-29 Jakub Jelinek <jakub@redhat.com>
3817
3818 * sysdeps/i386/fpu/s_fabs.S: New file.
3819 * sysdeps/i386/fpu/s_fabsf.S: New file.
3820 * sysdeps/i386/fpu/s_fabsl.S: New file.
3821 * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
3822 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
3823 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
3824
38252002-04-02 Ulrich Drepper <drepper@redhat.com>
3826
3827 * rt/tst-shm.c (do_test): Add one more test for size of shared
3828 memory object.
3829
38302002-03-29 Wolfram Gloger <wg@malloc.de>
3831
3832 * malloc/malloc.c: Add short description and prototypes for
3833 malloc_get_state, malloc_set_state and posix_memalign, for
3834 consistency and to avoid warnings with -Wstrict-prototypes.
3835 Reported by Andreas Jaeger <aj@suse.de>.
3836
38372002-04-02 Ulrich Drepper <drepper@redhat.com>
3838
3839 * po/gl.po: Update from translation team.
3840
db6b51ad
RM
38412002-03-31 Roland McGrath <roland@frob.com>
3842
3843 * hurd/hurdselect.c (_hurd_select): Fix
3844 MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
3845 Use a union rather than casts to compare mach_msg_type_t as int.
3846
38472002-03-25 Roland McGrath <roland@frob.com>
3848
3849 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
3850 check off the end of NAME when it's shorter than 2 chars.
3851 Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
3852
38532002-03-17 Roland McGrath <roland@frob.com>
3854
3855 * sysdeps/mach/hurd/i386/sys/io.h: New file.
3856 * sysdeps/mach/hurd/i386/ioperm.c: New file.
3857 * sysdeps/mach/hurd/i386/Dist: Add them.
3858 * sysdeps/mach/hurd/i386/Versions
3859 (libc: GLIBC_2.2.6): New set, add ioperm.
3860 * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
3861 (mach_interface_list): Check for mach_i386.defs.
3862 * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
3863 * sysdeps/mach/configure: Regenerated.
3864
435824be
UD
38652002-03-22 Ulrich Drepper <drepper@redhat.com>
3866
3867 * po/fr.po: Update from translation team.
3868
38692002-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
3870
3871 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
3872 getpriority from syscalls list.
3873
3cf01adb
AJ
38742002-03-28 Andreas Jaeger <aj@suse.de>
3875
be916937
UD
3876 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
3877 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
3878 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
3879 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
3cf01adb 3880
46a1b875
AJ
38812002-03-27 Andreas Jaeger <aj@suse.de>
3882
3883 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
3884 sigcontext): Follow further kernel change.
3885
3886 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
3887 kernel change.
3888
3889 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
3890 Change for struct sigcontext change.
3891
3892 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
3893 Follow changes in struct sigcontext.
3894
3895 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
3896 sysycall, use wrapper instead.
3897
30ee7c7b
AJ
38982002-03-26 Andreas Jaeger <aj@suse.de>
3899
49f8b030
AJ
3900 * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
3901 read and write accesses as detailed as possible.
3902 (__memcpy_by2): Likewise.
3903 (__memcpy_g): Likewise.
3904 (memmove): Likewise.
3905 (memcmp): Likewise.
3906 (__memset_ccn_by4): Likewise.
3907 (__memset_ccn_by2): Likewise.
3908 (__memset_gcn_by4): Likewise.
3909 (__memset_gcn_by2): Likewise.
3910 (memchr): Likewise.
3911 (__memrchr): Likewise.
3912 (rawmemchr): Likewise.
3913 (__strlen_g): Likewise.
3914 (__strcpy_g): Likewise.
3915 (__mempcpy_by4): Likewise.
3916 (__mempcpy_by2): Likewise.
3917 (__mempcpy_byn): Likewise.
3918 (__stpcpy_g): Likewise.
3919 (__strncpy_by4): Likewise.
3920 (__strncpy_by2): Likewise.
3921 (__strncpy_byn): Likewise.
3922 (__strncpy_gg): Likewise.
3923 (__strcat_c): Likewise.
3924 (__strcat_g): Likewise.
3925 (__strncat_g): Likewise.
3926 (__strcmp_gg): Likewise.
3927 (__strncmp_g): Likewise.
3928 (__strchr_c): Likewise.
3929 (__strchr_g): Likewise.
3930 (__strchrnul_c): Likewise.
3931 (__strchrnul_g): Likewise.
3932 (__strrchr_c): Likewise.
3933 (__strrchr_g): Likewise.
3934 (__strrchr_c): Likewise.
3935 (__strrchr_g): Likewise.
3936 (__strcspn_c1): Likewise.
3937 (__strcspn_cg): Likewise.
3938 (__strcspn_g): Likewise.
3939 (__strcspn_g): Likewise.
3940 (__strspn_c1): Likewise.
3941 (__strspn_cg): Likewise.
3942 (__strspn_g): Likewise.
3943 (__strspn_g): Likewise.
3944 (__strpbrk_cg): Likewise.
3945 (__strpbrk_g): Likewise.
3946 (__strstr_cg): Likewise.
3947 (__strstr_g): Likewise.
3948
79468ba8
AJ
3949 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo. Reported by
3950 Michal Ludvig <mludvig@suse.cz>.
3951
30ee7c7b
AJ
3952 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
3953 compatibilty, adjust for kernel changes.
3954
3955 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
3956 sigcontext): Adjust for kernel changes.
3957
367b07fb
AJ
39582002-03-25 Andreas Jaeger <aj@suse.de>
3959
3960 * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
3961 little endian.
3962 Reported by Artur Zaprzala <zybi@talex.com.pl>.
3963
8430ab40
AJ
39642002-03-24 Andreas Jaeger <aj@suse.de>
3965
3966 * manual/memory.texi (Aligned Memory Blocks): Fix typo.
3967
3968 * stdio-common/tst-fdopen.c (main): Remove unused variable.
3969
3970 * iconv/tst-iconv3.c (main): Use correct printf strings.
3971
4e6117f3
RM
39722002-03-18 Roland McGrath <roland@frob.com>
3973
3974 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
3975 (CMGROUP_MAX): New macro.
3976
4caf4f3c
RM
39772002-03-23 Roland McGrath <roland@frob.com>
3978
3979 * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
3980 * sysdeps/posix/shm_unlink.c: Likewise.
3981
b2b1c593
RM
39822002-03-22 Roland McGrath <roland@frob.com>
3983
3984 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
3985 * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
3986 under --enable-libio.
3987 * sysdeps/mach/hurd/configure: Regenerated.
3988
67a6c02f
RM
39892002-03-23 Roland McGrath <roland@frob.com>
3990
3991 * sysdeps/mach/hurd/i386/Makefile
3992 (sysdep_routines, shared-only-routines): Don't add framestate,
3993 reverting 2001-10-02 change.
3994 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
3995 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
3996 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
3997 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
3998 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
3999 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
4000 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
4001 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
4002 * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
4003 Do it here instead, only if [$(unwind-find-fde) = yes].
4004
7bae44c4
AJ
40052002-03-23 Andreas Jaeger <aj@suse.de>
4006
4007 * signal/signal.h: Fix typo. Patch by Steve Kemp
4008 <skx@tardis.ed.ac.uk>.
4009
904e1ba9
AJ
40102002-03-22 Andreas Jaeger <aj@suse.de>
4011
0f8a3e95
AJ
4012 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
4013 getresuid.
4014
904e1ba9 4015 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
0f8a3e95
AJ
4016 _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
4017 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
4018 user_fpregs_struct): Rename fwd.
904e1ba9
AJ
4019
4020 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
4021 Follow sigcontext changes.
4022
b2518ac2
AJ
40232002-03-22 Andreas Jaeger <aj@suse.de>
4024
4025 * sysdeps/mips/bits/nan.h: New file. Copy from generic one with
4026 changes for NaNs on MIPS.
4027 Patch by Hartvig Ekner <hartvige@mips.com>.
4028
c7a9b6e2
UD
40292002-03-21 Ulrich Drepper <drepper@redhat.com>
4030
4031 * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
4032 Use realloc if too large.
4033 (addgrbyid): Likewise.
4034 * nscd/hstcache.c (addhstbyname): Likewise.
4035 (addhstbyaddr): Likewise.
4036 (addhstbynamev6): Likewise.
4037 (addhstbyaddrv6): Likewise.
4038 * nscd/pwdcache.c (addpwbyname): Likewise.
4039 (addpwbyuid): Likewise.
4040
57d180fd
AJ
40412002-03-21 Andreas Jaeger <aj@suse.de>
4042
4043 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
4044 _fpstate): Add separate struct for x86-64.
4045
4046 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
4047 user_fpregs_struct): Change member names to follow kernel.
4048
973f52a0
UD
40492002-03-20 Ulrich Drepper <drepper@redhat.com>
4050
4051 * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
4052 Correctly close the UDP connection right away [PR libc/3120].
4053
cb50c218
AJ
40542002-03-20 Andreas Jaeger <aj@suse.de>
4055
4056 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
4057 user_fpregs_struct): Fix for changed kernel struct.
4058 (struct user_regs_struct): Likewise.
4059 (struct user): Likewise.
4060 Add 32-bit x86 compatibility.
4061
4062 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
4063
6340375b
AJ
40642002-03-19 Andreas Jaeger <aj@suse.de>
4065
4066 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
4067
8c5e5fa0
AJ
40682002-03-18 Andreas Jaeger <aj@suse.de>
4069
4070 * iconvdata/Makefile: Only run tests when shared libs are
4071 available.
4072
7f0244de
AJ
40732002-03-17 Andreas Jaeger <aj@suse.de>
4074
4075 * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
4076
4077 * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
4078
4079 * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
4080 bits.
4081
4082 * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
4083 (CAUSE_SHIFT): New.
4084 Patch by Hartvig Ekner <hartvige@mips.com>.
4085
d8bd181e
UD
4086 * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
4087 * sysdeps/generic/unwind-pe.h: Likewise.
7f0244de 4088
d8bd181e
UD
4089 * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
4090 type to _IO_setb.
7f0244de
AJ
4091
4092 * libio/stdio.c (AL2): Define variant when visibility attribute is
4093 not supported.
4094
4095 * include/libc-symbols.h (_INTVARDEF): Define variant when
4096 visibility attribute is not supported.
4097
eea4471d
UD
40982002-03-16 Ulrich Drepper <drepper@redhat.com>
4099
4100 * po/fr.po: Update from translation team.
4101
567fb074
UD
41022002-02-25 Bruno Haible <bruno@clisp.org>
4103
4104 * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
4105
2c617417
UD
41062002-03-15 Ulrich Drepper <drepper@redhat.com>
4107
4108 * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
4109 buffers if _IO_file_attach failed.
4110
4111 * libio/fileops.c (_IO_file_open): Close file descriptor if
4112 _IO_SEEKOFF call failed.
4113
5241882c
UD
41142002-03-15 H.J. Lu <hjl@gnu.org>
4115 Ulrich Drepper <drepper@redhat.com>
4116
4117 * configure.in: Check for availability of
4118 init_array/fini_array/preinit_array handling in binutils.
4119 * config.h.in (HAVE_INITFINI_ARRAY): New macro.
4120 * config.make.in (have-initfini-array): New variable.
4121
dff07c4b
UD
41222002-03-15 Ulrich Drepper <drepper@redhat.com>
4123
c06b947e
UD
4124 * stdio-common/tst-printf.c (main): Comment out one test which
4125 checked the compiler's ability to fold floating-point constants
4126 but not really printf.
4127 (rfg3): Make s const.
4128 * stdio-common/tst-printf.sh: Adjust for removed test.
4129
dff07c4b
UD
4130 * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
4131 internal function. Adjust for internal_function calling convention.
4132 * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
4133 as internal_function.
4134
4135 * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
4136 hidden.
4137
4138 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
4139 declaration and definition.
4140 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
4141 declaration.
4142 * nss/getXXent_r.c: Likewise.
4143 * nss/nsswitch.h (db_lookup_function): Add internal_function to
4144 definition.
4145
4146 * include/time.h: Declare __localtime_r as hidden.
4147
d8bd181e 4148 * include/aliases.h: Declare __getaliasent_r as hidden.
dff07c4b
UD
4149 * include/grp.h: Declare __getgrent_r as hidden.
4150 * include/netdb.h: Declare __gethostent_r, __getnetent_r,
4151 __getservent_r, and __getprotoent_r as hidden.
4152 * include/pwd.h: Declare __getpwent_r as hidden.
4153 * include/shadow.h: Declare __getspent_r as hidden.
4154 * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
4155
4156 * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
4157 and __gconv_transliterate as hidden.
4158 Add internal_function to __gconv_get_path declaration.
2c617417 4159 * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
dff07c4b
UD
4160 definition. Add attribute_hidden to __gconv_read_conf definition.
4161
5c82e15e
UD
41622002-03-14 Ulrich Drepper <drepper@redhat.com>
4163
9360906d
UD
4164 * elf/rtld.c: Declare _environ as hidden.
4165 * sysdeps/generic/dl-environ.c: Likewise.
4166 * sysdeps/generic/dl-sysdep.c: Likewise.
4167
4168 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
4169 _dl_mcount_internal as hidden.
4170
4171 * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
4172 * sysdeps/generic/dl-brk.c: New file.
4173 * sysdeps/generic/dl-sbrk.c: New file.
4174 * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
4175 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
4176
5c82e15e
UD
4177 * elf/dl-minimal.c (malloc): Declare _end as hidden.
4178 (__errno_location): New function. Declare errno as hidden.
4179 * elf/rtld.c (_dl_argc): Define as hidden.
4180 (_dl_skip_args): Define as hidden.
4181 (_begin, _end): Declare as hidden.
4182 * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
4183 * sysdeps/generic/entry.h (_start): Declare as hidden.
4184 * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
4185 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
4186 _dl_runtime_resolve and _dl_runtime_profile as hidden.
4187 (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
4188
f3787738
RM
41892002-03-14 Roland McGrath <roland@frob.com>
4190
4191 * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
4192
4193 * Makeconfig (%.v.i, %.v): New implicit rules.
4194 (preprocess-versions): Variable removed.
4195 ($(common-objpfx)shlib-versions.v.i): New target giving just the
4196 shlib-versions input files as dependencies.
4197 ($(common-objpfx)soversions.i): Depend on that instead of the input
4198 files. Use it as input instead of using a pipeline.
4199 (postclean-generated): Append soversions.i, shlib-versions.v, and
4200 shlib-versions.v.i here.
4201 * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
4202 the Versions.def input files as dependencies.
4203 ($(common-objpfx)Versions.v.i): Likewise for Versions files.
4204 ($(common-objpfx)Versions.all): Depend on that instead of the input
4205 files. Use it as input instead of using a pipeline.
4206 ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
4207 (postclean-generated): Append those .v and .v.i files here.
4208
ba737b94
UD
42092002-03-14 Jakub Jelinek <jakub@redhat.com>
4210
4211 * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
4212 * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
4213 Remove.
4214
42152002-03-14 Jakub Jelinek <jakub@redhat.com>
4216
4217 * sysdeps/generic/mp_clz_tab.c: New file.
4218 * sysdeps/i386/mp_clz_tab.c: New file.
4219 * sysdeps/hppa/mp_clz_tab.c: New file.
4220 * sysdeps/powerpc/mp_clz_tab.c: New file.
4221 * stdlib/Makefile (aux): Revert last patch.
4222 * math/Makefile (gmp-objs): Likewise.
4223
42242002-03-13 Paul Eggert <eggert@twinsun.com>
4225
4226 * time/strftime.c: Comment fixes for references to obsolescent
4227 standards, In most cases the simplest fix is to remove the
4228 confusing comments. Cross-referencing all the standards properly
4229 is a bit of a pain, and it should be enough to put that info in
4230 the documentation as I did in my recent time.texi patch.
4231
42322002-03-13 Paul Eggert <eggert@twinsun.com>
4233
4234 * manual/time.texi (Formatting Calendar Time):
4235 ISO C99 also specifies the E and O modifiers.
4236 %P is a GNU extension, and is not in ISO C99.
4237 Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
4238 %T is also in ISO C99.
4239 The RFC 822 example is not valid in arbitrary locales.
4240 Reword the POSIX.2 wording slightly, to make it a bit clearer
4241 that POSIX.2 formats are also supported by later POSIX versions.
4242 If a format was introduced in ISO C99 it is also required by
4243 POSIX.1-2001.
4244
351f0765
UD
42452002-03-13 Ulrich Drepper <drepper@redhat.com>
4246
1897bc3f
UD
4247 * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
4248 _sys_nerr_internal with INTVARDEF2.
4249 * include/libc-symbols.h (INTVARDEF2): New macro.
4250 * include/stdio.h (_sys_errlist_internal): Declare as hidden.
4251 (_sys_nerr_internal): Library.
4252
4253 * sysdeps/posix/signal.c (_sigintr): Define as hidden.
4254 * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
4255
351f0765
UD
4256 * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
4257
75bfdfc7
UD
42582002-03-13 Wolfram Gloger <wg@malloc.de>
4259
4260 * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
4261
42622002-03-02 Andreas Schwab <schwab@suse.de>
4263
4264 * stdio-common/vfprintf.c (process_arg): Fix decimal format with
4265 'h' flag and positional arg.
4266 * stdio-common/tst-printf.c (rfg3): New function to test
4267 positional arguments.
4268 (main): Fix some warnings.
4269
42702002-03-13 Jakub Jelinek <jakub@redhat.com>
4271
4272 * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
4273 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
4274
6455d255
UD
42752002-03-13 Ulrich Drepper <drepper@redhat.com>
4276
bf494c7d
UD
4277 * grp/initgroups.c (__nss_group_data): Declare as hidden.
4278
169ec09e
UD
4279 * include/locale.h (_nl_C_locobj): Declare as hidden.
4280
4281 * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
4282 * time/strptime.c (_nl_C_LC_TIME): Likewise.
4283
4284 * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
4285
4286 * include/sys/gmon.h: Declare _gmonparam as hidden.
4287
4288 * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
4289 (__ctype32_wctrans): Likewise.
4290 (__ctype32_width): Likewise.
4291
6455d255
UD
4292 * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
4293 use of __ttyname.
4294
4295 * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
4296 Define as hidden.
4297 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Define as
4298 hidden. Change all users of these variables.
4299
4300 * posix/regex_internal.h (__re_error_msgid): Renamed from
4301 re_error_msgid. Declare as hidden.
4302 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Declare as
4303 hidden.
4304
4305 * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
4306 (__printf_function_table): Likewise.
4307 * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
4308 hidden.
4309 (__printf_function_table): Likewise.
4310
4311 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
4312 __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
4313
4314 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
4315 * nss/nsswitch.c: Declare _nss_*_database as hidden.
4316
4317 * stdlib/wctomb.c (__no_r_state): Declare as hidden.
4318 * stdlib/mbtowc.c (__no_r_state): Define as hidden.
4319
418f1701
UD
43202002-03-12 Ulrich Drepper <drepper@redhat.com>
4321
ab26a24a
UD
4322 * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
4323 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
4324 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
4325 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
4326 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
4327 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
4328 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
4329 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
4330 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
4331 _nl_C_LC_CTYPE_width: Declare as hidden.
4332 * include/locale.h: Declare _nl_locale_file_list.
4333 * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
4334 * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
4335 * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
4336 * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
4337 * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
4338 * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
4339 * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
4340 * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
4341 * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
4342 * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
4343 * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
4344 * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
4345 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
4346 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
4347 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
4348 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
4349 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
4350 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
4351 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
4352 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
4353 _nl_C_LC_CTYPE_width, and as hidden.
4354 * locale/findlocale.c: Declare _nl_C as hidden.
4355 * locale/newlocale.c: Likewise.
4356 * locale/setlocale.c: Define _nl_C as hidden. Remove declaration of
4357 _nl_locale_file_list.
4358 * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
4359 _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
4360 Define _nl_C_locobj as hidden.
4361
4362 * malloc/mtrace.c (_mtrace_file): Define as hidden.
4363 (_mtrace_line): Likewise.
4364
4365 * include/time.h: Declare __mon_yday as hidden.
4366 * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
4367
4368 * libio/libioP.h: Declare __libio_codecvt as hidden.
4369 * libio/fileops.c: Declare __libio_translit as hidden.
4370 * libio/iofwide.c: Define __libio_translit as hidden.
4371
4372 * login/getutent_r.c: Define __libc_utmp_lock as hidden.
4373 * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
4374 * login/getutline_r.c: Likewise.
4375 * login/utmpname.c: Likewise.
4376
4377 * login/utmp-private.h: Declare __libc_utmp_file_functions,
4378 __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
4379 __libc_utmp_file_name as hidden.
4380
4381 * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
4382 * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
4383 * locale/freelocale.c: Likewise.
4384 * locale/lc-time.c: Likewise.
4385
4386 * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
4387 (__libc_ptyname2): Likewise.
4388 * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
4389 hidden.
4390 (__libc_ptyname2): Likewise.
4391
4392 * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
4393 * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
4394 * sysdeps/generic/init-first.c: Likewise.
4395 * sysdeps/i386/init-first.c: Likewise.
4396 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
4397 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
4398 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
4399 * sysdeps/sh/init-first.c: Likewise.
4400 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
4401 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
4402
100351c3
UD
4403 * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
4404 (_itowa_upper_digits): Likewise.
4405
4406 * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
4407 * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
4408 as hidden.
4409
4410 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
4411 _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
4412 _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
4413 _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
4414
4415 * gmon/gmon.c (__bb_head): Define as hidden.
4416 * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
4417
4418 * argp/argp-parse.c (_argp_hang): Define as static.
4419
4420 * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
4421 handling in latest compilers.
4422
4423 * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
4424 define alias.
4425 * libio/fileops.c (_IO_file_jumps): Likewise.
4426 * libio/stdfiles.c (_IO_list_all): Likewise.
4427 * libio/wfileops.c (_IO_wfile_jumps): Likewise.
4428
4429 * malloc/malloc.h: Move __libc_malloc_initialized declaration to
4430 include/malloc.h.
4431 * include/malloc.h: Add __libc_malloc_initialized declaration
4432 here. Mark variable hidden.
4433 * malloc/malloc.c: Include <malloc.h> not "malloc.h".
4434
4435 * elf/dl-open.c (__libc_argc): Declare as hidden.
4436 (__libc_argv): Likewise.
4437 * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
4438 (__libc_argv): Likewise.
4439 * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
4440 __libc_argv as hidden.
4441 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
4442 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
4443 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
4444 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
4445
aa32f798
UD
4446 * include/stdlib.h (__libc_drand48_data): Declare as hidden.
4447 * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
4448 * stdlib/erand48.c: Likewise.
4449 * stdlib/jrand48.c: Likewise.
4450 * stdlib/lcong48.c: Likewise.
4451 * stdlib/lrand48.c: Likewise.
4452 * stdlib/mrand48.c: Likewise.
4453 * stdlib/nrand48.c: Likewise.
4454 * stdlib/seed48.c: Likewise.
4455 * stdlib/srand48.c: Likewise.
4456
4457 * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
4458 (_itoa_lower_digits_internal): New declaration.
4459 (_itoa_upper_digits_internal): New declaration.
4460 (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
4461 * stdio-common.h (_itoa_lower_digits_internal): New declaration.
4462 (_itoa_upper_digits_internal): New declaration.
4463 (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
4464 _itoa_lower_digits.
4465 * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
4466 * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
4467
4468 * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
4469 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
4470
4471 * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
4472 (_itowa_lower_digits): Likewise.
4473 (_itowa_upper_digits): Likewise.
4474 * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
4475 (_itowa_upper_digits): Likewise.
4476
4477 * intl/plural-exp.h (attribute_hidden): Define as empty macro if
4478 not already defined.
4479 (GERMANIC_PLURAL): Declare as hidden.
4480
4481 * posix/getopt.c (__getopt_initialized): Declare as hidden.
4482 (attribute_hidden): Define as empty macro if not already defined.
4483
4484 * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
4485 (__gconv_max_path_elem_len): Likewise.
4486 (__gconv_path_envvar): Likewise.
4487
4488 * math/Makefile (gmp-objs): Remove mp_clz_tab.
4489 * stdlib/Makefile (aux): Remove mp_clz_tab.
4490 * stdlib/mp_clz_tab.c: Removed. Not needed anywhere.
4491
4492 * stdlib/exit.h (__exit_funcs): Declare as hidden.
4493
418f1701
UD
4494 * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
4495
4496 * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
4497 _nl_category_names, _nl_category_name_sizes, _nl_current,
4498 _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
4499
4500 * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
4501 (_nl_current_default_domain): Likewise
4502 (_nl_state_lock): Likewise.
4503 * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
4504 (_nl_current_default_domain): Likewise
4505 (_nl_state_lock): Likewise.
4506 * intl/bindtextdom.c (_nl_state_lock): Likewise.
4507
4508 * stdlib/fpioconst.h (__tens): Add attribute_hidden.
4509 (_fpioconst_pow10): Likewise.
4510
4511 * include/time.h (_tmbuf): Add attribute_hidden.
4512
4513 * time/tzset.c (tzstring_list): Define as static.
4514
4515 * include/time.h: Add attribute_hidden to __tzname_cur_max and
4516 __use_tzfile declaration.
4517
4518 * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
4519 and __wcsmbs_last_locale declaration.
4520
bdff0a44
UD
45212002-02-25 Paul Eggert <eggert@twinsun.com>
4522
4523 * timezone/Makefile (tzbases): Move systemv from here...
4524 (tzlinks): to here, since the entries in systemv were all changed
4525 from Zone to Link lines in tz-2001a. Bug reported (and patch
4526 tested) by Peter Breitenlohner.
4527
a3931cbe
UD
45282002-03-07 Jakub Jelinek <jakub@redhat.com>
4529
4530 * time/tst-posixtz.c (tests): Add new tests.
4531 (main): Test whether tzset() sets daylight properly.
4532
45332002-03-06 Jakub Jelinek <jakub@redhat.com>
4534
4535 * time/tzset.c (tz_compute): Move __daylight, __tzname and
4536 __tzname_cur_max setting...
4537 (tzset_internal): ...here.
4538
45392002-03-06 Jakub Jelinek <jakub@redhat.com>
4540
4541 * time/tzset.c (compute_change): Don't return any value.
4542 (tz_compute): Likewise. Don't handle southern hemisphere here.
4543 (__tz_convert): But here.
4544
bc15410e
UD
45452002-03-11 Ulrich Drepper <drepper@redhat.com>
4546
4547 * manual/examples/mkfsock.c: Include <string.h> as well.
4548 Patch by Alain De Carolis <alaind@wseurope.com>.
4549
45502002-03-06 Isamu Hasegawa <isamu@yamato.ibm.com>
4551
4552 * posix/regexec.c (re_match): Fix incorrect register sizes.
4553 (re_search): Likewise.
4554
45552002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
4556
4557 * posix/regcomp.c (regfree): Remove a disused condition.
4558 * posix/regex_internal.c (re_acquire_state): Likewise.
4559 (re_acquire_state_context): Likewise.
4560 (register_state): Remove a redundant malloc invocation.
4561 * posix/regex_internal.h: (re_state_table_entry): Simplify
4562 the structure.
4563
45642002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
4565
4566 * posix/regcomp.c (regcomp): Add __builtin_expect to error
4567 handling conditions.
4568 (regerror): Likewise.
4569 (regfree): Likewise.
4570 (re_compile_internal): Likewise.
4571 (init_dfa): Likewise.
4572 (init_word_char): Likewise.
4573 (create_initial_state): Likewise.
4574 (analyze): Likewise.
4575 (analyze_tree): Likewise.
4576 (duplicate_node): Likewise.
4577 (calc_eclosure): Likewise.
4578 (calc_eclosure_iter): Likewise.
4579 (parse): Likewise.
4580 (parse_reg_exp): Likewise.
4581 (parse_branch): Likewise.
4582 (parse_expression): Likewise.
4583 (parse_subexp): Likewise.
4584 (parse_dup_op): Likewise.
4585 (parse_bracket_exp): Likewise.
4586 (build_equiv_class): Likewise.
4587 (build_charclass): Likewise.
4588 (build_word_op): Likewise.
4589 (fetch_number): Likewise.
4590 (create_tree): Likewise.
4591 (duplicate_tree): Likewise.
4592 * posix/regex.c (BE): New macro.
4593 * posix/regexec.c (re_match): Add __builtin_expect to error
4594 handling conditions.
4595 (re_match_2): Likewise.
4596 (re_search): Likewise.
4597 (re_search_internal): Likewise.
4598 (check_matching): Likewise.
4599 (proceed_next_node): Likewise.
4600 (set_regs): Likewise.
4601 (sift_states_backward): Likewise.
4602 (add_epsilon_backreference): Likewise.
4603 (transit_state): Likewise.
4604 (transit_state_sb): Likewise.
4605 (transit_state_mb): Likewise.
4606 (transit_state_bkref): Likewise.
4607 (transit_state_bkref_loop): Likewise.
4608 (build_trtable): Likewise.
4609 (group_nodes_into_DFAstates): Likewise.
4610 (match_ctx_init): Likewise.
4611 (match_ctx_add_entry): Likewise.
4612 * posix/regex_internal.c (re_string_construct): Add __builtin_expect
4613 to error handling conditions.
4614 (re_string_construct_toupper): Likewise.
4615 (build_wcs_buffer): Likewise.
4616 (build_wcs_upper_buffer): Likewise.
4617 (build_upper_buffer): Likewise.
4618 (re_string_translate_buffer): Likewise.
4619 (re_node_set_alloc): Likewise.
4620 (re_node_set_init_1): Likewise.
4621 (re_node_set_init_2): Likewise.
4622 (re_node_set_init_copy): Likewise.
4623 (re_node_set_intersect): Likewise.
4624 (re_node_set_init_union): Likewise.
4625 (re_node_set_merge): Likewise.
4626 (re_node_set_insert): Likewise.
4627 (re_dfa_add_node): Likewise.
4628 (re_acquire_state): Likewise.
4629 (re_acquire_state_context): Likewise.
4630 (create_new_state_common): Likewise.
4631 (register_state): Likewise.
4632 (create_ci_new_state): Likewise.
4633 (create_cd_new_state): Likewise.
4634 (re_string_context_at): Remove redundant condition.
4635
46362002-01-16 Roger Sayle <roger@eyesopen.com>
4637
4638 * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
4639
4640 * sysdeps/i386/i586/strlen.S: Fix typo in comment.
4641
89a3dd44
UD
46422002-03-11 Jakub Jelinek <jakub@redhat.com>
4643
4644 * sysdeps/i386/elf/configure.in: Fix comment.
4645
4646 * sysdeps/sparc/sparc64/configure.in: New.
4647 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
4648 if .dynamic comes before .got.
4649 * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
4650
4651 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
4652 HP_TIMING_ACCUM): Fix typos.
4653
14b2815b
UD
46542002-03-11 Ulrich Drepper <drepper@redhat.com>
4655
89a3dd44
UD
4656 * string/strfry.c: Add some more randomness to the seed.
4657 Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
4658
14b2815b
UD
4659 * po/es.po: Update from translation team.
4660 * po/fr.po: Likewise.
4661
4662 * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
4663
4664 * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
4665 when determining type of format.
89a3dd44 4666 Patch by James Antill <james@anqd.org> [PR libc/2787].
14b2815b
UD
4667
46682002-03-04 Jakub Jelinek <jakub@redhat.com>
4669
4670 * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
4671
dbf2de43
RM
46722002-03-11 Roland McGrath <roland@frob.com>
4673
4674 * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
4675
4676 * Versions.def (libc): Add GLIBC_2.2.6.
4677 * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
4678 * sysdeps/mach/hurd/errnos.awk: In generated macro, use
4679 __errno_location instead of __hurd_errno_location, and don't inline it.
4680 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
4681 * hurd/errno.c: New file.
4682 * hurd/Makefile (routines): Add errno.
4683
078405a2
UD
46842002-03-11 Ulrich Drepper <drepper@redhat.com>
4685
4686 * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
4687 ridiculously large widths and precisions [PR libc/3026].
4688
8eb095dd
AJ
46892002-03-11 Andreas Jaeger <aj@suse.de>
4690
4691 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
4692 support.
4693 Patch by Susanne Oberhauser <froh@SuSE.de>.
4694
0e47dbd0
UD
46952002-03-11 Ulrich Drepper <drepper@redhat.com>
4696
d372f89a
UD
4697 * inet/rexec.c (ahostbuf): Define as static.
4698
20febd6a
UD
4699 * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
4700 (__ctype32_wctrans): Likewise.
4701 * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
4702 * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
4703 (__ctype32_wctrans): Likewise.
4704 (__ctype32_width): Likewise.
4705
0e47dbd0
UD
4706 * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
4707 They were never exported anyway.
4708
4709 * gmon/gmon.c (_gmonparam): Add attribute_hidden.
4710 * gmon/sys/gmon.h: Remove declaration of _gmonparam. It wasn't
4711 exported.
4712 * include/sys/gmon.h: Declare _gmonparam.
4713
4714 * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
4715 symbols for getdents64. They were never exported.
4716
70481be8
RM
47172002-03-09 Roland McGrath <roland@frob.com>
4718
4719 * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
4720 Reported by Jon Arney <jarney1@cox.net>.
4721
47222002-02-23 Roland McGrath <roland@frob.com>
4723
4724 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
4725 declaration.
4726 (__hurd_errno_location): Function removed.
4727
2c8a8bdd
AJ
47282002-03-06 Andreas Jaeger <aj@suse.de>
4729
4730 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
4731 32-bit.
4732
76d81302
AJ
47332002-03-04 Andreas Jaeger <aj@suse.de>
4734
3adf3020
AJ
4735 * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
4736
76d81302
AJ
4737 * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
4738 x86-64.
4739
4740 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
4741
4742 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
4743
4744 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
4745
4746 * sysdeps/x86_64/bits/setjmp.h: New.
4747
4748 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
4749
4750 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
4751
4752 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
4753 for x86.
4754 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
4755 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
4756
47572002-02-28 Bo Thorsen <bo@suse.de>
4758
4759 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
4760 version.
4761
37de950b
AJ
47622002-03-03 Andreas Jaeger <aj@suse.de>
4763
a06bb7ce
AJ
4764 * sysdeps/x86_64/bits/wordsize.h: New file.
4765
37de950b
AJ
4766 * elf/nodlopenmod2.c: Provide prototype to avoid warning.
4767 * elf/tst-tlsmod1.c: Likewise.
4768
4769 * posix/regcomp.c: Get regex.h from include dir for internal
4770 prototypes.
4771
4772 * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
4773 to libc-internal.h and include it.
4774 * include/libc-internal.h: Add __init_misc.
4775
4776 * misc/init-misc.c: Include libc-internal.h for prototypes.
4777
4778 * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
4779
4780 * misc/error.c [_LIBC]: Include libioP.h for prototype of
4781 _IO_putc_internal.
4782
f990d293
UD
47832002-03-03 Ulrich Drepper <drepper@redhat.com>
4784
4785 * posix/regcomp.c: Compatibility changes to allow using the code
4786 outside glibc.
4787
263756c0 47882002-02-28 Hartvig Ekner <hartvige@mips.com>
f990d293 4789
263756c0
AJ
4790 * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
4791 compiled non-PIC.
4792
cc8594b1
UD
47932002-03-02 Ulrich Drepper <drepper@redhat.com>
4794
0e25633a
UD
4795 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
4796 of .str elements in the returned data structure.
4797
cc8594b1
UD
4798 * elf/elf.h: Add Alpha TLS bits.
4799
56f182bf
UD
48002002-02-28 Jakub Jelinek <jakub@redhat.com>
4801
4802 * sysdeps/unix/sysv/linux/nice.c: New file.
4803
e6caf4e1
UD
48042002-03-01 Ulrich Drepper <drepper@redhat.com>
4805
4806 * elf/Makefile (dl-routines): Add dl-origin.
4807 (elide-routines.os): Add dl-origin.
4808 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
4809 * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
4810 _dl_debug_state.
4811 * include/libc-symbols.c: Define attribute_hidden depending on
4812 HAVE_VISIBILITY_ATTRIBUTE. Add definition of INTVARDEF.
4813
4814 * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
4815 * elf/dl-load.c: Likewise.
4816 * elf/rtld.c: Likewise.
4817 * include/unistd.h: Declare __libc_enable_secure_internal.
4818 * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
4819 Use INTUSE with __libc_enable_secure.
4820 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
4821
4822 * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
4823 * elf/dl-error.c: Likewise,
4824 * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
4825
4826 * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
4827 * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
4828 function definition. Use INTDEF with _dl_get_origin.
4829 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
4830
4831 * elf/dl-init.c: Use INTUSE with _dl_starting_up.
4832 * elf/rtld.c: Likewise. Use INTVARDEF for _dl_starting_up.
4833
4834 * elf/dl-profile.c: Use INTDEF for _dl_mcount.
4835 * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
4836 * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
4837
4838 * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
4839 * elf/dl-deps.c: Likewise.
4840 * elf/dl-error.c: Likewise.
4841 * elf/dl-fini.c: Likewise.
4842 * elf/dl-init.c: Likewise.
4843 * elf/dl-load.c: Likewise.
4844 * elf/dl-lookup.c: Likewise.
4845 * elf/dl-reloc.c: Likewise.
4846 * elf/dl-version.c: Likewise.
4847 * elf/do-lookup.h: Likewise.
4848 * sysdeps/arm/dl-machine.h: Likewise.
4849 * sysdeps/cris/dl-machine.h: Likewise.
4850 * sysdeps/hppa/dl-machine.h: Likewise.
4851 * sysdeps/i386/dl-machine.h: Likewise.
4852 * sysdeps/m68k/dl-machine.h: Likewise.
4853 * sysdeps/powerpc/dl-machine.h: Likewise.
4854 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
4855 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
4856 * sysdeps/sh/dl-machine.h: Likewise.
4857 * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
4858 * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
4859 * sysdeps/x86_64/dl-machine.h: Likewise.
4860 * elf/rtld.c: Use INTDEF for _dl_argv. Use rtld_progrname instead of
4861 _dl_argv[0]. Use INTUSE with _dl_argv.
4862 * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
4863 * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
4864
0d01dace
UD
48652002-02-28 Jakub Jelinek <jakub@redhat.com>
4866
4867 * elf/rtld.c (_rtld_global): Remove .protected.
4868 (_rtld_local): Strong alias to _rtld_global.
4869 * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
4870 only .os object.
4871 * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
4872 _rtld_local instead of _rtld_global.
4873 (_rtld_local): Add hidden extern, possibly in .sdata section.
4874 * configure.in: Add tests for visibility attribute and .sdata.
4875 * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
4876 * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
4877 * sysdeps/arm/dl-machine.h: Likewise.
4878 * sysdeps/generic/ldsodefs.h: Likewise.
4879 * sysdeps/hppa/dl-machine.h: Likewise.
4880 * sysdeps/cris/dl-machine.h: Likewise.
4881 * sysdeps/i386/dl-machine.h: Likewise.
4882 * sysdeps/ia64/dl-machine.h: Likewise.
4883 * sysdeps/m68k/dl-machine.h: Likewise.
4884 * sysdeps/mips/mips64/dl-machine.h: Likewise.
4885 * sysdeps/mips/dl-machine.h: Likewise.
4886 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
4887 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
4888 * sysdeps/sh/dl-machine.h: Likewise.
4889 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
4890 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
4891 * sysdeps/x86_64/dl-machine.h: Likewise.
4892
1eb610d1
UD
48932002-02-28 Ulrich Drepper <drepper@redhat.com>
4894
4895 * login/login.c (login): Always initialize ut_line field
4896 [PR libc/2991].
4897
9321beea
UD
48982002-02-28 Jakub Jelinek <jakub@redhat.com>
4899
4900 * sysdeps/i386/Makefile (sysdep_routines): Add
4901 divdi3 in csu dir.
4902 (shared-only-routines): Likewise.
4903 * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
4904 (shared-only-routines): Likewise.
4905 * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
4906 (shared-only-routines): Likewise.
4907 * sysdeps/wordsize-32/divdi3.c: New file.
4908
89616722
UD
49092002-02-28 Ulrich Drepper <drepper@redhat.com>
4910
4911 * locale/iso-4217.def: Remove obsolete currencies for countries
4912 with Euro.
4913
a9388965
UD
49142002-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
4915
4916 * posix/regcomp.c (regcomp): Remove a redundant condition.
4917 (init_word_char): Add a check on malloc failure.
4918 (create_initial_state): Likewise.
4919 (duplicate_node): Likewise.
4920 (calc_eclosure): Likewise.
4921 (calc_eclosure_iter): Likewise.
4922 (parse_expression): Likewise.
4923 (parse_bracket_exp): Remove unnecessary malloc invocations.
4924 (build_equiv_class): Likewise.
4925 (build_charclass): Likewise.
4926 * posix/regex_internal.c (re_node_set_intersect): Add a check
4927 on malloc failure.
4928 (re_node_set_add_intersect): Likewise.
4929 (re_node_set_merge): Likewise.
4930 (re_acquire_state): Likewise.
4931 (re_acquire_state_context): Likewise.
4932 (create_newstate_common): Likewise.
4933 (register_state): Likewise.
4934 (create_ci_newstate): Likewise.
4935 (create_cd_newstate): Likewise.
4936 * posix/regex_internal.h: Fix prototypes of re_acquire_state
4937 and re_acquire_state_context.
4938 * posix/regexec.c (regexec): Suit it to the error handling of
4939 re_search_internal.
4940 (re_match): Likewise.
4941 (re_search): Likewise.
4942 (re_search_internal): Add a check on malloc failure.
4943 (acquire_init_state_context): Likewise.
4944 (check_matching): Likewise.
4945 (proceed_next_node): Likewise.
4946 (set_regs): Likewise.
4947 (sift_states_backward): Likewise.
4948 (sift_states_iter_bkref): Likewise.
4949 (add_epsilon_backreference): Likewise.
4950 (transit_state): Likewise.
4951 (transit_state_sb): Likewise.
4952 (transit_state_mb): Likewise.
4953 (transit_state_bkref_loop): Likewise.
4954 (build_trtable): Likewise.
4955 (group_nodes_into_DFAstates): Likewise.
4956 (match_ctx_init): Likewise.
4957 (match_ctx_add_entry): Likewise.
4958
f027b0f6
UD
49592002-02-27 Ulrich Drepper <drepper@redhat.com>
4960
51f38e87
UD
4961 * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
4962 l_libname if profiling is enabled [PR libc/2916].
4963
f027b0f6
UD
4964 * sysdeps/ia64/dl-tls.h: New file.
4965
8e099847
UD
49662002-02-27 Jakub Jelinek <jakub@redhat.com>
4967
4968 * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
4969 Work around an Alpha gas bug.
4970
49712002-02-27 Ulrich Drepper <drepper@redhat.com>
4972
4973 * catgets/open_catalog.c (__open_catalog): Fix typo in code which
4974 uses read to load the catalog.
4975 Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
4976
73f1b067
UD
49772002-02-26 Ulrich Drepper <drepper@redhat.com>
4978
3b0bdc72
UD
4979 * posix/Makefile (distribute): Add regcomp.c, regexec.c,
4980 regex_internal.c, and regex_internal.h.
4981 (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
4982 * posix/regex.c: Complete rewrite.
4983 * posix/regexec.c: New file.
4984 * posix/regcomp.c: New file.
4985 * posix/regex_internal.c: New file.
4986 * posix/regex_internal.h: New file.
4987 * posix/regex.h (RE_ICASE): New macro.
4988 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
4989
73f1b067
UD
4990 * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
4991 ungetwc. It's a macro.
4992 * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
4993 implementation.
4994 Reported by Jason Merrill <jason@redhat.com>.
4995
b39d5719
UD
49962002-02-25 Jakub Jelinek <jakub@redhat.com>
4997
4998 * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
4999 position to fp->_offset if it is set.
5000 * stdio-common/Makefile (tests): Add tst-fdopen.
5001 * stdio-common/tst-fdopen.c: New test.
5002
50032002-02-25 Jakub Jelinek <jakub@redhat.com>
5004
5005 * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
5006 * stdio-common/tst-ungetc.c (main): Add another test.
5007
77fe0b9c
UD
50082002-02-25 Ulrich Drepper <drepper@redhat.com>
5009
5010 * assert/assert-perr.c: Use INTUSE to reference functions and variables
8e099847 5011 inside libc itself. Use INTDEF and INTDEF2 to define appropriate
77fe0b9c
UD
5012 aliases. Add prototypes for the new aliases.
5013 * assert/assert.c: Likewise.
5014 * include/libc-symbols.h: Likewise.
5015 * include/stdio.h: Likewise.
5016 * include/netinet/in.h: Likewise.
5017 * include/rpc/auth.h: Likewise.
5018 * include/rpc/auth_unix.h: Likewise.
5019 * include/rpc/key_prot.h: Likewise.
5020 * include/rpc/pmap_prot.h: Likewise.
5021 * include/rpc/pmap_rmt.h: Likewise.
5022 * include/rpc/rpc_msg.h: Likewise.
5023 * include/rpc/xdr.h: Likewise.
5024 * inet/gethstbyad_r.c: Likewise.
5025 * inet/gethstbynm2_r.c: Likewise.
5026 * inet/gethstbynm_r.c: Likewise.
5027 * inet/gethstent_r.c: Likewise.
5028 * inet/in6_addr.c: Likewise.
5029 * libio/__fpurge.c: Likewise.
5030 * libio/filedoalloc.c: Likewise.
5031 * libio/fileops.c: Likewise.
5032 * libio/ftello.c: Likewise.
5033 * libio/ftello64.c: Likewise.
5034 * libio/genops.c: Likewise.
5035 * libio/iofclose.c: Likewise.
5036 * libio/iofdopen.c: Likewise.
5037 * libio/iofflush.c: Likewise.
5038 * libio/iofflush_u.c: Likewise.
5039 * libio/iofgetpos.c: Likewise.
5040 * libio/iofgetpos64.c: Likewise.
5041 * libio/iofgets.c: Likewise.
5042 * libio/iofgets_u.c: Likewise.
5043 * libio/iofopen.c: Likewise.
5044 * libio/iofopncook.c: Likewise.
5045 * libio/iofputs.c: Likewise.
5046 * libio/iofread.c: Likewise.
5047 * libio/iofread_u.c: Likewise.
5048 * libio/iofsetpos.c: Likewise.
5049 * libio/iofsetpos64.c: Likewise.
5050 * libio/ioftell.c: Likewise.
5051 * libio/iofwrite.c: Likewise.
5052 * libio/iogetline.c: Likewise.
5053 * libio/iogets.c: Likewise.
5054 * libio/iogetwline.c: Likewise.
5055 * libio/iolibio.h: Likewise.
5056 * libio/iopadn.c: Likewise.
5057 * libio/iopopen.c: Likewise.
5058 * libio/ioseekoff.c: Likewise.
5059 * libio/ioseekpos.c: Likewise.
5060 * libio/iosetbuffer.c: Likewise.
5061 * libio/iosetvbuf.c: Likewise.
5062 * libio/ioungetc.c: Likewise.
5063 * libio/ioungetwc.c: Likewise.
5064 * libio/iovdprintf.c: Likewise.
5065 * libio/iovsprintf.c: Likewise.
5066 * libio/iovsscanf.c: Likewise.
5067 * libio/libioP.h: Likewise.
5068 * libio/memstream.c: Likewise.
5069 * libio/obprintf.c: Likewise.
5070 * libio/oldfileops.c: Likewise.
5071 * libio/oldiofclose.c: Likewise.
5072 * libio/oldiofdopen.c: Likewise.
5073 * libio/oldiofgetpos.c: Likewise.
5074 * libio/oldiofgetpos64.c: Likewise.
5075 * libio/oldiofopen.c: Likewise.
5076 * libio/oldiofsetpos.c: Likewise.
5077 * libio/oldiofsetpos64.c: Likewise.
5078 * libio/oldiopopen.c: Likewise.
5079 * libio/oldstdfiles.c: Likewise.
5080 * libio/putc.c: Likewise.
5081 * libio/setbuf.c: Likewise.
5082 * libio/setlinebuf.c: Likewise.
5083 * libio/stdfiles.c: Likewise.
5084 * libio/stdio.c: Likewise.
5085 * libio/strops.c: Likewise.
5086 * libio/vasprintf.c: Likewise.
5087 * libio/vscanf.c: Likewise.
5088 * libio/vsnprintf.c: Likewise.
5089 * libio/vswprintf.c: Likewise.
5090 * libio/wfiledoalloc.c: Likewise.
5091 * libio/wfileops.c: Likewise.
5092 * libio/wgenops.c: Likewise.
5093 * libio/wstrops.c: Likewise.
5094 * malloc/mtrace.c: Likewise.
5095 * misc/error.c: Likewise.
5096 * misc/syslog.c: Likewise.
5097 * nss/getXXbyYY_r.c: Likewise.
5098 * nss/getXXent_r.c: Likewise.
5099 * nss/hosts-lookup.c: Likewise.
5100 * stdio-common/getw.c
5101 * stdio-common/printf-prs.c: Likewise.
5102 * stdio-common/printf_fp.c: Likewise.
5103 * stdio-common/printf_size.c: Likewise.
5104 * stdio-common/putw.c: Likewise.
5105 * stdio-common/scanf.c: Likewise.
5106 * stdio-common/sprintf.c: Likewise.
5107 * stdio-common/tmpfile64.c: Likewise.
5108 * stdio-common/vfprintf.c: Likewise.
5109 * stdio-common/vfscanf.c: Likewise.
5110 * stdlib/strfmon.c: Likewise.
5111 * sunrpc/auth_des.c: Likewise.
5112 * sunrpc/auth_none.c: Likewise.
5113 * sunrpc/auth_unix.c: Likewise.
5114 * sunrpc/authdes_prot.c: Likewise.
5115 * sunrpc/authuxprot.c: Likewise.
5116 * sunrpc/clnt_perr.c: Likewise.
5117 * sunrpc/clnt_raw.c: Likewise.
5118 * sunrpc/clnt_tcp.c: Likewise.
5119 * sunrpc/clnt_udp.c: Likewise.
5120 * sunrpc/clnt_unix.c: Likewise.
5121 * sunrpc/key_call.c: Likewise.
5122 * sunrpc/key_prot.c: Likewise.
5123 * sunrpc/openchild.c: Likewise.
5124 * sunrpc/pm_getmaps.c: Likewise.
5125 * sunrpc/pm_getport.c: Likewise.
5126 * sunrpc/pmap_clnt.c: Likewise.
5127 * sunrpc/pmap_prot.c: Likewise.
5128 * sunrpc/pmap_prot2.c: Likewise.
5129 * sunrpc/pmap_rmt.c: Likewise.
5130 * sunrpc/rpc_cmsg.c: Likewise.
5131 * sunrpc/rpc_prot.c: Likewise.
5132 * sunrpc/svc_authux.c: Likewise.
5133 * sunrpc/svc_raw.c: Likewise.
5134 * sunrpc/svc_simple.c: Likewise.
5135 * sunrpc/svc_tcp.c: Likewise.
5136 * sunrpc/svc_udp.c: Likewise.
5137 * sunrpc/svc_unix.c: Likewise.
5138 * sunrpc/xdr.c: Likewise.
5139 * sunrpc/xdr_array.c: Likewise.
5140 * sunrpc/xdr_mem.c: Likewise.
5141 * sunrpc/xdr_rec.c: Likewise.
5142 * sunrpc/xdr_ref.c: Likewise.
5143 * sunrpc/xdr_stdio.c: Likewise.
5144 * sysdeps/generic/_strerror.c: Likewise.
5145 * sysdeps/generic/printf_fphex.c: Likewise.
5146 * sysdeps/generic/tmpfile.c: Likewise.
5147 * sysdeps/gnu/errlist.awk: Likewise.
5148 * sysdeps/gnu/errlist.c: Likewise.
5149
5150 * libio/Makefile (routines): Remove iosprint.
5151 * libio/iosprintf.c: Removed
5152
5153
d417e0ff
UD
51542002-02-24 Ulrich Drepper <drepper@redhat.com>
5155
5156 * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
5157 non_dynamic_init and exported now.
5158 * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
5159 * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
5160 !SHARED.
5161 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
5162 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
5163 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
5164
557fab43
UD
51652002-02-23 Ulrich Drepper <drepper@redhat.com>
5166
69f0c4d8
UD
5167 * elf/dl-close.c (free_slotinfo): Check for end of list and return
5168 true in this case.
5169
6370466d
UD
5170 * locale/iso-639.def: Add language codes for Walloon.
5171
9836cfe7
UD
5172 * elf/dl-fini.c (_dl_fini): Print some final statistics on the
5173 total number of relocations performed.
5174
7fec4f2f
UD
5175 * elf/sprof.c (load_profdata): If do_test provide information as
5176 to why loading failed.
5177 * elf/dl-profile.c (_dl_start_profile): Initialize all of
5178 hist_hdr.dimen.
5179
557fab43
UD
5180 * csu/set-init.c: Moved to...
5181 * sysdeps/mach/hurd/set-init.c: ...here. New file.
5182 * csu/Makefile: Don't compile set-init.
5183 * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
5184 * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
5185 to __libc_init.
5186 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
5187 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
5188 * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
5189 __libc_init.
5190 * misc/init-misc.c: Always export __init_misc. Don't define hooks for
5191 __libc_subinit.
5192
e4138261
UD
51932002-02-22 Ulrich Drepper <drepper@redhat.com>
5194
5195 * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
5196 * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
5197 * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
5198 (_dl_deallocate_tls): New function.
5199 * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
5200 _dl_deallocate_tls.
5201
903b3396
UD
52022002-02-21 Jakub Jelinek <jakub@redhat.com>
5203
5204 * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
5205 * stdio-common/tst-fseek.c (main): Add test for this.
5206
15e260e8
UD
52072002-02-19 Ulrich Drepper <drepper@redhat.com.>
5208
5209 * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
5210
13bc28f6
UD
52112002-02-19 Jakub Jelinek <jakub@redhat.com>
5212
5213 * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
5214 pointer before dereferencing.
5215
21297437
RM
52162002-02-18 Roland McGrath <roland@frob.com>
5217
3a2832a0
RM
5218 * sysdeps/mach/hurd/times.c: Fix typo in last change.
5219
5220 * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
5221 Use task_policy in place of task_priority.
5222
5223 * sysdeps/generic/bits/mman.h
5224 (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
5225 * sysdeps/mach/msync.c: New file.
5226
5227 * sysdeps/mach/powerpc/syscall.S: New file.
5228
5229 * mach/msg.c [MACH_MSG_OVERWRITE]
5230 (__mach_msg_trap, __mach_msg_overwrite): New functions.
5231 * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
5232
5233 * sysdeps/mach/configure.in: Check for clock.defs to put into
5234 mach_interface_list.
5235 * sysdeps/mach/configure: Regenerated.
5236
5237 * mach/Makefile (mach-machine): New variable, set from $(base-machine).
5238 ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
5239 ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
5240 Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
5241 (mach-shortcuts): Add device_read_overwrite_request,
5242 device_read_overwrite, vm_read_overwrite, thread_switch.
5243
5244 * configure.in (base_machine): Set to $machine by default.
5245 * configure: Regenerated.
5246
21297437
RM
5247 * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
5248 or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
5249 * sysdeps/mach/configure: Regenerated.
5250 * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
5251
5252 * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
5253
5254 * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
5255
5256 * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
5257 Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
5258
9b094464
RM
52592002-02-17 Roland McGrath <roland@frob.com>
5260
21297437
RM
5261 * sysdeps/mach/hurd/times.c
5262 [NO_CREATION_TIME] (startup_time): New static variable.
5263 [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
5264 (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
5265 creation_time from task_basic_info.
5266 (__times): Use __gettimeofday instead of __host_get_time.
5267
5268 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
5269 Use untyped Mach IPC message format.
5270
5271 * hurd/catch-exc.c: Include <assert.h>, missing from last change.
5272
9ce8b3c8
RM
5273 * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
5274 _S_catch_exception_raise_state_identity,
5275 _hurdsig_fault_catch_exception_raise_state,
5276 _hurdsig_fault_catch_exception_raise_state_identity.
5277
5278 * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
5279
5280 * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
5281 __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
5282
5283 * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
5284 `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
5285
5286 * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
5287 (fmh, unfmh): Define these functions only #if FMH. Otherwise define
5288 them as no-op macros.
5289 [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
5290 (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
5291
5292 * sysdeps/powerpc/dl-machine.h
5293 (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
5294
f22a77e1
RM
5295 * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
5296 Use untyped Mach IPC message format.
5297
89c255f1 5298 * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
f22a77e1
RM
5299 Handle untyped Mach IPC message formats.
5300
5301 * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
5302 Expect different argument conventions when this is defined.
5303 [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
5304 [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
5305 * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
5306 [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
5307 for OSF Mach variant.
5308 (faulted): Use mig_reply_error_t for REPLY.
5309 (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
5310 in __thread_set_exception_ports call.
5311 (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
5312 __mach_port_set_attributes in place of __mach_port_set_qlimit.
5313
5314 * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
5315 before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
5316 on Darwin, which includes bogons.
5317
9b094464
RM
5318 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
5319 variable LOADBASE so it's not declared when it's not used.
5320
61c83c3f
RM
53212002-02-16 Roland McGrath <roland@frob.com>
5322
746f4007
RM
5323 * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
5324 to use BI.creation_time.
5325
5326 * mach/Machrules (MIG): Add -x c to CPP value passed down.
5327
30537cab
RM
5328 * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
5329 * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
5330 * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
5331 host_page_size instead of vm_statistics.
5332
690a2f7d
RM
5333 * sysdeps/mach/Makefile (mach-before-compile): Don't include
5334 mach_interface.h here, since not all variants use that name.
5335
61c83c3f
RM
5336 * sysdeps/mach/configure.in: Add some checks for Mach headers
5337 to ensure a sane installation.
5338 (mach_interface_list): Define this variable by checking for .defs
5339 files found in various variants.
5340 * configure.in (mach_interface_list): AC_SUBST this.
5341 * config.make.in (mach-interface-list): New substituted variable.
5342 * mach/Makefile (user-interfaces): Define this using the value
5343 of $(mach-interface-list) instead of mach, mach4.
5344 Updated other references to mach_interface to use it as well.
5345
5346 * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
5347
5348 * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
5349 mig_reply_error_t for OSF Mach variant.
5350
5351 * mach/Makefile (routines): Remove bootprivport.
5352 * mach/bootprivport.c: File removed. It has never been used.
5353
5354 * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
5355 Grok the OSF flavor of message format.
5356 (mach_msg_destroy_port): For MAKE_SEND and
5357 MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
5358 no-senders notification.
5359
53602002-02-06 Roland McGrath <roland@frob.com>
5361
5362 * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
5363 to here if 2.0 compatibility enabled ...
5364 (libc: GLIBC_2.1.3): ... from here.
5365
b209e34a
UD
53662002-02-15 Ulrich Drepper <drepper@redhat.com>
5367
5368 * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
5369 generation counter.
5370 * elf/dl-close.c (_dl_close): Likewise.
5371
425838aa
UD
53722002-02-14 Ulrich Drepper <drepper@redhat.com>
5373
ebda6173
UD
5374 * elf/Makefile: Add rules to build and run tst-tls8.
5375 * elf/tst-tls8.c: New file.
5376 * elf/tst-tlsmod4.c: New file.
5377
425838aa
UD
5378 * stdlib/test-a64l.c (tests): Add more test cases.
5379
5380 * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
5381 Reported by Walter Harms <WHarms@bfs.de>.
5382
53832002-02-11 Jes Sorensen <jes@trained-monkey.org>
5384
5385 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
5386 definitions for struct sigcontext.
5387 Suggested by David Mosberger-Tang.
5388
100e184f
UD
53892002-02-13 Ulrich Drepper <drepper@redhat.com>
5390
fc093be1
UD
5391 * elf/dl-close.c (remove_slotinfo): New function. Handles everything
5392 for removing reference of module in slotinfo list.
5393 (_dl_close): Use remove_slotinfo.
5394 * sysdeps/generic/dl-tls.c: General pretty printing.
5395 (oom): Define only if SHARED.
5396 (_dl_next_tls_modid): Correct starting point for the case we assume
5397 there is a gap. Add missing instruction grouping (doh!). Correct
5398 tests for reaching maximum index.
5399 * elf/Makefile: Add rules to build and run tst-tls7.
5400 * elf/tst-tls7.c: New file.
5401 * elf/tst-tlsmod3.c: New file.
5402
5403 * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
5404 USE_TLS.
5405 * elf/tst-tlsmod2.c: Likewise.
5406
bb4cb252
UD
5407 * elf/dl-close.c (_dl_close): When closing an object using TLS
5408 either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
5409 true. Increment dl_tls_generation only if we closed any TLS-using
5410 object.
5411 * elf/tst-tls6.c: New file.
5412 * elf/Makefile: Add rules to build and run tst-tls6.
5413
736ab899
UD
5414 * po/da.po: Update from translation team.
5415
5416 * locale/categories.def: Fix typo [PR libc/2948].
5417 * po/Makefile (BROKEN_LINGUAS): Works with current gettext
5418 [PR libc/2949].
5419 * locale/iso-4217.def: Update from official version [PR libc/2950].
5420 * glibcbug.in: Honor TMPDIR [PR libc/2951].
5421 * locale/programs/ld-collate.c (collate_finish): Bail out with a
5422 message if input is too confusion instead of using assert.
5423 (collate_read): Don't crash on unknown symbol [PR libc/2952].
5424 Patches by Alastair McKinstry <alastair@pdd.3com.com>.
5425
100e184f
UD
5426 * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
5427 * elf/tst-tls2.c: Likewise.
5428 * elf/tst-tls3.c: Likewise.
5429
54302002-02-13 Jakub Jelinek <jakub@redhat.com>
5431
5432 * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
5433
a04586d8
UD
54342002-02-13 Ulrich Drepper <drepper@redhat.com>
5435
d552a431
UD
5436 * elf/dl-open.c (dl_open_worker): Only bump the generation counter
5437 if this is really necessary.
5438
a04586d8
UD
5439 * elf/dl-close.c (_dl_close): Implement freeing entries in the
5440 slotinfo array.
5441 (free_mem): Free memory for the slotinfo array if possible.
5442
069b7c3e
UD
54432002-02-12 Andreas Schwab <schwab@suse.de>
5444
5445 * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
5446
aed283dd
UD
54472002-02-12 Ulrich Drepper <drepper@redhat.com>
5448
5449 * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
5450 TLS_DTV_UNALLOCATE.
5451 (oom): New function.
5452 (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
5453 (_dl_determine_tlsoffset): Likewise.
5454 (_dl_allocate_tls): Likewise.
5455 (__TLS_GET_ADDR): Define if not already defined.
5456 (_dl_tls_symaddr): New function.
5457 (allocate_and_init): New function.
5458 (__tls_get_addr): Actually implement handling of generation counter
5459 and deferred allocation.
5460 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
5461 add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
5462 _dl_tls_generation.
5463 Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
5464 Declare _dl_tls_symaddr.
5465 * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
5466 SHARED.
5467 * include/link.h (struct link_map): Remove l_tls_nextimage and
5468 l_tls_previmage.
5469 * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
5470 instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
5471 (_dl_vsym): Likewise.
5472 * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
5473 layout.
5474 (dl_main): Allow PT_TLS be present for empty segment. Remove
5475 nextimage list handling. Instead add all modules using TLS to
5476 dl_tls_dtv_slotinfo_list.
5477 * elf/dl-open.c (dl_open_worker): After successfully loading all
5478 objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
5479 * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
5480 empty segment don't do anything. Remove handling of initimage list.
5481 * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
5482 (GLIBC_PRIVATE): Add _dl_tls_symaddr.
5483 * elf/dl-minimal.c: Define __libc_memalign.
5484 * elf/dl-support.c: Remove _dl_initimage_list. Add
5485 _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
5486 _dl_tls_generation.
5487 * include/stdlib.h: Declare __libc_memalign.
5488
5489 * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
5490 * elf/tst-tls4.c: New file.
5491 * elf/tst-tls5.c: New file.
5492 * elf/tst-tlsmod2.c: New file.
5493
5494 * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
5495
5496 * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
5497
5498 * elf/tst-tls1.c: Use test-skeleton.c.
5499 * elf/tst-tls2.c: Likewise.
5500 * elf/tst-tls3.c: Likewise.
5501
5502 * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
5503
e12ddba5
AJ
55042002-02-08 Daniel Jacobowitz <drow@mvista.com>
5505
aed283dd 5506 * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
e12ddba5 5507
32083fb8
UD
55082002-02-10 Ulrich Drepper <drepper@redhat.com>
5509
73a03a76
UD
5510 * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
5511
2e36cb48
UD
5512 * elf/tst-tls3.c: New file.
5513 * elf/tst-tlsmod1.c: New file.
5514 * elf/Makefile: Add rules to build and run tst-tls3.
5515
5516 * sysdeps/i386/dl-machine.h: Include <tls.h>.
5517 (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
5518 TLS relocations.
5519
7670e25a
UD
5520 * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
5521
7331ca4d
UD
5522 * po/fr.po: Update from translation team.
5523
5524 * elf/tls-macros.h: Add alternative macros for use in PIC.
5525
f1cc669a
UD
5526 * elf/dl-lookup.c: Include <tls.h>.
5527 * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
5528
a330abe2
UD
5529 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
5530 required by passing pointer to last element of the list.
5531
5532 * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
5533 l_tls_initimage to a place where it actually is performed.
5534
03af5793
UD
5535 * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
5536 after globfree() calls.
5537
87837aac
UD
5538 * elf/dl-deps.c (struct openaux_args): Add open_mode element.
5539 (openaux): Pass open_mode as new last argument to _dl_map_object.
5540 (_dl_map_object_deps): Add new argument open_mode. Initialize
5541 open_mode element of args variable with it.
5542 * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
5543 _dl_map_object_deps.
5544 * elf/rtld.c (dl_main): Add zero as last parameter to
5545 _dl_map_object_deps call.
5546 * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
5547 * elf/nodlopen2.c: New file.
5548 * elf/nodlopenmod2.c: New file.
5549 * elf/Makefile: Add rules to build and run nodlopen2.
5550
2cef4257 5551 * elf/tst-tls1.c: Move TLS helper macros to...
a330abe2 5552 * elf/tls-macros.h: ...here. New file.
2cef4257
UD
5553 * elf/tst-tls2.c: New file.
5554 * elf/Makefile (tests): Add tst-tls2.
5555 (distribute): Add tls-macros.h.
5556
a5176eab
UD
5557 * po/sv.po: Update from translation team.
5558
27cd3298
UD
5559 * elf/tst-tls1.c (main): Add complete set of tests. Split
5560 architecture specific definitions from the actual test code.
5561
32083fb8
UD
5562 * po/tr.po: Update from translation team.
5563
3065b0c7
UD
55642002-02-09 Ulrich Drepper <drepper@redhat.com>
5565
b123d06e
UD
5566 * elf/Makefile (tests): Add tst-tls1.
5567 * elf/tst-tls1.c: New file.
5568
5569 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
5570 alignment of TCB for now.
5571
5572 * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
5573 initialization image for the application itself.
5574
3065b0c7 5575 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
b123d06e 5576 loop to initialize TLS block.
3065b0c7 5577
87837aac 55782002-02-08 Richard Henderson <rth@redhat.com>
67eb7235
UD
5579
5580 * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
5581 _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
5582
2a535bf6
UD
5583 * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
5584
67eb7235
UD
55852002-02-09 Jakub Jelinek <jakub@redhat.com>
5586
5587 * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
5588
a52d1562
UD
55892002-02-08 Ulrich Drepper <drepper@redhat.com>
5590
67eb7235
UD
5591 * po/ca.po: Update from translation team.
5592 * po/sk.po: Likewise.
5593
a52d1562
UD
5594 * elf/rtld.c (_dl_start_final): Install DTV explicitly.
5595 (dl_main): Move dtv/static TLS handling before relocation.
5596 Unconditionally call _dl_tlsoffset. Call _dl_allocate_tls and
5597 TLS_INIT_TP to allocate and install the dtv/static TLS block.
5598 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
5599 so far uses TLS initialize GL(dl_tls_static_size) and
5600 GL(dl_tls_static_align) to account for the TCB.
5601 (_dl_allocate_tls): New function.
5602 * sysdeps/generic/ldsodefs.h (rtld_global): Add
5603 _dl_initial_dtv_malloced.
5604
5605 * configure.in: Test for __builtin_memset more realistically.
5606
3065b0c7 5607 * csu/version.c (banner): If TLS support is available say so.
a52d1562 5608
0f0d61ad
AJ
56092002-02-04 H.J. Lu <hjl@gnu.org>
5610
5611 * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
5612 __attribute_used__.
5613 (__dl_runtime_resolve): Likewise.
5614
5615 * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
5616 declaration.
5617
bc632c07
AJ
56182001-11-15 H.J. Lu <hjl@gnu.org>
5619
5620 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
5621 <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
5622
5623 * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
5624
c899461b
AJ
56252002-02-07 H.J. Lu <hjl@gnu.org>
5626
5627 * sysdeps/mips/atomicity.h (compare_and_swap): Remove
5628 ".set noreorder".
5629 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
5630 Likewise.
5631
06d3b079
UD
56322002-02-07 Ulrich Drepper <drepper@redhat.com>
5633
96beb563
UD
5634 * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
5635
eee868c3
UD
5636 * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
5637 ___tls_get_addr_internal.
5638 (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
5639
06d3b079
UD
5640 * po/ko.po: Update from translation team.
5641
935fbdbd
UD
56422002-02-07 Jakub Jelinek <jakub@redhat.com>
5643
5644 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
5645 attribute, change __pad{1,2} type to unsigned int.
5646 (struct stat64): Remove packed attribute.
5647
04b6da27
UD
56482002-02-07 Ulrich Drepper <drepper@redhat.com>
5649
5650 * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
5651
d555194c
UD
56522002-02-07 Andreas Schwab <schwab@suse.de>
5653
5654 * configure.in: Fix check for -zcombreloc.
5655
56562002-02-06 H.J. Lu <hjl@gnu.org>
5657
5658 * config.h.in (HAVE_BUILTIN_MEMSET): New.
5659 * configure.in: Check if __builtin_memset really works.
5660 * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
5661 __GNUC_PREREQ (2, 96) before using __builtin_memset.
5662
56632002-02-06 Jakub Jelinek <jakub@redhat.com>
5664
5665 * io/bug-ftw3.c (main): Don't try the test if root.
5666
56672002-02-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
5668
5669 * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
5670 constraints.
5671 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
5672 Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
5673 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
5674 Likewise.
5675 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
5676 a weak alias for __clone.
5677 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
5678 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
5679 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
5680 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
5681 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
5682 a weak alias for __mmap64.
5683
22c7c5e7
AJ
56842002-02-05 H.J. Lu <hjl@gnu.org>
5685
d555194c 5686 * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
22c7c5e7
AJ
5687 (atomic_add): Likewise.
5688 (compare_and_swap): Likewise.
d555194c 5689 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
22c7c5e7 5690
cd30b01e
UD
56912002-02-07 Ulrich Drepper <drepper@redhat.com>
5692
d555194c
UD
5693 * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
5694
cd30b01e
UD
5695 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
5696 alignment of the TCB and store total size and alignment of static
5697 TLS block in _dl_tls_static_size and _dl_tls_static_align.
5698 tls_index is a typedef.
5699 * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
5700 _dl_tls_static_align.
5701 * sysdeps/i386/dl-tls.h: tls_index is a typedef.
5702 * elf/dl-support.c: Define _dl_tls_static_size and
5703 _dl_tls_static_align.
5704
8d4b5a8a
UD
57052002-02-06 Ulrich Drepper <drepper@redhat.com>
5706
5707 * configure.in: Add --without-tls option.
5708 * sysdeps/i386/elf/configure.in: Don't check for TLS support if
5709 --without-tls is given.
5710
5711 * sysdeps/generic/dl-tls.c: Include <tls.h>.
5712
5713 * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
5714
9813e103
RM
57152002-02-06 Roland McGrath <roland@frob.com>
5716
a9177ff5
RM
5717 * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
5718 * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
5719
48a5e010
RM
5720 * scripts/versions.awk: Improve error message for missing version.
5721 Each version inherits from the last one only if they have the same
5722 nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
5723 but not GLIBC_x and FOO_y.
5724
5725 * scripts/firstversions.awk: Handle libraries that don't have each
5726 particular version named in the third column of shlib-versions.
5727
9813e103
RM
5728 * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
5729
3fb55878
UD
57302002-02-06 Ulrich Drepper <drepper@redhat.com>
5731
5732 * Versions.def [ld]: Add GLIBC_2.3.
5733 * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
5734 * elf/Makefile (dl-routines): Add dl-tls.
5735 (distribute): Add dl-tls.h.
5736 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
5737 _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
5738 Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
5739 * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
5740 along with the other info in the link map. Change queueing of init
5741 images for double linked list. Use _dl_next_tls_modid to compute
5742 l_tls_modid.
5743 * elf/rtld.c (_dl_start_final): Store alignment requirement
5744 along with the other info in rtld map and executable map.
5745 (dl_main): Add ld.so to the init image list if necessary. Compute
5746 final module ID with _dl_next_tls_modid.
5747 * include/link.h (struct link_map): Add l_tls_previmage and
5748 l_tls_align.
5749 * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
5750 * sysdeps/i386/elf/Versions: New file.
5751 * sysdeps/generic/dl-tls.c: New file.
5752 * sysdeps/generic/dl-tls.h: New file.
5753 * sysdeps/i386/dl-tls.h: New file.
5754
333f8fbe
RM
57552002-02-06 Roland McGrath <roland@frob.com>
5756
5757 * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
5758 * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
5759
fb190a04
RM
57602002-01-05 Roland McGrath <roland@frob.com>
5761
5762 * sysdeps/mach/configure.in: New file.
5763 * sysdeps/mach/configure: New generated file.
5764
5765 * mach/Makefile (user-interfaces): Remove default_pager_helper.
5766 It has never been used by anything.
5767
2c1a22e1
AJ
57682002-02-06 H.J. Lu <hjl@gnu.org>
5769
5770 * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
5771 is included.
5772
0796ef15
UD
57732002-02-06 Ulrich Drepper <drepper@redhat.com>
5774
5775 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
3fb55878 5776 attribute((packed)) to counter stupid people misusing gcc options.
0796ef15
UD
5777 (struct stat64): Likewise.
5778
57792002-02-05 Ulrich Drepper <drepper@redhat.com>
5780
5781 * elf/rtld.c (dl_main): Correct indentation. Use bool as type for
5782 the variables which are used as booleans.
5783
cff26a3e
AJ
57842002-02-06 Andreas Jaeger <aj@suse.de>
5785
5786 * include/libc-symbols.h (INTUSE): Renamed from INT.
5787 * elf/dl-deps.c: Change users.
5788 * sysdeps/generic/dl-sysdep.c: Likewise.
5789 * sysdeps/generic/dl-cache.c: Likewise.
5790 * elf/dl-reloc.c: Likewise.
5791 * elf/rtld.c: Likewise.
5792 * elf/dl-version.c: Likewise.
5793 * elf/dl-load.c: Likewise.
5794 * elf/dl-dst.h: Likewise.
5795 * elf/dl-init.c: Likewise.
64b6bd34
AJ
5796 * elf/dl-error.c: Likewise.
5797 * elf/dl-fini.c: Likewise.
5798 * elf/dl-runtime.c: Likewise.
5799 * elf/do-lookup.h: Likewise.
4d559293
AJ
5800
5801 * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
5802 definition.
5803 * stdio-common/_itowa.h: Likewise.
5804
f2b98f97
UD
58052002-02-05 Ulrich Drepper <drepper@redhat.com>
5806
37beecf7
UD
5807 * elf/dl-minimal.c: Define _itoa_lower_digits.
5808
5809 * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
5810 DT_FLAGS set.
5811
ec70c011
UD
5812 * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
5813 loading modules with the DF_STATIC_TLS flag set.
5814 * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
5815 element.
5816 * include/link.h (struct link_map): Add l_flags field.
5817 * elf/elf.h (DF_STATIC_TLS): New definition.
5818
472d82fc
UD
5819 * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
5820 * dlfcn/bug-dlopen1.c: New file. By Bruno Haible.
5821
37d8b778
UD
5822 * elf/rtld.c (process_dl_debug): Correct printing help message.
5823 * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
5824 for %s.
5825
f2b98f97
UD
5826 * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
5827 definition and pass &errno in use of this variable.
5828 Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
5829
58302002-02-04 Andreas Schwab <schwab@suse.de>
5831
5832 * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
5833 * locale/programs/charmap-dir.c: Wrap calls that output messages
5834 with WITH_CUR_LOCALE. Include "localedef.h" first.
5835 * locale/programs/charmap.c: Likewise.
5836 * locale/programs/ld-address.c: Likewise.
5837 * locale/programs/ld-collate.c: Likewise.
5838 * locale/programs/ld-ctype.c: Likewise.
5839 * locale/programs/ld-identification.c: Likewise.
5840 * locale/programs/ld-measurement.c: Likewise.
5841 * locale/programs/ld-messages.c: Likewise.
5842 * locale/programs/ld-monetary.c: Likewise.
5843 * locale/programs/ld-name.c: Likewise.
5844 * locale/programs/ld-numeric.c: Likewise.
5845 * locale/programs/ld-paper.c: Likewise.
5846 * locale/programs/ld-telephone.c: Likewise.
5847 * locale/programs/ld-time.c: Likewise.
5848 * locale/programs/linereader.c: Likewise.
5849 * locale/programs/linereader.h: Likewise.
5850 * locale/programs/localedef.c: Likewise.
5851 * locale/programs/locfile.c: Likewise.
5852 * locale/programs/repertoire.c: Likewise.
5853
a2f1f5cb
UD
58542002-02-05 Ulrich Drepper <drepper@redhat.com>
5855
47536120
UD
5856 * elf/rtld.c (_dl_start_final): Determine load address to locate
5857 ehdr with GL(dl_rtld_map).l_map_start.
5858
31e592f7
UD
5859 * po/ca.po: Update from translation team.
5860
a2f1f5cb 5861 * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
96f208a4
UD
5862 * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
5863 header entry.
a2f1f5cb
UD
5864 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
5865 _dl_tls_module_cnt.
96f208a4 5866 * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
a2f1f5cb 5867
67ddea92
UD
58682002-02-04 Ulrich Drepper <drepper@redhat.com>
5869
5d6feea8
UD
5870 * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
5871 * include/link.h (struct link_map): Add various members for TLS
5872 information.
5873 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
5874 _rtld_tlsoffset, add _dl_initimage_list.
5875 * sysdeps/i386/dl-lookupcfg.h: New file.
5876 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
5877 TLS relocation. When using TLS we now use RESOLVE_MAP.
5878 (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
5879 is used.
5880
5881 * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
5882 unused.
5883
535b764d
UD
5884 * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
5885 thread-pointer as soon as possible.
5886 * sysdeps/generic/ldsodefs.h: Include <tls.h>. Define first TLS
5887 elements in rtld_global.
5888 * sysdeps/generic/tls.h: New file.
5889 * elf/Makefile (distribute): Add tls.h.
5890 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
5891 relocations. Not complete yet.
5892
5893 * resolv/resolv.h: Allow user to define __need_res_state and only
5894 define __res_start structure then.
5895 * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
5896
67ddea92
UD
5897 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
5898 dl_cpuclock_offset initialization to _dl_start_final.
5899 (_dl_show_auxv): Avoid unnecessary sign extension.
5900 * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
5901
e23f8d20
UD
59022002-02-03 Ulrich Drepper <drepper@redhat.com>
5903
5904 * config.h.in: Add HAVE_TLS_SUPPORT.
5905 * sysdeps/i386/elf/configure.in: New file.
5906
9710f75d
UD
59072002-02-03 Andreas Schwab <schwab@suse.de>
5908
5909 * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
5910 * sysdeps/posix/writev.c: Use ssize_t for bytes_written. Fix comment.
5911
59122002-02-03 Thorsten Kukuk <kukuk@suse.de>
5913
5914 * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
5915 alloca if the memory reqirements are too high.
5916
59172002-02-03 Ulrich Drepper <drepper@redhat.com>
5918
5919 * elf/dl-load.c (decompose_rpath): Avoid using strstr.
5920 * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
5921 the former is available anyway and speed isn't important here.
5922 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
5923 * elf/dl-version.c (match_symbol): Likewise.
5924 (_dl_check_map_versions): Likewise.
5925 * elf/rtld.c (process_envvars): Likewise.
5926 (print_statistics): Likewise.
5927 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
5928 * elf/dl-minimal.c (_itoa): Always define it. Make it work for all
5929 bases. Add assert to catch uses of unimplemented features.
5930 (__strsep): Add assert to catch uses of unimplemented features.
5931 * elf/dl-object.c (_dl_new_object): Don't use rawmemchr. Use strchr
5932 and avoid inline optimization.
5933 * elf/rtld.c (process_envvars): Likewise.
5934 * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
5935 * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
5936 * elf/rtld.c (dl_main): Avoid strsep inline optimization.
5937
654a7a0c
UD
59382002-02-02 Ulrich Drepper <drepper@redhat.com>
5939
9710f75d
UD
5940 * stdio-common/_itoa.h: Minor simplifications of the code.
5941 * stdio-common/_itoa.c: Likewise.
5942
5943 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
5944 instead of _dl_printf for debugging info output.
5945
654a7a0c
UD
5946 * manual/examples/mkfsock.c (make_named_socket): Make sure name is
5947 always NUL-terminated. Patch by Chris D. Sloan <cds@cs.hmc.edu>.
5948
5c1159b6
UD
59492002-02-01 H.J. Lu <hjl@gnu.org>
5950
9710f75d 5951 * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
5c1159b6
UD
5952 (atomic_add): Likewise.
5953 (compare_and_swap): Return 0 only when failed to compare. Use
5954 branch likely.
5955
5956 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
5957 branch likely.
5958
59592002-02-03 kaz Kojima <kkojima@rr.iij4u.or.jp>
5960
5961 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
5962
59632002-02-02 Ulrich Drepper <drepper@redhat.com>
5964
5965 * elf/dl-minimal.c (__strsep): New minimal implementation.
5966
b5ef404e
UD
59672002-02-02 Paul Eggert <eggert@twinsun.com>
5968
5969 * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
5970 (__mktime_internal): If no tm_isdst is requested, prefer solutions
5971 with tm_isdst > 0 when the requested time falls within a
5972 spring-forward gap [PR libc/2894].
5973
352b06fd
UD
59742002-02-03 Andreas Schwab <schwab@suse.de>
5975
5976 * stdio-common/tst-rndseek.c: Increase timeout.
5977
379d4ec4
UD
59782002-02-02 Ulrich Drepper <drepper@redhat.com>
5979
7969407a
UD
5980 Change ld.so to not use functions which are exported. One cannot
5981 interpose them anyway. Use INT() to mark uses, INTDEF() to mark
5982 definitions.
5983 * include/libc-symbols.h: Define INT and INTDEF.
5984 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
5985 _dl_signal_error_internal, _dl_map_object_internal,
5986 _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
5987 _dl_lookup_versioned_symbol_internal,
5988 _dl_relocate_object_internal, _dl_debug_state_internal,
5989 _dl_start_profile_internal, and _dl_unload_cache_internal.
5990 * include/dlfcn.h: Declare _dl_catch_error_internal.
5991 * elf/rtld.c: Use INT for calls to any of the *_internal functions
5992 above. Add INTDEF to function definitions.
5993 * elf/dl-debug.c: Likewise.
5994 * elf/dl-deps.c: Likewise.
5995 * elf/dl-dst.h: Likewise.
5996 * elf/dl-error.c: Likewise.
5997 * elf/dl-fini.c: Likewise.
5998 * elf/dl-init.c: Likewise.
5999 * elf/dl-load.c: Likewise.
6000 * elf/dl-lookup.c: Likewise.
6001 * elf/dl-misc.c: Likewise.
6002 * elf/dl-open.c: Likewise.
6003 * elf/dl-profile.c: Likewise.
6004 * elf/dl-reloc.c: Likewise.
6005 * elf/dl-runtime.c: Likewise.
6006 * elf/dl-version.c: Likewise.
6007 * elf/do-lookup.h: Likewise.
6008 * sysdeps/generic/dl-cache.c: Likewise.
6009 * sysdeps/generic/dl-sysdep.c: Likewise.
6010 * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
6011 instead of _dl_init.
6012 * sysdeps/arm/dl-machine.h: Likewise.
6013 * sysdeps/cris/dl-machine.h: Likewise.
6014 * sysdeps/hppa/dl-machine.h: Likewise.
6015 * sysdeps/i386/dl-machine.h: Likewise.
6016 * sysdeps/ia64/dl-machine.h: Likewise.
6017 * sysdeps/m68k/dl-machine.h: Likewise.
6018 * sysdeps/mips/dl-machine.h: Likewise.
6019 * sysdeps/mips/mips64/dl-machine.h: Likewise.
6020 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6021 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6022 * sysdeps/sh/dl-machine.h: Likewise.
6023 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
6024 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
6025 * sysdeps/x86_64/dl-machine.h: Likewise.
6026 * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
6027
6028 * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
6029 and _dl_debug_initialize.
6030
88794e30
UD
6031 * elf/dl-object.c (_dl_new_object): Avoid using strrchr. We have
6032 more information.
6033 * elf/rtld.c (dl_main): Avoid strrchr.
6034 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
6035 result of readlink. Search from the back for '/'.
6036
1e823b7d
UD
6037 * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
6038 strncpy if possible.
6039
379d4ec4
UD
6040 * sysdeps/generic/dl-environ.c (unsetenv): Optimize. Don't use
6041 strncmp.
6042 * elf/dl-load.c (is_dst): Optimize. Don't call strncmp twice.
6043 * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
6044 strspn, and strcspn.
6045 (process_envvars): Don't use strcspn.
6046
6047 * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
6048 (_dl_dst_substitute): Likewise.
6049
56c57442
UD
60502002-02-01 Ulrich Drepper <drepper@redhat.com>
6051
e0f41886
UD
6052 * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
6053 code which is never used when relocating ld.so itself.
6054
56c57442
UD
6055 * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
6056 starting ld.so itself. Move l_addr variable initialization closer
6057 to use.
e0f41886 6058 (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
56c57442 6059
fb23eb25
UD
60602002-02-01 Jakub Jelinek <jakub@redhat.com>
6061
6062 * Versions.def (libc): Add GLIBC_PRIVATE.
6063 (libdb, libnss_db, libdb1): Remove.
6064 (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
6065 libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
6066 (libpthread): Add GLIBC_PRIVATE.
6067 (libresolv): Likewise, remove GLIBC_2.1.
6068 (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
6069 GLIBC_2.2.3, GLIBC_2.3.
6070 * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
6071 * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
6072 _dl_sym, _dl_vsym): Likewise.
6073 (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
6074 _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
6075 _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
6076 _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
6077 _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
6078 _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
6079 _dl_relocate_object, _dl_signal_error, _dl_start_profile,
6080 _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
6081 Likewise.
6082 (_dl_object_relocation_scope): Remove.
6083 * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
6084 * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
6085 __gconv_cache): Move to GLIBC_PRIVATE.
6086 * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
6087 __internal_setnetgrent): Likewise.
6088 * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
6089 __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
6090 * locale/Versions (__collate_element_hash, __collate_element_strings,
6091 __collate_symbol_classes, __collate_symbol_hash,
6092 __collate_symbol_strings, _nl_current_LC_COLLATE,
6093 _nl_current_LC_CTYPE): Likewise.
6094 * misc/Versions (__libc_fsync, __libc_msync): Likewise.
6095 * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
6096 (libnss_nis, libnss_nisplus): Likewise.
6097 * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
6098 _nss_files_parse_spent): Move to GLIBC_PRIVATE.
6099 (libnss_files): Move all symbols to GLIBC_PRIVATE.
6100 * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
6101 __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
6102 __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
6103 * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
6104 __ns_get16, __ns_samename): Likewise.
6105 (libnss_dns): Move all symbols to GLIBC_PRIVATE.
6106 * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
6107 GLIBC_PRIVATE.
6108 * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
6109 __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
6110 __libc_connect): Likewise.
6111 * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
6112 Likewise.
6113 * stdlib/Versions (__libc_system): Likewise.
6114 * sunrpc/Versions (__rpc_thread_destroy): Likewise.
6115 * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
6116 * sysdeps/ia64/fpu/Versions: Likewise.
6117 * sysdeps/ia64/Versions: Likewise.
6118 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
6119 * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
6120 to GLIBC_PRIVATE.
6121 * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
6122 * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
6123 __libc_sigaction): Likewise.
6124 * termios/Versions (__libc_tcdrain): Likewise.
6125
6126 * misc/sys/cdefs (__attribute_noinline__): Define.
6127 * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
6128 __attribute_noinline__.
6129
6130 * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
6131 * elf/dl-xstat64.c: New file.
6132 * elf/dl-fxstat64.c: New file.
6133 * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
6134 don't export __fxstat64 at multiple versions.
6135 * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
6136 * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
6137
9c1084a3
UD
61382002-01-18 Isamu Hasegawa <isamu@yamato.ibm.com>
6139
6140 * locale/program/ld-collate.c (collate_finish): Assign a wide
6141 char collation sequence value to multi character collating
6142 elements, and avoid over writing by non-character elements.
6143
635f35fc
UD
61442002-02-01 Ulrich Drepper <drepper@redhat.com>
6145
6146 * elf/Makefile (distribute): Add dl-procinfo.c.
6147 * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
6148 * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
6149
27ef89fb
UD
61502002-02-01 Jakub Jelinek <jakub@redhat.com>
6151
6152 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
6153 definition.
6154 * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
6155 _rtld_global struct.
6156 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
6157 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
6158 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
6159 * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
6160 * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
6161 _dl_fpu_control_set): Remove unused externs.
6162 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
6163 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
6164 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
6165 related variables in _rtld_global struct.
6166 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
6167 * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
6168 unused extern.
6169
a3a4f249
UD
61702002-02-01 Ulrich Drepper <drepper@redhat.com>
6171
6172 * sysdeps/generic/dl-procinfo.c: New file.
6173
78ce3057
AS
61742002-02-01 Andreas Schwab <schwab@suse.de>
6175
6176 * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
6177
50746436
UD
61782002-02-01 Ulrich Drepper <drepper@redhat.com>
6179
6180 * elf/rtld.c (_dl_start): Mark as internal_function.
6181 * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
6182 in register.
6183 (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
6184 General pretty printing.
6185
5688da55
UD
61862002-01-31 Ulrich Drepper <drepper@redhat.com>
6187
ccdf0cab
UD
6188 * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
6189 * elf/dl-reloc.c: Pretty printing.
6190 * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
6191 procinfo-related variables in rtld_global struct.
6192 * elf/dl-support.c: Likewise.
6193 * elf/rtld.c: Likewise.
6194 * sysdeps/i386/i686/Makefile: Likewise.
6195 * sysdeps/i386/i686/hp-timing.c: Likewise.
6196 * sysdeps/i386/i686/hp-timing.h: Likewise.
6197 * sysdeps/ia64/Makefile: Likewise.
6198 * sysdeps/ia64/hp-timing.c: Likewise.
6199 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
6200 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
6201 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
6202 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
6203 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
6204 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
6205 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
6206 * sysdeps/x86_64/Makefile: Likewise.
6207
5688da55
UD
6208 * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
6209 _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
6210 _dl_debug_fd to rtld_global.
6211 * elf/Versions: Likewise.
6212 * elf/dl-close.c: Likewise.
6213 * elf/dl-iteratephdr.c: Likewise.
6214 * elf/dl-lookup.c: Likewise.
6215 * elf/dl-misc.c: Likewise.
6216 * elf/dl-open.c: Likewise.
6217 * elf/dl-support.c: Likewise.
6218 * elf/do-lookup.h: Likewise.
6219 * elf/rtld.c: Likewise.
6220 * sysdeps/generic/dl-cache.c: Likewise.
6221 * sysdeps/generic/dl-sysdep.c: Likewise.
6222 * sysdeps/ia64/Versions: Likewise.
6223 * sysdeps/unix/clock_gettime.c: Likewise.
6224 * sysdeps/unix/clock_settime.c: Likewise.
6225 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
6226 * sysdeps/sparc/Versions: Removed.
6227 * sysdeps/i386/i686/Versions : Removed.
6228 * sysdeps/x86_64/Versions: Removed.
6229 * configure.in: Define HAVE_PROTECTED if .protected is available.
6230 * config.h.in: Add entry for HAVE_PROTECTED.
6231
62322002-01-31 Jakub Jelinek <jakub@redhat.com.
6233
6234 * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
6235 code in struct _rtld_global. Export this struct, remove all
6236 exports for the signal variables.
6237 * sysdeps/arm/dl-machine: Likewise.
6238 * sysdeps/generic/dl-origin: Likewise.
6239 * sysdeps/generic/dl-sysdep: Likewise.
6240 * sysdeps/generic/dl-cache: Likewise.
6241 * sysdeps/hppa/dl-fptr: Likewise.
6242 * sysdeps/hppa/dl-machine: Likewise.
6243 * sysdeps/cris/dl-machine: Likewise.
6244 * sysdeps/i386/dl-machine: Likewise.
6245 * sysdeps/ia64/dl-machine: Likewise.
6246 * sysdeps/m68k/dl-machine: Likewise.
6247 * sysdeps/mach/hurd/dl-sysdep: Likewise.
6248 * sysdeps/mips/mips64/dl-machine: Likewise.
6249 * sysdeps/mips/dl-machine: Likewise.
6250 * sysdeps/powerpc/elf/libc-start: Likewise.
6251 * sysdeps/powerpc/dl-machine: Likewise.
6252 * sysdeps/powerpc/dl-start: Likewise.
6253 * sysdeps/sparc/sparc32/dl-machine: Likewise.
6254 * sysdeps/sparc/sparc64/dl-machine: Likewise.
6255 * sysdeps/sh/dl-machine: Likewise.
6256 * sysdeps/s390/s390-32/dl-machine: Likewise.
6257 * sysdeps/s390/s390-64/dl-machine: Likewise.
6258 * sysdeps/unix/sysv/aix/libc-start: Likewise.
6259 * sysdeps/unix/sysv/aix/start-libc: Likewise.
6260 * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
6261 * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
6262 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
6263 * sysdeps/x86_64/dl-machine: Likewise.
6264
a204ea36
UD
62652002-01-31 Ulrich Drepper <drepper@redhat.com>
6266
6267 * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
6268 are too high.
6269
62702002-01-31 Andreas Schwab <schwab@suse.de>
6271
6272 * sysdeps/posix/readv.c: Check for ssize_t overflow.
6273
62742002-01-31 Andreas Schwab <schwab@suse.de>
6275
6276 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
6277 reference to _dl_pagesize.
6278
d6b5d570
UD
62792002-01-30 Ulrich Drepper <drepper@redhat.com>
6280
6281 * Versions.def [ld]: Add GLIBC_2.3.
6282 * elf/dl-addr.c: Move global variables for SHARED code in struct
6283 _rtld_global. Export this struct, remove all exports for the
6284 signal variables.
6285 * elf/dl-close.c: Likewise.
6286 * elf/dl-conflict.c: Likewise.
6287 * elf/dl-debug.c: Likewise.
6288 * elf/dl-deps.c: Likewise.
6289 * elf/dl-dst.h: Likewise.
6290 * elf/dl-error.c: Likewise.
6291 * elf/dl-fini.c: Likewise.
6292 * elf/dl-init.c: Likewise.
6293 * elf/dl-iteratephdr.c: Likewise.
6294 * elf/dl-libc.c: Likewise.
6295 * elf/dl-load.c: Likewise.
6296 * elf/dl-lookup.c: Likewise.
6297 * elf/dl-minimal.c: Likewise.
6298 * elf/dl-object.c: Likewise.
6299 * elf/dl-open.c: Likewise.
6300 * elf/dl-profile.c: Likewise.
6301 * elf/dl-profstub.c: Likewise.
6302 * elf/dl-reloc.c: Likewise.
6303 * elf/dl-runtime.c: Likewise.
6304 * elf/dl-support.c: Likewise.
6305 * elf/dl-sym.c: Likewise.
6306 * elf/dl-version.c: Likewise.
6307 * elf/do-lookup.h: Likewise.
6308 * elf/do-rel.h: Likewise.
6309 * elf/dynamic-link.h: Likewise.
6310 * elf/rtld.c: Likewise.
6311 * sysdeps/generic/dl-cache.c: Likewise.
6312 * sysdeps/generic/dl-sysdep.c: Likewise.
6313 * sysdeps/generic/ldsodefs.h: Likewise.
6314 * sysdeps/generic/libc-start.c: Likewise.
6315 * sysdeps/i386/dl-machine.h: Likewise.
6316 * sysdeps/ia64/dl-fptr.c: Likewise.
6317 * sysdeps/ia64/dl-machine.h: Likewise.
6318 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
6319 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
6320 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
6321 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
6322 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
6323 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
6324 * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
6325 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
6326
e66d0a4c
UD
63272002-01-29 Ulrich Drepper <drepper@redhat.com>
6328
1b4575ae
UD
6329 * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
6330 to avoid warning
6331 (DL_STATIC_FUNCTION_ADDRESS): Likewise.
6332
be4b5a95
UD
6333 * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
6334 SHARED version.
6335 * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
6336
e66d0a4c
UD
6337 * elf/rtld.c (_dl_start): Use __builtin_memset if available.
6338
9d7810d8
UD
63392002-01-29 Ben Collins <bcollins@debian.org>
6340
6341 * string/bits/string2.h (__mempcpy): Protect size arg for
6342 addition when using __builtin_memcpy.
6343
92f120d4
UD
63442002-01-29 Ulrich Drepper <drepper@redhat.com>
6345
207b66ce
UD
6346 * stdlib/Makefile (tests): Add tst-qsort.
6347 * stdlib/tst-qsort.c: New file. Written by Paul Eggert.
6348
afdef815
UD
6349 * manual/signal.texi (Process Signal Mask): Document that
6350 pthread_sigmask, not sigprocmask, must be used in MT programs.
6351 Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
6352
92f120d4
UD
6353 * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
6354 found.
6355 * misc/Makefile (tests): Add tst-hsearch.
6356 * misc/tst-hsearch.c: New file.
6357
fa8d436c
UD
63582002-01-18 Wolfram Gloger <wg@malloc.de>
6359
6360 * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
6361 * malloc/malloc.h: Likewise.
d6b5d570 6362 * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
fa8d436c
UD
6363 * malloc/arena.c: New file.
6364 * malloc/hooks.c: New file.
6365 * malloc/tst-mallocstate.c: New file.
6366 * malloc/Makefile: Add new testcase tst-mallocstate.
6367 Add arena.c and hooks.c to distribute. Fix commented CPPFLAGS.
6368
63692002-01-28 Ulrich Drepper <drepper@redhat.com>
6370
6371 * stdlib/msort.c: Remove last patch. The optimization violates the
6372 same rule which qsort.c had problems with.
6373
63742002-01-27 Paul Eggert <eggert@twinsun.com>
6375
6376 * stdlib/qsort.c (_quicksort): Do not apply the comparison function
6377 to a pivot element that lies outside the array to be sorted, as
6378 ISO C99 requires that the comparison function be called only with
6379 addresses of array elements [PR libc/2880].
6380
b45b9457
UD
63812002-01-28 Ulrich Drepper <drepper@redhat.com>
6382
db2ebcef
UD
6383 * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
6384 for SHARED code. Reported by Ben Collins <bcollins@debian.org>.
6385
b45b9457
UD
6386 * timezone/asia: Update from tzdata2002b.
6387 * timezone/australasia: Likewise.
6388 * timezone/backward: Likewise.
6389 * timezone/europe: Likewise.
6390 * timezone/leapseconds: Likewise.
6391 * timezone/iso3166.tab: Likewise.
6392 * timezone/zone.tab: Likewise.
6393
0295d266
UD
63942002-01-23 Richard Henderson <rth@redhat.com>
6395
6396 * sysdeps/alpha/Makefile (pic-ccflag): New variable.
6397
63982002-01-28 Ulrich Drepper <drepper@redhat.com>
6399
6400 * string/strxfrm.c: Allocate one more byte for rulearr and clear
6401 this element [PR libc/2855].
6402
6403 * string/strcoll.c: Handle zero-length arguments specially
6404 [PR libc/2856].
6405
64062002-01-23 Jakub Jelinek <jakub@redhat.com>
6407
6408 * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
6409 __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
6410 short lengths and constant src.
6411 (strcpy): Don't optimize for gcc 3.0+.
6412 (__stpcpy): For gcc 3.0+, don't use
6413 __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
6414 for short string literal src.
6415
64162002-01-23 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
6417
6418 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
6419 Set for arm, too.
6420
64212001-01-22 Paul Eggert <eggert@twinsun.com>
6422
6423 * manual/llio.texi (Linked Channels, Cleaning Streams):
6424 Make it clearer that a just-opened input stream might need cleaning.
6425
64262002-01-21 H.J. Lu <hjl@gnu.org>
6427
6428 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
6429 Don't use label at end of compound statement.
6430
2b94dab6
AJ
64312002-01-28 Stephen L Moshier <moshier@mediaone.net>
6432
6433 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
6434 Remove test for negative integer arg; sin_pi does it correctly.
6435
fbee8a1e
UD
64362002-01-20 Ulrich Drepper <drepper@redhat.com>
6437
6438 * nscd/Makefile (distribute): Filter out xmalloc.c.
6439
284749da
UD
64402002-01-19 Ulrich Drepper <drepper@redhat.com>
6441
6442 * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
6443 Set offset if read end wasn't the buffer end.
6444 (_IO_file_seekoff_mmap): New function.
6445 (_IO_file_xsgetn_mmap): New function.
6446 (_IO_file_jumps_mmap): Use the two new functions.
6447 * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
6448 != end buffer.
6449 * libio/libioP.h: Declare _IO_file_seekoff_mmap and
6450 _IO_file_underflow_mmap.
6451 * libio/iofopen.c: Don't position file descriptor at end of file.
6452 * libio/tst-widetext.c: Improve error messages.
6453 * stdio-common/tst-rndseek.c: Likewise.
6454
d7a746fc
UD
64552002-01-18 Ulrich Drepper <drepper@redhat.com>
6456
53e9699b
UD
6457 * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
6458 end of enum for !_GNU_SOURCE.
6459 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
6460 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
6461 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
6462 * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
6463 values unless _GNU_SOURCE.
6464
d7a746fc
UD
6465 * iconvdata/tcvn5712-1.c: Minor cleanups.
6466
a5a8c34e
AS
64672002-01-18 Andreas Schwab <schwab@suse.de>
6468
6469 * sysdeps/unix/sysv/linux/configure.in
6470 (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
6471
b750d5e7
UD
64722002-01-16 Roger Sayle <roger@eyesopen.com>
6473
6474 * stdlib/msort.c (msort_with_tmp): Replace implementation with
6475 more efficient "Towers of Hanoi" mergesort.
6476 (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
6477 for generic, sizeof(int) and sizeof(long) variants respectively.
6478
057685e4
UD
64792002-01-17 Ulrich Drepper <drepper@redhat.com>
6480
fbee8a1e 6481 * manual/syslog.texi (openlog): Describe possible problems with
b750d5e7
UD
6482 first parameter.
6483 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
6484
057685e4
UD
6485 * nscd/nscd.c (drop_privileges): Removed. Adjust caller.
6486 * nscd/connections.c (begin_drop_privileges): New function.
6487 (finish_drop_privileges): New function.
6488 (nscd_init): Call the new functions which also install all groups
6489 for the server user.
c3ea7bee 6490 * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
e093e5b9 6491 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
057685e4
UD
6492
64932002-01-17 H.J. Lu <hjl@gnu.org>
6494
6495 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
6496 `const' from `got'.
6497
52831fb8
UD
64982002-01-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
6499
6500 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
6501 instructions for pointer operations.
6502 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
6503
38aaf876
AJ
65042002-01-17 Andreas Jaeger <aj@suse.de>
6505
d425aefc
AJ
6506 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
6507 __uint128_t build-in.
6508
38aaf876
AJ
6509 * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
6510 PowerPC, sync with 2.2 branch.
6511
0308a475
UD
65122002-01-16 Ulrich Drepper <drepper@redhat.com>
6513
6514 * posix/getconf.c: Update copyright year.
6515 * nss/getent.c: Likewise.
6516 * nscd/nscd_nischeck.c: Likewise.
6517 * iconv/iconvconfig.c: Likewise.
6518 * iconv/iconv_prog.c: Likewise.
6519 * elf/ldconfig.c: Likewise.
6520 * catgets/gencat.c: Likewise.
6521 * csu/version.c: Likewise.
6522 * elf/ldd.bash.in: Likewise.
6523 * elf/sprof.c (print_version): Likewise.
6524 * locale/programs/locale.c: Likewise.
6525 * locale/programs/localedef.c: Likewise.
6526 * nscd/nscd.c (print_version): Likewise.
6527 * debug/xtrace.sh: Likewise.
6528 * malloc/memusage.sh: Likewise.
6529 * malloc/mtrace.pl: Likewise.
6530
65312002-01-16 Andreas Schwab <schwab@suse.de>
6532
6533 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
6534 reliably remove "-ia64" from rtld name.
6535
067c6a6d
UD
65362002-01-16 Ulrich Drepper <drepper@redhat.com>
6537
6538 * iconvdata/gb18030.c: Bug fixes and support for more characters.
6539 Patch by Yu Shao <yshao@redhat.com>.
6540
65412002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com>
6542
6543 * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
6544 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
6545 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
6546
65472002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
6548
6549 * sysdeps/s390/fpu/libm-test-ulps: Update.
6550
6c69f24a
UD
65512002-01-11 Ulrich Drepper <drepper@redhat.com>
6552
6553 * elf/elf.h: Update x86 relocations.
6554
e57372d1
UD
65552002-01-10 Ulrich Drepper <drepper@redhat.com>
6556
6557 * locale/programs/charmap.c (new_width): Check whether byte
6558 sequences for both ends of range have the same length.
6559
d77a71c5
UD
65602002-01-09 Jakub Jelinek <jakub@redhat.com>
6561
6562 * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
6563
65642002-01-09 Jakub Jelinek <jakub@redhat.com>
6565
6566 * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
6567 string literals.
6568 (__full_ieee754_sqrt): Add __attribute_used__.
6569
65702002-01-10 Ulrich Drepper <drepper@redhat.com>
6571
6572 * sysdeps/generic/group_member.c (__group_member): Also check
6573 groups[0] [PR libc/2781].
6574
ab92bebd
UD
65752002-01-08 Ulrich Drepper <drepper@redhat.com>
6576
6577 * Makefile (distribute): Add scripts/cpp.
6578 * elf/Makefile (distribute): Add reldep6mod[01234].c,
6579 unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
6580 unwind-dw2-fde.h, and dwarf2.h.
6581 * sysdeps/unix/bsd/bsd4.4/Dist: New file.
6582 * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
6583 * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
6584 * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
6585
49fb04c2
RM
65862002-01-07 Roland McGrath <roland@frob.com>
6587
6588 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
6589 volatile on type of ARGC so the compiler doesn't get clever.
6590
8e504786
AJ
65912002-01-07 Andreas Jaeger <aj@suse.de>
6592
6593 * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
6594 * sysdeps/i386/bits/byteswap.h: Likewise.
6595 * sysdeps/ia64/bits/byteswap.h: Likewise.
6596 * sysdeps/m68k/bits/byteswap.h: Likewise.
6597 * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
4a10c7fe 6598 * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
8e504786 6599
8e57fc70
UD
66002002-01-02 Bruno Haible <bruno@clisp.org>
6601
6602 * intl/plural.y: Fix %expect count.
6603
a0dcb689
UD
66042002-01-03 Jakub Jelinek <jakub@redhat.com>
6605
6606 * elf/Makefile (routines, shared-only-routines): Add
6607 unwind-dw2-fde-glibc instead of unwind-dw2-fde.
6608 * elf/elf.h (PT_GNU_EH_FRAME): Define.
6609 * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
6610 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
6611 Optimize if .eh_frame section contains no FDEs.
6612 (__register_frame, __deregister_frame_info_bases,
6613 __deregister_frame): Likewise.
6614 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
6615 DW_CFA_restore handling.
6616
66172002-01-07 Stephen L Moshier <moshier@mediaone.net>
c195dcdd
AJ
6618
6619 * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
6620
6621 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
6622 for x < 0.25 and restore original range reduction method.
6623 (__ieee754_lgammal_r): Make sure signgam is set before returning.
6624
0469311e
UD
66252002-01-07 Ulrich Drepper <drepper@redhat.com>
6626
6627 * libio/fileops.c (_IO_file_underflow_mmap): New function.
6628 (_IO_file_close_mmap): New function.
6629 (_IO_file_jumps_mmap): New variable.
6630 * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
6631 trying to convert rest of byte buffer.
6632 (_IO_wfile_underflow_mmap): New function.
6633 (_IO_wfile_jumps_mmap): New variable.
6634 * libio/iofopen.c (__fopen_maybe_mmap): New function.
6635 (__fopen_internal): New function. Split out from _IO_new_fopen.
6636 (_IO_new_fopen): Call __fopen_internal.
6637 * libio/iofopen64.c: Just call __fopen_internal.
6638 * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
6639 successfully.
6640 * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
6641 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
6642 _IO_file_close_mmap.
6643
6644 * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
6645 * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
6646
6647 * stdio-common/Makefile (tests): Add tst-rndseek.
6648 * stdio-common/tst-rndseek.c: New file.
6649
93da2f2a
RM
66502002-01-05 Roland McGrath <roland@frob.com>
6651
6652 * config.h.in (HAVE_MIG_RETCODE): New #undef.
6653 * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
6654 swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
6655 * sysdeps/mach/hurd/configure: Regenerated.
6656
34263e4d
UD
66572002-01-03 Ulrich Drepper <drepper@redhat.com>
6658
6659 * elf/elf.h: Add more TLS definitions.
6660
184cbb9a
UD
66612002-01-02 Ulrich Drepper <drepper@redhat.com>
6662
6663 * include/features.h (__GLIBC_MINOR__): Bump to 3.
6664
f58f41f1
RM
66652002-01-02 Roland McGrath <roland@frob.com>
6666
05dea6d1
RM
6667 * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
6668 __sigisemptyset. Don't use MASK uninitialized.
6669
6670 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
6671 * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
6672 * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
6673 __sigdelset, __sigaddset, __sigorset.
6674
6ede11aa
RM
6675 * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
6676 * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
6677
2fee5d8b
RM
6678 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
6679 _hurd_ports is null.
7595ddb8
RM
6680
6681 * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
6682 for old CMU and new OSF Mach interface flavors.
6683 * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
6684 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
6685
6686 * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
6687
6688 * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
6689 Pass extra arguments to task_create for OSF variant.
6690 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
6691
f58f41f1
RM
6692 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
6693 conditional on [HAVE_AUX_VECTOR].
6694
6695 * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
6696 mach_msg_timeout_t as type of final argument.
6697
6698 * hurd/privports.c (__get_privileged_ports):
6699 Change host_priv_t to mach_port_t in argument type.
6700 * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
6701 Update decls.
6702
6703 * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
6704 multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H].
6705 * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
6706 * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
6707 * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
6708 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
6709
d244fd73
RM
67102002-01-01 Roland McGrath <roland@frob.com>
6711
6712 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
6713
3327b955
UD
67142002-01-01 Ulrich Drepper <drepper@redhat.com>
6715
6716 * include/stdlib.h: Define inlines for the _l variants of the strto*
6717 functions.
6718
dcb00da6
RM
67192002-01-01 Roland McGrath <roland@frob.com>
6720
6721 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
6722
6723 * mach/Machrules (MIG): Set CPP as well as CC.
6724
84fb7c8c
UD
67252001-12-31 Ulrich Drepper <drepper@redhat.com>
6726
6727 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
dc2fcb0a 6728 locale to parse /proc/loadavg [PR libc/2760].
84fb7c8c
UD
6729
67302001-12-31 Jakub Jelinek <jakub@redhat.com>
6731
6732 * elf/dl-conflict.c: Include sys/param.h.
6733 (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
6734 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
6735 warning.
6736 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
6737 literals to avoid warnings.
6738
c7e23b4b
AJ
67392001-12-31 Andreas Jaeger <aj@suse.de>
6740
84fb7c8c 6741 * configure.in: Don't check for gsed since we do not use it anywhere.
c7e23b4b 6742
2903810a
UD
67432001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
6744
6745 * io/fts.c: Update from BSD to fix memory leaks.
6746
c2f5916e
UD
67472001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
6748
6749 * crypt/md5-crypt.c: Realloc error handling memory leak fix.
6750 * elf/chroot_canon.c: Likewise.
6751 * elf/dl-object.c: Likewise.
6752 * iconv/iconv_charmap.c: Likewise.
6753 * iconv/iconv_prog.c: Likewise.
6754 * libio/iogetdelim.c: Likewise.
6755 * locale/lc-time.c: Likewise.
6756 * stdlib/canonicalize.c: Likewise.
6757 * sunrpc/svc.c: Likewise.
6758 * sysdeps/generic/glob.c: Likewise.
6759
961d4a2e
UD
67602001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
6761
6762 * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
6763 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
6764 remove high order bit from the program counter.
6765 * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
6766
67672001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
6768
6769 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
6770 unnecessary code and add missing reloc types.
6771 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
6772 case for reloc type R_390_NONE.
6773
98519d62
AJ
67742001-12-28 Andreas Jaeger <aj@suse.de>
6775
6776 * io/bug-ftw3.c: Include string.h for prototypes.
6777
6778 * crypt/md5test.c (main): Remove unused variable.
6779
98519d62
AJ
6780 * dlfcn/modstatic.c: Add prototype to avoid warning.
6781
362f8329
RM
67822001-12-26 Roland McGrath <roland@frob.com>
6783
6784 * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
6785 check only (SS->pending & MASK) for the signal to return.
6786 From Jeroen Dekkers <jeroen@dekkers.cx>.
6787
43134040
RM
67882001-12-22 Roland McGrath <roland@frob.com>
6789
362f8329
RM
6790 * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
6791 Use preprocessor #if conditionals instead of `if' to avoid
6792 warnings about divide by zero in dead code.
6793
a5eb7027
RM
6794 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
6795 _hurd_port_init, and __hurd_self_sigstate.
6796
43134040 6797 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
43134040 6798
53c9459f
AJ
67992001-12-21 Andreas Jaeger <aj@suse.de>
6800
6801 * elf/dblloadmod1.c: Add prototype to avoid warning.
6802 * elf/dblloadmod2.c: Likewise.
6803 * elf/dblloadmod3.c: Likewise.
6804 * elf/reldepmod5.c: Likewise.
6805 * elf/reldepmod6.c: Likewise.
6806
6807 * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
6808 for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
6809 used on all architectures.
6810
6811 * sunrpc/svc_tcp.c: Add noreturn attribute for
6812 svctcp_rendezvous_abort.
6813 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
6814
6815 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
6816 to avoid warning.
6817
37de3d55
UD
68182001-12-19 Jakub Jelinek <jakub@redhat.com>
6819
6820 * manual/llio.texi (aio_fsync): Fix a typo.
6821 Patch by Tammy Fox <tfox@redhat.com>.
6822
9cddf9de
UD
68232001-12-18 Jakub Jelinek <jakub@redhat.com>
6824
6825 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
6826 stack bias from child stack pointer before passing it to clone syscall.
6827
68282001-12-18 Ulrich Drepper <drepper@redhat.com>
6829
6830 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
6831 _SC_TZNAME_MAX.
6832 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
6833 Reported by Thorsten Kukuk <kukuk@suse.de>.
6834
6835 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
6836 add some casts.
6837
6838 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
6839
68402001-12-18 Thorsten Kukuk <kukuk@suse.de>
6841
6842 * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
6843 conforming: return EBADF if file descriptor is invalid and EINVAL
6844 if file descriptor is no valid tty.
6845 * login/tst-grantpt.c: New file.
6846 * login/Makefile (tests): Add tst-grantpt.
6847
46089c83
UD
68482001-12-17 Ulrich Drepper <drepper@redhat.com>
6849
6850 * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
6851 different than implemented in last patch.
6852 * io/bug-ftw3.c: Adjust test for changed handling of
6853 inaccessibility of toplevel dir.
6854
a51751c2
RM
68552001-12-16 Roland McGrath <roland@frob.com>
6856
79dbd981
RM
6857 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
6858 * grp/initgroups.c (internal_getgrouplist): Likewise.
6859
ca18306b
RM
6860 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
6861 `default:' to silence new GCC warning.
6862 Rewrite cast of lvalue to silence new GCC warning.
6863
6864 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
6865
a51751c2
RM
6866 * sysdeps/mach/hurd/spawni.c: New file, by me with a
6867 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
6868
0ce9cf88
UD
68692001-12-14 Ulrich Drepper <drepper@redhat.com>
6870
638621af 6871 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
8eadd4f3 6872 Patch by Stephen R. van den Berg.
638621af 6873
0ce9cf88
UD
6874 * crypt/md5.h: Define md5_uintptr.
6875
13c5a442
UD
68762001-12-13 Ulrich Drepper <drepper@redhat.com>
6877
2e22fed2
UD
6878 * libio/tst_swprintf.c (main): Add test for string argument with
6879 zero precision.
30bce7b6 6880 * stdio-common/Makefile (tests): Add tst-sprintf.
13c5a442
UD
6881 * stdio-common/tst-sprintf.c: New file.
6882
68832001-12-13 Andreas Schwab <schwab@suse.de>
6884
6885 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
6886 zero precision with wide character string format.
6887
9b63f5b4
UD
68882001-12-13 Thorsten Kukuk <kukuk@suse.de>
6889
6890 * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
6891 but have a user supplied buffer, return the empty buffer, not NULL.
6892
0838e0b9
UD
68932001-12-13 Ulrich Drepper <drepper@redhat.com>
6894
6895 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
6896 Patch by Eric Sharkey <sharkey@netrics.com>.
6897
6898 * crypt/md5test.c (main): Add test for multiple calls to
6899 __md5_process_bytes to itererate over input string.
6900
495818ce
UD
69012001-12-12 Ulrich Drepper <drepper@redhat.com>
6902
6903 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
6904 from __nis_findfastest. Take timeout value from parameter.
6905 (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
7afc5947
UD
6906 * nis/nis_intern.h: Define parameters controlling __nis_findfastest
6907 [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>.
495818ce 6908
35cd3c97
AJ
69092001-12-12 Andreas Jaeger <aj@suse.de>
6910
6911 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
6912 combreloc test so that it works in this case.
6913
495818ce 6914 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
35cd3c97 6915
2bfe5fd1
UD
69162001-12-12 NIIBE Yutaka <gniibe@m17n.org>
6917
6918 * sysdeps/sh/Makefile: New file.
6919 * sysdeps/sh/_mcount.S: New file.
6920 * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
6921 * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
6922
88a96b81
UD
69232001-12-11 Ulrich Drepper <drepper@redhat.com>
6924
6925 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
6926 limitation [PR libc/2564].
6927
32e6df36
UD
69282001-12-11 Jakub Jelinek <jakub@redhat.com>
6929
6930 * elf/Makefile (dl-routines): Add conflict.
6931 (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
6932 (ld.so): Add _begin local symbol.
6933 * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
6934 Define.
6935 * elf/dl-deps.c (_dl_build_local_scope): New.
6936 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
6937 of all libraries.
6938 * elf/do-rel.h (VALIDX): Define.
6939 (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
6940 lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations
6941 can be skipped.
6942 * elf/dl-conflict.c: New file.
6943 * elf/dl-lookup.c (_dl_debug_bindings): New.
6944 (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always
6945 non-NULL.
6946 (_dl_lookup_symbol_skip): Likewise.
6947 (_dl_lookup_versioned_symbol): Likewise.
6948 (_dl_lookup_versioned_symbol_skip): Likewise.
6949 * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
6950 define to ElfW(Rel).
6951 * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
6952 tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
6953 ranges.
6954 Don't adjust address dynamic tags if l_addr is 0.
6955 * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
6956 (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
6957 (VALIDX, ADDRIDX): Define.
6958 (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
6959 (dl_main): Print library list for LD_TRACE_PRELINKING.
6960 If prelinking information can be used, skip relocating libraries and
6961 call _dl_resolve_conflicts instead.
6962 (process_envvars): Handle LD_TRACE_PRELINKING envvar.
6963 * elf/dl-load.c (_dl_map_object): Don't create fake libs
6964 if LD_TRACE_PRELINKING.
6965 * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
6966 + DT_ADDRNUM.
6967 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
6968 (DL_DEBUG_PRELINK): Define.
6969 (_dl_resolve_conflicts): Add prototype.
6970
6971 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
6972 .plt for prelinked libraries where prelinking info cannot be used.
6973 (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
6974 section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
6975 * sysdeps/arm/bits/link.h: New file.
6976 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
6977 content of .got[1].
6978 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
6979 (ELF_MACHINE_PLT_REL): Define.
6980 (elf_machine_rela, elf_machine_rela_relative): New.
6981 (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
6982 of adjusting it if prelinked and prelinking cannot be used.
6983 * sysdeps/i386/bits/link.h: New file.
6984 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
6985 content of .got[1].
6986 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
6987 (ELF_MACHINE_PLT_REL): Define.
6988 (elf_machine_rela, elf_machine_rela_relative): New.
6989 (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
6990 of adjusting it if prelinked and prelinking cannot be used.
6991 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
6992 conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP
6993 to find out map for R_PPC_JMP_SLOT relocs.
6994 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
6995 (OPCODE_BA): Define.
6996 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
6997 libraries where prelinking info cannot be used.
6998 (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
6999 (elf_machine_fixup_plt): Call sparc_fixup_plt.
7000 (elf_machine_rela): Set value to 0 if relocating conflicts.
7001 Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
7002 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
7003 (sparc64_fixup_plt): Fix a typo.
7004 (elf_machine_rela): Set value to 0 if relocating conflicts.
7005 Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
7006 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
7007 libraries where prelinking info cannot be used.
7008 * sysdeps/sh/bits/link.h: New file.
7009 * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
7010 content of .got[1].
7011 (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
7012 of adjusting it if prelinked and prelinking cannot be used.
7013 * sysdeps/s390/s390-32/bits/link.h: New file.
7014 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
7015 Save original content of .got[1].
7016 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
7017 of adjusting it if prelinked and prelinking cannot be used.
7018 * sysdeps/s390/s390-64/bits/link.h: New file.
7019 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
7020 Save original content of .got[1].
7021 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
7022 of adjusting it if prelinked and prelinking cannot be used.
7023 * sysdeps/x86_64/bits/link.h: New file.
7024 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
7025 Save original content of .got[1].
7026 (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
7027 of adjusting it if prelinked and prelinking cannot be used.
7028
4be601a1
UD
70292001-12-11 Ulrich Drepper <drepper@redhat.com>
7030
7031 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
7032 where appropriate instead of numbers. Little optimizations.
7033
4b08e10a
RM
70342001-12-10 Roland McGrath <roland@frob.com>
7035
a4969614
RM
7036 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
7037 set it.
7038
c3853534
RM
7039 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
7040 set to GLIBC_2.2.5, not GLIBC_2.2.4.
7041
4b08e10a
RM
7042 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
7043 Fix conditionals so this is set by default for stdio and not for libio.
7044 * sysdeps/mach/hurd/configure: Regenerated.
7045
1b113598
UD
70462001-12-10 Thorsten Kukuk <kukuk@suse.de>
7047
7048 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
7049
870a4e12
UD
70502001-12-10 Ulrich Drepper <drepper@redhat.com>
7051
1b113598
UD
7052 * io/Makefile (tests): Add bug-ftw3.
7053 * io/bug-ftw3.c: New file.
7054
870a4e12
UD
7055 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
7056 matches and GLOB_NOCHECK is set.
7057 * posix/globtest.sh: Correct expected result for NOCHECK test.
7058
7059 * po/ca.po: Update from translation team.
7060
47e8b443
UD
70612001-12-09 Ulrich Drepper <drepper@redhat.com>
7062
7063 Implement transliteration of characters in strings of the locale
7064 definitions.
7065 * locale/programs/linereader.c: Adjust for additional parameter to
7066 lr_token.
7067 (get_string): If character <Uxxxx> is not found try to transliterate
7068 it.
7069 * locale/programs/ld-ctype.c: Adjust for additional parameter to
7070 lr_token. Add const to charmap parameter of all functions.
7071 (find_translit, find_translit2): New functions.
7072 * locale/programs/charmap.c: Adjust for additional parameter to
7073 lr_token.
7074 * locale/programs/repertoire.c: Likewise.
7075 * locale/programs/linereader.h: Likewise.
7076 * locale/programs/ld-address.c: Likewise. Add const to charmap
7077 parameter of all functions.
7078 * locale/programs/ld-collate.c: Likewise.
7079 * locale/programs/ld-identification.c: Likewise.
7080 * locale/programs/ld-measurement.c: Likewise.
7081 * locale/programs/ld-messages.c: Likewise.
7082 * locale/programs/ld-monetary.c: Likewise.
7083 * locale/programs/ld-name.c: Likewise.
7084 * locale/programs/ld-numeric.c: Likewise.
7085 * locale/programs/ld-paper.c: Likewise.
7086 * locale/programs/ld-paper.c: Likewise.
7087 * locale/programs/ld-telephone.c: Likewise.
7088 * locale/programs/ld-time.c: Likewise.
7089 * locale/programs/locfile.c: Likewise.
7090 * locale/programs/localedef.c: Likewise.
7091 * locale/programs/localedef.h: Likewise.
7092 * locale/programs/locfile.h: Likewise. Add declaration for
7093 find_translit.
7094 * locale/programs/simple-hash.c: Add const to first parameter of
7095 find_entry, iterate_table, and lookup.
7096 * locale/programs/simple-hash.h: Likewise.
7097 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
7098 instead.
7099 * include/locale.h: Define __LC_LAST.
7100 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
7101
ba2dfdef
GK
71022001-12-07 Geoff Keating <geoffk@redhat.com>
7103
7104 * sysdeps/powerpc/Dist: Update for recent FP changes.
7105 * sysdeps/powerpc/fpu/Dist: Likewise.
7106
36855318
AS
71072001-12-07 Andreas Schwab <schwab@suse.de>
7108
7109 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
7110
6f064efa
GK
71112001-12-06 Geoff Keating <geoffk@redhat.com>
7112
7113 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
7114 save/restore functions here.
7115 (libm-support): Don't define these functions here.
7116 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
7117 functions here.
7118 * sysdeps/powerpc/fe_nomask.c: Move to...
7119 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
7120 * sysdeps/powerpc/fprrest.S: Move to...
7121 * sysdeps/powerpc/fpu/fprrest.S: ... here.
7122 * sysdeps/powerpc/fprsave.S: Move to...
7123 * sysdeps/powerpc/fpu/fprsave.S: ... here.
7124
23134045
UD
71252001-12-06 Ulrich Drepper <drepper@redhat.com>
7126
7127 * sysdeps/unix/sysv/linux/opensock.c: New file.
7128
675322a5
GK
71292001-12-06 Geoff Keating <geoffk@redhat.com>
7130
7131 * config.make.in (with-fp): Define from configure.
7132 * configure.in: Substitute with_fp.
7133 * configure: Regenerate.
7134 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
7135 specified, and don't change FPU environment.
7136
383bd1c5
UD
71372001-12-06 Ulrich Drepper <drepper@redhat.com>
7138
7139 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
7140 * assert/assert.c: Check result of __asprintf call and don't use
7141 string if it failed.
7142 * assert/assert-perr.c: Likewise.
7143 * inet/rcmd.c: Likewise.
7144 * locale/programs/localedef.c (main): Check result of
7145 construct_output_path and exit if it failed.
7146 (construct_output_path): Check result of asprintf and mkdir calls and
7147 fail if they failed.
7148 * posix/getopt.c: Check result of __asprintf calls and fail if
7149 they failed.
7150 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
7151
c7b4c95c
UD
71522001-12-05 Ulrich Drepper <drepper@redhat.com>
7153
7154 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
7155 patch.
f5e6e2ee 7156 * sysdeps/generic/strncase.c: Likewise.
1e06620a 7157 * string/tester.c: Add tests for strcasecmp and strncasecmp.
c7b4c95c 7158
57861839
GK
71592001-12-05 Geoff Keating <geoffk@redhat.com>
7160
71ede9a8
GK
7161 * scripts/cpp: Test the exit status from 'type', not 'awk'.
7162
57861839
GK
7163 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
7164 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
7165 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
7166 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
7167 * sysdeps/powerpc/fclrexcpt.c: Move to...
7168 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
7169 * sysdeps/powerpc/fpu_control.h: Move to...
7170 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
7171
350b053a
UD
71722001-12-05 Ulrich Drepper <drepper@redhat.com>
7173
29132b91
UD
7174 * iconvdata/ibm1129.h: Remove duplicate mappings.
7175 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
7176 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
7177 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
7178
7179 * timezone/zic.c: Fix handling of turnaround times.
7180 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
7181
71822001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
7183
7184 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
7185 overflow problem.
7186
71872001-12-05 Ulrich Drepper <drepper@redhat.com>
7188
7189 * posix/regex.c: For use outside glibc defined bounded pointer
7190 macros here. Patch by Jim Meyering <jim@meyering.net>.
7191
350b053a
UD
7192 * iconvdata/Makefile (modules): Add TCVN5712-1.
7193 * iconvdata/TESTS: Add TCVN5712-1.
7194 * iconvdata/gconv-modules: Likewise.
7195 * iconvdata/tcvn5712-1.c: New file.
d8031326
UD
7196 * iconvdata/testdata/TCVN-5712: New file.
7197 * iconvdata/testdata/TCVN-5712..UTF8: New file.
350b053a 7198
aaa19e67
UD
71992001-12-04 Ulrich Drepper <drepper@redhat.com>
7200
7201 * iconvdata/cp1258.c: Optimize conversion from UCS4.
7202
ce944fef
RM
72032001-12-02 Roland McGrath <roland@frob.com>
7204
c337dc4c
RM
7205 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
7206
4f904363
RM
7207 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
7208 Reported by Jeff Bailey <jbailey@nisa.net>.
7209
5ca3ec06 7210 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
4f904363 7211 Reported by Jeff Bailey <jbailey@nisa.net>.
5ca3ec06 7212
ce944fef
RM
7213 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
7214 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
7215 Reported by Jeff Bailey <jbailey@nisa.net>.
7216
c21b1e2f
RM
72172001-12-01 Roland McGrath <roland@frob.com>
7218
7219 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
7220 missing backslash in test arguments.
7221 * sysdeps/mach/hurd/configure: Regenerated.
7222
72232001-11-26 Roland McGrath <roland@frob.com>
7224
7225 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
7226 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
7227
f67125e3
UD
72282001-11-30 Ulrich Drepper <drepper@redhat.com>
7229
7230 * iconvdata/Makefile (modules): Add ARMSCII-8.
7231 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
7232 * iconvdata/armscii-8.c: New file.
7233
096f1151
UD
72342001-11-29 Jakub Jelinek <jakub@redhat.com>
7235
7236 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
7237 don't match, fix {{a,b},c} globbing, clean up.
7238 Patch by Flavio Veloso <flaviovs@magnux.com>.
7239 * posix/globtest.sh: Add new tests.
7240
42060dad
AJ
72412001-11-29 Andreas Jaeger <aj@suse.de>
7242
64753027 7243 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
f67125e3 7244 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
a47fd681 7245
42060dad
AJ
7246 * sysdeps/generic/abort.c: Include libioP.h for
7247 _IO_flush_all_lockp prototype.
7248
8343eaee
UD
72492001-11-29 Ulrich Drepper <drepper@redhat.com>
7250
7251 * posix/regex.h: Define __restrict_arr correctly.
7252
c6baa867
UD
72532001-11-28 Ulrich Drepper <drepper@redhat.com>
7254
03a2c647
UD
7255 * iconvdata/ibm1163.c: New file.
7256 * iconvdata/ibm1163.h: New file.
7257 * iconvdata/ibm1164.c: New file.
7258 * iconvdata/ibm1164.h: New file.
7259 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
7260 * iconvdata/Makefile: Likewise.
7261 * iconvdata/testdata/IBM1163: New file.
7262 * iconvdata/testdata/IBM1163..UTF8: New file.
7263 * iconvdata/testdata/IBM1164: New file.
7264 * iconvdata/testdata/IBM1164..UTF8: New file.
7265 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
7266
7267 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
7268 * iconvdata/ibm1124.h: Likewise.
7269 * iconvdata/ibm1132.h: Likewise.
7270 * iconvdata/ibm1133.h: Likewise.
7271 * iconvdata/ibm1160.h: Likewise.
7272 * iconvdata/ibm1161.h: Likewise.
7273 * iconvdata/ibm1162.h: Likewise.
7274 * iconvdata/ibm856.h: Likewise.
7275 * iconvdata/ibm922.h: Likewise.
7276 * iconvdata/ibm930.h: Likewise.
7277 * iconvdata/ibm932.h: Likewise.
7278 * iconvdata/ibm933.h: Likewise.
7279 * iconvdata/ibm935.h: Likewise.
7280 * iconvdata/ibm937.h: Likewise.
7281 * iconvdata/ibm939.h: Likewise.
7282 * iconvdata/ibm943.h: Likewise.
7283 * iconvdata/ibm930.c: Pretty printing.
7284 * iconvdata/ibm937.c: Avoid access accross array boundary.
7285
e0e86ccb
UD
7286 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
7287 the current locale's codeset.
7288 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
7289 empty input string.
7290 * iconv/iconv_prog.c: Pass empty strings as default value for to-
7291 and from-charset. Don't determine locale's charset here.
7292
c6baa867
UD
7293 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
7294 as the old _IO_flush_all but lock only if parameter is nonzero.
7295 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
7296 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
7297 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
e0e86ccb 7298 if libio is used [PR libc/2575].
c6baa867 7299
4e735c9a
UD
73002001-11-28 Jakub Jelinek <jakub@redhat.com>
7301
7302 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
7303 __signbitl): Only define for ISO C99.
7304
04484feb
UD
73052001-11-22 Thorsten Kukuk <kukuk@suse.de>
7306
7307 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
7308 herrnop to NETDB_INTERNAL if we run out of buffer space.
7309
3fd13f9e
UD
73102001-11-28 Ulrich Drepper <drepper@redhat.com>
7311
7312 * nss/nss_files/files-XXX.c (internal_getent): Correct input
7313 overflow test for platforms with signed char.
7314 Reported by Andrew Haley <aph@cambridge.redhat.com>.
7315
cd0392d8
UD
73162001-11-28 Bruno Haible <bruno@clisp.org>
7317
7318 * locale/programs/simple-hash.c (lookup_2): Remove function.
7319 (insert_entry_2): Call lookup instead of lookup_2.
7320
0555fcce
UD
73212001-03-04 Bruno Haible <bruno@clisp.org>
7322
7323 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
7324
73252001-10-31 Bruno Haible <bruno@clisp.org>
7326
7327 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
7328
73292001-03-21 Bruno Haible <bruno@clisp.org>
7330
7331 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
7332 chokes on empty macro arguments.
7333 * intl/plural.y: Add #pragma for alloca on AIX 3.
7334
73352001-11-27 Ulrich Drepper <drepper@redhat.com>
7336
7337 * intl/dcigettext.c (guess_category_value): Only implement for
7338 glibc. Otherwise rely on function _nl_locale_name which isn't
7339 present in the glibc sources.
7340
73412001-09-24 Bruno Haible <bruno@clisp.org>
7342
7343 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
7344 transliteration when building on a glibc system but outside glibc.
7345
73462001-09-22 Bruno Haible <bruno@clisp.org>
7347
7348 * intl/plural-eval.c: New file, extracted from dcigettext.c.
7349 * intl/dcigettext.c (plural_eval): Remove function, moved to
7350 intl/plural-eval.c.
7351 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
7352 Include plural-eval.c.
7353
73542001-09-22 Bruno Haible <bruno@clisp.org>
7355
7356 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
7357 don't start with a digit; nplurals must be positive.
7358
73592001-09-02 Bruno Haible <bruno@clisp.org>
7360
7361 * intl/plural-exp.h: New file, extracted from gettextP.h.
7362 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
7363 * intl/gettextP.h (struct expression, struct parse_args,
7364 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
7365 * intl/loadmsgcat.c: Include plural-exp.h.
7366 (PLURAL_PARSE): Move macro to plural-exp.h.
7367 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
7368 plural-exp.c.
7369 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
7370 EXTRACT_PLURAL_EXPRESSION.
7371 (_nl_unload_domain): Update.
7372 * intl/dcigettext.c: Include plural-exp.h.
7373 * intl/plural.y: Include plural-exp.h, not gettextP.h.
7374 (FREE_EXPRESSION): Move macro to plural-exp.h.
7375 * intl/Makefile (routines): Add plural-exp.
7376 (distribute): Add plural-exp.h.
7377
73782001-07-28 Bruno Haible <bruno@clisp.org>
7379
7380 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
7381 isdigit, tolower argument to 'unsigned char'.
7382 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
7383 'unsigned char'.
7384 * intl/localealias.c (read_alias_file): Cast isspace argument to
7385 'unsigned char'.
7386
73872001-10-20 Bruno Haible <bruno@clisp.org>
7388
7389 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
7390 anyway.)
7391 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
7392 with the variable 'index' in plural_lookup.
7393 * intl/l10nflist.c (strchr): Likewise.
7394 * intl/localealias.c (strchr): Likewise.
7395
7396 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
7397 * intl/bindtextdom.c: Likewise.
7398 * intl/dcigettext.c: Likewise.
7399 * intl/dgettext.c: Likewise.
7400 * intl/dngettext.c: Likewise.
7401 * intl/explodename.c: Likewise.
7402 * intl/finddomain.c: Likewise.
7403 * intl/gettext.c: Likewise.
7404 * intl/l10nflist.c: Likewise.
7405 * intl/loadmsgcat.c: Likewise.
7406 * intl/localealias.c: Likewise.
7407 * intl/ngettext.c: Likewise.
7408 * intl/textdomain.c: Likewise.
7409 * intl/gettext.h: Assume <limits.h> exists.
7410
8a207204
UD
74112001-11-27 Ulrich Drepper <drepper@redhat.com>
7412
7413 * stdio-common/Makefile (tests): Add scanf11.
7414 * stdio-common/scanf11.c: New file.
7415
120aad54
UD
74162001-11-26 Ulrich Drepper <drepper@redhat.com>
7417
7418 * version.h (RELEASE): Define as development.
7419 (VERSION): Set to 2.2.90.
7420
74212001-11-22 Thorsten Kukuk <kukuk@suse.de>
7422
7423 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
7424 * nis/nss_nis/nis-grp.c: Likewise.
7425 * nis/nss_nisplus/nisplus-grp.c: Likewise.
7426
7427 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
7428 * nis/nss_nis/nis-pwd.c: Likewise.
7429 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
7430
7431 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
7432 * nis/nss_nisplus/nisplus-parser.c: Likewise.
7433 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
7434
7435 * nscd/grpcache.c: Use strtoul instead of atol.
7436 * nscd/pwdcache.c: Likewise.
7437 * nss/getent.c: Likewise.
7438
74392001-11-27 Paul Eggert <eggert@twinsun.com>
7440
7441 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
7442 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
7443
74442001-11-19 Bruno Haible <bruno@clisp.org>
7445
7446 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
7447 90%.
7448 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
7449 improves the quality of the hash function, especially for short
7450 strings.
7451
f4efd068
UD
74522001-11-26 Ulrich Drepper <drepper@redhat.com>
7453
7454 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
7455 are found call conv_error and not input_error [PR libc/2669].
7456
7457 * math/bits/mathcalls.h: Mark ceil and floor as const.
7458 Reported by David Mosberger.
7459
74602001-11-21 Jim Meyering <meyering@lucent.com>
7461
7462 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
7463 Define to be __-prefixed.
7464 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
7465
dd09c3dc
AJ
74662001-11-26 Andreas Jaeger <aj@suse.de>
7467
7468 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
7469 avoid warning.
7470
60a06b7c
AJ
74712001-11-26 Stephen L Moshier <moshier@mediaone.net>
7472
7473 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
7474 initialization.
7475
7476 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
7477 unused variables. Fix threshold for returning 1.0.
7478
7479 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
7480 argument.
7481
7482 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
7483 remove unused variables.
7484
7485 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
7486
7487 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
7488 include local math header files.
7489
91eaf586
AJ
74902001-11-22 Andreas Jaeger <aj@suse.de>
7491
7492 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
7493 avoid warning.
7494
d987f926
AJ
74952001-11-21 Andreas Jaeger <aj@suse.de>
7496
7497 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
7498
7499 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
7500 sys/debugreg.h
7501
df0a1a7f
AJ
75022001-11-15 Andreas Jaeger <aj@suse.de>
7503
7504 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
7505 compilers that support it.
7506
7507 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
7508 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
7509 * stdlib/stdlib.h: Likewise.
7510
a41179fd
UD
75112001-11-17 Ulrich Drepper <drepper@redhat.com>
7512
7513 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
7514 statement with gotos.
7515 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
7516
75172001-11-16 Stephen L Moshier <moshier@mediaone.net>
c83a3aeb
AJ
7518
7519 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
7520
5ff4a0aa
UD
75212001-11-15 Ulrich Drepper <drepper@redhat.com>
7522
7523 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
7524
74bd2300
UD
75252001-10-02 Jakub Jelinek <jakub@redhat.com>
7526 H.J. Lu <hjl@gnu.org>
7527
1e06620a 7528 * Versions.def (libc): Add GCC_3.0.
74bd2300
UD
7529 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
7530 if gcc supports this flag.
7531 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
7532 (gcc3): Allow glibc to be compiled with gcc 3.x.
7533 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
7534 * config.make.in (static-libgcc, unwind-find-fde): Add.
7535 * Makerules (build-shlib-helper, build-module-helper): Use it.
7536 * scripts/versions.awk: Make sure GLIBC_ versions come first.
7537 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
7538 necessary.
7539 (_fini): Call __deregister_frame_info_bases if
7540 __register_frame_info_bases was used to register.
7541 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
7542 for GLIBC_2.0.
7543 (__register_frame_info_bases, __register_frame_info_table_bases,
1e06620a 7544 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
74bd2300
UD
7545 * elf/Makefile (routines): Add unwind-dw2-fde.
7546 (shared-only-routines): Add unwind-dw2-fde.
7547 * sysdeps/alpha/gccframe.h: New file.
7548 * sysdeps/arm/gccframe.h: New file.
7549 * sysdeps/generic/framestate.c: New file.
7550 * sysdeps/generic/dwarf2.h: New file.
7551 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
7552 * sysdeps/generic/unwind-dw2-fde.c: New file.
7553 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
7554 * sysdeps/generic/unwind-dw2-fde.h: New file.
7555 * sysdeps/generic/unwind-dw2.c: New file.
7556 * sysdeps/generic/unwind-pe.h: New file.
7557 * sysdeps/generic/unwind.h: New file.
7558 * sysdeps/hppa/gccframe.h: New file.
7559 * sysdeps/i386/gccframe.h: New file.
7560 * sysdeps/m68k/gccframe.h: New file.
7561 * sysdeps/mips/gccframe.h: New file.
7562 * sysdeps/powerpc/gccframe.h: New file.
7563 * sysdeps/s390/gccframe.h: New file.
7564 * sysdeps/sh/gccframe.h: New file.
7565 * sysdeps/sparc/gccframe.h: New file.
7566 * sysdeps/vax/gccframe.h: New file.
7567 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
7568 Set on all architectures except ia64.
7569 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
7570 for i386.
7571 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
7572 __deregister_frame_info): Move to elf/Versions.
7573 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
7574 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
7575 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
7576 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
7577 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
7578 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
7579 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
7580 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
7581 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
7582 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
7583 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
7584 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
7585 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7586 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
7587 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
7588 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
7589 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
7590 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
7591
f6b20a36
UD
75922001-11-15 Jeff Law <law@redhat.com>
7593
7594 * posix/regex.c (uintptr_t): Do not provide a definition if the
7595 system provided one.
7596
27114e20
RM
75972001-11-13 Roland McGrath <roland@frob.com>
7598
7599 * stdio-common/tmpfile.c: Moved to ...
7600 * sysdeps/generic/tmpfile.c: ... here.
7601 * sysdeps/mach/hurd/tmpfile.c: New file.
7602
7603 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
7604 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
7605 (fopenport): Define as weak alias.
7606
7607 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
7608 * libio/libioP.h: ... to here.
7609
f133c097
UD
76102001-11-12 Ulrich Drepper <drepper@redhat.com>
7611
7612 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
7613 program header twice. Construct list with the needed information.
7614
9d63abbc
UD
76152001-11-10 Ulrich Drepper <drepper@redhat.com>
7616
e5b27fe5
UD
7617 * po/ca.po: Update from translation team.
7618
9d63abbc
UD
7619 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
7620 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
7621 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
7622 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
7623
76321a25
AJ
76242001-11-10 Andreas Jaeger <aj@suse.de>
7625
7626 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
7627 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
7628 Contributed by Stephen L Moshier <moshier@mediaone.net>.
7629
6d5d3ae3
UD
76302001-11-09 Ulrich Drepper <drepper@redhat.com>
7631
7632 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
7633 correctly.
7634 * elf/dl-load.c (is_dst): New function.
7635 (_dl_dst_count): Use is_dst to check for DST variable.
7636 (_dl_dst_substitute): Likewise.
7637
d0bf7991
RM
76382001-11-09 Roland McGrath <roland@frob.com>
7639
7d0c5823 7640 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
7d0c5823
RM
7641 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
7642 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
7643 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
7644 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
7645 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
7646 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
7647 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
7648 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
7649 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
7650 * sysdeps/mach/hurd/powerpc/Dist: New file.
7651
d0bf7991
RM
7652 * hurd/privports.c (__get_privileged_ports):
7653 Only contact the proc server if necessary for this call.
7654 Suggested by Neal H Walfield <neal@cs.uml.edu>.
7655 Check error return for mach_port_mod_refs.
7656
50e79604
AS
76572001-11-09 Andreas Schwab <schwab@suse.de>
7658
7659 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
7660
d3205950
UD
76612001-11-09 Ulrich Drepper <drepper@redhat.com>
7662
7fd52cc8
UD
7663 * elf/dl-load.c (lose): Remove some unnecessary code. The new
7664 object is always the last in the list.
7665 (_dl_map_object_from_fd): Delete code to remove from object list
7666 when DF_1_NOOPEN is seen. This is done in lose.
d3205950 7667
7bccbc05
UD
76682001-11-08 Ulrich Drepper <drepper@redhat.com>
7669
7670 * elf/dl-object.c (_dl_new_object): Various small optimizations.
7671
6ed623f8
UD
76722001-11-07 Ulrich Drepper <drepper@redhat.com>
7673
40b07f5b
UD
7674 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
7675 HWCAP_CHECK macro code.
7676
7677 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
7678 Now returns MAP_FAILED on error.
7679 * elf/rtld.c: Adjust caller.
7680 * sysdeps/generic/dl-cache.c: Likewise.
7681 * sysdeps/generic/ldsodefs.h: Adjust description.
7682
6ed623f8
UD
7683 * elf/dl-version.c (match_symbol): Optimize error handling for size.
7684 (_dl_check_map_versions): Likewise.
7685
fb0356b9
UD
76862001-11-06 Ulrich Drepper <drepper@redhat.com>
7687
7688 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
7689 _dl_signal_error directly, always use lose. Set fd to -1 after
7690 file is closed.
7691 (lose): Don't call close if fd == -1.
7692
bd3916e8
UD
76932001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
7694
7695 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
7696 Also fix typo @code {mbsinit} to @code{mbsinit}.
7697
39b3385d
UD
76982001-11-06 Ulrich Drepper <drepper@redhat.com>
7699
7982ecfe
UD
7700 * elf/dl-profile.c: Replace state variable with simple flag named
7701 running. Remove commented-out code.
7702
39b3385d
UD
7703 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
7704 (_dl_init_paths): Likewise.
7705 (_dl_map_object_from_fd): Likewise.
7982ecfe 7706 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
39b3385d 7707
995c9bd4
RM
77082001-11-06 Roland McGrath <roland@frob.com>
7709
b1ac1b8c
RM
7710 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
7711 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
7712
995c9bd4
RM
7713 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
7714 sysdeps/powerpc/elf/sysdep.h.
7715 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
7716
3abe7c31
UD
77172001-11-05 Ulrich Drepper <drepper@redhat.com>
7718
3e2040c8
UD
7719 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
7720 speed.
007e4682 7721 (process_envvars): Some more optimizations.
2e8c7d64 7722 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
3e2040c8 7723
c95f3fd4
UD
7724 * elf/elf.h: Add dynamic tag definitions for prelinking.
7725
7726 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
7727 Rewrite code to remove environment varables for SUID binaries.
7728 Small optimization in LD_PROFILE handling.
7729 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
7730 changes.
7731 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
7732
7733 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
7734
ea41b926
UD
7735 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
7736 strings. Change type of second parameter.
7737 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
7738 for last change.
7739
3abe7c31
UD
7740 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
7741
77422001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
7743
7744 * manual/string.texi: Fix typos.
7745 * manual/examples/argp-ex2.c: Likewise.
7746
79a89641
RM
77472001-11-05 Roland McGrath <roland@frob.com>
7748
7749 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
7750 the more-specific unix/sysv/linux/powerpc file and breaks everything.
7751 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
7752 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
7753 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
7754 here, put under [__ELF__].
7755
0b2b18a2
UD
77562001-11-05 Ulrich Drepper <drepper@redhat.com>
7757
7758 * manual/charset.texi: Extensive editing work.
7759 * manual/nss.texi: Likewise.
7760 Changes by Dennis Grace <dgrace@us.ibm.com>.
7761
50d274e5
RM
77622001-11-04 Roland McGrath <roland@frob.com>
7763
7764 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
7765 parameter to dir_mkfile.
7766
fb4fb542
UD
77672001-11-02 Jakub Jelinek <jakub@redhat.com>
7768
7769 * string/bits/string2.h (__strndup): If n is smaller than len, set
7770 len to n + 1.
7771 * string/tester.c (test_strndup): New function.
7772 (main): Call it.
7773
2f653c01
UD
77742001-11-01 Ulrich Drepper <drepper@redhat.com>
7775
fb4fb542 7776 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
5f73e771 7777
980c4d04
UD
7778 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
7779 * scripts/cpp: New file.
7780
2f653c01
UD
7781 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
7782 for rtld_search_dirs content. Minor optimizations.
7783
95589177
UD
77842001-10-31 Ulrich Drepper <drepper@redhat.com>
7785
7786 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
7787 avoiding unnecessary duplication.
7788
77892001-10-31 Jakub Jelinek <jakub@redhat.com>
7790
7791 * elf/dl-load.c (_dl_map_object): If library was found using
7792 LD_LIBRARY_PATH, don't try RUNPATH list.
7793
a8128923
UD
77942001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
7795
3abe7c31 7796 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
a8128923 7797 Correct second argument of register_dump call.
3abe7c31 7798 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
a8128923
UD
7799 Likewise.
7800
557a9213
UD
78012001-10-31 Ulrich Drepper <drepper@redhat.com>
7802
7803 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
7804 modules.
7805 * iconvdata/TESTS: Likewise.
7806 * iconvdata/gconv-modules: Likewise.
7807 * iconvdata/ibm1132.c: New file.
7808 * iconvdata/ibm1132.h: New file.
7809 * iconvdata/ibm1133.c: New file.
7810 * iconvdata/ibm1133.h: New file.
7811 * iconvdata/ibm1162.c: New file.
7812 * iconvdata/ibm1162.h: New file.
7813 * iconvdata/testdata/IBM1132: New file.
7814 * iconvdata/testdata/IBM1132..UTF8: New file.
7815 * iconvdata/testdata/IBM1133: New file.
7816 * iconvdata/testdata/IBM1133..UTF8: New file.
7817 * iconvdata/testdata/IBM1162: New file.
7818 * iconvdata/testdata/IBM1162..UTF8: New file.
7819 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
7820
7821 * string/string.h: Fix typo in comment.
7822 * wcsmbs/wchar.h: Likewise.
7823
78242001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
7825
7826 * manual/getopt.texi (getopt_long, getopt_long_only): Include
7827 const in type of longopts parameter.
7828
1d052247
AJ
78292001-10-29 Andreas Jaeger <aj@suse.de>
7830
557a9213 7831 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
1d052247 7832
95589177 78332001-10-29 Kevin Ryde <user42@zip.com.au>
d075e3ef 7834
557a9213 7835 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
d075e3ef
AJ
7836 output, clarify `#' behaviour on 0.
7837 (Floating-Point Conversions): Clarify that %g only uses %e when
7838 the exponent would be greater than 1.
7839
ec448f66
RM
78402001-10-28 Roland McGrath <roland@frob.com>
7841
d3b82fcc
RM
7842 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
7843 * sysdeps/mach/powerpc/machine-sp.h: New file.
7844 * sysdeps/mach/powerpc/sysdep.h: New file.
7845 * sysdeps/mach/powerpc/thread_state.h: New file.
7846
7847 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
7848 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
7849 expect to need the same thing on every platform.
7850
7851 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
7852 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
7853
ab0a3efc
RM
7854 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
7855 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
7856 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
7857 Move all these assembly-related definitions to ...
7858 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
7859
7860 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
7861 by Peter Bruin <pjbruin@dds.nl>.
7862
ec448f66
RM
7863 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
7864 packing results for a `poll' call.
7865
ca6c7389
UD
78662001-10-26 Ulrich Drepper <drepper@redhat.com>
7867
be29c482
UD
7868 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
7869 correctly.
95eaff64
UD
7870 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
7871 bracket expression.
be29c482 7872
ca6c7389
UD
7873 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
7874 nrules value.
95eaff64 7875 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
ca6c7389
UD
7876
78772001-10-24 H.J. Lu <hjl@gnu.org>
7878
7879 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
7880 Use __BEGIN_DECLS/__END_DECLS around prototypes.
7881 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
7882
78832001-10-21 Jim Meyering <meyering@lucent.com>
7884
7885 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
7886 this code would end up calling gettext even in packages built
7887 with --disable-nls.
7888 * posix/getopt.c (_): Likewise.
7889 * posix/regex.c (_): Likewise.
7890
78912001-10-26 Ulrich Drepper <drepper@redhat.com>
7892
7893 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
7894 lookup not ip6.int.
7895 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
7896 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
7897
78982001-10-19 Jakub Jelinek <jakub@redhat.com>
7899
7900 * misc/sys/cdefs.h (__attribute_used__): Define.
7901 * elf/rtld.c (_dl_start): Add __attribute_used__.
7902 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
7903
a5fcd166
AS
79042001-10-25 Andreas Schwab <schwab@suse.de>
7905
7906 * stdlib/a64l.c: Expect least significant digit first.
7907 * stdlib/l64a.c: Produce least significant digit first.
7908 * stdlib/Makefile (tests): Add test-a64l.
7909 * stdlib/test-a64l.c: New file.
7910 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
7911
412420ee
UD
79122001-10-21 Ulrich Drepper <drepper@redhat.com>
7913
7914 * po/sk.po: Update from translation team.
7915
fceffbe0
UD
79162001-10-18 Ulrich Drepper <drepper@redhat.com>
7917
7918 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
7919
303f1335
AS
79202001-10-18 Andreas Schwab <schwab@suse.de>
7921
7922 * math/libm-test.inc (print_ulps): Print ulp values rounded to
7923 next whole number.
7924 (print_function_ulps): Likewise.
7925 (print_complex_function_ulps): Likewise.
7926 (print_max_error): Likewise.
7927 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
7928
9963f6ff
AS
79292001-10-16 Andreas Schwab <schwab@suse.de>
7930
692acf37
AS
7931 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
7932 implementation.
7933
9963f6ff
AS
7934 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
7935 BSD_SETJMP or BSD__SETJMP is defined, resp.
7936 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
7937 a tail call to __sigsetjmp that would require extending the
7938 caller's frame.
7939 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
7940 * sysdeps/m68k/bsd-setjmp.S: Deleted.
7941 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
7942 Reported by Jes Sorensen <jes@trained-monkey.org>.
7943
5d964acf
AJ
79442001-10-16 Andreas Jaeger <aj@suse.de>
7945
7946 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
fceffbe0
UD
7947 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
7948 close PR libc/2589.
5d964acf 7949
3a0b7473
UD
79502001-10-15 Ulrich Drepper <drepper@redhat.com>
7951
7952 * po/ca.po: New file. Contributed by the translation team.
7953
5d964acf 79542001-10-15 Ralf Baechle <ralf@gnu.org>
ee88e457 7955
3a0b7473
UD
7956 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
7957 a varargs prototype. Remove dependency from kernel header files.
ee88e457
AJ
7958
7959 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
7960 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
7961
1f5649f8
UD
79622001-10-14 Ulrich Drepper <drepper@redhat.com>
7963
7964 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
7965 to generate hexadecimal identifier.
7966 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
7967
79682001-10-09 Stephen L Moshier <moshier@mediaone.net>
7969
7970 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
7971
79722001-10-14 Ulrich Drepper <drepper@redhat.com>
7973
7974 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
7975 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
7976 Contributed by Stephen L Moshier <moshier@mediaone.net>.
7977
7978 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
7979 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
7980 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
7981 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
7982 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
7983 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
7984
7985 * timezone/africa: Update from tzdata2001d.
7986 * timezone/asia: Likewise.
7987 * timezone/australasia: Likewise.
7988 * timezone/backward: Likewise.
7989 * timezone/europe: Likewise.
7990 * timezone/leapseconds: Likewise.
7991 * timezone/northamerica: Likewise.
7992 * timezone/southamerica: Likewise.
7993 * timezone/zone.tab: Likewise.
7994
79952001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
7996
7997 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
7998 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
7999
459a3163
UD
80002001-10-12 Ulrich Drepper <drepper@redhat.com>
8001
8002 * elf/elf.h (PT_TLS): New definition.
8003
0dc87bc6
RM
80042001-10-10 Jeff Bailey <jbailey@nisa.net>
8005
459a3163
UD
8006 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
8007 bits/errno.h
0dc87bc6
RM
8008
80092001-10-07 Roland McGrath <roland@frob.com>
8010
8011 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
8012
1c92cebb
UD
80132001-10-10 Ulrich Drepper <drepper@redhat.com>
8014
8015 * elf/elf.h: Add more ELFOSABI_* constants.
8016
b61345a1
UD
80172001-10-04 Ben Collins <bcollins@debian.org>
8018
8019 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
8020 decleration of __need_wchar_t.
8021
80222001-10-03 Jakub Jelinek <jakub@redhat.com>
8023
8024 * string/bits/string2.h (__strsep_g): Add prototype.
8025 (__strsep): Use it.
8026 * string/Versions (__strsep): Remove.
8027 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
8028
80292001-10-07 Ulrich Drepper <drepper@redhat.com>
8030
8031 * manua/llio.texi: Clarify file references added by mmap.
8032 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
8033
c47e78b1
UD
80342001-09-29 Jes Sorensen <jes@trained-monkey.org>
8035
8036 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
8037 Add sc_loadrs and sc_rbs_bas to match current kernel.
8038
80392001-09-27 Jakub Jelinek <jakub@redhat.com>
8040
8041 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
8042
8043 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
8044
80452001-09-27 Jakub Jelinek <jakub@redhat.com>
8046
8047 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
8048 object has been bumped because of relocation dependency, avoid
8049 duplicates in l_scope.
8050 (show_scope): Fix typos.
8051 * elf/Makefile: Add rules to build and run reldep6.
8052 * elf/reldep6.c: New file.
8053 * elf/reldep6mod0.c: New file.
8054 * elf/reldep6mod1.c: New file.
8055 * elf/reldep6mod2.c: New file.
8056 * elf/reldep6mod3.c: New file.
8057 * elf/reldep6mod4.c: New file.
8058
80592001-09-26 Jakub Jelinek <jakub@redhat.com>
8060
8061 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
8062 sparc64_fixup_plt.
1c92cebb 8063 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
c47e78b1
UD
8064 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
8065 for non-lazy binding. Fix .plt[32768+] handling.
8066 (elf_machine_plt_value): Don't add addend.
8067 (elf_machine_rela): Call sparc64_fixup_plt instead of
8068 elf_machine_fixup_plt.
8069 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
8070 dynamic linker at 0xfffff800XXXXXXXX.
8071
8072 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
8073
ddb96b7d
UD
80742001-09-28 Ulrich Drepper <drepper@redhat.com>
8075
8076 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
8077
23ac6e3a
UD
80782001-09-25 Jakub Jelinek <jakub@redhat.com>
8079
8080 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
8081 declare __cmsg_data field if its size would be bigger than 0.
8082 (CMSG_DATA): Adjust accordingly.
8083 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
8084 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
8085 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
8086 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
8087 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
8088 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
8089 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
8090
d7bc0053
UD
80912001-09-25 Ulrich Drepper <drepper@redhat.com>
8092
8093 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
8094 * iconvdata/testdata/IBM1160: New file.
8095 * iconvdata/testdata/IBM1160..UTF8: New file.
8096 * iconvdata/testdata/IBM1161: New file.
8097 * iconvdata/testdata/IBM1161..UTF8: New file.
8098 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
8099
61423e13
UD
81002001-09-24 Ulrich Drepper <drepper@redhat.com>
8101
a4fe3ea6
UD
8102 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
8103 UL_SETFSIZE computations better.
8104
84e4ff7b
UD
8105 * rt/Makefile: Remove use of filter for librt again.
8106
61423e13
UD
8107 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
8108 UL_SETFSIZE computations better.
8109
8110 * string/Versions: Export __strsep for GLIBC_2.2.5.
8111 * string/bits/string2.h: Define all __STRING_INLINE functions if
8112 _FORCE_INLINES is defined.
8113 Use int instead of char of parameter types.
8114 (__strsep): Don't use __strsep_g. Don't define it.
8115 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
8116 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
8117 __strcpy_small.
8118 (__stpcpy_a_small): Renamed from __stpcpy_small.
8119 (__strcspn_c1): Don't define if _FORCE_INLINES.
8120 (__strspn_c1): Likewise.
8121
81222001-09-22 Ben Collins <bcollins@debian.org>
8123
8124 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
8125 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
8126 * sysdeps/ia64/bits/sigaction.h: Likewise.
8127 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
8128
81292001-09-24 Andrew Haley <aph@cambridge.redhat.com>
8130
8131 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
8132
81332001-09-24 Jakub Jelinek <jakub@redhat.com>
8134
8135 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
8136
8db6604d
UD
81372001-09-24 Ulrich Drepper <drepper@redhat.com>
8138
8139 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
8140
9d0881aa
UD
81412001-09-20 H.J. Lu <hjl@gnu.org>
8142
8143 * include/dlfcn.h (__RTLD_SPROF): New definiton.
8144 * elf/dl-open.c (dl_open_worker): Return immediately after loading
8145 for __RTLD_SPROF.
8146 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
8db6604d 8147 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
9d0881aa
UD
8148
81492001-09-20 H.J. Lu <hjl@gnu.org>
8150
8151 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
8152 don't add 1.
8153
81542001-09-22 Ulrich Drepper <drepper@redhat.com>
8155
8156 * nss/getent.c: Accept -s parameter to overwrite rules in
8157 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
8158
8159 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
8160 with as many ".0" as necessary to form a complete address
8161 inet_network understands.
8162
8163 * nss/getent.c: Various cleanups. Use simpler and fewer function
8164 calls.
8165
81662001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
8167
8168 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
8169 _JMPBUF_UNWINDS.
8170 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
8171
81722001-09-22 Ulrich Drepper <drepper@redhat.com>
8173
8174 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
8175 IBM1161.
8176 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
8177 * iconvdata/ibm1160.c: New file.
8178 * iconvdata/ibm1160.h: New file.
8179 * iconvdata/ibm1161.c: New file.
8180 * iconvdata/ibm1161.h: New file.
799ea679 8181 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
9d0881aa
UD
8182
81832001-09-19 Jakub Jelinek <jakub@redhat.com>
8184
8185 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
8186 difference between base address and first PT_LOAD's virtual address,
8187 not the base address.
8188
81892001-09-11 Tom Rix <trix@redhat.com>
8190
8191 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
8192 ifdef for __getopt_clean_environment.
8193 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
8194
8101ca20
AJ
81952001-09-22 Andreas Jaeger <aj@suse.de>
8196
9fb957cd
AJ
8197 * elf/reldep4.c (main): Add proper prototype to fix warning.
8198
8199 * elf/reldep5.c (main): Remove unused variable.
8200
8101ca20
AJ
8201 * math/math_private.h: Add prototypes.
8202
ede503f7
AJ
82032001-09-21 Andreas Jaeger <aj@suse.de>
8204
9d0881aa
UD
8205 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
8206 * sysdeps/x86_64/Dist: New file.
8207 * sysdeps/x86_64/soft-fp/Dist: New file.
ede503f7
AJ
8208
8209 * sysdeps/gnu/Dist: Remove eval.c.
8210
f4cc201e
UD
82112001-09-20 Ulrich Drepper <drepper@redhat.com>
8212
d3acfb61
UD
8213 * malloc/memusage.c (realloc): Don't count already allocated
8214 memory in the sums.
8215 (me): Always use dlsym() to find the real implementations.
0e21f776 8216
f4cc201e
UD
8217 * malloc/memusage.sh: Make -n option actually do something.
8218
8bbbd5d0
AJ
82192001-09-20 Andreas Jaeger <aj@suse.de>
8220
8221 * elf/elf.h (R_390_NUM): Correct value.
85458ce9
AJ
8222
8223 * Versions.def: Add missing versions 2.2.3 for libthread_db and
8224 libpthread.
8225
8226 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
8227 for x86-64, install x86-64 into */lib64.
8228
8229 * shlib-versions: Add x86-64.
8230
8231 * elf/elf.h: Add x86-64 relocations.
8232
8d4aaf8a
UD
82332001-09-19 Ulrich Drepper <drepper@redhat.com>
8234
8235 * po/fr.po: Update from translation team.
8236
71ad6ad2
AJ
82372001-09-19 Andreas Jaeger <aj@suse.de>
8238
c9cf6dde
AJ
8239 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
8240 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
8241 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
8242 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
8243 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
8244 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
8245 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
8246 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
8247 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
8248 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
8249 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
8250 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
8251 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
8252 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
8253 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
8254 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
8255 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
8256 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
8257 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
8258 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
8259 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
8260 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
8261 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
8262 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
8263 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
8264 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
8265 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
8266 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
8267 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
8268 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
8269 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
8270 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
8271 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
8272 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
8273 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
8274 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
8275 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
8276 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
8277 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
8278 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
8279 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
8280 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
8281 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
8282 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
8283 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
8284 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
8285 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
8286 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
8287 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
8288 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
8289 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
8290 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
8291 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
8292 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
8293 * sysdeps/unix/x86_64/sysdep.S: New file.
8294 * sysdeps/unix/x86_64/sysdep.h: New file.
8295 * sysdeps/x86_64/Implies: New file.
8296 * sysdeps/x86_64/Makefile: New file.
8297 * sysdeps/x86_64/Versions: New file.
8298 * sysdeps/x86_64/__longjmp.S: New file.
8299 * sysdeps/x86_64/abort-instr.h: New file.
8300 * sysdeps/x86_64/atomicity.h: New file.
8301 * sysdeps/x86_64/bits/endian.h: New file.
8302 * sysdeps/x86_64/bits/setjmp.h: New file.
8303 * sysdeps/x86_64/bits/string.h: New file.
8304 * sysdeps/x86_64/bp-asm.h: New file.
8305 * sysdeps/x86_64/bsd-_setjmp.S: New file.
8306 * sysdeps/x86_64/bsd-setjmp.S: New file.
8307 * sysdeps/x86_64/dl-machine.h: New file.
8308 * sysdeps/x86_64/elf/initfini.c: New file.
8309 * sysdeps/x86_64/elf/start.S: New file.
8310 * sysdeps/x86_64/ffs.c: New file.
8311 * sysdeps/x86_64/ffsll.c: New file.
8312 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
8313 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
8314 * sysdeps/x86_64/fpu/e_acosl.c: New file.
8315 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
8316 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
8317 * sysdeps/x86_64/fpu/e_expl.c: New file.
8318 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
8319 * sysdeps/x86_64/fpu/e_log10l.S: New file.
8320 * sysdeps/x86_64/fpu/e_log2l.S: New file.
8321 * sysdeps/x86_64/fpu/e_logl.S: New file.
8322 * sysdeps/x86_64/fpu/e_powl.S: New file.
8323 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
8324 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
8325 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
8326 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
8327 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
8328 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
8329 * sysdeps/x86_64/fpu/fegetenv.c: New file.
8330 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
8331 * sysdeps/x86_64/fpu/fegetround.c: New file.
8332 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
8333 * sysdeps/x86_64/fpu/fesetenv.c: New file.
8334 * sysdeps/x86_64/fpu/fesetround.c: New file.
8335 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
8336 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
8337 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
8338 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
8339 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
8340 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
8341 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
8342 * sysdeps/x86_64/fpu/s_atanl.c: New file.
8343 * sysdeps/x86_64/fpu/s_cosl.S: New file.
8344 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
8345 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
8346 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
8347 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
8348 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
8349 * sysdeps/x86_64/fpu/s_logbl.c: New file.
8350 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
8351 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
8352 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
8353 * sysdeps/x86_64/fpu/s_rintl.c: New file.
8354 * sysdeps/x86_64/fpu/s_significandl.c: New file.
8355 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
8356 * sysdeps/x86_64/fpu/s_sinl.S: New file.
8357 * sysdeps/x86_64/fpu/s_tanl.S: New file.
8358 * sysdeps/x86_64/gmp-mparam.h: New file.
8359 * sysdeps/x86_64/hp-timing.c: New file.
8360 * sysdeps/x86_64/hp-timing.h: New file.
8361 * sysdeps/x86_64/htonl.S: New file.
8362 * sysdeps/x86_64/memusage.h: New file.
8363 * sysdeps/x86_64/setjmp.S: New file.
8364 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
8365 * sysdeps/x86_64/stackinfo.h: New file.
8366 * sysdeps/x86_64/sysdep.h: New file.
8367 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
8368
71ad6ad2
AJ
8369 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
8370 L Moshier.
8371
9596d0dd
UD
83722001-09-18 Ulrich Drepper <drepper@redhat.com>
8373
8374 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
8375 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
8376
83772001-09-18 Andreas Schwab <schwab@suse.de>
8378
8379 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
8380 list, now that l_scope is a pointer.
8381
8382 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
8383 scope list.
8384
83852001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
8386
8387 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
8388 (elf_machine_rela_relative): Add a missing declaration.
8389
83902001-09-18 Jakub Jelinek <jakub@redhat.com>
8391
74bd2300
UD
8392 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
8393 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
9596d0dd
UD
8394 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
8395 ldd-rewrite scripts.
8396
83972001-09-18 Ulrich Drepper <drepper@redhat.com>
8398
8399 * elf/ldd.bash.in: Update copyright message.
8400
84012001-09-17 H.J. Lu <hjl@gnu.org>
8402
8403 * hurd/hurdmalloc.c (bcopy): Removed.
8404 (realloc): Replace bcopy with memcpy.
8405 * hurd/path-lookup.c (file_name_path_scan): Likewise.
8406 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
8407 * sunrpc/rpcinfo.c (pmapdump): Likewise.
8408
8409 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
8410 (gethostbyaddr): Likewise.
8411 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
8412
84132001-09-18 Ulrich Drepper <drepper@redhat.com>
8414
8415 * sysdeps/gnu/eval.c: Removed.
8416
51e59281
AJ
84172001-09-18 Andreas Jaeger <aj@suse.de>
8418
8419 * sysdeps/i386/fpu/s_logbl.S: Move to ...
8420 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
8421
8422 * sysdeps/i386/fpu/s_rintl.S: Move to ...
8423 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
8424
8425 * sysdeps/i386/fpu/s_significandl.S: Move to ...
8426 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
8427
d8877d65
UD
84282001-09-16 Ulrich Drepper <drepper@redhat.com>
8429
d4d6b072 8430 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
d8877d65
UD
8431 nrules value.
8432
69880d12
UD
84332001-09-14 H.J. Lu <hjl@gnu.org>
8434
8435 * sysdeps/mips/fpu/libm-test-ulps: Updated.
8436
0991cbf6
UD
84372001-09-14 Ulrich Drepper <drepper@redhat.com>
8438
69880d12
UD
8439 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
8440 Patch by Florian La Roche <laroche@redhat.com>.
8441
29215bbd
UD
8442 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
8443
0991cbf6
UD
8444 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
8445 ETHER_CRC_LEN.
8446
66f05d22
AS
84472001-09-14 Andreas Schwab <schwab@suse.de>
8448
8449 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
8450 Sumner <bls@sgi.com>.
8451 * posix/execlp.c: Likewise.
8452
23382b36
UD
84532001-09-13 Jakub Jelinek <jakub@redhat.com>
8454
8455 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
8456 is already found earlier in the search scope.
8457
84582001-09-12 Jakub Jelinek <jakub@redhat.com>
8459
8460 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
8461 filter.
8462
31a54688
UD
84632001-09-13 Ulrich Drepper <drepper@redhat.com>
8464
8465 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
8466
d322efa8
UD
84672001-09-12 Ulrich Drepper <drepper@redhat.com>
8468
8469 * config.h.in: Enforce optimization to be used.
e69924e3
UD
8470 * Makeconfig (preprocess-versions): Define ASSEMBLER.
8471 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
8472 * posix/Makefile (annexc-CFLAGS): Define to -O.
7aba050d 8473 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
d322efa8 8474
57642a78
UD
84752001-09-11 Ulrich Drepper <drepper@redhat.com>
8476
8477 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
8478 Patch by Stephan Kulow.
8479
455e8060
UD
84802001-09-08 Ben Collins <bcollins@debian.org>
8481
8482 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
8483 usage of RESOLVE() (r_type, not reloc->r_type).
8484
11810621
UD
84852001-09-08 Ulrich Drepper <drepper@redhat.com>
8486
8487 * elf/dl-object.c: Avoid allocating extra memory block for name.
beac809a 8488 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
11810621
UD
8489 allocated separately.
8490 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
8491
f6233fe0
UD
84922001-09-08 H.J. Lu <hjl@gnu.org>
8493
8494 * po/zh_TW.po: Fix a typo.
8495
84aafa91
UD
84962001-09-07 Tom Rix <trix@redhat.com>
8497
8498 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
8499
85002001-08-26 Tom Rix <trix@redhat.com>
8501
8502 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
8503 command line options.
8504 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
8505 * sysdeps/unix/sysv/aix/start.c: Removed.
8506 * sysdeps/unix/sysv/aix/start-libc.c: New file.
8507 * sysdeps/unix/sysv/aix/init-first.c: New file.
8508 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
8509
85102001-09-08 Ben Collins <bcollins@debian.org>
8511
8512 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
8513 * sysdeps/generic/dl-machine.h: Likewise.
8514 * sysdeps/hppa/dl-fptr.c: Likewise.
8515 * sysdeps/ia64/dl-fptr.c: Likewise.
8516 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
8517 * sysdeps/mips/dl-machine.h: Likewise.
8518 * sysdeps/mips/mips64/dl-machine.h: Likewise.
8519 * sysdeps/powerpc/dl-machine.c: Likewise.
8520
85212001-09-07 Ben Collins <bcollins@debian.org>
8522
8523 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
8524
8525 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
8526
c4bb124a
UD
85272001-09-08 Ulrich Drepper <drepper@redhat.com>
8528
84aafa91
UD
8529 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
8530 dependencies if necessary.
8531
c4bb124a
UD
8532 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
8533 loaded directly) determine length if l_initfini list by iterating
8534 over its elements. Minor optimizations.
8535 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
8536 for dependency objects.
8537 If object was already loaded check whether any of the dependencies
8538 is already on the relocation dependency list. If yes, remove the
8539 latter. Minor optimizations.
8540 * elf/dl-lookup.c (add_dependency): Add check for self reference of
8541 maps here. Search l_initfini list only if the object was loaded
8542 directly and not only as a dependency.
8543 (_dl_lookup_symbol): Add relocation dependency also if object
8544 is not in global scope. Remove test for self-reference here.
8545 (_dl_lookup_versioned_symbol): Likewise.
8546 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
8547 element of first name record.
8548 * elf/loadtest.c: Add some more test to recognize early if an object
8549 wasn't unloaded.
8550 * elf/Makefile: Add rules to build and run reldep5.
8551 * elf/reldep5.c: New file.
8552 * elf/reldepmod5.c: New file.
8553 * elf/reldepmod6.c: New file.
8554
8555 * elf/reldep2.c: Fix typo.
8556
5a21d307
UD
85572001-09-07 Ulrich Drepper <drepper@redhat.com>
8558
8559 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
8560 elements. Change l_scope to be a pointer only.
c4bb124a 8561 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
5a21d307
UD
8562 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
8563 here add searchlist of newly open file to the dependency's scope.
8564 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
8565 only searchlist from its scope. Free own scope array if necessary.
8566 * elf/Makefile (tests): Add dblload and dblunload now.
8567
7d25e927
AJ
85682001-09-06 Andreas Jaeger <aj@suse.de>
8569
8570 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
8571 Stephen L Moshier.
8572
3fac0001
UD
85732001-09-05 Ulrich Drepper <drepper@redhat.com>
8574
8575 * elf/Makefile: Add rules to build new tests. Don't run them yet since
8576 they both fail.
8577 * elf/dblload.c: New file.
8578 * elf/dblloadmod1.c: New file.
8579 * elf/dblloadmod2.c: New file.
8580 * elf/dblloadmod3.c: New file.
8581 * elf/dblunload.c: New file.
8582
9cd9ea10
UD
85832001-09-04 Richard Henderson <rth@redhat.com>
8584
8585 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
8586 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
8587
407fe3bb
UD
85882001-09-04 Ulrich Drepper <drepper@redhat.com>
8589
8590 Correct very misleading message for error in failed runtime relocation.
8591 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
8592 place of the error.
8593 (_dl_signal_cerror): Likewise.
8594 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
8595 * elf/dl-close.c: Likewise.
8596 * elf/dl-deps.c: Likewise.
8597 * elf/dl-load.c: Likewise.
8598 * elf/dl-lookup.c: Likewise.
8599 * elf/dl-open.c: Likewise.
8600 * elf/dl-reloc.c: Likewise.
8601 * elf/dl-sym.c: Likewise.
8602 * elf/dl-version.c: Likewise.
8603 * sysdeps/generic/dl-sysdep.c: Likewise.
8604
71ce28fd
UD
86052001-09-04 Jakub Jelinek <jakub@redhat.com>
8606
8607 * iconv/strtab.c (strtabinit): Initialize null Strent.
8608 (newstring): Move len == 0 handling...
8609 (strtabadd): ...here.
8610 If len == 1, return null Strent.
8611 When inserting a suffix of an existing string, check if
8612 it is not equal to some suffix already recorded.
8613 Copy left and right members over if adding longer string.
8614
86152001-09-04 Jakub Jelinek <jakub@redhat.com>
8616
8617 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
8618
8619 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
8620 (__syscall_gethostname): Add prototype.
8621
903244ac
UD
86222001-09-04 Ulrich Drepper <drepper@redhat.com>
8623
8624 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
8625
0668d223
UD
86262001-09-02 Ulrich Drepper <drepper@redhat.com>
8627
8628 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
8629
d447d70d
RM
86302001-08-27 Roland McGrath <roland@frob.com>
8631
8632 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
8633 short, copy that much into NAME anyway before returning error.
8634
1bc83d2b
UD
86352001-09-01 Richard Henderson <rth@redhat.com>
8636
8637 * sysdeps/alpha/elf/Dist: Remove file.
8638 * sysdeps/alpha/elf/Makefile: Remove file.
8639 * sysdeps/alpha/elf/crtbegin.S: Remove file.
8640 * sysdeps/alpha/elf/crtend.S: Remove file.
8641 * sysdeps/alpha/elf/initfini.c: New file.
8642
86432001-09-01 Mark Kettenis <kettenis@gnu.org>
8644
8645 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
8646 * iconv/tst-iconv3.c: Likewise.
8647
86482001-09-01 Jakub Jelinek <jakub@redhat.com>
8649
8650 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
8651
9a1f71a7
UD
86522001-09-01 Ulrich Drepper <drepper@redhat.com>
8653
8654 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
8655 export it.
8656 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
8657 * iconv/iconv_prog.c (insert_cache): New function.
8658 (print_known_names): If cache is used call insert_cache to use the
8659 information from the cache [PR libc/2509].
8660
45e0579f
UD
86612001-08-31 Ulrich Drepper <drepper@redhat.com>
8662
8663 * time/strptime.c (strptime_internal): Recognize 'l' format and
1bc83d2b 8664 handle it like 'I' for symmetry with strftime.
45e0579f 8665
eaad82e0
UD
86662001-08-31 Richard Henderson <rth@redhat.com>
8667
8668 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
8669 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
8670 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
8671 (print_statistics): Make scalar unsigned long long.
8672 * sysdeps/alpha/hp-timing.h: New file.
8673
86742001-08-31 Jakub Jelinek <jakub@redhat.com>
8675
8676 * stdio-common/perror.c (perror): Save errno early, pass it
8677 down to perror_internal.
8678 (perror_internal): Add errnum argument.
8679
86802001-08-31 Jakub Jelinek <jakub@redhat.com>
8681
8682 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
8683 Don't add old memory content for R_ALPHA_REFQUAD.
8684
5a3fba99
UD
86852001-08-30 Ulrich Drepper <drepper@redhat.com>
8686
cb2391e1
UD
8687 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
8688 memory correctly.
8689
90d40ab5
UD
8690 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
8691 instead of open, __close instead of close, __getpagesize instead
8692 of getpagesize.
8693
5a3fba99
UD
8694 * string/argz-stringify.c (__argz_stringify): Use __strnlen
8695 instead of strnlen.
8696 * include/string.h (strndupa): Redefine here to use __strnlen
8697 instead of strnlen.
8698 * string/strndup.c (__strndup): Use __strnlen not strnlen.
8699
8700 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
8701 connected).
8702
ee0cb67e
UD
87032001-08-30 Jakub Jelinek <jakub@redhat.com>
8704
8705 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
90d40ab5
UD
8706 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
8707 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
ee0cb67e
UD
8708 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
8709 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
8710 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
8711 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
8712
628880cb
UD
87132001-08-30 Ulrich Drepper <drepper@redhat.com>
8714
8715 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
8716
47491479
AJ
87172001-08-30 Andreas Jaeger <aj@suse.de>
8718
8719 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
8720 contributed Stephen L Moshier.
8721
f314b5cb
UD
87222001-08-30 Jakub Jelinek <jakub@redhat.com>
8723
8724 * sunrpc/etc.rpc (sgi_fam): Add.
8725
a37844f4
UD
87262001-08-30 Ulrich Drepper <drepper@redhat.com>
8727
8728 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
8729
6c3ebebd
UD
87302001-08-29 Ulrich Drepper <drepper@redhat.com>
8731
8732 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
8733 first is from a previous call.
8734 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
8735
87362001-08-29 Andreas Schwab <schwab@suse.de>
8737
8738 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
8739
87402001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
8741
8742 * config.make.in (INSTALL_SCRIPT): Define.
8743 * Makeconfig (INSTALL_SCRIPT): Define.
8744 * Makerules (do-install-script): New macro to install scripts using
8745 INSTALL_SCRIPT.
8746 (install-bin-script): New rule to install scripts with
8747 do-install-script.
8748 (install-bin-script-nosubdir): New rule.
8749 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
8750 (distinfo-vars): Add $(install-bin-script).
8751 * Rules (others): Likewise.
8752 * Makefile (glibcbug): Install with install-bin-script.
8753 * debug/Makefile (xtrace): Likewise.
8754 (catchsegv): Likewise.
8755 * elf/Makefile (ldd): Likewise.
8756 * malloc/Makefile (mtrace): Likewise.
8757 * timezone/Makefile (tzselect): Likewise.
8758
87592001-08-29 H.J. Lu <hjl@gnu.org>
8760
8761 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
8762 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
8763 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
8764
f8122690
AS
87652001-08-29 Andreas Schwab <schwab@suse.de>
8766
8767 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
8768
f13df7c7
UD
87692001-08-28 H.J. Lu <hjl@gnu.org>
8770
8771 * Makeconfig (combreloc-LDFLAGS): New variable.
6c3ebebd 8772 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
f13df7c7
UD
8773 * config.make.in (have-z-combreloc): New variable.
8774 * configure.in: Substitute libc_cv_z_combreloc.
8775
5df485ce
UD
87762001-08-29 Ulrich Drepper <drepper@redhat.com>
8777
8778 * po/sv.po: Update from translation team.
8779 * po/fr.po: Likewise.
3d49d03c 8780 * po/da.po: Likewise.
5df485ce 8781
0ca2a569
AJ
87822001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
8783
8784 * Makerules: Fix a typo: MD% -> MD5.
8785
ff507be8
UD
87862001-08-28 Ulrich Drepper <drepper@redhat.com>
8787
8788 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
8789 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
8790
c920378b
AJ
87912001-08-28 Andreas Jaeger <aj@suse.de>
8792
8793 * manual/libc-texinfo.sh: Add entry about free manuals.
8794
8795 * manual/contrib.texi (Contributors): Fix cross reference.
8796
8797 * manual/libc.texinfo (Copying): Include freemanuals.
8798
8799 * manual/Makefile (appendices): Add freemanuals.
8800
8801 * manual/freemanuals.texi: New file.
8802 Patch by Brian Youmans <3diff@gnu.org>.
8803
8804 * manual/libm-err-tab.pl: Pretty print more platforms, print a
8805 smaller table.
8806
8807 * manual/math.texi (Errors in Math Functions): Fix grammar, start
8808 table on separate page.
8809 Patch by Brian Youmans <3diff@gnu.org>.
8810
c06a49c5
UD
88112001-08-27 Ulrich Drepper <drepper@redhat.com>
8812
8813 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
8814 the connection went down after we first used it try to connect
8815 again and resend the message before printing to the console.
8816 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
8817
88182001-08-27 Jakub Jelinek <jakub@redhat.com>
8819
8820 * string/tst-strlen.c (main): Test strnlen (, -1) too.
8821 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
8822 bit set.
8823
88242001-08-27 Ulrich Drepper <drepper@redhat.com>
8825
f13df7c7 8826 * iconv/strtab.c (searchstring): Use correct length for comparison.
c06a49c5
UD
8827 (strtabadd): Account total size correct if new string has old string as
8828 substring.
8829
497b760b
UD
88302001-08-27 Jakub Jelinek <jakub@redhat.com>
8831
8832 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
8833
f909a88c
AJ
88342001-08-27 Andreas Jaeger <aj@suse.de>
8835
8836 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
8837
8838 * math/libm-test.inc (j0_test): Add extra tests.
8839 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
8840 not x, in Hankel approximation.
8841 Patches by Stephen L Moshier.
8842
092243fa
UD
88432001-08-26 Ulrich Drepper <drepper@redhat.com>
8844
51df989e
UD
8845 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
8846 link_map.
8847
fdde8349
UD
8848 * configure.in: Fix test for .rela.dyn section.
8849
092243fa
UD
8850 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
8851
cf5a372e
UD
88522001-08-26 Jakub Jelinek <jakub@redhat.com>
8853
8854 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
8855 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
8856 Pass type_class to _dl_lookup_*.
23ac6e3a 8857 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
cf5a372e
UD
8858 Pass around just type_class instead of noexec, noplt pair.
8859 (_dl_lookup_versioned_symbol): Likewise.
8860 (_dl_lookup_symbol_skip): Pass around just type_class instead of
8861 noexec, noplt pair.
8862 (_dl_lookup_versioned_symbol_skip): Likewise.
8863 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
8864 * elf/do-lookup.h (do_lookup): Likewise.
8865 * include/link.h (struct link_map): Replace noexec and noplt fields
8866 in l_lookup_cache with type_class field.
8867 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
8868 ELF_RTYPE_CLASS_COPY): Define.
8869 Adjust prototypes for _dl_lookup_symbol and
8870 _dl_lookup_versioned_symbol.
8871 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
8872 elf_machine_lookup_noexec_p): Remove.
8873 (elf_machine_type_class): Define.
8874 * sysdeps/arm/dl-machine.h: Likewise.
8875 * sysdeps/hppa/dl-machine.h: Likewise.
8876 * sysdeps/cris/dl-machine.h: Likewise.
8877 * sysdeps/i386/dl-machine.h: Likewise.
8878 * sysdeps/ia64/dl-machine.h: Likewise.
8879 * sysdeps/m68k/dl-machine.h: Likewise.
8880 * sysdeps/mips/mips64/dl-machine.h: Likewise.
8881 * sysdeps/mips/dl-machine.h: Likewise.
8882 * sysdeps/powerpc/dl-machine.h: Likewise.
8883 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8884 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8885 * sysdeps/sh/dl-machine.h: Likewise.
8886 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8887 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8888
107d41a9
UD
88892001-08-26 Ulrich Drepper <drepper@redhat.com>
8890
8891 * manual/message.texi (Advanced gettext functions): Change
8892 description of plural forms for Slovak.
8893 Reported by Marcel Telka <marcel@telka.sk>.
8894
8895 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
8896 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
8897
88982001-08-26 Jakub Jelinek <jakub@redhat.com>
8899
8900 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
8901 typo. Patch by Florian La Roche <laroche@redhat.com>.
8902
a711b01d
UD
89032001-08-26 Ulrich Drepper <drepper@redhat.com>
8904
680254fe
UD
8905 * include/link.h (struct link_map): Add l_lookup_cache element.
8906 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
8907 (RESOLVE_MAP): Likewise.
8908 (_dl_relocate_object): Remove cache initialization.
8909 * elf/dl-lookup.c: Rip out cache handling code.
8910 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
8911 declarations.
8912
8913 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
8914 remove some __builtin_expect.
8915 (_dl_lookup_versioned_symbol): Likewise.
8916
a711b01d
UD
8917 * config.h.in: Add HAVE_Z_COMBRELOC.
8918 * configure.in: Add test for -z combreloc.
8919
8920 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
8921 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
680254fe
UD
8922 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
8923 case to almost no code.
a711b01d 8924
c126cf66
UD
89252001-08-25 Ulrich Drepper <drepper@redhat.com>
8926
8927 * po/tr.po: Update from translation team.
8928
9de30651
AJ
89292001-08-24 Andreas Jaeger <aj@suse.de>
8930
8931 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
8932 make clean works.
8933
cf44e2dd
UD
89342001-08-24 Ulrich Drepper <drepper@redhat.com>
8935
8936 * elf/rtld.c (print_statistics): Printf % after percent values.
8937 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
8938
8939 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
8940 don't have to compute the hash value and initialize current_value.
8941 Move reference_name variable to where it is needed.
8942 (_dl_lookup_versioned_symbol): Likewise.
8943
fb2c7eab
RM
89442001-08-24 Roland McGrath <roland@frob.com>
8945
8946 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
8947 Just test that strerror returns non-null for a few errno codes.
8948
f0b1a6c8
RM
89492001-08-23 Roland McGrath <roland@frob.com>
8950
8951 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
8952 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
8953
8954 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
8955
8956 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
8957 __mach_reply_port.
8958
c35eb5b0
UD
89592001-08-24 Ulrich Drepper <drepper@redhat.com>
8960
bb84d3b3
UD
8961 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
8962 returns NULL.
8963
c35eb5b0
UD
8964 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
8965 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
8966 doesn't do it.
af8bf6bd
UD
8967 * elf/rtld.c: Include <sys/param.h>.
8968 * elf/dl-reloc.c: Likewise.
c35eb5b0 8969
77c88899
AJ
89702001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
8971
8972 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
8973 empty to prevent junk from being generated.
8974 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
8975
95c78350
UD
89762001-08-24 Jakub Jelinek <jakub@redhat.com>
8977
8978 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
8979 records. Rename endrel to relative, initialize it to r, and use it
8980 in elf_machine_rel_relative calls. Point r after relative relocs.
8981
3dc51a93
UD
89822001-08-24 Ulrich Drepper <drepper@redhat.com>
8983
8984 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
8985 of R_386_NONE.
8986
1f2a1df3
UD
89872001-08-24 Jakub Jelinek <jakub@redhat.com>
8988
8989 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
8990 necessary. Undefine newly defined macros at the end.
8991 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
8992 Rename from elf_machine_rel_relative.
8993 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
8994 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
8995 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
7c69dc8b
UD
8996 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
8997 Likewise.
8998 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
8999 Likewise.
1f2a1df3
UD
9000 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
9001 Fix argument types.
9002 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
9003 Fix argument types.
9004 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
9005 Likewise. Fix argument types.
9006 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
9007 Likewise. Fix argument types.
9008 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
9009 Fix argument types.
9010 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
9011 ElfW(Rel) in argument.
9012 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
9013 function.
9014
a4c4e6db
UD
90152001-08-24 Alexandre Oliva <aoliva@redhat.com>
9016
9017 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
9018
bc7d63ea
AJ
90192001-08-24 Andreas Jaeger <aj@suse.de>
9020
9021 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
9022 Stephen L Moshier <moshier@mediaone.net>.
9023
1721af3f
UD
90242001-08-24 Ulrich Drepper <drepper@redhat.com>
9025
a4c4e6db
UD
9026 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
9027 first if RELCOUNT is set.
9028
1721af3f
UD
9029 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
9030 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
9031 elf_machine_rel_relative.
9032 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
9033 Minor optimizations.
9034 * sysdeps/arm/dl-machine.h: Likewise.
9035 * sysdeps/cris/dl-machine.h: Likewise.
9036 * sysdeps/hppa/dl-machine.h: Likewise.
9037 * sysdeps/i386/dl-machine.h: Likewise.
9038 * sysdeps/ia64/dl-machine.h: Likewise.
9039 * sysdeps/m68k/dl-machine.h: Likewise.
9040 * sysdeps/mips/dl-machine.h: Likewise.
9041 * sysdeps/powerpc/dl-machine.h: Likewise.
9042 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9043 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9044 * sysdeps/sh/dl-machine.h: Likewise.
9045 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9046 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9047
0dce3d15
RM
90482001-08-23 Roland McGrath <roland@frob.com>
9049
37d8d362
RM
9050 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
9051
0dce3d15
RM
9052 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
9053 sysdeps/mach version. Implement counting ("recursive") mutexes
9054 on top of cthreads mutexes.
9055 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
9056
9057 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
9058 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
9059 (__libc_cleanup_region_start, __libc_cleanup_region_end,
9060 __libc_clean_end): Define these to call the cleanup function after
9061 normal exit when they're supposed to.
9062
9063 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
9064 Take new first arg DOIT, a boolean saying whether to really install
9065 any cleanup handler.
9066 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
9067 (__libc_cleanup_end): Likewise.
edb63884 9068 * sysdeps/generic/bits/libc-lock.h: Same changes.
0dce3d15
RM
9069 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
9070 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
9071 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
9072 Likewise.
9073 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
9074 * sysdeps/generic/bits/stdio-lock.h
9075 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
9076
647eb037
UD
90772001-08-23 Jakub Jelinek <jakub@redhat.com>
9078
9079 * elf/ldconfig.c (search_dir): Remove stale symlinks.
9080
90812001-08-23 Jakub Jelinek <jakub@redhat.com>
9082
9083 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
9084 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
9085 lookups in cache.
9086 (_dl_lookup_versioned_symbol): Likewise.
9087 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
9088 relocation lookup.
9089 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
9090 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
9091 (lookup_cache, lookup_cache_versioned): Add declarations.
9092
90932001-08-23 Ulrich Drepper <drepper@redhat.com>
9094
9095 * stdlib/tst-random.c (main): Swap parameters in fail call.
9096 Patch by Pete Bevin <pete@petebevin.com>.
9097
90982001-08-23 Jakub Jelinek <jakub@redhat.com>
9099
9100 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
9101
e515fbc5
UD
91022001-08-23 Ulrich Drepper <drepper@redhat.com>
9103
647eb037
UD
9104 * malloc/obstack.c: Indent preprocessor directives.
9105 Patch by Jim Meyering <meyering@ascend.com>.
9106
e515fbc5
UD
9107 * po/ja.po: Update from translation team.
9108
9efc8b95
RM
91092001-08-23 Roland McGrath <roland@frob.com>
9110
9111 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
9112
9113 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
9114 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
9115
8179dcc1
RM
91162001-08-22 Roland McGrath <roland@frob.com>
9117
c12aa801
RM
9118 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
9119 __libc_lock_define_recursive.
9120 * elf/dl-open.c: Don't declare it here any more.
9121 * elf/dl-close.c: Likewise.
9122 * elf/dl-lookup.c: Likewise.
9123 * elf/dl-iteratephdr.c: Likewise.
9124 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
9125 __libc_lock_unlock_recursive.
9126 * elf/dl-close.c (_dl_close): Likewise
9127 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
9128 * elf/dl-open.c (_dl_open): Likewise
9129
9130 * sysdeps/generic/bits/libc-lock.h
9131 (__libc_lock_define_recursive): New macro.
9132 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
9133 (_IO_lock_lock): Use __libc_lock_lock_recursive.
9134 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
9135
8179dcc1
RM
9136 * conform/conformtest.pl (checknamespace): Sort the output list.
9137
9138 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
9139 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
9140 definitions conditional on [__USE_XOPEN].
9141
9142 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
9143 these unconditionally, not only use [__USE_BSD], so as to match
9144 the sysdeps/unix/sysv/linux files.
9145
5cd6f8f7
UD
91462001-08-22 Ulrich Drepper <drepper@redhat.com>
9147
9148 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
9149 avoid warnings.
9150
9151 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
9152 DL_LOOKUP_ADDRESS.
9153
319a82b0
RM
91542001-08-22 Roland McGrath <roland@frob.com>
9155
9156 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
9157 conditionalization of sa_handler/sa_sigaction member types to
9158 match the sysdeps/unix/sysv/linux file.
9159
4d0923e8
UD
91602001-08-22 Ulrich Drepper <drepper@redhat.com>
9161
40b145c4
UD
9162 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
9163 symbol sizes a bit better.
9164
c5d8d555
UD
9165 * sysdeps/ia64/strncpy.S: Complete rewrite.
9166 Contributed by Jakub Jelinek <jakub@redhat.com>.
9167
4d0923e8
UD
9168 * string/stratcliff.c (main): Add strncpy test.
9169
c3201035
RM
91702001-08-22 Roland McGrath <roland@frob.com>
9171
9172 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
9173 and don't declare unsetenv or _environ directly.
9174 (unsetenv): Return int, not void. Use __environ instead of _environ.
9175
38bb8feb
MK
91762001-08-01 Mark Kettenis <kettenis@gnu.org>
9177
9178 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
9179 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
9180 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
9181 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
9182 test for cmsg struct size.
9183
6106611a
RM
91842001-04-23 Paul Eggert <eggert@twinsun.com>
9185
f95ada81
UD
9186 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
9187 Rename __argc to ___argc in prototypes to avoid compatibility
9188 problems with systems that reserve the identifier "__argc".
9189 Similarly for __argv.
6106611a
RM
9190
91912001-08-21 Roland McGrath <roland@frob.com>
9192
9193 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
9194
9195 * mach/Makefile (tests): Removed.
9196 * mach/hello.c: File removed.
9197
46b05e5d
UD
91982001-08-22 Ulrich Drepper <drepper@redhat.com>
9199
ea015eac
UD
9200 * po/sv.po: Update from translation team.
9201
bed38142
UD
9202 * stdio-common/vfscanf.c: Fix handling of %l[].
9203 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
9204
c7509e31
UD
9205 * libio/Makefile (tests): Add tst-sscanf.
9206 * libio/tst-sscanf.c: New file.
9207
46b05e5d
UD
9208 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
9209 * malloc/mtrace.c (tr_where): dli_sname always points to a
30c8be92 9210 non-empty string if != NULL.
46b05e5d
UD
9211 Reported by Tim Janik <timj@gtk.org>.
9212
2e3e5db6
UD
92132001-08-22 Jakub Jelinek <jakub@redhat.com>
9214
9215 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
9216 buf. Free resources on failure.
9217 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
9218 (makefd_xprt): Likewise.
9219 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
9220 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
9221 * sunrpc/auth_unix.c (authunix_create): Likewise.
9222
92232001-08-21 Jakub Jelinek <jakub@redhat.com>
9224
9225 * string/strnlen.c: Remove.
74bd2300 9226 * sysdeps/generic/strnlen.c: New file.
2e3e5db6
UD
9227 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
9228
88e7ba6a
RM
92292001-08-21 Roland McGrath <roland@frob.com>
9230
9231 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
9232 as a macro, not an extern inline function.
9233
9234 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
9235 * Versions.def (libc): Add GLIBC_2.2.5 set.
9236 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
9237 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
9238
92392001-08-20 Roland McGrath <roland@frob.com>
9240
9241 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
9242 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
9243
6c6bb055
UD
92442001-08-21 Ulrich Drepper <drepper@redhat.com>
9245
9246 * string/bits/string2.h: Remove strnlen optimization here.
9247 * sysdeps/i386/i486/bits/string.h: Add it here.
9248
92492001-08-21 Wolfram Gloger <wg@malloc.de>
9250
9251 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
9252
425966d0
UD
92532001-08-21 Ulrich Drepper <drepper@redhat.com>
9254
9255 * po/gl.po: Update from translation team.
9256
34ef548a
UD
92572001-08-20 Ulrich Drepper <drepper@redhat.com>
9258
9259 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
9260 * misc/err.c (convert_and_print): Likewise.
9261
9262 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
9263 function calls.
9264
62ed552b
UD
92652001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
9266
9267 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
9268 change of the gregset_t type.
9269 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
9270
92712001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
9272
9273 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
9274
3f1c767d
UD
92752001-08-20 Ulrich Drepper <drepper@redhat.com>
9276
62ed552b
UD
9277 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
9278
3f1c767d
UD
9279 * string/strnlen.c: Fix the implementation. We cannot use memchr.
9280
16195d20
MK
92812001-08-18 Mark Kettenis <kettenis@gnu.org>
9282
9283 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
9284 before calling the cthreads initialization code.
9285
0028f16e
UD
92862001-08-20 Ulrich Drepper <drepper@redhat.com>
9287
29f0517d
UD
9288 * argp/argp-help.c: Fix two problems introduced in last change.
9289
0028f16e
UD
9290 * include/dirent.h: Include <dirstream.h> first.
9291
9af652f6
UD
92922001-08-19 Ulrich Drepper <drepper@redhat.com>
9293
faf4c7f0
UD
9294 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
9295
9af652f6
UD
9296 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
9297 * sunrpc/xdr_rec.c: Likewise.
9298 * sunrpc/xdr_mem.c: Likewise.
9299 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
9300 * sunrpc/rpc_cmsg.c: Likewise.
9301 * sunrpc/getrpcport.c (getrpcport): Likewise.
9302 * sunrpc/clnt_simp.c (callrpc): Likewise.
9303 * sunrpc/clnt_gen.c (clnt_create): Likewise.
9304 * string/envz.c: Likewise.
9305
9306 * po/ko.po: Update from translation team.
9307
9308 * argp/argp-help.c: Handle wide oriented stderr stream.
9309
9c777dfe
UD
93102001-08-18 Ulrich Drepper <drepper@redhat.com>
9311
091b8955
UD
9312 * sysdeps/generic/strtol.c: Little optimizations. Add some
9313 __builtin_expect.
9314
9af652f6 9315 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
668770fc 9316
b6d64fb0
UD
9317 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
9318 * wcsmbs/wcwidth.c (wcwdith): Likewise.
9319 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
9320
9321 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
9322
9323 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
9324
68984987
UD
9325 * time/time.h (struct timespec): Use __time_t for tv_sec element.
9326
9327 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
9328 wchar_t for function declarations and defintions.
9329
9330 * misc/sys/select.h: Define __need_time_t before including <time.h>.
9331 Define suseconds_t if it hasn't happened yet.
9332
9333 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
9334
9335 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
9336
9337 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
9338 <stddef.h>.
9339
9340 * conform/data/stddef.h-data: Remove wint_t.
9341
9c777dfe
UD
9342 * conform/conformtest.pl: Change namespace test to take #undef
9343 lines into account.
9344
9345 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
9346
9347 * conform/data/sys/socket.h-data: Add sockatmark.
9348
4c3902f9
UD
93492001-08-17 Ulrich Drepper <drepper@redhat.com>
9350
9351 * io/fts.c: Update from recent BSD source.
9352
c3151cca
RM
93532001-08-17 Roland McGrath <roland@frob.com>
9354
9355 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
9356 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
9357 Likewise.
9358
0f4b99a6
UD
93592001-08-17 Ulrich Drepper <drepper@redhat.com>
9360
89f29a07
UD
9361 * locale/duplocale.c (__duplocale): Also initialize the special
9362 __ctype_* elements.
9363
0f4b99a6
UD
9364 * conform/data/netdb.h-data: Adjust gai_strerror return type.
9365
1d388457
AJ
93662001-08-17 Andreas Jaeger <aj@suse.de>
9367
0f4b99a6
UD
9368 * misc/getpass.c: Include wchar.h for prototypes.
9369 * malloc/obstack.c: Likewise.
1d388457 9370
6293b803
UD
93712001-08-17 Ulrich Drepper <drepper@redhat.com>
9372
9373 * sunrpc/svc_simple.c (universal): Use __write instead of write.
9374
9375 * wcsmbs/wcscoll.c: Also define __wcscoll.
9376 * include/wchar.h: Declare __wcscoll.
9377
9378 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
9379 * libio/vwprintf.c: Likewise.
9380 * libio/wprintf.c: Likewise.
9381
9382 * iconv/gconv_cache.c: Use __munmap instead of munmap.
9383
a2635361
UD
93842001-08-16 Ulrich Drepper <drepper@redhat.com>
9385
6293b803
UD
9386 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
9387 instead of mbrtowc.
9388 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
9389 wcslen, and __wcscoll instead of wcscoll.
9390
9391 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
9392
9393 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
9394 __getuid instead of getuid.
9395
9396 * stdio-common/perror.c (perror): Use __close instead of close.
9397 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
9398 * libio/freopen.c (freopen): Likewise.
9399 * libio/freopen64.c (freopen64): Likewise.
9400
51028f34
UD
9401 * libio/tst-ungetwc2.c (main): Define str const.
9402
9403 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
9404 * libio/fwprintf.c: Also define __fwprintf.
9405 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
9406 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
9407 * assert/assert-perr.c: Likewise.
9408 * assert/assert.c: Likewise.
9409 * gmon/gmon.c: Likewise.
9410 * inet/rcmd.c: Likewise.
9411 * malloc/obstack.c: Likewise.
9412 * misc/err.c: Likewise.
9413 * misc/error.c: Likewise.
9414 * misc/getpass.c: Likewise.
9415 * posix/getopt.c: Likewise.
9416 * resolv/res_hconf.c: Likewise.
9417 * stdio-common/perror.c: Likewise.
9418 * stdio-common/psignal.c: Likewise.
9419 * stdlib/fmtmsg.c: Likewise.
9420 * sunrpc/auth_unix.c: Likewise.
9421 * sunrpc/clnt_perr.c: Likewise.
9422 * sunrpc/clnt_tcp.c: Likewise.
9423 * sunrpc/clnt_udp.c: Likewise.
9424 * sunrpc/clnt_unix.c: Likewise.
9425 * sunrpc/svc_simple.c: Likewise.
9426 * sunrpc/svc_tcp.c: Likewise.
9427 * sunrpc/svc_udp.c: Likewise.
9428 * sunrpc/svc_unix.c: Likewise.
9429 * sunrpc/xdr.c: Likewise.
9430 * sunrpc/xdr_array.c: Likewise.
9431 * sunrpc/xdr_rec.c: Likewise.
9432 * sunrpc/xdr_ref.c: Likewise.
9433 * sysdeps/generic/wordexp.c: Likewise.
9434
d79e5553
UD
9435 * po/it.po: Update from translation team.
9436
51028f34 9437 * misc/err.c: Handle wide oriented stderr stream.
a2635361 9438
8e294940
UD
94392001-08-14 Tom Rix <trix@redhat.com>
9440
9441 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
9442 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
9443
94442001-08-13 Tom Rix <trix@redhat.com>
9445
9446 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
9447 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
9448 and __intptr_t.
9449
94502001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
9451
9452 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
9453 Store the access registers to the ucontext structure.
9454 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
9455 Likewise.
9456
9457 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
9458 Load the access registers from the ucontext structure.
9459 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
9460 Likewise.
9461
9462 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
9463 offsets to the new ucontext layout.
9464 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
9465
9466 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
9467 of the ucontext structure.
9468 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
9469
c0fd6e1d
UD
94702001-08-15 Ulrich Drepper <drepper@redhat.com>
9471
1fc0e331
UD
9472 * misc/error.c (error): Handle wide oriented stderr stream correctly.
9473 (error_at_line): Likewise.
c7ecdbda 9474
1fc0e331
UD
9475 * stdio-common/perror.c (perror): Implement according to standard.
9476 The stream orientation must not be changed if the stream was not
9477 oriented before the call.
9478 * stdio-common/Makefile (tests): Add tst-perror.
9479 * stdio-common/tst-perror.c: New file.
9b51f431 9480
d59e49d8 9481
1fc0e331 9482See ChangeLog.12 for earlier changes.
This page took 1.486227 seconds and 5 git commands to generate.