1 2004-10-20 Jakub Jelinek <jakub@redhat.com>
3 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): If /proc
4 is not mounted, return 1.
6 2004-10-20 Roland McGrath <roland@redhat.com>
8 * manual/errno.texi (Error Codes): Add ENOKEY, EKEYEXPIRED,
9 EKEYREVOKED, EKEYREJECTED.
10 * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.3.4): New errlist.
11 * sysdeps/gnu/errlist.c: Regenerated
13 * sysdeps/gnu/errlist-compat.awk: Don't bail if Versions gives a count
14 higher than ERR_MAX reports. Instead, emit a #define ERR_MAX.
15 * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.h): New target.
16 (generated): Add errlist-compat.h.
17 * sysdeps/gnu/errlist.awk: Make output #include <errlist-compat.h> to
18 define ERR_MAX and use that for table size.
20 2004-10-20 Ulrich Drepper <drepper@redhat.com>
22 * sysdeps/unix/sysv/linux/syscalls.list: Add entries for setaltroot,
23 key_add, key_request, and keyctl syscalls.
24 * sysdeps/unix/sysv/linux/Versions: Export them.
26 2004-10-19 Roland McGrath <roland@frob.com>
28 * sysdeps/mach/readonly-area.c: New file.
30 2004-10-19 Ulrich Drepper <drepper@redhat.com>
32 * elf/Versions [ld, GLIBC_PRIVATE]: Add _dl_debug_state.
33 * elf/dl-debug.c (_dl_debug_state): Add rtld_hidden_def.
34 * sysdeps/generic/ldsodefs.h (_dl_debug_state): Don't mark as
35 hidden but use rtld_hidden_proto.
37 2004-10-19 Alfred M. Szmidt <ams@gnu.org>
39 * sysdeps/generic/readonly-area.c (__readonly_str): Renamed to ...
40 (__readonly_area): ... this.
42 2004-10-18 Jakub Jelinek <jakub@redhat.com>
44 * sysdeps/generic/strcpy_chk.c (__strcpy_chk): Speed up by checking
45 destlen only every 4 bytes.
47 2004-10-19 Ulrich Drepper <drepper@redhat.com>
49 * nss/getent.c (hosts_keys): Let inet_pton decide whether the
50 string is an address or not.
52 2004-10-19 Jakub Jelinek <jakub@redhat.com>
54 * elf/dl-addr.c (_dl_addr): Don't look at STT_TLS symbols.
55 Use DL_SYMBOL_ADDRESS to set dli_saddr.
57 * debug/Makefile (catchsegv): Prefix $LIB with a backslash.
59 2004-10-19 Ulrich Drepper <drepper@redhat.com>
61 * debug/Makefile ($(objpfx)catchsegv): To support multilib
62 platforms, use $LIB in path to slibdir.
64 2004-10-19 Jakub Jelinek <jakub@redhat.com>
66 * debug/catchsegv.sh: Update copyright year.
67 Use mktemp to create segv_output file.
69 2004-10-19 Jakub Jelinek <jakub@redhat.com>
71 * include/features.h (__USE_FORTIFY_LEVEL): Enable even with
72 Red Hat gcc4 4.0.0 and above.
74 2004-10-18 Jakub Jelinek <jakub@redhat.com>
76 * elf/dl-libc.c (__libc_dlsym_private, __libc_register_dl_open_hook):
78 (__libc_dlopen_mode): Call __libc_register_dl_open_hook and
79 __libc_register_dlfcn_hook.
80 * dlfcn/Makefile (routines, elide-routines.os): Set.
81 Add rules to build and test tststatic2.
82 * dlfcn/tststatic2.c: New test.
83 * dlfcn/modstatic2.c: New test module.
84 * dlfcn/dladdr.c: Call _dlfcn_hook from libdl.so if not NULL.
85 Define __ prefixed routine in libc.a and in libdl.a just call it.
86 * dlfcn/dladdr1.c: Likewise.
87 * dlfcn/dlclose.c: Likewise.
88 * dlfcn/dlerror.c: Likewise.
89 * dlfcn/dlinfo.c: Likewise.
90 * dlfcn/dlmopen.c: Likewise.
91 * dlfcn/dlopen.c: Likewise.
92 * dlfcn/dlopenold.c: Likewise.
93 * dlfcn/dlsym.c: Likewise.
94 * dlfcn/dlvsym.c: Likewise.
95 * dlfcn/sdladdr.c: New file.
96 * dlfcn/sdladdr1.c: New file.
97 * dlfcn/sdlclose.c: New file.
98 * dlfcn/sdlerror.c: New file.
99 * dlfcn/sdlinfo.c: New file.
100 * dlfcn/sdlopen.c: New file.
101 * dlfcn/sdlsym.c: New file.
102 * dlfcn/sdlvsym.c: New file.
103 * dlfcn/Versions (libdl): Export _dlfcn_hook@GLIBC_PRIVATE.
104 * include/dlfcn.h (DL_CALLER_DECL, DL_CALLER RETURN_ADDRESS): Define.
105 (struct dlfcn_hook): New type.
106 (_dlfcn_hook): New extern decl.
107 (__dlopen, __dlclose, __dlsym, __dlerror, __dladdr, __dladdr1,
108 __dlinfo, __dlmopen, __libc_dlsym_private,
109 __libc_register_dl_open_hook, __libc_register_dlfcn_hook): New
111 (__dlvsym): Use DL_CALLER_DECL.
112 * include/libc-symbols.h: Define libdl_hidden_proto and friends.
114 * malloc/arena.c (_dl_open_hook): Extern decl.
115 (ptmalloc_init): Don't call _dl_addr when dlopened from statically
116 linked programs but don't use brk for them either.
118 2004-10-18 Roland McGrath <roland@redhat.com>
120 * dlfcn/bug-dlsym1.c (main): Remove bogus setenv call.
122 2004-10-18 Ulrich Drepper <drepper@redhat.com>
124 * elf/dl-open.c (dl_open_worker): Avoid dereferencing map in
125 statically linked code if there might none be found.
127 2004-10-06 Maciej W. Rozycki <macro@mips.com>
129 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
130 (__SYSCALL_CLOBBERS): Add "memory".
131 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
132 (__SYSCALL_CLOBBERS): Likewise.
133 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
134 (__SYSCALL_CLOBBERS): Likewise.
136 2004-10-17 Ulrich Drepper <drepper@redhat.com>
138 * include/libc-symbols.h: Define libresolv_hidden_proto and friends.
139 * include/resolv.h: Add libresolv_hidden_proto for symbols defined,
140 used, and exported in libresolv.
141 * resolv/base64.c: Add libresolv_hidden_def.
142 * resolv/gethnamaddr.c: Likewise.
143 * resolv/ns_name.c: Likewise.
144 * resolv/ns_netint.c: Likewise.
145 * resolv/res_comp.c: Likewise.
146 * resolv/res_data.c: Likewise.
147 * resolv/res_debug.c: Likewise.
148 * resolv/res_mkquery.c: Likewise.
149 * resolv/res_query.c: Likewise.
150 * resolv/res_send.c: Likewise.
152 2004-10-15 Jakub Jelinek <jakub@redhat.com>
154 * elf/dl-minimal.c (__chk_fail): New. Add rtld_hidden_def.
155 * sysdeps/unix/sysv/linux/readonly-area.c: New file.
156 * sysdeps/i386/i686/memmove.S (__memmove_chk): Add checking
158 * sysdeps/i386/i686/memcpy.S (__memcpy_chk): Likewise.
159 * sysdeps/i386/i686/mempcpy.S (__mempcpy_chk): Likewise.
160 * sysdeps/i386/i686/memset.S (__memset_chk): Likewise.
161 * sysdeps/i386/i686/memmove-chk.S: New file.
162 * sysdeps/i386/i686/memcpy-chk.S: Likewise.
163 * sysdeps/i386/i686/mempcpy-chk.S: Likewise.
164 * sysdeps/i386/i686/memset-chk.S: Likewise.
165 * sysdeps/generic/strcat-chk.c (__strcat_chk): Don't __chk_fail
166 if exactly fitting into buffer.
167 * sysdeps/generic/strncat-chk.c (__strncat_chk): Likewise.
168 * sysdeps/generic/readonly-area.c: New file.
169 * sysdeps/generic/strncpy-chk.c (__strncpy_chk): Only test
171 * sysdeps/x86_64/memset.S (__memset_chk): Add checking routine.
172 * sysdeps/x86_64/memcpy.S (__memcpy_chk): Likewise.
173 * sysdeps/x86_64/mempcpy.S (__memcpy_chk): Define to __mempcpy_chk.
174 * sysdeps/x86_64/memcpy-chk.S: New file.
175 * sysdeps/x86_64/mempcpy-chk.S: Likewise.
176 * sysdeps/x86_64/memset-chk.S: Likewise.
177 * sysdeps/x86_64/strcpy-chk.S: Likewise.
178 * sysdeps/x86_64/stpcpy-chk.S: Likewise.
179 * argp/argp-xinl.c (__OPTIMIZE__): Define to 1 instead of nothing.
180 * argp/argp-fs-xinl.c (__OPTIMIZE__): Likewise.
181 * debug/tst-chk1.c: New test.
182 * debug/tst-chk2.c: Likewise.
183 * debug/tst-chk3.c: Likewise.
184 * debug/test-strcpy_chk.c: Likewise.
185 * debug/test-stpcpy_chk.c: Likewise.
186 * debug/vsprintf_chk.c (__vsprintf_chk): If flags > 0, request
187 _IO_FLAGS2_CHECK_PERCENT_N. Add libc_hidden_def.
188 * debug/Makefile (routines): Add printf_chk, fprintf_chk, vprintf_chk,
189 vfprintf_chk, gets_chk and readonly-area.
190 (CFLAGS-*_chk.c): Set.
191 (tests): Add tst-chk1, tst-chk2, tst-chk3, test-strcpy_chk and
193 * debug/vprintf_chk.c: New file.
194 * debug/printf_chk.c: Likewise.
195 * debug/vfprintf_chk.c: Likewise.
196 * debug/fprintf_chk.c: Likewise.
197 * debug/gets_chk.c: Likewise.
198 * debug/chk_fail.c (__chk_fail): Add libc_hidden_def.
199 * debug/snprintf_chk.c (__snprintf_chk): Fix order of arguments
200 passed to __vsnprintf_chk.
201 * debug/Versions (libc): Export __printf_chk, __fprintf_chk,
202 __vprintf_chk, __vfprintf_chk and __gets_chk @GLIBC_2.3.4.
203 * debug/vsnprintf_chk.c (__vsnprintf_chk): Don't call
204 __vsnprintf, instead create a temporary file with
205 _IO_strn_jumps jumptable. If flags > 0, request
206 _IO_FLAGS2_CHECK_PERCENT_N. Add libc_hidden_def.
207 * libio/Makefile (headers): Add bits/stdio2.h.
208 * libio/stdio.h: Include <bits/stdio2.h> if __USE_FORTIFY_LEVEL.
209 (sprintf, snprintf, vsprintf, vsnprintf): Remove defines.
210 * libio/strfile.h (_IO_strnfile): New type.
211 (_IO_strn_jumps): New extern.
212 * libio/vsnprintf.c (_IO_strnfile): Remove.
213 (_IO_strn_jumps): Remove static.
214 * libio/bits/stdio2.h: New file.
215 * libio/vswprintf.c (_IO_strnfile): Rename type to...
216 (_IO_wstrnfile): ...this. Adjust all uses.
217 * libio/libio.h (_IO_FLAGS2_CHECK_PERCENT_N): Define.
218 * stdio-common/vfprintf.c (STR_LEN): Define.
219 (vfprintf): Add readonly_format variable.
220 Handle _IO_FLAGS2_CHECK_PERCENT_N.
221 (buffered_vfprintf): Copy _flags2.
222 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
223 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
224 __vfprintf_chk): New prototypes.
225 (__vsprintf_chk, __vsnprintf_chk): Add libc_hidden_proto.
226 * include/string.h (__memcpy_chk, __memmove_chk, __mempcpy_chk,
227 __memset_chk, __strcpy_chk, __stpcpy_chk, __strncpy_chk, __strcat_chk,
228 __strncat_chk): New prototypes.
229 * include/bits/string3.h: New file.
230 * include/sys/cdefs.h (__chk_fail): Add libc_hidden_proto
231 and rtld_hidden_proto.
232 * string/Makefile (headers): Add bits/string3.h.
233 * string/bits/string3.h (bcopy, bzero): New defines.
234 (memset, memcpy, memmove, strcpy, strncpy, strcat, strncat): Change
235 macros so that inlines are used only if unknown destination size
236 or side-effects in destination argument.
237 (mempcpy, stpcpy): Likewise. Protect with #ifdef __USE_GNU.
239 2004-09-16 Ulrich Drepper <drepper@redhat.com>
241 * debug/Makefile (routines): Add *_chk.
242 * debug/Versions (libc): Export __chk_fail, __memcpy_chk,
243 __memmove_chk, __mempcpy_chk, __memset_chk, __stpcpy_chk,
244 __strcat_chk, __strcpy_chk, __strncat_chk, __strncpy_chk,
245 __sprintf_chk, __vsprintf_chk, __snprintf_chk, __vsnprintf_chk
247 * debug/chk_fail.c: New file.
248 * debug/snprintf_chk.c: Likewise.
249 * debug/sprintf_chk.c: Likewise.
250 * debug/vsnprintf_chk.c: Likewise.
251 * debug/vsprintf_chk.c: Likewise.
252 * include/features.h (_FORTIFY_SOURCE): Document, handle.
253 (__USE_FORTIFY_LEVEL): Define.
254 (__GNUC_PREREQ): Move to earlier location.
255 * include/sys/cdefs.h (__chk_fail): New prototype.
256 * libio/bits/stdio.h (sprintf, vsprintf, snprintf, vsnprintf):
257 Define if __USE_FORTIFY_LEVEL.
258 * misc/sys/cdefs.h (__bos, __bos0): Define.
259 * string/string.h: Include <bits/string3.h> if __USE_FORTIFY_LEVEL.
260 * bits/string/string3.h: New header.
261 * sysdeps/generic/memcpy_chk.c: New file.
262 * sysdeps/generic/memmove_chk.c: Likewise.
263 * sysdeps/generic/mempcpy_chk.c: Likewise.
264 * sysdeps/generic/memset_chk.c: Likewise.
265 * sysdeps/generic/stpcpy_chk.c: Likewise.
266 * sysdeps/generic/strcat_chk.c: Likewise.
267 * sysdeps/generic/strcpy_chk.c: Likewise.
268 * sysdeps/generic/strncat_chk.c: Likewise.
269 * sysdeps/generic/strncpy_chk.c: Likewise.
271 2004-10-17 Roland McGrath <roland@frob.com>
273 * manual/memory.texi (Page Lock Functions): Typo fix.
274 Reported by Carlos Maziero <maziero@ppgia.pucpr.br>
276 2004-10-16 Alfred M. Szmidt <ams@kemisten.nu>
278 * sysdeps/mach/hurd/Makefile (link-libc-static): Use
279 `$(static-gnulib') instead of `$(gnulib)'.
281 2004-10-17 Ulrich Drepper <drepper@redhat.com>
283 * sunrpc/rpc_clntout.c: Avoid including rcsid into binary.
284 * sunrpc/rpc_cout.c: Likewise.
285 * sunrpc/rpc_hout.c: Likewise.
286 * sunrpc/rpc_main.c: Likewise.
287 * sunrpc/rpc_parse.c: Likewise.
288 * sunrpc/rpc_sample.c: Likewise.
289 * sunrpc/rpc_scan.c: Likewise.
290 * sunrpc/rpc_svcout.c: Likewise.
291 * sunrpc/rpc_tblout.c: Likewise.
292 * sunrpc/rpc_util.c: Likewise.
294 2004-10-15 Jakub Jelinek <jakub@redhat.com>
296 * sysdeps/unix/sysv/linux/i386/sysdep.h (PUSHARGS_6, DOARGS_6,
297 POPARGS_6, _PUSHARGS_6, _DOARGS_6, _POPARGS_6): Define.
298 * sysdeps/unix/sysv/linux/i386/syscall.S (syscall): Handle 6 argument
301 2004-10-15 Ulrich Drepper <drepper@redhat.com>
303 * nscd/nscd.h (_PATH_NSCD_PASSWD_DB): Move to /var/db.
304 (_PATH_NSCD_GROUP_DB): Likewise.
305 (_PATH_NSCD_HOSTS_DB): Likewise.
306 (_PATH_NSCD_XYZ_DB_TMP): New #define, point to /var/run.
307 * nscd/connections.c (nscd_init): Non-persistent database files
308 are created with the _PATH_NSCD_XYZ_DB_TMP path.
309 * nscd/nscd.init: Create /var/db/nscd if necessary.
311 2004-10-15 Richard Henderson <rth@redhat.com>
313 * sysdeps/unix/sysv/linux/alpha/register-dump.h: New file.
314 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h (SIGCONTEXT): Add
315 _code argument, pass sigcontext by pointer.
316 (SIGCONTEXT_EXTRA_ARGS): Likewise.
317 (GET_PC, GET_FRAME, GET_STACK): Expect ctx as pointer.
319 2004-10-14 Richard Henderson <rth@redhat.com>
321 * sysdeps/alpha/dl-machine.h (elf_machine_rela,
322 elf_machine_rela_relative, elf_machine_lazy_rel): Mark auto
325 * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use prototype
327 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ADJTIME): If
328 __ASSUME_TIMEVAL64, define __adjtime directly rather than
331 2004-10-14 Ulrich Drepper <drepper@redhat.com>
333 * nscd/Makefile: When using compilers without -fpie support, also
334 link with -lselinux if necessary.
335 Patch by Arkadiusz Miskiewicz <arekm@pld-linux.org>.
337 * nscd/connections.c (nscd_init): Remove file if not persistent
338 and not shared. Patch by Jerome Borsboom <j.borsboom@erasmusmc.nl>.
340 2004-10-14 Jakub Jelinek <jakub@redhat.com>
342 * sysdeps/unix/sysv/linux/i386/setresuid.c: Handle
343 defined __NR_setresuid32 && !defined __NR_setresuid.
344 * sysdeps/unix/sysv/linux/i386/setresgid.c: Handle
345 defined __NR_setresgid32 && !defined __NR_setresgid.
347 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
348 __signbitl, sqrtf, sqrt, sqrtl, fdim, fdimf): Use __NTH macro.
350 * sysdeps/generic/errno-loc.c: Don't undef #errno
351 if RTLD_PRIVATE_ERRNO.
352 * include/errno.h (__errno_location): If RTLD_PRIVATE_ERRNO,
353 add attribute_hidden.
355 * dlfcn/dlinfo.c (dlinfo_doit): Replace iteration over GL(dl_loaded)
356 chain with iteration over all namespaces' _ns_loaded chains.
357 * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_preferred_address):
359 * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Likewise.
361 * elf/rtld.c (_dl_start): Fix one last dl_loaded.
362 * elf/dl-load.c (_dl_map_object_from_fd): Avoid definition of
363 label when it is not needed.
364 * elf/dl-close.c (_dl_close): Typo: & -> &&.
366 2004-10-12 Jakub Jelinek <jakub@redhat.com>
368 * sysdeps/generic/segfault.c: Include alloca.h and stdint.h.
369 Don't include frame.h.
370 (CURRENT_STACK_FRAME, INNER_THAN, ADVANCE_STACK_FRAME): Remove.
371 (catch_segfault): Use backtrace function.
373 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Fix comment.
374 * sysdeps/unix/sysv/linux/ia64/register-dump.h: New file.
375 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h (GET_PC): Return sc_ip
378 2004-10-13 Ulrich Drepper <drepper@redhat.com>
380 Add support for namespaces in the dynamic linker.
381 * dlfcn/Makefile (libdl-routines): Add dlmopen.
382 * dlfcn/Versions [libdl, GLIBC_2.3.4]: Add dlmopen.
383 * dlfcn/dlfcn.h: Define Lmid_t, LM_ID_BASE, and LM_ID_NEWLM.
384 Declare dlmopen. Document RTLD_DI_LMID.
385 * dlfcn/dlinfo.c: Handle RTLD_DI_LMID.
386 * dlfcn/dlmopen.c: New file.
387 * dlfcn/dlopen.c: Pass new parameter to _dl_open.
388 * dlfcn/dlopenold.c: Likewise.
389 * elf/dl-addr.c: Adjust for removal of GL(dl_loaded).
390 * elf/dl-caller.c: Likewise.
391 * elf/dl-close.c: Likewise.
392 * elf/dl-conflict.c: Likewise.
393 * elf/dl-debug.c: Likewise.
394 * elf/dl-lookup.c: Likewise.
395 * elf/dl-sym.c: Likewise.
396 * elf/dl-version.c: Likewise.
397 * elf/do-lookup.h: Likewise.
398 * elf/rtld.c: Likewise.
399 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
400 * elf/dl-depsc: Likewise. Add new parameter to _dl_map_object.
401 * elf/dl-fini.c: Call destructors in all namespaces.
402 * elf/dl-iteratephdr.c: Compute total nloaded. Adjust for removal of
404 * elf/dl-libc.c: Pass new parameter to _dl_open. Adjust for removal
406 * elf/dl-load.c (_dl_map_object_from_fd): Don't load ld.so a second
407 time. Reuse the one from the main namespace in all others.
408 Pass new parameter to _dl_new_object.
409 Adjust for removal of GL(dl_loaded).
410 * elf/dl-object.c: Take new parameter. Use it to initialize l_ns.
411 Adjust for removal of GL(dl_loaded).
412 * elf/dl-open.c (_dl_open): Take new parameter.
413 Adjust for removal of GL(dl_loaded).
414 * elf/dl-support.c: Replace global _dl_loaded etc variables with
416 * include/dlfcn.h: Adjust prototype of _dl_open.
417 Define __LM_ID_CALLER.
418 * include/link.h: Add l_real, l_ns, and l_direct_opencount elements.
419 * sysdeps/generic/dl-tls.c: Bump TLS_STATIC_SURPLUS. Since libc is
420 using TLS we need memory appropriate to the number of namespaces.
421 * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace _dl_loaded,
422 _dl_nloaded, _dl_global_scope, _dl_main_searchlist, and
423 _dl_global_scope_alloc with _dl_ns element. Define DL_NNS.
424 Adjust prototypes of _dl_map_object and member in rtld_global_ro.
425 * malloc/malloc.c: Include <dlfcn.h>.
426 * malloc/arena.c (ptmalloc_init): If libc is not in primary namespace,
428 * elf/Makefile: Add rules to build and run tst-dlmopen1 and
430 * elf/tst-dlmopen1.c: New file.
431 * elf/tst-dlmopen1mod.c: New file.
432 * elf/tst-dlmopen2.c: New file.
434 * elf/dl-close.c: Improve reference counting by tracking direct loads.
435 * elf/dl-lookup.c (add_dependency): Likewise.
436 * elf/dl-open.c (dl_open_worker): Likewise.
437 * elf/rtld.c (dl_main): Likewise.
439 2004-09-09 GOTO Masanori <gotom@debian.or.jp>
442 * elf/dl-close.c: Count down l_opencount to check not only for
443 l_reldeps, but also l_initfini.
445 2004-10-13 Ulrich Drepper <drepper@redhat.com>
447 * elf/dl-close.c (_dl_close): Update bug reporting instructions.
449 2004-10-11 Ulrich Drepper <drepper@redhat.com>
451 * timezone/asia: Update from tzdata2004e.
452 * timezone/southamerica: Likewise.
453 * timezone/private.h: Update from tzcode2004e.
454 * timezone/zdump.c: Likewise.
456 * stdio-common/vfscanf.c: Add support for reading localized
457 digits. Patch mainly by Hamed Malek <hamed@bamdad.org>.
459 * resolv/res_init.c (res_thread_freeres): Reset _res.options.
462 * resolv/res_send.c (send_dg): Use nonblocking sockets. Add
463 appropriate poll/select calls and restart operation if necessary.
466 * elf/tst-dlopenrpath.c (do_test): Enable code which was disabled
469 * elf/dl-sym.c (do_sym): Avoid using global variable.
471 * elf/dl-addr.c (_dl_addr): Really use match everywhere.
473 2004-10-09 Andreas Schwab <schwab@suse.de>
475 * sysdeps/m68k/memcopy.h (WORD_COPY_BWD): Remove use of cast as
478 * sysdeps/m68k/fpu/bits/mathinline.h: Remove __THROW from inline
481 2004-10-07 Andreas Schwab <schwab@suse.de>
483 * misc/sys/uio.h: Change __vector to __iovec to avoid clash with
486 2004-10-06 Alan Modra <amodra@bigpond.net.au>
488 * gmon/Makefile (CFLAGS-mcount.c): Move before inclusion of "Rules".
489 * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-mcount.c): Add
491 * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): New macros.
492 (CALL_MCOUNT): Replace with a gas macro implementation.
493 (EALIGN): Delete PROF version.
494 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Invoke CALL_MCOUNT.
495 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Likewise.
496 * sysdeps/powerpc/powerpc64/bsd-setjmp.S: Likewise.
497 * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
498 * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
499 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
500 * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
501 * sysdeps/powerpc/powerpc64/strchr.S: Likewise.
502 * sysdeps/powerpc/powerpc64/strcmp.S: Likewise.
503 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
504 * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
505 * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
506 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
507 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
508 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
509 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
510 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
511 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
512 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
513 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
514 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
515 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
516 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
517 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
518 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
519 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
520 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
522 * sysdeps/powerpc/powerpc64/setjmp-common.S: Add extra entry point
524 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Use it.
525 * sysdeps/powerpc/powerpc64/bsd-setjmp.S: Likewise.
527 2004-10-06 Ulrich Drepper <drepper@redhat.com>
529 * resolv/res_mkquery.c (res_nmkquery): Reject randombits value if
530 low 16 bits are zero.
532 2004-10-06 Jakub Jelinek <jakub@redhat.com>
534 * posix/tst-getaddrinfo2.c: Include stdlib.h and string.h.
535 (do_test): Use %p instead of 0x%08X to print a pointer.
537 * malloc/malloc.c: Include stdio-common/_itoa.h.
539 2004-10-05 Ulrich Drepper <drepper@redhat.com>
541 * elf/rtld.c (dl_main): Use _dl_debug_printf instead of _dl_printf
544 2004-10-05 Jakub Jelinek <jakub@redhat.com>
546 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Include dl-sysdep.h.
547 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
549 2004-10-05 Ulrich Drepper <drepper@redhat.com>
551 * grp/initgroups.c: Remove duplicate group IDs.
552 * grp/compat-initgroups.c: Likewise.
553 * nscd/initgrcache.c: Likewise.
555 2004-10-05 Jakub Jelinek <jakub@redhat.com>
557 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (__sysconf): Return 200112L
558 for _SC_CPUTIME or _SC_THREAD_CPUTIME.
560 * nscd/Makefile (nscd-cflags): Set to -DIS_IN_nscd=1, plus
561 -fpie if building PIE.
562 (CFLAGS-*.c): Use it.
564 * nscd/Makefile (relro-LDFLAGS): Add -Wl,-z,now if have-z-relro.
565 ($(objpfx)nscd): Add $(relro-LDFLAGS).
567 * sysdeps/unix/sysv/linux/i386/sysconf.c: Include hp-timing.h.
568 (__sysconf): Return -1 for _SC_CPUTIME or _SC_THREAD_CPUTIME if
571 2004-10-05 Ulrich Drepper <drepper@redhat.com>
573 * nscd/Makefile (distribute): Remove TODO.
574 * nscd/TODO: Removed.
576 2004-10-04 Ulrich Drepper <drepper@redhat.com>
578 * nscd/gai.c: Define __no_netlink_support if NEED_NETLINK is
579 defined and __ASSUME_NETLINK_SUPPORT is zero.
580 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gai.c): Add
583 * malloc/mtrace.pl: Avoid calling location unless it is needed for
584 output. Patch by Edward Bishop <binutils@gmail.com>.
586 * nscd/Makefile (CFLAGS-gai.c): Add -fpie.
588 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
590 * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c
591 (clock_getcpuclockid): Add missing retval.
593 * sysdeps/unix/sysv/linux/ia64/sysconf.c (linux_sysconf): Fix a typo.
595 2004-10-04 Roland McGrath <roland@redhat.com>
597 * include/errno.h [RTLD_PRIVATE_ERRNO] (errno): Rename the real symbol
599 * sysdeps/generic/errno.c [RTLD_PRIVATE_ERRNO] (rtld_errno): Define it,
600 and don't define any other errno names.
601 * sysdeps/unix/alpha/sysdep.h [RTLD_PRIVATE_ERRNO]: Use rtld_errno in
603 * sysdeps/unix/i386/sysdep.S: Likewise.
604 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
605 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
606 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
607 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
608 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
609 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
610 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
611 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
612 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
613 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
614 * sysdeps/unix/x86_64/sysdep.S: Likewise.
616 * sysdeps/generic/errno.c [! USE___THREAD] (errno): Use `nocommon'
617 attribute instead of `section'.
619 2004-10-04 Ulrich Drepper <drepper@redhat.com>
621 * sysdeps/unix/sysv/linux/ia64/sysconf.c: New file.
622 * sysdeps/unix/sysv/linux/ia64/Dist: Add has_cpuclock.c.
623 * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c: Move actual
625 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: ...here. New file.
626 * sysdeps/unix/sysv/linux/i386/sysconf.c: Add dynamic check for
627 _SC_CPUTIME and _SC_THREAD_CPUTIME.
629 * nscd/connections.c (start_threads): Use sysconf in case
630 _POSIX_CLOCK_SELECTION or _POSIX_MONOTONIC_CLOCK is not greater zero.
632 * nscd/Makefile (nscd-modules): Add gai.
633 * nscd/gai.c: New file.
634 * nscd/nscd.c: Remove getaddrinfo stub definition.
636 * assert/assert.h: Give up on using __builtin_expect.
638 * elf/rtld.c (dl_main): Only skip => output in ldd mode if both
639 strings are identical.
641 2004-03-18 Jakub Jelinek <jakub@redhat.com>
643 * malloc/arena.c (aligned_heap_area): New variable.
644 (new_heap): If aligned_heap_area != NULL, attempt to use that
645 first. If HEAP_MAX_SIZE << 1 area is already HEAP_MAX_SIZE bytes
646 aligned, remember the second half in aligned_heap_area.
647 (delete_heap): Clear aligned_heap_area if deleting the area right
648 before aligned_heap_area.
650 2004-10-03 Juerg Billeter <j@bitron.ch>
652 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Return -1 if nscd
653 can't be used. [BZ #424]
655 2004-10-03 Ulrich Drepper <drepper@redhat.com>
657 Dynamically create new threads if necessary.
658 * nscd/connections.c (fd_ready): If no thread available for processing
659 the request, create a new one unless the limit is reached.
660 (start_threads): Check errors from pthread_create.
661 * nscd/nscd.h: Declare max_nthreads.
662 * nscd/nscd_conf.c: Parse max-nthreads entry.
663 * nscd/nscd.conf: Add max-threads entry.
664 * nscd/nscd_stat.c: Print current and maximum number of threads.
666 Implement paranoia mode.
667 * nscd/connections.c (nscd_init): Mark database and socket descriptors
669 (restart): New function.
670 (restart_p): New function.
671 (nscd_run): Add missing descrement of nready in case readylist is
673 (main_loop_poll): Call restart_p and restart.
674 (main_loop_epoll): Likewise.
675 (begin_drop_privileges): Save original UID and GID.
676 * nscd/nscd.c: Define new variables paranoia, restart_time,
677 restart_interval, oldcwd, old_gid, old_uid.
678 (main): Disable paranoia mode if we are not forking.
679 (check_pid): When re-execing, the PID file contains the same PID as
680 the current process. Do not fail in this case.
681 * nscd/nscd.conf: Add paranoia and restart-interval entries.
682 * nscd/nscd.h: Define RESTART_INTERVAL. Declare new variables.
683 * nscd/nscd_conf.c: Parse paranoia and restart-internal configurations.
684 * nscd/nscd_stat.c: Print paranoia and restart-internal values.
686 * nscd/connections.c: Implement alternative loop for main thread
688 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
689 (CFLAGS-connections.c): Add -DHAVE_EPOLL.
691 2004-10-02 Ulrich Drepper <drepper@redhat.com>
693 * nscd/Makefile (CFLAGS-initgrcache.c): Add to CFLAGS-* variables,
694 don't replace old content.
696 * nscd/connections.c: Rewrite handling of incoming connections. All
697 are handled by one thread which then hands off the descriptors for the
698 real work to the worker threads.
699 * nscd/Makefile: Link nscd with librt.
701 * nscd/selinux.c: Pretty printing.
703 * nscd/dbg_log.c (dbg_log): Don't add unnecessary newline to
704 output. Let syslog do the formatting if debug_level == 0.
706 * nscd/nscd_helper.c (get_mapping): No need to check timestamp if
707 nscd_certainly_running is nonzero.
709 2004-10-02 Simon Josefsson <jas@extundo.com>
712 * sysdeps/generic/memmem.c [!_LIBC]: Define __builtin_expect, to
713 make the file usable inside gnulib.
715 2004-10-01 Ulrich Drepper <drepper@redhat.com>
717 * malloc/malloc.c (public_vALLOc): Add missing use of hooks.
718 (public_pVALLOc): Likewise.
720 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Always add the
721 group the caller provided unless there is a real problem.
723 * posix/bug-glob1.c (prepare): Fix creation of symlink.
725 2004-09-30 Ulrich Drepper <drepper@redhat.com>
727 * posix/Makefile: Add rules to build and run bug-glob1.
728 * posix/bug-glob1.c: New file.
730 * iconv/iconv_prog.c (main): Print progress information to stderr.
732 * nscd/nscd.c (termination_handler): Reset timestamp so that
733 clients immediately stop using the database.
735 * nscd/nscd-client.h (__nscd_get_map_ref): Drop volatile from last
737 (__nscd_drop_map_ref): Change second parameter to be a reference to
738 a variable. Update variable when cycle count changed.
739 * nscd/nscd_helper.c (__nscd_get_map_ref): Remove volatile here, too.
740 * nscd/nscd_getai.c: Correctly use __nscd_drop_map_ref. Reinitialize
741 all variables and avoid memory leak in case of retries.
742 * nscd/nscd_getgr_r.c: Likewise.
743 * nscd/nscd_gethst_r.c: Likewise.
744 * nscd/nscd_getpw_r.c: Likewise.
745 * nscd/nscd_initgroups.c: Likewise.
747 * nscd/nscd.h: Add declaration of addinitgroups and
750 2004-09-30 Andreas Jaeger <aj@suse.de>
752 * nscd/Makefile (CFLAGS-nscd_initgroups.c): Set to -fpie.
753 (CFLAGS-initgrcache.c): Set to -fexceptions.
755 2004-09-29 Ulrich Drepper <drepper@redhat.com>
757 * sysdeps/generic/glob.c (glob_in_dir): Don't blindly trust
758 readdir results; for symlinks or files of unknown type check using
759 stat whether the file exists.
761 * posix/tst-gnuglob.c (find_file): Handle leading "./". Fix
762 recognition of files.
764 2004-09-29 Jakub Jelinek <jakub@redhat.com>
766 * time/tzfile.c (tzfile_mtime): New variable.
767 (__tzfile_read): Reread the file if mtime is different.
769 2004-09-28 Jakub Jelinek <jakub@redhat.com>
771 * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf, __fdim, fdimf, fdim):
773 * sysdeps/powerpc/fpu/bits/mathinline.h (fdim, fdimf): Likewise.
774 * sysdeps/sparc/fpu/bits/mathinline.h (fdim, fdimf): Likewise.
776 2004-09-29 Ulrich Drepper <drepper@redhat.com>
778 * nscd/nscd_gethst_r.c (nscd_gethst_r): Use correct constant for
779 testing result of __nscd_get_map_ref.
781 2004-09-29 Jakub Jelinek <jakub@redhat.com>
783 * sysdeps/i386/fpu/s_fdim.S (__fdim): Handle +inf/+inf.
784 * sysdeps/i386/fpu/s_fdimf.S (__fdimf): Likewise.
785 * sysdeps/i386/fpu/s_fdiml.S (__fdiml): Likewise.
787 004-09-29 Ulrich Drepper <drepper@redhat.com>
789 * grp/initgroups.c: Move compat_call implementation...
790 * grp/compat-initgroups.c: ...to here. New file.
791 * grp/Makefile (distribute): Add compat-initgroups.c.
792 (CFLAGS-initgroups.c): Add -DUSE_NSCD=1.
793 * mscd/initgrcache.c: New file.
794 * nscd/nscd_initgroups.c: New file.
795 * nscd/Makefile (routines): Add nscd_initgroups.
796 (nscd-modules): Add initgrcache.
797 * nscd/cache.c (prune_cache): Add support for INITGROUPS entries.
798 * nscd/connections.c: Handle INITGROUPS requests.
799 * nscd/nscd-client.h: Define INITGROUPS, initgr_response_header.
800 Add initgrdata element to struct datahead. Fix typo in comment.
801 * nscd/nscd_proto.h: Declare __nscd_getgrouplist. Fix parameter
802 type in __nscd_getgrgrid_r.
803 * nscd/selinux.c (perms): Add INITGROUPS entry.
805 * nscd/nscd_getai.c: No need to include <sys/mman.h>.
807 * sunrpc/get_myaddr.c (get_myaddress): Account for interfaces without
809 * sunrpc/pmap_clnt.c (__get_myaddress): Likewise.
810 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
811 * sunrpc/clnt_udp.c (is_network_up): Likewise.
813 * nscd/nscd.c: Define getaddrinfo hidden so that it is never found
816 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (si_segvflags):
817 Renamed from si_flags due to conflict with si_flags from <elf.h>.
819 2004-09-28 Ulrich Drepper <drepper@redhat.com>
821 * nscd/nscd_getai.c: Use NO_MAPPING instead of MAP_FAILED for test
822 of failing __nscd_get_map_ref. Fix a few typos.
824 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Make sure
825 SIGSETXID is not blocked.
826 * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Likewise.
827 * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
828 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
829 * sysdeps/generic/sigfillset.c (sigfillset): Don't set SIGSETXID.
831 * sunrpc/get_myaddr.c (get_myaddress): Fix test for failing
833 * sunrpc/pmap_clnt.c (__get_myaddress): Likewise.
834 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
835 * sunrpc/Makefile (xtests): Add tst-getmyaddr.
836 * sunrpc/tst-getmyaddr.c: New file.
838 * malloc/arena.c (ptmalloc_init): Allow MALLOC_CHECK_==0 to
839 disable all checking.
841 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (si_flags): Add
842 support to get this value.
844 2004-09-28 Jakub Jelinek <jakub@redhat.com>
846 * io/utime.h (utime): Allow second argument to be NULL.
848 2004-09-28 Ulrich Drepper <drepper@redhat.com>
850 * sysdeps/posix/getaddrinfo.c (gaih_inet): If NAME is a numerical IP
851 address and AI_CANONNAME is set, return copy of NAME as ai_canonname.
853 2004-09-27 Andreas Jaeger <aj@suse.de>
855 * sysdeps/i386/dl-machine.h (elf_machine_rela_relative): Replace
856 static inline by auto inline, add always_inline attribute.
857 (elf_machine_rel): Likewise.
858 (elf_machine_rela): Likewise.
859 (elf_machine_lazy_rel): Likewise.
860 (elf_machine_lazy_rela): Likewise.
861 (elf_machine_rel_relative): Likewise.
863 2004-09-27 Ulrich Drepper <drepper@redhat.com>
865 * sunrpc/xdr_intXX_t.c: Add xdr_quad_t and xdr_u_quad_t aliases.
866 * sunrpc/rpc/xdr.h: Declare xdr_quad_t and xdr_u_quad_t.
867 * sunrpc/rpc_parse.c (get_type): Use "quad_t" for TOK_HYPER.
868 Otherwise isvectordef will loop infinitely if typedef hyper int64_t
870 (unsigned_dec): Use "u_quad_t" for similar reasons.
871 * sunrpc/Versions: Export xdr_quad_t and xdr_u_quad_t.
873 2004-09-27 Roland McGrath <roland@redhat.com>
875 * sysdeps/generic/bits/waitstatus.h (__WIFSIGNALED): Simplify bit
876 twiddling in last change.
878 * posix/tst-waitid.c (do_test): Add tests for waitpid with WCONTINUED.
881 * posix/sys/wait.h [__WIFCONTINUED] (WIFCONTINUED): New macro.
882 * stdlib/stdlib.h [__WIFCONTINUED] (WIFCONTINUED): New macro.
883 * sysdeps/generic/bits/waitstatus.h (__W_CONTINUED): New macro.
884 [WCONTINUED] (__WIFCONTINUED): New macro.
885 (__WIFSIGNALED): Rewritten to exclude __W_CONTINUED value, and have no
888 * sysdeps/unix/sysv/linux/waitid.c (do_waitid): Add fifth argument to
889 all three syscall uses, not just one!
891 2004-09-26 Richard Henderson <rth@redhat.com>
893 * sysdeps/alpha/alphaev6/memcpy.S: Mark .prologue.
894 * sysdeps/unix/alpha/sysdep.h (LEAF, ENTRY): Align entry points
895 to 16 byte boundaries.
897 2004-09-26 Ulrich Drepper <drepper@redhat.com>
899 * elf/readlib.c (process_file): Before complaining about too-short
900 file, check that it potentially be an ELF file. Also complain about
901 empty files. [BZ #151].
903 * scripts/test-installation.pl: Fix ld.so recognition for new
904 LD_TRACE_LOADED_OBJECTS output format.
905 Patch by <jsberg04+computing.glibc@ftml.net> [BZ #407].
907 * elf/dl-support.c (_dl_non_dynamic_init): Fix cleaning of
908 environment. [BZ #384]
910 * sunrpc/clnt_udp.c (is_network_up): Use getifaddrs instead of ioctl.
911 * sunrpc/get_myaddr.c (get_myaddress): Likewise.
912 * sunrpc/pmap_clnt.c (__get_myaddress): Likewise.
913 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise. Change interface
914 to avoid buffer overrun and remove now useless parameters.
915 (clnt_broadcast): Adjust caller. [BZ #381].
917 * sysdeps/generic/s_fdim.c: Handle +inf/+inf
918 * sysdeps/generic/s_fdimf.c: Likewise.
919 * sysdeps/generic/s_fdiml.c: Likewise.
920 * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
921 * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
922 * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
923 * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
924 * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
925 * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
926 * math/libm-test.inc (fdim_test): Add test case. [BZ #376].
928 * sysdeps/generic/bits/types.h: Fix __SQUAD_TYPE and __UQUAD_TYPE
929 for compilers without __GLIBC_HAVE_LONG_LONG. [BZ #362]
931 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Remove incorrect
932 requirement on socktype and protocol.
933 (gaih_inet): If numeric port number is given, return records for all
934 possible socket types.
935 * posix/tst-getaddrinfo2.c: New file.
936 * posix/Makefile (tests): Add tst-getaddrinfo2. [BZ #358]
938 2004-09-25 Ulrich Drepper <drepper@redhat.com>
940 * locale/loadlocale.c (_nl_intern_locale_data): Recognize LC_CTYPE
941 data where _nl_value_type_LC_CTYPE does not contain the type
942 information. Add range checks.
943 Reported by John Lumby <johnlumby@hotmail.com> [BZ #356].
945 * libio/vasprintf.c (_IO_vasprintf): Fix condition to decide
946 whether to realloc or not.
947 Reported by Pavel Kankovsky <peak@argo.troja.mff.cuni.cz> [BZ #346].
949 * intl/dcigettext.c (DCIGETTEXT): Protect tfind/tsearch calls.
950 * intl/dcigettext.c (_nl_find_msg): Call _nl_load_domain also if
952 * intl/finddomain.c (_nl_find_domain): Likewise.
953 * intl/loadmsgcat.c (_nl_load_domain): Set decided to 1 only once we
954 are done. First set to -1 to signal initialization is ongoing.
955 Protect against concurrent callers with recursive lock.
956 * intl/finddomain.c (_nl_find_domain): Protect calls to
957 _nl_make_l10nflist. [BZ #322]
959 * sysdeps/posix/getaddrinfo.c (getaddrinfo): If determinination of
960 source address fails, initialized source_addr_len field so that
961 duplicate address recognition does not copy junk.
963 2004-09-25 Jakub Jelinek <jakub@redhat.com>
965 * sysdeps/unix/sysv/linux/i386/setuid.c (__setuid): Remove second
968 2004-09-22 Andreas Schwab <schwab@suse.de>
970 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Adjust whitespace.
972 2004-09-24 Ulrich Drepper <drepper@redhat.com>
974 * misc/daemon.c (daemon): Don't succeed if /dev/null cannot be
977 * nis/ypclnt.c (do_ypcall): Add one missing unlock. Simplify the
980 * misc/daemon.c (daemon): Define errno in case /dev/null is not
983 * nis/ypclnt.c (yp_bind_file): Optimize a bit. Minimal cleanups.
985 2004-09-23 Andreas Jaeger <aj@suse.de>
987 * locale/weight.h (findidx): Remove static, it's not supported
988 anymore with GCC 4.0 in a block scope.
989 * locale/weightwc.h (findidx): Likewise.
990 * posix/regcomp.c (seek_collating_symbol_entry): Likewise.
991 (lookup_collation_sequence_value): Likewise.
992 (build_range_exp): Likewise.
993 (build_collating_symbol): Likewise.
994 * iconv/iconvconfig.c (write_output): Likewise.
995 * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
997 * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Remove
998 static, add always_inline attribute.
999 (elf_machine_rela): Likewise.
1000 (elf_machine_lazy_rel): Likewise.
1002 * elf/dynamic-link.h (elf_get_dynamic_info): Make static dependend
1003 on !RESOLVE so that it's not defined in local scope.
1005 2004-09-23 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1007 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL_NCS): Define.
1009 2004-09-23 Thorsten Kukuk <kukuk@suse.de>
1011 * sysdeps/unix/sysv/linux/sys/mount.h: Sync MS_RMT_MASK flag
1012 and BLK* ioctls with linux kernel headers.
1014 2004-09-23 Ulrich Drepper <drepper@redhat.com>
1016 * sysdeps/generic/bits/dlfcn.h: Add RTLD_DEEPBIND.
1017 * elf/dl-object.c (_dl_new_object): Add new parameter mode. If mode
1018 has RTLD_DEEPBIND set add local searchlist before global scope.
1019 * sysdeps/generic/ldsodefs.h (_dl_new_object): Adjust prototype.
1020 * elf/rtld.c: Adjust callers of _dl_new_object.
1021 * elf/dl-load.c: Likewise.
1022 (_dl_map_object_from_fd): If RTLD_DEEPBIND is used, don't do anything
1024 * elf/dl-open.c (dl_open_writer): Pass RTLD_DEEPBIND flag on to
1025 _dl_map_object_deps.
1026 * elf/tst-deep1.c: New file.
1027 * elf/tst-deep1mod1.c: New file.
1028 * elf/tst-deep1mod2.c: New file.
1029 * elf/tst-deep1mod3.c: New file.
1030 * elf/Makefile: Add rules to build and run new tests.
1032 * elf/dl-deps.c: Pretty printing.
1034 2004-09-23 Jakub Jelinek <jakub@redhat.com>
1036 * sysdeps/unix/alpha/sysdep.h (inline_syscall[0-6]): Change name
1037 argument to numbers from syscall names.
1038 (INLINE_SYSCALL1): Pass __NR_##name to inline_syscall##nr.
1039 (INTERNAL_SYSCALL_NCS): Renamed from...
1040 (INTERNAL_SYSCALL_1): ... this. Use INTERNAL_SYSCALL_NCS.
1041 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
1042 (INTERNAL_SYSCALL_NCS): Define.
1043 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1044 (INTERNAL_SYSCALL_NCS): Likewise.
1045 * sysdeps/unix/sysv/linux/sparc/sysdep.h (inline_syscall[0-6]):
1046 Change name argument to numbers from syscall names.
1047 (INLINE_SYSCALL, INTERNAL_SYSCALL): Adjust.
1048 (INTERNAL_SYSCALL_NCS): Define.
1050 2004-09-22 Ulrich Drepper <drepper@redhat.com>
1052 * malloc/malloc.c (malloc_printerr): Use syslog if writev failed.
1054 * string/string.h: Add __nonnull annotations.
1055 * stdlib/stdlib.h: Likewise.
1057 2004-09-20 Jakub Jelinek <jakub@redhat.com>
1059 * sysdeps/unix/alpha/sysdep.h (inline_syscall[0-6]): Change name
1060 argument to numbers from syscall names.
1061 (INLINE_SYSCALL1): Pass __NR_##name to inline_syscall##nr.
1062 (INTERNAL_SYSCALL_NCS): Renamed from...
1063 (INTERNAL_SYSCALL_1): ... this. Use INTERNAL_SYSCALL_NCS.
1064 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
1065 (INTERNAL_SYSCALL_NCS): Define.
1066 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1067 (INTERNAL_SYSCALL_NCS): Likewise.
1068 * sysdeps/unix/sysv/linux/sparc/sysdep.h (inline_syscall[0-6]):
1069 Change name argument to numbers from syscall names.
1070 (INLINE_SYSCALL, INTERNAL_SYSCALL): Adjust.
1071 (INTERNAL_SYSCALL_NCS): Define.
1073 2004-09-20 H.J. Lu <hongjiu.lu@intel.com>
1075 * sysdeps/unix/sysv/linux/ia64/sysdep.h (DO_INLINE_SYSCALL):
1077 (DO_INLINE_SYSCALL_NCS): This.
1078 (DO_INLINE_SYSCALL): New.
1079 (INLINE_SYSCALL): Updated.
1080 (INTERNAL_SYSCALL_NCS): Updated.
1082 2004-09-21 Ulrich Drepper <drepper@redhat.com>
1084 * elf/sprof.c (load_shobj): Add support for reading symbol table
1085 from debuginfo file.
1087 * elf/ldd.bash.in: Fix syntax errors.
1089 2004-09-20 Ulrich Drepper <drepper@redhat.com>
1091 * sysdeps/unix/sysv/linux/dl-execstack.c
1092 (_dl_make_stack_executable): Remove some duplication.
1094 * nscd/nscd.c (options): Mark S option as hidden.
1095 (parse_opt): When S option is used, print warning message.
1096 * nscd/grpcache.c (adgrptbyX): Don't handle secure mode.
1097 * nscd/hstcache.c (addhstbyX): Don't handle secure mode.
1098 * nscd/aicache.c (addhstaiX): Don't handle secure mode.
1099 * nscd/pwdcache.c (addpwbyX): Don't handle secure mode.
1101 2004-09-20 Roland McGrath <roland@frob.com>
1103 * elf/dl-load.c (__stack_prot): Only use PROT_GROWSUP/PROT_GROWSDOWN
1104 in initializer #if defined.
1106 2004-09-18 Paul Eggert <eggert@cs.ucla.edu>
1109 * stdlib/getsubopt.c: Merge fixes from gnulib.
1110 (__strchrnul) [!_LIBC]: Define and include "strchrnul.c".
1111 (getsubopt): Use prototypes, not K&R style.
1112 Fix bug: memcmp(A,B,N) was being invoked on a memory block B
1113 whose size might be smaller than N. Use strncmp to avoid the bug.
1115 2004-09-20 Ulrich Drepper <drepper@redhat.com>
1117 * configure.in: If selinux has not explictly been requested, don't
1118 comment on it missing.
1120 * elf/dl-load.c: Define __stack_prot.
1121 * sysdeps/unix/sysv/linux/dl-execstack.c: Don't define
1122 __stack_prot here, just declare it.
1124 2004-09-20 Jakub Jelinek <jakub@redhat.com>
1126 * configure.in (libc_cv_z_relro): Only set to yes if linker script
1127 contains DATA_SEGMENT_RELRO_END.
1129 2004-09-20 Ulrich Drepper <drepper@redhat.com>
1131 * elf/dl-load.c (_dl_map_object_from_fd): Add some error checking.
1132 Reorder code slightly.
1133 * elf/rtld.c (dl_main): No need to check whether l_info[DT_HASH]
1134 is non-null, _dl_setup_hash will do that.
1136 2004-09-19 Ulrich Drepper <drepper@redhat.com>
1138 * sysdeps/unix/sysv/linux/setegid.c [HAVE_PTR__NPTL_SETXID]: Call
1139 callback to set IDs in all other threads as well.
1140 * sysdeps/unix/sysv/linux/seteuid.c: Likewise.
1141 * sysdeps/unix/sysv/linux/i386/setegid.c: Likewise.
1142 * sysdeps/unix/sysv/linux/i386/seteuid.c: Likewise.
1143 * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
1144 * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
1145 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
1146 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
1147 * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
1148 * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
1149 * sysdeps/unix/sysv/linux/setuid.c: New file.
1150 * sysdeps/unix/sysv/linux/setgid.c: New file.
1151 * sysdeps/unix/sysv/linux/setreuid.c: New file.
1152 * sysdeps/unix/sysv/linux/setregid.c: New file.
1153 * sysdeps/unix/sysv/linux/setresuid.c: New file.
1154 * sysdeps/unix/sysv/linux/setresgid.c: New file.
1155 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define INTERNAL_SYSCALL_NCS.
1156 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
1157 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
1158 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
1159 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
1160 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c: Use x86 version.
1161 * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c: Likewise.
1162 * sysdeps/unix/sysv/linux/sparc/sparc32/setresgid.c: New file.
1163 * sysdeps/unix/sysv/linux/sparc/sparc32/setresuid.c: New file.
1164 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Remove setresgid
1166 * nscd/aicache.c: Use pthread_seteuid_np instead of seteuid.
1167 * nscd/grpcache.c: Likewise.
1168 * nscd/hstcache.c: Likewise.
1169 * nscd/pwdcache.c: Likewise.
1171 * resolv/res_mkquery.c (res_nmkquery): Fix typo.
1173 2004-09-18 Ulrich Drepper <drepper@redhat.com>
1175 * sysdeps/unisx/sysv/linux/dl-execstack.c: Get protection flag
1177 * elf/dl-load.c (_dl_map_object_from_fd): Add PROT_EXEC flag to
1180 * sysdeps/posix/getaddrinfo.c (gaih_inet): Do not use
1181 gethostbyname3_r if we are not looking for the canonical name.
1183 * resolv/res_mkquery.c (res_nmkquery): Randomize request ID every
1186 2004-09-18 Roland McGrath <roland@redhat.com>
1188 * sysdeps/unix/sysv/linux/waitid.c (do_waitid): Pass fifth argument to
1191 2004-09-17 Ulrich Drepper <drepper@redhat.com>
1193 * include/link.h (struct link_map): Add l_used element.
1194 * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_UNUSED.
1195 * elf/rtld.c (process_dl_debug): Recognize unused.
1196 (dl_main): When unused debug flag is set check for unused direct
1198 When printing dependencies and SONAME starts with /, omit the SONAME =>
1200 * elf/dl-lookup.c (_dl_lookup_symbol_x): Mark object in which the
1201 symbol has been found as used.
1202 * elf/ldd.bash.in: Add -u option.
1204 2004-09-18 Jakub Jelinek <jakub@redhat.com>
1206 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
1207 Do nothing if __NR_set_tid_address is not defined. [BZ #390]
1209 2004-09-17 Ulrich Drepper <drepper@redhat.com>
1211 * sysdeps/posix/getaddrinfo.c: Use gethostbyname3_r NSS function
1212 in case it is available.
1214 2004-09-17 Jakub Jelinek <jakub@redhat.com>
1216 * nscd/nscd.c (parse_opt): Write arg string instead of (void *)
1219 2004-09-17 Ulrich Drepper <drepper@redhat.com>
1221 * misc/sys/cdefs.h: Define __nonnull using nonnull function attribute
1222 for gcc 3.3 and higher.
1223 * io/fcntl.h: Add __nonnull where appropriate.
1224 * io/ftw.h: Likewise.
1225 * io/utime.h: Likewise.
1226 * io/sys/poll.h: Likewise.
1227 * io/sys/sendfile.h: Likewise.
1228 * io/sys/stat.h: Likewise.
1229 * io/sys/statfs.h: Likewise.
1230 * io/sys/statvfs.h: Likewise.
1231 * posix/unistd.h: Likewise.
1232 * catgets/nl_types.h: Likewise.
1233 * crypt/crypt.h: Likewise.
1234 * debug/execinfo.h: Likewise.
1236 2004-09-16 Ulrich Drepper <drepper@redhat.com>
1238 * posix/glob.h: Remove cruft to make header usable outside glibc.
1239 The maintenance headache is too big.
1241 * configure.in: Add test for required SELinux features.
1242 * config.make.in: Add have-selinux entry.
1243 * config.h.in: Add HAVE_SELINUX entry.
1244 * nscd/Makefile (nscd-modules): Add selinux.
1245 (CFLAGS-selinux.c): Add -fpie.
1246 Define selinux-LIBS and use in link line.
1247 * nscd/connections.c (handle_request): Check access SELinux permissions
1248 before processing request.
1249 * nscd/nscd.c (main): Initialize selinux_enabled and stop avc thread.
1250 * nscd/nscd_stat.c: Transmit and print AVC statistics.
1251 * nscd/selinux.c: New file.
1252 * nscd/selinux.h: New file.
1253 Patch mostly by Matthew Rickard <mjricka@epoch.ncsc.mil>.
1255 2004-09-16 Jakub Jelinek <jakub@redhat.com>
1257 * nscd/nscd_helper.c (__nscd_unmap, get_mapping): Use __munmap
1260 * nscd/Makefile (CFLAGS-aicache.c): Set to -fpie.
1262 2004-09-16 Thorsten Kukuk <kukuk@suse.de>
1264 * sysdeps/posix/getaddrinfo.c (gaih_inet): Check
1265 __nss_not_use_nscd_hosts variable if nscd should be used or not.
1267 2004-09-16 Ulrich Drepper <drepper@redhat.com>
1269 * nscd/nscd_proto.h: Define NSS_NSCD_RETRY.
1270 Add __nscd_getai prototype.
1271 * nss/getXXbyYY_r.c: Remode definition of NSS_NSCD_RETRY.
1272 * nscd/nscd-client.h: Remove __nscd_getai prototype.
1273 * nscd/nscd_getai.c: Include nscd_proto.h.
1275 * elf/ldd.bash.in: Add support for SELinux environments.
1276 Patch by Stephen Smalley <sds@epoch.ncsc.mil>.
1278 2004-09-16 Roland McGrath <roland@redhat.com>
1280 * configure.in (--with-headers): Let argument contain a : separated
1281 list of directories to use, not just one.
1282 * configure: Regenerated.
1284 2004-09-15 Richard Henderson <rth@redhat.com>
1286 * sysdeps/alpha/fpu/libm-test-ulps: Update.
1287 * scripts/data/c++-types-alpha-linux-gnu.data: New file.
1289 2004-09-15 Ulrich Drepper <drepper@redhat.com>
1291 * nscd/aicache.c: Prefer using gethostbyname3_r NSS callback to also
1292 get ttl and canonical name. Use these two values.
1293 * resolv/Versions: Export _nss_dns_gethostbyname3_r from libnss_dns.
1294 * resolv/nss_dns/dns-host.c (getanswer_r): Take two new parameters.
1295 If nonnull fill with TTL and pointer to canonical name respectively.
1296 (_nss_dns_gethostbyaddr_r): Pass NULL in new parameters of getanswer_r.
1297 (_nss_dns_gethostbyname2_r): Just wrapper around
1298 _nss_dns_gethostbyname3_r.
1299 (_nss_dns_gethostbyname3_r): Renamed from _nss_dns_gethostbyname2_r.
1300 Take two new parameters which as passed to getanswer_r.
1302 * nscd/Makefile (rountines): Add nscd_getai.
1303 (nscd-modules): Add aicache.
1304 * nscd/aicache.c: New file.
1305 * nscd/nscd_getai.c: New file.
1306 * nscd/cache.c (prune_cache): Handle GETAI request type.
1307 * nscd/connections.c: Add GETAI support in request handling.
1308 * nscd/nscd-client.h (request_type): Add GETAI.
1309 Define ai_response_header and struct nscd_ai_result types.
1310 (struct datahead): Add aidata field.
1311 Declare __nscd_getai.
1312 * nscd/nscd.c: Add getaddrinfo definition to catch problems.
1313 * nscd/nscd.h: Declare addhstai and readdhstai.
1315 * sysdeps/posix/getaddrinfo.c: Add support for using cached results.
1316 * posix/Makefile (CFLAGS-getaddrinfo.c): Add -DUSE_NSCD.
1318 * nscd/nscd-client.h (struct datahead): Use uint8_t instead of bool.
1320 2004-09-14 Ulrich Drepper <drepper@redhat.com>
1322 * misc/sys/cdefs.h: Remove debugging text from __P and __PMT.
1324 2004-09-13 Ulrich Drepper <drepper@redhat.com>
1326 * misc/sys/cdefs.h: Restore old definition of __P.
1327 * csu/munch.awk: Remove uses of __P and __PMT.
1328 * gmon/gmon.c: Likewise.
1329 * hesiod/hesiod.h: Likewise.
1330 * include/stdio.h: Likewise.
1331 * io/fts.c: Likewise.
1332 * libio/genops.c: Likewise.
1333 * libio/libioP.h: Likewise.
1334 * libio/fileops.c: Likewise.
1335 * libio/iolibio.h: Likewise.
1336 * libio/libio.h: Likewise.
1337 * libio/memstream.c: Likewise.
1338 * libio/oldfileops.c: Likewise.
1339 * libio/oldstdfiles.c: Likewise.
1340 * libio/iopopen.c: Likewise.
1341 * libio/vsnprintf.c: Likewise.
1342 * libio/vswprintf.c: Likewise.
1343 * libio/wgenops.c: Likewise.
1344 * libio/oldiopopen.c: Likewise.
1345 * locale/programs/xmalloc.c: Likewise.
1346 * locale/programs/xstrdup.c: Likewise.
1347 * malloc/mtrace.c: Likewise.
1348 * misc/getttyent.c: Likewise.
1349 * misc/getusershell.c: Likewise.
1350 * nis/rpcsvc/ypupd.h: Likewise.
1351 * posix/fnmatch.h: Likewise.
1352 * posix/glob.h: Likewise.
1353 * resolv/arpa/nameser.h: Likewise.
1354 * resolv/gethnamaddr.c: Likewise.
1355 * resolv/resolv.h: Likewise.
1356 * resolv/inet_net_ntop.c: Likewise.
1357 * resolv/inet_net_pton.c: Likewise.
1358 * resolv/res_init.c: Likewise.
1359 * resolv/nss_dns/dns-network.c: Likewise.
1360 * stdio-common/vfprintf.c: Likewise.
1361 * stdio-common/reg-printf.c: Likewise.
1362 * sysdeps/generic/chflags.c: Likewise.
1363 * sysdeps/generic/fchflags.c: Likewise.
1364 * sysdeps/generic/glob.c: Likewise.
1365 * sysdeps/generic/printf_fphex.c: Likewise.
1366 * sysdeps/generic/memcmp.c: Likewise.
1367 * sysdeps/generic/memcopy.h: Likewise.
1368 * sysdeps/generic/morecore.c: Likewise.
1369 * sysdeps/generic/sstk.c: Likewise.
1370 * sysdeps/posix/sigvec.c: Likewise.
1371 * sysdeps/posix/ttyname_r.c: Likewise.
1372 * sysdeps/standalone/arm/bits/errno.h: Likewise.
1373 * sysdeps/standalone/standalone.h: Likewise.
1374 * sysdeps/standalone/i386/force_cpu386/brdinit.c: Likewise.
1375 * sysdeps/standalone/i386/force_cpu386/_exit.c: Likewise.
1376 * sysdeps/unix/arm/start.c: Likewise.
1377 * sysdeps/unix/bsd/sigaction.c: Likewise.
1378 * sysdeps/unix/bsd/sun/m68k/sigtramp.c: Likewise.
1379 * sysdeps/unix/bsd/sun/sparc/sigtramp.c: Likewise.
1380 * sysdeps/unix/bsd/sun/sunos4/wait4.c: Likewise.
1381 * sysdeps/unix/bsd/ultrix4/mips/sigvec.c: Likewise.
1382 * sysdeps/unix/bsd/ultrix4/sysconf.c: Likewise.
1383 * sysdeps/unix/sparc/start.c: Likewise.
1384 * sysdeps/unix/sysv/getdents.c: Likewise.
1385 * sysdeps/unix/sysv/irix4/fpathconf.c: Likewise.
1386 * sysdeps/unix/sysv/irix4/getgroups.c: Likewise.
1387 * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
1388 * sysdeps/unix/sysv/irix4/getrusage.c: Likewise.
1389 * sysdeps/unix/sysv/irix4/pathconf.c: Likewise.
1390 * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
1391 * sysdeps/unix/sysv/irix4/sigtramp.c: Likewise.
1392 * sysdeps/unix/sysv/irix4/start.c: Likewise.
1393 * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
1394 * sysdeps/unix/sysv/sco3.2.4/__setpgid.c: Likewise.
1395 * sysdeps/unix/sysv/sco3.2.4/getgroups.c: Likewise.
1396 * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
1397 * sysdeps/unix/sysv/sysv4/__setpgid.c: Likewise.
1398 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
1399 * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
1400 * sysdeps/unix/sysv/sysv4/sethostname.c: Likewise.
1401 * sysdeps/unix/sysv/sysv4/setsid.c: Likewise.
1402 * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
1403 * sysdeps/unix/sysv/sysv4/waitpid.c: Likewise.
1404 * sysdeps/unix/sysv/sysv4/solaris2/getdents.c: Likewise.
1405 * time/tzset.c: Likewise.
1406 * time/strftime_l.c: Likewise.
1407 * time/strptime_l.c: Likewise.
1408 * crypt/md5.h: Likewise.
1410 2004-09-13 Andreas Jaeger <aj@suse.de>
1412 * configure.in: Support GCC 4.x.
1413 * configure: Regenerated.
1415 2004-09-13 Thorsten Kukuk <kukuk@suse.de>
1417 * nscd/nscd_stat.c: Don't access dbs[cnt].head for disabled services.
1419 * nscd/nscd.init: Fix path to socket.
1421 2004-09-12 Ulrich Drepper <drepper@redhat.com>
1423 * nscd/nscd_helper.c (get_mapping): Correctly check cmsg length.
1424 Avoid file descriptor leak in case of size mismatch.
1426 * nscd/nscd-client.h: Fix database structure layout for biarch.
1427 * nscd/mem.c (gc): Add casts to avoid warnings.
1429 * nss/getent.c: Don't preconstruct help message. Do it only when
1432 * locale/programs/locale.c: Simplify help message printing.
1434 2004-09-12 Roland McGrath <roland@frob.com>
1436 * sysdeps/mach/hurd/i386/init-first.c (init1) [! SHARED]: Add decls
1437 missing in last change.
1439 2004-09-11 Thorsten Kukuk <kukuk@suse.de>
1441 * nis/nss_compat/compat-grp.c: Check that buflen is greater zero
1442 before writing data into the buffer with negative offset.
1443 * nis/nss_compat/compat-initgroups.c: Likewise.
1444 * nis/nss_compat/compat-pwd.c: Likewise.
1445 * nis/nss_compat/compat-spwd.c Likewise.
1447 2004-09-12 Ulrich Drepper <drepper@redhat.com>
1449 * misc/syslog.c (vsyslog): Fix copying of PID in case of
1450 out-of-memory situation. [BZ #365].
1452 * sysdeps/alpha/fpu/bits/mathinline.h: Use __NTH instead of
1453 __THROW in inline function definitions.
1455 * posix/spawn.h [__USE_GNU]: Define POSIX_SPAWN_USEVFORK.
1456 * posix/spawnattr_setflags.c: Check whether any unknown bit is set
1457 in FLAGS parameter and fail if this is the case.
1458 * sysdeps/posix/spawni.c: Use vfork if POSIX_SPAWN_USEVFORK flag is
1461 * nscd/pwdcache.c (cache_addpw): Sync also negative results to disk.
1462 * nscd/grpcache.c (cache_addgr): Likewise.
1463 * nscd/hstcache.c (cache_addhst): Likewise.
1465 2004-09-11 Roland McGrath <roland@frob.com>
1467 * sysdeps/mach/hurd/i386/init-first.c (init1) [! SHARED]:
1468 Set _dl_phdr and _dl_phnum.
1469 (init1): When bootstrap task, bail early and never examine *D.
1471 2004-09-11 Alfred M. Szmidt <ams@kemisten.nu>
1473 * sysdeps/mach/hurd/i386/tls.h (__i386_set_gdt) [!HAVE_I386_SET_GDT]:
1474 Cast THR, SEL and DESC to `void'.
1476 2004-09-11 Ulrich Drepper <drepper@redhat.com>
1478 * nscd/connections.c (nscd_run): Call setup_thread only for enabled
1481 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Use __NTH for __cmsg_nxthdr.
1483 2004-09-10 Ulrich Drepper <drepper@redhat.com>
1485 * nscd/nscd.c (pagesize_m1): New variable.
1486 (main): Initialize it.
1487 * nscd/nscd.h: Declare pagesize_m1.
1488 * nscd/hstcache.c: Pass correctly aligned address to msync.
1489 * nscd/grpcache.c: Likewise.
1490 * nscd/pwdcache.c: Likewise.
1492 2004-09-10 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1494 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Decrement
1495 __nwaiters. If pthread_cond_destroy has been called and this is
1496 the last waiter, signal pthread_cond_destroy caller and avoid
1497 using the pthread_cond_t structure after unlock.
1498 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
1500 2004-09-10 Ulrich Drepper <drepper@redhat.com>
1502 * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
1503 __ASSUME_CLONE_STOPPED.
1505 2004-09-10 Jakub Jelinek <jakub@redhat.com>
1507 * misc/sys/cdefs.h (__REDIRECT_NTH): Change order of __THROW and
1508 __asm__ for C++. [BZ #377]
1510 2004-09-10 Ulrich Drepper <drepper@redhat.com>
1512 * nscd/nscd_stat.c: Improve output by also printing .shared and
1515 * nscd/connections.c: Allow cache sharing to be really disabled.
1517 2004-09-10 Jakub Jelinek <jakub@redhat.com>
1519 * malloc/malloc.c (_int_free): Only do arena boundary check for
1522 2004-09-10 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1524 * stdlib/longlong.h [__M32R__] (add_ssaaaa, sub_ddmmss): Fix broken
1526 * elf/elf.h: Add R_M32R_* relocs.
1528 2004-09-09 Ulrich Drepper <drepper@redhat.com>
1530 * misc/sys/cdefs.h: Despite what the gcc manual says, gcc 3.2
1531 seems not to support the nothrow attribute. Use it only for gcc
1534 * malloc/hooks.c (top_check): Print top chunk corruption as normal
1537 * malloc/malloc.c (malloc_printerr): Don't make informational
1538 message look like error message.
1540 2004-09-09 Andreas Jaeger <aj@suse.de>
1542 * nscd/Makefile (CFLAGS-nscd_setup_thread.c): Set to -fpie.
1544 2004-09-08 Ulrich Drepper <drepper@redhat.com>
1546 * sysdeps/unix/sysv/linux/bits/socket.h (__SCM_CONNECT): Removed.
1548 * malloc/malloc.c (_int_free): Add inexpensive double free and
1549 memory corruption tests.
1550 (malloc_printf_nc): Renamed to malloc_printerr. Second parameter
1551 is no format string anymore. Don't use stdio. Adjust all callers.
1552 * malloc/hooks.c: Adjust malloc_printf_nc callers.
1554 2004-09-08 Roland McGrath <roland@redhat.com>
1556 * malloc/mcheck.c: Don't use __P.
1557 Use prototypes definitions for static functions.
1559 2004-09-08 Ulrich Drepper <drepper@redhat.com>
1561 * sysdeps/ia64/fpu/bits/mathinline.h: Use __NTH instead of __THROW.
1563 2004-09-08 Ulrich Drepper <drepper@redhat.com>
1564 Jakub Jelinek <jakub@redhat.com>
1566 * nscd/nscd-client.h: Add a few #includes.
1568 * nscd/Makefile (nscd-modules): Add nscd_setup_thread.
1569 * nscd/connections.c (nscd_run): Call setup_thread for maintenance
1571 * nscd/nscd-client.h (struct database_pers_head): Add
1572 nscd_certainly_running field.
1573 * nscd/nscd.h: Declare setup_thread.
1574 * nscd/nscd_helper.c (__nscd_get_map_ref): Avoid the time test if
1575 nscd_certainly_running is nonzero.
1576 * sysdeps/generic/nscd_setup_thread.c: New file.
1577 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: New file.
1579 2004-09-08 Ulrich Drepper <drepper@redhat.com>
1581 * nscd/connections.c: Implement r/o sharing of nscd's cache with client
1582 processes via shared memory.
1583 * nscd/nscd-client.h: Likewise.
1584 * nscd/nscd.h: Likewise.
1585 * nscd/nscd_conf.c: Likewise.
1586 * nscd/nscd_getgr_r.c: Likewise.
1587 * nscd/nscd_getpw_r.c: Likewise.
1588 * nscd/nscd_gethst_r.c: Likewise.
1589 * nscd/nscd.conf: Add new config parameters.
1590 * nscd/Makefile (aux): Add nscd_helper.
1591 * nscd/nscd_helper.c: New file.
1592 * nscd/mem.c (gc): Indicate beginning and end of the gc cycle.
1594 * nscd/hstcache.c: Simplify a lot. We cache only the request itself,
1595 no derived information.
1596 * connections.c (nscd_init): Fix bug in testing size of the persistent.
1598 * nis/Makefile (aux): Add nis_hash.
1599 * nis/nis_hash.c: New file. Split out from nis_util.c.
1600 * nis/nis_util.c: Move __nis_hash code in separate file.
1602 * csu/tst-atomic.c: Improve atomic_increment_val test which would
1603 not have found a ppc bug.
1605 * sysdeps/s390/fpu/bits/mathinline.h: Remove unnecessary includes.
1607 * malloc/arena.c: Remove __MALLOC_P uses.
1608 * malloc/malloc.c: Likewise.
1610 * malloc/mtrace.c: Remove __P uses.
1611 * malloc/mcheck-init.c: Likewise.
1613 2004-09-07 Jakub Jelinek <jakub@redhat.com>
1615 * sysdeps/powerpc/powerpc64/configure.in: New file.
1616 * config.h.in (USE_PPC64_OVERLAPPING_OPD): Add.
1617 * configure.in (HAVE_ASM_GLOBAL_DOT_NAME): Remove.
1618 * sysdeps/powerpc/powerpc64/sysdep.h: Formatting.
1619 (OPD_ENT, BODY_LABEL, ENTRY_1, ENTRY_2, END_2, DOT_PREFIX,
1620 BODY_PREFIX): Define.
1621 (ENTRY, DOT_LABEL, END, TRACEBACK, END_GEN_TB, EALIGN): Support
1622 HAVE_ASM_GLOBAL_DOT_NAME or no dot symbols,
1623 USE_PPC64_OVERLAPPING_OPD or never overlapping .opd entries.
1624 * sysdeps/powerpc/powerpc64/dl-machine.h: Include sysdep.h.
1625 (TRAMPOLINE_TEMPLATE, RTLD_START): Use the new sysdep.h macros.
1627 2004-09-07 Ulrich Drepper <drepper@redhat.com>
1629 * malloc/malloc.h: Don't define __THROW if it is already defined.
1631 * sysdeps/powerpc/bits/atomic.h (atomic_increment): Define.
1632 (atomic_decrement): Define.
1634 * sysdeps/powerpc/bits/atomic.h: Implement atomic_increment_val and
1635 atomic_decrement_val.
1636 * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
1637 * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
1639 * csu/tst-atomic.c (do_test): Add tests of atomic_increment_val
1640 and atomic_decrement_val.
1642 * include/atomic.h: Define atomic_increment_val, atomic_decrement_val,
1643 and atomic_delay is not already defined.
1644 * sysdeps/i386/i486/bits/atomic.h: Define atomic_delay.
1645 * sysdeps/x86_64/bits/atomic.h: Likewise.
1647 * miscd/sys/cdefs.h (__NTH): New macro.
1648 (__THROW): Define using nothrow attribute for C code and gcc >= 3.2.
1649 (__REDIRECT_NTH): New macro.
1650 * argp/argp.h: Use __NTH and __REDIRECT_NTH where necessary.
1651 * ctype/ctype.h: Likewise.
1652 * dirent/dirent.h: Likewise.
1653 * io/fcntl.h: Likewise.
1654 * io/sys/sendfile.h: Likewise.
1655 * io/sys/stat.h: Likewise.
1656 * io/sys/statfs.h: Likewise.
1657 * io/sys/statvfs.h: Likewise.
1658 * libio/bits/stdio.h: Likewise.
1659 * misc/sys/mman.h: Likewise.
1660 * posix/unistd.h: Likewise.
1661 * resource/sys/resource.h: Likewise.
1662 * rt/aio.h: Likewise.
1663 * signal/signal.h: Likewise.
1664 * stdlib/stdlib.h: Likewise.
1665 * string/argz.h: Likewise.
1666 * string/string.h: Likewise.
1667 * sysdeps/generic/inttypes.h: Likewise.
1668 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
1669 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
1670 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
1671 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
1672 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
1673 * sysdeps/unix/sysv/linux/bits/sys/sysmacros.h: Likewise.
1674 * wcsmbs/wchar.h: Likewise.
1676 * sysdeps/generic/glob.c: Use __PMT isntead of __P where appropriate.
1678 * resolv/gethnamaddr.c (getanswer): Remove __P use in variable
1681 * io/sys/poll.h: Remove __THROW from poll prototype, it's a
1684 * io/fts.c (fts_open): Remove uses of __P.
1686 * include/stdlib.h: No need to use __THROW in this header.
1688 2004-09-06 Roland McGrath <roland@frob.com>
1690 * sysdeps/mach/hurd/dl-sysdep.c (__writev): Does use assert on FD
1691 validity, since __assert_fail gets to here anyway. Just fail.
1693 2004-09-06 Ulrich Drepper <drepper@redhat.com>
1695 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix problem with
1696 AF_UNSPEC lookup with AI_CANONNAME of name which has only IPv6
1699 2004-09-05 Richard Henderson <rth@redhat.com>
1701 * sysdeps/alpha/fpu/fraiseexcpt.c: Remove file.
1702 * sysdeps/unix/sysv/linux/kernel-features.h
1703 (__ASSUME_IEEE_RAISE_EXCEPTION): New.
1704 * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.c: New file.
1705 * sysdeps/unix/sysv/linux/alpha/kernel_sysinfo.h: New file.
1706 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use it.
1707 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
1709 2004-09-05 Richard Henderson <rth@redhat.com>
1711 * sysdeps/alpha/div.S: Save and restore FPCR around fp operations.
1712 * sysdeps/alpha/divl.S, sysdeps/alpha/divq.S, sysdeps/alpha/divqu.S,
1713 sysdeps/alpha/ldiv.S, sysdeps/alpha/reml.S, sysdeps/alpha/remq.S,
1714 sysdeps/alpha/remqu.S: Likewise.
1715 * sysdeps/alpha/div_libc.h (FRAME): Increase to 64.
1717 2004-09-05 Ulrich Drepper <drepper@redhat.com>
1719 * nscd/cache.c (cache_add): Correctly log GETHOSTBYADDR and
1720 GETHOSTBYADDRv6 requests.
1722 2004-09-04 Ulrich Drepper <drepper@redhat.com>
1724 * nscd/pwdcache.c (cache_addpw): Use correct key length in
1726 * nscd/grpcache.c (cache_addgr): Likewise.
1728 2004-09-03 Alfred M. Szmidt <ams@kemisten.nu>
1730 * sysdeps/mach/hurd/i386/tls.h (THREAD_DTV): Changed type of _DTV
1733 2004-09-03 Ulrich Drepper <drepper@redhat.com>
1735 * nscd/nscd.c (parse_opt): Use writev instead of two write for
1738 2004-09-02 Ulrich Drepper <drepper@redhat.com>
1740 * nscd/connections.c (nscd_run): Check early for invalid request types.
1742 2004-09-02 Roland McGrath <roland@frob.com>
1744 * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): New macro.
1745 (INSTALL_NEW_DTV, THREAD_DTV): Rewritten to fetch the right word.
1746 (THREAD_SELF): New macro.
1748 2004-09-02 Steven Munroe <sjmunroe@us.ibm.com>
1751 * stdlib/tst-setcontext.c (test_stack): Added test for stack clobber.
1752 (main): Call test_stack.
1753 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
1754 (__getcontext): Push stack frame then save parms in local frame.
1755 Improve instruction scheduling.
1756 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
1757 (__swapcontext): Likewise.
1759 2004-09-01 Andreas Schwab <schwab@suse.de>
1761 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h [g++ >= 3.5]: Use
1764 2004-09-01 Jakub Jelinek <jakub@redhat.com>
1767 * posix/fnmatch_loop.c (FCT): For backslash between brackets, branch
1768 to normal_bracket after fetching the next character.
1769 * posix/tst-fnmatch.input: Add 25 new tests.
1770 Reported by Markus Oberhumer <markus@oberhumer.com>.
1772 2004-09-01 Ulrich Drepper <drepper@redhat.com>
1774 * elf/rtld.c (dl_main): First check existence of ld.so.preload
1777 2004-09-01 Roland McGrath <roland@redhat.com>
1779 * sysdeps/unix/sysv/linux/bits/waitflags.h
1780 (WSTOPPED, WEXITED, WCONTINUED, WNOWAIT): New macros.
1781 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_WAITID_SYSCALL):
1783 * sysdeps/unix/sysv/linux/waitid.c: New file. Use new syscall when
1784 available, or fall back to the waitpid-based generic code.
1786 2004-08-14 Alfred M. Szmidt <ams@kemisten.nu>
1788 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Let gcc
1789 clobber the `ebp' register.
1790 * sysdeps/mach/hurd/i386/Makefile (CFLAGS-init-first.c): Removed.
1791 Reverts change from 2004-05-07 by Jeroen Dekkers.
1793 * sysdeps/mach/hurd/i386/init-first.c (init): Changed the type of
1794 NEWSP from `void *' to `int *'. Changed all casts accordingly.
1796 2004-08-31 Jakub Jelinek <jakub@redhat.com>
1798 * wcsmbs/wcsmbsload.c (__wcsmbs_getfct): Move attribute_hidden
1800 * locale/localename.c (__current_locale_name): Likewise.
1802 2004-08-31 Jakub Jelinek <jakub@redhat.com>
1804 * elf/ldconfig.c (parse_conf): Add prefix argument, prepend it
1805 before arguments to add_dir and pass to parse_conf_include.
1806 (parse_conf_include): Add prefix argument, pass it down to
1808 (main): Call arch_startup. Adjust parse_conf caller.
1810 * sysdeps/generic/dl-cache.h (arch_startup, add_arch_dirs): Define.
1811 * sysdeps/unix/sysv/linux/i386/dl-cache.h: New file.
1812 * sysdeps/unix/sysv/linux/ia64/dl-cache.h (EMUL_HACK, arch_startup,
1813 add_arch_dirs): Define.
1814 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Prepend
1815 /emul/ia32-linux before the 32-bit ld.so pathname.
1816 * sysdeps/unix/sysv/linux/ia64/dl-procinfo.c: New file.
1817 * sysdeps/unix/sysv/linux/ia64/dl-procinfo.h: New file.
1819 2004-08-30 Roland McGrath <roland@frob.com>
1821 * scripts/extract-abilist.awk: If `lastversion' variable defined, omit
1822 later sets from output.
1823 * Makerules (check-abi): Pass option to set that with value of
1824 LIB-abi-frozen variable if one is set.
1826 * abilist/libcidn.abilist: New file (empty).
1828 2004-08-30 Jakub Jelinek <jakub@redhat.com>
1830 * posix/bits/posix1_lim.h (_POSIX_CHILD_MAX, _POSIX_OPEN_MAX): If
1831 not __USE_XOPEN2K, use the Unix98 mandated values.
1833 2004-08-27 Roland McGrath <roland@redhat.com>
1835 * configure.in (usetls): Default to yes.
1836 * configure: Regenerated.
1838 2004-08-26 Roland McGrath <roland@redhat.com>
1840 * configure.in (add_ons_automatic): New variable, set to yes or no
1841 indicating --enable-add-ons with no explicit list.
1842 (running add-on fragments): Allow a fragment to modify $libc_add_on
1843 and have that affect its place in the list of add-ons to use.
1844 * configure: Regenerated.
1846 2004-08-26 Ulrich Drepper <drepper@redhat.com>
1848 * nscd/cache.c: Major rewrite. The data is now optionally kept in
1849 a mmaped memory region which is automatically mirrored on disk.
1850 This implements persistent data storage. The Memory handled
1851 needed to be completely revamped, it now uses a garbage collection
1852 mechanism instead of malloc.
1853 * nscd/connections.c: Likewise.
1854 * nscd/nscd.c: Likewise.
1855 * nscd/nscd.h: Likewise.
1856 * nscd/nscd_conf.c: Likewise.
1857 * nscd/nscd_stat.c: Likewise.
1858 * nscd/grpcache.c: Likewise.
1859 * nscd/hstcache.c:: Likewise.
1860 * nscd/pwdcache.c:: Likewise.
1861 * nscd/Makefile: Add rules to build mem.c.
1862 * nscd/mem.c: New file.
1863 * nscd/nscd.conf: Describe new configuration options.
1865 2004-08-26 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1867 * sysdeps/unix/sysv/linux/mips/pread.c: Include sgidefs.h only if
1868 NO_SGIDEFS_H isn't defined.
1869 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1870 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
1872 * sysdeps/unix/sysv/linux/sh/pread.c: Define NO_SGIDEFS_H and
1874 * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
1875 * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
1876 * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
1878 2004-08-26 Ulrich Drepper <drepper@redhat.com>
1880 * nscd/connections.c (nscd_run): atomic_increment was not missing.
1882 * sysdeps/gnu/Makefile (libdl-sysdep_routines): Don't add eval.
1883 Patch by Greg Schafer.
1885 2004-08-25 Richard Henderson <rth@redhat.com>
1887 * sysdeps/alpha/elf/start.S (_start): Use $15 as frame unwind
1888 instead of $31. Zero $15.
1889 * sysdeps/unix/sysv/linux/alpha/clone.S (thread_start): Likewise.
1891 2004-08-25 Ulrich Drepper <drepper@redhat.com>
1893 * sysdeps/powerpc/powerpc64/bits/atomic.h
1894 (__arch_compare_and_exchange_bool_32_acq): Fix case where oldval
1896 (__arch_compare_and_exchange_bool_32_rel): Likewise.
1898 * nscd/connections.c: Make socket nonblocking so that threads
1899 don't get stuck on accept. Fix locking.
1901 * nscd/grpcache.c (cache_addgr): Use copy of original key in hash
1902 entry with alternative key.
1903 * nscd/pwdcache.c (cache_addpw): Likewise.
1905 2004-08-25 Richard Sandiford <rsandifo@redhat.com>
1907 * sysdeps/mips/dl-machine.h (_dl_start_user): Don't set
1910 2004-08-23 Ulrich Drepper <drepper@redhat.com>
1912 * sysdeps/gnu/netinet/udp.h: Cosmetic changes. Remove unnecessary
1913 __BEGIN_DECLS/__END_DECLS.
1915 2004-08-23 Andreas Jaeger <aj@suse.de>
1918 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_NOATIME): Define.
1919 * sysdeps/unix/sysv/linux/arm/bits/fcntl.h (O_NOATIME): Likewise.
1920 * sysdeps/unix/sysv/linux/cris/bits/fcntl.h (O_NOATIME): Likewise.
1921 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (O_NOATIME): Likewise.
1922 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (O_NOATIME): Likewise.
1923 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_NOATIME): Likewise.
1924 * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h (O_NOATIME): Likewise.
1925 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_NOATIME): Likewise.
1926 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_NOATIME): Likewise.
1927 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_NOATIME): Likewise.
1928 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (O_NOATIME): Likewise.
1929 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_NOATIME): Likewise.
1930 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (O_NOATIME): Likewise.
1932 2004-08-21 Ulrich Drepper <drepper@redhat.com>
1934 * malloc/hooks.c (DEFAULT_CHECK_ACTION): Moved to malloc.c.
1935 (check_action): Likewise.
1936 When printing error messages, use malloc_printf_nc now instead of
1937 fiddling with the streams cancellation flag in every place.
1938 * malloc/malloc.c (DEFAULT_CHECK_ACTION): New definition. Change
1940 (check_action): New variable.
1941 (unlink): Print error message and eventually terminate in case list
1943 (malloc_printf_nc): New function. Use it in _int_free.
1944 Change proposed by Arjan van de Ven.
1946 * dlfcn/Makefile: Don't build eval.c anymore.
1948 2004-08-20 Roland McGrath <roland@frob.com>
1950 * csu/Makefile ($(objpfx)version-info.h): Use printf in place
1951 of echo -e for POSIX.2 portability.
1952 Reported by Paul Jarc <prj@po.cwru.edu>.
1954 2004-08-19 Ulrich Drepper <drepper@redhat.com>
1956 * sysdeps/posix/getaddrinfo.c (gaih_inet): Minor optimizations in
1959 * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use
1960 getcanonname_r function if AI_CANONNAME flag is not set in
1963 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss):
1964 Initialize mysize with limits only if latter is >= 0. Use mysize
1967 2004-08-19 Jakub Jelinek <jakub@redhat.com>
1969 * sysdeps/posix/getaddrinfo.c (gaih_inet): Cast canon to (char *)
1972 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Initialize
1973 status to NSS_STATUS_UNAVAIL.
1975 2004-08-19 Jakub Jelinek <jakub@redhat.com>
1977 * sysdeps/powerpc/powerpc64/configure.in: New file.
1978 * sysdeps/powerpc/powerpc64/configure: Rebuilt.
1979 * config.h.in (USE_PPC64_OVERLAPPING_OPD): Add.
1980 * configure.in (HAVE_ASM_GLOBAL_DOT_NAME): Remove.
1981 * configure: Rebuilt.
1982 * sysdeps/powerpc/powerpc64/sysdep.h: Formatting.
1983 (OPD_ENT, BODY_LABEL, ENTRY_1, ENTRY_2, END_2, DOT_PREFIX,
1984 BODY_PREFIX): Define.
1985 (ENTRY, DOT_LABEL, END, TRACEBACK, END_GEN_TB, EALIGN): Support
1986 HAVE_ASM_GLOBAL_DOT_NAME or no dot symbols,
1987 USE_PPC64_OVERLAPPING_OPD or never overlapping .opd entries.
1988 * sysdeps/powerpc/powerpc64/dl-machine.h: Include sysdep.h.
1989 (TRAMPOLINE_TEMPLATE, RTLD_START): Use the new sysdep.h macros.
1991 2004-08-19 Ulrich Drepper <drepper@redhat.com>
1993 * sysdeps/posix/getaddrinfo.c (gaih_inet): Use h->h_name in the
1994 cannoname lookup since it has the FQDN even if the original NAME
1997 2004-08-18 Ulrich Drepper <drepper@redhat.com>
1999 * sysdeps/posix/getaddrinfo.c (gaih_inet): Store NAME parameter
2000 pointer in new variable ORIG_NAME and use this pointer when
2001 determination of canonical name failed, not the possibly IDN
2002 translated value of NAME.
2004 2004-08-17 Ulrich Drepper <drepper@redhat.com>
2006 * resolv/resolv.h (RES_DEFAULT): Add RES_NOIP6DOTINT.
2007 * resolv/res_init.c (res_setoptions): Recognize ip6-dotint option.
2008 Reset RES_NOIP6DOTINT flag in this case..
2010 * sysdeps/posix/getaddrinfo.c: Fix memory handling of
2013 2004-08-16 Ulrich Drepper <drepper@redhat.com>
2015 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Don't use
2016 CNAME records, we better follow the chain of CNAME records which
2017 can be accomplished with A/AAAA lookups.
2019 2004-08-15 Roland McGrath <roland@redhat.com>
2021 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who):
2022 Remove __RUSAGE_BOTH constant and RUSAGE_BOTH macro.
2023 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
2024 * sysdeps/unix/sysv/linux/mips/bits/resource.h: Likewise.
2025 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
2027 2004-08-15 Roland McGrath <roland@frob.com>
2029 * sysdeps/i386/i686/Makefile (elide-routines.os): Append hp-timing to
2031 (static-only-routines): ... this.
2032 * sysdeps/ia64/Makefile: Likewise.
2033 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
2034 * sysdeps/sparc/sparc64/Makefile: Likewise.
2035 * sysdeps/x86_64/Makefile: Likewise.
2036 * sysdeps/i386/i686/hp-timing.c: Revert copyright terms change.
2037 * sysdeps/ia64/hp-timing.c: Likewise.
2038 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
2039 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
2041 * csu/elf-init.c: Update copyright terms including special exception
2042 for these trivial files, which are statically linked into executables
2043 that use dynamic linking for the significant library code.
2044 * io/fstat.c: Likewise.
2045 * io/fstat64.c: Likewise.
2046 * io/lstat.c: Likewise.
2047 * io/lstat64.c: Likewise.
2048 * io/stat.c: Likewise.
2049 * io/stat64.c: Likewise.
2050 * stdlib/atexit.c: Likewise.
2051 * sysdeps/alpha/elf/initfini.c: Likewise.
2052 * sysdeps/alpha/elf/start.S: Likewise.
2053 * sysdeps/arm/elf/start.S: Likewise.
2054 * sysdeps/cris/elf/start.S: Likewise.
2055 * sysdeps/generic/initfini.c: Likewise.
2056 * sysdeps/generic/mknod.c: Likewise.
2057 * sysdeps/hppa/elf/initfini.c: Likewise.
2058 * sysdeps/hppa/elf/start.S: Likewise.
2059 * sysdeps/i386/elf/start.S: Likewise.
2060 * sysdeps/i386/i686/hp-timing.c: Likewise.
2061 * sysdeps/ia64/elf/initfini.c: Likewise.
2062 * sysdeps/ia64/elf/start.S: Likewise.
2063 * sysdeps/ia64/hp-timing.c: Likewise.
2064 * sysdeps/m68k/elf/start.S: Likewise.
2065 * sysdeps/mach/start.c: Likewise.
2066 * sysdeps/mips/elf/start.S: Likewise.
2067 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
2068 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
2069 * sysdeps/s390/s390-32/elf/start.S: Likewise.
2070 * sysdeps/s390/s390-32/initfini.c: Likewise.
2071 * sysdeps/s390/s390-64/elf/start.S: Likewise.
2072 * sysdeps/s390/s390-64/initfini.c: Likewise.
2073 * sysdeps/sh/elf/initfini.c: Likewise.
2074 * sysdeps/sh/elf/start.S: Likewise.
2075 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
2076 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
2077 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
2078 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
2079 * sysdeps/standalone/i386/start.S: Likewise.
2080 * sysdeps/standalone/i960/start.S: Likewise.
2081 * sysdeps/standalone/m68k/m68020/start.S: Likewise.
2082 * sysdeps/unix/arm/start.c: Likewise.
2083 * sysdeps/unix/bsd/osf/alpha/start.S: Likewise.
2084 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
2085 * sysdeps/unix/sparc/start.c: Likewise.
2086 * sysdeps/unix/start.c: Likewise.
2087 * sysdeps/unix/sysv/aix/start.s: Likewise.
2088 * sysdeps/unix/sysv/irix4/start.c: Likewise.
2089 * sysdeps/x86_64/elf/initfini.c: Likewise.
2090 * sysdeps/x86_64/elf/start.S: Likewise.
2092 2004-08-15 Roland McGrath <roland@redhat.com>
2095 * sysdeps/unix/sysv/linux/kernel-features.h
2096 (__ASSUME_BRK_PAGE_ROUNDED): New macro.
2097 * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
2098 [! __ASSUME_BRK_PAGE_ROUNDED]: Adjust the break up if it falls within
2099 the partial page after the dynamic linker's own data segment.
2101 2004-08-15 Ulrich Drepper <drepper@redhat.com>
2103 * sysdeps/posix/getaddrinfo.c (gaih_inet): Optimize generation of
2104 v4-mapped addresses a bit.
2105 (gethosts): Move alloca out of macro, so that it is done only once.
2107 * sysdeps/posix/getaddrinfo.c (gaih_addrtuple): Change type of
2108 addr to avoid casts.
2109 (gethosts): Removed.
2110 (gethosts2): Renamed to gethosts. Make it usable for family !=
2111 AF_UNSPEC. Fix AI_V4MAPPED.
2112 (gaih_inet): Remove use of old gethosts. Always use what used to be
2113 gethosts2. If entry is found, try to use the same NSS module's
2114 getcanonname_r function. Use gethostbyaddr for AI_CANONNAME only
2115 if getcanonname_r was not available. Fix filtering of AI_V4MAPPED
2116 addresses. Numerous cleanups.
2117 * resolv/nss_dns/dns-canon.c: New file.
2118 * resolv/Makefile (libnss_dns-routines): Add dns-canon.
2119 * resolv/Versions (libnss_dns): Add _nss_dns_getcanonname_r.
2121 * elf/Makefile: Add rules to build and run tst-dlopenrpath.
2122 * elf/tst-dlopenrpath.c: New file.
2123 * elf/tst-dlopenrpathmod.c: New file.
2125 * intl/tst-gettext.sh: Adjust for change of de.po file to UTF-8.
2126 * intl/tst-gettext.c: Likewise.
2128 * nss/getent.c (ahosts_keys_int): Correctly print IPv6 addresses.
2130 * nss/getent.c: Allow queries for getaddrinfo with AF_INET and
2133 2004-08-14 Ulrich Drepper <drepper@redhat.com>
2135 * po/de.po: Update from translation team.
2137 2004-08-14 Roland McGrath <roland@frob.com>
2139 * sysdeps/mach/configure: Regenerated.
2140 * sysdeps/mach/hurd/configure: Regenerated.
2142 2004-08-14 Ulrich Drepper <drepper@redhat.com>
2144 * sysdeps/posix/getaddrinfo.c (getaddrinfo): If RFC3484 sorting is
2145 performed, make sure it is still the first entry after sorting
2146 that has the ai_canonname information.
2148 * sysdeps/posix/getaddrinfo.c (gaih_inet): Really set ai_canonname
2151 2004-08-13 Daniel Jacobowitz <dan@debian.org>
2153 * scripts/output-format.sed: Handle default case of three-argument
2156 * sysdeps/arm/machine-gmon.h (mcount_internal): Mark as
2159 2004-08-13 Ulrich Drepper <drepper@redhat.com>
2161 * nss/getent.c (ahosts_keys): ai_canonname is NULL for all but the
2162 first returned entry. Print name only if not NULL.
2164 * nis/nss_nis/nis-netgrp.c: Remove locking by using data in struct
2165 __netgrent object passed in instead of global variables.
2167 * nis/nss_nisplus/nisplus-netgrp.c: Remove locking by using data
2168 in struct __netgrent object passed in instead of global variables.
2169 * inet/netgroup.h (struct __netgrent): Add service_user field.
2170 Move cursor in anonymous union, add new field location to that
2172 * inet/getnetgrent_r.c: Extensive rewrite to really enable
2173 concurrent uset of set/get/endnetgrent and innetgr.
2174 Reported by Chuck Simmons.
2176 * inet/netgroup.h (struct name_list): Replace name pointer with
2178 * inet/getnetgrent_r.c: Adjust code for change in name_list
2179 layout. Numerous strdup and free calls removed.
2181 * elf/sprof.c (read_symbols): When comparing aliases, prefer
2182 non-hidden over hidden symbols and strong over weak symbols
2183 if both don't start with '_'.
2185 * malloc/malloc.c: Use strong_alias instead of weak_alias wherever
2188 2004-08-12 Jakub Jelinek <jakub@redhat.com>
2190 * sysdeps/unix/sysv/linux/bits/resource.h: Define non-standard
2191 RUSAGE_ enums as __RUSAGE_ and adjust macros accordingly.
2192 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
2193 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
2194 * sysdeps/unix/sysv/linux/mips/bits/resource.h: Likewise.
2195 Define non-standard RLIMIT_ enums as __RLIMIT_ and adjust macros
2198 2004-08-11 Andreas Schwab <schwab@suse.de>
2200 * resolv/res_libc.c: Move definition of __res_initstamp ...
2201 * resolv/res_init.c: ... here.
2203 2004-08-10 GOTO Masanori <gotom@debian.or.jp>
2205 * locale/C-time.c: Change default ERA value from NULL to "".
2206 * locale/tst-C-locale.c: Add test case for ERA keywords.
2208 2004-08-12 Ulrich Drepper <drepper@redhat.com>
2210 * sysdeps/unix/sysv/linux/bits/resource.h: Define non-standard
2211 RLIMIT__ enums as __RLIMIT_ and adjust macros accordingly.
2212 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
2213 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
2215 2004-08-12 Jakub Jelinek <jakub@redhat.com>
2217 * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_SIGPENDING,
2218 RLIMIT_MSGQUEUE): Add.
2219 (RLIMIT_NLIMITS, RLIM_NLIMITS): Adjust.
2220 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIMIT_SIGPENDING,
2221 RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
2222 (RLIM_NLIMITS): Adjust.
2223 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIMIT_SIGPENDING,
2224 RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
2225 (RLIM_NLIMITS): Adjust.
2226 * sysdeps/unix/sysv/linux/mips/bits/resource.h (RLIMIT_SIGPENDING,
2227 RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
2228 (RLIM_NLIMITS): Adjust.
2230 2004-08-12 Jakub Jelinek <jakub@redhat.com>
2232 * resolv/res_query.c (__libc_res_nsearch): Protect the debugging
2233 printf with #ifdef DEBUG and RES_DEBUG check.
2235 * sysdeps/unix/sysv/linux/bits/shm.h: Move __END_DECLS after
2237 * sysdeps/generic/bits/shm.h: Add __BEGIN_DECLS for __getpagesize
2239 * sysdeps/gnu/bits/shm.h: Likewise.
2240 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2241 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2242 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2243 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2244 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2246 2004-08-12 Ulrich Drepper <drepper@redhat.com>
2248 * po/ca.po: Update from translation team.
2250 2004-08-11 Ulrich Drepper <drepper@redhat.com>
2252 * sysdeps/unix/sysv/linux/bits/shm.h: Add __BEGIN_DECLS for
2253 __getpagesize declaration.
2255 2004-08-11 Roland McGrath <roland@redhat.com>
2257 * configure.in (libc_cv_cpp_asm_debuginfo): Add missing braces around
2259 Reported by Andreas Schwab <schwab@suse.de>.
2260 * configure: Regenerated.
2262 * posix/tst-waitid.c (do_test): Ignore SIGCHLD before cleanup SIGKILL.
2264 2004-08-11 Ulrich Drepper <drepper@redhat.com>
2266 * time/tzset.c (tzset_internal): Add new parameter which is
2267 nonzero if called through tzset. Use TZDEFAULT name including
2268 name comparison if the new parameter is zero. This means implicit
2269 tzset calls will not cause files to be opened and read by tzfile.c
2272 2004-08-11 Jakub Jelinek <jakub@redhat.com>
2274 * rt/tst-timer2.c (do_test): If timer_create fails, just continue.
2275 * rt/tst-timer4.c (do_test): If one of the timer_create calls fails,
2276 return 1 immediately.
2278 * time/tzfile.c (__tzfile_read): Free transitions only if it will
2281 * sysdeps/ieee754/dbl-64/mpa.c: Include <sys/param.h>.
2282 * sysdeps/ieee754/dbl-64/mpa.h (MAX, MIN): Macros removed.
2284 * stdio-common/tst-popen.c: Include <string.h>.
2286 * resolv/res_send.c (__libc_res_nsend): Only define TMPBUF #if DEBUG.
2288 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Remove noreturn
2289 attribute. Return NULL instead of calling pthread_exit at the end.
2291 2004-08-11 Roland McGrath <roland@redhat.com>
2293 * iconvdata/testdata/ISO-2022-JP-3: Regenerated.
2295 2004-07-23 Jakub Jelinek <jakub@redhat.com>
2298 * include/features.h (_POSIX_SOURCE, _POSIX_C_SOURCE): Define
2299 if _XOPEN_SOURCE >= 500 even if __STRICT_ANSI__ is defined.
2301 2004-08-10 Alfred M. Szmidt <ams@kemisten.nu>
2303 * sysdeps/generic/bits/in.h (struct ip_mreq): Remove definition.
2305 2004-08-10 Jakub Jelinek <jakub@redhat.com>
2307 * libio/bits/stdio.h (fread_unlocked): Cast 0 to (size_t).
2308 (fwrite_unlocked): When checking if size * n is <= 8, cast each
2309 argument to size_t individually. Cast n to (void) instead of
2310 (size_t), surround with (), return (size_t) 0 if one of n or size
2312 * stdio-common/Makefile (tests): Add tst-unlockedio.
2313 * stdio-common/tst-unlockedio.c: New test.
2315 2004-08-09 Roland McGrath <roland@frob.com>
2317 * manual/install.texi (Supported Configurations): Replace bug-glibc
2318 mention with web URL.
2319 * INSTALL: Regenerated.
2320 * locale/iso-3166.def: Likewise, in comment.
2321 * locale/iso-4217.def: Likewise.
2322 * locale/iso-639.def: Likewise.
2323 * posix/cpio.h: Remove bug reporting comment.
2325 2004-08-09 Ulrich Drepper <drepper@redhat.com>
2327 * libio/bits/stdio.h (fread_unlocked): Add a couple of (size_t)
2328 casts to handle funny calls with floating point argument values
2329 and signed values correctly and without warning.
2330 (fwrite_unlocked): Likewise. [BZ #309]
2332 * malloc/memusage.c (me): Use creat64, not creat.
2333 * malloc/memusagestat.c: Fix handling of very large sizes. [BZ #285]
2334 Patch by Guy Maor <guymaor@yahoo.com>.
2336 * elf/ldconfig.c (options): Mark parameter option names as
2337 translatable. [BZ #253] Patch by Jakub Bogusz <qboosh@pld-linux.org>.
2339 * iconv/gconv_charset.h (strip): Also allow comma which is what is
2340 used to separate options. [BZ #194]
2342 2004-08-09 Roland McGrath <roland@redhat.com>
2344 * FAQ.in: Refer to web pages instead of bug-glibc.
2347 * time/strptime_l.c: #include <stdbool.h>, `bool' used in last change.
2349 2004-08-09 Ulrich Drepper <drepper@redhat.com>
2351 * time/tzset.c (tzset_internal): If TZ is not set do not compare
2352 old and new tz value since it might be /etc/localtime in both
2353 cases although the file changed. [BZ #154]
2354 Patch by Christian Franke <franke@computer.org>.
2356 * time/tzfile.c (__tzfile_read): Determine dev/ino of file.
2357 Compare with values of previously opened file. Don't do anything
2360 2004-08-08 Ulrich Drepper <drepper@redhat.com>
2362 * elf/dl-load.c (_dl_map_object): If __RTLD_CALLMAP flag is set,
2363 reset loader before the actual loading.
2364 * elf/dl-open.c (dl_open_worker): If file name contains no path
2365 element determine map of caller. Pass caller map in this case to
2366 _dl_map_object. Set __RTLD_CALLMAP in mode.
2367 * include/dlfcn.h (__RTLD_CALLMAP): Define. [BZ #116]
2368 Patch by Greg Wolodkin <greg@mathworks.com>.
2370 * misc/syslog.c (openlog_internal): Always try both UDP and TCP.
2371 [BZ #108] Patch mainly by Bjorn Andersson <bjorn@iki.fi>.
2373 * configure.in: Also recognize i786. [BZ #106]
2374 Patch by <pluto@pld-linux.org>.
2376 * resolv/res_query.c (__libc_res_nsearch): Correctly test whether
2377 name contains any dots. [BZ #95]
2379 * resolv/res_send.c: Compiling with DEBUG defined works again.
2380 * resolv/gethnamaddr.c (dprintf): Renamed to Dprintf. Adjust all
2383 * resolv/tst-leaks.c (TIMEOUT): Define so that if no server is
2384 available the process is not killed. [BZ #41]
2386 * intl/tst-gettext.c (main): Improve some messages. [BZ #33]
2388 * time/strptime_l.c (__strptime_internal): Fix handling of %Ey.
2391 * po/sv.po: Update from translation team.
2393 2004-08-07 Ulrich Drepper <drepper@redhat.com>
2395 * inet/netinet/in.h: Add more const to the setipv4soucefilter,
2396 getsourcefilter, and setsourcefilter parameter list.
2397 * sysdeps/generic/setipv4sourcefilter.c: Likewise.
2398 * sysdeps/generic/getsourcefilter.c: Likewise.
2399 * sysdeps/generic/setsourcefilter.c: Likewise.
2400 * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
2401 * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
2402 * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
2404 * po/tr.po: Update from translation team.
2406 2004-08-06 Ulrich Drepper <drepper@redhat.com>
2408 * iconvdata/jisx0213.h (jisx0213_added_in_2004_p): Fix typo.
2409 Reported by Paolo Bonzini.
2411 2004-08-06 Jakub Jelinek <jakub@redhat.com>
2413 * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add
2415 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_runtime_setup,
2416 elf_machine_fixup_plt, elf_machine_plt_conflict): Likewise.
2418 * sysdeps/unix/sysv/linux/netatalk/at.h: Include bits/sockaddr.h
2419 before including linux/atalk.h.
2421 * resolv/res_libc.c: Include atomic.h.
2423 * intl/finddomain.c (free_mem): Rename to...
2424 (_nl_finddomain_subfreeres): ... this. Add
2425 __libc_freeres_fn_section.
2426 * intl/loadmsgcat.c (_nl_unload_domain): Add
2427 __libc_freeres_fn_section.
2428 * intl/gettextP.h (_nl_unload_domain): Move into #ifdef _LIBC.
2429 Add attribute_hidden.
2430 (_nl_findomain_subfreeres): New prototype.
2431 * iconv/gconv_db.c (free_mem): Call _nl_findomain_subfreeres.
2433 2004-07-30 Guido Guenther <agx@sigxcpu.org>
2435 * nss/getent.c (passwd_keys): Use strtoul instead of isdigit to
2436 test if the key is numeric or not.
2437 (group_keys): Likewise.
2439 2004-08-05 Ulrich Drepper <drepper@redhat.com>
2441 * inet/netinet/in.h: Define struct ip_msfilter, IP_MSFILTER_SIZE,
2442 struct group_filter, and GROUP_FILTER_SIZE.
2443 * include/sys/socket.h: Declare __getsockopt.
2444 * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: New file.
2445 * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: New file.
2446 * sysdeps/unix/sysv/linux/setsourcefilter.c: New file.
2447 * sysdeps/unix/sysv/linux/getsourcefilter.c: New file. [BZ #211]
2449 * po/ko.po: Update from translation team.
2451 2004-08-04 Jakub Jelinek <jakub@redhat.com>
2453 * hesiod/hesiod.c (__hesiod_res_get): Use calloc instead of malloc +
2455 (__hesiod_res_set): Free nsaddrs.
2457 * include/resolv.h (__res_maybe_init): Add prototype.
2458 * resolv/resolv.h (struct __res_state): Add _u._ext.initstamp field.
2459 * resolv/Versions (libc): Add __res_maybe_init@@GLIBC_PRIVATE.
2460 * resolv/res_libc.c (__res_initstamp, lock): New variables.
2461 (res_init): Increase __res_initstamp.
2462 (__res_maybe_init): New function.
2463 * resolv/res_init.c (__res_vinit): Initialize _u._ext.initstamp.
2464 * hesiod/hesiod.c (__hesiod_res_get): Use __res_maybe_init instead
2465 of RES_INIT check and {res_ninit,__res_ninit,res_init} call.
2466 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
2467 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
2468 _nss_dns_gethostbyaddr_r): Likewise.
2469 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
2470 _nss_dns_getnetbyaddr_r): Likewise.
2471 * resolv/gethnamaddr.c (gethostbyname, gethostbyname2,
2472 gethostbyaddr): Likewise.
2473 * resolv/res_data.c (fp_nquery, res_mkquery, res_mkupdate,
2474 res_isourserver, res_sendsigned, res_update, res_search,
2475 res_querydomain): Likewise.
2476 * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Likewise.
2477 * nss/digits_dots.c (__nss_hostname_digits_dots): Likewise.
2478 * nss/getnssent_r.c (__nss_setent, __nss_endent, __nss_getent_r):
2481 2004-08-05 Ulrich Drepper <drepper@redhat.com>
2483 * sysdeps/posix/getaddrinfo.c (gaih_inet): Set ai_family for
2484 V4-mapped IPv6 addresses and req->ai_family==AF_INET.
2485 Reported by A. Guru <a.guru@sympatico.ca>.
2487 * po/sv.po: Update from translation team.
2488 * po/sk.po: Likewise.
2489 * po/pl.po: Likewise.
2491 2004-08-04 Jakub Jelinek <jakub@redhat.com>
2492 Ulrich Drepper <drepper@redhat.com>
2494 * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Don't read more input
2495 characters than necessary.
2497 2004-08-05 Ulrich Drepper <drepper@redhat.com>
2499 * wcsmbs/Makefile (tests): Add tst-mbsrtowcs.
2500 * wcsmbs/tst-mbsrtowcs.c: New file.
2502 * po/fr.po: Update from translation team.
2504 2004-08-04 Jakub Jelinek <jakub@redhat.com>
2506 * resolv/inet_pton.c (inet_pton4): Disallow octal numbers. Reported
2507 by A. Guru <a.guru@sympatico.ca>. [BZ #295]
2509 2004-08-05 Ulrich Drepper <drepper@redhat.com>
2511 * po/nl.po: Update from translation team.
2513 * sysdeps/posix/getaddrinfo.c (gaih_inet): Recognize all the IPv4
2514 numeric address formats inet_addr knows.
2515 (getaddrinfo): Allow AI_NUMERICSERV flag.
2516 If neither IPv4 nor IPv6 interface is present we cannot make any
2517 decision for AI_ADDRCONFIG. Fail if AI_NUMERICSERV is set and the
2518 string is not just a number. Remove useless freeaddrinfo call.
2519 * resolv/netdb.h (AI_NUMERICSERV): Define.
2520 Based on a patch by a.guru@sympatico.ca.
2522 2004-08-04 Jakub Jelinek <jakub@redhat.com>
2524 * stdlib/strfmon_l.c (__vstrfmon_l): Memset whole info structure
2525 instead of trying to initialize some, but not all, fields one by
2527 * stdio-common/printf_size.c (printf_size): Initialize fb_info
2528 structure with *info instead of trying to initialize some, but not
2529 all, fields from it.
2531 * nscd/connections.c (handle_request): Check if req->type is in
2532 LASTDBREQ .. LASTREQ range instead of req.
2534 * locale/programs/linereader.c (lr_create): Initialize
2535 lr->return_widestr to 0.
2537 * elf/dl-close.c (free_slotinfo): Add __libc_freeres_fn_section.
2538 (free_mem): Call free_slotinfo just once.
2540 * stdio-common/tst-fmemopen.c (main): Check for MAP_FAILED instead
2543 * locale/localeinfo.h (_nl_locale_subfreeres): New prototype.
2544 * locale/setlocale.c (free_category): Add __libc_freeres_fn_section.
2545 (free_mem): Rename to _nl_locale_subfreeres.
2546 * iconv/gconv_db.c: Include locale/localeinfo.h.
2547 (free_derivation, free_modules_db): Add __libc_freeres_fn_section.
2548 (free_mem): Call _nl_locale_subfreeres.
2549 * iconv/gconv_dl.c (do_release_all): Add __libc_freeres_fn_section.
2551 2004-08-04 Roland McGrath <roland@frob.com>
2553 * Makeconfig ($(common-objpfx)config.status):
2554 Fix typo: $(add_ons) -> $(add-ons).
2555 (Makeconfig-add-on): New variable. When doing $(sysdep-makeconfigs)
2556 include, use black magic to get it set to an add-on's name during the
2557 include of the add-on's Makeconfig.
2559 * configure.in: Use variable name `libc_add_on' when sourcing add-on
2560 configure fragments, so they can refer to this.
2561 * configure: Regenerated.
2563 2004-08-04 Roland McGrath <roland@redhat.com>
2565 * posix/tst-waitid.c (test_child): Sleep a second before stopping.
2566 (do_test): Bump sleep to three seconds.
2567 (sigchld, check_sigchld): New functions.
2568 (do_test): Handle SIGCHLD and check for getting the right details.
2570 * posix/tst-waitid.c (do_test): Kill the child process when bailing
2571 out early on some failure.
2572 [WCONTINUED]: Test WCONTINUED functionality.
2574 2004-08-03 Ulrich Drepper <drepper@redhat.com>
2576 * nscd/connections.c (handle_request): Print more descriptive
2577 message for invalid request types.
2579 2004-08-02 Jakub Jelinek <jakub@redhat.com>
2581 * iconvdata/ibm932.c (BODY): Avoid binary search for ch >= 0xffff.
2582 Always treat high as highest number in range + 1.
2583 * iconvdata/ibm943.c (BODY): Likewise.
2585 2004-07-31 Bruno Haible <bruno@clisp.org>
2587 * iconvdata/JISX0213.TXT: Updated to JISX0213 plane 1 version 2004.
2588 * iconvdata/jisx0213.c (__jisx0213_to_ucs_main,
2589 __jisx0213_to_ucs_pagestart, __jisx0213_from_ucs_level1,
2590 __jisx0213_from_ucs_level2): Regenerated.
2591 * iconvdata/jisx0213.h (jisx0213_added_in_2004_p): New function.
2592 * iconvdata/iso-2022-jp-3.c (JISX0213_1_2000_set): Renamed from
2594 (JISX0213_1_2004_set): New enum value.
2595 (BODY for FROM_LOOP): Treat ESC $ ( Q like ESC $ ( O.
2596 (BODY for TO_LOOP): For JISX 0213 plane 1 characters, emit ESC $ ( O
2597 when possible, ESC $ ( Q when needed.
2598 * iconvdata/testdata/EUC-JISX0213: Add the 10 new characters.
2599 * iconvdata/testdata/EUC-JISX0213..UTF8: Update.
2600 * iconvdata/testdata/SHIFT_JISX0213: Add the 10 new characters.
2601 * iconvdata/testdata/SHIFT_JISX0213..UTF8: Update.
2602 * iconvdata/testdata/ISO-2022-JP-3: Add the 10 new JISX0213 characters.
2603 * iconvdata/testdata/ISO-2022-JP-3..UTF8: Update.
2605 2004-07-22 Bruno Haible <bruno@clisp.org>
2607 * iconvdata/gconv-modules (ISO-8859-7): Add alias ISO_8859-7:2003.
2609 2004-07-29 David S. Miller <davem@redhat.com>
2611 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy): Optimize
2612 better for smaller than 256 byte copies. Also, use only one
2613 unrolled loop instead of two for the large copy case.
2615 2004-07-30 Richard Henderson <rth@redhat.com>
2617 * sysdeps/alpha/divq.S: Save t3 before it gets clobbered.
2618 * sysdeps/alpha/remq.S: Likewise.
2619 * sysdeps/alpha/div.S, sysdeps/alpha/ldiv.S: Rewrite with the
2620 new division algorithms in divl.S and divq.S respectively.
2622 2004-07-28 GOTO Masanori <gotom@debian.or.jp>
2624 * timezone/asia: Update from tzdata2004b.
2625 * timezone/backward: Likewise.
2626 * timezone/europe: Likewise.
2627 * timezone/iso3166.tab: Likewise.
2628 * timezone/leapseconds: Likewise.
2629 * timezone/northamerica: Likewise.
2630 * timezone/southamerica: Likewise.
2631 * timezone/zone.tab: Likewise.
2633 * timezone/private.h: Update from tzcode2004b.
2634 * timezone/zic.c: Likewise.
2636 2004-07-27 Ulrich Drepper <drepper@redhat.com>
2638 * nscd/grpcache.c (cache_addgr): If necessary, add entry also
2639 under the name the user provided.
2640 * nscd/pwdcache.c (cache_addpw): Likewise.
2642 2004-07-26 Roland McGrath <roland@redhat.com>
2644 * sysdeps/posix/waitid.c [WEXITED]: Clear WEXITED bit in OPTIONS for
2647 2004-07-26 Ulrich Drepper <drepper@redhat.com>
2649 * nscd/hstcache.c (cache_addhst): Fix two scenarios which lead to
2652 * sysdeps/unix/sysv/linux/ifreq.c (__ifreq): Assign pointer for
2653 new buffer at the right time.
2654 Reported by Jakub Bogusz <qboosh@pld-linux.org>.
2656 2004-07-25 Ulrich Drepper <drepper@redhat.com>
2658 * inet/Versions [libc, GLIBC_2.3.4]: Add getipv4sourcefilter,
2659 getsourcefilter, setipv4sourcefilter, and setsourcefilter.
2660 * inet/Makefile (routines): Likewise.
2661 * inet/netinet/in.h: Add prototypes for getipv4sourcefilter,
2662 getsourcefilter, setipv4sourcefilter, and setsourcefilter.
2663 * sysdeps/generic/getipv4sourcefilter.c: New file.
2664 * sysdeps/generic/setipv4sourcefilter.c: New file.
2665 * sysdeps/generic/getsourcefilter.c: New file.
2666 * sysdeps/generic/setsourcefilter.c: New file.
2668 2004-07-17 Steven Munroe <sjmunroe@us.ibm.com>
2670 * sysdeps/powerpc/powerpc64/memcpy.S: Improve instruction scheduling
2671 for POWER4 machines.
2673 2004-07-21 Jakub Jelinek <jakub@redhat.com>
2676 * stdlib/strtod_l.c (INTERNAL (__STRTOF)): Fix used >=
2677 BITS_PER_MP_LIMB shifting up.
2678 * stdlib/tst-strtod.c (main): Add new tests.
2680 2004-07-23 Jakub Jelinek <jakub@redhat.com>
2683 * libio/iopopen.c (_IO_new_popen): Use _IO_init instead of
2684 _IO_no_init. Remove wd from struct locked_FILE.
2685 (_IO_wproc_jumps): Remove.
2686 Reported by Andrew Josey <a.josey@opengroup.org>.
2687 * stdio-common/Makefile (tests): Add tst-popen.
2688 * stdio-common/tst-popen.c: New test.
2690 2004-07-23 Ulrich Drepper <drepper@redhat.com>
2692 * posix/bits/posix1_lim.h: Fix values for _POSIX_CHILD_MAX and
2693 _POSIX_OPEN_MAX. Add _POSIX_HOST_NAME_MAX, _POSIX_SYMLINK_MAX,
2694 _POSIX_SYMLOOP_MAX, and _POSIX_RE_DUP_MAX.
2695 Reported by Andrew Josey.
2697 * include/features.h: Document _POSIX_C_SOURCE == 200112L.
2699 * grp/grp.h: Define gid_t if __USE_XOPEN2K is defined.
2700 * pwd/pwd.h: Define uid_t and gid_t if __USE_XOPEN2K is defined.
2701 * io/sys/stat.h: Define dev_t, gid_t, ino_t, mode_t, nlink_t,
2702 off_t, time_t, and uid_t if __USE_XOPEN2K is defined.
2703 * signal/signal.h: Define pid_t if __USE_XOPEN2K is defined.
2704 * posix/unistd.h: Define gid_t, off_t, pid_t, uid_t, and
2705 useconds_t if __USE_XOPEN2K is defined.
2706 * io/utime.h: Define time_t if __USE_XOPEN2K is defined.
2707 * libio/stdio.h: Declare fseeko and ftello if __USE_XOPEN2K is defined.
2709 2004-07-19 Thorsten Kukuk <kukuk@suse.de>
2711 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
2712 allocate memory for large temporary variables with alloca.
2714 2004-07-22 Ulrich Drepper <drepper@redhat.com>
2716 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Compatibility
2717 code must have version GLIBC_2.0. Patch by Dwayne McConnell.
2719 * nscd/nscd_getgr_r.c (nscd_getgr_r): Avoid read call with NULL
2720 pointer and zero length.
2722 2004-07-21 Ulrich Drepper <drepper@redhat.com>
2724 * nscd/cache.c (prune_cache): Print correct list when debugging.
2726 2004-07-21 Jakub Jelinek <jakub@redhat.com>
2728 * resolv/res_libc.c (res_init): If RES_INIT is set and
2729 _res.nscount > 0, call __res_nclose and free nsaddrs.
2730 * resolv/Makefile: Add rules to build and run tst-leaks2.
2731 * resolv/tst-leaks2.c: New test.
2733 2004-07-21 Ulrich Drepper <drepper@redhat.com>
2735 * intl/libintl.h: Don't define macros for C++.
2736 Patch by Goto Masanori.
2738 2004-07-22 GOTO Masanori <gotom@debian.or.jp>
2741 * include/arpa/inet.h: Change inet_aton type from in_addr_t to int.
2742 * inet/arpa/inet.h: Likewise.
2743 * resolv/inet_addr.c: Likewise.
2745 2004-07-21 Alexandre Oliva <aoliva@redhat.com>
2747 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: Add semtimedop.
2749 2004-07-20 Roland McGrath <roland@redhat.com>
2751 * configure.in (add_ons): Substitute this. Move $add_ons handling
2752 after AC_CANONICAL_HOST and default setting of $machine et al.
2753 Don't set $subdirs from $add_ons.
2754 Instead, source add-on/configure fragments early on.
2755 (base_machine): If it's already set, don't set it based on $machine.
2756 (libc_config_ok): New variable, set to no. If an add-on fragment sets
2757 it to yes, skip the tuple sanity check as if --enable-hacker-mode.
2758 (sysnames): Try appending add-on names after machine as well.
2759 * config.make.in (add-ons): Set from @add_ons@ instead of @subdirs@.
2760 * Makeconfig ($(common-objpfx)config.status): Also depend on configure
2761 files in $(add_ons) dirs.
2763 * sysdeps/unix/sysv/linux/bits/in.h (struct ip_mreq): Remove
2764 definition, now in netinet/in.h proper.
2766 2004-07-20 Alexandre Oliva <aoliva@redhat.com>
2768 * sysdeps/unix/sysv/linux/mips/Makefile ($(objpfx)syscall-%.h):
2769 Sort by syscalls. Make sure we get headers such as sgidefs.h from
2770 the build tree before just-installed ones.
2772 * sysdeps/mips/atomicity.h: Use standard names for ABI macros,
2773 include sgidefs.h where appropriate.
2774 * sysdeps/mips/dl-machine.h: Likewise.
2775 * sysdeps/mips/machine-gmon.h: Likewise.
2776 * sysdeps/mips/bits/setjmp.h: Likewise.
2777 * sysdeps/mips/fpu/bits/mathdef.h: Likewise.
2778 * sysdeps/mips/mips64/__longjmp.c: Likewise.
2779 * sysdeps/mips/mips64/setjmp_aux.c: Likewise.
2780 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
2781 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
2782 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2783 * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
2784 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2785 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2786 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
2787 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Likewise.
2788 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
2789 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: Likewise.
2790 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
2791 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
2792 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: Likewise.
2793 * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
2794 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
2795 * sysdeps/unix/sysv/linux/mips/sys/user.h: Likewise.
2796 * sysdeps/unix/sysv/linux/mips/Makefile ($(objpfx)syscall-%.h):
2798 * sysdeps/unix/sysv/linux/mips/configure.in (asm-unistd.h):
2801 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Update to use
2802 _dl_lookup_symbol_x.
2803 (elf_machine_runtime_link_map): Don't INTUSE _dl_signal_error.
2805 2004-07-20 Ulrich Drepper <drepper@redhat.com>
2807 * inet/netinet/in.h: Define struct ip_mreq and struct
2809 Define struct group_req and struct group_source_req.
2810 * sysdeps/unix/sysv/linux/bits/in.h: Define IP_UNBLOCK_SOURCE,
2811 IP_BLOCK_SOURCE, IP_ADD_SOURCE_MEMBERSHIP,
2812 IP_DROP_SOURCE_MEMBERSHIP, IP_MSFILTER, MCAST_JOIN_GROUP,
2813 MCAST_BLOCK_SOURCE, MCAST_UNBLOCK_SOURCE, MCAST_LEAVE_GROUP,
2814 MCAST_JOIN_SOURCE_GROUP, MCAST_LEAVE_SOURCE_GROUP, and
2816 Define MCAST_INCLUDE and MCAST_EXCLUDE.
2818 * iconvdata/gconv-modules: Add alias for IBM874 [BZ #244].
2820 2004-07-19 Jakub Jelinek <jakub@redhat.com>
2823 * math/libm-test.inc (max_value, min_value): New variables.
2824 (initialize): Initialize them.
2825 (pow_test): Add a couple of new tests.
2826 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Don't generate invalid
2827 exception if |y| >= 1U<<31.
2828 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Don't generate invalid
2829 exception if |y| >= 1L<<63.
2830 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
2831 If y*log2(x) overflows to +-inf, return still +inf/+0 instead of NaN.
2832 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
2834 2004-07-18 Ulrich Drepper <drepper@redhat.com>
2836 * nscd/pwdcache.c (cache_addpw): Optimize case of unsuccessful
2838 * nscd/grpcache.c (cache_addgr): Likewise.
2839 * nscd/hstcache.c (cache_addhst): Likewise.
2841 2004-07-10 GOTO Masanori <gotom@debian.or.jp>
2843 * sysdeps/s390/s390-32/elf/start.S: Remove symbol _fp_hw.
2844 * sysdeps/s390/s390-64/elf/start.S: Likewise.
2846 2004-04-16 Andreas Schwab <schwab@suse.de>
2848 * sysdeps/ia64/bits/atomic.h: Cast first argument of
2849 __sync_bool_compare_and_swap_si correct to void*.
2851 2004-07-17 Ulrich Drepper <drepper@redhat.com>
2853 * iconv/iconv_prog.c (print_known_names): Make machine-readable
2854 output even less cluttered.
2856 2004-07-16 Steven Munroe <sjmunroe@us.ibm.com>
2859 * setjmp/Makefile (tests): Add bug269-setjmp.
2860 * setjmp/bug269-setjmp.c: New file.
2861 * sysdeps/powerpc/powerpc64/__longjmp-common.S [SHARED && !IS_IN_rtld]:
2862 Store R2 from jmpbuf in callers TOC save area.
2863 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S [SHARED && !IS_IN_rtld]:
2864 Store R2 in TOC save area.
2865 * sysdeps/powerpc/powerpc64/setjmp-common.S [SHARED && !IS_IN_rtld]:
2866 Copy TOC save area from previous frame as R2 (TOC) in jmpbuf.
2868 2004-07-16 Jakub Jelinek <jakub@redhat.com>
2870 * locale/newlocale.c: Include bits/libc-lock.h.
2871 (__libc_setlocale_lock): Extern decl.
2872 (__newlocale): Use it.
2873 Reported by Ulrich Weigand <Ulrich.Weigand@de.ibm.com>.
2875 2004-07-15 Jakub Jelinek <jakub@redhat.com>
2877 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Remove
2878 static inline __attribute ((always_inline)). Don't define if
2880 (__libc_fcntl): Use INLINE_SYSCALL directly instead of
2882 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__fcntl_nocancel):
2883 Remove static inline __attribute ((always_inline)). Don't define
2885 (__libc_fcntl): Use INLINE_SYSCALL directly instead of
2887 * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Define to
2888 __libc_fcntl if NO_CANCELLATION and __ASSUME_FCNTL64 == 0.
2889 Don't define at all if NO_CANCELLATION and __ASSUME_FCNTL64 > 0.
2890 (__libc_fcntl): Don't define if __fcntl_nocancel is a macro.
2893 * sysdeps/i386/elf/start.S (_start): Use @GOT instead of @GOTOFF
2895 * elf/Makefile: Add rules to build and run tst-pie1.
2896 * elf/tst-pie1.c: New test.
2897 * elf/tst-piemod1.c: New file.
2899 2004-07-14 Jakub Jelinek <jakub@redhat.com>
2902 * manual/string.texi (l64a): Note that the static buffer is 7 bytes
2903 long. Rewrite example code so that it takes into account l64a output
2904 shorter than 6 characters.
2905 Reported by Julian Graham <julian.graham@aya.yale.edu>.
2907 2004-07-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2909 * sysdeps/sh/dl-machine.h: Don't reset _dl_starting_up here.
2910 (elf_machine_rela_relative): Remove unused valiable.
2912 2004-07-12 Paul Eggert <eggert@cs.ucla.edu>
2915 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Don't store
2916 outside the buffer if the read returns 0. __strtod_l can't set
2917 endp to NULL, so remove a test for that case.
2919 2004-07-12 Roland McGrath <roland@redhat.com>
2921 * manual/signal.texi (Interrupted Primitives): Make clear that
2922 TEMP_FAILURE_RETRY evaluates its expression as long int and compares
2923 it to -1 to define "failure".
2925 2004-07-10 Ulrich Drepper <drepper@redhat.com>
2927 * elf/ldconfig.c: Define PROCINFO_CLASS as static before including
2929 * sysdeps/generic/ldsodefs.h: Only define PROCINFO_CLASS if it is not
2931 * sysdeps/i386/dl-procinfo.c: Define PROCINFO_CALLS only if not
2934 * elf/rtld.c (print_statistics): Mark with noinline attribute.
2935 * sysdeps/i386/dl-machine.h (elf_machine_rel): Mark with always_inline
2937 (elf_machine_rel_relative): Likewise.
2939 * include/string.h: Add libc_hidden_proto for __strtok_r and
2941 * sysdeps/generic/strsep.c: Add libc_hidden_def.
2942 * sysdeps/generic/strtok_r.c: Likewise.
2943 * sysdeps/i386/strtok_r.S: Add alias for internal symbol.
2944 * sysdeps/i386/i686/strtok_r.S: Likewise.
2945 * sysdeps/x86_64/strtok_r.S: Likewise.
2947 2004-07-09 Alexandre Oliva <aoliva@redhat.com>
2949 * inet/getnetgrent_r.c (internal_setnetgrent): Make it hidden
2950 instead of internal-linkage, such that we can alias to it.
2951 (internal_endnetgrent, internal_getnetgrent_r): Likewise.
2953 2004-07-09 Ulrich Drepper <drepper@redhat.com>
2955 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Move attribute
2956 to the front for gcc 3.5+.
2957 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
2958 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Likewise.
2959 * include/fcntl.h: Don't declare __fcntl_nocancel here if
2960 NO_CANCELLATION is defined.
2962 2004-07-07 Jakub Jelinek <jakub@redhat.com>
2964 * elf/dl-fini.c (_dl_fini): Add nloaded variable, load
2965 GL(dl_nloaded) into it while still in critical section.
2967 2004-07-06 Thorsten Kukuk <kukuk@suse.de>
2969 * nss/getent.c (print_group, print_passwd): Use %lu format for
2970 `unsigned long int' values.
2972 * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Fix syntax
2973 error typos in goto statements.
2975 2004-07-07 Roland McGrath <roland@frob.com>
2977 * Makefile (dist-separate): New variable.
2978 (glibc-%.tar rule): Make separate tar files for add-ons listed there.
2979 Depend on their configure files.
2980 (dist-do-separate-dirs): New canned sequence to do that.
2981 (dist-separate-libidn, dist-separate-linuxthreads): New variables.
2982 (dist): Depend on add-on tar files based on $(dist-separate).
2983 (dist-version): New variable, default to $(version).
2984 (tag-for-dist, dist): Use that in place of $(version) in deps.
2986 2004-07-07 Ulrich Drepper <drepper@redhat.com>
2988 * elf/dl-fini.c (_dl_fini): Move the unlock of the ld.so lock
2989 before the loop running the destructors.
2991 2004-05-18 Andreas Schwab <schwab@suse.de>
2993 * elf/dl-load.c (_dl_map_object_from_fd): Use the end address of
2994 the first segment for mprotect, not l_text_end.
2996 2004-07-05 Ulrich Drepper <drepper@redhat.com>
2998 * elf/dl-profile.c (_dl_start_profile): Compact error handling.
2999 Remove hashfraction variable. Make kcount and kcountsize local
3002 * elf/dl-init.c: Don't define and use _dl_starting_up if
3003 HAVE_INLINED_SYSCALLS is defined and the variable is not used.
3004 * elf/dl-support.c: Likewise.
3005 * elf/rtld.c: Likewise.
3006 * elf/dl-misc.c (_dl_debug_vdprintf): Use writev syscall directly
3007 if HAVE_INLINED_SYSCALLS is defined.
3008 * sysdeps/powerpc/powerpc64/dl-machine.h: Don't reset _dl_starting_up
3010 * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
3011 * sysdeps/unix/sysv/linux/configure.in: Define HAVE_INLINED_SYSCALLS.
3012 * config.h.in: Add entry for HAVE_INLINED_SYSCALLS.
3014 * sysdeps/posix/profil.c: If compiled for ld.so, omit code which
3015 is needed to stop profiling.
3016 * elf/dl-open.c (dl_open_worker): If a newly opened object is to be
3017 profile make sure it cannot be unloaded.
3019 * sysdeps/unix/sysv/linux/dl-origin.c: Inline readlink syscall.
3021 * sysdeps/unix/sysv/linux/fcntl.c: If compiled without cancellation
3022 support, make sure the helper function is inlined.
3023 * sysdeps/unix/sysv/linux/pread.c: Likewise.
3024 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
3025 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
3026 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Likewise.
3028 2004-07-05 Jakub Jelinek <jakub@redhat.com>
3030 * include/string.h (ffs): Add libc_hidden_builtin_proto.
3031 * sysdeps/rs6000/ffs.c (ffs): Add libc_hidden_builtin_def.
3032 * sysdeps/alpha/alphaev67/ffs.S (ffs): Likewise.
3033 * sysdeps/alpha/ffs.S (ffs): Likewise.
3034 * sysdeps/s390/ffs.c (ffs): Likewise.
3035 * sysdeps/powerpc/ffs.c (ffs): Likewise.
3036 * sysdeps/i386/ffs.c (ffs): Likewise.
3037 * sysdeps/i386/i686/ffs.c (ffs): Likewise.
3038 * sysdeps/m68k/ffs.c (ffs): Likewise.
3039 * sysdeps/generic/ffs.c (ffs): Likewise.
3040 * sysdeps/m88k/ffs.c (ffs): Likewise.
3041 * sysdeps/am29k/ffs.c (ffs): Likewise.
3042 * sysdeps/i960/ffs.c (ffs): Likewise.
3043 * sysdeps/x86_64/ffs.c (ffs): Likewise.
3045 * Makerules (check-abi): Use diff -p -U 0 instead of diff -pu0.
3047 * sysdeps/powerpc/novmx-longjmp.c (__libc_longjmp,
3048 __libc_siglongjmp): Remove symbol_version.
3049 * sysdeps/powerpc/longjmp.c (__libc_longjmp, __libc_siglongjmp):
3050 Export @@GLIBC_PRIVATE, not @@GLIBC_2.3.4.
3051 * sysdeps/powerpc/sigjmp.c (__sigjmp_save): Use strong_alias
3053 * sysdeps/powerpc/novmx-sigjmp.c (__sigjmp_save): Remove.
3054 * sysdeps/powerpc/powerpc32/__longjmp.S (__longjmp): Use
3055 strong_alias instead of default_symbol_version, remove
3057 * sysdeps/powerpc/powerpc64/__longjmp.S (__longjmp): Likewise.
3058 * sysdeps/powerpc/powerpc32/bsd-setjmp.S (__novmx__setjmp): Change
3059 into strong_alias to __novmxsetjmp.
3060 (__vmx__setjmp): Similarly with __vmxsetjmp.
3061 (__setjmp): Make it strong_alias to __vmx__setjmp, remove
3062 default_symbol_version and symbol_version.
3063 * sysdeps/powerpc/powerpc64/bsd-setjmp.S (__novmx__setjmp): Change
3064 into strong_alias to __novmxsetjmp.
3065 (__vmx__setjmp): Similarly with __vmxsetjmp.
3066 (__setjmp): Make it strong_alias to __vmx__setjmp, remove
3067 default_symbol_version and symbol_version.
3069 * nscd/nscd_getgr_r.c: Include stdio-common/_itoa.h.
3071 2004-07-05 Ulrich Drepper <drepper@redhat.com>
3073 * elf/rtld.c (dl_main): Mark dyn_temp with attribute_relro.
3075 2004-07-04 Matthew Reppert <arashi@kai.vm.bytemark.co.uk>
3077 * sysdeps/unix/sysv/linux/i386/glob64.c (glob64): Use libc_hidden_ver
3078 instead of libc_hidden_def.
3080 2004-07-01 Roland McGrath <roland@redhat.com>
3082 * aclocal.m4: Add provide for AC_CONFIG_AUX_DIR_DEFAULT.
3084 * Makeconfig ($(common-objpfx)shlib-versions.v.i): Move top-level
3085 $(..)shlib-versions file to last in deps list. This lets add-ons give
3086 more-specific matches that override defaults in the top-level file.
3088 * sysdeps/unix/sysv/linux/configure.in: If arch_minimum_kernel was
3089 already set, don't set it or libc_cv_gcc_unwind_find_fde.
3090 * sysdeps/unix/sysv/linux/configure: Regenerated.
3092 2004-07-01 Martin Schwidefsky <schwidefsky@de.ibm.com>
3094 * sysdeps/s390/fpu/bits/mathinline.h [__LIBC_INTERNAL_MATH_INLINES]
3095 (__ieee754_sqrt): Define as __MATH_INLINE using sqdbr instruction.
3096 (__ieee754_sqrtf): Define as __MATH_INLINE using sqebr instruction.
3097 * sysdeps/s390/fpu/e_sqrt.c: New file.
3098 * sysdeps/s390/fpu/e_sqrtf.c: New file.
3099 * sysdeps/s390/Implies: New file.
3100 * sysdeps/s390/s390-32/Implies: Remove ieee754, move
3101 ieee754/dbl-64 and ieee754/flt-32 to s390/Implies.
3102 * sysdeps/s390/s390-64/Implies: Likewise.
3104 2004-06-30 Jakub Jelinek <jakub@redhat.com>
3106 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Include tls.h.
3107 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
3109 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (thread_start):
3110 DO_CALL (exit, 1) instead of branching to _exit.
3111 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (thread_start):
3114 * sysdeps/s390/fpu/bits/mathinline.h: New file.
3116 * include/glob.h (glob64): Add libc_hidden_proto.
3117 * sysdeps/generic/glob64.c (glob64): Add libc_hidden_def.
3118 * sysdeps/gnu/glob64.c (glob64): Likewise.
3119 * sysdeps/unix/sysv/linux/i386/glob64.c (glob64): Likewise.
3121 2004-06-11 Jakub Jelinek <jakub@redhat.com>
3123 * sysdeps/i386/fpu/libm-test-ulps: Update for GCC 3.4.
3124 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
3126 2004-06-11 Dwayne Grant McConnell <dgm69@us.ibm.com>
3128 * sysdeps/powerpc/fpu/s_lround.c: Removed.
3129 * sysdeps/powerpc/fpu/s_lroundf.c: Removed.
3130 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: New file.
3131 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: New file.
3132 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: New file.
3133 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: New file.
3134 * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: Removed.
3135 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: New file.
3136 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: New file.
3137 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: New file.
3138 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: New file.
3139 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: New file.
3140 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: New file.
3141 * sysdeps/powerpc/powerpc32/fpu/s_round.S: New file.
3142 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: New file.
3143 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: New file.
3145 2004-06-30 Ulrich Drepper <drepper@redhat.com>
3147 * include/net/if.h: Handle if_nameindex and if_freenameindex with
3149 * sysdeps/unix/sysv/linux/netlinkaccess.h: New file.
3150 * sysdeps/unix/sysv/linux/ifaddrs.c: Export netlink handling functions.
3151 * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Implement using
3152 netlink if possible. Fall back on ioctl method if necessary.
3153 * sysdeps/unix/sysv/linux/Dist: Add netlinkaccess.h.
3155 * include/unistd.h: Declare __truncate.
3156 * sysdeps/generic/truncate.c: Also define __truncate.
3157 * sysdeps/mach/hurd/truncate.c: Likewise.
3158 * sysdeps/unix/common/syscalls.list: Likewise.
3159 * sysdeps/unix/sysv/linux/truncate64.c: Use __truncate, not truncate.
3161 2004-06-29 Ulrich Drepper <drepper@redhat.com>
3163 * stdio-common/printf-parsemb.c (__parse_one_specmb): Initialize
3164 info.extra. Patch by Marcus Meissner.
3166 2004-06-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3168 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
3169 Fix branch offset for a PLT entry.
3171 2004-06-20 Jim Meyering <jim@meyering.net>
3173 * malloc/obstack.h (obstack_base): Cast to `void *', to align with
3176 2004-06-28 Ulrich Drepper <drepper@redhat.com>
3178 * inet/bug-if1.c (do_test): Simply use 0 as invalid index.
3179 Workaround for [BZ #232].
3181 * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Use extend_alloca.
3183 2004-06-28 GOTO Masanori <gotom@debian.or.jp>
3185 * iconv/gconv_simple.c: Use get16/put16 for user given buffer
3186 in ucs2/ucs2reverse when unaligned memory access is attempted.
3187 * iconv/tst-iconv5.c: New file.
3188 * iconv/Makefile (tests): Add tst-iconv5.
3190 2004-06-28 Jakub Jelinek <jakub@redhat.com>
3192 * inet/bug-if1.c: Include <string.h>.
3194 2004-06-19 Roland McGrath <roland@redhat.com>
3196 * sysdeps/posix/waitid.c (do_waitid) [DO_WAITID]: Define function
3197 under this macro name instead.
3198 [NO_DO_WAITID]: Don't define it at all.
3199 (do_waitid) [WNOWAIT, WEXITED]: If these POSIX.1 waitid flag bits are
3200 defined, then return ENOTSUP for combinations of selection bits other
3201 than WEXITED and WEXITED|WSTOPPED, which this version cannot support.
3203 * posix/tst-waitid.c: New file.
3204 * posix/Makefile (tests): Add it.
3206 2004-06-28 Jakub Jelinek <jakub@redhat.com>
3208 * sysdeps/unix/alpha/sysdep.h (inline_syscall6): Fix a typo.
3211 * sysdeps/unix/alpha/sysdep.S (__syscall_error): Avoid !samegp
3212 relocation in librt.so.
3215 * sysdeps/alpha/dl-machine.h (_dl_start_user): Use ldah/ldl to load
3216 _dl_skip_args. Patch by Jakub Bogusz <qboosh@pld-linux.org>.
3218 2004-06-27 Ulrich Drepper <drepper@redhat.com>
3220 * elf/ldconfig.c (add_dir): Take chroot into account.
3221 Based on changes by HJ Lu and Hideki Iwamoto.
3223 * nscd/connections.c (invalidate_cache): If the host cache has to
3224 be invalidated, re-read resolv.conf.
3226 * resolv/resolv.h (RES_NOIP6DOTINT): Define.
3227 * resolv/res_init.c (res_setoptions): Handle no-ip6-dotint option.
3228 * resolv/gethnamaddr.c (gethostbyaddr): Don't lookup with .ip6.int
3229 if RES_NOIP6DOTINT flag is set.
3230 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
3232 2004-06-25 Jakub Jelinek <jakub@redhat.com>
3234 * sysdeps/unix/sysv/linux/powerpc/fcntl.c: Move to...
3235 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fcntl.c: ... here.
3236 * sysdeps/unix/sysv/linux/powerpc/lockf64.c: Move to...
3237 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: ... here.
3238 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: New file.
3240 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (F_GETLK, F_SETLK,
3241 F_SETLKW): Fix values for -m32 -D_FILE_OFFSET_BITS=64.
3243 2004-06-21 Jakub Jelinek <jakub@redhat.com>
3246 * sysdeps/unix/alpha/Makefile: New file.
3247 * sysdeps/unix/alpha/rt-sysdep.S: New file.
3248 Reported by Jakub Bogusz <qboosh@pld-linux.org>.
3250 2004-06-18 Ulrich Drepper <drepper@redhat.com>
3252 * sysdeps/posix/getaddrinfo.c (gaih_inet): For AI_CANONNAME,
3253 determine the canonical name only for the first returned entry.
3255 * inet/bug-if1.c: New file.
3256 * inet/Makefile (tests): Add bug-if1.
3258 2004-06-18 Roland McGrath <roland@frob.com>
3260 * Makerules (compile-mkdep-flags): Add -MT $@.
3262 * Makefile (dist, tag-for-dist): New targets.
3263 (files-for-dist, tag-of-stem): New variables.
3264 (glibc-%.tar glibc-linuxthreads-%.tar): New pattern rule.
3265 Make tar files using cvs export.
3266 (%.bz2, %.gz, tag-%): New pattern rules.
3267 (distribute): Variable removed.
3268 (+subdir_targets): Remove distinfo targets.
3269 (echo_subdirs, echo-distinfo, parent_echo-distinfo): Targets removed.
3270 (rpm/%): Pattern rule removed.
3271 * rpm/Makefile, rpm/rpmrc, rpm/template: Ancient cruft files removed.
3272 * Rules (subdir_echo-headers, subdir_echo-distinfo, subdir_dist):
3274 * Makerules (dist, subdir_distinfo): Targets removed.
3275 ($(objpfx)distinfo): Depend on $(distribute).
3276 * Make-dist: File removed.
3278 * NEWS: Fix a typo. Update bug-reporting instructions.
3280 2004-06-17 Thorsten Kukuk <kukuk@suse.de>
3282 * sysdeps/unix/sysv/linux/sched_setaffinity.c
3283 (__sched_setaffinity_new): Set errno to EINVAL and return -1 if
3284 cpuset is wrongly set.
3286 2004-06-15 Steven Munroe <sjmunroe@us.ibm.com>
3288 * sysdeps/powerpc/powerpc64/memcpy.S: Improve instruction scheduling
3289 for POWER4 machines.
3291 2004-06-14 Jakub Jelinek <jakub@redhat.com>
3294 * sunrpc/pmap_prot2.c (xdr_pmaplist): When freeing, remember pml_next
3295 in a local variable, point rp to that local variable afterwards.
3297 2004-06-11 Jakub Jelinek <jakub@redhat.com>
3299 * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Handle special
3302 2004-06-17 Ulrich Drepper <drepper@redhat.com>
3304 * sysdeps/unix/sysv/linux/if_index.c (if_indextoname): Correct
3305 error value for unknown interface. [BZ #198]
3307 2004-06-13 Jakub Jelinek <jakub@redhat.com>
3309 * sysdeps/i386/bits/string.h (memcpy): Add () around arguments.
3310 (memchr, __memrchr, strlen, strcmp, strncmp, __strchr_g, __strchr_c,
3311 __strchrnul_g, __strchrnul_c, strspn, strcspn, strpbrk): Add memory
3312 the asm uses as its input, either of size __n where __n is known or
3314 (strstr): Add "memory" clobber.
3316 2004-06-14 Jakub Jelinek <jakub@redhat.com>
3319 * nss/nsswitch.c (free_mem): Don't try to close a library handle
3320 if the handle is invalid. Patch by David Kimdon <kimdon@esrf.fr>.
3322 2004-06-11 Dmitry V. Levin <ldv@altlinux.org>
3325 * debug/xtrace.sh: Fix typo in error diagnostics.
3327 2004-06-14 Andreas Schwab <schwab@suse.de>
3329 * stdio-common/psignal.c (psignal): Don't use BUF when asprintf
3332 2004-06-15 Steven Munroe <sjmunroe@us.ibm.com>
3334 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix pasto
3335 that clobbers r19. Fix pasto that overflowed sigcontext.v_reserve.
3336 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Fix pasto
3338 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Fix pasto
3339 that clobbers r19. Fix pasto that overflowed sigcontext.v_reserve.
3340 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S:
3341 Fix setting of sigcontext.v_regs. Fix pasto that clobbers r19.
3342 Fix pasto that overflowed sigcontext.v_reserve.
3343 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S:
3344 Fix pasto that clobbers r19.
3345 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Fix setting
3346 of sigcontext.v_regs. Fix pasto that clobbers r19. Fix pasto that
3347 overflowed sigcontext.v_reserve.
3349 2004-05-04 H.J. Lu <hongjiu.lu@intel.com>
3352 * sysdeps/generic/strtol_l.c (DEF): Use ".gnu.linkonce.r."
3353 instead of ".gnu.linkonce.ro." as the prefix for linkonce
3354 read-only section name.
3356 2004-06-14 Richard Henderson <rth@redhat.com>
3358 * sysdeps/alpha/div_libc.h (_ITOFS): Use "sp" not "$sp".
3359 (_ITOFT, _FTOIT, _ITOFT2): Likewise.
3361 2004-06-08 Jakub Jelinek <jakub@redhat.com>
3363 * sysdeps/s390/s390-32/backtrace.c (init): Guard with #ifdef SHARED.
3364 (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
3365 (__backtrace): Don't call init #ifndef SHARED.
3366 * sysdeps/s390/s390-64/backtrace.c (init): Guard with #ifdef SHARED.
3367 (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
3368 (__backtrace): Don't call init #ifndef SHARED.
3369 * sysdeps/ia64/backtrace.c (init): Guard with #ifdef SHARED.
3370 (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
3371 (__backtrace): Don't call init #ifndef SHARED.
3373 2004-06-11 Roland McGrath <roland@redhat.com>
3375 * sysdeps/arm/strlen.S [__ARMEB__]: Compute correctly for big-endian.
3376 From Krzysztof Halasa <khc@pm.waw.pl>.
3378 2004-06-10 Jakub Jelinek <jakub@redhat.com>
3380 * elf/tls-macros.h [__s390x__] (TLS_LD, TLS_GD): Clobber also r14.
3382 2004-06-08 Jakub Jelinek <jakub@redhat.com>
3385 * crypt/md5-crypt.c (__md5_crypt): Only update buflen if realloc
3386 succeeds. Reported by Miles Ohlrich <miles@cray.com>.
3388 * elf/chroot_canon.c (chroot_canon): Avoid segfault if first malloc
3389 fails. Avoid memory leak if realloc fails.
3391 2004-06-09 Jakub Jelinek <jakub@redhat.com>
3393 * sysdeps/generic/setenv.c (setenv): Return -1/EINVAL if name is
3394 NULL, "" or contains '=' character in it. Reported by
3395 Michael T Kerrisk <mtk-lists@gmx.net>.
3396 * stdlib/tst-environ.c: Include errno.h.
3397 (main): Add tests for these arguments to setenv/unsetenv.
3399 2004-06-07 Roland McGrath <roland@frob.com>
3401 * NEWS: Update bug reporting instructions. Fix some typos.
3403 2004-06-05 Ulrich Drepper <drepper@redhat.com>
3405 * stdio-common/_itoa.h: Don't expand _itoa inline for libc.
3406 * stdio-common/_itoa.c: Add _itoa implementation.
3408 * nscd/nscd_gethst_r.c (__nscd_open_socket): Change implementation
3409 to also send request. Add parameter to allow this.
3411 * nscd/nscd_getgr_r.c: Change __nscd_open_socket caller.
3412 * nscd/nscd_getpw_r.c: Likewise.
3413 * nscd/nscd-client.h: Change __nscd_open_socket prototype.
3415 2004-06-05 Andreas Jaeger <aj@suse.de>
3417 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
3418 Handle more than 6 args correctly. Based on a patch by Masahide
3419 Washizawa <washi@jp.ibm.com>.
3421 2004-06-04 Ulrich Drepper <drepper@redhat.com>
3423 * nscd/nscd_gethst_r.c (nscd_gethst_r): Use __nss_not_use_nscd_hosts
3424 in all places, not __nss_not_use_nscd_group.
3425 Reported by Philippe Gregoire.
3427 2004-06-03 Ulrich Drepper <drepper@redhat.com>
3429 * sysdeps/i386/i486/bits/atomic.h: Optimize a bit.
3431 2004-05-07 Dmitry V. Levin <ldv@altlinux.org>
3433 * argp/argp-help.c (__argp_error, __argp_failure): Check result
3434 of __asprintf call and don't use string if it failed.
3435 * stdio-common/psignal.c (psignal): Likewise.
3436 * locale/programs/localedef.c (more_help): Likewise.
3437 * resolv/res_hconf.c (arg_service_list, arg_trimdomain_list,
3438 arg_bool, parse_line): Check result of __asprintf calls and
3439 don't use string if they failed.
3440 * sunrpc/svc_simple.c (registerrpc, universal): Likewise.
3441 * elf/ldconfig.c (parse_conf_include): Check result of __asprintf
3442 call and exit if it failed.
3444 2004-05-10 Jakub Jelinek <jakub@redhat.com>
3446 * sysdeps/posix/sysconf.c (__sysconf) <cases _SC_REALTIME_SIGNALS,
3447 _SC_PRIORITY_SCHEDULING, _SC_TIMERS, _SC_ASYNCHRONOUS_IO,
3448 _SC_PRIORITIZED_IO, _SC_SYNCHRONIZED_IO, _SC_FSYNC, _SC_MAPPED_FILES,
3449 _SC_MEMLOCK, _SC_MEMLOCK_RANGE, _SC_MEMORY_PROTECTION,
3450 _SC_MESSAGE_PASSING, _SC_SEMAPHORES, _SC_SHARED_MEMORY_OBJECTS,
3451 _SC_THREADS, _SC_THREAD_SAFE_FUNCTIONS, _SC_THREAD_ATTR_STACKADDR,
3452 _SC_THREAD_ATTR_STACKSIZE, _SC_THREAD_PRIORITY_SCHEDULING,
3453 _SC_THREAD_PRIO_INHERIT, _SC_THREAD_PRIO_PROTECT,
3454 _SC_THREAD_PROCESS_SHARED>: Return _POSIX_* value instead of 1.
3455 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
3456 <case _SC_MONOTONIC_CLOCK>: Return _POSIX_VERSION instead of 1.
3458 2004-05-07 Jeroen Dekkers <jeroen@dekkers.cx>
3460 * sysdeps/mach/hurd/i386/Makefile (CFLAGS-init-first.c): Add
3461 -momit-leaf-frame-pointer.
3463 * inet/test-ifaddrs.c (addr_string): Surround AF_PACKET case with
3466 * sysdeps/mach/hurd/getcwd.c
3467 (_hurd_canonicalize_directory_name_intern): Only realloc when
3470 * sysdeps/mach/hurd/mmap.c (__mmap): Fail when addr or offset
3473 * sysdeps/mach/hurd/spawni.c (EXPAND_DTABLE): Set dtablesize to
3476 * sysdeps/mach/hurd/Versions (GLIBC_PRIVATE): Add __libc_read,
3477 __libc_write and __libc_lseek64.
3479 2004-05-29 Roland McGrath <roland@redhat.com>
3481 * elf/Makefile (shared-only-routines): Add dl-caller.
3483 2004-05-28 Ulrich Drepper <drepper@redhat.com>
3485 * sysdeps/powerpc/configure.in: New file.
3487 2004-05-28 Steven Munroe <sjmunroe@us.ibm.com>
3489 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Add .machine
3490 "altivec" to enable VMX instructions.
3491 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
3492 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
3493 * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
3494 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
3495 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
3496 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
3497 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
3498 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
3499 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
3501 2004-05-27 Jakub Jelinek <jakub@redhat.com>
3503 * sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Define using
3504 __builtin_expm1l for GCC 3.5+.
3505 (__expl): Define using __builtin_expl for GCC 3.4+.
3506 (exp, expf, expl): Don't define for GCC 3.4+.
3507 (tan, tanf, tanl): Don't define for GCC 3.5+.
3508 (__atan2l): Define using __builtin_atan2l for GCC 3.4+.
3509 (atan2, atan2f, atan2l): Don't define for GCC 3.4+ or !__FAST_MATH__.
3510 (fmod, fmodf, fmodl): Don't define for GCC 3.5+ or !__FAST_MATH__.
3511 (fabsf, fabsl): Only provide if __USE_MISC or __USE_ISOC99.
3512 (sin, sinf, sinl, cos, cosf, cosl, log, logf, logl): Don't define
3514 (log10, log10f, log10l, asin, asinf, asinl, acos, acosf, acosl):
3515 Don't define for GCC 3.5+.
3516 (atan, atanf, atanl): Don't define for GCC 3.4+ or !__FAST_MATH__.
3517 (log1p, log1pf, log1pl, logb, logbf, logbl, log2, log2f, log2l): Don't
3518 define for GCC 3.5+.
3519 (drem, dremf, dreml): Don't define for GCC 3.5+ or !__FAST_MATH__.
3520 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt, sqrtf, sqrtl): Don't
3521 define for GCC 3.2+.
3523 2004-05-27 Jakub Jelinek <jakub@redhat.com>
3525 * string/bits/string2.h (__bzero): Define even for GCC 3.0+.
3526 * sysdeps/alpha/stpcpy.S (stpcpy): Add libc_hidden_builtin_def.
3527 * sysdeps/alpha/alphaev67/stpcpy.S (stpcpy): Likewise.
3528 * sysdeps/powerpc/powerpc32/stpcpy.S (stpcpy): Likewise.
3529 * sysdeps/powerpc/powerpc64/stpcpy.S (stpcpy): Likewise.
3530 * sysdeps/sparc/sparc32/stpcpy.S (stpcpy): Likewise.
3531 * sysdeps/sparc/sparc64/stpcpy.S (stpcpy): Likewise.
3532 * sysdeps/i386/stpcpy.S (stpcpy): Likewise.
3533 * sysdeps/i386/i586/stpcpy.S (stpcpy): Likewise.
3534 * sysdeps/generic/stpcpy.c (stpcpy): Likewise.
3535 * sysdeps/x86_64/stpcpy.S (stpcpy): Likewise.
3536 * sysdeps/i386/i586/memcpy.S (memcpy): Remove
3537 libc_hidden_builtin_def if MEMPCPY_P.
3538 * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
3539 * sysdeps/i386/i686/mempcpy.S (mempcpy): Add libc_hidden_builtin_def.
3540 * sysdeps/i386/i586/mempcpy.S (mempcpy): Likewise.
3541 * sysdeps/generic/mempcpy.c (mempcpy): Likewise.
3542 * sysdeps/x86_64/mempcpy.S (mempcpy): Likewise.
3544 2004-05-26 Roland McGrath <roland@frob.com>
3546 * sysdeps/generic/bits/in.h
3547 (IMPLINK_IP, IMPLINK_LOWEXPER, IMPLINK_HIGHEXPER): Macros removed.
3548 These are long obsolete in BSD systems where they originated.
3549 * conform/data/netinet/in.h-data: Remove `allow IMPLINK_*'
3551 2004-05-26 Jakub Jelinek <jakub@redhat.com>
3553 * include/string.h (mempcpy, stpcpy): Add libc_hidden_builtin_proto.
3554 * string/bits/string2.h (memset): Disable macro for GCC 3.0+.
3555 (__mempcpy): Use __builtin_mempcpy for GCC 3.4+.
3556 (strchr): For GCC 3.2+, only use __rawmemchr if second argument is
3557 constant '\0' and first argument is not constant.
3558 (__stpcpy): Use __builtin_stpcpy for GCC 3.4+.
3559 (strncpy): Remove #ifdef _USE_STRING_ARCH_mempcpy variant.
3560 For GCC 3.2+ use __builtin_strncpy.
3561 (strncat): For GCC 3.2+ use __builtin_strncat.
3562 (strcmp): For GCC 3.2+ use __builtin_strcmp if both arguments are
3564 (strcspn, strspn, strpbrk): For GCC 3.2+, use builtin function
3565 if both arguments are constant.
3567 2004-05-26 Ulrich Drepper <drepper@redhat.com>
3569 * nss/nss_files/files-hosts.c: Fix condition for looking up IPv4
3570 mapped addresses in gethostbyaddr.
3572 2004-05-25 Ulrich Drepper <drepper@redhat.com>
3574 * nss/digits_dots.c (__nss_hostname_digits_dots): Remove typep and
3575 flags parameter, convert afp to simple int parameter. Adjust code.
3576 typep was never != NULL and flags therefore also unused. *afp is
3578 * nss/nsswitch.h: Adjust __nss_hostname_digits_dots prototype.
3579 * nss/getXXbyYY.c: Remove HAVE_TYPE handling. Adjust af parameter
3580 handling for __nss_hostname_digits_dots calls.
3581 * nss/getXXbyYY_r.c: Likewise.
3583 * elf/dl-load.c (_dl_map_object_from_fd): Map DSOs with MAP_DENYWRITE.
3585 2004-05-25 Steven Munroe <sjmunroe@us.ibm.com>
3587 * sysdeps/powerpc/fpu/Makefile: Make ld.so a dependency of libm.so.
3588 * sysdeps/powerpc/fpu/bits/mathinline.h [__LIBC_INERNAL_MATH_INLINES]
3589 (__ieee754_sqrt): Define as __MATH_INLINE using fsqrt instruction.
3590 (__ieee754_sqrtf): Define as __MATH_INLINE using fsqrts instruction.
3591 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Moved
3592 implementation from w_sqrt.c.
3593 * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Moved
3594 implementation from w_sqrtf.c.
3595 * sysdeps/powerpc/fpu/w_sqrt.c (__sqrt): Wrapper implementation
3596 using inline __ieee754_sqrt().
3597 * sysdeps/powerpc/fpu/w_sqrtf.c (__sqrtf): Wrapper implementation
3598 using inline __ieee754_sqrtf().
3599 * sysdeps/powerpc/powerpc32/sysdep.h [__ASSEMBLER__]: Include
3600 <sysdeps/powerpc/sysdep.h> independent of __ASSEMBLER__.
3601 * sysdeps/powerpc/sysdep.h [__ASSEMBLER__] (PPC_FEATURE_*): Define
3602 PPC_FEATURE_* independent of __ASSEMBLER__.
3604 2004-05-25 Jakub Jelinek <jakub@redhat.com>
3606 * sysdeps/pthread/aio_notify.c: Use <> instead of "" for aio_misc.h
3608 (aio_start_notify_thread): Define if not defined.
3609 (notify_func_wrapper): Use it.
3610 * sysdeps/pthread/aio_misc.c: Use <> instead of "" for aio_misc.h
3612 (aio_create_helper_thread): Define if not defined.
3613 (__aio_create_helper_thread): New function.
3614 (__aio_enqueue_request): Use aio_create_helper_thread.
3616 * nis/ypclnt.c (ypall_data, ypall_foreach): Remove.
3617 (struct ypresp_all_data): New type.
3618 (__xdr_ypresp_all): Change second argument to
3619 struct ypresp_all_data *. Replace ypall_foreach and
3620 ypall_data with objp->foreach and objp->data.
3621 (yp_all): Remove status variable, add data. Replace
3622 all uses of status with data.status. Initialize data.foreach
3623 and data.data instead of ypall_foreach and ypall_data.
3625 2004-05-24 Jakub Jelinek <jakub@redhat.com>
3627 * elf/dl-lookup.c (add_dependency): Set DF_1_NODELETE bit
3628 in l_flags_1, not in l_flags.
3630 2004-04-10 Robert Millan <robertmh@gnu.org>
3632 * sysdeps/unix/sysv/linux/bits/in.h: Cosmetic fixes to get in sync
3633 with sysdeps/generic/bits/in.h.
3635 2004-05-25 Roland McGrath <roland@frob.com>
3637 * sysdeps/generic/unwind-dw2-fde-glibc.c: Change copyright terms from
3638 GCC GPL to standard glibc LGPL.
3640 2004-05-24 Ulrich Drepper <drepper@redhat.com>
3642 * manual/string.texi (Copying and Concatenation): Fixed second
3644 Reported by Fabian Pietsch <fabian@zzznowman.dyndns.org>.
3646 2004-05-23 Ulrich Drepper <drepper@redhat.com>
3648 * malloc/obstack.c: Don't allow linking with _obstack.
3650 2004-05-23 Andreas Schwab <schwab@suse.de>
3652 * sysdeps/m68k/m68020/bits/atomic.h: Use "+m" constraint instead
3653 of separate "m" constraints.
3655 2004-05-15 Chris Demetriou <cgd@broadcom.com>
3657 * sysdeps/mips/dl-machine.h (ELF_DL_FRAME_SIZE)
3658 (ELF_DL_SAVE_ARG_REGS, ELF_DL_RESTORE_ARG_REGS): For the N32
3659 and 64 ABIs, save and restore regs $10 and $11 (a6 and a7).
3661 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
3663 * malloc/obstack.c (_obstack) [!defined _LIBC]: Remove; not used.
3664 Add comment explaining why libc still defines it.
3666 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
3668 * malloc/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
3669 obstack_alignment_mask, obstack_alloc, obstack_base,
3670 obstack_blank, obstack_blank_fast, obstack_chunk_size,
3671 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
3672 obstack_grow0, obstack_init, obstack_int_grow,
3673 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
3674 obstack_next_free, obstack_object_size, obstack_ptr_grow,
3675 obstack_ptr_grow_fast, obstack_room): Remove declarations of
3676 nonexistent functions.
3678 2004-05-18 Steven Munroe <sjmunroe@us.ibm.com>
3680 * sysdeps/powerpc/powerpc64/sysdep.h [__ASSEMBLER__]: Include
3681 <sysdeps/powerpc/sysdep.h> independent of __ASSEMBLER__.
3682 [PIC]: Redundent for powerpc64, removed.
3683 (ENTRY): Generate size and alignment for opd entry.
3684 (EALIGN): Generate size and alignment for opd entry.
3685 (END): Use DOT_LABEL in ASM_SIZE_DIRECTIVE.
3686 (END_GEN_TB): Use DOT_LABEL in ASM_SIZE_DIRECTIVE.
3688 2004-05-19 Ulrich Drepper <drepper@redhat.com>
3690 * misc/regexp.h: Say the functions have been withdrawn.
3692 * wcsmbs/tst-wcpncpy.c: Add more tests.
3694 2004-05-18 Roland McGrath <roland@frob.com>
3696 * sysdeps/generic/unwind.h: Change copyright terms from GCC GPL to
3697 standard glibc LGPL.
3698 * sysdeps/generic/unwind-dw2.c: Likewise.
3699 * sysdeps/generic/unwind-dw2-fde.c: Likewise.
3700 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
3701 * sysdeps/generic/unwind-pe.h: Likewise.
3703 2004-05-15 Petter Reinholdtsen <pere@hungry.com>
3705 * locale/iso-3166.def: Remove YUGOSLAVIA and insert "SERBIA AND
3706 MONTENEGRO" which have taken over the code 819. Patch from
3707 Danilo Segan. [BZ #40]
3709 2004-05-15 Jakub Jelinek <jakub@redhat.com>
3711 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3712 (SYSCALL_ERROR_HANDLER): Rename __sparc.get_pic.l7 to
3715 2004-05-15 Joseph S. Myers <jsm@polyomino.org.uk>
3717 * catgets/gencat.c: Update bug reporting instructions.
3718 * csu/version.c: Likewise.
3719 * debug/catchsegv.sh: Likewise.
3720 * debug/pcprofiledump.c: Likewise.
3721 * debug/xtrace.sh: Likewise.
3722 * elf/ldd.bash.in: Likewise.
3723 * iconv/iconv_prog.c: Likewise.
3724 * iconv/iconvconfig.c: Likewise.
3725 * locale/programs/locale.c: Likewise.
3726 * locale/programs/localedef.c: Likewise.
3727 * login/programs/pt_chown.c: Likewise.
3728 * malloc/memusage.sh: Likewise.
3729 * malloc/memusagestat.c: Likewise.
3730 * malloc/mtrace.pl: Likewise.
3731 * manual/crypt.texi: Likewise.
3732 * manual/install.texi: Likewise.
3733 * nss/makedb.c: Likewise.
3735 2004-05-14 Jakub Jelinek <jakub@redhat.com>
3737 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Only
3738 CHECK_STATIC_TLS if sym != NULL.
3739 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
3740 * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
3742 2004-05-12 Andreas Schwab <schwab@suse.de>
3744 * posix/regex_internal.c (build_wcs_buffer): Also set pstr->mbs
3747 2004-05-13 H.J. Lu <hongjiu.lu@intel.com>
3749 * Rules (xtests): Depend on tests.
3751 2004-05-13 Jakub Jelinek <jakub@redhat.com>
3753 * libio/genops.c (_IO_default_xsputn): Avoid one overflow per char if
3754 count is negative, yet write_ptr < write_end.
3755 (_IO_default_xsgetn): Avoid one underflow per char if count is
3756 negative, yet read_ptr < read_end.
3758 2004-05-12 Steven Munroe <sjmunroe@us.ibm.com>
3760 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XTABS): Define XTABS
3763 2004-05-12 Ulrich Drepper <drepper@redhat.com>
3765 * elf/dl-lookup.c (_dl_lookup_symbol_x): Correct _dl_signal_cerror
3768 2004-05-10 Roland McGrath <roland@frob.com>
3770 * hurd/hurdlookup.c (__hurd_file_name_split): Return ENOENT for "".
3771 (__hurd_directory_name_split): Likewise.
3773 2004-05-10 Ulrich Drepper <drepper@redhat.com>
3775 * po/fr.po: Update from translation team.
3777 2004-05-10 Andreas Jaeger <aj@suse.de>
3779 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
3780 Correctly compute alignment.
3781 Patch by Michael Matz <matz@suse.de>.
3783 2004-05-09 Ulrich Drepper <drepper@redhat.com>
3785 * sysdeps/generic/sigpause.c: Prevent sigpause prototype.
3786 * sysdeps/posix/sigpause.c: Likewise.
3787 * signal/signal.h: Don't define sigpause macro unless needed.
3789 2004-05-08 Jakub Jelinek <jakub@redhat.com>
3791 * configure.in (libc_cv_libgcc_s_suffix): New check.
3792 (libc_cv_as_needed): Use -lgcc_s$libc_cv_libgcc_s_suffix.
3793 * config.make.in (libgcc_s_suffix): Set.
3794 * Makeconfig (libgcc_eh): Use -lgcc_s$(libgcc_s_suffix).
3796 2004-05-08 Ulrich Drepper <drepper@redhat.com>
3798 * signal/signal.h: Use BSD sigpause only if BSD behavior is preferred.
3800 2004-04-29 Steven Munroe <sjmunroe@us.ibm.com>
3802 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_1,
3803 LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5, LOADARGS_6):
3804 Load argument values into temporary variables.
3805 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_1,
3806 LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5, LOADARGS_6):
3809 2004-05-07 Ulrich Drepper <drepper@redhat.com>
3811 * sysdeps/unix/sysv/linux/Makefile: mq_send.c and mq_receive.c
3812 need to be compiled with exceptions.
3814 2004-05-06 Ulrich Drepper <drepper@redhat.com>
3816 * sysdeps/unix/sysv/linux/ifreq.c (__ifreq): Fix memory handling.
3817 * sysdeps/generic/ifreq.c (__ifreq): Fix memory handling.
3819 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Make clear that
3820 realloc cannot fail.
3822 * nss/nss_files/files-netgrp.c (EXPAND): Free buffer which cannot
3825 * nis/nis_table.c: Clean up memory handling.
3826 * nis/nis_subr.c (nis_getnames): Clean up memory handling.
3827 * nis/nis_removemember.c (nis_removemember): Add comment
3828 explaining use of realloc.
3830 * math/tgmath.h (fabs): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL.
3832 Patch by Lev S Bishop <lev.bishop@yale.edu>.
3834 * math/bug-tgmath1.c (main): Test fabs and carg as well.
3836 2004-05-06 Richard Henderson <rth@redhat.com>
3838 * elf/elf.h (AT_L1I_CACHESHAPE, AT_L1D_CACHESHAPE,
3839 AT_L2_CACHESHAPE, AT_L3_CACHESHAPE): New.
3840 * sysdeps/unix/sysv/linux/alpha/Versions: Export
3841 __libc_alpha_cache_shape as a private symbol.
3842 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c: New file.
3843 * sysdeps/unix/sysv/linux/alpha/sysconf.c: New file.
3845 2004-05-06 Richard Henderson <rth@redhat.com>
3847 * sysdeps/alpha/div_libc.h (_ITOFS, _ITOFT, _FTOIT, _ITOFT2): New.
3848 * sysdeps/alpha/divl.S: Use them.
3849 * sysdeps/alpha/divq.S: Likewise.
3850 * sysdeps/alpha/divqu.S: Likewise.
3851 * sysdeps/alpha/reml.S: Likewise.
3852 * sysdeps/alpha/remq.S: Likewise.
3853 * sysdeps/alpha/remqu.S: Likewise.
3855 2004-05-06 Ulrich Drepper <drepper@redhat.com>
3857 * math/tgmath.h (__TGMATH_UNARY_REAL_IMAG_RET_REAL):Define.
3860 * math/Makefile (tests): Add bug-tgmath1.
3861 * math/bug-tgmath1.c: New file.
3863 2004-05-05 Jakub Jelinek <jakub@redhat.com>
3865 * sysdeps/alpha/atomicity.h: Remove.
3866 * sysdeps/generic/atomicity.h: Remove.
3868 2004-05-05 H.J. Lu <hongjiu.lu@intel.com>
3870 * sysdeps/i386/i486/bits/string.h (strpbrk): Cast return to
3873 2004-04-22 David Mosberger <davidm@hpl.hp.com>
3875 * sysdeps/unix/sysv/linux/ia64/Makefile (librt-routines): Mention
3877 * sysdeps/unix/sysv/linux/ia64/rt-sysdep.S: New file.
3879 * sysdeps/ia64/strcat.c: New file.
3880 * sysdeps/ia64/strcat.S: Delete.
3882 2004-05-04 Jakub Jelinek <jakub@redhat.com>
3884 * sysdeps/unix/sysv/linux/ia64/sysdep.S (USE___THREAD): Remove
3887 2004-04-23 Jakub Jelinek <jakub@redhat.com>
3889 * sysdeps/ia64/fpu/libm_support.h (__libm_error_support): Add
3890 libc_hidden_proto. Define to __GI___libm_error_support for
3891 assembly going into libc.so.
3892 * sysdeps/ia64/fpu/libc_libm_error.c (__libm_error_support): Add
3895 * include/libc-symbols.h (HIDDEN_BUILTIN_JUMPTARGET): Define.
3896 * sysdeps/ia64/bcopy.S (bcopy): Use it for jump to memmove.
3898 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Access
3899 gprel errno if RTLD_PRIVATE_ERRNO or __thread __libc_errno/errno
3902 2004-05-03 Jakub Jelinek <jakub@redhat.com>
3904 * sysdeps/unix/bsd/bits/fcntl.h (F_SETOWN, F_GETOWN): Define if
3905 __USE_BSD or __USE_UNIX98.
3906 * sysdeps/unix/bsd/ultrix4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3907 * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3908 * sysdeps/unix/bsd/sun/sunos4/bits/fcntl.h (F_SETOWN, F_GETOWN):
3910 * sysdeps/unix/common/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3911 * sysdeps/unix/sysv/aix/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3912 * sysdeps/unix/sysv/irix4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3913 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_SETOWN, F_GETOWN):
3915 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_SETOWN, F_GETOWN):
3917 * sysdeps/unix/sysv/linux/cris/bits/fcntl.h (F_SETOWN, F_GETOWN):
3919 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (F_SETOWN, F_GETOWN):
3921 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_SETOWN, F_GETOWN):
3923 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (F_SETOWN, F_GETOWN):
3925 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (F_SETOWN, F_GETOWN):
3927 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (F_SETOWN, F_GETOWN):
3929 * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h (F_SETOWN, F_GETOWN):
3931 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (F_SETOWN, F_GETOWN):
3933 * sysdeps/unix/sysv/linux/arm/bits/fcntl.h (F_SETOWN, F_GETOWN):
3935 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (F_SETOWN, F_GETOWN):
3937 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (F_SETOWN, F_GETOWN):
3939 * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3940 * sysdeps/mach/hurd/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3941 * io/sys/stat.h (S_ISSOCK, S_IFSOCK): Likewise.
3943 2004-05-01 Jakub Jelinek <jakub@redhat.com>
3945 * posix/Versions (libc): Remove __libc_wait, __libc_waitpid,
3946 __libc_pause, __libc_nanosleep, __libc_pread, __libc_pread64,
3947 __libc_pwrite64, __waitid and __pselect @@GLIBC_PRIVATE.
3948 * stdlib/Versions (libc): Remove __on_exit@@GLIBC_PRIVATE.
3949 * sysdeps/unix/sysv/linux/Versions (libc): Remove
3950 __libc_sigaction@@GLIBC_PRIVATE.
3951 * sysdeps/unix/sysv/linux/x86_64/Versions (libc): Remove
3952 __modify_ldt@@GLIBC_PRIVATE.
3953 * socket/Versions (libc): Remove __libc_accept, __libc_send,
3954 __libc_recvfrom, __libc_recvmsg, __libc_sendmsg, __libc_recv,
3955 __libc_sendto and __libc_connect @@GLIBC_PRIVATE.
3956 * stdio-common/Versions (libc): Remove
3957 _itoa_upper_digits@@GLIBC_PRIVATE.
3958 * resolv/Versions (libresolv): Remove __ns_samename@@GLIBC_PRIVATE.
3959 * misc/Versions (libc): Remove __libc_fsync, __libc_msync,
3960 __libc_readv and __libc_writev @@GLIBC_PRIVATE.
3961 * termios/Versions (libc): Remove __libc_tcdrain@@GLIBC_PRIVATE.
3962 * io/Versions (libc): Remove __libc_open, __libc_close, __libc_read,
3963 __libc_write, __libc_lseek, __libc_fcntl, __libc_open64 and
3964 __libc_lseek64 @@GLIBC_PRIVATE.
3966 2004-04-30 Jakub Jelinek <jakub@redhat.com>
3968 * elf/dl-load.c (open_verify): Move e_phentsize check after e_type
3971 2004-04-29 Steven Munroe <sjmunroe@us.ibm.com>
3973 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: New file.
3974 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: New file.
3975 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: New file.
3976 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: New file.
3977 * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: Removed.
3978 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: New file.
3979 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Removed.
3980 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: New file.
3981 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: New file.
3982 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: New file.
3983 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: New file.
3984 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: New file.
3985 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: New file.
3986 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: New file.
3987 * sysdeps/powerpc/powerpc64/fpu/s_round.S: New file.
3988 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: New file.
3989 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: New file.
3990 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: New file.
3992 * math/test-misc.c [LDBL_MANT_DIG == 106](main): Correct LDBL_MAX
3993 mantissa for AIX long double format.
3994 * misc/qefgcvt.c [LDBL_MANT_DIG == 106] (NDIGIT_MAX): Define for AIX
3996 * misc/qefgcvt_r.c [LDBL_MANT_DIG == 106] (NDIGIT_MAX): Likewise.
3997 * stdlib/fpioconst.c [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__>1024]
3998 (_fpioconst_pow10): AIX long double format has same exponent range as
4000 * stdlib/fpioconst.h [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__>1024]
4001 (LDBL_MAX_10_EXP_LOG): AIX long double format has same exponent range
4004 2004-04-23 Art Haas <ahaas@airmail.net>
4006 * sysdeps/unix/sysv/linux/kernel-features.h: Add 'defined'.
4008 2004-04-28 Carlos O'Donell <carlos@baldric.uwo.ca>
4010 * sysdeps/unix/sysv/linux/mq_getattr.c: Include <stddef.h>.
4011 * sysdeps/unix/sysv/linux/mq_notify.c: Likewise.
4012 * sysdeps/unix/sysv/linux/mq_open.c: Likewise.
4013 * sysdeps/unix/sysv/linux/mq_receive.c: Likewise.
4014 * sysdeps/unix/sysv/linux/mq_send.c: Likewise.
4016 2004-04-29 Philip Blundell <pb@nexus.co.uk>
4018 * sysdeps/arm/dl-machine.h (RTLD_START): Avoid unnecessary GOT
4021 2004-04-29 Jakub Jelinek <jakub@redhat.com>
4023 * manual/resource.texi (sched_setaffinity, sched_getaffinity): Fix
4024 prototypes and description [BZ #131].
4026 * string/bits/string2.h (strpbrk): Cast NULL to char * [BZ #130].
4027 Patch by Ed Catmur <ed@catmur.co.uk>.
4028 * string/tst-inlcall.c (main): Add test for strpbrk.
4031 * sysdeps/unix/sysv/linux/sys/sysctl.h: Remove linux/compiler.h
4033 (_LINUX_KERNEL_H, _LINUX_TYPES_H, _LINUX_LIST_H): Only define if not
4034 yet defined, #undef back after including linux/sysctl.h if defined
4036 (__LINUX_COMPILER_H, __user): Define if not yet defined, #undef
4037 back after including linux/sysctl.h if defined here.
4039 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c (_Qp_qtoi): Use %f31
4040 for single precision register, add it to __asm clobbers [BZ #139].
4041 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c (_Qp_qtoui): Use %f31
4042 for single precision register, add it to __asm clobbers.
4043 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c (_Qp_qtoux): Use fqtox
4044 instead of fqtoi in QP_HANDLE_EXCEPTIONS.
4045 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c (_Qp_qtox): Likewise.
4046 Reported by M. H. VanLeeuwen <vanl@megsinet.net>.
4048 2004-04-23 Andreas Schwab <schwab@suse.de>
4050 * sysdeps/unix/sysv/linux/m68k/register-dump.h: Use
4053 2004-04-22 Philip Blundell <philb@gnu.org>
4055 * sysdeps/arm/dl-machine.h (elf_machine_rela): Don't use INTUSE
4056 when calling _dl_signal_error.
4057 (elf_machine_rel): Likewise.
4059 2004-04-21 Ulrich Drepper <drepper@redhat.com>
4061 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Define _GI___sigsetjmp
4062 and use it internally instead of __sigsetjmp.
4063 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Use _GI___libm_frexp_4f.
4064 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Use _GI___libm_frexp_4l.
4065 * sysdeps/ia64/fpu/libm_frexp4.S: Define _GI___libm_frexp_4.
4066 * sysdeps/ia64/fpu/libm_frexp4f.S: Define _GI___libm_frexp_4f.
4067 * sysdeps/ia64/fpu/libm_frexp4l.S: Define _GI___libm_frexp_4l.
4068 * sysdeps/ia64/fpu/s_frexp.c (frexp): Use _GI___libm_frexp_4.
4069 * sysdeps/ia64/fpu/libm_support.h: Declare _GI___libm_frexp_4,
4070 _GI___libm_frexp_4f, _GI___libm_frexp_4l.
4071 * sysdeps/ia64/fpu/bits/mathinline.h: New file.
4072 * sysdeps/unix/sysv/linux/ia64/__start_context.S: Use
4073 HIDDEN_JUMPTARGET for exit call.
4074 * sysdeps/unix/sysv/linux/ia64/clone2.S: Use HIDDEN_JUMPTARGET for
4076 * sysdeps/ia64/bcopy.S: Use HIDDEN_JUMPTARGET for memmove call.
4077 * sysdeps/ia64/strcat.S: Use HIDDEN_JUMPTARGET for strlen and
4080 2004-04-21 Jakub Jelinek <jakub@redhat.com>
4082 * posix/tst-chmod.c (do_test): Fix a typo.
4084 * elf/lateglobal.c (main): Fix error checks.
4085 Patch by Stephen Clarke <stephen.clarke@st.com>.
4087 * manual/ctype.texi (isblank, iswblank): Mark as ISO functions,
4088 mention they have been added in ISO C99.
4089 Reported by Ben Pfaff <blp@cs.stanford.edu>.
4091 2004-03-31 H.J. Lu <hongjiu.lu@intel.com>
4093 * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Fix typo.
4095 2004-04-20 Jakub Jelinek <jakub@redhat.com>
4097 * sysdeps/unix/sysv/linux/shm_open.c (shm_unlink): Change EPERM into
4100 2004-04-20 Jakub Jelinek <jakub@redhat.com>
4102 * stdio-common/vfscanf.c (_IO_vfscanf): Revert last %% whitespace
4104 * stdio-common/tst-sscanf.c (int_tests): Adjust.
4106 * nis/nss-nis.c: Include stdlib.h.
4108 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Shut up a
4110 * sysdeps/sparc/sparc64/memcmp.S (memcmp): Remove BP_SYM () from
4111 libc_hidden_builtin_def.
4113 2004-04-20 Jim Meyering <jim@meyering.net>
4115 * misc/error.c (error_tail): Don't leak upon realloc failure.
4117 2004-04-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
4119 * sysdeps/unix/sysv/linux/dl-execstack.c (_dl_make_stack_executable):
4120 Use RETURN_ADDRESS instead of __builtin_return_address.
4122 2004-04-19 Ulrich Drepper <drepper@redhat.com>
4124 * sysdeps/unix/sysv/linux/mq_unlink.c: Rewrite to produce more
4127 2004-04-20 Jakub Jelinek <jakub@redhat.com>
4129 * stdio-common/vfscanf.c (_IO_vfscanf): When skipping whitespace,
4130 do input_error () instead of conv_error () and don't look at errno.
4131 Don't eat any whitespace before %% if skip_space == 0.
4132 * stdio-common/tst-sscanf.c (int_tests): New array.
4133 (main): Run int_tests.
4136 See ChangeLog.14 for earlier changes.