]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
bd8ec1dcc52cbf6cbfff6665acef95bf0129dd7a
[thirdparty/glibc.git] / ChangeLog
1 2000-08-08 Jes Sorensen <jes@linuxcare.com>
2
3 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Add SI_KERNEL
4 define.
5 Add missing ILL_BADIADDR to enum and make ILL_BREAK match the
6 define of the kernel.
7 Add missing __SEG_PSTKOVF definition.
8 Adjust the padding of struct siginfo and struct sigevent to
9 match the fact that sigval_t is 64 bit.
10
11 2000-08-10 Ulrich Drepper <drepper@redhat.com>
12
13 * timezone/zic.c: Update from tzcode2000f.
14 * timezone/australasia: Update from tzdata2000f.
15 * timezone/europe: Likewise.
16 * timezone/southamerica: Likewise.
17 * timezone/yearistype: Likewise.
18
19 2000-08-10 Andreas Jaeger <aj@suse.de>
20
21 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Synch struct stat64 and
22 stat with current MIPS kernel.
23
24 2000-08-01 Mark Kettenis <kettenis@gnu.org>
25
26 * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_greg_t, ELF_NGREG,
27 elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved to
28 sysdeps/unix/sysv/linux/i386/sys/procfs.h.
29 Remove the junk that's only relevant in the Linux kernel itself.
30 Add a warning saying that this file is now obsolete, and include
31 <sys/procfs.h>.
32 * sysdeps/unix/sysv/linux/i386/sys/procfs.h (elf_greg_t,
33 ELF_NGREG, elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved
34 here from sysdeps/unix/sysv/linux/i386/sys/elf.h. Don't include
35 <signal.h>, <sys/ucontext.h> and <sys/elf.h>. Remove parts of
36 `struct elf_prstatus' that are #ifdef'ed out. Improve comments
37 and add the notice that the file is primarily there for GDB.
38 * sysdeps/unix/sysv/linux/i386/sys/user.h: Fix comment.
39
40 2000-08-09 Jakub Jelinek <jakub@redhat.com>
41
42 * time/tzfile.c (__tzfile_compute): __tzstring zones
43 from zone_names.
44
45 2000-08-09 Jakub Jelinek <jakub@redhat.com>
46
47 * resolv/resolv.h (__res_state): Surround prototype with
48 __BEGIN_DECLS/__END_DECLS.
49 * sysdeps/unix/sysv/linux/m68k/chown.c: Include kernel-features.h.
50
51 2000-08-04 Jes Sorensen <jes@linuxcare.com>
52
53 * sysdeps/unix/sysv/linux/ia64/bits/resource.h (__rlimit_resource):
54 Make independant of asm/resource.h from the Linux kernel.
55
56 2000-08-06 Bruno Haible <haible@clisp.cons.org>
57
58 * iconv/gconv_conf.c (__gconv_read_conf): Don't call realpath.
59
60 2000-08-06 Bruno Haible <haible@clisp.cons.org>
61
62 * intl/Makefile (CPPFLAGS): Remove $(i18ndir) from LOCALE_ALIAS_PATH.
63 * locale/Makefile (locale-CPPFLAGS): Likewise.
64
65 2000-08-09 Ulrich Drepper <drepper@redhat.com>
66
67 * sysdeps/i386/fpu/libm-test-ulps: Increase several error values
68 for AMD processors.
69
70 2000-08-03 Jakub Jelinek <jakub@redhat.com>
71
72 * misc/Versions (mincore): Export at GLIBC_2.2.
73
74 2000-08-03 Bruno Haible <haible@clisp.cons.org>
75
76 * intl/libintl.h (gettext, dgettext, dcgettext): Add back __THROW.
77
78 2000-08-02 Mark Kettenis <kettenis@gnu.org>
79
80 * sysdeps/mach/hurd/socketpair.c (__socketpair): Renamed from
81 socketpair. Made socketpair a weak alias.
82 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplemented using
83 __socketpair. Use S_IFIFO protocol to make pipes POSIX
84 conforming, but fall back on the old protocol if the socket server
85 doesn't support it.
86 * include/sys/socket.h: Add prototype for __socketpair.
87
88 2000-08-09 Andreas Schwab <schwab@suse.de>
89
90 * stdio-common/vfprintf.c (vfprintf): Also set `is_long' if the
91 long long modifier is seen.
92
93 * elf/nodelete.c (do_test): Remove reference to undefined member
94 sa_restorer.
95 * rt/tst-aio4.c (do_test): Likewise.
96
97 * configure.in: Add `-lm' when checking for libgd.
98 * malloc/Makefile ($(objpfx)memusagestat): Add `-lm' during
99 linking.
100
101 2000-08-09 Andreas Jaeger <aj@suse.de>
102
103 * configure.in: Change required make versions.
104
105 * manual/install.texi (Tools for Compilation): Document required
106 make version.
107 (Supported Configurations): Update list of supported
108 configurations.
109
110 2000-08-08 Ulrich Drepper <drepper@redhat.com>
111
112 * locale/linereader.c (get_string): Don't print an error is a string
113 contains an unknown character.
114
115 2000-08-06 Ulrich Drepper <drepper@redhat.com>
116
117 * locale/programs/ld-collate.c (struct symbol_t): Add name element.
118 (new_symbol): Take new parameters with name of the symbol.
119 Adjust callers.
120 (handle_ellipsis): Don't only allow character symbols.
121 (collate_read): Allow string of collating elements contain invalid
122 characters; ignore entry in this case.
123 Handle ellipsis of collating symbols before first order_start.
124 Allow ellipsis in state 0.
125
126 2000-08-04 Ulrich Drepper <drepper@redhat.com>
127
128 * locale/programs/ld-collate.c (handle_ellipsis): Fix typo in
129 error message.
130 Reported by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
131
132 2000-08-04 Greg McGary <greg@mcgary.org>
133
134 * posix/regex.c (SET_HIGH_BOUND): New macro.
135 (MOVE_BUFFER_POINTER): Use it.
136 (ELSE_EXTEND_BUFFER_HIGH_BOUND): New macro.
137 (EXTEND_BUFFER): Use it.
138
139 2000-08-03 Ulrich Drepper <drepper@redhat.com>
140
141 * libio/iofwide.c (_IO_fwide): Initialize fp->_codecvt as well.
142 * libio/fileops.c (_IO_new_file_fopen): Use _codecvt not from
143 _wide_data but from _IO_FILE directly.
144 * libio/iofclose.c: Likewise.
145 * libio/wfileops.c: Likewise.
146
147 * libio/genops.c (_IO_default_showmanyc): Change return type to size_t.
148 * libio/libioP.h: Change prototypes.
149
150 2000-08-03 Greg McGary <greg@mcgary.org>
151
152 * sysdeps/i386/setjmp.S (__sigsetjmp): Pop our
153 frame pointer early so that we save caller's frame pointer.
154 * sysdeps/i386/elf/setjmp.S: Likewise.
155
156 * sysdeps/unix/sysv/syscalls.list (time, utime): Correct signatures.
157 * io/test-utime.c: Test passing NULL as utimbuf* arg.
158
159 * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): Remove macro.
160 (MOVE_BUFFER_POINTER): Handle high_bound properly.
161 (EXTEND_BUFFER): Don't call EXTEND_BUFFER_HIGH_BOUND.
162
163 2000-08-03 Ulrich Drepper <drepper@redhat.com>
164
165 * iconvdata/big5.c: Updated.
166 Patch by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
167
168 2000-08-02 Ulrich Drepper <drepper@redhat.com>
169
170 * Makeconfig (all-subdirs): Add conform.
171 * conform/Makefile: Include ../Rules.
172
173 * Makefile (README): Add rules to generate here as well.
174
175 2000-08-02 Ulrich Drepper <drepper@redhat.com>
176
177 * version.h (VERSION): Bump to 2.1.92.
178
179 * sysdeps/ia64/Dist: Add _mcount.S.
180
181 * sysdeps/unix/sysv/linux/ia64/Dist: Add clone.S.
182
183 * sysdeps/unix/sysv/linux/mips/Dist: Add _test_and_set.c.
184
185 * elf/Makefile (distribute): Add missing modules.
186
187 * sysdeps/unix/sysv/linux/s390/Dist: Remove nonexisting files.
188
189 * posix/regex.c (compile_range): Translate range start and end
190 characters to avoid empty range in case of REG_ICASE [PR libc/1842].
191
192 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Don't include
193 asm/resource.h.
194
195 * sysdeps/unix/sysv/linux/arm/Makefile: Undo last change.
196
197 2000-08-02 Andreas Jaeger <aj@suse.de>
198
199 * elf/elf.h (EM_S390): Added.
200 (R_390_*): New relocs for S390.
201
202 * sysdeps/unix/sysv/linux/s390/Dist: New file.
203 * sysdeps/unix/sysv/linux/s390/sysdep.h: New file.
204 * sysdeps/unix/sysv/linux/s390/sysdep.S: New file.
205 * sysdeps/unix/sysv/linux/s390/syscall.S: New file.
206 * sysdeps/unix/sysv/linux/s390/sys/user.h: New file.
207 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
208 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: New file.
209 * sysdeps/unix/sysv/linux/s390/sys/elf.h: New file.
210 * sysdeps/unix/sysv/linux/s390/socket.S: New file.
211 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: New file.
212 * sysdeps/unix/sysv/linux/s390/shmctl.c: New file.
213 * sysdeps/unix/sysv/linux/s390/setreuid.c: New file.
214 * sysdeps/unix/sysv/linux/s390/setresuid.c: New file.
215 * sysdeps/unix/sysv/linux/s390/setresgid.c: New file.
216 * sysdeps/unix/sysv/linux/s390/setregid.c: New file.
217 * sysdeps/unix/sysv/linux/s390/setgroups.c: New file.
218 * sysdeps/unix/sysv/linux/s390/setgid.c: New file.
219 * sysdeps/unix/sysv/linux/s390/setfsuid.c: New file.
220 * sysdeps/unix/sysv/linux/s390/setfsgid.c: New file.
221 * sysdeps/unix/sysv/linux/s390/seteuid.c: New file.
222 * sysdeps/unix/sysv/linux/s390/setegid.c: New file.
223 * sysdeps/unix/sysv/linux/s390/semctl.c: New file.
224 * sysdeps/unix/sysv/linux/s390/register-dump.h: New file.
225 * sysdeps/unix/sysv/linux/s390/putpmsg.c: New file.
226 * sysdeps/unix/sysv/linux/s390/putmsg.c: New file.
227 * sysdeps/unix/sysv/linux/s390/profil-counter.h: New file.
228 * sysdeps/unix/sysv/linux/s390/msgctl.c: New file.
229 * sysdeps/unix/sysv/linux/s390/mmap.S: New file.
230 * sysdeps/unix/sysv/linux/s390/getuid.c: New file.
231 * sysdeps/unix/sysv/linux/s390/getresuid.c: New file.
232 * sysdeps/unix/sysv/linux/s390/getresgid.c: New file.
233 * sysdeps/unix/sysv/linux/s390/getpmsg.c: New file.
234 * sysdeps/unix/sysv/linux/s390/getmsg.c: New file.
235 * sysdeps/unix/sysv/linux/s390/getgroups.c: New file.
236 * sysdeps/unix/sysv/linux/s390/getegid.c: New file.
237 * sysdeps/unix/sysv/linux/s390/geteuid.c: New file.
238 * sysdeps/unix/sysv/linux/s390/fchown.c: New file.
239 * sysdeps/unix/sysv/linux/s390/clone.S: New file.
240 * sysdeps/unix/sysv/linux/s390/brk.c: New file.
241 * sysdeps/unix/sysv/linux/s390/bits/time.h: New file.
242 * sysdeps/unix/sysv/linux/s390/bits/resource.h: New file.
243 * sysdeps/unix/sysv/linux/s390/bits/mman.h: New file.
244 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: New file.
245 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
246 * sysdeps/s390/sysdep.h: New file.
247 * sysdeps/s390/sys/ucontext.h: New file.
248 * sysdeps/s390/sub_n.S: New file.
249 * sysdeps/s390/strncpy.S: New file.
250 * sysdeps/s390/strcpy.S: New file.
251 * sysdeps/s390/stackinfo.h: New file.
252 * sysdeps/s390/setjmp.S: New file.
253 * sysdeps/s390/s390-mcount.S: New file.
254 * sysdeps/s390/mul_1.S: New file.
255 * sysdeps/s390/memusage.h: New file.
256 * sysdeps/s390/memset.S: New file.
257 * sysdeps/s390/memcpy.S: New file.
258 * sysdeps/s390/memchr.S: New file.
259 * sysdeps/s390/machine-gmon.h: New file.
260 * sysdeps/s390/ldbl2mpn.c: New file.
261 * sysdeps/s390/gmp-mparam.h: New file.
262 * sysdeps/s390/fpu/fpu_control.h: New file.
263 * sysdeps/s390/fpu/fesetround.c: New file.
264 * sysdeps/s390/fpu/fegetround.c: New file.
265 * sysdeps/s390/fpu/fclrexcpt.c: New file.
266 * sysdeps/s390/fpu/bits/fenv.h: New file.
267 * sysdeps/s390/ffs.c: New file.
268 * sysdeps/s390/elf/start.S: New file.
269 * sysdeps/s390/elf/setjmp.S: New file.
270 * sysdeps/s390/elf/bsd-setjmp.S: New file.
271 * sysdeps/s390/elf/bsd-_setjmp.S: New file.
272 * sysdeps/s390/dl-machine.h: New file.
273 * sysdeps/s390/bzero.S: New file.
274 * sysdeps/s390/bsd-setjmp.S: New file.
275 * sysdeps/s390/bsd-_setjmp.S: New file.
276 * sysdeps/s390/bits/string.h: New file.
277 * sysdeps/s390/bits/setjmp.h: New file.
278 * sysdeps/s390/bits/huge_val.h: New file.
279 * sysdeps/s390/bits/endian.h: New file.
280 * sysdeps/s390/bits/byteswap.h: New file.
281 * sysdeps/s390/bcopy.S: New file.
282 * sysdeps/s390/backtrace.c: New file.
283 * sysdeps/s390/atomicity.h: New file.
284 * sysdeps/s390/asm-syntax.h: New file.
285 * sysdeps/s390/addmul_1.S: New file.
286 * sysdeps/s390/add_n.S: New file.
287 * sysdeps/s390/abort-instr.h: New file.
288 * sysdeps/s390/__longjmp.c: New file.
289 * sysdeps/s390/Makefile: New file.
290 * sysdeps/s390/Implies: New file.
291 * sysdeps/s390/Dist: New file.
292 Patches by Martin Schwidefsky <schwidefsky@de.ibm.com>.
293
294 2000-08-01 Ulrich Drepper <drepper@redhat.com>
295
296 Remove incompatible IPv6 extension of RPC.
297 * sunrpc/Makefile: Undo changes.
298 * sunrpc/rpc_main.c: Likewise.
299 * sunrpc/rpc/clnt.h: Likewise.
300 * sunrpc/rpc/svc.h: Likewise.
301 * sunrpc/bindrsvprt6.c: Removed.
302 * sunrpc/clnt_tcp6.c: Removed.
303 * sunrpc/clnt_udp6.c: Removed.
304 * sunrpc/svc_tcp6.c: Removed.
305 * sunrpc/svc_udp6.c: Removed.
306
307 * intl/libintl.h: Don't use __attribute_format_arg__ for gettext,
308 dgettext, and dcgettetxt.
309
310 * intl/locale.alias: Update japanese aliases.
311
312 * sysdeps/ia64/bits/byteswap.h: New file.
313 Patch by Dan Pop <Dan.Pop@cern.ch>.
314
315 * misc/sys/cdefs.h: Define __attribute_format_arg__.
316 * intl/libintl.h: Use it here instead of using __attribute__ directly.
317
318 2000-07-13 H.J. Lu <hjl@gnu.org>
319
320 * posix/regex.c (re_max_failures): Set to 4000.
321
322 2000-08-01 Ulrich Drepper <drepper@redhat.com>
323
324 * gnulib/Makefile (tests): Add tst-gcc.
325 * gnulib/tst-gcc.c: New file.
326
327 * assert/Makefile (routines): Add __assert.
328 * assert/Versions: Export __assert for glibc 2.2.
329 * assert/__assert.c: New file.
330 * assert/assert.h: Declare __assert.
331
332 2000-07-27 Bruno Haible <haible@clisp.cons.org>
333
334 * locale/localeinfo.h (_ISCTYPE): New macro.
335 * posix/fnmatch_loop.c (internal_fnmatch): Use it, support new
336 LC_CTYPE locale format.
337 * locale/programs/ld-ctype.c (locale_ctype_t): New field class_b.
338 (ctype_output): Output class_b[nr] right before class_3level[nr].
339 (allocate_arrays): Fill class_b, similarly to class_3level.
340
341 2000-08-01 Ulrich Drepper <drepper@redhat.com>
342 Joseph S. Myers <jsm28@cam.ac.uk>
343
344 * math/tgmath.h: Make standard compliant. Don't ask how.
345
346 2000-07-04 H.J. Lu <hjl@gnu.org>
347
348 * elf/Makefile ($(inst_slibdir)/$(rtld-version-installed-name)):
349 Use $(do-install-program) instead of "$(INSTALL_PROGRAM) $< $@.new".
350 ($(inst_slibdir)/$(rtld-installed-name)): Use $(make-shlib-link) only.
351
352 2000-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
353
354 * include/features.h (_XOPEN_SOURCE): Update the explanation.
355 (__USE_LARGEFILE): Add an explanation.
356 (_POSIX_C_SOURCE): Define to 2 only if _XOPEN_SOURCE < 500.
357 (__USE_XOPEN2K): Define whenever _XOPEN_SOURCE >= 600.
358
359 2000-08-01 Ulrich Drepper <drepper@redhat.com>
360
361 * libio/Makefile: Enable exception handling for genops, wgenops,
362 fileops, and wfileops.
363
364 2000-07-29 Mark Kettenis <kettenis@gnu.org>
365
366 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Take into
367 acount that elf/rtld's main program might remove some varibales
368 from the environment if we're trying to be secure. Move the Hurd
369 startup data if necessary, or, if we there is no startup data,
370 make sure the magical convention that ARGV[0] is stored just after
371 the environment list.
372
373 2000-08-01 Philip Blundell <philb@gnu.org>
374
375 * sysdeps/unix/sysv/linux/arm/Makefile [subdir=resource]
376 (sysdep_routines): Add oldgetrlimit, oldsetrlimit.
377 * sysdeps/unix/sysv/linux/arm/syscalls.list: Add oldgetrlimit,
378 oldsetrlimit for GLIBC_2.0.
379
380 2000-08-01 Andreas Jaeger <aj@suse.de>
381
382 * nss/nss_files/files-ethers.c: Use case-insensitive lookup.
383 (LINE_PARSER): Allow any number of spaces between ip address and
384 number. Fixes PR libc/1833, reported by rp010gf@voruta.vu.lt.
385
386 * conform/data/netdb.h-data: Remove getipnodebyaddr and friends.
387
388 * include/netdb.h: Remove getipnodebyaddr and friends, leave
389 constants in.
390
391 * nis/Versions: Remove _nss_nis_getipnodebyname_r and
392 _nss_nisplus_getipnodebyname_r.
393
394 * nis/nss_nis/nis-hosts.c (_nss_nis_getipnodebyname_r): #if 0 for
395 now, getipnodebyname is deprecated.
396 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_getipnodebyname_r):
397 Likewise.
398
399 * inet/Makefile (routines): Don't build getipnodebyaddr and
400 friends.
401
402 * intl/Makefile (distribute): Add tst-translit.sh and translit.po.
403
404 * hesiod/Makefile (distribute): Add nss_hesiod/nss_hesiod.h.
405
406 * elf/Makefile (distribute): Add filtmod1.c and filtmod2.c.
407
408 * wctype/Makefile (distribute): Add wchar-lookup.h.
409
410 * sysdeps/generic/Dist: Add bp-checks.h and bp-semctl.h.
411
412 * iconvdata/Makefile (distribute): Add isiri-3342.h.
413
414 2000-08-01 Andreas Schwab <schwab@suse.de>
415
416 * Make-dist (dist): Resolve `..' in file names.
417
418 2000-08-01 Andreas Jaeger <aj@suse.de>
419
420 * stdio-common/Makefile (distribute): Remove removed files, add
421 new files.
422
423 * Makefile (distribute): Remove include/db_185.h and db.h.
424
425 * include/db_185.h: Remove, it's not needed anymore.
426 * include/db.h: Likewise.
427
428 2000-07-31 Ulrich Drepper <drepper@redhat.com>
429
430 * inet/Makefile (tests): Remove tst-ipnode.
431 * include/netdb.h: Add stuff removed from resolv/netdb.h here for
432 now.
433
434 2000-07-31 Jes Sorensen <jes@linuxcare.com>
435
436 * sysdeps/ia64/elf/initfini.c: Kill dummy section since align and
437 endp statements have already been added.
438
439 2000-04-18 David Mosberger <davidm@hpl.hp.com>
440
441 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Include
442 <sysdeps/ia64/sysdep.h>.
443
444 * sysdeps/ia64/_mcount.S: New file.
445
446 * sysdeps/ia64/elf/initfini.c (_init): Preserve gp around call to
447 __gmon_start__. Fix up extraneous whitespace.
448
449 2000-01-12 H.J. Lu <hjl@gnu.org>
450
451 * sysdeps/ia64/elf/initfini.c: New file.
452
453 2000-07-31 Jes Sorensen <jes@linuxcare.com>
454
455 * sysdeps/unix/sysv/linux/ia64/clone.S: Add stop bit to avoid WAW
456 dependency between branch and ar.pfs write.
457
458 2000-07-31 H.J. Lu <hjl@gnu.org>
459
460 * sysdeps/generic/printf_fphex.c (__printf_fphex): Correctly
461 handle the wchar_t array.
462
463 2000-07-31 Ulrich Drepper <drepper@redhat.com>
464
465 * iconvdata/gb18030.c: Don't map to and from positions in ISO
466 10646 which are not yet assigned.
467 Patch by wang shouhua <shouhuawang@redflag-linux.com>.
468
469 2000-07-31 Andreas Jaeger <aj@suse.de>
470
471 * inet/Versions: Remove getipnodebyaddr and friends from
472 GLIBC_2.2.
473
474 * resolv/netdb.h: Remove getipnodebyaddr and friends.
475
476 2000-07-30 Bruno Haible <haible@clisp.cons.org>
477
478 * iconvdata/sjis.c (BODY for FROM_LOOP): Treat the case
479 ch >= 0x81 && ch2 < 0x40 as invalid.
480
481 2000-07-30 Bruno Haible <haible@clisp.cons.org>
482
483 * iconvdata/uhc.c (BODY for FROM_LOOP): Reject ch2 == 0xff as invalid.
484 (BODY for TO_LOOP): Accept 0x7f. Increment outptr as needed.
485
486 2000-07-30 Bruno Haible <haible@clisp.cons.org>
487
488 * iconvdata/johab.c (BODY for TO_LOOP): After calling
489 ucs4_to_ksc5601_sym, fix the conversion to JOHAB.
490
491 2000-07-30 Bruno Haible <haible@clisp.cons.org>
492
493 * iconvdata/t.61.c (to_ucs4): Change values of 0xa4, 0a6, 0xa8, 0xb4,
494 0xb8.
495 (from_ucs4): Change values of U+00A4, U+00BB, U+00ED.
496
497 2000-07-30 Bruno Haible <haible@clisp.cons.org>
498
499 * iconvdata/macintosh.c (HAS_HOLES): Set to 1.
500
501 2000-07-30 Bruno Haible <haible@clisp.cons.org>
502
503 * iconvdata/iso_6937.c (to_ucs4): Change values of 0x24 and 0xb4.
504 (from_ucs4): Change values of U+00A4 and U+00ED.
505 (BODY of TO_LOOP): Remove mapping from U+02DC to 0x0020.
506
507 2000-07-30 Bruno Haible <haible@clisp.cons.org>
508
509 * iconvdata/ansi_x3.110.c (from_ucs4): Change entry for 0xed.
510 (BODY for TO_LOOP): Map U+2122, U+2126, not U+2022, U+2026.
511
512 2000-07-30 Bruno Haible <haible@clisp.cons.org>
513
514 * iconvdata/Makefile (gen-8bit-gap-modules): Remove isiri-3342.
515 * iconvdata/isiri-3342.h: New file.
516 * iconvdata/isiri-3342.c (HAS_HOLES): Avoid gaps >= 0xe0, but don't
517 treat 0x80 as a gap.
518
519 2000-07-30 Bruno Haible <haible@clisp.cons.org>
520
521 * string/strxfrm.c (encoding_mask, encoding_byte): Remove.
522 (utf8_encode): Use simple shifts instead. Fix return value.
523
524 2000-07-31 Ulrich Drepper <drepper@redhat.com>
525
526 * timezone/private.h: Update from tzcode2000e.
527 * timezone/asia: Update from tzdata2000e.
528 * timezone/australasia: Likewise.
529 * timezone/europe: Likewise.
530 * timezone/northamerica: Likewise.
531 * timezone/zone-tab: Likewise.
532
533 2000-07-30 Ralf Baechle <ralf@gnu.org>
534
535 * sysdeps/unix/sysv/linux/mips/bits/sigstack.h: New file. On MIPS
536 the order of struct sigaltstack members is different.
537
538 2000-07-26 Philip Blundell <philb@gnu.org>
539
540 * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: New file.
541
542 2000-07-29 Ulrich Drepper <drepper@redhat.com>
543
544 * locale/langinfo.h: Add entries for extra tables in CTYPE data.
545 * locale/programs/ld-ctype.c: Adjust for this.
546
547 * locale/programs/ld-collate.c: Add more alignment checks.
548 * locale/string/strcoll.c: Likewise.
549
550 2000-07-30 Mark Kettenis <kettenis@gnu.org>
551
552 * stdio-common/vfprintf.c: Move inclusion of _i18n_number.h
553 outside USE_IN_LIBIO block.
554
555 2000-07-26 Philip Blundell <philb@gnu.org>
556
557 * sysdeps/arm/dl-machine.h (fix_bad_pc24): New function.
558 (elf_machine_rel): Use it for out-of-range PC24 relocs.
559
560 2000-07-28 Philip Blundell <philb@gnu.org>
561
562 * math/test-fpucw.c: Ignore reserved bits in control word.
563
564 2000-07-28 Philip Blundell <philb@gnu.org>
565
566 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET): New macro.
567 (ret): Redefine to PSEUDO_RET.
568 (PSEUDO): Remove jump to syscall_error.
569
570 2000-07-29 Mark Kettenis <kettenis@gnu.org>
571
572 * resolv/README: Add some information about using the resolver in
573 multi-threaded code and with C++. Spelling fixes.
574
575 2000-07-29 Mark Kettenis <kettenis@gnu.org>
576
577 * resolv/resolv.h (struct __sockaddr_in): Remove.
578 (struct __res_state) [!_LIBC]: Remove reference to __sockaddr_in.
579
580 2000-07-29 Greg McGary <greg@mcgary.org>
581
582 * Rules (test-bp-inputs, make-test-out): New variables.
583 ($(objpfx)%-bp.out): New rule.
584 ($(objpfx)%.out): Rewrite in terms of new variables.
585
586 * libio/iovswscanf.c (vswscanf): Pass _IO_FILE_plus pointer to
587 internal function that uses vtable.
588 * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
589 * libio/vswprintf.c (_IO_vswprintf): Likewise.
590
591 * malloc/malloc.c (mem2chunk): Define in terms of chunk_at_offset.
592 (malloc_extend_top): Convert brk to chunk using chunk_at_offset.
593 (chunk_align): Likewise.
594
595 * time/asctime.c (ab_day_name, ab_month_name): Rewrite expression
596 in a way that conforms to decl, and avoids spurious bounds violation.
597
598 * sysdeps/arm/frame.h (struct layout): Make pointers __unbounded.
599 * sysdeps/generic/frame.h: Likewise.
600 * sysdeps/generic/backtrace.c (ADVANCE_STACK_FRAME): Wrap bounds
601 around return value.
602 (__backtrace): Qualify frame-pointer chain and return address
603 pointers as __unbounded. Wrap bounds around variable `current'.
604 * sysdeps/generic/segfault.c (ADVANCE_STACK_FRAME): Wrap bounds
605 around return value.
606 (catch_segfault): Qualify frame-pointer chain and return address
607 pointers as __unbounded. Wrap bounds around variable `current'.
608 * sysdeps/i386/backtrace.c (struct layout): Make pointers __unbounded.
609 (ADVANCE_STACK_FRAME): Wrap bounds around return value.
610 * sysdeps/powerpc/backtrace.c (struct layout): Make pointers
611 __unbounded.
612 (__backtrace): Qualify frame-pointer chain and return address
613 pointers as __unbounded. Wrap bounds around variable `current'.
614
615 * sysdeps/i386/addmul_1.S: s2_limb is scalar so remove bounds check.
616 * sysdeps/i386/mul_1.S: Likewise.
617 * sysdeps/i386/submul_1.S: Likewise.
618 * sysdeps/i386/i586/addmul_1.S: Likewise.
619 * sysdeps/i386/i586/mul_1.S: Add bounds checks.
620 * sysdeps/i386/i586/submul_1.S: Likewise.
621
622 2000-07-27 Andreas Jaeger <aj@suse.de>
623
624 * libio/Depend: New file, libio needs localedata for tests.
625 * posix/Depend: Likewise.
626
627 2000-07-28 Ulrich Drepper <drepper@redhat.com>
628
629 * stdio-common/_i18n_itoa.c: Removed.
630 * stdio-common/_i18n_itoa.h: Removed.
631 * stdio-common/_i18n_itowa.c: Removed.
632 * stdio-common/_i18n_itowa.h: Removed.
633 * stdio-common/_i18n_number.h: New file.
634 * stdio-common/Depend: New file.
635 * stdio-common/printf-parse.h: Handle I modifier correctly. Optimize.
636 * stdio-common/vfprintf.c: Rewrite buffer handling for integer
637 printing. Change printing of numbers with locale specific digits to
638 use new code in _i18n_number.h.
639 * stdio-common/Makefile (routines): Remove _i18n_itoa and
640 _i18n_itowa.
641
642 * stdio-common/bug13.c: Improve messages.
643
644 * locale/programs/ld-ctype.c (ctype_read): Improve error message.
645 (set_class_defaults): Always search also for Uxxxx names.
646 Detect insufficient number of outdigits.
647
648 * locale/Makefile (C-translit.h): Use mv not $(move-if-changed).
649
650 2000-07-27 Bruno Haible <haible@clisp.cons.org>
651
652 * locale/C-ctype.c (_nl_C_LC_CTYPE): Swap the two names in
653 _NL_CTYPE_MAP_NAMES.
654 * locale/localeinfo.h (__TOW_toupper, __TOW_tolower): New enum values.
655 * wctype/wcfuncs.c (towlower, towupper): Use them.
656 * wctype/wcfuncs_l.c (__towlower_l, __towupper_l): Likewise.
657 * wctype/wctrans.c (wctrans): Likewise.
658 * wctype/wctrans_l.c (__wctrans_l): Likewise.
659
660 2000-07-27 Bruno Haible <haible@clisp.cons.org>
661
662 * posix/fnmatch.c (is_char_class): Fix logic. Avoid buffer overrun.
663 Use the optimized version of this function outside glibc as well.
664
665 2000-07-27 Jakub Jelinek <jakub@redhat.com>
666
667 * locale/indigits.h (indigit_value): Correct.
668 * locale/indigitswc.h (indigitwc_value): Correct.
669 * stdio-common/vfscanf.c (__vfscanf): Fix I18N number
670 conversion, add GROUP checking for it, fix GROUP number
671 conversion with strlen(thousands) > 1.
672 Honour width correctly in the presence of floating
673 decimal points and thousands separators.
674 * stdio-common/tst-sscanf.c: New test.
675 * stdio-common/Makefile: Add it to tests.
676 * sysdeps/generic/strtol.c (strtol): Fix conversion if there are
677 thousands separators and group argument is non-zero.
678
679 2000-07-25 Bruno Haible <haible@clisp.cons.org>
680
681 * locale/Versions: Enumerate __*_l functions individually. __wctrans_l
682 starts at GLIBC_2.2.
683
684 2000-07-12 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
685
686 * sysdeps/unix/sysv/linux/mips/Dist: Add sys/tas.h.
687 * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Add
688 _test_and_set.
689 (headers): Add sys/tas.h.
690 * sysdeps/unix/sysv/linux/mips/Versions: Export _test_and_set for
691 GLIBC_2.2 from libc.
692 * sysdeps/unix/sysv/linux/mips/_test_and_set.c: New file.
693 * sysdeps/unix/sysv/linux/mips/sys/tas.h: New file for
694 _test_and_set.
695
696 2000-07-28 Andreas Jaeger <aj@suse.de>
697
698 * sysdeps/gnu/netinet/tcp.h: Add TCP options from Linux 2.4.
699
700 * dlfcn/Makefile ($(objpfx)tst-dladdr): New.
701 ($(objpfx)tst-dladdr.out): new.
702 (tests): Add tst-dladdr.
703 ($(objpfx)glrefmain): Use libdl.
704
705 * dlfcn/tst-dladdr.c: New file. Based on a test by Volkmar Sieh
706 <vs@caldera.de>.
707
708 2000-07-27 Jes Sorensen <jes@linuxcare.com>
709
710 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add truncate(64) and
711 ftruncate(64) calls.
712
713 2000-07-27 Jes Sorensen <jes@linuxcare.com>
714
715 * intl/tst-translit.c: Include string.h to get prototype for
716 strcmp().
717
718 2000-07-27 Jes Sorensen <jes@linuxcare.com>
719
720 * sysdeps/unix/sysv/linux/ia64/fork.c: Make __libc_fork the strong
721 name and add weak alias for __fork.
722
723 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change llseek, pread
724 & pwrite to use __libc_<name> as strong names instead of
725 __syscall_<name>.
726
727 * include/sched.h: Add clone2 prototype.
728
729 2000-07-26 Jes Sorensen <jes@linuxcare.com>
730
731 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ENTRY): Don't declare the
732 procedure name twice.
733
734 2000-07-27 Philip Blundell <philb@gnu.org>
735
736 * malloc/malloc.c (HAVE_MREMAP): Undo change of 1997-12-04.
737
738 2000-07-27 Andreas Jaeger <aj@suse.de>
739
740 * sysdeps/unix/sysv/linux/bits/socket.h: Rename MSG_URG TO
741 MSG_CONFIRM following kernel 2.4.0 (MSG_URG was never used).
742 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
743 Reported by Andi Kleen <ak@suse.de>.
744
745 * rt/tst-aio64.c: Add tests for aio_fsync64 and aio_cancel64.
746 (do_wait): Test requests with aio_return64.
747 (do_test): Change callers of do_wait.
748
749 2000-07-26 Andreas Jaeger <aj@suse.de>
750
751 * rt/tst-aio.c: Add tests for aio_fsync and aio_cancel.
752 (do_wait): Test requests with aio_return.
753 (do_test): Change callers of do_wait.
754
755 2000-07-27 Ulrich Drepper <drepper@redhat.com>
756
757 * rt/aio_misc.c (__aio_remove_request): New function. Handle removing
758 from request list. Don't do the list handling here, call
759 __aio_remove_request.
760 * rt/aio_misc.h: Add prototype for __aio_remove_request.
761 * rt/aio_cancel.c: Don't assume __aio_find_req_fd succeeds since the
762 request might already be processed. Don't do the list handling
763 here, call __aio_remove_request.
764
765 * rt/aio_misc.c: Don't depend on aio_reqprio field for LIO_SYNC and
766 LIO_DSYNC.
767
768 * rt/aio_misc.c: Add comment explaining why writer memory barriers
769 are missing.
770
771 2000-07-27 Greg McGary <greg@mcgary.org>
772
773 * sysdeps/generic/bp-checks.h (BOUNDED_N): Make it work for void*.
774 * sysdeps/generic/bp-semctl.h (check_semctl): Fix syntax error
775 in union init. Pass zero for ignored semnum arg to semctl.
776 * sysdeps/unix/sysv/linux/shmat.c (shmat): Fix typo.
777
778 2000-07-26 Greg McGary <greg@mcgary.org>
779
780 * sysdeps/gnu/bits/msq.h: Qualify kernel's
781 data structure pointers as __unbounded.
782 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
783 * sysdeps/generic/bp-semctl.h: New file.
784 * sysdeps/unix/sysv/linux/msgctl.c: Qualify kernel's data structure
785 pointers as __unbounded. Check bounds of syscall args.
786 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
787 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
788 * sysdeps/unix/sysv/linux/semctl.c: Likewise.
789 * sysdeps/unix/sysv/linux/semop.c: Likewise.
790 * sysdeps/unix/sysv/linux/shmat.c: Likewise.
791 * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
792 * sysdeps/unix/sysv/linux/shmdt.c: Likewise.
793 * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
794 * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
795 * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
796 * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
797 * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
798 * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
799 * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Likewise.
800 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
801 * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Likewise.
802
803 2000-07-26 Ulrich Drepper <drepper@redhat.com>
804
805 * libio/iofwide.c: Enable transliteration for conversion from wchar_t
806 by default.
807 * locale/C-ctype.c: Likewise.
808 * wcsmbs/wcsmbsload.c: Likewise.
809
810 2000-07-26 Greg McGary <greg@mcgary.org>
811
812 * Makeconfig (+link-bounded, link-libc-bounded,
813 link-extra-libs-bounded): New variables.
814 (built-program-cmd): Omit $(run-program-prefix) for static BP tests.
815 * Makerules (do-tests-clean, common-mostlyclean): Remove BP test files.
816 * Rules (tests-bp.out): New variable.
817 (tests): Conditionally add BP tests.
818 (binaries-bounded): Add variable and associated rule.
819 * csu/Makefile [build-bounded] (extra-objs, install-lib):
820 Move conditional stuff after place where condition is defined.
821
822 * malloc/malloc.c (bp-checks.h): Add #include.
823 (mem2chunk, chunk_at_offset, bin_at): Wrap BOUNDED_1 around expression.
824 (_bin_at): Add unbounded version of bin_at.
825 (IAV, chunk_alloc): Use unbounded _bin_at.
826 (mALLOc, rEALLOc, chunk_realloc, mEMALIGn, cALLOc,
827 chunk2mem_check, realloc_check, malloc_starter, malloc_atfork):
828 Wrap BOUNDED_N around return value.
829 (chunk_realloc): Adjust oldsize once.
830
831 * sysdeps/generic/bp-checks.h (__memchr): Remove incorrect decl.
832 (__ubp_memchr): Add correct decl.
833 (_CHECK_STRING): Use __ubp_memchr.
834 * sysdeps/alpha/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
835 New alias for unbounded-pointer __memchr.
836 * sysdeps/i386/memchr.S: Likewise.
837 * sysdeps/ia64/memchr.S: Likewise.
838 * sysdeps/m68k/memchr.S: Likewise.
839 * sysdeps/sparc/sparc32/memchr.S: Likewise.
840 * sysdeps/sparc/sparc64/memchr.S: Likewise.
841 * sysdeps/vax/memchr.s: Likewise.
842
843 * sysdeps/i386/strtok.S: Fix bounds checks to pass tests.
844 (SAVE_PTR): New macro. (save_ptr): Expand size as BP.
845 (strtok): Don't bother to write into SAVE_PTR when returning NULL.
846 * sysdeps/i386/i686/strtok.S: Likewise.
847 * sysdeps/i386/bp-asm.h (RETURN_BOUNDED_POINTER,
848 RETURN_NULL_BOUNDED_POINTER): Use %ecx as the scratch register.
849
850 * sysdeps/i386/bits/string.h [!__BOUNDED_POINTERS__]: Disable inlines.
851 * sysdeps/i386/i486/bits/string.h [!__BOUNDED_POINTERS__]: Likewise.
852
853 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Copy
854 bounds of copy_result to mount_proc.
855
856 2000-07-25 Bruno Haible <haible@clisp.cons.org>
857
858 * wctype/wctype.h (__wctrans_l): New declaration.
859 * wctype/wctrans_l.c: New file.
860 * wctype/Makefile (routines): Add wctrans_l.
861
862 2000-07-26 Ulrich Drepper <drepper@redhat.com>
863
864 * posix/fnmatch_loop.c: Fixes for use outside glibc.
865 Patch by MacGyver <macgyver@tos.net>.
866
867 2000-07-26 Andreas Jaeger <aj@suse.de>
868
869 * rt/tst-aio4.c: New file, slightly modified version of tst-aio2.
870 * rt/tst-aio5.c: New file, slightly modified version of tst-aio2.
871 * rt/Makefile: Add rules to build and run tst-aio4 and tst-aio5.
872
873 * rt/tst-aio.c (test_file): Fix typo.
874 * rt/tst-aio64.c (test_file): Likewise.
875
876 * rt/tst-aio3.c: New file, slightly modified version of tst-aio2.
877 * rt/Makefile: Add rules to build and run tst-aio3.
878
879 * sysdeps/unix/sysv/linux/netinet/ip.h: Removed ip_options since
880 it's not needed and confuses only.
881
882 2000-07-26 Ulrich Drepper <drepper@redhat.com>
883
884 * resolv/res_init.c: Add support for nameserver communication with
885 IPv6.
886 * resolv/res_send.c: Likewise.
887 * resolv/resolv.h (struct __res_state): Store IPv6 address, not IPv4
888 in nsaddrs field.
889 Patch by <venaas@nvg.ntnu.no>.
890
891 2000-07-25 Bruno Haible <haible@clisp.cons.org>
892
893 * locale/programs/ld-ctype.c (wctype_table_get): New function.
894 (wcwidth_table_get): New function.
895 (wcwidth_table_add): Call it.
896 (wctrans_table_get): New function.
897 (wctrans_table_add): Call it.
898
899 2000-07-25 Ulrich Drepper <drepper@redhat.com>
900
901 * rt/lio_listio.c (lio_listio): Always disable individual
902 notification.
903 * rt/Makefile: Add rules to build and run tst-aio2.
904 * rt/tst-aio2.c: New file.
905
906 * rt/lio_listio.c (lio_listio): Handle case of SIG == NULL correctly.
907 Reported by Kevin Beard <beardk@gatwick.Geco-Prakla.slb.com>.
908
909 2000-07-25 Mark Kettenis <kettenis@gnu.org>
910
911 * nss/nss_files/files-netgrp.c (strip_whitespace): New function.
912 (_nss_netgroup_parseline): Use strip_whitespace to strip off any
913 leading and trailing spaces from host, user and domain name.
914
915 2000-07-25 Jes Sorensen <jes@linuxcare.com>
916
917 * csu/defs.awk: Add support for need_endp.
918
919 2000-07-25 Mark Kettenis <kettenis@gnu.org>
920
921 * resolv/resolv.h: Remove __P from res_send_qhook and
922 res_send_rhook typedefs.
923
924 2000-07-25 Bruno Haible <haible@clisp.cons.org>
925
926 * intl/tst-translit.c (main): Unset OUTPUT_CHARSET.
927
928 2000-07-25 Ulrich Drepper <drepper@redhat.com>
929
930 * iconv/gconv_builtin.h: Add WCHAR_T alias.
931
932 2000-07-25 Mark Kettenis <kettenis@gnu.org>
933
934 * hurd/thread-cancel.c (hurd_thread_cancel): When cancelling the
935 calling thread, set the cancellation flag and return success
936 instead of EINTR.
937
938 2000-07-25 Ulrich Drepper <drepper@redhat.com>
939
940 * libio/Makefile: Add rules build, run, and distribute tst-widetext.c.
941 * libio/tst-widetext.c: New file.
942 * libio/tst-widetext.input: New file.
943
944 * libio/iogetwline.c (_IO_getwline_info): Pretty print.
945
946 * libio/wfileops.c (_IO_wfile_underflow): Handle not entirely
947 empty external buffer correctly.
948
949 2000-07-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
950
951 * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Stringify using
952 __STRING(entry) and not #entry.
953 (_RTLD_EPILOGUE): Likewise.
954 * sysdeps/mips/mips64/dl-machine.h: Likewise.
955
956 2000-07-25 Andreas Jaeger <aj@suse.de>
957
958 * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Change parameter
959 according to changes in test program, run also with static only
960 builds.
961 ($(objpfx)tst-printf.out): Likewise.
962
963 * stdio-common/tst-unbputc.sh: Likewise.
964 * stdio-common/tst-printf.sh: Likewise.
965
966 2000-07-25 Ulrich Drepper <drepper@redhat.com>
967
968 * libio/wfileops.c (_IO_wdo_write): Correct return value.
969
970 * libio/wfileops.c (_IO_wdo_write): Allow partial conversions in the
971 loop.
972
973 * libio/fileops.c: Pretty print.
974
975 2000-07-23 Bruno Haible <haible@clisp.cons.org>
976
977 * wctype/wchar-lookup.h: New file.
978 * wctype/iswctype.c: Include "wchar-lookup.h".
979 (__iswctype): Support alternate locale format with 3-level tables.
980 * wctype/iswctype_l.c (__iswctype_l): Likewise.
981 * wctype/towctrans.c (__towctrans): Likewise.
982 * wctype/towctrans_l.c (__towctrans_l): Likewise.
983 * wctype/wcfuncs.c: Include "wchar-lookup.h".
984 (__ctype32_wctype, __ctype32_wctrans): Declare external.
985 (__iswalnum, __iswalpha, __iswcntrl, __iswdigit, __iswlower,
986 __iswgraph, __iswprint, __iswpunct, __iswspace, __iswupper,
987 __iswxdigit, towlower, towupper): Support alternate locale format
988 with 3-level tables.
989 * wctype/wcextra.c (iswblank): Likewise.
990 * wctype/wcfuncs_l.c: Include "wchar-lookup.h".
991 (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
992 __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
993 __iswxdigit_l, __towlower_l, __towupper_l): Support alternate locale
994 format with 3-level tables.
995 * wctype/wcextra_l.c (__iswblank_l): Likewise.
996 * wctype/wctype.c (__wctype): Likewise. In the alternate locale
997 format, return a 3-level table pointer.
998 * wctype/wctype_l.c (__wctype_l): Likewise.
999 * wctype/wctrans.c (wctrans): Likewise.
1000 * wctype/wctype.h (__ISwupper, __ISwlower, __ISwalpha, __ISwdigit,
1001 __ISwxdigit, __ISwspace, __ISwprint, __ISwgraph, __ISwblank,
1002 __ISwcntrl, __ISwpunct, __ISwalnum): New enum values.
1003 (iswctype): Remove macro definition.
1004 * wcsmbs/wcwidth.h: Include "wchar-lookup.h".
1005 (internal_wcwidth): Support alternate locale format with 3-level
1006 tables.
1007 * locale/langinfo.h (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
1008 New nl_items.
1009 * locale/categories.def (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
1010 Define them as being type "word".
1011 * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializers for them.
1012 * ctype/ctype-info.c (__ctype32_wctype, __ctype32_wctrans,
1013 __ctype32_width): New exported variables.
1014 * locale/lc-ctype.c (_nl_postload_ctype): Initialize them in the
1015 alternate locale format. Don't initialize __ctype_names and
1016 __ctype_width in the alternate locale format.
1017 * locale/programs/localedef.h (oldstyle_tables): New declaration.
1018 * locale/programs/localedef.c (oldstyle_tables): New variable.
1019 (OPT_OLDSTYLE): New macro.
1020 (options): Add --old-style option.
1021 (parse_opt): Handle --old-style option.
1022 * locale/programs/ld-ctype.c (locale_ctype_t): Add class_offset,
1023 map_offset, class_3level, map_3level, width_3level members.
1024 (ctype_output): Support for alternate locale format: Computation of
1025 nelems changes. _NL_CTYPE_TOUPPER32, _NL_CTYPE_TOLOWER32 and
1026 _NL_CTYPE_CLASS32 only 256 characters. _NL_CTYPE_NAMES empty.
1027 New fields _NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET. Field
1028 _NL_CTYPE_WIDTH now contains the three-level table. Extra elems
1029 now contain both class and map tables.
1030 (struct wctype_table): New type.
1031 (wctype_table_init, wctype_table_add, wctype_table_finalize): New
1032 functions.
1033 (struct wcwidth_table): New type.
1034 (wcwidth_table_init, wcwidth_table_add, wcwidth_table_finalize): New
1035 functions.
1036 (struct wctrans_table): New type.
1037 (wctrans_table_init, wctrans_table_add, wctrans_table_finalize): New
1038 functions.
1039 (allocate_arrays): Support for alternate locale format: Set
1040 plane_size and plane_cnt to 0. Restrict ctype->ctype32_b to the first
1041 256 characters. Compute ctype->class_3level. Restrict ctype->map32[idx]
1042 to the first 256 characters. Compute ctype->map_3level. Set
1043 ctype->class_offset and ctype->map_offset. Compute ctype->width_3level
1044 instead of ctype->width.
1045
1046 2000-07-24 Ulrich Drepper <drepper@redhat.com>
1047
1048 * libio/iogetwline.c (_IO_getwline_info): Use wide character
1049 string functions.
1050
1051 2000-07-24 Jakub Jelinek <jakub@redhat.com>
1052
1053 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Measure size
1054 in wide characters, not bytes.
1055 * libio/tst_putwc.c (do_test): Add test for writing lots of data
1056 into file.
1057
1058 2000-07-22 Bruno Haible <haible@clisp.cons.org>
1059
1060 * locale/nl_langinfo.c (nl_langinfo): Accept items belonging to the
1061 new categories LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE,
1062 LC_MEASUREMENT, LC_IDENTIFICATION.
1063
1064 * locale/xlocale.h (struct __locale_struct): Increase size of
1065 __locales array.
1066 * locale/duplocale.c (__duplocale): Copy newly added categories as
1067 well.
1068 * locale/freelocale.c (__freelocale): Free newly added categories.
1069 * locale/newlocale.c (__newlocale): Fix typo in sanity check.
1070 If a base is given, use it, don't simply return it.
1071
1072 2000-07-22 Bruno Haible <haible@clisp.cons.org>
1073
1074 * crypt/md5-crypt.c (__md5_crypt_r): Avoid gcc warnings: Use pointer
1075 variables, copied_key and copied_salt, instead of boolean variables.
1076
1077 2000-07-24 Andreas Jaeger <aj@suse.de>
1078
1079 * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Really fix
1080 check for offset.
1081
1082 * grp/initgroups.c (initgroups_dyn_function): Renamed from
1083 initgroups_function, adopted prototype for change from 2000-07-23.
1084 (initgroups): Follow type change.
1085
1086 * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Fix offset
1087 & PAGE_MASK case, reformat.
1088
1089 * string/Makefile ($(objpfx)tst-svc.out): Fix rule to read input
1090 from stdin and setup environment.
1091
1092 2000-07-24 Andreas Schwab <schwab@suse.de>
1093
1094 * sysdeps/unix/sysv/linux/m68k/mmap.S: Remove mmap64 alias.
1095
1096 2000-07-23 Ulrich Drepper <drepper@redhat.com>
1097
1098 * string/endian.h: Explain the _*_ENDIAN constant values a bit
1099 more. Patch by scarlet@mit.edu [PR libc/1799].
1100
1101 * io/ftwtest-sh: Add -f parameter to chmod if -R is also given.
1102 [PR libc/1792].
1103
1104 * argp/argp-parse.c (parser_finalize): Reverse order in which
1105 parsers are run for ARGP_KEY_END. [PR libc/1755].
1106
1107 * grp/initgroups.c (initgroups): Don't limit the possible number
1108 of groups to NGROUPS_MAX. Allow dynamic resizing. Loop around
1109 the setgroups call while the call fails and descrease the number
1110 of groups each round.
1111 The name of the initgroups function in the NSS modules changed.
1112 (compat_call): Adapt for dynamic resizing.
1113 * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
1114 Implement dynamic resizing.
1115 * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
1116 Likewise.
1117 * nis/nss_nis/compat-initgroups.c (_nss_nis_initgroups_dyn): Likewise.
1118 * hesiod/Versions: Change exported interface name.
1119 * nis/Versions: Change exported interface name.
1120
1121 2000-07-23 Ulrich Drepper <drepper@redhat.com>
1122
1123 * locale/iso-639.def: Some errors corrected.
1124 Patch by Keld Simonsen.
1125
1126 * include/limits.h: Update non-gcc portion.
1127 Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
1128
1129 2000-07-22 Mark Kettenis <kettenis@gnu.org>
1130
1131 * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When shrinking the
1132 program's data space, reallocate only the space that was just
1133 deallocated to release its backing space.
1134
1135 2000-07-23 Ulrich Drepper <drepper@redhat.com>
1136
1137 * stdio-common/vfprintf.c (process_string_arg): For wide character
1138 version, handle precision also correctly.
1139
1140 * nss/nss_files/files-hosts.c: Correct problem with three or more
1141 entries with the same name.
1142
1143 * nss/nss_files/files-hosts.c: Implement multi handling.
1144 * resolv/Versions: Export _res_hconf for GLIBC_2.2 from libc.
1145
1146 2000-07-22 Ulrich Drepper <drepper@redhat.com>
1147
1148 * nss/nss_files/files-parse.c: Don't pollute namespace by using
1149 strcasecmp.
1150
1151 * grp/Makefile: Change Makefiles and tests to run only when necessary.
1152 * malloc/Makefile: Likewise.
1153 * malloc/tst-mtrace.sh: Likewise.
1154 * posix/Makefile: Likewise.
1155 * posix/globtest.sh: Likewise.
1156 * posix/wordexp-tst.sh: Likewise.
1157 * string/Makefile: Likewise.
1158
1159 2000-07-22 Mark Kettenis <kettenis@gnu.org>
1160
1161 * locale/findlocale.c (locale_file_list): Use __LC_LAST as array
1162 size instead of LC_ALL to take into account the new locale
1163 categories.
1164
1165 2000-07-22 Ulrich Drepper <drepper@redhat.com>
1166
1167 * iconv/gconv_trans.c: Correct a few bugs in the search loop. Remove
1168 remainders of hash table.
1169 * locale/categories.def: Remove remainders of transliteration
1170 hash table.
1171 * locale/langinfo.h: Likewise.
1172 * locale/programs/ld-ctype.c: Likewise. Fix code to write out
1173 transliteration tables.
1174
1175 * locale/gen-translit.pl: New file.
1176 * locale/C-translit.h.in: New file.
1177 * locale/C-ctype.c: Include C-translit.h. Initialize transliteration
1178 data pointers with data from this file.
1179 * locale/Makefile (distribute): Add C-translit.h.in, C-translit.h,
1180 and gen-translit.pl.
1181 Add rule to generate C-translit.h.
1182 * intl/tst-translit.c (main): Update for now performed
1183 transliteration.
1184
1185 * stdio-common/vfscanf.c: Handle input -- with format %f correctly
1186 (it's no input error).
1187 * stdio-common/tstscanf.c: Add test case for format %f with input --.
1188 * stdio-common/scanf12.c: Correct expected result for first scanf.
1189
1190 * stdio-common/vfprintf.c (process_string_arg): Correct handling
1191 of multibyte character strings in %s format with precision.
1192
1193 2000-07-21 Ulrich Drepper <drepper@redhat.com>
1194
1195 * locale/programs/ld-collate.c (collate_read): Allow collating
1196 symbols and elements be named in reorder-after instructions.
1197 Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
1198
1199 * locale/programs/ld-collate.c (handle_ellipsis): Test for
1200 duplication with generated name, not the name of the first
1201 character.
1202 Patch by Yong Li <yong.li@asu.edu>.
1203
1204 * sysdeps/powerpc/strchr.S: Correct bugs introduced in BP-ification.
1205 Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1206
1207 2000-07-21 Wolfram Gloger <wg@malloc.de>
1208
1209 * malloc/malloc.c (chunk_alloc): Try mmap_chunk() for smaller
1210 allocations only if a non-main arena cannot be extended.
1211
1212 2000-07-21 Ulrich Drepper <drepper@redhat.com>
1213
1214 * elf/dl-load.c (_dl_map_object): Take loader==NULL into account
1215 in DF_1_NODEFLIB handling.
1216
1217 2000-07-21 Andreas Jaeger <aj@suse.de>
1218
1219 * elf/Makefile ($(test-modules)): Exclude filtmod1.so, it has its
1220 own rule.
1221
1222 * libio/fwide.c: Include <wchar.h> for prototype.
1223
1224 2000-07-21 Greg McGary <greg@mcgary.org>
1225
1226 * malloc/malloc.c (next_chunk, prev_chunk, inuse_bit_at_offset,
1227 set_inuse_bit_at_offset, clear_inuse_bit_at_offset, set_foot):
1228 Define in terms of chunk_at_offset.
1229 (inuse, set_inuse, clear_inuse): Define in terms of next_chunk.
1230 (next_bin, prev_bin): offset by size of real array elements.
1231 (chunk_align): Make `m' a scalar, since that's how it's used.
1232
1233 2000-07-21 Greg McGary <greg@mcgary.org>
1234
1235 * sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from
1236 UNCHECK_BOUNDS.
1237 * sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant.
1238 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
1239 Wrap bounds around argv & envp and each of their string members.
1240 * sysdeps/powerpc/elf/start.S: Designate BP symbols.
1241 * sysdeps/unix/sysv/linux/powerpc/brk.S: Wrap entry-point
1242 symbol in BP_SYM (). Discard bounds of address arg.
1243 * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
1244 * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64):
1245 Discard bounds on address arg, add bounds to return value.
1246
1247 2000-07-20 Ulrich Drepper <drepper@redhat.com>
1248
1249 * elf/Makefile (tests): Add filter. Add rules to generate filter.
1250 * elf/filter.c: New file.
1251 * elf/filtmod1.c: New file.
1252 * elf/filtmod2.c: New file.
1253
1254 * elf/rtld.c: Define _dl_bind_not variable.
1255 (process_envvars): Recognize LD_BIND_NOT and set _dl_bind_not.
1256 * elf/dl-support.c: Likewise.
1257 * sysdeps/generic/ldsodefs.h: Declare _dl_bind_not.
1258 * elf/dl-runtime.c (fixup): Don't remember looked up value if
1259 _dl_bind_not.
1260 (profile_fixup): Likewise.
1261
1262 * libio/Makefile (routines): Add fwide.
1263 * libio/iofwide.c (_IO_fwide): Remove locking. This is done in
1264 fwide now. Internal calls to _IO_fwide must do locking themselves
1265 or don't need locking.
1266 * libio/fwide.c: New file.
1267
1268 * elf/dl-load.c (_dl_map_object): Implement handling of DF_1_NODEFLIB.
1269
1270 * elf/Makefile: Add no modules for nodelete test.
1271 * elf/nodelmod3.c: New file.
1272 * elf/nodelmod4.c: New file.
1273 * elf/nodelete.c: Also test case where dependency of dlopen() object
1274 is marked nodelete.
1275
1276 * elf/Makefile (tests): Add nodlopen. Add rules to generate nodlopen.
1277 * elf/nodlopen.c: New file.
1278 * elf/nodlopenmod.c: New file.
1279 * include/dlfcn.h: Define __RTLD_DLOPEN.
1280 * elf/dl-load.c (_dl_map_object_from_fd): If DF_1_NOOPEN is set
1281 and this is a dlopen() call, do not load the binary.
1282 * dlfcn/dlopen.c: Add __RTLD_DLOPEN to mode passed down to _dl_open.
1283 * dlfcn/dlopenold.c: Likewise.
1284 * configure.in: Add test for -z nodelete option.
1285 * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
1286
1287 2000-07-20 Mark Kettenis <kettenis@gnu.org>
1288
1289 Make Hesiod NSS module thread-safe.
1290
1291 * hesiod/README.hesiod: Update.
1292
1293 * hesiod/Versions [GLIBC_2.2]: Add _nss_hesiod_getservbyport_r,
1294 _nss_hesiod_setprotoent, _nss_hesiod_endprotoent,
1295 _nss_hesiod_getprotobyname_r, and _nss_hesiod_getprotobynumber_r.
1296 * hesiod/Makefile (libnss_hesiod-routines): Add hesiod-init and
1297 hesiod-proto.
1298 * hesiod/nss_hesiod/hesiod-init.c: New file.
1299 * hesiod/nss_hesiod/hesiod-pwd.c: Rewritten for thread-safeness.
1300 * hesiod/nss_hesiod/hesiod-grp.c: Likewise.
1301 * hesiod/nss_hesiod/nss_hesiod.h: New file.
1302 * hesiod/nss_hesiod/hesiod-service.c
1303 (_nss_hesiod_getservbyport_r): New function. Provide support for
1304 looking up services by port number.
1305 * hesiod/nss_hesiod/hesiod-proto.c: New file.
1306
1307 * hesiod/hesiod.c: Update from BIND 8.2.3-T5B.
1308 * hesiod/hesiod.h: Likewise.
1309 * hesiod/hesiod_p.h: Likewise.
1310
1311 2000-07-20 Mark Kettenis <kettenis@gnu.org>
1312
1313 Fix problems with `struct __res_state' getting too big.
1314 * resolv/resolv.h (struct __sockaddr_in): New definition.
1315 (struct __res_state): Use __sockaddr_in instead of sockaddr_in in
1316 the private parts of the structure to save some space.
1317 * resolv/res_send.c (res_nsend): Cast &EXT(statp).nsaddrs[ns] to
1318 (struct sockaddr_in *) in call to sock_eq.
1319 Use memcpy to copy statp->nsaddr_list[ns] to &EXT(statp).nsaddrs[ns].
1320
1321 2000-07-20 Ulrich Drepper <drepper@redhat.com>
1322
1323 * elf/elf.h: Add various DF_1_*, DTF_1_*, and DF_P1_* entries.
1324 * elf/dl-close.c (_dl_close): Don't close an object if it is marked
1325 with nodelete.
1326 * elf/dl-open.c (dl_open_worker): Pass RTLD_NOLOAD as new parameter
1327 to _dl_map_object. Return immediately if no object loaded.
1328 Set DF_1_NODELETE bit in l_flags_1 if RTLD_NODELETE was passed.
1329 * elf/dynamic-link.h (elf_get_dynamic_info): Copy DT_FLAGS_1 entry
1330 if it exists into l_flags_1 word.
1331 * elf/dl-load.c (_dl_map_object_from_fd): Take no parameter and use
1332 it to determine whether loading is wanted or not.
1333 (_dl_map_object): Likewise.
1334 Call _dl_map_object_from_fd with new parameter.
1335 * sysdeps/generic/ldsodefs.h: Update prototype.
1336 * elf/dl-deps.c: Add new parameter to _dl_map_object calls.
1337 * elf/rtld.c: Likewise.
1338 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
1339 * elf/Makefile (tests): Add noload. Add rules to generate noload.
1340 * elf/noload.c: New file.
1341 * include/link.h (struct link_map): Add l_feature_1 and l_flags_1.
1342 * sysdeps/generic/bits/dlfcn.h: Define RTLD_NOLOAD and RTLD_NODELETE.
1343 * sysdeps/mips/bits/dlfcn.h: Likewise.
1344 * elf/Makefile (tests): Add $(tests-nodelete-$(have-z-nodelete)).
1345 (tests-nodelete-yes): Define.
1346 (modules-names): Add $(modules-nodelete-$(have-z-nodelete)).
1347 Add rules to build nodelete and modules.
1348 * elf/nodelete.c: New file.
1349 * elf/nodelmod1.c: New file.
1350 * elf/nodelmod2.c: New file.
1351 * configure.in: Add test for -z nodelete option.
1352 * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
1353
1354 * libio/Makefile (tests): Add tst_wprintf2.
1355 (tst_wprintf2-ARGS): Define.
1356 * libio/tst_wprintf2.c: New file.
1357 Based on a test case by Yoshito Kawada <KAWADA@jp.ibm.com>.
1358
1359 * libio/wfiledoalloc.c: Only allocate external buffer if this
1360 hasn't happened yet.
1361
1362 * libio/wfileops.c (_IO_wdo_write): Overflow only if there is really
1363 something in the buffer. gconv call can write up to end of the
1364 buffer, not only _IO_write_end.
1365 (_IO_wfile_overflow): Allocate also external buffer.
1366
1367 2000-07-19 Ulrich Drepper <drepper@redhat.com>
1368
1369 * stdio-common/vfprintf.c (process_string_arg): Handle multibyte
1370 strings with precision in vfwprintf correctly.
1371 * stdio-common/vfprintf.c: Fix completely broken handling of
1372 unbuffered wide character streams.
1373 Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
1374
1375 * resolv/Makefile (distribute): Add README.
1376
1377 * resolv/README: New file. By Mark Kettenis <kettenis@gnu.org>.
1378
1379 2000-07-18 Mark Kettenis <kettenis@gnu.org>
1380
1381 Update resolver code to BIND 8.2.3-T5B.
1382
1383 * resolv/Versions [GLIBC_2.2] (libc): Add __res_init and
1384 __res_nclose.
1385 [GLIBC_2.2] (libresolv): Add __dn_expand, __ns_samename,
1386 __res_mkquery, __res_nsend, __res_query, __res_querydomain and
1387 __res_search.
1388 * resolv/Banner: BIND-8.2.3-T5B.
1389
1390 * resolv/base64.c: Update from BIND 8.2.3-T5B.
1391 * resolv/herror.c: Likewise.
1392 * resolv/inet_addr.c: Likewise.
1393 * resolv/inet_net_ntop.c: Likewise.
1394 * resolv/inet_net_pton.c: Likewise.
1395 * resolv/inet_neta.c: Likewise.
1396 * resolv/inet_ntop.c: Likewise.
1397 * resolv/nsap_addr.c: Likewise.
1398 * resolv/inet_pton.c: Likewise. Reject a few more more invalid
1399 IPv6 addresses (ISC bug #520).
1400
1401 * resolv/ns_name.c: Avoid emitting RCS ID in object file.
1402 * resolv/ns_parse.c: Likewise.
1403 * resolv/ns_netint.c: Likewise.
1404 * resolv/ns_samedomain.c: Likewise.
1405 * resolv/ns_ttl.c: Likewise.
1406 * resolv/ns_print.c: Update from BIND 8.2.3-T5B. Avoid emitting
1407 RCS ID in object file.
1408
1409 * resolv/res_debug.c: Update from BIND 8.2.3-T5B.
1410 * resolv/res_mkquery.c: Likewise.
1411 * resolv/res_query.c: Likewise.
1412 * resolv/res_init.c: Likewise.
1413 (res_setoptions): Mark internal.
1414 * resolv/res_send.c: Likewise.
1415 [_LIBC]: Fully reinstate the code that avoids the FD_SETSIZE limit
1416 by using poll instead.
1417 * resolv/res_comp.c: Likewise.
1418 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make dn_expand a
1419 weak alias for __dn_expand.
1420 * resolv/res_data.c: Likewise.
1421 (res_close) [_LIBC]: Don't call res_nclose if RES_INIT isn't set
1422 in _res.options. Avoids a potential security risk by avoiding a
1423 close (0).
1424 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make
1425 res_mkquery, res_query, res_querydomain adn res_search weak
1426 aliases for __res_mkquery, __res_query, __res_querydomain and
1427 __res_search.
1428 * resolv/res_libc.c: (_res): Don't initialize. Fix res_close
1429 instead to avoid close(0).
1430 (res_init): Always use the static resolver context.
1431 [SHLIB_COMPAT (libc, GLIBC_2.0, GLIBC_2_2)]: Make res_init a weak
1432 alias for __res_init.
1433
1434 * resolv/resolv.h: Update from BIND 8.2.3-T5B. Move definition of
1435 RES_SET_H_ERRNO and accompanying comment to...
1436 * include/resolv.h: ... here.
1437
1438 * resolv/arpa/namser.h: Update from BIND 8.2.3-T5B.
1439 * resolv/arpa/nameser_compat.h: Likewise.
1440
1441 2000-07-18 Ulrich Drepper <drepper@redhat.com>
1442
1443 * nss/makedb.c (main): Compare result of load_db with
1444 NSS_STATUS_SUCCESS and not 0.
1445 Patch by Jan Rekorajski <baggins@sith.mimuw.edu.pl>.
1446
1447 * sysdeps/unix/sysv/linux/Versions: Export __sysctl for GLIBC_2.2.
1448
1449 2000-07-18 Greg McGary <greg@mcgary.org>
1450
1451 * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): New macro.
1452 (EXTEND_BUFFER): Use it.
1453
1454 2000-07-18 Ulrich Drepper <drepper@redhat.com>
1455
1456 * include/libc-symbols.h: Define RETURN_ADDRESS macro.
1457 * dlfcn/dlopen.c: Use RETURN_ADDRESS instead of
1458 __builtin_return_address.
1459 * dlfcn/dlopenold.c: Likewise.
1460 * dlfcn/dlsym.c: Likewise.
1461 * dlfcn/dlvsym.c: Likewise.
1462 * elf/dl-profstub.c: Likewise.
1463 * malloc/malloc.c: Likewise.
1464 * sysdeps/generic/machine-gmon.h: Likewise.
1465 Based on a patch by schwidefsky@de.ibm.com.
1466
1467 2000-07-18 Andreas Jaeger <aj@suse.de>
1468
1469 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Pass 0 instead of
1470 NULL to elf_machine_fixup_plt t argument to silence GCC.
1471
1472 * include/string.h: Add prototype for __memchr.
1473
1474 * sysdeps/alpha/memchr.S: Fix copy & error in weak_alias.
1475
1476 * sysdeps/generic/memchr.c: Fix copy & paste error: Use memchr
1477 instead of memrchr.
1478
1479 2000-07-18 Ulrich Drepper <drepper@redhat.com>
1480
1481 * intl/Makefile: Make sure tst-translit is run after tst-gettext.
1482
1483 * locale/C-ctype.c: Add initializers for gap elements.
1484 * locale/programs/ld-ctype.c (ctype_output): Write out index entries
1485 for gap elements.
1486
1487 2000-07-16 Ulrich Drepper <drepper@redhat.com>
1488
1489 * nscd/nscd.c (print_version): Update copyright year.
1490
1491 2000-07-17 Greg McGary <greg@mcgary.org>
1492
1493 * sysdeps/unix/make-syscalls.sh: Handle new arg signature
1494 keyletters F, I, S, W. Remove unused keyletter V. Surround
1495 signature argnames with angle-brackets for use as word delimiters,
1496 and to induce syntax errors for any args not handled. Split
1497 multi-echo echoes and comment each stage.
1498 * sysdeps/unix/common/syscalls.list: Refine & correct signatures.
1499 * sysdeps/unix/inet/syscalls.list: Likewise.
1500 * sysdeps/unix/mman/syscalls.list: Likewise.
1501 * sysdeps/unix/syscalls.list: Likewise.
1502 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1503 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1504 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1505 * sysdeps/unix/sysv/syscalls.list: Likewise.
1506 * sysdeps/unix/sysv/linux/powerpc/syscalls.list
1507
1508 * sysdeps/generic/strcpy.c (strcpy): Stifle unused-value warnings.
1509 * sysdeps/unix/sysv/linux/execve.c (__execve): Add const
1510 qualifiers. Don't check NULL-terminator of argv & envp.
1511 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Use
1512 unbounded pointer type in word-size assertion.
1513 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add missing
1514 cases to stifle warnings.
1515
1516 * libio/iofdopen.c (_IO_new_fdopen): Pass _IO_FILE_plus pointer to
1517 _IO_file_attach.
1518 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
1519
1520 * include/libc-symbols.h (symbol_set_declare): Revert 2000-06-26 mods.
1521 * include/set-hooks.h (RUN_HOOK): Revert 2000-06-26 mods. Qualify
1522 ptr as __unbouned.
1523
1524 * Makerules (o-objects): Supplement with $(o-objects$o).
1525 * string/Makefile (o-objects.ob): Add variable to pull
1526 unbounded versions of memcpy, memset and memchr into libc_b.
1527
1528 * sysdeps/generic/bp-checks.h: Use unbounded __memchr
1529 rather than non-existent __ubp_memchr.
1530 (CHECK_STRINGopt, CHECK_FCNTL, BOUNDED_N, BOUNDED_1): New macros.
1531 (_CHECK_STRING, _CHECK_N): New macros.
1532 (CHECK_STRING, CHECK_N, CHECK_Nopt): Rewrite in terms of _CHECK_*.
1533 (CHECK_IOCTL): Move inside `#if !__ASSEMBLER__'.
1534 * sysdeps/alpha/memchr.S: Change strong name to "__memchr".
1535 Add weak alias "memchr".
1536 * sysdeps/generic/memchr.c: Likewise.
1537 * sysdeps/i386/memchr.S: Likewise.
1538 * sysdeps/ia64/memchr.S: Likewise.
1539 * sysdeps/m68k/memchr.S: Likewise.
1540 * sysdeps/sparc/sparc32/memchr.S: Likewise.
1541 * sysdeps/sparc/sparc64/memchr.S: Likewise.
1542 * sysdeps/vax/memchr.s: Likewise.
1543
1544 * iconv/gconv_trans.c: Add #include <stdlib.h> to get malloc decl.
1545
1546 * elf/dl-runtime.c (fixup): Trampoline passes unbounded pointer.
1547 (profile_fixup): Don't define for __BOUNDED_POINTERS__.
1548 * sysdeps/i386/dl-machine.h: Don't use regparm attribute for
1549 __BOUNDED_POINTERS__.
1550 (ELF_MACHINE_RUNTIME_TRAMPOLINE): Use non-regparm version
1551 for __BOUNDED_POINTERS__.
1552
1553 2000-07-17 Bruno Haible <haible@clisp.cons.org>
1554
1555 * iconv/gconv_open.c (__gconv_open): Initialize the __data
1556 field of struct __gconv_trans_data differently. Don't pass NULL to
1557 trans_init_fct. Simplify list append operation.
1558
1559 2000-07-14 Bruno Haible <haible@clisp.cons.org>
1560
1561 * intl/dcigettext.c (dcigettext): Call plural_eval on all platforms,
1562 not only those having tsearch.
1563
1564 2000-07-17 Ulrich Drepper <drepper@redhat.com>
1565
1566 * locale/langinfo.h: Add placeholder values in enum for removed
1567 LC_CTYPE entries.
1568
1569 2000-07-17 Jakub Jelinek <jakub@redhat.com>
1570
1571 * elf/dl-addr.c (_dl_addr): Keep searching in the _dl_loaded
1572 chain if the PHDR check fails.
1573
1574 2000-07-17 Mark Kettenis <kettenis@gnu.org>
1575
1576 * nss/getent.c (print_hosts): Make sure we always print a space
1577 between numeric addresses and hostnames.
1578
1579 2000-07-17 Wolfram Gloger <wg@malloc.de>
1580
1581 * malloc/malloc.c (chunk_alloc): Use mmap_chunk() only if allowed,
1582 i.e. if n_mmaps_max>0.
1583
1584 2000-07-16 Mark Kettenis <kettenis@gnu.org>
1585
1586 * resolv/netdb.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Adjust
1587 values to remove possible clash with other AI_* constants.
1588 (AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST): Define as
1589 hexadecimal constants to stress the fact they're in fact
1590 bit flags.
1591
1592 2000-07-15 Mark Kettenis <kettenis@gnu.org>
1593
1594 * nss/getXXent_r.c [NEED__RES]: Include <resolv.h>.
1595 (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Use res_ninit
1596 instead of res_init.
1597
1598 2000-07-16 Ulrich Drepper <drepper@redhat.com>
1599
1600 * crypt/md5-crypt.c (__md5_crypt_r): Add casts for first
1601 parameters of memset calls to avoid warnings.
1602
1603 2000-07-15 Ulrich Drepper <drepper@redhat.com>
1604
1605 * stdlib/Makefile: Rewrite rules to avoid running isomac unless
1606 necessary.
1607
1608 * sysdeps/unix/sysv/linux/getcwd.c: Correct last patch.
1609 Patch by Greg McGary <greg@mcgary.org>.
1610
1611 * io/Makefile (tests): Add tst-getcwd.
1612 * io/tst-getcwd.c: New file.
1613
1614 * io/Makefile: Rewrite rules to avoid running ftwtest unless necessary.
1615
1616 2000-07-15 Jakub Jelinek <jakub@redhat.com>
1617
1618 * iconv/gconv_open (__gconv_open): Initialize whole __gconv_trans_data
1619 structure.
1620
1621 2000-07-13 Jakub Jelinek <jakub@redhat.com>
1622
1623 * sysdeps/posix/sysconf.c: Undef __sysconf before weak_alias.
1624 * sysdeps/unix/bsd/getpt.c: Undef __getpt before weak_alias.
1625
1626 2000-07-12 H.J. Lu <hjl@gnu.org>
1627
1628 * sysdeps/unix/sysv/linux/ia64/Versions (libc): Add __clone2 to
1629 GLIBC_2.2.
1630 * sysdeps/unix/sysv/linux/ia64/Dist: Add clone2.S.
1631 * sysdeps/unix/sysv/linux/ia64/Makefile [$(subdir)=misc]
1632 (sysdep-routines): Add clone2.
1633 * sysdeps/unix/sysv/linux/ia64/clone2.S: New.
1634
1635 2000-07-13 Jes Sorensen <jes@linuxcare.com>
1636
1637 * sysdeps/unix/sysv/linux/ia64/clone.S: New file.
1638 * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
1639
1640 2000-06-05 David Mosberger <davidm@hpl.hp.com>
1641
1642 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: New file
1643 based on sysdeps/unix/sysv/linux/bits/siginfo.h.
1644 Change type of si_band from "int" to "long".
1645 (si_imm) [USE_GNU]: Define
1646 (si_isr) [USE_GNU]: Ditto.
1647 (ILL_BREAK) [USE_GNU]: Ditto.
1648 (FPE_DECOVF) [USE_GNU]: Ditto.
1649 (FPE_DECDIV) [USE_GNU]: Ditto.
1650 (FPE_DECERR) [USE_GNU]: Ditto.
1651 (FPE_INVASC) [USE_GNU]: Ditto.
1652 (FPE_INVDEC) [USE_GNU]: Ditto.
1653 (TRAP_BRANCH) [USE_GNU]: Ditto.
1654 (TRAP_HWBKPT) [USE_GNU]: Ditto.
1655
1656 2000-07-06 Jes Sorensen <jes@linuxcare.com>
1657
1658 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
1659 bits/sigcontext as struct mcontext does not depend on it.
1660
1661 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: New file.
1662
1663 2000-07-04 Jes Sorensen <jes@linuxcare.com>
1664
1665 * sysdeps/unix/sysv/linux/ia64/shmctl.c: Removed.
1666
1667 2000-07-04 David Mosberger-Tang <davidm@hpl.hp.com>
1668
1669 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: New file.
1670
1671 2000-06-22 Jes Sorensen <jes@linuxcare.com>
1672
1673 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: New file.
1674
1675 2000-07-15 Ulrich Drepper <drepper@redhat.com>
1676
1677 * intl/Makefile (test-srcs): Add tst-translit.
1678 (tests): Likewise.
1679 Add rules to build and run tst-translit.
1680 * intl/tst-translit.c: New file.
1681 * intl/tst-translit.sh: New file.
1682 * intl/translit.po: New file.
1683
1684 2000-07-14 Ulrich Drepper <drepper@redhat.com>
1685
1686 * iconv/loop.c (STANDARD_ERR_HANDLER): If one of the
1687 transliteration function did its job, continue, don't stop.
1688
1689 * iconvdata/iso646.c: Little optimizations in body for conversion
1690 from UCS4.
1691
1692 2000-07-14 Mark Kettenis <kettenis@gnu.org>
1693
1694 * dlfcn/dlerror.c (free_key_mem): Add cast to silence compiler warning.
1695
1696 2000-07-14 Mark Kettenis <kettenis@gnu.org>
1697
1698 * configure.in: Check for pwd binary.
1699 * config.make.in: Add PWD_P to be subsituted.
1700 * Makerules: Use $(PWD_P) instead of /bin/pwd.
1701
1702 2000-07-14 Ulrich Drepper <drepper@redhat.com>
1703
1704 * iconvdata/Makefile (modules): Add GB18030.
1705 (distribute): Add gb18030.c.
1706 * iconvdata/gconv-modules: Add entries for GB18030 module.
1707 * iconvdata/gb18030.c: New file.
1708 Contributed by Wang ShouHua <shouhuawang@redflag-linux.com>
1709 and Wu Jian.
1710
1711 2000-07-13 Andreas Jaeger <aj@suse.de>
1712
1713 * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Revert last
1714 patch.
1715
1716 * grp/fgetgrent.c (free_mem): Remove if - free (0) is valid.
1717 * inet/getnetgrent.c (free_mem): Likewise.
1718 * misc/mntent.c (free_mem): Likewise.
1719 * nss/getXXbyYY.c (free_mem): Likewise.
1720 * nss/getXXent.c (free_mem): Likewise.
1721 * pwd/fgetpwent.c (free_mem): Likewise.
1722 * shadow/fgetspent.c (free_mem): Likewise.
1723
1724 2000-07-14 Ulrich Drepper <drepper@redhat.com>
1725
1726 * sunrpc/xdr.c (xdr_u_long): Handle reading of unsigned long on
1727 64-bit architecture correctly [PR libc/1794].
1728
1729 2000-07-13 Ulrich Drepper <drepper@redhat.com>
1730
1731 * elf/Versions (ld): Export _dl_out_of_memory for GLIBC_2.2.
1732 * dlfcn/dlerror.c (dlerror): Don't free the error string if it is the
1733 report that we are out of memory.
1734 * elf/dl-deps.c (_dl_map_object_deps): Likewise.
1735 * elf/dl-libc.c (dlerror_run): Likewise.
1736 * elf/dl-open.c (_dl_open): Likewise.
1737 * elf/rtld.c (dl_main): Likewise.
1738 * elf/dl-error.c: Define _dl_out_of_memory.
1739 (_dl_signal_error): Return _dl_out_of_memory if we cannot duplicate
1740 the error string.
1741 * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory.
1742 [PR libc/1813].
1743
1744 * dlfcn/dlerror.c (free_key_mem): Also free error string.
1745
1746 * iconv/loop.c: Fix comment.
1747
1748 * malloc/mtrace.c (tr_freehook): Return immediately if ptr is NULL.
1749
1750 2000-07-13 Andreas Jaeger <aj@suse.de>
1751
1752 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Correctly handle
1753 getcwd (NULL, size) with size > 0.
1754 Fixes PR libc/1788, reported by John Buddery <jvb@cyberscience.com>.
1755
1756 2000-07-13 Andreas Jaeger <aj@suse.de>
1757
1758 * posix/Makefile: Remove build rules for libposix.
1759
1760 2000-07-13 Andreas Schwab <schwab@suse.de>
1761
1762 * sysdeps/generic/glob.c (glob): Fix memory leak.
1763 [SHELL]: Remove reference to undefined variable `files'.
1764 Fixes PR libc/1782.
1765
1766 2000-07-13 Andreas Jaeger <aj@suse.de>
1767
1768 * sysdeps/unix/sysv/linux/mips/Versions: Add libgcc frame handling
1769 functions.
1770
1771 * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Only free
1772 memory if it was allocated.
1773
1774 2000-07-12 Ulrich Drepper <drepper@redhat.com>
1775
1776 * iconv/gconv_db.c (gen_steps): Always initialize __data field of
1777 step.
1778
1779 * iconv/gconv_open.c (__gconv_open): Reapply
1780 2000-07-12 Bruno Haible <haible@clisp.cons.org>
1781
1782 * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
1783
1784 * iconv/gconv_open.c: Undo last two changes for now. They break
1785 everything.
1786
1787 2000-07-12 Andreas Jaeger <aj@suse.de>
1788
1789 * elf/Makefile (SYSCONF-FLAGS): Added to pass sysconfdir to
1790 compiler.
1791 (CFLAGS-cache.c): Added, uses SYSCONF-FLAGS.
1792 (CFLAGS-dl-cache.c): Likewise.
1793 (CFLAGS-ldconfig.c): Added, passes directory locations.
1794
1795 * sysdeps/generic/dl-cache.h (LD_SO_CACHE): Use SYSCONFDIR to
1796 locate cache.
1797 * elf/ldconfig.c (LD_SO_CONF): Likewise.
1798 (main): Use configured LIBDIR and SLIBDIR.
1799
1800 2000-07-11 Jakub Jelinek <jakub@redhat.com>
1801
1802 * math/bits/cmathcalls.h (cimag): Add __THROW.
1803 (creal, conj): Likewise.
1804 * wctype/wctype.h (_ISwbit): Avoid warnings about shifting left
1805 by negative value.
1806
1807 2000-07-12 H.J. Lu <hjl@gnu.org>
1808
1809 * resolv/Versions (libresolv): Add __res_hostalias to GLIBC_2.2
1810 for _nss_dns_gethostbyname2_r in resolv/nss_dns/dns-host.c.
1811
1812 2000-07-12 Ulrich Drepper <drepper@redhat.com>
1813
1814 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Shut gcc up although
1815 it is wrong.
1816
1817 2000-07-12 Bruno Haible <haible@clisp.cons.org>
1818
1819 * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
1820
1821 2000-07-12 Bruno Haible <haible@clisp.cons.org>
1822
1823 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Initialize
1824 __modname.
1825
1826 2000-07-12 Bruno Haible <haible@clisp.cons.org>
1827
1828 * iconv/gconv_open.c (__gconv_open): Initialize
1829 result->__steps[cnt].__data.
1830
1831 2000-07-12 Mark Kettenis <kettenis@gnu.org>
1832
1833 * nss/getent.c (services_keys): Pass port number in network byte
1834 order in call to getservbyport.
1835
1836 2000-07-11 Andreas Jaeger <aj@suse.de>
1837
1838 * stdlib/Makefile (test-canon-ARGS): Fix for building in the
1839 source dir.
1840 * intl/Makefile (do-gettext-test): Likewise.
1841 * dirent/Makefile (opendir-tst1-ARGS): Likewise.
1842
1843 2000-07-11 Andreas Schwab <schwab@suse.de>
1844
1845 * Makeconfig (run-program-prefix): New rule.
1846 (built-program-cmd): Use run-program-prefix.
1847
1848 2000-07-12 Ulrich Drepper <drepper@redhat.com>
1849
1850 * locale/langinfo.h: Make CRNCYSTR, RADIXCHAR, THOUSANDS_SEP, YESEXPR,
1851 and NOEXPR unconditionally available.
1852
1853 2000-07-12 Greg McGary <greg@mcgary.org>
1854
1855 * sysdeps/generic/open64.c: Wrap extern symbols in BP_SYM ().
1856 * sysdeps/posix/open64.c: Likewise.
1857 * sysdeps/generic/fegetenv.c: Likewise.
1858 * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
1859 * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
1860 * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
1861 * sysdeps/powerpc/fpu/fgetexcptflg.c: Likewise.
1862 * sysdeps/powerpc/fpu/fraiseexcpt.c: Likewise.
1863 * sysdeps/powerpc/fpu/fsetexcptflg.c: Likewise.
1864
1865 2000-07-11 Greg McGary <greg@mcgary.org>
1866
1867 * include/libc-symbols.h [!__ASSEMBLER__] (strong_alias):
1868 Add extra level of macro expansion.
1869 [!__ASSEMBLER__ && HAVE_WEAK_SYMBOLS] (weak_alias): nLikewise.
1870 * sysdeps/generic/bp-thunks.h: Ensure `struct timeval' definition
1871 is available at the time `select' prototype is declared.
1872 * sysdeps/unix/make-syscalls.sh: Remove unused variables.
1873 Collect non-versioned weak aliases. Consider only non-versioned
1874 aliases for the user-visible systemcall name. Do checks inline with
1875 call to primitive system call.
1876 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add void cast to
1877 stand-alone bounds checks to suppress unused value warnings.
1878 * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
1879
1880 2000-07-10 Mark Kettenis <kettenis@gnu.org>
1881
1882 * sysdeps/mach/hurd/check_fds.c: New file. Implements
1883 file descriptor checking in SUID programs for the Hurd.
1884
1885 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Use
1886 res_hostalias instead of __hostalias for thread-safety.
1887
1888 2000-07-09 Mark Kettenis <kettenis@gnu.org>
1889
1890 * elf/rtld.c (dl_main): Move call to __libc_check_standard_fds...
1891 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): ... to here.
1892
1893 2000-07-10 Ulrich Drepper <drepper@redhat.com>
1894
1895 * include/features.h: Include ISO C99 features if the compiler used
1896 is an ISO C99 compiler.
1897 Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
1898
1899 2000-07-08 Mark Kettenis <kettenis@gnu.org>
1900
1901 * iconv/gconv_conf.c: Include <bits/libc-lock.h>.
1902
1903 2000-07-10 Andreas Jaeger <aj@suse.de>
1904
1905 * sysdeps/unix/sysv/linux/i386/sigaction.c: Make alias weak since
1906 it's overridden by libpthreads.
1907 * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
1908 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
1909 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
1910 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
1911 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
1912
1913 * malloc/Makefile: Run tst-mtrace only with shared libs.
1914
1915 * stdio-common/Makefile: Run unbputc and tst-printf tests only
1916 with shared libs.
1917
1918 2000-07-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1919
1920 * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Verify
1921 that gpreg really points to the GOT section of the calling object.
1922 Scan all PT_LOAD segments of objects for stub_pc, instead of only
1923 checking a start address of first one.
1924 Fix typos.
1925 * sysdeps/mips/mips64/dl-machine.h (elf_machine_runtime_link_map):
1926 Likewise.
1927
1928 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Fix a typo.
1929
1930 2000-07-10 Andreas Jaeger <aj@suse.de>
1931
1932 * sysdeps/unix/sysv/linux/sigaction.c: Fix typo
1933 (string_alias->strong_alias).
1934
1935 2000-07-08 Mark Kettenis <kettenis@gnu.org>
1936
1937 * hurd/hurd/fd.h: Include <cthreads.h> instead of <lock-intern.h>.
1938
1939 2000-07-07 Greg McGary <greg@mcgary.org>
1940
1941 * sysdeps/unix/make-syscalls.sh: Tolerate syscalls that
1942 have no names without leading underscores.
1943
1944 2000-07-07 Ulrich Drepper <drepper@redhat.com>
1945
1946 * iconvdata/sjis.c (from_ucs4_lat1): Fix mappng of U005C and
1947 U007E.
1948
1949 * stdio-common/Makefile (tests): Remove tst-printf here...
1950 (tests-srcs): ...and add it here.
1951 (distribute): Add tst-unbputc.sh and tst-printf.sh.
1952 Add rules to run tst-printf.sh.
1953 * stdio-common/tst-printf.c: Move code around so that there is really
1954 no further output where it's stated.
1955 * stdio-common/tst-printf.sh: New file.
1956
1957 2000-07-07 Mark Kettenis <kettenis@gnu.org>
1958
1959 * hurd/vpprintf.c [USE_IN_LIBIO]: Include <libioP.h>.
1960 (do_write): Renamed from pwrite.
1961 (vpprintf) [USE_IN_LIBIO]: Adjust for renaming and reshufling of
1962 `struct _IO_cookie_file'.
1963
1964 2000-07-07 Ulrich Drepper <drepper@redhat.com>
1965
1966 * malloc/mtrace.pl: Exit with exit code 1 if any leak was
1967 detected.
1968 * malloc/tst-mtrace.sh: Run mtrace script.
1969
1970 2000-07-07 Greg McGary <greg@mcgary.org>
1971
1972 * posix/regex.c (EXTEND_BUFFER): Compute increment once.
1973 Move all three components of a bounded pointer.
1974
1975 2000-07-07 Ulrich Drepper <drepper@redhat.com>
1976
1977 * locale/programs/locale.c (write_locales): Don't simply add all
1978 directories found in the subdir, test whether at least the
1979 LC_CTYPE file is in there.
1980
1981 2000-07-06 Ulrich Drepper <drepper@redhat.com>
1982
1983 * iconvdata/euc-jp.c: Map characters in C1 area to itself.
1984 * iconvdata/euc-kr.c: Likewise.
1985
1986 * stdio-common/vfprintf.c (process_string_arg): Check result of
1987 wcrtomb call and bail out if it failed.
1988
1989 * malloc/Makefile (test-srcs): Add tst-mtrace.
1990 (distribute): Add tst-mtrace.sh.
1991 Add rule to run tst-mtrace.sh.
1992 * malloc/tst-mtrace.c: New file.
1993 * malloc/tst-mtrace.sh: New file.
1994
1995 * include/signal.h: Declare __libc_sigaction.
1996 * sysdeps/unix/sysv/linux/Versions: Export __libc_sigaction.
1997 * sysdeps/unix/sysv/linux/sigaction.c: Add __libc_sigaction alias.
1998 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
1999 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
2000 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
2001 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
2002 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
2003
2004 * configure.in: Fix CFLAGS-memprofstat.c definition after
2005 2000-06-19 change.
2006 Patch by Bradford W. Johnson <bradford@math.umn.edu>.
2007
2008 2000-07-06 Jakub Jelinek <jakub@redhat.com>
2009
2010 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Pass 0
2011 instead of NULL to elf_machine_fixup_plt t argument.
2012 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
2013 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c (__mmap64): Add
2014 cast.
2015
2016 2000-07-06 Andreas Jaeger <aj@suse.de>
2017
2018 * crypt/Makefile (LDLIBS-cert): Removed.
2019 (LDLIBS-md5c-test): Removed.
2020 ($(objpfx)cert): Renamed from cert.out to fix dependencies.
2021 ($(objpfx)md5c-test): Likewise for md5c-test.out.
2022
2023 2000-07-06 Andreas Jaeger <aj@suse.de>
2024
2025 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): The type
2026 of the proc system is "proc".
2027
2028 * sysdeps/generic/libc-start.c (__libc_start_main): Initialize
2029 thread library for static programs.
2030
2031 2000-07-06 Greg McGary <greg@mcgary.org>
2032
2033 * sysdeps/generic/bp-checks.h (CHECK_SIGSET, CHECK_SIGSETopt):
2034 New macros.
2035 * sysdeps/generic/strcpy.c: Add bounds checks.
2036 * sysdeps/unix/fxstat.c: Likewise.
2037 * sysdeps/unix/xstat.c: Likewise.
2038 * sysdeps/unix/common/lxstat.c: Likewise.
2039 * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
2040 * sysdeps/unix/sysv/linux/execve.c: Likewise.
2041 * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
2042 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
2043 * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
2044 * sysdeps/unix/sysv/linux/getdents.c: Likewise.
2045 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
2046 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
2047 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
2048 * sysdeps/unix/sysv/linux/poll.c: Likewise.
2049 * sysdeps/unix/sysv/linux/pread.c: Likewise.
2050 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
2051 * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
2052 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
2053 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
2054 * sysdeps/unix/sysv/linux/readv.c: Likewise.
2055 * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
2056 * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
2057 * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
2058 * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
2059 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
2060 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
2061 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
2062 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
2063 * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
2064 * sysdeps/unix/sysv/linux/ustat.c: Likewise.
2065 * sysdeps/unix/sysv/linux/writev.c: Likewise.
2066 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
2067 * sysdeps/unix/sysv/linux/xstat.c: Likewise.
2068 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
2069 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
2070 * sysdeps/unix/sysv/linux/i386/brk.c: Likewise.
2071 * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
2072 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
2073 * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
2074 * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
2075 * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
2076 * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
2077 * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
2078 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
2079 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
2080 * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
2081 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
2082 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
2083 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
2084 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
2085 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
2086 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
2087 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
2088 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
2089 * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
2090 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
2091 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
2092 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2093 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2094 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2095 * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
2096 * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
2097 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
2098 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: Likewise.
2099 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
2100 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
2101 * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
2102 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Likewise.
2103
2104 * string/endian.h (__LONG_LONG_PAIR): New macro.
2105 * sysdeps/unix/sysv/linux/ftruncate64.c: Use it.
2106 * sysdeps/unix/sysv/linux/pread.c: Likewise.
2107 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
2108 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
2109 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
2110 * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
2111 * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
2112 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
2113 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2114 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2115 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2116 * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
2117
2118 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_SYSCALL): Fix LHS.
2119
2120 2000-07-06 Andreas Jaeger <aj@suse.de>
2121
2122 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path):
2123 Initialize result.
2124
2125 * math/test-fpucw.c: Include <stdio.h> for printf.
2126
2127 2000-07-05 Greg McGary <greg@mcgary.org>
2128
2129 * sysdeps/generic/bp-checks.h: New file.
2130 * sysdeps/generic/bp-thunks.h: Replace generic thunk definitions
2131 with list of #include files.
2132 * sysdeps/unix/make-syscalls.sh: Handle new arg signature
2133 keyletters a, b, B, f, n, N, P, v, V. Fixup some indentation.
2134 Don't generate BP thunk if `V' appears in signature.
2135 Generate thunks with complete bounds checks.
2136 * sysdeps/unix/syscalls.list: Refine signatures using new keyletters.
2137 * sysdeps/unix/inet/syscalls.list: Likewise.
2138 * sysdeps/unix/mman/syscalls.list: Likewise.
2139 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2140 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2141 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2142 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.
2143
2144 2000-07-05 Ulrich Drepper <drepper@redhat.com>
2145
2146 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Cache
2147 result. Search first in /etc/mtab (proc/mounts would be stupid).
2148 If mount not in the file fall back on /proc.
2149
2150 * crypt/md5-crypt.c (__md5_crypt_r): Clear arrays the key and salt
2151 string got copied in.
2152 Patch by Solar Designer <solar@false.com>.
2153
2154 2000-07-05 Andreas Jaeger <aj@suse.de>
2155
2156 * manual/install.texi (Installation): Update information about
2157 add-ons.
2158 (Configuring and compiling): Update for glibc 2.2.
2159
2160 2000-07-04 Andreas Jaeger <aj@suse.de>
2161
2162 * sysdeps/i386/fpu_control.h (_FPU_DEFAULT): Correct value.
2163 (_FPU_IEEE): Likewise.
2164
2165 * math/Makefile (tests): Add test-fpucw.
2166
2167 * math/test-fpucw.c (main): New file.
2168
2169 2000-07-05 Ulrich Drepper <drepper@redhat.com>
2170
2171 * locale/loadlocale.c (_nl_unload_locale): Add cast to avoid warning.
2172
2173 * locale/programs/ld-collate.c (collate_output): Also write out the
2174 collation sequence values and the wide character string for the
2175 collation symbol table.
2176
2177 * posix/fnmatch.c: Include "../locale/elem-hash.h".
2178 * posix/fnmatch_loop.c: Implement collating symbol handling.
2179 * posix/tst-fnmatch.input: Add more tests, especially for collating
2180 symbol handling.
2181
2182 * posix/regex.c: Fix comment.
2183
2184 2000-07-05 Andreas Jaeger <aj@suse.de>
2185
2186 * sysdeps/mips/fpu_control.h: Fix type of fpu_control_t.
2187 (_FPU_GETCW): Remove extra colon.
2188 Patch by Ralf Baechle <ralf@uni-koblenz.de>.
2189
2190 * posix/fnmatch_loop.c (FCT): Only declare len if
2191 !WIDE_CHAR_VERSION to silence GCC.
2192
2193 * sysdeps/generic/rawmemchr.c: Include <stdlib.h> for abort
2194 prototype.
2195 * sysdeps/generic/strchrnul.c: Likewise.
2196 * sysdeps/generic/strlen.c: Likewise.
2197 * sysdeps/generic/strchr.c: Likewise.
2198 * sysdeps/generic/memchr.c: Likewise.
2199
2200 2000-07-04 Ulrich Drepper <drepper@redhat.com>
2201
2202 * posix/fnmatch_loop.c: Implement equivalence class handling.
2203 * posix/tst-fnmatch.input: Add tests for equivalence class
2204 handling.
2205
2206 * posix/fnmatch_loop.c: Improve performance for single-byte
2207 character sets by not using btowc.
2208
2209 * posix/tst-fnmatch.input: Add tests for locale dependent
2210 behaviour.
2211 * posix/tst-fnmatch.c (main): Also set LC_CTYPE category.
2212
2213 * posix/tst-fnmatch.input: Add more test cases.
2214
2215 * crypt/md5-crypt.c (__md5_crypt_r): If buffers for key and salt
2216 are not aligned to alignof(md5_uint32) do it before calling
2217 __md5_process_bytes.
2218 * crypt/md5.c: Make sure buffers are aligned.
2219 * crypt/md5.h: Likewise.
2220 Reported by Solar Designer <solar@false.com>.
2221
2222 * crypt/Makefile: Add dependencies for test programs.
2223
2224 * Rules: Define LC_ALL=C in environments of all programs we run.
2225
2226 * intl/tst-gettext.sh (LC_ALL): Define to C and export.
2227
2228 2000-07-03 H.J. Lu <hjl@gnu.org>
2229
2230 * locale/programs/ld-ctype.c (ctype_output): The size of iov
2231 is 2 + elem + offset, not 2 + elem + offset + 2.
2232
2233 2000-07-04 Ulrich Drepper <drepper@redhat.com>
2234
2235 * posix/fnmatch_loop.c: Fix two problems uncovered by the new test
2236 suite.
2237 * posix/Makefile (tests): Add tst-fnmatch.
2238 (tst-fnmatch-ENV): Define.
2239 * posix/tst-fnmatch.c: New file.
2240 * posix/tst-fnmatch.sh: New file.
2241
2242 2000-07-04 NIIBE Yutaka <gniibe@chroot.org>
2243
2244 * locale/programs/charmap.c (charmap_read): Prepend
2245 the condition filename == NULL.
2246
2247 2000-07-03 Greg McGary <greg@mcgary.org>
2248
2249 * sysdeps/i386/bits/setjmp.h (PUSH_SIGNAL_MASK): Fix typo.
2250
2251 * csu/Makefile (extra-objs, install-lib): Add BP objects conditionally.
2252 ($(objpfx)b$(start-installed-name)): Add non-elf rule.
2253
2254 * libio/libio.h (_IO_FILE): Revert type of _chain to _IO_FILE*.
2255 * libio/libioP.h (_IO_ITER): Revert to type _IO_FILE*.
2256 (FILEBUF_LITERAL): Add cast for CHAIN init.
2257 * libio/genops.c (_IO_un_link, _IO_link_in, _IO_iter_begin): Add casts.
2258 (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
2259 Revert type of `fp' to _IO_FILE*.
2260 (_IO_iter_file): Remove cast.
2261 (_IO_iter_next): Elide intermediate member reference.
2262
2263 * sysdeps/powerpc/strchr.S: Check bounds.
2264 Wrap extern symbols in BP_SYM ().
2265
2266 2000-07-03 Andreas Jaeger <aj@suse.de>
2267
2268 * dlfcn/Makefile (generated): New.
2269
2270 2000-07-03 Ulrich Drepper <drepper@redhat.com>
2271
2272 * libio/genops.c (__overflow): Use _IO_fwide to orient the stream.
2273 (__uflow): Likewise.
2274 (__underflow): Likewise.
2275 * libio/wgenops.c (__wunderflow): Likewise.
2276 * stdio-common/tst-unbputc.c: New file.
2277 * stdio-common/tst-unbputc.sh: New file.
2278 * stdio-common/Makefile: Add rules to build and run tst-unbputc.
2279
2280 * po/en_GB.po: New file.
2281 Contributed by Robert Brady <rwb197@ecs.soton.ac.uk>.
2282
2283 2000-07-01 Andreas Jaeger <aj@suse.de>
2284
2285 * intl/Makefile (generated-dirs): New.
2286
2287 * elf/Makefile (generated): trusted-dirs.h is always generated,
2288 move out of build-shared condition.
2289 (generated): Merge the two entries for build-shared.
2290
2291 2000-07-01 Ulrich Drepper <drepper@redhat.com>
2292
2293 * debug/Makefile (distribute): Add xtrace.sh.
2294
2295 2000-06-30 Ulrich Drepper <drepper@redhat.com>
2296
2297 * version.h (VERSION): Bump to 2.1.91.
2298
2299 * configure.in: Update warning comment. glibc should not be
2300 broken anymore.
2301
2302 * sysdeps/unix/sysv/linux/ia64/Dist: Remove old content. Add
2303 ioperm.c, sys/procfs.h, and sys/io.h.
2304
2305 * sysdeps/powerpc/Dist: Add bp-asm.h.
2306
2307 * assert/Depend: Add localedata.
2308 * assert/Makefile (test-assert-ENV): New. Define LANGUAGE=C.
2309 (test-assert-perr-ENV): New. Define LANGUAGE=C.
2310
2311 * sysdeps/alpha/dl-machine.h (elf_machine_rela) [r_type ==
2312 R_ALPHA_REFQUAD]: Use memcpy to load and store value from
2313 relocation address to prevent unaligned trap.
2314 Suggested by Richard Henderson <rth@cygnus.com>.
2315
2316 2000-06-30 Jakub Jelinek <jakub@redhat.com>
2317
2318 * io/sys/stat.h (stat64, lstat64, fstat64): Don't define inlines
2319 if redirecting and either redirection is done using defines or
2320 not optimizing.
2321
2322 2000-06-30 Ulrich Drepper <drepper@redhat.com>
2323
2324 * sunrpc/rpc_cout.c (inline_struct): Add missing parenthesis in
2325 generated expressions.
2326 Patch by Darren McClelland <dmcclell@zetec.com>.
2327
2328 * timezone/Makefile (build-testdata): Set LANGUAGE and LC_ALL
2329 since zic uses setlocale and gettext but we cannot make it use the
2330 new locale data since zic calls a shell which might not use the
2331 new libc.
2332
2333 * stdlib/strfmon.c: Move somewhat closer to the standard wrt to
2334 handling the internation currency symbol. POSIX says that the
2335 fourth character is used to separate the currency symbol from the
2336 value. Therefore it does not have to be printed. But we cannot
2337 remove the space if the currency symbol is printed before the
2338 number since this is what many locales expect.
2339
2340 * iconv/gconv_trans.c: Test with _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN
2341 whether this information is available.
2342
2343 * intl/dcigettext.c (_nl_find_msg): Correct reallocation of
2344 buffers in case the translation is too large. Remember allocated
2345 memory blocks in a list.
2346 (free_mem): Free memory for translations.
2347
2348 * intl/tst-gettext.c: Use correct locale. Improve error messages.
2349
2350 * locale/programs/ld-ctype.c (ctype_output): If no default_missing
2351 information is available set the string length to zero.
2352
2353 * sysdeps/i386/i686/strcmp.S: Little optimization in non-BP case.
2354
2355 2000-06-30 Greg McGary <greg@mcgary.org>
2356
2357 * sysdeps/powerpc/bp-asm.h: New file.
2358 * sysdeps/powerpc/__longjmp.S: Check bounds.
2359 Wrap extern symbols in BP_SYM ().
2360 * sysdeps/powerpc/bsd-_setjmp.S: Likewise.
2361 * sysdeps/powerpc/bsd-setjmp.S: Likewise.
2362 * sysdeps/powerpc/setjmp.S: Likewise.
2363 * sysdeps/powerpc/add_n.S: Likewise.
2364 * sysdeps/powerpc/addmul_1.S: Likewise.
2365 * sysdeps/powerpc/lshift.S: Likewise.
2366 * sysdeps/powerpc/rshift.S: Likewise.
2367 * sysdeps/powerpc/mul_1.S: Likewise.
2368 * sysdeps/powerpc/sub_n.S: Likewise.
2369 * sysdeps/powerpc/submul_1.S: Likewise.
2370 * sysdeps/powerpc/strlen.S: Likewise.
2371 * sysdeps/powerpc/memset.S: Likewise.
2372 * sysdeps/powerpc/stpcpy.S: Likewise.
2373 * sysdeps/powerpc/strcmp.S: Likewise.
2374 * sysdeps/powerpc/strcpy.S: Likewise.
2375 * sysdeps/powerpc/elf/bzero.S: Likewise.
2376
2377 * sysdeps/powerpc/stpcpy.S: Define & use symbolic register names.
2378 Line up operands column with tabs.
2379
2380 2000-06-30 Ulrich Drepper <drepper@redhat.com>
2381
2382 * elf/Makefile (LDFLAGS-origtest): Actually add it.
2383
2384 * sysdeps/ia64/htonl.S: New file.
2385 * sysdeps/ia64/htons.S: New file.
2386 * sysdeps/ia64/memcpy.S: Replace with version which does not use
2387 floating point registers.
2388 Patches by Dan Pop <Dan.Pop@cern.ch>.
2389
2390 2000-06-30 Andreas Jaeger <aj@suse.de>
2391
2392 * posix/Makefile (tests): tst-exec and tst-spawn only work with
2393 shared libraries.
2394
2395 * io/Makefile (CFLAGS-test-lfs.c): New.
2396 (tests): Add test-lfs.
2397
2398 * io/test-lfs.c: New file.
2399
2400 2000-06-30 Jakub Jelinek <jakub@redhat.com>
2401
2402 * sysdeps/i386/bits/string.h (strcmp): Use 8bit register in 8bit
2403 instruction.
2404
2405 2000-06-29 David Mosberger-Tang <davidm@hpl.hp.com>
2406
2407 * sysdeps/unix/sysv/linux/ia64/ioperm.c: New file.
2408
2409 2000-06-29 Jes Sorensen <jes@linuxcare.com>
2410
2411 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __fstatfs64
2412 alias to the fstatfs call.
2413
2414 * sysdeps/unix/sysv/linux/ia64/getrlimit64.c: New file.
2415 * sysdeps/unix/sysv/linux/ia64/setrlimit64.c: New file.
2416
2417 * sysdeps/unix/sysv/linux/ia64/ftruncate64.c: New file.
2418 * sysdeps/unix/sysv/linux/ia64/truncate64.c: New file.
2419
2420 * sysdeps/unix/sysv/linux/ia64/readdir.c: New file.
2421 * sysdeps/unix/sysv/linux/ia64/readdir_r.c: New file.
2422 * sysdeps/unix/sysv/linux/ia64/readdir64.c: New file.
2423 * sysdeps/unix/sysv/linux/ia64/readdir64_r.c: New file.
2424
2425 * sysdeps/unix/sysv/linux/ia64/glob.c: New file.
2426 * sysdeps/unix/sysv/linux/ia64/glob64.c: New file.
2427
2428 * sysdeps/unix/sysv/linux/ia64/fstatfs64.c: New file.
2429 * sysdeps/unix/sysv/linux/ia64/statfs64.c: New file.
2430
2431 * sysdeps/unix/sysv/linux/ia64/pread64.c: New file.
2432 * sysdeps/unix/sysv/linux/ia64/pwrite64.c: New file.
2433
2434 * sysdeps/unix/sysv/linux/ia64/shmctl.c: New file.
2435
2436 2000-06-29 Andreas Jaeger <aj@suse.de>
2437
2438 * sunrpc/rpc_svcout.c (write_msg_out): Always use format string
2439 with syslog.
2440 (print_err_message): Likewise.
2441 Reported by Chris Evans <chris@ferret.lmh.ox.ac.uk>.
2442
2443 2000-06-29 Ulrich Drepper <drepper@redhat.com>
2444
2445 * locale/loadlocale.c (_nl_load_locale): Make sure all locale data
2446 used as words is properly aligned.
2447
2448 * locale/programs/ld-ctype.c (ctype_output): Don't generate unaligned
2449 data files.
2450
2451 2000-06-29 Greg McGary <greg@mcgary.org>
2452
2453 * sysdeps/generic/libc-start.c (__libc_stack_end): Chop __unbounded.
2454 * sysdeps/unix/make-syscalls.sh: Handle signatures of
2455 length 7..9, just in case...
2456 * misc/sys/cdefs.h (__ptrvalue): Define as nothing for non-BP.
2457
2458 * sysdeps/i386/bp-asm.h (PCOFF): New constant.
2459 (POP_ERRNO_LOCATION_RETURN): Fold insns.
2460 * sysdeps/i386/bits/setjmp.h (JB_SIZE): New constant.
2461 (PUSH_SIGNAL_MASK): New macro.
2462 * sysdeps/i386/__longjmp.S (__longjmp): Wrap symbol in BP_SYM ().
2463 LEAVE is unnecessary. Check bounds of jmp_buf.
2464 * sysdeps/i386/elf/setjmp.S: Call PUSH_SIGNAL_MASK. Wrap symbols
2465 in BP_SYM (). Check bounds of jmp_buf. Don't call LEAVE until
2466 immediately before tail-call.
2467 * sysdeps/i386/setjmp.S: Likewise.
2468 * sysdeps/i386/bsd-_setjmp.S: Likewise.
2469 * sysdeps/i386/bsd-setjmp.S: Likewise.
2470
2471 2000-06-29 Jakub Jelinek <jakub@redhat.com>
2472
2473 * sysdeps/sparc/fpu/fclrexcpt.c: Use SHLIB_COMPAT, compat_symbol and
2474 versioned_symbol.
2475 * sysdeps/sparc/fpu/fesetenv.c: Likewise.
2476 * sysdeps/sparc/fpu/feupdateenv.c: Likewise.
2477 * sysdeps/sparc/fpu/fgetexcptflg.c: Likewise.
2478 * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
2479 * sysdeps/sparc/fpu/fsetexcptflg.c: Likewise.
2480 * sysdeps/sparc/fpu/fegetenv.c: Likewise.
2481 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
2482 * shlib-versions: Make sparc64 GLIBC_2.2+ only.
2483
2484 2000-06-29 Ulrich Drepper <drepper@redhat.com>
2485
2486 * stdio-common/printf_fp.c (__printf_fp): Don't clobber pointer which
2487 we later need to calling free().
2488 Patch by Matt Wilson <msw@redhat.com>.
2489
2490 * stdio-common/tst-printf.c: Add test for above problem.
2491
2492 2000-06-27 David Mosberger-Tang <davidm@hpl.hp.com>
2493
2494 * sysdeps/unix/sysv/linux/ia64/bits/ipc.h: New file.
2495 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: New file.
2496
2497 2000-06-28 Jes Sorensen <jes@linuxcare.com>
2498
2499 * sysdeps/ieee754/dbl-64/s_exp2.c: Add include stdlib.h to get
2500 prototype for abs().
2501 * sysdeps/ieee754/flt-32/s_exp2f.c: ditto.
2502
2503 2000-06-23 Andreas Jaeger <aj@suse.de>
2504
2505 * config.h.in: Don't use regparm with bounded pointers.
2506
2507 2000-06-29 Ulrich Drepper <drepper@redhat.com>
2508
2509 * stdlib/grouping.h: Correctly handle multibyte thousands
2510 separator and decimal point.
2511 * stdlib/stdtod.c: Likewise.
2512 * sysdeps/generic/strtol.c: Likewise.
2513
2514 * locale/categories.def: Add entries for wide character decimal point
2515 and thousands separator in numeric and monetary category.
2516
2517 2000-06-28 Ulrich Drepper <drepper@redhat.com>
2518
2519 * stdio-common/printf_fp.c (__printf_fp): Remove unnecessary
2520 second definition and initialization of decimal.
2521
2522 2000-06-28 Greg McGary <greg@mcgary.org>
2523
2524 * libio/libio.h (struct _IO_cookie_file): Move struct type defintion
2525 out.
2526 (_IO_FILE): Declare chain as (struct _IO_FILE_plus *).
2527 * libio/libioP.h (struct _IO_cookie_file): Move struct type defintion
2528 in.
2529 (_IO_JUMPS): Don't cast THIS--expect arg to be a
2530 (struct _IO_FILE_plus *).
2531 (_IO_JUMPS_FUNC): Express in terms of _IO_JUMPS, and add cast to
2532 THIS, since _IO_JUMPS no longer does it implicitly.
2533 (_IO_file_init, _IO_old_file_init, _IO_new_file_init): Declare
2534 arg type as (struct _IO_FILE_plus *).
2535 (_IO_str_init_static, _IO_str_init_readonly): Declare 1st
2536 arg as (_IO_strfile *).
2537 * libio/strops.c (_IO_str_init_static, _IO_str_init_readonly):
2538 Declare 1st arg as (_IO_strfile *).
2539 * libio/fileops.c (_IO_new_file_init): Declare
2540 arg type as (struct _IO_FILE_plus *).
2541 * libio/oldfileops.c (_IO_old_file_init): Likewise.
2542 * libio/genops.c (_IO_link_in, _IO_un_link): Likewise.
2543 (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
2544 Declare iteration pointer as (struct _IO_FILE_plus *).
2545 (_IO_iter_next, _IO_iter_file): _IO_ITER is now
2546 (struct _IO_FILE_plus *).
2547 * libio/stdfiles.c (_IO_list_all): Declare as (struct _IO_FILE_plus *).
2548 * libio/oldstdfiles.c (_IO_list_all): Likewise.
2549 (_IO_check_libio): Set user-visible handles to
2550 (struct _IO_FILE_plus *).
2551 * libio/stdio.c (stdin, stdout, stderr): Set user-visible handles
2552 to (struct _IO_FILE_plus *).
2553
2554 * libio/iofdopen.c (_IO_new_fdopen): Pass FILE handle pointer
2555 whose high bound includes vtable to all functions that will use
2556 vtable. For streambufs, pass pointer whose bounds include struct
2557 _IO_strfile.
2558 * libio/wgenops.c (_IO_wdefault_finish): Likewise.
2559 * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
2560 * libio/iofopen.c (_IO_new_fopen): Likewise.
2561 * libio/oldiofopen.c (_IO_old_fopen): Likewise.
2562 * libio/iofopen64.c (_IO_fopen64): Likewise.
2563 * libio/iopopen.c (_IO_new_popen): Likewise.
2564 * libio/oldiopopen.c (_IO_old_popen): Likewise.
2565 * libio/memstream.c (open_memstream): Likewise.
2566 * libio/iovsscanf.c (_IO_vsscanf): Likewise.
2567 * libio/iovsprintf.c (_IO_vsprintf): Likewise.
2568 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
2569 * libio/iofopncook.c (_IO_cookie_init): Likewise.
2570 * libio/obprintf.c (_IO_obstack_vprintf): Likewise.
2571 * libio/vasprintf.c (_IO_vasprintf): Likewise.
2572 * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
2573 * libio/stdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
2574 * libio/oldstdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
2575 * stdlib/strfmon.c (__strfmon_l): Likewise.
2576 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
2577 (vfprintf): Qualify computed-goto targets as unbounded.
2578
2579 2000-06-28 Ulrich Drepper <drepper@redhat.com>
2580
2581 * stdio-common/vfscanf.c: Finally handle multibyte decimal point and
2582 thousands separator correctly.
2583
2584 * stdio-common/vfscanf.c: Use COMPILE_WSCANF not COMPILE_WPRINTF.
2585 * stdio-common/vfwscanf.c: Likewise.
2586
2587 2000-06-27 Jes Sorensen <jes@linuxcare.com>
2588
2589 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change argument
2590 count into signatures for most calls.
2591
2592 2000-06-28 Ulrich Drepper <drepper@redhat.com>
2593
2594 * sysdeps/unix/sysv/linux/ia64/getsysstats.c: Removed. We can use
2595 the generic parser now.
2596
2597 2000-06-28 Jes Sorensen <jes@linuxcare.com>
2598
2599 * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: Deleted. Hash
2600 table entries are 32 bit on the ia64 (as specified by the ABI),
2601 not 64 bit as on the Alpha.
2602
2603 * shlib-versions: Bump ia64 soname to ld-linux-ia64.so.2 to mark
2604 change of objects to use 32 bit hash table indices (see above).
2605
2606 2000-06-28 Jes Sorensen <jes@linuxcare.com>
2607
2608 * sysdeps/ieee754/dbl-64/e_exp.c: Add include stdlib.h to get
2609 prototype for abs().
2610
2611 2000-06-28 Wolfram Gloger <wg@malloc.de>
2612
2613 * malloc/malloc.c (chunk_alloc): If extension of the linear heap
2614 fails, try mmap_chunk() as a last resort even though n_mmaps_max
2615 may have been reached.
2616
2617 2000-06-28 Ulrich Drepper <drepper@redhat.com>
2618
2619 * locale/programs/ld-collate.c (insert_weights): Handle <Uxxxx>
2620 symbols in multi-character weights correctly.
2621
2622 * wcsmbs/mbrtowc.c: Set flush to 1 for conversion function calls
2623 depending on whether the input string is empty or not.
2624
2625 * wcsmbs/mbrtowc.c: Calling function without input means clearing the
2626 given state and not avoiding this by modifying a local object.
2627 * wcsmbs/wcrtomb.c: Likewise.
2628
2629 * iconv/skeleton.c: If no EMIT_SHIFT_TO_INIT is defined clear state
2630 object since some incomplete characters might be in there.
2631
2632 * iconvdata/euc-jp.c: In conversion to UCS4, handling invalid
2633 sequences with first byte 0x8e correctly.
2634
2635 * iconvdata/jis0208.h: Remove redundant test.
2636
2637 2000-06-27 Ulrich Drepper <drepper@redhat.com>
2638
2639 * sysdeps/generic/initfini.c (SECTION): Remove trailing semicolon.
2640 Add it where it is needed now.
2641
2642 * locale/programs/ld-ctype.c (ctype_finish): Take all characters from
2643 the input charset into account when generating the hash table.
2644 (allocate_arrays): Correct setting default width. Not all empty slots
2645 in the table are filled, only those not covert explicitly by the
2646 locale description and in the charset.
2647
2648 * wctype/towctrans.c (__towctrans): Be graceful and accept error
2649 return values from the wctrans function.
2650
2651 * stdio-common/vfscanf.c: Make sure to always return WEOF and EOF for
2652 wide character version.
2653 For %C handling, test correct pointer variable for NULL.
2654
2655 * wcsmbs/wctob.c: Handle WEOF special.
2656
2657 * wcsmbs/wcwidth.h: 0xff in width array means invalid character.
2658
2659 * wctype/wctype.h: Protect gcc-isms with __extension__. Avoid
2660 always-true test to avoid warning.
2661
2662 2000-06-27 Greg McGary <greg@mcgary.org>
2663
2664 * elf/dl-open.c (_dl_sysdep_start): Wrap weak_extern decl in BP_SYM ().
2665 * include/libc-symbols.h (weak_extern): Add extra level of expansion.
2666 (symbol_version, default_symbol_version): Factor redundant
2667 definitions out of conditional.
2668
2669 2000-06-27 Jakub Jelinek <jakub@redhat.com>
2670
2671 * libio/obprintf.c (_IO_obstack_vprintf): Call obstack_make_room,
2672 not obstack_blank.
2673
2674 2000-06-26 Ulrich Drepper <drepper@redhat.com>
2675
2676 * include/libc-symbols.h (symbol_version): Add extra level of
2677 macro expansion.
2678 (default_symbol_version): Likewise.
2679
2680 2000-06-26 Greg McGary <greg@mcgary.org>
2681
2682 * sysdeps/unix/i386/sysdep.S (syscall_error): Push & pop space
2683 for BP return value & push implicit struct-return pointer to
2684 __errno_location.
2685 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
2686 (SYSCALL_ERROR_HANDLER): Likewise.
2687 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
2688 (SYSCALL_ERROR_HANDLER): Likewise.
2689
2690 * Makeconfig: Add missing comment.
2691 * csu/Makefile (extra-objs, omit-deps, install-lib): Add
2692 BP-flavored startup object.
2693 ($(objpfx)b$(start-installed-name)): New rule.
2694 * include/libc-symbols.h (symbol_set_declare): Change type
2695 of `__start_##set' and `__stop_##set' to pointer-to-function.
2696 (symbol_set_declare): Change type of `set' to array of
2697 pointer-to-function.
2698 * include/set-hooks.h (RUN_HOOK): Change type of `ptr' to
2699 pointer-to-function.
2700
2701 * string/bits/string2.h: Inhibit inlines if __BOUNDED_POINTERS__.
2702
2703 * sysdeps/unix/sysv/linux/syscalls.list: Add missing signatures.
2704 Remove clock_* and timer_* entries.
2705 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Replace
2706 arg-count with signatures.
2707
2708 * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM ().
2709 Check bounds of arguments.
2710 * sysdeps/i386/addmul_1.S: Likewise.
2711 * sysdeps/i386/lshift.S: Likewise.
2712 * sysdeps/i386/mul_1.S: Likewise.
2713 * sysdeps/i386/rshift.S: Likewise.
2714 * sysdeps/i386/sub_n.S: Likewise.
2715 * sysdeps/i386/submul_1.S: Likewise.
2716 * sysdeps/i386/i586/add_n.S: Likewise.
2717 * sysdeps/i386/i586/addmul_1.S: Likewise.
2718 * sysdeps/i386/i586/lshift.S: Likewise.
2719 * sysdeps/i386/i586/rshift.S: Likewise.
2720 * sysdeps/i386/i586/sub_n.S: Likewise.
2721 * sysdeps/i386/i686/add_n.S: Likewise.
2722
2723 * sysdeps/i386/memchr.S: Likewise.
2724 * sysdeps/i386/memcmp.S: Likewise.
2725 * sysdeps/i386/rawmemchr.S: Likewise.
2726 * sysdeps/i386/i586/bzero.S: Likewise.
2727 * sysdeps/i386/i586/memcpy.S: Likewise.
2728 * sysdeps/i386/i586/mempcpy.S: Likewise.
2729 * sysdeps/i386/i586/memset.S: Likewise.
2730 * sysdeps/i386/i686/bzero.S: Likewise.
2731 * sysdeps/i386/i686/memcpy.S: Likewise.
2732 * sysdeps/i386/i686/mempcpy.S: Likewise.
2733 * sysdeps/i386/i686/memset.S: Likewise.
2734
2735 * sysdeps/i386/stpcpy.S: Likewise.
2736 * sysdeps/i386/stpncpy.S: Likewise.
2737 * sysdeps/i386/strchr.S: Likewise.
2738 * sysdeps/i386/strchrnul.S: Likewise.
2739 * sysdeps/i386/strcspn.S: Likewise.
2740 * sysdeps/i386/strpbrk.S: Likewise.
2741 * sysdeps/i386/strrchr.S: Likewise.
2742 * sysdeps/i386/strspn.S: Likewise.
2743 * sysdeps/i386/strtok.S: Likewise.
2744 * sysdeps/i386/strtok_r.S: Likewise.
2745 * sysdeps/i386/i486/strcat.S: Likewise.
2746 * sysdeps/i386/i486/strlen.S: Likewise.
2747 * sysdeps/i386/i586/strchr.S: Likewise.
2748 * sysdeps/i386/i586/strcpy.S: Likewise.
2749 * sysdeps/i386/i586/strlen.S: Likewise.
2750 * sysdeps/i386/i686/strcmp.S: Likewise.
2751 * sysdeps/i386/i686/strtok.S: Likewise.
2752 * sysdeps/i386/i686/strtok_r.S: Likewise.
2753
2754 * sysdeps/i386/fpu/fegetenv.c: Wrap symbol names with BP_SYM ().
2755 * sysdeps/i386/fpu/fesetenv.c: Likewise.
2756 * sysdeps/i386/fpu/feupdateenv.c: Likewise.
2757 * sysdeps/i386/fpu/fgetexcptflg.c: Likewise.
2758 * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
2759
2760 * sysdeps/i386/addmul_1.S: Exchange roles of %ebp and %ebx.
2761 * sysdeps/i386/mul_1.S: Likewise.
2762 * sysdeps/i386/submul_1.S: Likewise.
2763 * sysdeps/i386/i586/add_n.S: Likewise.
2764 * sysdeps/i386/i586/addmul_1.S: Likewise.
2765 * sysdeps/i386/i586/lshift.S: Likewise.
2766 * sysdeps/i386/i586/mul_1.S: Likewise.
2767 * sysdeps/i386/i586/rshift.S: Likewise.
2768 * sysdeps/i386/i586/sub_n.S: Likewise.
2769 * sysdeps/i386/i586/submul_1.S: Likewise.
2770
2771 2000-06-26 Ulrich Drepper <drepper@redhat.com>
2772
2773 * rt/Makefile (librt-routines): Add clock_nanosleep.
2774 * rt/Versions [GLIBC_2.2] (librt): Add clock_nanosleep.
2775 * sysdeps/generic/clock_nanosleep.c: New file.
2776 * sysdeps/unix/clock_nanosleep.c: New file.
2777 * sysdeps/unix/i386/i586/clock_nanosleep.c: New file.
2778 * time/time.h: Declare clock_nanosleep.
2779
2780 2000-06-26 Greg McGary <greg@mcgary.org>
2781
2782 * sysdeps/i386/asm-syntax.h (R, MEM, MEM_DISP, MEM_INDEX,
2783 INSN1, INSN2, TEXT, GLOBL): Remove macros.
2784 (ALIGN): Cleanup surrounding conditionals.
2785
2786 * sysdeps/i386/addmul_1.S: Replace asm-syntax macros with gas syntax.
2787 Call ENTER/LEAVE macros.
2788 * sysdeps/i386/mul_1.S: Replace asm-syntax macros with gas syntax.
2789 * sysdeps/i386/submul_1.S: Likewise.
2790
2791 * sysdeps/i386/i586/addmul_1.S: Replace asm-syntax macros with gas
2792 syntax. Define & use symbolic argument stack offsets. Call
2793 ENTER/LEAVE macros.
2794 * sysdeps/i386/i586/mul_1.S: Likewise.
2795 * sysdeps/i386/i586/submul_1.S: Likewise.
2796
2797 2000-06-25 Greg McGary <greg@mcgary.org>
2798
2799 * sysdeps/i386/i586/memcpy.S: Redefine memcpy as mempcpy,
2800 not as bcopy.
2801
2802 2000-06-25 Ulrich Drepper <drepper@redhat.com>
2803
2804 * iconvdata/gen-8bit-gap-1.sh: Update for new charmap format.
2805 * iconvdata/gen-8bit-gap.sh: Likewise.
2806 * iconvdata/gen-8bit.sh: Likewise.
2807
2808 * iconv/gconv_open.c (__gconv_open): Move comment to correct position.
2809
2810 * locale/programs/ld-collate.c (collate_read): Don't actually read
2811 the copy locale if we are ignoring the content.
2812
2813 * locale/programs/ld-address.c (INT_STR_ELEM): Correct test for
2814 unknown character.
2815
2816 * locale/programs/ld-collate.c: Correct handling of different
2817 collation sections.
2818 * locale/programs/localedef.c (add_to_readlist): Take locale pointer
2819 as extra parameter from which to copy category information.
2820 Change all callers.
2821 (load_locale): Likewise.
2822 * locale/programs/localedef.h: Update prototypes of add_to_readlist
2823 and load_locale.
2824 * locale/programs/ld-ctype.c: Update call to add_to_readlist.
2825 * locale/programs/locfile.h: Likewise.
2826 * locale/programs/locfile-kw.gperf: Add entry for script.
2827 * locale/programs/locfile-token.h: Add tok_script.
2828
2829 * locale/programs/locale.c: Update copyright year.
2830 * locale/programs/localedef.c: Likewise.
2831
2832 2000-06-23 Thorsten Kukuk <kukuk@suse.de>
2833
2834 * sunrpc/xdr_rec.c (set_input_fragment): Fix PR libc/1549, patch from
2835 Jens Moeller <jens.moeller@waii.com>.
2836
2837 2000-06-24 Ulrich Drepper <drepper@redhat.com>
2838
2839 * locale/programs/ld-name.c (name_finish): Add missing format
2840 specifier to test for name_fmt.
2841
2842 * locale/programs/ld-address.c (iso639): Correct length of string
2843 elements.
2844 (iso3166): Likewise.
2845
2846 * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_fpxregset_t): Define.
2847
2848 * sysdeps/unix/sysv/linux/i386/sys/user.h (struct user_fpxregs_struct):
2849 Define.
2850
2851 * elf/elf.h (NT_PRFPXREG): Define.
2852
2853 2000-06-23 Ulrich Drepper <drepper@redhat.com>
2854
2855 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Define
2856 PTRACE_GETFPXREGS and PTRACE_SETFPXREGS.
2857
2858 2000-06-23 Andreas Schwab <schwab@suse.de>
2859
2860 * sysdeps/unix/sysv/linux/m68k/syscalls.list: Replace arg-count
2861 with signatures.
2862
2863 2000-06-23 Andreas Jaeger <aj@suse.de>
2864
2865 * iconv/gconv_int.h (norm_add_slashes): Protect suffix expansion.
2866
2867 * io/test-stat.c: Add copyright header, mention Maciej.
2868
2869 * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_pivot_root,
2870 SYS_mincore, SYS_madvise): Added.
2871
2872 * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix signature of
2873 execve.
2874
2875 2000-06-22 Ulrich Drepper <drepper@redhat.com>
2876
2877 * libio/Makefile (tests): Add tst-getwc and tst_putwc.
2878 (CFLAGS-tst_putwc.c): New definition.
2879 * libio/tst_getwc.c: New file.
2880 * libio/tst_getwc.input: New file.
2881 * libio/tst_putwc.c: New file.
2882
2883 * include/string.h: Add prototype for __strdup.
2884
2885 2000-06-22 Greg McGary <greg@mcgary.org>
2886
2887 * sysdeps/unix/syscalls.list (sys_mknod): Fix signatures.
2888 * sysdeps/unix/inet/syscalls.list (accept, getpeername, getsockname):
2889 Fix signatures.
2890
2891 2000-06-23 Jes Sorensen <jes@linuxcare.com>
2892
2893 * sysdeps/ia64/memcpy.S: Disable branch predict instruction.
2894
2895 2000-06-22 Jes Sorensen <jes@linuxcare.com>
2896
2897 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: New file.
2898
2899 2000-06-22 Jes Sorensen <jes@linuxcare.com>
2900
2901 * shlib-versions: Bump so versions to 6.1 for libc and libm on the
2902 ia64 to allow 2.2+ libraries to coexist with 2.1 ones.
2903
2904 2000-06-22 Ulrich Drepper <drepper@redhat.com>
2905
2906 * io/sys/stat.h: Define S_TYPEISMQ, S_TYPEISSEM, and S_TYPEISSHM.
2907 * sysdeps/generic/bits/stat.h: Define __S_TYPEISMQ, __S_TYPEISSEM,
2908 and __S_TYPEISSHM.
2909 * sysdeps/mach/hurd/bits/stat.h: Likewise.
2910 * sysdeps/unix/bsd/bits/stat.h: Likewise.
2911 * sysdeps/unix/bsd/osf/alpha/bits/stat.h: Likewise.
2912 * sysdeps/unix/sysv/bits/stat.h: Likewise.
2913 * sysdeps/unix/sysv/irix4/bits/stat.h: Likewise.
2914 * sysdeps/unix/sysv/hpux/bits/stat.h: Likewise.
2915 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
2916 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
2917 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
2918 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
2919 * sysdeps/unix/sysv/sysv4/i386/bits/stat.h: Likewise.
2920 * sysdeps/unix/sysv/sysv4/solaris2/bits/stat.h: Likewise.
2921 * sysdeps/unix/sysv/aix/bits/stat.h: Likewise.
2922 * manual/filesys.texi: Document S_TYPEISMQ, S_TYPEISSEM, and
2923 S_TYPEISSHM.
2924
2925 2000-06-22 Andreas Jaeger <aj@suse.de>
2926
2927 * sysdeps/unix/sysv/linux/mips/syscalls.list: Replace arg-count
2928 with signatures.
2929
2930 * elf/dl-reloc.c (_dl_relocate_object): Fix typos.
2931
2932 * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix sysctl entry.
2933
2934 2000-06-21 Ulrich Drepper <drepper@redhat.com>
2935
2936 * iconv/gconv_trans.c: Move initialization of winbuf and winbufend
2937 ahead.
2938
2939 2000-06-21 Greg McGary <greg@mcgary.org>
2940
2941 * Makerules (elide-routines.*, elide-bp-thunks):
2942 Define unconditionally.
2943
2944 2000-06-21 Jes Sorensen <jes@linuxcare.com>
2945
2946 * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
2947
2948 2000-06-21 Andreas Jaeger <aj@suse.de>
2949
2950 * io/Makefile (tests): Add test-stat.
2951 (CFLAGS-test-stat.c): New.
2952
2953 * io/test-stat.c: New file from Maciej W. Rozycki
2954 <macro@ds2.pg.gda.pl>.
2955
2956 2000-06-21 Jes Sorensen <jes@linuxcare.com>
2957
2958 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Reorder elements
2959 in __rlimit_resource to make them match the kernel order.
2960 rlim_t is always 64 bit, use __rlim64_t to declare it
2961 unconditionally.
2962
2963 2000-05-04 Jes Sorensen <jes@linuxcare.com>
2964
2965 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Undef
2966 RLIM_INFINITY before defining it to avoid clash with kernel header
2967
2968 2000-05-03 Jes Sorensen <jes@linuxcare.com>
2969
2970 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: New file.
2971
2972 2000-06-21 Ulrich Drepper <drepper@redhat.com>
2973
2974 * sysdeps/unix/sysv/linux/ia64/Versions: New file.
2975
2976 2000-06-21 Andreas Jaeger <aj@suse.de>
2977
2978 * stdio-common/temptest.c: Include <stdlib.h>.
2979 * stdio-common/tst-fileno.c: Likewise.
2980 * stdio-common/scanf4.c: Likewise.
2981 * stdio-common/scanf5.c: Likewise.
2982 * time/clocktest.c: Likewise.
2983 * posix/test-vfork.c: Likewise.
2984 * posix/globtest.c: Likewise.
2985 * io/test-utime.c: Likewise.
2986 * wctype/test_wcfuncs.c: Likewise.
2987 * crypt/cert.c: Likewise.
2988
2989 * stdio-common/tst-printfsz.c: Include <string.h>.
2990 * libio/tst_swscanf.c: Likewise.
2991 * libio/tst_wscanf.c: Likewise.
2992 * posix/runtests.c: Likewise.
2993 * posix/tst-getaddrinfo.c: Likewise.
2994 * posix/wordexp-test.c: Likewise.
2995 * misc/tst-efgcvt.c: Likewise.
2996
2997 * stdlib/tst-xpg-basename.c: Include <stdlib.h> and <string.h>.
2998 * nss/test-netdb.c: Likewise.
2999
3000 * sysdeps/unix/sysv/linux/configure.in: Add check for minimal
3001 supported kernel for MIPS.
3002
3003 * elf/vismod2.c: Include <stdlib.h> for abort prototype.
3004 * rt/aio_suspend.c: Likewise.
3005
3006 2000-06-20 Ulrich Drepper <drepper@redhat.com>
3007
3008 * math/libm-test.inc: Include <string.h>.
3009
3010 2000-06-20 Jes Sorensen <jes@linuxcare.com>
3011
3012 * sysdeps/unix/sysv/linux/ia64/syscalls.list: New file.
3013
3014 2000-06-20 Jes Sorensen <jes@linuxcare.com>
3015
3016 * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: New file.
3017 * sysdeps/unix/sysv/linux/ia64/profil-counter.h: New file.
3018
3019 2000-06-20 David Mosberger-Tang <davidm@hpl.hp.com>
3020
3021 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: New file.
3022
3023 2000-06-20 Jes Sorensen <jes@linuxcare.com>
3024
3025 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Fix typo.
3026
3027 2000-06-20 Ulrich Drepper <drepper@redhat.com>
3028
3029 * locale/programs/ld-collate.c (insert_value): Now take string and
3030 length instead of struct token* parameter. Adjust use of token.
3031 (handle_ellipsis): Likewise.
3032 (collate_read): Allow <Uxxxx> names and transform them into names
3033 to be passed to insert_value and handle_ellipsis.
3034
3035 * locale/programs/ld-ctype.c (uninames): New array with names of
3036 digits in <Uxxxxxxxx> format.
3037 (ctype_finish): Correct search for space character value. Likewise
3038 for default outdigits values.
3039
3040 2000-06-20 Greg McGary <greg@mcgary.org>
3041
3042 * Makerules (objects): Add BP thunks.
3043
3044 2000-06-20 Ulrich Drepper <drepper@redhat.com>
3045
3046 * locale/programs/charmap.c (parse_charmap): Handle UCS names also
3047 in width definitions.
3048
3049 2000-06-20 Andreas Jaeger <aj@suse.de>
3050
3051 * sysdeps/mips/fpu/libm-test-ulps: New file.
3052
3053 * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Flush fpu pipeline
3054 first.
3055
3056 * sysdeps/mips/fpu/feholdexcpt.c: New file.
3057
3058 * sysdeps/mips/fpu/fraiseexcpt.c: New file.
3059
3060 2000-06-19 Ulrich Drepper <drepper@redhat.com>
3061
3062 * iconv/gconv_builtin.c (BUILTIN_TRANSFORMATION): Update for
3063 change in gconv_builtin.h.
3064
3065 * malloc/Makefile: Change all references to memprof into memusage.
3066 * malloc/memprof.c: Rename to...
3067 * malloc/memusage.c: ...this. New file.
3068 * malloc/memprof.sh: Rename to...
3069 * malloc/memusage.sh: ...this. New file.
3070 * malloc/memprofstat.c: Rename to...
3071 * malloc/memusagestat.c: ...this. New file.
3072 * sysdeps/alpha/memprof.h: Rename to..
3073 * sysdeps/alpha/memusage.h: ...this. New file.
3074 * sysdeps/arm/memprof.h: Rename to..
3075 * sysdeps/arm/memusage.h: ...this. New file.
3076 * sysdeps/generic/memprof.h: Rename to..
3077 * sysdeps/generic/memusage.h: ...this. New file.
3078 * sysdeps/i386/memprof.h: Rename to..
3079 * sysdeps/i386/memusage.h: ...this. New file.
3080 * sysdeps/ia64/memprof.h: Rename to..
3081 * sysdeps/ia64/memusage.h: ...this. New file.
3082 * sysdeps/m68k/memprof.h: Rename to..
3083 * sysdeps/m68k/memusage.h: ...this. New file.
3084 * sysdeps/mips/memprof.h: Rename to..
3085 * sysdeps/mips/memusage.h: ...this. New file.
3086 * sysdeps/powerpc/memprof.h: Rename to..
3087 * sysdeps/powerpc/memusage.h: ...this. New file.
3088 * sysdeps/sparc/memprof.h: Rename to..
3089 * sysdeps/sparc/memusage.h: ...this. New file.
3090 * sysdeps/sh/memprof.h: Rename to..
3091 * sysdeps/sh/memusage.h: ...this. New file.
3092
3093 * elf/sprof.c (print_version): Update year.
3094
3095 * elf/sprof.c (load_shobj): Don't always add load address to dynamic
3096 table entry values. Use D_PTR.
3097 * elf/dl-reloc.c (_dl_relocate_object): Don't start profiling weird
3098 binaries without PLT. Patches by James Mathiesen <james@curl.com>.
3099
3100 2000-06-20 Jes Sorensen <jes@linuxcare.com>
3101
3102 * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
3103 * sysdeps/unix/sysv/linux/ia64/sys/io.h: New file.
3104 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: New file.
3105 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: New file.
3106
3107 2000-05-05 Jes Sorensen <jes@linuxcare.com>
3108
3109 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: New file.
3110
3111 2000-06-16 Jes Sorensen <jes@linuxcare.com>
3112
3113 * sysdeps/unix/sysv/linux/ia64/xstat.c: New file.
3114 * sysdeps/unix/sysv/linux/ia64/fxstat.c: New file.
3115 * sysdeps/unix/sysv/linux/ia64/lxstat.c: New file.
3116
3117 * sysdeps/unix/sysv/linux/ia64/xstatconv.c: Deleted.
3118
3119 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Update after latest
3120 kernel change.
3121
3122 * sysdeps/unix/sysv/linux/ia64/bits/types.h: Make __ino_t,
3123 __nlink_t and __blkcnt_t 64 bit to accomodate new kernel stat data
3124 structure.
3125 Change __fsblkcnt_t and __fsfilcnt_t to 64 bit to match kernel
3126 implementation.
3127
3128 2000-06-15 Jes Sorensen <jes@linuxcare.com>
3129
3130 * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Deleted.
3131
3132 2000-06-08 Jes Sorensen <jes@linuxcare.com>
3133
3134 * sysdeps/unix/sysv/linux/ia64/mmap64.c: New file.
3135
3136 2000-06-19 Ulrich Drepper <drepper@redhat.com>
3137
3138 * iconv/gconv_int.h (strict gconv_module): Remove all members
3139 associated with regular expressions. Use a simple string as the
3140 from name.
3141 * iconv/gconv_db.c: Remove code handling regular expressions.
3142 * iconv/gconv_conf.c: Likewise.
3143 * iconv/iconv_prog.c: Likewise.
3144 * iconv/gconv_builtin.h: Adjust for change in gconv_conf.c.
3145
3146 * iconv/gconv.h (__gconv_trans_fct): Add new parameter.
3147 General namespace cleanup.
3148 (struct __gconv_trans_data): Add next field.
3149 (struct __gconv_step_data): Make __trans a pointer.
3150 * iconv/gconv_conf.c: Split out code to find gconv directories from
3151 __gconv_read_conf in new functions.
3152 * iconv/gconv_int.h: Define new data structure and declare new
3153 functions for handling of gconv directory list.
3154 * iconv/gconv_open.c: Allow more than one error handling step being
3155 used. Call function to load error handling module if it is none
3156 of the builtin transformations.
3157 * iconv/gconv_close.c: Add code to free transliteration data.
3158 * iconv/gconv_trans.c: Add functions to load and unload modules
3159 implementing transliteration etc.
3160 * iconv/skeleton.c: Call all context functions now that more than
3161 one module is allowed.
3162 * iconv/loop.c (STANDARD_ERR_HANDLING): New macro.
3163 * iconv/gconv_simple.c: Use STANDARD_ERR_HANDLING macro for places
3164 where the full error handling using transliteration is needed.
3165 * iconvdata/8bit-gap.c: Likewise.
3166 * iconvdata/8bit-generic.c: Likewise.
3167 * iconvdata/ansi_x3.110.c: Likewise.
3168 * iconvdata/big5.c: Likewise.
3169 * iconvdata/big5hkscs.c: Likewise.
3170 * iconvdata/euc-cn.c: Likewise.
3171 * iconvdata/euc-jp.c: Likewise.
3172 * iconvdata/euc-kr.c: Likewise.
3173 * iconvdata/euc-tw.c: Likewise.
3174 * iconvdata/gbgbk.c: Likewise.
3175 * iconvdata/gbk.c: Likewise.
3176 * iconvdata/iso-2022-cn.c: Likewise.
3177 * iconvdata/iso-2022-jp.c: Likewise.
3178 * iconvdata/iso-2022-kr.c: Likewise.
3179 * iconvdata/iso646.c: Likewise.
3180 * iconvdata/iso8859-1.c: Likewise.
3181 * iconvdata/iso_6937-2.c: Likewise.
3182 * iconvdata/iso_6937.c: Likewise.
3183 * iconvdata/johab.c: Likewise.
3184 * iconvdata/sjis.c: Likewise.
3185 * iconvdata/t.61.c: Likewise.
3186 * iconvdata/uhc.c: Likewise.
3187 * iconvdata/unicode.c: Likewise.
3188 * iconvdata/utf-16.c: Likewise.
3189 * libio/iofwide.c: Reset __trans member of __gconv_trans_data
3190 structure correctly after last change.
3191 * wcsmbs/btowc.c: Likewise.
3192 * wcsmbs/mbrtowc.c: Likewise.
3193 * wcsmbs/mbsnrtowcs.c: Likewise.
3194 * wcsmbs/mbsrtowcs.c: Likewise.
3195 * wcsmbs/wcrtomb.c: Likewise.
3196 * wcsmbs/wcsnrtombs.c: Likewise.
3197 * wcsmbs/wcsrtombs.c: Likewise.
3198 * wcsmbs/wctob.c: Likewise.
3199
3200 * localedata/Makefile: Set -Wno-format for some files since gcc does
3201 not know all the format specifiers.
3202
3203 2000-06-18 Ulrich Drepper <drepper@redhat.com>
3204
3205 * locale/loadlocale.c (_nl_unload_locale): Remove a bit of
3206 unneeded code.
3207 * locale/lc-time.c (_nl_init_era_entries): Likewise.
3208
3209 2000-06-18 Andreas Jaeger <aj@suse.de>
3210
3211 * sysdeps/mips/dl-machine.h: Always use $25 as jump register.
3212 Patch by Ralf Baechle <ralf@uni-koblenz.de>.
3213
3214 2000-06-17 Ulrich Drepper <drepper@redhat.com>
3215
3216 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Define and use
3217 LINUX_LINK_MAX.
3218 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
3219
3220 * locale/programs/ld-ctype.c (ctype_output): Really write out
3221 mboutdigits information.
3222 * localedata/tst-trans.c: Add code to test printf's I flag with locale.
3223 * localedata/tst-trans.sh: Set GCONV_PATH for compilation environment.
3224 * localedata/tests/trans.def: Add outdigit information.
3225
3226 * localedata/tst-mbswcs3.c: Remove comment.
3227
3228 * stdio-common/vfprintf.c (vfprintf): Fix handling of I flag.
3229 * stdio-common/tiformat.c (sprint_ints): Add tests for I flag.
3230 * libio/tst_wprintf.c (main): Add test for I flag.
3231
3232 * iconv/gconv_trans.c: Implement handling if translit_ignore.
3233 * locale/langinfo.h: Add entries for translit_ignore information.
3234 * locale/categories.def: Add entries for new LC_CTYPE elements.
3235 * locale/C-ctype.c: Add initializers for new fields. Use NULL
3236 pointer instead of "" where possible.
3237 * locale/programs/ld-ctype.c: Write out translit_ignore information.
3238 * intl/Depend: Add localedata.
3239 * intl/tst-gettext.c: Call setlocale for LC_CTYPE.
3240 * intl/tst-gettext.sh: Set LOCPATH to localedata build dir.
3241
3242 2000-06-16 Ulrich Drepper <drepper@redhat.com>
3243
3244 * locale/langinfo.h: Add entries for default_missing information.
3245 * locale/C-ctype.c: Add initializers for new fields.
3246 * iconv/gconv_trans.c: If nothing matched, try to use default_missing
3247 information.
3248 * locale/categories.h: Add entries for all LC_CTYPE values.
3249 * locale/programs/ld-ctype.c (ctype_output): Write out default_missing
3250 information.
3251
3252 * localedata/tst-trans.c: Write out an error message if class is
3253 not found.
3254
3255 * iconv/gconv_int.h (norm_add_slashes): Optionally add given suffix.
3256 * iconv/gconv_open.c: Remove error handling specification from `from'
3257 character set name.
3258 * intl/loadmsgcat.c (_nl_load_domain): Call norm_add_slashes with
3259 new parameter to always enable transliteration.
3260 * locale/localeinfo.h (LIMAGIC): Bump number because of incompatible
3261 change.
3262 (struct locale_data): Add new members use_translit and options.
3263 * locale/findlocale.c (_nl_find_locale): Set use_translit flag is
3264 character set name contained modifier TRANSLIT.
3265 * locale/loadlocale.c (_nl_load_locale): Initialize new use_translit
3266 and options fields.
3267 (_nl_unload_locale): Free options string if necessary.
3268 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Enable translation if
3269 the locale names suggested this.
3270 * locale/C-address.c: Add two new initialilzers to adjust data
3271 structure for new format.
3272 * locale/C-collate.c: Likewise.
3273 * locale/C-ctype.c: Likewise.
3274 * locale/C-identification.c: Likewise.
3275 * locale/C-measurement.c: Likewise.
3276 * locale/C-messages.c: Likewise.
3277 * locale/C-monetary.c: Likewise.
3278 * locale/C-name.c: Likewise.
3279 * locale/C-numeric.c: Likewise.
3280 * locale/C-paper.c: Likewise.
3281 * locale/C-telephone.c: Likewise.
3282 * locale/C-time.c: Likewise.
3283
3284 * locale/setlocale.c: Add some more __builtin_expect.
3285
3286 2000-06-15 Ulrich Drepper <drepper@redhat.com>
3287
3288 * iconv/gconv.h (__gconv_fct): Change type of fifth parameter to
3289 unsigned char **.
3290 (__gconv_init_fct): Remove two parameters.
3291 * iconv/gconv_int.h (__gconv_transliterate): Renamed from
3292 gconv_transliterate. Remove two parameters.
3293 Change prototypes of builtin functions according to __gconv_fct change.
3294 * iconv/skeleton.c: Change type of fifth parameter. make sure it is
3295 != NULL only during error handling. Stop in this case after the
3296 conversion.
3297 * iconv/gconv_trans.c: Replace with real implementation for
3298 __gconv_transliterate.
3299 * iconv/gconv_open.c: Adjust for renaming of __gconv_transliterate.
3300 * iconv/gconv.c: Change calls to downstream functions once again.
3301 Use NULL for the fifth parameter instead of pointer to output buffer.
3302 * libio/iofwide.c: Likewise.
3303 * wcsmbs/btowc.c: Likewise.
3304 * wcsmbs/mbrtowc.c: Likewise.
3305 * wcsmbs/mbsnrtowcs.c: Likewise.
3306 * wcsmbs/mbsrtowcs.c: Likewise.
3307 * wcsmbs/wcrtomb.c: Likewise.
3308 * wcsmbs/wcsnrtombs.c: Likewise.
3309 * wcsmbs/wcsrtombs.c: Likewise.
3310 * wcsmbs/wctob.c: Likewise.
3311 * iconv/gconv_simple.c: Remove two parameters from error handling
3312 function call.
3313 * iconvdata/8bit-gap.c: Likewise.
3314 * iconvdata/8bit-generic.c: Likewise.
3315 * iconvdata/ansi_x3.110.c: Likewise.
3316 * iconvdata/big5.c: Likewise.
3317 * iconvdata/big5hkscs.c: Likewise.
3318 * iconvdata/euc-cn.c: Likewise.
3319 * iconvdata/euc-jp.c: Likewise.
3320 * iconvdata/euc-kr.c: Likewise.
3321 * iconvdata/euc-tw.c: Likewise.
3322 * iconvdata/gbgbk.c: Likewise.
3323 * iconvdata/gbk.c: Likewise.
3324 * iconvdata/iso-2022-cn.c: Likewise.
3325 * iconvdata/iso-2022-jp.c: Likewise.
3326 * iconvdata/iso-2022-kr.c: Likewise.
3327 * iconvdata/iso646.c: Likewise.
3328 * iconvdata/iso8859-1.c: Likewise.
3329 * iconvdata/iso_6937-2.c: Likewise.
3330 * iconvdata/iso_6937.c: Likewise.
3331 * iconvdata/johab.c: Likewise.
3332 * iconvdata/sjis.c: Likewise.
3333 * iconvdata/t.61.c: Likewise.
3334 * iconvdata/uhc.c: Likewise.
3335 * iconvdata/unicode.c: Likewise.
3336 * iconvdata/utf-16.c: Likewise.
3337
3338 2000-06-15 Greg McGary <greg@mcgary.org>
3339
3340 * sysdeps/unix/make-syscalls.sh: Strip leading whitespace from lhs
3341 of callnum assignment. Tolerate callnum expressions containing
3342 parens.
3343
3344 2000-06-14 Ulrich Drepper <drepper@redhat.com>
3345
3346 * login/Makefile (utmpd): Remove rule to build utmpd.
3347
3348 * csu/Versions: Move libgcc frame handling functions from here...
3349 * sysdeps/unix/sysv/linux/alpha/Versions: ...to here...
3350 * sysdeps/unix/sysv/linux/arm/Versions: ...to here...
3351 * sysdeps/unix/sysv/linux/i386/Versions: ...to here...
3352 * sysdeps/unix/sysv/linux/m68k/Versions: ...to here...
3353 * sysdeps/unix/sysv/linux/powerpc/Versions: ...to here...
3354 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: ...and here.
3355 New file.
3356 * sysdeps/mach/hurd/i386/Versions: ...and here. New file.
3357
3358 * locale/programs/ld-ctype.c (allocate_arrays): Correct a comment.
3359
3360 * misc/syslog.c (vsyslog): Initialize msgoff in all cases.
3361
3362 2000-06-14 Kazumoto Kojima <kkojima@rr.iij4u.or.jp>
3363
3364 * sysdeps/sh/sh4/fpu/fclrexcpt.c: Remove definitions for backward
3365 compatibility.
3366 * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
3367 * sysdeps/sh/sh4/fpu/fesetenv.c: Likewise.
3368 * sysdeps/sh/sh4/fpu/fraiseexcpt.c: Likewise.
3369 * sysdeps/sh/sh4/fpu/fsetexcptflg.c: Likewise.
3370
3371 2000-06-14 Jakub Jelinek <jakub@redhat.com>
3372
3373 * include/libc-symbols.h (link_warning): If HAVE_SECTION_QUOTES is
3374 defined, terminate quotes and read them after the comment char.
3375 * configure.in (HAVE_SECTION_QUOTES): Test whether
3376 __attribute__((section ("x"))) puts quotes around x or not.
3377 * config.h.in (HAVE_SECTION_QUOTES): Add.
3378 * configure: Rebuilt.
3379
3380 2000-06-14 Andreas Jaeger <aj@suse.de>
3381
3382 * sysdeps/unix/sysv/linux/configure.in: Set libc_cv_sysconfdir
3383 depending on the configure option --sysconfdir.
3384 Closes PR libc/1762.
3385 Patch by Andreas Schwab <schwab@suse.de>.
3386
3387 * sysdeps/mips/dl-machine.h: Pass finalizer correctly to user
3388 entry point.
3389 Reported by Jim Pick <jim@jimpick.com>.
3390
3391 2000-06-14 Ulrich Drepper <drepper@redhat.com>
3392
3393 * misc/syslog.c (vsyslog): Allow open_memstream to fail without
3394 crashing the application. Emit some simple error message.
3395 Reported by mju@panasas.com [PR libc/1769].
3396
3397 2000-06-13 Ulrich Drepper <drepper@redhat.com>
3398
3399 * malloc/Makefile (distribute): Add memprof.sh and memprofstat.c.
3400
3401 * crypt/Makefile (distribute): Add md5.h.
3402
3403 * Makefile (distribute): Add include/shlib-compat.h.
3404
3405 * Make-dist: Search for tests also in sysdeps hierachy.
3406
3407 * crypt/Makefile (distribute): Add ufc-crypt.h, crypt-private.h,
3408 ufc.c, speeds.c, README.ufc-crypt, and Banner.
3409
3410 * sysdeps/sparc/Subdirs: New file.
3411
3412 * locale/Makefile (distribute): Add weightwc.h and
3413 programs/localedef.h.
3414
3415 * time/Makefile (distribute): Add datemsk.
3416
3417 * sysdeps/ia64/Dist: Add softpipe.h.
3418
3419 * sysdeps/unix/sysv/aix/Dist: New file.
3420
3421 * posix/setpgrp.c: Moved to...
3422 * sysdeps/generic/setpgrp.c: ...here. New file.
3423 * io/mknod.c: Moved to...
3424 * sysdeps/generic/mknod.c: ...here. New file.
3425
3426 * sysdeps/unix/sysv/linux/ia64/Dist: New file.
3427
3428 * sysdeps/unix/sysv/linux/sparc/Dist: Add sys/procfs.h.
3429
3430 * sysdeps/unix/sysv/linux/arm/Dist: Add oldgetrlimit64.c.
3431
3432 * sysdeps/powerpc/Dist: Add fprrest.S, fprsave.S, gprsave1.S,
3433 gprsave0.S, gprrest1.S, and gprrest0.S.
3434
3435 * sysdeps/generic/Dist: Add bp-thunks.h, bp-sym.h, and bp-start.h.
3436
3437 * posix/Makefile (routines): Add spawnattr_getsigmask,
3438 spawnattr_getschedpolicy, spawnattr_getschedparam,
3439 spawnattr_setsigmask, spawnattr_setschedpolicy, and
3440 spawnattr_setschedparam.
3441 * posix/Versions: Add posix_spawnattr_getschedpolicy,
3442 posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam, and
3443 posix_spawnattr_setschedparam.
3444
3445 * posix/spawnattr_setschedparam.c: Fix typo.
3446
3447 * posix/spawnattr_setsigmask.c (posix_spawnattr_setsigmask):
3448 Correct typo.
3449
3450 * login/programs/utmpd.c: Removed.
3451 * login/programs/utmpd.h: Removed.
3452 * login/programs/utmpd-private.h: Removed.
3453
3454 * Makefile (distribute): Add include/db_185.h and include/db.h.
3455
3456 * iconvdata/Makefile (distribute): Add iso-ir-165.c and
3457 iso-ir-165.h.
3458
3459 * elf/Makefile (distribute): Add missing files.
3460
3461 * dlfcn/Makefile: Add back rules to include eval in libdl.so.
3462 * elf/eval.c: Moved to...
3463 * dlfcn/eval.c: ...here. New file.
3464
3465 * Makefile (distribute): Also distribute ChangeLog.1?.
3466
3467 * Make-dist (+tsrcs): Remove .args handling here as well.
3468
3469 * rt/Makefile (tests): Add tst-timer.
3470 * sysdeps/generic/tst-timer.c: New file.
3471
3472 * Makerules (sources): Don't add BP sources here.
3473
3474 * login/Makefile (distribute): Remove xtmp.h.
3475
3476 * iconv/iconv_prog.c (main): Fix appending slashes if omit_invalid
3477 is true. Reported by Bruno Haible <haible@ilog.fr>.
3478
3479 2000-06-13 Andreas Jaeger <aj@suse.de>
3480
3481 * sysdeps/mips/elf/start.S (ENTRY_POINT): Remove mips64 defines.
3482 Patch by Ralf Baechle <ralf@gnu.org>.
3483
3484 2000-06-13 Ulrich Drepper <drepper@redhat.com>
3485
3486 * sysdeps/unix/sysv/linux/syscalls.list: Add parameter information
3487 for mincore syscall.
3488
3489 * misc/sys/cdefs.h: Define __bounded and __unbounded if
3490 __BOUNDED_POINTERS__ is not defined.
3491
3492 2000-06-07 Greg McGary <greg@mcgary.org>
3493
3494 * sysdeps/generic/bp-sym.h: New file.
3495 * sysdeps/generic/bp-start.h: New file.
3496 * sysdeps/i386/elf/start.S: Designate BP symbols.
3497 * sysdeps/generic/libc-start.c: Wrap bounds around
3498 argv & envp and each of their string members.
3499
3500 2000-06-07 Greg McGary <greg@mcgary.org>
3501
3502 * sysdeps/unix/make-syscalls.sh: Add comments to
3503 output that aid debugging & comprehension.
3504 Map simple syscall signatures to number of args.
3505 Generate BP syscall thunk definitions.
3506 * sysdeps/generic/bp-thunks.h: New file.
3507 * sysdeps/unix/syscalls.list: Replace arg-count with
3508 simple return+arg signature.
3509 * sysdeps/unix/common/syscalls.list: Likewise.
3510 * sysdeps/unix/inet/syscalls.list: Likewise.
3511 * sysdeps/unix/mman/syscalls.list: Likewise.
3512 * sysdeps/unix/sysv/syscalls.list: Likewise.
3513 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3514 * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
3515
3516 2000-06-07 Greg McGary <greg@mcgary.org>
3517
3518 * Makeconfig (CPPFLAGS-.ob): Pass -fbounded-pointers
3519 for all files *.[cS].
3520 (CFLAGS-.ob): Don't optimize sibling calls.
3521 (bppfx): New variable.
3522 * Makerules (elide-bp-thunks): New variable.
3523 (elide-routines.*): Elide BP-* files for all but *.ob.
3524 (sources): Include bp-thunks.
3525
3526 2000-06-12 Ulrich Drepper <drepper@redhat.com>
3527
3528 * iconv/gconv_simple.c: Remove unnecessary prototype.
3529
3530 * iconv/gconv_trans.c: Pretty print.
3531
3532 * elf/elf.h (R_SH_NUM): Got accidently dropped.
3533
3534 * sysdeps/unix/sysv/linux/configure.in: Improve handling of
3535 minimal kernel versions. Add information about IA-64 kernel.
3536
3537 * sysdeps/unix/sysv/linux/configure.in: Allow architecture
3538 specific minimal supported kernel versions to be specified.
3539
3540 * libio/iofwide.c (_IO_fwide): Initialize transliteration part of
3541 step data structure.
3542 * wcsmbs/btowc.c: Likewise.
3543 * wcsmbs/mbrtowc.c: Likewise.
3544 * wcsmbs/mbsnrtowcs.c: Likewise.
3545 * wcsmbs/mbsrtowcs.c: Likewise.
3546 * wcsmbs/wcrtomb.c: Likewise.
3547 * wcsmbs/wcsnrtombs.c: Likewise.
3548 * wcsmbs/wcsrtombs.c: Likewise.
3549 * wcsmbs/wctob.c: Likewise.
3550
3551 * sysdeps/unix/sysv/linux/sh/Dist: There is no ioperm file.
3552 * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: Removed.
3553
3554 * shlib-versions: Earliest backward compatible version for SH is 2.2.
3555
3556 * misc/sys/cdefs.h: Remove one more __P.
3557
3558 * sysvipc/sys/shm.h: Move __getpagesize declaration inside extern C.
3559 Reported by HJ Lu.
3560
3561 * sysdeps/sh/sh3/bits/setjmp.h: Removed.
3562 * sysdeps/sh/sh4/bits/setjmp.h: Moved to...
3563 * sysdeps/sh/bits/setjmp.h: ...here. New file.
3564
3565 2000-06-12 Kazumoto Kojima <kkojima@rr.iij4u.or.jp>
3566 Yutaka Niibe <gniibe@chroot.org>
3567
3568 * configure.in: Add machine sh3, sh4.
3569 * elf/elf.h: Add SH specific declarations of relocations.
3570 * shlib-versions: Add sh*-*-linux* cases.
3571
3572 2000-06-12 Ulrich Drepper <drepper@redhat.com>
3573
3574 * sysdeps/sh/sh3/bsd-_setjmp.S: Move to...
3575 * sysdeps/sh/bsd-_setjmp.S: ...here. New file.
3576 * sysdeps/sh/sh4/bsd-_setjmp.S: Removed.
3577 * sysdeps/sh/sh3/bsd-setjmp.S: Move to...
3578 * sysdeps/sh/bsd-setjmp.S: ...here. New file.
3579 * sysdeps/sh/sh4/bsd-setjmp.S: Removed.
3580
3581 * sysdeps/sh/dl-machine.h (FGR_SAVE): Protect using HAVE_FPU macro
3582 instead of KERNEL_MATH_EMULATION.
3583 * sysdeps/sh/sh4/dl-machine.h: Define HAVE_FPU not
3584 KERNEL_MATH_EMULATION.
3585
3586 * sysdeps/sh/Dist: Removed. There is no ieee754.h file.
3587 * sysdeps/sh/sh3/dl-machine.h: Moved to...
3588 * sysdeps/sh/dl-machine.h: ...here. New file.
3589 * sysdeps/sh/sh4/dl-machine.h: Simply define KERNEL_MATH_EMULATION
3590 and include generic SH version.
3591 * sysdeps/sh/sh3/bits/endian.h: Move to...
3592 * sysdeps/sh/bits/endian.h: ...here. New file.
3593 * sysdeps/sh/sh4/bits/endian.h: Removed.
3594 * sysdeps/sh/sh3/bits/huge_val.h: Move to...
3595 * sysdeps/sh/bits/huge_val.h: ...here. New file.
3596 * sysdeps/sh/sh4/bits/huge_val.h: Removed.
3597
3598 * include/libc-symbols.h (link_warning): Work around a change in
3599 GAS which warns about changing section attributes.
3600 Proposed by Nick Clifton <nickc@redhat.com>.
3601
3602 2000-06-12 H.J. Lu <hjl@gnu.org>
3603
3604 * sysdeps/i386/fpu/bits/mathinline.h (__sgn1l): Add __extension__.
3605
3606 2000-06-11 H.J. Lu <hjl@gnu.org>
3607
3608 * sysdeps/i386/fpu/Versions: New file.
3609
3610 2000-06-12 Ulrich Drepper <drepper@redhat.com>
3611
3612 * iconv/gconv.h (__gconv_trans_context_fct): Remove two
3613 parameters.
3614 * iconv/skeleton.c (FUNCTION_NAME): Call __trans_context_fct if it
3615 exists.
3616
3617 2000-06-12 Jes Sorensen <jes@linuxcare.com>
3618
3619 * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
3620 * sysdeps/unix/sysv/linux/ia64/xstatconv.c: New file.
3621 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: New file.
3622
3623 * sysdeps/unix/sysv/linux/ia64/fxstat64.c: New file.
3624 * sysdeps/unix/sysv/linux/ia64/lxstat64.c: New file.
3625 * sysdeps/unix/sysv/linux/ia64/xstat64.c: New file.
3626
3627 2000-06-12 Kazumoto Kojima <kkojima@rr.iij4u.or.jp>
3628 Yutaka Niibe <gniibe@chroot.org>
3629
3630 * sysdeps/sh/Dist: New file.
3631 * sysdeps/sh/Implies: New file.
3632 * sysdeps/sh/elf/initfini.c: New file.
3633 * sysdeps/sh/gmp-mparam.h: New file.
3634 * sysdeps/sh/init-first.c: New file.
3635 * sysdeps/sh/machine-gmon.h: New file.
3636 * sysdeps/sh/memcpy.S: New file.
3637 * sysdeps/sh/memprof.h: New file.
3638 * sysdeps/sh/memset.S: New file.
3639 * sysdeps/sh/sh3/__longjmp.S: New file.
3640 * sysdeps/sh/sh3/bits/endian.h: New file.
3641 * sysdeps/sh/sh3/bits/huge_val.h: New file.
3642 * sysdeps/sh/sh3/bits/setjmp.h: New file.
3643 * sysdeps/sh/sh3/bsd-_setjmp.S: New file.
3644 * sysdeps/sh/sh3/bsd-setjmp.S: New file.
3645 * sysdeps/sh/sh3/dl-machine.h: New file.
3646 * sysdeps/sh/sh3/setjmp.S: New file.
3647 * sysdeps/sh/sh4/__longjmp.S: New file.
3648 * sysdeps/sh/sh4/bits/endian.h: New file.
3649 * sysdeps/sh/sh4/bits/huge_val.h: New file.
3650 * sysdeps/sh/sh4/bits/setjmp.h: New file.
3651 * sysdeps/sh/sh4/bsd-_setjmp.S: New file.
3652 * sysdeps/sh/sh4/bsd-setjmp.S: New file.
3653 * sysdeps/sh/sh4/dl-machine.h: New file.
3654 * sysdeps/sh/sh4/fpu/bits/fenv.h: New file.
3655 * sysdeps/sh/sh4/fpu/bits/huge_val.h: New file.
3656 * sysdeps/sh/sh4/fpu/bits/mathdef.h: New file.
3657 * sysdeps/sh/sh4/fpu/fclrexcpt.c: New file.
3658 * sysdeps/sh/sh4/fpu/fegetenv.c: New file.
3659 * sysdeps/sh/sh4/fpu/fegetround.c: New file.
3660 * sysdeps/sh/sh4/fpu/feholdexcpt.c: New file.
3661 * sysdeps/sh/sh4/fpu/fesetenv.c: New file.
3662 * sysdeps/sh/sh4/fpu/fesetround.c: New file.
3663 * sysdeps/sh/sh4/fpu/fpu_control.h: New file.
3664 * sysdeps/sh/sh4/fpu/fraiseexcpt.c: New file.
3665 * sysdeps/sh/sh4/fpu/fsetexcptflg.c: New file.
3666 * sysdeps/sh/sh4/fpu/ftestexcept.c: New file.
3667 * sysdeps/sh/sh4/fpu/libm-test-ulps: New file.
3668 * sysdeps/sh/sh4/setjmp.S: New file.
3669 * sysdeps/sh/elf/start.S: New file.
3670 * sysdeps/sh/sys/ucontext.h: New file.
3671 * sysdeps/sh/strlen.S: New file.
3672 * sysdeps/sh/sysdep.h: New file.
3673 * sysdeps/unix/sh/sysdep.S: New file.
3674 * sysdeps/unix/sh/sysdep.h: New file.
3675 * sysdeps/unix/sysv/linux/sh/Dist: New file.
3676 * sysdeps/unix/sysv/linux/sh/Makefile: New file.
3677 * sysdeps/unix/sysv/linux/sh/Versions: New file.
3678 * sysdeps/unix/sysv/linux/sh/bits/mman.h: New file.
3679 * sysdeps/unix/sysv/linux/sh/bits/resource.h: New file.
3680 * sysdeps/unix/sysv/linux/sh/brk.c: New file.
3681 * sysdeps/unix/sysv/linux/sh/chown.c: New file.
3682 * sysdeps/unix/sysv/linux/sh/clone.S: New file.
3683 * sysdeps/unix/sysv/linux/sh/fchown.c: New file.
3684 * sysdeps/unix/sysv/linux/sh/fxstat.c: New file.
3685 * sysdeps/unix/sysv/linux/sh/getegid.c: New file.
3686 * sysdeps/unix/sysv/linux/sh/geteuid.c: New file.
3687 * sysdeps/unix/sysv/linux/sh/getgroups.c: New file.
3688 * sysdeps/unix/sysv/linux/sh/getresgid.c: New file.
3689 * sysdeps/unix/sysv/linux/sh/getresuid.c: New file.
3690 * sysdeps/unix/sysv/linux/sh/getrlimit.c: New file.
3691 * sysdeps/unix/sysv/linux/sh/getrlimit64.c: New file.
3692 * sysdeps/unix/sysv/linux/sh/getuid.c: New file.
3693 * sysdeps/unix/sysv/linux/sh/lchown.c: New file.
3694 * sysdeps/unix/sysv/linux/sh/lxstat.c: New file.
3695 * sysdeps/unix/sysv/linux/sh/msgctl.c: New file.
3696 * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: New file.
3697 * sysdeps/unix/sysv/linux/sh/pipe.S: New file.
3698 * sysdeps/unix/sysv/linux/sh/profil-counter.h: New file.
3699 * sysdeps/unix/sysv/linux/sh/semctl.c: New file.
3700 * sysdeps/unix/sysv/linux/sh/setegid.c: New file.
3701 * sysdeps/unix/sysv/linux/sh/seteuid.c: New file.
3702 * sysdeps/unix/sysv/linux/sh/setfsgid.c: New file.
3703 * sysdeps/unix/sysv/linux/sh/setfsuid.c: New file.
3704 * sysdeps/unix/sysv/linux/sh/setgid.c: New file.
3705 * sysdeps/unix/sysv/linux/sh/setgroups.c: New file.
3706 * sysdeps/unix/sysv/linux/sh/setregid.c: New file.
3707 * sysdeps/unix/sysv/linux/sh/setresgid.c: New file.
3708 * sysdeps/unix/sysv/linux/sh/setresuid.c: New file.
3709 * sysdeps/unix/sysv/linux/sh/setreuid.c: New file.
3710 * sysdeps/unix/sysv/linux/sh/setrlimit.c: New file.
3711 * sysdeps/unix/sysv/linux/sh/setuid.c: New file.
3712 * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: New file.
3713 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: New file.
3714 * sysdeps/unix/sysv/linux/sh/shmctl.c: New file.
3715 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: New file.
3716 * sysdeps/unix/sysv/linux/sh/socket.S: New file.
3717 * sysdeps/unix/sysv/linux/sh/sys/io.h: New file.
3718 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
3719 * sysdeps/unix/sysv/linux/sh/sys/user.h: New file.
3720 * sysdeps/unix/sysv/linux/sh/syscalls.list: New file.
3721 * sysdeps/unix/sysv/linux/sh/sysdep.S: New file.
3722 * sysdeps/unix/sysv/linux/sh/sysdep.h: New file.
3723 * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
3724 * sysdeps/unix/sysv/linux/sh/xstat.c: New file.
3725
3726 2000-06-12 Ulrich Drepper <drepper@redhat.com>
3727
3728 * Rules (%.out): Define GCONV_PATH in the environment.
3729 * assert/Depend: New file.
3730 * iconvdata/Depend: New file.
3731 * intl/Depend: New file.
3732 * timezone/Makefile (build-testdata): Add GCONV_PATH to environment.
3733 * intl/tst-gettext.sh: Likewise.
3734 * iconv/Makefile (routines): Add gconv_trans.
3735 * iconv/gconv_trans.c: New file.
3736 * iconv/gconv.h (struct __gconv_trans_data): New type.
3737 (__gconv_fct): New parameter with starting position in output buffer.
3738 (__gconv_trans_fct, __gconv_trans_context_fct, __gconv_trans_query_fct,
3739 __gconv_trans_init_fct, __gconv_trans_end_fct): New types.
3740 (struct __gconv_step): Add new member __trans.
3741 * iconv/gconv_int.h: Pretty print prototypes.
3742 (gconv_transliterate): New prototype.
3743 (__BUILTIN_TRANS): Update for new conversion function interface.
3744 * iconv/gconv.c (__gconv): Pass new parameter to conversion function.
3745 * iconv/gconv_open.c (__gconv_open): Recognize error handling suffix
3746 in names, find appropriate function, and install in the conversion
3747 steps it can be used.
3748 * iconv/skeleton.c: Add additional parameter for beginning of output
3749 buffer. Change calls of downstream functions.
3750 * iconv/loop.c: Change loop function interface completely. Pass in
3751 step and step_data structure. Remove optimization for BODY with
3752 NEED_LENGTH_TEST == 0.
3753 * iconv/gconv_simple.c: Update interfaces of functions. Insert
3754 appropriate error handling code to use transliteration steps. Remove
3755 optimization for BODY with NEED_LENGTH_TEST == 0.
3756 * iconvdata/8bit-gap.c: Likewise.
3757 * iconvdata/8bit-generic.c: Likewise.
3758 * iconvdata/ansi_x3.110.c: Likewise.
3759 * iconvdata/big5.c: Likewise.
3760 * iconvdata/big5hkscs.c: Likewise.
3761 * iconvdata/euc-cn.c: Likewise.
3762 * iconvdata/euc-jp.c: Likewise.
3763 * iconvdata/euc-kr.c: Likewise.
3764 * iconvdata/euc-tw.c: Likewise.
3765 * iconvdata/gbgbk.c: Likewise.
3766 * iconvdata/gbk.c: Likewise.
3767 * iconvdata/iso-2022-cn.c: Likewise.
3768 * iconvdata/iso-2022-jp.c: Likewise.
3769 * iconvdata/iso-2022-kr.c: Likewise.
3770 * iconvdata/iso646.c: Likewise.
3771 * iconvdata/iso8859-1.c: Likewise.
3772 * iconvdata/iso_6937-2.c: Likewise.
3773 * iconvdata/iso_6937.c: Likewise.
3774 * iconvdata/johab.c: Likewise.
3775 * iconvdata/sjis.c: Likewise.
3776 * iconvdata/t.61.c: Likewise.
3777 * iconvdata/uhc.c: Likewise.
3778 * iconvdata/unicode.c: Likewise.
3779 * iconvdata/utf-16.c: Likewise.
3780 * libio/iofwide.c: Adjust to new interface of gconv functions. Use
3781 DL_CALL_FCT.
3782 * wcsmbs/btowc.c: Likewise.
3783 * wcsmbs/mbrtowc.c: Likewise.
3784 * wcsmbs/mbsnrtowcs.c: Likewise.
3785 * wcsmbs/mbsrtowcs.c: Likewise.
3786 * wcsmbs/wcrtomb.c: Likewise.
3787 * wcsmbs/wcsnrtombs.c: Likewise.
3788 * wcsmbs/wcsrtombs.c: Likewise.
3789 * wcsmbs/wctob.c: Likewise.
3790
3791 2000-04-11 Geoff Keating <geoffk@cygnus.com>
3792
3793 * sysdeps/powerpc/dl-machine.c: Include dl-machine.h after the
3794 other header files. Mention about 128-byte cache line sizes.
3795 (__elf_machine_fixup_plt): Make types match elf_machine_fixup_plt.
3796 * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Update
3797 for current calling sequence.
3798 * sysdeps/powerpc/dl-start.S (_dl_start_user): Close comment.
3799
3800 * sysdeps/powerpc/fpu/s_rint.c: Handle rounding to -0 correctly.
3801 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
3802
3803 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getrlimit
3804 and setrlimit syscalls for backwards compatibility.
3805
3806 2000-06-10 Ulrich Drepper <drepper@redhat.com>
3807
3808 * iconv/skeleton.c: Rename converted written to correcter name
3809 irreversible.
3810 * iconv/gconv.c: Rename converted variable to correcter name
3811 irreversible.
3812 * iconv/gconv_int.h: Likewise.
3813 * iconv/gconv_simple.c: Likewise.
3814 * iconv/iconv.c: Likewise.
3815 * iconv/loop.c: Likewise.
3816 * iconvdata/8bit-gap.c: Likewise.
3817 * iconvdata/8bit-generic.c: Likewise.
3818 * iconvdata/ansi_x3.110.c: Likewise.
3819 * iconvdata/big5.c: Likewise.
3820 * iconvdata/big5hkscs.c: Likewise.
3821 * iconvdata/euc-cn.c: Likewise.
3822 * iconvdata/euc-jp.c: Likewise.
3823 * iconvdata/euc-kr.c: Likewise.
3824 * iconvdata/gbgbk.c: Likewise.
3825 * iconvdata/gbk.c: Likewise.
3826 * iconvdata/iso-2022-cn.c: Likewise.
3827 * iconvdata/iso-2022-jp.c: Likewise.
3828 * iconvdata/iso-2022-kr.c: Likewise.
3829 * iconvdata/iso646.c: Likewise.
3830 * iconvdata/iso8859-1.c: Likewise.
3831 * iconvdata/iso_6937-2.c: Likewise.
3832 * iconvdata/iso_6937.c: Likewise.
3833 * iconvdata/johab.c: Likewise.
3834 * iconvdata/sjis.c: Likewise.
3835 * iconvdata/t.61.c: Likewise.
3836 * iconvdata/uhc.c: Likewise.
3837 * iconvdata/unicode.c: Likewise.
3838 * iconvdata/utf-16.c: Likewise.
3839
3840 * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Mark
3841 __cmsg_data field with __extension__.
3842
3843 2000-06-10 David Mosberger <davidm@hpl.hp.com>
3844
3845 * sysdeps/unix/sysv/linux/ia64/syscall.S: Fix it so it actually works.
3846
3847 2000-06-10 Ulrich Drepper <drepper@redhat.com>
3848
3849 * iconv/gconv_simple.c: Fix various small bugs in several
3850 functions.
3851
3852 * iconv/loop.c: Fix comment.
3853
3854 2000-06-10 Jakub Jelinek <jakub@redhat.com>
3855
3856 * elf/link.h: Remove libc internal declarations.
3857 * include/link.h: Move them here.
3858
3859 2000-06-09 Ulrich Drepper <drepper@redhat.com>
3860
3861 * sysdeps/unix/sysv/linux/ia64/getsysstats.c: New file.
3862 Patch by Dan Pop <Dan.Pop@cern.ch>.
3863
3864 Rewrite error message handling.
3865 * elf/dl-deps.c (_dl_map_object_deps): Pass new parameter to
3866 _dl_catch_error.
3867 * elf/dl-error (struct catch): Add objname member.
3868 (_dl_signal_error): Take new parameter with object name. When
3869 passing message on simply store object name and duplicate error
3870 message.
3871 (_dl_catch_error): Take new parameter. Store object name in the
3872 place pointed to.
3873 * include/dlfcn.h: Adjust _dl_catch_error prototype.
3874 * sysdeps/generic/ldsodefs.h: Adjust _dl_signal_error prototype.
3875 * dlfcn/dlerror.c (struct dl_action_result): Add objname member.
3876 (dlerror): Add objname to asprintf() parameters.
3877 (_dl_error_run): Pass new parameter to _dl_catch_error.
3878 * elf/dl-libc.c (dlerror_run): Pass new parameter to _dl_catch_error.
3879 * elf/dl-open.c (_dl_open): Likewise.
3880 * elf/rtld.c (dl_main): Likewise.
3881 * elf/dl-close.c: Mark error messages with N_().
3882 * elf/dl-deps.c: Likewise.
3883 * elf/dl-error.c: Likewise.
3884 * elf/dl-load.c: Likewise.
3885 * elf/dl-open.c: Likewise.
3886 * elf/dl-reloc.c: Likewise.
3887 * elf/dl-support.c: Likewise.
3888 * elf/dl-sym.c: Likewise.
3889 * elf/dl-version.c: Likewise.
3890 * elf/dl-lookup.c: Add comments about problems with error message
3891 translations.
3892 * elf/dl-reloc.c: Likewise.
3893 * elf/dl-version.c: Likewise.
3894
3895 2000-06-09 H.J. Lu <hjl@gnu.org>
3896
3897 * dlfcn/dlerror.c (_dlerror_run): Set result->errstring to NULL
3898 after freeing it.
3899
3900 * dlfcn/Makefile (distribute): Add failtestmod.c.
3901 (tests): Add failtest.
3902 Add rules to build and run failtest.
3903 * dlfcn/failtest.c: New file.
3904 * dlfcn/failtestmod.c: New file.
3905
3906 2000-06-09 David Mosberger-Tang <davidm@hpl.hp.com>
3907
3908 * sysdeps/unix/sysv/linux/ia64/__longjmp.S: new file
3909 * sysdeps/unix/sysv/linux/ia64/bsd-_setjmp.S: new file
3910 * sysdeps/unix/sysv/linux/ia64/bsd-setjmp.S: new file
3911 * sysdeps/unix/sysv/linux/ia64/setjmp.S: new file
3912 * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: new file
3913
3914 2000-06-09 Jes Sorensen <jes@linuxcare.com>
3915
3916 * sysdeps/unix/sysv/linux/ia64/brk.S: New file.
3917 * sysdeps/unix/sysv/linux/ia64/pipe.S: New file.
3918
3919 2000-06-09 Jes Sorensen <jes@linuxcare.com>
3920 Ulrich Drepper <drepper@redhat.com>
3921
3922 * sysdeps/unix/sysv/linux/ia64/sigaction.c: New file.
3923 * sysdeps/unix/sysv/linux/ia64/sigpending.c: New file.
3924 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: New file.
3925 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: New file.
3926 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: New file.
3927 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: New file.
3928
3929 2000-06-09 Ulrich Drepper <drepper@redhat.com>
3930
3931 * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Try harder
3932 to find correct mount point despite wrong information from the
3933 kernel.
3934
3935 2000-06-09 Jes Sorensen <jes@linuxcare.com>
3936
3937 * elf/dl-libc.c (__libc_dlsym): Use DL_SYMBOL_ADDRESS() to obtain
3938 the address of a symbol so function pointers are handled properly.
3939
3940 2000-06-08 Ulrich Drepper <drepper@redhat.com>
3941
3942 * sysdeps/i386/Dist: Add bp-asm.h.
3943
3944 * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Use
3945 defaultdir variable instead of "/var/shm" everywhere.
3946 (defaultdir): Change to /dev/shm/.
3947
3948 2000-06-08 Greg McGary <greg@mcgary.org>
3949
3950 * sysdeps/i386/bp-asm.h: New file.
3951 * sysdeps/i386/__longjmp.S: Define & use symbolic argument stack
3952 offsets. Add ENTER/LEAVE macros for optionally maintaining
3953 frame-pointer chain when debugging.
3954 * sysdeps/i386/add_n.S: Likewise.
3955 * sysdeps/i386/addmul_1.S: Likewise.
3956 * sysdeps/i386/lshift.S: Likewise.
3957 * sysdeps/i386/memchr.S: Likewise.
3958 * sysdeps/i386/memcmp.S: Likewise.
3959 * sysdeps/i386/mul_1.S: Likewise.
3960 * sysdeps/i386/rawmemchr.S: Likewise.
3961 * sysdeps/i386/rshift.S: Likewise.
3962 * sysdeps/i386/stpcpy.S: Likewise.
3963 * sysdeps/i386/stpncpy.S: Likewise.
3964 * sysdeps/i386/strchr.S: Likewise.
3965 * sysdeps/i386/strchrnul.S: Likewise.
3966 * sysdeps/i386/strcspn.S: Likewise.
3967 * sysdeps/i386/strpbrk.S: Likewise.
3968 * sysdeps/i386/strrchr.S: Likewise.
3969 * sysdeps/i386/strspn.S: Likewise.
3970 * sysdeps/i386/strtok.S: Likewise.
3971 * sysdeps/i386/sub_n.S: Likewise.
3972 * sysdeps/i386/submul_1.S: Likewise.
3973 * sysdeps/i386/elf/setjmp.S: Likewise.
3974 * sysdeps/i386/i486/strcat.S: Likewise.
3975 * sysdeps/i386/i486/strlen.S: Likewise.
3976 * sysdeps/i386/i586/add_n.S: Likewise.
3977 * sysdeps/i386/i586/lshift.S: Likewise.
3978 * sysdeps/i386/i586/memcpy.S: Likewise.
3979 * sysdeps/i386/i586/memset.S: Likewise.
3980 * sysdeps/i386/i586/rshift.S: Likewise.
3981 * sysdeps/i386/i586/strchr.S: Likewise.
3982 * sysdeps/i386/i586/strcpy.S: Likewise.
3983 * sysdeps/i386/i586/strlen.S: Likewise.
3984 * sysdeps/i386/i586/sub_n.S: Likewise.
3985 * sysdeps/i386/i686/add_n.S: Likewise.
3986 * sysdeps/i386/i686/memcpy.S: Likewise.
3987 * sysdeps/i386/i686/mempcpy.S: Likewise.
3988 * sysdeps/i386/i686/memset.S: Likewise.
3989 * sysdeps/i386/i686/strcmp.S: Likewise.
3990
3991 2000-06-08 Ulrich Drepper <drepper@redhat.com>
3992
3993 * sysdeps/unix/sysv/linux/getdtsz.c: New file.
3994
3995 * sysdeps/unix/sysv/linux/sys/param.h: Define NOFILE directly as
3996 256 and don't use OPEN_MAX.
3997
3998 * sysdeps/unix/sysv/linux/pathconf.c: Define LINUX_LINK_MAX and
3999 use it instead of LINK_MAX.
4000 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
4001
4002 2000-06-08 Andreas Jaeger <aj@suse.de>
4003
4004 * libio/genops.c (_IO_list_lock): Only compile body if we're
4005 thread safe.
4006 (_IO_list_unlock): Likewise.
4007 (_IO_list_resetlock): Likewise.
4008
4009 2000-06-07 Ulrich Drepper <drepper@redhat.com>
4010
4011 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine OPEN_MAX
4012 unless user defined it.
4013
4014 * sysdeps/unix/sysv/linux/bits/local_lim.h: Also undefine LINK_MAX
4015 if not defined by the user.
4016
4017 * libio/iofwrite_u.c (fwrite_unlocked): Remove obsolete comment.
4018 * libio/iofwrite.c (_IO_fwrite): Likewise.
4019
4020 * time/time.h: Add missing __THROW for clock_getcpuclockid
4021 prototype.
4022
4023 * elf/Makefile (distribute): Add dl-dtprocnum.h.
4024 * include/elf.h: Include also <dl-dtprocnum.h>.
4025 * elf/dl-deps.c: Likewise.
4026 * elf/dl-lookup.c: Likewise.
4027 * elf/dl-runtime.c: Likewise.
4028 * elf/dl-version.c: Likewise.
4029 * elf/do-rel.h: Likewise.
4030 * elf/dynamic-link.h: Likewise.
4031 * elf/link.h: Likewise.
4032 * elf/rtld.c: Likewise.
4033 * sysdeps/generic/dl-dtprocnum.h: New file.
4034 * sysdeps/ia64/dl-dtprocnum.h: New file.
4035 * sysdeps/mips/dl-dtprocnum.h: New file.
4036 * sysdeps/sparc/dl-dtprocnum.h: New file.
4037
4038 * sysdeps/i386/dl-machine.h: Add more __builtin_expect.
4039
4040 * elf/do-lookup.h: Add some __builtin_expect.
4041
4042 * dlfcn/dlfcn.h: Pretty print dladdr declaraction.
4043
4044 * elf/rtld.c (process_envvars): Recognize LD_DYNAMIC_WEAK.
4045 (_dl_dynamic_weak): New variable.
4046 * elf/dl-support.c: Likewise.
4047 * sysdeps/generic/ldsodefs.h: Declare _dl_dynamic_weak.
4048 * elf/do-lookup.h: If we find a weak definition treat it like a
4049 normal symbol unless _dl_dynamic_weak is nonzero. In the latter
4050 case treat it like before.
4051
4052 * elf/dl-addr.c (_dl_addr): Fill in correct information if symbol
4053 is in main program.
4054 * elf/Versions [ld] (GLIBC_2.2): Export _dl_argv.
4055
4056 * elf/dl-addr.c (_dl_addr): Do exact testing of address range
4057 using l_map_start and l_map_end.
4058
4059 * elf/dl-version.c: Add __builtin_expect in many places.
4060
4061 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (x86_cap_flags):
4062 Update.
4063
4064 2000-06-04 Kaz Kylheku <kaz@ashi.footprints.net>
4065
4066 Lock for stdio stream list becomes global, for use in LinuxThreads.
4067
4068 * libio/genops.c (_IO_iter_begin, _IO_iter_end,
4069 _IO_iter_next, _IO_iter_file, _IO_list_lock, _IO_list_unlock,
4070 _IO_list_resetlock): New interface for iterating global list of
4071 streams without accessing the _IO_list_all global variable,
4072 and for manipulating the lock which protects this list.
4073 * libio/libioP.h: Likewise.
4074 * libio/Version: Add entries for the new functions.
4075
4076 * libio/libioP.h (_IO_ITER): New typedef, just an alias for
4077 pointer to _IO_FILE.
4078
4079 2000-06-07 Ulrich Drepper <drepper@redhat.com>
4080
4081 * locale/programs/ld-ctype.c (set_class_defaults): Several uses of
4082 BIT() must actually be BITw().
4083
4084 * locale/programs/ld-ctype.c: Handle SP and space consistently.
4085
4086 * locale/programs/charmap.c: Allow string arguments for
4087 code_set_name and repertoiremap.
4088
4089 2000-06-07 Andreas Jaeger <aj@suse.de>
4090
4091 * elf/Makefile: Build ldconfig only when building shared libraries.
4092
4093 2000-06-07 Jakub Jelinek <jakub@redhat.com>
4094
4095 * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf): Only declare if
4096 __USE_ISOC99.
4097 (fdimf, __fdim, fdim): Likewise.
4098
4099 2000-06-07 Ulrich Drepper <drepper@redhat.com>
4100
4101 * locale/findlocale.c: Add __builtin_expect in many places.
4102 * locale/loadlocale.c: Likewise.
4103
4104 2000-06-06 Greg McGary <greg@mcgary.org>
4105
4106 * sysdeps/mips/elf/start.S: Trim redundant code.
4107
4108 * sysdeps/powerpc/memset.S: Define & use symbolic register names.
4109 Use C comments throughout. Line up operands column with tabs.
4110 * sysdeps/powerpc/strchr.S: Likewise.
4111 * sysdeps/powerpc/strcmp.S: Likewise.
4112 * sysdeps/powerpc/strcpy.S: Likewise.
4113 * sysdeps/powerpc/strlen.S: Likewise.
4114
4115 * sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]:
4116 Get low part of &__curbrk with @l.
4117
4118 2000-06-06 Ulrich Drepper <drepper@redhat.com>
4119
4120 * iconvdata/utf-16.c: Add __builtin_expect in many places.
4121 * iconvdata/unicode.c: Likewise.
4122 * iconvdata/uhc.c: Likewise.
4123 * iconvdata/t.61.c: Likewise.
4124 * iconvdata/sjis.c: Likewise.
4125 * iconvdata/johab.c: Likewise.
4126 * iconvdata/iso_6937.c: Likewise.
4127 * iconvdata/iso_6937-2.c: Likewise.
4128 * iconvdata/iso8859-1.c: Likewise.
4129 * iconvdata/iso646.c: Likewise.
4130 * iconvdata/iso-2022-kr.c: Likewise.
4131 * iconvdata/iso-2022-jp.c: Likewise.
4132 * iconvdata/iso-2022-cn.c: Likewise.
4133 * iconvdata/gbgbk.c: Likewise.
4134 * iconvdata/gbk.c: Likewise.
4135 * iconvdata/euc-kr.c: Likewise.
4136 * iconvdata/euc-jp.c: Likewise.
4137 * iconvdata/euc-cn.c: Likewise.
4138
4139 2000-06-05 Ulrich Drepper <drepper@redhat.com>
4140
4141 * iconvdata/big5hkscs.c: Add __builtin_expect in many places.
4142 * iconvdata/big5.c: Likewise.
4143 * iconvdata/ansi_x3.110.c: Likewise.
4144 * iconvdata/8bit-generic.c: Likewise.
4145 * iconvdata/8bit-gap.c: Likewise.
4146 * iconv/loop.c: Likewise.
4147 * iconv/gconv_db.c: Likewise.
4148 * iconv/gconv_dl.c: Likewise.
4149 * iconv/gconv_simple.c: Likewise.
4150 * iconv/skeleton.c: Likewise.
4151
4152 * iconv/gconv.h (__GCONV_IS_LAST, __GCONV_IGNORE_ERRORS): Define.
4153 (struct __gconv_step_data): Rename __is_last to __flags.
4154 * iconv/gconv_close.c: Change all uses of __is_last.
4155 * iconv/skeleton.c: Likewise.
4156 * iconvdata/iso-2022-cn.c: Likewise.
4157 * iconvdata/iso-2022-jp.c: Likewise.
4158 * iconvdata/iso-2022-kr.c: Likewise.
4159 * iconv/gconv_open.c: Likewise. Avoid unneeded initializations.
4160 Recognize IGNORE error handling, set flag, and remove from name.
4161 * iconv/loop.c (ignore_errors_p): Define.
4162 Add flags parameter to both functions.
4163 * iconv/skeleton.c: Pass flags to all conversion functions.
4164 * iconv/gconv_simple.c: Add flags parameter to all functions.
4165 Don't return error for invald error if ignore flag is set.
4166 (ucs4_internal_loop_single): Add missing pointer increment.
4167 (internal_ucs4le_loop_single): Likewise.
4168 * iconv/iconv_prog.c: Implement handling of -c parameter.
4169 * iconvdata/8bit-gap.c: Don't return error for invald error if
4170 ignore flag is set.
4171 * iconvdata/8bit-generic.c: Likewise.
4172 * iconvdata/ansi_x3.110.c: Likewise.
4173 * iconvdata/big5.c: Likewise.
4174 * iconvdata/big5hkscs.c: Likewise.
4175 * iconvdata/euc-cn.c: Likewise.
4176 * iconvdata/euc-jp.c: Likewise.
4177 * iconvdata/euc-kr.c: Likewise.
4178 * iconvdata/gbgbk.c: Likewise.
4179 * iconvdata/gbk.c: Likewise.
4180 * iconvdata/iso-2022-cn.c: Likewise.
4181 * iconvdata/iso-2022-jp.c: Likewise.
4182 * iconvdata/iso-2022-kr.c: Likewise.
4183 * iconvdata/iso646.c: Likewise.
4184 * iconvdata/iso8859-1.c: Likewise.
4185 * iconvdata/iso_6937-2.c: Likewise.
4186 * iconvdata/iso_6937.c: Likewise.
4187 * iconvdata/johab.c: Likewise.
4188 * iconvdata/sjis.c: Likewise.
4189 * iconvdata/t.61.c: Likewise.
4190 * iconvdata/uhc.c: Likewise.
4191 * iconvdata/unicode.c: Likewise.
4192 * iconvdata/utf-16.c: Likewise.
4193 * libio/fileops.c: Likewise.
4194 * libio/iofwide.c: Likewise.
4195 * wcsmbs/btowc.c: Likewise.
4196 * wcsmbs/mbrtowc.c: Likewise.
4197 * wcsmbs/mbsnrtowcs.c: Likewise.
4198 * wcsmbs/mbsrtowcs.c: Likewise.
4199 * wcsmbs/wcrtomb.c: Likewise.
4200 * wcsmbs/wcsnrtombs.c: Likewise.
4201 * wcsmbs/wcsrtombs.c: Likewise.
4202 * wcsmbs/wctob.c: Likewise.
4203
4204 * iconvdata/ksc5601.h (ksc5601_to_ucs4): Undo *s change in all cases of
4205 an error.
4206
4207 2000-06-04 Ulrich Drepper <drepper@redhat.com>
4208
4209 * iconv/gconv_dl.c (do_release_shlib): Don't reset reference
4210 counter for the object we are releasing, just decrement it.
4211 Patch by Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>.
4212
4213 2000-06-04 Jakub Jelinek <jakub@redhat.com>
4214
4215 * sysdeps/i386/fpu/bits/mathinline.h: Only inline sinh, cosh and tanh
4216 if -ffast-math.
4217
4218 2000-06-04 Ulrich Drepper <drepper@redhat.com>
4219
4220 * iconvdata/big5hkscs.c: New file.
4221 Modified from big5.c by Roger So <rogerso@sis.dhs.org>.
4222
4223 * iconvdata/gconv-modules: Add entry for new module.
4224 * iconvdata/Makefile (modules): Add BIG5HKSCS.
4225 (distribute): Add big5hkscs.c.
4226
4227 2000-06-01 Jakub Jelinek <jakub@redhat.com>
4228
4229 * libc/sysdeps/alpha/fpu/bits/mathinline.h: Add __THROW to all
4230 inlines to match prototypes in mathcalls.h.
4231 * libc/sysdeps/i386/fpu/bits/mathinline.h: Likewise.
4232 * libc/sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
4233 * libc/sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
4234 * libc/sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
4235
4236 2000-06-03 Ulrich Drepper <drepper@redhat.com>
4237
4238 * elf/elf.h (SHT_SUNW_move): Define.
4239
4240 * elf/elf.h: Add more Solaris compatiblity definitions.
4241
4242 2000-06-03 Andreas Jaeger <aj@suse.de>
4243
4244 * sysdeps/powerpc/dl-start.S: Close open comment.
4245
4246 2000-06-03 Jakub Jelinek <jakub@redhat.com>
4247
4248 * inet/Versions: Fix typo in rresvport_af export.
4249
4250 2000-06-02 Ulrich Drepper <drepper@redhat.com>
4251
4252 * math/tgmath.h: Pretty print.
4253
4254 2000-06-02 Andreas Jaeger <aj@suse.de>
4255
4256 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Fix typo.
4257 Reported by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
4258
4259 2000-06-02 Ulrich Drepper <drepper@redhat.com>
4260
4261 * elf/rtld.c (process_envvars): Test for = after variable name.
4262
4263 2000-06-01 Ulrich Drepper <drepper@redhat.com>
4264
4265 * sysdeps/generic/initfini.c (_init): One less relocation. Don't
4266 have extra call to __gmon_start__, use the pointer we already have.
4267
4268 * elf/elf.h (ELF64_R_INFO): Cast sym value to Elf64_Xword before
4269 shifting.
4270
4271 * sysdeps/i386/elf/setjmp.S: Work around change is recent
4272 binutils. gas now emits a jump through the PLT instead of a
4273 relative jump if the jump target is an exported symbol.
4274
4275 2000-05-31 Ulrich Drepper <drepper@redhat.com>
4276
4277 * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Define AIX_CBAUD.
4278
4279 2000-05-31 Andreas Jaeger <aj@suse.de>
4280
4281 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Use array for
4282 gregset_t.
4283
4284 * sysdeps/unix/sysv/linux/mips/Versions: Export _flush_cache.
4285 Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
4286
4287 * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Fix prototype of
4288 syscall.
4289 * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
4290
4291 2000-05-30 Ulrich Drepper <drepper@redhat.com>
4292
4293 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Loose __P.
4294
4295 * locale/Versions [libc] (GLIBC_2.2): Add localeconv.
4296 * locale/localeconv.c: Make function versioned (with same definition).
4297
4298 * elf/Makefile (modules-names): Strip before using it.
4299
4300 2000-05-30 Andreas Jaeger <aj@suse.de>
4301
4302 * sysdeps/unix/sysv/linux/mips/truncate64.c: New file.
4303 * sysdeps/unix/sysv/linux/mips/ftruncate64.c: New file.
4304 * sysdeps/unix/sysv/linux/mips/pread64.c: Readded file.
4305 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Readded file.
4306 * sysdeps/unix/sysv/linux/mips/pread.c: Readded file.
4307 * sysdeps/unix/sysv/linux/mips/pwrite.c: Readded file.
4308
4309 2000-05-29 Ulrich Drepper <drepper@redhat.com>
4310
4311 * Makefile: Add GNU make magic.
4312
4313 * inet/Makefile (CFLAGS-rcmd.c, CFLAGS-rexec.c, CFLAGS-ruserpass.c):
4314 Removed.
4315 * inet/rcmd.c: Remove __P. Remove unused variables.
4316 (iruserfopen): Make first parameter const.
4317 (ruserok_sa): Return result of ruserok2_sa.
4318 (__checkhost_sa): Correctly iterate through results of getaddrinfo.
4319 * inet/rexec.c: Remove unused variables. Other small cleanups.
4320 * inet/ruserpass.c: Remove __P. Remove unused variables.
4321 (ruserpass): Check results of memory allocation.
4322 * include/netdb.h: Add prototype for ruserpass.
4323
4324 2000-05-29 Andreas Jaeger <aj@suse.de>
4325
4326 * elf/readlib.c (interpreters): Use LD_SO since this is supported
4327 for all platforms.
4328
4329 2000-05-29 Jakub Jelinek <jakub@redhat.com>
4330
4331 * inet/rcmd.c (rresvport_af): Use correct port number.
4332
4333 2000-05-26 Andreas Schwab <schwab@suse.de>
4334
4335 * Makeconfig ($(common-objpfx)soversions.mk): Prepend `$lib=' to
4336 entries in all-sonames.
4337 ($(common-objpfx)gnu/lib-names.h): Use it for the CPP symbol,
4338 preserving the old name if different for compatibility.
4339
4340 2000-05-29 Ulrich Drepper <drepper@redhat.com>
4341
4342 * posix/Makefile (tests): Add tst-spawn.
4343 (tst-spawn-ARGS): New variable.
4344 * posix/tst-spawn.c: New file.
4345
4346 * posix/spawn_faction_addclose.c: Correctly account for new entry.
4347 * posix/spawn_faction_adddup2.c: Likewise.
4348 * posix/spawn_faction_addopen.c: Likewise.
4349 * posix/spawni.c: Correctly test for success of dup2 calls.
4350
4351 * posix/tst-preadwrite.c: Check success of malloc call.
4352
4353 2000-05-28 Ulrich Drepper <drepper@redhat.com>
4354
4355 * posix/Makefile (tests): Add tst-exec.
4356 (tst-exec-ARGS): New variable.
4357 * posix/tst-exec.c: New file.
4358
4359 * sysdeps/arm/atomicity.h (compare_and_swap): Return result.
4360
4361 2000-05-04 Andreas Jaeger <aj@suse.de>
4362
4363 * string/string.h: Remove __strdup prototype, it's not needed in
4364 this file anymore.
4365
4366 2000-05-28 Ulrich Drepper <drepper@redhat.com>
4367
4368 * posix/Makefile (tests): Add tst-fork.
4369 * posix/tst-fork.c: New file.
4370
4371 * resolv/inet_pton.c: Loose __P.
4372
4373 2000-05-21 Jakub Jelinek <jakub@redhat.com>
4374
4375 * libio/libioP.h (_IO_CHECK_WIDE): Define.
4376 * libio/iosetbuffer.c (_IO_setbuffer): Use it.
4377 * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
4378 * libio/fileops.c (_IO_new_file_fopen): Return NULL if
4379 _IO_CHECK_WIDE fails.
4380
4381 2000-05-28 Ulrich Drepper <drepper@redhat.com>
4382
4383 * po/da.po: New file.
4384
4385 * manual/arith.texi (Rounding Functions): Fix documentation of trunc.
4386 Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.
4387
4388 * manual/charset.texi (Extended Char Intro): Fix typo (and -> as).
4389 (Other iconv Implementations): Fix typo.
4390 Patch by Martin Pool <mbp@wistful.humbug.org.au>.
4391
4392 2000-05-27 Andreas Jaeger <aj@suse.de>
4393
4394 * sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the
4395 normal version now.
4396 * sysdeps/unix/sysv/linux/i386/pwrite.c: Likewise.
4397 * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
4398 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4399 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4400 * sysdeps/unix/sysv/linux/arm/pread.c: Likewise.
4401 * sysdeps/unix/sysv/linux/arm/pwrite.c: Likewise.
4402
4403 * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Check
4404 endianness to decide how to pass arguments.
4405 * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
4406
4407 * elf/vismain.c: Use test-skeleton interface.
4408 (TEST_FUNCTION): New macro.
4409 (do_test): Renamed from main.
4410
4411 2000-05-27 Ulrich Drepper <drepper@redhat.com>
4412
4413 * sysdeps/posix/getaddrinfo.c (gaih_inet): If req->ai_family ==
4414 AF_UNSPEC don't allow the IPv6 lookup to return mapped IPv4 addresses.
4415
4416 * nss/nss_files/files-hosts.c (LINE_PARSER): Simplify. Correct
4417 handling of AI_V4MAPPED flag.
4418
4419 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): If lookup
4420 of IPv6 address failed and RES_USE_INET6 bit in _res.options is set,
4421 perform lookup for T_A type and tell getanswer_r to convert the
4422 result with new argument.
4423 (_nss_dns_gethostbyaddr_r): Pass zero as new argument to getanswer_r.
4424 Don't convert addresses from IPv4 to IPv6 here.
4425 (getanswer_r): Take new parameter indicating if mapping from IPv4 to
4426 IPv6 is wanted. Allow qtype and type from reply to disagree if
4427 IPv4 mapping has to be done. Perform mappings if required by the
4428 caller and not if RES_USE_INET6 bit in _res.options is set.
4429 Add several __builtin_expect.
4430
4431 2000-05-26 Ulrich Drepper <drepper@redhat.com>
4432
4433 * catgets/open_catalog.c (__open_catalog): Add a few __builtin_expect.
4434
4435 * elf/dl-load.c (_dl_map_object): Don't ignore RPATHs if loader ==
4436 NULL.
4437
4438 * posix/tst-preadwrite.c: Allow parallel execution of
4439 tst-preadwrite and tst-preadwrite64.
4440
4441 * posix/Makefile (tests): Add tst-truncate and tst-truncate64.
4442 * posix/tst-truncate.c: New file.
4443 * posix/tst-truncate64.c: New file.
4444
4445 * sysdeps/unix/sysv/linux/pread64.c: The little/big endian code
4446 was switched.
4447
4448 * posix/Makefile (tests): Add tst-preadwrite64.
4449 * posix/tst-preadwrite.c: Alloc file being used also for testing
4450 pread64 and pwrite64.
4451 * posix/tst-preadwrite64.c: New file.
4452
4453 2000-05-26 Andreas Jaeger <aj@suse.de>
4454
4455 * sysdeps/unix/sysv/linux/ftruncate64.c (ftruncate64): Make order
4456 of arguments dependend on endianness.
4457 * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
4458
4459 * sysdeps/unix/sysv/linux/i386/pread64.c: Removed, we can use the
4460 normal version now.
4461 * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
4462 * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
4463 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4464 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4465
4466 * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Check
4467 endianness to check how to pass argument.
4468 * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
4469
4470 * elf/ldconfig.h: Update parameter list for process_elf_file.
4471
4472 * sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file):
4473 Add parameter file_length and pass it ot process_elf*file.
4474
4475 * sysdeps/generic/readelflib.c (check_ptr): New.
4476 (process_elf_file): Use check_ptr to check all accesses to the
4477 mmapped file. Add parameter file_length.
4478
4479 * elf/readlib.c (known_libs): Use <gnu/lib-names.h> to specify
4480 library names.
4481
4482 * sunrpc/xdr_intXX_t.c (xdr_uint8_t): Fix conversion.
4483 Closes PR libc/1573, reported by Bradley White
4484 <bww@laurelnetworks.com>.
4485
4486 2000-05-25 Ulrich Drepper <drepper@redhat.com>
4487
4488 * sysdeps/i386/fpu/bits/mathinline.h: Define expm1 inline only if
4489 __FAST_MATH__ is defined.
4490
4491 2000-05-22 Andreas Jaeger <aj@suse.de>
4492
4493 * math/Makefile: Add -D__FAST_MATH__ to CFLAGS-test-ifloat.c,
4494 CFLAGS-test-idouble.c, CFLAGS-test-ildoubl.c.
4495
4496 * manual/math.texi (FP Function Optimizations): Document gcc
4497 -ffast-math behaviour with mathinlines.
4498
4499 * sysdeps/i386/fpu/bits/mathinline.h: Only use save inline
4500 functions unless -ffast-math is given to gcc.
4501
4502 2000-05-23 Jakub Jelinek <jakub@redhat.com>
4503
4504 * sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf,
4505 __sincosl): Guard with __USE_GNU.
4506
4507 2000-05-24 Ulrich Drepper <drepper@redhat.com>
4508
4509 * csu/Makefile (routines): Add check_fds.
4510 * elf/rtld.c (dl_main): Call __libc_check_standard_fds for SUID
4511 binaries. Add various __builtin_expect.
4512 * sysdeps/generic/libc-start.c: Move check_fds and helper functions...
4513 * sysdeps/generic/check_fds.c: ...here. New file.
4514
4515 * malloc/malloc.c (ptmalloc_init): Only enable debugging for SUID
4516 binaries if file /etc/suid-debug is available.
4517
4518 * locale/programs/ld-collate.c (struct element_t): Add mbseqorder
4519 and wcseqorder members.
4520 (struct locale_collate_t): Likewise.
4521 (collate_finish): Assign collation sequence value to each character.
4522 Create tables for output.
4523 (collate_output): Write out tables with collation sequence information.
4524 * locale/C-collate.c: Provide C locale data for collation sequence
4525 table.
4526 * locale/langinfo.h: Add _NL_COLLATE_COLLSEQMB and
4527 _NL_COLLATE_COLLSEQWC.
4528 * locale/categories.def: Add entries for _NL_COLLATE_COLLSEQMB and
4529 _NL_COLLATE_COLLSEQWC.
4530 * posix/fnmatch.c: Define SUFFIX and WIDE_CHAR_VERSION before
4531 include fnmatch_loop.c.
4532 * posix/fnmatch_loop.c: Don't use strcoll while determining whether
4533 character is matched by range expression. Use collation sequence
4534 table. Outside glibc fall back on simple character value comparison.
4535
4536 2000-05-24 Andreas Jaeger <aj@suse.de>
4537
4538 * sysdeps/mips/elf/start.S (ENTRY_POINT): Align stack for double
4539 words.
4540
4541 * intl/Makefile: Run gettext-test only if msgfmt is available.
4542
4543 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_LDT_WORKS):
4544 Define it for newer kernels.
4545
4546 2000-05-23 Ulrich Drepper <drepper@redhat.com>
4547
4548 * elf/dl-sym.c: Minor cleanups.
4549
4550 * configure.in: Add test for .protected.
4551 * config.make.in: Add have-protected variable.
4552 * elf/Makefile (tests): Add $(tests-vis-$(have-protected)).
4553 (tests-vis-yes): Add vismain.
4554 (modules-names): Add $(modules-vis-$(have-protected)).
4555 (modules-vis-yes): Add vismod1, vismod2, and vismod3.
4556 Add rules to generate and run vismain.
4557 * elf/vismain.c: New file.
4558 * elf/vismod1.c: New file.
4559 * elf/vismod2.c: New file.
4560 * elf/vismod3.c: New file.
4561
4562 2000-05-23 Andreas Jaeger <aj@suse.de>
4563
4564 * stdio-common/tfformat.c (sprint_doubles): Add testcase for %a.
4565
4566 * manual/search.texi (Array Sort Function): Document that qsort is
4567 not necessarily in-place.
4568
4569 * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
4570 Closes PR libc/1731.
4571
4572 * csu/munch-tmpl.c (__libc_init): Remove K&R support.
4573 * dirent/scandir64.c: Likewise.
4574 * pwd/getpw.c: Likewise.
4575 * stdlib/bsearch.c (bsearch): Likewise.
4576 * stdlib/tst-strtoll.c: Likewise.
4577 * localedata/collate-test.c: Likewise.
4578 * localedata/xfrm-test.c: Likewise.
4579 * posix/bsd-getpgrp.c: Likewise.
4580 * sysdeps/alpha/fpu/bits/fenv.h: Likewise.
4581 * sysdeps/generic/bits/siginfo.h: Likewise.
4582 * sysdeps/generic/bits/sockaddr.h: Likewise.
4583 * sysdeps/generic/sys/swap.h: Likewise.
4584 * sysdeps/generic/sys/sysinfo.h: Likewise.
4585 * sysdeps/generic/vfork.c: Likewise.
4586 * sysdeps/m68k/fpu/switch/68881-sw.h: Likewise.
4587 * sysdeps/mach/hurd/fdopen.c: Likewise.
4588 * sysdeps/unix/sysv/linux/alpha/sys/acct.h: Likewise.
4589 * sysdeps/unix/sysv/linux/poll.c: Likewise.
4590 * sysdeps/unix/sysv/linux/readv.c: Likewise.
4591 * sysdeps/unix/sysv/linux/writev.c: Likewise.
4592 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
4593 * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
4594 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
4595
4596 * misc/tst-dirname.c: Remove K&R support, use ANSI C prototypes.
4597 * shadow/lckpwdf.c: Likewise.
4598 * stdlib/tst-strtol.c: Likewise.
4599 * sysdeps/generic/tcsetattr.c: Likewise.
4600 * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
4601 * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
4602
4603 2000-05-22 Jakub Jelinek <jakub@redhat.com>
4604
4605 * elf/dl-load.c (_dl_init_paths): If env_path_list has 0 elements,
4606 free it and set to (void *) -1.
4607
4608 2000-05-22 Jakub Jelinek <jakub@redhat.com>
4609
4610 * stdio-common/vfscanf.c (__vfscanf): Remove bogus check if '-' is
4611 not the second character in the range.
4612 * stdio-common/tstscanf.c (main): Add testcase for the above.
4613 Reported by jik@kamens.brookline.ma.us.
4614
4615 2000-05-21 H.J. Lu <hjl@gnu.org>
4616
4617 * elf/do-lookup.h (do_lookup_versioned): Replace reloc_type parameter
4618 with noexec and noplt parameter.
4619 (do_lookup): Likewise.
4620
4621 * elf/dl-lookup.c (_dl_lookup_symbol): Change for new parameters of
4622 do_lookup. Support STV_PROTECTED.
4623 (_dl_lookup_symbol_skip): Likewise.
4624 (_dl_lookup_versioned_symbol): Likewise.
4625 (_dl_lookup_versioned_symbol_skip): Likewise.
4626
4627 * elf/dl-reloc.c (RESOLVE): Check STB_LOCAL instead of ST_VISIBILITY.
4628
4629 * elf/dl-runtime.c (profile_fixup): Fix a typo in comment.
4630
4631 2000-05-21 Jakub Jelinek <jakub@redhat.com>
4632
4633 * sysdeps/arm/bits/huge_val.h: Prereq gcc 2.96+, not 2.95.
4634 * sysdeps/i386/bits/huge_val.h: Likewise.
4635 * sysdeps/ieee754/bits/huge_val.h: Likewise.
4636 * sysdeps/m68k/bits/huge_val.h: Likewise.
4637 * sysdeps/sparc/sparc32/bits/huge_val.h: Likewise.
4638 * sysdeps/sparc/sparc64/bits/huge_val.h: Likewise.
4639
4640 2000-05-22 Andreas Jaeger <aj@suse.de>
4641
4642 * iconv/tst-iconv1.c (main): Remove const from inbuf to follow
4643 change in iconv.h.
4644
4645 2000-05-19 Andreas Jaeger <aj@suse.de>
4646
4647 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
4648 (SYSCALL_ERROR_HANDLER): Remove unneeded syscall_error which
4649 breaks compilation without linuxthreads.
4650
4651 2000-05-21 Ulrich Drepper <drepper@redhat.com>
4652
4653 * sysdeps/ia64/memccpy.S: New file.
4654 * sysdeps/ia64/memchr.S: New file.
4655 * sysdeps/ia64/memcmp.S: New file.
4656 * sysdeps/ia64/memcpy.S: New file.
4657 * sysdeps/ia64/memmove.S: New file.
4658 * sysdeps/ia64/memset.S: New file.
4659 * sysdeps/ia64/strcat.S: New file.
4660 * sysdeps/ia64/strchr.S: New file.
4661 * sysdeps/ia64/strcmp.S: New file.
4662 * sysdeps/ia64/strcpy.S: New file.
4663 * sysdeps/ia64/strlen.S: New file.
4664 * sysdeps/ia64/strncmp.S: New file.
4665 * sysdeps/ia64/strncpy.S: New file.
4666 * sysdeps/ia64/softpipe.h: New file.
4667 Patches by Dan Pop <Dan.Pop@cern.ch>.
4668
4669 * manual/memory.texi: Document memory handling functions (mlock,
4670 munlock, mlockall, munlockall, brk, and sbrk)
4671 * manual/time.texi: Document timespec and friends.
4672 * manual/conf.texi: Fix references.
4673 * manual/ctype.texi: Likewise.
4674 * manual/errno.texi: Likewise.
4675 * manual/intro.texi: Likewise.
4676 * manual/locale.texi: Likewise.
4677 * manual/sysinfo.texi: Likewise.
4678 Patches by Bryan Henderson <bryanh@giraffe-data.com>.
4679
4680 2000-05-09 Jes Sorensen <jes@linuxcare.com>
4681
4682 * sysdeps/ia64/dl-machine.h: Move DL_SYMBOL_ADDRESS definition to...
4683 * sysdeps/ia64/dl-lookupcfg.h: ...here.
4684
4685 2000-05-21 Jakub Jelinek <jakub@redhat.com>
4686
4687 * sysdeps/unix/sysv/linux/scsi/sg.h (sg_io_hdr_t): Remove duplicate
4688 dxfer_direction.
4689
4690 2000-05-21 Ulrich Drepper <drepper@redhat.com>
4691
4692 * locale/locale.h (struct lconv): Add new elements from ISO C99.
4693 * locale/localeconv.c: Initialize new elements from ISO C99.
4694 * locale/langinfo.h: Remove _NL_MONETARY prefix from descriptors for
4695 new standard elements.
4696 * locale/categories.def: Adjust accordingly.
4697
4698 * iconv/iconv.h (iconv): Remove const from inbuf parameter.
4699 * iconv/iconv.c: Likewise.
4700 * conform/data/iconv.h-data: Likewise.
4701 * iconv/iconv_prog.c (process_block): Remove const from second
4702 parameter.
4703 (main): Remove const from addr definition.
4704 * manual/charset.texi (Generic Conversion Interface): Remove from
4705 inbuf parameter of iconv.
4706
4707 * intl/dcigettext.c: Fix typo in comment.
4708
4709 2000-05-20 2000 H.J. Lu <hjl@gnu.org>
4710
4711 * resolv/res_libc.c (_res): Initialize _sock to -1.
4712
4713 2000-05-18 Jakub Jelinek <jakub@redhat.com>
4714
4715 * libio/iofopncook.c (_IO_fopencookie): Renamed from fopencookie.
4716 (fopencookie@@GLIBC_2.2): New.
4717 (_IO_old_cookie_seek, _IO_old_fopencookie, _IO_old_cookie_jumps): New.
4718 (fopencookie@GLIBC_2.0): New.
4719 * libio/Versions: Add fopencookie to GLIBC_2.2.
4720
4721 2000-05-18 Andreas Jaeger <aj@suse.de>
4722
4723 * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
4724 Closes PR libc/1731.
4725
4726 * manual/arith.texi (Parsing of Integers): Fix typo.
4727 Closes PR libc/1744, reported by blp@gnu.org.
4728
4729 2000-05-17 Jakub Jelinek <jakub@redhat.com>
4730
4731 * sysdeps/arm/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Add
4732 __extension__ to hexadecimal floating constant notation.
4733 * sysdeps/i386/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
4734 Likewise.
4735 * sysdeps/ieee754/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Likewise.
4736 * sysdeps/m68k/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
4737 Likewise.
4738 * sysdeps/sparc/sparc64/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
4739 HUGE_VALL): Likewise.
4740 * sysdeps/sparc/sparc32/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
4741 HUGE_VALL): Likewise.
4742 (HUGE_VALL): Set to HUGE_VAL on sparc32.
4743
4744 2000-05-17 Andreas Jaeger <aj@suse.de>
4745
4746 * string/envz.h: Add pure attributes if possible.
4747
4748 * string/argz.h: argz_count is a pure function.
4749
4750 * string/strings.h: Add pure and const attributes if possible.
4751
4752 * sysdeps/generic/memmem.c (memmem): Check arguments to avoid
4753 possibly searching through the whole memory.
4754 Closes PR libc/1730, reported by Greg Hudson <ghudson@mit.edu>.
4755
4756 2000-05-17 Jakub Jelinek <jakub@redhat.com>
4757
4758 * sysdeps/generic/dl-cache.h (_DL_CACHE_DEFAULT_ID): Only define if
4759 not yet defined.
4760 (_dl_cache_check_flags): Likewise.
4761 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-cache.h: include_next
4762 dl-cache.h.
4763
4764 2000-05-17 Andreas Jaeger <aj@suse.de>
4765
4766 * manual/creature.texi (Feature Test Macros): Remove paragraph
4767 since the description is wrong.
4768 Closes PR libc/1691, reported by Geoff Clare <gwc@unisoft.com>.
4769
4770 * scripts/config.sub: New version.
4771 * scripts/config.guess: Likewise.
4772 * manual/texinfo.tex: Likewise.
4773
4774 * time/test_time.args: Removed.
4775 * time/Makefile (test_time-ARGS): Added contents here instead.
4776
4777 * posix/tstgetopt.args: Removed.
4778 * posix/Makefile (tstgetopt-ARGS): Added contents here instead.
4779
4780 * Rules: Allow arguments for test files to be specified in
4781 Makefile with testname-ARGS; remove rules with .args in it.
4782
4783 * dirent/Makefile (opendir-tst1-ARGS): Use this for opendir-tst1,
4784 remove old bogus rule for opendir-tst1.args.
4785
4786 * stdlib/test-canon.c: Rewrite to use test-skeleton.c.
4787
4788 * stdlib/Makefile (test-canon-ARGS): New, supply argument to chdir
4789 into objdir. This allows a readonly sourcetree.
4790 Reported by lrgallardo@yahoo.com, closes PR libc/1421.
4791
4792 2000-05-16 Andreas Jaeger <aj@suse.de>,
4793 David Huggins-Daines <dhd@linuxcare.com>
4794
4795 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Set
4796 cache_data in case of only new cache format correctly.
4797
4798 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Align struct
4799 cache_file_new.
4800
4801 * sysdeps/generic/dl-cache.h (ALIGN_CACHE): New macro to align
4802 struct cache_file_new.
4803
4804 * elf/cache.c (save_cache): Fix str_offset if only new cache is
4805 present.
4806
4807 * elf/cache.c (save_cache): Align struct new_file_cache.
4808 (print_cache): Likewise.
4809
4810 2000-05-13 Jakub Jelinek <jakub@redhat.com>
4811
4812 * elf/soinit.c (__libc_global_ctors): Move
4813 __pthread_initialize_minimal call out of HAVE_DWARF2_* defines.
4814 * resolv/resolv.h (__res_state): Added __attribute__((const)).
4815 (_res): If __RES_PTHREAD_INTERNAL is defined, declare it as
4816 variable, don't define it to __res_state call.
4817
4818 2000-05-13 Andreas Jaeger <aj@suse.de>
4819
4820 * sysdeps/unix/sysv/linux/bits/socket.h (PF_PPPOX): New, from
4821 Linux 2.3.99pre7.
4822 (AF_PPPOX): Likewise.
4823 * sysdeps/unix/sysv/linux/mips/bits/socket.h (PF_PPPOX): Likewise.
4824 (AF_PPPOX): Likewise.
4825
4826 2000-05-12 Andreas Jaeger <aj@suse.de>
4827
4828 * inet/netinet/in.h (IN6_ARE_ADDR_EQUAL): Correct indices.
4829 Reported by tmoestl@gmx.net, closes PR libc/1732.
4830
4831 2000-05-11 Jan Hubicka <jh@suse.cz>
4832
4833 * misc/sys/cdefs.h: Add support for pure attribute.
4834
4835 * include/string.h: Add __attribute_pure__ to various functions.
4836 * string/string.h: Likewise.
4837
4838 2000-05-10 Jakub Jelinek <jakub@redhat.com>
4839
4840 * elf/dl-reloc.c (_dl_reloc_bad_type): Sync messages with plt
4841 argument.
4842 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
4843 R_SPARC_UA64.
4844 * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: New file.
4845
4846 2000-05-10 Jakub Jelinek <jakub@redhat.com>
4847
4848 * elf/dl-reloc.c (_dl_reloc_bad_type): Write type into the message
4849 at proper place. Compute the high nibble correctly.
4850
4851 2000-05-09 Jakub Jelinek <jakub@redhat.com>
4852
4853 * elf/ldconfig.c: Include elf.h.
4854
4855 * elf/dl-sym.c (_dl_sym): Test ref not result for non-zero.
4856 (_dl_vsym): Likewise.
4857 Reported by Owen Taylor <otaylor@redhat.com>.
4858
4859 * elf/dl-deps.c (_dl_map_object_deps): Zero terminate L->l_initfini
4860 always.
4861
4862 2000-05-08 Andreas Jaeger <aj@suse.de>
4863
4864 * include/libintl.h: Add prototype for __bind_textdomain_codeset.
4865
4866 * intl/bindtextdom.c (set_binding_values): Add prototype.
4867
4868 2000-05-08 Jakub Jelinek <jakub@redhat.com>
4869
4870 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix arguments in
4871 call to elf_machine_fixup_plt.
4872 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
4873 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
4874
4875 2000-05-08 Jakub Jelinek <jakub@redhat.com>
4876
4877 * elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that
4878 they are not dlclose'd from underneath us.
4879
4880 2000-05-08 Andreas Schwab <schwab@suse.de>
4881
4882 * posix/execle.c: Fix size parameter of memcpy.
4883
4884 2000-05-08 Andreas Schwab <schwab@suse.de>
4885
4886 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: New file. Use
4887 getpagesize syscall if available.
4888
4889 2000-05-08 Andreas Jaeger <aj@suse.de>
4890
4891 * sysdeps/generic/lockf64.c (lockf64): Return -1 for overflow and
4892 set errno.
4893
4894 2000-05-08 Jakub Jelinek <jakub@redhat.com>
4895
4896 * elf/dl-lookup.c (add_dependency): Reallocate l_reldeps in
4897 sizeof(struct link_map *) chunks, not in bytes.
4898
4899 2000-05-07 Ulrich Drepper <drepper@redhat.com>
4900
4901 * locale/Makefile (locale-CPPFLAGS): Renamed from CPPFLAGS. It's
4902 only needed for locale.
4903 * catgets/Makefile (catgets-CPPFLAGS): Renamed from CPPFLAGS.
4904 It's only needed for catgets.
4905 Patches by Greg McGary <gkm@eng.ascend.com>.
4906
4907 2000-05-07 Mark Kettenis <kettenis@gnu.org>
4908
4909 * nss/nss_db/db-open.c: Cleanup and add comments. Pretty print.
4910 Remove duplicate <errno.h> include. Remove inclusion of
4911 <libintl.h> and "nsswitch.h".
4912 (set_cloexec_flag): New function, broken out of dbopen.
4913 (dbopen): Changed return type to `enum
4914 nss_status'. Mostly rewritten to make sure that we do not report
4915 NSS_STATUS_SUCCESS if something went wrong. Remove unnecessary casts.
4916 (internal_setent): Change return type to nss_status.
4917 Document, and make sure that the function
4918 behaves accordingly. Make dynamically loading the database
4919 library really thread-safe and return NSS_STATUS_UNAVAIL if it
4920 failed.
4921 (db_cursor): Return ENOMEM is memory allocation failed. Remove
4922 unecessary casts.
4923 * nss/nss_db/dummy-db.h: Add copyright notice. Improve
4924 documentation.
4925 (struct dbc24, struct dbc27): Use DBT type in parameter lists for
4926 c_get function member.
4927 * nss/nss_db/nss_db.h: Add and tweak some comments.
4928 (DBT): Move typedef before NSS_DBC typedef.
4929 (NSS_DBC, NSS_DB): Use DBT in function member parameter lists.
4930
4931 2000-05-07 H.J. Lu <hjl@gnu.org>
4932
4933 * csu/initfini.c: Moved to ....
4934 * sysdeps/generic/initfini.c: ...here.
4935
4936 * csu/Makefile (initfini.c): Set vpath to $(full_config_sysdirs).
4937
4938 2000-05-07 Ulrich Drepper <drepper@redhat.com>
4939
4940 * manual/resource.texi: Document POSIX scheduling functions.
4941 Patch by Bryan Henderson <bryanh@giraffe-data.com>.
4942
4943 * inet/rcmd.c (rcmd_af): errno is not set if read returns without
4944 reading anything. Reported by Andries.Brouwer@cwi.nl.
4945
4946 * sysdeps/generic/memccpy.c (__memccpy): Don't use reg_char type
4947 for x since promotion in comparison might leads to unexpected
4948 results. Reported by Dan Pop <Dan.Pop@cern.ch>.
4949
4950 * iconv/Makefile (tests): Add tst-iconv1.
4951 * iconv/tst-iconv1.c: New file.
4952 * iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting
4953 empty input buffer over full output buffer.
4954 (ucs4_internal_loop): Likewise.
4955 (ucs4_internal_loop_unaligned): Likewise.
4956 (internal_ucs4le_loop): Likewise.
4957 (internal_ucs4le_loop_unaligned): Likewise.
4958 (ucs4le_internal_loop): Likewise.
4959 (ucs4le_internal_loop_unaligned): Likewise.
4960 Reported by yaoz@nih.gov.
4961
4962 2000-05-06 Bruno Haible <haible@clisp.cons.org>
4963
4964 * iconv/gconv_open.c (__gconv_open): If __gconv_find_transform
4965 returned != __GCONV_OK, there is nothing to clean up.
4966
4967 2000-05-06 Bruno Haible <haible@clisp.cons.org>
4968
4969 * intl/tst-gettext.c (main): Disable possibly existing LC_CTYPE and
4970 OUTPUT_CHARSET environment variables.
4971
4972 2000-05-06 Andreas Jaeger <aj@suse.de>
4973
4974 * sysdeps/generic/dl-cache.h (struct file_entry_new): New.
4975 (struct cache_file_new): New.
4976 (struct file_entry): New (moved from cache.c).
4977 (struct cache_file): New (moved from cache.c).
4978
4979 * sysdeps/generic/dl-cache.c (SEARCH_CACHE): New macro, broken out
4980 from _dl_load_cache_lookup.
4981 (_dl_load_cache_lookup): Move search to SEARCH_CACHE macro, handle
4982 the different cache formats.
4983 New variable cache_new for new format.
4984
4985 * elf/ldconfig.h: Change according to changes in cache.c and
4986 ldconfig.c; remove cache_libcmp; add opt_format.
4987
4988 * elf/ldconfig.c: Include "dl-cache.h" and "dl-procinfo.h"; remove
4989 stuff that's defined in those headers.
4990 Add hwcap to struct lib_entry.
4991 (opt_format): New variable to select cache format.
4992 (options): Add format parameter.
4993 (is_hwcap): New function.
4994 (path_hwcap): New function.
4995 (parse_opt): Handle new format parameter.
4996 (search_dir): Handle hwcap, search also subdirectories with hwcap.
4997
4998 * elf/cache.c (_GNU_SOURCE): Removed. Not needed anymore since
4999 ldconfig is part of glibc.
5000 Include dl-cache.h and remove stuff that's defined there.
5001 (struct cache_entry): Add new member hwcap.
5002 (print_entry): Print hwcap, cleanup a bit.
5003 (print_cache): Print new and old formats.
5004 (compare): Use _dl_cache_libcmp from dl-cache.h; handle hwcap.
5005 (save_cache): Save new and old formats.
5006 (add_to_cache): Handle hwcap.
5007
5008 * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Moved from here...
5009 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): ...to here.
5010 * sysdeps/generic/dl-cache.c (LD_SO_CACHE): Moved from here...
5011 * sysdeps/generic/dl-cache.h (LD_SO_CACHE): ...to here.
5012 * sysdeps/generic/dl-cache.c (CACHEMAGIC): Moved from here...
5013 * sysdeps/generic/dl-cache.h (CACHEMAGIC): ...to here.
5014
5015 2000-05-05 Bruno Haible <haible@clisp.cons.org>
5016
5017 * intl/dcigettext.c (alignof): New macro.
5018 (_nl_find_msg): Use it instead of __alignof__. Pass correct output
5019 buffer length to __gconv/iconv. If malloc (freemem_size) fails, set
5020 freemem_size to 0.
5021
5022 2000-05-05 Bruno Haible <haible@clisp.cons.org>
5023
5024 * intl/dcigettext.c (dcigettext): Fix interpretation of tsearch
5025 return value.
5026
5027 2000-05-06 Ulrich Drepper <drepper@redhat.com>
5028
5029 * intl/dcigettext.c (DCIGETTEXT): Always define local variable `index'.
5030 (mempcpy): Correct typo is parameter list.
5031
5032 2000-05-06 Andreas Jaeger <aj@suse.de>
5033
5034 * sysdeps/i386/fpu/bits/mathinline.h: Disable some inline
5035 functions unless -ffast-math is given to gcc.
5036
5037 2000-05-06 Ulrich Drepper <drepper@redhat.com>
5038
5039 * po/ko.po: Update from translation team.
5040
5041 2000-05-05 Ulrich Drepper <drepper@redhat.com>
5042
5043 * sysdeps/unix/sysv/aix/linux/errnoconv.c: Moved to...
5044 * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: ...here.
5045 * sysdeps/unix/sysv/aix/linux/statconv.c: Moved to...
5046 * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: ...here.
5047 * sysdeps/unix/sysv/aix/linux/direntconv.c: Moved to...
5048 * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: ...here.
5049
5050 * sysdeps/unix/sysv/aix/linux/linux-errno.h: Removed.
5051 * sysdeps/unix/sysv/aix/linux/linux-stat.h: Removed
5052 * sysdeps/unix/sysv/aix/linux/linux-dirent.h: Removed.
5053
5054 * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: New file.
5055 * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: New file.
5056 * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: New file.
5057 * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: New file.
5058
5059 * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: New file.
5060 * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: New file.
5061
5062 2000-05-05 Jes Sorensen <jes@linuxcare.com>
5063
5064 * sysdeps/unix/sysv/linux/ia64/sysdep.h: New file.
5065 * sysdeps/unix/sysv/linux/ia64/syscall.S: New file.
5066
5067 * sysdeps/unix/sysv/linux/ia64/bits/types.h: New file.
5068 * sysdeps/unix/sysv/linux/ia64/bits/endian.h: New file.
5069
5070 * sysdeps/ia64/Implies: New file.
5071 * sysdeps/ia64/Versions: New file. Declare _dl_symbol_address.
5072 * sysdeps/ia64/Makefile: New file.
5073 * sysdeps/ia64/gmp-mparam.h: New file,
5074
5075 * sysdeps/ia64/elf/start.S: New file.
5076
5077 * sysdeps/ia64/bits/fenv.h: New file.
5078
5079 2000-05-05 David Mosberger-Tang <davidm@hpl.hp.com>
5080
5081 * sysdeps/unix/sysv/linux/ia64/sysdep.S: New file.
5082
5083 2000-04-26 Jes Sorensen <Jes.Sorensen@cern.ch>
5084
5085 * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: New file. The
5086 ia64 has 64 bit .hash entries just as the Alpha.
5087
5088 2000-04-25 Jes Sorensen <Jes.Sorensen@cern.ch>
5089
5090 * sysdeps/ia64/memprof.h: New file. Provide GETSP() macro.
5091
5092 2000-04-17 Jes Sorensen <Jes.Sorensen@cern.ch>
5093
5094 * sysdeps/ia64/fpu/fclrexcpt.c: New file.
5095 * sysdeps/ia64/fpu/fedisblxcpt.c: New file.
5096 * sysdeps/ia64/fpu/feenablxcpt.c: New file.
5097 * sysdeps/ia64/fpu/fegetenv.c: New file.
5098 * sysdeps/ia64/fpu/fegetexcept.c: New file.
5099 * sysdeps/ia64/fpu/fegetround.c: New file.
5100 * sysdeps/ia64/fpu/feholdexcpt.c: New file.
5101 * sysdeps/ia64/fpu/fesetenv.c: New file.
5102 * sysdeps/ia64/fpu/fesetround.c: New file.
5103 * sysdeps/ia64/fpu/feupdateenv.c: New file.
5104 * sysdeps/ia64/fpu/fgetexcptflg.c: New file.
5105 * sysdeps/ia64/fpu/fraiseexcpt.c: New file.
5106 * sysdeps/ia64/fpu/fsetexcptflg.c: New file.
5107 * sysdeps/ia64/fpu/ftestexcept.c: New file.
5108
5109 2000-05-05 Andreas Jaeger <aj@suse.de>
5110
5111 * misc/tst-tsearch.c (main): Correct type for initstate argument.
5112
5113 * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
5114 (_dl_string_hwcap): New, does nothing.
5115
5116 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_COUNT): New.
5117 (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
5118 (_dl_string_hwcap): New function, converts from string to hwcap
5119 encoding.
5120 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
5121 (_DL_HWCAP_COUNT): New.
5122 (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
5123 (_dl_string_hwcap): New function, converts from string to hwcap
5124 encoding.
5125 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h
5126 (_DL_HWCAP_COUNT): New.
5127 (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
5128 (_dl_string_hwcap): New function, converts from string to hwcap
5129 encoding.
5130
5131 2000-05-05 Ulrich Drepper <drepper@redhat.com>
5132
5133 * elf/Makefile (distribute): Add dl-lookupcfg.h.
5134 * sysdeps/ia64/Dist: New file.
5135
5136 * elf/dl-load.c (_dl_map_object_from_fd): Little of computation of
5137 parameter to mprotect and for variable assignments.
5138
5139 2000-05-03 Jes Sorensen <jes@linuxcare.com>
5140
5141 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Check the
5142 validity of map before dereferencing it.
5143
5144 * elf/dl-reloc.c (RESOLVE_MAP): Define.
5145
5146 2000-05-02 Jes Sorensen <jes@linuxcare.com>
5147
5148 * elf/dl-runtime.c (fixup): Add the value returned in the symbol
5149 lookup to the arguments to elf_machine_fixup_plt().
5150
5151 * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add Link_map
5152 of the symbol being resolved to input argument list and make the
5153 function return the pointer to the reloc.
5154
5155 * sysdeps/alpha/dl-machine.h (elf_machine_fixup_plt): Change
5156 return valuie to lookup_t and return the value.
5157 * sysdeps/arm/dl-machine.h (elf_machine_fixup_plt): Likewise.
5158 * sysdeps/generic/dl-machine.h (elf_machine_fixup_plt): Likewise.
5159 * sysdeps/i386/dl-machine.h (elf_machine_fixup_plt): Likewise.
5160 * sysdeps/m68k/dl-machine.h (elf_machine_fixup_plt): Likewise.
5161 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_fixup_plt): Likewise.
5162 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Likewise.
5163
5164 * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Likewise.
5165 Make it an inline function returning value after calling
5166 __elf_machine_fixup_plt().
5167
5168 * elf/dl-sym.c (_dl_vsym): Use DL_SYMBOL_ADDRESS() to obtain the
5169 symbol address.
5170
5171 * elf/dl-symbol.c (_dl_symbol_value): Use LOOKUP_VALUE_ADDRESS to
5172 obtain the symbol address.
5173
5174 * sysdeps/generic/ldsodefs.h: Add generic DL_SYMBOL_ADDRESS() macro
5175 depending on the definition of ELF_FUNCTION_PTR_IS_SPECIAL.
5176
5177 * sysdeps/ia64/dl-machine.h: Add DL_SYMBOL_ADDRESS() macro calling
5178 _dl_symbol_address() - this way DL_SYMBOL_ADDRESS() turns into an
5179 inline on non ia64.
5180
5181 2000-04-28 Jes Sorensen <jes@linuxcare.com>
5182
5183 * elf/dl-runtime.c (fixup): Use the portable macros to get the
5184 symbol address of an object.
5185
5186 * elf/dl-runtime.c (fixup-profile): Use the portable macros to get
5187 the symbol address of an object.
5188
5189 * elf/dl-libc.c (struct do_dlsym_args): Change loadbase to a lookup_t.
5190 * elf/dl-lookup.c (_dl_lookup_symbol): Likewise.
5191 (_dl_lookup_symbol_skip): Likewise.
5192 (_dl_lookup_versioned_symbol): Likewise.
5193 (_dl_lookup_versioned_symbol_skip): Likewise.
5194
5195 2000-04-27 Jes Sorensen <jes@linuxcare.com>
5196
5197 * elf/rtld.c (_dl_start): Get the function pointer return address
5198 via _dl_start_address for architectures that need a function
5199 pointer descriptor rather than just a pointer (ia64).
5200
5201 * sysdeps/generic/dl-lookupcfg.h: New file.
5202 * sysdeps/ia64/dl-lookupcfg.h: New file.
5203 * sysdeps/ia64/dl-machine.h: New file.
5204 * sysdeps/ia64/dl-symaddr.c: New file.
5205 * sysdeps/ia64/dl-fptr.c: New file.
5206
5207 * elf/elf.h: Add IA-64 specific definitions.
5208
5209 2000-05-04 Jakub Jelinek <jakub@redhat.com>
5210
5211 * sysdeps/generic/bits/confname.h (_SC* enum): Avoid comma at the
5212 end of enum.
5213
5214 2000-05-04 Jakub Jelinek <jakub@redhat.com>
5215
5216 * iconv/gconv.h (__gconv_t): Add __extension__ to make gcc -pedantic
5217 happy.
5218
5219 2000-04-11 Geoff Keating <geoffk@cygnus.com>
5220
5221 * sysdeps/powerpc/dl-start.S (_dl_start): Add _dl_start_user
5222 symbol. Call _dl_init rather than the old way.
5223
5224 2000-05-04 Ulrich Drepper <drepper@redhat.com>
5225
5226 * elf/dl-open.c (dl_open_worker): Use l_map_start and l_map_end to
5227 test for pointer in range of DSO address space.
5228
5229 2000-05-04 Andreas Jaeger <aj@suse.de>
5230
5231 * nscd/pwdcache.c (addpwbyname): Initialize oldeuid to silence GCC.
5232
5233 2000-05-03 Ulrich Drepper <drepper@redhat.com>
5234
5235 * locale/findlocale.c (_nl_find_locale): Add new parameter to
5236 calls of _nl_make_l10nflist.
5237
5238 * libio/stdio.h: Make fseeko and ftello prototypes available is
5239 __USE_LARGEFILE. Patch by Paul Eggert <eggert@twinsun.com>.
5240
5241 * sysdeps/generic/dl-environ.c (unsetenv): Follow change to the
5242 real unsetenv implementation from 1999-07-29 [PR libc/1714].
5243
5244 2000-05-03 Bruno Haible <haible@clisp.cons.org>
5245
5246 * intl/dcigettext.c (dcigettext): Do the defaulting of 'domainname'
5247 before calling tfind.
5248
5249 2000-03-05 Jakub Jelinek <jakub@redhat.com>
5250
5251 * resolv/resolv.h (res_querydomain): Remove redefinition to
5252 __res_querydomain (reported by Owen Taylor <otaylor@redhat.com>).
5253
5254 2000-05-03 Ulrich Drepper <drepper@redhat.com>
5255
5256 * po/gl.po: Update from translation team.
5257
5258 * manual/intro.texi (Program Basics): Change section title.
5259 * manual/process.texi: Fix reference.
5260 (Executing a File): Add reference exec in other section.
5261 * manual/signal.texi: Fix reference.
5262 * manual/startup.texi: Document syscall function.
5263 Patches by Bryan Henderson <bryanh@giraffe-data.com>.
5264
5265 2000-04-29 Bruno Haible <haible@clisp.cons.org>
5266
5267 * intl/libintl.h (bind_textdomain_codeset): New declaration.
5268 * intl/bindtextdom.c (set_binding_values): New function.
5269 (bindtextdomain): Call it.
5270 (bind_textdomain_codeset): New function.
5271 * intl/dcigettext.c (dcigettext): Pass binding to _nl_find_domain.
5272 (free_mem): Free each binding's codeset.
5273 * intl/gettextP.h (struct binding): Add codeset field.
5274 (_nl_find_domain): Add domainbinding argument.
5275 * intl/finddomain.c (_nl_find_domain): Add domainbinding argument.
5276 Pass it to _nl_make_l10nflist.
5277 * intl/loadinfo.h (struct loaded_l10nfile): Add domainbinding field.
5278 (_nl_make_l10nflist): Add domainbinding argument.
5279 * intl/l10nflist.c (_nl_make_l10nflist): Add domainbinding argument.
5280 * intl/loadmsgcat.c (_nl_load_domain): Look at the domainbinding's
5281 codeset when determining outcharset. If !_LIBC && HAVE_ICONV, call
5282 locale_charset().
5283 * manual/message.texi: New node "Charset conversion in gettext".
5284
5285 2000-04-30 Bruno Haible <haible@clisp.cons.org>
5286
5287 * catgets/open_catalog.c (__open_catalog): Use __builtin_expect where
5288 appropriate. Handle possible __read error.
5289
5290 2000-04-29 Bruno Haible <haible@clisp.cons.org>
5291
5292 * intl/gettextP.h (__builtin_expect): Define as empty if not a
5293 compiler builtin.
5294 * intl/loadinfo.h (__builtin_expect): Likewise.
5295 * intl/dcigettext.c (dcigettext, _nl_find_msg): Use
5296 __builtin_expect where appropriate.
5297 * intl/loadmsgcat.c (_nl_load_domain): Likewise.
5298 * intl/localealias.c (extend_alias_table): Return an error indicator.
5299 (read_alias_file): Bail out if extend_alias_table fails.
5300
5301 2000-04-29 Bruno Haible <haible@clisp.cons.org>
5302
5303 * intl/loadmsgcat.c: Define _GNU_SOURCE as early as possible.
5304 * intl/localealias.c: Likewise.
5305
5306 2000-05-01 Bruno Haible <haible@clisp.cons.org>
5307
5308 * intl/loadmsgcat.c (_nl_load_domain): Initialize domain->conv_tab.
5309 Initialize domain->plural and domain->nplurals even if there is no
5310 nullentry.
5311
5312 2000-05-01 Bruno Haible <haible@clisp.cons.org>
5313
5314 * intl/dcigettext.c (_nl_find_msg): Terminate __gconv loop if return
5315 value is == __GCONV_OK or == __GCONV_EMPTY_INPUT, not != __GCONV_OK.
5316 In case of failure, goto converted.
5317
5318 2000-05-01 Bruno Haible <haible@clisp.cons.org>
5319
5320 * wcsmbs/wcsmbsload.c (norm_add_slashes): Move away.
5321 * iconv/gconv_int.h (norm_add_slashes): Move to here.
5322 * intl/loadmsgcat.c (_nl_load_domain): Normalize strings passed to
5323 __gconv_open.
5324
5325 2000-04-29 Bruno Haible <haible@clisp.cons.org>
5326
5327 * intl/dcigettext.c (transcmp): Compare the domains as well.
5328 (dcigettext): Call strlen (msgid1) after testing msgid1 against NULL,
5329 not before.
5330 * intl/loadmsgcat.c (_nl_load_domain): Deal with EINTR. Include
5331 <errno.h>.
5332
5333 2000-05-03 Ulrich Drepper <drepper@redhat.com>
5334
5335 * string/bits/string2.h: Declare __strdup and __strndup if necessary.
5336 Reported by Bruno Haible.
5337
5338 2000-04-29 Bruno Haible <haible@clisp.cons.org>
5339
5340 * manual/arith.texi: Remove @w from @itemize.
5341
5342 2000-05-02 Andreas Jaeger <aj@suse.de>
5343
5344 * conform/data/tar.h-data: Add some checks for specific values.
5345
5346 * conform/data/stdlib.h-data: Add checks for value of EXIT_SUCCESS
5347 and RAND_MAX.
5348
5349 * conform/data/stdio.h-data: Add checks for value of TMP_MAX and
5350 FOPEN_MAX.
5351
5352 * conform/data/netinet/in.h-data: Add exact checks for the values
5353 fo INET_ADDRSTRLEN and INET6_ADDRSTRLEN.
5354
5355 * conform/data/float.h-data: Add some minimal values.
5356
5357 * conform/conformtest.pl: Test for macros with string constants,
5358 check for minimum and maximum values.
5359 Add limits.h to headers.
5360
5361 * conform/data/cpio.h-data: Test for value of MAGIC.
5362
5363 * conform/data/limits.h-data: New file.
5364
5365 2000-04-30 Bruno Haible <haible@clisp.cons.org>
5366
5367 * math/Makefile (headers): Add bits/fenvinline.h.
5368
5369 2000-05-01 Ulrich Drepper <drepper@redhat.com>
5370
5371 * sysdeps/unix/sysv/aix/linux/linux-dirent.h: New file.
5372 * sysdeps/unix/sysv/aix/linux/direntconv.c: New file.
5373
5374 * posix/Versions: Change posix_spawnattr_getdefault and
5375 posix_spawnattr_setdefault to posix_spawnattr_getsigdefault
5376 and posix_spawnattr_setsigdefault respectively.
5377 * posix/spawn.h: Likewise.
5378 * posix/spawnattr_getdefault.h: Likewise.
5379 * posix/spawnattr_setdefault.h: Likewise.
5380 * conform/data/spawn.h-data: Likewise.
5381
5382 2000-05-01 Andreas Jaeger <aj@suse.de>
5383
5384 * nscd/nscd.c: Include <grp.h> for setgroups prototype.
5385
5386 2000-04-30 Ulrich Drepper <drepper@redhat.com>
5387
5388 * manual/sysinfo.texi: Document getdomainname, setdomainname
5389 and sysctl.
5390 * manual/string.texi: Fix typo.
5391 * manual/terminal.texi: Document gtty and stty.
5392 Patch by Bryan Henderson <bryanh@giraffe-data.com>.
5393
5394 2000-04-30 Andreas Jaeger <aj@suse.de>
5395
5396 * posix/bits/posix1_lim.h (_POSIX_PATH_MAX): Increase to 256 in
5397 accordance with Austin Draft.
5398
5399 2000-04-30 Ulrich Drepper <drepper@redhat.com>
5400
5401 * catgets/gencat.c (read_input_file): Use isblank and not isspace
5402 to recognize second character in comment line.
5403
5404 * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Set errno to
5405 ENOBUFS if we are out of memory.
5406
5407 * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Make
5408 available if __USE_XOPEN2K.
5409 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
5410 * sysdeps/unix/common/bits/fcntl.h: Likewise.
5411 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5412 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
5413 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
5414 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5415 * sysdeps/unix/sysv/aix/bits/fcntl.h: Likewise.
5416 * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
5417
5418 2000-04-29 Ulrich Drepper <drepper@redhat.com>
5419
5420 * iconv/iconv_prog.c (main): Handle input file name "-" correctly.
5421 Recognize option -s, -c, and -l.
5422
5423 2000-04-20 Thorsten Kukuk <kukuk@suse.de>
5424
5425 * nscd/nscd.c: Start new session for nscd, drop privilegs
5426 to configured user if requested and no -S parameter are used.
5427 * nscd/nscd.conf: Add new option "server-user".
5428 * nscd/nscd_conf.c: Add support for new "server-user" option.
5429 * nscd/nscd.h: Add declaration for server_user variable.
5430 Based on patch by Chris Wing <wingc@engin.umich.edu>
5431
5432 2000-04-29 Mark Kettenis <kettenis@gnu.org>
5433
5434 * sysdeps/unix/sysv/linux/i386/sigaction.c: Add comment explaining
5435 that changing the __restore and __restore_rt signal return code
5436 will break GDB.
5437
5438 2000-04-29 Mark Kettenis <kettenis@gnu.org>
5439
5440 * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Do not include
5441 <sys/user.h>.
5442
5443 2000-04-29 Mark Kettenis <kettenis@gnu.org>
5444
5445 * conform/data/ucontext.h-data: Allow ss_* instead of SS_*.
5446
5447 2000-04-29 Ulrich Drepper <drepper@redhat.com>
5448
5449 * conform/conformtest.pl (@headers): Add sys/utsname.h, sys/un.h,
5450 sys/socket.h, spawn.h, netinet/tcp.h, netinet/in.h, net/if.h, and
5451 arpa/inet.h.
5452 * conform/data/fcntl.h-data: Add F_GETOWN, F_SETOWN,
5453 SEEK_SET, SEEK_CUR, SEEK_END, S_IFMT, S_IFBLK, S_IFCHR, S_IFIFO,
5454 S_IFREG, S_IFDIR, S_IFLNK, S_IFSOCK, S_IRWXU, S_IRUSR S_IWUSR,
5455 S_IXUSR, S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXO, S_IROTH,
5456 S_IWOTH, S_IXOTH, S_ISUID, S_ISGID, S_ISVTX, POSIX_FADV_NORMAL,
5457 POSIX_FADV_SEQUENTIAL, POSIX_FADV_RANDOM, POSIX_FADV_WILLNEED,
5458 POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE, posix_fadvise,
5459 posix_fallocate, and posix_madvise.
5460 * conform/data/netdb.h-data: New file.
5461 * conform/data/pthread.h-data: Add pthread_barrier_t,
5462 pthread_barrierattr_t, pthread_barrier_destroy,
5463 pthread_barrier_init, pthread_barrier_wait,
5464 pthread_barrierattr_destroy, pthread_barrierattr_getpshared,
5465 pthread_barrierattr_init, pthread_barrierattr_setpshared,
5466 pthread_condattr_getclock, pthread_condattr_setclock,
5467 pthread_getcpuclockid, pthread_mutex_timedlock,
5468 pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
5469 pthread_sigmask, pthread_spin_destroy, pthread_spin_init,
5470 pthread_spin_lock, pthread_spin_trylock, and pthread_spin_unlock.
5471 * conform/data/sched.h-data: Add sched_ss_low_priority,
5472 sched_ss_repl_period, sched_ss_init_budget, sched_ss_max_repl, and
5473 SCHED_SPORADIC.
5474 * conform/data/semaphore.h-data: Add sem_timedwait.
5475 * conform/data/signal.h-data: Add SIGIO.
5476 * conform/data/spawn.h-data: New file.
5477 * conform/data/stdlib.h-data: Add posix_memalign, setenv, and unsetenv.
5478 * conform/data/time.h-data: Add CLOCK_PROCESS_CPUTIME_ID,
5479 CLOCK_THREAD_CPUTIME_ID, clock_getcpuclockid, and clock_nanosleep.
5480 Fix typo in gmtime_r definition.
5481 * conform/data/unistd.h-data: Add _POSIX_ADVISORY_INFO,
5482 _POSIX_ASYNCHRONOUS_IO, _POSIX_BARRIERS, _POSIX_MONOTONIC_CLOCK,
5483 _POSIX_READER_WRITER_LOCKS, _POSIX_SHELL, _POSIX_SPAWN,
5484 _POSIX_SPIN_LOCKS, _POSIX_SPORADIC_SERVER, _POSIX_THREAD_CPUTIME,
5485 _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_THREAD_SPORADIC_SERVER,
5486 _XOPEN_STREAMS, _POSIX_TIMEOUTS, _POSIX2_PBS,
5487 _POSIX2_PBS_ACCOUNTING, _POSIX2_PBS_CHECKPOINT,
5488 _POSIX2_PBS_LOCATE, _POSIX2_PBS_MESSAGE, _POSIX2_PBS_TRACK,
5489 _SC_2_PBS, _SC_2_PBS_ACCOUNTING, _SC_2_PBS_CHECKPOINT,
5490 _SC_2_PBS_LOCATE, _SC_2_PBS_MESSAGE, _SC_2_PBS_TRACK,
5491 _SC_BARRIERS, _SC_BASE, _SC_CLOCK_SELECTION, _SC_DEVICE_IO,
5492 _SC_DEVICE_SPECIFIC, _SC_DEVICE_SPECIFIC_R, _SC_FD_MGMT, _SC_FIFO,
5493 _SC_FILE_ATTRIBUTES, _SC_FILE_LOCKING, _SC_FILE_SYSTEM,
5494 _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK,
5495 _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK, _SC_MULTIPLE_PROCESS,
5496 _SC_NETWORKING, _SC_PIPE, _SC_READER_WRITER_LOCKS, _SC_REGEXP,
5497 _SC_SHELL, _SC_SIGNALS, _SC_SINGLE_PROCESS, _SC_SPIN_LOCKS,
5498 _SC_TYPED_MEMORY_OBJECTS, _SC_USER_GROUPS, _SC_USER_GROUPS_R,
5499 _SC_STREAMS, _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
5500 _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, setegid, seteuid. Fix
5501 typo in off_t definition.
5502 * conform/data/net/if.h-data: New file.
5503 * conform/data/netinet/in.h-data: New file.
5504 * conform/data/netinet/tcp.h-data: New file.
5505 * conform/data/sys/mman.h-data: Add POSIX_MADV_NORMAL,
5506 POSIX_MADV_SEQUENTIAL, POSIX_MADV_RANDOM, POSIX_MADV_WILLNEED,
5507 POSIX_MADV_DONTNEED, POSIX_TYPED_MEM_ALLOCATE,
5508 POSIX_TYPED_MEM_ALLOCATE_CONTIG, POSIX_TYPED_MEM_MAP_ALLOCATABLE,
5509 posix_typedmem_info, posix_mem_offset, posix_typed_mem_get_info,
5510 and posix_typed_mem_open.
5511 * conform/data/sys/socket.h-data: New file.
5512 * conform/data/sys/stat.h-data: Add S_TYPEISTMO and isfdtype.
5513 * conform/data/sys/types.h-data: Add pthread_barrier_t,
5514 pthread_barrierattr_t, and pthread_spinlock_t.
5515 * conform/data/sys/un.h-data: New file.
5516 * conform/data/sys/utsname.h-data: New file.
5517
5518 * include/netdb.h (__gethostbyaddr_r): Fix types of first and second
5519 parameter.
5520 * inet/gethstbyad.c (gethostbyname): Likewise.
5521 * inet/gethstbyad_t.c (gethostbyname_r): Likewise.
5522 * inet/getipnodebyad.c (getipnodebyad): Likewise.
5523 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
5524 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
5525 Likewise.
5526 * nscd/gethstbyad_r.c (gethostbyaddr_r): Likewise.
5527 * nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
5528 * nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Likewise.
5529 * nss/nss_files/files-hosts.c (_nss_files_gethostbyaddr_r): Likewise.
5530 * resolv/gethnamaddr.c (gethostbyname): Likewise.
5531 * resolv/netdb.h (struct hostent): Fix type of h_length member.
5532 (gethostbyaddr, getipnodebyaddr, gethostbyaddr_r): Fix types of first
5533 and second parameter.
5534
5535 * wcsmbs/mbrtowc.c (__mbrtowc): Set end of buffer correctly if s
5536 == NULL.
5537
5538 2000-04-29 Andreas Jaeger <aj@suse.de>
5539
5540 * conform/data/arpa/inet.h-data: New file.
5541
5542 2000-04-28 Geoff Clare <gwc@unisoft.com>
5543
5544 * io/ftw.c: Set errno to ENOENT (instead of ENOTDIR) when the
5545 path passed to ftw() or nftw() is an empty string.
5546 Closes PR libc/1710.
5547
5548 2000-04-27 Ulrich Drepper <drepper@redhat.com>
5549
5550 * localedata/Makefile (test-srcs): Add tst-mbswcs4 and tst-mbswcs5.
5551 (do-tst-mbswcs): Add tst-mbswcs4 and tst-mbswcs5 to dependencies.
5552 * localedata/tst-mbswcs.sh: Run tst-mbswcs4 and tst-mbswcs5.
5553 * localedata/tst-mbswcs4.c: New file.
5554 * localedata/tst-mbswcs5.c: New file.
5555
5556 * wcsmbs/wcrtomb.c (__wcrtomb): Set end of buffer correctly if s
5557 == NULL. Little optimization.
5558
5559 * elf/dl-init.c (_dl_init): Correct typo (DT_PREINIT_ARRAY not
5560 DT_PREINIT_ARRAYSZ).
5561 Reported by Jes Sorensen <Jes.Sorensen@cern.ch>.
5562
5563 * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups): Handle
5564 overflows in conversion from ASCII.
5565
5566 2000-04-26 Jakub Jelinek <jakub@redhat.com>
5567
5568 * Makeconfig (full_config_sysdirs): Renamed from full-config-sysdirs.
5569 * Makerules (full_config_sysdirs): Likewise.
5570 * MakeTAGS (full_config_sysdirs): Likewise.
5571
5572 2000-04-26 Jakub Jelinek <jakub@redhat.com>
5573
5574 * .cvsignore: Remove linuxthreads.
5575 * po/.cvsignore: Remove *.pot.
5576 * posix/glob/.cvsignore: Removed.
5577 * sysdeps/unix/bsd/osf/.cvsignore: Removed.
5578
5579 2000-04-25 Andreas Jaeger <aj@suse.de>
5580
5581 * conform/Makefile (distribute): Also distribute contents of
5582 subdirectories.
5583
5584 * Makerules (no_deps): Remove abi-versions.h.
5585
5586 * nis/nis_print_group_entry.c: Include alloca.h for alloca prototype.
5587
5588 2000-04-25 Jakub Jelinek <jakub@redhat.com>
5589
5590 * sysdeps/sparc/sparc64/elf/Dist: Remove.
5591 * sysdeps/sparc/sparc64/elf/crtbegin.S: Remove.
5592 * sysdeps/sparc/sparc64/elf/crtbeginS.S: Remove.
5593 * sysdeps/sparc/sparc64/elf/crtend.S: Remove.
5594 * sysdeps/sparc/sparc64/elf/crtendS.S: Remove.
5595 * sysdeps/sparc/sparc64/elf/Makefile: Don't build crtbegin/crtend
5596 objects.
5597
5598 2000-04-25 Thorsten Kukuk <kukuk@suse.de>
5599
5600 * nscd/grpcache.c: Fix gr_name pointer [PR/1702].
5601
5602 2000-04-23 Bruno Haible <haible@clisp.cons.org>
5603
5604 * intl/dcigettext.c: Define _GNU_SOURCE as early as possible.
5605 * intl/l10nflist.c: Likewise.
5606
5607 2000-04-23 Bruno Haible <haible@clisp.cons.org>
5608
5609 * intl/bindtextdom.c [!_LIBC]: Define __libc_rwlock_define,
5610 __libc_rwlock_wrlock, __libc_rwlock_unlock as empty.
5611 * intl/textdomain.c [!_LIBC]: Likewise.
5612 * intl/dcigettext.c [!_LIBC]: Define __libc_rwlock_define_initialized,
5613 __libc_rwlock_rdlock, __libc_rwlock_unlock as empty.
5614 * intl/loadmsgcat.c (_nl_load_domain) [!_LIBC, !HAVE_ICONV]: Avoid
5615 syntax error.
5616
5617 2000-04-23 Bruno Haible <haible@clisp.cons.org>
5618
5619 * intl/dcigettext.c (_nl_find_msg): Do the plural treatment and
5620 character set conversion also in the case the translation was found
5621 after a hash collision or through binary search. Store the maximum
5622 index together with the converted message. Use iconv() when available.
5623 In case of out of memory during conversion, return the unconverted
5624 translated string, not NULL.
5625
5626 2000-04-25 Jes Sorensen <Jes.Sorensen@cern.ch>
5627
5628 * shlib-versions: Rename ia64 dynamic linker to ld-linux-ia64.so.1
5629 to avoid name clashes with the ia32 linker.
5630
5631 2000-04-25 Jakub Jelinek <jakub@redhat.com>
5632
5633 * sysdeps/alpha/dl-machine.h (_dl_start_user): Fix the _dl_skip_args
5634 handling.
5635
5636 2000-04-27 Ulrich Drepper <drepper@redhat.com>
5637
5638 * manual/string.texi: Document strcasestr, strchrnul, strtoimax,
5639 strtoumax, strfry, and memfrob.
5640 * manual/arith.texi: Document {,u}int*_t types, and strto{i,u}max.
5641 Patch by Bryan Henderson <bryanh@giraffe-data.com>.
5642
5643 * elf/soinit.c (__libc_global_ctors): Call __pthread_initialize_minimal
5644 if this function is available.
5645
5646 * sysdeps/i386/i486/atomicity.h (exchange_and_add): Use uint32_t for
5647 all values.
5648
5649 2000-04-27 Jakub Jelinek <jakub@redhat.com>
5650
5651 * nss/getXXbyYY_r.c: Fix a typo in __old_getxxbyyy_r versioning.
5652
5653 2000-04-27 Ulrich Drepper <drepper@redhat.com>
5654
5655 * localedata/Makefile (test-srcs); Add tst-mbswcs3.
5656 Add rule to build tst-mbswcs3 before running tst-mbswcs.sh.
5657 * localedata/tst-mbswcs.sh: Run tst-mbswcs3.
5658 * localedata/tst-mbswcs3.c: New file.
5659
5660 2000-04-26 Ulrich Drepper <drepper@redhat.com>
5661
5662 * wcsmbs/mbsnrtowcs.c: Correctly compute number of converted
5663 characters. Don't handle incomplete characters as errors.
5664 * wcsmbs/mbsrtowcs.c: Don't handle incomplete characters as errors.
5665 * localedata/Makefile (test-srcs): Add tst-mbswcs2.
5666 Add rule to build tst-mbswcs2 before running tst-mbswcs.sh.
5667 * localedata/tst-mbswcs.sh: Run tst-mbswcs2.
5668 * localedata/tst-mbswcs2.c: New file.
5669
5670 * iconv/gconv_simple.c (utf8_internal_loop): Correctly reconstruct
5671 stored character in state in UNPACK_BYTES macro.
5672 * iconv/loop.c (SINGLE(LOOPFCT)): Make it actually work. Correct
5673 test for available characters, handle result of BODY code correctly.
5674 * localedata/Makefile (test-srcs): Add tst-mbswcs1.
5675 (distribute): Add tst-mbswcs.sh.
5676 Add rule to run tst-mbswcs.sh.
5677 * localedata/tst-mbswcs.sh: New file.
5678 * localedata/tst-mbswcs1.c: New file.
5679
5680 2000-04-26 Jakub Jelinek <jakub@redhat.com>
5681
5682 * nis/nis_callback.c (__nis_create_callback): Do failed memory
5683 allocation fixups centrally, fix __builtin_expect call, return NULL
5684 on failure, not NIS_NOMEMORY.
5685
5686 2000-04-27 Bruno Haible <haible@clisp.cons.org>
5687
5688 * intl/ngettext.c [!_LIBC]: Fix definition of NGETTEXT.
5689
5690 * intl/loadinfo.h (internal_function): Define if not already defined.
5691
5692 2000-04-27 Andreas Jaeger <aj@suse.de>
5693
5694 * intl/libintl.h: Fix typo, reported by Bruno Haible
5695 <haible@clisp.cons.org>.
5696
5697 2000-04-25 Ulrich Drepper <drepper@redhat.com>
5698
5699 * elf/dl-profile.c (_dl_mcount): Try to be thread-safe while not
5700 setting the state to GMON_PROF_BUSY.
5701
5702 2000-04-24 Ulrich Drepper <drepper@redhat.com>
5703
5704 * elf/dl-profile.c (_dl_start_profile): define all variables which
5705 do not have to be global as local variables.
5706
5707 * nis/nis_callback.c (__nis_create_callback): Partially undo last
5708 patch. Keep needed tests for failed memory allocation.
5709
5710 * elf/dl-reloc.c (_dl_relocate_object): Add one more
5711 __builtin_expect saying that we don't normally expect to profile.
5712
5713 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add
5714 __builtin_expect where desirable.
5715
5716 2000-04-23 Ulrich Drepper <drepper@redhat.com>
5717
5718 * manual/Makefile (chapters): Add syslog.
5719 * manual/syslog.texi: New file.
5720 * manual/math.texi: Fix references.
5721 * manual/terminal.texi: Likewise.
5722 Patch by Bryan Henderson <bryanh@giraffe-data.com>.
5723
5724 2000-04-18 Jakub Jelinek <jakub@redhat.com>
5725
5726 * posix/sys/wait.h: Define __WAIT_STATUS and the like either if
5727 stdlib.h was not included or __USE_XOPEN not defined.
5728
5729 2000-04-23 Ulrich Drepper <drepper@redhat.com>
5730
5731 * nss/Makefile (libnss_db-dbs): Remove stray backslash.
5732 Patch by Zack Weinberg <zack@wolery.cumb.org>.
5733
5734 2000-04-22 Ulrich Drepper <drepper@redhat.com>
5735
5736 * manual/examples/subopt.c (mount_opts): Add missing terminating
5737 entry.
5738 Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
5739
5740 * assert/assert-perr.c: Include <stdlib.h> for abort prototype.
5741 * libio/ftello.c: Likewise.
5742 * libio/ftello64.c: Likewise.
5743 * libio/ioftell.c: Likewise.
5744 * sysdeps/generic/memrchr.c: Likewise.
5745 * sysdeps/posix/libc_fatal.c: Likewise.
5746 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
5747 * misc/fstab.c: Include <string.h> for strcmp prototype.
5748 * sysdeps/generic/ldsodefs.h: Likewise.
5749 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
5750 Patch by Kurt Roeckx <Q@ping.be>.
5751
5752 * nss/Makefile (libnss_db-dbs): Renamed from libnss_db-routines.
5753 Remove db-open. Change all uses.
5754 (libnss_db-routines): Define as $(libnss_db-dbs) db-open.
5755
5756 2000-04-21 Jakub Jelinek <jakub@redhat.com>
5757
5758 * sysdeps/unix/sysv/linux/alpha/msgctl.c (__syscall_msgctl): Declare.
5759 * sysdeps/unix/sysv/linux/alpha/semctl.c (__syscall_semctl): Declare.
5760 * sysdeps/unix/sysv/linux/alpha/shmctl.c (__syscall_shmctl): Declare.
5761 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Surround uses of $f28
5762 with .set noat/at to shut up warnings.
5763 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__fstatfs64): Add alias.
5764 * sysdeps/unix/sysv/linux/alpha/ioperm.c (init_iosys): Allow
5765 compilation if __NR_pciconfig_iobase is not defined.
5766 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__fstatfs64):
5767 Add alias.
5768
5769 2000-04-21 Ulrich Drepper <drepper@redhat.com>
5770
5771 * manual/sysinfo.texi: Fix typo.
5772 * manual/time.texi: Document timelocal, timegm, adjtimex, and stime.
5773 Replace "high precision time" with "high accuracy clock".
5774 Fix language.
5775 Patches by Bryan Henderson <bryanh@giraffe-data.com>.
5776
5777 * nis/nis_findserv.c (__nis_findfastest): Improve memory handling.
5778 * nis/nis_print_group_entry.c (nis_print_group_entry): Use alloca
5779 instead of malloc.
5780 * nis/nis_subr.c: Use __builtin_expect.
5781 * nis/ypclnt.c: Likewise.
5782 * nis/nis_getservlist.c: Likewise.
5783 * nis/nis_creategroup.c: Likewise.
5784
5785 * nis/nis_callback.c (__nis_create_callback): Check result of
5786 memory allocation. Fix memory leaks. Use __builtin_expect.
5787 (__nis_destroy_callback): Fix memory leaks.
5788
5789 2000-04-21 Andreas Jaeger <aj@suse.de>
5790
5791 * sysdeps/mips/elf/start.S: Use __PIC__ instead of PIC.
5792 * sysdeps/mips/mips64/add_n.S: Likewise.
5793 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
5794 * sysdeps/mips/mips64/lshift.S: Likewise.
5795 * sysdeps/mips/mips64/mul_1.S: Likewise.
5796 * sysdeps/mips/mips64/rshift.S: Likewise.
5797 * sysdeps/mips/mips64/setjmp.S: Likewise.
5798 * sysdeps/mips/mips64/sub_n.S: Likewise.
5799 * sysdeps/mips/mips64/submul_1.S: Likewise
5800 * sysdeps/unix/mips/sysdep.S: Likewise.
5801
5802 * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Remove strtab
5803 and update comment. The strtab from _dl_relocate_object can be
5804 used.
5805
5806 2000-04-21 Ulrich Drepper <drepper@redhat.com>
5807
5808 * iconv/iconv.c (iconv): Add __builtin_expect where useful.
5809 * iconv/iconv_close.c (iconv_close): Likewise.
5810 * iconv/iconv_open.c (iconv_open): Likewise.
5811
5812 * grp/putgrent.c (putgrent): Unlock steam if fprintf failed. Add
5813 __builtin_expect where useful.
5814
5815 * grp/initgroups.c (initgroups): Test for result of memory
5816 allocation and punt if it fails.
5817
5818 * dirent/scandir.c (scandir): Add __builtin_expect where useful.
5819 * grp/fgetgrent.c (fgetfrent): Likewise.
5820 * grp/fgetgrent_r.c (__fgetgrent_r): Likewise.
5821
5822 2000-04-21 Jakub Jelinek <jakub@redhat.com>
5823
5824 * libio/vasprintf.c: Include string.h to get memcpy prototype.
5825
5826 2000-04-20 Ulrich Drepper <drepper@redhat.com>
5827
5828 * wcsmbs/wcsrtombs.c (__wcsrtombs): If output buffer is too small
5829 don't search for NUL byte to decrement counter.
5830 Reported by Ulrich.Brink@sap.com.
5831
5832 * iconv/gconv_simple.c: Define separate functions to convert from
5833 UCS4/UCS4-LE to the internal encoding.
5834 * iconv/gconv_builtin.h: Use separate functions to convert from
5835 UCS4/UCS4-LE to the internal encoding.
5836 * iconv/gconv_int.h: Declare __gconv_transform_ucs4_internal and
5837 __gconv_transform_ucs4le_internal.
5838
5839 * iconv/gconv_simple.c (internal_utf8_loop): Correct check for
5840 output buffer overflow. Reported by Ulrich.Brink@sap.com.
5841
5842 * iconv/skeleton.c: Add some more __builtin_expect.
5843 * iconv/loop.c: Likewise.
5844
5845 2000-03-08 H.J. Lu <hjl@gnu.org>
5846
5847 * posix/regex.c (regex_compile): Correctly handle "\{" when
5848 the RE_INTERVALS is set and the RE_NO_BK_BRACES bit is not set.
5849
5850 2000-04-20 Ulrich Drepper <drepper@redhat.com>
5851
5852 * manual/stdio.texi: Give advise about handling error when using
5853 stream functions.
5854 Patch by Michael Deutschmann <michael@talamasca.ocis.net>.
5855
5856 2000-04-19 Jakub Jelinek <jakub@redhat.com>
5857
5858 * locale/programs/ld-ctype.c (ctype_output): Set size of the idx
5859 field to nelems * sizeof (uint32_t).
5860 * locale/programs/ld-address.c (address_output): Align word fields
5861 properly.
5862 * locale/programs/ld-monetary.c (monetary_output): Likewise.
5863 Don't restart idx pointers to idx end at the duo_int_curr_symbol
5864 field.
5865 Avoid giving arbitrary garbage in the crncystr field.
5866 Use sizeof(uint32_t) instead of 4 for len in uno_valid_from,
5867 uno_valid_to, duo_valid_from, duo_valid_to and conversion_rate
5868 fields.
5869 * locale/programs/ld-numeric.c (numeric_output): Likewise.
5870 Don't restart idx pointers to idx end at the decimal_point_wc field.
5871 * locale/programs/ld-time.c (time_output): week_1stday should be
5872 word, not byte. Align it properly.
5873
5874 2000-04-19 H.J. Lu <hjl@gnu.org>
5875
5876 * csu/gmon-start.c (_start): Declared as "extern void".
5877 (etext): Likewise.
5878
5879 2000-04-18 Andreas Jaeger <aj@suse.de>
5880
5881 * manual/install.texi (Running make install): Don't mention utmpd
5882 anymore.
5883
5884 2000-04-18 Andreas Jaeger <aj@suse.de>
5885
5886 * linuxthreads/Versions: Use ld instead of ld.so.
5887
5888 * elf/Makefile (ld-map): Use ld.map.
5889
5890 * Versions.def: Use ld instead of ld.so.
5891 * elf/Versions: Likewise.
5892 * sysdeps/mach/hurd/Versions: Likewise.
5893
5894 2000-04-20 Andreas Jaeger <aj@suse.de>
5895
5896 * elf/rtld.c (print_statistics): Move ifndef further up.
5897 (_dl_start_final): Added HP_TIMINIG_NONAVAIL to avoid warnings.
5898 (dl_main): Likewise.
5899
5900 2000-04-18 Ulrich Drepper <drepper@redhat.com>
5901
5902 * gmon/gmon.c: Add weak alias moncontrol for __moncontrol.
5903 * gmon/Versions: Move moncontrol to GLIBC_2.2.
5904
5905 * po/cs.po: Update from translation team.
5906
5907 * sysdeps/generic/updwtmp.c: Remove daemon support.
5908
5909 * login/Makefile (routines): Remove utmp_daemon.
5910
5911 * sysdeps/unix/sysv/aix/gethostname.c: Fix type of len argument.
5912 * sysdeps/unix/sysv/aix/access.c: Define ACC_INVOKER.
5913 * sysdeps/unix/sysv/aix/getegid.c: Define ID_EFFECTIVE.
5914 * sysdeps/unix/sysv/aix/geteuid.c: Likewise.
5915
5916 * elf/rtld.c: Display statitics option also if hp timing is not
5917 available.
5918
5919 * login/programs/connection.c: Removed.
5920 * login/programs/database.c Removed.
5921 * login/programs/error.c: Removed.
5922 * login/programs/request.c: Removed.
5923 * login/programs/xtmp.c: Removed.
5924 * login/programs/xtmp.h: Removed.
5925 * login/Makefile: Remove rules for utmpd.
5926 * login/README.utmpd: Removed.
5927 * login/utmp_daemon.c: Removed.
5928 * login/getutent_r.c: Remove references to daemon functions.
5929 * login/utmp-private.h (__libc_utmp_daemon_functions): Remove
5930 declaration.
5931
5932 2000-04-18 Andreas Jaeger <aj@suse.de>
5933
5934 * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
5935 2.2 for libnsl, libresolv, librt, libnss_*.
5936
5937 * elf/rtld.c (process_dl_debug): Remove obsolete comment.
5938
5939 * sysdeps/mips/dl-machine.h (elf_machine_rel): Fix relocation.
5940
5941 2000-04-18 Ulrich Drepper <drepper@redhat.com>
5942
5943 * sysdeps/unix/sysv/aix/geteuid.c: Don't try to include <sys/id.h>.
5944 * sysdeps/unix/sysv/aix/getegid.c: Likewise.
5945 * sysdeps/unix/sysv/aix/xstat64.c: Define STX_NORMAL and STX_64.
5946 * sysdeps/unix/sysv/aix/xstat.c: Define STX_NORMAL.
5947 * sysdeps/unix/sysv/aix/sys/param.h: Define NGROUPS.
5948 * sysdeps/unix/sysv/aix/setreuid.c: Define ID_EFFECTIVE and ID_REAL.
5949 * sysdeps/unix/sysv/aix/setregid.c: Likewise.
5950 * sysdeps/unix/sysv/aix/setuid.c: Define ID_REAL.
5951 * sysdeps/unix/sysv/aix/setgid.c: Likewise.
5952 * sysdeps/unix/sysv/aix/seteuid.c: Define ID_EFFECTIVE.
5953 * sysdeps/unix/sysv/aix/setegid.c: Likewise.
5954 * sysdeps/unix/sysv/aix/sbrk.c: Update parameter type.
5955 * sysdeps/unix/sysv/aix/nanosleep.c (struct timestruc_t): Define
5956 it here.
5957 * sysdeps/unix/sysv/aix/msync.c: New file.
5958 * sysdeps/unix/sysv/aix/msgsnd.c: New file.
5959 * sysdeps/unix/sysv/aix/net/if.h: New file.
5960 * sysdeps/unix/sysv/aix/pipe.c: New file.
5961 * sysdeps/unix/sysv/aix/poll.c: New file.
5962 * sysdeps/unix/sysv/aix/rename.c: New file.
5963 * sysdeps/unix/sysv/aix/rmdir.c: New file.
5964 * sysdeps/unix/sysv/aix/select.c: New file.
5965 * sysdeps/unix/sysv/aix/semctl.c: New file.
5966 * sysdeps/unix/sysv/aix/semget.c: New file.
5967 * sysdeps/unix/sysv/aix/semop.c: New file.
5968 * sysdeps/unix/sysv/aix/sendto.c: New file.
5969 * sysdeps/unix/sysv/aix/setgroups.c: New file.
5970 * sysdeps/unix/sysv/aix/setpgid.c: New file.
5971 * sysdeps/unix/sysv/aix/setpgrp.c: New file.
5972 * sysdeps/unix/sysv/aix/setpriority.c: New file.
5973 * sysdeps/unix/sysv/aix/setrlimit.c: New file.
5974 * sysdeps/unix/sysv/aix/setrlimit64.c: New file.
5975 * sysdeps/unix/sysv/aix/setsid.c: New file.
5976 * sysdeps/unix/sysv/aix/setsockopt.c: New file.
5977 * sysdeps/unix/sysv/aix/shmat.c: New file.
5978 * sysdeps/unix/sysv/aix/shmctl.c: New file.
5979 * sysdeps/unix/sysv/aix/shmdt.c: New file.
5980 * sysdeps/unix/sysv/aix/shmget.c: New file.
5981 * sysdeps/unix/sysv/aix/sigaltstack.c: New file.
5982 * sysdeps/unix/sysv/aix/sigstack.c: New file.
5983 * sysdeps/unix/sysv/aix/socket.c: New file.
5984 * sysdeps/unix/sysv/aix/socketpair.c: New file.
5985 * sysdeps/unix/sysv/aix/speed.c: New file.
5986 * sysdeps/unix/sysv/aix/symlink.c: New file.
5987 * sysdeps/unix/sysv/aix/sync.c: New file.
5988 * sysdeps/unix/sysv/aix/tcgetattr.c: New file.
5989 * sysdeps/unix/sysv/aix/tcsetattr.c: New file.
5990 * sysdeps/unix/sysv/aix/times.c: New file.
5991 * sysdeps/unix/sysv/aix/ulimit.c: New file.
5992 * sysdeps/unix/sysv/aix/umask.c: New file.
5993 * sysdeps/unix/sysv/aix/unlink.c: New file.
5994 * sysdeps/unix/sysv/aix/ustat.c: New file.
5995 * sysdeps/unix/sysv/aix/utimes.c: New file.
5996
5997 2000-04-18 Andreas Jaeger <aj@suse.de>
5998
5999 * manual/startup.texi (Environment Access): Fix putenv prototype
6000 according to recent changes.
6001 Reported by Andries Brouwer <Andries.Brouwer@cwi.nl>, closes
6002 PR libc/1692.
6003
6004 * elf/rtld.c (print_statistics): Added HP_TIMINIG_NONAVAIL where
6005 needed.
6006
6007 2000-04-18 Ulrich Drepper <drepper@redhat.com>
6008
6009 * posix/Makefile (tests): Add tst-getaddrinfo.
6010 * posix/tst-getaddrinfo.c: New file.
6011
6012 2000-04-17 Ulrich Drepper <drepper@redhat.com>
6013
6014 * manual/sysinfo.texi: Document that umount2 is not widely available.
6015
6016 * sysdeps/generic/hp-timing.h (HP_TIMING_NONAVAIL): Define to
6017 signal timing is not really implemented.
6018
6019 2000-04-17 Andreas Jaeger <aj@suse.de>
6020
6021 * elf/rtld.c (process_dl_debug): Mention statistics in help message.
6022
6023 2000-04-17 Jakub Jelinek <jakub@redhat.com>
6024
6025 * Makefile (install): Use slibdir and libdir instead of inst_slibdir
6026 and inst_libdir.
6027
6028 2000-04-17 Ulrich Drepper <drepper@redhat.com>
6029
6030 * manual/intro.texi: Change reference from System Information to
6031 System Management.
6032 * manual/users.texi: Likewise.
6033 * manual/conf.texi: Likewise.
6034 * manual/sysinfo.texi: Document mount, umount, and umount2.
6035 Patch by Bryan Henderson <bryanh@giraffe-data.com>.
6036
6037 2000-04-17 Jakub Jelinek <jakub@redhat.com>
6038
6039 * sysdeps/ieee754/ldbl-128/printf_fphex.c (PRINT_FPHEX_LONG_DOUBLE):
6040 Create wnumstr as well as numstr to support wide character output
6041 correctly.
6042
6043 2000-04-15 Jakub Jelinek <jakub@redhat.com>
6044
6045 * sysdeps/sparc/sparc64/Makefile: Remove sysdep-CFLAGS
6046 modification and move it...
6047 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: ...here.
6048 Add -melf64_sparc switch to $(LD) on sparc64-linux.
6049 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Add -melf32_sparc
6050 switch to $(LD) on sparc-linux.
6051
6052 2000-04-17 Thorsten Kukuk <kukuk@suse.de>
6053
6054 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Remove setresgid
6055 and setresuid from sysdep_routines.
6056
6057 2000-04-17 Ulrich Drepper <drepper@redhat.com>
6058
6059 * manual/Makefile (chapters): Add resource.
6060
6061 * manual/time.texi: Move section on resources to...
6062 * manual/resource.texi: ...here. New file. Document ulimit, vlimit,
6063 and vtimes.
6064 * manual/setjmp.texi: Adjust back reference.
6065 Patch by Bryan Henderson <bryanh@giraffe-data.com>.
6066
6067 * sysdeps/unix/sysv/aix/lxstat64.c: Uncomment STX_LINK and STX_64
6068 definition.
6069 * sysdeps/unix/sysv/aix/lxstat.c: Uncomment STX_LINK definition.
6070 * sysdeps/unix/sysv/aix/kill.c: Add copyright.
6071 * sysdeps/unix/sysv/aix/getuid.c: Define ID_REAL.
6072 * sysdeps/unix/sysv/aix/getgid.c: Define ID_REAL.
6073 * sysdeps/unix/sysv/aix/execve.c: Add copyright.
6074 * sysdeps/unix/sysv/aix/euidaccess.c: Add copyright.
6075 * sysdeps/unix/sysv/aix/close.c: Add copyright.
6076 * sysdeps/unix/sysv/aix/brk.c: Add copyright.
6077 * sysdeps/unix/sysv/aix/bits/errno.h: Add EAFNOSUPPORT.
6078 * sysdeps/unix/sysv/aix/access.c: Add copyright.
6079 * sysdeps/unix/sysv/aix/Makefile: Add some temporary definitions.
6080 * sysdeps/unix/sysv/aix/Implies: New file.
6081 * sysdeps/unix/sysv/aix/Versions: New file.
6082 * sysdeps/unix/sysv/aix/bind.c: New file.
6083 * sysdeps/unix/sysv/aix/bits/ioctl-types.h: New file.
6084 * sysdeps/unix/sysv/aix/bits/ioctls.h: New file.
6085 * sysdeps/unix/sysv/aix/bits/poll.h: New file.
6086 * sysdeps/unix/sysv/aix/bits/termios.h: New file.
6087 * sysdeps/unix/sysv/aix/chdir.c: New file.
6088 * sysdeps/unix/sysv/aix/chmod.c: New file.
6089 * sysdeps/unix/sysv/aix/chroot.c: New file.
6090 * sysdeps/unix/sysv/aix/creat.c: New file.
6091 * sysdeps/unix/sysv/aix/dl-close.c: New file.
6092 * sysdeps/unix/sysv/aix/dl-open.c: New file.
6093 * sysdeps/unix/sysv/aix/dl-sym.c: New file.
6094 * sysdeps/unix/sysv/aix/fchdir.c: New file.
6095 * sysdeps/unix/sysv/aix/fchmod.c: New file.
6096 * sysdeps/unix/sysv/aix/getgroups.c: New file.
6097 * sysdeps/unix/sysv/aix/gethostname.c: New file.
6098 * sysdeps/unix/sysv/aix/getpriority.c: New file.
6099 * sysdeps/unix/sysv/aix/getrlimit.c: New file.
6100 * sysdeps/unix/sysv/aix/getrlimit64.c: New file.
6101 * sysdeps/unix/sysv/aix/getrusage.c: New file.
6102 * sysdeps/unix/sysv/aix/link.c: New file.
6103 * sysdeps/unix/sysv/aix/madvise.c: New file.
6104 * sysdeps/unix/sysv/aix/mkdir.c: New file.
6105 * sysdeps/unix/sysv/aix/mknod.c: New file.
6106 * sysdeps/unix/sysv/aix/mprotect.c: New file.
6107 * sysdeps/unix/sysv/aix/msgctl.c: New file.
6108 * sysdeps/unix/sysv/aix/msgget.c: New file.
6109 * sysdeps/unix/sysv/aix/msgrcv.c: New file.
6110
6111 2000-04-17 Andreas Jaeger <aj@suse.de>
6112
6113 * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Optimize a bit
6114 as suggested by Ulrich Drepper.
6115 (__dl_runtime_resolve): Remove unused variable, initialize sym
6116 directly.
6117 (RTLD_START): Document OFFSET_GP_GOT.
6118 (OFFSET_GP_GOT): New magic value.
6119 (elf_mips_got_from_gpreg): Use OFFSET_GP_GOT.
6120 (elf_machine_got_rel): Only declare strtab if needed.
6121 (elf_machine_relplt): Removed, it's not needed.
6122 (_dl_runtime_resolve): Fix \n for a comment, safe gp and not pc.
6123
6124 * sysdeps/mips/add_n.S: Add newline at EOF.
6125 * sysdeps/mips/rshift.S: Likewise.
6126 * sysdeps/mips/mul_1.S: Likewise.
6127 * sysdeps/mips/lshift.S: Likewise.
6128 * sysdeps/mips/addmul_1.S: Likewise.
6129
6130 2000-04-17 Ulrich Drepper <drepper@redhat.com>
6131
6132 * sysdeps/powerpc/fpu/s_isnan.c: Pretty printing.
6133
6134 * elf/dl-reloc.c (_dl_relocate_object): Add more __builtin_expect.
6135 * elf/dl-lookup.c: Likewise.
6136 * elf/dl-init.c (_dl_init): Likewise.
6137 * elf/dl-fini.c (_dl_fini): Likewise.
6138 * elf/dl-deps.c (_dl_map_object_deps): Likewise.
6139 * elf/dl-close.c (_dl_close): Likewise.
6140 * elf/rtld.c (_dl_start_final): Likewise.
6141
6142 * elf/dl-lookup.c (add_dependency): Correct __builtin_expect use.
6143
6144 2000-04-15 Ulrich Drepper <drepper@redhat.com>
6145
6146 * csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and
6147 only fall back on using Linux.
6148
6149 * elf/dl-version.c (_dl_check_map_versions): New argument trace_mode.
6150 Before testing versions check that we actually loaded the object
6151 and whether we are in trace mode. If not loaded during tracing don't
6152 test versions in this object.
6153 (_dl_check_all_versions): Take new parameter and pass to
6154 _dl_check_map_versions.
6155 * sysdeps/generic/ldsodefs.h: Update prototypes for
6156 _dl_check_all_versions and _dl_check_map_versions.
6157 * elf/rtld.c (struct version_check_args): Add dotrace.
6158 (version_check_doit): Pass args->dotrace to _dl_check_all_versions.
6159 (dl_main): Pass info about trace mode to version_check_doit.
6160 * elf/dl-open.c (dl_open_worker): Pass zero as new argument to
6161 _dl_check_all_versions.
6162
6163 * manual/users.texi (XPG Functions): Document utmpxname, getutmp,
6164 and getutmpx.
6165 Patch by Bryan Henderson <bryanh@giraffe-data.com>.
6166
6167 * manual/argp.texi: Document index parameter of argp_parse.
6168 Fix typo.
6169 Reported by Andrew Schulman <SCHULMAN.ANDREW@epamail.epa.gov>.
6170
6171 2000-04-14 Andreas Jaeger <aj@suse.de>
6172
6173 * sysdeps/unix/sysv/linux/shm_open.c: Include linux_fsinfo for
6174 SHMFS_SUPER_MAGIC. Remove definition of SHMFS_SUPER_MAGIC.
6175
6176 * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC): Added.
6177
6178 2000-04-15 Ulrich Drepper <drepper@redhat.com>
6179
6180 * sysdeps/unix/sysv/linux/alpha/adjtime.c: Fix typo in
6181 compat_symbol call for old adjtime.
6182
6183 * sysdeps/alpha/dl-machine.h (RTLD_START): Rewrite for new init
6184 function interface. Patch by Richard Henderson <rth@cygnus.com>.
6185
6186 * posix/Makefile (headers): Add spawn.h.
6187 (distribute): Add spawn_int.h.
6188 (routines): Add spawn_faction_init, spawn_faction_destroy,
6189 spawn_faction_addclose, spawn_faction_addopen, spawn_faction_adddup2,
6190 spawnattr_init, spawnattr_destroy, spawnattr_getdefault,
6191 spawnattr_setdefault, spawnattr_getflags, spawnattr_setflags,
6192 spawnattr_getpgroup, spawnattr_setpgroup, spawn, spawnp, and spawni.
6193 * posix/Versions [libc] (GLIBC_2.2): Add posix_spawn_file_actions_init,
6194 posix_spawn_file_actions_destroy, posix_spawn_file_actions_addclose,
6195 posix_spawn_file_actions_addopen, posix_spawn_file_actions_adddup2,
6196 posix_spawnattr_init, posix_spawnattr_destroy,
6197 posix_spawnattr_getdefault, posix_spawnattr_setdefault,
6198 posix_spawnattr_getflags, posix_spawnattr_setflags,
6199 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup, posix_spawn,
6200 and posix_spawnp.
6201 * posix/spawn.c: New file.
6202 * posix/spawn.h: New file.
6203 * posix/spawn_faction_addclose.c: New file.
6204 * posix/spawn_faction_adddup2.c: New file.
6205 * posix/spawn_faction_addopen.c: New file.
6206 * posix/spawn_faction_destroy.c: New file.
6207 * posix/spawn_faction_init.c: New file.
6208 * posix/spawn_int.h: New file.
6209 * posix/spawnattr_destroy.c: New file.
6210 * posix/spawnattr_getdefault.c: New file.
6211 * posix/spawnattr_getflags.c: New file.
6212 * posix/spawnattr_getpgroup.c: New file.
6213 * posix/spawnattr_getschedparam.c: New file.
6214 * posix/spawnattr_getschedpolicy.c: New file.
6215 * posix/spawnattr_getsigmask.c: New file.
6216 * posix/spawnattr_init.c: New file.
6217 * posix/spawnattr_setdefault.c: New file.
6218 * posix/spawnattr_setflags.c: New file.
6219 * posix/spawnattr_setpgroup.c: New file.
6220 * posix/spawnattr_setschedparam.c: New file.
6221 * posix/spawnattr_setschedpolicy.c: New file.
6222 * posix/spawnattr_setsigmask.c: New file.
6223 * posix/spawni.c: New file.
6224 * posix/spawnp.c: New file.
6225
6226 * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_SPAWN.
6227 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
6228
6229 2000-04-14 Ulrich Drepper <drepper@redhat.com>
6230
6231 * malloc/Versions [libc] (GLIBC_2.2): Add posix_memalign.
6232 * malloc/malloc.c: Implement posix_memalign for glibc.
6233 * include/stdlib.h: Add prototype for __posix_memalign.
6234 * stdlib/stdlib.h: Add prototype for posix_memalign.
6235
6236 2000-04-14 Andreas Jaeger <aj@suse.de>
6237
6238 * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Initialize
6239 symidx correctly.
6240 (elf_machine_got_rel): Cast sym correctly.
6241
6242 * sysdeps/mips/add_n.S: Use __PIC__, add end directive.
6243 * sysdeps/mips/addmul_1.S: Likewise.
6244 * sysdeps/mips/lshift.S: Likewise.
6245 * sysdeps/mips/mul_1.S: Likewise.
6246 * sysdeps/mips/rshift.S: Likewise.
6247 * sysdeps/mips/sub_n.S: Likewise.
6248 * sysdeps/mips/submul_1.S: Likewise.
6249
6250 * stdlib/stdlib.h: Fix typo in comment.
6251
6252 * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
6253 2.2 for libdl, ld and libm.
6254
6255 * sysdeps/generic/madvise.c: Fix typos.
6256
6257 * sysdeps/unix/sysv/linux/mips/clone.S (error): Use __PIC__.
6258
6259 * sysdeps/mips/bits/setjmp.h: Remove K&R compatibility.
6260
6261 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Silence gcc
6262 warnings.
6263
6264 2000-04-14 Ulrich Drepper <drepper@redhat.com>
6265
6266 * include/sys/statfs.h: Add prototypes for __statfs64 and __fstatfs64.
6267 * sysdeps/generic/fstatfs64.c (__fstatfs64): Renamed to fstatfs64.
6268 Make old name weak alias.
6269 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
6270 * sysdeps/generic/statfs64.c (__statfs64): Renamed to statfs64.
6271 Make old name weak alias.
6272 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
6273
6274 * io/Makefile (routines): Add posix_fadvise, posix_fadvise64,
6275 posix_fallocate, and posix_fallocate64.
6276 * io/Versions [libc] (GLIBC_2.2): Add posix_fadvise, posix_fadvise64,
6277 posix_fallocate, and posix_fallocate64.
6278 * io/fcntl.h: Declare posix_fadvise, posix_fadvise64,
6279 posix_fallocate, and posix_fallocate64.
6280 * sysdeps/generic/fadvise.c: New file.
6281 * sysdeps/generic/fadvise64.c: New file.
6282 * sysdeps/generic/fallocate.c: New file.
6283 * sysdeps/generic/fallocate64.c: New file.
6284 * sysdeps/posix/fallocate.c: New file.
6285 * sysdeps/posix/fallocate64.c: New file.
6286 * sysdeps/generic/bits/fcntl.h: Define POSIX_FADV_NORMAL,
6287 POSIX_FADV_RANDOM, POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED,
6288 POSIX_FADV_DONTNEED, and POSIX_FADV_NOREUSE.
6289 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
6290 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6291 * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
6292 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
6293 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
6294 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
6295
6296 * sysdeps/generic/madvise.c (__madvise): Renamed to posix_madvise.
6297 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6298
6299 2000-04-13 Ulrich Drepper <drepper@redhat.com>
6300
6301 * misc/Versions [libc] (GLIBC_2.2): Add posix_madvice.
6302 * misc/sys/mman.h (posix_madvise): Add prototype.
6303 * sysdeps/generic/madvise.c (madvise): Renamed to __madvise. Make
6304 old name and posix_madvise weak aliases.
6305 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6306 * sysdeps/generic/bits/mman.h: Add POSIX_MADV_* constants.
6307 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
6308 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
6309 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
6310 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
6311 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
6312
6313 2000-04-13 Andreas Jaeger <aj@suse.de>
6314
6315 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Handle symbol
6316 versioning.
6317 (elf_machine_got_rel): Only add runtime display if needed.
6318 (elf_machine_got_rel): Handle symbol versioning.
6319
6320 2000-04-13 Andreas Jaeger <aj@suse.de>
6321
6322 * sysdeps/unix/sysv/linux/mips/clone.S: Fix function.
6323
6324 * sysdeps/unix/mips/pipe.S: Reorder instructions since .reorder is
6325 default.
6326
6327 * sysdeps/mips/__longjmp.c (__longjmp): Use $25 to fix problems
6328 with some applications.
6329 Patches by Ralf Baechle <ralf@uni-koblenz.de>.
6330
6331 * sysdeps/mips/bsd-setjmp.S: Use __PIC__.
6332 * sysdeps/mips/bsd-_setjmp.S: Likewise.
6333 * sysdeps/mips/setjmp.S: Likewise.
6334
6335 * sysdeps/unix/sysv/linux/mips/pipe.S: New file.
6336
6337 2000-04-13 Ulrich Drepper <drepper@redhat.com>
6338
6339 * posix/globtest.sh: Work around inconsistency with expanding ~/
6340 in shell (PR libc/1690). Reported by patsmith@pobox.com.
6341
6342 2000-04-12 Ulrich Drepper <drepper@redhat.com>
6343
6344 * posix/getconf.c: Add support for many more POSIX options.
6345 * sysdeps/posix/sysconf.c: Likewise.
6346 * sysdeps/generic/bits/confname.h: Add many more POSIX options.
6347 * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_REGEXP and
6348 _POSIX_SHELL.
6349 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
6350 * sysdeps/unix/sysv/linux/i386/bits/time.h: Rename __CLOCK_HIGHRES to
6351 CLOCK_PROCESS_CPUTIME_ID. Add define CLOCK_MONOTONIC and
6352 CLOCK_THREAD_CPUTIME_ID.
6353 * sysdeps/unix/i386/clock_getcpuclockid.c: Set *clock_id to
6354 CLOCK_PROCESS_CPUTIME_ID.
6355 * sysdeps/unix/i386/i586/clock_getres.c: Change for renaming of
6356 __CLOCK_HIGHRES to CLOCK_PROCESS_CPUTIME_ID. Handle
6357 CLOCK_THREAD_CPUTIME_ID and CLOCK_MONOTONIC the same.
6358 * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
6359
6360 * malloc/Makefile (tests): Add tst-calloc.
6361 * malloc/tst-calloc.c: New file.
6362
6363 * sysdeps/arm/libm-test-ulps: New file.
6364
6365 * malloc/malloc.c: Undo all of today's changes.
6366
6367 * locale/programs/locale.c (show_info): Don't try to look into
6368 data for LC_ALL (there is none).
6369
6370 * malloc/malloc.c (cALLOc): Clear only what the user asked for and
6371 avoid writing over boundary.
6372 Patch by Greg McGary <gkm@eng.ascend.com>.
6373
6374 * sysdeps/arm/memprof.h: New file.
6375
6376 2000-04-12 Andreas Jaeger <aj@suse.de>
6377
6378 * sysdeps/unix/i386/i586/clock_gettime.c: Fix typo.
6379
6380 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include <string.h>
6381 for memmem declaration.
6382
6383 2000-04-12 Ulrich Drepper <drepper@redhat.com>
6384
6385 * sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval
6386 to -1.
6387 * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
6388
6389 * libio/iopopen.c (_IO_new_proc_open): Close pipes in case the
6390 mode is invalid.
6391 * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
6392 Patch by Bart Veer <bartv@redhat.com>.
6393
6394 * sysdeps/arm/dl-machine.h (RTLD_START): Rewrite for new init
6395 function interface.
6396
6397 2000-04-11 Andreas Jaeger <aj@suse.de>
6398
6399 * sysdeps/mips/dl-machine.h: Update some comments.
6400 (ELF_MACHINE_ALIGN_MASK): Removed, it's not needed.
6401
6402 2000-04-11 Ulrich Drepper <drepper@redhat.com>
6403
6404 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
6405 _POSIX_SHARED_MEMORY_OBJECTS.
6406
6407 * rt/Makefile (tests): Add tst-shm.
6408 Add rules to generate tst-shm.
6409 * rt/tst-shm.c: New file.
6410
6411 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Set FD_CLOEXEC
6412 for descriptor.
6413
6414 * misc/sys/mman.h: Add prototypes for shm_open and shm_unlink.
6415 * rt/Makefile (librt-routines): Add shm_open and shm_unlink.
6416 * rt/Versions [librt] (GLIBC_2.2): Add shm_open and shm_unlink.
6417 * sysdeps/generic/shm_open.c: New file.
6418 * sysdeps/generic/shm_unlink.c: New file.
6419 * sysdeps/unix/sysv/linux/shm_open.c: New file.
6420 * sysdeps/unix/sysv/linux/shm_unlink.c: New file.
6421 * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.2): Export
6422 __endmntent, __getmntent_r, __setmntent, and __statfs.
6423
6424 * libio/vasprintf.c (_IO_vasprintf): Try to avoid memory
6425 fragmentation by allocating new memory at the end instead of
6426 reallocating.
6427
6428 * posix/globtest.sh: Fix last change.
6429
6430 2000-04-10 Philip Blundell <philb@gnu.org>
6431
6432 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_JOIN_GROUP,
6433 IPV6_LEAVE_GROUP): New names for IPV6_ADD_MEMBERSHIP,
6434 IPV6_DROP_MEMBERSHIP.
6435 * sysdeps/generic/bits/in.h (IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP):
6436 Likewise.
6437
6438 2000-04-11 Ulrich Drepper <drepper@redhat.com>
6439
6440 * elf/readlib (process_file): Close streams in case of an error.
6441
6442 2000-04-09 Andreas Jaeger <aj@suse.de>
6443
6444 * elf/readlib.c (process_file): Check if file is big enough to
6445 contain aout and ELF headers.
6446 Reported by Reinhard Moosauer <RMoosauer@steinecker.com>.
6447
6448 2000-04-10 Jes Sorensen <Jes.Sorensen@cern.ch>
6449
6450 * elf/dl-fini.c: Include alloca.h to get proper prototype for alloca().
6451
6452 2000-04-11 Ulrich Drepper <drepper@redhat.com>
6453
6454 * test-skeleton.c (main): If STDOUT_UNBUFFERED is defined, make stdout
6455 stream unbuffered.
6456 * rt/Makefile (tests): Add tst-clock.
6457 Add rules to build tst-clock.
6458 * rt/tst-clock.c: New file.
6459 * sysdeps/unix/i386/i586/clock_getres.c: Correct expression to decide
6460 about initialization of nsec.
6461 * sysdeps/unix/i386/i586/clock_gettime.c: Correct expression to decide
6462 about initialization of freq. Set retval to zero if successful.
6463 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Cache result.
6464
6465 2000-04-10 Ulrich Drepper <drepper@redhat.com>
6466
6467 * Versions.def (librt): Add GLIBC_2.2.
6468 * rt/Makefile (librt-routines): Add get_clockfreq, clock_getcpuclockid,
6469 clock_getres, clock_gettime, clock_settime, timer_create, timer_delete,
6470 timer_getoverr, timer_gettime, and timer_settime.
6471 * rt/Versions [librt] (GLIBC_2.2): Add clock_getres, clock_gettime,
6472 clock_settime, timer_create, timer_delete, timer_getoverrun,
6473 timer_gettime, and timer_settime.
6474 * sysdeps/generic/clock_getcpuclockid.c: New file.
6475 * sysdeps/generic/get_clockfreq.c: New file.
6476 * sysdeps/unix/i386/clock_getcpuclockid.c: New file.
6477 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: New file.
6478 * sysdeps/mach/hurd/i386/bits/time.h: New file.
6479 * sysdeps/unix/i386/i586/clock_getres.c: New file.
6480 * sysdeps/unix/i386/i586/clock_gettime.c: New file.
6481 * sysdeps/unix/i386/i686/Implies: New file.
6482 * sysdpes/unix/sysv/linux/i386/bits/time.h: New file.
6483 * time/Makefile (routines): Move clock_getres, clock_gettime,
6484 clock_settime, timer_create, timer_delete, timer_getoverr,
6485 timer_gettime, and timer_settime to rt/Makefile.
6486 * time/Versions [libc] (GLIBC_2.2): Remove clock_getres, clock_gettime,
6487 clock_settime, timer_create, timer_delete, timer_getoverrun,
6488 timer_gettime, and timer_settime.
6489 * time/time.h: Define pid_t. Add prototype for clock_getcpuclockid.
6490
6491 * sysdeps/mach/hurd/bits/time.h: Drop K&R compatibility. Use __const__
6492 and not const as attribute name.
6493
6494 2000-04-10 Thorsten Kukuk <kukuk@suse.de>
6495
6496 * elf/cache.c (save_cache): Make sure /etc/ld.so.cache is mode 644.
6497
6498 2000-04-10 Andreas Schwab <schwab@suse.de>
6499
6500 * posix/globtest.sh: Skip tests that depend on unreadable
6501 directories if run as root.
6502
6503 2000-04-10 Ulrich Drepper <drepper@redhat.com>
6504
6505 * sysdeps/unix/clock_settime.c (clock_settime): Test tv_nsec value
6506 for correct range. From code by Kaz Kylheku <kaz@ashi.footprints.net>.
6507
6508 2000-04-09 Ulrich Drepper <drepper@redhat.com>
6509
6510 * sysdeps/unix/clock_gettime.c: New file.
6511 * sysdeps/unix/clock_settime.c: New file.
6512 * sysdeps/posix/clock_getres.c: New file.
6513
6514 * conform/data/ftw.h-data: Add allow-header sys/stat.h.
6515
6516 * sysdeps/unix/sysv/linux/getdents.c (__getdents): Avoid initial
6517 lseek call be passing in a buffer which never allow a successful
6518 first getdents syscall if not at leas the initial entry can be
6519 stored in the user buffer.
6520
6521 * localedata/Makefile: Add rules to clean up directories created by
6522 new strfmon tests.
6523
6524 2000-04-09 Geoff Clare <gwc@unisoft.com>
6525
6526 * localedata/tst-fmon.data: Added new tests for strfmon()
6527 using test locales with all combinations of cs_precedes,
6528 sign_posn and sep_by_space.
6529 * localedata/tst-fmon.sh: Updated to support the new tests.
6530 * localedata/tst-fmon-locales/tstfmon_n01y12: New file containing
6531 the localedef source for the new strfmon() test locale.
6532 * localedata/tst-fmon-locales/tstfmon_n02n40: Likewise.
6533 * localedata/tst-fmon-locales/tstfmon_n10y31: Likewise.
6534 * localedata/tst-fmon-locales/tstfmon_n11y41: Likewise.
6535 * localedata/tst-fmon-locales/tstfmon_n12y11: Likewise.
6536 * localedata/tst-fmon-locales/tstfmon_n20n32: Likewise.
6537 * localedata/tst-fmon-locales/tstfmon_n30y20: Likewise.
6538 * localedata/tst-fmon-locales/tstfmon_n41n00: Likewise.
6539 * localedata/tst-fmon-locales/tstfmon_y01y10: Likewise.
6540 * localedata/tst-fmon-locales/tstfmon_y02n22: Likewise.
6541 * localedata/tst-fmon-locales/tstfmon_y22n42: Likewise.
6542 * localedata/tst-fmon-locales/tstfmon_y30y21: Likewise.
6543 * localedata/tst-fmon-locales/tstfmon_y32n31: Likewise.
6544 * localedata/tst-fmon-locales/tstfmon_y40y00: Likewise.
6545 * localedata/tst-fmon-locales/tstfmon_y42n21: Likewise.
6546
6547 * stdlib/strfmon.c: Correct problems with missing or extra
6548 spaces for unusual combinations of sign_posn and sep_by_space.
6549 Improved left-precision alignment code.
6550
6551 2000-04-07 Andreas Jaeger <aj@suse.de>
6552
6553 * posix/Makefile (CFLAGS-regex.c): Remove DEBUG.
6554
6555 2000-04-10 Andreas Jaeger <aj@suse.de>
6556
6557 * intl/Makefile: Don't run do-gettext-test when cross-compiling.
6558
6559 2000-04-09 Ulrich Drepper <drepper@redhat.com>
6560
6561 Implement handling of restartable conversion functions according to
6562 ISO C.
6563 * iconv/gconv.h (__gconv_fct): Add additional parameter.
6564 * iconv/gconv_int.h (__BUILTIN_TRANS): Likewise.
6565 * iconv/gconv.c: Pass additional parameter to conversion function.
6566 * iconv/gconv_simple.c (internal_ucs4_loop_single): New function.
6567 (internal_ucs4le_loop_single): New function.
6568 (__gconv_transform_ascii_internal): Define ONE_DIRECTION.
6569 (__gconv_transform_internal_ascii): Likewise.
6570 (__gconv_transform_internal_utf8): Likewise.
6571 (__gconv_transform_utf8_internal): Likewise.
6572 (__gconv_transform_ucs2_internal): Likewise.
6573 (__gconv_transform_internal_ucs2): Likewise.
6574 (__gconv_transform_ucs2reverse_internal): Likewise.
6575 (__gconv_transform_internal_ucs2reverse): Likewise.
6576 (internal_ucs4le_loop_unaligned): Before return
6577 __GCONV_INCOMPLETE_INPUT check that the remaining bytes really form
6578 a valid character. Otherwise return __GCONV_ILLEGAL_INPUT.
6579 (__gconv_transform_utf8_internal): Define STORE_REST and UNPACK_BYTES.
6580 * iconv/loop.c: Fit in definition of function to convert one character
6581 for processing of left-over bytes from the state object.
6582 * iconv/skeleton.c (gconv): Rename inbuf to inptrp and inbufend to
6583 inend to match names in loop functions.
6584 (RESET_INPUT_BUFFER): Change apprpriately.
6585 (gconv): If needed, call function to process bytes from the state
6586 object. Similar at the end: store left over bytes if input is
6587 incomplete.
6588 Take extra argument and add new argument to all calls of the
6589 conversion function.
6590 * iconvdata/iso-2022-cn.c: Adjust numeric values used to store
6591 information in the state object to not conflict with length count.
6592 * iconvdata/iso-2022-jp.c: Likewise.
6593 * iconvdata/iso-2022-kr.c: Likewise.
6594 * iconvdata/unicode.c: Adjust for change change in parameters of
6595 skeleton function.
6596 * iconvdata/utf-16.c: Likewise.
6597 * libio/iofwide.c: Add new parameter to all calls of conversion
6598 function.
6599 * wcsmbs/btowc.c: Likewise.
6600 * wcsmbs/mbrtowc.c: Likewise.
6601 * wcsmbs/mbsnrtowcs.c: Likewise.
6602 * wcsmbs/mbsrtowcs.c: Likewise.
6603 * wcsmbs/wcrtomb.c: Likewise.
6604 * wcsmbs/wcsnrtombs.c: Likewise.
6605 * wcsmbs/wcsrtombs.c: Likewise.
6606 * wcsmbs/wctob.c: Likewise.
6607
6608 * iconvdata/gbgbk.c: Always define MAX_NEEDED_OUTPUT and
6609 MAX_NEEDED_INPUT.
6610
6611 2000-04-07 Andreas Jaeger <aj@suse.de>
6612
6613 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Updated for
6614 newer kernels.
6615
6616 2000-04-07 Ulrich Drepper <drepper@redhat.com>
6617
6618 * wcsmbs/wchar.h (__mbstate_t): Rename elements. Make __value
6619 element a union to allow byte access.
6620 * iconvdata/iso-2022-cn.c: Adjust for change of element name in
6621 mbstate_t.
6622 * iconvdata/iso-2022-jp.c: Likewise.
6623 * iconvdata/iso-2022-kr.c: Likewise.
6624 * wcsmbs/mbsinit.c: Likewise.
6625 * stdlib/mblen.c: Likewise.
6626 * stdio-common/printf-parse.h: Likewise.
6627
6628 2000-04-06 Ulrich Drepper <drepper@redhat.com>
6629
6630 * sysdeps/unix/sysv/linux/getdents.c (__getdents): The Linux
6631 kernel does not allow relative seeks on descriptors associated
6632 with directories. Go back to get the position in the directory
6633 every time we enter the function. Return -1 and set errno if one
6634 entry could be read from the kernel but does not fit into the
6635 buffer passed in by the user.
6636
6637 * locale/programs/charmap.c (charmap_new_char): Add parameter step.
6638 Support ..(2).. ellipsis.
6639 (parse_charmap): Recognize ..(2).. etc and pass step down.
6640 Correctly generate names for UCS4 characters.
6641
6642 * locale/programs/ld-ctype.c (struct translit_ignore_t): Add step.
6643 (ctype_finish): We know the wide character value for <SP>,
6644 don't search.
6645 (charclass_symbolic_ellipsis): Handle ..(2).. ellipsis.
6646 (charclass_ucs4_ellipsis): Likewise.
6647 (read_translit_ignore_entry): Store ellipsis step.
6648 (ctype_read): Recognize ..(2).. etc and pass step down.
6649
6650 * locale/programs/linereader.c (lr_token): When seeing comment
6651 character ignore only rest of line in sources but stop at escaped
6652 newline.
6653 Recognize ..(2).. and ....(2).....
6654
6655 * locale/programs/locfile-token.h (enum token_t): Add tok_ellipsis2_2
6656 and tok_ellipsis4_2.
6657
6658 2000-04-06 Andreas Jaeger <aj@suse.de>
6659
6660 * sysdeps/unix/sysv/linux/alpha/Dist: init-first.h has been
6661 removed, remove it here also.
6662 * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
6663 * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
6664 * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
6665 * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
6666
6667 2000-04-06 Jakub Jelinek <jakub@redhat.com>
6668
6669 * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Don't
6670 include bits/sigcontext.h.
6671 * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
6672
6673 2000-04-06 Ulrich Drepper <drepper@redhat.com>
6674
6675 * locale/programs/ld-collate.c (collate_read): Handle ellipsis in
6676 collation symbol definition. Value in quivalence definition must
6677 be defined, don't check that it is not.
6678
6679 * locale/programs/charmap.c (parse_charmap): Recognize <Uxxxx>
6680 values as character names.
6681
6682 * locale/programs/ld-ctype.c (get_character): Handle missing
6683 repertoire map correctly.
6684
6685 2000-04-05 Cristian Gafton <gafton@redhat.com>
6686
6687 * ctype/ctype.h (__isctype_l): Define even if not __OPTIMIZE__
6688 because it is used in generic code.
6689 * wctype/wctrans.c: Define __ctype32_toupper and __ctype32_tolower.
6690 * wcsmbs/wcwidth.h: Declare __ctype32_b.
6691 * intl/gettext.c: Include <locale.h>.
6692 * intl/ngettext.c: Likewise.
6693
6694 2000-04-05 Jakub Jelinek <jakub@redhat.com>
6695
6696 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6, inet_ntop): Use
6697 socklen_t type for size.
6698 * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Rewrite for new
6699 init function interface.
6700 * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
6701 * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Don't include
6702 sys/ucontext.h.
6703 (__jmp_buf): Declare the whole type structure here, don't use
6704 ucontext.
6705
6706 2000-04-05 Ulrich Drepper <drepper@redhat.com>
6707
6708 * iconv/skeleton.c (put16u): Fix typo.
6709 Reported by Bruno Haible <haible@ilog.fr>.
6710
6711 * sysdeps/unix/sysv/linux/alpha/init-first.h: Not needed anymore.
6712 * sysdeps/unix/sysv/linux/arm/init-first.h: Likewise.
6713 * sysdeps/unix/sysv/linux/mips/init-first.h: Likewise.
6714 * sysdeps/unix/sysv/linux/powerpc/init-first.h: Likewise.
6715 * sysdeps/unix/sysv/linux/sparc/sparc32/init-first.h: Likewise.
6716 * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
6717
6718 * sysdeps/unix/sysv/linux/Dist: Remove getresuid and getresgid.
6719 * Makefile (distribute): Add abi-versions.awk and
6720 firstversions.awk.
6721 Patches by Torsten Duwe <duwe@caldera.de>.
6722
6723 2000-04-05 Andreas Schwab <schwab@suse.de>
6724
6725 * nss/Makefile ($(objpfx)makedb): Move $(libdl) after db-open.o.
6726
6727 2000-04-05 Andreas Schwab <schwab@suse.de>
6728
6729 * sysdeps/m68k/dl-machine.h (RTLD_START): Readd _dl_start_user
6730 entry point, used on Hurd.
6731
6732 2000-04-04 Andreas Jaeger <aj@suse.de>
6733
6734 * intl/Makefile: Only run the gettext test with shared libraries.
6735
6736 2000-03-16 Mark Kettenis <kettenis@gnu.org>
6737
6738 * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
6739 Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
6740
6741 2000-04-05 Roland McGrath <roland@baalperazim.frob.com>
6742
6743 * Makeconfig: Undo last change.
6744 * configure.in: If --disable-shared was given, don't set VERSIONING,
6745 don't define DO_VERSIONING, and don't give scare warning for no
6746 versioning.
6747 * configure: Regenerated.
6748
6749 2000-04-04 Roland McGrath <roland@baalperazim.frob.com>
6750
6751 * Makeconfig [$(build-shared) != yes] (versioning): Set to `no'.
6752
6753 2000-04-04 Andreas Jaeger <aj@suse.de>
6754
6755 * sysdeps/generic/fgetexcptflg.c: Use shlib-compat macros.
6756
6757 2000-04-04 Ulrich Drepper <drepper@redhat.com>
6758
6759 * elf/dl-runtime.c (fixup): Correct handling of symbols marked
6760 STV_HIDDEN and STV_INTERNAL during lookup.
6761 (profile_fixup): Likewise.
6762 * elf/dl-reloc.c (RESOLVE): Likewise.
6763
6764 * iconv/skeleton.c (FUNCTION_NAME): Reorder initialization of
6765 unaligned so that it compiles for system which need unaligned
6766 access handling.
6767
6768 2000-04-04 Andreas Schwab <schwab@suse.de>
6769
6770 * elf/cache.c (print_entry): Only look at the type field when
6771 printing the type.
6772
6773 2000-04-04 Andreas Schwab <schwab@suse.de>
6774
6775 * iconvdata/big5.c (BODY): Fix typo.
6776
6777 2000-04-04 Andreas Schwab <schwab@suse.de>
6778
6779 * sysdeps/m68k/dl-machine.h (RTLD_START): Rewrite for new init
6780 function interface. Remove unused _dl_start_user entry point.
6781
6782 2000-04-03 Andreas Jaeger <aj@suse.de>
6783
6784 * include/arpa/inet.h (__inet_aton): Add protoype.
6785
6786 2000-04-01 Andreas Jaeger <aj@suse.de>
6787
6788 * sysdeps/mach/hurd/mips/init-first.c: Use SHARED instead of PIC.
6789
6790 * sysdeps/unix/mips/sysdep.h: Use __PIC__ instead of PIC.
6791 * sysdeps/mach/mips/thread_state.h: Likewise.
6792
6793 * sysdeps/generic/fclrexcpt.c: Use shlib-compat macros.
6794 * sysdeps/generic/fegetenv.c: Likewise.
6795 * sysdeps/generic/fesetenv.c: Likewise.
6796 * sysdeps/generic/feupdateenv.c: Likewise.
6797 * sysdeps/generic/fraiseexcpt.c: Likewise.
6798 * sysdeps/generic/fsetexcptflg.c: Likewise.
6799 * sysdeps/unix/sysv/linux/alpha/glob.c: Likewise.
6800 * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
6801 * sysdeps/unix/sysv/linux/errlist.c: Likewise.
6802 * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
6803
6804 2000-04-02 H.J. Lu <hjl@gnu.org>
6805
6806 * elf/ldconfig.h (FLAG_IA64_LIB64): New. Defined.
6807
6808 2000-04-03 Ulrich Drepper <drepper@redhat.com>
6809
6810 * elf/dl-load.c (_dl_dst_substitute): Pretty print comment.
6811 (add_name_to_object): Add cast in malloc call.
6812 (fillin_rpath): Optimize loop to initialize ->status a bit.
6813
6814 * sysdeps/i386/dl-machine.h: Undo last change.
6815 * sysdeps/mach/hurd/i386/dl-machine.h (RTLD_START_SPECIAL_INIT):
6816 Restore %edx register after call here.
6817
6818 * sysdeps/arm/atomicity.h: New file.
6819 Contributed by Jesper Skov <jskov@redhat.com>.
6820
6821 2000-04-03 Roland McGrath <roland@baalperazim.frob.com>
6822
6823 * Makeconfig (preprocess-versions): Undo last change.
6824 Instead, pass -I$(common-objdir) -I$(..)include instead of $(CPPFLAGS).
6825
6826 * sysdeps/mach/hurd/i386/init-first.c (init): Don't set __environ
6827 here, before we might move the stack.
6828 (posixland_init): Set __libc_argc, __libc_argc, and __environ here.
6829 (init1): And not here.
6830
6831 * sysdeps/i386/dl-machine.h (RTLD_START): Fix code broken by last
6832 change, to restore argc value in call-clobbered register after
6833 RTLD_START_SPECIAL_INIT, which will contain a call.
6834
6835 * elf/dl-deps.c (_dl_map_object_deps): Fix size calculations for
6836 allocating and initializing L->l_initfini.
6837
6838 * resolv/Makefile (headers): Add bits/netdb.h, so it gets installed.
6839
6840 2000-04-03 Ulrich Drepper <drepper@redhat.com>
6841
6842 * elf/dl-load.c (_dl_init_paths): Use (void*) -1 to signal non-existing
6843 RUNPATH, RPATH, and LD_LIBRARY_PATH.
6844 (open_path): Change type of fourth parameter. Make pointer to array
6845 of pointers. Create variable dirs with original type.
6846 Track whether any directory for the object exists and if not,
6847 change *DIRSP to (void*) -1 to signal there is no such search path.
6848 (_dl_map_object): Change all calls of open_path.
6849 Rewrite decompose_rpath calls.
6850
6851 2000-03-31 Andreas Schwab <schwab@suse.de>
6852
6853 * string/strfry.c: Declare STATE as array of char instead of int
6854 and do not initialize it (done by initstate_r). Pass correct
6855 size.
6856
6857 2000-04-03 Ulrich Drepper <drepper@redhat.com>
6858
6859 * sysdeps/generic/ldsodefs.h: Fix typo in comment.
6860
6861 * sysdeps/i386/dl-machine.h (RTLD_START): Squeeze one more
6862 instruction out of the code.
6863
6864 2000-04-02 Ulrich Drepper <drepper@redhat.com>
6865
6866 * elf/dl-fini.c (_dl_fini): Increment j counter after swapping in
6867 element at this position.
6868
6869 * elf/Versions [ld.so] (GLIBC_2.2): Export _dl_load_lock.
6870 * elf/link.h (struct link_map): Add l_reldepsmax, l_reldepsact, and
6871 l_reldeps elements.
6872 * elf/dl-lookup.c (add_dependency): New function.
6873 (_dl_lookup_symbol): Use it whenever symbol was found in a global,
6874 dynamically loaded object.
6875 (_dl_lookup_symbol_skip): Likewise.
6876 (_dl_lookup_versioned_symbol): Likewise.
6877 (_dl_lookup_versioned_symbol_skip): Likewise.
6878 * elf/dl-open.c: Don't define _dl_load_lock here...
6879 * elf/rtld.c: ...but here...
6880 * elf/dl-support.c: ...and here.
6881 * elf/dl-close.c (_dl_close): Close also dependent objects introduce
6882 through relocation.
6883 * elf/dl-fini.c (_dl_fini): Also take dependencies introduced through
6884 relocations.
6885 * dlfcn/Makefile (glrefmain.out): Test is not expected to fail
6886 anymore.
6887 * dlfcn/glrefmain.c: Add one more debug message.
6888
6889 * Makeconfig (preprocess-versions): Don't add $(CPPFLAGS) to compiler
6890 command line.
6891 * Makerules (sysd-versions): Use ( ) instead of { }.
6892
6893 * elf/dl-load.c: Use __builtin_expect to signal that compiler should
6894 optimize for the non-debugging case.
6895 * elf/dl-lookup.c: Likewise.
6896 * sysdeps/generic/libc-start.c: Likewise.
6897
6898 2000-04-02 Roland McGrath <roland@baalperazim.frob.com>
6899
6900 * sysdeps/mach/hurd/i386/init-first.c: Replace PIC #ifdefs with SHARED.
6901 (init1): Don't initialize __environ here, since init already does it.
6902 (first_init): New function, broken out of _init.
6903 (_hurd_stack_setup): Use it.
6904 [SHARED] (_dl_init_first): New function, renamed from old _init.
6905 (init1) [SHARED]: Don't call posixland_init here.
6906 (posixland_init): Take ENVP arg, so signature is usual for initializer.
6907 [SHARED] (_init): Define as alias for posixland_init.
6908 [! SHARED] (__libc_first_init): Define as alias for posixland_init.
6909 * sysdeps/i386/dl-machine.h (RTLD_START): Insert the macro
6910 RTLD_START_SPECIAL_INIT before calling initializers.
6911 (RTLD_START_SPECIAL_INIT): Define to empty if undefined.
6912 * sysdeps/mach/hurd/i386/dl-machine.h: New file.
6913 * sysdeps/mach/hurd/dl-sysdep.c (_dl_init_first): New weak function.
6914 * elf/Versions ({libc,ld.so}: GLIBC_2.2): Add _dl_init_first.
6915
6916 * stdio-common/tmpfile.c [! USE_IN_LIBIO]: No alias needed,
6917 since we define the function with the name `tmpfile'.
6918
6919 * mach/Versions: Define SHARED instead of PIC to affect shlib-compat.h.
6920 * hurd/Versions: Likewise.
6921
6922 2000-04-02 Ulrich Drepper <drepper@redhat.com>
6923
6924 * elf/dl-runtime.c (fixup): Fix typo in comment.
6925
6926 * resolv/netdb.h (getnameinfo): All length parameters are of type
6927 socklen_t.
6928 * inet/getnameinfo.c: Likewise.
6929
6930 2000-04-01 Ulrich Drepper <drepper@redhat.com>
6931
6932 * posix/unistd.h (socklen_t): Define if it has not yet happened.
6933 (gethostname): Change type of second parameter to socklen_t.
6934 * include/unistd.h (__gethostname): Change type of second
6935 parameter to socklen_t.
6936 * sysdeps/generic/gethostname.c (__gethostname): Likewise.
6937 * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
6938 * sysdeps/unix/sysv/gethostname.c (__gethostname): Likewise.
6939 * sysdeps/unix/sysv/sysv4/solaris2/gethostname.c (__gethostname):
6940 Likewise.
6941 * sysdeps/unix/sysv/linux/gethostname.c: Removed.
6942 * sysdeps/generic/bits/socket.h: Use __socklen_t to define socklen_t.
6943 Allow definition elsewhere.
6944 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
6945 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6946 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
6947 * sysdeps/generic/bits/types.h: Define __socklen_t.
6948 * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
6949 * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
6950 * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
6951 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
6952 * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
6953 * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
6954 * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
6955
6956 * inet/arpa/inet.h (inet_addr): Change return type to in_addr_t.
6957 (inet_lnaof): Likewise.
6958 (inet_netof): Likewise.
6959 (inet_network): Likewise.
6960 (inet_aton): Likewise.
6961 (inet_makeaddr): Change parameter types to in_addr_t.
6962 (inet_neta): Likewise.
6963 (inet_ntop): Change type of last parameter to socklen_t.
6964 (inet_aton): Only make available if __USE_MISC.
6965 (inet_neta): Likewise.
6966 (inet_net_ntop): Likewise.
6967 (inet_net_pton): Likewise.
6968 (inet_nsap_ntoa): Likewise.
6969
6970 * inet/in.h: Define in_port_t type.
6971 Define in_addr_t type.
6972 (struct in_addr): Use in_addr_t in definition.
6973 (IN_CLASSA): Use cast to in_addr_t.
6974 (IN_CLASSB): Likewise.
6975 (IN_CLASSC): Likewise.
6976 (IN_CLASSD): Likewise.
6977 (IN_EXPERIMENTAL): Likewise.
6978 (IN_BADCLASS): Likewise.
6979 (INADDR_ANY): Likewise.
6980 (INADDR_BROADCAST): Likewise.
6981 (INADDR_NONE): Likewise.
6982 (INADDR_LOOPBACK): Likewise.
6983 (INADDR_UNSPEC_GROUP): Likewise.
6984 (INADDR_ALLHOSTS_GROUP): Likewise.
6985 (INADDR_ALLRTRS_GROUP): Likewise.
6986 (INADDR_MAX_LOCAL_GROUP): Likewise.
6987 (struct sockaddr_in): Use in_port_t for sin_port element.
6988 (struct sockaddr_in6): Use in_port_t for sin6_port element.
6989 Use uint8_t instead of u_int8_t.
6990
6991 * resolv/inet_addr.c (inet_addr): Change return type to in_addr_t.
6992 Call __inet_aton instead of inet_aton.
6993 (__inet_aton): Renamed from inet_aton. Add weak alias under old name.
6994
6995 * resolv/netdb.h (gethostbyname2): Define only is __USE_MISC.
6996 (innetgr): Likewise.
6997 (struct addrinfo): Use socklen_t for ai_addrlen element.
6998
6999 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MTU_DISCOVER, IPV6_MTU,
7000 IPV6_RECVERR): New defines.
7001
7002 * include/netdb.h: Change type of first parameter of __getnetbyaddr_r.
7003 * inet/getnetbyad.c: Likewise.
7004 * inet/getnetbyad_r.c: Likewise.
7005 * nis/nss_nis/nis-network.c: Likewise.
7006 * nis/nssplus_nis/nisplus-network.c: Likewise.
7007 * nss/nss_files/files-network.c: Likewise.
7008 * resolv/netdb.h: Define uint32_t if not already happened.
7009 Include bits/netdb.h. Remove definition of struct netent.
7010 Change type of first parameter of getnetbyaddr_r and getnetbyaddr.
7011 * sysdeps/generic/stdint.h: Allow definition of uint32_t elsewhere.
7012 * sysdeps/generic/bits/netdb.h: New file.
7013 * sysdeps/unix/sysv/linux/alpha/bits/netdb.h: New file.
7014
7015 * dlfcn/Makefile (distribute): Add glreflib1.c and glreflib2.c.
7016 (tests): Add glrefmain.
7017 Add rules to build modules and run tests. Ignore result of glrefmain
7018 for now since it fails.
7019 * dlfcn/glrefmain.c: New file.
7020 * dlfcn/glreflib1.c: New file.
7021 * dlfcn/glreflib2.c: New file.
7022
7023 * test-skeleton.c: Include <string.h> for strsignal prototype.
7024
7025 * locale/programs/ld-collate.c (check_duplicate): Allow repertoire
7026 to be missing.
7027
7028 * sysdeps/unix/sysv/linux/init-first.c (init): Add code from
7029 former init-first.h. Initialize __libc_multiple_libcs.
7030
7031 2000-03-31 Ulrich Drepper <drepper@redhat.com>
7032
7033 * iconv/skeleton.c: Define access macros with u suffix. Adjust
7034 #if expression for use of unaligned function to the one used in
7035 the definition of these functions.
7036 * iconv/loop.c: Undefined `unaligned' before recursive inclusion.
7037 * iconv/gconv_simple.c (internal_ucs4_loop_unaligned): New function.
7038 (internal_ucs4le_loop_unaligned): New function.
7039
7040 * elf/Makefile (distribute): Add dep1.c, dep2.c, dep3.c, and dep4.c.
7041 (tests): Add order.
7042 (module-names): Add dep1, dep2, dep3, and dep4.
7043 Add dependencies for dep* modules and order.
7044 Define rule for order.out which checks the result.
7045 * elf/dep1.c: New file.
7046 * elf/dep2.c: New file.
7047 * elf/dep3.c: New file.
7048 * elf/dep4.c: New file.
7049 * elf/order.c: New file.
7050
7051 * elf/dl-init.c: Fix typo in comment.
7052
7053 2000-03-31 Andreas Jaeger <aj@suse.de>
7054
7055 * sysdeps/mips/dl-machine.h (RTLD_START): Rewritten to match new
7056 init function interface.
7057 * sysdeps/mips/mips64/dl-machine.h (RTLD_START): Likewise.
7058
7059 2000-03-31 Andreas Jaeger <aj@suse.de>
7060
7061 * sysdeps/mips/fpu/fgetexcptflg.c: Fix last patch to use #if.
7062 * sysdeps/mips/fpu/fegetenv.c: Likewise.
7063 * sysdeps/mips/fpu/feupdateenv.c: Likewise.
7064 * sysdeps/mips/fpu/fclrexcpt.c: Likewise.
7065 * sysdeps/mips/fpu/fesetenv.c: Likewise.
7066
7067 * sysdeps/generic/ldsodefs.h: DT_INIT_ARRAY is not relocated
7068 anymore, update comment.
7069
7070 * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
7071
7072 * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Remove
7073 SHLIB_COMPAT - the struct is always needed.
7074
7075 2000-03-31 Ulrich Drepper <drepper@redhat.com>
7076
7077 * sysdeps/i386/dl-machine.h (RTLD_START): Optimize for i686.
7078 * elf/dl-support.c: Define _dl_starting_up.
7079
7080 2000-03-30 Ulrich Drepper <drepper@redhat.com>
7081
7082 * elf/dl-init.c (_dl_init): Clear _dl_starting_up at end of function.
7083 * sysdeps/i386/dl-machine.h: Remove code to clear _dl_starting_up.
7084
7085 * misc/sys/cdefs.h: Don't allow gcc in traditional mode to be used.
7086
7087 * elf/Makefile (dl-routines): Remove preinit.
7088 * elf/Versions: Remove _dl_preinit.
7089 * elf/dl-preinit.c: Removed. Move content into...
7090 * elf/dl-init.c: ...here.
7091 * sysdeps/i386/dl-machine.h (RTLD_START): Remove call to _dl_preinit.
7092
7093 * sysdeps/generic/bits/shm.h (struct shmid_ds): Correct names of
7094 elements.
7095
7096 2000-03-29 Geoff Clare <gwc@unisoft.com>
7097
7098 * stdlib/strfmon.c: Corrected problems with the code that
7099 sets default values for [np]_sep_by_space and
7100 [np]_sign_posn; also the new positive/negative alignment
7101 code from the previous patch was not quite right for
7102 [np]_sign_posn = 0.
7103
7104 * localedata/tst-fmon.data: Changes corresponding to the
7105 two sets of fixes made to stdlib/strfmon.c.
7106
7107 2000-03-29 Jes Sorensen <jes@pcatls01.cern.ch>
7108
7109 * malloc/malloc.c: Declare bit flags UL so that they will not
7110 default to int size when being inverted.
7111
7112 2000-03-29 Andreas Jaeger <aj@suse.de>
7113
7114 * sysdeps/unix/sysv/linux/arm/errlist.c: Use shlib-compat macros.
7115 * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
7116
7117 2000-03-29 Andreas Jaeger <aj@suse.de>,
7118 Ralf Baechle <ralf@uni-koblenz.de>
7119
7120 * Makeconfig: Introduce new variable SHARED to mark code used in
7121 the shared library.
7122 * elf/dl-close.c: Use it instead of PIC.
7123 * elf/dl-load.c: Likewise.
7124 * elf/dl-open.c: Likewise.
7125 * hurd/geteuids.c: Likewise.
7126 * include/libc-symbols.h: Likewise.
7127 * include/shlib-compat.h: Likewise.
7128 * libio/freopen.c: Likewise.
7129 * linuxthreads/cancel.c: Likewise.
7130 * linuxthreads/pthread.c: Likewise.
7131 * linuxthreads/wrapsyscall.c: Likewise.
7132 * nss/nsswitch.c: Likewise.
7133 * stdio-common/vfprintf.c: Likewise.
7134 * sysdeps/arm/init-first.c: Likewise.
7135 * sysdeps/i386/init-first.c: Likewise
7136 * sysdeps/generic/init-first.c: Likewise.
7137 * sysdeps/generic/libc-start.c: Likewise.
7138 * sysdeps/mips/init-first.c: Likewise.
7139 * sysdeps/powerpc/elf/libc-start.c: Likewise.
7140 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
7141 * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
7142 * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
7143 * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
7144
7145 * sysdeps/mips/machine-gmon.h (asm): Use __PIC__ as check.
7146
7147 2000-03-29 Andreas Jaeger <aj@suse.de>
7148
7149 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
7150 Use D_PTR to access relocated entries in l_info.
7151 (elf_machine_rela): Likewise.
7152
7153 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
7154 Likewise.
7155 (elf_machine_rela): Likewise.
7156
7157 * sysdeps/powerpc/dl-machine.c (__elf_machine_runtime_setup):
7158 Likewise.
7159 (__elf_machine_fixup_plt): Likewise.
7160 (__process_machine_rela): Likewise.
7161
7162 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Likewise.
7163 (elf_machine_rela): Likewise.
7164
7165 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Likewise.
7166 (elf_machine_rel): Likewise.
7167
7168 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Likewise.
7169 (elf_machine_fixup_plt): Likewise.
7170 (elf_machine_rela): Likewise.
7171
7172 2000-03-29 Andreas Jaeger <aj@suse.de>
7173
7174 * sysdeps/unix/sysv/linux/msgctl.c: Use shlib-compat macros.
7175 * sysdeps/unix/sysv/linux/semctl.c: Likewise.
7176 * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
7177 * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
7178 * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
7179 * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
7180 * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
7181 * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
7182 * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
7183 * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
7184 * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
7185 * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
7186 * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
7187 * sysdeps/unix/sysv/linux/alpha/adjtime.c: Likewise.
7188 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
7189
7190 * sysdeps/unix/sysv/linux/alpha/oldglob.c: Use shlib-compat
7191 macros, remove K&R prototypes.
7192
7193 2000-03-30 Ulrich Drepper <drepper@redhat.com>
7194
7195 * posix/getopt.c (_getopt_internal): Return -1 if argc < 1.
7196 Reported by Andrew Wiseman <a.wiseman@bandc.dircon.co.uk>
7197 (PR libc/1677).
7198
7199 2000-03-30 Andreas Jaeger <aj@suse.de>
7200
7201 * misc/sys/cdefs.h: Remove K&R support.
7202
7203 2000-03-30 Ulrich Drepper <drepper@redhat.com>
7204
7205 * iconv/skeleton.c: Avoid compiling unaligned versions in some
7206 more cases.
7207 * iconv/loop.c: Likewise.
7208
7209 2000-03-29 Bruno Haible <haible@clisp.cons.org>
7210
7211 * iconv/loop.c (put16): Remove __const. Fix access index.
7212 (put32): Remove __const. Use uint32_t instead of uint16_t.
7213 * iconv/skeleton.c: Likewise.
7214
7215 2000-03-30 Roland McGrath <roland@baalperazim.frob.com>
7216
7217 * mach/Versions (libc: GLIBC_2.0)
7218 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
7219 __vm_allocate on this.
7220 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
7221 mutex- and spinlock-related symbols on this.
7222 [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
7223 New version set. Lock-related symbols go here instead in this case.
7224 * sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
7225 _cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
7226 cthread_getspecific, cthread_setspecific, __libc_getspecific.
7227 * hurd/Versions
7228 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
7229 Put them here instead.
7230 [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
7231 New version set. Those cthreads symbols go here instead in this case.
7232 * Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
7233
7234 2000-03-30 Ulrich Drepper <drepper@redhat.com>
7235
7236 * elf/dl-init.c (_dl_init): We don't need to call constructors
7237 recursively. Fold _dl_init_rec in _dl_init and optimize a bit more.
7238
7239 Implement dynamic determination of constructor/destructor order in
7240 the dynamic linker.
7241 * elf/Versions [ld.so] (GLIBC_2.0): Remove _dl_init_next.
7242 (GLIBC_2.2): Add _dl_init.
7243 * elf/dl-close.c: Also call all destructors in FINI_ARRAY.
7244 r_duplist is not anymore allocated separately. l_initfini is and
7245 therefore free it if necessary.
7246 * elf/dl-deps.c: If a searchlist has to be allocated, put all in one
7247 malloc block. Otherwise allocate l_initfini list only.
7248 Put dependencies for the object in l_initfini list.
7249 Sort dependencies for the object to be loaded topologically.
7250 * elf/dl-fini.c: Before running the destructors sort the topologically.
7251 * elf/dl-init.c (_dl_init): Renamed from _dl_init_next. Rewrite to
7252 call constructors instead of iterating over the pointers. Get list of
7253 objects for which to run constructors from l_initfini element. Accept
7254 argc, argv, and env as parameters and pass them to the constructors.
7255 * elf/ld-load.c (_dl_map_object_from_fd): Initialize l_ldnum member
7256 with size of dynamic section.
7257 * elf/dl-open.c (dl_open_worker): Only call _dl_init instead of
7258 _dl_init_next and calling constructors ourself.
7259 * elf/dl-preinit.c (_dl_preinit): Renamed from _dl_preinit_next.
7260 Take argc, argv, and env as parameters and pass them to the
7261 constructors. Rewrite to call all constructors and not iterate over
7262 the pointers.
7263 * elf/dynamic-link.h: Don't relocate DT_FINI_ARRAY entry. Don't
7264 precompute l_initcount and l_preinitcount.
7265 * elf/link.h (struct link_map): Add l_ldnum member.
7266 Make l_phdr_allocated part of the bitfield. Remove l_runcount,
7267 l_initcount, and l_preinitcount. Add l_initfini.
7268 * sysdeps/generic/ldsodefs.h: Replace _dl_init_next prototype with
7269 one for _dl_init.
7270 * sysdeps/i386/dl-machine (RTLD_START): Rewrite to match new init
7271 function interface.
7272 * sysdeps/unix/sysv/linux/init-first.h: Removed.
7273 * sysdeps/unix/sysv/linux/Dist: Delete file here as well.
7274 * sysdeps/unix/sysv/linux/init-first.c [PIC]: Don't use
7275 SYSDEP_CALL_INIT. Make _init a strong alias of init. The calling
7276 conventions now match.
7277
7278 * sysdeps/generic/libc-start.c: Calling __libc_init_first has no
7279 effect for shared objects. Don't emit message and call only for
7280 static library.
7281
7282 2000-03-29 Ulrich Drepper <drepper@redhat.com>
7283
7284 * iconvdata/testdata/CSA_Z243.4-1985-1..UCS-2BE: Renamed from
7285 CSA_Z243.4-1985-1..UCS2.
7286 * iconvdata/testdata/ISO-8859-10..UCS-2BE: Renamed from
7287 ISO-8859-10..UCS2.
7288
7289 2000-03-29 Andreas Jaeger <aj@suse.de>
7290
7291 * include/unistd.h: Remove duplicate entry for __rmdir.
7292 Remove declaration of __mkdir since __mkdir is declared in
7293 sys/stat.h.
7294
7295 * manual/creature.texi (Feature Test Macros): Fix typo, reported
7296 by Michael Deutschmann <michael@talamasca.ocis.net>.
7297
7298 * sysdeps/mips/fpu/fclrexcpt.c: Use shlib-compat macros.
7299 * sysdeps/mips/fpu/fegetenv.c: Likewise.
7300 * sysdeps/mips/fpu/fesetenv.c: Likewise.
7301 * sysdeps/mips/fpu/feupdateenv.c: Likewise.
7302 * sysdeps/mips/fpu/fgetexcptflg.c: Likewise.
7303
7304 2000-03-28 Andreas Jaeger <aj@suse.de>
7305
7306 * sysdeps/i386/fpu/bits/mathinline.h (__sincos): Remove redundant
7307 declaration, the prototype is defined via bits/mathcalls.h.
7308 (__sincosf): Likewise.
7309 (__sincosl): Likewise.
7310 (ldexp): Likewise.
7311 (ldexpf): Likewise.
7312 (ldexpl): Likewise.
7313 (__finite): Likewise.
7314 (__inline_mathcodeNP): New macro without prototype
7315 declarations.
7316 (__inline_mathcodeNP2): Likewise.
7317 (__inline_mathcodeNP3): Likewise.
7318 (__inline_mathcodeNP_): Likewise.
7319 (__inline_mathcodeNP2_): Likewise.
7320 (__inline_mathcodeNP3_): Likewise.
7321 (__inline_mathopNP): Likewise.
7322 (__inline_mathop_declNP): Likewise.
7323 (__inline_mathop_declNP_): Likewise.
7324 (__inline_mathcode_): Use __inline_mathcodeNP_.
7325 (__inline_mathcode2_): Use __inline_mathcodeNP2_.
7326 (__inline_mathcode3_): Use __inline_mathcodeNP3_.
7327 (__inline_mathop_decl_): Use __inline_mathop_declNP__.
7328 (__expm1l): Don't define prototype, the prototype is defined via
7329 bits/mathcalls.h.
7330 (exp): Likewise.
7331 (__expl): Likewise.
7332 (tan): Likewise.
7333 (atan2): Likewise.
7334 (__atan2l): Likewise.
7335 (fmod): Likewise.
7336 (pow): Likewise.
7337 (fabsf): Likewise.
7338 (fabsl): Likewise.
7339 (__fabsl): Likewise.
7340 (asin): Likewise.
7341 (acos): Likewise.
7342 (sinh): Likewise.
7343 (cosh): Likewise.
7344 (tanh): Likewise.
7345 (floor): Likewise.
7346 (ceil): Likewise.
7347 (expm1): Likewise.
7348 (log1p): Likewise.
7349 (asinh): Likewise.
7350 (acosh): Likewise.
7351 (atanh): Likewise.
7352 (hypot): Likewise.
7353 (logb): Likewise.
7354 (fma): Likewise.
7355 (drem): Likewise.
7356 (sqrt): Likewise.
7357 (__sqrtl): Likewise.
7358 (sin): Likewise.
7359 (cos): Likewise.
7360 (atan): Likewise.
7361 (log): Likewise.
7362 (log10): Likewise.
7363 (asinh): Likewise.
7364 (log2): Likewise.
7365 (rint): Likewise.
7366
7367 2000-03-28 Ulrich Drepper <drepper@redhat.com>
7368
7369 * Makerules: If make variable md5 is defined to yes after
7370 generating dependencies generate MD5 sum for the object.
7371
7372 * iconv/gconv_builtin.h: Fix length in transformation definition
7373 for UNICODEBIG.
7374
7375 * iconvdata/TESTS: Use UCS-2BE instead of UCS2.
7376
7377 * iconv/loop.c: Define get16, get32, put16, and put32 macros to
7378 allow as well reading from/writing to unaligned addresses on machines
7379 which don't support this in hardware. Use FCTNAME macro to define
7380 function name. Include the file a second time for platforms which
7381 need special unaligned handling.
7382 * iconv/skeleton.c: Define get16u, get32u, put16u, and put32u macros
7383 to access potentially unaligned addresses. These macros are intended
7384 to be used only outside the loops.
7385 (unaligned): New definition. In case the machine can handle unaligned
7386 access define as zero. Otherwise as a variable which is initialized
7387 as nonzero in case the buffer passed in at runtime is unaligned with
7388 respect to the character set encoding involved.
7389 Call aligned or unaligned looop functions according to unaligned
7390 variable.
7391 * iconvdata/8bit-gap.c: Use get16, get32, put16, and put32 instead
7392 of direct casting pointer to potentially handle unaligned memory
7393 accesses.
7394 * iconvdata/8bit-generic.c: Likewise.
7395 * iconvdata/ansi_x3.110.c: Likewise.
7396 * iconvdata/big5.c: Likewise.
7397 * iconvdata/euc-cn.c: Likewise.
7398 * iconvdata/euc-jp.c: Likewise.
7399 * iconvdata/euc-kr.c: Likewise.
7400 * iconvdata/euc-tw.c: Likewise.
7401 * iconvdata/gbk.c: Likewise.
7402 * iconvdata/iso-2022-cn.c: Likewise.
7403 * iconvdata/iso-2022-jp.c: Likewise.
7404 * iconvdata/iso-2022-kr.c: Likewise.
7405 * iconvdata/iso646.c: Likewise.
7406 * iconvdata/iso_6937-2.c: Likewise.
7407 * iconvdata/iso_6937.c: Likewise.
7408 * iconvdata/johab.c: Likewise.
7409 * iconvdata/sjis.c: Likewise.
7410 * iconvdata/t.61.c: Likewise.
7411 * iconvdata/uhc.c: Likewise.
7412 * iconvdata/unicode.c: Likewise.
7413 * iconvdata/utf-16.c: Likewise.
7414
7415 * locale/programs/simple-hash.c: Little optimizations. Remove K&R
7416 prototypes.
7417
7418 * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_check_all.
7419 * malloc/mcheck.c (mcheck_check_all): Renamed from check_all and made
7420 public.
7421 * malloc/mcheck.h (mcheck_check_all): Declare.
7422
7423 * stdio-common/Makefile (tests): Add tst-obprintf.
7424
7425 2000-03-28 Roland McGrath <roland@baalperazim.frob.com>
7426
7427 * sysdeps/generic/bits/sigthread.h: Clean up conditionals.
7428 Declare pthread_sigmask.
7429
7430 * csu/version.c: Add 2000 to copyright years.
7431 Remove Emacs local variables section.
7432
7433 2000-03-23 Bruno Haible <haible@clisp.cons.org>
7434
7435 * iconv/gconv_int.h (__gconv_transform_ucs2little_internal,
7436 __gconv_transform_internal_ucs2little): Remove declarations.
7437 * iconv/gconv_simple.c (__gconv_transform_ucs2_internal,
7438 __gconv_transform_internal_ucs2): Never need to bswap_16.
7439 (__gconv_transform_ucs2reverse_internal,
7440 __gconv_transform_internal_ucs2reverse): Always need to bswap_16.
7441
7442 2000-03-27 Roland McGrath <roland@baalperazim.frob.com>
7443
7444 * include/shlib-compat.h (SHLIB_COMPAT): Make the test handle the
7445 obsoleting version not being defined at all, in which case the
7446 result is always true.
7447
7448 * Makeconfig (preprocess-versions): New canned sequence for running
7449 cpp on shlib-versions and the like.
7450 (soversions.i): Use it.
7451 * Makerules (Versions.all, sysd-versions): Use it to preprocess the
7452 Versions.def and Versions files.
7453
7454 2000-03-27 Ulrich Drepper <drepper@redhat.com>
7455
7456 * stdio-common/tst-obprintf.c (main): Add another check to see
7457 obstack_printf handling all possible beginnings of the block
7458 inside an obstack chunk.
7459
7460 * locale/programs/localedef.c: Use __malloc_initialize_hook to
7461 install mcheck handler.
7462
7463 * libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory
7464 handling problem.
7465
7466 2000-03-27 Roland McGrath <roland@baalperazim.frob.com>
7467
7468 * stdio-common/tmpfile.c: Use <shlib-compat.h> macros.
7469
7470 * include/shlib-compat.h: Conditionalize <abi-versions.h> include
7471 on [HAVE_ELF && DO_VERSIONING].
7472
7473 2000-03-27 Ulrich Drepper <drepper@redhat.com>
7474
7475 * stdio-common/tst-obprintf.c: New file.
7476
7477 2000-03-26 Ulrich Drepper <drepper@redhat.com>
7478
7479 * libio/genops.c (_IO_default_xsputn): Little optimization. Call
7480 _IO_OVERFLOW directly instead through __overflow.
7481
7482 * locale/programs/localedef.c (construct_output_path): If path
7483 contains a / compute the end of the directory name correctly.
7484
7485 * include/features.h: Undef and document __USE_XOPEN2K.
7486
7487 * malloc/mcheck.c: Implement pedantic checking of all allocated blocks
7488 whenever a function is called. Initiated by calling mcheck_pedantic
7489 instead of mcheck.
7490 * malloc/mcheck.h: Declare mcheck_pedantic.
7491 * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_pedantic.
7492 * locale/programs/localdef.c: Use mcheck_pedantic instead of mcheck
7493 for now.
7494
7495 2000-03-26 Roland McGrath <roland@baalperazim.frob.com>
7496
7497 * dlfcn/dlopen.c: Use <shlib-compat.h> macros.
7498 * dlfcn/dlopenold.c: Likewise.
7499 * nss/getXXbyYY_r.c: Likewise.
7500 * nss/getXXent_r.c: Likewise.
7501 * hurd/hurdinit.c: Likewise.
7502 * hurd/compat-20.c: Likewise.
7503 * libio/oldiofopen.c: Likewise.
7504 * libio/oldiofclose.c: Likewise.
7505 * libio/oldiofdopen.c: Likewise.
7506 * libio/oldfileops.c: Likewise.
7507 * libio/oldstdfiles.c: Likewise.
7508 * libio/oldiofsetpos.c: Likewise.
7509 * libio/oldiofgetpos.c: Likewise.
7510 * libio/oldiofgetpos64.c: Likewise.
7511 * libio/oldiofsetpos64.c: Likewise.
7512 * libio/oldiopopen.c: Likewise.
7513 * libio/oldpclose.c: Likewise.
7514 * libio/oldtmpfile.c: Likewise.
7515 * libio/freopen.c (freopen): Likewise.
7516 * libio/iofclose.c (_IO_new_fclose): Likewise.
7517
7518 * sysdeps/mach/sys/reboot.h: Include <features.h>.
7519 (reboot): Declare it.
7520
7521 * libio/Makefile (headers): Add bits/stdio-lock.h here.
7522
7523 * sysdeps/mach/hurd/bits/stdio-lock.h: New file.
7524
7525 * include/shlib-compat.h: Include <abi-versions.h> unconditionally.
7526
7527 * posix/unistd.h (intptr_t): Conditionalize on [__USE_MISC ||
7528 __USE_XOPEN_EXTENDED] rather than on [__USE_UNIX98].
7529 We need this for the sbrk decl, which can be included without Unix98.
7530
7531 2000-03-20 Richard Henderson <rth@cygnus.com>
7532
7533 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Last
7534 argument to yperr2nss is an int, not size_t.
7535 * posix/regex.c (print_partial_compiled_pattern): Cast all
7536 ptrdiff_t to long for printing.
7537 (print_compiled_pattern): Use Z for printing size_t.
7538 * posix/testfnm.c (tests): Avoid trigraphs.
7539 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
7540 Use a C comment, not an assembly comment.
7541
7542 * sysdeps/unix/sysv/linux/alpha/msgctl.c: Clarify use
7543 of __ASSUME_32BITUIDS.
7544
7545 2000-03-26 Ulrich Drepper <drepper@redhat.com>
7546
7547 * libio/iofopncook.c: Remove K&R prototypes.
7548
7549 2000-03-26 Roland McGrath <roland@baalperazim.frob.com>
7550
7551 * hurd/hurdrlimit.c (init_rlimit): Give the RLIMIT_NOFILE soft limit
7552 an initial value of 1024 instead of RLIM_INFINITY.
7553
7554 * Versions.def (libmachuser, libhurduser): Remove these sections,
7555 since these libraries do not presently use symbol versions.
7556
7557 * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): If the resource limit
7558 is RLIM_INFINITY, return -1 instead.
7559
7560 2000-03-24 Andreas Jaeger <aj@suse.de>
7561
7562 * Makefile (postclean): Added soversions.i.
7563
7564 2000-03-24 Scott Bambrough <scottb@netwinder.org>
7565
7566 * sysdeps/arm/fpu/fpu_control.h: Define _FPU_MASK_IM, _FPU_MASK_ZM,
7567 _FPU_MASK_OM, _FPU_MASK_UM, _FPU_MASK_PM, _FPU_MASK_DM, _FPU_DEFAULT,
7568 and _FPU_IEEE. Change _FPU_RESERVED.
7569
7570 2000-03-24 Scott Bambrough <scottb@netwinder.org>
7571
7572 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: New file.
7573
7574 2000-03-24 Roland McGrath <roland@baalperazim.frob.com>
7575
7576 * sysdeps/posix/getaddrinfo.c: Include <net/if.h> for if_nametoindex.
7577 (gaih_inet): Remove unused duplicate variable.
7578
7579 * inet/getnameinfo.c (getnameinfo): Use IFNAMSIZ, not MAXHOSTNAMELEN.
7580 Don't use __libc_sa_len, which only exists for Linux. Just handle
7581 AF_INET and AF_INET6 directly as well as AF_LOCAL, since those are the
7582 only flavors supported by this function anyway.
7583
7584 2000-03-24 Geoff Clare <gwc@unisoft.com>
7585
7586 * stdlib/strfmon.c: Corrected problems with missing signs and
7587 missing or extra spaces; allow for sign strings longer than
7588 one character; add padding to ensure positive and negative
7589 formats are aligned when a left precision is used.
7590
7591 2000-03-26 Ulrich Drepper <drepper@redhat.com>
7592
7593 * stdlib/random_r.c (__setstate_r): Allow RNGs of type 4.
7594 Patch by John Mizel <John.Mizel@msdw.com>.
7595
7596 2000-03-25 Ulrich Drepper <drepper@redhat.com>
7597
7598 * manual/install.texi: Remove references to crypt add-on.
7599
7600 2000-03-25 Roland McGrath <roland@baalperazim.frob.com>
7601
7602 * sysdeps/mach/hurd/setrlimit.c (setrlimit): Go into a critical
7603 section while taking the _hurd_rlimit_lock.
7604 * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
7605
7606 2000-03-24 Roland McGrath <roland@baalperazim.frob.com>
7607
7608 * Makerules [$(cross-compiling) = yes] (symbolic-link-prog): Define
7609 using $(LN_S).
7610
7611 * sysdeps/mach/hurd/if_index.c: New file.
7612
7613 * sysdeps/unix/sysv/linux/net/if.h: Moved to ...
7614 * sysdeps/gnu/net/if.h: here.
7615 (_IOT_ifconf, _IOT_ifreq): Hurd ioctl type macros moved from ...
7616 * sysdeps/mach/hurd/net/if.h: ... here; this file now removed.
7617 * sysdeps/generic/net/if.h: New file. Declares just the standard
7618 functions and `struct if_nameindex' type.
7619 * socket/Makefile (headers): Add net/if.h here.
7620 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Not here.
7621 * sysdeps/mach/hurd/Dist: Remove it here.
7622 * sysdeps/unix/sysv/linux/Dist: And here.
7623 * sysdeps/generic/if_index.c: Include <net/if.h>.
7624
7625 2000-03-24 Andreas Jaeger <aj@suse.de>
7626
7627 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Use D_PTR to
7628 access relocated entries in l_info.
7629 (elf_machine_got_rel): Likewise.
7630 (elf_machine_runtime_setup): Likewise.
7631 * sysdeps/mips/mips64/dl-machine.h (elf_machine_got_rel): Likewise.
7632 (elf_machine_runtime_setup): Likewise.
7633 (__dl_runtime_resolve): Likewise.
7634
7635 2000-03-23 Ulrich Drepper <drepper@redhat.com>
7636
7637 * resolv/netdb.h (SCOPE_DELIMITER): New definitions.
7638 * inet/netinet/in.h (struct sockaddr_in6): Add sin6_scope_id
7639 according to RFC 2553.
7640 * sysdeps/posix/getaddrinfo.c: Change to follow latest RFC draft.
7641 * inet/getnameinfo.c: Likewise.
7642 Patches by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
7643
7644 2000-03-23 Bruno Haible <haible@clisp.cons.org>
7645
7646 * iconv/gconv_simple.c (internal_ucs4_loop, internal_ucs4le_loop):
7647 Remove no-op pointer increment.
7648
7649 2000-03-23 Andreas Jaeger <aj@suse.de>
7650
7651 * stdio-common/tst-cookie.c (cookieseek): Change prototype to
7652 follow change for libio.h from 2000-03-10.
7653
7654 2000-03-23 Andreas Jaeger <aj@suse.de>
7655
7656 * elf/dl-addr.c: Adjust include paths for ldsodefs location
7657 change.
7658 * elf/dl-debug.c: Likewise.
7659 * elf/dl-deps.c: Likewise.
7660 * elf/dl-error.c: Likewise.
7661 * elf/dl-fini.c: Likewise.
7662 * elf/dl-init.c: Likewise.
7663 * elf/dl-load.c: Likewise.
7664 * elf/dl-lookup.c: Likewise.
7665 * elf/dl-minimal.c: Likewise.
7666 * elf/dl-object.c: Likewise.
7667 * elf/dl-open.c: Likewise.
7668 * elf/dl-preinit.c: Likewise.
7669 * elf/dl-profile.c: Likewise.
7670 * elf/dl-profstub.c: Likewise.
7671 * elf/dl-reloc.c: Likewise.
7672 * elf/dl-runtime.c: Likewise.
7673 * elf/dl-support.c: Likewise.
7674 * elf/dl-symbol.c: Likewise.
7675 * elf/dl-version.c: Likewise.
7676 * elf/rtld.c: Likewise.
7677 * elf/sprof.c: Likewise.
7678 * sysdeps/generic/dl-cache.c: Likewise.
7679 * sysdeps/generic/dl-origin.c: Likewise.
7680 * sysdeps/generic/dl-sysdep.c: Likewise.
7681 * sysdeps/generic/elf/backtracesyms.c: Likewise.
7682 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
7683 * sysdeps/generic/libc-start.c: Likewise.
7684 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
7685 * sysdeps/powerpc/dl-machine.c: Likewise.
7686 * sysdeps/powerpc/elf/libc-start.c: Likewise.
7687 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7688 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7689 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
7690
7691 * elf/ldsodefs.h: Move file to ...
7692 * sysdeps/generic/ldsodefs.h: ... here.
7693
7694 * sysdeps/generic/ldsodefs.h: Add definition for D_PTR.
7695
7696 * sysdeps/mips/elf/ldsodefs.h: New file.
7697
7698 * elf/dl-version.c (match_symbol): Use D_PTR to access relocated
7699 entries in l_info.
7700 (_dl_check_map_versions): Likewise.
7701 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
7702 * elf/dl-load.c (_dl_init_paths): Likewise.
7703 (_dl_map_object): Likewise.
7704 * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Likewise.
7705 (elf_get_dynamic_info): Likewise.
7706 * elf/do-lookup.h (FCT): Likewise.
7707 * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
7708 * elf/dl-deps.c (_dl_map_object_deps): Likewise.
7709 * elf/dl-addr.c (_dl_addr): Likewise.
7710 * elf/dl-runtime.c (profile_fixup): Likewise.
7711 (fixup): Likewise.
7712 * elf/dl-init.c (_dl_init_next): Likewise.
7713 * sysdeps/generic/dl-machine.h (elf_machine_runtime_setup): Likewise.
7714 * sysdeps/unix/sysv/linux/i386/dl-librecon.h
7715 (DISTINGUISH_LIB_VERSIONS): Likewise.
7716 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Likewise.
7717 (elf_machine_rel): Likewise.
7718
7719 * elf/dynamic-link.h (elf_get_dynamic_info): Only change l_info
7720 for writable dynamic section.
7721
7722 2000-03-22 Ulrich Drepper <drepper@redhat.com>
7723
7724 * inet/getnameinfo.c (getnameinfo): Check that addrlen value is
7725 large enough. Patch by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
7726
7727 2000-03-22 Andreas Jaeger <aj@suse.de>
7728
7729 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MADV_*): Add flags
7730 from latest Linux kernel.
7731
7732 2000-03-21 Andreas Jaeger <aj@suse.de>
7733
7734 * Versions.def: Add version 2.1.4.
7735
7736 2000-03-21 Ulrich Drepper <drepper@redhat.com>
7737
7738 * libio/oldtmpfile.c: Update for new SHLIB_COMPAT definition.
7739 * libio/oldiofopen.c: Likewise.
7740 * libio/oldiofclose.c: Likewise.
7741 * sysdeps/unix/sysv/linux/errlist.c: Likewise.
7742
7743 2000-03-22 Roland McGrath <roland@baalperazim.frob.com>
7744
7745 * include/shlib-compat.h (SHLIB_COMPAT): Take a third argument,
7746 indicating the first version set to obsolete the conditionalized code.
7747 (compat_symbol): New macro.
7748 * scripts/abi-versions.awk: For subsumed versions, make ABI_* defn's
7749 rhs be the ABI_* macro for the subsuming version. Assign increasing
7750 integer values to the ABI_* macros for supported versions.
7751 * sysdeps/gnu/siglist.c: Use new SHLIB_COMPAT convention, and use
7752 compat_symbol macro.
7753
7754 2000-03-21 Ulrich Drepper <drepper@redhat.com>
7755
7756 * nscd/connections.c (nscd_run): Pretty print.
7757 * elf/dl-runtime.c: Include stdlib.h for alloca prototype.
7758
7759 * manual/charset.texi: Fix typos. Rephrase.
7760 * manual/process.texi: Likewise.
7761 * manual/signal.texi: Likewise.
7762 Patches by Mike Coleman <mkc@kc.net>.
7763
7764 * libio/oldtmpfile.c: Use new macros from shlib-compat.h to define
7765 versions.
7766 * libio/iofdopen.c: Likewise.
7767 * libio/iofgetpos.c: Likewise.
7768 * libio/iofgetpos64.c: Likewise.
7769 * libio/iofopen.c: Likewise.
7770 * libio/iofsetpos.c: Likewise.
7771 * libio/iofsetpos64.c: Likewise.
7772 * libio/iopopen.c: Likewise.
7773 * libio/oldiofopen.c: Likewise.
7774 * libio/pclose.c: Likewise.
7775 * sysdeps/gnu/siglist.c: Likewise.
7776 * sysdeps/unix/sysv/linux/errlist.c: Likewise.
7777
7778 * include/shlib-compat.h (versioned_symbol): Give preprocessor the
7779 chance to expand VERSION_##lib##_##version.
7780
7781 * libio/fileops.c: Use new macros from shlib-compat.h to define
7782 versions.
7783 * libio/iofclose.c: Likewise.
7784 * libio/oldiofclose.c: Likewise.
7785 Patch by Roland McGrath <roland@frob.com>.
7786
7787 2000-03-21 Jakub Jelinek <jakub@redhat.com>
7788
7789 * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: Clean up namespace.
7790 Lay out struct sigcontext according to what really gets passed on
7791 the stack.
7792 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Don't include asm/elf.h.
7793 (elf_gregset_t, elf_greg_t, elf_fpregset_t, ELF_NGREG): Define.
7794 (prgregset_t, prfpregset_t): Define to elf_* types.
7795 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_WRITEDATA):
7796 Define to correct value.
7797 * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Use struct
7798 sigcontext.
7799 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
7800
7801 2000-03-21 Roland McGrath <roland@baalperazim.frob.com>
7802
7803 * scripts/firstversions.awk: Allow multiple version sets in the
7804 "earliest version" specification, meaning that version sets in the
7805 gaps between listed versions should be folded into the earliest later
7806 version that is explicitly listed.
7807 * shlib-versions (mips.*-.*-linux.*): Use that syntax for to say
7808 we support GLIBC_2.0 and GLIBC_2.2 but not the intervening sets.
7809
7810 2000-03-21 Ulrich Drepper <drepper@redhat.com>
7811
7812 * iconv/gconv_builtin.c: Include <endian.h>.
7813 * iconv/gconv_builtin.h: Add UCS-BE aliases.
7814 Add UCS-4LE transformation. Define UNICODEBIG and UNICODELITTLE
7815 according to current platform.
7816 * iconv/gconv_int.h: Declare __gconv_transform_ucs2reverse_internal,
7817 __gconv_transform_internal_ucs2reverse, and
7818 __gconv_transform_internal_ucs4le.
7819 * iconv/gconv_simple.c: Implement __gconv_transform_internal_ucs4le,
7820 __gconv_transform_ucs2reverse_internal and
7821 __gconv_transform_internal_ucs2reverse.
7822 * iconvdata/Makefile (modules): Add UNICODE.
7823 (distribute): Add unicode.c.
7824 * iconvdata/gconv-modules: Add definitions for UNICODE module.
7825 * iconvdata/unicode.c: New file.
7826
7827 * iconvdata/utf-16.c: Rewrite code to emit BOM. Correct code to
7828 determine byte order of input and convert accordingly.
7829
7830 * iconvdata/utf-16.c (gconv_init): Fix typo.
7831
7832 2000-03-20 Ulrich Drepper <drepper@redhat.com>
7833
7834 * iconvdata/gconv-modules: Fix typo.
7835
7836 * sysdeps/unix/sysv/linux/configure.in: Remove `crypt' from one
7837 more messages.
7838
7839 * sysdeps/unix/sysv/aix/*: Add initial code for port to AIX 4.3.
7840
7841 2000-03-16 Thorsten Kukuk <kukuk@suse.de>
7842
7843 * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: New.
7844
7845 2000-03-20 Ulrich Drepper <drepper@redhat.com>
7846
7847 * misc/Makefile (routines): Add mincore.
7848
7849 2000-03-20 Andreas Jaeger <aj@suse.de>
7850
7851 * sysdeps/generic/mincore.c: New stub file.
7852
7853 * sysdeps/unix/sysv/linux/arm/bits/mman.h (MADV_*): Add flags
7854 from latest Linux kernel.
7855
7856 2000-03-20 Ulrich Drepper <drepper@redhat.com>
7857
7858 * grp/initgroups.c (compat_call): Use _SC_GETGR_R_SIZE_MAX instead of
7859 _SC_GETPW_R_SIZE_MAX.
7860
7861 2000-03-20 Richard Henderson <rth@cygnus.com>
7862
7863 * sysdeps/unix/sysv/linux/alpha/Versions: Put pciconfig_iobase
7864 in GLIBC_2.1.4.
7865
7866 2000-03-20 Richard Henderson <rth@cygnus.com>
7867
7868 * sysdeps/alpha/fpu/fraiseexcpt.c: Use get/set_fp_control instead
7869 of arithmetic instructions.
7870
7871 * sysdeps/alpha/fpu/s_ceil.c: Use round to -inf instead of playing
7872 with the fpcr. Protect from INV exception.
7873 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
7874 * sysdeps/alpha/fpu/s_floor.c: Protect from INV exception.
7875 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
7876
7877 * sysdeps/alpha/fpu/s_copysign.c: New.
7878 * sysdeps/alpha/fpu/s_copysignf.c: New.
7879 * sysdeps/alpha/fpu/s_fabs.c: New.
7880 * sysdeps/alpha/fpu/s_fabsf.c: New.
7881 * sysdeps/alpha/fpu/s_rint.c: New.
7882 * sysdeps/alpha/fpu/s_rintf.c: New.
7883
7884 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Add MADV constants.
7885
7886 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines):
7887 Kill sethae.
7888 * sysdeps/unix/sysv/linux/alpha/Versions: Add pciconfig_iobase.
7889 * sysdeps/unix/sysv/linux/alpha/ioperm.c (all address constants):
7890 Use physical addresses not KSEG addresses.
7891 (io_system): Add PYXIS.
7892 (io): Remove hae.reg, sys, hae_shift.
7893 (stb_mb, stw_mb, stl_mb, __sethae): New.
7894 (inline_outb, inline_outw, inline_outl): Don't set hae.
7895 (inline_inb, inline_inw, inline_inl): Likewise.
7896 (dense_sethae): New null function.
7897 (struct cpuinfo_data): New.
7898 (process_cpuinfo): Use local and stack variables, not static.
7899 Move readlink check here from init_iosys.
7900 (init_iosys): Use __pciconfig_iobase first. Know SX and LX as PYXIS.
7901 (_iopl): Simplify.
7902 (_hae_shift): Calculate it here.
7903 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sethae,
7904 add pciconfig_iobase.
7905
7906 2000-03-20 Roland McGrath <roland@baalperazim.frob.com>
7907
7908 * locale/programs/ld-time.c (time_finish): Use %Z instead of %z.
7909 * locale/programs/ld-ctype.c (ctype_finish, ctype_class_new): Likewise.
7910
7911 * scripts/versions.awk: Fixed version renaming code to distinguish
7912 libraries properly.
7913
7914 2000-03-19 Ulrich Drepper <drepper@redhat.com>
7915
7916 * include/stdlib.h: Add prototype for __cxa_atexit.
7917
7918 * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Update comment about
7919 _SLOWDOWN flags. Patch by Jim Blandy <jimb@cygnus.com>.
7920
7921 2000-03-17 Cristian Gafton <gafton@redhat.com>
7922
7923 * elf/Makefile ($(rtld-version-installed-name)): Delay replacing
7924 existing rtld-installed-name.
7925 ($(rtld-installed-name)): Request libc-$(version) be installed too.
7926 replace existing rtld-installed-name using $(symbolic-link-prog).
7927
7928 2000-03-17 Roland McGrath <roland@baalperazim.frob.com>
7929
7930 * locale/programs/ld-collate.c (collate_read): Remove bogus cast.
7931 (insert_value, handle_ellipsis, collate_read): Replace %zu in format
7932 strings with %Zu, because gcc-2.95.2's -Wformat knows about the latter
7933 but not the former.
7934
7935 2000-03-19 Ulrich Drepper <drepper@redhat.com>
7936
7937 * sysdeps/generic/glob.c [_LIBC]: Always use __xstat64, not only for
7938 glob64. Since there is no glob64 in the LFS proposal applications
7939 can assume that glob handles LFS situations. glob64 is only needed
7940 if alternative filesystem functions are used.
7941
7942 2000-03-19 Geoff Clare <gwc@unisoft.com>
7943
7944 * sysdeps/generic/glob.c: Correct gl_pathc value returned
7945 when GLOB_DOOFFS is set; correct handling of patterns
7946 containing escaped wildcards (and no unescaped ones);
7947 GLOB_ERR flag was being ignored in some situations.
7948
7949 * posix/globtest.c, posix/globtest.sh: Updated to include
7950 tests for the problems fixed by the above changes to glob.c.
7951
7952 * manual/pattern.texi (Calling Glob): Update description of gl_pathc.
7953
7954 2000-03-19 Roland McGrath <roland@baalperazim.frob.com>
7955
7956 * Makeconfig (soversion.i): Use only first match for each lib.
7957
7958 * Makeconfig (soversion.i): Pass -undef to $(CC) -E.
7959
7960 * Makerules (Versions.all, sysd-versions): Test $(sysd-sorted-done)
7961 rather than $(sysd-dirs-done) to protect these rules.
7962
7963 * Makerules (version-renames.def): Target removed.
7964 (Versions.all): Depend on soversions.i directly and parse it.
7965
7966 * Makeconfig (soversions.i): New target, input-reading parts of
7967 soversions.mk generation moved here; result is a canonicalized
7968 list "LIB VERSION [SET]" for this configuration.
7969 (soversions.mk): Use that as input. Don't emit map-firstversions.
7970 * Makerules (version-renames.def): New target, generated from
7971 soversions.i with contents that was in $(map-firstversions).
7972 (Versions.all): Don't depend on soversions.mk, depend on
7973 version-renames.def instead; just cat it into the input.
7974
7975 * Makerules (Versions.all): Use $(foreach ...) instead of sh for loop
7976 for $(map-firstversions), which better handles it being empty.
7977
7978 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): Set earliest
7979 supported version for libc 0.2.90.libio to GLIBC_2.2.
7980
7981 * Makeconfig (soversions.mk): Grok new third column in shlib-versions,
7982 and use it to emit new variable `map-firstversions'.
7983 * scripts/firstversions.awk: New file.
7984 * Makerules (Versions.all): Use scripts/firstversions.awk and
7985 the $(map-firstversions) value to generate a modified versions list
7986 that includes renames in "A = B" syntax for each version set earlier
7987 than the "earliest symbol version" named in shlib-versions.
7988 * scripts/versions.awk: Recognize "A = B" lines in the input to mean
7989 rename version set A to B in the output to the intermediate file.
7990 * scripts/abi-versions.awk: New file.
7991 * Makerules (abi-versions.h): New target, generated by that script.
7992 [$(versioning) = yes] (before-compile): Prepend abi-versions.h.
7993 * include/shlib-compat.h: New file, uses that generated header.
7994
7995 2000-03-18 Roland McGrath <roland@baalperazim.frob.com>
7996
7997 * Makeconfig (soversions.mk): Convert % -> # in shlib-versions
7998 after stripping # comments, and then run it through cpp.
7999 This allows things like "%ifdef FOO" based on config.h settings.
8000 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): libc=0.2.90.libio
8001
8002 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): For MACH_SEND_INTERRUPTED
8003 and other errors that indicate a pseudo-receive happened, grok through
8004 the message buffer for port rights that need references fixed up.
8005
8006 2000-03-16 Andreas Jaeger <aj@suse.de>
8007
8008 * sysdeps/unix/sysv/linux/syscalls.list: Added madvise and mincore.
8009
8010 * sysdeps/unix/sysv/linux/madvise.c: Remove.
8011
8012 * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MADV_*): Add flags
8013 from latest Linux kernel.
8014 * sysdeps/unix/sysv/linux/i386/bits/mman.h (MADV_*): Likewise.
8015
8016 * misc/sys/mman.h: Add prototype for mincore.
8017
8018 2000-03-17 Ulrich Drepper <drepper@redhat.com>
8019
8020 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add oldsetrlimit
8021 entry for GLIBC_2.0 version of setrlimit.
8022 Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
8023
8024 2000-03-16 Thorsten Kukuk <kukuk@suse.de>
8025
8026 * nis/nss_nis/nis-ethers.c: Return with error if malloc fails.
8027 * nis/nss_compat/compat-initgroups.c: Likewise.
8028 * nis/nss_nis/nis-initgroups.c: Likewise.
8029 * nis/nss_nis/nis-netgrp.c: Likewise.
8030 * nis/nss_nis/nis-proto.c: Likewise.
8031 * nis/nss_nis/nis-rpc.c: Likewise.
8032 * nis/nss_nis/nis-service.c: Likewise.
8033 * nis/ypclnt.c: Likewise.
8034
8035 2000-03-16 Andreas Jaeger <aj@suse.de>
8036
8037 * manual/Makefile: MAKEINFO is set to `:' from configure if it
8038 doesn't exist, correct checks. Fixes PR libc/1649.
8039
8040 2000-03-16 Thorsten Kukuk <kukuk@suse.de>
8041
8042 * nscd/hstcache.c: Restore correct UID.
8043 * nscd/pwdcache.c: Likewise.
8044 Patch from Gabor Gombas <gombasg@inf.elte.hu>.
8045
8046 2000-03-17 Roland McGrath <roland@baalperazim.frob.com>
8047
8048 * sysdeps/i386/sys/ucontext.h: Prepend REG_ to enum values and
8049 macros for register names, in line with 2000-03-14 linux change.
8050
8051 * sysdeps/mach/sched_yield.c: New file.
8052
8053 2000-03-13 Roland McGrath <roland@baalperazim.frob.com>
8054
8055 * sysdeps/generic/lockfile.c: Include <stdio.h>
8056 (_IO_flockfile, _IO_funlockfile, _IO_ftrylockfile): #undef these in
8057 case <libio.h> defined them.
8058 (__flockfile, __funlockfile, __ftrylockfile): Functions renamed
8059 from __internal_*.
8060 (flockfile, _IO_flockfile, funlockfile, _IO_funlockfile,
8061 ftrylockfile, _IO_ftrylockfile): Fix aliases accordingly.
8062
8063 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Use ...
8064 for more pleasing parse error.
8065
8066 2000-03-16 Ulrich Drepper <drepper@redhat.com>
8067
8068 * locale/lc-time.c (_nl_init_era_entries): Correct allocation of
8069 memory for eras.
8070 Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
8071
8072 * elf/Makefile: Add rules to compile and run constload1 test.
8073 * elf/constload1.c: New file.
8074 * elf/constload2.c: New file.
8075 * elf/constload3.c: New file.
8076
8077 2000-03-15 Ulrich Drepper <drepper@redhat.com>
8078
8079 * sysdeps/posix/open64.c: Make __open64 weak alias.
8080 * sysdeps/posix/pread64.c: Make __pread64 weak alias.
8081 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
8082 * sysdeps/unix/sysv/linux/i386/pread64.c: Likewise.
8083 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
8084 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
8085 * sysdeps/posix/pwrite64.c: Make __pwrite64 weak alias.
8086 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
8087 * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
8088 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
8089 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
8090
8091 2000-03-14 Ulrich Drepper <drepper@redhat.com>
8092
8093 * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
8094 Nautilus. Patch by Soohoon Lee <soohoon.lee@alpha-processor.com>.
8095
8096 2000-03-16 Mark Kettenis <kettenis@gnu.org>
8097
8098 * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
8099 Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
8100
8101 2000-03-08 Andreas Jaeger <aj@suse.de>
8102
8103 * sysdeps/unix/sysv/linux/scsi/sg.h: Sync with Linux 2.3.50.
8104
8105 2000-03-14 Ulrich Drepper <drepper@redhat.com>
8106
8107 * timezone/africa: Update from tzdata2000d.
8108 * timezone/asia: Likewise.
8109 * timezone/australasia: Likewise.
8110 * timezone/europe: Likewise.
8111 * timezone/northamerica: Likewise.
8112 * timezone/southamerica: Likewise.
8113
8114 * po/fr.po: Update from translation team.
8115 * po/de.po: Likewise.
8116
8117 * elf/dl-deps.c (_dl_map_object_deps): Change return type and remove
8118 last parameter. Move code to add map to global scope from here...
8119 * elf/dl-open.c (dl_open_worker): ...here.
8120 * elf/ldsodefs.h: Adjust declaration of _dl_map_object_deps.
8121 * elf/rtld.c: Adjust call to _dl_map_object_deps.
8122
8123 * locale/programs/ld-collate.c (collate_read): Fix warning.
8124
8125 * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Prepend REG_ to enum
8126 values and macros for register names.
8127
8128 * libio/iofopncook.c (_IO_cookie_seek): Return error only if value
8129 returned by seek cookie function is -1.
8130
8131 2000-03-14 Andreas Jaeger <aj@suse.de>
8132
8133 * locale/localeconv.c (localeconv): Fix typo.
8134 Reported by Andre Charbonneau <andrec@corel.com>.
8135
8136 2000-03-14 Ulrich Drepper <drepper@redhat.com>
8137
8138 * iconv/skeleton.c: Increment __invocation_counter in inner loop
8139 since modules depend on it counting the number of times the conversion
8140 function got called.
8141
8142 * iconv/gconv_open.c: Optimize loop to setup step data structure.
8143
8144 * iconv/gconv.h: Pretty print.
8145
8146 2000-03-04 Ulrich Drepper <drepper@redhat.com>
8147
8148 * posix/wordexp-test.c: Correct one of the tests added in the last
8149 change. Really get the root passwd entry to check again ~root.
8150
8151 2000-03-10 Andreas Jaeger <aj@suse.de>
8152
8153 * manual/filesys.texi (Working Directory): Fix last patch.
8154 Patch by Martin Buchholz <martin@xemacs.org>.
8155
8156 2000-03-10 Andreas Jaeger <aj@suse.de>
8157
8158 * manual/creature.texi (Feature Test Macros): Fix language.
8159
8160 2000-03-10 Roland McGrath <roland@baalperazim.frob.com>
8161
8162 * mach/devstream.c (devstream_write, devstream_read): New functions.
8163 (input, output): Functions removed.
8164 (mach_open_devstream): Use devstream_{read,write} as cookie functions,
8165 using only the vanilla fopencookie interface.
8166
8167 * hurd/fopenport.c [! USE_IN_LIBIO] (cookie_io_functions_t): Define
8168 as macro for __io_functions.
8169 (funcsio): Use cookie_io_functions_t type name.
8170 (fopenport): Renamed from __fopenport. Rewrite to call fopencookie.
8171
8172 * libio/iofopncook.c (_IO_cookie_init): New function, broken out of
8173 fopencookie.
8174 (fopencookie): Use it.
8175 * libio/libio.h: Declare _IO_cookie_init.
8176 * hurd/vpprintf.c (vpprintf) [USE_IN_LIBIO]: Implement using
8177 _IO_cookie_init.
8178
8179 * libio/libio.h (__io_seek_fn): Fix second argument type
8180 to be a pointer, in line with the manual and the old stdio.
8181 * libio/iofopncook.c (_IO_cookie_seek): Fix (sole) caller.
8182
8183 * sysdeps/generic/bits/stdio-lock.h: New file.
8184 This is a stub with #error, but that's better than no file at all.
8185
8186 2000-03-09 Martin Buchholz <martin@xemacs.org>
8187
8188 * sysdeps/unix/sysv/linux/alpha/syscall.S: Doc Fixes.
8189 * manual/message.texi (Using gettextized software): Doc Fixes.
8190 * manual/message.texi (Message Translation): Doc Fixes.
8191 * manual/filesys.texi (File Size): Doc Fixes.
8192 * manual/charset.texi (glibc iconv Implementation): Doc Fixes.
8193 * locale/programs/ld-collate.c (collate_output): Doc Fixes.
8194 * iconv/gconv_db.c (find_derivation): Doc Fixes.
8195 * manual/install.texi: Doc Fixes.
8196 * manual/search.texi (Hash Search Function): Doc Fixes.
8197 * manual/stdio.texi (Output Conversion Syntax): Doc Fixes.
8198 * FAQ.in: Doc Fixes.
8199 * config.h.in: Doc Fixes.
8200 * sysdeps/generic/dl-sysdep.c: Doc Fixes.
8201 Doc Fixes. `allows to' is not correct English.
8202
8203 * elf/rtld.c: Doc fixes.
8204 * manual/creature.texi (Feature Test Macros): Doc fixes.
8205 * manual/memory.texi (Hooks for Malloc): Doc Fixes.
8206
8207 * manual/filesys.texi (Working Directory): Check for ERANGE to
8208 avoid infloop.
8209
8210 2000-02-23 Roland McGrath <roland@baalperazim.frob.com>
8211
8212 * string/argz-stringify.c (__argz_stringify): Fix loop termination
8213 conditions so as not to clobber the final '\0' when there is only one
8214 element in the vector.
8215
8216 2000-03-09 Roland McGrath <roland@baalperazim.frob.com>
8217
8218 * io/sys/stat.h: Fix inverted sense of `defined __S_IFSOCK' test,
8219 broken by 2000-02-27 change.
8220
8221 * sysdeps/generic/bits/poll.h (POLLRDNORM, POLLRDBAND): New macros.
8222
8223 2000-02-23 Roland McGrath <roland@baalperazim.frob.com>
8224
8225 * sysdeps/mach/hurd/sigstack.c (sigstack): Remove `const' from
8226 argument type, for 2000-02-22 change in signal/signal.h declaration.
8227
8228 2000-03-09 Roland McGrath <roland@baalperazim.frob.com>
8229
8230 * sysdeps/generic/getdents64.c (__getdirentries64): Renamed
8231 to getdirentries64 (no __), since the Linux implementation
8232 has no __ name, and there is no declaration for the __ name.
8233
8234 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_end): New macro.
8235
8236 * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Tighten up
8237 sed regexp so as not to break directory names including /../ within.
8238
8239 * sysdeps/unix/bsd/bits/waitflags.h: File removed.
8240 The sysdeps/generic file is right for BSD. This file was in fact the
8241 Hurd file, but the only difference was the WNOREAP flag that was never
8242 actually implemented or used anywhere.
8243
8244 * configure.in (PERL, INSTALL_INFO): Don't AC_SUBST these,
8245 since AC_PATH_PROG already does it for us.
8246 (PERL): Rewrite check added in 2000-02-29 change for syntactic
8247 correctness and sh portability. I replaced the broken check
8248 with a more sensible implementation of the apparently intended
8249 semantics, which might still be questionable. Using expr causes
8250 a non-numeric value for `perl -V:apiversion` to be accepted,
8251 refusing to use only a perl that reports a number less than 5;
8252 on my system, perl (5.004_04) -V:apiversion produces UNKNOWN.
8253 * configure: Regenerated.
8254
8255 2000-03-08 Andreas Jaeger <aj@suse.de>
8256
8257 * manual/crypt.texi: Fix paths.
8258
8259 2000-03-07 Andreas Jaeger <aj@suse.de>
8260
8261 * resolv/netdb.h: The descriptions of rresvport and rresvport_af
8262 were swapped.
8263 Patch by YOSHIFUJI Hideaki <yoshfuji@ecei.tohoku.ac.jp>, closes PR
8264 libc/1636.
8265
8266 2000-03-06 Andreas Jaeger <aj@suse.de>
8267
8268 * sysdeps/i386/fpu/bits/mathinline.h: Fix union definition error
8269 in __sgn1l, otherwise g++ fails to parse this.
8270 Reported by Sean Chen <sean.chen@turbolinux.com>.
8271
8272 2000-03-03 Geoff Keating <geoffk@cygnus.com>
8273
8274 * configure.in: Compute sizeof-long-double.
8275 * configure: Regenerated.
8276 * config.make.in: Make sizeof-long-double available to sub-makes.
8277
8278 2000-03-03 Ulrich Drepper <drepper@cygnus.com>
8279
8280 * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
8281 call.
8282
8283 2000-03-03 Geoff Keating <geoffk@cygnus.com>
8284
8285 * Makeconfig (rpath-dirs): Add crypt.
8286 (all-subdirs): Remove md5crypt.
8287 * crypt/sysdeps/unix/crypt.c: Move to crypt/.
8288 * crypt/sysdeps/unix/crypt-entry.c: Move to crypt/.
8289 * sysdeps/generic/crypt-entry.c: Delete.
8290 * crypt/sysdeps/unix/crypt.h: Move to crypt/.
8291 * sysdeps/generic/crypt.h: Delete.
8292 * crypt/sysdeps/unix/crypt-private.h: Move to crypt/.
8293 * crypt/sysdeps/unix/crypt_util.c: Move to crypt/.
8294 * crypt/sysdeps/unix/des_impl.c: Move to sunrpc/.
8295 * sysdeps/generic/des_impl.c: Delete.
8296 * crypt/sysdeps/unix/ufc-crypt.h: Move to crypt/.
8297 * crypt/sysdeps: Delete.
8298 * crypt/crypt_util.c: Don't use `patchlevel.h'.
8299 * md5-crypt/Versions: Move to crypt/.
8300 * md5-crypt/md5-crypt.c: Move to crypt/.
8301 * md5-crypt/md5.c: Move to crypt/.
8302 * md5-crypt/md5c-test.c: Move to crypt/.
8303 * md5-crypt/md5test.c: Move to crypt/.
8304 * md5-crypt: Delete.
8305 * crypt/Makefile: Adjust for new structure.
8306
8307 2000-03-03 Paul Eggert <eggert@twinsun.com>
8308
8309 * posix/regex.c (MB_LEN_MAX): Include <limits.h> to define;
8310 define to 1 if not defined.
8311
8312 2000-03-03 Andreas Jaeger <aj@suse.de>
8313
8314 * sunrpc/xdr.c (xdr_hyper): Correctly handle lower half of llp.
8315
8316 2000-03-03 Andreas Jaeger <aj@suse.de>
8317
8318 * sunrpc/xdr_intXX_t.c (xdr_uint16_t): Fix ENCODE and DECODE
8319 cases.
8320 (xdr_int64_t): Correctly handle lower half.
8321 Fix by Sten Dahlgren <stda@enea.se>, closes PR libc/1623.
8322
8323 2000-03-03 Ulrich Drepper <drepper@cygnus.com>
8324
8325 * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
8326 call.
8327
8328 2000-03-02 Andreas Jaeger <aj@suse.de>
8329
8330 * sysdeps/unix/sysv/linux/scsi/sg.h: Integrate changes from Linux
8331 2.3.43.
8332
8333 2000-03-02 Andreas Jaeger <aj@suse.de>
8334
8335 * resolv/Makefile (headers): Add arpa/nameser_compat.h.
8336
8337 2000-03-01 Andreas Jaeger <aj@suse.de>
8338
8339 * time/Makefile (tst-getdate-ENV): New flag to pass DATEMSK.
8340 (tests): Added tst-getdate.
8341
8342 * time/tst-getdate.c: New file.
8343
8344 * time/datemsk: New file, needed for tst-getdate.
8345
8346 2000-02-29 Cristian Gafton <gafton@redhat.com>
8347
8348 * configure.in (CCVERSION): Require at least veersion 5 of perl API.
8349
8350 2000-02-17 H.J. Lu <hjl@gnu.org>
8351
8352 * sunrpc/rpc/svc.h (SVCXPRT): Add a "xp_pad" field at the end.
8353
8354 * sunrpc/svc_udp.c (svcudp_bufcreate): Turn on IP_PKTINFO if
8355 available.
8356 (svcudp_recv): Set up message with the new "xp_pad" field for
8357 IP_PKTINFO.
8358 (svcudp_reply): Support IP_PKTINFO if available.
8359
8360 2000-03-01 Andreas Jaeger <aj@suse.de>
8361
8362 * time/getdate.c (check_mday): Fix check for february.
8363 Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA
8364 <yosshy@cts.ne.jp>, closes PR libc/1617 and PR libc/1619.
8365
8366 2000-03-02 Andreas Jaeger <aj@suse.de>
8367
8368 * posix/unistd.h: __THROW has to precede __attribute__, otherwise
8369 g++ fails to parse this.
8370 Reported by Sean Chen <sean.chen@turbolinux.com>.
8371
8372 2000-02-28 Ulrich Drepper <drepper@redhat.com>
8373
8374 * io/creat.c: Moved to...
8375 * sysdeps/generic/creat.c: ...here.
8376 * io/creat64.c: Moved to...
8377 * sysdeps/generic/creat64.c: ...here.
8378 * io/lockf.c: Moved to...
8379 * sysdeps/generic/lockf.c: ...here.
8380
8381 * crypt/crypt.texi: Moved to...
8382 * manual/crypt.texi: ...here.
8383 * crypt/examples/genpass.c: Moved to...
8384 * manual/examples/genpass.c: ...here.
8385 * crypt/examples/mygenpass.c: Moved to...
8386 * manual/examples/mygenpass.c: ...here.
8387 * crypt/examples/testpass.c: Moved to...
8388 * manual/examples/testpass.c: ...here.
8389
8390 * manual/Makefile (chapters): Add crypt.
8391 * manual/conf.texi: Add usual header for not-last chapter.
8392 * manual/crypt.texi: Add special header for last chapter.
8393
8394 2000-02-28 Geoff Keating <geoffk@cygnus.com>
8395
8396 * Makeconfig (all-subdirs): Add 'crypt' subdirectory.
8397 * sysdeps/unix/sysv/linux/configure.in (inhibit_glue): Don't
8398 complain if there is no crypt add-on.
8399 * crypt/configure: Removed.
8400
8401 * crypt/crypt.texi: Update documentation of US export restrictions
8402 to match the 14 Jan 2000 regulations.
8403
8404 2000-02-28 Geoff Keating <geoffk@cygnus.com>
8405
8406 * crypt: New subdirectory, merged in from the crypt add-on.
8407
8408 2000-02-28 Ulrich Drepper <drepper@redhat.com>
8409
8410 * include/unistd.h: Add __rmdir and __mkdir prototypes.
8411
8412
8413 See ChangeLog.10 for earlier changes.