]> sourceware.org Git - glibc.git/blob - ChangeLog
* sysdeps/unix/alpha/sysdep.h (inline_syscall0,
[glibc.git] / ChangeLog
1 2003-01-21 Jakub Jelinek <jakub@redhat.com>
2
3 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
4 inline_syscall1, inline_syscall2, inline_syscall3,
5 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
6 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
7 __attribute__((unused)) to ChEcK.
8
9 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
10
11 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
12 Fix inline assembler constraints.
13 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
14 Likewise.
15
16 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
17 -fPIC.
18
19 2003-01-20 Segher Boessenkool <segher@koffie.nl>
20
21 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
22 compute the cosine, not the sine, even if x > 0.8.
23
24 2003-01-19 Ulrich Drepper <drepper@redhat.com>
25
26 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
27 _nss_nis_setspent. Work around the different prototypes.
28 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
29 internal_nis_endrpcent.
30 (internal_nis_endrpcent): Change return type to void. Change callers.
31 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
32 _nss_nis_setpwent. Work around the different prototypes.
33 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
34 of the function to...
35 (internal_nis_endprotoent): ... here. New function.
36 (internal_nis_setprotoent): Use internal_nis_endprotoent.
37 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
38 _nss_nis_setnetent. Work around the different prototypes.
39 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
40 of the function to...
41 (internal_nis_endnetgrent): ... here. New function.
42 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
43
44 2003-01-19 Jim Meyering <jim@meyering.net>
45
46 * time/strftime.c: (widen): Merge nearly-identical definitions.
47 (nl_get_alt_digit) [! defined my_strftime]: Define.
48 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
49 _nl_get_alt_digit and _nl_get_walt_digit.
50
51 2003-01-19 Ulrich Drepper <drepper@redhat.com>
52
53 * time/strftime.c (my_strftime): Handle very large width
54 specifications for numeric values correctly. Improve checks for
55 overflow.
56 * time/Makefile (tests): Add tst-strftime.
57 * time/tst-strftime.c: New file.
58
59 2003-01-18 Ulrich Drepper <drepper@redhat.com>
60
61 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
62 _nss_nis_sethostent. Work around the different prototypes.
63 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
64 _nss_nis_setgrent. Work around the different prototypes.
65 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
66 function. Split out from _nss_nis_endetherent.
67 (internal_nis_setetherent): Use internal_nis_endetherent instead of
68 duplicating the code.
69 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
70 of _nss_nis_setaliasent.
71 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
72 internal_nis_endservent code, don't duplicate it.
73
74 * inet/rexec.c (rexec_af): Protect socket operations with
75 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
76 * inet/rcmd.c (rcmd_af): Likewise.
77
78 2003-01-17 Roland McGrath <roland@redhat.com>
79
80 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
81 Add test of value 0.80190127184058835.
82
83 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
84
85 2003-01-17 Richard Henderson <rth@redhat.com>
86
87 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
88 relocs for class PLT.
89 * sysdeps/alpha/libc-tls.c: New file.
90 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
91 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
92
93 2003-01-17 Jakub Jelinek <jakub@redhat.com>
94
95 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
96 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
97 on _dl_static_lock.
98
99 2003-01-17 Andreas Jaeger <aj@suse.de>
100
101 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
102
103 2003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
104
105 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
106 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
107 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
108 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
109 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
110 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
111 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
112 is 2.4.21.
113
114 2003-01-16 Ulrich Drepper <drepper@redhat.com>
115
116 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
117 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
118 buffers.
119
120 * sysdeps/generic/sysconf.c: Unconditionally implement
121 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
122 * sysdeps/posix/sysconf.c: Likewise.
123
124 2003-01-16 Jakub Jelinek <jakub@redhat.com>
125
126 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
127 set *err to the returned error, not to REG_ESPACE unconditionally.
128 (build_word_op): Likewise.
129 * posix/Makefile (tests): Add bug-regex16.
130 * posix/bug-regex16.c: New test.
131
132 2003-01-16 Jakub Jelinek <jakub@redhat.com>
133
134 * elf/dl-load.c (_dl_map_object_from_fd): Use
135 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
136 been already initialized.
137
138 2003-01-15 Dmitry V. Levin <ldv@altlinux.org>
139
140 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
141
142 2003-01-16 Jakub Jelinek <jakub@redhat.com>
143
144 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
145 allocated too. Reported by Al Viro <aviro@redhat.com>.
146
147 2003-01-16 Roland McGrath <roland@redhat.com>
148
149 Tweak merged .abilist file format to merge duplicate symbols in
150 different sets into multi-version stanzas with new "| SET regexp..."
151 header continuation lines.
152 * scripts/merge-abilist.awk: Rewritten for new format.
153 * scripts/extract-abilist.awk: Likewise.
154
155 2003-01-15 Ulrich Drepper <drepper@redhat.com>
156
157 * nscd/connections.c (nscd_run): Remove bogus return which isn't
158 necessary with gcc 3.2+.
159 (nscd_init): Don't use error() to print message, use dbg_log.
160
161 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
162 expected size into state.
163 (UNPACK_BYTES): Do the reverse.
164 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
165 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
166 Reported by Al Viro <aviro@redhat.com>.
167
168 * stdio-common/Makefile (tests): Add bug14.
169 * stdio-common/bug14.c: New file.
170
171 * stdio-common/vfscanf.c: When recognizing multibyte characters in
172 string reset the byte counter after mbrtowc reported it is not a
173 partial character. Reported by Al Viro <aviro@redhat.com>.
174
175 2003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
176
177 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
178 sysdep-cancel.h, not sysdep.h.
179
180 2003-01-15 Ulrich Drepper <drepper@redhat.com>
181
182 * nscd/connections.c (nscd_run): Protect accept call with
183 TEMP_FAILURE_RETRY.
184
185 2003-01-15 Andreas Schwab <schwab@suse.de>
186
187 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
188 (common-generated): Add s-proto-bp.d.
189 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
190 of bp thunks.
191 * sysdeps/unix/s-proto-bp.S: New file.
192 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
193 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
194 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
195
196 2003-01-15 Roland McGrath <roland@redhat.com>
197
198 * Makerules: Use -include for tls.make, suppresses warning.
199 Move gen-as-const-headers rules up so before-compile is set in time.
200 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
201
202 2003-01-15 Ulrich Drepper <drepper@redhat.com>
203
204 * nscd/nscd.c (main): Make code to close all file descriptors
205 faster and more robust.
206
207 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
208 request with one writev call. Protect all read calls with
209 TEMP_FAILURE_RETRY.
210 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
211 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
212
213 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
214 Protect writev calls with TEMP_FAILURE_RETRY.
215 * nscd/grpcache.c: Likewise.
216 * nscd/pwdcache.c: Likewise.
217
218 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
219 IPv6 address in debug output.
220
221 2003-01-14 Roland McGrath <roland@redhat.com>
222
223 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
224 $(objpfx) directories, and get rid of vpath directives. The previous
225 arrangement resulted in files being written to the source directories
226 when run in a clean build. Find all .abilist files in $(..)abilist/.
227 (update-abi-%): Likewise.
228 (generated): Don't add .symlist files, they'll be intermediates.
229
230 * sysdeps/generic/init-first.c: Add a comment.
231
232 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
233
234 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
235 #includes and expressions.
236
237 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
238 config list when it already contains cpu-.*-os.* without / part.
239
240 * Makerules (sed-remove-dotdot): New variable.
241 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
242 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
243 (check-abi-config): New variable, append /tls or /notls to the tuple.
244 (check-abi-%): Use that for -v config value.
245 Find .abilist files in abilist/libfoo.abilist, not in subdir.
246 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
247
248 2003-01-14 Ulrich Drepper <drepper@redhat.com>
249
250 * manual/install.texi: Correct description of header preparation for
251 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
252
253 2003-01-14 Guido Guenther <agx@sigxcpu.org>
254
255 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
256 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
257 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
258
259 2003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
260
261 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
262 (INTERNAL_SYSCALL): Make use of ERR parameter.
263 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
264 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
265 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
266 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
267
268 2003-01-14 Ulrich Drepper <drepper@redhat.com>
269
270 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
271 == IPPROTO_TCP.
272 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
273
274 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
275 Fix entry for bit 31.
276
277 * iconvdata/Makefile: Add rules to build IBM866NAV.
278 * iconvdata/ibm866nav.c: New file.
279 * iconvdata/tst-tables.sh: Add IBM866NAV.
280 * iconvdata/gconv-modules: Add entries for IBM866NAV.
281
282 2003-01-13 Ulrich Drepper <drepper@redhat.com>
283
284 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
285 to test void* parameters.
286
287 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
288 source pointer before dereferencing.
289 (__STRING_SMALLL_GET32): Likewise.
290 (__memset_gc): Add missing parenthesis around macro arguments.
291 Patch by Denis Zaitsev <zzz@cd-club.ru>.
292
293 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
294 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
295
296 2003-01-14 Jakub Jelinek <jakub@redhat.com>
297
298 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
299 defining.
300
301 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
302
303 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
304 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
305 here.
306 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
307
308 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
309
310 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
311 from here...
312 (PSEUDO): ... to here.
313 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
314 from here...
315 (PSEUDO): ... to here.
316
317 2003-01-13 Ulrich Drepper <drepper@redhat.com>
318
319 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
320 dirent64 instead of struct dirent for dirent. Call readdir64
321 instead of readdir.
322
323 * locale/programs/locfile.c (siblings_uncached): Use struct
324 dirent64 instead of struct dirent for other_dentry. Call
325 readdir64 instead of readdir.
326
327 * elf/ldconfig.c (direntry): Change type to struct dirent64.
328 (search_dir): Use readdir64 instead of readdir.
329 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
330
331 2003-01-12 Roland McGrath <roland@redhat.com>
332
333 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
334 not strtol. The former is usable in ld.so, the latter not.
335
336 * include/fcntl.h: Declare __libc_creat.
337
338 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
339 libhurduser-link.so-no-z-defs): New variables.
340
341 * malloc/malloc.c: Revert last change.
342 * malloc/malloc.h (_int_*): Move these decls to ...
343 * include/malloc.h: ... here. Add attribute_hidden.
344 (_int_valloc): Declare it too.
345
346 2003-01-12 Ulrich Drepper <drepper@redhat.com>
347
348 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
349 search for removed searchlist. Reported by Roland McGrath.
350
351 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
352 given as start file.
353
354 * io/ftw.c (ftw_startup): Use correct name in check for symlink
355 without existing target. Patch by Jim Meyering.
356
357 * Makerules (build-shlib-helper): Don't use -z defs linker option
358 if no-z-defs is defined either.
359
360 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
361
362 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
363 file.
364
365 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
366
367 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
368 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
369
370 2003-01-12 Ulrich Drepper <drepper@redhat.com>
371
372 * io/ftwtest-sh: Add test case for relative path with /. at the end.
373
374 2003-01-12 Jim Meyering <jim@meyering.net>
375
376 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
377 use the basename if we've already chdir'd into its parent directory.
378
379 2003-01-12 Ulrich Drepper <drepper@redhat.com>
380
381 * io/ftw.c (process_entry): Use relative path when using chdir()
382 to change directory after call to ftw_dir.
383 * io/ftwtest-sh: Add test for relative path argument to nftw()
384 with FTW_CHDIR option.
385
386 2002-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
387
388 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
389 Define for powerpc.
390 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
391 into account.
392 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
393 (INTERNAL_SYSCALL): Make use of ERR parameter.
394 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
395 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
396 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
397 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
398
399 2002-01-09 Richard Henderson <rth@redhat.com>
400
401 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
402 DTPREL64 and TPREL64 without loadbase applied.
403
404 2002-01-09 Richard Henderson <rth@redhat.com>
405
406 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
407 for NOT_IN_libc.
408
409 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
410 * sysdeps/unix/alpha/sysdep.h: ... here.
411 (PSEUDO_LOADGP): Remove.
412 (PSEUDO_PROLOGUE): Load GP in non-pic case.
413 (SYSCALL_ERROR_LABEL): New.
414 (PSEUDO): Use it in error branch.
415 (PSEUDO_END): Add $syscall_error label.
416
417 2003-01-12 Andreas Jaeger <aj@suse.de>
418
419 * math/bits/mathcalls.h: Round is a const function.
420
421 2003-01-11 Jim Meyering <jim@meyering.net>
422
423 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
424 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
425 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
426 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
427 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
428 [!_LIBC] (internal_function, dirent64, MAX): Define.
429 (__set_errno): Define if not already defined.
430 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
431 the basename, not the entire file name.
432 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
433 the basename, not the entire file name.
434
435 2003-01-12 Ulrich Drepper <drepper@redhat.com>
436
437 * string/tester.c (test_strcpy): Disable last added strcpy until
438 it is fixed.
439
440 2003-01-11 Philip Blundell <philb@gnu.org>
441
442 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
443
444 2003-01-11 Andreas Schwab <schwab@suse.de>
445
446 * Makerules: Add vpath for %.dynsym and %.so so that the
447 implicit rule chaining for check-abi works.
448
449 2003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
450
451 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
452 Add non-PIC case.
453
454 2003-01-11 Jakub Jelinek <jakub@redhat.com>
455
456 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
457 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
458 gp is used early.
459 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
460 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
461 Ensure libc.so in DT_NEEDED.
462 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
463 CHECK_STATIC_TLS before l_tls_offset use.
464 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
465 Likewise.
466 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
467 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
468 Allocate TLS_PRE_TCB_SIZE bytes below result.
469 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
470 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
471 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
472 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
473 bytes below result and add tcb_offset to memsz.
474 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
475 * sysdeps/ia64/dl-machine.h: Include tls.h.
476 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
477 too.
478 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
479 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
480 * sysdeps/ia64/libc-tls.c: New file.
481
482 2003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
483
484 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
485 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
486 Fix type. Move definition out of #if.
487 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
488 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
489 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
490 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
491 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
492 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
493 support.
494 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
495 ftruncate64, pread64, pwrite64, truncate64 entries.
496 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
497 (INLINE_SYSCALL): New version that supports function call like
498 syscalls. Add __builtin_expect.
499 (LOADARGS_n): Add argument size safety checks.
500 (INTERNAL_SYSCALL): New Macro.
501 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
502 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
503 redefinition of elf_fpreg_t and elf_fpregset_t.
504
505 2003-01-12 Ulrich Drepper <drepper@redhat.com>
506
507 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
508 simplify test for unloading. If loader of a DSO is unloaded do not
509 use its scope anymore. Fall back to own scope and adjust opencounts.
510 Fix several comments.
511 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
512 the l_searchlist, not only for l_initfini.
513
514 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
515 dependencies if objects cannot be removed. Remove object with the
516 definition as not unloadable if necessary.
517
518 * elf/reldep6.c: Create relocation dependency before closing the first
519 module.
520
521 2003-01-10 Guido Günther <agx@sigxcpu.org>
522
523 * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
524 * sysdeps/unix/mips/brk.S: Likewise.
525 * sysdeps/unix/mips/pipe.S: Likewise.
526
527 2003-01-10 Andreas Schwab <schwab@suse.de>
528
529 * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
530
531 * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
532 are known to have the vfork syscall.
533
534 * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
535
536 * sysdeps/unix/sysv/linux/kernel-features.h
537 (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
538 (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
539 (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
540
541 2003-01-09 Jakub Jelinek <jakub@redhat.com>
542
543 * elf/Makefile: Add rules to build and run reldep9 test.
544 * elf/reldep9.c: New file.
545 * elf/reldep9mod1.c: New file.
546 * elf/reldep9mod2.c: New file.
547 * elf/reldep9mod3.c: New file.
548
549 2003-01-09 Jakub Jelinek <jakub@redhat.com>
550
551 * elf/Makefile: Add rules to build and run nodelete2 test.
552 * elf/nodelete2.c: New file.
553 * elf/nodel2mod1.c: New file.
554 * elf/nodel2mod2.c: New file.
555 * elf/nodel2mod3.c: New file.
556
557 2003-01-09 Jakub Jelinek <jakub@redhat.com>
558
559 * posix/test-vfork.c (noop): Add __attribute_noinline__.
560 * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
561 * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
562 defining it.
563 * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
564 * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
565 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
566 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
567 * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
568
569 2003-01-09 Andreas Schwab <schwab@suse.de>
570
571 * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
572
573 2003-01-08 Ulrich Drepper <drepper@redhat.com>
574
575 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
576 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
577 argument.
578 (INTERNAL_SYSCALL_DECL): Define.
579
580 2003-01-06 Jakub Jelinek <jakub@redhat.com>
581
582 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
583 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
584 argument.
585 (INTERNAL_SYSCALL_DECL): Define.
586 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
587 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
588 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
589 (INLINE_SYSCALL): Adjust.
590 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
591 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
592 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
593 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
594 * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
595 add err argument to INTERNAL_SYSCALL* macros.
596 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
597 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
598 * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
599 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
600 Likewise.
601 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
602 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
603 INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
604
605 2003-01-07 Ulrich Drepper <drepper@redhat.com>
606
607 Unify symbols in user namespace exported by libc.so and libc.a.
608 * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
609 argp_fmtstream_free, and argp_fmtstream_printf.
610 * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
611 argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
612 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
613 argp_fmtstream_point.
614 * gmon/gmon.c: Don't define write_profiling.
615 * libio/genops.c: Don't define _cleanup.
616
617 * intl/explodename.c (_nl_find_language.c): Mark as static.
618 * intl/loadinfo.h: Remove _nl_find_language prototype.
619
620 * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
621 * libio/libioP.h: Remove declaration.
622
623 * libio/iopopen.c (_IO_proc_jumps): Mark as static.
624 * libio/libioP.h: Remove declaration.
625
626 * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
627 * sysdeps/generic/framestate.c: Define STATIC before including
628 unwind-dw2.c.
629
630 * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
631
632 2003-01-06 Philip Blundell <philb@gnu.org>
633
634 * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
635 [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
636
637 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
638 directive.
639 (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
640 (SYSCALL_ERROR): New.
641 (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
642 handling code.
643 (INTERNAL_SYSCALL): Define.
644 (INLINE_SYSCALL): Use it.
645 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
646 * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
647 SYSCALL_ERROR in place of __syscall_error.
648
649 2003-01-07 Jakub Jelinek <jakub@redhat.com>
650
651 * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
652 __bswap_32, __bswap_64): Put x into temporary variable
653 to avoid warnings.
654 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
655 (inline) functions.
656 * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
657 __bswap_32, __bswap_64): Put x into temporary variable
658 to avoid warnings.
659 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
660 (inline) functions.
661 * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
662 Likewise.
663
664 2003-01-07 Jakub Jelinek <jakub@redhat.com>
665
666 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
667 alias.
668
669 2003-01-07 Jakub Jelinek <jakub@redhat.com>
670
671 * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
672 * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
673
674 2003-01-07 Ulrich Drepper <drepper@redhat.com>
675
676 * math/libm-test.inc (significand_test): New function.
677 (main): Call it.
678
679 2003-01-06 Roland McGrath <roland@redhat.com>
680
681 * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
682 arguments.
683 (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
684 (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
685 (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
686
687 * string/tester.c (test_strcpy): Add test with `void *' arguments.
688
689 2003-01-06 Ulrich Drepper <drepper@redhat.com>
690
691 * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
692 return significand and not the exponent.
693 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
694
695 * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
696 taking address of iov in INTERNAL_SYSCALL call. Patch by Franz Sirl.
697
698 * malloc/malloc.c: Mark all _int_* functions as static.
699
700 2003-01-06 Jakub Jelinek <jakub@redhat.com>
701
702 * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
703 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
704 handling.
705 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
706
707 2003-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
708
709 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
710 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
711 support.
712 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
713 ftruncate64, truncate64, pread64 and pwrite64 entries.
714 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
715 (INLINE_SYSCALL): Add __builtin_expect.
716 (LOADARGS_n): Add argument size safety checks.
717 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
718 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
719 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
720 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
721 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
722 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
723
724 2003-01-06 Jakub Jelinek <jakub@redhat.com>
725
726 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
727 * sysdeps/generic/creat.c: Include sysdep-cancel.h.
728 (LIBC_CANCEL_HANDLED): Add.
729
730 * sysdeps/unix/sysv/linux/alpha/sysdep.h
731 (inline_syscall_r0_constraint): Rename to...
732 (inline_syscall_r0_out_constraint): ... this. Add =.
733 (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
734
735 2003-01-06 Andreas Schwab <schwab@suse.de>
736
737 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
738 sure this is always inlined.
739 (elf_machine_rela): Likewise.
740
741 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
742
743 2003-01-04 Roland McGrath <roland@redhat.com>
744
745 * Makeconfig (+mkdep): Add -MP flag.
746 Suggested by Art Haas <ahaas@airmail.net>.
747
748 2003-01-05 Andreas Schwab <schwab@suse.de>
749
750 * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
751
752 2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
753
754 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
755 SYSCALL_ERROR_HANDLER.
756 * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
757 * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
758 Add support for cancellation handling.
759 * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
760 SYSCALL_ERROR_HANDLER.
761 * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
762 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
763 Add support for cancellation handling.
764 (SYSCALL_ERROR_HANDLER): Define PIC variants.
765
766 2003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
767
768 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
769 __syscall_pread64 and __syscall_pwrite64 cancelable.
770 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
771 (INTERNAL_SYSCALL): New macro.
772 (LOADARGS_0, LOADARGS_1): Fix.
773
774 2003-01-05 Ulrich Drepper <drepper@redhat.com>
775
776 * Makerules (build-shlip-helper): Unless told otherwise, add
777 -Wl,-z,defs to linker command line.
778 * rt/Makefile (librt.so): Link with ld.so.
779 * dlfcn/Makefile (libdl.so): Likewise.
780
781 2003-01-05 Jakub Jelinek <jakub@redhat.com>
782
783 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
784 cancellation handling.
785 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
786 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
787
788 2003-01-04 Ulrich Drepper <drepper@redhat.com>
789
790 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
791 order of parameters passed to kill.
792
793 2003-01-04 Andreas Schwab <schwab@suse.de>
794
795 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
796
797 2002-01-03 Paul Eggert <eggert@twinsun.com>
798
799 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
800 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
801 when compiling Bison 1.875's `bitset bset = obstack_alloc
802 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
803
804 2003-01-04 Ulrich Drepper <drepper@redhat.com>
805
806 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove
807 unnecessary code.
808 Correct reference counter in case SIGQUIT handler installation failed.
809
810 2003-01-03 Ulrich Drepper <drepper@redhat.com>
811
812 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
813 Define using _Pragma(weak ...).
814
815 2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
816
817 * resolv/res_libc.c: Provide declaration for __res_init_weak and
818 reorder declarations.
819
820 2003-01-03 Art Haas <ahaas@airmail.net>
821
822 * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
823 initializer syntax to C99.
824 * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
825 * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
826 * localedata/tests-mbwc/dat_iswctype.c: Likewise.
827 * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
828 * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
829 * localedata/tests-mbwc/dat_iswlower.c: Likewise.
830 * localedata/tests-mbwc/dat_iswprint.c: Likewise.
831 * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
832 * localedata/tests-mbwc/dat_iswspace.c: Likewise.
833 * localedata/tests-mbwc/dat_iswupper.c: Likewise.
834 * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
835 * localedata/tests-mbwc/dat_mblen.c: Likewise.
836 * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
837 * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
838 * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
839 * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
840 * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
841 * localedata/tests-mbwc/dat_strcoll.c: Likewise.
842 * localedata/tests-mbwc/dat_strfmon.c: Likewise.
843 * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
844 * localedata/tests-mbwc/dat_swscanf.c: Likewise.
845 * localedata/tests-mbwc/dat_towctrans.c: Likewise.
846 * localedata/tests-mbwc/dat_towlower.c: Likewise.
847 * localedata/tests-mbwc/dat_towupper.c: Likewise.
848 * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
849 * localedata/tests-mbwc/dat_wcscat.c: Likewise.
850 * localedata/tests-mbwc/dat_wcschr.c: Likewise.
851 * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
852 * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
853 * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
854 * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
855 * localedata/tests-mbwc/dat_wcslen.c: Likewise.
856 * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
857 * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
858 * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
859 * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
860 * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
861 * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
862 * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
863 * localedata/tests-mbwc/dat_wcstod.c: Likewise.
864 * localedata/tests-mbwc/dat_wcstok.c: Likewise.
865 * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
866 * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
867 * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
868 * localedata/tests-mbwc/dat_wctob.c: Likewise.
869 * localedata/tests-mbwc/dat_wctomb.c: Likewise.
870 * localedata/tests-mbwc/dat_wctrans.c: Likewise.
871 * localedata/tests-mbwc/dat_wctype.c: Likewise.
872 * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
873
874 2003-01-03 Richard Henderson <rth@redhat.com>
875
876 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
877 (inline_syscall_r0_constraint): New.
878 (inline_syscall[0-6]): Use them.
879
880 2003-01-03 Jakub Jelinek <jakub@redhat.com>
881
882 * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
883 Add rtld_hidden_proto.
884 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
885 (_dl_allocate_tls): Likewise. Remove INTDEF.
886
887 2002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
888
889 * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu
890 Morita <toshiyasu.morita@hsa.hitachi.com>.
891 * sysdeps/sh/memcpy.S: Likewise.
892
893 2003-01-02 Ulrich Drepper <drepper@redhat.com>
894
895 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
896 any, but unify the test.
897
898 2003-01-02 Jakub Jelinek <jakub@redhat.com>
899
900 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
901 sigaction): Protect weak_alias and libc_hidden_weak with
902 #ifndef LIBC_SIGACTION.
903 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
904 sigaction): Likewise.
905 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
906 sigaction): Likewise.
907 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
908 sigaction): Likewise.
909 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
910 sigaction): Likewise.
911 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
912 sigaction): Likewise.
913 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
914 sigaction): Likewise.
915 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
916 sigaction): Likewise. Remove SIGCANCEL handling here.
917 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
918 Likewise.
919
920 2003-01-02 Art Haas <ahaas@airmail.net>
921
922 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
923
924 2003-01-02 Ulrich Drepper <drepper@redhat.com>
925
926 * posix/getconf.c: Update copyright year.
927 * nss/getent.c: Likewise.
928 * nscd/nscd_nischeck.c: Likewise.
929 * iconv/iconvconfig.c: Likewise.
930 * iconv/iconv_prog.c: Likewise.
931 * elf/ldconfig.c: Likewise.
932 * catgets/gencat.c: Likewise.
933 * csu/version.c: Likewise.
934 * elf/ldd.bash.in: Likewise.
935 * elf/sprof.c (print_version): Likewise.
936 * locale/programs/locale.c: Likewise.
937 * locale/programs/localedef.c: Likewise.
938 * nscd/nscd.c (print_version): Likewise.
939 * debug/xtrace.sh: Likewise.
940 * malloc/memusage.sh: Likewise.
941 * malloc/mtrace.pl: Likewise.
942
943 2003-01-01 Jakub Jelinek <jakub@redhat.com>
944
945 * io/sys/stat.h: Include time.h with __need_timespec even if
946 __USE_MISC is defined but __USE_XOPEN is not.
947
948 2003-01-01 Andreas Jaeger <aj@suse.de>
949
950 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
951 type to avoid strict aliasing problem.
952 (_nss_dns_gethostbyname2_r): Likewise.
953 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
954 (_nss_dns_getnetbyname_r): Likewise.
955 * resolv/gethnamaddr.c (_gethtent): Likewise.
956 (gethostbyname2): Likewise.
957
958 2002-12-31 Ulrich Drepper <drepper@redhat.com>
959
960 * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
961 to avoid using the exported symbols. Define aliases with the
962 original names separately.
963
964 * include/time.h: Add libc_hidden_proto for __strftime_l.
965 * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
966 * time/strftime.c: Always use libc_hidden_def if _LIBC.
967
968 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
969 * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
970
971 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
972 tr_break.
973
974 * csu/Makefile (routines): Add dso_handle.
975 * csu/dso_handle.c: New file.
976
977 2002-12-31 Roland McGrath <roland@redhat.com>
978
979 * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
980 Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
981 (S-CPPFLAGS): Add -DASSEMBLER here instead.
982 (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
983
984 2002-12-31 Ulrich Drepper <drepper@redhat.com>
985
986 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
987 is available.
988
989 2002-12-31 Andreas Jaeger <aj@suse.de>
990
991 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
992 with Linux kernel.
993 * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
994 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
995 * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
996
997 * sysdeps/unix/sysv/linux/kernel_stat.h
998 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
999
1000 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
1001 __unused[1-3] since they're needed by some platforms. Handle
1002 _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
1003
1004 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
1005 for structs stat and stat64.
1006 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1007 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1008 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1009 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1010
1011 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
1012
1013 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
1014 nsec resolution changes.
1015 (xstat64_conv): Likewise.
1016 (xstat32_conv): Likewise.
1017
1018 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
1019 struct kernel_stat.
1020
1021 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
1022 structs stat and stat64.
1023
1024 * time/time.h (__timespec_defined): Define for __USE_MISC.
1025
1026 2002-12-31 Ulrich Drepper <drepper@redhat.com>
1027
1028 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
1029 and __libc_current_sigrtmax.
1030
1031 2002-12-31 Jakub Jelinek <jakub@redhat.com>
1032
1033 * include/errno.h (__errno_location): Add prototype.
1034 Use libc_hidden_proto unconditionally.
1035 * include/netdb.h (__h_errno_location): Use libc_hidden_proto
1036 unconditionally.
1037 * include/resolv.h (__res_state): Likewise.
1038
1039 * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
1040 * include/sys/socket.h (accept): Add libc_hidden_proto.
1041 * include/errno.h (__errno_location): Likewise.
1042 * include/netdb.h (__h_errno_location): Likewise.
1043 * include/resolv.h (__res_state): Likewise.
1044 * include/unistd.h (__lseek): Likewise.
1045 * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
1046 * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
1047 * sysdeps/generic/res-state.c (__res_state): Likewise.
1048 * sysdeps/generic/accept.c (accept): Likewise.
1049 * sysdeps/generic/lseek.c (__lseek): Likewise.
1050 * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
1051 __libc_current_sigrtmax): Likewise.
1052 * sysdeps/mach/hurd/accept.c (accept): Likewise.
1053 * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
1054 * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
1055 * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
1056 * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
1057 * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
1058 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
1059 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
1060 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
1061 alias to llseek.
1062 (__GI_accept): New alias to accept.
1063 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
1064 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
1065 New alias to llseek.
1066 (__GI_accept): New alias to accept.
1067 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
1068 Likewise.
1069 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
1070 Likewise.
1071 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
1072
1073 * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
1074 strong_alias (name, __GI_name).
1075 * sysdeps/arm/bsd-_setjmp.S : Likewise.
1076 * sysdeps/hppa/bsd-_setjmp.S : Likewise.
1077 * sysdeps/i386/bsd-_setjmp.S : Likewise.
1078 * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
1079 * sysdeps/mips/bsd-_setjmp.S : Likewise.
1080 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
1081 * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
1082 * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
1083 * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
1084 * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
1085 * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
1086 * sysdeps/sh/bsd-_setjmp.S : Likewise.
1087 * sysdeps/sparc/sparc32/setjmp.S : Likewise.
1088 * sysdeps/unix/arm/fork.S : Likewise.
1089 * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
1090 * sysdeps/unix/bsd/i386/vfork.S : Likewise.
1091 * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
1092 * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
1093 * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
1094 * sysdeps/unix/bsd/vax/vfork.S : Likewise.
1095 * sysdeps/unix/i386/fork.S : Likewise.
1096 * sysdeps/unix/mips/fork.S : Likewise.
1097 * sysdeps/unix/sparc/fork.S : Likewise.
1098 * sysdeps/unix/sparc/vfork.S : Likewise.
1099 * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
1100 * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
1101 * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
1102 * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
1103 * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
1104 * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
1105 * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
1106 * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
1107 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
1108 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
1109 * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
1110 * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
1111 * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
1112 * sysdeps/unix/fork.S : Likewise.
1113 * sysdeps/vax/bsd-_setjmp.S : Likewise.
1114 * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
1115
1116 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
1117 inclusion.
1118
1119 2002-12-31 Ulrich Drepper <drepper@redhat.com>
1120
1121 * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
1122 * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
1123 * sysdeps/mach/hurd/fork.c: Likewise.
1124 * sysdeps/unix/sysv/aix/fork.c: Likewise.
1125 * sysdeps/unix/fork.S: Add __GI___fork alias.
1126 * sysdeps/unix/arm/fork.S: Likewise.
1127 * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
1128 * sysdeps/unix/i386/fork.S: Likewise.
1129 * sysdeps/unix/mips/fork.S: Likewise.
1130 * sysdeps/unix/sparc/fork.S: Likewise.
1131 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
1132 * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
1133 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1134 * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
1135 * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
1136 * sysdeps/unix/bsd/i386/vfork.S: Likewise.
1137 * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
1138 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
1139 * sysdeps/unix/bsd/vax/vfork.S: Likewise.
1140 * sysdeps/unix/sparc/vfork.S: Likewise.
1141 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
1142 * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
1143 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
1144 * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
1145 * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
1146 * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
1147 * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
1148 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
1149
1150 * include/time.h: Add libc_hidden_proto for __nanosleep.
1151 * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
1152 * sysdeps/mach/nanosleep.c: Likewise.
1153 * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
1154 * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
1155
1156 * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
1157 _IO_list_unlock, and _IO_list_resetlock.
1158 * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
1159 _IO_list_unlock, and _IO_list_resetlock.
1160
1161 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
1162 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
1163 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
1164 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
1165
1166 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
1167 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
1168 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
1169 __GI___longjmp alias.
1170
1171 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
1172 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
1173 * sysdeps/arm/bsd-_setjmp.S: Likewise.
1174 * sysdeps/generic/bsd-_setjmp.c: Likewise.
1175 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
1176 * sysdeps/i386/bsd-_setjmp.S: Likewise.
1177 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
1178 * sysdeps/mips/bsd-_setjmp.S: Likewise.
1179 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
1180 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
1181 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
1182 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
1183 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
1184 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
1185 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
1186 * sysdeps/sh/bsd-_setjmp.S: Likewise.
1187 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
1188 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
1189 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
1190 * sysdeps/vax/bsd-_setjmp.S: Likewise.
1191 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
1192
1193 2002-12-30 Ulrich Drepper <drepper@redhat.com>
1194
1195 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
1196
1197 2002-12-30 Roland McGrath <roland@redhat.com>
1198
1199 * Rules (generated): Target removed.
1200 * mach/Makefile (generated): Define it here instead.
1201
1202 * math/Makefile (generated): Add m_*l and m_*f variants too.
1203
1204 2002-12-30 Ulrich Drepper <drepper@redhat.com>
1205
1206 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
1207 the to-be-deleted objects right away instead of later separately.
1208 The latter fails because the scope data structures of the DSO
1209 might already be gone.
1210
1211 * elf/Makefile: Add rules to build and run reldep8 test.
1212 * elf/reldep8.c: New file.
1213 * elf/reldep8mod1.c: New file.
1214 * elf/reldep8mod2.c: New file.
1215 * elf/reldep8mod3.c: New file.
1216 Contributed by Jakub Jelinek.
1217
1218 2002-12-24 GOTO Masanori <gotom@debian.or.jp>
1219
1220 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
1221 checking of return value ENOSYS from getdents64.
1222
1223 2002-12-28 Andreas Schwab <schwab@suse.de>
1224
1225 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
1226 ($(common-objpfx)s-%.d): Generalized from
1227 $(common-objpfx)s-proto.d rule.
1228 (common-generated): Add s-proto-cancel.d.
1229 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
1230 cancellable syscalls.
1231 * sysdeps/unix/s-proto-cancel.S: New file.
1232
1233 2002-12-29 Roland McGrath <roland@redhat.com>
1234
1235 * resolv/res_libc.c: Move _res defn magic after res_init defn
1236 so _res macro is in effect for that code.
1237
1238 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
1239 pattern for prepending $(..) so it doesn't affect $(foo).
1240
1241 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
1242
1243 2002-12-29 Jakub Jelinek <jakub@redhat.com>
1244
1245 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
1246 in hwcap.
1247
1248 2002-12-28 Ulrich Drepper <drepper@redhat.com>
1249
1250 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
1251
1252 2002-12-28 Andreas Jaeger <aj@suse.de>
1253
1254 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
1255 avoid warning.
1256 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
1257
1258 2002-12-27 Jakub Jelinek <jakub@redhat.com>
1259
1260 * inet/herrno.c (__h_errno_location): Remove.
1261 * inet/Makefile (routines): Add herrno-loc.
1262 * resolv/res_libc.c (__res_state): Remove.
1263 * resolv/Makefile (routines): Add res-state.
1264 * sysdeps/generic/herrno-loc.c: New file.
1265 * sysdeps/generic/res-state.c: New file.
1266
1267 2002-12-27 Jakub Jelinek <jakub@redhat.com>
1268
1269 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
1270 Only define if USE_DL_SYSINFO is defined.
1271
1272 2002-12-22 Jakub Jelinek <jakub@redhat.com>
1273
1274 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
1275 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
1276 Define. Patch by Richard Henderson and Jes Sorensen.
1277 (PSEUDO): Remove unnecessary ;;.
1278 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
1279 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
1280 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
1281 if not initializing thread pointer.
1282 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
1283 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
1284 make it weak also if NONTLS_INIT_TP.
1285 * sysdeps/unix/common/pause.c: Handle cancellation.
1286 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
1287 (LOADSYSCALL): Remove.
1288 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
1289 (SYSCALL_ERROR_HANDLER): Use it.
1290 (PSEUDO): Don't jump around error handler.
1291 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
1292 jump around error handler.
1293 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
1294 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
1295 to __syscall_error_handler on failure.
1296 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
1297 (LOADSYSCALL): Remove.
1298 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
1299 (SYSCALL_ERROR_HANDLER): Use it.
1300 (PSEUDO): Don't jump around error handler.
1301 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
1302 jump around error handler.
1303 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
1304 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
1305 to __syscall_error_handler on failure.
1306
1307 2002-12-27 Roland McGrath <roland@redhat.com>
1308
1309 * scripts/gen-as-const.awk: New file.
1310 * Makefile (distribute): Add it.
1311 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
1312 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
1313 to the list.
1314 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
1315
1316 2002-12-27 Andreas Schwab <schwab@suse.de>
1317
1318 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
1319
1320 2002-12-27 Jakub Jelinek <jakub@redhat.com>
1321
1322 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
1323 _environ is NULL.
1324
1325 2002-12-27 Andreas Schwab <schwab@suse.de>
1326
1327 * Makerules ($(common-objpfx)%.make): Filter through
1328 $(sed-remove-objpfx).
1329
1330 2002-12-23 Roland McGrath <roland@redhat.com>
1331
1332 * scripts/abilist.awk: Produce a more compact format, divided into
1333 stanzas for each version set, the set name listed only once.
1334 * scripts/extract-abilist.awk: New file.
1335 * scripts/merge-abilist.awk: New file.
1336 * Makerules (check-abi-%, update-abi-%): New pattern rules.
1337 (update-abi, check-abi): New targets.
1338 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
1339
1340 2002-12-19 Roland McGrath <roland@redhat.com>
1341
1342 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
1343
1344 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
1345 INTERNAL_SYSCALL.
1346
1347 2002-12-21 Andreas Schwab <schwab@suse.de>
1348
1349 * elf/check-textrel.c (handle_file): Swap p_type.
1350
1351 2002-12-21 Andreas Schwab <schwab@suse.de>
1352
1353 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
1354 (INLINE_SYSCALL): Use it.
1355 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
1356 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
1357
1358 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
1359 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
1360
1361 2002-12-20 Art Haas <ahaas@airmail.net>
1362
1363 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
1364 syntax to C99.
1365
1366 2002-12-21 Philip Blundell <philb@gnu.org>
1367
1368 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
1369 top as seventh arg to __libc_start_main.
1370 Reported by paulnash@wildseed.com.
1371
1372 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
1373
1374 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
1375 compatibility cruft when new enough kernel is assumed.
1376
1377 2002-12-20 Jakub Jelinek <jakub@redhat.com>
1378
1379 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
1380 instead of INLINE_SYSCALL.
1381
1382 2002-12-20 Ulrich Drepper <drepper@redhat.com>
1383
1384 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
1385 typo.
1386
1387 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
1388 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
1389 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
1390 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
1391 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
1392 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
1393 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
1394 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
1395 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
1396 Patch by William Lee Irwin <wli@holomorphy.com>.
1397
1398 2002-12-20 Andreas Schwab <schwab@suse.de>
1399
1400 * locale/programs/ld-measurement.c (measurement_output): Fix
1401 index calculation.
1402
1403 2002-12-20 Ulrich Drepper <drepper@redhat.com>
1404
1405 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
1406 Redefine _IO_flockifle and _IO_funlockfile as inlines.
1407
1408 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
1409 builds add "tls" in the search path.
1410 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
1411 (path_hwcap): Recognize "tls".
1412
1413 2002-12-19 Ulrich Drepper <drepper@redhat.com>
1414
1415 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
1416 __waitpid instead of waitpid.
1417
1418 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
1419 int $0x80.
1420 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
1421 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
1422 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
1423
1424 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
1425 information for system calls.
1426
1427 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
1428 for ld.so.
1429
1430 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
1431
1432 2002-12-19 Roland McGrath <roland@redhat.com>
1433
1434 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
1435 * iconvdata/ibm922.h: Likewise.
1436 * iconvdata/ibm930.h: Likewise.
1437 * iconvdata/ibm932.h: Likewise.
1438 * iconvdata/ibm933.h: Likewise.
1439 * iconvdata/ibm935.h: Likewise.
1440 * iconvdata/ibm937.h: Likewise.
1441 * iconvdata/ibm939.h: Likewise.
1442 * iconvdata/ibm943.h: Likewise.
1443 * iconvdata/isiri-3342.h: Likewise.
1444
1445 2002-12-19 Ulrich Drepper <drepper@redhat.com>
1446
1447 * test-skeleton.c (main): Make sure correct value is seen as
1448 argv[0] after adjustment of argv, and argc.
1449
1450 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
1451 RTLD_CORRECT_DYNAMIC_WEAK is defined.
1452
1453 2002-12-19 Jakub Jelinek <jakub@redhat.com>
1454
1455 * nscd/connections.c (nscd_run): Shut up warning.
1456 * tst-ungetc.c (assert): Undefined before redefining.
1457
1458 2002-12-19 Ulrich Drepper <drepper@redhat.com>
1459
1460 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
1461 is used.
1462
1463 2002-12-17 Art Haas <ahaas@airmail.net>
1464
1465 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
1466 * iconvdata/cp775.h: Likewise.
1467 * iconvdata/ibm1046.h: Likewise.
1468 * iconvdata/ibm1124.h: Likewise.
1469 * iconvdata/ibm1129.h: Likewise.
1470 * iconvdata/ibm1132.h: Likewise.
1471 * iconvdata/ibm1133.h: Likewise.
1472 * iconvdata/ibm1160.h: Likewise.
1473 * iconvdata/ibm1161.h: Likewise.
1474 * iconvdata/ibm1162.h: Likewise.
1475 * iconvdata/ibm1163.h: Likewise.
1476 * iconvdata/ibm1164.h: Likewise.
1477
1478 2002-12-19 Ulrich Drepper <drepper@redhat.com>
1479
1480 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
1481 __ASSUME_CLONE_THREAD_FLAGS is defined.
1482 * sysdeps/unix/sysv/linux/kernel-features.h
1483 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
1484
1485 2002-12-18 Ulrich Drepper <drepper@redhat.com>
1486
1487 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
1488 of asm.
1489 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
1490
1491 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
1492 _dl_sysinfo.
1493 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
1494 code.
1495 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
1496 _rtld_global.
1497 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
1498 code.
1499 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
1500 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
1501 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
1502 Add _dl_sysinfo.
1503
1504 2002-12-18 Jakub Jelinek <jakub@redhat.com>
1505
1506 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
1507 __libc_writev to...
1508 [libc: GLIBC_PRIVATE]: ...here.
1509 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
1510 __libc_msgsnd to...
1511 [libc: GLIBC_PRIVATE]: ...here.
1512
1513 2002-12-18 Ulrich Drepper <drepper@redhat.com>
1514
1515 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
1516 Use it instead of directly int $0x80.
1517 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
1518 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
1519 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
1520 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
1521 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
1522 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
1523
1524 2002-12-17 Ulrich Drepper <drepper@redhat.com>
1525
1526 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
1527
1528 * elf/elf.h (AT_SYSINFO): New define.
1529 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
1530 AT_SYSINFO.
1531
1532 2002-12-17 Jakub Jelinek <jakub@redhat.com>
1533
1534 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
1535 Make cancelable.
1536 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
1537 Likewise.
1538 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
1539 Likewise.
1540 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
1541 Likewise.
1542 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
1543 Likewise.
1544 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
1545
1546 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
1547 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
1548 available, otherwise __libc_maybe_call.
1549 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
1550 cancellation handling.
1551 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
1552
1553 2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
1554
1555 * posix/regcomp.c (free_workarea_compile): Free the new member
1556 ORG_INDICES.
1557 (analyze): Initialize ORG_INDICES.
1558 (duplicate_node_closure): Search for a existing node, which is
1559 duplicated from the node ORG_DEST and satisfies the constraint
1560 CONSTRAINT. And use it to avoid inifimite loop.
1561 (search_duplicated_node): New function.
1562 (duplicate_node): Store the index of the original node.
1563 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
1564 if needed.
1565 * posix/regex_internal.h (re_dfa_t): Add new members.
1566
1567 2002-12-17 Ulrich Drepper <drepper@redhat.com>
1568
1569 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
1570
1571 2002-12-16 Ulrich Drepper <drepper@redhat.com>
1572
1573 * sysdeps/posix/system.c (do_system): Add support for installation
1574 of cancellation handlers.
1575 * sysdeps/unix/sysv/linux/i386/system.c: New file.
1576
1577 * stdlib/Makefile (tests): Add tst-system.
1578 * stdlib/tst-system.c: New file.
1579
1580 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
1581 CENABLE]: Don't lose content of %ebx.
1582
1583 2002-12-17 Jakub Jelinek <jakub@redhat.com>
1584
1585 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
1586 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
1587
1588 2002-12-16 Ulrich Drepper <drepper@redhat.com>
1589
1590 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
1591 fails to return a function pointer don't use it.
1592
1593 2002-12-16 Art Haas <ahaas@airmail.net>
1594
1595 * io/ftw.c: Convert GCC extension initializer syntax to C99.
1596 * iconvdata/iso-ir-165.c: Likewise.
1597 * iconvdata/jis0208.c: Likewise.
1598 * iconvdata/jis0212.c: Likewise.
1599
1600 2002-12-16 Ulrich Drepper <drepper@redhat.com>
1601
1602 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
1603 epoll_ctl, and epoll_wait.
1604 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
1605 epoll_create, epoll_ctl, and epoll_wait.
1606 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
1607 Davide Libenzi <davidel@xmailserver.org>.
1608 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
1609 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
1610 Add sys/epoll.h.
1611
1612 2002-12-16 Art Haas <ahaas@airmail.net>
1613
1614 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
1615 syntax to C99
1616 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
1617 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
1618 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
1619
1620 2002-12-16 Ulrich Drepper <drepper@redhat.com>
1621
1622 * stdio-common/Makefile (routines): Remove lockfile. Add
1623 flockfile, ftrylockfile, and funlockfile.
1624 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
1625 * sysdeps/generic/flockfile.c: New file.
1626 * sysdeps/generic/ftrylockfile.c: New file.
1627 * sysdeps/generic/funlockfile.c: New file.
1628
1629 2002-12-16 Jakub Jelinek <jakub@redhat.com>
1630
1631 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
1632 macros instead of doing the calls directly.
1633 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
1634 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
1635 targets.
1636
1637 2002-12-16 Jakub Jelinek <jakub@redhat.com>
1638
1639 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
1640 * sysdeps/ieee754/bits/nan.h: Likewise.
1641
1642 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
1643 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
1644
1645 2002-12-16 Roland McGrath <roland@redhat.com>
1646
1647 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
1648 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
1649 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
1650
1651 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
1652 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
1653 s_putpmsg.
1654 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
1655 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
1656 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
1657 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
1658 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
1659 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
1660 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
1661 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
1662
1663 2002-12-13 Paul Eggert <eggert@twinsun.com>
1664
1665 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
1666 is now u_int, not int.
1667 (struct XDR.x_handy): Now u_int, not int.
1668 * sunrpc/xdr_mem.c: Include <limits.h>.
1669 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
1670 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
1671 x_handy is now unsigned, not signed.
1672 Do not decrement x_handy if no change is made.
1673 (xdrmem_setpos): Check for int overflow.
1674 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
1675 (xdr_sizeof): Remove cast that is now unnecessary, now that
1676 x_handy is unsigned.
1677
1678 2002-12-15 Art Haas <ahaas@airmail.net>
1679
1680 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
1681 * iconvdata/gap.awk: Likewise.
1682 * iconvdata/gen-8bit-gap-1.sh: Likewise.
1683 * iconvdata/gen-8bit-gap.sh: Likewise.
1684 * locale/C-address.c: Likewise.
1685 * locale/C-collate.c: Likewise.
1686 * locale/C-ctype.c: Likewise.
1687 * locale/C-identification.c: Likewise.
1688 * locale/C-measurement.c: Likewise.
1689 * locale/C-messages.c: Likewise.
1690 * locale/C-monetary.c: Likewise.
1691 * locale/C-name.c: Likewise.
1692 * locale/C-numeric.c: Likewise.
1693 * locale/C-paper.c: Likewise.
1694 * locale/C-telephone.c: Likewise.
1695 * locale/C-time.c: Likewise.
1696 * nscd/connections.c: Likewise.
1697 * nscd/grpcache.c: Likewise.
1698 * nscd/hstcache.c: Likewise.
1699 * nscd/pwdcache.c: Likewise.
1700 * stdio-common/vfprintf.c: Likewise.
1701 * stdlib/random.c: Likewise.
1702 * sysdeps/generic/siglist.c: Likewise.
1703 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
1704 * sysdeps/ieee754/bits/nan.h: Likewise.
1705 * sysdeps/posix/sprofil.c: Likewise.
1706 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
1707 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
1708 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
1709
1710 2002-12-15 Roland McGrath <roland@redhat.com>
1711
1712 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
1713
1714 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
1715 <tls.h> here, no need for it.
1716 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
1717
1718 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
1719 parameter, not varargs parameter.
1720
1721 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
1722 argument so it's not an unused variable.
1723
1724 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
1725 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
1726 for users.
1727
1728 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
1729
1730 2002-12-15 Ulrich Drepper <drepper@redhat.com>
1731
1732 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
1733 original __libc_fcntl code. Just renamed.
1734
1735 2002-12-15 Andreas Schwab <schwab@suse.de>
1736
1737 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
1738
1739 2002-12-14 Olaf Hering <olh@suse.de>
1740
1741 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
1742 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
1743
1744 2002-12-15 Ulrich Drepper <drepper@redhat.com>
1745
1746 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
1747
1748 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
1749 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
1750
1751 * sysdeps/unix/sysv/linux/open64.c: New file.
1752
1753 * sysdeps/generic/pselect.c: Add support for cancellation handling.
1754 * sysdeps/posix/open64.c: Likewise.
1755 * sysdeps/posix/sigpause.c: Likewise.
1756 * sysdeps/posix/sigwait.c: Likewise.
1757 * sysdeps/posix/system.c: Likewise.
1758 * sysdeps/posix/waitid.c: Likewise.
1759 * sysdeps/unix/sysv/linux/accept.S: Likewise.
1760 * sysdeps/unix/sysv/linux/connect.S: Likewise.
1761 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
1762 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
1763 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
1764 * sysdeps/unix/sysv/linux/poll.c: Likewise.
1765 * sysdeps/unix/sysv/linux/pread.c: Likewise.
1766 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
1767 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
1768 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
1769 * sysdeps/unix/sysv/linux/readv.c: Likewise.
1770 * sysdeps/unix/sysv/linux/recv.S: Likewise.
1771 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
1772 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
1773 * sysdeps/unix/sysv/linux/send.S: Likewise.
1774 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
1775 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
1776 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
1777 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
1778 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
1779 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1780 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
1781 * sysdeps/unix/sysv/linux/wait.c: Likewise.
1782 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
1783 * sysdeps/unix/sysv/linux/writev.c: Likewise.
1784 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1785 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
1786
1787 2002-12-14 Jakub Jelinek <jakub@redhat.com>
1788
1789 * sysdeps/generic/sysdep-cancel.h: New file.
1790 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
1791 cancelable syscall.
1792 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
1793 recvmsg, send, sendmsg, sendto): Make cancelable.
1794 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
1795 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
1796 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
1797 sendto, osf_select): Likewise.
1798 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
1799 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
1800 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
1801 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
1802 sendto): Likewise.
1803 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
1804 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
1805 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
1806 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
1807 sendto): Likewise.
1808 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
1809 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
1810 sendto, select): Likewise.
1811 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
1812 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
1813 Likewise.
1814 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
1815 select, fcntl): Likewise.
1816 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
1817 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
1818 read, readv, select, sigsuspend, write, writev): Likewise.
1819
1820 2002-12-14 Jakub Jelinek <jakub@redhat.com>
1821
1822 * dirent/bug-readdir1.c: Include unistd.h.
1823
1824 2002-12-13 Jakub Jelinek <jakub@redhat.com>
1825
1826 * locale/programs/locale.c: Include locarchive.h.
1827 (ARCHIVE_NAME): Define.
1828 (write_archive_locales): New function.
1829 (write_locales): Use it. Ensure the same locale is not printed
1830 multiple times in verbose mode.
1831 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
1832 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
1833 functions.
1834 (struct nameent): New type.
1835 (nameentcmp): New function.
1836
1837 2002-12-14 Jakub Jelinek <jakub@redhat.com>
1838
1839 * posix/regex_internal.c (re_string_context_at): Guard wide char
1840 code with #ifdef RE_ENABLE_I18N.
1841
1842 2002-11-22 Paolo Bonzini <bonzini@gnu.org>
1843
1844 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
1845
1846 2002-12-13 Roland McGrath <roland@redhat.com>
1847
1848 * posix/bug-regex15.c: New file.
1849 * posix/Makefile (tests): Add it.
1850
1851 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
1852 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
1853
1854 2002-12-13 Ulrich Drepper <drepper@redhat.com>
1855
1856 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
1857
1858 * misc/syslog.c (log_cleanup): Don't use parameter in
1859 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
1860 pass NULL instead of a pointer to syslog_lock.
1861
1862 2002-12-12 Ulrich Drepper <drepper@redhat.com>
1863
1864 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
1865 linker map for all iconv modules.
1866 (distribute): Add gconv.map.
1867 * iconvdata/gconv.map: New file.
1868
1869 * elf/Makefile: Also check all iconv modules for text relocations.
1870
1871 * stdlib/Makefile: Remove code to automatically import GMP.
1872
1873 * elf/Makefile (tests): Add rules to build and run check-textrel.
1874 * elf/check-textrel.c: New file.
1875
1876 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
1877 directive.
1878
1879 2002-12-11 Jakub Jelinek <jakub@redhat.com>
1880
1881 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
1882 not st.st[am]time.
1883
1884 2002-04-30 Bruno Haible <bruno@clisp.org>
1885
1886 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
1887 the encoding if it already has slashes.
1888 Reported by Perry Rapp <prapp@erols.com>.
1889
1890 2002-12-11 Roland McGrath <roland@redhat.com>
1891
1892 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
1893 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
1894 Turn off PIC for compiling this file.
1895
1896 2002-12-11 Ulrich Drepper <drepper@redhat.com>
1897
1898 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
1899 definitions. Not needed.
1900 [_LIBC]: Use definitions from libc-lock.h instead of referencing
1901 pthread routines directly.
1902 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
1903 mutex_init calls.
1904 (arena_get2): Don't look at return value of mutex_lock.
1905
1906 2002-12-11 Roland McGrath <roland@redhat.com>
1907
1908 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
1909 elf-init.o instead of compiling a PIC version.
1910
1911 2002-12-11 Bruno Haible <bruno@clisp.org>
1912
1913 * intl/gettext.h: Renamed to ...
1914 * intl/gmo.h: ... here.
1915 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
1916 * intl/gettextP.h: Update.
1917 * intl/loadmsgcat.c: Update.
1918
1919 * intl/gettextP.h (PARAMS): Make more portable.
1920 (attribute_hidden): Define as empty macro if not already defined.
1921 * intl/hash-string.h (PARAMS): Make more portable.
1922 * intl/loadinfo.h (PARAMS): Likewise.
1923 * intl/plural-exp.h (PARAMS): Likewise.
1924 (attribute_hidden): Move definition near the definition of
1925 internal_function.
1926
1927 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
1928 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
1929
1930 2002-07-13 Bruno Haible <bruno@clisp.org>
1931
1932 * intl/dcigettext.c (freea): New macro.
1933 (FREE_BLOCKS): Free also the registered blocks.
1934 (DCIGETTEXT): Free the 'search' variable.
1935 Reported by Andreas Fischer <a.fischer@asentics.de>.
1936
1937 2002-04-27 Bruno Haible <bruno@clisp.org>
1938
1939 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
1940 * intl/dcigettext.c: Likewise.
1941 * intl/dcgettext.c: Likewise.
1942 * intl/dgettext.c: Likewise.
1943 * intl/gettext.c: Likewise.
1944 * intl/dcngettext.c: Likewise.
1945 * intl/dngettext.c: Likewise.
1946 * intl/ngettext.c: Likewise.
1947 * intl/textdomain.c: Likewise.
1948 * intl/bindtextdom.c: Likewise.
1949 * intl/plural-exp.h: Likewise.
1950
1951 2002-01-02 Bruno Haible <bruno@clisp.org>
1952
1953 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
1954
1955 2001-04-30 Bruno Haible <bruno@clisp.org>
1956
1957 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
1958 default macro definitions. Needed for mingw32.
1959
1960 2002-12-10 Ulrich Drepper <drepper@redhat.com>
1961
1962 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
1963 __builtin_constant_p to macro parameter.
1964
1965 * sysdeps/generic/sigpause.c: Define all functions as weak.
1966 * sysdeps/posix/sigpause.c: Likewise.
1967
1968 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
1969 type size_t.
1970
1971 2002-12-10 Jakub Jelinek <jakub@redhat.com>
1972
1973 * elf/tst-array1.c (preinit_array, init_array, fini_array):
1974 Explicitly align the array to sizeof (void *).
1975 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
1976
1977 * include/libc-symbols.h: Fix a comment typo.
1978
1979 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
1980 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
1981 Likewise.
1982 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
1983 Likewise.
1984 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
1985 (__libc_sigsuspend): Likewise.
1986 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
1987 (__libc_sigsuspend): Likewise.
1988 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
1989 (creat): New weak alias.
1990
1991 2002-12-10 Roland McGrath <roland@redhat.com>
1992
1993 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
1994 contributes a manual chapter.
1995 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
1996 around xref to it.
1997
1998 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
1999 and move contents to ...
2000 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
2001 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
2002 it instead of duplicating its contents.
2003 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
2004
2005 2002-12-09 Jakub Jelinek <jakub@redhat.com>
2006
2007 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
2008 defined.
2009 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
2010 function.
2011 (EXTRA_LD_ENVVARS): Use it.
2012 (DL_OSVERSION_INIT): Define.
2013 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
2014 dl-librecon.h.
2015 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
2016
2017 2002-12-10 Ulrich Drepper <drepper@redhat.com>
2018
2019 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
2020
2021 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
2022 call. It is not allowed to destroy pthread mutexes which are
2023 still in use even though it is safe for our implementations. If
2024 somebody still uses the descriptor it is a bug.
2025
2026 2002-12-09 Richard Henderson <rth@redhat.com>
2027
2028 * csu/abi-note.S: Use .p2align, not .align.
2029
2030 2002-12-09 Ulrich Drepper <drepper@redhat.com>
2031
2032 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
2033 __libc_select aliases.
2034
2035 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
2036 alias.
2037
2038 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
2039
2040 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
2041
2042 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
2043
2044 * sysdeps/unix/syscalls.list: Define __libc_select alias.
2045
2046 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
2047
2048 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
2049 __libc___xpg_sigpause aliases.
2050
2051 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
2052
2053 * misc/error.c: Remove use of USE_IN_LIBIO.
2054
2055 2002-12-08 Roland McGrath <roland@redhat.com>
2056
2057 * elf/Makefile (tests): Uncomment tst-array[123].
2058 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
2059 * csu/elf-init.c: New file.
2060 * csu/Makefile (routines, static-only-routines): Add elf-init.
2061 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
2062 and __libc_csu_fini in place of _fini.
2063 * sysdeps/arm/elf/start.S: Likewise.
2064 * sysdeps/cris/elf/start.S: Likewise.
2065 * sysdeps/hppa/elf/start.S: Likewise.
2066 * sysdeps/i386/elf/start.S: Likewise.
2067 * sysdeps/ia64/elf/start.S: Likewise.
2068 * sysdeps/m68k/elf/start.S: Likewise.
2069 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
2070 * sysdeps/mips/elf/start.S: Likewise.
2071 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
2072 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
2073 * sysdeps/s390/s390-32/elf/start.S: Likewise.
2074 * sysdeps/s390/s390-64/elf/start.S: Likewise.
2075 * sysdeps/sh/elf/start.S: Likewise.
2076 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
2077 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
2078 * sysdeps/x86_64/elf/start.S: Likewise.
2079
2080 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
2081 struct containing function ptr and value, free it.
2082 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
2083 It's not safe to let the new thread use the SIGEV pointer.
2084
2085 2001-10-20 Paul Eggert <eggert@twinsun.com>
2086
2087 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
2088 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
2089 Use strerror_r that is only a macro, even if it is not a function.
2090 (strerror): Check for HAVE_DECL_STRERROR before declaring.
2091 (private_strerror): Use prototypes, not old-style function definition.
2092 (print_errno_message): New function.
2093 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
2094 char*-flavored one.
2095 (error_tail, error, error_at_line): Use it.
2096
2097 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
2098
2099 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
2100
2101 2002-12-08 Ulrich Drepper <drepper@redhat.com>
2102
2103 * scripts/output-format.sed: Fix bug in one of the s expressions
2104 which used / for one too many things.
2105
2106 * include/unistd.h: Declare __libc_close.
2107
2108 2002-12-07 Ulrich Drepper <drepper@redhat.com>
2109
2110 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
2111
2112 2002-12-07 Roland McGrath <roland@redhat.com>
2113
2114 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
2115 from 2002-12-06, but remove unnecessary memset call without removing
2116 necessary copy of initialization image.
2117
2118 * Makerules ($(common-objpfx)format.lds): New target.
2119 (common-generated): Add it.
2120 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
2121 * scripts/output-format.sed: New file.
2122 * Makefile (distribute): Add it.
2123
2124 2002-12-07 Ulrich Drepper <drepper@redhat.com>
2125
2126 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
2127 Reported by Art Haas <ahaas@airmail.net>.
2128
2129 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
2130
2131 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
2132
2133 2002-12-07 Jakub Jelinek <jakub@redhat.com>
2134
2135 * string/test-strncpy.c (do_random_tests): Improve test coverage.
2136
2137 2002-12-06 Ulrich Drepper <drepper@redhat.com>
2138
2139 * test-skeleton.c (timeout_handler): Allow expected signal to be
2140 SIGALRM.
2141
2142 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
2143
2144 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
2145
2146 2002-12-07 Jakub Jelinek <jakub@redhat.com>
2147
2148 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
2149 (SYSCALL_ERROR_HANDLER): Fix a pasto.
2150 Reported by Jeff Bailey <jbailey@nisa.net>.
2151
2152 2002-12-06 Ulrich Drepper <drepper@redhat.com>
2153
2154 * sysdeps/generic/libc-tls.c: Undo last patch.
2155
2156 * include/wctype.h: Define iswalnum with libc_hidden_proto.
2157
2158 * include/signal.h: Define raise with libc_hidden_proto.
2159
2160 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
2161 __execve instead of snprintf and execve.
2162
2163 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
2164 again a bit.
2165
2166 2002-12-06 Jakub Jelinek <jakub@redhat.com>
2167
2168 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
2169 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
2170
2171 2002-12-06 Ulrich Drepper <drepper@redhat.com>
2172
2173 * misc/syslog.c (log_cleanup): New function.
2174 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
2175 (closelog): Likewise.
2176
2177 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
2178 * elf/dl-iteratephdr.c: Likewise.
2179 * elf/dl-lookup.c: Likewise.
2180 * elf/dl-misc.c: Likewise.
2181 * elf/dl-open.c: Likewise.
2182 * elf/dl-support.c: Likewise.
2183 * elf/rtld.c: Likewise.
2184 * sysdeps/generic/ldsodefs.h: Likewise.
2185 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
2186 * sysdeps/mach/bits/libc-lock.h: Likewise.
2187 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
2188
2189 2002-12-06 Roland McGrath <roland@redhat.com>
2190
2191 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
2192
2193 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
2194 (malloc_starter, memalign_starter, free_starter): Don't define these.
2195 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
2196 Don't declare them either.
2197 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
2198 __pthread_initialize, so no need to set hooks to *_starter.
2199 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
2200 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
2201 (__libc_malloc_pthread_startup): New function.
2202 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
2203
2204 * malloc/hooks.c (memalign_starter): New function.
2205 * malloc/malloc.c: Declare it.
2206 * malloc/arena.c (save_memalign_hook): New variable.
2207 (ptmalloc_init): Set __memalign_hook to memalign_starter.
2208
2209 * elf/dl-minimal.c (free): Clear the memory.
2210 (calloc): Just call malloc, knowing all memory it returns is cleared.
2211
2212 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
2213 malloc and memset; calloc can avoid the zeroing when redundant.
2214 (_dl_tls_setup): Likewise.
2215 * elf/dl-load.c (decompose_rpath): Likewise.
2216 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
2217 call, since memory from sbrk at startup is already zero.
2218
2219 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
2220 error string for failure, null for success. Update callers.
2221 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
2222 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2223
2224 2002-12-05 Jakub Jelinek <jakub@redhat.com>
2225
2226 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
2227 args to i:iipi.
2228 (readahead): Change args to i:iii.
2229 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
2230 Change args to i:iii.
2231 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
2232 args to i:iiii.
2233
2234 2002-12-05 Roland McGrath <roland@redhat.com>
2235
2236 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
2237 call all functions rather than none.
2238 Reported by Mark P. Mitchell <mark@codesourcery.com>.
2239
2240 2002-12-04 Roland McGrath <roland@redhat.com>
2241
2242 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
2243 on _nl_current_LC_* variables.
2244
2245 2002-12-05 Ulrich Drepper <drepper@redhat.com>
2246
2247 * dirent/bug-readdir1.c (main): Don't call closedir, just close
2248 the file descriptor. This is testing what the bug report was about.
2249
2250 2002-12-04 Ulrich Drepper <drepper@redhat.com>
2251
2252 * po/be.po: New file.
2253
2254 * argp/Makefile (tests): Add tst-argp1.
2255
2256 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
2257 Change type of _attribute to void*.
2258 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
2259 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
2260 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
2261 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
2262 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
2263
2264 2002-12-04 Roland McGrath <roland@redhat.com>
2265
2266 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
2267 members to the end, so a libpthread compiled with !USE_TLS will still
2268 find other members properly.
2269
2270 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
2271 operand for DEST memory. Fix dummy input operand to use SRC.
2272 Reported by Davin McCall <davmac@ozonline.com.au>.
2273
2274 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
2275 alignment when initializing the DTV entry.
2276
2277 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
2278 when TLS has not been set up, try to set it up if we can.
2279 * elf/tst-tls4.c: Revert last change.
2280 * elf/tst-tls5.c: Likewise.
2281 * elf/tst-tls6.c: Likewise.
2282 * elf/tst-tls7.c: Likewise.
2283 * elf/tst-tls8.c: Likewise.
2284 * elf/tst-tls9.c: Likewise.
2285
2286 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
2287 * sysdeps/generic/ldsodefs.h: Declare it.
2288 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
2289 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
2290 function, broken out of __libc_setup_tls.
2291 (init_static_tls): Likewise.
2292 (__libc_setup_tls): Call them.
2293 (_dl_tls_setup): New function, uses new subroutines.
2294
2295 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
2296 Clear the pointer when returning true.
2297 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
2298 first element of the slotinfo list too.
2299
2300 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
2301 [SHARED].
2302
2303 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
2304 (_dl_determine_tlsoffset): Likewise.
2305
2306 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
2307 startup_error_tsd, made global.
2308 (dl_main): Update initialization.
2309 * elf/dl-tsd.c: Likewise.
2310 * sysdeps/generic/ldsodefs.h: Declare it.
2311
2312 2002-12-03 Ulrich Drepper <drepper@redhat.com>
2313
2314 * manual/texinfo.tex: Update from latest upstream version.
2315
2316 2002-12-03 Roland McGrath <roland@redhat.com>
2317
2318 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
2319 area surplus in calculation for sbrk call.
2320
2321 * iconvdata/cp1125.c: New file.
2322 * iconvdata/Makefile (distribute): Add it.
2323 (modules): Add CP1125.
2324 (gen-8bit-gap-modules): Add cp1125.
2325 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
2326 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
2327
2328 2002-12-03 Andreas Jaeger <aj@suse.de>
2329
2330 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
2331
2332 2002-12-03 Ulrich Drepper <drepper@redhat.com>
2333
2334 * sysdeps/posix/system.c (do_system): Make signal handler
2335 installation thread safe.
2336
2337 2002-12-02 Roland McGrath <roland@redhat.com>
2338
2339 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
2340 caller from EXTRA to -.
2341 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2342 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2343 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2344
2345 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
2346
2347 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
2348 bits of RM are cleared.
2349
2350 2002-12-02 Roland McGrath <roland@redhat.com>
2351
2352 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
2353 TLS setup is required.
2354 * elf/tst-tls5.c: Likewise.
2355 * elf/tst-tls6.c: Likewise.
2356 * elf/tst-tls7.c: Likewise.
2357 * elf/tst-tls8.c: Likewise.
2358 * elf/tst-tls9.c: Likewise.
2359
2360 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
2361 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
2362 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
2363 for being null before calling free_slotinfo.
2364 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
2365 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
2366
2367 2002-11-30 Bruno Haible <bruno@clisp.org>
2368
2369 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
2370 (struct __gconv_step): New field __btowc_fct.
2371 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
2372 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
2373 __BUILTIN_TRANS.
2374 (__gconv_btwoc_ascii): New declaration.
2375 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
2376 (__gconv_btwoc_ascii): New function.
2377 * iconv/gconv_builtin.h: Add BtowcFct argument to all
2378 BUILTIN_TRANSFORMATION invocations.
2379 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
2380 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
2381 * iconv/gconv_builtin.c (map): New field btowc_fct.
2382 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
2383 btowc_fct field.
2384 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
2385 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
2386 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
2387 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
2388 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
2389 (gconv_init): Initialize __btowc_fct field.
2390 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
2391 * iconv/loop.c: Document ONEBYTE_BODY.
2392 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
2393 Undefine ONEBYTE_BODY at the end.
2394 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
2395 * iconvdata/8bit-gap.c (NONNUL): New macro.
2396 (BODY for FROM_LOOP): Use it.
2397 (ONEBYTE_BODY): New macro.
2398 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
2399 (NONNUL): New macro.
2400 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
2401 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
2402 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
2403 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
2404 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
2405 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
2406 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
2407 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
2408 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
2409 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
2410 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
2411 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
2412 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
2413 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
2414 * iconvdata/ibm932.c: Include <stdbool.h>.
2415 (TRUE, FALSE): Remove macros.
2416 (BODY for FROM_LOOP): Remove unused variable rp1.
2417 (ONEBYTE_BODY): New macro.
2418 (BODY for TO_LOOP): Use bool.
2419 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
2420 * iconvdata/ibm943.c: Include <stdbool.h>.
2421 (TRUE, FALSE): Remove macros.
2422 (BODY for FROM_LOOP): Remove unused variable rp1.
2423 (ONEBYTE_BODY): New macro.
2424 (BODY for TO_LOOP): Use bool.
2425 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
2426 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
2427 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
2428 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
2429 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
2430 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
2431 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
2432 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
2433 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
2434 * iconvdata/gbbig5.c: Tweak comment.
2435
2436 2002-12-02 Ulrich Drepper <drepper@redhat.com>
2437
2438 * po/fi.po: Update from translation team.
2439
2440 2002-12-01 Roland McGrath <roland@redhat.com>
2441
2442 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
2443 testing getdents64 return value.
2444
2445 * scripts/versions.awk: Don't pass -n flag to sort command.
2446
2447 * posix/bug-regex13.c: Include <string.h>.
2448
2449 * sysdeps/generic/libc-start.c (__libc_start_main): Do
2450 DL_SYSDEP_OSCHECK here.
2451 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
2452 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
2453
2454 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
2455 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
2456
2457 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
2458 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
2459
2460 * include/link.h: Comment typo fix.
2461
2462 2002-12-01 Roland McGrath <roland@frob.com>
2463
2464 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
2465 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
2466 _POSIX_MEMORY_PROTECTION): Likewise.
2467 (_POSIX_POLL, _POSIX_SELECT): Removed.
2468
2469 2002-11-28 Ulrich Drepper <drepper@redhat.com>
2470
2471 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
2472 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
2473
2474 2002-11-28 Jakub Jelinek <jakub@redhat.com>
2475
2476 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
2477 USE___THREAD.
2478 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
2479 "=v" constraints.
2480
2481 2002-11-28 Ulrich Drepper <drepper@redhat.com>
2482
2483 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
2484 branch prediction buffers by using unpaired call/ret.
2485
2486 2002-11-27 Ulrich Drepper <drepper@redhat.com>
2487
2488 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
2489 first parameters constraint string.
2490 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
2491
2492 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
2493
2494 * posix/regcomp.c (parse_expression): Set the bit since the back
2495 reference is used in the regular expression.
2496 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
2497 of malloc failure.
2498 (re_node_set_init_copy): Likewise.
2499 * posix/regex_internal.h (state_array_t): New structure.
2500 (re_sub_match_last_t): Likewise.
2501 (re_sub_match_top_t): Likewise.
2502 (re_match_context_t): Add new members.
2503 (re_dfa_t): Likewise.
2504 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
2505 to check the matching is really correct, and retry if failed.
2506 Move the routin pruning the impossible nodes from here, ...
2507 (prune_impossible_nodes): To this function.
2508 (check_matching): Invoke check_subexp_matching_top, and replace
2509 redundant checking with transit_state_bkref invocation.
2510 (proceed_next_node): Replace strncmp with memcmp. Reported by
2511 Paolo Bonzini <bonzini@gnu.org>.
2512 (update_cur_sifted_state): Remove search_subexp invocation.
2513 (search_subexp): Remove this function.
2514 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
2515 optimization.
2516 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
2517 Remove unused invocation of match_ctx_add_entry.
2518 (transit_state): Invoke check_subexp_matching_top.
2519 (check_subexp_matching_top): New function.
2520 (transit_state_bkref): Remove unused array.
2521 Merge transit_state_bkref_loop.
2522 (transit_state_bkref_loop): Use get_subexp instead of
2523 sift_states_backward. Use search_cur_bkref_entry for optimization.
2524 Merge this function to transit_state_bkref.
2525 (get_subexp): New function.
2526 (get_subexp_sub): Likewise.
2527 (find_subexp_node): Likewise.
2528 (check_arrival): Likewise.
2529 (check_arrival_expand_ecl): Likewise.
2530 (check_arrival_expand_ecl_sub): Likewise.
2531 (expand_bkref_cache): Likewise.
2532 (match_ctx_init): Initialize new members.
2533 (match_ctx_clean): New function.
2534 (match_ctx_free): Release new members.
2535 (match_ctx_free_subtops): New function.
2536 (match_ctx_add_entry): Fix indent.
2537 (search_cur_bkref_entry): New function.
2538 (match_ctx_add_subtop): Likewise.
2539 (match_ctx_add_sublast): Likewise.
2540
2541 2002-11-25 Ulrich Drepper <drepper@redhat.com>
2542
2543 * iconv/Makefile (tests): Remove tst-iconv4.c
2544 * iconv/tst-iconv4.c: Moved to...
2545 * iconvdata/tst-iconv4.c: ...here. New file.
2546 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
2547
2548 2002-11-25 Roland McGrath <roland@redhat.com>
2549
2550 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
2551 Grok AF_LINK if defined.
2552 From Momchil Velikov <velco@fadata.bg>.
2553
2554 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
2555 brdaddr, or dstaddr, just set those pointers to null and don't fail.
2556 Reported by Momchil Velikov <velco@fadata.bg>.
2557
2558 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
2559 is > sizeof IFR->ifa_addr, advance past the whole longer length.
2560 (__ifreq): Count up NIFS that way too.
2561 Reported by Momchil Velikov <velco@fadata.bg>.
2562
2563 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
2564
2565 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
2566 and <fpu_control.h>.
2567
2568 2002-11-24 Ulrich Drepper <drepper@redhat.com>
2569
2570 * elf/elf.h (EM_ST19): Fix typo.
2571
2572 2002-11-25 Jakub Jelinek <jakub@redhat.com>
2573
2574 * include/errno.h (__set_errno): Define as errno = val
2575 unconditionally.
2576
2577 2002-11-24 Roland McGrath <roland@redhat.com>
2578
2579 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
2580 * sysdeps/posix/writev.c: Likewise.
2581 From Momchil Velikov <velco@fadata.bg>.
2582
2583 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
2584 calling *GL(dl_error_catch_tsd) for a thread-local location.
2585 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
2586 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
2587 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
2588
2589 * libio/iofflush.c: Add libc_hidden_def.
2590 * libio/iofwrite.c: Likewise.
2591 * sysdeps/generic/sigtimedwait.c: Likewise.
2592 * sysdeps/generic/sigwaitinfo.c: Likewise.
2593 * sysdeps/posix/sigwait.c: Likewise.
2594 Reported by Momchil Velikov <velco@fadata.bg>.
2595
2596 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
2597 to match <arpa/inet.h> declaration.
2598 * inet/inet_netof.c (inet_netof): Likewise.
2599 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
2600 Reported by Momchil Velikov <velco@fadata.bg>.
2601
2602 * configure.in: Skip AUTOCONF check under --without-cvs.
2603 * configure: Regenerated.
2604
2605 * posix/Makefile (headers): Add bits/pthreadtypes.h.
2606 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
2607 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
2608
2609 2002-11-24 Andreas Schwab <schwab@suse.de>
2610
2611 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
2612 with six arguments.
2613
2614 2002-11-19 Jim Meyering <jim@meyering.net>
2615
2616 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
2617 as `static'.
2618 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
2619
2620 2002-11-23 Roland McGrath <roland@redhat.com>
2621
2622 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
2623 Just produce hex output for datum sizes.
2624
2625 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
2626 Reported by Luca Barbieri <ldb@ldb.ods.org>.
2627
2628 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
2629
2630 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
2631 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
2632 and __unused3 fields.
2633 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
2634 [__WORDSIZE == 32]: Only PPC32 requires __unused1
2635 and __unused2 fields.
2636 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
2637 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
2638 __unused3, and __unused4 fields.
2639
2640 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
2641 obtain lowest address for profiling in __monstartup call.
2642
2643 2002-11-21 Roland McGrath <roland@redhat.com>
2644
2645 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
2646 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
2647
2648 * locale/localeinfo.h (struct locale_data): Revert last change.
2649
2650 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
2651 From Ian Wienand <ianw@gelato.unsw.edu.au>.
2652
2653 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
2654 __NR_pread64 if not defined.
2655 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
2656 From Ian Wienand <ianw@gelato.unsw.edu.au>.
2657
2658 2002-11-21 Roland McGrath <roland@frob.com>
2659
2660 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
2661 __libc_multiple_libcs here. Call __setfpucw.
2662
2663 2002-11-21 Ulrich Drepper <drepper@redhat.com>
2664
2665 * elf/Makefile (tests): Don't run test-arrayX tests for now.
2666
2667 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
2668 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
2669 CLONE_CHILD_*TID flags.
2670
2671 2002-11-20 Andreas Jaeger <aj@suse.de>
2672
2673 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
2674 We pass struct ucontext on x86-64.
2675 (GET_PC): Adjust.
2676 (GET_FRAME): Adjust.
2677 (GET_STACK): Adjust.
2678
2679 2002-11-20 Roland McGrath <roland@redhat.com>
2680
2681 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
2682 conditionalize [! DO_VERSIONING] #error.
2683
2684 * scripts/abilist.awk: Grok function descriptor symbols.
2685
2686 * intl/tst-gettext.c (main): Check return values from setlocale.
2687 Add necessary unsetenv's to make LANG=existing-locale check work.
2688
2689 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
2690 so aborted prior runs don't confuse things.
2691
2692 * locale/localeinfo.h (struct locale_data: union locale_data_value):
2693 Use uintptr_t instead of unsigned int for `word' member.
2694 (_NL_CURRENT_WORD): Cast to uint32_t.
2695
2696 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
2697 value.
2698
2699 2002-11-20 Ulrich Drepper <drepper@redhat.com>
2700
2701 * elf/tls-macros.h: Add IA-64 definitions.
2702 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
2703
2704 * iconv/Makefile (tests): Add tst-iconv4.
2705 * iconv/tst-iconv4.c: New file.
2706
2707 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
2708 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
2709 __GCONV_INCOMPLETE_INPUT.
2710 (ucs4le_internal_loop): Likewise.
2711 (ucs4le_internal_loop_unaligned): Likewise.
2712 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
2713 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
2714 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
2715
2716 * iconv/loop.c (LOOPFCT): First test for empty input then for full
2717 output buffer.
2718
2719 * inet/getnameinfo.c: Use extend_alloca where appropriate.
2720 * sysdeps/posix/getaddrinfo.c: Likewise.
2721
2722 * include/alloca.h (extend_alloca): New define. Based on stack
2723 direction it'll try to append to the previouls allocated buffer.
2724
2725 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
2726
2727 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
2728 use the same service for AF_INET and AF_INET6.
2729
2730 2002-11-19 Ulrich Drepper <drepper@redhat.com>
2731
2732 * intl/localealias.c (read_alias_file): Use only about 400 bytes
2733 of stack space instead of 16k.
2734
2735 2002-11-18 Wolfram Gloger <wg@malloc.de>
2736
2737 * malloc/arena.c
2738 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
2739 nothing if not initialized. Bug report from Marcus Brinkmann
2740 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
2741
2742 2002-11-19 Roland McGrath <roland@redhat.com>
2743
2744 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
2745 sched_setaffinity.
2746
2747 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
2748 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
2749 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
2750 * configure: Regenerated.
2751
2752 2002-11-19 Ulrich Drepper <drepper@redhat.com>
2753
2754 * include/dlfcn.h: __libc_dlopen is now a macro calling
2755 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
2756 (__libc_dlopen_mode): New prototype.
2757 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
2758 new parameter. Store new parameter in mode field of structure passed
2759 to do_dlopen.
2760 (struct do_dlopen_args): Add new field mode.
2761 (do_dlopen): Pass mode from parameter structure to _dl_open.
2762
2763 2002-11-11 Randolf Chung <tausq@debian.org>
2764
2765 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
2766 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
2767 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
2768
2769 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
2770
2771 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
2772 Set -mdisable-fpregs for this file.
2773
2774 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
2775
2776 * sysdeps/unix/sysv/linux/configure.in:
2777 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
2778 from gcc-3.0 era for backwards compatibility.
2779 * sysdeps/unix/sysv/linux/configure: Regenerate.
2780
2781 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
2782 Define mcontext_t as a sigcontext.
2783
2784 2002-11-18 Roland McGrath <roland@redhat.com>
2785
2786 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
2787 Free memory in `last_result' if it was used.
2788
2789 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
2790 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
2791 Do the parsing inline instead of copying strings and calling
2792 inet_network, and properly skip all alias names not matching the form.
2793
2794 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
2795
2796 2002-11-17 Ulrich Drepper <drepper@redhat.com>
2797
2798 * manual/pattern.texi (Wordexp Example): Fix sample code.
2799
2800 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
2801 childs stack which will be loaded into the %esi register.
2802
2803 2002-11-14 Paul Eggert <eggert@twinsun.com>
2804
2805 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
2806 overflow when skipping the question part and when unpacking aliases.
2807
2808 2002-11-15 Roland McGrath <roland@redhat.com>
2809
2810 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
2811 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
2812 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
2813
2814 2002-11-15 Jakub Jelinek <jakub@redhat.com>
2815
2816 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
2817 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
2818
2819 2002-11-15 Roland McGrath <roland@redhat.com>
2820
2821 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
2822 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
2823 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
2824 (+make-include-of-dep): New canned sequence.
2825
2826 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
2827 From Dmitry V. Levin <ldv@altlinux.org>.
2828
2829 2002-11-14 Roland McGrath <roland@redhat.com>
2830
2831 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
2832 * inet/herrno.c (__libc_h_errno): Likewise.
2833 * resolv/res_libc.c (__libc_res): Likewise.
2834 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
2835 (__res_state) [! USE___THREAD]: Don't define as weak.
2836 * csu/Versions: Revert last change.
2837 * resolv/Versions: Revert last change.
2838
2839 * Makerules ($(common-objpfx)%.make): New pattern rule.
2840 * tls.make.c: New file.
2841 * Makefile (distribute): Add it.
2842
2843 * sysdeps/generic/errno.c [! USE___THREAD]
2844 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
2845 with compat_symbol so they are not link-time visible.
2846 [! USE___THREAD] (__libc_errno): New alias for errno.
2847 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
2848 Add __libc_errno here.
2849 * inet/herrno.c [USE___THREAD]: Use this conditional
2850 in place of [USE_TLS && HAVE___THREAD].
2851 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
2852 (h_errno, _h_errno): Declare these with compat_symbol so they are not
2853 link-time visible.
2854 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
2855 * resolv/res_libc.c [! USE___THREAD]
2856 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
2857 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
2858 (__libc_res): Define as alias for _res.
2859 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
2860 Add __libc_h_errno and __libc_res here.
2861
2862 2002-11-14 Jakub Jelinek <jakub@redhat.com>
2863
2864 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
2865 * resolv/Versions (h_errno, _res): Likewise.
2866
2867 2002-11-14 Roland McGrath <roland@redhat.com>
2868
2869 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
2870 (%.symlist): Likewise.
2871
2872 2002-11-13 Roland McGrath <roland@redhat.com>
2873
2874 * scripts/abilist.awk: New file.
2875 * Makefile (distribute): Add it.
2876 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
2877 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
2878 [$(subdir) = elf] (tests): Depend on libc.symlist.
2879 (generated, common-generated): Add those files.
2880
2881 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
2882 * configure: Regenerated.
2883 * config.make.in (OBJDUMP): New variable, substituted by configure.
2884
2885 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
2886 (mallochook, reallochook): Set them up.
2887 (checkhdr): Check HDR->magic2 value.
2888 (freehook): Reset HDR->magic2.
2889 (memalignhook): New static function.
2890 (old_memalign_hook): New static variable.
2891 (mcheck, reallochook): Set __memalign_hook to memalignhook.
2892
2893 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
2894 for the new TCB.
2895
2896 2002-11-13 Andreas Jaeger <aj@suse.de>
2897
2898 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
2899 attribute.
2900 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
2901
2902 2002-11-11 Paul Eggert <eggert@twinsun.com>
2903
2904 * manual/crypt.texi (Cryptographic Functions): Mention that
2905 the MD5 one-way algorithm is compatible with BSD's.
2906
2907 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
2908
2909 * posix/regex_internal.c (re_string_skip_chars): Also return the last
2910 wide character.
2911 (re_string_reconstruct): Calculate the context by itself when the
2912 offset points out of the valid range.
2913 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
2914 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
2915 (IS_WIDE_WORD_CHAR): New macro.
2916 (IS_WIDE_NEWLINE): New macro.
2917
2918 2002-11-12 Andreas Jaeger <aj@suse.de>
2919
2920 * sysdeps/x86_64/strchr.S: Don't use one register for two
2921 purposes, this fixes a bug noticed by test-strchr.c.
2922
2923 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
2924 correctly.
2925
2926 2002-11-12 Roland McGrath <roland@redhat.com>
2927
2928 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
2929 (_G_IO_NO_BACKWARD_COMPAT): Define it.
2930
2931 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
2932 instead of <pt-machine.h>.
2933 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
2934 testandset.
2935 From Ian Wienand <ianw@gelato.unsw.edu.au>.
2936
2937 2002-11-10 Roland McGrath <roland@redhat.com>
2938
2939 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
2940 Call fputs instead of fwprintf (simpler to follow in debugger).
2941
2942 * crypt/md5-crypt.c: Doc fix.
2943
2944 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
2945 the beginning of generated target commands.
2946
2947 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
2948 dependencies for these in case implicit rule search skipped the
2949 nonexistent source directory.
2950 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
2951 files with $(object-suffixes) as targets too.
2952 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
2953 and a target for it using $(make-target-directory).
2954
2955 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
2956
2957 2002-11-10 Roland McGrath <roland@frob.com>
2958
2959 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
2960 * sysdeps/generic/bits/pthreadtypes.h: ... here.
2961
2962 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
2963 l_start == 0 and l_len == 1 as we do l_len == 0.
2964
2965 2002-11-10 Ulrich Drepper <drepper@redhat.com>
2966
2967 * po/da.po: Update from translation team.
2968
2969 2002-11-10 Roland McGrath <roland@redhat.com>
2970
2971 * config.make.in (includedir): New variable, substituted by configure.
2972 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
2973 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
2974
2975 2002-11-10 Andreas Jaeger <aj@suse.de>
2976
2977 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
2978 REG_OLDMASK and REG_CR2 to synch with kernel header.
2979 (NGREG): Increase.
2980
2981 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
2982 aliasing problem.
2983 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
2984 * nss/getnssent_r.c (__nss_getent_r): Likewise.
2985 (__nss_setent): Likewise.
2986 (__nss_getent_r): Likewise.
2987 * inet/getnetgrent_r.c (innetgr): Likewise.
2988 (__internal_setnetgrent_reuse): Likewise.
2989 (internal_getnetgrent_r): Likewise.
2990 * inet/ether_hton.c (ether_hostton): Likewise.
2991 * inet/ether_ntoh.c (ether_ntohost): Likewise.
2992 * sunrpc/netname.c (netname2user): Likewise.
2993 * sunrpc/publickey.c (getpublickey): Likewise.
2994 (getsecretkey): Likewise.
2995
2996 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
2997
2998 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
2999 error in range calculation.
3000
3001 2002-10-09 Jakub Jelinek <jakub@redhat.com>
3002
3003 * string/test-strspn.c (do_test): Ensure zero termination.
3004 * string/test-strpbrk.c (do_test): Likewise.
3005 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
3006 * string/test-strncpy.c (stupid_strncpy): Likewise.
3007 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
3008
3009 2002-10-08 Roland McGrath <roland@redhat.com>
3010
3011 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
3012 nonzero characters.
3013
3014 2002-09-22 H.J. Lu <hjl@gnu.org>
3015
3016 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
3017 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
3018 only if __NR_mmap2 is defined.
3019
3020 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
3021 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
3022 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
3023 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
3024
3025 2002-11-08 Jakub Jelinek <jakub@redhat.com>
3026
3027 * posix/bug-regex13.c (tests): Add new test.
3028
3029 * string/test-strchr.c (stupid_strchr): New function.
3030 (do_random_tests): Make sure the string is zero terminated.
3031 * string/test-strpbrk.c (stupid_strpbrk): New function.
3032 (do_random_tests): Make sure the string is zero terminated.
3033 * string/test-strcmp.c (stupid_strcmp): New function.
3034 (do_random_tests): Make sure the strings are zero terminated.
3035 * string/test-strspn.c (stupid_strspn): New function.
3036 (simple_strspn): Rename rej argument to acc.
3037 (do_random_tests): Make sure the string is zero terminated.
3038 * string/test-strcspn.c (stupid_strcspn): New function.
3039 * string/test-strncpy.c (stupid_strncpy): New function.
3040 * string/test-stpncpy.c (stupid_stpncpy): New function.
3041 * string/test-strncmp.c (stupid_strncmp): New function.
3042 (do_random_tests): Make sure the strings are zero terminated.
3043 * string/test-string.h (impl_t): Change test into long.
3044 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
3045
3046 2002-11-08 Roland McGrath <roland@redhat.com>
3047
3048 * sysdeps/ia64/elf/configure.in: Add TLS check.
3049 From Ian Wienand <ianw@cse.unsw.edu.au>.
3050 * sysdeps/ia64/elf/configure: Regenerated.
3051
3052 2002-11-07 Roland McGrath <roland@redhat.com>
3053
3054 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
3055 place of _IO_new_do_write.
3056 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
3057 #undef before versioned_symbol use.
3058
3059 2002-11-07 Richard Henderson <rth@redhat.com>
3060
3061 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
3062 * configure: Regenerated.
3063 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
3064 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
3065 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
3066 _dl_fini via gp-relative relocations.
3067 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
3068
3069 * elf/tls-macros.h: Add alpha versions.
3070 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
3071 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
3072 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
3073 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
3074 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
3075 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
3076 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
3077 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
3078 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
3079 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
3080 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
3081 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
3082 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
3083 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
3084 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
3085 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
3086 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
3087 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
3088
3089 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
3090 Kill argument registers across the inline syscall.
3091
3092 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
3093
3094 * linuxthreads/sysdeps/alpha/tls.h: New file.
3095 * sysdeps/alpha/dl-tls.h: New file.
3096
3097 2002-10-29 David Mosberger <davidm@hpl.hp.com>
3098
3099 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
3100 (gmon_initializer): New function.
3101 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
3102 __gmon_start__ here. Call it from gmon_initializer() instead.
3103
3104 2002-03-12 H.J. Lu <hjl@gnu.org>
3105
3106 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
3107 tst-array2, and tst-array3.
3108 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
3109 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
3110 ($(objpfx)tst-array1.out): New target.
3111 ($(objpfx)tst-array2): Likewise.
3112 ($(objpfx)tst-array2.out): Likewise.
3113 ($(objpfx)tst-array3.out): Likewise.
3114 * elf/tst-array1.c: New file.
3115 * elf/tst-array1.exp: Likewise.
3116 * elf/tst-array2.c: Likewise.
3117 * elf/tst-array2dep.c: Likewise.
3118 * elf/tst-array2.exp: Likewise.
3119 * elf/tst-array3.c: Likewise.
3120
3121 2002-10-28 David Mosberger <davidm@hpl.hp.com>
3122
3123 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
3124 Don't add L->l_addr to array entry values.
3125
3126 2002-11-07 Jakub Jelinek <jakub@redhat.com>
3127
3128 * string/test-string.h: New file.
3129 * string/test-strlen.c: New file.
3130 * string/test-string.h: New file.
3131 * string/test-strcmp.c: New file.
3132 * string/test-strchr.c: New file.
3133 * string/test-strrchr.c: New file.
3134 * string/test-strcpy.c: New file.
3135 * string/test-stpcpy.c: New file.
3136 * string/test-strncpy.c: New file.
3137 * string/test-stpncpy.c: New file.
3138 * string/test-strpbrk.c: New file.
3139 * string/test-strcspn.c: New file.
3140 * string/test-strspn.c: New file.
3141 * string/test-strcat.c: New file.
3142 * string/test-strncmp.c: New file.
3143 * string/test-memchr.c: New file.
3144 * string/test-memcmp.c: New file.
3145 * string/test-memset.c: New file.
3146 * string/test-memcpy.c: New file.
3147 * string/test-mempcpy.c: New file.
3148 * string/test-memmove.c: New file.
3149 * string/Makefile (strop-tests): New variable.
3150 (tests): Add strop-tests.
3151 (distribute): Add test-string.h.
3152
3153 2002-11-06 Ulrich Drepper <drepper@redhat.com>
3154
3155 * posix/regcomp.c: Use tabs instead of spaces.
3156 * posix/regexec.c: Likewise.
3157 * posix/regex_internal.h: Likewise.
3158
3159 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
3160
3161 2002-11-06 Jakub Jelinek <jakub@redhat.com>
3162
3163 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
3164 here.
3165 (regcomp): Don't set can_be_null here.
3166 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
3167 (re_compile_internal): Clear can_be_null, set regs_allocated.
3168
3169 * posix/regcomp.c (re_set_fastmap): New function.
3170 (re_compile_fastmap_iter): Use it. Remove redundant type ==
3171 COMPLEX_BRACKET check.
3172 * posix/regexec.c (re_search_internal): Optimize searching with
3173 fastmap. Call re_string_reconstruct even if match_first is
3174 smaller than raw_mbs_idx.
3175
3176 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
3177
3178 * posix/regcomp (free_dfa_content): Use free_state.
3179 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
3180 pointers in case that realloc failed.
3181 (re_node_set_merge): Likewise.
3182 (register_state): Likewise.
3183 (create_newstate_common): Invoke memory release functions in case of
3184 error conditions.
3185 (create_ci_newstate): Likewise.
3186 (create_cd_newstate): Likewise.
3187 (free_state): New function.
3188 * posix/regexec.c (re_search_internal): Invoke memory release
3189 functions in case of error conditions.
3190 (sift_states_backward): Likewise.
3191 (merge_state_array): Likewise.
3192 (add_epsilon_src_nodes): Likewise.
3193 (sub_epsilon_src_nodes): Likewise.
3194 (search_subexp): Likewise.
3195 (sift_states_bkref): Likewise.
3196 (transit_state_sb): Likewise.
3197 (transit_state_mb): Likewise.
3198 (transit_state_bkref_loop): Likewise.
3199 (group_nodes_into_DFAstates): Likewise.
3200 (push_fail_stack): Don't edit pointers in case that realloc failed.
3201 (extend_buffers): Likewise.
3202 (match_ctx_add_entry): Likewise.
3203
3204 2002-11-06 Roland McGrath <roland@redhat.com>
3205
3206 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
3207 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
3208
3209 * configure.in: Add checks on as and ld for binutils 2.13 or later.
3210 * configure: Regenerated.
3211
3212 2002-11-06 Ulrich Drepper <drepper@redhat.com>
3213
3214 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
3215 If re_compile_internal failed free fastmap buffer.
3216 (free_dfa_content): Broken out of regfree function. Frees all dfa
3217 related data.
3218 (regfree): Add free_dfa_content.
3219 (re_compile_internal): If any of the called functions fails free
3220 all dfa related memory.
3221
3222 2002-11-05 Ulrich Drepper <drepper@redhat.com>
3223
3224 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
3225 warnings from the kernel headers.
3226
3227 2002-11-05 Roland McGrath <roland@redhat.com>
3228
3229 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
3230 From Johannes Stezenbach <js@convergence.de>.
3231
3232 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
3233 #errlist-compat magic comment to give 123 as size.
3234 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
3235 (libc: GLIBC_2.2): ... here.
3236 (libc: GLIBC_2.3): Likewise.
3237
3238 2002-11-05 Ulrich Drepper <drepper@redhat.com>
3239
3240 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
3241 which happens at the beginning so that we can unload modules in
3242 __libc_freeres.
3243
3244 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3245
3246 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
3247 under [__USE_MISC || _ASM].
3248
3249 * elf/elf.h: Remove the obsolete SH TLS relocations.
3250
3251 2002-11-05 Ulrich Drepper <drepper@redhat.com>
3252
3253 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
3254
3255 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3256
3257 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
3258 __NR_pread64 and __NR_pwrite64.
3259 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
3260 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
3261 and __NR_pwrite64.
3262 Revert change to use INLINE_SYSCALL.
3263 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
3264 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
3265 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
3266 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
3267 INLINE_SYSCALL.
3268 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
3269
3270 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
3271 Update clobber list and add a comment about the syscall ABI.
3272
3273 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
3274 s_pwrite64, s_ftruncate, s_truncate): Re-add.
3275
3276 2002-11-05 Jakub Jelinek <jakub@redhat.com>
3277
3278 * iconv/gconv_dl.c (free_mem): Clear loaded.
3279 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
3280 cleanup if any.
3281
3282 2002-11-05 Ulrich Drepper <drepper@redhat.com>
3283
3284 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
3285
3286 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
3287 as old code without locking. _IO_seekoff calls this function after
3288 locking the stream.
3289 * libio/ioseekpos.c: Likewise for _IO_seekpos.
3290 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
3291 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
3292 prototypes.
3293 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
3294 of _IO_seekoff_internal.
3295 (_IO_rewind): Likewise.
3296 * libio/ioftell.c: Likewise.
3297 * libio/ftello.c: Likewise.
3298 * libio/ftello64.c: Likewise.
3299 * libio/iofgetpos.c: Likewise.
3300 * libio/iofgetpos64.c: Likewise.
3301 * libio/oldiofgetpos.c: Likewise.
3302 * libio/oldiofgetpos64.c: Likewise.
3303 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
3304 _IO_seekpos_internal.
3305 * libio/iofsetpos64.c: Likewise.
3306 * libio/oldiofsetpos.c: Likewise.
3307 * libio/oldiofsetpos64.c: Likewise.
3308
3309 2002-11-04 Roland McGrath <roland@redhat.com>
3310
3311 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
3312 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
3313 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
3314 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
3315 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
3316 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
3317 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
3318 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
3319 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
3320 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
3321 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
3322 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
3323 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
3324 Remove these, no longer used.
3325
3326 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3327
3328 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
3329 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
3330 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
3331 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
3332 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
3333 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
3334 syscall stubs.
3335
3336 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
3337 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
3338 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
3339 and __NR_pread.
3340 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
3341 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
3342 and __NR_pwrite.
3343 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
3344
3345 2002-11-03 Roland McGrath <roland@redhat.com>
3346
3347 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
3348 `_dl_tls_static_used'.
3349 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
3350 (__libc_setup_tls): Initialize it. Let the initial value of
3351 _dl_tls_static_size indicate some surplus space in the computed value.
3352 * elf/dl-open.c (_dl_tls_static_size): New variable.
3353 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
3354 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
3355 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
3356 (CHECK_STATIC_TLS): Use it.
3357 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
3358 closed objects occupied a trailing contiguous chunk of static TLS area.
3359
3360 2002-10-18 Bruno Haible <bruno@clisp.org>
3361
3362 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
3363
3364 2002-11-04 Ulrich Drepper <drepper@redhat.com>
3365
3366 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
3367 _wide_data->_IO_read_end if adjustment can be made in the current
3368 buffer.
3369
3370 * sysdeps/unix/sysv/linux/fexecve.c: New file.
3371
3372 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
3373 wide oriented streams are used.
3374
3375 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
3376 service hasn't been used [PR libc/4744].
3377
3378 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
3379 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
3380
3381 * manual/examples/dir.c: Don't include <stddef.h>.
3382 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
3383 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
3384
3385 2002-11-02 H.J. Lu <hjl@gnu.org>
3386
3387 * stdio-common/reg-printf.c: Include <stddef.h>.
3388
3389 2002-11-03 Ulrich Drepper <drepper@redhat.com>
3390
3391 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
3392
3393 * po/ca.po: Update from translation team.
3394 * po/es.po: Likewise.
3395
3396 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
3397 is defined write out memory map.
3398 * sysdeps/unix/sysv/linux/segfault.c: New file.
3399
3400 2002-11-02 Roland McGrath <roland@redhat.com>
3401
3402 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
3403 pointers that can alias.
3404 Reported by Daniel Jacobowitz <drow@mvista.com>.
3405
3406 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
3407
3408 2002-11-02 Roland McGrath <roland@redhat.com>
3409
3410 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
3411 description to be clearer and to say that *RESULT is set to ENTRY.
3412
3413 2002-10-30 Jakub Jelinek <jakub@redhat.com>
3414
3415 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
3416 dests_ch arrays together. Alloca or malloc dest_states,
3417 dest_states_word and dest_states_nl arrays together. Free memory on
3418 error exit.
3419
3420 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
3421
3422 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
3423 and current_saltbits.
3424
3425 2002-11-02 Roland McGrath <roland@redhat.com>
3426
3427 * stdio-common/reg-printf.c: Include <stdlib.h>.
3428
3429 2002-11-02 H.J. Lu <hjl@gnu.org>
3430
3431 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
3432 caller to EXTRA instead of execve.
3433
3434 2002-11-01 Roland McGrath <roland@redhat.com>
3435
3436 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
3437 in place of [!(USE_TLS && HAVE___THREAD)].
3438 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
3439
3440 2002-10-31 Roger Sayle <roger@eyesopen.com>
3441
3442 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
3443 New macros.
3444 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
3445
3446 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
3447 without defining FP_ROUNDMODE.
3448
3449 2002-10-29 Jakub Jelinek <jakub@redhat.com>
3450
3451 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
3452 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
3453 declare_symbol.
3454 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
3455 (OLD_SIGLIST_SIZE): Define.
3456 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
3457 (OLD_SIGLIST_SIZE): Define.
3458 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
3459
3460 2002-11-01 Jakub Jelinek <jakub@redhat.com>
3461
3462 * sysdeps/ia64/strncpy.S: Fix recovery code.
3463
3464 2002-10-30 Jakub Jelinek <jakub@redhat.com>
3465
3466 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
3467 New macros.
3468 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
3469 text_set_element.
3470 * elf/dl-libc.c (free_mem): Likewise.
3471 * iconv/gconv_conf.c (free_mem): Likewise.
3472 * iconv/gconv_db.c (free_mem): Likewise.
3473 * iconv/gconv_dl.c (free_mem): Likewise.
3474 * iconv/gconv_cache.c (free_mem): Likewise.
3475 * intl/finddomain.c (free_mem): Likewise.
3476 * intl/dcigettext.c (free_mem): Likewise.
3477 * locale/setlocale.c (free_mem): Likewise.
3478 * misc/fstab.c (fstab_free): Likewise.
3479 * nss/nsswitch.c (free_mem): Likewise.
3480 * posix/regcomp.c (free_mem): Likewise.
3481 * resolv/gai_misc.c (free_res): Likewise.
3482 * stdlib/fmtmsg.c (free_mem): Likewise.
3483 * sunrpc/clnt_perr.c (free_mem): Likewise.
3484 * sysdeps/generic/setenv.c (free_mem): Likewise.
3485 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
3486 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
3487 * time/tzset.c (free_mem): Likewise.
3488 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
3489 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
3490 * malloc/set-freeres.c (__libc_freeres): Likewise.
3491
3492 * login/getutent.c: Include stdlib.h instead of stddef.h.
3493 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
3494 (__getutent): Allocate buffer the first time it is run.
3495 * login/getutid.c: Include stdlib.h instead of stddef.h.
3496 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
3497 (__getutid): Allocate buffer the first time it is run.
3498 * login/getutline.c: Include stdlib.h instead of stddef.h.
3499 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
3500 (__getutline): Allocate buffer the first time it is run.
3501 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
3502 (mtrace): Allocate malloc_trace_buffer.
3503 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
3504 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
3505 * string/strerror.c: Include libintl.h and errno.h.
3506 (buf): New variable.
3507 (strerror): Only allocate buffer if actually needed (unknown error).
3508 * time/tzfile.c (transitions): Add libc_freeres_ptr.
3509 (freeres): Remove.
3510
3511 2002-10-25 Jakub Jelinek <jakub@redhat.com>
3512
3513 * include/libc-symbols.h (libc_freeres_ptr): New macro.
3514 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
3515 symbol_set_define.
3516 (__libc_freeres): Free all pointers in that section.
3517 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
3518 commands when creating .lds script.
3519 (LDSEDCMD-c.so): New variable.
3520 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
3521 (rcmd_af): Use strdup to allocate ahostbuf.
3522 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
3523 (rexec_af): Use strdup to allocate ahostbuf.
3524 * stdio-common/reg-printf.c (printf_funcs): Remove.
3525 (__printf_arginfo_table): Change into printf_arginfo_function **.
3526 Add libc_freeres_ptr.
3527 (__register_printf_function): Allocate __printf_arginfo_table
3528 and __printf_function_table the first time it is called.
3529 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
3530 printf_arginfo_function **.
3531 (parse_one_spec): Add __builtin_expect.
3532 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
3533 (free_mem): Remove.
3534 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
3535 (free_mem): Remove.
3536 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
3537 (string_space, map): Add libc_freeres_ptr.
3538 (free_mem): Remove.
3539 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
3540 (free_mem): Remove.
3541 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
3542 (free_mem): Remove.
3543 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
3544 (buffer): Add libc_freeres_ptr.
3545 (free_mem): Remove for _LIBC.
3546 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
3547 (free_mem): Remove.
3548 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
3549 (free_mem): Remove.
3550 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
3551 (free_mem): Remove.
3552 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
3553 (free_mem): Remove.
3554 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
3555 (free_mem): Remove.
3556 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
3557 (free_mem): Remove.
3558 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
3559 libc_freeres_ptr.
3560 (free_mem): Remove.
3561 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
3562 libc_freeres_ptr.
3563 (free_mem): Remove.
3564
3565 2002-10-30 Jakub Jelinek <jakub@redhat.com>
3566
3567 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
3568 instead of duplicating the whole function in libc.
3569
3570 2002-10-31 Roland McGrath <roland@redhat.com>
3571
3572 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
3573 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
3574
3575 2002-10-30 Jakub Jelinek <jakub@redhat.com>
3576
3577 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
3578 32bit-predefine when creating .new32 list and -U for each
3579 32bit-predefine when creating .new64 list.
3580 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
3581
3582 2002-10-29 Andreas Schwab <schwab@suse.de>
3583
3584 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
3585 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
3586
3587 2002-10-25 Roland McGrath <roland@redhat.com>
3588
3589 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
3590 * sysdeps/unix/sysv/linux/configure: Regenerated.
3591
3592 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
3593 _dl_starting_up decl.
3594
3595 2002-10-20 H.J. Lu <hjl@gnu.org>
3596
3597 * sysdeps/unix/sysv/linux/configure.in: Don't check
3598 /lib/modules/`uname -r`/build/include for kernel headers if
3599 cross compiling.
3600 * sysdeps/unix/sysv/linux/configure: Regenerated.
3601
3602 2002-10-25 Roland McGrath <roland@redhat.com>
3603
3604 * math/math.h (M_LOG2El): Correct the value.
3605 From Stephen L Moshier <steve@moshier.net>.
3606
3607 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
3608 conditional from __libc_multiple_libcs access. Remove kludge for weak
3609 symbol access with old compilers we no longer support.
3610 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
3611 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
3612
3613 2002-10-25 Roland McGrath <roland@redhat.com>
3614
3615 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
3616 implement SV_RESETHAND by translating it to SA_RESETHAND.
3617
3618 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
3619
3620 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
3621 type on ELF64 platforms.
3622
3623 2002-10-24 Ulrich Drepper <drepper@redhat.com>
3624
3625 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
3626
3627 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
3628
3629 2002-10-24 Jakub Jelinek <jakub@redhat.com>
3630
3631 * elf/dl-misc.c: Include <sysdep.h>.
3632 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
3633
3634 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
3635 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
3636 (INLINE_SYSCALL): Use that.
3637 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
3638 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
3639 (INLINE_SYSCALL): Use that.
3640 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
3641 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
3642 (INLINE_SYSCALL): Use that.
3643 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
3644 dl-sysdep.h.
3645 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
3646 (__INTERNAL_SYSCALL_STRING): Define.
3647 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
3648 dl-sysdep.h.
3649 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
3650 (__INTERNAL_SYSCALL_STRING): Define.
3651 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
3652 __SYSCALL_STRING to inline_syscall*.
3653 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
3654 New macros.
3655 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
3656 inline_syscall4, inline_syscall5, inline_syscall6): Add string
3657 argument.
3658
3659 2002-10-24 Roland McGrath <roland@redhat.com>
3660
3661 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
3662 * sysdeps/unix/sysv/linux/init-first.c: Not here.
3663 * sysdeps/powerpc/elf/libc-start.c: Or here.
3664 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
3665 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
3666 * sysdeps/unix/sysv/aix/init-first.c: Or here.
3667 * sysdeps/generic/libc-start.c: Or here.
3668 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
3669 access with [! SHARED].
3670 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
3671
3672 * libio/bug-wfflush.c: New file.
3673 * libio/Makefile (tests): Add bug-wfflush.
3674
3675 2002-10-23 Roland McGrath <roland@redhat.com>
3676
3677 * stdio-common/tst-fphex.c: New file.
3678 * stdio-common/Makefile (tests): Add tst-fphex.
3679 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
3680 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
3681 chars always before the value digits.
3682 Reported by James Antill <james.antill@redhat.com>.
3683
3684 2002-10-24 Jakub Jelinek <jakub@redhat.com>
3685
3686 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
3687 (free_mem): New function.
3688 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
3689 if not cross compiling.
3690 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
3691 (bug-regex14-ENV): Set.
3692 (bug-regex14-mem): New target.
3693 * posix/bug-regex14.c: New file.
3694
3695 2002-10-23 Roland McGrath <roland@redhat.com>
3696
3697 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
3698 target, so we don't touch it when the link fails.
3699
3700 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
3701 Check for the result overflowing off_t and fail with EOVERFLOW.
3702 * libio/ioftell.c (_IO_ftell): Likewise.
3703 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
3704
3705 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
3706 use a temporary timeval on the stack for gettimeofday and copy it.
3707 * login/logout.c (logout): Likewise.
3708 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
3709
3710 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
3711 Use __SWORD_TYPE instead of int for member types.
3712 (struct statfs64): Likewise.
3713 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
3714 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
3715 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
3716 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
3717 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
3718
3719 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
3720 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
3721 (ST_NODIRATIME): Restore fixed value of 2048.
3722 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
3723 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
3724
3725 Rearranged <bits/types.h> definitions to reduce duplication.
3726 * sysdeps/generic/bits/types.h: Rewritten, using macros from
3727 <bits/wordsize.h> and new header <bits/typesizes.h>.
3728 * posix/Makefile (headers): Add bits/typesizes.h here.
3729 * sysdeps/generic/bits/typesizes.h: New file.
3730 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
3731 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
3732 * sysdeps/mach/hurd/bits/typesizes.h: New file.
3733 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
3734 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
3735 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
3736 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
3737 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
3738 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
3739 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
3740 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
3741 <bits/pthreadtypes.h> here, not in <bits/types.h>.
3742 * signal/signal.h: Likewise.
3743
3744 * streams/stropts.h: Include <bits/xtitypes.h>.
3745 * streams/Makefile (headers): Add bits/xtitypes.h here.
3746 * sysdeps/generic/bits/xtitypes.h: New file.
3747 * sysdeps/s390/bits/xtitypes.h: New file.
3748 * sysdeps/ia64/bits/xtitypes.h: New file.
3749 * sysdeps/x86_64/bits/xtitypes.h: New file.
3750
3751 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
3752 * sysdeps/generic/bits/ipctypes.h: New file.
3753 * sysdeps/mips/bits/ipctypes.h: New file.
3754 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
3755 * sysdeps/gnu/bits/msq.h: Likewise.
3756 * sysvipc/sys/ipc.h: Likewise.
3757
3758 2002-10-22 Ulrich Drepper <drepper@redhat.com>
3759
3760 * elf/dl-load.c (struct filebuf): For buf element to have the
3761 alignment of ElfXX_Ehdr since this is what will be stored in it.
3762
3763 2002-10-22 Jakub Jelinek <jakub@redhat.com>
3764
3765 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
3766 into pointer to locrec_offset.
3767 (add_locale_to_archive): Adjust callers. Free normalized_name right
3768 before returning, not immediately after add_locale, pass it to
3769 add_alias if not NULL instead of name. Rename second normalized_name
3770 occurence to nnormalized_codeset_name.
3771
3772 * locale/programs/locarchive.c (enlarge_archive): Make sure
3773 string_size is always a multiple of 4.
3774 Reported by Andreas Schwab <schwab@suse.de>.
3775
3776 2002-10-21 Andreas Schwab <schwab@suse.de>
3777
3778 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
3779 caller to EXTRA instead of execve, since the latter has a
3780 higher-priority implementation in linuxthreads.
3781
3782 2002-10-21 Roland McGrath <roland@redhat.com>
3783
3784 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
3785 slotinfo list's len member to the proper size, not just 1.
3786 Initialize static_map.l_tls_initimage.
3787
3788 * elf/dl-open.c (dl_open_worker): Fix loop searching for
3789 dtv_slotinfo_list element containing new modules' l_tls_modid.
3790
3791 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
3792 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
3793 * elf/Makefile (tests): Add tst-tls9.
3794 (tests-static): Add tst-tls9-static.
3795 (tst-tls9-static-ENV): New variable.
3796 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
3797
3798 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
3799 modids used by partially loaded modules being closed can't be known.
3800
3801 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
3802
3803 * posix/Makefile: Add a test case for the bug reported by Aharon
3804 Robbins <arnold@skeeve.com>.
3805 * posix/bug-regex13.c: New file.
3806 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
3807
3808 2002-10-21 Ulrich Drepper <drepper@redhat.com>
3809
3810 * csu/gmon-start.c: Pretty printing.
3811
3812 2002-10-19 Art Haas <ahaas@neosoft.com>
3813
3814 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
3815 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
3816 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
3817 * configure: Regenerated.
3818
3819 2002-10-19 Roland McGrath <roland@redhat.com>
3820
3821 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
3822 and then set $subdirs directly, because the new Autoconf breaks
3823 compatibility in every way imaginable and insists on whining
3824 about usage that worked since the dawn of time.
3825 * configure: Regenerated.
3826
3827 * configure: Regenerated (using Autoconf 2.54).
3828 * sysdeps/alpha/elf/configure: Likewise.
3829 * sysdeps/generic/configure: Likewise.
3830 * sysdeps/i386/elf/configure: Likewise.
3831 * sysdeps/ia64/elf/configure: Likewise.
3832 * sysdeps/mach/hurd/configure: Likewise.
3833 * sysdeps/mach/configure: Likewise.
3834 * sysdeps/unix/configure: Likewise.
3835 * sysdeps/unix/common/configure: Likewise.
3836 * sysdeps/unix/sysv/aix/configure: Likewise.
3837 * sysdeps/unix/sysv/linux/configure: Likewise.
3838 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
3839 * sysdeps/x86_64/elf/configure: Likewise.
3840
3841 * config.make.in: Nix completely-soft nonsense.
3842 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
3843 of machine directories instead of fpu subdirectory.
3844 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
3845 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
3846 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
3847 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
3848 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
3849 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
3850 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
3851 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
3852 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
3853 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
3854 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
3855 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
3856 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
3857 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
3858 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
3859 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
3860 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
3861 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
3862 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
3863 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
3864 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
3865 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
3866 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
3867 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
3868 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
3869 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
3870 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
3871 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
3872 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
3873 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
3874 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
3875 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
3876 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
3877 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
3878 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
3879 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
3880 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
3881 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
3882 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
3883 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
3884
3885 2002-10-19 Bruno Haible <bruno@clisp.org>
3886
3887 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
3888
3889 2002-10-18 Roland McGrath <roland@redhat.com>
3890
3891 * io/Makefile (routines): Add lchmod.
3892 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
3893 * sysdeps/generic/lchmod.c: New file.
3894 * sysdeps/mach/hurd/lchmod.c: New file.
3895 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
3896
3897 2002-10-18 Art Haas <ahaas@neosoft.com>
3898
3899 * configure.in: Remove remaining AC_FD_CC macros, and replace
3900 AC_FD_MSG with AS_MESSAGE_FD.
3901
3902 2002-10-18 Roland McGrath <roland@redhat.com>
3903
3904 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
3905 typos: VALUE -> FINALADDR.
3906
3907 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
3908 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
3909 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
3910 (inline_syscall6): Move these macros ...
3911 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
3912
3913 * configure.in (libc_link_dests, libc_link_sources): Remove these
3914 variables and the AC_LINK_FILES call.
3915
3916 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
3917 change to put new symbols here instead of in GLIBC_2.2.
3918 * sysdeps/powerpc/Subdirs: Move this file ...
3919 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
3920
3921 2002-10-07 Roland McGrath <roland@redhat.com>
3922
3923 * sysdeps/generic/bits/time.h: Replaced with contents of the
3924 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
3925 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
3926 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
3927 macros is ok even for architectures that don't now implement them.
3928 * sysdeps/mach/hurd/bits/time.h: File removed.
3929 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
3930 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
3931 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
3932 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
3933 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
3934
3935 2002-10-18 Jeff Bailey <jbailey@gnu.org>
3936
3937 * configure.in: Replace obsolete AC_OUTPUT syntax with
3938 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
3939
3940 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
3941 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
3942
3943 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
3944 * sysdeps/alpha/elf/configure.in: Likewise.
3945 * sysdeps/i386/elf/configure.in: Likewise.
3946 * sysdeps/mach/hurd/configure.in: Likewise.
3947 * sysdeps/x86_64/elf/configure.in: Likewise.
3948
3949 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
3950
3951 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
3952 * sysdeps/generic/configure.in: Likewise.
3953 * sysdeps/i386/elf/configure.in: Likewise.
3954 * sysdeps/ia64/elf/configure.in: Likewise.
3955 * sysdeps/mach/configure.in: Likewise.
3956 * sysdeps/mach/hurd/configure.in: Likewise.
3957 * sysdeps/unix/configure.in: Likewise.
3958 * sysdeps/unix/common/configure.in: Likewise.
3959 * sysdeps/unix/sysv/aix/configure.in: Likewise.
3960 * sysdeps/unix/sysv/linux/configure.in: Likewise.
3961 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
3962 * sysdeps/x86_64/elf/configure.in: Likewise.
3963
3964 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
3965 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
3966 that it's obvious when extra autoconf machinery is being dragged in.
3967
3968 2002-10-18 Roland McGrath <roland@redhat.com>
3969
3970 * configure.in: Remove bogus echo included in
3971 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
3972 * configure: Regenerated.
3973
3974 2002-10-18 Jakub Jelinek <jakub@redhat.com>
3975
3976 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
3977 (statfs_filesize_max): New function.
3978 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
3979 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
3980 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
3981 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
3982 statfs_filesize_max.
3983 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
3984 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
3985 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
3986
3987 2002-10-17 Roland McGrath <roland@redhat.com>
3988
3989 * configure.in (MIG): Just AC_SUBST it here.
3990 * configure: Regenerated.
3991 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
3992 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
3993 * sysdeps/mach/configure: Regenerated.
3994
3995 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
3996 and AC_PROVIDE([_AS_CR_PREPARE]).
3997
3998 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
3999 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
4000
4001 * elf/dl-support.c: Move _dl_tls_* variables to ...
4002 * sysdeps/generic/libc-tls.c: ... here.
4003
4004 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
4005 allow IDX to be one past the current last slotinfo entry.
4006 (_dl_close): Pass IMAP->l_init_called for that parameter.
4007
4008 2002-10-07 Andreas Schwab <schwab@suse.de>
4009
4010 * aclocal.m4: Fix for autoconf 2.53.
4011 * configure.in: Likewise. Require autoconf 2.53.
4012
4013 2002-10-08 Richard Henderson <rth@redhat.com>
4014
4015 * soft-fp/op-4.h: Handle carry correctly in
4016 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
4017 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
4018 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
4019
4020 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
4021
4022 * configure.in: Compute completely-soft.
4023 * config.make.in: Make completely-soft available to sub-makes.
4024 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
4025 gcc-double-routines. Add sim-full.c. Add fenv_const and
4026 fe_nomask to libm-support.
4027 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
4028 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
4029 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
4030 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
4031 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
4032 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
4033 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
4034 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
4035 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
4036 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
4037 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
4038 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
4039 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
4040 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
4041 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
4042 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
4043 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
4044 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
4045 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
4046 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
4047 __sim_round_mode.
4048 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
4049 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
4050 FP_HANDLE_EXCEPTIONS.
4051 Define FP_ROUNDMODE.
4052 Redefine FP_* macros to correspond to the FE_* bit positions.
4053 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
4054 Define externs for __sim_exceptions, __sim_disabled_exceptions,
4055 __sim_round_mode, __simulate_exceptions.
4056 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
4057 * sysdeps/powerpc/bits/fenv.h: ...to here.
4058
4059 2002-10-06 Jakub Jelinek <jakub@redhat.com>
4060
4061 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
4062 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
4063 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
4064 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
4065 __builtin_expect.
4066
4067 2002-10-15 Jakub Jelinek <jakub@redhat.com>
4068
4069 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
4070 __libc_res_nsend): New prototypes.
4071 * resolv/res_query.c (QUERYSIZE): Define.
4072 (__libc_res_nquery): Renamed from res_nquery. Added answerp
4073 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
4074 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
4075 res_nsend, pass answerp.
4076 (res_nquery): Changed into wrapper around __libc_res_nquery.
4077 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
4078 argument. Call __libc_res_nquerydomain and __libc_res_nquery
4079 instead of the non-__libc_ variants, pass them answerp.
4080 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
4081 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
4082 Added answerp argument. Call __libc_res_nquery instead of
4083 res_nquery, pass answerp.
4084 (res_nquerydomain): Changed into wrapper around
4085 __libc_res_nquerydomain.
4086 * resolv/res_send.c: Include sys/ioctl.h.
4087 (MAXPACKET): Define.
4088 (send_vc): Change arguments. Reallocate answer buffer if it is
4089 too small.
4090 (send_dg): Likewise.
4091 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
4092 Reallocate answer buffer if it is too small and hooks are in use.
4093 Adjust calls to send_vc and send_dg.
4094 (res_nsend): Changed into wrapper around __libc_res_nsend.
4095 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
4096 just 1K answer buffer on the stack, use __libc_res_nsearch instead
4097 of res_nsearch.
4098 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
4099 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
4100 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
4101 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
4102 (gethostbyaddr): Similarly with __libc_res_nquery.
4103 * resolv/Versions (libresolv): Export __libc_res_nquery and
4104 __libc_res_nsearch at GLIBC_PRIVATE.
4105
4106 2002-10-17 Roland McGrath <roland@redhat.com>
4107
4108 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
4109 * configure: Regenerated.
4110
4111 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
4112 before performing the reloc, not after.
4113 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
4114
4115 2002-10-17 Ulrich Drepper <drepper@redhat.com>
4116
4117 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
4118 * locale/programs/linereader.c (lr_open): Likewise.
4119 * locale/programs/charmap-dir.c (charmap_open): Likewise.
4120 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
4121
4122 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
4123
4124 * posix/bug-regex11.c: Add a test case for the bug reported by
4125 Paolo Bonzini <bonzini@gnu.org>.
4126 * posix/regexec.c (sift_states_bkref): Use correct destination of
4127 the back reference.
4128
4129 2002-10-17 Roland McGrath <roland@redhat.com>
4130
4131 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
4132 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
4133 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
4134 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
4135 Call it after performing TPOFF relocs.
4136 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
4137 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
4138 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
4139
4140 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
4141 when closing a partially-initialized object.
4142
4143 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
4144 instead of _dl_fatal_printf when we see PT_TLS.
4145
4146 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
4147 instead of $(libof-$<).
4148
4149 2002-10-16 Roland McGrath <roland@redhat.com>
4150
4151 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
4152 instead of += to append, to be sure $(lib) gets expanded at defn time.
4153 (libof-$(cpp-src)): New variable, define this instead.
4154 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
4155 (lib): Don't use override.
4156 (CPPFLAGS-$(lib)): New variable, put -D's here.
4157 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
4158 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
4159 LIB found by $(libof-*) for basename, target, or source.
4160 * Makerules (CPPFLAGS-nonlib): New variable.
4161 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
4162 * locale/Makefile (lib): Likewise.
4163 * sunrpc/Makefile (lib): Likewise.
4164
4165 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
4166 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
4167 * sysdeps/unix/sysv/linux/pathconf.h: New file.
4168 (statfs_link_max): New function, guts from fpathconf.c.
4169 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
4170 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
4171 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
4172 to use the linux/pathconf.c code by #include rather than duplication.
4173 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
4174
4175 2002-10-16 Jakub Jelinek <jakub@redhat.com>
4176
4177 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
4178 Use __libc_errno only for libc itself.
4179
4180 2002-10-16 Andreas Jaeger <aj@suse.de>
4181
4182 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
4183
4184 2002-10-16 Ulrich Drepper <drepper@redhat.com>
4185
4186 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4187 Use __libc_errno only for libc itself.
4188
4189 2002-10-15 Roland McGrath <roland@redhat.com>
4190 Jakub Jelinek <jakub@redhat.com>
4191
4192 * sysdeps/unix/sysv/linux/Makefile
4193 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
4194 sparc/Makefile to produce a bi-arch file as needed.
4195 That's now parameterized by the variable $(64bit-predefine).
4196 Use LC_ALL=C for `comm' commands in that rule.
4197 No longer conditional on [$(no_syscall_list_h)].
4198 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
4199 (64bit-predefine): New variable.
4200 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
4201 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
4202 * sysdeps/unix/sysv/linux/powerpc/Makefile
4203 (64bit-predefine): New variable.
4204
4205 2002-10-15 Roland McGrath <roland@redhat.com>
4206
4207 * sysdeps/unix/sysv/linux/Makefile
4208 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
4209
4210 * login/utmp-private.h: Declare __libc_utmp_lock.
4211 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
4212 and call __libc_utmp_jump_table functions directly, instead of using
4213 __setutent et al.
4214
4215 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
4216 * sysdeps/unix/sysv/linux/configure: Regenerated.
4217
4218 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
4219 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
4220 Use int32_t for ll_time.
4221 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
4222 Use int32_t instead of long int for ut_session.
4223 Use an anonymous struct with 32-bit fields for ut_tv.
4224 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
4225 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
4226 here as in utmp.h for `struct utmp'.
4227 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
4228 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
4229 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
4230 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
4231 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
4232 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
4233
4234 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
4235 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
4236 All the following files were identical or equivalent to it.
4237 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
4238 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
4239 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
4240 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
4241 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
4242 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
4243 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
4244 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
4245 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
4246 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
4247
4248 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
4249 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
4250 Other than the previously incorrect sign of msg_iovlen, this is a
4251 no-op on 32-bit platforms. On 64-bit platforms it makes this header
4252 match their layouts as well, so the following are now identical to it.
4253 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
4254 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
4255 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
4256 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
4257 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
4258
4259 2002-10-15 Ulrich Drepper <drepper@redhat.com>
4260
4261 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
4262 Define for 2.4+ kernels.
4263
4264 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
4265 are known to have the vfork syscall. Don't confuse the CPUs
4266 branch prediction unit by jumping to the return address.
4267
4268 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
4269 support for reiserfs and xfs.
4270
4271 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
4272 XFS link count.
4273 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
4274 and XFS_LINK_MAX.
4275 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
4276
4277 2002-10-16 Jakub Jelinek <jakub@redhat.com>
4278
4279 * include/libc-symbols.h (attribute_tls_model_ie): Define.
4280 * include/errno.h (errno): Define to __libc_errno in libc.so.
4281 Add attribute_tls_model_ie.
4282 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
4283 Add attribute_tls_model_ie.
4284 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
4285 attribute_tls_model_ie.
4286 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
4287 (h_errno): Define.
4288 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
4289 (_res): Define.
4290 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
4291 attribute_tls_model_ie.
4292 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
4293 __thread.
4294 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
4295 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
4296 __libc_errno in USE___THREAD case.
4297 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
4298 Likewise.
4299 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
4300 __attribute__((tls_model (""))).
4301 * configure: Rebuilt.
4302 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
4303
4304 2002-10-15 Ulrich Drepper <drepper@redhat.com>
4305
4306 * timezone/asia: Update from tzdata2002d.
4307 * timezone/australasia: Likewise.
4308 * timezone/iso3166.tab: Likewise.
4309 * timezone/southamerica: Likewise.
4310 * timezone/zone-tab: Likewise.
4311
4312 2002-10-15 Roland McGrath <roland@redhat.com>
4313
4314 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
4315 Adjust TCB pointer before calling free, so we get the whole block.
4316
4317 2002-10-14 Roland McGrath <roland@redhat.com>
4318
4319 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
4320 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
4321 extern using attribute_hidden instead of static, avoids warning.
4322
4323 2002-10-09 Jakub Jelinek <jakub@redhat.com>
4324
4325 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
4326 * sysdeps/unix/sysv/linux/configure: Rebuilt.
4327
4328 2002-10-14 Ulrich Drepper <drepper@redhat.com>
4329
4330 * po/sv.po: Update from translation team.
4331
4332 2002-10-12 H.J. Lu <hjl@gnu.org>
4333
4334 * sunrpc/thrsvc.c (PROCQUIT): New.
4335 (struct rpc_arg): New.
4336 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
4337 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
4338 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
4339 (main): Modified for struct rpc_arg *.
4340
4341 2002-10-14 Ulrich Drepper <drepper@redhat.com>
4342
4343 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
4344
4345 2002-10-14 Jakub Jelinek <jakub@redhat.com>
4346
4347 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
4348 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
4349 in ld.so even if __thread is supported.
4350
4351 2002-10-13 Jakub Jelinek <jakub@redhat.com>
4352
4353 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
4354 Add hack to prevent the compiler from clobbering the signal context.
4355 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
4356 Likewise.
4357 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
4358 Likewise.
4359
4360 2002-10-14 Andreas Jaeger <aj@suse.de>
4361
4362 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
4363 Guido Guenther <agx@sigxcpu.org>.
4364
4365 2002-10-14 Ulrich Drepper <drepper@redhat.com>
4366
4367 * po/sk.po: Update from translation team.
4368
4369 2002-09-26 Roland McGrath <roland@redhat.com>
4370
4371 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
4372 dynamic string tag.
4373 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
4374 DL_DST_LIB based on $(slibdir).
4375
4376 2002-10-13 Roland McGrath <roland@frob.com>
4377
4378 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
4379
4380 * sysdeps/mach/hurd/getresuid.c: New file.
4381 * sysdeps/mach/hurd/getresgid.c: New file.
4382 * sysdeps/mach/hurd/setresuid.c: New file.
4383 * sysdeps/mach/hurd/setresgid.c: New file.
4384
4385 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
4386 setresgid): Declare them.
4387 * NEWS: Mention it.
4388 * include/unistd.h
4389 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
4390 add libc_hidden_proto.
4391 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
4392 getresuid, getresgid, setresuid, setresgid here.
4393 * Versions.def (libc): Define GLIBC_2.3.2 set.
4394 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
4395 Add libc_hidden_def.
4396 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
4397 * sysdeps/generic/setresgid.c: New file.
4398 * sysdeps/generic/setresuid.c: New file.
4399 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
4400 (sysdep_routines): Don't add getresuid and getresgid here.
4401 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
4402 (sysdep_routines): Don't add setresuid and setresgid here.
4403 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
4404 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
4405 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
4406 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
4407 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
4408 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
4409 * posix/Makefile (routines): Add them all here instead.
4410 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
4411 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
4412 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
4413 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
4414 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
4415 [! __NR_setresuid]: Include generic file.
4416 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
4417 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
4418 [! __NR_setresuid]: Include generic file.
4419 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
4420 Caller is - now, not EXTRA.
4421 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
4422 (setresuid, setresgid, getresuid, getresgid): Likewise.
4423 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
4424 Add these calls here.
4425 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
4426 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
4427 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4428 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4429 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4430 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
4431 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
4432 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4433 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4434
4435 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
4436 (sysdep_routines): Add setfsuid and setfsgid here.
4437 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
4438 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
4439 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
4440 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
4441 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
4442 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
4443 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
4444 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
4445
4446 * hurd/errno.c: Renamed to ...
4447 * hurd/errno-loc.c: ... this.
4448 * hurd/Makefile (routines): errno -> errno-loc
4449
4450 2002-10-13 Ulrich Drepper <drepper@redhat.com>
4451
4452 * po/de.po: Update from translation team.
4453
4454 * MakeTAGS: Add -E flag to xgettext runs.
4455
4456 2002-10-12 Ulrich Drepper <drepper@redhat.com>
4457
4458 * po/fr.po: Update from translation team.
4459
4460 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
4461 Optimize a bit for use in glibc.
4462
4463 2002-10-12 Roland McGrath <roland@redhat.com>
4464
4465 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
4466 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
4467
4468 2002-10-12 Ulrich Drepper <drepper@redhat.com>
4469
4470 * po/sv.po: Update from translation team.
4471
4472 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
4473
4474 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
4475 OP_CONTEXT_NODE.
4476 (regfree): Likewise.
4477 (create_initial_state): Likewise.
4478 (analyze): Remove the substitutions which became useless.
4479 (calc_first): Likewise.
4480 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
4481 epsilon destination.
4482 (duplicate_node_closure): New function.
4483 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
4484 (calc_inveclosure): Likewise.
4485 (calc_eclosure): Likewise.
4486 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
4487 direct invocation of duplicate_node.
4488 (parse): Don't use comma operator in the return to avoid compiler
4489 warning.
4490 (parse_reg_exp): Likewise.
4491 (parse_branch): Likewise.
4492 (parse_expression): Likewise.
4493 (parse_sub_exp): Likewise.
4494 (parse_dup_op): Likewise.
4495 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
4496 which became useless.
4497 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
4498 (create_cd_newstate): Likewise.
4499 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
4500 (re_token_t): Likewise.
4501 (re_dfa_t): Likewise.
4502 (re_node_set_remove): New macro.
4503 * posix/regexec.c (check_matching): Remove the handling
4504 OP_CONTEXT_NODE.
4505 (check_halt_node_context): Likewise.
4506 (proceed_next_node): Likewise.
4507 (pop_fail_stack): Fix the memory leak.
4508 (set_regs): Likewise.
4509 (free_fail_stack_return): New function.
4510 (sift_states_backward): Fix the memory leak. Remove the handling
4511 OP_CONTEXT_NODE.
4512 (update_cur_sifted_state): Append some if clause to avoid redundant
4513 call.
4514 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
4515 back reference.
4516 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
4517 (check_subexp_limits): Likewise.
4518 (search_subexp): Likewise.
4519 (sift_states_bkref): Likewise.
4520 (transit_state_mb): Likewise.
4521 (transit_state_bkref_loop): Likewise.
4522 (transit_state_bkref_loop): Likewise.
4523 (group_nodes_into_DFAstates): Likewise.
4524 (check_node_accept): Likewise.
4525 (sift_ctx_init): Add initializing.
4526
4527 2002-10-12 Ulrich Drepper <drepper@redhat.com>
4528
4529 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
4530 __builtin_expect.
4531
4532 2002-10-11 Ulrich Drepper <drepper@redhat.com>
4533
4534 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
4535 duplicated variable c.
4536
4537 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
4538 if possible.
4539
4540 * sysdeps/unix/sysv/linux/i386/sysdep.h
4541 (INTERNAL_SYSCALL_ERROR_P): New define.
4542 (INTERNAL_SYSCALL_ERRNO): Likewise.
4543
4544 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
4545 Add hack to prevent the compiler from clobbering the signal context.
4546
4547 2002-10-11 Roland McGrath <roland@redhat.com>
4548
4549 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
4550 Fix typos.
4551
4552 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
4553 * sysdeps/sh/dl-lookupcfg.h: File removed.
4554 * sysdeps/i386/dl-lookupcfg.h: File removed.
4555
4556 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
4557 missing labels and ; from last change.
4558
4559 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
4560 number literals, so they are doubles instead of ints.
4561
4562 2002-10-09 Roland McGrath <roland@redhat.com>
4563
4564 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
4565 changed from [USE_TLS && HAVE___THREAD].
4566
4567 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
4568 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
4569 * sysdeps/x86_64/dl-machine.h
4570 (elf_machine_type_class, elf_machine_rela): Likewise.
4571 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
4572 Likewise.
4573
4574 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
4575 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
4576 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
4577
4578 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
4579 instead of ___tls_get_addr.
4580 (___tls_get_addr_internal): Add attribute_hidden to decl.
4581
4582 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
4583 _dl_error_catch_tsd.
4584 * elf/rtld.c (startup_error_tsd): New function.
4585 (dl_main): Point _dl_error_catch_tsd at that.
4586 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
4587 use new function pointer instead.
4588 * elf/dl-tsd.c: New file.
4589 * elf/Makefile (routines): Add it.
4590
4591 2002-10-07 Roland McGrath <roland@redhat.com>
4592
4593 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
4594 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
4595 take _dl_load_lock around calling __writev.
4596
4597 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
4598 (INLINE_SYSCALL): Use that.
4599
4600 * sysdeps/generic/dl-sysdep.h: New file.
4601 * sysdeps/mach/hurd/dl-sysdep.h: New file.
4602 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
4603 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
4604 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
4605 access it directly.
4606 * elf/dl-minimal.c (__errno_location): Removed.
4607 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
4608 Use GOTOFF access for errno.
4609 * sysdeps/unix/sysv/linux/i386/sysdep.h
4610 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
4611
4612 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
4613 Use PC-relative access for errno.
4614 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
4615 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
4616
4617 * include/tls.h: New file.
4618 (USE___THREAD): New macro.
4619 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
4620 libc or libpthread.
4621 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
4622 changed from [USE_TLS && HAVE___THREAD].
4623 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
4624 * sysdeps/unix/i386/sysdep.S: Likewise.
4625 * sysdeps/unix/x86_64/sysdep.S: Likewise.
4626 * include/errno.h: Likewise.
4627 * include/netdb.h: Likewise.
4628 * include/resolv.h: Likewise.
4629
4630 * sysdeps/generic/errno.c: New file.
4631 * csu/Makefile (aux): New variable, list errno.
4632 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
4633 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
4634 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
4635 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
4636 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
4637 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
4638 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
4639 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
4640 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
4641 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
4642 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
4643 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
4644 * sysdeps/unix/alpha/sysdep.S: Likewise.
4645 * sysdeps/generic/start.c: Likewise.
4646 * sysdeps/unix/start.c: Likewise.
4647 * sysdeps/unix/arm/start.c: Likewise.
4648 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
4649 * sysdeps/unix/sparc/start.c: Likewise.
4650 * sysdeps/unix/sysv/irix4/start.c: Likewise.
4651 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
4652
4653 * manual/search.texi (Tree Search Function, Hash Search Function):
4654 Mention search.h clearly.
4655
4656 2002-10-05 Roland McGrath <roland@redhat.com>
4657
4658 * elf/dl-fxstat64.c: File removed.
4659 * elf/dl-xstat64.c: File removed.
4660 * elf/Makefile (rtld-routines): Remove them.
4661 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
4662 Instead, use strong_alias instead of versioned_symbol in the
4663 !SHLIB_COMPAT case.
4664 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
4665 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
4666
4667 * include/shlib-compat.h
4668 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
4669 [! NOT_IN_libc] (IS_IN_libc): Define it.
4670 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
4671 * elf/Makefile (CPPFLAGS-.os): Likewise.
4672
4673 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
4674 Return the status instead of calling exit.
4675
4676 * Makeconfig (CFLAGS): Prepend -std=gnu99.
4677 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
4678 Remove superfluous rm command, whose @ plus make bugs hid
4679 all these commands from the make output.
4680
4681 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
4682 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
4683 Use that file's contents instead of literal echo's for the prologue.
4684 * include/features.h: Include <gnu/stubs.h> unconditionally.
4685 * include/gnu/stubs.h: New file.
4686
4687 2002-09-30 Roland McGrath <roland@redhat.com>
4688
4689 * elf/rtld-Rules: New file.
4690 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
4691 $(objpfx)rtld-libc.a): New targets.
4692 (generated): Add them.
4693 (reloc-link): Remove -o $@ from the variable.
4694 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
4695 (distribute): Add rtld-Rules.
4696 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
4697 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
4698 (common-mostlyclean, common-clean): Clean up rtld-* files.
4699 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
4700
4701 2002-10-11 Roland McGrath <roland@redhat.com>
4702
4703 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
4704 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
4705
4706 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
4707 proper set of no-op insn prefixes.
4708
4709 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
4710
4711 2002-10-11 Ulrich Drepper <drepper@redhat.com>
4712
4713 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
4714 __pthread_kill_other_threads_np.
4715
4716 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
4717
4718 2002-10-08 Roland McGrath <roland@redhat.com>
4719
4720 * locale/newlocale.c (__newlocale): If setting all categories to "C",
4721 just return &_nl_C_locobj instead of copying it.
4722 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
4723 * locale/duplocale.c (__duplocale): Likewise.
4724
4725 2002-10-07 Roland McGrath <roland@frob.com>
4726
4727 * config.h.in (HAVE_I386_SET_GDT): New #undef.
4728 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
4729 * sysdeps/mach/configure: Regenerated.
4730
4731 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4732
4733 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
4734 Add all necessary register outputs for syscall-clobbered registers.
4735
4736 2002-10-02 David Mosberger <davidm@hpl.hp.com>
4737
4738 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
4739 Itanium 2 (and Itanium).
4740 Fix unwind directives and make it fit in 80 columns.
4741 * sysdeps/ia64/memset.S: Likewise.
4742 * sysdeps/ia64/memcpy.S: Likewise.
4743 Move jump table to .rodata section.
4744
4745 2002-10-03 Roland McGrath <roland@frob.com>
4746
4747 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
4748 clobbers to asm.
4749
4750 2002-10-10 Andreas Jaeger <aj@suse.de>
4751
4752 * sysdeps/x86_64/_mcount.S: Restore correct registers.
4753
4754 2002-10-10 Ulrich Drepper <drepper@redhat.com>
4755
4756 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
4757
4758 2002-10-09 Ulrich Drepper <drepper@redhat.com>
4759
4760 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
4761 _dl_allocate_tls_init. Add rtld_hidden_proto.
4762 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
4763 rtld_hidden_def.
4764 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
4765
4766 * version.h (VERSION): Bump to 2.3.1.
4767
4768 * Make-dist: Add back one of the tar invocations removed before.
4769
4770 * stdlib/Makefile (distribute): Add allocalim.h.
4771
4772 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
4773 (__libc_tsd_address): Use correct variable name.
4774 Patch by Stefan Jones <stefan.jones@multigig.com>.
4775
4776 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
4777 Reported by edwardsg@sgi.com [PR libc/4678].
4778
4779 * Versions.def (libc): Add GLIBC_2.3.1.
4780 (libpthread): Add GLIBC_2.3.1.
4781
4782 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
4783 and __sigtimedwait.
4784 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
4785 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
4786 libc_hidden_def.
4787 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
4788 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
4789
4790 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
4791 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
4792 and make old name an alias.
4793 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
4794 and make old name an alias.
4795 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
4796 __libc_msgsnd.
4797
4798 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
4799 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
4800 __libc_writev.
4801 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
4802 old name an alias.
4803 * sysdeps/posix/readv.c: Likewise
4804 * sysdeps/unix/sysv/aix/readv.c: Likewise.
4805 * sysdeps/unix/sysv/linux/readv.c: Likewise.
4806 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
4807 old name an alias.
4808 * sysdeps/posix/writev.c: Likewise
4809 * sysdeps/unix/sysv/aix/writev.c: Likewise.
4810 * sysdeps/unix/sysv/linux/writev.c: Likewise.
4811
4812 * include/sys/wait.h: Declare __waitid.
4813 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
4814 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
4815 name an alias.
4816 * sysdeps/posix/waitid.c: Likewise.
4817 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
4818
4819 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
4820
4821 2002-10-07 Jakub Jelinek <jakub@redhat.com>
4822
4823 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
4824 prototypes.
4825 (__MAX_ALLOCA_CUTOFF): Define.
4826 Include allocalim.h.
4827 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
4828 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
4829 host_buffer depending on __libc_use_alloca.
4830 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
4831 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
4832 net_buffer depending on __libc_use_alloca.
4833 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
4834 buf depending on __libc_use_alloca.
4835 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
4836 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
4837 instead of hardcoded constants.
4838 Pass proper size argument to alloca and compute end for wide char
4839 version.
4840 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
4841 instead of hardcoded constants.
4842 * string/strcoll.c (strcoll): Likewise.
4843 * string/strxfrm.c (strxfrm): Likewise.
4844 * sysdeps/posix/readv.c (__readv): Likewise.
4845 * sysdeps/posix/writev.c (__writev): Likewise.
4846 * sysdeps/generic/allocalim.h: New file.
4847
4848 2002-10-08 Roland McGrath <roland@redhat.com>
4849
4850 * configure.in (aux_missing warning): Change "too old" to
4851 "incompatible versions", since for autoconf it's "too new" right now.
4852 * configure: Regenerated.
4853
4854 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
4855 one found doesn't work on our configure.in.
4856 * configure: Regenerated.
4857 * config.make.in (AUTOCONF): New substituted variable.
4858 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
4859 (autoconf-it): ... here, use that instead of defining conditionally.
4860 Use $(AUTOCONF) instead of literal autoconf.
4861 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
4862 with this condition.
4863 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
4864
4865 2002-10-08 Ulrich Drepper <drepper@redhat.com>
4866
4867 * Make-dist (dist): Cleanup a bit. We are not interested in the
4868 14 char filename limit anymore. Remove intermediate files and
4869 symlinks.
4870
4871 2002-10-05 Ulrich Drepper <drepper@redhat.com>
4872
4873 * po/sk.po: Update from translation team.
4874 * po/tr.po: Likewise.
4875 * po/gl.po: Likewise.
4876
4877 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4878
4879 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
4880
4881 2002-10-03 Ulrich Drepper <drepper@redhat.com>
4882
4883 * version.h (RELEASE): Change to stable.
4884
4885 2002-10-03 Jakub Jelinek <jakub@redhat.com>
4886
4887 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
4888 __syscall_exit_group): New prototypes.
4889
4890 2002-10-03 Ulrich Drepper <drepper@redhat.com>
4891
4892 * glibc 2.3 released.
4893
4894
4895 See ChangeLog.13 for earlier changes.
This page took 0.284684 seconds and 6 git commands to generate.