]> git.ipfire.org Git - thirdparty/glibc.git/blame - ChangeLog
* Makeconfig ($(common-objpfx)shlib-versions.v.i): Check also
[thirdparty/glibc.git] / ChangeLog
CommitLineData
cb57664d
RM
12004-10-20 Roland McGrath <roland@redhat.com>
2
6d864d15
RM
3 * Makeconfig ($(common-objpfx)shlib-versions.v.i): Check also
4 $(config-sysdirs) for shlib-versions files.
5
6 * Makeconfig ($(common-objpfx)soversions.i): Replace shell loop with
7 use of ...
8 * scripts/soversions.awk: ... this new file. Collect lib info and
9 match any DEFAULT line before emitting anything, so DEFAULT can come
10 later in the concatenation of shlib-versions files.
11
cb57664d
RM
12 * manual/errno.texi (Error Codes): Add ENOKEY, EKEYEXPIRED,
13 EKEYREVOKED, EKEYREJECTED.
14 * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.3.4): New errlist.
15 * sysdeps/gnu/errlist.c: Regenerated
16
17 * sysdeps/gnu/errlist-compat.awk: Don't bail if Versions gives a count
18 higher than ERR_MAX reports. Instead, emit a #define ERR_MAX.
19 * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.h): New target.
20 (generated): Add errlist-compat.h.
21 * sysdeps/gnu/errlist.awk: Make output #include <errlist-compat.h> to
22 define ERR_MAX and use that for table size.
23
13772215
UD
242004-10-20 Ulrich Drepper <drepper@redhat.com>
25
26 * sysdeps/unix/sysv/linux/syscalls.list: Add entries for setaltroot,
27 key_add, key_request, and keyctl syscalls.
28 * sysdeps/unix/sysv/linux/Versions: Export them.
29
dcad57a8
RM
302004-10-19 Roland McGrath <roland@frob.com>
31
32 * sysdeps/mach/readonly-area.c: New file.
33
7e46ec8c
UD
342004-10-19 Ulrich Drepper <drepper@redhat.com>
35
36 * elf/Versions [ld, GLIBC_PRIVATE]: Add _dl_debug_state.
37 * elf/dl-debug.c (_dl_debug_state): Add rtld_hidden_def.
28767054 38 * sysdeps/generic/ldsodefs.h (_dl_debug_state): Don't mark as
7e46ec8c
UD
39 hidden but use rtld_hidden_proto.
40
1866ae94
UD
412004-10-19 Alfred M. Szmidt <ams@gnu.org>
42
43 * sysdeps/generic/readonly-area.c (__readonly_str): Renamed to ...
44 (__readonly_area): ... this.
45
708c687a
UD
462004-10-18 Jakub Jelinek <jakub@redhat.com>
47
48 * sysdeps/generic/strcpy_chk.c (__strcpy_chk): Speed up by checking
49 destlen only every 4 bytes.
50
653aeda5
UD
512004-10-19 Ulrich Drepper <drepper@redhat.com>
52
53 * nss/getent.c (hosts_keys): Let inet_pton decide whether the
54 string is an address or not.
55
0325dd20
UD
562004-10-19 Jakub Jelinek <jakub@redhat.com>
57
a019191b
UD
58 * elf/dl-addr.c (_dl_addr): Don't look at STT_TLS symbols.
59 Use DL_SYMBOL_ADDRESS to set dli_saddr.
60
0325dd20
UD
61 * debug/Makefile (catchsegv): Prefix $LIB with a backslash.
62
08c6477a
UD
632004-10-19 Ulrich Drepper <drepper@redhat.com>
64
65 * debug/Makefile ($(objpfx)catchsegv): To support multilib
66 platforms, use $LIB in path to slibdir.
67
682004-10-19 Jakub Jelinek <jakub@redhat.com>
69
70 * debug/catchsegv.sh: Update copyright year.
71 Use mktemp to create segv_output file.
72
5f21997b
UD
732004-10-18 Jakub Jelinek <jakub@redhat.com>
74
75 * elf/dl-libc.c (__libc_dlsym_private, __libc_register_dl_open_hook):
76 New functions.
77 (__libc_dlopen_mode): Call __libc_register_dl_open_hook and
78 __libc_register_dlfcn_hook.
79 * dlfcn/Makefile (routines, elide-routines.os): Set.
80 Add rules to build and test tststatic2.
81 * dlfcn/tststatic2.c: New test.
82 * dlfcn/modstatic2.c: New test module.
83 * dlfcn/dladdr.c: Call _dlfcn_hook from libdl.so if not NULL.
84 Define __ prefixed routine in libc.a and in libdl.a just call it.
85 * dlfcn/dladdr1.c: Likewise.
86 * dlfcn/dlclose.c: Likewise.
87 * dlfcn/dlerror.c: Likewise.
88 * dlfcn/dlinfo.c: Likewise.
89 * dlfcn/dlmopen.c: Likewise.
90 * dlfcn/dlopen.c: Likewise.
91 * dlfcn/dlopenold.c: Likewise.
92 * dlfcn/dlsym.c: Likewise.
93 * dlfcn/dlvsym.c: Likewise.
94 * dlfcn/sdladdr.c: New file.
95 * dlfcn/sdladdr1.c: New file.
96 * dlfcn/sdlclose.c: New file.
97 * dlfcn/sdlerror.c: New file.
98 * dlfcn/sdlinfo.c: New file.
99 * dlfcn/sdlopen.c: New file.
100 * dlfcn/sdlsym.c: New file.
101 * dlfcn/sdlvsym.c: New file.
102 * dlfcn/Versions (libdl): Export _dlfcn_hook@GLIBC_PRIVATE.
103 * include/dlfcn.h (DL_CALLER_DECL, DL_CALLER RETURN_ADDRESS): Define.
104 (struct dlfcn_hook): New type.
105 (_dlfcn_hook): New extern decl.
106 (__dlopen, __dlclose, __dlsym, __dlerror, __dladdr, __dladdr1,
107 __dlinfo, __dlmopen, __libc_dlsym_private,
108 __libc_register_dl_open_hook, __libc_register_dlfcn_hook): New
109 prototypes.
110 (__dlvsym): Use DL_CALLER_DECL.
111 * include/libc-symbols.h: Define libdl_hidden_proto and friends.
112
113 * malloc/arena.c (_dl_open_hook): Extern decl.
114 (ptmalloc_init): Don't call _dl_addr when dlopened from statically
115 linked programs but don't use brk for them either.
116
761bbac5
RM
1172004-10-18 Roland McGrath <roland@redhat.com>
118
119 * dlfcn/bug-dlsym1.c (main): Remove bogus setenv call.
120
55838f3e
UD
1212004-10-18 Ulrich Drepper <drepper@redhat.com>
122
123 * elf/dl-open.c (dl_open_worker): Avoid dereferencing map in
124 statically linked code if there might none be found.
125
36106aab
AJ
1262004-10-06 Maciej W. Rozycki <macro@mips.com>
127
128 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
129 (__SYSCALL_CLOBBERS): Add "memory".
130 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
131 (__SYSCALL_CLOBBERS): Likewise.
132 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
133 (__SYSCALL_CLOBBERS): Likewise.
134
6f9d8e68
UD
1352004-10-17 Ulrich Drepper <drepper@redhat.com>
136
137 * include/libc-symbols.h: Define libresolv_hidden_proto and friends.
138 * include/resolv.h: Add libresolv_hidden_proto for symbols defined,
139 used, and exported in libresolv.
140 * resolv/base64.c: Add libresolv_hidden_def.
141 * resolv/gethnamaddr.c: Likewise.
142 * resolv/ns_name.c: Likewise.
143 * resolv/ns_netint.c: Likewise.
144 * resolv/res_comp.c: Likewise.
145 * resolv/res_data.c: Likewise.
146 * resolv/res_debug.c: Likewise.
147 * resolv/res_mkquery.c: Likewise.
148 * resolv/res_query.c: Likewise.
149 * resolv/res_send.c: Likewise.
150
b5cc329c
UD
1512004-10-15 Jakub Jelinek <jakub@redhat.com>
152
153 * elf/dl-minimal.c (__chk_fail): New. Add rtld_hidden_def.
154 * sysdeps/unix/sysv/linux/readonly-area.c: New file.
155 * sysdeps/i386/i686/memmove.S (__memmove_chk): Add checking
156 routine.
157 * sysdeps/i386/i686/memcpy.S (__memcpy_chk): Likewise.
158 * sysdeps/i386/i686/mempcpy.S (__mempcpy_chk): Likewise.
159 * sysdeps/i386/i686/memset.S (__memset_chk): Likewise.
160 * sysdeps/i386/i686/memmove-chk.S: New file.
161 * sysdeps/i386/i686/memcpy-chk.S: Likewise.
162 * sysdeps/i386/i686/mempcpy-chk.S: Likewise.
163 * sysdeps/i386/i686/memset-chk.S: Likewise.
164 * sysdeps/generic/strcat-chk.c (__strcat_chk): Don't __chk_fail
165 if exactly fitting into buffer.
166 * sysdeps/generic/strncat-chk.c (__strncat_chk): Likewise.
167 * sysdeps/generic/readonly-area.c: New file.
168 * sysdeps/generic/strncpy-chk.c (__strncpy_chk): Only test
169 destlen once.
170 * sysdeps/x86_64/memset.S (__memset_chk): Add checking routine.
171 * sysdeps/x86_64/memcpy.S (__memcpy_chk): Likewise.
172 * sysdeps/x86_64/mempcpy.S (__memcpy_chk): Define to __mempcpy_chk.
173 * sysdeps/x86_64/memcpy-chk.S: New file.
174 * sysdeps/x86_64/mempcpy-chk.S: Likewise.
175 * sysdeps/x86_64/memset-chk.S: Likewise.
176 * sysdeps/x86_64/strcpy-chk.S: Likewise.
177 * sysdeps/x86_64/stpcpy-chk.S: Likewise.
178 * argp/argp-xinl.c (__OPTIMIZE__): Define to 1 instead of nothing.
179 * argp/argp-fs-xinl.c (__OPTIMIZE__): Likewise.
180 * debug/tst-chk1.c: New test.
181 * debug/tst-chk2.c: Likewise.
182 * debug/tst-chk3.c: Likewise.
183 * debug/test-strcpy_chk.c: Likewise.
184 * debug/test-stpcpy_chk.c: Likewise.
185 * debug/vsprintf_chk.c (__vsprintf_chk): If flags > 0, request
186 _IO_FLAGS2_CHECK_PERCENT_N. Add libc_hidden_def.
187 * debug/Makefile (routines): Add printf_chk, fprintf_chk, vprintf_chk,
188 vfprintf_chk, gets_chk and readonly-area.
189 (CFLAGS-*_chk.c): Set.
190 (tests): Add tst-chk1, tst-chk2, tst-chk3, test-strcpy_chk and
191 test-stpcpy_chk.
192 * debug/vprintf_chk.c: New file.
193 * debug/printf_chk.c: Likewise.
194 * debug/vfprintf_chk.c: Likewise.
195 * debug/fprintf_chk.c: Likewise.
196 * debug/gets_chk.c: Likewise.
197 * debug/chk_fail.c (__chk_fail): Add libc_hidden_def.
198 * debug/snprintf_chk.c (__snprintf_chk): Fix order of arguments
199 passed to __vsnprintf_chk.
200 * debug/Versions (libc): Export __printf_chk, __fprintf_chk,
201 __vprintf_chk, __vfprintf_chk and __gets_chk @GLIBC_2.3.4.
202 * debug/vsnprintf_chk.c (__vsnprintf_chk): Don't call
203 __vsnprintf, instead create a temporary file with
204 _IO_strn_jumps jumptable. If flags > 0, request
205 _IO_FLAGS2_CHECK_PERCENT_N. Add libc_hidden_def.
206 * libio/Makefile (headers): Add bits/stdio2.h.
207 * libio/stdio.h: Include <bits/stdio2.h> if __USE_FORTIFY_LEVEL.
208 (sprintf, snprintf, vsprintf, vsnprintf): Remove defines.
209 * libio/strfile.h (_IO_strnfile): New type.
210 (_IO_strn_jumps): New extern.
211 * libio/vsnprintf.c (_IO_strnfile): Remove.
212 (_IO_strn_jumps): Remove static.
213 * libio/bits/stdio2.h: New file.
214 * libio/vswprintf.c (_IO_strnfile): Rename type to...
215 (_IO_wstrnfile): ...this. Adjust all uses.
216 * libio/libio.h (_IO_FLAGS2_CHECK_PERCENT_N): Define.
217 * stdio-common/vfprintf.c (STR_LEN): Define.
218 (vfprintf): Add readonly_format variable.
219 Handle _IO_FLAGS2_CHECK_PERCENT_N.
220 (buffered_vfprintf): Copy _flags2.
221 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
222 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
223 __vfprintf_chk): New prototypes.
224 (__vsprintf_chk, __vsnprintf_chk): Add libc_hidden_proto.
225 * include/string.h (__memcpy_chk, __memmove_chk, __mempcpy_chk,
226 __memset_chk, __strcpy_chk, __stpcpy_chk, __strncpy_chk, __strcat_chk,
227 __strncat_chk): New prototypes.
228 * include/bits/string3.h: New file.
229 * include/sys/cdefs.h (__chk_fail): Add libc_hidden_proto
230 and rtld_hidden_proto.
231 * string/Makefile (headers): Add bits/string3.h.
232 * string/bits/string3.h (bcopy, bzero): New defines.
233 (memset, memcpy, memmove, strcpy, strncpy, strcat, strncat): Change
234 macros so that inlines are used only if unknown destination size
235 or side-effects in destination argument.
236 (mempcpy, stpcpy): Likewise. Protect with #ifdef __USE_GNU.
237
2382004-09-16 Ulrich Drepper <drepper@redhat.com>
239
240 * debug/Makefile (routines): Add *_chk.
241 * debug/Versions (libc): Export __chk_fail, __memcpy_chk,
242 __memmove_chk, __mempcpy_chk, __memset_chk, __stpcpy_chk,
243 __strcat_chk, __strcpy_chk, __strncat_chk, __strncpy_chk,
244 __sprintf_chk, __vsprintf_chk, __snprintf_chk, __vsnprintf_chk
245 @GLIBC_2.3.4.
246 * debug/chk_fail.c: New file.
247 * debug/snprintf_chk.c: Likewise.
248 * debug/sprintf_chk.c: Likewise.
249 * debug/vsnprintf_chk.c: Likewise.
250 * debug/vsprintf_chk.c: Likewise.
251 * include/features.h (_FORTIFY_SOURCE): Document, handle.
252 (__USE_FORTIFY_LEVEL): Define.
253 (__GNUC_PREREQ): Move to earlier location.
254 * include/sys/cdefs.h (__chk_fail): New prototype.
255 * libio/bits/stdio.h (sprintf, vsprintf, snprintf, vsnprintf):
256 Define if __USE_FORTIFY_LEVEL.
257 * misc/sys/cdefs.h (__bos, __bos0): Define.
258 * string/string.h: Include <bits/string3.h> if __USE_FORTIFY_LEVEL.
259 * bits/string/string3.h: New header.
260 * sysdeps/generic/memcpy_chk.c: New file.
261 * sysdeps/generic/memmove_chk.c: Likewise.
262 * sysdeps/generic/mempcpy_chk.c: Likewise.
263 * sysdeps/generic/memset_chk.c: Likewise.
264 * sysdeps/generic/stpcpy_chk.c: Likewise.
265 * sysdeps/generic/strcat_chk.c: Likewise.
266 * sysdeps/generic/strcpy_chk.c: Likewise.
267 * sysdeps/generic/strncat_chk.c: Likewise.
268 * sysdeps/generic/strncpy_chk.c: Likewise.
269
10e0498e
RM
2702004-10-17 Roland McGrath <roland@frob.com>
271
272 * manual/memory.texi (Page Lock Functions): Typo fix.
273 Reported by Carlos Maziero <maziero@ppgia.pucpr.br>
274
c1d39886
RM
2752004-10-16 Alfred M. Szmidt <ams@kemisten.nu>
276
277 * sysdeps/mach/hurd/Makefile (link-libc-static): Use
278 `$(static-gnulib') instead of `$(gnulib)'.
279
6fa02f0a
UD
2802004-10-17 Ulrich Drepper <drepper@redhat.com>
281
282 * sunrpc/rpc_clntout.c: Avoid including rcsid into binary.
283 * sunrpc/rpc_cout.c: Likewise.
284 * sunrpc/rpc_hout.c: Likewise.
285 * sunrpc/rpc_main.c: Likewise.
286 * sunrpc/rpc_parse.c: Likewise.
287 * sunrpc/rpc_sample.c: Likewise.
288 * sunrpc/rpc_scan.c: Likewise.
289 * sunrpc/rpc_svcout.c: Likewise.
290 * sunrpc/rpc_tblout.c: Likewise.
291 * sunrpc/rpc_util.c: Likewise.
292
0da7bcc5
UD
2932004-10-15 Jakub Jelinek <jakub@redhat.com>
294
295 * sysdeps/unix/sysv/linux/i386/sysdep.h (PUSHARGS_6, DOARGS_6,
296 POPARGS_6, _PUSHARGS_6, _DOARGS_6, _POPARGS_6): Define.
297 * sysdeps/unix/sysv/linux/i386/syscall.S (syscall): Handle 6 argument
298 syscalls.
299
457962e5
UD
3002004-10-15 Ulrich Drepper <drepper@redhat.com>
301
302 * nscd/nscd.h (_PATH_NSCD_PASSWD_DB): Move to /var/db.
303 (_PATH_NSCD_GROUP_DB): Likewise.
304 (_PATH_NSCD_HOSTS_DB): Likewise.
305 (_PATH_NSCD_XYZ_DB_TMP): New #define, point to /var/run.
306 * nscd/connections.c (nscd_init): Non-persistent database files
307 are created with the _PATH_NSCD_XYZ_DB_TMP path.
308 * nscd/nscd.init: Create /var/db/nscd if necessary.
309
b3cce3d5
RH
3102004-10-15 Richard Henderson <rth@redhat.com>
311
312 * sysdeps/unix/sysv/linux/alpha/register-dump.h: New file.
313 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h (SIGCONTEXT): Add
314 _code argument, pass sigcontext by pointer.
315 (SIGCONTEXT_EXTRA_ARGS): Likewise.
316 (GET_PC, GET_FRAME, GET_STACK): Expect ctx as pointer.
317
6539c1ad
RH
3182004-10-14 Richard Henderson <rth@redhat.com>
319
320 * sysdeps/alpha/dl-machine.h (elf_machine_rela,
321 elf_machine_rela_relative, elf_machine_lazy_rel): Mark auto
322 instead of static.
323
324 * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use prototype
325 style definition.
326 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ADJTIME): If
327 __ASSUME_TIMEVAL64, define __adjtime directly rather than
328 via strong_alias.
329
5ca3d19c
UD
3302004-10-14 Ulrich Drepper <drepper@redhat.com>
331
59350982
UD
332 * nscd/Makefile: When using compilers without -fpie support, also
333 link with -lselinux if necessary.
334 Patch by Arkadiusz Miskiewicz <arekm@pld-linux.org>.
335
5ca3d19c
UD
336 * nscd/connections.c (nscd_init): Remove file if not persistent
337 and not shared. Patch by Jerome Borsboom <j.borsboom@erasmusmc.nl>.
338
7cb92a99
UD
3392004-10-14 Jakub Jelinek <jakub@redhat.com>
340
5ca3d19c
UD
341 * sysdeps/unix/sysv/linux/i386/setresuid.c: Handle
342 defined __NR_setresuid32 && !defined __NR_setresuid.
343 * sysdeps/unix/sysv/linux/i386/setresgid.c: Handle
344 defined __NR_setresgid32 && !defined __NR_setresgid.
345
346 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
347 __signbitl, sqrtf, sqrt, sqrtl, fdim, fdimf): Use __NTH macro.
348
349 * sysdeps/generic/errno-loc.c: Don't undef #errno
350 if RTLD_PRIVATE_ERRNO.
351 * include/errno.h (__errno_location): If RTLD_PRIVATE_ERRNO,
352 add attribute_hidden.
353
354 * dlfcn/dlinfo.c (dlinfo_doit): Replace iteration over GL(dl_loaded)
355 chain with iteration over all namespaces' _ns_loaded chains.
356 * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_preferred_address):
357 Likewise.
358 * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Likewise.
359
7cb92a99
UD
360 * elf/rtld.c (_dl_start): Fix one last dl_loaded.
361 * elf/dl-load.c (_dl_map_object_from_fd): Avoid definition of
362 label when it is not needed.
363 * elf/dl-close.c (_dl_close): Typo: & -> &&.
364
c701ab9f
UD
3652004-10-12 Jakub Jelinek <jakub@redhat.com>
366
367 * sysdeps/generic/segfault.c: Include alloca.h and stdint.h.
368 Don't include frame.h.
369 (CURRENT_STACK_FRAME, INNER_THAN, ADVANCE_STACK_FRAME): Remove.
370 (catch_segfault): Use backtrace function.
371
372 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Fix comment.
373 * sysdeps/unix/sysv/linux/ia64/register-dump.h: New file.
374 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h (GET_PC): Return sc_ip
375 field.
376
c0f62c56
UD
3772004-10-13 Ulrich Drepper <drepper@redhat.com>
378
379 Add support for namespaces in the dynamic linker.
380 * dlfcn/Makefile (libdl-routines): Add dlmopen.
381 * dlfcn/Versions [libdl, GLIBC_2.3.4]: Add dlmopen.
382 * dlfcn/dlfcn.h: Define Lmid_t, LM_ID_BASE, and LM_ID_NEWLM.
383 Declare dlmopen. Document RTLD_DI_LMID.
384 * dlfcn/dlinfo.c: Handle RTLD_DI_LMID.
385 * dlfcn/dlmopen.c: New file.
386 * dlfcn/dlopen.c: Pass new parameter to _dl_open.
387 * dlfcn/dlopenold.c: Likewise.
388 * elf/dl-addr.c: Adjust for removal of GL(dl_loaded).
389 * elf/dl-caller.c: Likewise.
390 * elf/dl-close.c: Likewise.
391 * elf/dl-conflict.c: Likewise.
392 * elf/dl-debug.c: Likewise.
393 * elf/dl-lookup.c: Likewise.
394 * elf/dl-sym.c: Likewise.
395 * elf/dl-version.c: Likewise.
396 * elf/do-lookup.h: Likewise.
397 * elf/rtld.c: Likewise.
398 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
399 * elf/dl-depsc: Likewise. Add new parameter to _dl_map_object.
400 * elf/dl-fini.c: Call destructors in all namespaces.
401 * elf/dl-iteratephdr.c: Compute total nloaded. Adjust for removal of
402 GL(dl_loaded).
403 * elf/dl-libc.c: Pass new parameter to _dl_open. Adjust for removal
404 of GL(dl_loaded).
405 * elf/dl-load.c (_dl_map_object_from_fd): Don't load ld.so a second
406 time. Reuse the one from the main namespace in all others.
407 Pass new parameter to _dl_new_object.
408 Adjust for removal of GL(dl_loaded).
409 * elf/dl-object.c: Take new parameter. Use it to initialize l_ns.
410 Adjust for removal of GL(dl_loaded).
411 * elf/dl-open.c (_dl_open): Take new parameter.
412 Adjust for removal of GL(dl_loaded).
413 * elf/dl-support.c: Replace global _dl_loaded etc variables with
414 _dl_ns variable.
415 * include/dlfcn.h: Adjust prototype of _dl_open.
416 Define __LM_ID_CALLER.
417 * include/link.h: Add l_real, l_ns, and l_direct_opencount elements.
418 * sysdeps/generic/dl-tls.c: Bump TLS_STATIC_SURPLUS. Since libc is
419 using TLS we need memory appropriate to the number of namespaces.
420 * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace _dl_loaded,
421 _dl_nloaded, _dl_global_scope, _dl_main_searchlist, and
422 _dl_global_scope_alloc with _dl_ns element. Define DL_NNS.
423 Adjust prototypes of _dl_map_object and member in rtld_global_ro.
424 * malloc/malloc.c: Include <dlfcn.h>.
425 * malloc/arena.c (ptmalloc_init): If libc is not in primary namespace,
426 never use brk.
427 * elf/Makefile: Add rules to build and run tst-dlmopen1 and
428 tst-dlmopen2.
429 * elf/tst-dlmopen1.c: New file.
430 * elf/tst-dlmopen1mod.c: New file.
431 * elf/tst-dlmopen2.c: New file.
432
433 * elf/dl-close.c: Improve reference counting by tracking direct loads.
434 * elf/dl-lookup.c (add_dependency): Likewise.
435 * elf/dl-open.c (dl_open_worker): Likewise.
436 * elf/rtld.c (dl_main): Likewise.
437
4382004-09-09 GOTO Masanori <gotom@debian.or.jp>
439
440 [BZ #77]
441 * elf/dl-close.c: Count down l_opencount to check not only for
442 l_reldeps, but also l_initfini.
443
8e9185fb
UD
4442004-10-13 Ulrich Drepper <drepper@redhat.com>
445
446 * elf/dl-close.c (_dl_close): Update bug reporting instructions.
447
173a06ec
UD
4482004-10-11 Ulrich Drepper <drepper@redhat.com>
449
daa6fd88
UD
450 * timezone/asia: Update from tzdata2004e.
451 * timezone/southamerica: Likewise.
452 * timezone/private.h: Update from tzcode2004e.
453 * timezone/zdump.c: Likewise.
454
f448d449
UD
455 * stdio-common/vfscanf.c: Add support for reading localized
456 digits. Patch mainly by Hamed Malek <hamed@bamdad.org>.
457
4e1c4a16
UD
458 * resolv/res_init.c (res_thread_freeres): Reset _res.options.
459 [BZ #434]
460
f433b06b
UD
461 * resolv/res_send.c (send_dg): Use nonblocking sockets. Add
462 appropriate poll/select calls and restart operation if necessary.
463 Also handle EINTR.
464
72349466
UD
465 * elf/tst-dlopenrpath.c (do_test): Enable code which was disabled
466 for debugging.
467
173a06ec
UD
468 * elf/dl-sym.c (do_sym): Avoid using global variable.
469
470 * elf/dl-addr.c (_dl_addr): Really use match everywhere.
471
aff40e5f
AS
4722004-10-09 Andreas Schwab <schwab@suse.de>
473
474 * sysdeps/m68k/memcopy.h (WORD_COPY_BWD): Remove use of cast as
475 lvalue.
476
477 * sysdeps/m68k/fpu/bits/mathinline.h: Remove __THROW from inline
478 definitions.
479
40bfefb3
RM
4802004-10-07 Andreas Schwab <schwab@suse.de>
481
482 * misc/sys/uio.h: Change __vector to __iovec to avoid clash with
483 altivec.
484
d7d06f79
UD
4852004-10-06 Alan Modra <amodra@bigpond.net.au>
486
487 * gmon/Makefile (CFLAGS-mcount.c): Move before inclusion of "Rules".
488 * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-mcount.c): Add
489 -msoft-float.
490 * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): New macros.
491 (CALL_MCOUNT): Replace with a gas macro implementation.
492 (EALIGN): Delete PROF version.
493 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Invoke CALL_MCOUNT.
494 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Likewise.
495 * sysdeps/powerpc/powerpc64/bsd-setjmp.S: Likewise.
496 * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
497 * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
498 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
499 * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
500 * sysdeps/powerpc/powerpc64/strchr.S: Likewise.
501 * sysdeps/powerpc/powerpc64/strcmp.S: Likewise.
502 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
503 * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
504 * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
505 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
506 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
507 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
508 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
509 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
510 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
511 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
512 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
513 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
514 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
515 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
516 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
517 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
518 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
519 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
520
521 * sysdeps/powerpc/powerpc64/setjmp-common.S: Add extra entry point
522 past _mcount call.
523 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Use it.
524 * sysdeps/powerpc/powerpc64/bsd-setjmp.S: Likewise.
525
3feb8efa
UD
5262004-10-06 Ulrich Drepper <drepper@redhat.com>
527
528 * resolv/res_mkquery.c (res_nmkquery): Reject randombits value if
529 low 16 bits are zero.
530
6bdd38ba
UD
5312004-10-06 Jakub Jelinek <jakub@redhat.com>
532
c56da3a3
UD
533 * posix/tst-getaddrinfo2.c: Include stdlib.h and string.h.
534 (do_test): Use %p instead of 0x%08X to print a pointer.
535
536 * malloc/malloc.c: Include stdio-common/_itoa.h.
6bdd38ba 537
b85a0f39
UD
5382004-10-05 Ulrich Drepper <drepper@redhat.com>
539
540 * elf/rtld.c (dl_main): Use _dl_debug_printf instead of _dl_printf
541 for prelink message.
542
2c03b6db
UD
5432004-10-05 Jakub Jelinek <jakub@redhat.com>
544
545 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Include dl-sysdep.h.
546 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
547
695c4370
UD
5482004-10-05 Ulrich Drepper <drepper@redhat.com>
549
550 * grp/initgroups.c: Remove duplicate group IDs.
551 * grp/compat-initgroups.c: Likewise.
552 * nscd/initgrcache.c: Likewise.
553
6ab5f50d
UD
5542004-10-05 Jakub Jelinek <jakub@redhat.com>
555
556 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (__sysconf): Return 200112L
557 for _SC_CPUTIME or _SC_THREAD_CPUTIME.
558
559 * nscd/Makefile (nscd-cflags): Set to -DIS_IN_nscd=1, plus
560 -fpie if building PIE.
561 (CFLAGS-*.c): Use it.
562
563 * nscd/Makefile (relro-LDFLAGS): Add -Wl,-z,now if have-z-relro.
564 ($(objpfx)nscd): Add $(relro-LDFLAGS).
565
566 * sysdeps/unix/sysv/linux/i386/sysconf.c: Include hp-timing.h.
567 (__sysconf): Return -1 for _SC_CPUTIME or _SC_THREAD_CPUTIME if
568 !HP_TIMING_AVAIL.
569
5702004-10-05 Ulrich Drepper <drepper@redhat.com>
571
572 * nscd/Makefile (distribute): Remove TODO.
573 * nscd/TODO: Removed.
574
e582c5ed
UD
5752004-10-04 Ulrich Drepper <drepper@redhat.com>
576
e14bbf53
UD
577 * nscd/gai.c: Define __no_netlink_support if NEED_NETLINK is
578 defined and __ASSUME_NETLINK_SUPPORT is zero.
579 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gai.c): Add
580 -DNEED_NETLINK.
581
e582c5ed
UD
582 * malloc/mtrace.pl: Avoid calling location unless it is needed for
583 output. Patch by Edward Bishop <binutils@gmail.com>.
584
585 * nscd/Makefile (CFLAGS-gai.c): Add -fpie.
586
982e38a6
RM
5872004-10-04 H.J. Lu <hongjiu.lu@intel.com>
588
92e2bb24
UD
589 * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c
590 (clock_getcpuclockid): Add missing retval.
591
982e38a6
RM
592 * sysdeps/unix/sysv/linux/ia64/sysconf.c (linux_sysconf): Fix a typo.
593
0c70edcb
RM
5942004-10-04 Roland McGrath <roland@redhat.com>
595
596 * include/errno.h [RTLD_PRIVATE_ERRNO] (errno): Rename the real symbol
597 to rtld_errno.
598 * sysdeps/generic/errno.c [RTLD_PRIVATE_ERRNO] (rtld_errno): Define it,
599 and don't define any other errno names.
600 * sysdeps/unix/alpha/sysdep.h [RTLD_PRIVATE_ERRNO]: Use rtld_errno in
601 place of errno.
602 * sysdeps/unix/i386/sysdep.S: Likewise.
603 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
604 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
605 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
606 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
607 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
608 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
609 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
610 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
611 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
612 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
613 * sysdeps/unix/x86_64/sysdep.S: Likewise.
614
615 * sysdeps/generic/errno.c [! USE___THREAD] (errno): Use `nocommon'
616 attribute instead of `section'.
617
75489693
UD
6182004-10-04 Ulrich Drepper <drepper@redhat.com>
619
94d824f9
UD
620 * sysdeps/unix/sysv/linux/ia64/sysconf.c: New file.
621 * sysdeps/unix/sysv/linux/ia64/Dist: Add has_cpuclock.c.
622 * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c: Move actual
623 testing code to...
624 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: ...here. New file.
625 * sysdeps/unix/sysv/linux/i386/sysconf.c: Add dynamic check for
626 _SC_CPUTIME and _SC_THREAD_CPUTIME.
627
3078cba2
UD
628 * nscd/connections.c (start_threads): Use sysconf in case
629 _POSIX_CLOCK_SELECTION or _POSIX_MONOTONIC_CLOCK is not greater zero.
630
91a3b2ad
UD
631 * nscd/Makefile (nscd-modules): Add gai.
632 * nscd/gai.c: New file.
3078cba2 633 * nscd/nscd.c: Remove getaddrinfo stub definition.
91a3b2ad 634
76db9283
UD
635 * assert/assert.h: Give up on using __builtin_expect.
636
75489693
UD
637 * elf/rtld.c (dl_main): Only skip => output in ldd mode if both
638 strings are identical.
639
26d550d3
UD
6402004-03-18 Jakub Jelinek <jakub@redhat.com>
641
642 * malloc/arena.c (aligned_heap_area): New variable.
643 (new_heap): If aligned_heap_area != NULL, attempt to use that
644 first. If HEAP_MAX_SIZE << 1 area is already HEAP_MAX_SIZE bytes
645 aligned, remember the second half in aligned_heap_area.
646 (delete_heap): Clear aligned_heap_area if deleting the area right
647 before aligned_heap_area.
648
48ad81fa
UD
6492004-10-03 Juerg Billeter <j@bitron.ch>
650
651 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Return -1 if nscd
89e2555f 652 can't be used. [BZ #424]
48ad81fa 653
fc03df7a
UD
6542004-10-03 Ulrich Drepper <drepper@redhat.com>
655
27e82856
UD
656 Dynamically create new threads if necessary.
657 * nscd/connections.c (fd_ready): If no thread available for processing
658 the request, create a new one unless the limit is reached.
659 (start_threads): Check errors from pthread_create.
660 * nscd/nscd.h: Declare max_nthreads.
661 * nscd/nscd_conf.c: Parse max-nthreads entry.
662 * nscd/nscd.conf: Add max-threads entry.
663 * nscd/nscd_stat.c: Print current and maximum number of threads.
664
4401d759
UD
665 Implement paranoia mode.
666 * nscd/connections.c (nscd_init): Mark database and socket descriptors
667 as close on exec.
668 (restart): New function.
669 (restart_p): New function.
670 (nscd_run): Add missing descrement of nready in case readylist is
671 empty.
672 (main_loop_poll): Call restart_p and restart.
673 (main_loop_epoll): Likewise.
674 (begin_drop_privileges): Save original UID and GID.
675 * nscd/nscd.c: Define new variables paranoia, restart_time,
676 restart_interval, oldcwd, old_gid, old_uid.
677 (main): Disable paranoia mode if we are not forking.
678 (check_pid): When re-execing, the PID file contains the same PID as
679 the current process. Do not fail in this case.
680 * nscd/nscd.conf: Add paranoia and restart-interval entries.
681 * nscd/nscd.h: Define RESTART_INTERVAL. Declare new variables.
682 * nscd/nscd_conf.c: Parse paranoia and restart-internal configurations.
683 * nscd/nscd_stat.c: Print paranoia and restart-internal values.
684
fc03df7a
UD
685 * nscd/connections.c: Implement alternative loop for main thread
686 which uses epoll.
687 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
688 (CFLAGS-connections.c): Add -DHAVE_EPOLL.
689
1507c81f
UD
6902004-10-02 Ulrich Drepper <drepper@redhat.com>
691
fc03df7a
UD
692 * nscd/Makefile (CFLAGS-initgrcache.c): Add to CFLAGS-* variables,
693 don't replace old content.
694
1945c96f 695 * nscd/connections.c: Rewrite handling of incoming connections. All
0c70edcb 696 are handled by one thread which then hands off the descriptors for the
1945c96f
UD
697 real work to the worker threads.
698 * nscd/Makefile: Link nscd with librt.
699
700 * nscd/selinux.c: Pretty printing.
701
702 * nscd/dbg_log.c (dbg_log): Don't add unnecessary newline to
703 output. Let syslog do the formatting if debug_level == 0.
704
1507c81f
UD
705 * nscd/nscd_helper.c (get_mapping): No need to check timestamp if
706 nscd_certainly_running is nonzero.
707
f1d877e1
RM
7082004-10-02 Simon Josefsson <jas@extundo.com>
709
710 [BZ #420]
711 * sysdeps/generic/memmem.c [!_LIBC]: Define __builtin_expect, to
712 make the file usable inside gnulib.
713
cb984ef2
UD
7142004-10-01 Ulrich Drepper <drepper@redhat.com>
715
29bdc37a
UD
716 * malloc/malloc.c (public_vALLOc): Add missing use of hooks.
717 (public_pVALLOc): Likewise.
718
927f0673
UD
719 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Always add the
720 group the caller provided unless there is a real problem.
721
cb984ef2
UD
722 * posix/bug-glob1.c (prepare): Fix creation of symlink.
723
0891f970
UD
7242004-09-30 Ulrich Drepper <drepper@redhat.com>
725
0da4ee55
UD
726 * posix/Makefile: Add rules to build and run bug-glob1.
727 * posix/bug-glob1.c: New file.
728
c4f4ef87
UD
729 * iconv/iconv_prog.c (main): Print progress information to stderr.
730
74fef3bb 731 * nscd/nscd.c (termination_handler): Reset timestamp so that
16b15c86 732 clients immediately stop using the database.
74fef3bb 733
0891f970
UD
734 * nscd/nscd-client.h (__nscd_get_map_ref): Drop volatile from last
735 parameter.
74fef3bb 736 (__nscd_drop_map_ref): Change second parameter to be a reference to
0891f970
UD
737 a variable. Update variable when cycle count changed.
738 * nscd/nscd_helper.c (__nscd_get_map_ref): Remove volatile here, too.
739 * nscd/nscd_getai.c: Correctly use __nscd_drop_map_ref. Reinitialize
740 all variables and avoid memory leak in case of retries.
741 * nscd/nscd_getgr_r.c: Likewise.
742 * nscd/nscd_gethst_r.c: Likewise.
743 * nscd/nscd_getpw_r.c: Likewise.
744 * nscd/nscd_initgroups.c: Likewise.
745
74fef3bb 746 * nscd/nscd.h: Add declaration of addinitgroups and
0891f970
UD
747 readdinitgroups.
748
6037b751
AJ
7492004-09-30 Andreas Jaeger <aj@suse.de>
750
751 * nscd/Makefile (CFLAGS-nscd_initgroups.c): Set to -fpie.
366778e9 752 (CFLAGS-initgrcache.c): Set to -fexceptions.
6037b751 753
66b38fc9
UD
7542004-09-29 Ulrich Drepper <drepper@redhat.com>
755
756 * sysdeps/generic/glob.c (glob_in_dir): Don't blindly trust
757 readdir results; for symlinks or files of unknown type check using
758 stat whether the file exists.
759
760 * posix/tst-gnuglob.c (find_file): Handle leading "./". Fix
761 recognition of files.
762
8930fcf9
UD
7632004-09-29 Jakub Jelinek <jakub@redhat.com>
764
765 * time/tzfile.c (tzfile_mtime): New variable.
766 (__tzfile_read): Reread the file if mtime is different.
767
7682004-09-28 Jakub Jelinek <jakub@redhat.com>
769
770 * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf, __fdim, fdimf, fdim):
771 Handle +inf/+inf.
772 * sysdeps/powerpc/fpu/bits/mathinline.h (fdim, fdimf): Likewise.
773 * sysdeps/sparc/fpu/bits/mathinline.h (fdim, fdimf): Likewise.
774
af38d7ce
UD
7752004-09-29 Ulrich Drepper <drepper@redhat.com>
776
777 * nscd/nscd_gethst_r.c (nscd_gethst_r): Use correct constant for
778 testing result of __nscd_get_map_ref.
779
7ff2ba90
UD
7802004-09-29 Jakub Jelinek <jakub@redhat.com>
781
782 * sysdeps/i386/fpu/s_fdim.S (__fdim): Handle +inf/+inf.
783 * sysdeps/i386/fpu/s_fdimf.S (__fdimf): Likewise.
784 * sysdeps/i386/fpu/s_fdiml.S (__fdiml): Likewise.
785
786004-09-29 Ulrich Drepper <drepper@redhat.com>
8c1d74a9 787
f7e7a396
UD
788 * grp/initgroups.c: Move compat_call implementation...
789 * grp/compat-initgroups.c: ...to here. New file.
790 * grp/Makefile (distribute): Add compat-initgroups.c.
791 (CFLAGS-initgroups.c): Add -DUSE_NSCD=1.
792 * mscd/initgrcache.c: New file.
793 * nscd/nscd_initgroups.c: New file.
794 * nscd/Makefile (routines): Add nscd_initgroups.
795 (nscd-modules): Add initgrcache.
796 * nscd/cache.c (prune_cache): Add support for INITGROUPS entries.
797 * nscd/connections.c: Handle INITGROUPS requests.
798 * nscd/nscd-client.h: Define INITGROUPS, initgr_response_header.
799 Add initgrdata element to struct datahead. Fix typo in comment.
800 * nscd/nscd_proto.h: Declare __nscd_getgrouplist. Fix parameter
801 type in __nscd_getgrgrid_r.
802 * nscd/selinux.c (perms): Add INITGROUPS entry.
803
804 * nscd/nscd_getai.c: No need to include <sys/mman.h>.
805
806 * sunrpc/get_myaddr.c (get_myaddress): Account for interfaces without
807 assigned addresses.
808 * sunrpc/pmap_clnt.c (__get_myaddress): Likewise.
809 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
810 * sunrpc/clnt_udp.c (is_network_up): Likewise.
811
04c785b2
UD
812 * nscd/nscd.c: Define getaddrinfo hidden so that it is never found
813 outside.
814
8c1d74a9 815 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (si_segvflags):
6fe62f53 816 Renamed from si_flags due to conflict with si_flags from <elf.h>.
8c1d74a9 817
0026d6d1
UD
8182004-09-28 Ulrich Drepper <drepper@redhat.com>
819
81177191
UD
820 * nscd/nscd_getai.c: Use NO_MAPPING instead of MAP_FAILED for test
821 of failing __nscd_get_map_ref. Fix a few typos.
822
53b4fed6
UD
823 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Make sure
824 SIGSETXID is not blocked.
825 * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Likewise.
826 * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
827 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
828 * sysdeps/generic/sigfillset.c (sigfillset): Don't set SIGSETXID.
829
21ae57c4
UD
830 * sunrpc/get_myaddr.c (get_myaddress): Fix test for failing
831 getifaddrs call.
832 * sunrpc/pmap_clnt.c (__get_myaddress): Likewise.
6c81dc42 833 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
4f21c95d
UD
834 * sunrpc/Makefile (xtests): Add tst-getmyaddr.
835 * sunrpc/tst-getmyaddr.c: New file.
21ae57c4 836
a19fe332
UD
837 * malloc/arena.c (ptmalloc_init): Allow MALLOC_CHECK_==0 to
838 disable all checking.
839
0026d6d1
UD
840 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (si_flags): Add
841 support to get this value.
842
067fff20
UD
8432004-09-28 Jakub Jelinek <jakub@redhat.com>
844
845 * io/utime.h (utime): Allow second argument to be NULL.
846
e59a8e84
UD
8472004-09-28 Ulrich Drepper <drepper@redhat.com>
848
849 * sysdeps/posix/getaddrinfo.c (gaih_inet): If NAME is a numerical IP
850 address and AI_CANONNAME is set, return copy of NAME as ai_canonname.
851
7dfde5a0
AJ
8522004-09-27 Andreas Jaeger <aj@suse.de>
853
854 * sysdeps/i386/dl-machine.h (elf_machine_rela_relative): Replace
855 static inline by auto inline, add always_inline attribute.
856 (elf_machine_rel): Likewise.
857 (elf_machine_rela): Likewise.
858 (elf_machine_lazy_rel): Likewise.
859 (elf_machine_lazy_rela): Likewise.
860 (elf_machine_rel_relative): Likewise.
861
9b904803
UD
8622004-09-27 Ulrich Drepper <drepper@redhat.com>
863
f20ba032
UD
864 * sunrpc/xdr_intXX_t.c: Add xdr_quad_t and xdr_u_quad_t aliases.
865 * sunrpc/rpc/xdr.h: Declare xdr_quad_t and xdr_u_quad_t.
9b904803
UD
866 * sunrpc/rpc_parse.c (get_type): Use "quad_t" for TOK_HYPER.
867 Otherwise isvectordef will loop infinitely if typedef hyper int64_t
868 is seen.
869 (unsigned_dec): Use "u_quad_t" for similar reasons.
f20ba032 870 * sunrpc/Versions: Export xdr_quad_t and xdr_u_quad_t.
9b904803 871
c5e2501b
RM
8722004-09-27 Roland McGrath <roland@redhat.com>
873
9e9720a2
RM
874 * sysdeps/generic/bits/waitstatus.h (__WIFSIGNALED): Simplify bit
875 twiddling in last change.
876
a044c713
RM
877 * posix/tst-waitid.c (do_test): Add tests for waitpid with WCONTINUED.
878
bcc956f2 879 [BZ #409]
a044c713
RM
880 * posix/sys/wait.h [__WIFCONTINUED] (WIFCONTINUED): New macro.
881 * stdlib/stdlib.h [__WIFCONTINUED] (WIFCONTINUED): New macro.
882 * sysdeps/generic/bits/waitstatus.h (__W_CONTINUED): New macro.
883 [WCONTINUED] (__WIFCONTINUED): New macro.
884 (__WIFSIGNALED): Rewritten to exclude __W_CONTINUED value, and have no
885 branches.
886
c5e2501b
RM
887 * sysdeps/unix/sysv/linux/waitid.c (do_waitid): Add fifth argument to
888 all three syscall uses, not just one!
889
9ea9b141
RH
8902004-09-26 Richard Henderson <rth@redhat.com>
891
892 * sysdeps/alpha/alphaev6/memcpy.S: Mark .prologue.
893 * sysdeps/unix/alpha/sysdep.h (LEAF, ENTRY): Align entry points
894 to 16 byte boundaries.
895
ca225a41
UD
8962004-09-26 Ulrich Drepper <drepper@redhat.com>
897
625ef999
UD
898 * elf/readlib.c (process_file): Before complaining about too-short
899 file, check that it potentially be an ELF file. Also complain about
900 empty files. [BZ #151].
901
610e3e7f
UD
902 * scripts/test-installation.pl: Fix ld.so recognition for new
903 LD_TRACE_LOADED_OBJECTS output format.
904 Patch by <jsberg04+computing.glibc@ftml.net> [BZ #407].
905
c4e328a1
UD
906 * elf/dl-support.c (_dl_non_dynamic_init): Fix cleaning of
907 environment. [BZ #384]
908
412c954a
UD
909 * sunrpc/clnt_udp.c (is_network_up): Use getifaddrs instead of ioctl.
910 * sunrpc/get_myaddr.c (get_myaddress): Likewise.
911 * sunrpc/pmap_clnt.c (__get_myaddress): Likewise.
912 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise. Change interface
913 to avoid buffer overrun and remove now useless parameters.
914 (clnt_broadcast): Adjust caller. [BZ #381].
915
6497a1d0
UD
916 * sysdeps/generic/s_fdim.c: Handle +inf/+inf
917 * sysdeps/generic/s_fdimf.c: Likewise.
918 * sysdeps/generic/s_fdiml.c: Likewise.
919 * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
920 * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
921 * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
922 * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
923 * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
924 * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
925 * math/libm-test.inc (fdim_test): Add test case. [BZ #376].
926
a1d335d6
UD
927 * sysdeps/generic/bits/types.h: Fix __SQUAD_TYPE and __UQUAD_TYPE
928 for compilers without __GLIBC_HAVE_LONG_LONG. [BZ #362]
929
ca225a41
UD
930 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Remove incorrect
931 requirement on socktype and protocol.
932 (gaih_inet): If numeric port number is given, return records for all
933 possible socket types.
934 * posix/tst-getaddrinfo2.c: New file.
935 * posix/Makefile (tests): Add tst-getaddrinfo2. [BZ #358]
936
4faf24a3
UD
9372004-09-25 Ulrich Drepper <drepper@redhat.com>
938
fe6ce170
UD
939 * locale/loadlocale.c (_nl_intern_locale_data): Recognize LC_CTYPE
940 data where _nl_value_type_LC_CTYPE does not contain the type
941 information. Add range checks.
942 Reported by John Lumby <johnlumby@hotmail.com> [BZ #356].
943
5cec9552
UD
944 * libio/vasprintf.c (_IO_vasprintf): Fix condition to decide
945 whether to realloc or not.
946 Reported by Pavel Kankovsky <peak@argo.troja.mff.cuni.cz> [BZ #346].
947
ce7265c7
UD
948 * intl/dcigettext.c (DCIGETTEXT): Protect tfind/tsearch calls.
949 * intl/dcigettext.c (_nl_find_msg): Call _nl_load_domain also if
950 decided < 0.
951 * intl/finddomain.c (_nl_find_domain): Likewise.
ce7265c7
UD
952 * intl/loadmsgcat.c (_nl_load_domain): Set decided to 1 only once we
953 are done. First set to -1 to signal initialization is ongoing.
954 Protect against concurrent callers with recursive lock.
f6b90f42 955 * intl/finddomain.c (_nl_find_domain): Protect calls to
6721afe2
UD
956 _nl_make_l10nflist. [BZ #322]
957
4faf24a3
UD
958 * sysdeps/posix/getaddrinfo.c (getaddrinfo): If determinination of
959 source address fails, initialized source_addr_len field so that
6721afe2 960 duplicate address recognition does not copy junk.
4faf24a3 961
5f66b766
UD
9622004-09-25 Jakub Jelinek <jakub@redhat.com>
963
964 * sysdeps/unix/sysv/linux/i386/setuid.c (__setuid): Remove second
965 result declaration.
966
9672004-09-22 Andreas Schwab <schwab@suse.de>
968
969 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Adjust whitespace.
970
3900770e
UD
9712004-09-24 Ulrich Drepper <drepper@redhat.com>
972
51499423
UD
973 * misc/daemon.c (daemon): Don't succeed if /dev/null cannot be
974 opened.
975
9435d38c
UD
976 * nis/ypclnt.c (do_ypcall): Add one missing unlock. Simplify the
977 code a bit.
978
43ca813d
UD
979 * misc/daemon.c (daemon): Define errno in case /dev/null is not
980 the correct device.
981
3900770e
UD
982 * nis/ypclnt.c (yp_bind_file): Optimize a bit. Minimal cleanups.
983
24f076f8
AJ
9842004-09-23 Andreas Jaeger <aj@suse.de>
985
986 * locale/weight.h (findidx): Remove static, it's not supported
987 anymore with GCC 4.0 in a block scope.
988 * locale/weightwc.h (findidx): Likewise.
989 * posix/regcomp.c (seek_collating_symbol_entry): Likewise.
990 (lookup_collation_sequence_value): Likewise.
991 (build_range_exp): Likewise.
992 (build_collating_symbol): Likewise.
993 * iconv/iconvconfig.c (write_output): Likewise.
994 * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
995
996 * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Remove
997 static, add always_inline attribute.
998 (elf_machine_rela): Likewise.
999 (elf_machine_lazy_rel): Likewise.
1000
1001 * elf/dynamic-link.h (elf_get_dynamic_info): Make static dependend
1002 on !RESOLVE so that it's not defined in local scope.
1003
362038b0
UD
10042004-09-23 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1005
1006 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL_NCS): Define.
1007
8f1913a9
UD
10082004-09-23 Thorsten Kukuk <kukuk@suse.de>
1009
1010 * sysdeps/unix/sysv/linux/sys/mount.h: Sync MS_RMT_MASK flag
1011 and BLK* ioctls with linux kernel headers.
1012
1fc07491
UD
10132004-09-23 Ulrich Drepper <drepper@redhat.com>
1014
1015 * sysdeps/generic/bits/dlfcn.h: Add RTLD_DEEPBIND.
1016 * elf/dl-object.c (_dl_new_object): Add new parameter mode. If mode
1017 has RTLD_DEEPBIND set add local searchlist before global scope.
1018 * sysdeps/generic/ldsodefs.h (_dl_new_object): Adjust prototype.
1019 * elf/rtld.c: Adjust callers of _dl_new_object.
1020 * elf/dl-load.c: Likewise.
1021 (_dl_map_object_from_fd): If RTLD_DEEPBIND is used, don't do anything
1022 for DF_SYMBOLIC.
1023 * elf/dl-open.c (dl_open_writer): Pass RTLD_DEEPBIND flag on to
1024 _dl_map_object_deps.
1025 * elf/tst-deep1.c: New file.
1026 * elf/tst-deep1mod1.c: New file.
1027 * elf/tst-deep1mod2.c: New file.
1028 * elf/tst-deep1mod3.c: New file.
1029 * elf/Makefile: Add rules to build and run new tests.
1030
1031 * elf/dl-deps.c: Pretty printing.
1032
bbb5e55c
UD
10332004-09-23 Jakub Jelinek <jakub@redhat.com>
1034
1035 * sysdeps/unix/alpha/sysdep.h (inline_syscall[0-6]): Change name
1036 argument to numbers from syscall names.
1037 (INLINE_SYSCALL1): Pass __NR_##name to inline_syscall##nr.
1038 (INTERNAL_SYSCALL_NCS): Renamed from...
1039 (INTERNAL_SYSCALL_1): ... this. Use INTERNAL_SYSCALL_NCS.
1040 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
1041 (INTERNAL_SYSCALL_NCS): Define.
1042 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1043 (INTERNAL_SYSCALL_NCS): Likewise.
1044 * sysdeps/unix/sysv/linux/sparc/sysdep.h (inline_syscall[0-6]):
1045 Change name argument to numbers from syscall names.
1046 (INLINE_SYSCALL, INTERNAL_SYSCALL): Adjust.
1047 (INTERNAL_SYSCALL_NCS): Define.
1048
be27d08c
UD
10492004-09-22 Ulrich Drepper <drepper@redhat.com>
1050
54915e9e
UD
1051 * malloc/malloc.c (malloc_printerr): Use syslog if writev failed.
1052
be27d08c
UD
1053 * string/string.h: Add __nonnull annotations.
1054 * stdlib/stdlib.h: Likewise.
1055
4ff389fe
UD
10562004-09-20 H.J. Lu <hongjiu.lu@intel.com>
1057
1058 * sysdeps/unix/sysv/linux/ia64/sysdep.h (DO_INLINE_SYSCALL):
1059 Renamed to ...
1060 (DO_INLINE_SYSCALL_NCS): This.
1061 (DO_INLINE_SYSCALL): New.
1062 (INLINE_SYSCALL): Updated.
1063 (INTERNAL_SYSCALL_NCS): Updated.
1064
366ca3ac
UD
10652004-09-21 Ulrich Drepper <drepper@redhat.com>
1066
a2d231e5
UD
1067 * elf/sprof.c (load_shobj): Add support for reading symbol table
1068 from debuginfo file.
1069
366ca3ac
UD
1070 * elf/ldd.bash.in: Fix syntax errors.
1071
3c12b91a
UD
10722004-09-20 Ulrich Drepper <drepper@redhat.com>
1073
1658cb80
UD
1074 * sysdeps/unix/sysv/linux/dl-execstack.c
1075 (_dl_make_stack_executable): Remove some duplication.
1076
3c12b91a
UD
1077 * nscd/nscd.c (options): Mark S option as hidden.
1078 (parse_opt): When S option is used, print warning message.
1079 * nscd/grpcache.c (adgrptbyX): Don't handle secure mode.
1080 * nscd/hstcache.c (addhstbyX): Don't handle secure mode.
1081 * nscd/aicache.c (addhstaiX): Don't handle secure mode.
1082 * nscd/pwdcache.c (addpwbyX): Don't handle secure mode.
1083
f6f43da7
RM
10842004-09-20 Roland McGrath <roland@frob.com>
1085
1086 * elf/dl-load.c (__stack_prot): Only use PROT_GROWSUP/PROT_GROWSDOWN
1087 in initializer #if defined.
1088
10892004-09-18 Paul Eggert <eggert@cs.ucla.edu>
1090
1091 [BZ #391]
1092 * stdlib/getsubopt.c: Merge fixes from gnulib.
1093 (__strchrnul) [!_LIBC]: Define and include "strchrnul.c".
1094 (getsubopt): Use prototypes, not K&R style.
1095 Fix bug: memcmp(A,B,N) was being invoked on a memory block B
1096 whose size might be smaller than N. Use strncmp to avoid the bug.
1097
664e7d93
UD
10982004-09-20 Ulrich Drepper <drepper@redhat.com>
1099
65f0beb9
UD
1100 * configure.in: If selinux has not explictly been requested, don't
1101 comment on it missing.
1102
664e7d93
UD
1103 * elf/dl-load.c: Define __stack_prot.
1104 * sysdeps/unix/sysv/linux/dl-execstack.c: Don't define
1105 __stack_prot here, just declare it.
1106
54beacab
UD
11072004-09-20 Jakub Jelinek <jakub@redhat.com>
1108
1109 * configure.in (libc_cv_z_relro): Only set to yes if linker script
1110 contains DATA_SEGMENT_RELRO_END.
1111
efec5079
UD
11122004-09-20 Ulrich Drepper <drepper@redhat.com>
1113
1114 * elf/dl-load.c (_dl_map_object_from_fd): Add some error checking.
1115 Reorder code slightly.
1116 * elf/rtld.c (dl_main): No need to check whether l_info[DT_HASH]
1117 is non-null, _dl_setup_hash will do that.
1118
29e11320
UD
11192004-09-19 Ulrich Drepper <drepper@redhat.com>
1120
2edb61e3
UD
1121 * sysdeps/unix/sysv/linux/setegid.c [HAVE_PTR__NPTL_SETXID]: Call
1122 callback to set IDs in all other threads as well.
1123 * sysdeps/unix/sysv/linux/seteuid.c: Likewise.
1124 * sysdeps/unix/sysv/linux/i386/setegid.c: Likewise.
1125 * sysdeps/unix/sysv/linux/i386/seteuid.c: Likewise.
1126 * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
1127 * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
1128 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
1129 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
1130 * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
1131 * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
1132 * sysdeps/unix/sysv/linux/setuid.c: New file.
1133 * sysdeps/unix/sysv/linux/setgid.c: New file.
1134 * sysdeps/unix/sysv/linux/setreuid.c: New file.
1135 * sysdeps/unix/sysv/linux/setregid.c: New file.
1136 * sysdeps/unix/sysv/linux/setresuid.c: New file.
1137 * sysdeps/unix/sysv/linux/setresgid.c: New file.
1138 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define INTERNAL_SYSCALL_NCS.
1139 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
1140 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
1141 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
1142 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
1143 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c: Use x86 version.
1144 * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c: Likewise.
1145 * sysdeps/unix/sysv/linux/sparc/sparc32/setresgid.c: New file.
1146 * sysdeps/unix/sysv/linux/sparc/sparc32/setresuid.c: New file.
1147 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Remove setresgid
1148 and setresuid.
1149 * nscd/aicache.c: Use pthread_seteuid_np instead of seteuid.
1150 * nscd/grpcache.c: Likewise.
1151 * nscd/hstcache.c: Likewise.
1152 * nscd/pwdcache.c: Likewise.
1153
29e11320
UD
1154 * resolv/res_mkquery.c (res_nmkquery): Fix typo.
1155
f4380a09
UD
11562004-09-18 Ulrich Drepper <drepper@redhat.com>
1157
dcca3fe2
UD
1158 * sysdeps/unisx/sysv/linux/dl-execstack.c: Get protection flag
1159 from memory.
1160 * elf/dl-load.c (_dl_map_object_from_fd): Add PROT_EXEC flag to
1161 __stack_flags.
1162
d7243362
UD
1163 * sysdeps/posix/getaddrinfo.c (gaih_inet): Do not use
1164 gethostbyname3_r if we are not looking for the canonical name.
1165
f4380a09
UD
1166 * resolv/res_mkquery.c (res_nmkquery): Randomize request ID every
1167 time.
1168
9530eaf0
RM
11692004-09-18 Roland McGrath <roland@redhat.com>
1170
1171 * sysdeps/unix/sysv/linux/waitid.c (do_waitid): Pass fifth argument to
1172 system call.
1173
7a11603d
UD
11742004-09-17 Ulrich Drepper <drepper@redhat.com>
1175
1176 * include/link.h (struct link_map): Add l_used element.
1177 * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_UNUSED.
1178 * elf/rtld.c (process_dl_debug): Recognize unused.
1179 (dl_main): When unused debug flag is set check for unused direct
1180 dependencies.
1181 When printing dependencies and SONAME starts with /, omit the SONAME =>
1182 part.
1183 * elf/dl-lookup.c (_dl_lookup_symbol_x): Mark object in which the
1184 symbol has been found as used.
1185 * elf/ldd.bash.in: Add -u option.
1186
f04b1e1f
UD
11872004-09-18 Jakub Jelinek <jakub@redhat.com>
1188
1189 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
1190 Do nothing if __NR_set_tid_address is not defined. [BZ #390]
1191
11922004-09-17 Ulrich Drepper <drepper@redhat.com>
1193
1194 * sysdeps/posix/getaddrinfo.c: Use gethostbyname3_r NSS function
1195 in case it is available.
1196
f731666f
UD
11972004-09-17 Jakub Jelinek <jakub@redhat.com>
1198
1199 * nscd/nscd.c (parse_opt): Write arg string instead of (void *)
1200 key to the socket.
1201
8a1f658b
UD
12022004-09-17 Ulrich Drepper <drepper@redhat.com>
1203
1204 * misc/sys/cdefs.h: Define __nonnull using nonnull function attribute
1205 for gcc 3.3 and higher.
1206 * io/fcntl.h: Add __nonnull where appropriate.
1207 * io/ftw.h: Likewise.
1208 * io/utime.h: Likewise.
1209 * io/sys/poll.h: Likewise.
1210 * io/sys/sendfile.h: Likewise.
1211 * io/sys/stat.h: Likewise.
1212 * io/sys/statfs.h: Likewise.
1213 * io/sys/statvfs.h: Likewise.
1214 * posix/unistd.h: Likewise.
41102740
UD
1215 * catgets/nl_types.h: Likewise.
1216 * crypt/crypt.h: Likewise.
1217 * debug/execinfo.h: Likewise.
8a1f658b 1218
74a30a58
UD
12192004-09-16 Ulrich Drepper <drepper@redhat.com>
1220
5032f494
UD
1221 * posix/glob.h: Remove cruft to make header usable outside glibc.
1222 The maintenance headache is too big.
1223
74a30a58
UD
1224 * configure.in: Add test for required SELinux features.
1225 * config.make.in: Add have-selinux entry.
1226 * config.h.in: Add HAVE_SELINUX entry.
1227 * nscd/Makefile (nscd-modules): Add selinux.
1228 (CFLAGS-selinux.c): Add -fpie.
1229 Define selinux-LIBS and use in link line.
1230 * nscd/connections.c (handle_request): Check access SELinux permissions
1231 before processing request.
1232 * nscd/nscd.c (main): Initialize selinux_enabled and stop avc thread.
1233 * nscd/nscd_stat.c: Transmit and print AVC statistics.
1234 * nscd/selinux.c: New file.
1235 * nscd/selinux.h: New file.
166151ff 1236 Patch mostly by Matthew Rickard <mjricka@epoch.ncsc.mil>.
74a30a58
UD
1237
12382004-09-16 Jakub Jelinek <jakub@redhat.com>
1239
1240 * nscd/nscd_helper.c (__nscd_unmap, get_mapping): Use __munmap
1241 instead of munmap.
1242
1243 * nscd/Makefile (CFLAGS-aicache.c): Set to -fpie.
1244
12452004-09-16 Thorsten Kukuk <kukuk@suse.de>
1246
1247 * sysdeps/posix/getaddrinfo.c (gaih_inet): Check
1248 __nss_not_use_nscd_hosts variable if nscd should be used or not.
1249
12502004-09-16 Ulrich Drepper <drepper@redhat.com>
1251
1252 * nscd/nscd_proto.h: Define NSS_NSCD_RETRY.
1253 Add __nscd_getai prototype.
1254 * nss/getXXbyYY_r.c: Remode definition of NSS_NSCD_RETRY.
1255 * nscd/nscd-client.h: Remove __nscd_getai prototype.
1256 * nscd/nscd_getai.c: Include nscd_proto.h.
1257
1258 * elf/ldd.bash.in: Add support for SELinux environments.
1259 Patch by Stephen Smalley <sds@epoch.ncsc.mil>.
1260
ae9e6b36
RM
12612004-09-16 Roland McGrath <roland@redhat.com>
1262
1263 * configure.in (--with-headers): Let argument contain a : separated
1264 list of directories to use, not just one.
1265 * configure: Regenerated.
1266
edbaf5e5
RH
12672004-09-15 Richard Henderson <rth@redhat.com>
1268
1269 * sysdeps/alpha/fpu/libm-test-ulps: Update.
1270 * scripts/data/c++-types-alpha-linux-gnu.data: New file.
1271
d19687d6
UD
12722004-09-15 Ulrich Drepper <drepper@redhat.com>
1273
d1fe1f22
UD
1274 * nscd/aicache.c: Prefer using gethostbyname3_r NSS callback to also
1275 get ttl and canonical name. Use these two values.
1276 * resolv/Versions: Export _nss_dns_gethostbyname3_r from libnss_dns.
1277 * resolv/nss_dns/dns-host.c (getanswer_r): Take two new parameters.
1278 If nonnull fill with TTL and pointer to canonical name respectively.
1279 (_nss_dns_gethostbyaddr_r): Pass NULL in new parameters of getanswer_r.
1280 (_nss_dns_gethostbyname2_r): Just wrapper around
1281 _nss_dns_gethostbyname3_r.
1282 (_nss_dns_gethostbyname3_r): Renamed from _nss_dns_gethostbyname2_r.
1283 Take two new parameters which as passed to getanswer_r.
1284
d19687d6
UD
1285 * nscd/Makefile (rountines): Add nscd_getai.
1286 (nscd-modules): Add aicache.
1287 * nscd/aicache.c: New file.
1288 * nscd/nscd_getai.c: New file.
1289 * nscd/cache.c (prune_cache): Handle GETAI request type.
1290 * nscd/connections.c: Add GETAI support in request handling.
1291 * nscd/nscd-client.h (request_type): Add GETAI.
1292 Define ai_response_header and struct nscd_ai_result types.
1293 (struct datahead): Add aidata field.
1294 Declare __nscd_getai.
1295 * nscd/nscd.c: Add getaddrinfo definition to catch problems.
1296 * nscd/nscd.h: Declare addhstai and readdhstai.
1297
1298 * sysdeps/posix/getaddrinfo.c: Add support for using cached results.
dc4f1624 1299 * posix/Makefile (CFLAGS-getaddrinfo.c): Add -DUSE_NSCD.
d19687d6
UD
1300
1301 * nscd/nscd-client.h (struct datahead): Use uint8_t instead of bool.
1302
5d156bb6
UD
13032004-09-14 Ulrich Drepper <drepper@redhat.com>
1304
1305 * misc/sys/cdefs.h: Remove debugging text from __P and __PMT.
1306
79937577
UD
13072004-09-13 Ulrich Drepper <drepper@redhat.com>
1308
1309 * misc/sys/cdefs.h: Restore old definition of __P.
1310 * csu/munch.awk: Remove uses of __P and __PMT.
1311 * gmon/gmon.c: Likewise.
1312 * hesiod/hesiod.h: Likewise.
1313 * include/stdio.h: Likewise.
1314 * io/fts.c: Likewise.
1315 * libio/genops.c: Likewise.
1316 * libio/libioP.h: Likewise.
1317 * libio/fileops.c: Likewise.
1318 * libio/iolibio.h: Likewise.
1319 * libio/libio.h: Likewise.
1320 * libio/memstream.c: Likewise.
1321 * libio/oldfileops.c: Likewise.
1322 * libio/oldstdfiles.c: Likewise.
1323 * libio/iopopen.c: Likewise.
1324 * libio/vsnprintf.c: Likewise.
1325 * libio/vswprintf.c: Likewise.
1326 * libio/wgenops.c: Likewise.
1327 * libio/oldiopopen.c: Likewise.
1328 * locale/programs/xmalloc.c: Likewise.
1329 * locale/programs/xstrdup.c: Likewise.
1330 * malloc/mtrace.c: Likewise.
1331 * misc/getttyent.c: Likewise.
1332 * misc/getusershell.c: Likewise.
1333 * nis/rpcsvc/ypupd.h: Likewise.
1334 * posix/fnmatch.h: Likewise.
1335 * posix/glob.h: Likewise.
1336 * resolv/arpa/nameser.h: Likewise.
1337 * resolv/gethnamaddr.c: Likewise.
1338 * resolv/resolv.h: Likewise.
1339 * resolv/inet_net_ntop.c: Likewise.
1340 * resolv/inet_net_pton.c: Likewise.
1341 * resolv/res_init.c: Likewise.
1342 * resolv/nss_dns/dns-network.c: Likewise.
1343 * stdio-common/vfprintf.c: Likewise.
1344 * stdio-common/reg-printf.c: Likewise.
1345 * sysdeps/generic/chflags.c: Likewise.
1346 * sysdeps/generic/fchflags.c: Likewise.
1347 * sysdeps/generic/glob.c: Likewise.
1348 * sysdeps/generic/printf_fphex.c: Likewise.
1349 * sysdeps/generic/memcmp.c: Likewise.
1350 * sysdeps/generic/memcopy.h: Likewise.
1351 * sysdeps/generic/morecore.c: Likewise.
1352 * sysdeps/generic/sstk.c: Likewise.
1353 * sysdeps/posix/sigvec.c: Likewise.
1354 * sysdeps/posix/ttyname_r.c: Likewise.
1355 * sysdeps/standalone/arm/bits/errno.h: Likewise.
1356 * sysdeps/standalone/standalone.h: Likewise.
1357 * sysdeps/standalone/i386/force_cpu386/brdinit.c: Likewise.
1358 * sysdeps/standalone/i386/force_cpu386/_exit.c: Likewise.
1359 * sysdeps/unix/arm/start.c: Likewise.
1360 * sysdeps/unix/bsd/sigaction.c: Likewise.
1361 * sysdeps/unix/bsd/sun/m68k/sigtramp.c: Likewise.
1362 * sysdeps/unix/bsd/sun/sparc/sigtramp.c: Likewise.
1363 * sysdeps/unix/bsd/sun/sunos4/wait4.c: Likewise.
1364 * sysdeps/unix/bsd/ultrix4/mips/sigvec.c: Likewise.
1365 * sysdeps/unix/bsd/ultrix4/sysconf.c: Likewise.
1366 * sysdeps/unix/sparc/start.c: Likewise.
1367 * sysdeps/unix/sysv/getdents.c: Likewise.
1368 * sysdeps/unix/sysv/irix4/fpathconf.c: Likewise.
1369 * sysdeps/unix/sysv/irix4/getgroups.c: Likewise.
1370 * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
1371 * sysdeps/unix/sysv/irix4/getrusage.c: Likewise.
1372 * sysdeps/unix/sysv/irix4/pathconf.c: Likewise.
1373 * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
1374 * sysdeps/unix/sysv/irix4/sigtramp.c: Likewise.
1375 * sysdeps/unix/sysv/irix4/start.c: Likewise.
1376 * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
1377 * sysdeps/unix/sysv/sco3.2.4/__setpgid.c: Likewise.
1378 * sysdeps/unix/sysv/sco3.2.4/getgroups.c: Likewise.
1379 * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
1380 * sysdeps/unix/sysv/sysv4/__setpgid.c: Likewise.
1381 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
1382 * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
1383 * sysdeps/unix/sysv/sysv4/sethostname.c: Likewise.
1384 * sysdeps/unix/sysv/sysv4/setsid.c: Likewise.
1385 * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
1386 * sysdeps/unix/sysv/sysv4/waitpid.c: Likewise.
1387 * sysdeps/unix/sysv/sysv4/solaris2/getdents.c: Likewise.
1388 * time/tzset.c: Likewise.
1389 * time/strftime_l.c: Likewise.
1390 * time/strptime_l.c: Likewise.
1391 * crypt/md5.h: Likewise.
1392
dc941093
RM
13932004-09-13 Andreas Jaeger <aj@suse.de>
1394
1395 * configure.in: Support GCC 4.x.
1396 * configure: Regenerated.
1397
aadd7d9d
UD
13982004-09-13 Thorsten Kukuk <kukuk@suse.de>
1399
1400 * nscd/nscd_stat.c: Don't access dbs[cnt].head for disabled services.
1401
1402 * nscd/nscd.init: Fix path to socket.
1403
f69425fa
UD
14042004-09-12 Ulrich Drepper <drepper@redhat.com>
1405
407c4b9a
UD
1406 * nscd/nscd_helper.c (get_mapping): Correctly check cmsg length.
1407 Avoid file descriptor leak in case of size mismatch.
1408
404db64a 1409 * nscd/nscd-client.h: Fix database structure layout for biarch.
568470bb 1410 * nscd/mem.c (gc): Add casts to avoid warnings.
404db64a 1411
f69425fa
UD
1412 * nss/getent.c: Don't preconstruct help message. Do it only when
1413 needed.
1414
1415 * locale/programs/locale.c: Simplify help message printing.
1416
0c563d9d
RM
14172004-09-12 Roland McGrath <roland@frob.com>
1418
1419 * sysdeps/mach/hurd/i386/init-first.c (init1) [! SHARED]: Add decls
1420 missing in last change.
1421
20f8e666
UD
14222004-09-11 Thorsten Kukuk <kukuk@suse.de>
1423
1424 * nis/nss_compat/compat-grp.c: Check that buflen is greater zero
1425 before writing data into the buffer with negative offset.
1426 * nis/nss_compat/compat-initgroups.c: Likewise.
1427 * nis/nss_compat/compat-pwd.c: Likewise.
1428 * nis/nss_compat/compat-spwd.c Likewise.
1429
cf244b74
UD
14302004-09-12 Ulrich Drepper <drepper@redhat.com>
1431
ccc63b07
UD
1432 * misc/syslog.c (vsyslog): Fix copying of PID in case of
1433 out-of-memory situation. [BZ #365].
1434
1435 * sysdeps/alpha/fpu/bits/mathinline.h: Use __NTH instead of
1436 __THROW in inline function definitions.
1437
9ad68422
UD
1438 * posix/spawn.h [__USE_GNU]: Define POSIX_SPAWN_USEVFORK.
1439 * posix/spawnattr_setflags.c: Check whether any unknown bit is set
1440 in FLAGS parameter and fail if this is the case.
1441 * sysdeps/posix/spawni.c: Use vfork if POSIX_SPAWN_USEVFORK flag is
1442 set.
1443
cf244b74
UD
1444 * nscd/pwdcache.c (cache_addpw): Sync also negative results to disk.
1445 * nscd/grpcache.c (cache_addgr): Likewise.
1446 * nscd/hstcache.c (cache_addhst): Likewise.
1447
9d78d122
RM
14482004-09-11 Roland McGrath <roland@frob.com>
1449
1450 * sysdeps/mach/hurd/i386/init-first.c (init1) [! SHARED]:
1451 Set _dl_phdr and _dl_phnum.
1452 (init1): When bootstrap task, bail early and never examine *D.
1453
fc58d352
RM
14542004-09-11 Alfred M. Szmidt <ams@kemisten.nu>
1455
1456 * sysdeps/mach/hurd/i386/tls.h (__i386_set_gdt) [!HAVE_I386_SET_GDT]:
1457 Cast THR, SEL and DESC to `void'.
1458
5a617b9e
UD
14592004-09-11 Ulrich Drepper <drepper@redhat.com>
1460
72ae1e97
UD
1461 * nscd/connections.c (nscd_run): Call setup_thread only for enabled
1462 databases.
1463
5a617b9e
UD
1464 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Use __NTH for __cmsg_nxthdr.
1465
3418007e
UD
14662004-09-10 Ulrich Drepper <drepper@redhat.com>
1467
1468 * nscd/nscd.c (pagesize_m1): New variable.
1469 (main): Initialize it.
1470 * nscd/nscd.h: Declare pagesize_m1.
1471 * nscd/hstcache.c: Pass correctly aligned address to msync.
1472 * nscd/grpcache.c: Likewise.
1473 * nscd/pwdcache.c: Likewise.
1474
9b2dc515
UD
14752004-09-10 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1476
1477 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Decrement
1478 __nwaiters. If pthread_cond_destroy has been called and this is
1479 the last waiter, signal pthread_cond_destroy caller and avoid
1480 using the pthread_cond_t structure after unlock.
1481 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
1482
05f4d5cd
UD
14832004-09-10 Ulrich Drepper <drepper@redhat.com>
1484
1485 * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
1486 __ASSUME_CLONE_STOPPED.
1487
14882004-09-10 Jakub Jelinek <jakub@redhat.com>
1489
1490 * misc/sys/cdefs.h (__REDIRECT_NTH): Change order of __THROW and
1491 __asm__ for C++. [BZ #377]
1492
d13a3c57
UD
14932004-09-10 Ulrich Drepper <drepper@redhat.com>
1494
1495 * nscd/nscd_stat.c: Improve output by also printing .shared and
1496 .persistent.
1497
1498 * nscd/connections.c: Allow cache sharing to be really disabled.
1499
c0097ea1
UD
15002004-09-10 Jakub Jelinek <jakub@redhat.com>
1501
1502 * malloc/malloc.c (_int_free): Only do arena boundary check for
1503 contiguous arenas.
1504
5a617b9e 15052004-09-10 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
181742f8
RM
1506
1507 * stdlib/longlong.h [__M32R__] (add_ssaaaa, sub_ddmmss): Fix broken
1508 instruct operands.
1509 * elf/elf.h: Add R_M32R_* relocs.
1510
a962d7dc
UD
15112004-09-09 Ulrich Drepper <drepper@redhat.com>
1512
e071493f
UD
1513 * misc/sys/cdefs.h: Despite what the gcc manual says, gcc 3.2
1514 seems not to support the nothrow attribute. Use it only for gcc
1515 3.3 and higher.
1516
a962d7dc
UD
1517 * malloc/hooks.c (top_check): Print top chunk corruption as normal
1518 error message.
1519
1520 * malloc/malloc.c (malloc_printerr): Don't make informational
1521 message look like error message.
1522
45ab54ce
AJ
15232004-09-09 Andreas Jaeger <aj@suse.de>
1524
1525 * nscd/Makefile (CFLAGS-nscd_setup_thread.c): Set to -fpie.
1526
9d0cdc0e
UD
15272004-09-08 Ulrich Drepper <drepper@redhat.com>
1528
062ad132
UD
1529 * sysdeps/unix/sysv/linux/bits/socket.h (__SCM_CONNECT): Removed.
1530
14abadc8
UD
1531 * malloc/malloc.c (_int_free): Add inexpensive double free and
1532 memory corruption tests.
1533 (malloc_printf_nc): Renamed to malloc_printerr. Second parameter
1534 is no format string anymore. Don't use stdio. Adjust all callers.
1535 * malloc/hooks.c: Adjust malloc_printf_nc callers.
9d0cdc0e 1536
54b497ce
RM
15372004-09-08 Roland McGrath <roland@redhat.com>
1538
1539 * malloc/mcheck.c: Don't use __P.
1540 Use prototypes definitions for static functions.
1541
4924c007
UD
15422004-09-08 Ulrich Drepper <drepper@redhat.com>
1543
1544 * sysdeps/ia64/fpu/bits/mathinline.h: Use __NTH instead of __THROW.
1545
081fc592
UD
15462004-09-08 Ulrich Drepper <drepper@redhat.com>
1547 Jakub Jelinek <jakub@redhat.com>
1548
cf6f93d4
UD
1549 * nscd/nscd-client.h: Add a few #includes.
1550
081fc592
UD
1551 * nscd/Makefile (nscd-modules): Add nscd_setup_thread.
1552 * nscd/connections.c (nscd_run): Call setup_thread for maintenance
1553 threads.
1554 * nscd/nscd-client.h (struct database_pers_head): Add
1555 nscd_certainly_running field.
1556 * nscd/nscd.h: Declare setup_thread.
1557 * nscd/nscd_helper.c (__nscd_get_map_ref): Avoid the time test if
1558 nscd_certainly_running is nonzero.
67a0b49d
UD
1559 * sysdeps/generic/nscd_setup_thread.c: New file.
1560 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: New file.
081fc592 1561
06d6611a
UD
15622004-09-08 Ulrich Drepper <drepper@redhat.com>
1563
c207f23b
UD
1564 * nscd/connections.c: Implement r/o sharing of nscd's cache with client
1565 processes via shared memory.
1566 * nscd/nscd-client.h: Likewise.
1567 * nscd/nscd.h: Likewise.
1568 * nscd/nscd_conf.c: Likewise.
1569 * nscd/nscd_getgr_r.c: Likewise.
1570 * nscd/nscd_getpw_r.c: Likewise.
1571 * nscd/nscd_gethst_r.c: Likewise.
1572 * nscd/nscd.conf: Add new config parameters.
1573 * nscd/Makefile (aux): Add nscd_helper.
1574 * nscd/nscd_helper.c: New file.
1575 * nscd/mem.c (gc): Indicate beginning and end of the gc cycle.
1576
1577 * nscd/hstcache.c: Simplify a lot. We cache only the request itself,
1578 no derived information.
1579 * connections.c (nscd_init): Fix bug in testing size of the persistent.
1580
1581 * nis/Makefile (aux): Add nis_hash.
1582 * nis/nis_hash.c: New file. Split out from nis_util.c.
1583 * nis/nis_util.c: Move __nis_hash code in separate file.
1584
1585 * csu/tst-atomic.c: Improve atomic_increment_val test which would
1586 not have found a ppc bug.
1587
0a3ad40d
UD
1588 * sysdeps/s390/fpu/bits/mathinline.h: Remove unnecessary includes.
1589
06d6611a
UD
1590 * malloc/arena.c: Remove __MALLOC_P uses.
1591 * malloc/malloc.c: Likewise.
1592
1593 * malloc/mtrace.c: Remove __P uses.
1594 * malloc/mcheck-init.c: Likewise.
1595
590b40f7
UD
15962004-09-07 Jakub Jelinek <jakub@redhat.com>
1597
1598 * sysdeps/powerpc/powerpc64/configure.in: New file.
1599 * config.h.in (USE_PPC64_OVERLAPPING_OPD): Add.
1600 * configure.in (HAVE_ASM_GLOBAL_DOT_NAME): Remove.
1601 * sysdeps/powerpc/powerpc64/sysdep.h: Formatting.
1602 (OPD_ENT, BODY_LABEL, ENTRY_1, ENTRY_2, END_2, DOT_PREFIX,
1603 BODY_PREFIX): Define.
1604 (ENTRY, DOT_LABEL, END, TRACEBACK, END_GEN_TB, EALIGN): Support
1605 HAVE_ASM_GLOBAL_DOT_NAME or no dot symbols,
1606 USE_PPC64_OVERLAPPING_OPD or never overlapping .opd entries.
1607 * sysdeps/powerpc/powerpc64/dl-machine.h: Include sysdep.h.
1608 (TRAMPOLINE_TEMPLATE, RTLD_START): Use the new sysdep.h macros.
1609
3655715b
UD
16102004-09-07 Ulrich Drepper <drepper@redhat.com>
1611
67254a97
UD
1612 * malloc/malloc.h: Don't define __THROW if it is already defined.
1613
7ba0e52c
UD
1614 * sysdeps/powerpc/bits/atomic.h (atomic_increment): Define.
1615 (atomic_decrement): Define.
1616
1617 * sysdeps/powerpc/bits/atomic.h: Implement atomic_increment_val and
1618 atomic_decrement_val.
1619 * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
1620 * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
1621
1622 * csu/tst-atomic.c (do_test): Add tests of atomic_increment_val
1623 and atomic_decrement_val.
1624
f377d022 1625 * include/atomic.h: Define atomic_increment_val, atomic_decrement_val,
f510d815 1626 and atomic_delay is not already defined.
f377d022
UD
1627 * sysdeps/i386/i486/bits/atomic.h: Define atomic_delay.
1628 * sysdeps/x86_64/bits/atomic.h: Likewise.
1629
1630 * miscd/sys/cdefs.h (__NTH): New macro.
1631 (__THROW): Define using nothrow attribute for C code and gcc >= 3.2.
1632 (__REDIRECT_NTH): New macro.
1633 * argp/argp.h: Use __NTH and __REDIRECT_NTH where necessary.
1634 * ctype/ctype.h: Likewise.
1635 * dirent/dirent.h: Likewise.
1636 * io/fcntl.h: Likewise.
1637 * io/sys/sendfile.h: Likewise.
1638 * io/sys/stat.h: Likewise.
1639 * io/sys/statfs.h: Likewise.
1640 * io/sys/statvfs.h: Likewise.
1641 * libio/bits/stdio.h: Likewise.
1642 * misc/sys/mman.h: Likewise.
1643 * posix/unistd.h: Likewise.
1644 * resource/sys/resource.h: Likewise.
1645 * rt/aio.h: Likewise.
1646 * signal/signal.h: Likewise.
1647 * stdlib/stdlib.h: Likewise.
1648 * string/argz.h: Likewise.
1649 * string/string.h: Likewise.
1650 * sysdeps/generic/inttypes.h: Likewise.
1651 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
1652 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
1653 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
1654 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
1655 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
1656 * sysdeps/unix/sysv/linux/bits/sys/sysmacros.h: Likewise.
1657 * wcsmbs/wchar.h: Likewise.
1658
1659 * sysdeps/generic/glob.c: Use __PMT isntead of __P where appropriate.
1660
1661 * resolv/gethnamaddr.c (getanswer): Remove __P use in variable
1662 definition.
1663
1664 * io/sys/poll.h: Remove __THROW from poll prototype, it's a
1665 cancellation point.
1666
f863a5a5
UD
1667 * io/fts.c (fts_open): Remove uses of __P.
1668
3655715b
UD
1669 * include/stdlib.h: No need to use __THROW in this header.
1670
f2b85a9f
RM
16712004-09-06 Roland McGrath <roland@frob.com>
1672
1673 * sysdeps/mach/hurd/dl-sysdep.c (__writev): Does use assert on FD
1674 validity, since __assert_fail gets to here anyway. Just fail.
1675
415b043d
UD
16762004-09-06 Ulrich Drepper <drepper@redhat.com>
1677
1678 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix problem with
1679 AF_UNSPEC lookup with AI_CANONNAME of name which has only IPv6
1680 addresses.
1681
6029b952
RH
16822004-09-05 Richard Henderson <rth@redhat.com>
1683
1684 * sysdeps/alpha/fpu/fraiseexcpt.c: Remove file.
1685 * sysdeps/unix/sysv/linux/kernel-features.h
1686 (__ASSUME_IEEE_RAISE_EXCEPTION): New.
1687 * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.c: New file.
1688 * sysdeps/unix/sysv/linux/alpha/kernel_sysinfo.h: New file.
1689 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use it.
1690 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
1691
febcd836
RH
16922004-09-05 Richard Henderson <rth@redhat.com>
1693
1694 * sysdeps/alpha/div.S: Save and restore FPCR around fp operations.
1695 * sysdeps/alpha/divl.S, sysdeps/alpha/divq.S, sysdeps/alpha/divqu.S,
1696 sysdeps/alpha/ldiv.S, sysdeps/alpha/reml.S, sysdeps/alpha/remq.S,
1697 sysdeps/alpha/remqu.S: Likewise.
1698 * sysdeps/alpha/div_libc.h (FRAME): Increase to 64.
1699
418dfb12
UD
17002004-09-05 Ulrich Drepper <drepper@redhat.com>
1701
1702 * nscd/cache.c (cache_add): Correctly log GETHOSTBYADDR and
1703 GETHOSTBYADDRv6 requests.
1704
03e157d8
UD
17052004-09-04 Ulrich Drepper <drepper@redhat.com>
1706
1707 * nscd/pwdcache.c (cache_addpw): Use correct key length in
1708 cache_add calls.
1709 * nscd/grpcache.c (cache_addgr): Likewise.
1710
2a254592
RM
17112004-09-03 Alfred M. Szmidt <ams@kemisten.nu>
1712
1713 * sysdeps/mach/hurd/i386/tls.h (THREAD_DTV): Changed type of _DTV
1714 to `dtv_t *'.
1715
ead07d01
UD
17162004-09-03 Ulrich Drepper <drepper@redhat.com>
1717
1718 * nscd/nscd.c (parse_opt): Use writev instead of two write for
1719 invalidate command.
1720
1da484d9
UD
17212004-09-02 Ulrich Drepper <drepper@redhat.com>
1722
1723 * nscd/connections.c (nscd_run): Check early for invalid request types.
1724
58c64754
RM
17252004-09-02 Roland McGrath <roland@frob.com>
1726
1727 * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): New macro.
1728 (INSTALL_NEW_DTV, THREAD_DTV): Rewritten to fetch the right word.
1729 (THREAD_SELF): New macro.
1730
73f7c32c
UD
17312004-09-02 Steven Munroe <sjmunroe@us.ibm.com>
1732
1733 [BZ #357]
1734 * stdlib/tst-setcontext.c (test_stack): Added test for stack clobber.
1735 (main): Call test_stack.
1736 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
1737 (__getcontext): Push stack frame then save parms in local frame.
1738 Improve instruction scheduling.
1739 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
1740 (__swapcontext): Likewise.
1741
86aca5ac
UD
17422004-09-01 Andreas Schwab <schwab@suse.de>
1743
1744 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h [g++ >= 3.5]: Use
1745 __builtin_offsetof.
1746
aae95a1b
UD
17472004-09-01 Jakub Jelinek <jakub@redhat.com>
1748
1749 [BZ #361]
1750 * posix/fnmatch_loop.c (FCT): For backslash between brackets, branch
1751 to normal_bracket after fetching the next character.
1752 * posix/tst-fnmatch.input: Add 25 new tests.
1753 Reported by Markus Oberhumer <markus@oberhumer.com>.
1754
49563939
UD
17552004-09-01 Ulrich Drepper <drepper@redhat.com>
1756
1757 * elf/rtld.c (dl_main): First check existence of ld.so.preload
1758 with access.
1759
6698501f
RM
17602004-09-01 Roland McGrath <roland@redhat.com>
1761
1762 * sysdeps/unix/sysv/linux/bits/waitflags.h
1763 (WSTOPPED, WEXITED, WCONTINUED, WNOWAIT): New macros.
1764 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_WAITID_SYSCALL):
1765 New macro.
1766 * sysdeps/unix/sysv/linux/waitid.c: New file. Use new syscall when
1767 available, or fall back to the waitpid-based generic code.
1768
66cc59de
RM
17692004-08-14 Alfred M. Szmidt <ams@kemisten.nu>
1770
1771 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Let gcc
1772 clobber the `ebp' register.
1773 * sysdeps/mach/hurd/i386/Makefile (CFLAGS-init-first.c): Removed.
1774 Reverts change from 2004-05-07 by Jeroen Dekkers.
1775
1776 * sysdeps/mach/hurd/i386/init-first.c (init): Changed the type of
1777 NEWSP from `void *' to `int *'. Changed all casts accordingly.
1778
c4bb5cd8
RM
17792004-08-31 Jakub Jelinek <jakub@redhat.com>
1780
1781 * wcsmbs/wcsmbsload.c (__wcsmbs_getfct): Move attribute_hidden
1782 before return type.
1783 * locale/localename.c (__current_locale_name): Likewise.
1784
d2e75f65
RM
17852004-08-30 Roland McGrath <roland@frob.com>
1786
1787 * scripts/extract-abilist.awk: If `lastversion' variable defined, omit
1788 later sets from output.
1789 * Makerules (check-abi): Pass option to set that with value of
1790 LIB-abi-frozen variable if one is set.
1791
1792 * abilist/libcidn.abilist: New file (empty).
1793
409f7493
UD
17942004-08-30 Jakub Jelinek <jakub@redhat.com>
1795
1796 * posix/bits/posix1_lim.h (_POSIX_CHILD_MAX, _POSIX_OPEN_MAX): If
1797 not __USE_XOPEN2K, use the Unix98 mandated values.
1798
619f9448
RM
17992004-08-27 Roland McGrath <roland@redhat.com>
1800
1801 * configure.in (usetls): Default to yes.
1802 * configure: Regenerated.
1803
c80e931a
RM
18042004-08-26 Roland McGrath <roland@redhat.com>
1805
1806 * configure.in (add_ons_automatic): New variable, set to yes or no
1807 indicating --enable-add-ons with no explicit list.
1808 (running add-on fragments): Allow a fragment to modify $libc_add_on
1809 and have that affect its place in the list of add-ons to use.
1810 * configure: Regenerated.
1811
a95a08b4
UD
18122004-08-26 Ulrich Drepper <drepper@redhat.com>
1813
1814 * nscd/cache.c: Major rewrite. The data is now optionally kept in
1815 a mmaped memory region which is automatically mirrored on disk.
1816 This implements persistent data storage. The Memory handled
1817 needed to be completely revamped, it now uses a garbage collection
1818 mechanism instead of malloc.
1819 * nscd/connections.c: Likewise.
1820 * nscd/nscd.c: Likewise.
1821 * nscd/nscd.h: Likewise.
1822 * nscd/nscd_conf.c: Likewise.
1823 * nscd/nscd_stat.c: Likewise.
1824 * nscd/grpcache.c: Likewise.
1825 * nscd/hstcache.c:: Likewise.
1826 * nscd/pwdcache.c:: Likewise.
1827 * nscd/Makefile: Add rules to build mem.c.
1828 * nscd/mem.c: New file.
1829 * nscd/nscd.conf: Describe new configuration options.
1830
1114ffff
UD
18312004-08-26 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1832
1833 * sysdeps/unix/sysv/linux/mips/pread.c: Include sgidefs.h only if
1834 NO_SGIDEFS_H isn't defined.
1835 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1836 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
1837
1838 * sysdeps/unix/sysv/linux/sh/pread.c: Define NO_SGIDEFS_H and
1839 _MIPS_SIM.
1840 * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
1841 * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
1842 * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
1843
86b2fd6e
UD
18442004-08-26 Ulrich Drepper <drepper@redhat.com>
1845
1114ffff
UD
1846 * nscd/connections.c (nscd_run): atomic_increment was not missing.
1847
86b2fd6e
UD
1848 * sysdeps/gnu/Makefile (libdl-sysdep_routines): Don't add eval.
1849 Patch by Greg Schafer.
1850
effeb660
RH
18512004-08-25 Richard Henderson <rth@redhat.com>
1852
1853 * sysdeps/alpha/elf/start.S (_start): Use $15 as frame unwind
1854 instead of $31. Zero $15.
1855 * sysdeps/unix/sysv/linux/alpha/clone.S (thread_start): Likewise.
1856
d6db0975
UD
18572004-08-25 Ulrich Drepper <drepper@redhat.com>
1858
afb24a10
UD
1859 * sysdeps/powerpc/powerpc64/bits/atomic.h
1860 (__arch_compare_and_exchange_bool_32_acq): Fix case where oldval
1861 is negative.
1862 (__arch_compare_and_exchange_bool_32_rel): Likewise.
1863
d6db0975
UD
1864 * nscd/connections.c: Make socket nonblocking so that threads
1865 don't get stuck on accept. Fix locking.
1866
87329997 1867 * nscd/grpcache.c (cache_addgr): Use copy of original key in hash
d6db0975
UD
1868 entry with alternative key.
1869 * nscd/pwdcache.c (cache_addpw): Likewise.
1870
25325c85
AJ
18712004-08-25 Richard Sandiford <rsandifo@redhat.com>
1872
1873 * sysdeps/mips/dl-machine.h (_dl_start_user): Don't set
1874 __libc_stack_end.
1875
80af9a48
UD
18762004-08-23 Ulrich Drepper <drepper@redhat.com>
1877
1878 * sysdeps/gnu/netinet/udp.h: Cosmetic changes. Remove unnecessary
1879 __BEGIN_DECLS/__END_DECLS.
1880
a5590b3a
AJ
18812004-08-23 Andreas Jaeger <aj@suse.de>
1882
1883 [BZ #341]
1884 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_NOATIME): Define.
1885 * sysdeps/unix/sysv/linux/arm/bits/fcntl.h (O_NOATIME): Likewise.
1886 * sysdeps/unix/sysv/linux/cris/bits/fcntl.h (O_NOATIME): Likewise.
1887 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (O_NOATIME): Likewise.
1888 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (O_NOATIME): Likewise.
1889 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_NOATIME): Likewise.
1890 * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h (O_NOATIME): Likewise.
1891 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_NOATIME): Likewise.
1892 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_NOATIME): Likewise.
1893 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_NOATIME): Likewise.
1894 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (O_NOATIME): Likewise.
1895 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_NOATIME): Likewise.
1896 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (O_NOATIME): Likewise.
1897
51ea6fc0
UD
18982004-08-21 Ulrich Drepper <drepper@redhat.com>
1899
3e030bd5
UD
1900 * malloc/hooks.c (DEFAULT_CHECK_ACTION): Moved to malloc.c.
1901 (check_action): Likewise.
1902 When printing error messages, use malloc_printf_nc now instead of
1903 fiddling with the streams cancellation flag in every place.
1904 * malloc/malloc.c (DEFAULT_CHECK_ACTION): New definition. Change
1905 default to 3.
1906 (check_action): New variable.
1907 (unlink): Print error message and eventually terminate in case list
1908 is corrupted.
1909 (malloc_printf_nc): New function. Use it in _int_free.
1910 Change proposed by Arjan van de Ven.
1911
51ea6fc0
UD
1912 * dlfcn/Makefile: Don't build eval.c anymore.
1913
f523496b
RM
19142004-08-20 Roland McGrath <roland@frob.com>
1915
1916 * csu/Makefile ($(objpfx)version-info.h): Use printf in place
1917 of echo -e for POSIX.2 portability.
1918 Reported by Paul Jarc <prj@po.cwru.edu>.
1919
8583671d
UD
19202004-08-19 Ulrich Drepper <drepper@redhat.com>
1921
a24c5ac4
UD
1922 * sysdeps/posix/getaddrinfo.c (gaih_inet): Minor optimizations in
1923 list generation.
1924
afd7b703
UD
1925 * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use
1926 getcanonname_r function if AI_CANONNAME flag is not set in
1927 request.
1928
8583671d
UD
1929 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss):
1930 Initialize mysize with limits only if latter is >= 0. Use mysize
1931 in malloc call.
1932
10b71c3d
UD
19332004-08-19 Jakub Jelinek <jakub@redhat.com>
1934
1935 * sysdeps/posix/getaddrinfo.c (gaih_inet): Cast canon to (char *)
1936 to avoid warning.
1937
1938 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Initialize
1939 status to NSS_STATUS_UNAVAIL.
1940
19412004-08-19 Ulrich Drepper <drepper@redhat.com>
1942
1943 * sysdeps/posix/getaddrinfo.c (gaih_inet): Use h->h_name in the
1944 cannoname lookup since it has the FQDN even if the original NAME
1945 value has not.
1946
b6c0f679
UD
19472004-08-18 Ulrich Drepper <drepper@redhat.com>
1948
1949 * sysdeps/posix/getaddrinfo.c (gaih_inet): Store NAME parameter
51ea6fc0 1950 pointer in new variable ORIG_NAME and use this pointer when
b6c0f679
UD
1951 determination of canonical name failed, not the possibly IDN
1952 translated value of NAME.
1953
b9343764
UD
19542004-08-17 Ulrich Drepper <drepper@redhat.com>
1955
0acb7b83
UD
1956 * resolv/resolv.h (RES_DEFAULT): Add RES_NOIP6DOTINT.
1957 * resolv/res_init.c (res_setoptions): Recognize ip6-dotint option.
1958 Reset RES_NOIP6DOTINT flag in this case..
1959
b9343764
UD
1960 * sysdeps/posix/getaddrinfo.c: Fix memory handling of
1961 ai_canonname.
1962
9b63bd4d
UD
19632004-08-16 Ulrich Drepper <drepper@redhat.com>
1964
1965 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Don't use
1966 CNAME records, we better follow the chain of CNAME records which
1967 can be accomplished with A/AAAA lookups.
1968
a29db458
RM
19692004-08-15 Roland McGrath <roland@redhat.com>
1970
1971 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who):
1972 Remove __RUSAGE_BOTH constant and RUSAGE_BOTH macro.
1973 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1974 * sysdeps/unix/sysv/linux/mips/bits/resource.h: Likewise.
1975 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1976
92c6ccd1
RM
19772004-08-15 Roland McGrath <roland@frob.com>
1978
813d9c0d
RM
1979 * sysdeps/i386/i686/Makefile (elide-routines.os): Append hp-timing to
1980 this, not ...
1981 (static-only-routines): ... this.
1982 * sysdeps/ia64/Makefile: Likewise.
1983 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
1984 * sysdeps/sparc/sparc64/Makefile: Likewise.
1985 * sysdeps/x86_64/Makefile: Likewise.
1986 * sysdeps/i386/i686/hp-timing.c: Revert copyright terms change.
1987 * sysdeps/ia64/hp-timing.c: Likewise.
1988 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
1989 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
1990
92c6ccd1
RM
1991 * csu/elf-init.c: Update copyright terms including special exception
1992 for these trivial files, which are statically linked into executables
1993 that use dynamic linking for the significant library code.
1994 * io/fstat.c: Likewise.
1995 * io/fstat64.c: Likewise.
1996 * io/lstat.c: Likewise.
1997 * io/lstat64.c: Likewise.
1998 * io/stat.c: Likewise.
1999 * io/stat64.c: Likewise.
2000 * stdlib/atexit.c: Likewise.
2001 * sysdeps/alpha/elf/initfini.c: Likewise.
2002 * sysdeps/alpha/elf/start.S: Likewise.
2003 * sysdeps/arm/elf/start.S: Likewise.
2004 * sysdeps/cris/elf/start.S: Likewise.
2005 * sysdeps/generic/initfini.c: Likewise.
2006 * sysdeps/generic/mknod.c: Likewise.
2007 * sysdeps/hppa/elf/initfini.c: Likewise.
2008 * sysdeps/hppa/elf/start.S: Likewise.
2009 * sysdeps/i386/elf/start.S: Likewise.
2010 * sysdeps/i386/i686/hp-timing.c: Likewise.
2011 * sysdeps/ia64/elf/initfini.c: Likewise.
2012 * sysdeps/ia64/elf/start.S: Likewise.
2013 * sysdeps/ia64/hp-timing.c: Likewise.
2014 * sysdeps/m68k/elf/start.S: Likewise.
2015 * sysdeps/mach/start.c: Likewise.
2016 * sysdeps/mips/elf/start.S: Likewise.
2017 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
2018 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
2019 * sysdeps/s390/s390-32/elf/start.S: Likewise.
2020 * sysdeps/s390/s390-32/initfini.c: Likewise.
2021 * sysdeps/s390/s390-64/elf/start.S: Likewise.
2022 * sysdeps/s390/s390-64/initfini.c: Likewise.
2023 * sysdeps/sh/elf/initfini.c: Likewise.
2024 * sysdeps/sh/elf/start.S: Likewise.
2025 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
2026 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
2027 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
2028 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
2029 * sysdeps/standalone/i386/start.S: Likewise.
2030 * sysdeps/standalone/i960/start.S: Likewise.
2031 * sysdeps/standalone/m68k/m68020/start.S: Likewise.
2032 * sysdeps/unix/arm/start.c: Likewise.
2033 * sysdeps/unix/bsd/osf/alpha/start.S: Likewise.
2034 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
2035 * sysdeps/unix/sparc/start.c: Likewise.
2036 * sysdeps/unix/start.c: Likewise.
2037 * sysdeps/unix/sysv/aix/start.s: Likewise.
2038 * sysdeps/unix/sysv/irix4/start.c: Likewise.
2039 * sysdeps/x86_64/elf/initfini.c: Likewise.
2040 * sysdeps/x86_64/elf/start.S: Likewise.
2041
7a4b34c9
RM
20422004-08-15 Roland McGrath <roland@redhat.com>
2043
2044 [BZ #227]
2045 * sysdeps/unix/sysv/linux/kernel-features.h
2046 (__ASSUME_BRK_PAGE_ROUNDED): New macro.
2047 * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
2048 [! __ASSUME_BRK_PAGE_ROUNDED]: Adjust the break up if it falls within
2049 the partial page after the dynamic linker's own data segment.
2050
a7d24833
UD
20512004-08-15 Ulrich Drepper <drepper@redhat.com>
2052
2d26a717
UD
2053 * sysdeps/posix/getaddrinfo.c (gaih_inet): Optimize generation of
2054 v4-mapped addresses a bit.
2055 (gethosts): Move alloca out of macro, so that it is done only once.
2056
28977c2c
UD
2057 * sysdeps/posix/getaddrinfo.c (gaih_addrtuple): Change type of
2058 addr to avoid casts.
2059 (gethosts): Removed.
2060 (gethosts2): Renamed to gethosts. Make it usable for family !=
2061 AF_UNSPEC. Fix AI_V4MAPPED.
2062 (gaih_inet): Remove use of old gethosts. Always use what used to be
2063 gethosts2. If entry is found, try to use the same NSS module's
2064 getcanonname_r function. Use gethostbyaddr for AI_CANONNAME only
2065 if getcanonname_r was not available. Fix filtering of AI_V4MAPPED
2066 addresses. Numerous cleanups.
2067 * resolv/nss_dns/dns-canon.c: New file.
2068 * resolv/Makefile (libnss_dns-routines): Add dns-canon.
2069 * resolv/Versions (libnss_dns): Add _nss_dns_getcanonname_r.
2070
2071 * elf/Makefile: Add rules to build and run tst-dlopenrpath.
2072 * elf/tst-dlopenrpath.c: New file.
2073 * elf/tst-dlopenrpathmod.c: New file.
2074
2075 * intl/tst-gettext.sh: Adjust for change of de.po file to UTF-8.
1e6d2101
UD
2076 * intl/tst-gettext.c: Likewise.
2077
a691b217
UD
2078 * nss/getent.c (ahosts_keys_int): Correctly print IPv6 addresses.
2079
a7d24833
UD
2080 * nss/getent.c: Allow queries for getaddrinfo with AF_INET and
2081 AF_INET6.
2082
06ee3df6
UD
20832004-08-14 Ulrich Drepper <drepper@redhat.com>
2084
2085 * po/de.po: Update from translation team.
2086
e786b793
RM
20872004-08-14 Roland McGrath <roland@frob.com>
2088
2089 * sysdeps/mach/configure: Regenerated.
2090 * sysdeps/mach/hurd/configure: Regenerated.
2091
97306b0b
UD
20922004-08-14 Ulrich Drepper <drepper@redhat.com>
2093
e786b793
RM
2094 * sysdeps/posix/getaddrinfo.c (getaddrinfo): If RFC3484 sorting is
2095 performed, make sure it is still the first entry after sorting
2096 that has the ai_canonname information.
c7fa647a 2097
97306b0b
UD
2098 * sysdeps/posix/getaddrinfo.c (gaih_inet): Really set ai_canonname
2099 only in one entry.
2100
913e79f5
RM
21012004-08-13 Daniel Jacobowitz <dan@debian.org>
2102
2103 * scripts/output-format.sed: Handle default case of three-argument
2104 OUTPUT_FORMAT.
2105
2106 * sysdeps/arm/machine-gmon.h (mcount_internal): Mark as
2107 __attribute_used__.
2108
eba19d2b
UD
21092004-08-13 Ulrich Drepper <drepper@redhat.com>
2110
5c81b3e1
UD
2111 * nss/getent.c (ahosts_keys): ai_canonname is NULL for all but the
2112 first returned entry. Print name only if not NULL.
2113
8500b0ca
UD
2114 * nis/nss_nis/nis-netgrp.c: Remove locking by using data in struct
2115 __netgrent object passed in instead of global variables.
2116 Optimize.
2117 * nis/nss_nisplus/nisplus-netgrp.c: Remove locking by using data
2118 in struct __netgrent object passed in instead of global variables.
2119 * inet/netgroup.h (struct __netgrent): Add service_user field.
2120 Move cursor in anonymous union, add new field location to that
2121 union.
2122 * inet/getnetgrent_r.c: Extensive rewrite to really enable
2123 concurrent uset of set/get/endnetgrent and innetgr.
a5753206
UD
2124 Reported by Chuck Simmons.
2125
2486480e
UD
2126 * inet/netgroup.h (struct name_list): Replace name pointer with
2127 zero-sized array.
2128 * inet/getnetgrent_r.c: Adjust code for change in name_list
2129 layout. Numerous strdup and free calls removed.
2130
eba19d2b 2131 * elf/sprof.c (read_symbols): When comparing aliases, prefer
b8b9340e
UD
2132 non-hidden over hidden symbols and strong over weak symbols
2133 if both don't start with '_'.
eba19d2b
UD
2134
2135 * malloc/malloc.c: Use strong_alias instead of weak_alias wherever
2136 possible.
2137
4d004cfb
UD
21382004-08-12 Jakub Jelinek <jakub@redhat.com>
2139
2140 * sysdeps/unix/sysv/linux/bits/resource.h: Define non-standard
2141 RUSAGE_ enums as __RUSAGE_ and adjust macros accordingly.
2142 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
2143 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
2144 * sysdeps/unix/sysv/linux/mips/bits/resource.h: Likewise.
2145 Define non-standard RLIMIT_ enums as __RLIMIT_ and adjust macros
2146 accordingly.
2147
770d9b39
UD
21482004-08-11 Andreas Schwab <schwab@suse.de>
2149
2150 * resolv/res_libc.c: Move definition of __res_initstamp ...
2151 * resolv/res_init.c: ... here.
2152
644eff0c
UD
21532004-08-10 GOTO Masanori <gotom@debian.or.jp>
2154
2155 * locale/C-time.c: Change default ERA value from NULL to "".
2156 * locale/tst-C-locale.c: Add test case for ERA keywords.
2157
30c06335
UD
21582004-08-12 Ulrich Drepper <drepper@redhat.com>
2159
2160 * sysdeps/unix/sysv/linux/bits/resource.h: Define non-standard
2161 RLIMIT__ enums as __RLIMIT_ and adjust macros accordingly.
2162 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
2163 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
2164
21652004-08-12 Jakub Jelinek <jakub@redhat.com>
2166
2167 * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_SIGPENDING,
2168 RLIMIT_MSGQUEUE): Add.
2169 (RLIMIT_NLIMITS, RLIM_NLIMITS): Adjust.
2170 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIMIT_SIGPENDING,
2171 RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
2172 (RLIM_NLIMITS): Adjust.
2173 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIMIT_SIGPENDING,
2174 RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
2175 (RLIM_NLIMITS): Adjust.
2176 * sysdeps/unix/sysv/linux/mips/bits/resource.h (RLIMIT_SIGPENDING,
2177 RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
2178 (RLIM_NLIMITS): Adjust.
2179
2566e5f3
UD
21802004-08-12 Jakub Jelinek <jakub@redhat.com>
2181
2182 * resolv/res_query.c (__libc_res_nsearch): Protect the debugging
2183 printf with #ifdef DEBUG and RES_DEBUG check.
2184
2185 * sysdeps/unix/sysv/linux/bits/shm.h: Move __END_DECLS after
2186 __USE_MISC #endif.
2187 * sysdeps/generic/bits/shm.h: Add __BEGIN_DECLS for __getpagesize
2188 declaration.
2189 * sysdeps/gnu/bits/shm.h: Likewise.
2190 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2191 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2192 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2193 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2194 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2195
693aa149
UD
21962004-08-12 Ulrich Drepper <drepper@redhat.com>
2197
2198 * po/ca.po: Update from translation team.
2199
2e79a6bf
UD
22002004-08-11 Ulrich Drepper <drepper@redhat.com>
2201
2202 * sysdeps/unix/sysv/linux/bits/shm.h: Add __BEGIN_DECLS for
2203 __getpagesize declaration.
2204
90595fb6
RM
22052004-08-11 Roland McGrath <roland@redhat.com>
2206
6e9a9da6
RM
2207 * configure.in (libc_cv_cpp_asm_debuginfo): Add missing braces around
2208 commands inside &&.
2209 Reported by Andreas Schwab <schwab@suse.de>.
2210 * configure: Regenerated.
2211
90595fb6
RM
2212 * posix/tst-waitid.c (do_test): Ignore SIGCHLD before cleanup SIGKILL.
2213
640b76b7
UD
22142004-08-11 Ulrich Drepper <drepper@redhat.com>
2215
2216 * time/tzset.c (tzset_internal): Add new parameter which is
2217 nonzero if called through tzset. Use TZDEFAULT name including
2218 name comparison if the new parameter is zero. This means implicit
2219 tzset calls will not cause files to be opened and read by tzfile.c
2220 all the time.
2221
22222004-08-11 Jakub Jelinek <jakub@redhat.com>
2223
0569cbbc
RM
2224 * rt/tst-timer2.c (do_test): If timer_create fails, just continue.
2225 * rt/tst-timer4.c (do_test): If one of the timer_create calls fails,
2226 return 1 immediately.
2227
640b76b7
UD
2228 * time/tzfile.c (__tzfile_read): Free transitions only if it will
2229 not be reused.
2230
cc6502dd
RM
2231 * sysdeps/ieee754/dbl-64/mpa.c: Include <sys/param.h>.
2232 * sysdeps/ieee754/dbl-64/mpa.h (MAX, MIN): Macros removed.
2233
2234 * stdio-common/tst-popen.c: Include <string.h>.
2235
2236 * resolv/res_send.c (__libc_res_nsend): Only define TMPBUF #if DEBUG.
2237
3cabdafa
RM
2238 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Remove noreturn
2239 attribute. Return NULL instead of calling pthread_exit at the end.
2240
304815c6
RM
22412004-08-11 Roland McGrath <roland@redhat.com>
2242
2243 * iconvdata/testdata/ISO-2022-JP-3: Regenerated.
2244
b6cef5b1
RM
22452004-08-10 Alfred M. Szmidt <ams@kemisten.nu>
2246
2247 * sysdeps/generic/bits/in.h (struct ip_mreq): Remove definition.
2248
f98ca075
RM
22492004-08-10 Jakub Jelinek <jakub@redhat.com>
2250
2251 * libio/bits/stdio.h (fread_unlocked): Cast 0 to (size_t).
2252 (fwrite_unlocked): When checking if size * n is <= 8, cast each
2253 argument to size_t individually. Cast n to (void) instead of
2254 (size_t), surround with (), return (size_t) 0 if one of n or size
2255 is 0. [BZ #316]
2256 * stdio-common/Makefile (tests): Add tst-unlockedio.
2257 * stdio-common/tst-unlockedio.c: New test.
2258
c0e81b36
RM
22592004-08-09 Roland McGrath <roland@frob.com>
2260
2261 * manual/install.texi (Supported Configurations): Replace bug-glibc
2262 mention with web URL.
2263 * INSTALL: Regenerated.
2264 * locale/iso-3166.def: Likewise, in comment.
2265 * locale/iso-4217.def: Likewise.
2266 * locale/iso-639.def: Likewise.
2267 * posix/cpio.h: Remove bug reporting comment.
2268
28f9ebd7
UD
22692004-08-09 Ulrich Drepper <drepper@redhat.com>
2270
8799d935
UD
2271 * libio/bits/stdio.h (fread_unlocked): Add a couple of (size_t)
2272 casts to handle funny calls with floating point argument values
2273 and signed values correctly and without warning.
2274 (fwrite_unlocked): Likewise. [BZ #309]
2275
19c589d9
UD
2276 * malloc/memusage.c (me): Use creat64, not creat.
2277 * malloc/memusagestat.c: Fix handling of very large sizes. [BZ #285]
2278 Patch by Guy Maor <guymaor@yahoo.com>.
2279
61c6385d
UD
2280 * elf/ldconfig.c (options): Mark parameter option names as
2281 translatable. [BZ #253] Patch by Jakub Bogusz <qboosh@pld-linux.org>.
2282
28f9ebd7
UD
2283 * iconv/gconv_charset.h (strip): Also allow comma which is what is
2284 used to separate options. [BZ #194]
2285
d09ca7fa
RM
22862004-08-09 Roland McGrath <roland@redhat.com>
2287
5ce59aa6 2288 * FAQ.in: Refer to web pages instead of bug-glibc.
65903cc5 2289 * FAQ: Regenerated.
5ce59aa6 2290
d09ca7fa
RM
2291 * time/strptime_l.c: #include <stdbool.h>, `bool' used in last change.
2292
fe6cc2ae
UD
22932004-08-09 Ulrich Drepper <drepper@redhat.com>
2294
2295 * time/tzset.c (tzset_internal): If TZ is not set do not compare
2296 old and new tz value since it might be /etc/localtime in both
2297 cases although the file changed. [BZ #154]
2298 Patch by Christian Franke <franke@computer.org>.
2299
2300 * time/tzfile.c (__tzfile_read): Determine dev/ino of file.
2301 Compare with values of previously opened file. Don't do anything
2302 is they match.
2303
0a1be815
UD
23042004-08-08 Ulrich Drepper <drepper@redhat.com>
2305
c14e9135
UD
2306 * elf/dl-load.c (_dl_map_object): If __RTLD_CALLMAP flag is set,
2307 reset loader before the actual loading.
2308 * elf/dl-open.c (dl_open_worker): If file name contains no path
2309 element determine map of caller. Pass caller map in this case to
2310 _dl_map_object. Set __RTLD_CALLMAP in mode.
2311 * include/dlfcn.h (__RTLD_CALLMAP): Define. [BZ #116]
2312 Patch by Greg Wolodkin <greg@mathworks.com>.
2313
807645d7
UD
2314 * misc/syslog.c (openlog_internal): Always try both UDP and TCP.
2315 [BZ #108] Patch mainly by Bjorn Andersson <bjorn@iki.fi>.
2316
0b755dc4
UD
2317 * configure.in: Also recognize i786. [BZ #106]
2318 Patch by <pluto@pld-linux.org>.
2319
78512c00
UD
2320 * resolv/res_query.c (__libc_res_nsearch): Correctly test whether
2321 name contains any dots. [BZ #95]
2322
020a9a23
UD
2323 * resolv/res_send.c: Compiling with DEBUG defined works again.
2324 * resolv/gethnamaddr.c (dprintf): Renamed to Dprintf. Adjust all
2325 callers.
2326
0b3cce31
UD
2327 * resolv/tst-leaks.c (TIMEOUT): Define so that if no server is
2328 available the process is not killed. [BZ #41]
2329
f58dc022
UD
2330 * intl/tst-gettext.c (main): Improve some messages. [BZ #33]
2331
1750bc8d
UD
2332 * time/strptime_l.c (__strptime_internal): Fix handling of %Ey.
2333 [BZ #28]
2334
0a1be815
UD
2335 * po/sv.po: Update from translation team.
2336
65e70412
UD
23372004-08-07 Ulrich Drepper <drepper@redhat.com>
2338
d3c99ad1
UD
2339 * inet/netinet/in.h: Add more const to the setipv4soucefilter,
2340 getsourcefilter, and setsourcefilter parameter list.
2341 * sysdeps/generic/setipv4sourcefilter.c: Likewise.
2342 * sysdeps/generic/getsourcefilter.c: Likewise.
2343 * sysdeps/generic/setsourcefilter.c: Likewise.
2344 * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
2345 * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
2346 * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
2347
65e70412
UD
2348 * po/tr.po: Update from translation team.
2349
9e365fe7
UD
23502004-08-06 Ulrich Drepper <drepper@redhat.com>
2351
2352 * iconvdata/jisx0213.h (jisx0213_added_in_2004_p): Fix typo.
2353 Reported by Paolo Bonzini.
2354
23552004-08-06 Jakub Jelinek <jakub@redhat.com>
2356
2357 * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add
2358 always_inline.
2359 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_runtime_setup,
2360 elf_machine_fixup_plt, elf_machine_plt_conflict): Likewise.
2361
2362 * sysdeps/unix/sysv/linux/netatalk/at.h: Include bits/sockaddr.h
2363 before including linux/atalk.h.
2364
2365 * resolv/res_libc.c: Include atomic.h.
2366
2367 * intl/finddomain.c (free_mem): Rename to...
2368 (_nl_finddomain_subfreeres): ... this. Add
2369 __libc_freeres_fn_section.
2370 * intl/loadmsgcat.c (_nl_unload_domain): Add
2371 __libc_freeres_fn_section.
2372 * intl/gettextP.h (_nl_unload_domain): Move into #ifdef _LIBC.
2373 Add attribute_hidden.
2374 (_nl_findomain_subfreeres): New prototype.
2375 * iconv/gconv_db.c (free_mem): Call _nl_findomain_subfreeres.
2376
9030e7c4
UD
23772004-07-30 Guido Guenther <agx@sigxcpu.org>
2378
2379 * nss/getent.c (passwd_keys): Use strtoul instead of isdigit to
2380 test if the key is numeric or not.
2381 (group_keys): Likewise.
2382
a3c7fcf0
UD
23832004-08-05 Ulrich Drepper <drepper@redhat.com>
2384
489aa29d
UD
2385 * inet/netinet/in.h: Define struct ip_msfilter, IP_MSFILTER_SIZE,
2386 struct group_filter, and GROUP_FILTER_SIZE.
2387 * include/sys/socket.h: Declare __getsockopt.
2388 * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: New file.
2389 * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: New file.
2390 * sysdeps/unix/sysv/linux/setsourcefilter.c: New file.
a55bda85 2391 * sysdeps/unix/sysv/linux/getsourcefilter.c: New file. [BZ #211]
489aa29d 2392
a3c7fcf0
UD
2393 * po/ko.po: Update from translation team.
2394
87bb6b6c
UD
23952004-08-04 Jakub Jelinek <jakub@redhat.com>
2396
2397 * hesiod/hesiod.c (__hesiod_res_get): Use calloc instead of malloc +
2398 memset.
2399 (__hesiod_res_set): Free nsaddrs.
2400
2401 * include/resolv.h (__res_maybe_init): Add prototype.
2402 * resolv/resolv.h (struct __res_state): Add _u._ext.initstamp field.
2403 * resolv/Versions (libc): Add __res_maybe_init@@GLIBC_PRIVATE.
2404 * resolv/res_libc.c (__res_initstamp, lock): New variables.
2405 (res_init): Increase __res_initstamp.
2406 (__res_maybe_init): New function.
2407 * resolv/res_init.c (__res_vinit): Initialize _u._ext.initstamp.
2408 * hesiod/hesiod.c (__hesiod_res_get): Use __res_maybe_init instead
2409 of RES_INIT check and {res_ninit,__res_ninit,res_init} call.
2410 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
2411 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
2412 _nss_dns_gethostbyaddr_r): Likewise.
2413 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
2414 _nss_dns_getnetbyaddr_r): Likewise.
2415 * resolv/gethnamaddr.c (gethostbyname, gethostbyname2,
2416 gethostbyaddr): Likewise.
2417 * resolv/res_data.c (fp_nquery, res_mkquery, res_mkupdate,
2418 res_isourserver, res_sendsigned, res_update, res_search,
2419 res_querydomain): Likewise.
2420 * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Likewise.
2421 * nss/digits_dots.c (__nss_hostname_digits_dots): Likewise.
2422 * nss/getnssent_r.c (__nss_setent, __nss_endent, __nss_getent_r):
2423 Likewise.
2424
269e6e07
UD
24252004-08-05 Ulrich Drepper <drepper@redhat.com>
2426
87bb6b6c
UD
2427 * sysdeps/posix/getaddrinfo.c (gaih_inet): Set ai_family for
2428 V4-mapped IPv6 addresses and req->ai_family==AF_INET.
2429 Reported by A. Guru <a.guru@sympatico.ca>.
2430
269e6e07 2431 * po/sv.po: Update from translation team.
a79d752f 2432 * po/sk.po: Likewise.
87bb6b6c 2433 * po/pl.po: Likewise.
269e6e07 2434
d012b7df
UD
24352004-08-04 Jakub Jelinek <jakub@redhat.com>
2436 Ulrich Drepper <drepper@redhat.com>
2437
2438 * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Don't read more input
87bb6b6c 2439 characters than necessary.
d012b7df
UD
2440
24412004-08-05 Ulrich Drepper <drepper@redhat.com>
2442
2443 * wcsmbs/Makefile (tests): Add tst-mbsrtowcs.
2444 * wcsmbs/tst-mbsrtowcs.c: New file.
2445
2446 * po/fr.po: Update from translation team.
2447
08bcfb59
UD
24482004-08-04 Jakub Jelinek <jakub@redhat.com>
2449
2450 * resolv/inet_pton.c (inet_pton4): Disallow octal numbers. Reported
2451 by A. Guru <a.guru@sympatico.ca>. [BZ #295]
2452
c1d98085
UD
24532004-08-05 Ulrich Drepper <drepper@redhat.com>
2454
2f0cdd2b
UD
2455 * po/nl.po: Update from translation team.
2456
c1d98085
UD
2457 * sysdeps/posix/getaddrinfo.c (gaih_inet): Recognize all the IPv4
2458 numeric address formats inet_addr knows.
2459 (getaddrinfo): Allow AI_NUMERICSERV flag.
d012b7df 2460 If neither IPv4 nor IPv6 interface is present we cannot make any
c1d98085
UD
2461 decision for AI_ADDRCONFIG. Fail if AI_NUMERICSERV is set and the
2462 string is not just a number. Remove useless freeaddrinfo call.
2463 * resolv/netdb.h (AI_NUMERICSERV): Define.
2464 Based on a patch by a.guru@sympatico.ca.
2465
24662004-08-04 Jakub Jelinek <jakub@redhat.com>
2467
2468 * stdlib/strfmon_l.c (__vstrfmon_l): Memset whole info structure
2469 instead of trying to initialize some, but not all, fields one by
2470 one.
2471 * stdio-common/printf_size.c (printf_size): Initialize fb_info
2472 structure with *info instead of trying to initialize some, but not
2473 all, fields from it.
2474
2475 * nscd/connections.c (handle_request): Check if req->type is in
2476 LASTDBREQ .. LASTREQ range instead of req.
2477
2478 * locale/programs/linereader.c (lr_create): Initialize
2479 lr->return_widestr to 0.
2480
2481 * elf/dl-close.c (free_slotinfo): Add __libc_freeres_fn_section.
2482 (free_mem): Call free_slotinfo just once.
2483
2484 * stdio-common/tst-fmemopen.c (main): Check for MAP_FAILED instead
2485 of NULL.
2486
2487 * locale/localeinfo.h (_nl_locale_subfreeres): New prototype.
2488 * locale/setlocale.c (free_category): Add __libc_freeres_fn_section.
2489 (free_mem): Rename to _nl_locale_subfreeres.
2490 * iconv/gconv_db.c: Include locale/localeinfo.h.
2491 (free_derivation, free_modules_db): Add __libc_freeres_fn_section.
2492 (free_mem): Call _nl_locale_subfreeres.
2493 * iconv/gconv_dl.c (do_release_all): Add __libc_freeres_fn_section.
2494
9382fcee
RM
24952004-08-04 Roland McGrath <roland@frob.com>
2496
2497 * Makeconfig ($(common-objpfx)config.status):
2498 Fix typo: $(add_ons) -> $(add-ons).
2499 (Makeconfig-add-on): New variable. When doing $(sysdep-makeconfigs)
2500 include, use black magic to get it set to an add-on's name during the
2501 include of the add-on's Makeconfig.
2502
2503 * configure.in: Use variable name `libc_add_on' when sourcing add-on
2504 configure fragments, so they can refer to this.
2505 * configure: Regenerated.
2506
0964f852
RM
25072004-08-04 Roland McGrath <roland@redhat.com>
2508
8cc5920e
RM
2509 * posix/tst-waitid.c (test_child): Sleep a second before stopping.
2510 (do_test): Bump sleep to three seconds.
2511 (sigchld, check_sigchld): New functions.
2512 (do_test): Handle SIGCHLD and check for getting the right details.
2513
0964f852
RM
2514 * posix/tst-waitid.c (do_test): Kill the child process when bailing
2515 out early on some failure.
b3e46788 2516 [WCONTINUED]: Test WCONTINUED functionality.
0964f852 2517
0532e21b
UD
25182004-08-03 Ulrich Drepper <drepper@redhat.com>
2519
2520 * nscd/connections.c (handle_request): Print more descriptive
2521 message for invalid request types.
2522
5d32be9a
UD
25232004-08-02 Jakub Jelinek <jakub@redhat.com>
2524
2525 * iconvdata/ibm932.c (BODY): Avoid binary search for ch >= 0xffff.
2526 Always treat high as highest number in range + 1.
2527 * iconvdata/ibm943.c (BODY): Likewise.
2528
25292004-07-31 Bruno Haible <bruno@clisp.org>
2530
2531 * iconvdata/JISX0213.TXT: Updated to JISX0213 plane 1 version 2004.
2532 * iconvdata/jisx0213.c (__jisx0213_to_ucs_main,
2533 __jisx0213_to_ucs_pagestart, __jisx0213_from_ucs_level1,
2534 __jisx0213_from_ucs_level2): Regenerated.
2535 * iconvdata/jisx0213.h (jisx0213_added_in_2004_p): New function.
2536 * iconvdata/iso-2022-jp-3.c (JISX0213_1_2000_set): Renamed from
2537 JISX0213_1_set.
2538 (JISX0213_1_2004_set): New enum value.
2539 (BODY for FROM_LOOP): Treat ESC $ ( Q like ESC $ ( O.
2540 (BODY for TO_LOOP): For JISX 0213 plane 1 characters, emit ESC $ ( O
2541 when possible, ESC $ ( Q when needed.
2542 * iconvdata/testdata/EUC-JISX0213: Add the 10 new characters.
2543 * iconvdata/testdata/EUC-JISX0213..UTF8: Update.
2544 * iconvdata/testdata/SHIFT_JISX0213: Add the 10 new characters.
2545 * iconvdata/testdata/SHIFT_JISX0213..UTF8: Update.
2546 * iconvdata/testdata/ISO-2022-JP-3: Add the 10 new JISX0213 characters.
2547 * iconvdata/testdata/ISO-2022-JP-3..UTF8: Update.
2548
25492004-07-22 Bruno Haible <bruno@clisp.org>
2550
2551 * iconvdata/gconv-modules (ISO-8859-7): Add alias ISO_8859-7:2003.
2552
9fccfe8c
UD
25532004-07-29 David S. Miller <davem@redhat.com>
2554
2555 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy): Optimize
2556 better for smaller than 256 byte copies. Also, use only one
2557 unrolled loop instead of two for the large copy case.
2558
80574c92
RH
25592004-07-30 Richard Henderson <rth@redhat.com>
2560
2561 * sysdeps/alpha/divq.S: Save t3 before it gets clobbered.
2562 * sysdeps/alpha/remq.S: Likewise.
2563 * sysdeps/alpha/div.S, sysdeps/alpha/ldiv.S: Rewrite with the
2564 new division algorithms in divl.S and divq.S respectively.
2565
d1091a21
UD
25662004-07-28 GOTO Masanori <gotom@debian.or.jp>
2567
2568 * timezone/asia: Update from tzdata2004b.
2569 * timezone/backward: Likewise.
2570 * timezone/europe: Likewise.
2571 * timezone/iso3166.tab: Likewise.
2572 * timezone/leapseconds: Likewise.
2573 * timezone/northamerica: Likewise.
2574 * timezone/southamerica: Likewise.
2575 * timezone/zone.tab: Likewise.
2576
2577 * timezone/private.h: Update from tzcode2004b.
2578 * timezone/zic.c: Likewise.
2579
dc630ccc
UD
25802004-07-27 Ulrich Drepper <drepper@redhat.com>
2581
2582 * nscd/grpcache.c (cache_addgr): If necessary, add entry also
2583 under the name the user provided.
2584 * nscd/pwdcache.c (cache_addpw): Likewise.
2585
468352fe
RM
25862004-07-26 Roland McGrath <roland@redhat.com>
2587
2588 * sysdeps/posix/waitid.c [WEXITED]: Clear WEXITED bit in OPTIONS for
2589 call to __waitpid.
2590
f3285f86
UD
25912004-07-26 Ulrich Drepper <drepper@redhat.com>
2592
490998a5
UD
2593 * nscd/hstcache.c (cache_addhst): Fix two scenarios which lead to
2594 memory leaks.
2595
f3285f86
UD
2596 * sysdeps/unix/sysv/linux/ifreq.c (__ifreq): Assign pointer for
2597 new buffer at the right time.
2598 Reported by Jakub Bogusz <qboosh@pld-linux.org>.
2599
f89d6892
UD
26002004-07-25 Ulrich Drepper <drepper@redhat.com>
2601
2602 * inet/Versions [libc, GLIBC_2.3.4]: Add getipv4sourcefilter,
2603 getsourcefilter, setipv4sourcefilter, and setsourcefilter.
2604 * inet/Makefile (routines): Likewise.
2605 * inet/netinet/in.h: Add prototypes for getipv4sourcefilter,
2606 getsourcefilter, setipv4sourcefilter, and setsourcefilter.
2607 * sysdeps/generic/getipv4sourcefilter.c: New file.
2608 * sysdeps/generic/setipv4sourcefilter.c: New file.
2609 * sysdeps/generic/getsourcefilter.c: New file.
2610 * sysdeps/generic/setsourcefilter.c: New file.
2611
a8870a61
UD
26122004-07-17 Steven Munroe <sjmunroe@us.ibm.com>
2613
2614 * sysdeps/powerpc/powerpc64/memcpy.S: Improve instruction scheduling
2615 for POWER4 machines.
2616
deddf809
UD
26172004-07-21 Jakub Jelinek <jakub@redhat.com>
2618
2619 [BZ #274]
2620 * stdlib/strtod_l.c (INTERNAL (__STRTOF)): Fix used >=
2621 BITS_PER_MP_LIMB shifting up.
2622 * stdlib/tst-strtod.c (main): Add new tests.
2623
06bfee07
UD
26242004-07-23 Jakub Jelinek <jakub@redhat.com>
2625
2626 [BZ #282]
2627 * libio/iopopen.c (_IO_new_popen): Use _IO_init instead of
2628 _IO_no_init. Remove wd from struct locked_FILE.
2629 (_IO_wproc_jumps): Remove.
2630 Reported by Andrew Josey <a.josey@opengroup.org>.
2631 * stdio-common/Makefile (tests): Add tst-popen.
2632 * stdio-common/tst-popen.c: New test.
2633
7a80496f
UD
26342004-07-23 Ulrich Drepper <drepper@redhat.com>
2635
2636 * posix/bits/posix1_lim.h: Fix values for _POSIX_CHILD_MAX and
2637 _POSIX_OPEN_MAX. Add _POSIX_HOST_NAME_MAX, _POSIX_SYMLINK_MAX,
2638 _POSIX_SYMLOOP_MAX, and _POSIX_RE_DUP_MAX.
2639 Reported by Andrew Josey.
2640
2641 * include/features.h: Document _POSIX_C_SOURCE == 200112L.
2642
2643 * grp/grp.h: Define gid_t if __USE_XOPEN2K is defined.
2644 * pwd/pwd.h: Define uid_t and gid_t if __USE_XOPEN2K is defined.
2645 * io/sys/stat.h: Define dev_t, gid_t, ino_t, mode_t, nlink_t,
2646 off_t, time_t, and uid_t if __USE_XOPEN2K is defined.
2647 * signal/signal.h: Define pid_t if __USE_XOPEN2K is defined.
2648 * posix/unistd.h: Define gid_t, off_t, pid_t, uid_t, and
2649 useconds_t if __USE_XOPEN2K is defined.
2650 * io/utime.h: Define time_t if __USE_XOPEN2K is defined.
2651 * libio/stdio.h: Declare fseeko and ftello if __USE_XOPEN2K is defined.
2652
3426e770
UD
26532004-07-19 Thorsten Kukuk <kukuk@suse.de>
2654
2655 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
2656 allocate memory for large temporary variables with alloca.
2657
54c36b13
UD
26582004-07-22 Ulrich Drepper <drepper@redhat.com>
2659
3426e770
UD
2660 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Compatibility
2661 code must have version GLIBC_2.0. Patch by Dwayne McConnell.
2662
54c36b13
UD
2663 * nscd/nscd_getgr_r.c (nscd_getgr_r): Avoid read call with NULL
2664 pointer and zero length.
2665
f87475f7
UD
26662004-07-21 Ulrich Drepper <drepper@redhat.com>
2667
2668 * nscd/cache.c (prune_cache): Print correct list when debugging.
2669
2ed2dc18
UD
26702004-07-21 Jakub Jelinek <jakub@redhat.com>
2671
2672 * resolv/res_libc.c (res_init): If RES_INIT is set and
2673 _res.nscount > 0, call __res_nclose and free nsaddrs.
2674 * resolv/Makefile: Add rules to build and run tst-leaks2.
2675 * resolv/tst-leaks2.c: New test.
2676
84b5ba7e
UD
26772004-07-21 Ulrich Drepper <drepper@redhat.com>
2678
2679 * intl/libintl.h: Don't define macros for C++.
2680 Patch by Goto Masanori.
2681
26822004-07-22 GOTO Masanori <gotom@debian.or.jp>
2683
2684 [BZ #276]
2685 * include/arpa/inet.h: Change inet_aton type from in_addr_t to int.
2686 * inet/arpa/inet.h: Likewise.
2687 * resolv/inet_addr.c: Likewise.
2688
0767a652
AJ
26892004-07-21 Alexandre Oliva <aoliva@redhat.com>
2690
84b5ba7e 2691 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: Add semtimedop.
0767a652 2692
8f73811b
RM
26932004-07-20 Roland McGrath <roland@redhat.com>
2694
2695 * configure.in (add_ons): Substitute this. Move $add_ons handling
2696 after AC_CANONICAL_HOST and default setting of $machine et al.
2697 Don't set $subdirs from $add_ons.
2698 Instead, source add-on/configure fragments early on.
2699 (base_machine): If it's already set, don't set it based on $machine.
2700 (libc_config_ok): New variable, set to no. If an add-on fragment sets
2701 it to yes, skip the tuple sanity check as if --enable-hacker-mode.
2702 (sysnames): Try appending add-on names after machine as well.
8f73811b
RM
2703 * config.make.in (add-ons): Set from @add_ons@ instead of @subdirs@.
2704 * Makeconfig ($(common-objpfx)config.status): Also depend on configure
2705 files in $(add_ons) dirs.
2706
2707 * sysdeps/unix/sysv/linux/bits/in.h (struct ip_mreq): Remove
2708 definition, now in netinet/in.h proper.
2709
1346854b
AJ
27102004-07-20 Alexandre Oliva <aoliva@redhat.com>
2711
918f187f
AJ
2712 * sysdeps/unix/sysv/linux/mips/Makefile ($(objpfx)syscall-%.h):
2713 Sort by syscalls. Make sure we get headers such as sgidefs.h from
2714 the build tree before just-installed ones.
2715
16e6e834
AJ
2716 * sysdeps/mips/atomicity.h: Use standard names for ABI macros,
2717 include sgidefs.h where appropriate.
2718 * sysdeps/mips/dl-machine.h: Likewise.
2719 * sysdeps/mips/machine-gmon.h: Likewise.
2720 * sysdeps/mips/bits/setjmp.h: Likewise.
2721 * sysdeps/mips/fpu/bits/mathdef.h: Likewise.
2722 * sysdeps/mips/mips64/__longjmp.c: Likewise.
2723 * sysdeps/mips/mips64/setjmp_aux.c: Likewise.
2724 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
2725 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
2726 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2727 * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
2728 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2729 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2730 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
2731 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Likewise.
2732 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
2733 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: Likewise.
2734 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
2735 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
2736 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: Likewise.
2737 * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
2738 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
a12161c8 2739 * sysdeps/unix/sysv/linux/mips/sys/user.h: Likewise.
16e6e834 2740 * sysdeps/unix/sysv/linux/mips/Makefile ($(objpfx)syscall-%.h):
918f187f 2741 Likewise.
16e6e834 2742 * sysdeps/unix/sysv/linux/mips/configure.in (asm-unistd.h):
918f187f 2743 Likewise.
918f187f 2744
1346854b
AJ
2745 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Update to use
2746 _dl_lookup_symbol_x.
2747 (elf_machine_runtime_link_map): Don't INTUSE _dl_signal_error.
2748
3a9537a1
UD
27492004-07-20 Ulrich Drepper <drepper@redhat.com>
2750
70682735
UD
2751 * inet/netinet/in.h: Define struct ip_mreq and struct
2752 ip_mreq_source.
b82276d1 2753 Define struct group_req and struct group_source_req.
70682735
UD
2754 * sysdeps/unix/sysv/linux/bits/in.h: Define IP_UNBLOCK_SOURCE,
2755 IP_BLOCK_SOURCE, IP_ADD_SOURCE_MEMBERSHIP,
2756 IP_DROP_SOURCE_MEMBERSHIP, IP_MSFILTER, MCAST_JOIN_GROUP,
2757 MCAST_BLOCK_SOURCE, MCAST_UNBLOCK_SOURCE, MCAST_LEAVE_GROUP,
2758 MCAST_JOIN_SOURCE_GROUP, MCAST_LEAVE_SOURCE_GROUP, and
2759 MCAST_MSFILTER.
d8433bd0 2760 Define MCAST_INCLUDE and MCAST_EXCLUDE.
70682735 2761
3a9537a1
UD
2762 * iconvdata/gconv-modules: Add alias for IBM874 [BZ #244].
2763
164f863e
UD
27642004-07-19 Jakub Jelinek <jakub@redhat.com>
2765
2766 [BZ #258]
2767 * math/libm-test.inc (max_value, min_value): New variables.
2768 (initialize): Initialize them.
2769 (pow_test): Add a couple of new tests.
2770 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Don't generate invalid
2771 exception if |y| >= 1U<<31.
2772 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Don't generate invalid
2773 exception if |y| >= 1L<<63.
2774 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
2775 If y*log2(x) overflows to +-inf, return still +inf/+0 instead of NaN.
2776 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
2777
99bb9f42
UD
27782004-07-18 Ulrich Drepper <drepper@redhat.com>
2779
2780 * nscd/pwdcache.c (cache_addpw): Optimize case of unsuccessful
2781 lookup a bit.
2782 * nscd/grpcache.c (cache_addgr): Likewise.
2783 * nscd/hstcache.c (cache_addhst): Likewise.
2784
6f53de74
UD
27852004-07-10 GOTO Masanori <gotom@debian.or.jp>
2786
2787 * sysdeps/s390/s390-32/elf/start.S: Remove symbol _fp_hw.
2788 * sysdeps/s390/s390-64/elf/start.S: Likewise.
2789
f96b2e4e
UD
27902004-04-16 Andreas Schwab <schwab@suse.de>
2791
2792 * sysdeps/ia64/bits/atomic.h: Cast first argument of
2793 __sync_bool_compare_and_swap_si correct to void*.
2794
1b6840e5
UD
27952004-07-17 Ulrich Drepper <drepper@redhat.com>
2796
2797 * iconv/iconv_prog.c (print_known_names): Make machine-readable
2798 output even less cluttered.
2799
77d60040
UD
28002004-07-16 Steven Munroe <sjmunroe@us.ibm.com>
2801
2802 [BZ #269]
f523496b 2803 * setjmp/Makefile (tests): Add bug269-setjmp.
77d60040
UD
2804 * setjmp/bug269-setjmp.c: New file.
2805 * sysdeps/powerpc/powerpc64/__longjmp-common.S [SHARED && !IS_IN_rtld]:
2806 Store R2 from jmpbuf in callers TOC save area.
2807 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S [SHARED && !IS_IN_rtld]:
2808 Store R2 in TOC save area.
2809 * sysdeps/powerpc/powerpc64/setjmp-common.S [SHARED && !IS_IN_rtld]:
2810 Copy TOC save area from previous frame as R2 (TOC) in jmpbuf.
2811
531b71dd
UD
28122004-07-16 Jakub Jelinek <jakub@redhat.com>
2813
2814 * locale/newlocale.c: Include bits/libc-lock.h.
2815 (__libc_setlocale_lock): Extern decl.
2816 (__newlocale): Use it.
2817 Reported by Ulrich Weigand <Ulrich.Weigand@de.ibm.com>.
2818
f17ed1a9
UD
28192004-07-15 Jakub Jelinek <jakub@redhat.com>
2820
06eee9f5
UD
2821 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Remove
2822 static inline __attribute ((always_inline)). Don't define if
2823 NO_CANCELLATION.
2824 (__libc_fcntl): Use INLINE_SYSCALL directly instead of
2825 __fcntl_nocancel.
2826 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__fcntl_nocancel):
2827 Remove static inline __attribute ((always_inline)). Don't define
2828 if NO_CANCELLATION.
2829 (__libc_fcntl): Use INLINE_SYSCALL directly instead of
2830 __fcntl_nocancel.
2831 * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Define to
2832 __libc_fcntl if NO_CANCELLATION and __ASSUME_FCNTL64 == 0.
2833 Don't define at all if NO_CANCELLATION and __ASSUME_FCNTL64 > 0.
2834 (__libc_fcntl): Don't define if __fcntl_nocancel is a macro.
2835
f17ed1a9
UD
2836 [BZ #262]
2837 * sysdeps/i386/elf/start.S (_start): Use @GOT instead of @GOTOFF
2838 for main.
2839 * elf/Makefile: Add rules to build and run tst-pie1.
2840 * elf/tst-pie1.c: New test.
2841 * elf/tst-piemod1.c: New file.
2842
290639c3
UD
28432004-07-14 Jakub Jelinek <jakub@redhat.com>
2844
2845 [BZ #266]
2846 * manual/string.texi (l64a): Note that the static buffer is 7 bytes
8f73811b 2847 long. Rewrite example code so that it takes into account l64a output
290639c3
UD
2848 shorter than 6 characters.
2849 Reported by Julian Graham <julian.graham@aya.yale.edu>.
2850
6c1232e2
UD
28512004-07-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2852
2853 * sysdeps/sh/dl-machine.h: Don't reset _dl_starting_up here.
2854 (elf_machine_rela_relative): Remove unused valiable.
2855
69a64e9b
RM
28562004-07-12 Paul Eggert <eggert@cs.ucla.edu>
2857
2858 [BZ #263]
2859 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Don't store
2860 outside the buffer if the read returns 0. __strtod_l can't set
2861 endp to NULL, so remove a test for that case.
2862
85fdc62b
RM
28632004-07-12 Roland McGrath <roland@redhat.com>
2864
2865 * manual/signal.texi (Interrupted Primitives): Make clear that
2866 TEMP_FAILURE_RETRY evaluates its expression as long int and compares
2867 it to -1 to define "failure".
2868
ee600e3f
UD
28692004-07-10 Ulrich Drepper <drepper@redhat.com>
2870
2871 * elf/ldconfig.c: Define PROCINFO_CLASS as static before including
2872 ldsodefs.h.
2873 * sysdeps/generic/ldsodefs.h: Only define PROCINFO_CLASS if it is not
2874 already defined.
2875 * sysdeps/i386/dl-procinfo.c: Define PROCINFO_CALLS only if not
2876 already defined.
2877
2878 * elf/rtld.c (print_statistics): Mark with noinline attribute.
2879 * sysdeps/i386/dl-machine.h (elf_machine_rel): Mark with always_inline
2880 attribute.
2881 (elf_machine_rel_relative): Likewise.
2882
2883 * include/string.h: Add libc_hidden_proto for __strtok_r and
2884 __strsep_g.
2885 * sysdeps/generic/strsep.c: Add libc_hidden_def.
2886 * sysdeps/generic/strtok_r.c: Likewise.
2887 * sysdeps/i386/strtok_r.S: Add alias for internal symbol.
2888 * sysdeps/i386/i686/strtok_r.S: Likewise.
2889 * sysdeps/x86_64/strtok_r.S: Likewise.
2890
28912004-07-09 Alexandre Oliva <aoliva@redhat.com>
2892
2893 * inet/getnetgrent_r.c (internal_setnetgrent): Make it hidden
2894 instead of internal-linkage, such that we can alias to it.
2895 (internal_endnetgrent, internal_getnetgrent_r): Likewise.
2896
d199bfb2
UD
28972004-07-09 Ulrich Drepper <drepper@redhat.com>
2898
2899 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Move attribute
2900 to the front for gcc 3.5+.
2901 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
2902 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Likewise.
2903 * include/fcntl.h: Don't declare __fcntl_nocancel here if
2904 NO_CANCELLATION is defined.
2905
259fc9c5
UD
29062004-07-07 Jakub Jelinek <jakub@redhat.com>
2907
2908 * elf/dl-fini.c (_dl_fini): Add nloaded variable, load
2909 GL(dl_nloaded) into it while still in critical section.
2910
c61a8bb4
RM
29112004-07-06 Thorsten Kukuk <kukuk@suse.de>
2912
2913 * nss/getent.c (print_group, print_passwd): Use %lu format for
2914 `unsigned long int' values.
2915
2916 * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Fix syntax
2917 error typos in goto statements.
2918
ec5a15a3
RM
29192004-07-07 Roland McGrath <roland@frob.com>
2920
2921 * Makefile (dist-separate): New variable.
2922 (glibc-%.tar rule): Make separate tar files for add-ons listed there.
2923 Depend on their configure files.
2924 (dist-do-separate-dirs): New canned sequence to do that.
2925 (dist-separate-libidn, dist-separate-linuxthreads): New variables.
2926 (dist): Depend on add-on tar files based on $(dist-separate).
2927 (dist-version): New variable, default to $(version).
2928 (tag-for-dist, dist): Use that in place of $(version) in deps.
2929
8e5aaad9
UD
29302004-07-07 Ulrich Drepper <drepper@redhat.com>
2931
2932 * elf/dl-fini.c (_dl_fini): Move the unlock of the ld.so lock
2933 before the loop running the destructors.
2934
4183d2a7
RM
29352004-05-18 Andreas Schwab <schwab@suse.de>
2936
2937 * elf/dl-load.c (_dl_map_object_from_fd): Use the end address of
2938 the first segment for mprotect, not l_text_end.
2939
ce6e047f
UD
29402004-07-05 Ulrich Drepper <drepper@redhat.com>
2941
321e8782
UD
2942 * elf/dl-profile.c (_dl_start_profile): Compact error handling.
2943 Remove hashfraction variable. Make kcount and kcountsize local
2944 variables.
2945
ce6e047f
UD
2946 * elf/dl-init.c: Don't define and use _dl_starting_up if
2947 HAVE_INLINED_SYSCALLS is defined and the variable is not used.
2948 * elf/dl-support.c: Likewise.
2949 * elf/rtld.c: Likewise.
2950 * elf/dl-misc.c (_dl_debug_vdprintf): Use writev syscall directly
2951 if HAVE_INLINED_SYSCALLS is defined.
0b439171 2952 * sysdeps/powerpc/powerpc64/dl-machine.h: Don't reset _dl_starting_up
ce6e047f
UD
2953 here.
2954 * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
2955 * sysdeps/unix/sysv/linux/configure.in: Define HAVE_INLINED_SYSCALLS.
2956 * config.h.in: Add entry for HAVE_INLINED_SYSCALLS.
2957
2958 * sysdeps/posix/profil.c: If compiled for ld.so, omit code which
2959 is needed to stop profiling.
2960 * elf/dl-open.c (dl_open_worker): If a newly opened object is to be
2961 profile make sure it cannot be unloaded.
2962
2963 * sysdeps/unix/sysv/linux/dl-origin.c: Inline readlink syscall.
2964
2965 * sysdeps/unix/sysv/linux/fcntl.c: If compiled without cancellation
2966 support, make sure the helper function is inlined.
2967 * sysdeps/unix/sysv/linux/pread.c: Likewise.
2968 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
2969 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
2970 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Likewise.
2971
9b9ef823
UD
29722004-07-05 Jakub Jelinek <jakub@redhat.com>
2973
2dd18ce2
UD
2974 * include/string.h (ffs): Add libc_hidden_builtin_proto.
2975 * sysdeps/rs6000/ffs.c (ffs): Add libc_hidden_builtin_def.
2976 * sysdeps/alpha/alphaev67/ffs.S (ffs): Likewise.
2977 * sysdeps/alpha/ffs.S (ffs): Likewise.
2978 * sysdeps/s390/ffs.c (ffs): Likewise.
2979 * sysdeps/powerpc/ffs.c (ffs): Likewise.
2980 * sysdeps/i386/ffs.c (ffs): Likewise.
2981 * sysdeps/i386/i686/ffs.c (ffs): Likewise.
2982 * sysdeps/m68k/ffs.c (ffs): Likewise.
2983 * sysdeps/generic/ffs.c (ffs): Likewise.
2984 * sysdeps/m88k/ffs.c (ffs): Likewise.
2985 * sysdeps/am29k/ffs.c (ffs): Likewise.
2986 * sysdeps/i960/ffs.c (ffs): Likewise.
2987 * sysdeps/x86_64/ffs.c (ffs): Likewise.
2988
2989 * Makerules (check-abi): Use diff -p -U 0 instead of diff -pu0.
2990
9b9ef823
UD
2991 * sysdeps/powerpc/novmx-longjmp.c (__libc_longjmp,
2992 __libc_siglongjmp): Remove symbol_version.
2993 * sysdeps/powerpc/longjmp.c (__libc_longjmp, __libc_siglongjmp):
2994 Export @@GLIBC_PRIVATE, not @@GLIBC_2.3.4.
2995 * sysdeps/powerpc/sigjmp.c (__sigjmp_save): Use strong_alias
2996 unconditionally.
2997 * sysdeps/powerpc/novmx-sigjmp.c (__sigjmp_save): Remove.
2998 * sysdeps/powerpc/powerpc32/__longjmp.S (__longjmp): Use
2999 strong_alias instead of default_symbol_version, remove
3000 symbol_version.
3001 * sysdeps/powerpc/powerpc64/__longjmp.S (__longjmp): Likewise.
3002 * sysdeps/powerpc/powerpc32/bsd-setjmp.S (__novmx__setjmp): Change
3003 into strong_alias to __novmxsetjmp.
3004 (__vmx__setjmp): Similarly with __vmxsetjmp.
3005 (__setjmp): Make it strong_alias to __vmx__setjmp, remove
3006 default_symbol_version and symbol_version.
3007 * sysdeps/powerpc/powerpc64/bsd-setjmp.S (__novmx__setjmp): Change
3008 into strong_alias to __novmxsetjmp.
3009 (__vmx__setjmp): Similarly with __vmxsetjmp.
3010 (__setjmp): Make it strong_alias to __vmx__setjmp, remove
3011 default_symbol_version and symbol_version.
3012
3013 * nscd/nscd_getgr_r.c: Include stdio-common/_itoa.h.
3014
c7acde59
UD
30152004-07-05 Ulrich Drepper <drepper@redhat.com>
3016
3017 * elf/rtld.c (dl_main): Mark dyn_temp with attribute_relro.
3018
38205402
UD
30192004-07-04 Matthew Reppert <arashi@kai.vm.bytemark.co.uk>
3020
3021 * sysdeps/unix/sysv/linux/i386/glob64.c (glob64): Use libc_hidden_ver
3022 instead of libc_hidden_def.
3023
9632aaee
RM
30242004-07-01 Roland McGrath <roland@redhat.com>
3025
3026 * aclocal.m4: Add provide for AC_CONFIG_AUX_DIR_DEFAULT.
3027
3028 * Makeconfig ($(common-objpfx)shlib-versions.v.i): Move top-level
3029 $(..)shlib-versions file to last in deps list. This lets add-ons give
3030 more-specific matches that override defaults in the top-level file.
3031
3032 * sysdeps/unix/sysv/linux/configure.in: If arch_minimum_kernel was
3033 already set, don't set it or libc_cv_gcc_unwind_find_fde.
3034 * sysdeps/unix/sysv/linux/configure: Regenerated.
3035
f8ea3acb
UD
30362004-07-01 Martin Schwidefsky <schwidefsky@de.ibm.com>
3037
3038 * sysdeps/s390/fpu/bits/mathinline.h [__LIBC_INTERNAL_MATH_INLINES]
3039 (__ieee754_sqrt): Define as __MATH_INLINE using sqdbr instruction.
3040 (__ieee754_sqrtf): Define as __MATH_INLINE using sqebr instruction.
3041 * sysdeps/s390/fpu/e_sqrt.c: New file.
3042 * sysdeps/s390/fpu/e_sqrtf.c: New file.
3043 * sysdeps/s390/Implies: New file.
3044 * sysdeps/s390/s390-32/Implies: Remove ieee754, move
3045 ieee754/dbl-64 and ieee754/flt-32 to s390/Implies.
3046 * sysdeps/s390/s390-64/Implies: Likewise.
3047
30482004-06-30 Jakub Jelinek <jakub@redhat.com>
3049
3050 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Include tls.h.
3051 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
3052
3053 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (thread_start):
3054 DO_CALL (exit, 1) instead of branching to _exit.
3055 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (thread_start):
3056 Likewise.
3057
3058 * sysdeps/s390/fpu/bits/mathinline.h: New file.
3059
3060 * include/glob.h (glob64): Add libc_hidden_proto.
3061 * sysdeps/generic/glob64.c (glob64): Add libc_hidden_def.
3062 * sysdeps/gnu/glob64.c (glob64): Likewise.
3063 * sysdeps/unix/sysv/linux/i386/glob64.c (glob64): Likewise.
3064
9f5d26e2
UD
30652004-06-11 Jakub Jelinek <jakub@redhat.com>
3066
3067 * sysdeps/i386/fpu/libm-test-ulps: Update for GCC 3.4.
3068 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
3069
f9f70e68
UD
30702004-06-11 Dwayne Grant McConnell <dgm69@us.ibm.com>
3071
3072 * sysdeps/powerpc/fpu/s_lround.c: Removed.
3073 * sysdeps/powerpc/fpu/s_lroundf.c: Removed.
3074 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: New file.
3075 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: New file.
3076 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: New file.
3077 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: New file.
3078 * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: Removed.
3079 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: New file.
3080 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: New file.
3081 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: New file.
3082 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: New file.
3083 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: New file.
3084 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: New file.
3085 * sysdeps/powerpc/powerpc32/fpu/s_round.S: New file.
3086 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: New file.
3087 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: New file.
3088
f5164429
UD
30892004-06-30 Ulrich Drepper <drepper@redhat.com>
3090
3091 * include/net/if.h: Handle if_nameindex and if_freenameindex with
3092 libc_proto_hidden.
3093 * sysdeps/unix/sysv/linux/netlinkaccess.h: New file.
3094 * sysdeps/unix/sysv/linux/ifaddrs.c: Export netlink handling functions.
3095 * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Implement using
3096 netlink if possible. Fall back on ioctl method if necessary.
442c29ab 3097 * sysdeps/unix/sysv/linux/Dist: Add netlinkaccess.h.
f5164429
UD
3098
3099 * include/unistd.h: Declare __truncate.
3100 * sysdeps/generic/truncate.c: Also define __truncate.
3101 * sysdeps/mach/hurd/truncate.c: Likewise.
3102 * sysdeps/unix/common/syscalls.list: Likewise.
3103 * sysdeps/unix/sysv/linux/truncate64.c: Use __truncate, not truncate.
3104
0b8d1390
UD
31052004-06-29 Ulrich Drepper <drepper@redhat.com>
3106
3107 * stdio-common/printf-parsemb.c (__parse_one_specmb): Initialize
3108 info.extra. Patch by Marcus Meissner.
3109
d3d35527
UD
31102004-06-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3111
3112 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
3113 Fix branch offset for a PLT entry.
3114
5fa2f83c
UD
31152004-06-20 Jim Meyering <jim@meyering.net>
3116
3117 * malloc/obstack.h (obstack_base): Cast to `void *', to align with
3118 documentation.
3119
414650c5
UD
31202004-06-28 Ulrich Drepper <drepper@redhat.com>
3121
16ac7d45 3122 * inet/bug-if1.c (do_test): Simply use 0 as invalid index.
e2fd959d 3123 Workaround for [BZ #232].
16ac7d45 3124
414650c5
UD
3125 * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Use extend_alloca.
3126
31272004-06-28 GOTO Masanori <gotom@debian.or.jp>
3128
3129 * iconv/gconv_simple.c: Use get16/put16 for user given buffer
3130 in ucs2/ucs2reverse when unaligned memory access is attempted.
3131 * iconv/tst-iconv5.c: New file.
3132 * iconv/Makefile (tests): Add tst-iconv5.
3133
e1be0bc5
RM
31342004-06-28 Jakub Jelinek <jakub@redhat.com>
3135
3136 * inet/bug-if1.c: Include <string.h>.
3137
31382004-06-19 Roland McGrath <roland@redhat.com>
3139
3140 * sysdeps/posix/waitid.c (do_waitid) [DO_WAITID]: Define function
3141 under this macro name instead.
3142 [NO_DO_WAITID]: Don't define it at all.
3143 (do_waitid) [WNOWAIT, WEXITED]: If these POSIX.1 waitid flag bits are
3144 defined, then return ENOTSUP for combinations of selection bits other
3145 than WEXITED and WEXITED|WSTOPPED, which this version cannot support.
3146
3147 * posix/tst-waitid.c: New file.
3148 * posix/Makefile (tests): Add it.
3149
346f18ae
UD
31502004-06-28 Jakub Jelinek <jakub@redhat.com>
3151
3152 * sysdeps/unix/alpha/sysdep.h (inline_syscall6): Fix a typo.
3153
3154 [BZ #231]
3155 * sysdeps/unix/alpha/sysdep.S (__syscall_error): Avoid !samegp
3156 relocation in librt.so.
3157
3158 [BZ #230]
3159 * sysdeps/alpha/dl-machine.h (_dl_start_user): Use ldah/ldl to load
3160 _dl_skip_args. Patch by Jakub Bogusz <qboosh@pld-linux.org>.
3161
340ef046
UD
31622004-06-27 Ulrich Drepper <drepper@redhat.com>
3163
539842a4
UD
3164 * elf/ldconfig.c (add_dir): Take chroot into account.
3165 Based on changes by HJ Lu and Hideki Iwamoto.
3166
482bbeb9
UD
3167 * nscd/connections.c (invalidate_cache): If the host cache has to
3168 be invalidated, re-read resolv.conf.
3169
340ef046
UD
3170 * resolv/resolv.h (RES_NOIP6DOTINT): Define.
3171 * resolv/res_init.c (res_setoptions): Handle no-ip6-dotint option.
3172 * resolv/gethnamaddr.c (gethostbyaddr): Don't lookup with .ip6.int
3173 if RES_NOIP6DOTINT flag is set.
3174 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
3175
f2481c31
UD
31762004-06-25 Jakub Jelinek <jakub@redhat.com>
3177
3178 * sysdeps/unix/sysv/linux/powerpc/fcntl.c: Move to...
3179 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fcntl.c: ... here.
3180 * sysdeps/unix/sysv/linux/powerpc/lockf64.c: Move to...
3181 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: ... here.
3182 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: New file.
3183
3184 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (F_GETLK, F_SETLK,
3185 F_SETLKW): Fix values for -m32 -D_FILE_OFFSET_BITS=64.
3186
17fb9c53
UD
31872004-06-21 Jakub Jelinek <jakub@redhat.com>
3188
3189 [BZ #231]
3190 * sysdeps/unix/alpha/Makefile: New file.
3191 * sysdeps/unix/alpha/rt-sysdep.S: New file.
3192 Reported by Jakub Bogusz <qboosh@pld-linux.org>.
3193
5a6ae8da
UD
31942004-06-18 Ulrich Drepper <drepper@redhat.com>
3195
163288fe
UD
3196 * sysdeps/posix/getaddrinfo.c (gaih_inet): For AI_CANONNAME,
3197 determine the canonical name only for the first returned entry.
3198
5a6ae8da
UD
3199 * inet/bug-if1.c: New file.
3200 * inet/Makefile (tests): Add bug-if1.
3201
262788c3
RM
32022004-06-18 Roland McGrath <roland@frob.com>
3203
62780824
RM
3204 * Makerules (compile-mkdep-flags): Add -MT $@.
3205
3206 * Makefile (dist, tag-for-dist): New targets.
3207 (files-for-dist, tag-of-stem): New variables.
3208 (glibc-%.tar glibc-linuxthreads-%.tar): New pattern rule.
3209 Make tar files using cvs export.
3210 (%.bz2, %.gz, tag-%): New pattern rules.
3211 (distribute): Variable removed.
3212 (+subdir_targets): Remove distinfo targets.
3213 (echo_subdirs, echo-distinfo, parent_echo-distinfo): Targets removed.
3214 (rpm/%): Pattern rule removed.
3215 * rpm/Makefile, rpm/rpmrc, rpm/template: Ancient cruft files removed.
3216 * Rules (subdir_echo-headers, subdir_echo-distinfo, subdir_dist):
3217 Targets removed.
3218 * Makerules (dist, subdir_distinfo): Targets removed.
3219 ($(objpfx)distinfo): Depend on $(distribute).
3220 * Make-dist: File removed.
3221
262788c3
RM
3222 * NEWS: Fix a typo. Update bug-reporting instructions.
3223
edc1aa3d
UD
32242004-06-17 Thorsten Kukuk <kukuk@suse.de>
3225
3226 * sysdeps/unix/sysv/linux/sched_setaffinity.c
3227 (__sched_setaffinity_new): Set errno to EINVAL and return -1 if
3228 cpuset is wrongly set.
3229
32302004-06-15 Steven Munroe <sjmunroe@us.ibm.com>
3231
3232 * sysdeps/powerpc/powerpc64/memcpy.S: Improve instruction scheduling
3233 for POWER4 machines.
3234
32352004-06-14 Jakub Jelinek <jakub@redhat.com>
3236
3237 [BZ #218]
3238 * sunrpc/pmap_prot2.c (xdr_pmaplist): When freeing, remember pml_next
3239 in a local variable, point rp to that local variable afterwards.
3240
32412004-06-11 Jakub Jelinek <jakub@redhat.com>
3242
3243 * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Handle special
3244 cases properly.
3245
32462004-06-17 Ulrich Drepper <drepper@redhat.com>
3247
3248 * sysdeps/unix/sysv/linux/if_index.c (if_indextoname): Correct
3249 error value for unknown interface. [BZ #198]
3250
5b2892d5
RM
32512004-06-13 Jakub Jelinek <jakub@redhat.com>
3252
3253 * sysdeps/i386/bits/string.h (memcpy): Add () around arguments.
3254 (memchr, __memrchr, strlen, strcmp, strncmp, __strchr_g, __strchr_c,
3255 __strchrnul_g, __strchrnul_c, strspn, strcspn, strpbrk): Add memory
3256 the asm uses as its input, either of size __n where __n is known or
3257 0xfffffff.
3258 (strstr): Add "memory" clobber.
3259
0ab7f77e
RM
32602004-06-14 Jakub Jelinek <jakub@redhat.com>
3261
3262 [BZ #219]
3263 * nss/nsswitch.c (free_mem): Don't try to close a library handle
3264 if the handle is invalid. Patch by David Kimdon <kimdon@esrf.fr>.
3265
32662004-06-11 Dmitry V. Levin <ldv@altlinux.org>
3267
3268 [BZ #217]
3269 * debug/xtrace.sh: Fix typo in error diagnostics.
3270
6d00189e
RM
32712004-06-14 Andreas Schwab <schwab@suse.de>
3272
3273 * stdio-common/psignal.c (psignal): Don't use BUF when asprintf
3274 failed.
3275
e1ad4c53
RM
32762004-06-15 Steven Munroe <sjmunroe@us.ibm.com>
3277
3278 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix pasto
3279 that clobbers r19. Fix pasto that overflowed sigcontext.v_reserve.
3280 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Fix pasto
3281 that clobbers r19.
3282 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Fix pasto
3283 that clobbers r19. Fix pasto that overflowed sigcontext.v_reserve.
3284 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S:
3285 Fix setting of sigcontext.v_regs. Fix pasto that clobbers r19.
3286 Fix pasto that overflowed sigcontext.v_reserve.
3287 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S:
3288 Fix pasto that clobbers r19.
3289 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Fix setting
3290 of sigcontext.v_regs. Fix pasto that clobbers r19. Fix pasto that
3291 overflowed sigcontext.v_reserve.
3292
a3b85eba
RM
32932004-05-04 H.J. Lu <hongjiu.lu@intel.com>
3294
77526fd2 3295 [BZ #150]
a3b85eba
RM
3296 * sysdeps/generic/strtol_l.c (DEF): Use ".gnu.linkonce.r."
3297 instead of ".gnu.linkonce.ro." as the prefix for linkonce
3298 read-only section name.
3299
dd340846
RH
33002004-06-14 Richard Henderson <rth@redhat.com>
3301
3302 * sysdeps/alpha/div_libc.h (_ITOFS): Use "sp" not "$sp".
3303 (_ITOFT, _FTOIT, _ITOFT2): Likewise.
3304
a9e526e7
RM
33052004-06-08 Jakub Jelinek <jakub@redhat.com>
3306
3307 * sysdeps/s390/s390-32/backtrace.c (init): Guard with #ifdef SHARED.
3308 (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
3309 (__backtrace): Don't call init #ifndef SHARED.
3310 * sysdeps/s390/s390-64/backtrace.c (init): Guard with #ifdef SHARED.
3311 (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
3312 (__backtrace): Don't call init #ifndef SHARED.
3313 * sysdeps/ia64/backtrace.c (init): Guard with #ifdef SHARED.
3314 (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
3315 (__backtrace): Don't call init #ifndef SHARED.
3316
f1847a84
RM
33172004-06-11 Roland McGrath <roland@redhat.com>
3318
3319 * sysdeps/arm/strlen.S [__ARMEB__]: Compute correctly for big-endian.
3320 From Krzysztof Halasa <khc@pm.waw.pl>.
3321
b80af23a
RM
33222004-06-10 Jakub Jelinek <jakub@redhat.com>
3323
3324 * elf/tls-macros.h [__s390x__] (TLS_LD, TLS_GD): Clobber also r14.
3325
f05a089d
RM
33262004-06-08 Jakub Jelinek <jakub@redhat.com>
3327
3328 [BZ #199]
3329 * crypt/md5-crypt.c (__md5_crypt): Only update buflen if realloc
3330 succeeds. Reported by Miles Ohlrich <miles@cray.com>.
3331
3332 * elf/chroot_canon.c (chroot_canon): Avoid segfault if first malloc
3333 fails. Avoid memory leak if realloc fails.
3334
e17f8b61
RM
33352004-06-09 Jakub Jelinek <jakub@redhat.com>
3336
3337 * sysdeps/generic/setenv.c (setenv): Return -1/EINVAL if name is
3338 NULL, "" or contains '=' character in it. Reported by
3339 Michael T Kerrisk <mtk-lists@gmx.net>.
3340 * stdlib/tst-environ.c: Include errno.h.
3341 (main): Add tests for these arguments to setenv/unsetenv.
3342
616340ca
RM
33432004-06-07 Roland McGrath <roland@frob.com>
3344
3345 * NEWS: Update bug reporting instructions. Fix some typos.
3346
40c38b6c
UD
33472004-06-05 Ulrich Drepper <drepper@redhat.com>
3348
3349 * stdio-common/_itoa.h: Don't expand _itoa inline for libc.
3350 * stdio-common/_itoa.c: Add _itoa implementation.
3351
3352 * nscd/nscd_gethst_r.c (__nscd_open_socket): Change implementation
3353 to also send request. Add parameter to allow this.
3354 Change callers.
3355 * nscd/nscd_getgr_r.c: Change __nscd_open_socket caller.
3356 * nscd/nscd_getpw_r.c: Likewise.
3357 * nscd/nscd-client.h: Change __nscd_open_socket prototype.
3358
41cbdf2a
AJ
33592004-06-05 Andreas Jaeger <aj@suse.de>
3360
3361 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
3362 Handle more than 6 args correctly. Based on a patch by Masahide
c889f2cd 3363 Washizawa <washi@jp.ibm.com>.
41cbdf2a 3364
29762ba6
UD
33652004-06-04 Ulrich Drepper <drepper@redhat.com>
3366
3367 * nscd/nscd_gethst_r.c (nscd_gethst_r): Use __nss_not_use_nscd_hosts
3368 in all places, not __nss_not_use_nscd_group.
3369 Reported by Philippe Gregoire.
3370
75fccede
UD
33712004-06-03 Ulrich Drepper <drepper@redhat.com>
3372
3373 * sysdeps/i386/i486/bits/atomic.h: Optimize a bit.
3374
322861e8
UD
33752004-05-07 Dmitry V. Levin <ldv@altlinux.org>
3376
3377 * argp/argp-help.c (__argp_error, __argp_failure): Check result
3378 of __asprintf call and don't use string if it failed.
3379 * stdio-common/psignal.c (psignal): Likewise.
3380 * locale/programs/localedef.c (more_help): Likewise.
3381 * resolv/res_hconf.c (arg_service_list, arg_trimdomain_list,
3382 arg_bool, parse_line): Check result of __asprintf calls and
3383 don't use string if they failed.
3384 * sunrpc/svc_simple.c (registerrpc, universal): Likewise.
3385 * elf/ldconfig.c (parse_conf_include): Check result of __asprintf
3386 call and exit if it failed.
3387
fbf86dda
UD
33882004-05-10 Jakub Jelinek <jakub@redhat.com>
3389
3390 * sysdeps/posix/sysconf.c (__sysconf) <cases _SC_REALTIME_SIGNALS,
3391 _SC_PRIORITY_SCHEDULING, _SC_TIMERS, _SC_ASYNCHRONOUS_IO,
3392 _SC_PRIORITIZED_IO, _SC_SYNCHRONIZED_IO, _SC_FSYNC, _SC_MAPPED_FILES,
3393 _SC_MEMLOCK, _SC_MEMLOCK_RANGE, _SC_MEMORY_PROTECTION,
3394 _SC_MESSAGE_PASSING, _SC_SEMAPHORES, _SC_SHARED_MEMORY_OBJECTS,
3395 _SC_THREADS, _SC_THREAD_SAFE_FUNCTIONS, _SC_THREAD_ATTR_STACKADDR,
3396 _SC_THREAD_ATTR_STACKSIZE, _SC_THREAD_PRIORITY_SCHEDULING,
3397 _SC_THREAD_PRIO_INHERIT, _SC_THREAD_PRIO_PROTECT,
3398 _SC_THREAD_PROCESS_SHARED>: Return _POSIX_* value instead of 1.
3399 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
3400 <case _SC_MONOTONIC_CLOCK>: Return _POSIX_VERSION instead of 1.
3401
34022004-05-07 Jeroen Dekkers <jeroen@dekkers.cx>
3403
3404 * sysdeps/mach/hurd/i386/Makefile (CFLAGS-init-first.c): Add
3405 -momit-leaf-frame-pointer.
3406
3407 * inet/test-ifaddrs.c (addr_string): Surround AF_PACKET case with
3408 #ifdef AF_PACKET.
3409
3410 * sysdeps/mach/hurd/getcwd.c
3411 (_hurd_canonicalize_directory_name_intern): Only realloc when
3412 size is <= 0.
3413
3414 * sysdeps/mach/hurd/mmap.c (__mmap): Fail when addr or offset
3415 isn't page aligned.
3416
3417 * sysdeps/mach/hurd/spawni.c (EXPAND_DTABLE): Set dtablesize to
3418 new size.
3419
3420 * sysdeps/mach/hurd/Versions (GLIBC_PRIVATE): Add __libc_read,
3421 __libc_write and __libc_lseek64.
3422
f9b23e88
RM
34232004-05-29 Roland McGrath <roland@redhat.com>
3424
3425 * elf/Makefile (shared-only-routines): Add dl-caller.
3426
0ac55e68
UD
34272004-05-28 Ulrich Drepper <drepper@redhat.com>
3428
3429 * sysdeps/powerpc/configure.in: New file.
3430
f2bfeadf
UD
34312004-05-28 Steven Munroe <sjmunroe@us.ibm.com>
3432
3433 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Add .machine
3434 "altivec" to enable VMX instructions.
3435 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
3436 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
3437 * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
3438 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
3439 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
3440 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
3441 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
3442 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
3443 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
3444
3dbfd811
UD
34452004-05-27 Jakub Jelinek <jakub@redhat.com>
3446
3447 * sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Define using
3448 __builtin_expm1l for GCC 3.5+.
3449 (__expl): Define using __builtin_expl for GCC 3.4+.
3450 (exp, expf, expl): Don't define for GCC 3.4+.
3451 (tan, tanf, tanl): Don't define for GCC 3.5+.
3452 (__atan2l): Define using __builtin_atan2l for GCC 3.4+.
3453 (atan2, atan2f, atan2l): Don't define for GCC 3.4+ or !__FAST_MATH__.
3454 (fmod, fmodf, fmodl): Don't define for GCC 3.5+ or !__FAST_MATH__.
3455 (fabsf, fabsl): Only provide if __USE_MISC or __USE_ISOC99.
3456 (sin, sinf, sinl, cos, cosf, cosl, log, logf, logl): Don't define
3457 for GCC 3.4+.
3458 (log10, log10f, log10l, asin, asinf, asinl, acos, acosf, acosl):
3459 Don't define for GCC 3.5+.
3460 (atan, atanf, atanl): Don't define for GCC 3.4+ or !__FAST_MATH__.
3461 (log1p, log1pf, log1pl, logb, logbf, logbl, log2, log2f, log2l): Don't
3462 define for GCC 3.5+.
3463 (drem, dremf, dreml): Don't define for GCC 3.5+ or !__FAST_MATH__.
3464 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt, sqrtf, sqrtl): Don't
3465 define for GCC 3.2+.
3466
34672004-05-27 Jakub Jelinek <jakub@redhat.com>
3468
3469 * string/bits/string2.h (__bzero): Define even for GCC 3.0+.
3470 * sysdeps/alpha/stpcpy.S (stpcpy): Add libc_hidden_builtin_def.
3471 * sysdeps/alpha/alphaev67/stpcpy.S (stpcpy): Likewise.
3472 * sysdeps/powerpc/powerpc32/stpcpy.S (stpcpy): Likewise.
3473 * sysdeps/powerpc/powerpc64/stpcpy.S (stpcpy): Likewise.
3474 * sysdeps/sparc/sparc32/stpcpy.S (stpcpy): Likewise.
3475 * sysdeps/sparc/sparc64/stpcpy.S (stpcpy): Likewise.
3476 * sysdeps/i386/stpcpy.S (stpcpy): Likewise.
3477 * sysdeps/i386/i586/stpcpy.S (stpcpy): Likewise.
3478 * sysdeps/generic/stpcpy.c (stpcpy): Likewise.
3479 * sysdeps/x86_64/stpcpy.S (stpcpy): Likewise.
3480 * sysdeps/i386/i586/memcpy.S (memcpy): Remove
3481 libc_hidden_builtin_def if MEMPCPY_P.
3482 * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
3483 * sysdeps/i386/i686/mempcpy.S (mempcpy): Add libc_hidden_builtin_def.
3484 * sysdeps/i386/i586/mempcpy.S (mempcpy): Likewise.
3485 * sysdeps/generic/mempcpy.c (mempcpy): Likewise.
3486 * sysdeps/x86_64/mempcpy.S (mempcpy): Likewise.
3487
dfdef02f
RM
34882004-05-26 Roland McGrath <roland@frob.com>
3489
3490 * sysdeps/generic/bits/in.h
3491 (IMPLINK_IP, IMPLINK_LOWEXPER, IMPLINK_HIGHEXPER): Macros removed.
3492 These are long obsolete in BSD systems where they originated.
3493 * conform/data/netinet/in.h-data: Remove `allow IMPLINK_*'
3494
4a691b06
UD
34952004-05-26 Jakub Jelinek <jakub@redhat.com>
3496
3497 * include/string.h (mempcpy, stpcpy): Add libc_hidden_builtin_proto.
3498 * string/bits/string2.h (memset): Disable macro for GCC 3.0+.
3499 (__mempcpy): Use __builtin_mempcpy for GCC 3.4+.
3500 (strchr): For GCC 3.2+, only use __rawmemchr if second argument is
3501 constant '\0' and first argument is not constant.
3502 (__stpcpy): Use __builtin_stpcpy for GCC 3.4+.
3503 (strncpy): Remove #ifdef _USE_STRING_ARCH_mempcpy variant.
3504 For GCC 3.2+ use __builtin_strncpy.
3505 (strncat): For GCC 3.2+ use __builtin_strncat.
3506 (strcmp): For GCC 3.2+ use __builtin_strcmp if both arguments are
3507 constant.
3508 (strcspn, strspn, strpbrk): For GCC 3.2+, use builtin function
3509 if both arguments are constant.
3510
35112004-05-26 Ulrich Drepper <drepper@redhat.com>
3512
3513 * nss/nss_files/files-hosts.c: Fix condition for looking up IPv4
3514 mapped addresses in gethostbyaddr.
3515
1773d1ba
UD
35162004-05-25 Ulrich Drepper <drepper@redhat.com>
3517
3518 * nss/digits_dots.c (__nss_hostname_digits_dots): Remove typep and
3519 flags parameter, convert afp to simple int parameter. Adjust code.
3520 typep was never != NULL and flags therefore also unused. *afp is
3521 never modified.
3522 * nss/nsswitch.h: Adjust __nss_hostname_digits_dots prototype.
3523 * nss/getXXbyYY.c: Remove HAVE_TYPE handling. Adjust af parameter
3524 handling for __nss_hostname_digits_dots calls.
3525 * nss/getXXbyYY_r.c: Likewise.
3526
3527 * elf/dl-load.c (_dl_map_object_from_fd): Map DSOs with MAP_DENYWRITE.
3528
ffdd5e50
UD
35292004-05-25 Steven Munroe <sjmunroe@us.ibm.com>
3530
3531 * sysdeps/powerpc/fpu/Makefile: Make ld.so a dependency of libm.so.
3532 * sysdeps/powerpc/fpu/bits/mathinline.h [__LIBC_INERNAL_MATH_INLINES]
3533 (__ieee754_sqrt): Define as __MATH_INLINE using fsqrt instruction.
3534 (__ieee754_sqrtf): Define as __MATH_INLINE using fsqrts instruction.
3535 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Moved
3536 implementation from w_sqrt.c.
3537 * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Moved
3538 implementation from w_sqrtf.c.
3539 * sysdeps/powerpc/fpu/w_sqrt.c (__sqrt): Wrapper implementation
3540 using inline __ieee754_sqrt().
3541 * sysdeps/powerpc/fpu/w_sqrtf.c (__sqrtf): Wrapper implementation
3542 using inline __ieee754_sqrtf().
3543 * sysdeps/powerpc/powerpc32/sysdep.h [__ASSEMBLER__]: Include
3544 <sysdeps/powerpc/sysdep.h> independent of __ASSEMBLER__.
3545 * sysdeps/powerpc/sysdep.h [__ASSEMBLER__] (PPC_FEATURE_*): Define
3546 PPC_FEATURE_* independent of __ASSEMBLER__.
3547
35482004-05-25 Jakub Jelinek <jakub@redhat.com>
3549
3550 * sysdeps/pthread/aio_notify.c: Use <> instead of "" for aio_misc.h
3551 include.
3552 (aio_start_notify_thread): Define if not defined.
3553 (notify_func_wrapper): Use it.
3554 * sysdeps/pthread/aio_misc.c: Use <> instead of "" for aio_misc.h
3555 include.
3556 (aio_create_helper_thread): Define if not defined.
3557 (__aio_create_helper_thread): New function.
3558 (__aio_enqueue_request): Use aio_create_helper_thread.
3559
3560 * nis/ypclnt.c (ypall_data, ypall_foreach): Remove.
3561 (struct ypresp_all_data): New type.
3562 (__xdr_ypresp_all): Change second argument to
3563 struct ypresp_all_data *. Replace ypall_foreach and
3564 ypall_data with objp->foreach and objp->data.
3565 (yp_all): Remove status variable, add data. Replace
3566 all uses of status with data.status. Initialize data.foreach
3567 and data.data instead of ypall_foreach and ypall_data.
3568
35692004-05-24 Jakub Jelinek <jakub@redhat.com>
3570
3571 * elf/dl-lookup.c (add_dependency): Set DF_1_NODELETE bit
3572 in l_flags_1, not in l_flags.
3573
b84515a1
RM
35742004-04-10 Robert Millan <robertmh@gnu.org>
3575
3576 * sysdeps/unix/sysv/linux/bits/in.h: Cosmetic fixes to get in sync
3577 with sysdeps/generic/bits/in.h.
3578
47cc0570
RM
35792004-05-25 Roland McGrath <roland@frob.com>
3580
3581 * sysdeps/generic/unwind-dw2-fde-glibc.c: Change copyright terms from
3582 GCC GPL to standard glibc LGPL.
3583
623281e0
UD
35842004-05-24 Ulrich Drepper <drepper@redhat.com>
3585
3586 * manual/string.texi (Copying and Concatenation): Fixed second
3587 concat example.
3588 Reported by Fabian Pietsch <fabian@zzznowman.dyndns.org>.
3589
75c827b5
UD
35902004-05-23 Ulrich Drepper <drepper@redhat.com>
3591
3592 * malloc/obstack.c: Don't allow linking with _obstack.
3593
9c8b466e
AS
35942004-05-23 Andreas Schwab <schwab@suse.de>
3595
3596 * sysdeps/m68k/m68020/bits/atomic.h: Use "+m" constraint instead
3597 of separate "m" constraints.
3598
48db0d69
RM
35992004-05-15 Chris Demetriou <cgd@broadcom.com>
3600
3601 * sysdeps/mips/dl-machine.h (ELF_DL_FRAME_SIZE)
3602 (ELF_DL_SAVE_ARG_REGS, ELF_DL_RESTORE_ARG_REGS): For the N32
3603 and 64 ABIs, save and restore regs $10 and $11 (a6 and a7).
3604
558c2954
UD
36052004-05-20 Paul Eggert <eggert@cs.ucla.edu>
3606
3607 * malloc/obstack.c (_obstack) [!defined _LIBC]: Remove; not used.
3608 Add comment explaining why libc still defines it.
3609
afe01786
UD
36102004-05-19 Paul Eggert <eggert@cs.ucla.edu>
3611
3612 * malloc/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
3613 obstack_alignment_mask, obstack_alloc, obstack_base,
3614 obstack_blank, obstack_blank_fast, obstack_chunk_size,
3615 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
3616 obstack_grow0, obstack_init, obstack_int_grow,
3617 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
3618 obstack_next_free, obstack_object_size, obstack_ptr_grow,
3619 obstack_ptr_grow_fast, obstack_room): Remove declarations of
3620 nonexistent functions.
3621
36222004-05-18 Steven Munroe <sjmunroe@us.ibm.com>
3623
3624 * sysdeps/powerpc/powerpc64/sysdep.h [__ASSEMBLER__]: Include
3625 <sysdeps/powerpc/sysdep.h> independent of __ASSEMBLER__.
3626 [PIC]: Redundent for powerpc64, removed.
3627 (ENTRY): Generate size and alignment for opd entry.
3628 (EALIGN): Generate size and alignment for opd entry.
3629 (END): Use DOT_LABEL in ASM_SIZE_DIRECTIVE.
3630 (END_GEN_TB): Use DOT_LABEL in ASM_SIZE_DIRECTIVE.
3631
b3b71a3b
UD
36322004-05-19 Ulrich Drepper <drepper@redhat.com>
3633
d4b60383
UD
3634 * misc/regexp.h: Say the functions have been withdrawn.
3635
b3b71a3b
UD
3636 * wcsmbs/tst-wcpncpy.c: Add more tests.
3637
48982f93
RM
36382004-05-18 Roland McGrath <roland@frob.com>
3639
3640 * sysdeps/generic/unwind.h: Change copyright terms from GCC GPL to
3641 standard glibc LGPL.
3642 * sysdeps/generic/unwind-dw2.c: Likewise.
3643 * sysdeps/generic/unwind-dw2-fde.c: Likewise.
3644 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
3645 * sysdeps/generic/unwind-pe.h: Likewise.
3646
d40eb37a
UD
36472004-05-15 Petter Reinholdtsen <pere@hungry.com>
3648
3649 * locale/iso-3166.def: Remove YUGOSLAVIA and insert "SERBIA AND
3650 MONTENEGRO" which have taken over the code 819. Patch from
3651 Danilo Segan. [BZ #40]
3652
36532004-05-15 Jakub Jelinek <jakub@redhat.com>
3654
3655 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3656 (SYSCALL_ERROR_HANDLER): Rename __sparc.get_pic.l7 to
3657 __sparc_get_pic_l7.
3658
36592004-05-15 Joseph S. Myers <jsm@polyomino.org.uk>
3660
3661 * catgets/gencat.c: Update bug reporting instructions.
3662 * csu/version.c: Likewise.
3663 * debug/catchsegv.sh: Likewise.
3664 * debug/pcprofiledump.c: Likewise.
3665 * debug/xtrace.sh: Likewise.
3666 * elf/ldd.bash.in: Likewise.
3667 * iconv/iconv_prog.c: Likewise.
3668 * iconv/iconvconfig.c: Likewise.
3669 * locale/programs/locale.c: Likewise.
3670 * locale/programs/localedef.c: Likewise.
3671 * login/programs/pt_chown.c: Likewise.
3672 * malloc/memusage.sh: Likewise.
3673 * malloc/memusagestat.c: Likewise.
3674 * malloc/mtrace.pl: Likewise.
3675 * manual/crypt.texi: Likewise.
3676 * manual/install.texi: Likewise.
3677 * nss/makedb.c: Likewise.
3678
36792004-05-14 Jakub Jelinek <jakub@redhat.com>
3680
3681 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Only
3682 CHECK_STATIC_TLS if sym != NULL.
3683 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
3684 * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
3685
36862004-05-12 Andreas Schwab <schwab@suse.de>
3687
3688 * posix/regex_internal.c (build_wcs_buffer): Also set pstr->mbs
3689 when translating.
3690
36912004-05-13 H.J. Lu <hongjiu.lu@intel.com>
3692
3693 * Rules (xtests): Depend on tests.
3694
f7803f51
UD
36952004-05-13 Jakub Jelinek <jakub@redhat.com>
3696
3697 * libio/genops.c (_IO_default_xsputn): Avoid one overflow per char if
3698 count is negative, yet write_ptr < write_end.
3699 (_IO_default_xsgetn): Avoid one underflow per char if count is
3700 negative, yet read_ptr < read_end.
3701
7f4311e8
UD
37022004-05-12 Steven Munroe <sjmunroe@us.ibm.com>
3703
3704 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XTABS): Define XTABS
3705 equal to TAB3.
3706
99444c14
UD
37072004-05-12 Ulrich Drepper <drepper@redhat.com>
3708
3709 * elf/dl-lookup.c (_dl_lookup_symbol_x): Correct _dl_signal_cerror
3710 call.
3711
afcdc998
RM
37122004-05-10 Roland McGrath <roland@frob.com>
3713
3714 * hurd/hurdlookup.c (__hurd_file_name_split): Return ENOENT for "".
3715 (__hurd_directory_name_split): Likewise.
3716
dcf147a5
UD
37172004-05-10 Ulrich Drepper <drepper@redhat.com>
3718
3719 * po/fr.po: Update from translation team.
3720
d56a461b
AJ
37212004-05-10 Andreas Jaeger <aj@suse.de>
3722
3723 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
3724 Correctly compute alignment.
3725 Patch by Michael Matz <matz@suse.de>.
3726
66b3d198
UD
37272004-05-09 Ulrich Drepper <drepper@redhat.com>
3728
3729 * sysdeps/generic/sigpause.c: Prevent sigpause prototype.
3730 * sysdeps/posix/sigpause.c: Likewise.
3731 * signal/signal.h: Don't define sigpause macro unless needed.
3732
cdbf48be
UD
37332004-05-08 Jakub Jelinek <jakub@redhat.com>
3734
3735 * configure.in (libc_cv_libgcc_s_suffix): New check.
3736 (libc_cv_as_needed): Use -lgcc_s$libc_cv_libgcc_s_suffix.
3737 * config.make.in (libgcc_s_suffix): Set.
3738 * Makeconfig (libgcc_eh): Use -lgcc_s$(libgcc_s_suffix).
3739
f32d2b81
UD
37402004-05-08 Ulrich Drepper <drepper@redhat.com>
3741
3742 * signal/signal.h: Use BSD sigpause only if BSD behavior is preferred.
3743
c67a469f
UD
37442004-04-29 Steven Munroe <sjmunroe@us.ibm.com>
3745
3746 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_1,
3747 LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5, LOADARGS_6):
3748 Load argument values into temporary variables.
3749 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_1,
3750 LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5, LOADARGS_6):
3751 Likewise.
3752
1fe42a2b
UD
37532004-05-07 Ulrich Drepper <drepper@redhat.com>
3754
3755 * sysdeps/unix/sysv/linux/Makefile: mq_send.c and mq_receive.c
3756 need to be compiled with exceptions.
3757
f1debaf6
UD
37582004-05-06 Ulrich Drepper <drepper@redhat.com>
3759
9be31a51
UD
3760 * sysdeps/unix/sysv/linux/ifreq.c (__ifreq): Fix memory handling.
3761 * sysdeps/generic/ifreq.c (__ifreq): Fix memory handling.
3762
3763 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Make clear that
3764 realloc cannot fail.
3765
3766 * nss/nss_files/files-netgrp.c (EXPAND): Free buffer which cannot
3767 be expanded.
3768
3769 * nis/nis_table.c: Clean up memory handling.
3770 * nis/nis_subr.c (nis_getnames): Clean up memory handling.
3771 * nis/nis_removemember.c (nis_removemember): Add comment
3772 explaining use of realloc.
3773
f1debaf6
UD
3774 * math/tgmath.h (fabs): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL.
3775 (carg): Likewise.
3776 Patch by Lev S Bishop <lev.bishop@yale.edu>.
3777
3778 * math/bug-tgmath1.c (main): Test fabs and carg as well.
3779
37802004-05-06 Richard Henderson <rth@redhat.com>
3781
3782 * elf/elf.h (AT_L1I_CACHESHAPE, AT_L1D_CACHESHAPE,
3783 AT_L2_CACHESHAPE, AT_L3_CACHESHAPE): New.
3784 * sysdeps/unix/sysv/linux/alpha/Versions: Export
3785 __libc_alpha_cache_shape as a private symbol.
3786 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c: New file.
3787 * sysdeps/unix/sysv/linux/alpha/sysconf.c: New file.
3788
165634aa
RH
37892004-05-06 Richard Henderson <rth@redhat.com>
3790
3791 * sysdeps/alpha/div_libc.h (_ITOFS, _ITOFT, _FTOIT, _ITOFT2): New.
f1debaf6
UD
3792 * sysdeps/alpha/divl.S: Use them.
3793 * sysdeps/alpha/divq.S: Likewise.
3794 * sysdeps/alpha/divqu.S: Likewise.
3795 * sysdeps/alpha/reml.S: Likewise.
3796 * sysdeps/alpha/remq.S: Likewise.
3797 * sysdeps/alpha/remqu.S: Likewise.
165634aa 3798
58d87ee1
UD
37992004-05-06 Ulrich Drepper <drepper@redhat.com>
3800
3801 * math/tgmath.h (__TGMATH_UNARY_REAL_IMAG_RET_REAL):Define.
3802 (cimag): Use it.
3803 (creal): Likewise.
3804 * math/Makefile (tests): Add bug-tgmath1.
3805 * math/bug-tgmath1.c: New file.
3806
495961c0
UD
38072004-05-05 Jakub Jelinek <jakub@redhat.com>
3808
3809 * sysdeps/alpha/atomicity.h: Remove.
3810 * sysdeps/generic/atomicity.h: Remove.
3811
38122004-05-05 H.J. Lu <hongjiu.lu@intel.com>
3813
3814 * sysdeps/i386/i486/bits/string.h (strpbrk): Cast return to
3815 char *.
3816
ce118ec6
UD
38172004-04-22 David Mosberger <davidm@hpl.hp.com>
3818
2d7ae210
UD
3819 * sysdeps/unix/sysv/linux/ia64/Makefile (librt-routines): Mention
3820 rt-sysdep.
3821 * sysdeps/unix/sysv/linux/ia64/rt-sysdep.S: New file.
3822
ce118ec6
UD
3823 * sysdeps/ia64/strcat.c: New file.
3824 * sysdeps/ia64/strcat.S: Delete.
3825
50c2b6d7
UD
38262004-05-04 Jakub Jelinek <jakub@redhat.com>
3827
3828 * sysdeps/unix/sysv/linux/ia64/sysdep.S (USE___THREAD): Remove
3829 defined.
3830
27b02589
UD
38312004-04-23 Jakub Jelinek <jakub@redhat.com>
3832
3833 * sysdeps/ia64/fpu/libm_support.h (__libm_error_support): Add
3834 libc_hidden_proto. Define to __GI___libm_error_support for
3835 assembly going into libc.so.
3836 * sysdeps/ia64/fpu/libc_libm_error.c (__libm_error_support): Add
3837 libc_hidden_def.
3838
3839 * include/libc-symbols.h (HIDDEN_BUILTIN_JUMPTARGET): Define.
3840 * sysdeps/ia64/bcopy.S (bcopy): Use it for jump to memmove.
3841
3842 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Access
3843 gprel errno if RTLD_PRIVATE_ERRNO or __thread __libc_errno/errno
3844 if USE___THREAD.
3845
5ce98c3f
UD
38462004-05-03 Jakub Jelinek <jakub@redhat.com>
3847
3848 * sysdeps/unix/bsd/bits/fcntl.h (F_SETOWN, F_GETOWN): Define if
3849 __USE_BSD or __USE_UNIX98.
3850 * sysdeps/unix/bsd/ultrix4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3851 * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3852 * sysdeps/unix/bsd/sun/sunos4/bits/fcntl.h (F_SETOWN, F_GETOWN):
3853 Likewise.
3854 * sysdeps/unix/common/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3855 * sysdeps/unix/sysv/aix/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3856 * sysdeps/unix/sysv/irix4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3857 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_SETOWN, F_GETOWN):
3858 Likewise.
3859 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_SETOWN, F_GETOWN):
3860 Likewise.
3861 * sysdeps/unix/sysv/linux/cris/bits/fcntl.h (F_SETOWN, F_GETOWN):
3862 Likewise.
4bb8fc33 3863 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (F_SETOWN, F_GETOWN):
5ce98c3f
UD
3864 Likewise.
3865 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_SETOWN, F_GETOWN):
3866 Likewise.
3867 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (F_SETOWN, F_GETOWN):
3868 Likewise.
3869 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (F_SETOWN, F_GETOWN):
3870 Likewise.
3871 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (F_SETOWN, F_GETOWN):
3872 Likewise.
3873 * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h (F_SETOWN, F_GETOWN):
3874 Likewise.
3875 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (F_SETOWN, F_GETOWN):
3876 Likewise.
3877 * sysdeps/unix/sysv/linux/arm/bits/fcntl.h (F_SETOWN, F_GETOWN):
3878 Likewise.
3879 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (F_SETOWN, F_GETOWN):
3880 Likewise.
3881 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (F_SETOWN, F_GETOWN):
3882 Likewise.
3883 * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3884 * sysdeps/mach/hurd/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3885 * io/sys/stat.h (S_ISSOCK, S_IFSOCK): Likewise.
3886
38872004-05-01 Jakub Jelinek <jakub@redhat.com>
3888
3889 * posix/Versions (libc): Remove __libc_wait, __libc_waitpid,
3890 __libc_pause, __libc_nanosleep, __libc_pread, __libc_pread64,
3891 __libc_pwrite64, __waitid and __pselect @@GLIBC_PRIVATE.
3892 * stdlib/Versions (libc): Remove __on_exit@@GLIBC_PRIVATE.
3893 * sysdeps/unix/sysv/linux/Versions (libc): Remove
3894 __libc_sigaction@@GLIBC_PRIVATE.
3895 * sysdeps/unix/sysv/linux/x86_64/Versions (libc): Remove
3896 __modify_ldt@@GLIBC_PRIVATE.
3897 * socket/Versions (libc): Remove __libc_accept, __libc_send,
3898 __libc_recvfrom, __libc_recvmsg, __libc_sendmsg, __libc_recv,
3899 __libc_sendto and __libc_connect @@GLIBC_PRIVATE.
3900 * stdio-common/Versions (libc): Remove
3901 _itoa_upper_digits@@GLIBC_PRIVATE.
3902 * resolv/Versions (libresolv): Remove __ns_samename@@GLIBC_PRIVATE.
3903 * misc/Versions (libc): Remove __libc_fsync, __libc_msync,
3904 __libc_readv and __libc_writev @@GLIBC_PRIVATE.
3905 * termios/Versions (libc): Remove __libc_tcdrain@@GLIBC_PRIVATE.
3906 * io/Versions (libc): Remove __libc_open, __libc_close, __libc_read,
3907 __libc_write, __libc_lseek, __libc_fcntl, __libc_open64 and
3908 __libc_lseek64 @@GLIBC_PRIVATE.
3909
39102004-04-30 Jakub Jelinek <jakub@redhat.com>
3911
3912 * elf/dl-load.c (open_verify): Move e_phentsize check after e_type
3913 check.
3914
39152004-04-29 Steven Munroe <sjmunroe@us.ibm.com>
3916
3917 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: New file.
3918 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: New file.
3919 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: New file.
3920 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: New file.
3921 * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: Removed.
3922 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: New file.
3923 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Removed.
3924 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: New file.
3925 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: New file.
3926 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: New file.
3927 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: New file.
3928 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: New file.
3929 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: New file.
3930 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: New file.
3931 * sysdeps/powerpc/powerpc64/fpu/s_round.S: New file.
3932 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: New file.
3933 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: New file.
3934 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: New file.
3935
3936 * math/test-misc.c [LDBL_MANT_DIG == 106](main): Correct LDBL_MAX
3937 mantissa for AIX long double format.
3938 * misc/qefgcvt.c [LDBL_MANT_DIG == 106] (NDIGIT_MAX): Define for AIX
3939 long double format.
3940 * misc/qefgcvt_r.c [LDBL_MANT_DIG == 106] (NDIGIT_MAX): Likewise.
3941 * stdlib/fpioconst.c [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__>1024]
3942 (_fpioconst_pow10): AIX long double format has same exponent range as
3943 double.
3944 * stdlib/fpioconst.h [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__>1024]
3945 (LDBL_MAX_10_EXP_LOG): AIX long double format has same exponent range
3946 as double.
3947
39482004-04-23 Art Haas <ahaas@airmail.net>
3949
3950 * sysdeps/unix/sysv/linux/kernel-features.h: Add 'defined'.
3951
6f0b2e1f
RM
39522004-04-28 Carlos O'Donell <carlos@baldric.uwo.ca>
3953
3954 * sysdeps/unix/sysv/linux/mq_getattr.c: Include <stddef.h>.
3955 * sysdeps/unix/sysv/linux/mq_notify.c: Likewise.
3956 * sysdeps/unix/sysv/linux/mq_open.c: Likewise.
3957 * sysdeps/unix/sysv/linux/mq_receive.c: Likewise.
3958 * sysdeps/unix/sysv/linux/mq_send.c: Likewise.
3959
420a2f8b
RM
39602004-04-29 Philip Blundell <pb@nexus.co.uk>
3961
3962 * sysdeps/arm/dl-machine.h (RTLD_START): Avoid unnecessary GOT
3963 entries.
3964
0c178dce
RM
39652004-04-29 Jakub Jelinek <jakub@redhat.com>
3966
6f0b2e1f
RM
3967 * manual/resource.texi (sched_setaffinity, sched_getaffinity): Fix
3968 prototypes and description [BZ #131].
3969
3970 * string/bits/string2.h (strpbrk): Cast NULL to char * [BZ #130].
3971 Patch by Ed Catmur <ed@catmur.co.uk>.
3972 * string/tst-inlcall.c (main): Add test for strpbrk.
3973
420a2f8b
RM
3974 [BZ #140]
3975 * sysdeps/unix/sysv/linux/sys/sysctl.h: Remove linux/compiler.h
3976 include.
3977 (_LINUX_KERNEL_H, _LINUX_TYPES_H, _LINUX_LIST_H): Only define if not
3978 yet defined, #undef back after including linux/sysctl.h if defined
3979 here.
3980 (__LINUX_COMPILER_H, __user): Define if not yet defined, #undef
3981 back after including linux/sysctl.h if defined here.
3982
0c178dce
RM
3983 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c (_Qp_qtoi): Use %f31
3984 for single precision register, add it to __asm clobbers [BZ #139].
3985 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c (_Qp_qtoui): Use %f31
3986 for single precision register, add it to __asm clobbers.
3987 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c (_Qp_qtoux): Use fqtox
3988 instead of fqtoi in QP_HANDLE_EXCEPTIONS.
3989 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c (_Qp_qtox): Likewise.
3990 Reported by M. H. VanLeeuwen <vanl@megsinet.net>.
3991
8c70d1c4
AS
39922004-04-23 Andreas Schwab <schwab@suse.de>
3993
3994 * sysdeps/unix/sysv/linux/m68k/register-dump.h: Use
3995 __attribute_used__.
3996
091e1f6a
UD
39972004-04-22 Philip Blundell <philb@gnu.org>
3998
3999 * sysdeps/arm/dl-machine.h (elf_machine_rela): Don't use INTUSE
4000 when calling _dl_signal_error.
4001 (elf_machine_rel): Likewise.
4002
ab8dc78f
UD
40032004-04-21 Ulrich Drepper <drepper@redhat.com>
4004
4005 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Define _GI___sigsetjmp
4006 and use it internally instead of __sigsetjmp.
4007 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Use _GI___libm_frexp_4f.
4008 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Use _GI___libm_frexp_4l.
4009 * sysdeps/ia64/fpu/libm_frexp4.S: Define _GI___libm_frexp_4.
4010 * sysdeps/ia64/fpu/libm_frexp4f.S: Define _GI___libm_frexp_4f.
4011 * sysdeps/ia64/fpu/libm_frexp4l.S: Define _GI___libm_frexp_4l.
4012 * sysdeps/ia64/fpu/s_frexp.c (frexp): Use _GI___libm_frexp_4.
4013 * sysdeps/ia64/fpu/libm_support.h: Declare _GI___libm_frexp_4,
4014 _GI___libm_frexp_4f, _GI___libm_frexp_4l.
4015 * sysdeps/ia64/fpu/bits/mathinline.h: New file.
4016 * sysdeps/unix/sysv/linux/ia64/__start_context.S: Use
4017 HIDDEN_JUMPTARGET for exit call.
4018 * sysdeps/unix/sysv/linux/ia64/clone2.S: Use HIDDEN_JUMPTARGET for
4019 _exit call.
4020 * sysdeps/ia64/bcopy.S: Use HIDDEN_JUMPTARGET for memmove call.
4021 * sysdeps/ia64/strcat.S: Use HIDDEN_JUMPTARGET for strlen and
4022 strcpy calls.
4023
b33ed432
UD
40242004-04-21 Jakub Jelinek <jakub@redhat.com>
4025
4026 * posix/tst-chmod.c (do_test): Fix a typo.
f22c9168 4027
b33ed432
UD
4028 * elf/lateglobal.c (main): Fix error checks.
4029 Patch by Stephen Clarke <stephen.clarke@st.com>.
4030
4031 * manual/ctype.texi (isblank, iswblank): Mark as ISO functions,
4032 mention they have been added in ISO C99.
4033 Reported by Ben Pfaff <blp@cs.stanford.edu>.
4034
40352004-03-31 H.J. Lu <hongjiu.lu@intel.com>
4036
4037 * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Fix typo.
4038
f9a06dc1
UD
40392004-04-20 Jakub Jelinek <jakub@redhat.com>
4040
4041 * sysdeps/unix/sysv/linux/shm_open.c (shm_unlink): Change EPERM into
4042 EACCES.
4043
40442004-04-20 Jakub Jelinek <jakub@redhat.com>
4045
4046 * stdio-common/vfscanf.c (_IO_vfscanf): Revert last %% whitespace
4047 handling change.
4048 * stdio-common/tst-sscanf.c (int_tests): Adjust.
4049
4050 * nis/nss-nis.c: Include stdlib.h.
4051
4052 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Shut up a
4053 warning.
4054 * sysdeps/sparc/sparc64/memcmp.S (memcmp): Remove BP_SYM () from
4055 libc_hidden_builtin_def.
4056
40572004-04-20 Jim Meyering <jim@meyering.net>
4058
4059 * misc/error.c (error_tail): Don't leak upon realloc failure.
4060
40612004-04-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
4062
4063 * sysdeps/unix/sysv/linux/dl-execstack.c (_dl_make_stack_executable):
4064 Use RETURN_ADDRESS instead of __builtin_return_address.
4065
bfa26122
UD
40662004-04-19 Ulrich Drepper <drepper@redhat.com>
4067
4068 * sysdeps/unix/sysv/linux/mq_unlink.c: Rewrite to produce more
4069 compact code.
4070
d3b52028 40712004-04-20 Jakub Jelinek <jakub@redhat.com>
22823085 4072
d3b52028
UD
4073 * stdio-common/vfscanf.c (_IO_vfscanf): When skipping whitespace,
4074 do input_error () instead of conv_error () and don't look at errno.
4075 Don't eat any whitespace before %% if skip_space == 0.
4076 * stdio-common/tst-sscanf.c (int_tests): New array.
4077 (main): Run int_tests.
22823085 4078
0a901ba4 4079
d3b52028 4080See ChangeLog.14 for earlier changes.