]> git.ipfire.org Git - thirdparty/glibc.git/blame - ChangeLog
* Versions.def: Add GLIBC_2.9 to libresolv.
[thirdparty/glibc.git] / ChangeLog
CommitLineData
17756df3
UD
12008-08-01 Ulrich Drepper <drepper@redhat.com>
2
cd5743fd
UD
3 * Versions.def: Add GLIBC_2.9 to libresolv.
4 * include/resolv.h: Remove hidden proto declarations for __ns_*
5 functions. Add them for __dn_count_labels and __p_secstodate.
6 * include/arpa/nameser.h: Add a number of hidden proto declarations.
7 Define ns_msg_getflags macro here.
8 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
9 and __p_secstodate.
10 * resolv/Versions: Export functions from <arpa/nameser.h> from
11 libresolv in version GLIBC_2.9.
12 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
13 hidden definitions.
14 * resolv/ns_netint.c: Likewise.
15 * resolv/ns_parse.c: Likewise.
16 * resolv/ns_print.c: Likewise.
17 * resolv/ns_samedomain.c: Likewise.
18 * resolv/ns_ttl.c: Likewise.
19 * resolv/arpa/nameser_compat.h: Likewise.
20 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
21 function calls.
22 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
23 instead of ns_get16.
24 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
25 __ns_get32 instead of ns_get16 and ns_get32 respectively.
26 (gaih_getanswer_slice): Likewise.
27 * resolv/Makefile (libresolv-routines): Add ns_date.
28 * resolv/ns_date.c: New file.
29
17756df3
UD
30 * elf/Makefile (check-localplt.out): Also check libresolv and
31 libcrypt.
32
46bc5d43
UD
332008-07-31 Ulrich Drepper <drepper@redhat.com>
34
35 * sysdeps/unix/sysv/linux/kernel-features.h: Define
36 __ASSUME_O_CLOEXEC.
37
a707cff6
UD
382008-07-30 Ulrich Drepper <drepper@redhat.com>
39
3c227386
UD
40 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
41 buffer passed to NSS functions.
42
bd7f4857
UD
43 * nscd/connections.c (nscd_init): Type if preprocessor directive.
44
45 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
46 Define.
47
a707cff6
UD
48 * misc/syslog.c (openlog_internal): Fix compile problem.
49
0424d007
RM
502008-07-28 Roland McGrath <roland@redhat.com>
51
52 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
53
b7da31a1
UD
542008-07-28 Ulrich Drepper <drepper@redhat.com>
55
300ea0ad
UD
56 * io/ftw.c (add_object): Remove inline to avoid warning.
57
d6173baa
UD
58 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
59
b7da31a1
UD
60 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
61 Use it instead of locally defined resplen2 variable.
62 (res_nsend): Adjust for __libc_res_nsend interface change.
63 (send_vc): Initialize *resplen2 if necessary. Read length of
64 package into an appropriately aligned variable. Store converted length
65 in new variable and use it appropriately.
66 Add branch prediction help.
67 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
68 and pass it on to __libc_res_nsend. Adjust all callers.
69 (__libc_res_nsearch): Likewise.
70 (__libc_res_nqeurydomain): Likewise.
71 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
72 change.
73 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
74 Define resplen2 variable and pass it to __libc_res_nsearch and then
75 to gaih_getanswer.
76 (getanswer_r): In case of incorrect DNS data don't overread buffer.
77 Add branch prediction.
78 (gaih_getanswer_slice): Likewise. Check for invalid data types.
79 (gaih_getanswer): Don't decode second slice if first one failed due
80 to a too small buffer. Don't let not found status of second
81 decoder shadow results of the first.
82 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
83 and __libc_res_nquery interface changes
84 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
85 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
86 __libc_res_nsearch, and __libc_res_nsend.
87 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
88 change.
89 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
90 __libc_res_nsearch interface changes.
91
11ed3eae
UD
922008-07-27 Ulrich Drepper <drepper@redhat.com>
93
372aece0
UD
94 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
95
e038616f
UD
96 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
97 file descriptors with close-on-exec set.
98 (exec_comm_child): Fix the case where the write end of the pipe is
99 STDOUT_FILENO already. In case it is, clear close-on-exec.
100
d6e0c2a6
UD
101 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
102 * io/pipe2.c: Likewise.
103 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
104 instead of __ASSUME_PACCEPT.
105 * include/unistd.h: Declare __have_pipe2.
106 * libio/iopopen.c: Implement "e" flag.
107 * libio/Makefile (tests): Add tst-popen1.
108 * libio/tst-popen1.c: New file.
109
11ed3eae
UD
110 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
111 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
112
7438a80d
UD
1132008-07-26 Ulrich Drepper <drepper@redhat.com>
114
c4a710b6
UD
115 [BZ #6771]
116 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
117 success call of _IO_SEEKOFF or calls which failed because the
118 descriptor is for a pipe.
119
31f3b159
UD
120 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
121 magic number.
122
c0216dfc
UD
123 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
124
72112b0c
UD
125 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
126 F_SETFD use if we know fopen set the flag.
127
7438a80d
UD
128 * login/utmp_file.c (setutent_file): Minor optimization in case
129 O_CLOEXEC is available.
130
7b91359b
UD
1312008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
132
133 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
134 * elf/Makefile: Use pie-ccflag variable.
135 * nscd/Makefile: Likewise.
136 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
137
4057dc45
UD
1382008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
139
e7135e24 140 [BZ #6724]
4057dc45
UD
141 * Versions.def: Add GLIBC_2.9 version tag for libutil.
142 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
143 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
144 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
145 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
146 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
147 utmp32, utmpx32 and login32.
148 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
149 versions of struct utmp functions to libc and libutil.
150 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
151 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
152 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
153 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
154 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
155 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
156 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
157 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
158 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
159 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
160 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
161 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
162 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
163 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
164 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
165 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
166 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
167 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
168 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
169 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
170 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
171 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
172
ff0bf753
UD
1732008-07-26 Ulrich Drepper <drepper@redhat.com>
174
619cc2f6
UD
175 * scripts/gen-as-const.awk: Generate more widely usable code by
176 using 64-bit arithmetic.
177
1311b164 178 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
3f414923 179 the same treatment as narrow output code in last patch.
1311b164 180
ff0bf753
UD
181 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
182
3f414923 183 [BZ #6763]
ff0bf753
UD
184 * elf/dl-load.c (local_strdup): Remove inline.
185 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
186 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
187 part of the object.
188
189 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
190
8ccf22f9
UD
1912008-07-25 Ulrich Drepper <drepper@redhat.com>
192
bdd24a30
UD
193 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
194 the new syscalls, too.
b5c0b5e4 195
b41f1d14
UD
196 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
197 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
198
3703468e
UD
199 [BZ #6698]
200 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
201 parameter for end of buffer. If temporary copy is too large use
202 malloc.
203 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
204 interface change.
205 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
206 string rewrite when allocating buffer.
207
bb0277bf
UD
208 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
209 syscalls, too.
210
9dd84772
UD
211 * nscd/connections.c (nscd_init): Clean up fcntl call.
212
c418b1ba
UD
213 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
214 SOCK_NONBLOCK if possible.
215
b206d8b1
UD
216 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
217 SOCK_CLOEXEC if available.
218
8ccf22f9
UD
219 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
220 __libc_clntudp_bufcreate_internal.
221 * include/sys/socket.h: Declare __have_sock_cloexec.
222 * socket/Makefile (aux): Add have_sock_cloexec.
223 * socket/have_sock_cloexec.c: New file.
224 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
225 __libc_clntudp_bufcreate.
226 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
227 which takes an additional parameter. Create socket with non-blocking
228 mode and close-on-exec flag set, if wanted.
229 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
230 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
231 instead of clntudp_create. The socket has already the close-on-exec
232 flag set if SOCK_CLOEXEC is defined.
233
579cdf5a
UD
2342008-07-24 Ulrich Drepper <drepper@redhat.com>
235
3ff2c948
UD
236 * sysdeps/unix/sysv/linux/kernel-features.h: Define
237 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
238 appropriate.
239 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
240 non-blocking mode by using socket, paccept, and inotify_init1.
241
bdcebfc4
UD
242 * Versions.def (glibc): Add GLIBC_2.9.
243 * io/Makefile (routines): Add dup3 and pipe2.
244 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
245 * io/dup3.c: New file.
246 * io/pipe2.c: New file.
247 * posix/unistd.h: Declare dup3 and pipe2.
248 * socket/Makefile (routines): Add paccept.
249 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
250 * socket/paccept.c: New file.
251 * socket/sys/socket.h: Declare paccept.
252 * sysdeps/unix/syscalls.list: Add entry for dup3.
253 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
254 epoll_create2 and inotify_init1.
255 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
256 * sysdeps/unix/sysv/linux/paccept.c: New file.
257 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
258 possible.
259 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
260 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
261 inotify_init1, and pipe2 entries.
262 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
263 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
264 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
265 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
266 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
267 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
268 SOCK_NONBLOCK.
269 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
270 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
271 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
272 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
273 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
274 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
275 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
276 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
277 EPOLL_NONBLOCK. Declare epoll_create2.
278 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
279 EFD_NONBLOCK.
280 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
281 IN_NONBLOCK. Declare inotify_init1.
282 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
283 SFD_NONBLOCK.
284 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
285 TFD_NONBLOCK.
286
0e077a7e
UD
287 * elf/elf.h: Define AT_EXECFN.
288 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
289 LD_ORIGIN_PATH.
290 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
291 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
292 if __ASSUME_AT_EXECFN is defined.
293 (_dl_aux_init): Handle AT_EXECFN.
294 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
295 for 2.6.27 and up.
296 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
297 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
298 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
299 _dl_execfn if available and avoid compatibility code if
300 __ASSUME_AT_EXECFN is defined.
301
579cdf5a
UD
302 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
303 _dl_discover_osversion only for older kernels.
304
7385c04c
RM
3052008-07-22 Roland McGrath <roland@frob.com>
306
307 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
308
8a26088d
RM
3092008-07-21 Roland McGrath <roland@frob.com>
310
311 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
312 returned too much data out of line.
313
9f558b80
UD
3142008-07-20 Ulrich Drepper <drepper@redhat.com>
315
2e79213a
UD
316 * locale/setlocale.c (setname): Remove inline to avoid compiler
317 warning.
318
579cdf5a 319 [BZ #6712]
9f558b80
UD
320 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
321
9667f97d
UD
3222008-07-15 Ulrich Drepper <drepper@redhat.com>
323
2486b496
UD
324 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
325 doesn't manage to write anything, fail.
326
9667f97d
UD
327 * malloc/hooks.c (__malloc_check_init): Remove printf.
328
6d4c073b
RM
3292008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
330
331 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
332
b7432416
UD
3332008-07-12 Ulrich Drepper <drepper@redhat.com>
334
335 * nscd/connections.c (main_loop_poll): Fix handling of read errors
336 from inotify.
337 (main_loop_epoll): Likewise.
338
44abc397
UD
3392008-07-09 Ulrich Drepper <drepper@redhat.com>
340
835113c6
UD
341 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
342
fdc769f6
UD
343 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
344 if DEBUG is defined.
345
44abc397
UD
346 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
347 query. Adjust buffer size computation for padding.
348
38dc8fad
UD
3492008-07-08 Ulrich Drepper <drepper@redhat.com>
350
75684bd7
UD
351 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
352 * stdio-common/tst-setvbuf1.c: New file.
353 * stdio-common/tst-setvbuf1.expect: New file.
354
38dc8fad
UD
355 [BZ #6719]
356 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
357 when selecting fully-buffered stream.
358 Patch by Wang Xin <wxinee@gmail.com>.
359
107f4ac2
RM
3602008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
361
362 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
363 (__open_2): New function.
364 (__open64_2): New alias to __open_2.
365 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
366 (__openat_2): New function.
367 (__openat64_2): New alias to __openat_2.
368
45ec3e79
UD
3692008-07-06 Ulrich Drepper <drepper@redhat.com>
370
371 [BZ #6723]
372 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
373
0a583b54
RM
3742008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
375
376 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
377 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
378 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
379 __hurd_dfail.
380 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
381 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
382 * sysdeps/mach/hurd/send.c (__send): Likewise.
383 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
384 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
385
d5a0160b
RM
3862008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
387
388 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
389 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
390 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
391 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
392 * hurd/get-host.c (_hurd_get_host_config): Likewise.
393 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
394
80922a99
UD
3952008-06-27 Ulrich Drepper <drepper@redhat.com>
396
397 [BZ #6657]
398 * time/strptime_l.c: Don't clear s.era_cnt after successful match
399 of %EY.
400 Patch by Petr Baudis.
401
34ca2ff7
UD
4022008-06-26 Ulrich Drepper <drepper@redhat.com>
403
5ee0f5e2 404 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
34ca2ff7
UD
405 Patch by Peter Jones <pjones@redhat.com>.
406
104426b6
UD
4072008-06-25 Ulrich Drepper <drepper@redhat.com>
408
409 [BZ #6654]
410 * stdlib/canonicalize.c (__realpath): readlink can write too much
411 into the buffer on platforms without PATH_MAX.
412
7166d23f
UD
4132008-06-17 Carlos O'Donell <carlos@codesourcery.com>
414
4cb8e687 415 [BZ #6653]
7166d23f
UD
416 * posix/tst-regex.c (main): Rename to...
417 (do_test): ... this. Remove cmdline option processing.
418 (TIMEOUT): Define.
419 (TEST_FUNCTION): Define.
420 (CMDLINE_OPTIONS): Define.
421
974069d8
UD
4222008-06-25 Ulrich Drepper <drepper@redhat.com>
423
424 [BZ #5210]
425 * configure.in: Add -Werror to -fstack-protector test to catch
426 unsupported architectures.
427 Patch by Gilles Esponasse <g.esp@free.fr>.
428
cefa2dd3
UD
4292008-06-17 Joseph Myers <joseph@codesourcery.com>
430
431 * stdlib/tst-setcontext.c: Set back_in_main before exit if
432 getcontext returns ENOSYS.
433
c00d1128
UD
4342008-06-18 Ulrich Drepper <drepper@redhat.com>
435
436 * nscd/connections.c (main_loop_poll): Fix test for read error.
437 (main_loop_epoll): Likewise.
438
a0edbb48
UD
4392008-06-13 Ulrich Drepper <drepper@redhat.com>
440
d0a1ae94
UD
441 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
442 better place so it is not called when nscd is used.
443
a0edbb48
UD
444 * nscd/connections.c: Also recognize and handle changes to the
445 resolver configuration file.
446
46f70b3c
UD
4472008-06-12 Ulrich Drepper <drepper@redhat.com>
448
5bcc6c0f
UD
449 * time/strftime.c: Pass reference to tzset_called around to handle
450 recursive calls.
451
452 [BZ #6612]
453 * time/strftime.c (__strftime_internal): Call tzset() only
454 when printing timezone-dependent values.
455 Based on a patch by Petr Baudis <pasky@suse.cz>.
456
f854efd7
UD
457 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
458 unconditionally use second gaih_getanswer_slice result.
459
46f70b3c
UD
460 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
461 (getaddrinfo): RES must always be non-NULL.
462
9ea8bfec
UD
4632008-06-12 Jakub Jelinek <jakub@redhat.com>
464
465 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
466 cr[34] registers.
467 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
468 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
469 Likewise.
470 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
471 register.
472
5a337776
UD
4732008-06-12 Ulrich Drepper <drepper@redhat.com>
474
5228ba2f
UD
475 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
476 fields.
477 * nscd/connections.c (inotify_fd): New variable.
478 (nscd_init): Try to open an inotify descriptor.
479 If successful, watch files for databases using inotify instead of
480 having prune threads stat the files.
481 (nscd_run_prune): Recognize clear_cache flag being set and call
482 prune_cache appropriately.
483 (main_loop_poll): Add inotify descriptor to wait set and handle the
484 reported changes.
485 (main_loop_epoll): Likewise.
486 * nscd/cache.c (prune_cache): Don't stat files for databases if
487 inotify is used.
488 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
489 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
490
5a337776
UD
491 * nscd/grpcache.c (cache_addgr): Correctly compute size of
492 fixed-size portion of the record.
493 * nscd/servicescache.c (cache_addserv): Likewise.
494 * nscd/pwdcache.c (cache_addpw): Likewise.
495 * nscd/initgrcache.c (addinitgroupsX): Likewise.
496
9ad58cc3
UD
4972008-06-11 Ulrich Drepper <drepper@redhat.com>
498
499 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
500 out we don't use uninitialized memory.
501
502 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
503 the client.
504
c1283552
UD
5052008-06-10 Ulrich Drepper <drepper@redhat.com>
506
507 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
508 ignore T_DNAME messages.
509 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
510
eef8a803
JJ
5112008-06-05 Jakub Jelinek <jakub@redhat.com>
512
513 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
514 Avoid segfault if first GETC returns eof/'\0'/'\n'.
515
ee78670e
JJ
5162008-06-03 Jakub Jelinek <jakub@redhat.com>
517
518 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
519 instead of portstr to nscd_getserv_r. Patch by
520 Roman Kagan <rkagan@mail.ru>.
521
62605cbf
UD
5222008-05-26 Jim Meyering <meyering@redhat.com>
523
10966640 524 Remove more useless "if" tests before "free".
62605cbf
UD
525 * include/inline-hashtab.h (htab_delete): Likewise.
526 * libio/freopen.c (freopen): Likewise.
527 * libio/freopen64.c (freopen64): Likewise.
528 * locale/programs/ld-collate.c (collate_read): Likewise.
529 * misc/fstab.c (libc_freeres_fn): Likewise.
530 * posix/glob.c (globfree): Likewise.
531
f63abf58
UD
5322008-05-24 Ulrich Drepper <drepper@redhat.com>
533
534 * string/Makefile (strop-tests): Add memmem.
535 * string/test-memmem.c: New file.
536 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
537 (test_init): Size buf1 according to BUF1PAGES.
538
ad8a5511
JJ
5392008-05-24 Jakub Jelinek <jakub@redhat.com>
540
541 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
542 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
543 (CFLAGS-scanf17.c): New.
544 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
545 * stdio-common/scanf15.c (main): Likewise.
f63abf58
UD
546 * stdio-common/scanf16.c: New file.
547 * stdio-common/scanf17.c: New file.
ad8a5511 548
e2003883
UD
5492008-05-24 Ulrich Drepper <drepper@redhat.com>
550
551 * resolv/res_send.c (send_dg): If we already have one of two
b5ba2c79 552 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
e2003883
UD
553 use the one answer insted of failing.
554
acbb9873
UD
5552008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
556
557 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
558 being executed on PowerPC as the expected result exceeds IBM
559 long double 128 __LDBL_MAX__.
560
e85f1d6a
RM
5612008-05-21 Roland McGrath <roland@redhat.com>
562
563 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
564
565 * Makefile (check-data): Use $(abi-name) before other guesses.
566 Look in $(add-ons) dirs before scripts/data/.
567 * elf/Makefile (check-data): Likewise.
568
569 * scripts/soversions.awk: Grok ABI line.
570 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
571 Emit definition for abi-name variable.
572
d8e763c6
UD
5732008-05-21 Ulrich Drepper <drepper@redhat.com>
574
e92799fc 575 * string/endian.h: Define new fixed-size hto* and *toh macros only
e85f1d6a 576 if [__USE_BSD].
e92799fc 577
d8e763c6
UD
578 * iconvdata/Depend: Add localedata.
579
009ef333
RM
5802008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
581
582 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
583
86746abb
JJ
5842008-05-08 David S. Miller <davem@davemloft.net>
585
586 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
587 HIDDEN_JUMPTARGET.
588 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
589 (__SYSCALL_CLOBBERS): Remove %g* registers.
590 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
591 (__SYSCALL_CLOBBERS): Likewise.
592 * scripts/data/localplt-sparc-linux-gnu.data: New file.
f63abf58 593 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
86746abb 594
5e6f34c2
JJ
5952008-05-21 Jakub Jelinek <jakub@redhat.com>
596
597 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
598 (CALL_ERRNO_LOCATION): Define.
599 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
600 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
601 (CALL_ERRNO_LOCATION): Define.
602 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
603 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
604 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
605
4beb4532
UD
6062008-05-20 Ulrich Drepper <drepper@redhat.com>
607
608 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
609 variable.
610
ed8f38ba
JJ
6112008-05-20 Jakub Jelinek <jakub@redhat.com>
612
613 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
614 (FIRST_FRAME_POINTER): Define.
615
6162008-05-09 David S. Miller <davem@davemloft.net>
617
618 * sysdeps/sparc/sparc64/backtrace.c: New file.
619
c1b8190a
JJ
6202008-05-14 David S. Miller <davem@davemloft.net>
621
622 * sysdeps/sparc/machine-gmon.h: New file.
623 * sysdeps/sparc/sparc-mcount.S: Likewise.
624 * sysdeps/sparc/Makefile: Add sparc-mcount target to
625 sysdep_routines in gmon directory.
626
84aacd93
JJ
6272008-05-19 Jakub Jelinek <jakub@redhat.com>
628
629 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
630
5908f779
UD
6312008-05-19 Ulrich Drepper <drepper@redhat.com>
632
633 * resolv/res_query.c (__libc_res_nquery): In case one of two
634 answer was too short don't try to read that answer's header.
635
636 * resolv/res_send.c (send_dg): In case of timeout and there are
637 two queries and one has been answered, return value indicating
638 success.
639
528741cb
UD
6402008-05-18 Ulrich Drepper <drepper@redhat.com>
641
642 * nscd/cache.c (cache_add): Take additional parameter specifying
643 whether this is in response of a cache refill. Check alignment
644 of package data. Revamp waking of pruning thread.
645 (prune_cache): Small optimization.
646 * nscd/nscd.h: Adjust cache_add prototypes.
647 * nscd/aicache.c: Adjust cache_add calls.
648 * nscd/grpcache.c: Likewise.
649 * nscd/hstcache.c: Likewise.
650 * nscd/initgrcache.c: Likewise.
651 * nscd/pwdcache.c: Likewise.
652 * nscd/servicescache.c: Likewise.
653 * nscd/connections.c (restart): Really disable cache use before
654 exec attempt. If it fails, reenable cache.
655 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
656 time to max to be able to notice concurrent cache additions. Unlock
657 prune_lock while performing gc. Afterwards compute wakeup time with
658 current wakeup_time value in mind.
659
343996c4
UD
6602008-05-17 Ulrich Drepper <drepper@redhat.com>
661
5811d72b
UD
662 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
663
fa526148
UD
664 * nscd/mem.c (gc): Correctly determine highest used array element
665 in mark.
666
77d40f10
UD
667 * nscd/mem.c (markrange): Add assert to check entries are all
668 aligned. Small cleanup in bitmap use.
669
8884028c
UD
670 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
671 blockoff of type nscd_ssize_t.
672 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
673 (mempoll_alloc): Record block offset and not address.
674
b2159575
UD
675 * nscd/mem.c (gc): Fix test for stack overuse.
676
5c9629d2
UD
677 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
678 more asserts.
679
66d90496
UD
680 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
681 entry is available, believe it.
682
343996c4
UD
683 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
684 no answers return NSS_STATUS_NOTFOUND.
685 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
686 buffer does not have any content.
687
91c8a74b
UD
6882008-05-16 Ulrich Drepper <drepper@redhat.com>
689
74e13385
UD
690 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
691
91c8a74b
UD
692 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
693 lookup, don't assign canon unconditionally.
694
0caca71a
UD
6952008-05-14 Ulrich Drepper <drepper@redhat.com>
696
697 * string/Makefile (distribute): Add str-two-way.h.
698
6992008-03-29 Eric Blake <ebb9@byu.net>
700
701 Rewrite string searches to O(n) rather than O(n^2).
702 * string/str-two-way.h: New file. For linear fixed-allocation
703 string searching.
704 * string/memmem.c: New implementation.
705 * string/strstr.c: New implementation.
706 * string/strcasestr.c: New implementation.
707
b194db79
UD
7082008-04-11 Paolo Bonzini <bonzini@gnu.org>
709
710 * posix/regcomp.c (optimize_utf8): Add a note on why we test
711 opr.ctx_type.
712 (calc_first): Initialize constraint field.
713 (duplicate_node_closure): Use it instead of special casing ANCHORS.
714 Use search_duplicated_node to avoid loops. Fix grammar.
715 (duplicate_node): Merge constraint field for all node types.
716 (calc_eclosure_iter): Look at constraint field for all node types.
717 * posix/regex_internal.c (create_cd_newstate): Don't look at
718 create_cd_newstate.
719
c8d49f05
UD
7202008-05-14 Ulrich Drepper <drepper@redhat.com>
721
215a8745
UD
722 [BZ #6428]
723 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
724
2f9a1be8
UD
725 [BZ #6442]
726 * string/endian.h: Add macros for fixed-size endian conversion.
727 * bits/byteswap.h: Allow inclusion from <endian.h>.
728 * sysdeps/i386/bits/byteswap.h: Likewise.
729 * sysdeps/ia64/bits/byteswap.h: Likewise.
730 * sysdeps/s390/bits/byteswap.h: Likewise.
731 * sysdeps/x86_64/bits/byteswap.h: Likewise.
732 * string/Makefile (tests): Add tst-endian.
733 * string/tst-endian.c: New file.
734
c8d49f05
UD
735 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
736 Patch by Reuben Thomas.
737
a754f018
UD
7382008-05-14 Joseph Myers <joseph@codesourcery.com>
739
740 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
741
372bfcac
UD
7422008-05-14 Ulrich Drepper <drepper@redhat.com>
743
a754f018
UD
744 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
745
5deca9bb
UD
746 [BZ #6461]
747 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
748 Add missing braces.
749 (BODY for __gconv_transform_internal_ascii): Likewise.
750
af77c9b7 751 [BZ #6472]
5fab5544
UD
752 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
753 to be treated like link-local addresses.
5846c4e2
UD
754 (match_prefix): Don't treat IPv4 loopback address special when
755 converting to v4 mapped addressed.
5fab5544 756
0caca71a 757 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
1f039824 758 if necessary.
b194db79
UD
759 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
760 * posix/tst-rfc3484-2.c: Likewise.
761 * posix/tst-rfc3484-3.c: Likewise.
1f039824 762
18a74157
UD
763 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
764 and SCTP.
372bfcac
UD
765
766 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
767
768 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
769
770 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
771
f05ac8f5
UD
7722008-05-13 Ulrich Drepper <drepper@redhat.com>
773
774 * po/lt.po: New file. From Lituanian translation team.
775
c9ff0187
UD
7762008-01-30 Alexandre Oliva <aoliva@redhat.com>
777
778 Introduce TLS descriptors for i386 and x86_64.
779 * include/inline-hashtab.h: New file, copied from 2005's
780 libiberty, with fix for memory leak imported afterwards by
781 Glauber de Oliveira Costa.
782 * elf/tlsdeschtab.h: New file.
783 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
784 (_dl_allocate_static_tls): ... here. Rearrange failure path.
785 (CHECK_STATIC_TLS): Move to...
786 * elf/dynamic-link.h: ... this file.
787 (TRY_STATIC_TLS): New macro.
788 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
789 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
790 R_386_TLS_DESC): Define.
791 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
792 binutils.
793 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
794 R_X86_64_TLSDESC): Define.
795 (R_386_NUM, R_X86_64_NUM): Adjust.
796 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
f05ac8f5 797 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
c9ff0187
UD
798 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
799 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
800 release tlsdesc_table.
801 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
802 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
803 (elf_machine_rel): Handle R_386_TLS_DESC.
804 (elf_machine_rela): Likewise.
805 (elf_machine_lazy_rel): Likewise.
806 (elf_machine_lazy_rela): Likewise.
807 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
808 * sysdeps/i386/dl-tlsdesc.S: New file.
809 * sysdeps/i386/dl-tlsdesc.h: New file.
810 * sysdeps/i386/tlsdesc.c: New file.
811 * sysdeps/i386/tlsdesc.sym: New file.
812 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
813 tlsdesc_table.
814 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
f05ac8f5 815 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
c9ff0187
UD
816 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
817 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
818 release tlsdesc_table.
819 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
820 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
821 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
822 (elf_machine_rel): Handle R_X86_64_TLSDESC.
823 (elf_machine_rela): Likewise.
824 (elf_machine_lazy_rel): Likewise.
825 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
826 (__tls_get_addr): Do not declare for non-shared compiles.
827 * sysdeps/x86_64/dl-tlsdesc.S: New file.
828 * sysdeps/x86_64/dl-tlsdesc.h: New file.
829 * sysdeps/x86_64/tlsdesc.c: New file.
830 * sysdeps/x86_64/tlsdesc.sym: New file.
831 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
832 tlsdesc_table for both 32- and 64-bit structs.
833
a3636e8b
UD
8342008-05-11 Ulrich Drepper <drepper@redhat.com>
835
836 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
837 its own function. This reduces the frame setup costs and more.
838
a7eb802f
UD
8392008-02-11 Joseph Myers <joseph@codesourcery.com>
840
841 [BZ #3406]
842 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
843 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
844
3490f01d
UD
8452008-05-11 Ulrich Drepper <drepper@redhat.com>
846
3d7eeebe
UD
847 * io/openat.c (__openat_2): Also pass fd to __openat.
848 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
849 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
850
3490f01d
UD
851 * string/tester.c (test_memcmp): Add a few more tests.
852 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
853
7e71e55f
UD
8542008-05-10 Ulrich Drepper <drepper@redhat.com>
855
856 * nscd/cache.c (cache_add): Before returning with failure and this
857 is the first use of the record, mark it as unusable.
858 * nscd/aicache.c: Don't touch the dataset after cache_add returns
859 reporting a failure.
860 * nscd/grpcache.c: Likewise
861 * nscd/hstcache.c: Likewise.
862 * nscd/initgrcache.c: Likewise.
863 * nscd/pwdcache.c: Likewise.
343996c4 864 * nscd/servicescache.c: Likewise.
7e71e55f 865
7396d0a9
RM
8662008-05-10 Roland McGrath <roland@redhat.com>
867
868 [BZ #6505]
869 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
870
c5ee217f
UD
8712008-05-08 David S. Miller <davem@davemloft.net>
872
b29899ae
UD
873 * misc/truncate64.c (truncate64): Use __truncate not truncate.
874
c5ee217f
UD
875 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
876 (__ieee754_y0l): Likewise.
877 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
878 (__ieee754_y1l): Likewise.
879 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
880 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
881 frexpl and ldexpl. math_private.h provides them and the latter
882 is not even used.
883 (__log1pl): Use __frexpl.
884
1eb946b9
UD
8852008-05-10 Ulrich Drepper <drepper@redhat.com>
886
887 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
888 prototypes.
889 * include/arpa/nameser_compat.h: Define T_UNSPEC.
890 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
891 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
892 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
893 af==AF_UNSPEC.
894 (_nss_nis_gethostbyname4_r): New function.
895 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
896 Change to also handle af==AF_UNSPEC.
897 (get_tablename): New function. Use it to avoid duplication.
898 (_nss_nisplus_gethostbyname4_r): New function.
899 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
900 available.
901 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
902 * nss/nss.h: Define struct gaih_addrtuple.
903 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
904 af==AF_UNSPEC.
905 (_nss_files_gethostbyname4_r): New function.
906 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
907 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
908 calls.
909 * resolv/res_query.c (__libc_res_nquery): Take two additional
910 parameters for second answer buffer. Handle type=T_UNSPEC to mean
911 look up IPv4 and IPv6.
912 Change all callers.
913 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
914 for an additional query and answer buffer. Pass to send_vc and
915 send_dg.
916 (send_vc): Send possibly two requests and receive two answers.
917 (send_dg): Likewise.
918 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
919 __libc_res_nquery.
920 (_nss_dns_gethostbyname4_r): New function.
921 (gaih_getanswer_slice): Likewise.
922 (gaih_getanswer): Likewise.
923 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
924 __libc_res_nquery call.
925 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
926 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
927 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
928 available.
929
b7fb703a
JJ
9302008-05-05 David S. Miller <davem@davemloft.net>
931
932 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
933 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
934
2256e43d
RM
9352007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
936
937 Fix termios bit macros.
938 Move *DLY definitions where they belong, in termios.h.
939 Add *[0-3] definitions.
940 Fixes confusion between VT and FF.
8bb52dbf
RM
941 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
942 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
943 are already defined to avoid collision with termios.h.
2256e43d
RM
944 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
945 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
946 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
947 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
948 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
949 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
950 VTDLY, VT0, VT1): New macros.
951 [__USE_GNU] (OLCUC): Change value of macro.
952 [__USE_XOPEN] (OFILL): New macro.
953 [__USE_BSD] (CRTSCTS): Change value.
954 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
955 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
956 (B7200, B14400, B28800, B76800): New macros.
957
4ce349e5
JJ
9582008-05-01 David S. Miller <davem@davemloft.net>
959
a86a7a39
JJ
960 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
961 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
962 (gen-as-const-headers): Add it.
963 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
964 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
965 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
966 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
2256e43d 967
4ce349e5
JJ
968 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
969 six system call parameters.
970 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
971
89a8963d
UD
9722008-04-30 Ulrich Drepper <drepper@redhat.com>
973
974 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
975 RUSAGE_LWP.
976 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
977 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
978
b5ec5fce
JJ
9792008-04-30 Jakub Jelinek <jakub@redhat.com>
980
981 * stdlib/tst-setcontext.c: Include unistd.h.
982
d4e92d9e
JJ
9832008-04-25 David S. Miller <davem@davemloft.net>
984
985 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
986 Pass "union semun" properly in to sys_ipc, it must be passed
987 by value, not by reference.
988
7eb5e6c9
UD
9892008-04-22 Jakub Jelinek <jakub@redhat.com>
990
991 * nscd/Makefile (nscd-cflags): Set back to -fpie.
992 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
993 * nscd/connections.c (mem_in_flight): Likewise.
994
995 * nscd/nscd.h (dbs): Make hidden.
996
997 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
998 Avoid returning -1, return 0 instead.
999
0073dd2d
UD
10002008-04-19 Ulrich Drepper <drepper@redhat.com>
1001
1002 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
1003
c52137d3
UD
10042008-04-15 Ulrich Drepper <drepper@redhat.com>
1005
1006 [BZ #5209]
1007 * sysdeps/unix/sysv/linux/times.c: New file.
1008
1009 [BZ #5381]
1010 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
1011 mem_in_flight_list variables. Add new parameter to mempool_alloc
1012 prototype.
1013 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
1014 appropriate mem_in_flight element.
1015 (gc): Take allocations which have not yet been committed to the
1016 database into account.
1017 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
1018 Reset mem_in_flight before returning.
1019 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
1020 cue it up in mem_in_flight_list.
1021 * nscd/aicache.c: Adjust mempool_alloc call.
1022 * nscd/grpcache.c: Likewise.
1023 * nscd/hstcache.c: Likewise.
1024 * nscd/initgrcache.c: Likewise.
1025 * nscd/pwdcache.c: Likewise.
1026 * nscd/servicescache.c: Likewise.
1027 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
1028 of -fpie.
1029
1030 * nscd/connections.c (handle_request): Provide better error message
1031 in case SELinux forbids the service.
1032
1033 * version.h (VERSION): Bump to 2.8.90.
1034
39546e34
JJ
10352008-04-17 Jakub Jelinek <jakub@redhat.com>
1036
1037 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
1038
cf3a8c7f
UD
10392008-04-11 Ulrich Drepper <drepper@redhat.com>
1040
9e113ecd
UD
1041 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
1042 Also use for 32-bit.
3b6d574e
UD
1043 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
1044 __nextafter instead of nextafter to avoid local PLT.
c3a0ead4
UD
1045 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
1046 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1047
3781ec29
UD
1048 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
1049
246ec411
UD
1050 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
1051 __fe_nomask_env.
3cc56f92
UD
1052 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
1053 <fenv_libc.h> instead of <fenv.h>.
246ec411
UD
1054 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
1055 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
1056
1057 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
1058
1059 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
1060 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
1061 function from fegetexcept and make old name weak alias.
1062 * include/fenv.h: Declare __fegetexcept.
1063 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
1064 fegetexcept.
1065 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
1066 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
1067 to fetestexcept.
1068 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
1069 instead of frexpl to avoid local PLT.
1070 * math/s_significandl.c (__significandl): Use __ilogbl instead of
1071 ilogbl to avoid local PLT.
1072 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
1073 instead of ldexpl to avoid local PLT.
1074 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
1075 __roundl not roundl to avoid local PLT.
1076 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
1077 local PLTs. Use __sincosl instead of separate sinl and cosl
1078 calls.
1079 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1080
2dc4a2fd
UD
1081 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
1082 version for ppc64 to 2.4.21 since without it makecontext will fail.
1083
fe3350ee
UD
1084 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
1085 to the ABI in use.
1086 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
1087 .__tls_get_addr.
1088 [__powerpc64__] (TLS_GD): Likewise.
cf3a8c7f 1089
c1e6b459
UD
10902007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
1091
7763d4f1 1092 [BZ #4997]
c1e6b459
UD
1093 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
1094 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
1095 mantissa.
1096 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1097 Likewise. Also account for when x is an odd number between 2^52
1098 and 2^53-1.
1099 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
1100 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1101 * math/libm-test.inc (lround_test, llround_test): Added test cases to
1102 detect aforementioned erroneous conditions.
1103
22dca1ea
UD
11042008-04-11 Jakub Jelinek <jakub@redhat.com>
1105
1106 * configure.in: Check for -fno-section-anchors in addition to
1107 -fno-toplevel-reorder.
1108
5d59f4a5
UD
11092008-04-11 Ulrich Drepper <drepper@redhat.com>
1110
1111 * include/features.h (__GLIBC_MINOR__): Bump to 8.
1112
1113 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
1114 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
1115 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
1116 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
1117 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
1118 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
1119
91e32540
UD
11202008-04-11 Jakub Jelinek <jakub@redhat.com>
1121
1122 [BZ #5443]
1123 * time/era.c: Transform __libc_setlocale_lock into rwlock.
1124 * time/alt_digit.c: Likewise.
1125 * wcsmbs/wcsmbsload.c: Likewise.
1126
fd490ac8
UD
11272008-04-10 Ulrich Drepper <drepper@redhat.com>
1128
1db5b6f4
UD
1129 * version.h (VERSION): Bump to 2.8.
1130
fd490ac8
UD
1131 * timzeone/asia: Update from tzdata2008b.
1132 * timezone/backward: Likewise.
1133 * timezone/europe: Likewise.
1134 * timezone/northamerica: Likewise.
1135 * timezone/southamerica: Likewise.
1136 * timezone/iso3166.tab: Likewise.
1137 * timezone/leapseconds: Likewise.
1138 * timezone/zone.tab: Likewise.
1139 * timezone/private.h: Update from tzcode2008a.
1140 * timezone/zdump.c: Likewise.
1141 * timezone/zic.c: Likewise.
1142
153cf972
UD
11432008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
1144
1145 [BZ #5741]
1146 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
1147 Define additonal Data Cache Block instruction macros.
1148 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
1149 Replace dcbst with dcbf and sync with sync/isync.
1150
d2207f32
UD
11512008-02-21 Alan Modra <amodra@bigpond.net.au>
1152
1153 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
1154 Always set ELF_RTYPE_CLASS_PLT.
1155 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
1156
13d83320
UD
11572008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
1158
1159 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
1160 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
1161 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
1162 For ISA 2.01 and later replace mftb with mfspr 268.
1163
5f7aead5
UD
11642008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
1165
1166 [BZ #5768]
1167 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
1168 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
1169
11702008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
1171
1172 [BZ #5768]
1173 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
1174 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
1175 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
1176 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
1177
117df5d9
JJ
11782008-04-10 Jakub Jelinek <jakub@redhat.com>
1179
1180 * stdlib/tst-makecontext.c (othervar): New variable.
1181 (cf): Test sign extending the argument to long.
1182
3b32d8a2
UD
11832008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
1184
1185 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
1186 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
1187 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
1188 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
1189 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
1190 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
1191 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
1192
9fb11d4c
UD
11932008-02-22 Alan Modra <amodra@bigpond.net.au>
1194
1195 * elf/Makefile (tests): Substitute tests-vis-yes here.
1196 (tests-vis-yes): Delete.
1197 (modules-name, modules-vis-yes): Similarly.
1198
facd1d8e
UD
11992008-02-12 Pete Eberlein <eberlein@us.ibm.com>
1200
1201 [BZ #4407]
1202 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
1203 Preserve sign in signgamp when x is zero.
1204
aece054b
UD
12052007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
1206
1207 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
1208 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
1209 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
1210 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
1211 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
1212 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
1213
6c30d38f
UD
12142008-04-09 Ulrich Drepper <drepper@redhat.com>
1215
21208604 1216 [BZ #4314]
13d83320
UD
1217 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
1218 buffers.
21208604 1219
2f611ada 1220 [BZ #5209]
d1235fdf
UD
1221 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
1222 a reserved error value.
2f611ada 1223
6c30d38f
UD
1224 * stdlib/tst-makecontext.c: Change parameter to cf to negative
1225 value to check for correct sign extension.
1226
1227 [BZ #5436]
1228 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
1229 Copy 64-bit parameter values even though this is not required in
1230 the standard.
1231
1232 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
1233 PC save.
1234
de1bbf68
UD
12352008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
1236
1237 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
1238 PC save.
1239
9aef35a5
UD
12402008-04-09 Jakub Jelinek <jakub@redhat.com>
1241
1242 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
1243
a7925a24
UD
12442008-04-09 Ulrich Drepper <drepper@redhat.com>
1245
1246 [BZ #5998]
1247 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
1248 in line-buffered stream failed.
1249 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
1250
7b61ef24
UD
12512008-04-08 Ulrich Drepper <drepper@redhat.com>
1252
c2a684a4
UD
1253 [BZ #6024]
1254 * scripts/abi-versions.awk: If the version specified by
1255 --enable-oldest-abi is older than the first version for this
1256 architecture, use the default version.
1257
7b61ef24
UD
1258 * locale/programs/ld-collate.c (collate_read): Ignore script lines
1259 as well when ignoring the whole category.
1260
f6d749f0
UD
12612008-04-07 Ulrich Drepper <drepper@redhat.com>
1262
1263 [BZ #6042]
1264 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
1265 ETHERTYPE_* definitions.
1266 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
1267
1e99aede
JJ
12682008-04-07 Jakub Jelinek <jakub@redhat.com>
1269
1270 * stdlib/mbtowc.c (__no_r_state): Remove.
1271 (mbtowc): New static state variable. Use it instead of
1272 __no_r_state.
1273 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
1274 (__wctomb_state): New hidden variable.
1275 (wctomb): Use __wctomb_state instead of __no_r_state.
1276 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
1277 (__wctomb_state): New extern decl.
1278 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
1279
fcf90e0a
UD
12802008-04-07 Ulrich Drepper <drepper@redhat.com>
1281
1282 [BZ #5475]
1283 * resolv/res_init.c: Handle scope IDs in resolv.conf.
1284
ae39e102
JJ
12852008-04-07 Jakub Jelinek <jakub@redhat.com>
1286
1287 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
1288
2503dd30
UD
12892008-04-06 Ulrich Drepper <drepper@redhat.com>
1290
1291 * po/nl.po: Update from translation team.
1292
3eb9c809
UD
12932008-03-31 Ulrich Drepper <drepper@redhat.com>
1294
1295 [BZ #6007]
1296 * string/strfry.c: Handle empty strings again.
1297
9a69db29
UD
12982008-03-30 Ulrich Drepper <drepper@redhat.com>
1299
1300 [BZ #5443]
1301 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
1302 before looking for translation.
1303 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
1304 * locale/freelocale.c: Likewise.
1305 * locale/newlocale.c: Likewise.
1306 * locale/setlocale.c: Likewise.
1307 Based partially on a patch by ryo@np.css.fujitsu.com.
1308
2ecc7d93
UD
13092008-03-30 Jakub Jelinek <jakub@redhat.com>
1310
1311 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
1312 acquiring wrlock. Do conv_tab allocation while holding lock.
1313 * intl/Makefile: Add rules to build and run tst-gettext6.
1314 * intl/tst-gettext6.c: New test.
1315 * intl/tst-gettext6.sh: New file.
1316
221e5230
UD
13172008-03-30 Ulrich Drepper <drepper@redhat.com>
1318
faa091c6
UD
1319 * po/nl.po: Update from translation team.
1320
221e5230
UD
1321 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
1322 provided through st_blksize, try the default size before giving up.
1323
1c272665
UD
13242008-03-29 Ulrich Drepper <drepper@redhat.com>
1325
43f6bec1
UD
1326 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
1327
e8a32126
UD
1328 [BZ #5939]
1329 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
1330
1e489af9
UD
1331 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
1332 error message. POSIX today does not require the messages to be in
1333 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
1334
1d20f7f8
UD
1335 [BZ #5979]
1336 * sunrpc/auth_unix.c: Unify printed strings.
1337 * sunrpc/clnt_tcp.c: Likewise.
1338 * sunrpc/clnt_udp.c: Likewise.
1339 * sunrpc/clnt_unix.c: Likewise.
1340 * sunrpc/svc_tcp.c: Likewise.
1341 * sunrpc/svc_udp.c: Likewise.
1342 * sunrpc/svc_unix.c: Likewise.
1343 * sunrpc/xdr.c: Likewise.
1344 * sunrpc/xdr_array.c: Likewise.
1345 * sunrpc/xdr_rec.c: Likewise.
1346 * sunrpc/xdr_ref.c: Likewise.
1347 * locale/programs/ld-time.c (time_finish): Unify messages.
1348 * locale/programs/locfile.c (handle_copy): Fix typo.
1349 * nscd/nscd.c (options): Fix typo.
1350
1c272665
UD
1351 [BZ #5995]
1352 * stdlib/strtod_l.c: Use correct sign for result in one more
1353 underflow case.
1354 Patch by Eric Blake <ebb9@byu.net>.
1355
48cc060e
UD
13562008-03-27 Jakub Jelinek <jakub@redhat.com>
1357
1358 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
1359 and creat system calls.
1360 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
1361 call.
1362 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
1363 system calls.
1364 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
1365 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1366 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1367
f96853be
UD
13682008-03-27 Ulrich Drepper <drepper@redhat.com>
1369
1370 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
1371 <linux/limits.h> has defined it.
1372 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
1373 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
1374 headers.
1375 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
1376 it instead of ARG_MAX.
1377
fde15fdc
UD
13782008-03-25 Jakub Jelinek <jakub@redhat.com>
1379
1380 * posix/gai.conf: Fix comment for scope nullbits.
1381 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
1382 default to 128 bits for v4 mapped addresses.
1383
87b9b50f
UD
13842008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
1385
1386 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
1387 ptrace call to get the ieee_instruction_pointer from the kernel.
1388 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
1389 ptrace call to set the ieee_instructtion_pointer.
1390 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
1391 Add comment that ieee_instruction_pointer is always 0.
1392
af0498dc
UD
13932008-03-09 Andreas Jaeger <aj@suse.de>
1394
1395 [BZ #5857]
1396 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
1397 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
1398 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
1399
1400 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
1401 (rint_test): Likewise.
1402
0ab7632d
UD
14032008-03-24 Ulrich Drepper <drepper@redhat.com>
1404
0facd3df
UD
1405 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
1406 call.
1407 (__nisfind_server): Similar for open readColdStartFile call.
1408 Patch partially by Jim Meyering.
1409 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
1410 around internal_setent call.
1411
7e570c55
UD
1412 * po/vi.po: New Vietnamese translation.
1413
e093c247
UD
1414 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
1415 ADJ_OFFSET_SS_READ.
1416
0ab7632d
UD
1417 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
1418 remove CLONE_STOPPED.
1419
0726cdf7
UD
14202008-02-10 Jim Meyering <meyering@redhat.com>
1421
1422 Remove useless "if" before "free":
1423 * elf/ldconfig.c (parse_conf_include): Likewise.
1424 * gmon/gmon.c (weak_alias): Likewise.
1425 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
1426 * inet/rcmd.c (__validuser2_sa): Likewise.
1427 * intl/bindtextdom.c (set_binding_values): Likewise.
1428 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
1429 * libio/genops.c (save_for_backup): Likewise.
1430 * libio/wgenops.c (save_for_wbackup): Likewise.
1431 * locale/programs/ld-collate.c (collate_read): Likewise.
1432 * locale/programs/linereader.c (get_string): Likewise.
1433 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
1434 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
1435 * resolv/res_debug.c (do_section): Likewise.
1436 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
1437 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
1438 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
1439 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
1440 * time/tzset.c (tzset_internal): Likewise.
1441
354b7527
JJ
14422008-03-18 Jakub Jelinek <jakub@redhat.com>
1443
1444 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
1445 of ASSEMBLER.
1446
ca668b29
UD
14472008-03-11 Ulrich Drepper <drepper@redhat.com>
1448
1449 [BZ #5903]
1450 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
1451 not stream for output file. Open output file here.
1452 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
1453 and output file name.
1454 (process_fd): Likewise.
1455 (process_file): Likewise.
1456 (main): Adjust callers of changed functions.
1457 * iconv/iconv_prog.h: Adjust prototype.
1458
f3dc3415
AJ
14592008-03-09 Andreas Jaeger <aj@suse.de>
1460
1461 [BZ #5753]
1462 * sysdeps/ia64/ieee754.h: Use protected namespace
1463 __BIG_ENDIAN/__LITTLE_ENDIAN.
1464 * sysdeps/ieee754/ieee754.h: Likewise.
1465 Patch by Aurelien Jarno <aurelien@aurel32.net>.
1466
a8fd84d4
RM
14672008-03-08 Roland McGrath <roland@frob.com>
1468
2b965f1b
RM
1469 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
1470 ignore a signal that came from a machine exception, treat it as a
1471 fatal core-dump signal instead.
1472 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
1473
a8fd84d4
RM
1474 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
1475 Clear DF bit in thread state's eflags.
1476 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
1477
368a8dec
UD
14782008-03-08 Ulrich Drepper <drepper@redhat.com>
1479
b3278554
UD
1480 [BZ #5774]
1481 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
c6c00e0d 1482 of NAN(...) sequence.
b3278554
UD
1483 * stdlib/Makefile (tests): Add tst-strtod6.
1484 * stdlib/tst-strtod6.c: New file.
1485
1486 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
1487
2127a186
UD
1488 [BZ #5762]
1489 * posix/getopt.c (_getopt_internal_r): Clarify error message by
1490 putting offending option character in quotes. Clean up error
1491 messages.
1492 * po/be.po: Adjust msgstr in translation file.
1493 * po/bg.po: Likewise.
1494 * po/ca.po: Likewise.
1495 * po/cs.po: Likewise.
1496 * po/da.po: Likewise.
1497 * po/de.po: Likewise.
1498 * po/es.po: Likewise.
1499 * po/fr.po: Likewise.
1500 * po/hr.po: Likewise.
1501 * po/ko.po: Likewise.
1502 * po/nl.po: Likewise.
1503 * po/rw.po: Likewise.
1504 * po/sk.po: Likewise.
1505 * po/sv.po: Likewise.
1506 * po/tr.po: Likewise.
1507 * po/zh_CN.po: Likewise.
1508 * po/zh_TW.po: Likewise.
1509
725c0c87
UD
1510 [BZ #5760]
1511 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
1512 Patch by Roland Bless <roland@bless.de>.
1513
368a8dec
UD
1514 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
1515 .o file.
1516 * elf/Makefile (routines): Add dl-sysdep.
1517 (elide-routines.os): Likewise.
1518
78c2bf0e
UD
15192008-03-07 Ulrich Drepper <drepper@redhat.com>
1520
7c22c7ec
UD
1521 [BZ #5786]
1522 * elf/dl-sysdep.c: Undefine ROUND after use.
1523 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
1524 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
1525 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
1526 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
1527 to ...
1528 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
1529 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
1530 if necessary.
1531 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
1532
93025f93
UD
1533 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
1534 _dl_tls_get_addr_soft element.
1535 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
1536 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
1537 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
1538 GLRO.
1539 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
1540 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
1541 of internal_function.
1542
72f10127
UD
1543 * stdlib/Makefile (aux): Add tens_in_limb.
1544 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
1545 * stdlib/tens_in_limb.c: ...here. New file.
1546
443db178
UD
1547 [BZ #5778]
1548 * sysdeps/unix/sysv/linux/pathconf.h: Declare
1549 __statfs_chown_restricted.
1550 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
1551 for _PC_CHOWN_RESTRICTED.
1552 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
1553 Implement __statfs_chown_restricted.
1554 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
1555 _POSIX_CHOWN_RESTRICTED value to zero.
c71665ad
UD
1556 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
1557 defined to zero.
443db178 1558
78c2bf0e
UD
1559 * sysdeps/x86_64/rtld-memset.c: New file.
1560
443db178 15612008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
78c2bf0e
UD
1562
1563 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
1564
1565 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
1566 Barcelona machine. Make default fall through branch of
1567 __x86_64_preferred_memory_instruction check as the integer code path.
1568
15692007-10-15 H.J. Lu <hongjiu.lu@intel.com>
1570
1571 * sysdeps/x86_64/cacheinfo.c
1572 (__x86_64_preferred_memory_instruction): New variable.
1573 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
1574
1575 * sysdeps/x86_64/memset.S: Rewrite.
1576
dff37515
UD
15772008-03-04 Jakub Jelinek <jakub@redhat.com>
1578
1579 * include/stdio.h (__asprintf_chk, __dprintf_chk,
1580 __obstack_printf_chk): New prototypes.
1581 (__vasprintf_chk, __vdprintf_chk,
1582 __obstack_vprintf_chk): Likewise.
1583 Add libc_hidden_proto.
1584 * libio/obprintf.c
1585 (_IO_obstack_jumps): No longer static, add attribute_hidden.
1586 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
1587 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
1588 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
1589 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
1590 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
1591 __obstack_vprintf_chk): New prototypes.
1592 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
1593 obstack_vprintf): New inlines.
1594 * debug/dprintf_chk.c: New file.
1595 * debug/vdprintf_chk.c: New file.
1596 * debug/asprintf_chk.c: New file.
1597 * debug/vasprintf_chk.c: New file.
1598 * debug/obprintf_chk.c: New file.
1599 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
1600 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
1601 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
1602 @@GLIBC_2.8.
1603 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
1604 vdprintf_chk and obprintf_chk, set CFLAGS for them.
1605 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
1606 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
1607 libc_hidden_proto.
1608 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
1609 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
1610 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
1611 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
1612 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
1613 @@GLIBC_2.8.
1614 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
1615 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
1616 obstack_vprintf_chk.
1617 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
1618 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
1619 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
1620 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
1621 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
1622 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
1623
d835f136
UD
16242008-03-04 Ulrich Drepper <drepper@redhat.com>
1625
a4bb445a
UD
1626 [BZ #5779]
1627 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
1628 Patch by Roy Marples <roy@marples.name>.
1629
c958a6a4
UD
1630 [BZ #5736]
1631 * malloc/malloc.c: Fix typo in comment.
1632
d835f136
UD
1633 [BZ #5627]
1634 * locale/iso-639.def: Add Shuswap.
1635
65b4743a
UD
16362008-02-25 Jakub Jelinek <jakub@redhat.com>
1637
1638 [BZ #5790]
1639 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
1640 overwrite *h_errnop/*errnop values from getanswer_r in case of
1641 failure.
1642
3868fb6e
UD
16432008-03-03 Ulrich Drepper <drepper@redhat.com>
1644
27c377dd
UD
1645 [BZ #5818]
1646 * nscd/connections.c (dbs): Add initializers for .suggested_module.
1647 (verify_persistent_db): Remove one unnecessary test and add a new one
1648 for bad configuration.
1649 (nscd_init): Improve error reported when persistent database cannot
1650 be reused.
1651 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
1652 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
1653 .suggested_module and .max_db_size and case config file says the
1654 values are zero.
1655 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
1656
0f749099
UD
1657 [BZ #5854]
1658 * nis/ypclnt.c (yp_order): Fix handling of return value of
1659 do_ypcall_tr call.
1660 Patch by Jeff Moyer <jmoyer@redhat.com>.
1661
3868fb6e
UD
1662 * po/fr.po: Update from translation team.
1663
268dbf25
AJ
16642008-02-22 Andreas Jaeger <aj@suse.de>,
1665 Carlos O'Donell <carlos@systemhalted.org>
1666
1667 [BZ #5012]
1668 * FAQ.in: Describe why glibc needs to be compiled with
1669 optimization.
1670
73b82641
RM
16712008-02-19 Roland McGrath <roland@redhat.com>
1672
1673 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
1674
c9136393
UD
16752008-02-15 Ulrich Drepper <drepper@redhat.com>
1676
1677 [BZ #5737]
1678 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
1679 __USE_MISC is defined.
1680
2e3e9ff1
UD
16812008-02-10 Ulrich Drepper <drepper@redhat.com>
1682
1683 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
1684 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
1685 sys/timerfd.h.
1686 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
1687 timerfd_gettime, timerfd_settime.
1688 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
1689 timerfd_gettime, timerfd_settime for GLIBC_2.8.
1690
85202a2b
RM
16912008-02-08 Roland McGrath <roland@redhat.com>
1692
1693 * elf/elf.h (NT_PPC_SPE): New macro.
1694
708ef8a4
RM
16952008-02-06 Roland McGrath <roland@redhat.com>
1696
1697 * Makerules ($(common-objpfx)sysd-rules):
1698 Depend on $(sysdep-makeconfigs).
1699
363a641b
RM
17002008-01-31 Roland McGrath <roland@redhat.com>
1701
67fbfa5c
RM
1702 [BZ #5442]
1703 * configure.in: Use -print-file-name if it yields a directory,
1704 for each of include and include-fixed.
1705 * configure: Regenerated.
1706
363a641b
RM
1707 * Makeconfig (sysd-rules-targets): New variable.
1708 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
1709 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
1710
0f0f9610
RM
17112008-01-30 Roland McGrath <roland@redhat.com>
1712
7bd00dbf
RM
1713 * manual/libc.texinfo: Update back-cover text.
1714
0f0f9610
RM
1715 * elf/elf.h (NT_386_TLS): New macro.
1716
16cd816f
RM
17172008-01-29 Roland McGrath <roland@redhat.com>
1718
1719 * Makeconfig (sysd-rules-patterns): New variable.
1720 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
1721 (check-inhibit-asm): New canned sequence, replaces ...
1722 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
1723 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
1724 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
1725 (CFLAGS-rtld): Variable removed.
1726
f641ffcc
RM
17272008-01-24 Roland McGrath <roland@redhat.com>
1728
1729 * configure.in: Let configure fragments set base_os.
1730 * configure: Regenerated.
1731
b7e26885
UD
17322008-01-22 Ulrich Drepper <drepper@redhat.com>
1733
1734 * po/ko.po: Update from translation team.
1735
b4b166af
UD
17362008-01-12 H.J. Lu <hongjiu.lu@intel.com>
1737
1738 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
1739
f66def9d
AJ
17402008-01-12 Andreas Jaeger <aj@suse.de>
1741
1742 [BZ #5040]
1743 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
1744 Add EPOLLRDHUP.
1745
d3bc5e77
RM
17462008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
1747
1748 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
1749 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
1750 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
1751
4c533566
UD
17522007-10-23 Alexandre Oliva <aoliva@redhat.com>
1753
1754 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
1755 * elf/dl-close.c (_dl_close): Check for it.
1756 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
1757 (_dl_allocate_static_tls): Likewise.
1758 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
1759 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
1760 to it.
1761 * elf/tst-tls16.c: New file.
1762 * elf/tst-tlsmod16a.c: New file.
1763 * elf/tst-tlsmod16b.c: New file.
1764 * elf/Makefile: Add rules to build and run tst-tls16.
1765
a53d3f82
UD
17662008-01-16 Ulrich Drepper <drepper@redhat.com>
1767
a0f6c236
UD
1768 [BZ #5628]
1769 * bits/shm.h: Fix comment describing shmid_ds.
1770 * sysdeps/gnu/bits/shm.h: Likewise.
1771 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
1772 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
1773 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
1774 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
1775 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
1776 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
1777 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
1778 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
1779 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
1780
a53d3f82
UD
1781 [BZ #5607]
1782 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
1783 prototypes.
1784 * conform/data/limits.h-data: Adjust limits changed in v6 and add
1785 additional suffixes.
1786 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
1787 Add optional functions mq_timedreceive and mq_timedsend.
1788 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
1789 * conform/data/pthread.h-data: Fix prototype of
1790 pthread_condattr_setclock. pthread_sigmask is not required in v6.
1791 * conform/data/semaphore.h-data: Allow time.h definitions.
1792 * conform/data/signal.h-data: Likewise.
1793 * conform/data/stdio.h-data: getw and putw are not required in v6.
1794 * conform/data/stdlib.h-data: Change setstate prototype.
1795 * conform/data/string.h-data: Fix strerror_r prototype.
1796 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
1797 * conform/data/unistd.h-data: pthread_atfork not required in v6.
1798 Fix readlink prototype.
1799 * conform/data/netinet/in.h-data: Add const to in6addr_any and
1800 in6addr_loopback.
1801 * inet/netinet/in.h: Cleanup namespace.
1802 * posix/regex.h: Likewise.
1803 * resolv/netdb.h: Likewise.
1804 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
1805 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
1806 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6107639e
UD
1807 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
1808 of names of in in6_addr.
1809 (default_precedence): Likewise.
1810 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
1811 NULL definition.
a53d3f82 1812
ebca8f73
UD
18132008-01-15 Ulrich Drepper <drepper@redhat.com>
1814
fbe90cd5
UD
1815 * conform/data/fmtmsg.h-data: Add missing allows.
1816 * conform/data/ftw.h-data: Likewise.
1817 * conform/data/inttypes.h-data: Likewise.
1818 * conform/data/math.h-data: Likewise.
1819 * conform/data/signal.h-data: Likewise.
1820 * conform/data/net/if.h-data: Likewise.
1821 * conform/data/netinet/in.h-data: Likewise.
1822 * conform/data/sys/socket.h-data: Likewise.
1823
ebca8f73
UD
1824 [BZ #5614]
1825 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
1826 (__strtok_r): Simplify.
1827 * string/tester.c (test_strtok_r): Add test case for futile search
1828 with single-character seach string.
1829
7c33ca8b
UD
18302008-01-12 Ulrich Drepper <drepper@redhat.com>
1831
1832 * po/ko.po: Update from translation team.
1833
b8cc0848
AJ
18342008-01-11 Andreas Jaeger <aj@suse.de>
1835
1836 [BZ #5600]
1837 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
1838 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
1839 kernel header.
1840
49029a66
UD
18412008-01-10 Ulrich Drepper <drepper@redhat.com>
1842
1843 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
1844 native interface lookup in all the relevant places.
1845
99f05798
UD
18462008-01-10 Jakub Jelinek <jakub@redhat.com>
1847 Ulrich Drepper <drepper@redhat.com>
0efd1956
UD
1848
1849 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
1850 field. Use sockaddr_in6 for source_addr.
1851 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
1852 (match_prefix): Likewise.
1853 (get_label): Likewise.
1854 (get_precedence): Likewise.
1855 (rfc3484_sort): Change to use indirect access to results array.
1856 Adjust to use of sockaddr_in6. Replace service_order test with
1857 simple index comparison.
1858 (getaddrinfo): Define order array. Initialize it. Don't initialize
1859 service_order field. Adjust qsort_t calls. Access sorted result
1860 array indirectly through order array.
1861 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
1862 * posix/tst-rfc3484-2.c: Likewise.
1863 * posix/tst-rfc3484-3.c: Likewise.
1864
b3443701
UD
18652008-01-09 Ulrich Drepper <drepper@redhat.com>
1866
f6bacb8e
UD
1867 [BZ #5541]
1868 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
1869 pollfd structures.
1870 Patch by André Cruz.
1871
aa693c68
UD
1872 [BZ #5545]
1873 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
1874 (clnt_spcreateerror): Likewise.
1875
b3443701
UD
1876 [BZ #5553]
1877 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
1878 (public_mEMALIGn): Likewise.
1879 Patch mostly by Daniel Jacobowitz.
1880
148e12ed
UD
18812008-01-09 Jakub Jelinek <jakub@redhat.com>
1882
1883 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
1884 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
1885 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
1886 * stdlib/tst-makecontext2.c: New test.
1887
78c2bf0e 18882008-01-08 Jakub Jelinek <jakub@redhat.com>
4b1b449d
UD
1889
1890 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
1891 defined.
1892 (REINIT_PARAMS): Likewise. Undefine before end of file.
1893 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
1894 transliteration hooks and REINIT_PARAMS afterwards.
1895 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
1896 status.
1897 (REINIT_PARAMS): Define.
1898 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
1899 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
1900 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
1901 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
1902 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
1903 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
1904 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
1905 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
1906 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
1907 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
1908 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
1909 * iconvdata/tst-iconv7.c: New test.
1910
71edcafa
UD
19112008-01-07 Ulrich Drepper <drepper@redhat.com>
1912
1913 * libio/stdio.h (vscanf): Fix definition for loser compilers.
1914
0fbfe2f7
JJ
19152008-01-05 Jakub Jelinek <jakub@redhat.com>
1916
1917 [BZ #5112]
1918 * nscd/connections.c (restart): Fix condition.
1919
8726a12e
UD
19202008-01-03 Jakub Jelinek <jakub@redhat.com>
1921
1922 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
1923 __ctype_toupper_loc): Add __THROW.
1924
f4a1363e
UD
19252008-01-02 Ulrich Drepper <drepper@redhat.com>
1926
ad586879
UD
1927 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
1928 recognition of interface family.
1929
f4a1363e
UD
1930 * posix/getconf.c: Update copyright year.
1931 * nss/getent.c: Likewise.
1932 * iconv/iconvconfig.c: Likewise.
1933 * iconv/iconv_prog.c: Likewise.
1934 * elf/ldconfig.c: Likewise.
1935 * catgets/gencat.c: Likewise.
1936 * csu/version.c: Likewise.
1937 * elf/ldd.bash.in: Likewise.
1938 * elf/sprof.c (print_version): Likewise.
1939 * locale/programs/locale.c: Likewise.
1940 * locale/programs/localedef.c: Likewise.
1941 * nscd/nscd.c (print_version): Likewise.
1942 * debug/xtrace.sh: Likewise.
1943 * malloc/memusage.sh: Likewise.
1944 * malloc/mtrace.pl: Likewise.
1945 * debug/catchsegv.sh: Likewise.
1946
0dc6c5e4
UD
19472007-12-26 Ulrich Drepper <drepper@redhat.com>
1948
1949 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
1950 second lookup.
1951
80af8b82
UD
19522007-12-23 Ulrich Drepper <drepper@redhat.com>
1953
1954 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
1955 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
1956
4bcecfb7
RM
19572007-12-17 Roland McGrath <roland@redhat.com>
1958
1959 * inet/ether_line.c (ether_line): Remove unused variable.
1960
19612007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
1962
1963 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
1964 and winp.
1965 * login/openpty.c (openpty): Likewise.
1966 * login/pty.h (openpty, forkpty): Likewise.
1967 * manual/terminal.texi (openpty, forkpty): Likewise.
1968
4cd4c5d6
UD
19692007-12-17 Ulrich Drepper <drepper@redhat.com>
1970
78c2bf0e 1971 * malloc/malloc.c (public_cALLOc): For arenas other than
4cd4c5d6
UD
1972 main_arena, count all bytes inside the mprotect_size range of the
1973 heap as uninitialized.
1974
68631c8e
UD
19752007-12-16 Ulrich Drepper <drepper@redhat.com>
1976
d9961b6a
UD
1977 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
1978 executable stacks.
1979
68631c8e
UD
1980 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
1981 mTRIm for all of them.
1982 (mTRIm): Additionally iterate over all free blocks and use madvise
1983 to free memory for all those blocks which contain at least one
1984 memory page.
be8c1500
UD
1985 * malloc/tst-trim1.c: New file.
1986 * malloc/Makefile (tests): Add tst-trim1.
68631c8e
UD
1987
1988 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
1989
78b767a0
UD
19902007-12-14 Ulrich Drepper <drepper@redhat.com>
1991
1992 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
1993 First cast argument to long
52386be7
UD
1994 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
1995 Return long.
1996 (__vdso_clock_gettime): Likewise.
78b767a0
UD
1997 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
1998 return long.
1999
bc3e1c12
UD
20002007-12-13 Ulrich Drepper <drepper@redhat.com>
2001
2002 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
2003 * locale/nl_langinfo_l.c: Real implementation, copied from
2004 nl_langinfo.c.
2005 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
2006
77751669
UD
20072007-12-01 Jim Meyering <meyering@redhat.com>
2008
2009 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
2010 that would inhibit utf8-optimization of a regexp containing line-
2011 or buffer-anchors, e.g., `^', `$'.
2012
f63e5063
UD
20132007-12-12 Ulrich Drepper <drepper@redhat.com>
2014
2015 * time/bug-getdate1.c (do_test): Don't use century values which
2016 aren't valid on 32-bit systems.
2017
a78814a9
UD
20182007-12-12 Jakub Jelinek <jakub@redhat.com>
2019
2020 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
2021 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
2022 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
2023 __strcat_g, __strncat_g): Add __asm__.
2024
20252007-12-12 Ulrich Drepper <drepper@redhat.com>
2026
2027 [BZ #5477]
2028 * io/fchmodat.c: Fix typo in stub_warning use.
2029 Patch by Petr Salinger.
2030
17edb30c
UD
20312007-12-11 Ulrich Drepper <drepper@redhat.com>
2032
58d11795
UD
2033 * iconvdata/hp-thai8.c: New file.
2034 * iconvdata/Makefile: Add rules for hp-thai8.c.
2035 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
2036 * iconvdata/gconv-modules: Likewise.
2037
2038 [BZ #5464]
2039 * iconvdata/hp-greek8.c: New file.
2040 * iconvdata/Makefile: Add rules for hp-greek8.c.
2041 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
2042 * iconvdata/gconv-modules: Likewise.
2043
2044 [BZ #5463]
2045 * iconvdata/hp-turkish8.c: New file.
2046 * iconvdata/Makefile: Add rules for hp-turkish8.c.
2047 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
2048 * iconvdata/gconv-modules: Likewise.
2049
cbf5760e
UD
2050 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
2051 (shrink_heap): ... this new function.
2052 (heap_trim): Call shrink_heap instead of grow_heap.
2053
17edb30c
UD
2054 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
2055 case don't call alloc_perturb.
2056
ae18718f
UD
20572007-12-10 Ulrich Drepper <drepper@redhat.com>
2058
2059 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
2060 possible.
2061 * sysdeps/unix/sysv/linux/kernel-features.h
2062 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
2063 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
2064
b4354cf4
UD
20652007-12-08 Ulrich Drepper <drepper@redhat.com>
2066
2067 [BZ #5424]
2068 * stdio-common/vfprintf.c: Do not overflow when adding to done.
2069 * stdio-common/Makefile (tests): Add bug22.
2070 * stdio-common/bug22.c: New file.
2071
2072 [BZ #5451]
2073 * time/getdate.c: Fix filling in default values.
2074 * time/bug-getdate1.c: New file.
2075 * time/Makefile: Add rules to build and run bug-getdate1.
2076
2077 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
2078 * iconvdata/ebcdic-es.c: Likewise.
2079 * iconvdata/ebcdic-es-a.c: Likewise.
2080 * iconvdata/ebcdic-uk.c: Likewise.
2081 * iconvdata/iso8859-16.c: Likewise.
2082 * iconvdata/viscii.c: Likewise.
2083 * iconvdata/iso8859-9e.c: Likewise.
2084 * iconvdata/Makefile: Adjust appropriately.
2085
2086 [BZ #5428]
2087 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
2088 __need_wint_t.
2089
26e21e75
UD
20902007-12-07 Ulrich Drepper <drepper@redhat.com>
2091
87520ccc
UD
2092 [BZ #5427]
2093 * iconvdata/hp-roman9.c: New file.
2094 * iconvdata/Makefile: Add rules for hp-roman9.c.
2095 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
b4354cf4 2096 * iconvdata/gconv-modules: Likewise.
87520ccc
UD
2097
2098 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
2099 * iconvdata/Makefile: Adjust appropriately.
2100
26e21e75
UD
2101 [BZ #5441]
2102 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
2103 structure, it's allocated with alloca.
2104 * stdio-common/Makefile (tests): Add bug21.
2105 * stdio-common/bug21.c: New file.
2106
21072007-12-06 Aurelien Jarno <aurelien@aurel32.net>
2108
2109 [BZ #5452]
2110 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
87520ccc 2111 keyword for gcc's braced-groups.
26e21e75
UD
2112
21132007-12-07 Ulrich Drepper <drepper@redhat.com>
2114
2115 [BZ #5454]
2116 * inet/ether_line.c: Strip hostname of whitespaces.
2117 * inet/Makefile (tests): Add tst-ether_line.
2118 * inet/tst-ether_line.c: New file.
2119
9e80c123
UD
21202007-12-03 Ulrich Drepper <drepper@redhat.com>
2121
da0ff4ae
UD
2122 [BZ #5439]
2123 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
2124
51bd20d9
UD
2125 [BZ #5435]
2126 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
2127
d90d0256
UD
2128 * stdlib/tst-setcontext.c: Catch the case where the links gets
2129 messed up and we do not reach main again.
2130
9e80c123
UD
2131 * po/ca.po: Update from translation team.
2132
ae4287f8
UD
21332007-11-26 Ulrich Drepper <drepper@redhat.com>
2134
6701afc7 2135 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
79fb2e02 2136 * posix/regex.h (REG_ENOSYS): Likewise.
a912a4f8 2137 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
ae4287f8 2138
30294ea4
UD
21392007-11-25 Ulrich Drepper <drepper@redhat.com>
2140
2141 * nscd/nscd.h (MAX_STACK_USE): Define.
2142 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
2143 (gc): Initialize stack_used based on allocation in prune_cache.
2144 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
e8667ddc 2145 Clear array before use.
30294ea4
UD
2146
2147 * nscd/aicache.c (addhstaiX): Update statistics counter in case
10a4c1e9 2148 memory allocation failed.
e8667ddc
UD
2149 * nscd/hstcache.c (cache_addhst): Likewise.
2150 * nscd/grpcache.c (cache_addgr): Likewise.
2151 * nscd/servicescache.c (cache_addserv): Likewise.
2152 * nscd/pwdcache.c (cache_addpw): Likewise.
2153 * nscd/initgrcache.c (addinitgroupsX): Likewise.
30294ea4 2154
715db78b
UD
21552007-11-23 Ulrich Drepper <drepper@redhat.com>
2156
609bb071
UD
2157 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
2158 and creat system calls.
2159
715db78b
UD
2160 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
2161
ea2c47b6
UD
21622007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
2163
2164 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
2165 Add netiucv/iucv.h.
2166 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
2167 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
2168 protocol.
2169 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
2170 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
2171 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
2172
dcdcf4b9
UD
21732007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
2174
37143323
UD
2175 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
2176 strncat): Define as macros to avoid compile errors.
2177
dcdcf4b9
UD
2178 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
2179 creat entries.
2180
3a632674
UD
21812007-11-22 Ulrich Drepper <drepper@redhat.com>
2182
7ea8eb02
UD
2183 [BZ #5382]
2184 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
2185 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
715db78b 2186 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7ea8eb02 2187 overflow it.
70d5b6ef 2188 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7ea8eb02
UD
2189
2190 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
715db78b 2191 Return zero in case the thread library is not NPTL.
7ea8eb02 2192
5c3a3dba
UD
2193 [BZ #5375]
2194 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
2195 initializing interface list.
2196
85883123
UD
2197 [BZ #5378]
2198 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
2199 use result of nss_getgrgid_r if nothing was found. For other
2200 error return with a failure.
2201 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
2202
3a632674
UD
2203 * locale/programs/ld-collate.c (collate_read): Fix loop to match
2204 macro name.
2205
b73f9135
UD
22062007-11-19 Ulrich Drepper <drepper@redhat.com>
2207
ee72b971
UD
2208 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
2209 (get_scope): For IPv4 scope, use scopes table.
2210 (fini): Free scopes table if necessary.
2211 (free_scopelist): New function.
2212 (scopecmp): New function.
2213 (gaiconf_init): Also handle scopev4 entries.
2214 * posix/tst-rfc3484.c (do_test): Initialize scopes.
2215 * posix/tst-rfc3484-2.c (do_test): Likewise.
2216 * posix/gai.conf: Document scopev4 defaults.
2217 * posix/Makefile (tests): Add tst-rfc3484-3.
2218 * posix/tst-rfc3484-3.c: New file.
2219
f4a79765
UD
2220 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
2221 Teredo tunnels.
b73f9135
UD
2222 * posix/gai.conf: Update for current default tables.
2223
429bd64d
UD
22242007-11-19 Ulrich Drepper <drepper@redhat.com>
2225
2226 * po/tr.po: Update from translation team.
2227
3c9af259
RM
22282007-11-18 Roland McGrath <roland@frob.com>
2229
76cf9889
RM
2230 * manual/arith.texi (Remainder Functions): Spelling fix.
2231 From Shaun Silk <genix@mysoul.com.au>.
2232
3c9af259
RM
2233 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
2234
238346ab
UD
22352007-11-17 Ulrich Drepper <drepper@redhat.com>
2236
5879ad50
UD
2237 * po/zh_CN.po: Update from translation team.
2238
238346ab
UD
2239 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
2240 Add sys/signalfd.h and sys/eventfd.h.
2241
b80b9c77
UD
22422007-11-15 Bruno Haible <bruno@clisp.org>
2243
2244 [BZ #5346]
2245 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
2246 union.
2247 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
2248 (DCIGETTEXT): Change the allocation of the 'search' variable so that
2249 it needs only fixed stack space. Delay the initialization of
2250 msgid_len until it is needed.
2251
2da2501c
AJ
22522007-11-15 Andreas Jaeger <aj@suse.de>
2253
2254 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
2255 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
2256
68a6dcf5
UD
22572007-11-15 Ulrich Drepper <drepper@redhat.com>
2258
2259 * po/ko.po: Update from translation team.
2260
43850227
UD
22612007-11-14 Ulrich Drepper <drepper@redhat.com>
2262
1e2692c9
UD
2263 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
2264 significantly. The device type is also part of the ifinfomsg data.
2265
84e6cc7c 2266 * po/sv.po: Update from translation team.
cbd52634 2267 * po/nl.po: Likewise.
84e6cc7c 2268
f9e2261b
UD
2269 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
2270 to wake up in 24 hours.
2271
43850227
UD
2272 * nscd/gai.c (__ioctl): Define. Include check_native.c.
2273
5742e960
UD
22742007-11-13 Ulrich Drepper <drepper@redhat.com>
2275
1a821d82
UD
2276 * po/cs.po: Update from translation team.
2277 * po/pl.po: Likewise.
2278
773e79b3
UD
2279 * include/ifaddrs.h: Remove in6ai_temporary.
2280 (struct in6addrinfo): Add index element.
2281 Declare __check_native.
2282 * inet/Makefile (aux): Add check_native.
2283 * sysdeps/unix/sysv/linux/check_native.c: New file.
2284 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
2285 IFA_F_TEMPORARY. Pass back ifa_index.
2286 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
2287 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
2288 call __check_native if necessary.
2289 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
2290 to sort addresses. Pass information about the results.
2291 * posix/tst-rfc3484.c: Adjust for addition of index field and change
2292 of rfc3484_sort interface.
2293 * posix/tst-rfc3484-2.c: Likewise.
2294
e458144c
UD
2295 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
2296 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
2297 for _quicksort.
2298 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
2299 (qsort_r): Renamed from qsort. Take additional parameter and pass it
2300 on as third parameter to compare function and _quicksort.
2301 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
2302 to the compare function.
2303 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
2304 * Versions.def: Add GLIBC_2.8 for libc.
2305
bd63f380
UD
2306 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
2307 * posix/tst-rfc3484-2.c: Likewise.
2308
5742e960
UD
2309 * include/kernel-features.h: Moved to...
2310 * sysdeps/mach/hurd/kernel-features.h: ...here.
2311
a6ac7fdb
RM
23122007-09-13 H.J. Lu <hongjiu.lu@intel.com>
2313
2314 * sysdeps/i386/i586/memcpy_chk.S: New file.
2315 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
2316 * sysdeps/i386/i586/memset_chk.S: Likewise.
2317
6f3914d5
UD
23182007-11-12 Ulrich Drepper <drepper@redhat.com>
2319
2320 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
2321 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
2322 list of interfaces. Also store prefix length.
2323 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
2324 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
2325 prefix if source and destination address are in the same subnet.
2326 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
2327 Always look for matching record in in6ai list.
2328 Correct source_addr_len value for IPv6->IPv4 converted records.
2329
78cf5f6a
RM
23302007-11-11 Roland McGrath <roland@frob.com>
2331
2332 * include/kernel-features.h: New file.
2333
7f745396
UD
23342007-11-10 Ulrich Drepper <drepper@redhat.com>
2335
01e7fdbb
UD
2336 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
2337 complications for 64-bit platforms.
2338
7f745396
UD
2339 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
2340 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
2341 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
2342 open64_2.
2343 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
2344 entries.
2345 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2346 * sysdeps/wordsize-64/alphasort.c: New file.
2347 * sysdeps/wordsize-64/alphasort64.c: New file.
2348 * sysdeps/wordsize-64/fseeko.c: New file.
2349 * sysdeps/wordsize-64/fseeko64.c: New file.
2350 * sysdeps/wordsize-64/ftello.c: New file.
2351 * sysdeps/wordsize-64/ftello64.c: New file.
2352 * sysdeps/wordsize-64/ftw.c: New file.
2353 * sysdeps/wordsize-64/ftw64.c: New file.
2354 * sysdeps/wordsize-64/iofgetpos.c: New file.
2355 * sysdeps/wordsize-64/iofgetpos64.c: New file.
2356 * sysdeps/wordsize-64/iofopen.c: New file.
2357 * sysdeps/wordsize-64/iofopen64.c: New file.
2358 * sysdeps/wordsize-64/iofsetpos.c: New file.
2359 * sysdeps/wordsize-64/iofsetpos64.c: New file.
2360 * sysdeps/wordsize-64/lockf.c: New file.
2361 * sysdeps/wordsize-64/lockf64.c: New file.
2362 * sysdeps/wordsize-64/mkostemp.c: New file.
2363 * sysdeps/wordsize-64/mkostemp64.c: New file.
2364 * sysdeps/wordsize-64/mkstemp.c: New file.
2365 * sysdeps/wordsize-64/mkstemp64.c: New file.
2366 * sysdeps/wordsize-64/scandir.c: New file.
2367 * sysdeps/wordsize-64/scandir64.c: New file.
2368 * sysdeps/wordsize-64/tmpfile.c: New file.
2369 * sysdeps/wordsize-64/tmpfile64.c: New file.
2370 * sysdeps/wordsize-64/versionsort.c: New file.
2371 * sysdeps/wordsize-64/versionsort64.c: New file.
2372 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
2373 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
2374 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
2375 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
2376 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
2377 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
2378 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
2379 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
2380 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
2381 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
2382 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
2383 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
2384
2385 * crypt/sha256-crypt.c: Fix a comment.
2386 * crypt/sha512-crypt.c: Likewise.
2387
f6ed654c
UD
23882007-11-07 H.J. Lu <hongjiu.lu@intel.com>
2389
2390 * sysdeps/x86_64/memset.S: Add sfence after movnti.
2391
f2a8406a
UD
23922007-11-07 Ulrich Drepper <drepper@redhat.com>
2393
2394 [BZ #5277]
2395 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
2396 because output buffer is too small break, don't loop.
2397 * iconvdata/Makefile (tests): Add bug-iconv6.
2398 * iconvdata/bug-iconv6.c: New file.
2399
7fe4e0e8
UD
24002007-11-06 Ulrich Drepper <drepper@redhat.com>
2401
9ca230d6
UD
2402 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
2403 with size_t type.
2404 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
2405 size_t. Add casts where needed.
2406
7fe4e0e8
UD
2407 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
2408 old headers, don't call avc_has_perm if we don't have the
2409 permission information.
2410
b92e3780
UD
24112007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
2412
2413 * elf/rtld.c (dl_main): Use the page size to find the map start.
2414
ffb1b882
UD
24152007-11-05 Ulrich Drepper <drepper@redhat.com>
2416
94a749f6
UD
2417 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
2418 Patch by Szymon Siwek <sls@poczta.wp.pl>.
2419
ffb1b882
UD
2420 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
2421 when the lookup call failed.
2422
2423 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
2424 Add prune_cond and wakeup_time.
2425 (CACHE_PRUNE_INTERNAL): Define.
2426 Update declarations of prune_cache and setup_thread.
2427 * nscd/connections.c (dbs): Update initializers.
2428 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
2429 (nscd_init): Default number of threads is now 4.
2430 (invalidate_cache): Take lock before calling prune_cache.
2431 (handle_request): If SELinux forbids the request, say so.
2432 (readylist_cond): Use static initializer.
2433 (nscd_run_prune): New function. Used only by pruning threads.
2434 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
2435 here.
2436 (fd_ready): Update nscd_run reference.
2437 (start_threads): No need to initialize readylist_cond.
2438 Start pruning threads separately.
2439 * nscd/nscd_setup_thread.c: Change return value type to int and always
2440 return 0.
2441 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
2442 to int and return nonzero value if we can use the TID address hack.
2443 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
2444 the database is later than the new entry's timeout, update the
2445 wakeup time and wake the cleanup thread.
2446 (prune_cache): Return seconds the next entry in the database is still
2447 valid. Remove locking for pruning here.
2448 * nscd/nscd.conf: Document default number of threads.
2449
4c48ef06
UD
24502007-10-31 Ulrich Drepper <drepper@redhat.com>
2451
41ff2a49
UD
2452 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
2453 stack is properly aligned for the target function.
2454 Correct unwind info.
ffb1b882 2455
4c48ef06
UD
2456 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
2457 when using auditing libraries.
2458
384ca551
UD
24592007-10-29 Ulrich Drepper <drepper@redhat.com>
2460
31e2791c
UD
2461 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
2462 _nss_dns_getnetbyaddr2_r.
2463 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
2464 extra parameter to getanswer_r.
2465 (_nss_dns_getnetbyaddr_r): Now a wrapper around
2466 _nss_dns_getnetbyaddr2_r.
2467
384ca551
UD
2468 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
2469 gethstbynm3_r.
2470 * nscd/gethstbynm2_r.c: Remove.
2471 * nscd/gethstbynm3_r.c: New file.
2472 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
2473 __gethostbyaddr_r.
2474 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
2475 __gethostbyaddr_r compatibility wrapper.
2476 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
2477 determining timeout of entry.
2478 (lookup): Take new parameter and pass it to __gethostbyname3_r and
2479 __gethostbyaddr2_r.
2480 (addhstbyX): Pass reference to variable for TTL to lookup and
2481 cache_addhst.
2482 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
2483 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
2484 and __nss_next2. Remove __nss_services_lookup.
2485 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
2486 Add compat wrapper.
2487 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
2488 __nss_next2.
2489 * nss/getXXent_r.c: Likewise.
2490 * nss/getnssent_r.c: Likewise.
2491 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
2492 does not exist in module, try the optional second name.
2493 (__nss_next2): New function.
2494 (__nss_next): Now wrapper around __nss_next2.
2495 * nss/nsswitch.h: Adjust __nss_lookup prototype.
2496 Declare __nss_next2.
2497 Adjust definition of db_lookup_function type.
2498 * nss/service-lookup.c: Define NO_COMPAT.
2499 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
2500 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
2501 * inet/ether_ntoh.c: Likewise.
2502 * sunrpc/netname.c: Likewise.
2503 * sunrpc/publickey.c: Likewise.
2504 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
2505 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
2506 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
2507 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
2508 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
2509
2510 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
2511
2512 * inet/getnetgrent.c (setup): Encrypt static pointer.
2513
88197030
UD
25142007-10-28 Ulrich Drepper <drepper@redhat.com>
2515
f160a450
UD
2516 [BZ #5204]
2517 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
2518 * crypt/sha512c-test.c: Likewise.
2519
4c6b2202
UD
2520 [BZ #5225]
2521 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
2522 to keep track of end of %[ format string element.
22c915ac
UD
2523 * stdio-common/Makefile (tests): Add bug20.
2524 * stdio-common/bug20.c: New file.
4c6b2202 2525
88197030
UD
2526 [BZ #5222]
2527 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
2528 path elements in counting mode.
2529
05d69147
UD
25302007-10-27 Andreas Jaeger <aj@suse.de>
2531
94833f11
UD
2532 [BZ #5040]
2533 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
2534
05d69147
UD
2535 [BZ #3112]
2536 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
2537 (__cleanup): Free shared library when exiting.
2538 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
2539 (__cleanup): Free shared library when exiting.
2540
e6b29af8
UD
25412006-04-14 H.J. Lu <hongjiu.lu@intel.com>
2542
2543 [BZ #2549]
2544 * math/libm-test.inc (check_float_internal): Support
2545 denormalized return.
2546
ad3371fb
UD
25472007-10-23 Andreas Jaeger <aj@suse.de>
2548
2549 [BZ #5208]
2550 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
2551 __LONG_LONG_PAIR to handle little endian byte order.
2552 Suggested by abhishekrai@google.com
2553
666aa020
UD
25542007-10-27 Ulrich Drepper <drepper@redhat.com>
2555
2556 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
2557
8ad343b3
UD
25582007-10-26 Ulrich Drepper <drepper@redhat.com>
2559
2560 * nscd/cache.c (prune_cache): Move test for modified file outside
2561 of locking.
2562
9251c568
AJ
25632007-10-21 Andreas Jaeger <aj@suse.de>
2564
2565 * manual/texinfo.tex: Update to latest version.
2566
2567 * manual/sysinfo.texi (System Parameters): Fix Formatting.
2568
2569 * manual/arith.texi (Status bit operations): Fix formatting.
2570
2571 * manual/errno.texi (Error Messages): Fix formatting.
2572
2573 * manual/sysinfo.texi (System Parameters): Fix formatting.
2574
2575 * manual/libc.texinfo: Update VERSION and UPDATED.
2576
260b2e06
RM
25772007-10-19 Roland McGrath <roland@redhat.com>
2578
2579 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
2580
46ae8850
JJ
25812007-10-06 David S. Miller <davem@davemloft.net>
2582
2583 * configure.in: Add sparcv9v2 and sparc64v2.
2584 * scripts/config.sub: Likewise.
2585 * configure: Regenerate.
2586 * elf/elf.h (HWCAP_SPARC_N2): New.
2587 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
2588 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
2589 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
2590 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
2591 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
2592 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
2593 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
2594
6fbfbd80
UD
25952007-10-18 Ulrich Drepper <drepper@redhat.com>
2596
2597 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
2598 even if the poll result indicates there is data to read.
2599 Patch by Jeff Moyer <jmoyer@redhat.com>.
2600
39cfc9fa
RM
26012007-10-18 Roland McGrath <roland@redhat.com>
2602
2603 * elf/elf.h (NT_PPC_VMX): New macro.
28919a77 2604
39cfc9fa 26052007-10-17 Ulrich Drepper <drepper@redhat.com>
28919a77
UD
2606
2607 * version.h (VERSION): Set to 2.7.90.
2608
ed13ccf1
JJ
26092007-10-17 Jakub Jelinek <jakub@redhat.com>
2610
2611 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
2612 weak_alias.
2613
ee9fd869
RM
26142007-10-17 Roland McGrath <roland@frob.com>
2615
2616 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
2617 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
2618
1aa5e4d7
UD
26192007-10-17 Ulrich Drepper <drepper@redhat.com>
2620
50c9fbbf 2621 * version.h (VERSION): Bump to 2.7.
777bc4bf 2622 * include/features.h (__GLIBC_MINOR__): Bump to 7.
50c9fbbf 2623
58423c7d
UD
2624 [BZ #5186]
2625 * time/tzset.c (__tz_convert): Don't force testing for a change of
2626 TZ if not called from localtime. But then also see whether the
2627 file changed, in case __use_tzfile is set.
2628
1aa5e4d7
UD
2629 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
2630 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2631 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2632 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2633 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2634 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2635 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2636 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
2637
fc4837e5
UD
26382007-10-17 Jakub Jelinek <jakub@redhat.com>
2639
2640 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
2641 and admin selects to be able to replace the gai.conf file, lock
2642 data structures around the qsort call.
2643
62eaf7c8
UD
26442007-10-17 Ulrich Drepper <drepper@redhat.com>
2645
406f28db
UD
2646 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
2647 new memset.
ac1cb5da 2648 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
406f28db
UD
2649 too high for the improvements. Implement bzero unconditionally for
2650 use in libc.
ac1cb5da
UD
2651
26522007-10-17 Ulrich Drepper <drepper@redhat.com>
2653 Jakub Jelinek <jakub@redhat.com>
2654
62eaf7c8
UD
2655 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
2656 even when time_t is 32-bit.
2657 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
2658 timezone data read by __tzfile_default. Ensure __tzname[0] is
2659 always set after the search.
2660
6a649d25
UD
26612007-10-16 Ulrich Drepper <drepper@redhat.com>
2662
2663 * time/tzfile.c (__tzfile_read): Help the compiler recognize
2664 unreachable code on 32-bit machines.
2665
800d6f9e
UD
26662007-10-16 Jakub Jelinek <jakub@redhat.com>
2667
2668 [BZ #5184]
2669 * time/strftime_l.c: Include stdbool.h.
2670 (my_strftime): New wrapper, old function renamed to...
2671 (__strftime_internal): ... new function. Add tzset_called
2672 argument, pass it down to recursive calls, don't call tzset ()
2673 if already true, set to true after call to tzset ().
62eaf7c8 2674
69819d92
UD
26752007-10-16 Ulrich Drepper <drepper@redhat.com>
2676
2677 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
2678 into account when copying TZ string.
2679
62eaf7c8
UD
26802007-10-16 Jakub Jelinek <jakub@redhat.com>
2681
2682 * time/tzfile.c (__tzfile_compute): For use_last case set i to
2683 num_transition rather than num_transitions - 1.
2684
0308ad66
JJ
26852007-10-16 Jakub Jelinek <jakub@redhat.com>
2686
8d137b60
JJ
2687 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
2688 PIC indirect jump.
2689
0308ad66
JJ
2690 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
2691 a local label rather than HIDDEN_JUMPTARGET.
2692
e2b393bc
UD
26932007-10-15 Ulrich Drepper <drepper@redhat.com>
2694
2695 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
2696 (init_cacheinfo): Initialize it.
2697 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
2698 Always define bzero.
2699 Remove non-glibc code.
2700 * sysdeps/x86_64/bzero.S: Make an empty file.
2701
27022007-10-15 H.J. Lu <hongjiu.lu@intel.com>
2703
2704 * sysdeps/x86_64/cacheinfo.c
2705 (__x86_64_preferred_memory_instruction): New.
2706 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
2707
2708 * sysdeps/x86_64/memset.S: Rewrite.
2709
0fbfcb7b
RM
27102007-10-15 Roland McGrath <roland@redhat.com>
2711
2712 * po/libc.pot: Regenerated.
2713
2884dad4
UD
27142007-10-15 Ulrich Drepper <drepper@redhat.com>
2715
e2b393bc 2716 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
d96a2216
UD
2717 pointers.
2718
2884dad4
UD
2719 [BZ #3425]
2720 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
2721 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
2722 address record to T_A/T_AAAA requests.
2723
89dc9d4c
UD
27242007-10-14 Ulrich Drepper <drepper@redhat.com>
2725
8d97ac13
UD
2726 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
2727
1b6aa63f
UD
2728 * posix/glob.c: Add some branch prediction throughout.
2729
895a08c0
UD
2730 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
2731 read from nscd.
2732
6f55ed88
UD
2733 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
2734 service_order.
8d62c8ab
UD
2735 (rfc3484_sort): Make sure that even if qsort doesn't support
2736 stable sorting out sorting here is stable by comparing service_order.
6f55ed88 2737 (getaddrinfo): Initialize service_order.
a94673e6
UD
2738 * posix/tst-rfc3484.c (do_test): Adjust for addition of
2739 service_order field to sorting structure.
dfcf64ce 2740 * posix/tst-rfc3484-2.c (do_test): Likewise.
6f55ed88 2741
fa76dde2
UD
2742 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
2743 * time/tzset.c (tzset_internal): Break TZ string parsing out into
2744 __tzset_parse_tz and updating of daylight, timezone, tzname into
2745 update_vars.
2746 (__tz_compute): Renamed from tz_compute. Take additional parameters.
2747 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
2748 happens in __tz_compute.
2749 * time/tzfile.c (__tzfile_read): Also read TZ string.
2750 (find_transition): Fold into __tzfile_compute.
2751 (__tzfile_compute): For times beyond the last transition try to
2752 use the TZ string.
2753 * timezone/tst-timezone.c: Information in daylight and tzname does
2754 change for Asia/Tokyo timezone with more concrete information.
2755 Remove the test.
2756
2757 * include/stdio.h: Add libc_hidden_proto for ftello.
2758 * libio/ftello.c: Add libc_hidden_def.
2759
89dc9d4c
UD
2760 [BZ #1140]
2761 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
2762 on the specified time and not the last entries in the file. Move
2763 code to determine tzname[] to...
2764 (find_transition): ...here. Add ugly guess for times before the
2765 first transition.
2766
f7140274
UD
27672007-10-13 Ulrich Drepper <drepper@redhat.com>
2768
cfca0aa3
UD
2769 [BZ #3195]
2770 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
2771 no entry.
2772 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
2773 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
2774 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
2775 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
2776
43d3e6bd
UD
2777 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
2778 read mechanism when there are no group members and avoid no-op
2779 read syscall in this case.
2780
f7140274
UD
2781 [BZ #3242]
2782 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
2783 (__readall): If reading failed due to EAGAIN error wait a bit
2784 and possibly try again.
2785 (__readvall): Likewise.
2786
656f02ce
UD
27872007-10-13 Bruno Haible <bruno@clisp.org>
2788
2789 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
2790 when we cannot recode the message.
2791
0ea49677
UD
27922007-10-13 Ulrich Drepper <drepper@redhat.com>
2793
2794 [BZ #4359]
2795 * libio/__freading.c (__freading): Don't return true for
ed36f224
UD
2796 write-only streams. For read/write streams, check whether we
2797 performed a read operation already.
7e39d802
UD
2798 * libio/Makefile (tests): Add tst-ext2.
2799 * libio/tst-ext2.c: New file.
0ea49677 2800
78a9b2dc
UD
28012007-10-12 Ulrich Drepper <drepper@redhat.com>
2802
fab1a490
UD
2803 * locale/programs/repertoire.c (repertoire_read): Always free
2804 memory for repertoire file name [Coverity CID 270].
2805
78a9b2dc
UD
2806 * elf/cache.c (save_aux_cache): Free memory allocated for
2807 temporary file name [Coverity CID 267].
2808
29d49a1a
JJ
28092007-10-12 Jakub Jelinek <jakub@redhat.com>
2810
2811 * misc/Makefile (headers): Add bits/error.h.
2812
d074d36d
UD
28132007-10-12 Ulrich Drepper <drepper@redhat.com>
2814
b7d1c5fa
UD
2815 * posix/fnmatch_loop.c: Take rule index returned as part of
2816 findidx return value into account when accessing weights.
2817 * posix/regcomp.c: Likewise.
2818 * posix/regexec.c: Likewise.
2819
d074d36d
UD
2820 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
2821 (skip_to): Fix problems with parameter of elifdef/elifndef.
2822
26a51060
UD
28232007-10-11 Ulrich Drepper <drepper@redhat.com>
2824
2825 * iconv/gconv_simple.c: Add some branch prediction.
2826
6dd3748b
UD
28272007-10-12 Jakub Jelinek <jakub@redhat.com>
2828
2829 * locale/programs/ld-collate.c (collate_read): If ignore_content
2830 and nowtok is tok_define, eat any tok_eol tokens.
2831
d0b5557d
JJ
28322007-10-11 Jakub Jelinek <jakub@redhat.com>
2833
2834 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
2835 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
2836
2837 * inet/netinet/in.h: Don't include bits/socket.h.
2838 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
2839 macro.
2840 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
2841
3a054d7a
UD
28422007-10-10 Ulrich Drepper <drepper@redhat.com>
2843
2844 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
2845 and tok_elifndef.
2846 * locale/programs/locfile-kw.gperf: Likewise.
2847 * locale/programs/ld-collate.c: Implement primitive preprocessor.
2848
c06b7169
UD
28492007-10-10 Jakub Jelinek <jakub@redhat.com>
2850
2851 * stdio-common/printf-parse.h: Include string.h and wchar.h.
2852 (__find_specwc): Change into __extern_always_inline function.
2853 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
2854 (__parse_one_specmb): Remove ps argument.
2855 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
2856 Adjust __find_specmb and __parse_one_specmb callers.
2857 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
2858 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
2859 Removed.
2860 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
2861 caller.
2862
5a01ab7b
UD
28632007-10-09 Ulrich Drepper <drepper@redhat.com>
2864
2865 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
2866 with some Pentium Ds.
2867
e3f8e049
UD
28682007-10-08 Ulrich Drepper <drepper@redhat.com>
2869
2870 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
2871 __read not read.
2872 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
2873 __write not write.
2874
a1a363d2
UD
28752007-10-07 Ulrich Drepper <drepper@redhat.com>
2876
a1160714
UD
2877 [BZ #181]
2878 * locale/C-time.c: Set week_1stday data to 19971201.
659a9013
UD
2879 * locale/programs/ld-time.c (time_finish): Default for
2880 first_workday is Monday.
a1160714 2881
bb27a6eb
UD
2882 [BZ #2633]
2883 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
2884
c8d48fae
UD
2885 [BZ #5103]
2886 * posix/glob.c (glob): Recognize patterns starting \/.
2887 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
2888 (main): Add test for pattern starting \/.
2889
a1a363d2
UD
2890 * misc/error.h: Use __const instead of const.
2891 * misc/bits/error.h: Likewise.
2892
28932007-10-07 Andreas Jaeger <aj@suse.de>
2894
2895 * include/bits/error.h: New file.
2896
2897 * misc/bits/error.h (error_at_line): Fix prototype.
2898
71894681
UD
28992007-10-06 Ulrich Drepper <drepper@redhat.com>
2900
a6fa5328
UD
2901 [BZ #3924]
2902 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
2903 more little bugs in creating the stack frame when pltexit has to
2904 be called.
2905
8c7661bc 2906 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
50607309 2907 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8c7661bc 2908
c039eedd
UD
2909 [BZ #4407]
2910 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
2911 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
2912 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2913 * math/libm-test.inc: Add test for this case.
2914
71894681
UD
2915 [BZ #5010]
2916 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
2917 (svc_register): Initialize sc_mapped. Set to TRUE if call to
2918 map service succeeded.
2919 (svc_is_mapped): New function.
2920 (svc_unregister): Use it before trying to unmap service.
2921
34c2c092
UD
29222007-10-05 Ulrich Drepper <drepper@redhat.com>
2923
d10737e4
UD
2924 * timezone/zic.c: Update from tzcode2007h.
2925
2926 [BZ #5063]
2927 * timezone/africa: Update from tzdata2007h.
2928 * timezone/antarctica: Likewise.
2929 * timezone/asia: Likewise.
2930 * timezone/australasia: Likewise.
2931 * timezone/europe: Likewise.
2932 * timezone/leapseconds: Likewise.
2933 * timezone/northamerica: Likewise.
2934 * timezone/southamerica: Likewise.
2935 * timzeone/zone.tab: Likewise.
2936
0304f168
UD
2937 [BZ #5104]
2938 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
2939
a83b5649
UD
2940 [BZ #5113]
2941 * string/bits/string2.h (__strdup): Cast parameters to calloc to
2942 avoid warning with -Wconversion.
2943 (__strndup): Likewise.
c039eedd 2944 Half the patch by Christian Iseli <christian.iseli@licr.org>.
a83b5649 2945
3e6ce4d7
UD
2946 [BZ #5112]
2947 * nscd/connections.c (restart): Don't resync if database is
2948 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
2949
8e351378
UD
2950 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
2951 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
2952
2953 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
2954 evetnfd_read, eventfd_write.
2955 * sysdeps/unix/sysv/linux/eventfd.c: New file.
2956 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
2957 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
2958 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
d10737e4 2959 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8e351378
UD
2960 eventfd_write for GLIBC_2.7.
2961
34c2c092
UD
2962 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
2963 * sysdeps/unix/sysv/linux/signalfd.c: New file.
2964 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
2965 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
2966
6789aaaa 29672007-10-04 Jakub Jelinek <jakub@redhat.com>
375d9429
UD
2968
2969 * stdlib/msort.c: Include stdint.h.
2970 (struct msort_param): New type.
2971 (msort_with_tmp): Use struct msort_param pointer for unchanging
2972 parameters. Add optimized handling for several common sizes
2973 and indirect sorting mode.
2974 (qsort): Adjust msort_with_tmp callers. For big S use indirect
2975 sorting.
2976 Suggested by Belazougui Djamel .
2977
2978 * stdlib/Makefile (tests): Add tst-qsort2.
2979 * stdlib/tst-qsort2.c: New test.
2980
b80bfc8b
UD
29812007-10-04 Ulrich Drepper <drepper@redhat.com>
2982
174420d2
UD
2983 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
2984 for dup2 in case another thread races with the current one. Retry
2985 in this case.
2986
b80bfc8b
UD
2987 * misc/error.h: Remove support for use outside of libc. We have to
2988 include <features.h> now. Include <bits/error.h> if possible.
2989 * misc/bits/error.h: New file.
2990
6789aaaa 29912007-10-03 Jakub Jelinek <jakub@redhat.com>
ee868c89 2992
e5dd2178
UD
2993 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
2994 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
2995 __extern_always_inline functions unconditionally, drop macros.
2996
ac97dec1
UD
2997 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
2998 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
2999 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
3000
ee868c89
UD
3001 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
3002 add __artificial__ attribute.
3003
80e069e0
UD
30042007-10-02 Ulrich Drepper <drepper@redhat.com>
3005
6e682cf5
UD
3006 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
3007 backward to forward direction.
3008
90241a20
UD
3009 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
3010
80e069e0
UD
3011 [BZ #645]
3012 * locale/programs/ld-collate.c (collate_finish): Compare against last
3013 used section which is known to have rules defined.
3014 (collate_read): After order_start, correctly record order of sections
3015 and queue sections up.
3016
035ef8d7
UD
30172007-10-01 Ulrich Drepper <drepper@redhat.com>
3018
95bddc0c
UD
3019 [BZ #5071]
3020 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
3021 the same number of pages.
3022 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
3023
c8caf089
UD
3024 * locale/programs/ld-collate.c (collate_read): After initial copy
3025 statement, continue in state 0.
3026
035ef8d7
UD
3027 * include/stdio_ext.h (__fsetlocking): Define as macro.
3028
592a95ee
UD
30292007-09-30 Ulrich Drepper <drepper@redhat.com>
3030
56ebeb41
UD
3031 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
3032 of section order.
3033
592a95ee
UD
3034 * po/pt_BR.po: Fix typo.
3035
6c522e21
UD
30362007-09-29 Ulrich Drepper <drepper@redhat.com>
3037
8ad5c3cd
UD
3038 * iconvdata/Makefile (modules): Add ISO8859-9E.
3039 (distribute): Add iso8859-9e.c.
3040 (gen-8bit-gap-modules): Add iso8859-9e.
3041 * iconvdata/iso8859-9e.c: New file.
3042 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
3043 * iconvdata/TESTS: Likewise.
3044 * iconvdata/tst-tables.sh: Likewise.
3045
3046 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3047
6c522e21
UD
3048 * locale/iso-639.def: Add several new entries.
3049
385b4cf4
UD
30502007-09-24 Jakub Jelinek <jakub@redhat.com>
3051
3052 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
3053 void * pointers instead of struct link_map **.
3054 (_dl_scope_free): Change argument type to void *.
3055 * include/link.h (struct link_map): Change type of l_reldeps
3056 to struct link_map_reldeps, move l_reldepsact into that
3057 struct too.
3058 * elf/dl-deps.c: Include atomic.h.
3059 (_dl_map_object_deps): Only change l->l_initfini when it is
3060 fully populated, use _dl_scope_free for freeing it. Optimize
3061 removal of libs from reldeps by using l_reserved flag, when
3062 some removal is needed, allocate a new list instead of
3063 reallocating and free the old with _dl_scope_free. Adjust
3064 for l_reldeps and l_reldepsact changes.
3065 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
3066 searching in l_initfini and l_reldeps without holding dl_load_lock.
3067 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
3068 l_reldepsact changes.
3069 * elf/dl-close.c (_dl_close_worker): Likewise.
3070 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
3071
90bf831b
UD
30722007-09-28 Ulrich Drepper <drepper@redhat.com>
3073
3074 * iconvdata/Makefile (modules): Add KOI8-RU.
3075 (distribute): Add koi8-ru.c.
3076 (gen-8bit-gap-modules): Add koi8-ru.
3077 * iconvdata/koi8-ru.c: New file.
3078 * iconvdata/gconv-modules: Add entries for KOI8-RU.
3079 * iconvdata/TESTS: Likewise.
3080 * iconvdata/tst-tables.sh: Likewise.
3081
3082 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3083
d6cd6bf4
UD
30842007-09-26 Jakub Jelinek <jakub@redhat.com>
3085
3086 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
3087 with __warning__/__error__ attributes.
3088 (__warnattr): Define.
3089 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
3090 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
3091 __warnattr.
3092 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
3093 of __*_chk if compile time detectable overflow is found.
3094 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
3095 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
3096 with __warnattr.
3097 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
3098 instead of __*_chk if compile time detectable overflow is found.
3099 (__gets_alias): Rename to...
3100 (__gets_warn): ... this. Add __warnattr.
3101 (gets): Call __gets_warn instead of __gets_alias.
3102 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
3103 aliases with __warnattr.
3104 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
3105 time detectable overflow is found.
3106 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
3107 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
3108 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
3109 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
3110 __getdomainname_chk_warn): New aliases with __warnattr.
3111 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
3112 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
3113 __*_chk_warn instead of __*_chk if compile time detectable overflow
3114 is found.
3115 (__getgroups_chk): Rename argument to __listlen from listlen.
3116 (__getwd_alias): Rename to...
3117 (__getwd_warn): ... this. Add __warnattr.
3118 (getwd): Call __getwd_warn instead of __getwd_alias.
3119 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
3120 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
3121 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
3122 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
3123 __wcsnrtombs_chk_warn): New aliases with __warnattr.
3124 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
3125 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
3126 compile time detectable overflow is found.
3127 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
3128 to use __*_chk or not.
3129 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
3130 in comparisons which function should be called and in __*_chk*
3131 arguments. Call __*_chk_warn instead of __*_chk if compile time
3132 detectable overflow is found.
3133 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
3134 __*_chk argument.
3135 * debug/tst-chk1.c (do_test): Add a few more tests.
3136
408cfca0
UD
31372007-09-24 Ulrich Drepper <drepper@redhat.com>
3138
3139 [BZ #5058]
3140 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
3141 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
3142 (_nl_unload_domain): Finalize conversions_lock.
3143 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
3144 handling table of known conversions.
3145
e6eec9ce
JJ
31462007-09-24 Jakub Jelinek <jakub@redhat.com>
3147
3148 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
3149 close_not_cancel_no_status instead of close.
3150
a532a41d
UD
31512007-09-13 Aurelien Jarno <aurelien@aurel32.net>
3152
682268ef 3153 [BZ #5028]
408cfca0 3154 * posix/regcomp.c (lookup_collation_sequence_value): Check that
a532a41d
UD
3155 nrules != 0 for multibyte chars.
3156
dec9ed9e
UD
31572007-09-23 Ulrich Drepper <drepper@redhat.com>
3158
91633816
UD
3159 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
3160 Provide better error message in case the type is unknown.
3161
9cc198f6
UD
3162 [BZ #4963]
3163 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
3164 * string/stratcliff.c: Make usable to test wide char functions.
3165 * wcsmbs/wcsatcliff.c: New file.
3166 * wcsmbs/Makefiel (tests): Add wcsatcliff.
3167
27f3d446
UD
3168 [BZ #4972]
3169 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
3170 (distribute): Add mac-centraleurope.c.
3171 (gen-8bit-gap-modules): Add mac-centraleurope.
3172 * iconvdata/mac-centraleurope.c: New file.
3173 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
3174 * iconvdata/TESTS: Likewise.
3175 * iconvdata/tst-tables.sh: Likewise.
3176
dec9ed9e
UD
3177 [BZ #5043]
3178 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
3179
0435403c
UD
31802007-09-21 Ulrich Drepper <drepper@redhat.com>
3181
3182 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
3183 from __x86_64_core_cache_size_half.
3184 (init_cacheinfo): Compute shared cache size for AMD processors with
3185 shared L3 correctly.
3186 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
3187 name change.
3188 Patch in large parts by Evandro Menezes.
3189
c3266dc0
UD
31902007-09-19 Ulrich Drepper <drepper@redhat.com>
3191
715899d1
UD
3192 * elf/dl-lookup.c (add_dependency): Handle failing memory
3193 allocation for dependency list. Remove unnecessary check.
3194
e1db0493
UD
3195 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
3196 open/close when determining source addresses.
3197
c3266dc0
UD
3198 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
3199 sha512-crypt, and sha512.
3200 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
3201 (distribute): Add sha256.h and sha512.h.
3202 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
3203 and call the appropriate code.
3204 * crypt/sha256-crypt.c: New file.
3205 * crypt/sha256.c: New file.
3206 * crypt/sha256.h: New file.
3207 * crypt/sha256c-test.c: New file.
3208 * crypt/sha256test.c: New file.
3209 * crypt/sha512-crypt.c: New file.
3210 * crypt/sha512.c: New file.
3211 * crypt/sha512.h: New file.
3212 * crypt/sha512c-test.c: New file.
3213 * crypt/sha512test.c: New file.
3214
ddf51ecb
JJ
32152007-09-19 Jakub Jelinek <jakub@redhat.com>
3216
3217 * misc/bits/syslog.h (syslog): Remove extraneous argument from
3218 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
3219 __syslog_chk.
3220
b90395e6
UD
32212007-09-18 Jakub Jelinek <jakub@redhat.com>
3222
76c0bea7
JJ
3223 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
3224 %as in fscanf format strings.
3225
00680568
JJ
3226 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
3227 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
c3266dc0
UD
3228 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
3229 Likewise.
3230 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
3231 Likewise.
00680568 3232
b90395e6
UD
3233 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
3234 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
3235 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
3236 * elf/dl-sym.c (do_sym): Likewise.
3237 * include/link.h (struct link_map): Add l_serial field.
3238 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
3239 * elf/dl-lookup.c (add_dependency): Add flags argument.
3240 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
3241 flags, use THREAD_GSCOPE_RESET_FLAG before and
3242 THREAD_GSCOPE_SET_FLAG after
3243 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
3244 Don't dereference map until it has been found on some list.
3245 If map->l_serial changed, return -1.
3246
874aa523
UD
32472007-09-17 Jakub Jelinek <jakub@redhat.com>
3248
3249 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
3250 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
3251 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
3252 libc_hidden_proto.
3253 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
3254 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
3255 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
3256 add libc_hidden_proto.
3257 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
3258 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
3259 conformance requested.
3260 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
3261 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
3262 conformance requested.
3263 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
3264 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
3265 conformance requested.
3266 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
3267 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
3268 ISO C99 or POSIX conformance requested.
3269 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
3270 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
3271 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
3272 and __isoc99_vsscanf@@GLIBC_2.7.
3273 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
3274 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
3275 (tests): Add scanf14.
3276 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
3277 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
3278 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
3279 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
3280 CFLAGS-isoc99_scanf.c): Add $(exceptions).
3281 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
3282 from using internal headers.
3283 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
3284 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
3285 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
3286 and __isoc99_vswscanf@@GLIBC_2.7.
3287 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
3288 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
3289 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
3290 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
3291 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
3292 * stdio-common/isoc99_scanf.c: New file.
3293 * stdio-common/isoc99_vsscanf.c: New file.
3294 * stdio-common/isoc99_vscanf.c: New file.
3295 * stdio-common/isoc99_vfscanf.c: New file.
3296 * stdio-common/isoc99_fscanf.c: New file.
3297 * stdio-common/isoc99_sscanf.c: New file.
3298 * wcsmbs/isoc99_fwscanf.c: New file.
3299 * wcsmbs/isoc99_vswscanf.c: New file.
3300 * wcsmbs/isoc99_swscanf.c: New file.
3301 * wcsmbs/isoc99_wscanf.c: New file.
3302 * wcsmbs/isoc99_vwscanf.c: New file.
3303 * wcsmbs/isoc99_vfwscanf.c: New file.
3304 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
3305 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
3306 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
3307 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
3308 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
3309 * stdio-common/scanf14.c: New test.
3310 * stdio-common/scanf15.c: New test.
3311 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
3312 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
3313 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
3314 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
3315 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
3316 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
3317 __nldbl___isoc99_scanf@@GLIBC_2.7,
3318 __nldbl___isoc99_fscanf@@GLIBC_2.7,
3319 __nldbl___isoc99_sscanf@@GLIBC_2.7,
3320 __nldbl___isoc99_vscanf@@GLIBC_2.7,
3321 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
3322 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
3323 __nldbl___isoc99_wscanf@@GLIBC_2.7,
3324 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
3325 __nldbl___isoc99_swscanf@@GLIBC_2.7,
3326 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
3327 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
3328 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
3329 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
3330 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
3331 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
3332 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
3333 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
3334 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
3335 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
3336 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
3337 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
3338 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
3339 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
3340 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
3341 functions.
3342 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
3343 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
3344 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
3345 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
3346 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
3347 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
3348 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
3349 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
3350 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
3351 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
3352 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
3353 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
3354
3355 * stdio-common/Makefile (tests): Add scanf13.
3356 (scanf13-ENV): New.
3357 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
3358 m modifier followed by l.
3359 (STRING_ARG): Add width argument.
3360 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
3361 <case L_('C')>: Handle %mlc and %mC.
3362 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
3363 arguments.
3364 * stdio-common/scanf13.c: New test.
3365
3366 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
3367 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
3368
883f7943
UD
33692007-09-18 Ulrich Drepper <drepper@redhat.com>
3370
3371 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
874aa523 3372 type and __THROW marker of splice, vmsplice, and tee.
883f7943
UD
3373 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3374 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3375 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3376 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3377 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3378 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
3379 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3380 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
3381 as cancellation points.
3382
3524efe0
UD
33832003-11-01 Daniel Jacobowitz <dan@debian.org>
3384
3385 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
3386 parse more than three parts of the version number.
3387
267c54dc
UD
33882007-09-15 Ulrich Drepper <drepper@redhat.com>
3389
3390 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
3391 modifier. Patch by Jakub Jelinek.
3392
5e17d6b7
UD
33932007-08-26 Jakub Jelinek <jakub@redhat.com>
3394
3395 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
3396 call_fallocate in misc subdir.
3397 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
3398 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
3399 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
3400 instead of __fallocate64.
3401 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
3402
3a50811c
UD
34032007-09-15 Jakub Jelinek <jakub@redhat.com>
3404
3405 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
3406 * rt/Makefile (headers): Add bits/mqueue2.h.
3407 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
3408 optimizing with GCC and __va_arg_pack_len is defined.
3409 * rt/bits/mqueue2.h: New file.
3410 * rt/mq_open.c (__mq_open): Renamed from mq_open.
3411 (mq_open): New strong_alias.
3412 (__mq_open_2): New function.
3413 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
3414 (mq_open): New strong_alias.
3415 (__mq_open_2): New function.
3416 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
3417 * Versions.def (librt): Add GLIBC_2.7 version.
3418 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
3419 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
3420
3421 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
3422 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
3423 is defined rather than when not C++.
3424 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
3425 __openat64_alias): New redirects.
3426 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
3427 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
3428 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
3429 (open, open64, openat, openat64): Rewrite as __extern_always_inline
3430 functions instead of function-like macros.
3431
9bdfff60
UD
34322007-09-14 H.J. Lu <hongjiu.lu@intel.com>
3433
3434 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
3435 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
3436 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
3437
ab905672
UD
34382007-09-15 Mike Frysinger <vapier@gentoo.org>
3439
3440 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
3441 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
3442
9bd68902
RM
34432007-09-14 Mike Frysinger <vapier@gentoo.org>
3444
3445 * inet/tst-network.c: Increment ERRORS for failing tests.
3446
de1c3ebb
UD
34472007-09-07 Jakub Jelinek <jakub@redhat.com>
3448
3449 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
3450 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
3451 implement as __extern_always_inline function.
3452 (vsyslog): Define as __extern_always_inline function unconditionally.
3453 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
3454 When __va_arg_pack is defined, implement as __extern_always_inline
3455 functions.
3456 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
3457 __extern_always_inline functions unconditionally.
3458 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
3459 bits/stdio2.h will be included.
3460 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
3461 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
3462 implement as __extern_always_inline functions.
3463 (vswprintf, vwprintf, vfwprintf): Define as
3464 __extern_always_inline functions unconditionally.
3465 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
3466
34672007-09-03 Jakub Jelinek <jakub@redhat.com>
3468
3469 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
3470 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
3471 attribute.
3472 * include/features.h (__USE_EXTERN_INLINES): Define only when
3473 __extern_inline is defined.
3474 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
3475 is defined instead of when not __cplusplus.
3476 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
3477 is defined instead of when not __cplusplus.
3478 * socket/sys/socket.h: Include bits/socket2.h when
3479 __extern_always_inline is defined instead of when not __cplusplus.
3480 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
3481 is defined instead of when not __cplusplus.
3482 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
3483 is defined instead of when not __cplusplus.
3484 * string/string.h: Include bits/string3.h when __extern_always_inline
3485 is defined instead of when not __cplusplus.
3486 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
3487 is defined instead of when not __cplusplus.
3488 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
3489 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
3490 is not defined.
3491 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
3492 defined __extern_always_inline instead of !defined __cplusplus.
3493 * libio/bits/stdio-ldbl.h: Likewise.
3494 * wcsmbs/bits/wchar-ldbl.h: Likewise.
3495 * misc/bits/syslog.h (syslog): Don't define for C++.
3496 (vsyslog): Use __extern_always_inline function for C++ instead of
3497 a macro.
3498 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
3499 whenever that macro is defined.
3500 (vprintf): Don't provide the inline for C++.
3501 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
3502 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
3503 define the macros for C++.
3504 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
3505 __extern_always_inline functions for C++.
3506 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
3507 stat64, lstat64, fstat64, fstatat64): Don't define if not
3508 __USE_EXTERN_INLINES.
3509 * wcsmbs/bits/wchar2.h: Fix #error message.
3510 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
3511 (vswprintf, vwprintf, vfwprintf): Define using
3512 __extern_always_inline functions for C++.
3513 * string/bits/string3.h: Don't #undef macros if __cplusplus.
3514 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
3515 strncpy, strcat, strncat): Define as __extern_always_inline
3516 functions instead of macros for C++.
3517 * math/bits/cmathcalls.h: Guard __extern_inline routines with
3518 defined __extern_inline.
3519 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
3520 to __extern_inline whenever that macro is defined.
3521 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
3522 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
3523 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
3524 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
3525 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
3526 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
3527 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
3528 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
3529 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
3530 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
3531 prototypes. Only provide __extern_inline routines if
3532 __USE_EXTERN_INLINES.
3533 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
3534 tests.
3535 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
3536 For now avoid some *printf tests in C++. Skip all testing
3537 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
3538 is not.
3539 * debug/tst-chk4.cc: New file.
3540 * debug/tst-chk5.cc: New file.
3541 * debug/tst-chk6.cc: New file.
3542 * debug/tst-lfschk4.cc: New file.
3543 * debug/tst-lfschk5.cc: New file.
3544 * debug/tst-lfschk6.cc: New file.
3545 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
3546 prototypes in C++.
3547 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
3548 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
3549 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
3550
b53eef9c
UD
35512007-09-13 Ulrich Drepper <drepper@redhat.com>
3552
3553 * po/cs.po: Update from translation team.
3554
af385590
RM
35552007-09-11 Roland McGrath <roland@redhat.com>
3556
3557 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
3558 compiling.
3559
af2f25a1
RM
35602007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3561
3562 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
3563
94733ae0
RM
35642007-09-05 Roland McGrath <roland@redhat.com>
3565
3566 * manual/signal.texi (Signaling Another Process): Typo fix.
3567 From Karl Berry <karl@freefriends.org>.
3568
de4d8563
UD
35692007-08-29 Ulrich Drepper <drepper@redhat.com>
3570
3571 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
3572 zero if not defined.
3573 (make_request): Recognize optimistic addresses and treat them like
3574 deprecated addresses.
3575 Reported by Neil Horman <nhorman@redhat.com>.
3576
0adfcc05
UD
35772007-08-28 Ulrich Drepper <drepper@redhat.com>
3578
f3c54060
UD
3579 * nscd/connections.c (send_ro_fd): Also transfer file size.
3580 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
3581 file size don't call fstat.
3582
0adfcc05
UD
3583 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
3584 ahead and map the file. This should always be correct and we can
3585 catch problems later.
3586
3586b2b6
UD
35872007-08-28 Jakub Jelinek <jakub@redhat.com>
3588
3589 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
3590 prototypes.
3591 (__fread_alias, __fread_unlocked_alias): New aliases.
3592 (fread): New extern inline.
3593 (fread_unlocked): Likewise. Undef macro before definition of
3594 the inline function.
3595 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
3596 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
3597 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
3598 and __fread_unlocked_chk@@GLIBC_2.7.
3599 * debug/fread_chk.c: New file.
3600 * debug/fread_u_chk.c: New file.
3601 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
3602
3704aa0b
RM
36032007-08-27 Jakub Jelinek <jakub@redhat.com>
3604
3605 * sysdeps/unix/sysv/linux/syscalls.list
3606 (personality): Change caller to EXTRA.
3607
80e7d6a6
UD
36082007-08-25 Ulrich Drepper <drepper@redhat.com>
3609
278bfa00
UD
3610 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
3611 to keep gcc quiet.
3612 * iconvdata/iso-2022-cn.c (BODY): Likewise.
3613
a45d733c
UD
3614 * locale/programs/ld-collate.c (collate_output): Avoid warning if
3615 NDEBUG is defined.
3616
5dfeae0e
UD
3617 * Makerules: Use -p option with mkdir.
3618
8f1fe057
UD
3619 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
3620 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
bd0dcd28
UD
3621 (_xdr_directory_obj): Likewise.
3622 (xdr_entry_obj): Likewise.
3623 (xdr_group_obj): Likewise.
3624 (xdr_link_obj): Likewise.
3625 (xdr_table_obj): Likewise.
3626 (_xdr_nis_result): Likewise.
3627 (_xdr_ns_request): Likewise.
3628 (_xdr_ib_request): Likewise.
3629 (_xdr_nis_taglist): Likewise.
3630 (xdr_cback_data): Likewise.
8f1fe057 3631 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
bd0dcd28
UD
3632 (xdr_ypresp_maplist): Likewise.
3633
01339a67
UD
3634 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
3635
3fa10468
UD
3636 * posix/regex_internal.h: Prevent some declarations and definitions
3637 to be seen when used in tests.
3638
ec1e04de
UD
3639 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
3640 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
3641
7a344d1d
UD
3642 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
3643
f8f6ff5d
UD
3644 * config.make.in (datarootdir): Add to shut up configure.
3645
76fca9f1
UD
3646 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
3647 associativity for fully-associative caches.
3648
80e7d6a6
UD
3649 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
3650 requests. Fill on more associativity values for L2.
3651 Patch mostly by Evandro Menezes.
3652
cb5ba304
UD
36532007-08-24 Ulrich Drepper <drepper@redhat.com>
3654
d250df8c
UD
3655 * sysdeps/unix/sysv/linux/x86_64/init-first.c
3656 (_libc_vdso_platform_setup): Avoid using exported variable by using
3657 alias.
3658
88f61aaf
UD
3659 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
3660
cb5ba304 3661 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
cb104bd7 3662 fallocate64 as EXTRA. It is not referenced if the symbol isn't
cb5ba304
UD
3663 defined.
3664
62e1b1f5
UD
36652007-08-23 Ulrich Drepper <drepper@redhat.com>
3666
44b2e581
UD
3667 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
3668 align stack for call if pltexit is to be used.
3669
73e3ff07
UD
3670 [BZ #3924]
3671 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
3672 align for function call in case pltexit has to be called later.
3673
62e1b1f5
UD
3674 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
3675 implicit atomic operation when storing function pointer.
3676 (_dl_runtime_profile): Likewise.
3677
0008163a
UD
36782007-08-17 Jakub Jelinek <jakub@redhat.com>
3679
3680 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
3681 NIS_NOTFOUND.
3682
55ea8790
UD
36832007-08-21 Ulrich Drepper <drepper@redhat.com>
3684
2e0e1a05
UD
3685 [BZ #4566]
3686 * string/strtok.c: Fix typo in comment.
3687
682e4437
UD
3688 [BZ #4582]
3689 * debug/segfault.c: Fix typos in comments.
3690
7d55c9eb
UD
3691 [BZ #4588]
3692 * stdio-common/tempnam.c: Fix comment, it is not checked that
3693 TMPDIR points to a writable directory.
3694
0f8f993c
UD
3695 [BZ #4726]
3696 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
3697 memory allocated for the name server address.
3698
1465dd0f
UD
3699 [BZ #4946]
3700 * nscd/connections.c (handle_request): Using sendfile always
3701 requires that mmap is used for the database.
3702 Patch by Petr Baudis <pasky@suse.cz>.
3703
c44d3bdf
UD
3704 [BZ #4905]
3705 * nscd/hstcache.c (cache_addhst): When reloading an entry which
3706 suddenly has two or more addresses, ignore it and remove the old
3707 entry.
3708
1ce7d80d
UD
3709 [BZ #4814]
3710 * resolv/res_hconf.c: Prepare for compiling outside libc.
3711 * nscd/res_hconf.c: New file.
3712 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
3713 the new file.
3714 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
3715 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
3716
a30d41c1
UD
3717 * nscd/hstcache.c (cache_addhst): Minimal optimization.
3718
45dc3ad7
UD
3719 [BZ #4925]
3720 * debug/pcprofiledump.c: Turn on internationalization by calling
3721 setlocale. Patch mostly by Benno Schulenberg.
3722
55ea8790
UD
3723 [BZ #4936]
3724 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
3725 the state.
3726 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
3727 * iconvdata/bug-iconv5.c: New file.
3728
0b82ff74
UD
37292007-08-04 Carlos O'Donell <carlos@systemhalted.org>
3730
55ea8790 3731 [BZ #4896]
0b82ff74
UD
3732 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
3733 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
3734 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
3735 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
3736 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
3737 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
3738 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
3739 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
3740
ee16a55a
UD
37412007-08-21 Ulrich Drepper <drepper@redhat.com>
3742
3743 [BZ #4937]
3744 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
3745 lookup loop. Suggested by John Reiser.
3746
b211fe0f
JJ
37472007-08-21 Jakub Jelinek <jakub@redhat.com>
3748
3749 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
3750
fb84593c
UD
37512007-08-20 Ulrich Drepper <drepper@redhat.com>
3752
3753 * csu/libc-start.c: Don't handle VDSO_SETUP here.
3754 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
3755 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
3756 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
3757 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
3758 to...
3759 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
3760
b83fb35c
UD
37612007-08-18 Ulrich Drepper <drepper@redhat.com>
3762
3763 * po/nl.po: Update from translation team.
3764
20806a70
AJ
37652007-08-16 Andreas Jaeger <aj@suse.de>
3766
3767 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
3768 Reported by Peter Festner <peter.festner@ewetel.net>.
3769
42282d57
JJ
37702007-08-17 Jakub Jelinek <jakub@redhat.com>
3771
3772 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
3773
8a501135
JJ
37742007-08-16 Jakub Jelinek <jakub@redhat.com>
3775
cb84d1e4
JJ
3776 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
3777 to check for undefined symbols.
3778
91ddd9c4
JJ
3779 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
3780 If the syscall fails, set errno to the actual returned error number
3781 rather than EINVAL.
3782 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
3783 arguments are incorrect, set errno to EINVAL, if the syscall
3784 fails, set errno to the actual returned error number.
3785
18915760
JJ
3786 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
3787 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
3788
8a501135
JJ
3789 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
3790 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
3791 file.
3792 (ASI_PNF, ASI_BLK_P): Don't define.
3793 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
3794 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
3795 file.
3796 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
3797 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
3798 file.
3799
e4720b0e
JJ
38002007-08-15 Jakub Jelinek <jakub@redhat.com>
3801
3802 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
3803 FE_UNDERFLOW on Niagara CPUs.
3804
3805 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
3806 exceptions.
3807
702a9414
JJ
38082007-08-14 Jakub Jelinek <jakub@redhat.com>
3809
467d1345
JJ
3810 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
3811 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
3812 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
3813 flush should be used or not inside of the function.
3814 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
3815
3816 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
3817 __thread_start): Use HIDDEN_JUMPTARGET.
3818 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
3819 __thread_start): Likewise.
3820 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
3821
702a9414
JJ
3822 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
3823 Add libc_hidden_proto.
3824 (STRTOF): Add libc_hidden_proto.
3825 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
3826 (strtold_l, wcstold_l): Use them as second argument for
3827 long_double_symbol.
3828
c6c8f0ec
UD
38292007-08-14 Ulrich Drepper <drepper@redhat.com>
3830
3831 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
3832
5e88abf9
UD
38332007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3834
3835 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
3836
fc4819b0
UD
38372007-08-14 Ulrich Drepper <drepper@redhat.com>
3838
3839 * po/bg.po: New file. From the translation team.
3840
22502ea2
UD
38412007-08-13 Jakub Jelinek <jakub@redhat.com>
3842
3843 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
3844 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
3845 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
3846 when each feature was introduced.
3847
3848 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
3849 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
3850 (CHECK_HASH): New macro.
3851 (PREPARE_VERSION): Use it.
3852
3853 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
3854 prototype if not __ASSUME_PSELECT.
3855 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
3856 prototype if not __ASSUME_PPOLL.
3857
3858 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
3859
3860 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
3861 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
3862 is defined.
3863
9c6f6953
UD
38642007-08-13 Ulrich Drepper <drepper@redhat.com>
3865
3866 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
3867 (_libc_vdso_platform_setup): If vDSO is not available point
3868 __vdso_gettimeofday to the vsyscall.
3869 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
3870 __vdso_gettimeofday instead of vsyscall.
3871
f8de5057
UD
38722007-08-13 Jakub Jelinek <jakub@redhat.com>
3873
3874 * nscd/servicescache.c: Include kernel-features.h.
3875 * nscd/gai.c: Likewise.
3876 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
3877 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
3878 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
3879 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
3880 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
3881 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
3882 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
3883 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
3884 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
3885
3c87d79d
UD
38862007-08-12 Ulrich Drepper <drepper@redhat.com>
3887
ea37207a
UD
3888 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
3889 and _dl_get_origin defines anymore.
3890
4eb375fe
UD
3891 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
3892 Build fix for systems which might lack POSIX timer support.
3893
3c87d79d
UD
3894 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
3895 (_libc_vdso_platform_setup): Mangle function pointers before storing
3896 them.
3897 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
3898 Demangle vdso pointer before use.
3899 (INTERNAL_VSYSCALL): Likewise.
3900
3901 * elf/cache.c (primes): Mark as const.
3902 Noted by Roland McGrath.
3903
27d9ffda
UD
39042007-08-01 Andreas Jaeger <aj@suse.de>
3905 Jakub Jelinek <jakub@redhat.com>
3906
3907 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
3908 (options): Add option.
3909 (parse_opt): Handle option.
3910 (manual_link): Adjust process_file caller. Call implicit_soname.
3911 (search_dir): Formatting. Use and populate auxiliary cache.
3912 (main): Load and save auxiliary cache.
3913 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
3914 stat64 from fstat64 to caller.
3915 (implicit_soname): New function.
3916 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
3917 leave *soname as NULL.
3918 * elf/cache.c: Include libgen.h.
3919 (print_entry, print_cache, compare, save_cache, add_to_cache):
3920 Formatting and cleanups.
3921 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
3922 aux_cache_file): New structures.
3923 (AUX_CACHEMAGIC): Define.
3924 (primes): New array.
3925 (aux_hash_size, aux_hash): New variables.
3926 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
3927 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
3928 load_aux_cache, save_aux_cache): New functions.
3929 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
3930 (init_aux_cache, search_aux_cache, add_to_aux_cache,
3931 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
3932 (process_file): Adjust prototype.
3933
8d944b0f
UD
39342007-08-12 Jakub Jelinek <jakub@redhat.com>
3935
3936 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
3937 with __need_size_t.
3938
75fb247e
UD
39392007-08-12 Ulrich Drepper <drepper@redhat.com>
3940
fb86328a
UD
3941 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
3942 r_found_version structure as second parameter.
3943 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
3944 (_dl_vdso_vsym): Change type of second parameter accordingly.
3945 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
3946 (_libc_vdso_platform_setup): Adjust.
974a1f0f 3947 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
fb86328a
UD
3948 (_libc_vdso_platform_setup): Likewise.
3949
75fb247e
UD
3950 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
3951 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
3952 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
3953 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
3954 * csu/libc-start.c: Pretty printing.
3955 Use VDSO_SETUP if defined.
3956 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
3957 and let generic code call into _libc_vdso_platform_setup.
3958 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
3959 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
3960 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
3961 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
3962 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
3963 for GLIBC_PRIVATE.
3964 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
3965 (sysdep_rountines): Add dl-vdso.
3966
3967 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
3968 of routines.
3969
3970 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
3971 attribute_hidden to __vdso_gettimeofday prototype.
3972
9229b83e
RM
39732007-08-12 Roland McGrath <roland@redhat.com>
3974
3975 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
3976 From: Karl Berry <karl@freefriends.org>.
3977
4503061f
UD
39782007-08-11 Ulrich Drepper <drepper@redhat.com>
3979
3980 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
3981 an atime update for the files we read.
3982
d7e23b02
UD
39832007-08-10 Ulrich Drepper <drepper@redhat.com>
3984
7cf89e95
UD
3985 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
3986
9d169bb3 3987 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
d7e23b02
UD
3988 instead of mkstemp.
3989
3990 * misc/Makefile (routines): Add mkostemp and mkostemp64.
3991 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
3992 * misc/mkostemp.c: New file.
3993 * misc/mkostemp64.c: New file.
3994 * stdlib/stdlib.h: Declare the new functions.
3995 * sysdeps/posix/tempname.c: Add new parameter which is added to
3996 the flags for open. Remove __GT_BIGFILE handling.
3997 * stdio-common/tempname.c: Likewise.
3998 * include/stdio.h: Adjust __gen_tempname prototype.
3999 Renumber __GT_* constants.
4000 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
4001 * misc/mkdtemp.c: Likewise.
4002 * misc/mkstemp.c: Likewise.
4003 * misc/mkstemp64.c: Likewise.
4004 * misc/mktemp.c: Likewise.
4005 * stdio-common/tempnam.c: Likewise.
4006 * stdio-common/tmpfile.c: Likewise.
4007 * stdio-common/tmpfile64.c: Likewise.
4008 * stdio-common/tmpnam.c: Likewise.
4009 * stdio-common/tmpnam_r.c: Likewise.
4010
22532966
RM
40112007-08-10 Roland McGrath <roland@frob.com>
4012
4013 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
4014 New macros.
4015 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
4016 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4017
673876e6
UD
40182007-08-10 Ulrich Drepper <drepper@redhat.com>
4019
aa132749
UD
4020 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
4021 possible.
4022 * nss/nss_files/files-alias.c (internal_setent): Likewise.
4023 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
4024 * nss/nss_files/files-have_o_cloexec.c: New file.
4025
22532966 4026 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
673876e6
UD
4027 available.
4028
1e286653
JJ
40292007-08-10 Jakub Jelinek <jakub@redhat.com>
4030
4031 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
4032 ___new_wcstold_l): New weak aliases.
4033 (strtold_l, wcstold_l): Use them as second argument for
4034 long_double_symbol.
4035
f07f72f3
UD
40362007-08-09 Ulrich Drepper <drepper@redhat.com>
4037
6479496a
UD
4038 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
4039 register in test for error.
4040
c4adefbd
UD
4041 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
4042 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
4043
f07f72f3
UD
4044 * po/sv.po: Update from translation team.
4045
eef38c28
RM
40462007-08-06 Roland McGrath <roland@redhat.com>
4047
773e305e
RM
4048 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
4049 Remove __strto*_l inlines.
4050 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
4051 * stdlib/strtod.c: Add libc_hidden_def.
4052 * stdlib/strtod_l.c: Likewise.
4053 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
4054 for __new_strtold and __new_wcstold.
4055 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
4056 __STRTOF, STRTOF.
4057 * stdlib/strtol.c: Add libc_hidden_def.
4058 * stdlib/strtol_l.c: Likewise.
4059 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
4060 strtoq.
4061
4062 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
4063
4064 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
4065 * scripts/data/localplt-generic.data: ... here.
4066 * elf/Makefile (check-data): Get generic file if no other.
4067 ($(objpfx)check-localplt.out): Make target unconditional.
4068
eef38c28
RM
4069 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
4070 Use ElfW(Nhdr).
4071
742df3a4
UD
40722007-08-05 Ulrich Drepper <drepper@redhat.com>
4073
4074 * po/zh_CN.po: Updated translation from translation team.
4075
0470fa46
JJ
40762007-08-05 Jakub Jelinek <jakub@redhat.com>
4077
4078 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
4079 Don't use CGOTSETUP and CGOTRESTORE macros.
4080
b5075bdc
RM
40812007-08-04 Roland McGrath <roland@redhat.com>
4082
4083 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
4084
9accc268
JJ
40852007-08-04 Jakub Jelinek <jakub@redhat.com>
4086
4087 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
4088 __extension__ around the whole statement expression.
4089
220ae3ef
UD
40902007-08-04 Ulrich Drepper <drepper@redhat.com>
4091
c8ccd8e3
UD
4092 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
4093 elements during initialization.
4094
220ae3ef
UD
4095 * po/pl.po: Updated translation from translation team.
4096 * po/tr.po: Likewise.
11960f7f 4097 * po/nl.po: Likewise.
220ae3ef 4098
2fb20667
UD
40992007-08-03 Ulrich Drepper <drepper@redhat.com>
4100
4101 * rt/aio.h: Add __nonnull attributes.
4102
ce31a3b1
UD
41032007-08-03 Jakub Jelinek <jakub@redhat.com>
4104
64f6281c
UD
4105 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
4106 * stdlib/Makefile (tests): Add tst-strtod5.
4107 (tst-strtod5-ENV): New.
4108 * stdlib/tst-strtod5.c: New file.
4109
ce31a3b1
UD
4110 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
4111 failed.
4112 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
4113 on failure.
4114
4115 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
4116 allocated.
4117
754980e4
JJ
41182007-08-03 Jakub Jelinek <jakub@redhat.com>
4119
4120 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
4121 numbers.
4122
497af0cb
UD
41232007-08-02 Ulrich Drepper <drepper@redhat.com>
4124
cbf0489b
UD
4125 * io/Makefile (aux): Add have_o_cloexec.
4126 * include/fcntl.h: Declare __have_o_cloexec.
4127 * io/have_o_cloexec.c: New file.
4128 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
4129 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
4130 fcntl call if not necessary.
4131 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
4132 of local variable.
4133
fa39685d
UD
4134 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
4135 Avoid memset, add explicit initialization.
4136 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
4137 to the end and change into zero-sized array.
4138 Move lock member to fill a hole on 64-bit platforms.
9b2e9577
UD
4139
4140 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
4141 inline functions.
4142 * include/stdlib.h: Add __strto*_internal prototypes here.
4143 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
4144 inline functions.
4145 * include/wchar.h: Add __wcsto*_internal prototypes.
4146 * sysdeps/generic/inttypes.h: No need to protect the declaration
4147 of the __strto*_internal and __wcsto*_internal members here.
4148
497af0cb
UD
4149 * rt/mqueue.h: Change const to __const and add nonnull attributes.
4150
d17a8cf0
RM
41512007-08-02 Roland McGrath <roland@redhat.com>
4152
4153 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
4154 $(inst_bindir)/getconf if possible.
4155
4156 * posix/Makefile ($(objpfx)getconf.speclist): New target.
4157 (generated): Add it.
4158 ($(inst_libexecdir)/getconf): Use it.
4159
0abf17de
UD
41602007-08-01 Ulrich Drepper <drepper@redhat.com>
4161
4162 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
4163 /proc is faster and sufficient. /sys is still needed for
4164 __get_nprocs_conf.
4165
5e0923ab
UD
41662007-08-01 Jakub Jelinek <jakub@redhat.com>
4167
4168 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
4169 syscall as __fallocate64.
4170 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
4171 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
4172
1475e201
UD
41732007-07-30 Jakub Jelinek <jakub@redhat.com>
4174
4175 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
4176 value.
4177
4178 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
4179 if off_t is different rank from size_t.
4180
4181 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
4182 uw_frame_state_for): Avoid type punning warnings.
4183 * sysdeps/generic/unwind-dw2-fde-glibc.c
4184 (_Unwind_IteratePhdrCallback): Likewise.
4185 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
4186 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
4187 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
4188 pointers.
4189
e076bece
UD
41902007-07-31 Ulrich Drepper <drepper@redhat.com>
4191
9506149a
UD
4192 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
4193 total processors using sysfs.
4194 (__get_nprocs): Use sysfs to determine which processors are online.
e076bece 4195
bbeaaa84
JJ
41962007-07-31 Jakub Jelinek <jakub@redhat.com>
4197
09881398
JJ
4198 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
4199 syscall arguments count.
4200
bbeaaa84
JJ
4201 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
4202
087ef75f
RM
42032007-07-30 Roland McGrath <roland@redhat.com>
4204
4205 * manual/libc.texinfo: Update copyrights, formatting magic, and
4206 @dircategory. From Karl Berry <karl@freefriends.org>.
4207
44f08a6e
UD
42082007-07-29 Ulrich Drepper <drepper@redhat.com>
4209
eafaae72
UD
4210 [BZ #4860]
4211 * io/Makefile (headers): Add bits/fcntl2.h.
4212
c5705565
UD
4213 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
4214 using gcc builtin.
4215 (__CPU_EQUAL_S): Likewise.
4216
44f08a6e
UD
4217 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
4218 (tests): Add tst-cpuset.
4219 * posix/sched_cpualloc.c: New file.
4220 * posix/sched_cpufree.c: New file.
4221 * posix/tst-cpuset.c: New file.
4222 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
4223 GLIBC_2.7.
4224 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
4225 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
4226 macros. Define CPU_*_S macros.
4227
8f5e1400
UD
42282007-07-28 Ulrich Drepper <drepper@redhat.com>
4229
5b74caf6
UD
4230 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
4231 entry.
4232
a26d01bb 4233 [BZ #4858]
8f5e1400
UD
4234 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
4235 #.0g and value rounded to 1.0.
4236 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
4237
085a4412
UD
42382007-07-26 Jakub Jelinek <jakub@redhat.com>
4239
cedb4109
UD
4240 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
4241 for int_frac_digits and frac_digits.
4242
4243 * login/logout.c (logout): Avoid aliasing violation.
4244 * login/logwtmp.c (logwtmp): Likewise.
4245
4246 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
4247
9d9febc7
UD
4248 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
4249 to avoid warning.
4250 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
4251 warning.
4252 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
4253 warning.
4254 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
4255 to avoid warnings.
4256
701666b7
UD
4257 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
4258 void **.
4259 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
4260
4261 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
4262 char * to avoid warning.
4263 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
4264
4265 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
4266
4267 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
4268 allocate_arrays): Cast second argument to charmap_find_symbol
4269 to char * to avoid warnings.
4270
4271 * locale/programs/repertoire.c (repertoire_new_char): Change
4272 from_nr, to_nr and cnt to unsigned long, adjust printf format
4273 string.
4274
4275 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
4276 Cast second argument to new_element to char * to avoid warnings.
4277
4278 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
4279
4280 * intl/gettextP.h (struct loaded_domain): Change plural to const
4281 struct expression *.
4282 * intl/plural-eval.c (plural_eval): Change first argument to
4283 const struct expression *.
4284 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
4285 argument to const struct expression **.
4286 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
4287 prototypes.
4288 * intl/loadmsgcat (_nl_unload_domain): Cast away const
4289 in call to __gettext_free_exp.
4290
4291 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
4292 unitialized wstring/wpattern var warnings.
4293
4294 * posix/runtests.c (struct a_test): Make data field const char *.
4295
4296 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
4297 vars if not LDBL_MANT_DIG >= 106.
4298
4299 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
4300
4301 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
4302 __find_specmb to avoid warning.
4303
4304 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
4305
4306 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
4307 to avoid warnings.
4308
4309 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
4310 initializer.
4311
4312 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
4313 tv var when it will be actually used.
4314
4315 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
4316 to avoid warnings.
4317
085a4412
UD
4318 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
4319 char array resp. pointer.
4320 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
4321 char array.
4322 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
4323 to const unsigned char **.
4324 (ucs4_to_cns11643): Change second argument to unsigned char *.
4325 * iconvdata/euc-tw.c (BODY): Change endp type to
4326 const unsigned char *.
4327 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
4328 to unsigned char *.
4329 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
4330 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
4331 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
4332 types to unsigned char pointers/arrays instead of char.
4333 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
4334 to unsigned char *.
4335 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
4336 * iconvdata/jis0212.h: Include assert.h.
4337 (ucs4_to_jisx0212): Change second argument to unsigned char *.
4338 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
4339 of trying to handle that.
4340 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
4341 shut up a warning.
4342 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
4343 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
4344 two dimensional const unsigned char arrays.
4345 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
4346 Initialize endp to inptr to shut up a warning.
4347
fa69dc9c
UD
43482007-07-20 Jakub Jelinek <jakub@redhat.com>
4349
ae1ad762
UD
4350 [BZ #4772]
4351 * time/strptime_l.c (__strptime_internal): Silently ignore
4352 strftime modifiers and field width in recursive calls.
4353
fa69dc9c
UD
4354 * include/time.h (enum ptime_locale_status): Remove.
4355 (__strptime_internal): Remove decided and era_cnt arguments,
4356 add statep argument.
4357 * time/strptime_l.c (__strptime_internal): Remove decided
4358 and era_cnt arguments, add statep argument. Don't recompute
4359 any fields in recursive calls, only update caller's tm
4360 and state, if recursive call fails, don't change tm nor
4361 any state.
4362 (get_alt_number): Adjust.
4363 (recursive): Adjust caller.
4364 (strptime): Likewise.
4365 * time/strptime.c (strptime): Likewise.
4366
7b503bcc
UD
43672007-07-19 Jakub Jelinek <jakub@redhat.com>
4368
4369 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
4370 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
4371 if from and to charsets are the same.
4372 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
4373 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
4374 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
4375
43762007-07-17 Jakub Jelinek <jakub@redhat.com>
4377
4378 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
4379 Don't define wint_t when __need_mbstate_t unless it
4380 is necessary.
4381 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
4382 in the typedef if possible.
4383 * wctype/wctype.h (wint_t): Define by including
4384 wchar.h with __need_wint_t instead of including stddef.h
4385 with __need_wint_t and as fallback definining it ourselves.
4386 * iconv/gconv.h (__need_wint_t): Define before including
4387 wchar.h.
4388 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
4389 or _GLIBCPP_USE_WCHAR_T.
4390 (__need_wchar_t): Don't define
4391 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
4392 (__need_wint_t): Don't define before including stddef.h,
4393 define before including wchar.h only if _LIBC or
4394 _GLIBCPP_USE_WCHAR_T.
4395 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
4396 * sysdeps/mach/hurd/_G_config.h: Likewise.
4397 * sysdeps/generic/_G_config.h: Likewise.
4398 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
4399 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
4400 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
4401 if _LIBC or _GLIBCPP_USE_WCHAR_T.
4402
a95a608f
UD
44032007-07-28 Ulrich Drepper <drepper@redhat.com>
4404
4405 * sysdeps/posix/posix_fallocate64.c: Undefine
4406 __posix_fallocate64_l64 before alias handling.
4407 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
4408 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
4409 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
4410 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
4411
4412 * io/tst-posix_fallocate.c: Include <fcntl.h>.
4413
44142007-07-23 Jakub Jelinek <jakub@redhat.com>
4415
4416 * locale/programs/ld-collate.c (atwc): New variable.
4417 (add_to_tablewc): New toplevel function, moved from collate_output.
4418 (collate_output): Remove add_to_tablewc nested function.
4419
4420 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
4421 (name_insert): New function.
4422 (write_output): Remove hash_table and hash_size vars and name_insert
4423 nested function.
4424
80d4c3b0
RM
44252007-07-24 Roland McGrath <roland@redhat.com>
4426
4427 * Makerules (install-others-programs-nosubdir): New target.
4428 (install-no-libc.a-nosubdir): Depend on it.
4429
4430 * iconv/Makefile (install-others-programs): Set this instead of
4431 install-others.
4432 * login/Makefile (install-others-programs): Likewise.
4433 * posix/Makefile (install-others-programs): Likewise.
4434
4435 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
4436 dependencies.
4437
c1bf9f14
UD
44382007-07-23 Ulrich Drepper <drepper@redhat.com>
4439
4440 * io/Makefile (tests): Add tst-posix_fallocate.
4441 * io/tst-posix_fallocate.c: New file.
4442
4443 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4444 __ASSUME_FALLOCATE.
4445
2320270c
RM
44462007-07-22 Roland McGrath <roland@frob.com>
4447
3dadfa7e
RM
4448 * hurd/getdport.c: Add missing copyright year update.
4449
2320270c
RM
4450 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
4451 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
4452
cc783763
UD
44532007-07-22 Ulrich Drepper <drepper@redhat.com>
4454
c942388d
UD
4455 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
4456
cc783763
UD
4457 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
4458 O_CLOEXEC is needed.
4459 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
4460 Avoid additional fcntl to set O_CLOEXEC if not needed.
4461 * nis/nss_compat/compat-initgroups.c: Likewise.
4462 * nis/nss_compat/compat-pwd.c: Likewise.
4463 * nis/nss_compat/compat-spwd.c: Likewise.
4464
610903b0
RM
44652007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
4466
3dadfa7e 4467 [BZ #3665]
5c3d7832
RM
4468 * manual/errno.texi: Change ECANCELED value to 119.
4469
3dadfa7e 4470 [BZ #4610]
610903b0
RM
4471 * mach/lock-intern.h: Include <sys/cdefs.h>.
4472
3dadfa7e 4473 [BZ #4178]
610903b0
RM
4474 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
4475 reading A.
4476
3dadfa7e
RM
4477 [BZ #4126]
4478 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
4479 to __sigsuspend.
610903b0
RM
4480
4481 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
4482
44832006-06-13 Thomas Schwinge <tschwinge@gnu.org>
4484
4485 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
4486 `__ASSEMBLER__'.
4487 * sysdeps/mach/hurd/i386/tls.h: Likewise.
4488
acf79996
UD
44892007-07-21 Ulrich Drepper <drepper@redhat.com>
4490
dde0763a
UD
4491 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
4492 descriptor received from nscd.
4493
acf79996
UD
4494 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
4495
4496 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
4497 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4498 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4499 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4500 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4501 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4502
00d26929
JJ
45032007-07-20 Jakub Jelinek <jakub@redhat.com>
4504
403445d7
JJ
4505 [BZ #4816]
4506 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
4507
00d26929
JJ
4508 [BZ #4813]
4509 * login/forkpty.c (forkpty): Close master and slave fds on
4510 fork failure. Patch by
4511 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
4512
087722b8
UD
45132007-07-18 Jakub Jelinek <jakub@redhat.com>
4514
4515 * include/features.h (__USE_ISOC95): New define.
4516 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
4517 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
4518 for -std=iso9899:199409.
4519 * CONFORMANCE: Remove comments about unsupported AMD1.
4520
b042b023
UD
45212007-07-17 Jakub Jelinek <jakub@redhat.com>
4522
4523 * sysdeps/ia64/sched_cpucount.c: New file.
4524 * sysdeps/powerpc/sched_cpucount.c: New file.
4525
8381e467
UD
4526 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
4527 __BEGIN_DECLS/__END_DECLS around the prototype.
4528 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
4529 pointer to const cpu_set_t.
4530
50e16f85
UD
4531 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
4532 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
4533 __need_size_t and include stddef.h.
4534 * sysvipc/sys/msg.h: Likewise.
4535 * posix/sched.h: Likewise.
4536 * hurd/hurd/signal.h (__need_size_t): Define.
4537
4538 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
4539 neither does signal.h in pedantic ISO C namespaces. stdio.h
4540 no longer defines wint_t or wchar_t.
4541
b257c726
UD
4542 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
4543 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
4544 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
4545 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
4546 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
4547 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
4548 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
4549 * debug/printf_chk.c (__printf_chk): Likewise.
4550 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
4551 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
4552
4553 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
4554 Define.
4555
d5078b9f
UD
4556 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
4557 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
4558
1c3e748e
UD
45592007-07-16 Jakub Jelinek <jakub@redhat.com>
4560
4561 [BZ #4792]
4562 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
4563 * malloc/malloc.h (realloc): Likewise.
4564
4e425301
UD
4565 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
4566 if one of proc_file_chain streams has that fileno.
4567 * stdio-common/Makefile (tests): Add tst-popen2.
4568 * stdio-common/tst-popen2.c: New test.
4569
2e2efe65
RM
45702007-07-14 Jakub Jelinek <jakub@redhat.com>
4571
4572 * elf/ldconfig.c: Allow GPLv2 or any later version.
4573 * elf/readlib.c: Likewise.
4574 * elf/chroot_canon.c: Likewise.
4575 * elf/cache.c: Likewise.
4576 * nscd/mem.c: Likewise.
4577 * nscd/getpwuid_r.c: Likewise.
4578 * nscd/grpcache.c: Likewise.
4579 * nscd/aicache.c: Likewise.
4580 * nscd/getsrvbynm_r.c: Likewise.
4581 * nscd/nscd.c: Likewise.
4582 * nscd/servicescache.c: Likewise.
4583 * nscd/getsrvbypt_r.c: Likewise.
4584 * nscd/initgrcache.c: Likewise.
4585 * nscd/gethstbyad_r.c: Likewise.
4586 * nscd/gethstbynm2_r.c: Likewise.
4587 * nscd/getgrnam_r.c: Likewise.
4588 * nscd/nscd_setup_thread.c: Likewise.
4589 * nscd/getpwnam_r.c: Likewise.
4590 * nscd/gai.c: Likewise.
4591 * nscd/connections.c: Likewise.
4592 * nscd/dbg_log.c: Likewise.
4593 * nscd/cache.c: Likewise.
4594 * nscd/hstcache.c: Likewise.
4595 * nscd/nscd_conf.c: Likewise.
4596 * nscd/getgrgid_r.c: Likewise.
4597 * nscd/pwdcache.c: Likewise.
4598 * catgets/gencat.c: Likewise.
4599 * locale/programs/linereader.h: Likewise.
4600 * locale/programs/locarchive.c: Likewise.
4601 * locale/programs/ld-paper.c: Likewise.
4602 * locale/programs/locfile-kw.h: Likewise.
4603 * locale/programs/ld-address.c: Likewise.
4604 * locale/programs/xmalloc.c: Likewise.
4605 * locale/programs/ld-time.c: Likewise.
4606 * locale/programs/localedef.c: Likewise.
4607 * locale/programs/simple-hash.c: Likewise.
4608 * locale/programs/xstrdup.c: Likewise.
4609 * locale/programs/ld-numeric.c: Likewise.
4610 * locale/programs/locfile-kw.gperf: Likewise.
4611 * locale/programs/ld-collate.c: Likewise.
4612 * locale/programs/charmap-kw.gperf: Likewise.
4613 * locale/programs/charmap.h: Likewise.
4614 * locale/programs/charmap-kw.h: Likewise.
4615 * locale/programs/config.h: Likewise.
4616 * locale/programs/locfile.c: Likewise.
4617 * locale/programs/ld-ctype.c: Likewise.
4618 * locale/programs/charmap.c: Likewise.
4619 * locale/programs/ld-messages.c: Likewise.
4620 * locale/programs/repertoire.h: Likewise.
4621 * locale/programs/locale.c: Likewise.
4622 * locale/programs/ld-name.c: Likewise.
4623 * locale/programs/linereader.c: Likewise.
4624 * locale/programs/locfile.h: Likewise.
4625 * locale/programs/3level.h: Likewise.
4626 * locale/programs/ld-monetary.c: Likewise.
4627 * locale/programs/ld-measurement.c: Likewise.
4628 * locale/programs/charmap-dir.c: Likewise.
4629 * locale/programs/ld-identification.c: Likewise.
4630 * locale/programs/localedef.h: Likewise.
4631 * locale/programs/charmap-dir.h: Likewise.
4632 * locale/programs/repertoire.c: Likewise.
4633 * locale/programs/simple-hash.h: Likewise.
4634 * locale/programs/ld-telephone.c: Likewise.
4635 * locale/programs/locale-spec.c: Likewise.
4636 * locale/programs/locfile-token.h: Likewise.
4637 * posix/getconf.c: Likewise.
4638 * iconv/dummy-repertoire.c: Likewise.
4639 * iconv/iconv_charmap.c: Likewise.
4640 * iconv/iconvconfig.c: Likewise.
4641 * iconv/iconv_prog.c: Likewise.
4642 * malloc/memusagestat.c: Likewise.
4643 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
4644
84c23a3d
RM
46452007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4646
4647 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
4648 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
4649 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
4650 check for the first argument.
4651
1c298d08
UD
46522007-07-12 Jakub Jelinek <jakub@redhat.com>
4653
4654 [BZ #4775]
4655 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
4656 (__tgmath_real_type): Fix if expr is const int or other const
4657 qualified integral type.
4658 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
4659 expressions and handle const qualified arguments.
4660 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
4661 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
4662 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
4663 statement expressions.
4664 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
4665 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
4666 (__TGMATH_UNARY_IMAG): Define.
4667 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
4668 * math/Makefile (tests): Add test-tgmath2.
4669 (CFLAGS-test-tgmath2.c): Add.
4670 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
4671 count_cfloat, count_cldouble): New variables.
4672 (NCCALLS): Define.
4673 (main): Check number of complex calls as well.
4674 (F(compile_test)): Add complex tests and tests with const qualified
4675 arguments.
4676 (y, z, ccount): Define.
4677 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
4678 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
4679 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
4680 F(cproj)): New functions.
4681 * math/test-tgmath2.c: New test.
4682
46832007-07-11 Jakub Jelinek <jakub@redhat.com>
4684
4685 [BZ #4776]
4686 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
4687 RPATH etc. as "/" rather than "", don't segfault on empty paths,
4688 instead output ".".
4689 * dlfcn/Makefile (distribute): Add glreflib3.c.
4690 (module-names): Add glreflib3.
4691 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
4692 glreflib1.so.
4693 (LDFLAGS_glreflib3.so): New.
4694 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
4695 glreflib1.so.
4696 * dlfcn/glreflib3.c: New file.
4697
4698 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
4699 returned -1, return NULL.
4700 * intl/explodename.c (_nl_explode_name): Return -1 if
4701 _nl_normalize_codeset failed.
4702
a88f47a7
UD
47032007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
4704
4705 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
4706 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
4707 and avoid branch misspredicts for > 31 bytes memset case.
4708 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
4709 Remove toc ref to __cache_line_size.
4710
4711 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
4712 to get ISA-V2.0 branch hints.
4713 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
4714 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
4715 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
4716 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
4717 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
4718 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
4719 Remove toc ref to __cache_line_size.
4720
4721 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
4722 Include math_ldbl_opt.h.
4723
f98c2d06
UD
47242007-07-10 Ulrich Drepper <drepper@redhat.com>
4725
4726 [BZ #4773]
4727 * time/strptime_l.c (__strptime_internal): Implement greedy
4728 matching of weekday and month names.
4729
cec5991f
RM
47302007-07-09 Roland McGrath <roland@redhat.com>
4731
4732 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
4733 (ELF_NOTE_ABI): Use it.
4734 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
4735
8c1dcd26
UD
47362007-07-09 Ulrich Drepper <drepper@redhat.com>
4737
4738 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
4739 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4740
c2c7bd3f
UD
47412007-07-07 Ulrich Drepper <drepper@redhat.com>
4742
4743 [BZ #4745]
0923a2c8
UD
4744 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
4745 in loop to look for conversion specifier to avoid testing of
4746 wrong errno value.
4747 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
c2c7bd3f 4748 * stdio-common/bug18.c: New file.
0923a2c8
UD
4749 * stdio-common/bug18a.c: New file.
4750 * stdio-common/bug19.c: New file.
4751 * stdio-common/bug19a.c: New file.
c2c7bd3f 4752
4facf4af
RM
47532007-07-05 Mike Frysinger <vapier@gentoo.org>
4754
4755 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
4756 running awk script.
4757
1311e86e
UD
47582007-07-01 Jakub Jelinek <jakub@redhat.com>
4759
4760 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
4761 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
4762 Return NULL if mmap failed instead of asserting it does not.
4763 (calloc): Check for integer overflow.
4764
4765 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
4766 than LONG_MAX / 10.
4767
57c9179c
UD
47682007-07-03 Jakub Jelinek <jakub@redhat.com>
4769
4770 [BZ #4702]
4771 * nis/nss-default.c: Include errno.h.
4772 (init): Preserve errno.
4773
d0b283a8
UD
47742007-07-02 Ulrich Drepper <drepper@redhat.com>
4775
4776 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
4777
34e0bbaf
UD
47782007-06-30 Ulrich Drepper <drepper@redhat.com>
4779
4780 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
4781
47822007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
4783
4784 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
4785
34e0bbaf 47862007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
33516494
UD
4787
4788 * sysdeps/s390/dl-procinfo.c: New file.
4789 * sysdeps/s390/dl-procinfo.h: New file.
4790 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
4791
0e508a6e
UD
47922007-06-29 Jakub Jelinek <jakub@redhat.com>
4793
4794 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
4795 in PT_NOTE segments with multiple notes.
4796 * elf/readelflib.c (process_elf_file): Likewise.
4797
e22c61fb
UD
47982007-06-22 Ulrich Drepper <drepper@redhat.com>
4799
4800 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
4801 ISO C compliant.
4802
e4eb675d
UD
48032007-06-19 Ulrich Drepper <drepper@redhat.com>
4804
4805 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
4806
48072007-06-13 Jakub Jelinek <jakub@redhat.com>
4808
4809 * include/link.h: Don't include rtld-lowlevel.h.
4810 (struct link_map): Remove l_scope_lock.
4811 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
4812 (_dl_scope_free_list): New field (variable) in _rtld_global.
4813 (DL_LOOKUP_SCOPE_LOCK): Remove.
4814 (_dl_scope_free): New prototype.
4815 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
4816 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
4817 (_dl_profile_fixup): Likewise.
4818 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
4819 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
4820 THREAD_GSCOPE_RESET_FLAG around it.
4821 * elf/dl-close.c (_dl_close_worker): Don't use
4822 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
4823 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
4824 scopes were queued or if l_scope_mem has been abandoned.
4825 * elf/dl-open.c (_dl_scope_free): New function.
4826 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
4827 * elf/dl-support.c (_dl_scope_free_list): New variable.
4828 * elf/dl-lookup.c (add_dependency): Remove flags argument.
4829 Remove DL_LOOKUP_SCOPE_LOCK handling.
4830 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
4831 handling.
4832 * elf/dl-object.c (_dl_new_object): Don't use
4833 __rtld_mrlock_initialize.
4834
9be09e06
UD
48352007-06-19 Ulrich Drepper <drepper@redhat.com>
4836
4837 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
4838 to fill in holes
4839 (rtld_global_ro): Likewise.
4840
48412007-06-18 Jakub Jelinek <jakub@redhat.com>
4842
4843 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
4844 Move PT_LOAD checking to...
4845 (_dl_addr_inside_object): ... here, new function.
4846 * elf/dl-sym.c (do_sym): If not l_contiguous,
4847 call _dl_addr_inside_object.
4848 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
4849 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
4850 * elf/dl-open.c (dl_open_worker): Likewise.
4851 (_dl_addr_inside_object): New function if IS_IN_rtld.
4852 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
4853 holes are present or are PROT_NONE protected.
4854 * include/link.h (struct link_map): Add l_contiguous field.
4855 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
4856
ae1ad3ae
UD
48572007-06-18 Jakub Jelinek <jakub@redhat.com>
4858 Tomas Janousek <tjanouse@redhat.com>
4859 Ulrich Drepper <drepper@redhat.com>
4860
4861 [BZ #4647]
4862 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
4863 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
4864 socket.
4865 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
4866 unused member a bitmap.
4867 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
4868 servers are configured.
4869
3abee0b7
UD
48702007-06-18 Jakub Jelinek <jakub@redhat.com>
4871
4872 * elf/rtld.c (dl_main): Don't call init_tls more than once.
4873
89074592
UD
48742007-06-17 Andreas Schwab <schwab@suse.de>
4875
4876 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
4877
b26e274d
AJ
48782007-06-16 Andreas Jaeger <aj@suse.de>
4879
4880 [BZ #4125]
4881 * sysdeps/unix/sysv/linux/sys/ptrace.h
4882 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
4883 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
89074592 4884 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
b26e274d
AJ
4885 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
4886 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
4887 Define.
4888 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
4889 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
4890 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
4891 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
4892
e0d4a4e5
UD
48932007-06-16 Ulrich Drepper <drepper@redhat.com>
4894
4895 [BZ #4599]
4896 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
4897 determining whether there are IPv4/IPv6 addresses, ignore loopback
4898 addresses.
4899
ae8e81f5
JJ
49002007-06-14 Uros Bizjak <ubizjak@gmail.com>
4901
4902 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
4903 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
4904 as the return type. Change type of "r" variable to CMPtype.
4905 * soft-fp/eqsf2.c (__eqsf2): Likewise.
4906 * soft-fp/eqtf2.c (__eqtf2): Likewise.
4907 * soft-fp/gedf2.c (__gedf2): Likewise.
4908 * soft-fp/gesf2.c (__gesf2): Likewise.
4909 * soft-fp/getf2.c (__getf2): Likewise.
4910 * soft-fp/ledf2.c (__ledf2): Likewise.
4911 * soft-fp/lesf2.c (__lesf2): Likewise.
4912 * soft-fp/letf2.c (__letf2): Likewise.
4913 * soft-fp/unorddf2 (__unorddf2): Likewise.
4914 * soft-fp/unordsf2 (__unordsf2): Likewise.
4915 * soft-fp/unordtf2 (__unordtf2): Likewise.
4916
90cd2413
UD
49172007-06-09 Ulrich Drepper <drepper@redhat.com>
4918
4919 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
4920 make sure gcc doesn't mess around with this.
4921
3c457089
UD
49222007-06-08 Ulrich Drepper <drepper@redhat.com>
4923
4924 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
4925
e8b6b64d
UD
49262007-06-08 Jakub Jelinek <jakub@redhat.com>
4927
4928 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
4929 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
4930 at most once per _dl_close_worker.
4931
36dffb22
UD
49322007-06-08 Ulrich Drepper <drepper@redhat.com>
4933
755db8c5
UD
4934 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
4935 __sched_cpucount as const.
4936 * posix/sched_cpucount.c: Adjust.
4937
36dffb22
UD
4938 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
4939 instruction for counting bits.
4940 * sysdeps/x86_64/sched_cpucount.c: New file.
4941
26f56c1c
UD
49422007-06-07 Ulrich Drepper <drepper@redhat.com>
4943
4944 * configure.in: Avoid variable named BASH.
e967d385 4945 * config.make.in: Likewise.
26f56c1c 4946 Patch in part by Mike Frysinger.
835abc5c 4947
26f56c1c 49482007-06-06 Jakub Jelinek <jakub@redhat.com>
47779a7d
JJ
4949
4950 [BZ #4586]
835abc5c
UD
4951 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
4952 pseudo-zeros as zero.
4953 * sysdeps/x86_64/ldbl2mpn.c: New file.
4954 * sysdeps/ia64/ldbl2mpn.c: New file.
4955
7e3706ea
UD
49562007-06-04 Jakub Jelinek <jakub@redhat.com>
4957
4958 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
4959 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
4960 Remove unreachable code at the end.
4961
49622007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
4963
4964 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
4965 ldbl-128ibm in comment.
4966 (fpclassifyl): Correct classification of denormals.
4967 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
4968 return value for MIN denormal. Rewrite using long double math too
4969 correctly handle denormals and canonicalize the results.
4970
49712007-06-05 Jakub Jelinek <jakub@redhat.com>
4972
4973 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
4974 (__mpn_construct_long_double): Fix conversion where result ought
4975 to be smaller than __LDBL_MIN__, or the low double should be
4976 denormal. Fix decision where to negate low double - honor round
4977 to even rules.
4978 * stdio-common/tst-sprintf2.c: Include string.h.
4979 (COMPARE_LDBL): Define.
4980 (TEST): Also test whether a string hexadecimal float representation
4981 can be parsed back to the number.
4982 (main): Add a couple of further tests.
4983
43b76828
UD
49842007-06-04 Jakub Jelinek <jakub@redhat.com>
4985
4986 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
4987 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
4988 is non-zero, but smaller than 2 * __DBL_MIN__.
4989 * stdio-common/tst-sprintf2.c: New test.
4990 * stdio-common/Makefile (tests): Add tst-sprintf2.
4991
4992 * math/test-misc.c (main): Don't run last batch of tests with
4993 IBM long double format.
4994
04067002
UD
49952007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
4996
4997 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
4998 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
4999 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
5000 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
5001 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5002 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
5003 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
5004 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
5005 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
5006 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5007 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
5008 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
5009 New file.
5010 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
5011 New file.
5012 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
5013 New file.
5014 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
5015 New file.
5016 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
5017 New file.
5018 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
5019 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
5020 New file.
5021 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
5022 New file.
5023 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
5024 New file.
5025 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
5026 New file.
5027 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
5028 New file.
5029
50302007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
5031
5032 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
5033 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
5034 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
5035 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
5036 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
5037 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
5038 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
5039 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
5040
50412007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
5042
5043 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
5044 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5045 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
5046 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5047 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
5048 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5049 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
5050 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5051
50522007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
5053
5054 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
5055 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
5056 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
5057 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
5058
50592007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
5060
5061 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
5062 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
5063
50642006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
5065
5066 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
5067 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
5068 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
5069 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
5070
50712006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
5072
5073 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
5074 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
5075
50762006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
5077
5078 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
5079 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
5080
5081 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
5082 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
5083 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
5084 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
5085
50862006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
5087
5088 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
5089 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
5090 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
5091 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
5092
50932006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
5094
5095 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
5096 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
5097 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
5098 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5099 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
5100 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5101
51022006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
5103
5104 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
5105 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
5106 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
5107 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
5108
51092006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
5110
5111 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
5112 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
5113 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
5114 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
5115 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
5116 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
5117 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
5118 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
5119 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
5120 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
5121 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
5122 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
5123 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
5124 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
5125 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
5126 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
5127
51282006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
5129
5130 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
5131 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
5132
51332007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
5134
5135 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
5136 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
5137
51382007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
5139
5140 * sysdeps/powerpc/powerpc32/970/Implies: New file.
5141 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
5142 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
5143 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
5144 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
5145 * sysdeps/powerpc/powerpc64/970/Implies: New file.
5146 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
5147 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
5148 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
5149 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
5150
51512007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
5152
5153 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
5154
51552007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
5156
5157 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
5158 branch miss-predicts. Ensure that cache line crossing does not impact
5159 dispatch grouping.
5160
51612006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
5162
5163 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
5164 "../../powerpc32/power4/memcopy.h".
5165 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
5166 "../../powerpc32/power4/wordcopy.c".
5167
51682006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
5169
5170 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
5171 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
5172 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
5173 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
5174 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
5175 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
5176
51772006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
5178
5179 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
5180
51812006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
5182
5183 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
5184 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
5185 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
5186 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
5187 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
5188 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
5189 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
5190 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
5191
51922006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
5193
5194 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
5195
51962006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
5197
5198 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
5199 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
5200 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
5201 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
5202 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
5203 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
5204 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
5205
5b55e1d3
RM
52062007-05-29 Roland McGrath <roland@redhat.com>
5207
5208 * po/Makefile (po-sed-cmd): New variable.
5209 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
5210
5da4373c
UD
52112007-05-29 Ulrich Drepper <drepper@redhat.com>
5212
4b5e7304
UD
5213 * crypt/md5-crypt.c: Fix comment.
5214
5da4373c
UD
5215 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
5216 of crashing. When this is the case or if the reply is malformed,
5217 don't try to close the new file descriptor since it does not
5218 exist.
5219 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
5220
40f57573
UD
52212007-05-28 Jakub Jelinek <jakub@redhat.com>
5222
5223 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
5224 if __NR_utimensat is not defined.
5225
6df7ffad
UD
52262007-05-26 Ulrich Drepper <drepper@redhat.com>
5227
5228 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
5229
47ad95ab
UD
52302007-05-25 Jakub Jelinek <jakub@redhat.com>
5231
5232 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
5233 (open): Fix comment typos. Don't call __open_2 if flags
5234 is a compile time constant without O_CREAT.
5235 (__open64_2): Add nonnull attribute.
5236 (open64): Fix comment typos. Don't call __open64_2 if flags
5237 is a compile time constant without O_CREAT.
5238 (__openat_2): Add nonnull attribute, fix nonnull attribute
5239 on redirect.
5240 (openat): Fix comment typos. Don't call __openat_2 if flags
5241 is a compile time constant without O_CREAT.
5242 (__openat64_2): Add nonnull attribute, fix nonnull attribute
5243 on redirect.
5244 (openat64): Fix comment typos. Don't call __openat64_2 if flags
5245 is a compile time constant without O_CREAT.
5246
ddfd0535
UD
52472007-05-24 Ulrich Drepper <drepper@redhat.com>
5248
5249 * Makerules (sysd-rules): Define PTW for ptw-* files.
5250 * Versions: Define GLIBC_2.7 for libc.
5251 * include/stdio.h: Declare __fortify_fail.
5252 * debug/fortify_fail.c: New file.
5253 * debug/Makefile (routines): Add fortify_fail.
5254 * debug/chk_fail.c: Use __fortify_fail.
5255 * debug/stack_chk_fail.c: Likewise.
5256 * io/Versions: Export __open_2, __open64_2, __openat_2, and
5257 __openat64_2 for GLIBC_2.7.
5258 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
5259 * io/open.c: Define *_2 variant of function which checks for O_CREAT
5260 and fails if necessary.
5261 * io/open64.c: Likewise.
5262 * io/openat.c: Likewise.
5263 * io/openat64.c: Likewise.
5264 * sysdeps/unix/sysv/linux/open64.c: Likewise.
5265 * sysdeps/unix/sysv/linux/openat.c: Likewise.
5266 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
5267 * io/bits/fcntl2.h: New file.
5268 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
5269 __openat64_2.
5270 * include/bits/fcntl2.h: New file.
5271 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
5272 Add open_2.
5273 * sysdeps/unix/sysv/linux/open_2.c: New file.
5274
bfe6f5fa
UD
52752007-05-21 Ulrich Drepper <drepper@redhat.com>
5276
6d59823c
UD
5277 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
5278 as second parameter to handle_intel.
5279
e2b1e343
UD
5280 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
5281 the entry.
5282
bfe6f5fa
UD
5283 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
5284 handling to ...
5285 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
5286 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
5287 cacheinfo.
5288 * sysdeps/x86_64/memcpy.S: Complete rewrite.
5289 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
5290 Patch by Evandro Menezes <evandro.menezes@amd.com>.
5291
5292 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
5293
1f4843fb
UD
52942007-05-21 Jakub Jelinek <jakub@redhat.com>
5295
2c2c003a
UD
5296 [BZ #4525]
5297 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
5298 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
5299 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
5300
5301 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
5302
af269dd9
UD
5303 [BZ #4514]
5304 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
5305 reinitialize workend at the start of each do_positional format spec
5306 loop, free workstart before do_positional loops.
5307 (printf_unknown): Fix size of work_buffer.
5308 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
5309
1f4843fb
UD
5310 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
5311 (public_sET_STATe): If ms->version < 3, put all chunks into
5312 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
5313 chunks.
5314
5315 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
5316 * malloc/hooks.c: Likewise.
5317 * malloc/arena.c: Likewise.
5318 * malloc/malloc.c (do_check_malloc_state): Don't assert
5319 n_mmaps is not greater than n_mmaps_max. This removes the need
5320 for the previous change.
5321
5322 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
5323 2007-05-07 commit.
5324
12e8bbff
UD
53252007-05-19 Ulrich Drepper <drepper@redhat.com>
5326
5327 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
5328 Define for kernel >= 2.6.22.
69e5cbf5 5329
12e8bbff 53302007-05-18 Ulrich Drepper <drepper@redhat.com>
6d59823c 5331
df94b641
UD
5332 * elf/dl-close.c (_dl_close_worker): When removing object from
5333 global scope, wait for all lookups to finish afterwards.
5334 * elf/dl-open.c (add_to_global): When global scope array must
5335 grow, allocate a new one and free old array only after all
5336 lookups finish.
5337 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
5338 (_dl_lookup_symbol_x): Likewise.
5339 * elf/dl-support.c: Define _dl_wait_lookup_done.
5340 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
5341 _dl_wait_lookup_done.
5342
2acd01ac
UD
5343 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
5344 not overlapping with arena.
5345
129abdd3
UD
5346 * malloc/mcheck.c (reallochook): If size==0, free the block.
5347
eb4b098a
UD
5348 * rt/tst-shm.c: Use fstat64 instead of fstat.
5349
69e5cbf5
UD
5350 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
5351 __NR_sync_file_range is not defined.
5352
a2ccc760
UD
53532007-05-17 Ulrich Drepper <drepper@redhat.com>
5354
bec51a30
UD
5355 Dummy files to prevent stub versions from being used.
5356 * sysdeps/x86_64/fpu/k_cosl.c: New file.
5357 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
5358 * sysdeps/x86_64/fpu/k_sinl.c: New file.
5359 * sysdeps/x86_64/fpu/k_tanl.c: New file.
5360
a2ccc760
UD
5361 * version.h (VERSION): Set to 2.6.90.
5362
1a31b586
UD
53632007-05-14 Ulrich Drepper <drepper@redhat.com>
5364
a2ccc760
UD
5365 * version.h (VERSION): Define to 2.6.
5366 * include/features.h (__GLIBC_MINOR__): Define to 6.
2c1d6172 5367
1d47e92f
UD
5368 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
5369
5370 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
5371 sizes.
366ad8fd 5372
1a31b586 53732007-05-13 Ulrich Drepper <drepper@redhat.com>
87e66335 5374
366ad8fd
UD
5375 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
5376 number of mmaps. n_mmaps_max is the target.
5377 * malloc/hooks.c: Likewise.
5378 * malloc/arena.c: Likewise.
5379
11ed6713
AJ
53802007-05-12 Andreas Jaeger <aj@suse.de>
5381
5382 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
5383 getpid.
5384
d65ef3dd
UD
53852007-05-11 Ulrich Drepper <drepper@redhat.com>
5386
2e81d449
UD
5387 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
5388 adding new variables.
5389
d65ef3dd 5390 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
2e81d449 5391 optimize. Completely extend global scope array before making the
d65ef3dd
UD
5392 new entries visible.
5393
c27d2078
UD
53942007-05-10 Ulrich Drepper <drepper@redhat.com>
5395
341c566f
UD
5396 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
5397 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
5398 tst-getcpu.
5399
5400 * include/link.h: Move l_version and l_nversion members around to
5401 fill gaps.
5402
a53fa282
UD
5403 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
5404
3771196d
UD
5405 * sysdeps/unix/sysv/linux/sched_setaffinity.c
5406 (__sched_setaffinity_new): If syscall was successful and
5407 RESET_VGETCPU_CACHE is defined, use it before returning.
5408 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
5409
f9bf102d
UD
5410 * io/sys/stat.h: Make sure struct timespec is defined for
5411 __USE_ATFILE.
5412
c27d2078
UD
5413 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
5414 UTIME_OMIT.
5415 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
5416 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
5417 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
5418 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
5419 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
5420 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
5421 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
5422 * io/sys/stat.h: Declare utimensat, futimens.
5423 * io/utimensat.c: New file.
5424 * io/futimens.c: New file.
5425 * sysdeps/unix/sysv/linux/utimensat.c: New file.
5426 * sysdeps/unix/sysv/linux/futimens.c: New file.
5427 * io/Makefile (routines): Add utimensat, futimens.
5428 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
5429 * sysdeps/unix/sysv/linux/lutimes.c: New file.
5430 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
5431 available.
5432
5433 * include/sys/cdefs.h: Redefine __nonnull so that test for
5434 incorrect parameters in the libc code itself are not omitted.
5435
cf6b0980
JJ
54362007-05-09 Jakub Jelinek <jakub@redhat.com>
5437
c1dfd7e6
JJ
5438 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
5439 exception in addition to inexact when asked to raise only FE_INEXACT.
5440
cf6b0980
JJ
5441 [BZ #3427]
5442 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
5443 in *envp.
5444
df7b6fea
UD
54452007-05-07 Ulrich Drepper <drepper@redhat.com>
5446
5447 [BZ #4403]
5448 * string/strfry.c (strfry): Make result more random.
5449
37f40235
RH
54502007-05-07 Richard Henderson <rth@redhat.com>
5451
5452 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
5453 if __NO_LONG_DOUBLE_MATH.
5454 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
df7b6fea 5455 available in the compiler, add .arch directive to the assembly.
37f40235
RH
5456
54572007-05-07 Jakub Jelinek <jakub@redhat.com>
5458
5459 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
5460 compat_symbol to GLIBC_2_1.
5461 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
5462 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
5463 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
5464 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
5465 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
5466 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
5467 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
5468 libc, not libm.
5469 (__isnanl): New compat_symbol.
5470
c7fd3362
JJ
54712007-05-07 Ulrich Drepper <drepper@redhat.com>
5472 Jakub Jelinek <jakub@redhat.com>
5473
5474 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
5475 (new_heap): Initialize mprotect_size.
5476 (grow_heap): When growing, only mprotect from mprotect_size till
5477 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
5478 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
5479
4a59e9ad 54802007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
37f40235 5481 Peter Bergner <bergner@us.ibm.com>
4a59e9ad
UD
5482
5483 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
5484 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
5485 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
5486 * sysdeps/powerpc/fpu/fe_mask.c: New file.
5487 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
5488 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
5489 Call __fe_mask_env() if all FP exceptions disabled.
5490 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
5491 from old FPSCR to new fenv to propagate DFP rounding modes.
5492 Call __fe_mask_env() if FP exceptions previously enabled.
5493 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
5494 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
5495 transitioning from all exceptions disabled to any exception enabled
5496 or visa versa.
5497 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
5498 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
5499 when transitioning from all exceptions disabled to any exception
5500 enabled or visa versa.
5501 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
5502 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
5503 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
5504 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
5505 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
5506 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
5507
aa75f64c
UD
55082007-05-06 Ulrich Drepper <drepper@redhat.com>
5509
15eca720 5510 [BZ #4465]
aa75f64c
UD
5511 * posix/unistd.h: Remove __THROW from fdatasync.
5512
711deb05
UD
55132007-05-06 Mike Frysinger <vapier@gentoo.org>
5514
15eca720 5515 [BZ #4465]
711deb05
UD
5516 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
5517
ffecd39b
UD
55182007-05-06 Ulrich Drepper <drepper@redhat.com>
5519
49a8eb75
UD
5520 * stdio-common/vfprintf.c (process_string_arg): Optimize
5521 ridiculous precision in wide char code printing multi-byte string.
5522 Reported by Jim Meyering <jim@meyering.net>.
5523
ffecd39b
UD
5524 [BZ #4131]
5525 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
5526 boundaries to work around systems with overlapping binary loading.
5527 Based on a patch by Suzuki <suzuki@in.ibm.com>.
5528
b16dba4c
UD
55292007-05-04 Ulrich Drepper <drepper@redhat.com>
5530
30b323ab
UD
5531 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
5532 __mbsnrtowcs after last change.
5533
b16dba4c
UD
5534 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
5535 (get_ident): Likewise.
5536
37002cbc
JJ
55372007-05-03 Jakub Jelinek <jakub@redhat.com>
5538
5539 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
5540 with setting the sticky bit.
5541 * math/test-misc.c (main): Add more truncation tests.
5542
55432007-04-14 Uros Bizjak <ubizjak@gmail.com>
5544
5545 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
5546 double in the function declaration.
5547 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
5548 double in the function declaration.
5549 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
5550 float in the function declaration.
5551 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
5552 float in the function declaration.
5553
5554 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
5555 denormal operands. Do not generate FP_EX_DENORM exception.
5556 (FP_UNPACK_RAW_EP): Ditto.
5557 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
5558 undefined _FP_UNPACK_RAW_E.
5559 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
5560 undefined _FP_UNPACK_RAW_EP.
5561 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
5562 undefined _FP_PACK_RAW_E.
5563 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
5564 undefined _FP_PACK_RAW_EP.
5565
d9ac82d0
UD
5566 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
5567 _FP_FRAC_COPY_2.
5568 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
5569 _FP_FRAC_COPY_4.
37002cbc
JJ
5570
55712007-04-16 Uros Bizjak <ubizjak@gmail.com>
5572 Jakub Jelinek <jakub@redhat.com>
5573
5574 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
5575 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
5576 this case.
5577 * soft-fp/op-common.h (FP_TRUNC): Ditto.
5578
002f0b0b
JJ
55792007-05-03 Jakub Jelinek <jakub@redhat.com>
5580
5581 * math/test-misc.c (main): Add tests for rounding long double
5582 values close to smallest double denormalized value to double.
5583
55842007-04-30 Joseph Myers <joseph@codesourcery.com>
5585
5586 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
5587 condition for truncating to 0. Set sticky bit for such
5588 truncation.
5589
57433ede
UD
55902007-05-02 Jakub Jelinek <jakub@redhat.com>
5591
5592 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
5593 fixed length array for ignore.
5594
c01c2455
UD
55952007-04-30 Ulrich Drepper <drepper@redhat.com>
5596
5597 [BZ #4438]
5598 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
5599 stack for large precisions.
1cb04337
UD
5600 * stdio-common/test-vfprintf.c (main): Add test for large
5601 precision.
c01c2455 5602
37f02b1d
UD
56032007-04-30 Jakub Jelinek <jakub@redhat.com>
5604
b866373d
UD
5605 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
5606 for exponent 0.
5607 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
5608
37f02b1d
UD
5609 [BZ #4439]
5610 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
5611 account in the size check.
5612 * resolv/tst-inet_ntop.c: New test.
5613 * resolv/Makefile (tests): Add tst-inet_ntop.
5614
7ecfbd38
UD
56152007-04-30 Ulrich Drepper <drepper@redhat.com>
5616 Jakub Jelinek <jakub@redhat.com>
5617
5618 [BZ #4349]
5619 * malloc/malloc.c: Keep separate list for first blocks on the bin
5620 lists with a given size. This helps skipping over list elements
5621 we know won't fit in two places.
5622 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
5623
e53f0f51
UD
56242007-04-28 Ulrich Drepper <drepper@redhat.com>
5625
5626 [BZ #4102]
5627 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
5628 label to Teredo tunnel addresses 2001://32.
5629
109f51f2
UD
56302007-04-27 Ulrich Drepper <drepper@redhat.com>
5631
762422d1
UD
5632 * locale/programs/ld-collate.c (collate_read): Allow order_start
5633 after copy.
5634
61d5a67f
UD
5635 * locale/programs/ld-collate.c (collate_read): Fix printing of
5636 error message.
5637
5638 [BZ #3213]
5639 * locale/C-translit.h.in: Add entry for U2044.
5640
109f51f2
UD
5641 [BZ #4342]
5642 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
5643 hexa-decimal floats without exponent.
5644 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
5645
ec08f13d
UD
56462007-04-25 Ulrich Drepper <drepper@redhat.com>
5647
5648 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
5649 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
5650 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
5651 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
5652 GLIBC_2.6.
bce20b9a
UD
5653 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
5654 Add sched_getcpu.
ec08f13d 5655
41967e1c
JJ
56562007-04-25 Jakub Jelinek <jakub@redhat.com>
5657
5658 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
5659 of 0 after the out_fail label.
5660
ba508da3
UD
56612007-04-25 Ulrich Drepper <drepper@redhat.com>
5662
5663 [BZ #4406]
109f51f2 5664 * iconv/gconv_charset.h (strip): Allow ':'.
ba508da3
UD
5665 * iconv/iconv_open.c (iconv_open): Adjust comment.
5666
9c8d03d9
JJ
56672007-04-25 Jakub Jelinek <jakub@redhat.com>
5668
5669 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
5670 version.
5671
2f1687b9
UD
56722007-04-23 Jakub Jelinek <jakub@redhat.com>
5673
5674 [BZ #4381]
5675 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
5676 alignment of buffer and tmp_buffer.
5677 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
5678 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
5679 alignment of buffer.
5680 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
5681 bigger than INT_MAX.
5682 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
5683 h_errnop arguments. Fail if buflen is too small.
5684 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
5685
b64a9db8
JJ
56862007-04-23 Jakub Jelinek <jakub@redhat.com>
5687
5688 [BZ #4405]
5689 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
5690 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
5691
4d3144c9
RM
56922007-04-22 Roland McGrath <roland@redhat.com>
5693
5694 * elf/elf.h (NT_PRXFPREG): New macro.
5695
767b40bf
AJ
56962007-04-19 Andreas Jaeger <aj@suse.de>
5697
5698 [BZ #3905]
5699 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
5700 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
5701 Added.
5702
2592d1ec
UD
57032007-04-19 Ulrich Drepper <drepper@redhat.com>
5704
5705 * include/sys/mman.h: Mark madvise hidden.
d07d044e 5706 * misc/madvise.c: Add libc_hidden_def.
2592d1ec 5707
7ab174ed
UD
57082007-04-06 Jakub Jelinek <jakub@redhat.com>
5709
5710 * nis/nis_domain_of.c (__nis_domain_of): New function.
5711 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
5712 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
5713 * nis/nis_call.c (rec_dirsearch): Likewise.
5714 (first_shoot): Likewise. Remove search_parent_first argument.
5715 (struct nis_server_cache): Rename search_parent_first field
5716 to search_parent.
5717 (nis_server_cache_search, nis_server_cache_add): Rename
5718 search_parent_first argument to search_parent.
5719 (__nisfind_server): Likewise. If search_parent, call
5720 __nis_domain_of.
5721
b17c265f
UD
57222007-04-18 Ulrich Drepper <drepper@redhat.com>
5723
5724 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
5725
b7674b11
UD
57262007-04-17 Ulrich Drepper <drepper@redhat.com>
5727
5728 [BZ #4368]
5729 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
5730
faf3ad69
UD
57312007-04-16 Ulrich Drepper <drepper@redhat.com>
5732
5733 [BZ #4364]
5734 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
5735
c14f245c
UD
57362007-04-15 Jakub Jelinek <jakub@redhat.com>
5737
5738 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
5739 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
5740 current number of locales in SUPPORTED.
5741 (create_archive): Initialize serial.
5742 (enlarge_archive): Preserve aliases rather than duplicating
5743 their locrecs.
5744
d40e67f5
UD
57452007-04-13 Jakub Jelinek <jakub@redhat.com>
5746
993a5d66
UD
5747 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
5748 after _IO_un_link, not before it.
5749
d40e67f5
UD
5750 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
5751 special case handling when wcp == wstartp + 1. Fix a comment typo.
5752 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
5753
0fca3153
UD
57542007-03-30 Jakub Jelinek <jakub@redhat.com>
5755
5756 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
5757 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
5758 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
5759 Remove __THROW.
5760 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
5761 _IO_file_xsgetn_maybe_mmap): Likewise.
5762 * libio/oldfileops.c (old_do_write): Likewise.
5763 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
5764 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
5765 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
5766 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
5767 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
5768 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
5769 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
5770 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
5771 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
5772 _IO_file_underflow, _IO_file_underflow_mmap,
5773 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
5774 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
5775 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
5776 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
5777 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
5778 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
5779 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
5780 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
5781 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
5782 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
5783 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
5784 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
5785 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
5786 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
5787 _IO_adjust_column_internal, _IO_default_uflow_internal,
5788 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
5789 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
5790 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
5791 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
5792 _IO_file_close_it_internal, _IO_file_underflow_internal,
5793 _IO_file_overflow_internal, _IO_file_attach_internal,
5794 _IO_file_fopen_internal, _IO_file_sync_internal,
5795 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
5796 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
5797 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
5798 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
5799 _IO_seekpos_unlocked): Likewise.
5800 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
5801 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
5802
07358add
JJ
58032007-04-16 Jakub Jelinek <jakub@redhat.com>
5804
5805 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
5806 argument in xmalloc size computation.
5807
7a82b74f
UD
58082007-04-01 Jakub Jelinek <jakub@redhat.com>
5809
5810 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
5811 math_opt_barrier and math_force_eval macros.
5812
3e336a87
UD
58132007-03-27 Jakub Jelinek <jakub@redhat.com>
5814
5815 [BZ #3306]
5816 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
5817 * sysdeps/i386/fpu/math_private.h: New file.
5818 * sysdeps/x86_64/fpu/math_private.h: New file.
5819 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
5820 math_force_eval macros. Use "+m" constraint on asm rather than
5821 "=m" and "m".
5822 * math/s_nextafter.c (__nextafter): Likewise.
5823 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
5824 Likewise.
5825 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
5826 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
5827 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
5828 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
5829 math_opt_barrier and math_force_eval macros.
5830 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
5831 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
5832 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
5833 (__nexttoward): Use math_opt_barrier and
5834 math_force_eval macros. Use "+m" constraint on asm rather than
5835 "=m" and "m". Only use asm to force double result if
5836 FLT_EVAL_METHOD is 2.
5837 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
5838 (__nexttowardf): Use math_opt_barrier and
5839 math_force_eval macros. Use "+m" constraint on asm rather than
5840 "=m" and "m". Only use asm to force double result if
5841 FLT_EVAL_METHOD is not 0.
5842 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
5843 (__nexttowardf): Use math_opt_barrier and
5844 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
5845 x to float using asm.
5846 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
5847 (__nldbl_nexttowardf): Use math_opt_barrier and
5848 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
5849 x to float using asm.
5850 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
5851 (__nexttowardf): Use math_opt_barrier and math_force_eval
5852 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
5853 * math/bug-nextafter.c (zero, inf): New variables.
5854 (main): Add new tests.
5855 * math/bug-nexttoward.c (zero, inf): New variables.
5856 (main): Add new tests.
5857
a8c79c40
UD
58582007-03-22 Jakub Jelinek <jakub@redhat.com>
5859
5860 [BZ #3427]
5861 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
5862 exceptions both in SW and MXCSR.
5863 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
5864 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
5865 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
5866 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
5867 in MXCSR if SSE is available.
5868 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
5869 and ldsodefs.h.
5870 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
5871 Fix comment typo.
5872 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
5873 Return 0 rather than 1.
5874 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
5875 Remove incorrect part of a comment. Fix argument to feraiseexcept.
5876 * math/test-fenv.c (feholdexcept_tests): New function.
5877 (main): Call it.
5878
58792007-01-05 Richard B. Kreckel <kreckel@ginac.de>
5880
5881 [BZ #3427]
5882 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
5883 in SW.
5884
30a3aa75
JJ
58852007-04-13 Jakub Jelinek <jakub@redhat.com>
5886
5887 [BZ #4344]
5888 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
5889 Reported by David Anderson <davea42@earthlink.net>.
5890
75587bfe
UD
58912007-04-07 Ulrich Drepper <drepper@redhat.com>
5892
5893 * posix/sys/wait.h: Remove unnecessary forward declaration.
5894
88fa1769
JJ
58952007-04-05 Jakub Jelinek <jakub@redhat.com>
5896
5897 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
5898 with obj->do_servers after first_shoot.
5899
eab1bdfb
UD
59002007-04-03 Ulrich Drepper <drepper@redhat.com>
5901
5902 * posix/Makefile (routines): Add sched_cpucount.
5903 (tests): Add tst-cpucount.
5904 * posix/sched_cpucount.c: New file.
5905 * posix/tst-cpucount.c: New file.
5906 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
b4afdd06
UD
5907 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
5908 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
5909 * posix/sched.h: Define CPU_COUNT.
eab1bdfb 5910
9700b039
UD
59112007-03-27 Jakub Jelinek <jakub@redhat.com>
5912
5913 * posix/fnmatch.c (STRUCT): Define.
5914 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
5915 * posix/fnmatch_loop.c (struct STRUCT): New type.
5916 (FCT): Add ends argument. If ends != NULL and normal * is
5917 seen in the pattern, store current pattern and string pointers
5918 and return. Adjust recursive calls.
5919 (EXT): Adjust FCT callers.
5920 (STRUCT): Undef at the end of the file.
5921 * posix/Makefile (tests): Add tst-fnmatch2.
5922 * posix/tst-fnmatch2.c: New test.
5923
d64e9790
JJ
59242007-04-01 Jakub Jelinek <jakub@redhat.com>
5925
933dfe7b
JJ
5926 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
5927 and 1 on failure.
5928
d64e9790
JJ
5929 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
5930 Change last argument to unsigned int.
5931
e1f0c5bc
UD
59322007-03-23 Jakub Jelinek <jakub@redhat.com>
5933
5934 * scripts/check-local-headers.sh: Filter out sys/capability.h.
5935
59362007-03-22 Jakub Jelinek <jakub@redhat.com>
5937
5938 * config.h.in (HAVE_LIBCAP): Add.
5939 * nscd/selinux.h: Include sys/capability.h rather than non-existent
5940 sys/capabilities.h.
5941 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
5942 free_caps. Cast away const from 4th cap_set_flag argument.
5943
4e87573f
UD
59442007-03-26 Ulrich Drepper <drepper@redhat.com>
5945
5946 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
5947 GLIBC_2.6.
5948 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
5949 Add sync_file_range.
5950 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
5951
fa6e3bc3
UD
59522007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
5953
5954 * sysdeps/powerpc/bits/atomic.h
5955 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
5956 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
5957 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
5958 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
5959 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
5960 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
5961 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
5962 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
5963 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
5964 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
5965 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
5966 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
5967 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
5968 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
5969 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
5970 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
5971 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
5972 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
5973 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
5974 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
5975
59762007-03-20 Jakub Jelinek <jakub@redhat.com>
c7693af7
UD
5977
5978 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
5979 (__cache_line_size): Define the variable here. Add
5980 attribute_hidden, remove weak_extern.
5981 (__libc_start_main): Set __cache_line_size
5982 unconditionally.
5983 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
5984 (__cache_line_size): Define the variable here. Add
5985 attribute_hidden, remove weak_extern.
5986 (DL_PLATFORM_AUXV): Set __cache_line_size
5987 unconditionally.
5988 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
5989 weak_extern, add attribute_hidden.
5990 (__elf_machine_runtime_setup): Assume __cache_line_size is always
5991 defined in ld.so.
5992 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
5993 definition.
5994 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
5995
0479e581
JJ
59962007-03-26 Jakub Jelinek <jakub@redhat.com>
5997
5998 [BZ #4276]
5999 * timezone/africa: Update from tzdata2007d.
6000 * timezone/asia: Likewise.
6001 * timezone/australasia: Likewise.
6002 * timezone/backward: Likewise.
6003 * timezone/europe: Likewise.
6004 * timezone/iso3166.tab: Likewise.
6005 * timezone/leapseconds: Likewise.
6006 * timezone/northamerica: Likewise.
6007 * timezone/southamerica: Likewise.
6008 * timezone/zone.tab: Likewise.
6009
6010 * timezone/private.h: Update from tzcode2007d.
6011 * timezone/zdump.c: Likewise.
6012 * timezone/zic.c: Likewise.
6013
697d37b1
JJ
60142007-03-21 Jakub Jelinek <jakub@redhat.com>
6015
6016 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
6017 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
6018 variables.
6019 (nis_server_cache_search, nis_server_cache_add): New functions.
6020 (__nisfind_server): Use them. Add dbp and flags argument, if
6021 call __nisbind_create.
6022 (__nisbind_create): Add server_used and current_ep arguments,
6023 only call __nis_findfastest if server_used is ~0.
6024 (__do_niscall2, __prepare_niscall): Adjust callers.
6025 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
6026 ckey_cache_euid, ckey_cache_lock): New variables.
6027 (get_ckey): New function.
6028 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
6029 __pmap_getnisport. Save __pmap_getnisport result in
6030 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
6031 key.
6032 * nis/nis_lookup.c (nis_lookup): Likewise.
6033 * nis/nis_table.c (nis_list): Likewise.
6034 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
6035 prototypes.
6036
6037 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
6038 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
6039 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
6040 _nss_nisplus_getservbyport_r): Likewise.
6041 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
6042 _nss_nisplus_getnetbyaddr_r): Likewise.
6043 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
6044 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
6045 _nss_nisplus_getntohost_r): Likewise.
6046 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
6047 _nss_nisplus_getrpcbynumber_r): Likewise.
6048
06029c20
JJ
60492007-03-20 Jakub Jelinek <jakub@redhat.com>
6050
371f84a4
JJ
6051 * configure.in (libc_cv_gnu89_inline): Only do compile test.
6052 * configure: Rebuilt.
6053
06029c20
JJ
6054 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
6055 bit-fields.
6056 * soft-fp/extended.h (_FP_UNION_E): Likewise.
6057
60582006-06-07 Joseph Myers <joseph@codesourcery.com>
6059
6060 [BZ #2831]
6061 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
6062 bit-fields.
6063
addc8335
UD
60642007-03-18 Jakub Jelinek <jakub@redhat.com>
6065
6066 * nscd/gai.c: Include alloca.h.
6067 (__libc_use_alloca): Define.
6068
b037a293
UD
60692007-03-16 Jakub Jelinek <jakub@redhat.com>
6070
965cba04
UD
6071 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
6072 smaller scopes.
6073 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
6074 (DL_DST_REQUIRED): Adjust user.
6075
6076 * include/dlfcn.h (struct link_map): New forward decl.
6077
6078 * inet/getnameinfo.c: Include stddef.h.
6079 (getnameinfo): Use offsetof.
6080
6081 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
6082
6083 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
6084
6085 * string/strerror_l.c: Include stdlib.h.
6086
b037a293
UD
6087 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
6088 * config.make.in (gnu89-inline-CFLAGS): New variable.
6089 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
6090 -std=gnu99.
6091 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
6092 * argp/argp.h: Use it.
6093 * bits/mathinline.h: Likewise.
6094 * bits/sigset.h: Likewise.
6095 * bits/string.h: Likewise.
6096 * ctype/ctype.h: Likewise.
6097 * hurd/hurd.h: Likewise.
6098 * hurd/hurd/fd.h: Likewise.
6099 * hurd/hurd/port.h: Likewise.
6100 * hurd/hurd/signal.h: Likewise.
6101 * hurd/hurd/threadvar.h: Likewise.
6102 * hurd/hurd/userlink.h: Likewise.
6103 * io/sys/stat.h: Likewise.
6104 * libio/bits/stdio.h: Likewise.
6105 * libio/bits/stdio2.h: Likewise.
6106 * mach/lock-intern.h: Likewise.
6107 * mach/mach/mig_support.h: Likewise.
6108 * math/bits/cmathcalls.h: Likewise.
6109 * posix/bits/unistd.h: Likewise.
6110 * socket/bits/socket2.h: Likewise.
6111 * stdlib/bits/stdlib.h: Likewise.
6112 * stdlib/stdlib.h: Likewise.
6113 * string/argz.h: Likewise.
6114 * string/bits/string2.h: Likewise.
6115 * string/bits/string3.h: Likewise.
6116 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
6117 * sysdeps/generic/inttypes.h: Likewise.
6118 * sysdeps/generic/machine-lock.h: Likewise.
6119 * sysdeps/generic/machine-sp.h: Likewise.
6120 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
6121 * sysdeps/i386/i486/bits/string.h: Likewise.
6122 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
6123 * sysdeps/mach/alpha/machine-lock.h: Likewise.
6124 * sysdeps/mach/alpha/machine-sp.h: Likewise.
6125 * sysdeps/mach/i386/machine-lock.h: Likewise.
6126 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
6127 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
6128 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
6129 * sysdeps/s390/bits/string.h: Likewise.
6130 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
6131 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
6132 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
6133 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
6134 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6135 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
6136 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
6137 * wcsmbs/bits/wchar2.h: Likewise.
6138 * wcsmbs/wchar.h: Likewise.
6139 * stdlib/gmp.h: Likewise. Include <features.h> to get
6140 __extern_inline definition.
6141
6b2665f5
UD
61422007-03-15 Jakub Jelinek <jakub@redhat.com>
6143
b037a293
UD
6144 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
6145 NULL.
6146
6b2665f5
UD
6147 [BZ #3919]
6148 * math/libm-test.inc (log_test): Test -Inf and NaN.
6149 (log10_test, log1p_test, log2_test): Test -Inf.
6150 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
6151 FE_INVALID when argument is qNaN.
6152 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
6153 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
6154 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
6155 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
6156 andb $1, %ah with testb $1, %ah, don't test for parity, instead
6157 testb $4, %ah and jump if non-zero.
6158 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
6159 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
6160
44969f17
UD
6161 [BZ #4101]
6162 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
6163 ancestors with the same depths.
6164 Patch by Niels Moeller <nisse@lysator.liu.se>.
6165 (filter_doc): Don't crash if argp is NULL.
6166 * argp/Makefile (tests): Add tst-argp2.
6167 * argp/tst-argp2.c: New test.
6168
05eb8975
UD
6169 [BZ #4130]
6170 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
6171 open_not_cancel_2.
6172 (updwtmp_file): Likewise.
6173
6cb988fa
UD
6174 [BZ #4181]
6175 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
6176 (inet6_opt_append): Don't check extlen is big enough if extbuf
6177 is NULL.
6178 (inet6_opt_finish): Likewise.
6179 * inet/Makefile (tests): Add test-inet6_opt.
6180 * inet/test-inet6_opt.c: New test.
6181
6182 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
6183 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
6184 NLMSG_ERR. Instead use a page sized buffer.
6185 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
6186 buffer.
6187
aea1d19e
RH
61882007-03-14 Richard Henderson <rth@redhat.com>
6189
b6df547c
RH
6190 * sysdeps/alpha/fpu/s_llround.c: New file.
6191 * sysdeps/alpha/fpu/s_llroundf.c: New file.
6192 * sysdeps/alpha/fpu/s_lround.c: New file.
6193 * sysdeps/alpha/fpu/s_lroundf.c: New file.
6194 * sysdeps/alpha/fpu/s_round.c: New file.
6195 * sysdeps/alpha/fpu/s_roundf.c: New file.
6196 * sysdeps/alpha/fpu/s_trunc.c: New file.
6197 * sysdeps/alpha/fpu/s_truncf.c: New file.
6198
aea1d19e
RH
6199 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
6200 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
6201 * sysdeps/alpha/fpu/s_floor.c: Likewise.
6202 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
6203 * sysdeps/alpha/fpu/s_rint.c: Likewise.
6204 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
6205
6206 * sysdeps/alpha/fpu/s_fmax.S: New file.
6207 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
6208 * sysdeps/alpha/fpu/s_fmin.S: New file.
6209 * sysdeps/alpha/fpu/s_fminf.S: New file.
6210 * sysdeps/alpha/fpu/s_isnan.c: New file.
6211 * sysdeps/alpha/fpu/s_isnanf.c: New file.
6212 * sysdeps/alpha/fpu/s_llrint.c: New file.
6213 * sysdeps/alpha/fpu/s_llrintf.c: New file.
6214 * sysdeps/alpha/fpu/s_lrint.c: New file.
6215 * sysdeps/alpha/fpu/s_lrintf.c: New file.
6216 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
6217 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
6218
6219 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
6220 (__fdimf, fdimf, __fdim, fdim): Remove.
6221 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
6222 (__isnanf, __isnan, __isnanl): New.
6223
9e43b50d
RH
62242007-03-13 Richard Henderson <rth@redhat.com>
6225
6226 * sysdeps/ieee754/ldbl-128/Makefile: New file.
6227
62789da3
RH
62282007-03-13 Richard Henderson <rth@redhat.com>
6229
6230 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
6231 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
6232 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
6233 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
6234 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
6235 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
6236
47dbe62b
RH
62372007-03-13 Richard Henderson <rth@redhat.com>
6238
37f40235 6239 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
47dbe62b
RH
6240 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
6241 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
6242 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
6243 Move to dl-auxv.h; initialize instead of extern weak.
6244 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
6245 weak symbol.
6246 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
6247 Extern instead of initialized.
6248
b8097bed
RH
62492007-03-13 Richard Henderson <rth@redhat.com>
6250
6251 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
6252 __sigsuspend_nocancel.
6253
6bf4a686
UD
62542007-03-06 Ulrich Drepper <drepper@redhat.com>
6255
6256 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
6257 172.16/12 address range.
6258
0b3b1a0c
UD
62592007-03-02 Jakub Jelinek <jakub@redhat.com>
6260
6261 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
6262 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
6263 message.
6264
8f3edfee
UD
62652007-03-01 Jakub Jelinek <jakub@redhat.com>
6266
c1c5e654 6267 [BZ #4069]
8f3edfee
UD
6268 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
6269 earlier.
6270 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
6271
6272 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
6273 for x qNaN and y either +-inf or non-integer value.
6274 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
6275 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
6276 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
6277
245a1481
UD
62782007-02-10 Mike Frysinger <vapier@gentoo.org>
6279
6280 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
6281 from sysdep_headers.
6282
c217692b
UD
62832007-02-28 Jakub Jelinek <jakub@redhat.com>
6284
6285 * time/tzfile.c (find_transition): Instead of a linear search try to
6286 guess the transition index, use a linear search if the result is at
6287 most 10 transitions away from the guess or binary search otherwise.
6288
fe64626c
JJ
62892007-02-27 Jakub Jelinek <jakub@redhat.com>
6290
6291 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
6292 memory reallocation.
6293
0f7769f7
UD
62942007-02-21 Ulrich Drepper <drepper@redhat.com>
6295
621c133d
UD
6296 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
6297 and fix some typos.
6298 Optimize use of TOLOWER.
9cf147d8 6299
cdfd61e1
UD
6300 [BZ #3325]
6301 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
6302 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
6303 * sysdeps/i386/fpu/e_fmod.S: Likewise.
6304
8889e7aa
UD
6305 [BZ #3458]
6306 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
6307 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
6308
63a2f305
UD
6309 [BZ #4076]
6310 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
6311 (open_dir_stream): Likewise.
6312 * io/Makefile (tests): Add bug-ftw5.
c536b9b8 6313 * io/bug-ftw5.c: New file.
63a2f305 6314
c8703f88
UD
6315 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
6316 * nscd/servicescache.c (cache_addserv): Likewise.
6317
6318 * nscd/grpcache.c (cache_addgr): In case a record changed on
6319 refresh, adjust key_copy.
6320
61705e06
UD
6321 [BZ #4074]
6322 * nscd/pwdcache.c (cache_addpw): In case a record changed on
6323 refresh, adjust key_copy.
6324
0f7769f7
UD
6325 [BZ #4070]
6326 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
0f7769f7 6327 special cases.
8889e7aa 6328 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
0f7769f7 6329
3979024a
UD
63302007-02-19 Ulrich Drepper <drepper@redhat.com>
6331
4c02bf1a
UD
6332 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
6333 optimization.
6334
3979024a
UD
6335 * stdio-common/vfscanf.c: Small cleanups throughout.
6336
821d3e70
UD
63372007-02-18 Ulrich Drepper <drepper@redhat.com>
6338
2484468b
UD
6339 [BZ #3325]
6340 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
6341 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
6342 * sysdeps/i386/fpu/e_fmod.S: Likewise.
6343 Patch by Jared Casper <jaredcasper@gmail.com>.
6344
858ee15d
UD
6345 * sysdeps/unix/closedir.c: Outside libc don't use locking.
6346 * sysdeps/unix/opendir.c: Likewise.
6347 * sysdeps/unix/readdir.c: Likewise.
6348
ecb72bd5
UD
6349 [BZ #2211]
6350 * stdio-common/vfscanf.c: Handle localized digits etc for floating
6351 point numbers.
6352 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
6353
ac2ca022
UD
6354 * stdio-common/vfscanf.c: Fix problems in width accounting.
6355 * stdio-common/tst-sscanf.c (double_tests): New tests.
6356 (main): Hook them up.
6357
e9bb5246 6358 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
da50f001 6359 More simplifications of floating-point reader.
e9bb5246 6360
821d3e70
UD
6361 * stdio-common/Makefile (tests): Add tst-swscanf.
6362 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
6363 testing.
6364 * stdio-common/tst-swscanf.c: New file.
6365
07fb5185
UD
63662007-02-17 Ulrich Drepper <drepper@redhat.com>
6367
9138cc0b
UD
6368 [BZ #2633]
6369 * libio/stdio.h: Define struct _IO_FILE in global namespace.
6370 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
6371 Remove using for __jmp_buf_tag.
6372 * locale/locale.h (struct lconv): Also define in std namespace.
6373 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
6374
6818d837
UD
6375 [BZ #3842]
6376 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
6377 using __libc_enable_secure.
6378
15c4b5a4
UD
6379 [BZ #3818]
6380 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
6381
5e9e9c14
UD
6382 [BZ #3745]
6383 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
6384 of names for ellipsises.
6385
07fb5185
UD
6386 [BZ #3348]
6387 * malloc/memusage.sh: Cleanups.
6388 * debug/xtrace.sh: Quoting and trap changes.
6389
8c6d1043
UD
63902007-02-16 Ulrich Drepper <drepper@redhat.com>
6391
07fb5185
UD
6392 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
6393
93e66914 6394 * locale/iso-3166.def: Update entry for Serbia.
93e36434
UD
6395 * locale/iso-4217.def: Define RSD, remove CSD.
6396
ad0b348c
UD
6397 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
6398 and 64-bit operations.
6399
6400 [BZ #4040]
6401 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
6402 16-bit operations.
6403
8c6d1043
UD
6404 * nscd/nscd.c (parse_opt): One more conversion to use send instead
6405 of writev.
6406
987f54c6
UD
64072007-02-15 Ulrich Drepper <drepper@redhat.com>
6408
b3715c05
UD
6409 [BZ #3991]
6410 * assert/assert.h (assert): Simplify.
6411 (assert_perror): Likewise.
6412 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
6413
6eea8e0d
UD
6414 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
6415 reqdata.
6416
987f54c6
UD
6417 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
6418 change: don't pass NULL in place of an integer.
6419
3dc08a7e
UD
64202007-02-02 Bruno Haible <bruno@clisp.org>
6421
06c17c78
UD
6422 [BZ #3954]
6423 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
6424 Add mapping for U+327E.
6425 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
6426 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
6427 mapping of 0xD9 0xE8.
6428 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
6429 mapping of U+327E.
6430 Reported by Jungshik Shin <jungshik@google.com>.
6431
6432 [BZ #3955]
3dc08a7e
UD
6433 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
6434 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
6435 Reported by Jungshik Shin <jungshik@google.com>.
6436
a810e68c
UD
64372007-02-14 Ulrich Drepper <drepper@redhat.com>
6438
6439 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
6440 byte variants.
6441
6442 [BZ #4040]
6443 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
6444 byte variants. Patch mostly be tom@tommay.net.
6445
05f135ba
UD
64462007-02-14 Jakub Jelinek <jakub@redhat.com>
6447
6448 [BZ #3996]
6449 * posix/glob.c (attribute_hidden): Define if not defined.
6450 (glob): Unescape dirname, filename or username when needed and not
6451 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
6452 is NULL. Handle unescaped [ in pattern without closing ].
6453 Don't pass GLOB_CHECK down to recursive glob for directories.
6454 (__glob_pattern_type): New function.
6455 (__glob_pattern_p): Implement using __glob_pattern_type.
6456 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
6457 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
6458 Remove unreachable code.
6459 * posix/globtest.sh: Add a couple of new tests.
6460
2f699967
UD
64612007-02-13 Ulrich Drepper <drepper@redhat.com>
6462
6463 * po/ru.po: Update from translation team.
6464
3a7cd5b4
JJ
64652007-02-12 Jakub Jelinek <jakub@redhat.com>
6466
6467 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
6468 to the list of i486+ CPUs.
6469 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
6470
2f978feb
UD
64712007-02-12 Ulrich Drepper <drepper@redhat.com>
6472
6473 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
6474 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
6475 references.
6476
2bbb7d5b
UD
64772007-02-09 Ulrich Drepper <drepper@redhat.com>
6478
5ed61e0f
UD
6479 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
6480
2bbb7d5b
UD
6481 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
6482 * resolv/res_mkquery.c: Define __res_nopt.
6483 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
6484 try adding EDNS0 record.
6485 * resolv/res_send.c (send_dg): If request failed with FORMERR and
6486 EDNS0 record was send make sure we don't try it again.
6487 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
6488 * include/resolv.h: Declare __res_nopt.
6489
00458b5b
UD
64902007-02-08 Jakub Jelinek <jakub@redhat.com>
6491
6492 [BZ #3944]
6493 * time/strptime_l.c (__strptime_internal): Set have_mon for
6494 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
6495 have been computed from tm_yday and tm_year. Don't crash
6496 in day_of_the_week or day_of_the_year if not have_mon
6497 and tm_mon contains bogus value.
6498 * time/Makefile (tests): Add tst-strptime3.
6499 * time/tst-strptime3.c: New test.
6500
784aacea
UD
65012007-02-05 Jakub Jelinek <jakub@redhat.com>
6502
6503 [BZ #3957]
6504 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
6505 bit for RE_HAT_LISTS_NOT_NEWLINE.
6506 (build_charclass_op): Remove bogus comment.
6507 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
6508 * posix/bug-regex27.c: New test.
6509 * posix/bug-regex28.c: New test.
6510
bf7a2463
UD
65112007-02-03 Ulrich Drepper <drepper@redhat.com>
6512
6513 * po/sv.po: Update from translation team.
6514
f2ccf983
UD
65152007-02-02 Ulrich Drepper <drepper@redhat.com>
6516
6517 * nscd/nscd_helper.c (open_socket): Minor size optimization.
6518
73f50d5a
UD
65192007-02-02 Jakub Jelinek <jakub@redhat.com>
6520
6521 * include/locale.h (__uselocale): Add libc_hidden_proto.
6522 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
6523
f6bf9e59
JJ
6524 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
6525 gettimeofday.
6526
4a44ce79
UD
65272007-02-01 Ulrich Drepper <drepper@redhat.com>
6528
6529 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
6530 returning.
6531 (PTR_DEMANGLE): Real definition now that it's not the same as
6532 PRT_MANGLE anymore.
6533 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
6534
6535 * string/strerror_l.c: New file.
6536 * string/Makefile (routines): Add strerror_l.
6537 * string/string.h: Declare strerror_l.
6538 * string/Versions: Export strerror_l for GLIBC_2.6.
6539
58a2d52e
UD
65402007-01-31 Ulrich Drepper <drepper@redhat.com>
6541
6542 * nscd/nscd_helper.c (open_socket): Now takes request type and key
6543 as parameter. Construct request record. Try sending request
6544 before the first poll use, it usually succeeds. Adjust all
6545 callers.
6546 * nscd/nscd-client.h: Define MAXKEYLEN.
4a44ce79 6547 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
58a2d52e 6548
1a77d37f
JJ
65492007-01-31 Jakub Jelinek <jakub@redhat.com>
6550
6551 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
6552 from return value.
6553 * nscd/nscd_helper.c: Include string.h.
6554 (__nscd_cache_search): Remove const qualifier from return value.
6555 On strict alignment architectures check hash entry and data head
6556 alignment.
6557 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
6558 mmapped data during GC cycle contains garbage. If
6559 __nscd_drop_map_ref fails, decrement mapped->counter when returning
6560 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
6561 dropped to 0.
6562 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
6563 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
6564 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6565 * nscd/nscd_getai.c (__nscd_getai): Likewise.
6566 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
6567
ee314200
UD
65682007-01-30 Ulrich Drepper <drepper@redhat.com>
6569
6570 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
6571
14c8bf3b
UD
65722007-01-26 Ulrich Drepper <drepper@redhat.com>
6573
6574 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
6575 names not numbers in cfi_*.
6576
d2708e67
AJ
65772007-01-26 Andreas Jaeger <aj@suse.de>
6578
6579 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
14c8bf3b 6580 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
d2708e67
AJ
6581 Correct values of PER_HPUX and PER_OSF4.
6582
7fbc8784
UD
65832007-01-24 Ulrich Drepper <drepper@redhat.com>
6584
8aaf53ee 6585 * elf/dl-minimal.c: Undefine _itoa first.
7fbc8784
UD
6586 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
6587 * malloc/mtrace.c: Revert last change.
6588 * posix/wordexp.c: Likewise.
6589
9d6cde3d
UD
65902007-01-24 Jakub Jelinek <jakub@redhat.com>
6591
6592 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
6593 and __geode__ to the list of i486+ CPUs.
6594 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
6595
c1f0486a
UD
65962007-01-23 Ulrich Drepper <drepper@redhat.com>
6597
6598 * stdio-common/_itoa.c: Include <limits.h>.
6599 * stdio-common/_itowa.c: Likewise.
6600
6cae3957
UD
66012007-01-22 Ulrich Drepper <drepper@redhat.com>
6602
765bbb24
UD
6603 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
6604 platforms.
6605 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
6606 64-bit platforms.
6607 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
6608 possible.
6609 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
6610 if possible.
6611
6cae3957
UD
6612 [BZ #3902]
6613 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
6614 * stdio-common/Makefile (tests): Add bug17.
6615 * stdio-common/bug17.c: New file.
6616
ddaafd04
UD
66172007-01-19 Ulrich Drepper <drepper@redhat.com>
6618
6619 * iconvdata/brf.c: New file.
439201de
UD
6620 * iconvdata/testdata/BRF: New file.
6621 * iconvdata/testdata/BRF..UTF8: New file.
6622 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
ddaafd04
UD
6623 * iconvdata/Makefile: Add rules to build BRF.
6624 * iconvdata/TESTS: Add BRF entry.
6625 * iconvdata/gconv-modules: Likewise.
6626 * iconvdata/tst-tables.sh: Likewise.
ddaafd04 6627
9e6e344e
UD
66282007-01-18 Anton Nikishaev <anton.nik@gmail.com>
6629
6630 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
6631 type `long long int', not `long int'.
6632 (wcstoq): Likewise.
6633
299f7b0f
UD
66342007-01-18 Ulrich Drepper <drepper@redhat.com>
6635
6636 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
6637 of values on 64-bit platforms which are too large.
6638
cd8127cc
JJ
66392007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
6640 Joe Kerian <jkerian@us.us.ibm.com>
6641
6642 [BZ #2749]
6643 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
6644 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
6645 (__copysignl): Use signbit() for comparison.
6646 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
6647 SET_LDOUBLE_WORDS64.
6648
6649 [BZ #2423, #2749]
6650 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
6651 (__ceill): Remove calls to fegetround(), fesetround().
6652 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
6653 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
6654 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
6655
b3acfdf7
JJ
66562007-01-17 Jakub Jelinek <jakub@redhat.com>
6657
4a2e03c6
JJ
6658 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
6659
b3acfdf7
JJ
6660 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
6661
1476bce6
UD
66622007-01-17 Ulrich Drepper <drepper@redhat.com>
6663
6664 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
6665 demangle pointer.
6666 * csu/libc-start.c: Likewise.
6667
d78bce1c
UD
66682007-01-16 Ulrich Drepper <drepper@redhat.com>
6669
6670 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
6671 really work anyway.
6672
1bd79025
UD
66732007-01-15 Ulrich Drepper <drepper@redhat.com>
6674
000b027e
UD
6675 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
6676 users.
6677 (handle_request): Remove unnecessary tests.
6678
1bd79025
UD
6679 * nscd/cache.c (cache_add): Record the failure to add to the cache.
6680
d68f5d2c
JJ
66812007-01-15 Jakub Jelinek <jakub@redhat.com>
6682
6683 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
6684 workbits in semi-raw fraction.
6685
6686 * math/test-misc.c: Add new tests.
6687
66882007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
6689
6690 * math/basic-test.c: Include test-skeleton.c.
6691 (TEST_TRUNC): Define.
6692 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
6693 (main): Rename to ...
6694 (do_test): ...this. Run new tests.
6695 (TEST_FUNCTION): Define.
6696
66972006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
6698 Joe Kerian <jkerian@us.us.ibm.com>
6699
6700 [BZ #2749]
6701 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
6702 handling for high words.
6703 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
6704 and overflow for infinity.
6705
4e35ef2c
UD
67062007-01-15 Ulrich Drepper <drepper@redhat.com>
6707
2a1dea97
UD
6708 * nscd/connections.c (handle_request): Add a __builtin_expect.
6709
9691d83c
UD
6710 * nscd/connections.c (serv2db): Change type into structure which
6711 also says whether this is a request for data. Renamed to
6712 servinfo. All users changed.
6713 (handle_request): Much simpler test whether we should search the cache.
6714
49ee6d79
UD
6715 * nscd/connections.c (handle_request): Fix thinko in selinux test
6716 invocation.
6717
4e35ef2c
UD
6718 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
6719 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
6720 it before getting dl_load_lock and then relock.
6721 (_dl_lookup_symbol_x): Pass flags to add_dependency.
6722 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
6723 case we unlocked the scope.
6724 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
6725 _dl_lookup_symbol_x in case we locked the scope.
6726 (_dl_profile_fixup): Likewise.
6727 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
6728 set DL_LOOKUP_SCOPE_LOCK.
6729
23691ab2
UD
67302007-01-13 Ulrich Drepper <drepper@redhat.com>
6731
fb453d08
UD
6732 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
6733 CFLAGS-getsrvbynpt_r.c.
6734 * nscd/getsrvbynm_r.c: New file.
6735 * nscd/getsrvbypt_r.c: New file.
6736 * nscd/nscd_getserv_r.c: New file.
6737 * nscd/servicescache.c: New file.
6738 * nscd/Makefile (routines): Add nscd_getserv_r.
6739 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
6740 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
6741 CFLAGS-getsrvbypt_r.c.
6742 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
6743 table. Add entries for services database.
6744 * nscd/connections.c (serv2str): Mark as const. Add entries for
6745 services database.
6746 (dbs): Add .reset_res and servdb initialization.
6747 (serv2db): Add entries for services database.
6748 (verify_persistent_db): Accept dbnr == servdb.
6749 (invalidate_cache): Rewrite database name recognition to use a table.
6750 Call res_init() if .reset_res is set for database.
6751 (handle_request): Add code to handle services database.
6752 * nscd/gai.c: Don't define __getservbyname_r.
6753 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
6754 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
6755 (serv_response_header): Define.
6756 (struct datahead): Add serv_response_header member.
6757 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
6758 using table.
6759 * nscd/nscd.conf: Add entries for services database.
6760 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
6761 Declare serv_iov_disabled.
6762 Declare addservbyname, readdservbyname, addservbyport, and
6763 readdservbyport.
6764 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
6765 (find_db): Fix error message.
6766 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
6767 __nscd_getservbyname_r, and __nscd_getservbyport_r.
6768 * nscd/selinux.c (perms): Add entries for services database.
6769 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
6770 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
6771
6772 * nscd/grpcache.c: Remove obsolete code. Cleanups.
6773 * nscd/hstcache.c: Likewise.
6774 * nscd/pwdcache.c: Likewise.
6775
b21fa963
UD
6776 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
6777 computation of keylen.
6778
23691ab2
UD
6779 * include/string.h: Only redefine strndupa if this is really for
6780 libc code.
6781
8980796b
UD
67822007-01-12 Ulrich Drepper <drepper@redhat.com>
6783
4a4a65f2
UD
6784 * nscd/nscd_gethst_r.c: Minor cleanups.
6785
43397eaf
UD
6786 * nscd/connections.c (handle_request): Check selinux permissions
6787 for all non-admin commands.
6788
038a1a9f
UD
6789 * sysdeps/i386/i486/bits/atomic.h: Define
6790 atomic_compare_and_exchange_val_acq,
6791 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
6792 using __sync_* built-ins for gcc >= 4.1.
6793 * sysdeps/x86_64/bits/atomic.h: Likewise.
6794
8980796b
UD
6795 [BZ #3840]
6796 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
6797 and .oS.d files.
6798
32c075e1
JJ
67992007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
6800
6801 * stdlib/tst-makecontext.c: Include errno.h. Change main()
6802 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
6803 (do_test): Check errno and exit(0) if ENOSYS.
6804
68052007-01-11 Jakub Jelinek <jakub@redhat.com>
6806
6807 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
6808 thousands separators.
6809 * stdlib/Makefile: Add rules to build and run tst-strtod4.
6810 * stdlib/tst-strtod4.c: New test.
6811
6812 [BZ #3855]
6813 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
6814 hexadecimal digit should accept just the initial 0.
6815 * stdlib/tst-strtod2.c (tests): New variable.
6816 (do_test): Run several tests rather than just one.
6817
11bf311e 68182007-01-11 Jakub Jelinek <jakub@redhat.com>
df859a0c 6819
11bf311e
UD
6820 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
6821 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
df859a0c 6822
11bf311e 68232007-01-10 Ulrich Drepper <drepper@redhat.com>
32c075e1 6824
11bf311e
UD
6825 * io/fts.c: Make sure fts_cur is always valid after return from
6826 fts_read.
6827 Patch by Miloslav Trmac <mitr@redhat.com>.
64a0aa0f 6828
11bf311e 68292006-10-27 Richard Sandiford <richard@codesourcery.com>
32c075e1 6830
11bf311e
UD
6831 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
6832 (R_MIPS_NUM): Bump by 1.
32c075e1 6833
11bf311e 68342007-01-03 Jakub Jelinek <jakub@redhat.com>
32c075e1 6835
11bf311e
UD
6836 * posix/execvp.c: Include alloca.h.
6837 (allocate_scripts_argv): Renamed to...
6838 (scripts_argv): ... this. Don't allocate buffer here nor count
6839 arguments.
6840 (execvp): Use alloca if possible.
6841 * posix/Makefile: Add rules to build and run tst-vfork3 test.
6842 * posix/tst-vfork3.c: New test.
32c075e1
JJ
6843
68442007-01-03 Ulrich Drepper <drepper@redhat.com>
6845
6846 * string/Makefile (tst-strxfrm2-ENV): Define.
11bf311e 6847 * stdlib/Makefile (tst-strtod3-ENV): Define.
32c075e1 6848
11bf311e 68492007-01-02 Ulrich Drepper <drepper@redhat.com>
32c075e1 6850
11bf311e
UD
6851 * posix/getconf.c: Update copyright year.
6852 * nss/getent.c: Likewise.
6853 * iconv/iconvconfig.c: Likewise.
6854 * iconv/iconv_prog.c: Likewise.
6855 * elf/ldconfig.c: Likewise.
6856 * catgets/gencat.c: Likewise.
6857 * csu/version.c: Likewise.
6858 * elf/ldd.bash.in: Likewise.
6859 * elf/sprof.c (print_version): Likewise.
6860 * locale/programs/locale.c: Likewise.
6861 * locale/programs/localedef.c: Likewise.
6862 * nscd/nscd.c (print_version): Likewise.
6863 * debug/xtrace.sh: Likewise.
6864 * malloc/memusage.sh: Likewise.
6865 * malloc/mtrace.pl: Likewise.
6866 * debug/catchsegv.sh: Likewise.
64a0aa0f 6867
11bf311e 68682006-12-24 Ulrich Drepper <drepper@redhat.com>
48576885 6869
11bf311e
UD
6870 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
6871 attempts.
48576885 6872
11bf311e 68732006-12-23 Ulrich Drepper <drepper@redhat.com>
3b6667a4 6874
11bf311e 6875 * posix/wordexp.c: Remove some unnecessary tests.
3b6667a4 6876
33c6de58
UD
68772006-12-22 Gavin Romig-Koch <gavin@redhat.com>
6878
6879 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
6880 blacklist the group till after we look it up.
6881
fc242bef
UD
68822006-12-21 Ulrich Drepper <drepper@redhat.com>
6883
6884 * include/atomic.h (atomic_forced_read): New macro.
6885
11bf311e
UD
68862006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
6887
6888 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
6889
a12dcecc
UD
68902006-12-19 Jakub Jelinek <jakub@redhat.com>
6891
11bf311e
UD
6892 * nss/getXXbyYY_r.c: Include atomic.h.
6893 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
6894 add atomic_write_barrier () in between.
6895
a12dcecc
UD
6896 * stdlib/Makefile (tests): Add tst-makecontext.
6897 * stdlib/tst-makecontext.c: New test.
6898
6899 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
6900 (__makecontext): Don't realign uc_mcontext.uc_regs.
6901
11bf311e 69022006-11-28 Jakub Jelinek <jakub@redhat.com>
594d423a 6903
11bf311e
UD
6904 * elf/dl-support.c: Include dl-procinfo.h.
6905 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
6906 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
6907 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
6908 Define.
6909 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
6910 hardcoded constants.
6911 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
6912 PPC_PLATFORM_* macros for array designators.
594d423a 6913
11bf311e 69142006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
594d423a 6915
11bf311e
UD
6916 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
6917 names to the beginning.
6918 (_dl_powerpc_platforms): Add "power6x".
6919 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
6920 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
6921 (_DL_PLATFORMS_COUNT): Increase.
6922 (_dl_string_platform): Handle power6x case.
6923 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
6924 PPC_FEATURE_POWER6_EXT): Define.
6925 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
594d423a 6926
5bcba0ed
UD
69272006-12-18 Jakub Jelinek <jakub@redhat.com>
6928
6929 [BZ #3747]
6930 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11bf311e 6931 [-2^31 .. 2^31) range.
5bcba0ed
UD
6932 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
6933 targets.
6934 * stdlib/tst-rand48-2.c: New test.
6935 * stdlib/Makefile (tests): Add tst-rand48-2.
6936
9e1444fc
UD
69372006-12-14 Jakub Jelinek <jakub@redhat.com>
6938
6939 * misc/tst-pselect.c (do_test): Fix sigblock argument.
6940
36775704
UD
69412006-12-14 Ulrich Drepper <drepper@redhat.com>
6942
6943 * misc/tst-pselect.c (do_test): Make sure the helper process is
6944 terminating when the test is aborted.
6945
1e88bd0f
UD
69462006-12-13 Ulrich Drepper <drepper@redhat.com>
6947
11bf311e
UD
6948 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
6949 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
6950 Handle relatime mount option.
6951
1e88bd0f
UD
6952 [BZ #2337]
6953 * libio/Makefile (tests): Add tst-setvbuf1.
6954 * libio/tst-setvbuf1.c: New file.
6955
69562006-12-08 Jakub Jelinek <jakub@redhat.com>
6957
6958 [BZ #2337]
6959 * libio/genops.c (__uflow): Fix a typo.
6960 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
6961 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
6962 the narrow buffer size.
6963
69642006-11-24 Jakub Jelinek <jakub@redhat.com>
6965
6966 [BZ #2337]
6967 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
6968 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
6969 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
6970 in _flags.
6971 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
6972 _IO_wstr_finish): Likewise.
6973 * libio/wmemstream.c (open_wmemstream): Likewise.
6974 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
6975 even for wide streams.
6976
11bf311e 69772006-12-13 Jakub Jelinek <jakub@redhat.com>
1f55ce48 6978
11bf311e
UD
6979 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
6980 kernel-features.h.
6981
69822006-12-11 Ulrich Drepper <drepper@redhat.com>
6983
6984 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
6985 separators also if no non-zero digits found.
6986 * stdlib/Makefile (tests): Add tst-strtod3.
1f55ce48 6987
d117c1ce
UD
69882006-12-09 Ulrich Drepper <drepper@redhat.com>
6989
f85fb97b
UD
6990 [BZ #3632]
6991 * include/features.h: Fix comment about default value for
6992 _POSIX_C_SOURCE.
6993
11bf311e
UD
6994 [BZ #3664]
6995 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
6996 empty parsed strings.
6997 * stdlib/Makefile (tests): Add tst-strtod2.
6998 * stdlib/tst-strtod2.c: New file.
6999
7000 [BZ #3673]
7001 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
7002 computation.
7003 * stdlib/Makefile (tests): Add tst-atof2.
7004 * stdlib/tst-atof2.c: New file.
7005
7006 [BZ #3674]
7007 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
7008 correctly if removing trailing zero of hex-float.
7009 * stdlib/Makefile (tests): Add tst-atof1.
7010 * stdlib/tst-atof1.c: New file.
7011
a822d9f4
UD
70122006-12-09 Jakub Jelinek <jakub@redhat.com>
7013
11bf311e
UD
7014 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
7015 Start searching for next comma at p rather than rest.
7016 * misc/Makefile (tests): Add tst-mntent2.
7017 * misc/tst-mntent2.c: New test.
7018
a822d9f4
UD
7019 * misc/getusershell.c (initshells): Check for integer overflows.
7020 Make strings buffer one bigger as fgets always succeeds when second
7021 argument is 1. Don't use calloc for shells array. Disallow
11bf311e 7022 / as shell.
f0d5e1f6 7023
11bf311e 70242006-12-08 Ulrich Drepper <drepper@redhat.com>
f0d5e1f6 7025
11bf311e
UD
7026 * malloc/memusage.c: Handle realloc with new size of zero and
7027 non-NULL pointer correctly.
7028 (me): Really write first record twice.
7029 (struct entry): Make format bi-arch safe.
7030 (dest): Write out more realloc statistics.
7031 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
32c075e1 7032
11bf311e 70332006-12-05 Jakub Jelinek <jakub@redhat.com>
32c075e1 7034
11bf311e 7035 * nis/nis_subr.c (nis_getnames): Revert last change.
32c075e1 7036
f0d5e1f6
UD
70372006-12-04 Jakub Jelinek <jakub@redhat.com>
7038
7039 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
7040 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
7041 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
7042 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
7043 ENOTTY.
7044 * io/Makefile: Add rules to build and run tst-ttyname_r test.
7045 * io/tst-ttyname_r.c: New test.
7046
11bf311e 70472006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5df4fe08 7048
11bf311e 7049 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
5df4fe08 7050
11bf311e 70512006-11-30 H.J. Lu <hongjiu.lu@intel.com>
ee50871d 7052
11bf311e
UD
7053 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
7054 jump table entries.
7055
70562006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
7057
7058 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
7059 `clone' function to ensure proper unwinding stop of gdb.
7060 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
7061
70622006-12-01 Ulrich Drepper <drepper@redhat.com>
7063
7064 * nscd/nscd.init: Remove obsolete and commented-out -S option
7065 handling.
7066
70672006-11-23 Jakub Jelinek <jakub@redhat.com>
7068
7069 [BZ #3514]
7070 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
7071
7072 [BZ #3515]
7073 * manual/string.texi (strtok): Remove duplicate paragraph.
7074
70752006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7076
7077 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
7078 libgcc not supporting `rflags' unwinding (register # >= 17).
7079
70802006-11-30 Jakub Jelinek <jakub@redhat.com>
7081
7082 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
7083 succeeded.
7084
70852006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
7086 Jakub Jelinek <jakub@redhat.com>
7087 Jan Kratochvil <jan.kratochvil@redhat.com>
7088
7089 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
7090 unwind information.
7091 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
7092 'restore_rt' even in the 'signal' directory.
7093 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
ee50871d 7094
b1a758f3
UD
70952006-11-27 Jakub Jelinek <jakub@redhat.com>
7096
7097 [BZ #3559]
7098 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11bf311e
UD
7099 malloc crashed. Don't allocate memory unnecessarily in each
7100 loop.
b1a758f3 7101
11bf311e 71022006-10-21 Jakub Jelinek <jakub@redhat.com>
854d1124 7103
11bf311e 7104 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
dfc99a56 7105
11bf311e 71062006-11-20 Ulrich Drepper <drepper@redhat.com>
dfc99a56 7107
11bf311e 7108 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
852d657c 7109
11bf311e 71102006-11-18 Bruno Haible <bruno@clisp.org>
852d657c 7111
11bf311e
UD
7112 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
7113 __sysconf only after having tried to call getgroups32.
36c0a636 7114
11bf311e 71152006-11-19 Ulrich Drepper <drepper@redhat.com>
36c0a636 7116
11bf311e
UD
7117 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
7118 addresses for IPv4 queries if they can be mapped.
b1f0c2a6 7119
11bf311e 71202006-11-16 Jakub Jelinek <jakub@redhat.com>
b1f0c2a6 7121
11bf311e
UD
7122 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
7123 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
7124 (signmask): Add .size directive.
7125 (othermask): Add .type directive.
bef8927a 7126
11bf311e 71272006-11-14 Ulrich Drepper <drepper@redhat.com>
2c53fa20 7128
11bf311e 7129 * po/nl.po: Update from translation team.
854d1124 7130
11bf311e 7131 * timezone/zdump.c: Redo fix for BZ #3137.
3f1e9205 7132
11bf311e 71332006-11-14 Jakub Jelinek <jakub@redhat.com>
bef8927a 7134
11bf311e
UD
7135 * nss/nss_files/files-alias.c (get_next_alias): Set line back
7136 to first_unused after parsing :include: file.
5c2af134 7137
32c075e1 71382006-11-10 Ulrich Drepper <drepper@redhat.com>
e1b37083 7139
11bf311e
UD
7140 * timezone/africa: Update from tzdata2006o.
7141 * timezone/antarctica: Likewise.
7142 * timezone/asia: Likewise.
7143 * timezone/australasia: Likewise.
7144 * timezone/backward: Likewise.
7145 * timezone/europe: Likewise.
7146 * timezone/iso3166.tab: Likewise.
7147 * timezone/northamerica: Likewise.
7148 * timezone/southamerica: Likewise.
7149 * timezone/zone.tab: Likewise.
7150
7151 * time/tzfile.c (__tzfile_read): Extend to handle new file format
7152 on machines with 64-bit time_t.
7153
7154 * timezone/checktab.awk: Update from tzcode2006o.
7155 * timezone/ialloc.c: Likewise.
7156 * timezone/private.h: Likewise.
7157 * timezone/scheck.c: Likewise.
7158 * timezone/tzfile.h: Likewise.
7159 * timezone/tzselect.ksh: Likewise.
7160 * timezone/zdump.c: Likewise.
7161 * timezone/zic.c: Likewise.
7162
7163 [BZ #3483]
7164 * elf/ldconfig.c (main): Call setlocale and textdomain.
7165 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
7166
7167 [BZ #3480]
7168 * manual/argp.texi: Fix typos.
7169 * manual/charset.texi: Likewise.
7170 * manual/errno.texi: Likewise.
7171 * manual/filesys.texi: Likewise.
7172 * manual/lang.texi: Likewise.
7173 * manual/maint.texi: Likewise.
7174 * manual/memory.texi: Likewise.
7175 * manual/message.texi: Likewise.
7176 * manual/resource.texi: Likewise.
7177 * manual/search.texi: Likewise.
7178 * manual/signal.texi: Likewise.
7179 * manual/startup.texi: Likewise.
7180 * manual/stdio.texi: Likewise.
7181 * manual/sysinfo.texi: Likewise.
7182 * manual/syslog.texi: Likewise.
7183 * manual/time.texi: Likewise.
7184 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7185
7186 [BZ #3465]
7187 * sunrpc/clnt_raw.c: Minimal message improvements.
7188 * sunrpc/pm_getmaps.c: Likewise.
7189 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
7190 * nis/nis_print_group_entry.c: Likewise.
7191 * locale/programs/repertoire.c: Likewise.
7192 * locale/programs/charmap.c: Likewise.
7193 * malloc/memusage.sh: Likewise.
7194 * elf/dl-deps.c: Likewise.
7195 * locale/programs/ld-collate.c: Likewise.
7196 * libio/vswprintf.c: Likewise.
7197 * malloc/memusagestat.c: Likewise.
7198 * sunrpc/auth_unix.c: Likewise.
7199 * sunrpc/rpc_main.c: Likewise.
7200 * nscd/cache.c: Likewise.
7201 * locale/programs/repertoire.c: Unify output messages.
7202 * locale/programs/charmap.c: Likewise.
7203 * locale/programs/ld-ctype.c: Likewise.
7204 * locale/programs/ld-monetary.c: Likewise.
7205 * locale/programs/ld-numeric.c: Likewise.
7206 * locale/programs/ld-time.c: Likewise.
7207 * elf/ldconfig.c: Likewise.
7208 * nscd/selinux.c: Likewise.
7209 * elf/cache.c: Likewise.
7210 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
7211
5c2af134
UD
7212 [BZ #3451]
7213 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
7214 change atomic.
7215 (ceil): Likewise.
7216
11bf311e
UD
72172006-11-10 Jakub Jelinek <jakub@redhat.com>
7218
7219 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
7220 if N is one bigger than return value.
7221 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
7222 and l1 last arguments, if buf is defined, verify the return value
7223 equals to strlen (buf) and verify no byte beyond passed length
7224 is modified.
7225
72262006-11-10 Ulrich Drepper <drepper@redhat.com>
7227
7228 * po/sv.po: Update from translation team.
7229
37afcf79
UD
72302006-11-09 Ulrich Drepper <drepper@redhat.com>
7231
7232 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
7233 noinline attribute.
7234
72352006-11-10 Jakub Jelinek <jakub@redhat.com>
7236
7237 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
7238 noinline attribute.
7239
11bf311e
UD
7240 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
7241 Use __new_sys_siglist instead of _sys_siglist_internal as
7242 second macro argument.
7243 (_old_sys_siglist): Use declare_symbol_alias macro instead of
7244 strong_alias.
2692deea 7245
11bf311e
UD
72462006-11-09 Ulrich Drepper <drepper@redhat.com>
7247
7248 [BZ #3493]
7249 * posix/unistd.h (sysconf): Remove const attribute.
7250
7251 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
7252 temporary or deprecated addresses.
7253 Patch by Sridhar Samudrala <sri@us.ibm.com>.
7254
7255 * string/Makefile (tests): Add tst-strxfrm2.
7256 * string/tst-strxfrm2.c: New file.
7257
72582006-10-09 Jakub Jelinek <jakub@redhat.com>
7259
7260 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
7261 rather than r->r_brk.
2692deea
UD
7262
72632006-11-08 Jakub Jelinek <jakub@redhat.com>
7264
11bf311e
UD
7265 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
7266 optimization even if needed > n.
7267
2692deea
UD
7268 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
7269 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
7270 return false, otherwise return true.
7271 (cache_rpath): Return decompose_rpath return value.
7272
11bf311e
UD
72732006-11-07 Jakub Jelinek <jakub@redhat.com>
7274
7275 * include/libc-symbols.h (declare_symbol): Rename to...
7276 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
7277 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
7278 .size directive.
7279 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
7280 changes.
7281 * sysdeps/gnu/siglist.c: Likewise.
7282
72832006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
7284
7285 * sysdeps/powerpc/fpu/bits/mathinline.h
7286 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
7287 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
7288
72892006-11-05 Ulrich Drepper <drepper@redhat.com>
7290
7291 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
7292 Update handling of cache descriptor 0x49 for new models.
7293 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
7294 Likewise.
7295
9666e36c
UD
72962006-11-02 Jakub Jelinek <jakub@redhat.com>
7297
7298 * malloc/memusage.c (dest): Reset not_me back to false after
7299 printing statistics.
7300
11bf311e
UD
73012006-11-02 Ulrich Drepper <drepper@redhat.com>
7302
7303 * configure.in: Work around ld --help change and avoid -z relro
7304 test completely if the architecture doesn't care about security.
7305
73062006-11-01 Ulrich Drepper <drepper@redhat.com>
7307
7308 * po/sv.po: Update from translation team.
7309
73102006-10-31 Ulrich Drepper <drepper@redhat.com>
7311
7312 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
7313 generate compatibility version.
7314
73152006-10-29 Ulrich Drepper <drepper@redhat.com>
7316
7317 * configure.in: Relax -z relro requirement a bit.
7318
7319 * po/sv.po: Update from translation team.
7320
73212006-10-29 Jakub Jelinek <jakub@redhat.com>
7322
7323 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
7324 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
7325 * elf/dl-close.c (_dl_close_worker): Likewise.
7326 * elf/dl-open.c (_dl_open_worker): Likewise.
7327 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
7328
b2369ca3
UD
73292006-10-27 Ulrich Drepper <drepper@redhat.com>
7330
11bf311e
UD
7331 * configure.in: Require assembler support for visibility, compiler
7332 support for visibility and aliases, linker support for various -z
7333 options.
7334 * Makeconfig: Remove conditional code which now is unnecessary.
7335 * config.h.in: Likewise.
7336 * config.make.in: Likewise.
7337 * dlfcn/Makefile: Likewise.
7338 * elf/Makefile: Likewise.
7339 * elf/dl-load.c: Likewise.
7340 * elf/rtld.c: Likewise.
7341 * include/libc-symbols.h: Likewise.
7342 * include/stdio.h: Likewise.
7343 * io/Makefile: Likewise.
7344 * io/fstat.c: Likewise.
7345 * io/fstat64.c: Likewise.
7346 * io/fstatat.c: Likewise.
7347 * io/fstatat64.c: Likewise.
7348 * io/lstat.c: Likewise.
7349 * io/lstat64.c: Likewise.
7350 * io/mknod.c: Likewise.
7351 * io/mknodat.c: Likewise.
7352 * io/stat.c: Likewise.
7353 * io/stat64.c: Likewise.
7354 * libio/stdio.c: Likewise.
7355 * nscd/Makefile: Likewise.
7356 * stdlib/Makefile: Likewise.
7357 * stdlib/atexit.c: Likewise.
7358 * sysdeps/generic/ldsodefs.h: Likewise.
7359 * sysdeps/i386/dl-machine.h: Likewise.
7360 * sysdeps/i386/sysdep.h: Likewise.
7361 * sysdeps/i386/i686/memcmp.S: Likewise.
7362 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
7363 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
7364 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
7365
7366 * Makerules: USE_TLS support is now default.
7367 * tls.make.c: Likewise.
7368 * csu/Versions: Likewise.
7369 * csu/libc-start.c: Likewise.
7370 * csu/libc-tls.c: Likewise.
7371 * csu/version.c: Likewise.
7372 * dlfcn/dlinfo.c: Likewise.
7373 * elf/dl-addr.c: Likewise.
7374 * elf/dl-cache.c: Likewise.
7375 * elf/dl-close.c: Likewise.
7376 * elf/dl-iteratephdr.c: Likewise.
7377 * elf/dl-load.c: Likewise.
7378 * elf/dl-lookup.c: Likewise.
7379 * elf/dl-object.c: Likewise.
7380 * elf/dl-open.c: Likewise.
7381 * elf/dl-reloc.c: Likewise.
7382 * elf/dl-support.c: Likewise.
7383 * elf/dl-sym.c: Likewise.
7384 * elf/dl-sysdep.c: Likewise.
7385 * elf/dl-tls.c: Likewise.
7386 * elf/ldconfig.c: Likewise.
7387 * elf/rtld.c: Likewise.
7388 * elf/tst-tls-dlinfo.c: Likewise.
7389 * elf/tst-tls1.c: Likewise.
7390 * elf/tst-tls10.h: Likewise.
7391 * elf/tst-tls14.c: Likewise.
7392 * elf/tst-tls2.c: Likewise.
7393 * elf/tst-tls3.c: Likewise.
7394 * elf/tst-tls4.c: Likewise.
7395 * elf/tst-tls5.c: Likewise.
7396 * elf/tst-tls6.c: Likewise.
7397 * elf/tst-tls7.c: Likewise.
7398 * elf/tst-tls8.c: Likewise.
7399 * elf/tst-tls9.c: Likewise.
7400 * elf/tst-tlsmod1.c: Likewise.
7401 * elf/tst-tlsmod13.c: Likewise.
7402 * elf/tst-tlsmod13a.c: Likewise.
7403 * elf/tst-tlsmod14a.c: Likewise.
7404 * elf/tst-tlsmod2.c: Likewise.
7405 * elf/tst-tlsmod3.c: Likewise.
7406 * elf/tst-tlsmod4.c: Likewise.
7407 * elf/tst-tlsmod5.c: Likewise.
7408 * elf/tst-tlsmod6.c: Likewise.
7409 * include/errno.h: Likewise.
7410 * include/link.h: Likewise.
7411 * include/tls.h: Likewise.
7412 * locale/global-locale.c: Likewise.
7413 * locale/localeinfo.h: Likewise.
7414 * malloc/arena.c: Likewise.
7415 * malloc/hooks.c: Likewise.
7416 * malloc/malloc.c: Likewise.
7417 * resolv/Versions: Likewise.
7418 * sysdeps/alpha/dl-machine.h: Likewise.
7419 * sysdeps/alpha/libc-tls.c: Likewise.
7420 * sysdeps/generic/ldsodefs.h: Likewise.
7421 * sysdeps/generic/tls.h: Likewise.
7422 * sysdeps/i386/dl-machine.h: Likewise.
7423 * sysdeps/ia64/dl-machine.h: Likewise.
7424 * sysdeps/ia64/libc-tls.c: Likewise.
7425 * sysdeps/mach/hurd/fork.c: Likewise.
7426 * sysdeps/mach/hurd/i386/tls.h: Likewise.
7427 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
7428 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
7429 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
7430 * sysdeps/s390/libc-tls.c: Likewise.
7431 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7432 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7433 * sysdeps/sh/dl-machine.h: Likewise.
7434 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7435 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7436 * sysdeps/x86_64/dl-machine.h: Likewise.
7437
131c4428
UD
7438 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
7439 split out locking and parameter checking.
7440 (_dl_close): Call _dl_close_worker after locking and checking.
7441 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
7442 _dl_close.
ffd0e1b7
UD
7443 * elf/Makefile: Add rules to build and run tst-thrlock.
7444 * elf/tst-thrlock.c: New file.
131c4428 7445
11bf311e
UD
7446 [BZ #3426]
7447 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
7448 reality.
7449
b2369ca3
UD
7450 [BZ #3429]
7451 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
131c4428 7452 we are sure we do not need it anymore for _dl_close. Also move
b2369ca3
UD
7453 the asserts inside the lock region.
7454 Patch mostly by Suzuki <suzuki@in.ibm.com>.
7455
11bf311e
UD
74562006-10-27 Jakub Jelinek <jakub@redhat.com>
7457
7458 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
7459 argument.
7460 (_dl_lookup_symbol_x): Adjust caller.
7461
7462 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
7463 _ns_global_scope.
7464 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
7465
7466 * elf/dl-libc.c: Revert l_scope name changes.
7467 * elf/dl-load.c: Likewise.
7468 * elf/dl-object.c: Likewise.
7469 * elf/rtld.c: Likewise.
7470 * elf/dl-close.c (_dl_close): Likewise.
7471 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
7472 always use __rtld_mrlock_{change,done}. Always free old scope list
7473 here if not l_scope_mem.
7474 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
7475 change. Never free scope list here. Just __rtld_mrlock_lock before
7476 the lookup and __rtld_mrlock_unlock it after the lookup.
7477 * elf/dl-sym.c: Likewise.
7478 * include/link.h (struct r_scoperec): Remove.
7479 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
7480 with l_scope_mem and l_scoperec_lock with l_scope_lock.
7481
74822006-10-25 Ulrich Drepper <drepper@redhat.com>
7483
7484 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
7485
74862006-10-18 Ulrich Drepper <drepper@redhat.com>
7487
7488 * configure.in: Disable building profile libraries by default.
7489
609cf614
UD
74902006-10-17 Jakub Jelinek <jakub@redhat.com>
7491
7492 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
7493 as signed longs, check for x_base + pos overflow.
7494 * sunrpc/Makefile (tests): Add tst-xdrmem2.
7495 * sunrpc/tst-xdrmem2.c: New test.
7496
11bf311e
UD
74972006-10-18 Ulrich Drepper <drepper@redhat.com>
7498
7499 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
7500 _dl_lookup_symbol_x code.
7501
75022006-10-17 Jakub Jelinek <jakub@redhat.com>
7503
7504 * elf/dl-runtime.c: Include sysdep-cancel.h.
7505 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
7506 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
7507 instead of catomic_* macros.
7508 * elf/dl-sym.c: Include sysdep-cancel.h.
7509 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
7510 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
7511 * elf/dl-close.c: Include sysdep-cancel.h.
7512 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
7513 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
7514 * elf/dl-open.c: Include sysdep-cancel.h.
7515 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
7516 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
7517
75182006-10-17 Jakub Jelinek <jakub@redhat.com>
7519
7520 [BZ #3313]
7521 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
7522 fastbin rather than end of fastbin array.
7523
75242006-10-18 Ulrich Drepper <drepper@redhat.com>
7525
7526 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
7527 body macro.
7528 * sysdeps/x86_64/bits/atomic.h
7529 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
7530 (catomic_decrement): Use correct body macro.
7531
75322006-10-17 Jakub Jelinek <jakub@redhat.com>
7533
7534 * include/atomic.h: Add a unique prefix to all local variables
7535 in macros.
7536 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
7537
4a85a8ee
UD
75382006-10-16 Ulrich Drepper <drepper@redhat.com>
7539
7540 [BZ #3369]
7541 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
7542 and 7.
7543
11bf311e
UD
75442006-10-14 Ulrich Drepper <drepper@redhat.com>
7545
7546 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
7547
ff8d96be
UD
75482006-10-13 Ulrich Drepper <drepper@redhat.com>
7549
11bf311e
UD
7550 [BZ #3313]
7551 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
7552 determine highest fast bin to consolidate, always look into all of
7553 them.
7554 (do_check_malloc_state): Only require for empty bins for large
7555 sizes in main arena.
7556
7557 * libio/stdio.h: Add more __wur attributes.
7558
ff8d96be
UD
7559 * elf/dl-minimal.c (realloc): Optimize last patch.
7560
90a0991a
UD
75612006-10-12 Richard Sandiford <richard@codesourcery.com>
7562
7563 [BZ #3352]
7564 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
7565 and use memcpy() if it does.
ff8d96be 7566
11bf311e
UD
75672006-11-12 Andreas Jaeger <aj@suse.de>
7568
7569 [BZ #2510]
7570 * manual/search.texi (Hash Search Function): Clarify.
7571 (Array Search Function): Clarify.
7572
75732006-11-12 Joseph Myers <joseph@codesourcery.com>
7574
7575 [BZ #2830]
7576 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
7577 shifting.
7578 * math/atest-exp2.c (read_mpn_hex): Likewise.
7579 * math/atest-sincos.c (main): Likewise.
7580
37fb7595
UD
75812006-10-11 Ulrich Drepper <drepper@redhat.com>
7582
11bf311e
UD
7583 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
7584 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
7585 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
7586 version GLIBC_2.6.
7587 * Versions.def: Add GLIBC_2.6 for libc.
7588
46c38bd7
UD
7589 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
7590
11bf311e
UD
7591 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
7592
75932006-10-11 Jakub Jelinek <jakub@redhat.com>
7594
7595 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
7596
7597 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
7598
7599 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
7600 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
7601
76022006-10-11 Ulrich Drepper <drepper@redhat.com>
7603
7604 * include/atomic.c: Define catomic_* operations.
7605 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
7606 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
7607 * malloc/memusage.c: Likewise.
7608 * gmon/mcount.c: Likewise.
7609 * elf/dl-close.c: Likewise.
7610 * elf/dl-open.c: Likewise.
7611 * elf/dl-profile.c: Likewise.
7612 * elf/dl-sym.c: Likewise.
7613 * elf/dl-runtime.c: Likewise.
7614 * elf/dl-fptr.c: Likewise.
7615 * resolv/res_libc.c: Likewise.
7616
2a6ee549
UD
76172006-10-10 Ulrich Drepper <drepper@redhat.com>
7618
7619 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
7620 components which lack them.
7621
7622 * nis/nis_subr.c (nis_getnames): Make sure that we always return
7623 at least one entry consisting of the parameter concatenated with
7624 the domain.
7625
11bf311e 76262006-10-10 Roland McGrath <roland@frob.com>
c4f9fc3a 7627
11bf311e
UD
7628 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
7629 * sysdeps/mach/hurd/futimes.c: Likewise.
7630 * sysdeps/mach/hurd/lutimes.c: Likewise.
7631
76322006-10-09 Ulrich Drepper <drepper@redhat.com>
7633 Jakub Jelinek <jakub@redhat.com>
7634
7635 Implement reference counting of scope records.
7636 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
7637 from the list in objects which remain. Always allocate new scope
7638 record.
7639 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
7640 don't resize, allocate a new one.
7641 * elf/dl-runtime.c: Update reference counters before using a scope
7642 array.
7643 * elf/dl-sym.c: Likewise.
7644 * elf/dl-libc.c: Adjust for l_scope name change.
7645 * elf/dl-load.c: Likewise.
7646 * elf/dl-object.c: Likewise.
7647 * elf/rtld.c: Likewise.
7648 * include/link.h: Include <rtld-lowlevel.h>. Define struct
7649 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
7650 Add l_scoperec_lock.
7651 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
7652 * sysdeps/generic/rtld-lowlevel.h: New file.
7653
7654 * include/atomic.h: Rename atomic_and to atomic_and_val and
7655 atomic_or to atomic_or_val. Define new macros atomic_and and
7656 atomic_or which do not return values.
7657 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
7658 Various cleanups.
7659 * sysdeps/i386/i486/bits/atomic.h: Likewise.
7660
7661 * po/sv.po: Update from translation team.
7662
76632006-10-07 Ulrich Drepper <drepper@redhat.com>
7664
7665 * Versions.def: Add GLIBC_2.6 to libpthread.
7666
7667 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
7668 (versioned_symbol): Likewise.
7669 (compat_symbol): Likewise.
7670
7671 * po/tr.po: Update from translation team.
feb87ad1 7672
4df92d57
UD
76732006-10-06 Ulrich Drepper <drepper@redhat.com>
7674
11bf311e
UD
7675 * nis/Banner: Removed. It's been integral part forever and the
7676 author info is incomplete anyway.
7677 * libio/Banner: Likewise.
7678
4df92d57
UD
7679 * nis/nis_table.c (nis_list): If __follow_path fails in the new
7680 code, make sure the nis_freeresult call doesn't crash and that the
7681 result is reported correctly.
7682
68361572
UD
76832006-09-27 Jakub Jelinek <jakub@redhat.com>
7684
7685 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
7686 when callback is NULL.
7687
7688 * nis/Versions (libnss_nisplus): Add
7689 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
7690 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
7691 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
7692 _nss_create_tablename): Rename to...
7693 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
7694 ... these. No longer static.
7695 (internal_setgrent): Adjust users.
7696 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
7697 Don't use locking around _nss_grp_create_tablename call.
7698 * nis/nss_nisplus/nisplus-initgroups.c: New file.
7699
11bf311e
UD
77002006-10-06 Ulrich Drepper <drepper@redhat.com>
7701
7702 * version.h (VERSION): Bump to 2.5.90 for new development tree.
7703
3a4e0609
UD
77042006-10-06 Andreas Jaeger <aj@suse.de>
7705
7706 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
7707
77082006-10-06 Ulrich Drepper <drepper@redhat.com>
7709
7710 * po/pl.po: Update from translation team.
7711
7712 * nscd/nscd.c (main): Fix typo in message.
7713 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
7714
97e57dee
UD
77152006-10-02 Jakub Jelinek <jakub@redhat.com>
7716
7717 [BZ #3291]
7718 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
7719 errno.h, signal.h, unistd.h and sysdep-cancel.h.
7720 (__sigprocmask): Define.
7721
768027a4
UD
77222006-10-02 Ulrich Drepper <drepper@redhat.com>
7723
7724 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
7725 used.
7726
0b25a49a
UD
77272006-10-02 Jakub Jelinek <jakub@redhat.com>
7728
7729 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
7730 in oldtotal and newtotal calculation.
7731 * nscd/nscd-client.h (struct mapped_database): Add datasize
7732 field.
7733 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
7734 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
7735 increased.
7736 (__nscd_cache_search): Add checks to make sure we never reference
7737 data beyond the current mapping.
7738
a1286745
UD
77392006-10-02 Dmitry V. Levin <ldv@altlinux.org>
7740
d4ed7561
UD
7741 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
7742 variables const to avoid compiler warnings.
7743
a1286745
UD
7744 * io/fts.c (fts_close): Remove redundant checks.
7745 (fts_build): Likewise.
7746 (fts_palloc): Likewise.
7747
7748 * manual/message.texi (Advanced gettext functions,
7749 Using gettextized software): Fix typos.
7750
f01e4069
UD
77512006-09-30 Ulrich Drepper <drepper@redhat.com>
7752
7753 * posix/glob.c (glob_in_dir): Add some comments and asserts to
7754 explain why there are no leaks.
7755
154619b5
UD
77562006-09-29 Ulrich Drepper <drepper@redhat.com>
7757
690c3947
UD
7758 * libio/wmemstream.c: Include <wchar.h>.
7759 * libio/bug-wmemstream1.c: Likewise.
7760 * libio/tst-wmemstream1.c: Likewise.
7761 * libio/tst-wmemstream2.c: Likewise.
7762
88cc61e8
UD
7763 * version.h (RELEASE): Bump to 2.5.
7764 * README: Regenerated.
7765
a70c18b0
UD
7766 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
7767
154619b5
UD
7768 [BZ #3273]
7769 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
7770 found no group members.
7771 Patch by Petr Baudis.
7772
77732006-09-29 Jakub Jelinek <jakub@redhat.com>
7774
7775 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
7776 assert bootstrap_map.l_tls_modid is zero.
7777 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
7778 if USE___THREAD.
7779
1c31aa79
UD
77802006-09-27 Ulrich Drepper <drepper@redhat.com>
7781
7782 * libio/stdio.h: Move open_wmemstream prototype to ...
7783 * wcsmbs/wchar.h: ... here.
7784
f1122ec3
UD
77852006-09-25 Jakub Jelinek <jakub@redhat.com>
7786
7787 [BZ #3252]
7788 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
7789 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
7790 __{,l}chown to handle the rest.
7791 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
7792 fchownat syscall and __ASSUME_32BITUIDS case inline, call
7793 __{,l}chown to handle the rest.
7794 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
7795 i386/fchownat.c.
7796 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
7797 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
7798
7799 [BZ #3253]
7800 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
7801 time, rather allocate increasingly bigger arrays of pointers, if
7802 possible with alloca, if too large with malloc.
7803
78042006-09-24 Jakub Jelinek <jakub@redhat.com>
7805
7806 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
7807
7808 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
7809
457b559e
UD
78102006-09-24 Ulrich Drepper <drepper@redhat.com>
7811
7812 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
7813 home addresses.
7814 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
7815 IFA_F_HOMEADDRESS flag for interfaces.
7816 * include/ifaddrs.h (struct in6addrinfo): Define
7817 in6ai_homeaddress.
7818
4a132246
UD
78192006-09-21 Jakub Jelinek <jakub@redhat.com>
7820
7821 [BZ #3225]
7822 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
7823 PTR_DEMANGLE3): Define.
7824 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
7825 PTR_DEMANGLE3): Likewise.
7826 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
7827 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
7828 Likewise.
7829 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
7830
c69136ae
UD
78312006-09-20 Jakub Jelinek <jakub@redhat.com>
7832
7833 * po/libc.pot: Regenerated.
7834 * po/be.po: Updated.
7835 * po/ca.po: Likewise.
7836 * po/cs.po: Likewise.
7837 * po/da.po: Likewise.
7838 * po/de.po: Likewise.
7839 * po/el.po: Likewise.
7840 * po/en_GB.po: Likewise.
7841 * po/es.po: Likewise.
7842 * po/fi.po: Likewise.
7843 * po/fr.po: Likewise.
7844 * po/gl.po: Likewise.
7845 * po/hr.po: Likewise.
7846 * po/hu.po: Likewise.
7847 * po/ja.po: Likewise.
7848 * po/ko.po: Likewise.
7849 * po/nb.po: Likewise.
7850 * po/nl.po: Likewise.
7851 * po/pl.po: Likewise.
7852 * po/pt_BR.po: Likewise.
7853 * po/ru.po: Likewise.
7854 * po/rw.po: Likewise.
7855 * po/sk.po: Likewise.
7856 * po/sv.po: Likewise.
7857 * po/tr.po: Likewise.
7858 * po/zh_CN.po: Likewise.
7859 * po/zh_TW.po: Likewise.
7860
7861 [BZ #3137]
7862 * iconv/iconv_prog.c (main): Fix spelling in error message.
7863 * iconv/iconvconfig.c (main): Likewise.
7864 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
7865 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
7866 * locale/programs/localedef.c (main): Likewise.
7867 * locale/programs/repertoire.c (repertoire_read): Likewise.
7868 * timezone/zdump.c (main): Likewise.
7869 * nscd/connections.c (handle_request): Fix spelling in log message.
7870 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
7871
83b3108c
UD
78722006-09-20 Ulrich Drepper <drepper@redhat.com>
7873
7874 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
7875 interfaces.
7876
89210b4c
AJ
78772006-09-20 Andreas Jaeger <aj@suse.de>
7878
7879 * math/libm-test.inc (lrint_test_upward): Fix typo.
7880
6624dbc0
UD
78812006-06-17 Joseph S. Myers <joseph@codesourcery.com>
7882
7883 [BZ #2592]
7884 * math/libm-test.inc (lrint_test_tonearest): New function.
7885 (lrint_test_towardzero): New function.
7886 (lrint_test_downward): New function.
7887 (lrint_test_upward): New function.
7888 (main): Run these new tests.
7889 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
7890 of values near to 0.
7891 (two52): Use double not long double.
7892 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
7893 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
7894 (two23): Use float not double.
7895 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
7896 (two23): Use float not double.
7897 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
7898 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
7899 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
7900 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
7901
60cb50c7
UD
79022006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
7903
7904 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
7905 Cast sp to unsigned long to avoid compiler warning.
7906 Use __makecontext_ret function instead of a trampoline on the stack.
7907 (__makecontext_ret): New function.
7908 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
7909
33315ced
UD
79102006-09-19 Jakub Jelinek <jakub@redhat.com>
7911
7912 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
7913 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
7914 bits.
7915
1ee2ff20
UD
79162006-09-19 Ulrich Drepper <drepper@redhat.com>
7917
7918 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
7919 sure no reference to the unloaded map's search list remains in the
7920 dependency's scope.
7921
79222006-09-16 Jakub Jelinek <jakub@redhat.com>
7923
7924 * elf/Makefile: Add rules to build and run unload7 test.
7925 * elf/unload7.c: New test.
7926 * elf/unload7mod1.c: New file.
7927 * elf/unload7mod2.c: New file.
7928
0466106e
UD
79292006-09-18 Jakub Jelinek <jakub@redhat.com>
7930
7931 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
7932 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
7933 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
7934 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
7935 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
7936 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
7937 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
7938 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
7939 PTRACE_GETEVENTMSG): Likewise.
7940 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
7941 values.
7942
9c316a45
UD
79432006-09-17 Mike Frysinger <vapier@gentoo.org>
7944
0466106e
UD
7945 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
7946 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
7947 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
7948 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
9c316a45
UD
7949
79502006-09-16 Jakub Jelinek <jakub@redhat.com>
7951
7952 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
7953 write '\0' to the fd.
7954 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
7955 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
7956 Change regs to unsigned long pointer from unsigned int, fix fscr
7957 offset.
7958
fb146a76
UD
79592006-09-14 Jakub Jelinek <jakub@redhat.com>
7960
7961 * io/Makefile (CFLAGS-fstatat.c): Set.
7962 (CFLAGS-fstatat64.c): Likewise.
7963 (CFLAGS-mknodat.c): Likewise.
7964
7965 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
7966 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7967 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
7968 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
7969
4cd3633d
UD
79702006-09-14 Jakub Jelinek <jakub@redhat.com>
7971 Steven Munroe <sjmunroe@us.ibm.com>
fb146a76 7972
4cd3633d
UD
7973 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
7974 names to the beginning. Rename "cell" to "cellbe".
7975 (_dl_powerpc_platforms): New.
7976 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
7977 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
7978 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
7979 (_DL_HWCAP_PLATFORM): Define to new mask.
7980 (_dl_platform_string, _dl_string_platform): New functions.
7981 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
7982 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
7983
30aa5785
UD
79842006-09-12 Jakub Jelinek <jakub@redhat.com>
7985
7986 [BZ #2526]
7987 * README.libm: Fix a thinko in sqrt algorithm description.
7988
7989 [BZ #3143]
7990 * manual/string.texi (argz_delete): Fix prototype.
7991 Patch by <alpt@freaknet.org>.
7992
79932006-08-26 Joseph Myers <joseph@codesourcery.com>
7994
7995 [BZ #3138]
7996 * io/test-lfs.c (do_prepare): Give name_len type size_t.
7997 * io/tst-fcntl.c (do_prepare): Likewise.
7998 * posix/tst-exec.c (do_prepare): Likewise.
7999 * posix/tst-preadwrite.c (do_prepare): Likewise.
8000 * posix/tst-spawn.c (do_prepare): Likewise.
8001 * posix/tst-truncate.c (do_prepare): Likewise.
8002 * rt/tst-aio.c (do_prepare): Likewise.
8003 * rt/tst-aio64.c (do_prepare): Likewise.
8004 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
8005 size_t.
8006
d26d01d1
UD
80072006-09-09 Ulrich Drepper <drepper@redhat.com>
8008
41aba3d7
UD
8009 [BZ #2821]
8010 * time/mktime.c (guess_time_tm): Fix overflow detection.
8011 * time/Makefile (tests): Add bug-mktime1.
8012 * time/bug-mktime1.c: New file.
8013
eaa51b47 8014 [BZ #3189, #3188]
d26d01d1 8015 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
eaa51b47 8016 (mremap): Likewise.
d26d01d1 8017
ba40cc15
UD
80182006-09-07 Jakub Jelinek <jakub@redhat.com>
8019
2b6a801e
UD
8020 [BZ #1006]
8021 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
8022 Ensure relocation doesn't clobber any bits outside of the
8023 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
8024 R_SPARC_HI22 and R_SPARC_H44.
8025
469615bd
UD
8026 [BZ #2775]
8027 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
8028 (long) (MINSIZE + nb - old_size) is positive.
8029
8030 * malloc/arena.c (grow_heap): When growing bail even if new_size
8031 is negative.
8032
ba40cc15
UD
8033 [BZ #3155]
8034 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
8035 stack below r1.
8036
243b9ac1
UD
80372006-09-06 Jakub Jelinek <jakub@redhat.com>
8038
ba40cc15
UD
8039 * posix/regex_internal.c (re_string_reconstruct): Handle
8040 offset < pstr->valid_raw_len && pstr->offsets_needed case.
8041 Ensure no bytes read before raw_mbs array. Pass a saved copy of
8042 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
8043 re_string_context_at.
8044 * posix/Makefile: Add rules to build and run bug-regex26 test.
8045 * posix/bug-regex26.c: New test.
8046
243b9ac1
UD
8047 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
8048 rather than col_sym_free. Move seqp declaration earlier.
8049
8050 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
8051
d052233c
UD
80522006-09-05 Jakub Jelinek <jakub@redhat.com>
8053
8054 * nscd/initgrcache.c (addinitgroupsX): Move any_success
8055 decl before first goto out.
8056
71213dc2
UD
80572006-09-04 Jakub Jelinek <jakub@redhat.com>
8058
8059 * Makerules (shlib.lds): If have-hash-style, put .hash section
8060 at the end of the RO segment.
8061
80622006-09-04 Ulrich Drepper <drepper@redhat.com>
8063
8064 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
8065 style hash table format is used.
8066
03eeff83
UD
80672006-09-04 Jakub Jelinek <jakub@redhat.com>
8068
8069 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
8070 randomization rather than before.
8071 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
8072
b80770b2
UD
80732006-08-31 Jakub Jelinek <jakub@redhat.com>
8074
ba40cc15 8075 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
b80770b2
UD
8076
8077 * malloc/malloc.c (_int_malloc): Use full list insert and not
8078 shortcut which assumes the list is empty for large requests
8079 too.
8080
8081 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
8082
99ea5991
UD
80832006-08-30 Jakub Jelinek <jakub@redhat.com>
8084
8085 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
8086 and offout arguments to the prototype.
8087 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
8088 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
8089 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
8090 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
8091 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
8092 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
8093 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
8094 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
8095
4004a0a5
UD
80962006-08-28 Ulrich Drepper <drepper@redhat.com>
8097
950398e1
UD
8098 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
8099
4004a0a5
UD
8100 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
8101 dlopen parameters.
8102
6e310111
UD
81032006-08-28 Jakub Jelinek <jakub@redhat.com>
8104
8105 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
8106 only if herrno is NETDB_INTERNAL. Handle errors other than
8107 ERANGE outside of the loops, handle TRY_AGAIN.
8108
8109 * locale/programs/ld-ctype.c (translit_flatten): Issue error
8110 if other's ctype category was missing.
8111 * locale/programs/ld-collate.c (collate_read): Return if
8112 copy_locale's collate category is missing.
8113
07014fca
UD
81142006-08-27 Ulrich Drepper <drepper@redhat.com>
8115
8116 [BZ #2684]
8117 * malloc/malloc.c (public_rEALLOc): Try harder by using other
8118 arenas if allocation failed.
8119 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
8120
71663747
UD
81212006-08-26 Ulrich Drepper <drepper@redhat.com>
8122
41999a1a
UD
8123 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
8124 waste bins[0..1].
8125 (malloc_state): Reduce bins size by 2.
8126 (_int_malloc): Fix test for large enough buffer for early termination.
8127 When no unsorted block matches perfectly and an exiting block has
8128 to be split, use full list insert and not shortcut which assumes
8129 the list is empty.
8130
71663747
UD
8131 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
8132 failure.
8133
93b53ca2
UD
81342006-08-24 Ulrich Drepper <drepper@redhat.com>
8135
f5a82772
UD
8136 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
8137 do anything.
8138
2ac9ca73
UD
8139 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
8140 symbol require exact match (these are PLTs).
8141 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
8142 (_dl_ppc64_addr_sym_match): Likewise.
8143
93b53ca2
UD
8144 [BZ #2683]
8145 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
8146 If symbol has a value use it.
8147 * elf/tst-dladdr1.c: New file.
8148 * elf/Makefile: Add rules to build and run tst-addr1.
8149
7463d5cb
UD
81502006-08-24 Jakub Jelinek <jakub@redhat.com>
8151
8152 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
8153 keeps failing and heap growth or new heap creation isn't
8154 successful either.
8155 * malloc/tst-malloc.c (main): Add new tests.
8156
542a6f62
UD
81572006-08-24 Ulrich Drepper <drepper@redhat.com>
8158
8159 [BZ #2734]
8160 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
8161 as in the x86-64 code to use bswap.
8162
aa2c6b6d
UD
81632006-05-21 Joseph S. Myers <joseph@codesourcery.com>
8164
24982798 8165 [BZ #2680]
aa2c6b6d
UD
8166 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
8167 __USE_UNIX98.
8168 * posix/bits/unistd.h: Likewise.
8169
59776aef
UD
81702006-05-15 Mike Frysinger <vapier@gentoo.org>
8171
8172 [BZ #2751]
8173 * string/strchr.c: Add cast to avoid warning.
8174
e404fb16
UD
81752006-08-21 Ulrich Drepper <drepper@redhat.com>
8176
8177 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
bd2c2341 8178 platforms define as 512K. For 64-bit platforms as 32MB. The lower
e404fb16
UD
8179 limit is needed to avoid the exploding of the address space
8180 requirement for secondary heaps.
8181 * malloc/arena.c (HEAP_MAX_SIZE): Define using
8182 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
8183
376e973a
UD
81842006-07-30 Joseph S. Myers <joseph@codesourcery.com>
8185
8186 [BZ #3018]
8187 * Makerules (depfiles): Handle extra-test-objs the same as
8188 extra-objs.
8189 (common-mostlyclean): Likewise.
8190 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
8191 instead.
8192 * elf/Makefile (extra-objs): Likewise.
8193 * stdlib/Makefile (extra-objs): Likewise.
8194
240c62a7
UD
81952006-08-14 Eric Blake <ebb9@byu.net>
8196
8197 [BZ #3044]
8198 * misc/error.h: Assume C89 or better.
8199 * misc/error.c: Likewise.
8200
3997b7c4
UD
82012006-08-21 Ulrich Drepper <drepper@redhat.com>
8202
8203 [BZ #3040]
8204 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
8205 __ASSUME_ATFCTS is defined.
8206
8a6537b0
UD
82072006-08-19 Ulrich Drepper <drepper@redhat.com>
8208
72320021
UD
8209 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
8210 to sort in each call.
8211
ed3691ba
UD
8212 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
8213 is empty simply return and use next service.
8214 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
8215
8a6537b0
UD
8216 * locale/programs/charmap.c (charmap_read): Add new parameter. It
8217 tells us when not finding a charmap file is an error.
8218 * locale/programs/charmap.h: Adjust charmap_read prototype.
8219 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
8220 cannot find a charmap.
8221 * locale/programs/localedef.c (main): Adjust charmap_read call.
8222
ad2a3c07
UD
82232006-08-15 Jakub Jelinek <jakub@redhat.com>
8224
8225 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
8226 sysdeps/posix/pause.c implementation instead.
8227
82282006-08-09 Jakub Jelinek <jakub@redhat.com>
8229
8230 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
8231 to EPERM.
8232
f17efcb4
UD
82332006-08-13 Andreas Schwab <schwab@suse.de>
8234
8235 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
8236 Don't clobber caller's LRSAVE.
8237 (_dl_prof_resolve): Likewise.
8238
107b8a92
UD
82392006-08-14 Ulrich Drepper <drepper@redhat.com>
8240
8241 [BZ #1996]
8242 * libio/memstream.c (open_memstream): Allocate initial buffer with
8243 calloc.
8244 * libio/wmemstream.c (open_wmemstream): Likewise.
8245 * libio/strops.c: Pretty printing.
8246 (_IO_str_overflow): Clear uninitialized part of the new buffer.
8247 (enlarge_userbuf): New function.
8248 (_IO_str_seekoff): Call it if seek position is larger than current
8249 buffer.
8250 * libio/wstrops.c: Likewise.
8251 * libio/vasprintf.c: Add comment as to why we do not have to use
8252 calloc instead of malloc to allocate initial buffer.
8253 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
8254 * libio/bug-memstream1.c: New file.
8255 * libio/bug-wmemstream1.c: New file.
8256
fa3ac53f
UD
82572006-08-13 Ulrich Drepper <drepper@redhat.com>
8258
89993734
UD
8259 * libio/wstrops.c: Remove dead macro definitions and comments.
8260 * libio/strops.c: Likewise.
8261
fa3ac53f
UD
8262 [BZ #2764]
8263 * login/utmpname.c (__utmpname): Remove unnecessary test.
8264
f99ed760
UD
82652006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
8266
8267 [BZ #2832]
8268 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
8269 0s from integers.
8270
82712006-08-13 Ulrich Drepper <drepper@redhat.com>
8272
8273 [BZ #2987]
8274 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
8275 for CPU clocks.
8276 * sysdeps/unix/clock_settime.c: Add support for platform-specific
8277 setting of CPU clocks.
8278
4c3f81d0
UD
82792006-06-23 Paul Eggert <eggert@cs.ucla.edu>
8280
8281 [BZ #2841]
8282 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
8283 since C99 requires the result to promote to 'int' when uint_least8_t
8284 and uint_least16_t promote to 'int'.
8285
cd8e60ce
UD
82862006-08-12 Ulrich Drepper <drepper@redhat.com>
8287
9a5c46e8
UD
8288 [BZ #3013]
8289 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
8290 lenght of one output field, correct bitmask creation.
8291 * locale/programs/ld-time.c: Add alignment.
8292
cd8e60ce
UD
8293 [BZ #2997]
8294 * misc/error.c: Add space between program name and message if file
8295 name is missing.
8296
9a528884
UD
82972006-08-03 Eric Blake <ebb9@byu.net>
8298
8299 [BZ #2998]
8300 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
8301
1d05c2fb
UD
83022006-08-09 Ulrich Drepper <drepper@redhat.com>
8303
0c1c6c6c
UD
8304 * malloc/memusagestat.c: Silence warnings.
8305
1d05c2fb
UD
8306 * malloc/malloc.c: Dynamically size mmap treshold if the program
8307 frees mmaped blocks.
8308 Patch by Valerie Henson and Arjan van de Ven.
8309
2d1e6277
UD
83102006-08-08 Jakub Jelinek <jakub@redhat.com>
8311
be7ffd91
UD
8312 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
8313 __USE_GNU.
8314
2d1e6277
UD
8315 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
8316 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
8317 (DEF): Don't put the var into .gnu.linkonce.r.* section.
8318 Only provide var definitions in strtol_l (or for *ull*
8319 in strtoll_l).
8320
8321 * stdio-common/bug16.c (tests): New array.
8322 (do_tests): Allow the first hexadecimal digit
8323 to be 1, 2, 4 or 8. Do 3 additional tests.
8324
8325 * sysdeps/s390/fpu/libm-test-ulps: Update.
8326
8327 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
8328 fchownat syscall if available.
8329 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
8330 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
8331 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
8332
d0ccde25
UD
83332006-08-07 Ulrich Drepper <drepper@redhat.com>
8334
8335 * nis/nis_xdr.c: Avoid some function calls.
8336
13a0293d 83372006-08-07 Jakub Jelinek <jakub@redhat.com>
3f7a21a9 8338 Ulrich Drepper <drepper@redhat.com>
13a0293d
UD
8339
8340 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
8341 short cut if only one name component is stripped away.
8342
bd1ebae0
UD
83432006-08-07 Ulrich Drepper <drepper@redhat.com>
8344
8345 * nis/nis_call.c: Minor cleanups throughout.
2d1e6277 8346 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
bd1ebae0
UD
8347 (first_shoot): Add search_parent_first parameter. Only if it is set
8348 search parent server first.
8349 If directory for table found through cold start cache is not the same
8350 as referenced in the cache, don't use it.
8351 (__nisfind_server): Take additional parameter. Pass it on to
8352 first_shoot.
8353 (__prepare_niscall): Adjust __nisfind_server call.
8354 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
8355 * nis/nis_table.c: Adjust __nisfind_server call.
8356 * nis/nis_lookup.c: Likewise.
8357 (nis_lookup): Don't loop endlessly if name is reduced to ".".
8358
f1762c0c
UD
83592006-08-03 Ulrich Drepper <drepper@redhat.com>
8360
fe710250
UD
8361 [BZ #2182]
8362 * math/s_cacosh.c: Return values from positive branch.
8363 * math/s_cacoshf.c: Likewise.
8364 * math/s_cacoshl.c: Likewise.
8365
a5852807
UD
8366 [BZ #2883]
8367 * sysvipc/sys/msg.h: Change return value to ssize_t.
8368 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
fe710250
UD
8369 * sysvipc/msgrcv.c: Likewise.
8370 * include/sys/msg.h: Likewise.
39571a13 8371
6c215a8d
UD
8372 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
8373 test introduced in patch for bz #661.
39571a13 8374 (getgrouplist): Simplify code a bit. Don't allocate one additional
f13bfdd0 8375 element for NEWGROUPS.
6c215a8d 8376
9c06eb66
UD
8377 [BZ #2908]
8378 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
8379 'f', use '1' as leading digit not '\1'.
8380 * stdio-common/Makefile (tests): Add bug16.
8381 * stdio-common/bug16.c: New file.
8382
8383 [BZ #2914]
8384 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
8385 and don't try to open it. The patch introducing the macro
8386 contained a bug and used the same file name as the new file
8387 instead of using /var/adm/hostid. Nobody complaint so I'm taking
8388 this out completely.
8389
8390 [BZ #2926]
8391 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
8392 Patch by Jerry James <Jerry.James@usu.edu>.
8393
f1762c0c
UD
8394 * rt/Makefile (tests): Add tst-clock2.
8395 * rt/tst-clock2.c: New file.
8396
8397 [BZ #2978]
8398 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
8399 function and its parameters and pass it to new thread.
8400 (__gai_notify): Add support for alternative waiting for completion.
8401 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
8402 waiting for completion.
8403 * resolv/getaddrinfo_a.c: Likewise.
8404 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
8405 waiting for completion is used.
8406 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
8407 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
8408 * resolv/gai_error.c: Likewise.
8409 * resolv/gai_sigqueue.c: Likewise.
8410
83ae6b40
RM
84112006-08-02 Thomas Schwinge <tschwinge@gnu.org>
8412
0e4e62fe 8413 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
f1762c0c 8414 errno to EBADF and return MACH_PORT_NULL.
83ae6b40 8415
82ee37c5
UD
84162006-06-23 Joseph Myers <joseph@codesourcery.com>
8417
8418 [BZ #2980]
f1762c0c 8419 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
82ee37c5
UD
8420
84212006-08-02 Ulrich Drepper <drepper@redhat.com>
8422
8423 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
8424 walk them instead of the symbol table.
8425
7bb1b2c9
UD
84262006-08-01 Ulrich Drepper <drepper@redhat.com>
8427
f13bfdd0 8428 [BZ #2098]
fbbc73b3
UD
8429 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
8430 status of NSS calls, not the number of returned entries.
8431
a4518922
UD
8432 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
8433 request_key, keyctl.
7bb1b2c9 8434
b06e7e9a
UD
84352006-07-31 Ulrich Drepper <drepper@redhat.com>
8436
8437 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
8438
f1227969
UD
84392006-07-16 Jeff Bailey <jbailey@ubuntu.com>
8440
8441 * elf/tst-auditmod1.c: Fix typo in #error.
8442
82ae2712
UD
84432006-07-31 Ulrich Drepper <drepper@redhat.com>
8444
f1227969
UD
8445 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
8446
82ae2712
UD
8447 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
8448
a1260d92
UD
84492006-07-20 Adam Nemet <anemet@caviumnetworks.com>
8450
8451 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
b06e7e9a 8452 that the directory is empty even on non-POSIX filesystems.
a1260d92 8453
d2de41fe
UD
84542006-07-31 Ulrich Drepper <drepper@redhat.com>
8455
13669f2c
UD
8456 * elf/dl-open.c (dl_open_worker): Add branch prediction.
8457
d2de41fe
UD
8458 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
8459 the backend NSS module. If backend setgrent call failed, don't have
8460 internal_setgrent fail. Just remember this until it is needed.
8461 * nis/nss_compat/compat-pwd.c: Likewise.
8462 * nis/nss_compat/compat-spwd.c: Likewise.
8463
b894c2ea
RM
84642006-07-30 Roland McGrath <roland@redhat.com>
8465
8466 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
8467 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
8468 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
8469 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
8470
8471 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
8472 (nanosleep_not_cancel): New macro.
8473 (sigsuspend_not_cancel): new macro.
8474 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
8475 (do_sigsuspend): Define as inline.
8476 (__sigsuspend): Always use do_sigsuspend.
8477 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
8478 * include/signal.h: Declare __sigsuspend_nocancel.
8479 * sysdeps/posix/pause.c
8480 [! NO_CANCELLATION] (__pause_nocancel): New function.
8481
8482 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
8483 * include/time.h (__nanosleep_nocancel): Likewise.
8484
c10d32c8
UD
84852006-07-30 Ulrich Drepper <drepper@redhat.com>
8486
8487 * locale/programs/localedef.c (add_to_readlist): Rename local
8488 variables to avoid confusion.
8489
8490 * locale/programs/charmap.c (charmap_read): Emit error message if
8491 charmap couldn't be found or read.
8492
6822f056
UD
84932006-07-28 Ulrich Drepper <drepper@redhat.com>
8494
d5ba53f9
UD
8495 * sysdeps/unix/sysv/linux/kernel-features.h: Define
8496 __ASSUME_FUTEX_LOCK_PI.
8497 * include/time.h: Declare __nanosleep_nocancel.
8498 * include/unistd.h: Declare __pause_nocancel.
8499
6822f056
UD
8500 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
8501 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
8502 get the __stack_chk_fail_local definition when it's needed.
8503
3a975ff5
UD
85042006-07-26 Ulrich Drepper <drepper@redhat.com>
8505
6de1f625
UD
8506 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
8507 * dlfcn/bug-atexit3.c: New file.
8508 * dlfcn/bug-atexit3-lib.cc: New file.
8509
3a975ff5
UD
8510 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
8511 used when the namespace is not the base namespace.
8512
a92b1166
UD
85132006-07-26 Gavin Romig-Koch <gavin@redhat.com>
8514
8515 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
8516 (__new_exitfn): Bump it in every successful call.
8517 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
8518 more exit handlers, call them right away.
8519 * stdlib/exit.h: Declare __new_exitfn_called.
8520
a08336fb
UD
85212006-07-25 Ulrich Drepper <drepper@redhat.com>
8522
bd3754dc
UD
8523 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
8524 calling registered handler.
8525
a08336fb
UD
8526 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
8527 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8528 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8529 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
8530 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8531 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8532 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8533 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8534
871b9158
UD
85352006-07-10 Ulrich Drepper <drepper@redhat.com>
8536
8537 * elf/dl-lookup.c (dl_new_hash): New functions.
8538 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
8539 value here. Compute new-style hash value. Pass new hash value
8540 and reference to variable with the old value to do_lookup_x.
8541 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
8542 old-style hash table.
8543 (_dl_debug_bindings): Pass new hash value and reference to variable
8544 with the old value to do_lookup_x.
8545 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
8546 new-style hash value and change old-style hash value parameter to
8547 be a reference. Reoganize functions to determine whether
8548 new-style hash table is available. Only fall back on old-style
8549 table. If old-style hash value is needed, compute it here.
8550 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
8551 entry.
8552 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
8553 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
8554 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
8555 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
8556 * Makeconfig: If linker supports --hash-style option add it to all
8557 linker command lines to build DSOs.
8558 * config.make.in: Define have-hash-style.
8559 * configure.in: Test whether linker supports --hash-style option.
8560
8561 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
8562 * sysdeps/generic/ldsodefs.h: Adjust prototype.
8563
a1f0de82
UD
85642006-06-27 Ulrich Drepper <drepper@redhat.com>
8565
361a3706
UD
8566 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
8567 auditing.
8568
a1f0de82
UD
8569 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
8570 RPATH of main map twice.
8571
4259230f
UD
85722006-06-22 Ulrich Drepper <drepper@redhat.com>
8573
8574 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
8575 look further, return original strings.
8576 (_nl_find_msg): Do not return found translation if the conversion
8577 failed. Either signal the string is unusable or that something went
8578 wrong and the original should be used.
8579
85802006-06-21 Ulrich Drepper <drepper@redhat.com>
8581
8582 * string/_strerror.c (__strerror_r): Add __builtin_expect.
8583
f9b7a98b
UD
85842006-06-14 Jakub Jelinek <jakub@redhat.com>
8585
8586 [BZ #2766]
8587 * misc/insremque.c (insque): Handle prev == NULL.
8588 * misc/Makefile (tests): Add tst-insremque.
8589 * misc/tst-insremque.c: New test.
8590
ac55a25b
UD
85912006-06-17 Ulrich Drepper <drepper@redhat.com>
8592
8593 [BZ #2792]
8594 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
8595 conflict with DL_DST_REQUIRED.
8596
02f366b3
UD
85972006-06-16 Ulrich Drepper <drepper@redhat.com>
8598
8599 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
8600 match what Solaris does.
8601
9009e8f8
UD
86022006-06-04 Ulrich Drepper <drepper@redhat.com>
8603
1b8373f4
UD
8604 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
8605 local_setegid instead of seteuid and setegid.
8606 * sysdeps/generic/local-setxid.h: New file.
8607 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
8608
7231452e
UD
8609 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
8610
9009e8f8 8611 * string/Makefile (tests): Add bug-envz1.
02f366b3 8612 * string/bug-envz1.c: New file.
9009e8f8 8613
33e63e79
UD
86142006-06-02 Jakub Jelinek <jakub@redhat.com>
8615
8616 * posix/regex_internal.c (re_string_skip_chars): If no character has
8617 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
8618 to the byte which couldn't be converted.
8619 (re_string_reconstruct): Don't clear valid_raw_len before calling
8620 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
8621 tip_context using re_string_context_at.
8622 * posix/Makefile: Add rules to build and run bug-regex25 test.
8623 * posix/bug-regex25.c: New test.
8624
fdc02996
UD
86252006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
8626
8627 [BZ #2703]
8628 * string/envz.c (envz_strip): Correct erroneously reversed src
8629 and dest parameters to memmove() invocation.
8630
902c4291
UD
86312006-05-30 Jakub Jelinek <jakub@redhat.com>
8632
8633 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
8634 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
8635 to make sure the database has been already invalidated.
8636 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
8637 after the cache has been invalidated. Use pthread_mutex_lock rather
8638 than pthread_mutex_trylock if fd != -1.
8639 * nscd/connections.c (invalidate_cache): Add fd argument, write
8640 response to fd if not calling prune_cache, pass fd to prune_cache.
8641 (handle_request): Adjust invalidate_cache caller.
8642 (nscd_run): Pass -1 as fd to prune_cache.
8643
ecc68568
UD
86442006-05-30 Ulrich Drepper <drepper@redhat.com>
8645
8646 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
8647 the correct place.
8648
9636a217
UD
86492006-05-29 Ulrich Drepper <drepper@redhat.com>
8650
8651 * nscd/nscd.h (struct database_dyn): Add prunelock field.
8652 * nscd/cache.c (prune_cache): Take prunelock before starting the
8653 work. Just return in case it is already taken.
cabfcde1 8654 * nscd/connections.c (dbs): Initialize .prunelock.
9636a217 8655
6bcb494a
UD
86562006-05-25 Ulrich Drepper <drepper@redhat.com>
8657
672d5a63 8658 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
ecc68568 8659 copying. No need to allocate new array for group members. Just
672d5a63
UD
8660 move the pointers and update the size.
8661
1663b44f
UD
8662 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
8663 Avoid memory leak in case realloc fails. Simplification for
8664 better code generation.
8665
8666 Avoid deprecation warning because of libc_hidden_proto for
8667 inet6_option_alloc.
8668 * inet/inet6_option.c (option_alloc): Renamed from
8669 inet6_option_alloc. Made static.
9636a217 8670 (inet6_option_alloc): Now a simple wrapper around option_alloc.
1663b44f
UD
8671 (inet6_option_append): Call option_alloc.
8672 * include/netinet/in.h: Remove libc_hidden_proto for
8673 inet6_option_alloc.
8674
6bcb494a
UD
8675 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
8676 for cleanup when cb!=NULL [Coverity CID 233].
8677
aec6b246
UD
86782006-05-24 Ulrich Drepper <drepper@redhat.com>
8679
07bfff20
UD
8680 [BZ #2693]
8681 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
8682 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
8683 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
8684 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
8685 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
8686 and inet6_rth_getaddr.
8687 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
8688 array.
8689 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
8690 Mark inet6_option_* interfaces as deprecated.
8691 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
8692 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
8693 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
8694 inet6_rth_segments, and inet6_rth_getaddr.
8695 * inet/inet6_opt.c: New file.
8696 * inet/inet6_rth.c: New file.
8697
8698 * inet/netinet/icmp6.h: Pretty printing.
8699
aec6b246
UD
8700 [BZ #2683]
8701 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
8702
2d571cd1
UD
87032006-05-23 Ulrich Drepper <drepper@redhat.com>
8704
062e719b
UD
8705 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
8706 doing it all here. When server does not know the answer do not
8707 fail immediate, try parent first.
8708
2d571cd1
UD
8709 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
8710 overflow test.
8711
a17fa610
UD
87122006-05-20 Ulrich Drepper <drepper@redhat.com>
8713
8714 * nis/nis_call.c (__prepare_niscall): New function. Split out
8715 from __do_niscall.
8716 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
8717 and exported.
8718 (__follow_path): New function. Split out from nis_list.
8719 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
8720 _xdr_nis_result.
8721 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
8722 _xdr_nis_result.
8723 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
8724 and __follow_path.
8725 * nis/Versions: Export __prepare_niscall, __create_ib_request,
8726 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
8727 from libnsl for version GLIBC_PRIVATE.
8728 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
8729 Remove entry parameter from _nss_nisplus_parse_pwent and
8730 _nss_nisplus_parse_grent.
8731 * nis/nss_nisplus/nisplus-parser.c: Likewise.
8732 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
8733 again. Rewrite getpwent handling to not use nis_first_entry and
8734 nis_next_entry. Roll out own niscall handling.
8735 * nis/nss_nisplus/nisplus-grp.c: Likewise.
8736
8737 * sunrpc/xdr_rec.c: Fix typo in comment.
8738
429bb183
UD
87392006-05-19 Ulrich Drepper <drepper@redhat.com>
8740
1d4f062a
UD
8741 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
8742 handling.
8743
101cc598
UD
8744 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
8745 to allocate memory for my_pollfd. Better initialization of
8746 cb_is_running. Use TEMP_FAILURE_RETRY.
8747
f50fa10c
UD
8748 * malloc/memusage.sh (memusageso): Add quotes.
8749 (memusagestat): Likewise.
8750 * debug/xtrace.sh (pcprofileso): Likewise.
8751 (pcprofiledump): Likewise.
8752 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
8753 replacement.
8754 * malloc/Makefile ($(objpfx)memusage): Likewise.
8755
882bfe73
UD
8756 * nis/nis_callback.c (__nis_create_callback): Calls to
8757 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
8758 asprintf call fails.
8759
429bb183
UD
8760 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
8761 no uninitialized memory is passed to sendto.
8762
f90de831
UD
87632006-05-18 Ulrich Drepper <drepper@redhat.com>
8764
8765 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
8766 of snprintf+strdup. Handle OOM.
8767 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
8768 cb->serv together. Remove now obsolete free calls.
8769 (__nis_destroy_callback): Remove now obsolete free call.
8770
a17fa610 87712006-05-18 David Woodhouse <dwmw2@redhat.com>
6e2a7825
UD
8772
8773 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
8774 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
8775 and ULA respectively). Set precedence for IPv4 address to 10 as
8776 defined in RFC3484 for preferring IPv6.
8777 * posix/gai.conf: Update to match the new default tables.
8778
758b9d7e
UD
87792006-05-18 Jakub Jelinek <jakub@redhat.com>
8780
8781 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
8782 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
8783 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
8784 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
8785
8786 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
8787 Removed.
8788 (init_nss_interface): Remove initialization of these variables.
8789
87902006-05-18 Ulrich Drepper <drepper@redhat.com>
8791
8792 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
8793 nis_free_directory forward to avoid duplication.
8794
388c779e
UD
87952006-05-17 Ulrich Drepper <drepper@redhat.com>
8796
5f1724bf
UD
8797 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
8798 rec_dirsearch returning NULL.
8799 (first_shoot): Handle __nis_finddirectory returning NULL.
8800 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
8801
388c779e
UD
8802 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
8803 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
8804
360d5cf4
UD
88052006-05-17 Jakub Jelinek <jakub@redhat.com>
8806
8807 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
8808 pid changed.
8809
88dbff8c
UD
88102006-05-15 Ulrich Drepper <drepper@redhat.com>
8811
6f8a7dff
UD
8812 * include/rpc/pmap_prot.h: Mark all functions as hidden.
8813
8814 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
8815 * nscd/nscd_getgr_r.c: Likewise.
8816
8817 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
8818
8819 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
8820 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
8821
8822 * stdlib/longlong.h (__clz_tab): Mark as hidden.
8823
8824 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
8825
360d5cf4 8826 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
8263ed62
UD
8827
8828 * include/rpc/auth.h: Mark xdr_des_block_internal and
8829 xdr_opaque_auth_internal as hidden.
8830
8831 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
8832 hidden.
8833
360d5cf4 8834 * include/rpc/xdr.h: Mark all _internal functions as hidden.
8263ed62 8835
02264020
UD
8836 * misc/getusershell.c (okshells): Don't use static initializers,
8837 do it dynamically.
8838
fd5ea238
UD
8839 * stdlib/fmtmsg.c (keywords): Change type of len element to
8840 uint32_t to not waste space on 64bit machines.
8841
9446614c
UD
8842 * locale/setlocale.c: Change _nl_category_names into a string.
8843 Add new _nl_category_name_idxs. Change all users.
8844 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
8845 Declare _nl_category_name_idxs.
8846 * locale/findlocale.c: Adjust for _nl_category_names change.
8847 * locale/loadlocale.c: Likewise.
8848 * locale/newlocale.c: Likewise.
8849 * intl/dcigettext.c: Likewise.
8850
88dbff8c
UD
8851 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
8852 (add_alias2): ...here. New function.
8853 (__gconv_read_conf): Simplify builtin alias handling.
8854 (builtin_aliases): Convert to string to avoid relocations.
8855 * iconv/gconv_builtin.h: Add comment about correct formatting.
8856
4442d58f
UD
88572006-05-15 Jakub Jelinek <jakub@redhat.com>
8858
8859 * resolv/res_debug.c (loc_ntoa): Make error const.
8860
88612006-05-14 Andreas Schwab <schwab@suse.de>
8862
8863 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
8864
88652006-05-12 Jakub Jelinek <jakub@redhat.com>
8866
8867 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
8868 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
8869 sizeof (cpu_set_t).
8870
a51752b6
UD
88712006-05-11 Ulrich Drepper <drepper@redhat.com>
8872
5d3fd1f6
UD
8873 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
8874
08cfb839
UD
8875 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
8876
4b481a15
UD
8877 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
8878 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
8879
8880 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
8881 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
8882
8883 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
8884 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
8885 xdr_cback_data.
8886
8887 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
8888 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
8889 xdr_ypupdate_args.
8890
8891 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
8892 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
8893
8894 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
8895 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
8896
8897 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
8898 * include/rpcsvc/nis_callback.h: New file.
8899
8900 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
8901 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
8902
8903 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
8904 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
8905
8906 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
8907 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
8908
8909 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
8910 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
8911
b1ad49c6
UD
8912 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
8913 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
8914 xdr_ypdelete_args.
8915
cd5f7829
UD
8916 * nis/nis_xdr.h: Mark all functions as hidden. Remove
8917 __BEGIN_DECLS and __END_DECLS, the header is not installed.
8918
a51752b6
UD
8919 * nis/nis_error.c: Remove table of strings. Use position
8920 independent mechanism.
8921 * nis/nis_error.h: New file.
8922
3d237e42
UD
89232006-05-11 Jakub Jelinek <jakub@redhat.com>
8924
8925 * locale/programs/ld-time.c (time_finish): If wide era name or
8926 format aren't provided, set both wname and wformat to L"".
8927
d6c159fe
UD
89282006-05-10 Ulrich Drepper <drepper@redhat.com>
8929
0088b04e
UD
8930 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
8931 results if the call was succesful.
8932
d6c159fe
UD
8933 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
8934
8935 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
8936 as hidden.
8937
5c5acdf0
UD
89382006-05-10 Jakub Jelinek <jakub@redhat.com>
8939
8940 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
8941
16d620db
UD
89422006-05-10 Ulrich Drepper <drepper@redhat.com>
8943
8944 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
8945 caller makes sure this is not the case.
8946 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
8947
e7c8359e
UD
89482006-05-09 Ulrich Drepper <drepper@redhat.com>
8949
ecf359c6
UD
8950 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
8951 calls.
8952
400cc70a
UD
8953 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
8954 [Coverity CID 229, 230]
8955
8956 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
8957 DGETTEXT calls.
8958 (hol_help): Likewise. [Coverity CID 226, 227]
8959
8960 * string/argz-replace.c (__argz_replace): Unconditionally call
8961 free on SRC. [Coverity CID 225]
8962
8963 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
8964 the return value of __nis_default_owner and __nis_default_group,
8965 it has been especially allocated. [Coverity CID 224]
8966
51e59260
UD
8967 * nis/nis_defaults.c (searchXYX): New functions. Used by both
8968 searchgroup and searchowner. Significantly simplified.
8969 (__nis_default_owner): Remove duplication. Do not locally copy the
8970 string before duplicating it.
8971 (__nis_default_group): Likewise.
8972
8973 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
8974 we must clear the variable before calling __nisfind_server.
8975
8976 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
8977 nis_getnames. [Coverity CID 223]
8978
8979 * locale/programs/locfile.c (locfile_read): Use alloca instead of
8980 xmalloc to allocate local repertoire name. [Coverity CID 222]
8981
8982 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
8983 allocate memory for the input to add_bytes. [Coverity CID 221]
8984
e7c8359e 8985 * posix/wordexp.c (w_addword): Free word if realloc fails and it
51e59260 8986 was allocated here. [Coverity CID 219, 220]
e7c8359e
UD
8987
8988 * posix/getconf.c (print_all): Free confstr data after printing.
8989 [Coverity CID 218]
8990
8991 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
8992 list allocation fails. [Coverity CID 215]
8993
8994 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
8995 [Coverity CID 213]
8996
8997 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
8998 string is NULL. [Coverity CID 212]
8999 * argp/Makefile: Add rules to build and run bug-argp1.
9000 * argp/bug-argp1.c: New file.
9001
9002 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
9003 end of string.
9004 * stdlib/canonicalize.c (__realpath): Likewise.
9005
9006 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
9007 pointer. [Coverity CID 206]
9008
9009 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
9010 in statically linked code.
9011 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
9012 statically built code, be prepared to have no link map.
9013 [Coverity CID 205]
9014
9015 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
9016 dgettext calls. [Coverity CID 204]
9017
9018 * argp/argp-help.c (struct uparams): Remove valid member. Change
9019 the one user.
9020 (uparam_names): Reduce size. Avoid relative relocations.
9021 Moved to read-only segment.
9022 (fill_in_uparams): Update for new layout.
9023
9024 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
9025 assumed to always be != NULL. [Coverity CID 202]
9026
9027 * argp/argp-help.c (hol_entry_help): Remove some dead code
9028 [Coverity CID 200].
9029
9030 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
9031 away a few more unconditional yperr2nss calls.
9032 (_nss_nis_getservbyname_r): Likewise.
9033
acf82eaf
UD
90342006-05-06 Ulrich Drepper <drepper@redhat.com>
9035
4461cf48
UD
9036 * sysdeps/generic/ldsodefs.h: Remove support for non-core
9037 architectures.
9038
b74a8c7f
UD
9039 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
9040 that unused memory passed to sendto is nevertheless initialized.
9041
acb98cb5
UD
9042 [BZ #2499]
9043 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
9044 possibly unaligned memory accesses.
9045
bce16467
UD
9046 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
9047 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
9048 and __putlong respectively. Correct buffer overflow check for
9049 NS_NOTIFY_OP.
9050
9051 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
9052
8e45b1ac
UD
9053 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
9054 (send_dg): Rewrite error handling to be more compact and avoid
9055 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
9056
697e1628
UD
9057 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
9058
9059 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
9060 instead of ns_get16.
9061 (res_queriesmatch): Likewise. Minor optimization.
9062
acf82eaf
UD
9063 [BZ #2499]
9064 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
9065 __libc_res_nsend might reallocate the buffer for the answer. In
9066 this case we have to reload the HP pointer.
9067
7bfee654
UD
90682006-05-05 Ulrich Drepper <drepper@redhat.com>
9069
694b49ca
UD
9070 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
9071 some branch prediction hints.
9072
7bfee654
UD
9073 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
9074 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9075 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9076 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9077 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9078 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9079 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9080 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9081
308bb2d5
UD
90822006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
9083
9084 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
9085 by a GOT relocation to make Scrt1.o position independent.
9086 * sysdeps/s390/s390-64/elf/start.S: Likewise.
9087
9088 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
9089 six system call parameters.
9090 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
9091
cdb9c321
UD
90922006-05-05 Ulrich Drepper <drepper@redhat.com>
9093
9094 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
9095 malloc&bzero.
9096
9097 * sunrpc/svc_udp.c (BZERO): Remove definition.
9098 (CALLOC): Define.
9099 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
9100
9101 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
9102 (des_SPtrans): Use uint32_t type.
9103 (des_skb): Likewise.
9104
9105 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
9106
fff04b32
UD
91072006-05-05 Jakub Jelinek <jakub@redhat.com>
9108
9109 [BZ #2509]
9110 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
9111 on 32-bit arches.
9112
91132006-05-05 Ulrich Drepper <drepper@redhat.com>
9114
9115 * locale/programs/ld-address.c (address_finish): Fix one more
cdb9c321 9116 place where the iso639 array might be accessed beyond the limits.
fff04b32 9117
077a30bc 91182006-05-04 Ulrich Drepper <drepper@redhat.com>
77dd4c3b 9119
f2d5cf50
UD
9120 * nis/nis_table.c (nis_list): Avoid clearing res twice before
9121 filling it for the first time.
9122
3e4370cf
UD
9123 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
9124 Adjust all callers.
9125 Free res object content before returning.
9126
5e65a53d
UD
9127 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
9128
48be3114
UD
9129 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
9130 client->cl_auth.
9131
ca4fce0e
UD
9132 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
9133 cleanup for initial thread, just the free call on TVP.
9134
077a30bc 9135 * nscd/gai.c (__getline): Define.
3b7a95fb 9136
5d37289a 9137
3f87d901 9138See ChangeLog.16 for earlier changes.