OSDN Git Service

* fileread.cc (File_read::clear_views): Don't delete the whole
[pf3gnuchains/sourceware.git] / newlib / ChangeLog
1 2011-03-03  Corinna Vinschen  <vinschen@redhat.com>
2
3         * libc/include/string.h: Include sys/cdefs.h.
4
5 2011-03-03  Corinna Vinschen  <vinschen@redhat.com>
6
7         * libc/include/sys/cdefs.h (__CONCAT1): Define.
8         (__CONCAT): Define.
9         (__STRING): Define.
10         (__XSTRING): Define.
11         (__ASMNAME): Define.
12         * libc/include/string.h (strerror_r): Use __ASMNAME to take target
13         specific label prefixes into account.
14
15 2011-03-01  Aaron Landwehr <snaphat@gmail.com>
16
17         * libm/complex/cproj.c: Fix typo.
18         * libm/complex/cprojf.c: Ditto.
19
20 2011-02-22  Corinna Vinschen  <vinschen@redhat.com>
21
22         * libc/stdio/fmemopen.c (fmemopen): Fix EINVAL condition.  Avoid SEGV
23         if incoming buffer is NULL.
24
25 2011-02-09  Eric Blake  <eblake@redhat.com>
26
27         * libc/include/string.h (strerror_r): Update declaration.
28         * libc/string/strerror.c (strerror): Update documentation.
29         * libc/string/strerror_r.c (strerror_r): Always return
30         NUL-terminated string; don't overwrite too-short buf.
31         * libc/string/xpg_strerror_r.c (__xpg_strerror_r): Implement POSIX
32         variant.
33         * libc/string/Makefile.am (GENERAL_SOURCES): Build new file.
34         * libc/string/Makefile.in: Regenerate.
35
36 2011-01-28  Corinna Vinschen  <vinschen@redhat.com>
37
38         * libc/stdio/fclose.c: Only use sfp lock to guard non-atomic
39         changes of flags and fp lock.
40         * libc/stdio/freopen.c: Ditto.
41         * libc/stdio64/freopen64.c: Ditto.
42         * libc/stdio/fgetc.c: Revert change from 2009-04-24, remove sfp locks
43         which guard entire function to avoid potential deadlocks when using
44         stdio functions in multiple thraeds.
45         * libc/stdio/fgets.c: Ditto.
46         * libc/stdio/fgetwc.c: Ditto.
47         * libc/stdio/fgetws.c: Ditto.
48         * libc/stdio/fread.c: Ditto.
49         * libc/stdio/fseek.c: Ditto.
50         * libc/stdio/getc.c: Ditto.
51         * libc/stdio/getdelim.c: Ditto.
52         * libc/stdio/gets.c: Ditto.
53         * libc/stdio/vfscanf.c: Ditto.
54         * libc/stdio/vfwscanf.c: Ditto.
55
56         * libc/stdio/fflush.c (_fflush_r): Split out core functionality into
57         new function __sflush_r.  Just lock file and call __sflush_r from here.
58         * libc/stdio/fwalk.c (_fwalk): Remove static helper function and move
59         functionality back into main function. Don't walk a file with flags
60         value of 1.  Add comment.
61         (_fwalk_reent): Ditto.
62         * libc/stdio/local.h (__sflush_r): Declare.
63         * libc/stdio/refill.c (__srefill): Before calling fwalk, set flags
64         value to 1 so this file pointer isn't walked.  Revert flags afterwards
65         and call __sflush_r for this fp if necessary.  Add comments.
66
67 2011-01-27  Corinna Vinschen  <vinschen@redhat.com>
68
69         * libc/include/sys/features.h: Define __STDC_ISO_10646__ for Cygwin.
70         * libc/include/wchar.h: Include features.h.
71
72 2011-01-15  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
73
74         * libc/include/sys/types.h (ulong): Add typedef.
75
76 2011-01-12  Ralf Corsépius  <ralf.corsepius@rtems.org>
77
78         * libm/math/w_tgamma.c: Only build ifndef _DOUBLE_IS_32BITS.
79         * libm/math/wf_tgamma.c: Map tgamma to tgammaf, ifdef _DOUBLE_IS_32BITS.
80
81 2011-01-12  Jeff Johnston  <jjohnstn@redhat.com>
82
83         * configure.host: Add noinclude variable to allow specification
84         of header files to remove from installation.
85         * acinclude.m4: Provide NO_INCLUDE_LIST variable based on
86         noinclude variable in configure.host.
87         * configure: Regenerated.
88         * Makefile.am: Remove all header files in NO_INCLUDE_LIST.
89         * Makefile.in: Regenerated.
90
91 2011-01-12  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
92
93         * libc/sys/linux/sys/signal.h (sig_t): Move from here...
94         * libc/include/signal.h (sig_t): ...to here.
95
96 2011-01-10  Corinna Vinschen  <vinschen@redhat.com>
97
98         * libc/machine/mips/strlen.c (strlen): Add delay slot for R3000.
99
100 2011-01-10  Joel Sherrill <joel.sherrill@oarcorp.com>
101
102         * libc/include/string.h: Make strsignal() available unconditionally.
103
104 2011-01-07  Ralf Corsepius  <ralf.corsepius@rtems.org>
105
106         * libc/sys/rtems/crt0.c: Adjust free() and calloc() to match their
107         public decls.
108
109 2011-01-05  Ralf Corsepius  <ralf.corsepius@rtems.org>
110
111         * Makefile.am: Move cleaning targ-include to clean-local.
112         * Makefile.in: Regenerate.
113
114 2011-01-05  Ralf Corsepius  <ralf.corsepius@rtems.org>
115
116         * libc/stdio/open_memstream.c (internal_open_memstream_r):
117         Don't limit c->max to 64*1024 on targets with SIZE_MAX < 64*1024.
118
119 2011-01-05  Ralf Corsepius  <ralf.corsepius@rtems.org>
120
121         * libc/xdr/xdr.c: Fix typos in #errors.
122
123 2011-01-05  Ralf Corsepius  <ralf.corsepius@rtems.org>
124
125         * libc/xdr/xdr_private.h: Include <stdint.h>
126         * libc/xdr/xdr_rec.c: Include limits.h
127
128 2011-01-05  Ralf Corsepius  <ralf.corsepius@rtems.org>
129
130         * libc/Makefile.am (SUBDEFS): Remove redundant posix/stmp-def.
131         * libc/Makefile.in: Regenerate.
132
133 2011-01-05  Ralf Corsepius  <ralf.corsepius@rtems.org>
134
135         * libc/configure.in: Remove redundant posix_dir processing.
136         * libc/configure: Regenerate.
137
138 2010-12-31  Ralf Corsepius  <ralf.corsepius@rtems.org>
139
140         * MAINTAINERS: Change corinna@vinchen.de to corinna@vinschen.de.
141
142 2010-12-26  Christopher Faylor  <me+cygwin@cgf.cx>
143
144         * libc/include/sys/errno.h (program_invocation_name): Declare.
145         (program_invocation_short_name): Ditto.
146
147 2010-12-16  Jeff Johnston  <jjohnstn@redhat.com>
148
149         * NEWS: Update with 1.19.0 info.
150         * README: Ditto.
151         * MAINTAINERS: Update.
152         * acinclude.m4: Change version number to 1.19.0.
153         * aclocal.m4: Regenerated.
154         * configure: Ditto.
155         * Makefile.am: Fix stmp-targ-include target.
156         * Makefile.in: Regenerated.
157         * doc/aclocal.m4: Ditto.
158         * doc/configure: Ditto.
159         * libc/*/aclocal.m4: Ditto.
160         * libc/*/configure: Ditto.
161         * libc/libc.texinfo: Ditto.
162         * libm/*/aclocal.m4: Ditto.
163         * libm/*/configure: Ditto.
164         * libm/libm.texinfo: Ditto.
165         * libc/sys/linux/shared.ld: Add VERS_1.19
166
167 2010-12-14  Jeff Johnston  <jjohnstn@redhat.com>
168
169         * Makefile.am: Add support to copy all sub-directories of the
170         sys/SYS_DIR/include directory, if they contain header files.
171         * Makefile.in: Regenerated.
172
173 2010-12-08  Jeff Johnston  <jjohnstn@redhat.com>
174
175         * libm/mathfp/sf_logarithm.c: Change isfinitef reference to isfinite.
176
177 2010-12-08  Ralf Corsepius <ralf.corsepius@rtems.org>
178
179         * include/sys/types.h: Add #if defined(__rtems__) around
180         pthread_attr_t.guardsize.
181
182 2010-12-08  Joel Sherrill <joel@OARcorp.com>
183
184         * include/pthread.h: Add pthread_attr_setstack, pthread_attr_getstack,
185         pthread_attr_getguardsize, pthread_attr_setguardsize.
186         * include/sys/types.h (pthread_attr_t): Add guardsize.
187
188 2010-12-08  Corinna Vinschen  <corinna@vinschen.de>
189
190         * libc/include/strings.h: Don't include locale.h.
191
192 2010-12-07  Eric Blake  <eblake@redhat.com>
193
194         * libc/include/strings.h: Don't declare removed functions when
195         requesting POSIX 2008 compliance.
196
197 2010-12-07  Jeff Johnston  <jjohnstn@redhat.com>
198
199         * libc/stdlib/strtod.c (_strtod_r): Fix code to handle case whereby
200         _DOUBLE_IS_32BITS is set and DBL_DIGS is 6 instead of 15.
201
202 2010-12-07  Ralf Corsépius  <ralf.corsepius@rtems.org>
203
204         * libc/include/strings.h: New (split-out from string.h).
205
206 2010-12-03  Craig Howland <howland@LGSInnovations.com>
207
208         * libc/include/math.h: Missing from previous checkin.
209
210 2010-12-02  Craig Howland <howland@LGSInnovations.com>
211
212         * libm/common/s_log2.c:  Change from using M_LOG2_E to M_LN2 define
213         (from math.h--the latter is POSIX, the former non-standard).
214         * libm/common/sf_log2.c:  Ditto.  Change cast for M_LN2 from float to
215         float_t (in case all math not done in float).
216         * libc/include/math.h:  Ditto (same 2 things as sf_log2.c).
217
218 2010-12-02  Jayant Sonar  jayant.sonar@kpitcummins.com
219             Kaushik Phatak  kaushik.phatak@kpitcummins.com
220
221         * configure.host: Add CR16 support.
222         * libc/include/machine/ieeefp.h: Ditto.
223         * libc/include/machine/setjmp.h: Ditto.
224         * libc/include/sys/config.h: Ditto.
225         * libc/machine/configure.in: Ditto
226         * libc/machine/configure: Regenerated
227         * libc/machine/cr16/aclocal.m4: New.
228         * libc/machine/cr16/configure.in: New
229         * libc/machine/cr16/configure: New
230         * libc/machine/cr16/getenv.c: New
231         * libc/machine/cr16/Makefile.am: New
232         * libc/machine/cr16/Makefile.in: New
233         * libc/machine/cr16/setjmp.S: New
234         * libc/machine/cr16/sys/asm.h: New
235         * libc/machine/cr16/sys/libh.h: New
236         * libc/machine/cr16/sys/syscall.h: New
237
238 2010-11-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
239
240         * libm/complex/catan.c, libm/complex/catanf.c,
241         libm/complex/ctan.c, libm/complex/ctanf.c:
242         Use HUGE_VAL instead of MAXNUM.
243
244 2010-11-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
245
246         * libm/complex/cargf.c: Use crealf instead of creal.
247
248 2010-11-19  Andy Koppe <andy.koppe@gmail.com>
249
250         * libc/locale/locale.c (loadlocale): Recognise the "cjknarrow"
251         modifier on "C.<charset>" locales too.
252
253 2010-11-18  Andy Koppe <andy.koppe@gmail.com>
254
255         * libc/locale/locale.c (loadlocale): Fix width of CJK ambigous
256         characters to 1 for singlebyte charsets and 2 for non-Unicode
257         multibyte charsets. Change documentation accordingly.
258
259 2010-11-17  Bernd Schmidt  <bernds@codesourcery.com>
260
261         * configure.host (newlib_cflags): For tic6x, add -DCLOCK_PROVIDED.
262
263 2010-11-16  Andrew Makhorin <mao@gnu.org>
264
265         * libc/machine/i386/setjmp.S (longjmp): Per POSIX, return 1 if second
266         argument is 0.
267
268 2010-11-16  Ralf Corsépius  <ralf.corsepius@rtems.org>
269
270         * libc/include/sys/types.h: Add _mode_t for __rtems__.
271         * libc/sys/rtems/machine/_types.h: Provide _mode_t, _fpos_t, _off_t.
272         Add _ssize_t for 64bit sparc.
273         Let arm, i386, m68k, mips, PPC, sparc use 64bit _off_t, _fpos_t.
274
275 2010-11-16  Ralf Corsépius  <ralf.corsepius@rtems.org>
276
277         * configure.host: Add -D_COMPILING_NEWLIB to newlib_cflags.
278
279 2010-11-04  Ralf Corsépius  <ralf.corsepius@rtems.org>
280
281         * libm/complex/cacos.c: Reorder function calls to work around ICE
282         in arm/thumb-gcc.
283
284 2010-10-27  Maurice Baijens  <maurice.baijens@ellips.nl>
285
286         * libc/stdlib/strtol.c: Make sure signed characters are not
287         sign-extended when converted to int and passed to ctype macros.
288         * libc/stdlib/strtoul.c: Ditto.
289         * libc/stdlib/strtoll_r.c: Ditto.
290         * libc/stdlib/strtoull_r.c: Ditto.
291
292 2010-10-18  Marco Atzeri  <marco_atzeri@yahoo.it>
293
294         * libm/Makefile.am: added complex functions documentation
295         * libm/libm.texinfo: ditto
296         * libm/complex/Makefile.am: Ditto
297         * libm/complex/complex.tex: Ditto
298         * libm/complex/(cabs.c, cacos.c, cacosh.c, carg.c,
299         casin.c, casinh.c, catan.c, catanh.c, ccos.c, ccosh.c,
300         cexp.c, cimag.c, clog.c, conj.c, cpow.c, cproj.c, creal.c,
301         csin.c, csinh.c, csqrt.c, ctan.c, ctanh.c): Ditto
302         * libm/Makefile.in: Regenerate
303         * libm/complex/Makefile.in: Ditto 
304
305 2010-10-14  Craig Howland <howland@LGSInnovations.com>
306
307         * libc/include/math.h:  Delete cabs() and cabs() prototypes
308         (c.f. 2010-10-08 change by Corinna).
309
310 2010-10-08  Bernd Schmidt  <bernds@codesourcery.com>
311         Joseph Myers  <joseph@codesourcery.com>
312
313         * configure.host: Handle tic6x targets.
314         * libc/include/machine/ieeefp.h: Define endianness for C6X.
315         * libc/include/machine/setjmp.h: Add __TMS320C6X__ case.
316         * libc/machine/configure.in: Handle tic6x targets.
317         * libc/machine/configure: Regenerate.
318         * libc/machine/tic6x/Makefile.am, libc/machine/tic6x/configure.in,
319         libc/machine/tic6x/setjmp.S: New.
320         * libc/machine/tic6x/Makefile.in, libc/machine/tic6x/aclocal.m4,
321         libc/machine/tic6x/configure: New (generated).
322
323 2010-10-08  Ralf Corsépius  <ralf.corsepius@rtems.org>
324
325         * libc/include/sys/unistd.h: Declare getsid, setegid, seteuid for RTEMS.
326
327 2010-10-08  Ralf Corsépius  <ralf.corsepius@rtems.org>
328
329         * libm/common/sf_llrint.c, libm/common/sf_round.c: Add explicit casts
330         to __uint32_t to avoid overflows on implicit casts.
331
332 2010-10-08  Ralf Corsépius  <ralf.corsepius@rtems.org>
333
334         * libm/complex/complex.tex: Add empty stub.
335
336 2010-10-08  Corinna Vinschen  <corinna@vinschen.de>
337
338         * libm/math/w_cabs.c: Delete.
339         * libm/math/wf_cabs.c: Delete.
340         * libm/math/Makefile.am (src): Remove w_cabs.c.
341         (fsrc): Remove wf_cabs.c.
342         * libm/math/Makefile.in: Regenerate.
343
344 2010-10-08  Marco Atzeri  <marco_atzeri@yahoo.it>
345
346         * libc/include/complex.h: New complex header.
347         * libm/common/fdlibm.h: Added ifdef _COMPLEX_H.
348         * libm/complex/*: New complex functions imported from NetBSD.
349         * libm/Makefile.am: Added complex subdir.
350         * libm/Makefile.in: Regenerate.
351         * libm/configure.in: Added complex subdir.
352         * libm/configure: Regenerate.
353
354 2010-10-06  Eric Blake  <eblake@redhat.com>
355
356         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
357         periodic needle having false positive.  Affects memmem, strstr,
358         strcasestr.
359
360 2010-09-21  Craig Howland <howland@LGSInnovations.com>
361
362         * libc/string/memcpy.c: Do not assign size_t parameter to int.
363         Use parameter directly, instead.
364         * libc/string/memccpy.c:  Likewise.
365         * libc/string/mempcpy.c:  Likewise.
366         * libc/string/memmove.c:  Likewise.
367
368 2010-09-09  Kevin Buettner  <kevinb@redhat.com>
369
370         * libc/sys/sysnecv850/Makefile.am (lib_a_SOURCES): Provide an
371         empty definition.
372         * libc/sys/sysnecv850/Makefile.in: Regenerate.
373
374 2010-08-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>
375
376         * libc/posix/opendir.c (opendir): Fix potential memory leak.
377
378 2010-08-10  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
379
380         * libc/include/sys/dir.h: New BSD-compatibility header.
381
382 2010-08-02  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
383
384         * libc/include/sys/features.h: Define _POSIX_MONOTONIC_CLOCK for Cygwin.
385
386 2010-08-06  Corinna Vinschen  <corinna@vinschen.de>
387
388         * libc/include/sys/stat.h: Move all POSIX-defined symbolic constants
389         out of `#ifndef _POSIX_SOURCE' guard.
390
391 2010-08-03  Craig Howland <howland@LGSInnovations.com>
392
393         * libm/common/s_lrint.c (lrint):  Annotate shift operations with
394         possible shift amount ranges, and use SAFE_RIGHT_SHIFT to avoid
395         undefined behaviour.
396         * libm/common/s_llrint.c (llrint):  Likewise.
397         * libm/common/s_lround.c (lround):  Correct some comments on ranges.
398         * libm/common/s_llround.c (llround):  Likewise.
399
400 2010-07-30  Anthony Green  <green@moxielogic.com>
401
402         * libc/sys/rtems/machine/_types.h: Add moxie support.
403
404 2010-07-23  Naveen.H.S  <naveenh1@kpitcummins.com>
405             Gina Verlekar <gina.verlekar@kpitcummins.com>
406
407         * configure.host: Compact v850* support and add
408         check for newlib_may_supply_syscalls.
409         * libc/sys/sysnecv850/Makefile.am: Add support for
410         '--disable-newlib-supplied-syscalls' option.
411         * libc/sys/sysnecv850/Makefile.in: Regenerated.
412
413 2010-07-20  Dave Korn  <dave.korn.cygwin@gmail.com>
414
415         * libm/common/fdlibm.h (SAFE_LEFT_SHIFT): New macro definition.
416         (SAFE_RIGHT_SHIFT): Likewise.
417         * libm/common/s_llround.c (llround): Annotate shift operations with
418         possible shift amount ranges, and use SAFE_RIGHT_SHIFT to avoid
419         undefined behaviour.
420         * libm/common/s_lround.c (lround): Likewise.
421
422 2010-07-19  Eric Blake  <eblake@redhat.com>
423
424         * libc/stdio/mktemp.c (_gettemp): Add parameter, all callers
425         changed.
426         (mkostemp, _mkostemp_r, mkostemps, _mkostemps_r): New interfaces,
427         for ELIX level 4.
428         * libc/include/stdlib.h (mktemp): Avoid namespace issues.
429         (mkostemp, mkostemps): Declare.
430
431 2010-07-13  Corinna Vinschen  <corinna@vinschen.de>
432
433         * libc/include/signal.h (sighandler_t): Only define if _POSIX_SOURCE
434         is undefined.
435
436 2010-07-06  Corinna Vinschen  <corinna@vinschen.de>
437
438         * libc/posix/rewinddir.c (rewinddir): Remove incorrect cast to off_t.
439         * libc/sys/rtems/sys/dirent.h (_seekdir): Add prototype.
440         * libc/sys/linux/sys/dirent.h (_seekdir): Fix prototype to use long
441         rather than off_t.
442
443 2010-07-01  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
444
445         * libc/include/signal.h (sighandler_t): Add typedef.
446
447 2010-06-29  Antony King  <antony.king@st.com>
448
449         * libc/ctype/ctype_.c (__ctype_ptr): Reinstate definition (guarded by
450         _NEED_OLD_CTYPE_PTR_DEFINITION) for backwards compatibility with newlib
451         1.16.0 and earlier.
452
453 2010-06-28  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
454
455         * libc/include/sys/stat.h: Add ACCESSPERMS, ALLPERMS, and DEFFILEMODE.
456
457 2010-06-18  Pavel Pisa <ppisa4lists@pikron.com>
458
459         * libc/include/machine/ieeefp.h[__arm__][!__VFP_FP__]: Set to
460         __IEEE_BIG_ENDIAN and set __IEEE_BYTES_LITTLE_ENDIAN appropriately
461         based on __ARMEL flag.
462         * libc/include/machine/endian.h: To set byte order to LITTLE_ENDIAN,
463         check for __IEEE_LITTLE_ENDIAN or __IEEE_BYTES_LITTLE_ENDIAN.
464
465 2010-06-09  Paul Brook  <paul@codesourcery.com>
466
467         * libc/include/sys/reent.h (_reent): Adjust _REENT_SMALL to be
468         binary compatible with normal layout.
469         (_REENT_INIT): Adjust to match struct layout.
470
471 2010-06-08  Jeff Johnston  <jjohnstn@redhat.com>
472
473         * libc/include/wordexp.h: Add __cplusplus wrapper.
474
475 2010-06-08  Jeff Johnston  <jjohnstn@redhat.com>
476
477         * configure.in: Add test for enable-newlib-register-fini
478         to set the _WANT_REGISTER_FINI flag.
479         * configure: Regenerated.
480         * Makefile.in: Ditto.
481         * newlib.hin: Add _WANT_REGISTER_FINI flag.
482         * libc/stdlib/__call_atexit.c: Add test for
483         _WANT_REGISTER_FINI to enable the register_fini function.
484
485 2010-06-04  Mark Mitchell  <mark@codesourcery.com>
486
487         * libc/stdlib/__call_atexit.c (__libc_fini): Declare.
488         (register_fini): New function.
489         * libc/misc/init.c (_fini): Remove.
490         (__libc_fini_array): Likewise.
491         * libc/misc/fini.c: New file.
492         * libc/misc/Makefile.am (LIB_SOURCES): Add fini.c.
493         * libc/misc/Makefile.in: Regenerate.
494
495 2010-05-31  Kazu Hirata  <kazu@codesourcery.com>
496
497         * libc/stdlib/mallocr.c (malloc_extend_top): Backport the
498         difference between versions 2.6.4 and 2.6.5.
499
500 2010-05-18  Christopher Faylor  <me+cygwin@cgf.cx>
501
502         * libc/string/strsignal.c (strsignal): Avoid duplicate case statement
503         where SIGPWR == SIGLOST.
504
505 2010-05-11  Jeff Johnston  <jjohnstn@redhat.com>
506
507         * libc/stdlib/__call_atexit.c: Fix lock to be of type
508         _LOCK_RECURSIVE_T as recursive usage is needed.
509
510 2010-05-11  Jeff Johnston  <jjohnstn@redhat.com>
511
512         * libc/locale/locale.c (loadlocale): Fix dangling
513         switch statement caused by __HAVE_LOCALE_INFO__ not being
514         defined.
515
516 2010-05-11  Joel Sherrill <joel.sherrill@oarcorp.com>
517
518         * libc/string/strsignal.c: New file.
519         * libc/string/Makefile.am: Add support for strsignal.
520         * libc/string/strings.tex: Ditto.
521         * libc/string/Makefile.in: Regenerated.
522
523 2010-05-05  DJ Delorie  <dj@redhat.com>
524
525         * libc/Makefile.am (stmp-sigset, stmp-iconvset, stmp-extra,
526         stmp-stdio64, stmp-posix,stmp-targetdep): Use unique temporary
527         file names to allow for parallel installs.
528         (CLEANFILES): Add new temporary file names.
529         * libc/Makefile.in: Regenerate.
530
531 2010-05-03  Corinna Vinschen  <corinna@vinschen.de>
532
533         * libc/locale/lctype.c: Include <string.h> and "setlocale.h".
534         (_C_ctype_locale): Add braces to initializer.
535         (__ctype_load_locale): Fix compiler warnings in non-Cygwin case.
536         * libc/locale/nl_langinfo.c (nl_langinfo): Expose _NL_CTYPE_MB_CUR_MAX
537         case only if __HAVE_LOCALE_INFO__ is defined.
538
539 2010-05-02  Corinna Vinschen  <corinna@vinschen.de>
540
541         * libc/stdlib/wctob.c (wctob): Reorganize and fix WEOF check.  Rename
542         pwc to pmb and convert to array to avoid buffer overflow.  Rename c to
543         wc.  Check wc for WEOF instead of for EOF.  Return first byte of pmb if
544         __wctomb conversion returned exactly one byte, EOF otherwise.
545
546 2010-04-30  Corinna Vinschen  <corinna@vinschen.de>
547
548         * libc/include/langinfo.h: Fix #endif positioning.
549
550 2010-04-28  Corinna Vinschen  <corinna@vinschen.de>
551
552         Extend locale support to maintain wide char values of native strings
553         if __HAVE_LOCALE_INFO_EXTENDED__ is defined.
554         * libc/include/langinfo.h (enum __nl_item): New type.  Define all
555         native values accessible through nl_langinfo.  Define previously
556         existing POSIX-compatible values as macros as well.
557         * libc/include/stdlib.h (__mb_cur_max): Drop declaration.
558         (__locale_mb_cur_max): Declare.
559         (MB_CUR_MAX): Re-define calling __locale_mb_cur_max.
560         * libc/locale/Makefile.am (ELIX_SOURCES): Add lctype.c.
561         * libc/locale/Makefile.in: Regenerate.
562         * libc/locale/lctype.c: New file to define and load LC_CTYPE category.
563         * libc/locale/lctype.h: New file, matching header.
564         * libc/locale/lmessages.c (_C_messages_locale): Add default values for
565         wide char members.
566         (__messages_load_locale): Add _C_messages_locale in call to 
567         __set_lc_messages_from_win.
568         * libc/locale/lmessages.h (struct lc_messages_T): Add wide char members.
569         * libc/locale/lmonetary.c (_C_monetary_locale):  Add default values for
570         wide char members.
571         (__monetary_load_locale): Add _C_monetary_locale in call to
572         __set_lc_monetary_from_win.
573         * libc/locale/lmonetary.h (struct lc_monetary_T): Add wide char members.
574         Add numerical values for international currency formatting per
575         POSIX-1.2008, if __HAVE_LOCALE_INFO_EXTENDED__ is defined.
576         * libc/locale/lnumeric.c (_C_numeric_locale): Add default values for
577         wide char members.
578         (__numeric_load_locale): Add _C_numeric_locale in call to
579         __set_lc_numeric_from_win.
580         * libc/locale/lnumeric.h (struct lc_numeric_T): Add wide char members.
581         * libc/locale/locale.c (loadlocale): Return doing nothing if category
582         locale didn't change.  Convert category if chain to switch statement.
583         Call __ctype_load_locale in LC_CTYPE case.
584         (__locale_charset): Add (but disable for now) returning codeset from
585         __get_current_ctype_locale.
586         (__locale_mb_cur_max): Add (but disable for now) returning mb_cur_max
587         from __get_current_ctype_locale.
588         (__locale_msgcharset): Add returning codeset from
589         __get_current_messages_locale.
590         (_localeconv_r): Accommodate int_XXX values.
591         * libc/locale/nl_langinfo.c (nl_ext): New array to define what is to
592         be returned for non-POSIX values.
593         (nl_Langinfo): Return correct codeset for each locale category.  Return
594         extended values if __HAVE_LOCALE_INFO_EXTENDED__ is defined.
595         * libc/locale/timelocal.c (_C_time_locale): Add default values for
596         wide char members.
597         (__time_load_locale): Add _C_time_locale in call to
598         __set_lc_time_from_win.
599         * libc/locale/timelocal.h (struct lc_time_T): Add wide char members.
600         * libc/stdio/vfwprintf.c (_VFWPRINTF_R): Use wide char decimal point
601         and thousands_sep if __HAVE_LOCALE_INFO_EXTENDED__ is defined.
602         * libc/time/strftime.c: Rework to accommodate availability of wide char
603         strings in LC_TIME category if __HAVE_LOCALE_INFO_EXTENDED__ is defined.
604
605 2010-04-22  DJ Delorie  <dj@redhat.com>
606
607         * libc/Makefile.am (SUBDEFS): Add LIBC_POSIX_DEF.
608         (libc.info): Add posix.texi.
609         (libc.dvi): Likewise.
610         (stmp-posix): New.
611         (posix.texi): New.
612         (libc_TEXINFOS): Add posix.texi.
613         * libc/configure.in (LIBC_POSIX_LIB, LIBC_POSIX_DEF): Add
614         tests.
615         * libc/libc.texinfo: Include posix.texi
616         * libc/locale/locale.c: Fix texinfo typo.
617         * libc/time/strftime.c: Fix texinfo typo.
618
619         * libc/configure: Regenerate.
620         * libc/Makefile.in: Regenerate.
621         * libc/argz/Makefile.in: Regenerate.
622         * libc/ctype/Makefile.in: Regenerate.
623         * libc/errno/Makefile.in: Regenerate.
624         * libc/iconv/Makefile.in: Regenerate.
625         * libc/iconv/ccs/Makefile.in: Regenerate.
626         * libc/iconv/ccs/binary/Makefile.in: Regenerate.
627         * libc/iconv/ces/Makefile.in: Regenerate.
628         * libc/iconv/lib/Makefile.in: Regenerate.
629         * libc/locale/Makefile.in: Regenerate.
630         * libc/misc/Makefile.in: Regenerate.
631         * libc/posix/Makefile.in: Regenerate.
632         * libc/reent/Makefile.in: Regenerate.
633         * libc/search/Makefile.in: Regenerate.
634         * libc/signal/Makefile.in: Regenerate.
635         * libc/stdio/Makefile.in: Regenerate.
636         * libc/stdio64/Makefile.in: Regenerate.
637         * libc/stdlib/Makefile.in: Regenerate.
638         * libc/string/Makefile.in: Regenerate.
639         * libc/syscalls/Makefile.in: Regenerate.
640         * libc/time/Makefile.in: Regenerate.
641         * libc/unix/Makefile.in: Regenerate.
642         * libc/xdr/Makefile.in: Regenerate.
643
644 2010-04-06  Dave Korn  <dave.korn.cygwin@googlemail.com>
645
646         * libc/stdlib/__atexit.c (__atexit_lock): Initialise as recursive
647         rather than non-recursive lock type.
648         (__register_exitproc): Use recursive locking APIs on it.
649         * libc/stdlib/__call_atexit.c (__call_exitprocs): Likewise.
650
651 2010-04-06  Corinna Vinschen  <corinna@vinschen.de>
652
653         * libc/stdlib/btowc.c (btowc): Reorganize EOF check.  Fix incorrect
654         return value if input byte is ASCII NUL.
655
656 2010-04-01  Joel Sherrill <joel.sherrill@oarcorp.com>
657
658         * libc/include/sched.h: Include prototypes for
659         sched_* methods.
660         * libc/include/sys/sched.h: Update to POSIX
661         1003.1b-2008.  Rework constants to allow sharing
662         between RTEMS and Cygwin.
663
664 2010-03-27  Corinna Vinschen  <corinna@vinschen.de>
665
666         * libc/locale/locale.c (loadlocale): Optimize "EUC" charset check.
667         Cygwin only: Allow GB2312 and EUC-CN as alternative codeset names
668         for GBK.  Add to documentation.
669         * libc/locale/nl_langinfo.c (nl_langinfo): On Cygwin, translate EUCCN
670         to GB2312.
671
672 2010-03-17  Craig Howland <howland@LGSInnovations.com>
673
674         * libc/include/sys/features.h:  Allow for _XOPEN_SOURCE to have an
675         empty definition.  Also add support for values of 500 or less.
676
677 2010-03-09  Jeff Johnston  <jjohnstn@redhat.com>
678
679         * libc/posix/telldir.c (dd_loccnt): Change start index to be 1 
680         instead of 0.
681         (_seekdir): A loc of 0 now means rewind dir.
682
683 2010-03-08  Craig Howland <howland@LGSInnovations.com>
684
685         * libm/common/s_rint.c:  Fix error when integral part had 18 bits and
686         fraction had bits set beyond first radix bit.  Also, make 2-part
687         adjustment consistent with 1-part adjustment when adjusting fractional
688         bits.
689         * libm/common/sf_rint.c:  Make fractional-bit adjustment consistent
690         with s_rint.c by setting 0b.01 instead of 0b.001.
691
692 2010-03-05  Craig Howland <howland@LGSInnovations.com>
693
694         * libm/math/ef_sqrt.c: Delete unused variable sign.
695         * libc/stdlib/getenv.c: Delete "char *_findenv_r ();", as is not a
696         proper prototype, and is properly prototyped in stdlib.h, anyway.
697         * libc/stdlib/getenv_r.c: Ditto.
698         * libc/search/hash.c: Add _DEFUN to __hash_open() declaration; add
699         #define __DBINTERFACE_PRIVATE to activate prototypes from db_local.h.
700         * libc/search/db_local.h: Correct __hash_open() prototype.
701         * libc/sys/linux/cmath/math_private.h:  Eliminate compiler warnings:
702         Remove #define INFINITY (redefines from math.h); remove #define __isnanf
703         and #define __isinff isinff.
704
705 2010-03-02  Craig Howland <howland@LGSInnovations.com>
706
707         * libc/include/sys/features.h:  Add POSIX.1-permitted definition of
708         _POSIX_C_SOURCE if not already defined and _XOPEN_SOURCE has an
709         appropriate value.  Specifically, check for POSIX.1-2008 & 2001 values.
710         * libc/include/sys/config.h:  Add #include <sys/features.h> so that all
711         includes get the new check added to it.
712
713 2010-03-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
714
715         * libc/xdr/README: Correct grammatical errors.
716         * libc/include/rpc/types.h: Add public types used
717         by RPC implementations.
718         * libc/include/rpc/xdr.h: Add defines used by RPC
719         implementations.
720         * libc/xdr/Makefile.am: Eliminate automake warning.
721         * libc/xdr/Makefile.in: Regenerate.
722
723 2010-03-02  Corinna Vinschen  <corinna@vinschen.de>
724
725         * libc/xdr/Makefile.in: Regenerate.
726
727 2010-03-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
728
729         Add eXtensible Data Record (XDR) support
730         * configure.host: Build libc/xdr only on cygwin.
731         * Makefile.am: Install xdr headers.
732         * libc/configure.in: Support new libc/xdr subdirectory.
733         * libc/Makefile.am: Support new libc/xdr subdirectory.
734         * libc/include/rpc/types.h: New.
735         * libc/include/rpc/xdr.h: New.
736         * libc/xdr/README: New.
737         * libc/xdr/Makefile.am: New.
738         * libc/xdr/dummy.c: New.
739         * libc/xdr/xdr.c: New.
740         * libc/xdr/xdr_array.c: New.
741         * libc/xdr/xdr_float.c: New.
742         * libc/xdr/xdr_float_vax.c: New.
743         * libc/xdr/xdr_mem.c: New.
744         * libc/xdr/xdr_private.c: New.
745         * libc/xdr/xdr_private.h: New.
746         * libc/xdr/xdr_rec.c: New.
747         * libc/xdr/xdr_reference.c: New.
748         * libc/xdr/xdr_sizeof.c: New.
749         * libc/xdr/xdr_stdio.c: New.
750
751         Regenerate using ac-2.63 and am-1.11.1
752         * libc/xdr/Makefile.in: New.
753         * Makefile.in: Regenerate.
754         * libc/configure: Regenerate.
755         * libc/Makefile.in: Regenerate.
756         * libc/argz/Makefile.in: Regenerate.
757         * libc/ctype/Makefile.in: Regenerate.
758         * libc/errno/Makefile.in: Regenerate.
759         * libc/iconv/ccs/binary/Makefile.in: Regenerate.
760         * libc/iconv/ccs/Makefile.in: Regenerate.
761         * libc/iconv/ces/Makefile.in: Regenerate.
762         * libc/iconv/lib/Makefile.in: Regenerate.
763         * libc/iconv/Makefile.in: Regenerate.
764         * libc/locale/Makefile.in: Regenerate.
765         * libc/misc/Makefile.in: Regenerate.
766         * libc/posix/Makefile.in: Regenerate.
767         * libc/reent/Makefile.in: Regenerate.
768         * libc/search/Makefile.in: Regenerate.
769         * libc/signal/Makefile.in: Regenerate.
770         * libc/stdio/Makefile.in: Regenerate.
771         * libc/stdio64/Makefile.in: Regenerate.
772         * libc/stdlib/Makefile.in: Regenerate.
773         * libc/string/Makefile.in: Regenerate.
774         * libc/syscalls/Makefile.in: Regenerate.
775         * libc/time/Makefile.in: Regenerate.
776         * libc/unix/Makefile.in: Regenerate.
777
778 2010-02-26  Craig Howland <howland@LGSInnovations.com>
779
780         * libm/common/s_ilogb.c:  Fix typo in comments that causes doc
781         generation to fail.
782
783 2010-02-26  Corinna Vinschen  <corinna@vinschen.de>
784
785         * libc/time/strftime.c: Add support for era and alt_digits data from
786         LC_TIME locale category.  Conditionalize using _WANT_C99_TIME_FORMATS
787         flag.
788         (STRTOUL): Define differently for building strftime or wcsftime.
789         (STRCPY): Ditto.
790         (STRCHR): Ditto.
791         (STRLEN): Ditto.
792         (CHECK_LENGTH): Define to simplify code.
793         (era_info_t): New type to store era info.
794         (get_era_info): New function to fetch era info matching incoming
795         struct tm.
796         (free_era_info): New function to free era info.
797         (alt_digits_t): New type to store alternative digits.
798         (get_alt_digits): New function to convert alt_digits string into
799         alt_digits_t structure.
800         (free_alt_digits): New function to free alt_digits info.
801         (conv_to_alt_digits): New function to convert unsigned value into
802         alternative digits.
803         (strftime): Conditionalize on _WANT_C99_TIME_FORMATS.  If
804         _WANT_C99_TIME_FORMATS is defined, define as just a wrapper function
805         providing era_info and alt_digits pointers and call ...
806         (__strftime): Rename from strftime and make static if
807         _WANT_C99_TIME_FORMATS is defined.  Add parameters for era_info and
808         alt_digits pointers.  Handle conversion modifiers according to
809         POSIX-1.2008.  Redefine %F and %Y according to POSIX.  Add default case
810         to allow to bail out on invalid conversion specifiers.
811         * libc/include/sys/config.h: Move Cygwin build flags to Cygwin's
812         config.h.
813
814         * libc/include/stdio.h: Remove __CYGWIN_USE_BIG_TYPES__ condition.
815
816 2010-02-25  Corinna Vinschen  <corinna@vinschen.de>
817
818         * libc/locale/locale.c (loadlocale): Fix typo in comment.
819
820 2010-02-25  Corinna Vinschen  <corinna@vinschen.de>
821
822         * libc/locale/locale.c: Throughout, extensively comment on the
823         reason for using __CYGWIN__.
824         (lconv): Remove _CONST entirely.
825         (loadlocale): Guard calls to function loading locale-specific
826         category data with __HAVE_LOCALE_INFO__ rather than __CYGWIN__.
827         * libc/sys/config.h (__HAVE_LOCALE_INFO__): Define for Cygwin.
828
829 2010-02-24  Charles Wilson  <...>
830
831         Work around issues with new libtool files in ..
832         * configure.in: Unconditionally call _LT_PROG_ECHO_BACKSLASH.
833         * iconvdata/configure.in: Ditto.
834         * libc/configure.in: Ditto.
835         * libc/machine/configure.in: Ditto.
836         * libc/machine/i386/configure.in: Ditto.
837         * libc/sys/configure.in: Ditto.
838         * libc/sys/linux/configure.in: Ditto.
839         * libc/sys/linux/linuxthreads/configure.in: Ditto.
840         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
841         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
842         * libc/sys/linux/machine/configure.in: Ditto.
843         * libc/sys/linux/machine/i386/configure.in: Ditto.
844         * libm/configure.in: Ditto.
845         * libm/machine/configure.in: Ditto.
846         * libm/machine/i386/configure.in: Ditto.
847         * libc/machine/sh/configure.in: Ditto.  Also, call
848         AC_NO_EXECUTABLES before NEWLIB_CONFIGURE.
849         * aclocal.m4: Regenerated.
850         * configure: Ditto.
851         * Makefile.in: Ditto.
852         * doc/aclocal.m4: Ditto.
853         * doc/Makefile.in: Ditto.
854         * libc/*/aclocal.m4: Ditto.
855         * libc/*/Makefile.in: Ditto.
856         * libc/*/configure: Ditto.
857         * libm/*/aclocal.m4: Ditto.
858         * libm/*/Makefile.in: Ditto.
859         * libm/*/configure: Ditto.
860
861 2010-02-24  Jeff Johnston  <jjohnstn@redhat.com>
862
863         * libc/stdlib/__call_exit.c: Add include of sys/lock.h.
864
865 2010-02-23  Jeff Johnston  <jjohnstn@redhat.com>
866
867         * libc/include/sys/types.h: Fix __XMK__ sectioning and remove
868         redundant code section for __XMK__.
869
870 2010-02-22  Corinna Vinschen  <corinna@vinschen.de>
871
872         * libc/include/langinfo.h (_NL_TIME_DATE_FMT): Define new nl_item
873         value for LC_TIME entry date_fmt.
874         (_DATE_FMT): Define "official" GNU name same as _NL_TIME_DATE_FMT.
875         * libc/locale/nl_langinfo.c (nl_langinfo): Add case for _DATE_FMT.
876
877 2010-02-18  Corinna Vinschen  <corinna@vinschen.de>
878
879         * libc/ctype/iswalpha.c (iswalpha): Update to Unicode 5.2.
880         * libc/ctype/iswprint.c (iswprint): Ditto.
881         * libc/ctype/iswpunct.c (iswpunct): Drop standalone implementation.
882         Define in terms of other wctype functions instead.
883         * libc/ctype/towlower.c (towlower): Update to Unicode 5.2.  Add comment
884         to explain how to fetch the data from the Unicode database.
885         * libc/ctype/towupper.c (towupper): Ditto.
886         * libc/ctype/utf8alpha.h: Ditto.
887         * libc/ctype/utf8print.h: Ditto.
888         * libc/ctype/utf8punct.h: Remove.
889         * libc/ctype/iswcntrl.c (iswcntrl): Add comment to explain how to
890         fetch the data from the Unicode database.
891
892 2010-02-18  Corinna Vinschen  <corinna@vinschen.de>
893
894         * libc/locale/timelocal.h (struct lc_time_T): Add missing ERA-related
895         members.
896         * libc/locale/timelocal.c (_C_time_local): Set new members to empty
897         strings.
898         * libc/locale/nl_langinfo.c (nl_langinfo): Return values from
899         __get_current_time_locale() for ERA related requests.
900
901 2010-02-16  Corinna Vinschen  <corinna@vinschen.de>
902
903         * libc/ctype/iswblank.c (iswblank): Remove Unicode characters
904         U+00A0 and U+200B.  Add Unicode character U+180E.  Add comment
905         to explain how to generate from Unicode data file.
906         * libc/ctype/iswspace.c (iswspace): Ditto.
907
908 2010-02-15  Corinna Vinschen  <corinna@vinschen.de>
909
910         * libc/stdio/vfwprintf.c (_VFWPRINTF_R): Apply previous patch here
911         as well.
912
913 2010-02-15  Corinna Vinschen  <corinna@vinschen.de>
914
915         * libc/stdio/vfprintf.c (_VFPRINTF_R): Drop printing a redundant
916         decimal point in case the float argument is an integral value.
917
918 2010-02-11  Craig Howland <howland@LGSInnovations.com>
919        
920         * libc/include/machine/ieeefp.h:  isfinite macro modified to run faster
921         by only calling fpclassify once instead of possibly twice.
922
923 2010-02-11  Craig Howland <howland@LGSInnovations.com>
924
925         * libm/common/s_ilogb.c:  Adjust documentation to reflect new returns
926         (see next items) and that ilogb() and ilogbf() are C99/POSIX.
927         * libm/common/s_ilogb.c (ilogb):  Use C99/POSIX FP_ILOGB0 and
928         FP_ILOGBNAN returns for 0 and NAN arguments, respectively, instead of
929         the prior -INT_MAX and INT_MAX.  The FP_ILOGBx defines in math.h
930         presently match the prior hard-codes, so no functional change is
931         actually introduced.  (Not at this time, nor planned, but the values
932         are permitted to be different, so subsequent edits of math.h could
933         possibly cause a functional change.)
934         * libm/common/sf_ilogb.c (ilogbf):  Ditto.
935
936 2010-02-09  Daniel Gutson  <dgutson@codesourcery.com>
937
938         * libc/machine/arm/arm_asm.h (_ISA_THUMB_2): __ARM_ARCH_7EM__
939         added to the preprocessor condition.
940
941 2010-02-09  Corinna Vinschen  <corinna@vinschen.de>
942
943         * libc/locale/lmessages.c (__messages_load_locale): Take additional
944         parameters for wide char to multibyte conversion.  Call
945         __set_lc_messages_from_win on Cygwin.
946         * libc/locale/lmessages.h: Make C++-safe.
947         (__messages_load_locale): Change declaration.
948         * libc/locale/lmonetary.c (__monetary_load_locale): Use
949         _monetary_locale_buf as buffer pointer.
950         * libc/locale/lnumeric.c (__numeric_load_locale): Use
951         _numeric_locale_buf as buffer pointer.
952         * libc/locale/timelocal.c (__time_load_locale): Use time_locale_buf
953         as buffer pointer.
954         * libc/locale/locale.c (loadlocale): Enable loading LC_MESSAGES data
955         on Cygwin.
956
957 2010-02-08  Josef Wolf  <jw@raven.inka.de>
958
959         * libc/machine/m68k/memcpy.S: MISALIGEND_OK should not be set for
960         __mcpu32__.
961
962 2010-02-07  Corinna Vinschen  <corinna@vinschen.de>
963
964         * libc/locale/locale.c: Add Cygwin's /usr/share/locale/locale.alias
965         support to documentation.
966         (__set_locale_from_locale_alias): Declare when build for Cygwin.
967         (loadlocale): On Cygwin, if locale can't be recognized, call
968         __set_locale_from_locale_alias to check for locale alias.
969         Define FAIL macro to replace `return NULL' statements.  Replace
970         throughout.
971
972 2010-02-07  Corinna Vinschen  <corinna@vinschen.de>
973
974         * libc/locale/locale.c: Fix typo in documentation.  Remove useless
975         _MB_CAPABLE guards within other _MB_CAPABLE guards.  Add comment
976         to remaining #endif's.
977
978 2010-02-06  Corinna Vinschen  <corinna@vinschen.de>
979
980         * libc/ctype/ctype_cp.h (_CTYPE_GEORGIAN_PS_128_254): Define.
981         (_CTYPE_GEORGIAN_PS_255): Define.
982         (_CTYPE_PT154_128_254): Define.
983         (_CTYPE_PT154_255): Define.
984         (__ctype_cp): Add array members for above ctype definitions.
985         * libc/locale/locale.c (loadlocale): Make TIS-620 charset name
986         available for all targets.  Add guards for setting the conversion
987         function pointers.  Add support for GEORGIAN-PS and PT154 charsets.
988         Change documentation to reflect current behaviour more closely.
989         * libc/locale/nl_langinfo.c (nl_langinfo): On Cygwin, translate
990         "CP101" to "GEORGIAN-PS" and "CP102" to "PT154".
991         * libc/stdlib/sb_charsets.c (__cp_conv): Add conversion arrays
992         for GEORGIAN-PS and PT154.
993         (__cp_index): Map invalid Windows codepage number 101 to
994         GEORGIAN-PS conversion array, 102 to PT154 conversion array.
995
996 2010-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
997
998         * libc/posix/telldir.c: Remove bogus nested prototype of lseek().
999
1000 2010-02-05  Corinna Vinschen  <corinna@vinschen.de>
1001
1002         * libc/locale/locale.c (loadlocale): Handle ISO-8859 and KOI8 charsets
1003         so that the dashes are optional.  Align documentation.
1004
1005 2010-02-05  Corinna Vinschen  <corinna@vinschen.de>
1006
1007         * libc/stdio/vfprintf.c: Include locale.h also if _WANT_IO_C99_FORMATS
1008         is defined.  Raise conversion buffer size to make sure it has enough
1009         room for numbers plus grouping character.  Define GROUPING flag.
1010         (_VFPRINTF_R): Add PRINTANDPAD macro.  Handle grouping flag character.
1011         Handle grouping for decimal integer and float values.
1012         * libc/stdio/vfwprintf.c: Ditto.
1013
1014 2010-02-01  Christopher Faylor  <me+cygwin@cgf.cx>
1015
1016         * libc/stdlib/__atexit.c (__atexit_lock): Define a global lock for
1017         atexit functions.
1018         (__register_exitproc): Use __atexit_lock rather than a local static
1019         lock.
1020         * libc/stdlib/__call_atexit.c: Ditto.
1021
1022 2010-01-29  Jeff Johnston  <jjohnstn@redhat.com>
1023
1024         * libc/search/Makefile.am: Create .def files for bsearch and qsort.
1025         * libc/search/Makefile.in: Regenerated.
1026         * libc/stdlib/stdlib.tex: Add bsearch and qsort.
1027
1028 2010-01-24  Corinna Vinschen  <corinna@vinschen.de>
1029
1030         * libc/locale/nl_langinfo.c (nl_langinfo): Return "CP932" when using
1031         SJIS on Cygwin.  Explain why.
1032
1033 2010-01-23  Corinna Vinschen  <corinna@vinschen.de>
1034
1035         * libc/locale/locale.c (loadlocale): Allow CP932 as alias for SJIS.
1036         Add to documentation.  Add a few comments to #endif's for Cygwin.  
1037
1038 2010-01-23  Corinna Vinschen  <corinna@vinschen.de>
1039
1040         * libc/locale/locale.c (loadlocale): Disable JIS entirely on Cygwin.
1041         Allow TIS620 and TIS-620 as aliases for CP874 on Cygwin.
1042
1043 2010-01-22  Corinna Vinschen  <corinna@vinschen.de>
1044
1045         * libc/locale/lmonetary.c (__monetary_load_locale): Take additional
1046         parameters for wide char to multibyte conversion.  Call
1047         __set_lc_monetary_from_win on Cygwin.
1048         * libc/locale/lmonetary.h: Make C++-safe.
1049         (__monetary_load_locale): Change declaration.
1050         * libc/locale/lnumeric.c (__numeric_load_locale): Take additional
1051         parameters for wide char to multibyte conversion.  Call
1052         __set_lc_numeric_from_win on Cygwin.
1053         * libc/locale/lnumeric.h: Make C++-safe.
1054         (__numeric_load_locale): Change declaration.
1055         * libc/locale/locale.c (lconv): De-constify for Cygwin.
1056         (__set_charset_from_locale): Rename from
1057         __set_charset_from_codepage.  Take locale as parameter instead of
1058         a codepage.
1059         (loadlocale): Allow "EUC-JP" for "EUCJP" and "EUC-KR" for "EUCKR".
1060         Change documnetation accordingly.  Enable LC_COLLATE, LC_MONETARY,
1061         LC_NUMERIC, and LC_TIME handling on Cygwin.
1062         (_localeconv_r): On Cygwin, copy values from monetary and numeric
1063         domain if change has been noted.
1064         * libc/locale/nl_langinfo.c (nl_langinfo): Accommodate change of
1065         am/pm layout in struct lc_time_T.
1066         * libc/locale/timelocal.c (_C_time_locale): Accommodate
1067         redefinition of am/pm members.
1068         (__time_load_locale): Take additional parameters for wide char
1069         to multibyte conversion.  Call __set_lc_time_from_win on Cygwin.
1070         * libc/locale/timelocal.h: Make C++-safe.
1071         (struct lc_time_T): Convert am and pm to a am_pm array for easier
1072         consumption by strftime and strptime.
1073         (__time_load_locale): Change declaration.
1074         * libc/time/strftime.c: Change documentation to reflect changes to
1075         strftime.  Remove locale constant strings in favor of access to
1076         locale-specifc data.
1077         (_ctloc): Define access method for locale-specifc data.
1078         (TOLOWER): Define for tolower conversion.
1079         (strftime): Throughout, convert locale-specific formats to use
1080         locale-specific data.  Add GNU-specific "%P" format.
1081         * libc/time/strptime.c: Remove locale constant strings in favor of
1082         access to locale-specifc data.
1083         (_ctloc): Define access method for locale-specifc data.
1084         (strptime): Throughout, convert locale-specific formats to use
1085         locale-specific data.
1086
1087 2010-01-20  Corinna Vinschen  <corinna@vinschen.de>
1088
1089         * libc/locale/nl_langinfo.c (nl_langinfo): On Cygwin, translate
1090         often-used charsets into Linux compatible codesets.
1091
1092 2010-01-19  Andy Koppe  <andy.koppe@gmail.com>
1093
1094         * libc/stdio/vfscanf.c (__SVFSCANF_R): Fix handling of non-ASCII
1095         characters and allow invalid bytes in format string.
1096
1097 2010-01-19  Corinna Vinschen  <corinna@vinschen.de>
1098
1099         * libc/stdlib/wcstombs_r.c (_wcstombs_r): Handle invalid characters
1100         correctly also in the s==NULL case.
1101
1102 2010-01-17  Corinna Vinschen  <corinna@vinschen.de>
1103
1104         * libc/locale/locale.c (loadlocale): Change comments to refer to
1105         ISO 639-3 rather than 639-2.
1106
1107 2010-01-17  Corinna Vinschen  <corinna@vinschen.de>
1108
1109         * libc/locale/locale.c (loadlocale): Allow three character
1110         language codes to accommodate ISO 639-2 codes.
1111
1112 2010-01-17  Corinna Vinschen  <corinna@vinschen.de>
1113
1114         * libc/locale/locale.c (lc_ctype_charset): Disable defaulting to
1115         "UTF-8" on Cygwin.
1116         (lc_message_charset): Ditto.
1117         (loadlocale): Disable setting charset of the "C" locale to "UTF-8" on
1118         Cygwin.
1119         * libc/stdlib/mbtowc_r.c (__mbtowc): Add Cygwin-specific comment.
1120         * libc/stdlib/wctomb_r.c (__wctomb): Ditto.
1121
1122 2010-01-14  Corinna Vinschen  <corinna@vinschen.de>
1123
1124         * libc/include/sys/_default_fcntl.h (O_CLOEXEC): Define as _FNOINHERIT.
1125         (F_DUPFD_CLOEXEC): Define for Cygwin.
1126         * libc/include/sys/unistd.h (dup3): Define for Cygwin.
1127         (pipe2): Ditto.
1128
1129 2010-01-14  Corinna Vinschen  <corinna@vinschen.de>
1130
1131         * libc/stdio/vfprintf.c (_VFPRINTF_R): Just wave bytes invalid in
1132         the current charset through.
1133
1134 2010-01-11  Sebastian Huber <sebastian.huber@embedded-brains.de>
1135
1136         * libc/posix/telldir.c (_cleanupdir): Fixed usage of freed memory.
1137
1138 2010-01-11  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
1139
1140         * libc/include/math.h (log2, log2f): Disable macro versions for C++,
1141         as they are incompatible with OpenMP/C++ headers.
1142
1143 2010-01-10  Corinna Vinschen  <corinna@vinschen.de>
1144
1145         * libc/stdlib/mbtowc_r.c (__ascii_mbtowc): Disallow conversion of
1146         non-ASCII chars on Cygwin.
1147         * libc/stdlib/wctomb_r.c (__ascii_wctomb): Ditto.
1148
1149 2009-12-22  Eric Blake  <ebb9@byu.net>
1150
1151         * libc/include/sys/unistd.h (suboptarg, getsubopt): Move...
1152         * libc/include/stdlib.h: ...here, to match POSIX for getsubopt.
1153
1154 2009-12-17  Jeff Johnston  <jjohnstn@redhat.com>
1155
1156         * NEWS: Update with 1.18.0 info.
1157         * README: Ditto.
1158         * acinclude.m4: Change version number to 1.18.0.
1159         * aclocal.m4: Regenerated.
1160         * configure: Ditto.
1161         * doc/aclocal.m4: Ditto.
1162         * doc/configure: Ditto.
1163         * libc/*/aclocal.m4: Ditto.
1164         * libc/*/configure: Ditto.
1165         * libc/libc.texinfo: Ditto.
1166         * libm/*/aclocal.m4: Ditto.
1167         * libm/*/configure: Ditto.
1168         * libm/libm.texinfo: Ditto.
1169         * libc/sys/linux/shared.ld: Add VERS_1.18
1170
1171 2009-12-17  Jeff Johnston <jjohnstn@redhat.com>
1172
1173         * libc/include/_syslist.h: Add _mkdir transform.
1174
1175 2009-12-17  Jerker Back  <jerker.back@gmail.com>
1176
1177         * libc/iconv/lib/local.h[!__GNUC__]: Add alternative version of
1178         ICONV_ZERO_MB_STATE_T macro.
1179         * libc/iconv/lib/ucsconv.c (ucs_based_conversion_get_state): Use
1180         temporary local variable nullstate to hold empty mbstate_t.
1181
1182 2009-12-17  Jerker Back  <jerker.back@gmail.com>
1183
1184         * libc/include/_ansi.h: Add new _EXFNPTR macro for using with
1185         function pointer arguments.
1186         * libc/iconv/lib/conv.h: Use _EXFNPTR rather than _EXPARM macro.
1187         * libc/iconv/lib/ucsconv.h: Ditto.
1188         * libc/include/stdlib.h: Use new _EXFNPTR macro for function pointers.
1189         * libc/include/sys/reent.h: Ditto.
1190         * libc/include/sys/unistd.h: Ditto.
1191         * libc/search/bsearch.c: Ditto.
1192         * libc/stdio/fseek.c: Ditto.
1193         * libc/stdio64/fseeko64.c: Ditto.
1194         * libc/stdlib/atexit.c: Ditto.
1195         * libc/stdlib/on_exit.c: Ditto.
1196
1197 2009-12-17  Ralf CorsÃ\83©pius <ralf.corsepius@rtems.org>
1198
1199         * libc/include/machine/ieeefp.h: Rework __IEEE_*_ENDIAN handling.
1200         * libc/machine/arm/machine/endian.h: Remove (Conflicts with
1201         libc/include/machine/endian.h)
1202
1203 2009-12-17  Ralf CorsÃ\83©pius <ralf.corsepius@rtems.org>
1204
1205         * libc/include/machine/setjmp.h: Set up _JBLEN #ifdef __m68k__.
1206
1207 2009-12-17  Ralf Corsepius <ralf.corsepius@rtems.org>
1208
1209         * libc/include/pthread.h: Add pthread_atfork, pthread_rwlock_unlock
1210         * libc/include/sys/stat.h: Use struct timespec st_*tim,
1211         blksize_t st_blksize, blkcnt_t st_blocks.
1212         Add st_*time compatibility macros.
1213
1214 2009-12-16  Joel Sherrill <joel.sherrill@oarcorp.com>
1215
1216         * libc/sys/rtems/machine/param.h: Only use sizeof(double) -1
1217         for ALIGNBYTES on SPARC.
1218
1219 2009-12-16  Jeff Johnston  <jjohnstn@redhat.com>
1220
1221         * libc/include/sys/errno.h: Move EHOSTDOWN, EPFNOSUPPORT,
1222         and ETOOMANYREFS into general list as they are referenced
1223         by OpenGroup and needed by RTEMS.
1224
1225 2009-12-16  Ralf CorsÃ\83©pius <ralf.corsepius@rtems.org>
1226
1227         * libc/search/hcreate.c: Don't include <sys/queue.h> (Unused).
1228
1229 2009-12-16  Ralf CorsÃ\83©pius <ralf.corsepius@rtems.org>
1230
1231         * libc/sys/rtems/machine/_types.h: New (Derived from
1232         machine/_default_types.h).
1233         * libc/sys/rtems/crt0.c: Rework. Introduce macro RTEMS_STUB.
1234         * libc/sys/rtems/sys/param.h:
1235         Update copyright notice from FreeBSD.
1236         Remove HZ.
1237         Add #include <sys/priority.h>
1238         Remove priority handling (moved to sys/priority.h).
1239         Remove CLBYTES (Unused, abandoned in BSD).
1240         * libc/sys/rtems/sys/queue.h: Update copyright (from FreeBSD).
1241         Remove CIRCLEQ_*.
1242
1243 2009-12-15  Conny Marco Menebrocker  <c-m-m@gmx.de>
1244
1245         * libc/machine/xc16x/Makefile.am: Fix typo and refer
1246         to puts.c instead of putc.c.
1247         * libc/machine/xc16x/Makefile.in: Regenerated.
1248
1249 2009-12-14  Maxim Kuvyrkov <maxim@codesourcery.com>
1250
1251         * libc/machine/m68k/memcpy.S: Patch to support
1252         boards which do not support unaligned read/write.
1253
1254 2009-12-10  Conny Marco Menebrocker  <c-m-m@gmx.de>
1255
1256         * configure.host: Add xc16x support.
1257         * libc/include/machine/ieeefp.h: Ditto.
1258         * libc/include/sys/config.h: Ditto.
1259         * libc/machine/configure.in: Ditto.
1260         * libc/machine/Makefile.in: Regenerated.
1261         * libc/machine/aclocal.m4: Ditto.
1262         * libc/machine/configure: Ditto.
1263         * libc/machine/xc16x/Makefile.am: New file.
1264         * libc/machine/xc16x/Makefile.in: Ditto.
1265         * libc/machine/xc16x/aclocal.m4: Ditto.
1266         * libc/machine/xc16x/configure: Ditto.
1267         * libc/machine/xc16x/configure.in: Ditto.
1268         * libc/machine/xc16x/putchar.c: Ditto.
1269         * libc/machine/xc16x/puts.c: Ditto.
1270         * libc/machine/xc16x/setjmp.S: Ditto.
1271
1272 2009-12-08  Eric Blake  <ebb9@byu.net>
1273
1274         Fix some *at declarations.
1275         * libc/include/stdio.h (symlinkat): Move this...
1276         * libc/include/sys/_default_fcntl.h (unlinkat): ...and this...
1277         * libc/include/sys/unistd.h (symlinkat, unlinkat): ...here, to
1278         match POSIX.
1279
1280 2009-12-03  Craig Howland <howland@LGSInnovations.com>
1281
1282         * libc/stdlib/strtod.c:  Correct "NO_REENT" to "_REENT_ONLY".
1283         * libc/stdlib/wcstod.c:  Ditto.
1284         * libc/stdlib/dtoastub.c:  Ditto.
1285
1286 2009-11-23  Corinna Vinschen  <corinna@vinschen.de>
1287
1288         Use NetBSD fix for CVE-2009-0689 security vulnerability.
1289         * libc/include/sys/reent.h (_Kmax): Define here based on the sizeof
1290         size_t, as in latest NetBSD.
1291         * libc/reent/reent.c (_reclaim_reent): Use _Kmax rather than constant
1292         value 15.
1293         * libc/stdlib/mprec.c (_Kmax): Don't define here.  Explain why.
1294
1295 2009-11-20  Nick Clifton  <nickc@redhat.com>
1296
1297         * libc/machine/rx/strncat.S (_strncat): Replace use of r6
1298         (call-saved) with r14 (call-used).
1299
1300 2009-11-18  Dave Korn  <dave.korn.cygwin@googlemail.com>
1301
1302         * libm/machine/i386/f_tan.S (_f_tan): Free fp stack register
1303         containing useless constant before advancing fp sp over it.
1304         (_f_tanf): Likewise.
1305
1306 2009-11-18  Corinna Vinschen  <corinna@vinschen.de>
1307
1308         * libc/stdio/vfprintf.c: Include ../stdlib/local.h.  Replace call to
1309         _mbtowc_r with direct call to __mbtowc.
1310         * libc/stdio/vfscanf.c: Ditto.
1311         * libc/stdlib/btowc.c: Include local.h.  Replace call to _mbtowc_r
1312         with direct call to __mbtowc.
1313         * libc/stdlib/mblen.c: Ditto.
1314         * libc/stdlib/mblen_r.c: Ditto.
1315         * libc/stdlib/mbrtowc.c: Ditto.
1316         * libc/stdlib/mbstowcs_r.c: Ditto.
1317         * libc/stdlib/mbtowc.c: Ditto.
1318         * libc/stdlib/wcrtomb.c: Include local.h.  Replace call to _wctomb_r
1319         with direct call to __wctomb.
1320         * libc/stdlib/wcsnrtombs.c: Ditto.
1321         (_wcsnrtombs_r): Ditto.
1322         * libc/stdlib/wcstombs_r.c: Ditto.
1323         * libc/stdlib/wctob.c: Ditto.
1324         * libc/stdlib/wctomb.c: Ditto.
1325
1326         * libc/stdlib/mbrtowc.c (mbrtowc): Implement independently from
1327         _mbrtowc_r, unless PREFER_SIZE_OVER_SPEED or __OPTIMIZE_SIZE__ are
1328         defined.
1329         * libc/stdlib/wcrtomb.c (wcrtomb): Implement independently from
1330         _wcrtomb_r, unless PREFER_SIZE_OVER_SPEED or __OPTIMIZE_SIZE__ are
1331         defined.
1332
1333         * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Drop unnecessary test for
1334         ch >= 0.
1335
1336 2009-11-17  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
1337
1338         * libm/common/fdlibm.h (logb, logbf): Move decls from here...
1339         * libc/include/math.h (logb, logbf): ...to here.
1340
1341 2009-11-06  Jon Turney  <jon.turney@dronecode.org.uk>
1342
1343         * libc/include/ctype.h (__ctype_lookup): Fix precedence.
1344
1345 2009-10-30  Corinna Vinschen  <corinna@vinschen.de>
1346
1347         * libc/stdio/fflush.c (_fflush_r): Store old errno to check for
1348         low-level seek error condition.  Restore old errno in case of
1349         success.  Don't use new position after seek as error condition,
1350         rather check for return value of -1 and errno.  Handle EINVAL
1351         just like ESPIPE.  Only set fp->_offset if errno is 0.
1352
1353 2009-10-27  Nick Clifton  <nickc@redhat.com>
1354
1355         * MAINTAINERS (ARM): Add myself as an ARM maintainer.
1356
1357 2009-10-26  DJ Delorie  <dj@redhat.com>
1358
1359         * configure.host: Add support for RX architecture.
1360         * libc/include/machine/ieeefp.h: Likewise.
1361         * libc/include/machine/setjmp.h: Likewise.
1362         * libc/include/machine/configure.in: Likewise.
1363         * libc/include/machine/configure: Regenerate.
1364         * libc/machine/rx: New directory.
1365         * libc/machine/rx/*: New files to support RX architecture.
1366
1367 2009-10-24  Eric Blake  <ebb9@byu.net>
1368
1369         * libc/include/ctype.h (__ctype_lookup): New macro.
1370         (isalpha, isupper, islower, isdigit, isxdigit, isspace, ispunct)
1371         (isalnum, isprint, isgraph, iscntrl, isblank): Use it to fix bug
1372         on 64-bit machines.
1373
1374 2009-10-20  Jeff Johnston  <jjohnstn@redhat.com>
1375
1376         * configure.host: Don't set -O2 flag in newlib_cflags.  Leave
1377         that to CFLAGS.
1378         * acinclude.m4: Don't reset CFLAGS before calling _AC_PROG_CC_G
1379         as it sets the same flags as we are using.
1380         * aclocal.m4: Regenerated.
1381         * configure: Ditto.
1382         * Makefile.in: Ditto.
1383         * iconvdata/aclocal.m4: Ditto.
1384         * iconvdata/configure: Ditto.
1385         * iconvdata/Makefile.in: Ditto.
1386         * doc/aclocal.m4: Ditto.
1387         * doc/configure: Ditto.
1388         * doc/Makefile.in: Ditto.
1389         * libc/aclocal.m4: Ditto.
1390         * libc/configure: Ditto.
1391         * libc/Makefile.in: Ditto.
1392         * libc/*Makefile.in: Ditto.
1393         * libc/*aclocal.m4: Ditto.
1394         * libc/*configure: Ditto.
1395         * libm/*Makefile.in: Ditto.
1396         * libm/*aclocal.m4: Ditto.
1397         * libm/*configure: Ditto.
1398
1399 2009-10-16  Jeff Johnston  <jjohnstn@redhat.com>
1400
1401         * libc/include/sys/config.h[__CYGWIN__]: Set __USE_XOPEN2K flag
1402         if not __STRICT_ANSI__ or stdc version C99 or greater.
1403         * libc/include/stdio.h[__STRICT_ANSI__]: Add __USE_XOPEN2K check
1404         for fseeko and ftello prototypes.
1405
1406 2009-10-15  Corinna Vinschen  <corinna@vinschen.de>
1407
1408         * libc/include/wchar.h (struct tm0: Declare as incomplete type.
1409
1410 2009-10-15  Corinna Vinschen  <corinna@vinschen.de>
1411
1412         * libc/locale/nl_langinfo.c (nl_langinfo): Add Cygwin-specific temporary
1413         exception for KOI8 charsets.
1414
1415 2009-10-13  Eric Blake  <ebb9@byu.net>
1416
1417         * libc/include/sys/unistd.h: Add _PC*, _CS*, and _SC* constants
1418         new to POSIX 2008.
1419
1420 2009-10-13  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
1421
1422         * libc/include/sys/signal.h: Include <sys/types.h> always.
1423         [__CYGWIN__, __rtems__]: Define kill first argument as pid_t per
1424         standards.
1425
1426 2009-10-09  Dave Korn  <dave.korn@artimi.com>
1427
1428         * libc/include/sys/time.h (_TIMEVAL_DEFINED): Define when
1429         defining struct timeval.
1430
1431 2009-10-09  Corinna Vinschen  <corinna@vinschen.de>
1432
1433         * libc/locale/locale.c (DEFAULT_LOCALE): New define.
1434         (__default_locale): New global variable set to the default locale.
1435         (__get_locale_env): Return __default_locale rather than fixed "C".
1436
1437 2009-10-08  Jeff Johnston  <jjohnstn@redhat.com>
1438
1439         * configure.host: For RTEMS, define HAVE_ASSERT_FUNC.
1440         * libc/stdlib/assert.c (_assert_func): Do not specify
1441         __assert_func if HAVE_ASSERT_FUNC flag is set.
1442
1443 2009-10-08  Eric Blake  <ebb9@byu.net>
1444
1445         * libc/include/getopt.h (__getopt_r, __getopt_long_r)
1446         (__getopt_long_only_r): Protect declarations, to avoid compiler
1447         warning.
1448
1449 2009-10-07  Corinna Vinschen  <corinna@vinschen.de>
1450
1451         * libc/locale/nl_langinfo.c (nl_langinfo): Just return current locale
1452         charset on Cygwin.
1453
1454 2009-10-03  Corinna Vinschen  <corinna@vinschen.de>
1455
1456         * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Allow CESU-8 surrogate
1457         value encoding.
1458         * libc/stdlib/wctomb_r.c (__utf8_mbtowc): Allow CESU-8 surrogate
1459         value decoding.
1460
1461 2009-09-29  Corinna Vinschen  <corinna@vinschen.de>
1462
1463         * libc/locale/locale.c (loadlocale): Allow "C." same as "C-" as locale
1464         prefix.  Add some words to documentation.
1465
1466 2009-09-29  Corinna Vinschen  <corinna@vinschen.de>
1467
1468         * libc/stdlib/sb_charsets.c: Throughout, translate undefined
1469         characters to their corresponding Windows Unicode value.
1470
1471 2009-09-28  Michael Eager <eager@eagercon.com>
1472
1473         * configure.host: Add microblaze.
1474         * libc/include/machine/ieeefp.h [MICROBLAZE]: Define __IEEE_BIG_ENDIAN.
1475         * libc/include/machine/setjmp.h [MICROBLAZE]: Define _JBLEN, _JBTYPE.
1476         * libc/include/sys/config.h [MICROBLAZE]: Define _REENT_SMALL,
1477         _UNIX98_THREAD_MUTEX_ATTRIBUTES.
1478         * libc/include/sys/types.h: Treat XMK like rtems, define
1479         PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE,
1480         PTHREAD_MUTEX_DEFAULT, PTHREAD_STACK_MIN, define stuct pthread_attr_s.
1481         * libc/machine/configure.in: Add microblaze.
1482         * libc/machine/configure: Add microblaze (not regenerated).
1483         * libc/machine/microblaze/configure.in: NEW.
1484         * libc/machine/microblaze/configure: Generate.
1485         * libc/machine/microblaze/Makefile.am: NEW.
1486         * libc/machine/microblaze/Makefile.in: Generate.
1487         * libc/machine/microblaze/{abort.c, strcmp.c, strcpy.c, strlen.c,
1488         mallocr.c, longjmp.S, setjmp.S}: NEW.
1489         * libc/stdlib/mallocr.c [MICROBLAZE]: Don't declare sbrk prototype,
1490         mALLOc(): return malloc value.
1491
1492 2009-09-27  Corinna Vinschen  <corinna@vinschen.de>
1493
1494         * libc/locale/locale.c (lc_ctype_charset): Set to "UTF-8" on Cygwin.
1495         (lc_message_charset): Ditto.
1496         (loadlocale): Set charset of the "C" locale to "UTF-8" on Cygwin.
1497         * libc/stdlib/mbtowc_r.c (__mbtowc): Default to __utf8_mbtowc on
1498         Cygwin.
1499         * libc/stdlib/wctomb_r.c (__wctomb): Default to __utf8_wctomb on
1500         Cygwin.
1501
1502 2009-09-26  Eric Blake  <ebb9@byu.net>
1503
1504         * libc/include/sys/unistd.h (execvpe, fexecve) [__CYGWIN__]:
1505         Add declarations.
1506
1507 2009-09-24  Eric Blake  <ebb9@byu.net>
1508
1509         * libc/include/sys/unistd.h (eaccess, euidaccess) [__CYGWIN__]:
1510         Add declarations.
1511
1512 2009-09-23  Corinna Vinschen  <corinna@vinschen.de>
1513
1514         * libc/locale/locale.c: Drop Cygwin-specific windows.h include.
1515         (loadlocale): Call __set_charset_from_codepage with 0 codepage.
1516
1517 2009-09-22  Ralf Corsépius <ralf.corsepius@rtems.org>
1518
1519         * libc/include/stdlib.h: Add posix_memalign.
1520
1521 2009-09-22  Ralf Corsépius <ralf.corsepius@rtems.org>
1522
1523         * configure.host (*-rtems*): Remove -DMISSING_SYSCALL_NAMES.
1524         Add -DHAVE_BLKSIZE, -D_NO_WORDEXP -D_NO_POPEN.
1525
1526 2009-09-22  Ralf Corsépius <ralf.corsepius@rtems.org>
1527
1528         * configure.host (m32c): Move setting -DABORT_PROVIDED to second
1529         "case $host".
1530
1531 2009-09-18  Christopher Faylor  <me+cygwin@cgf.cx>
1532
1533         * libc/include/sys/unistd.h: Declare getpagesize as returning
1534         POSIX-mandated int.
1535         * libc/sys/linux/sys/unistd.h: Ditto.
1536
1537 2009-08-31  Takaki Makino  <t@snowelm.com>
1538
1539         * libm/machine/i386/f_pow.c(_f_pow): Alter ASM so it works with
1540         newer gcc versions.
1541         * libm/maachine/i386/f_powf.c(_f_powf): Ditto.
1542
1543 2009-08-25  Andy Koppe  <andy.koppe@gmail.com>
1544
1545         * libc/stdlib/sb_charsets.c (__micro_atoi): Allow five-digit codepage
1546         numbers.
1547         * libc/locale/locale.c (loadlocale): Set MB_CUR_MAX to 1 for KOI8
1548         charsets.
1549         * libc/stdlib/local.h (__cp_conv): Remove incorrect number of codepages.
1550
1551 2009-08-24  Corinna Vinschen  <corinna@vinschen.de>
1552
1553         * libc/locale/locale.c: Update documentation.
1554         (loadlocale): Map "KOI8-R" and "KOI8-U" to CP20866 and CP21866.
1555
1556 2009-08-24  Andy Koppe  <andy.koppe@gmail.com>
1557
1558         * libc/stdlib/sb_charsets.c (__cp_conv): Add KOI8-R (Russian, CP20866)
1559         and KOI8-U (Ukrainian, CP21866) to Windows codepage conversion tables.
1560         * libc/ctype/ctype_cp.h (__ctype_cp): Likewise for ctype tables.
1561
1562 2009-08-24  Andy Koppe  <andy.koppe@gmail.com>
1563
1564         * libc/ctype/iswspace.c (iswspace): Include "non-breaking
1565         space" (U+00A0).
1566         * libc/ctype/iswblank.c (iswblank): Likewise.
1567
1568 2009-08-21  Corinna Vinschen  <corinna@vinschen.de>
1569
1570         * libc/locale/locale.c (loadlocale): Throughout check charset string
1571         case insensitive and store internal charset string uppercased.  Allow
1572         "UTF8" additionally to "UTF-8".  Add this change to documentation.
1573
1574 2009-08-21  Eric Blake  <ebb9@byu.net>
1575
1576         * libc/include/iconv.h (iconv): Match POSIX prototype.
1577         * libc/iconv/lib/iconv.c (iconv): Likewise.
1578
1579 2009-08-21  Craig Howland <howland@LGSInnovations.com>
1580
1581         * libm/common/s_remquo.c (remquo):  Fix sign of quotient when |x|==|y|.
1582         * libc/stdio/mktemp.c:  Add #include <stdlib.h> for function prototypes.
1583
1584 2009-08-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1585
1586         * iconvdata/Makefile.am (all): Remove.
1587         * libc/sys/a29khif/Makefile.am (all-am): Rename from ...
1588         (all): ... this.
1589         * libc/sys/arc/Makefile.am: Likewise.
1590         * libc/sys/arm/Makefile.am: Likewise.
1591         * libc/sys/d10v/Makefile.am: Likewise.
1592         * libc/sys/decstation/Makefile.am: Likewise.
1593         * libc/sys/h8300hms/Makefile.am: Likewise.
1594         * libc/sys/h8500hms/Makefile.am: Likewise.
1595         * libc/sys/linux/Makefile.am: Likewise.
1596         * libc/sys/linux/machine/i386/Makefile.am: Likewise.
1597         * libc/sys/m88kbug/Makefile.am: Likewise.
1598         * libc/sys/mmixware/Makefile.am: Likewise.
1599         * libc/sys/netware/Makefile.am: Likewise.
1600         * libc/sys/rdos/Makefile.am: Likewise.
1601         * libc/sys/rtems/Makefile.am: Likewise.
1602         * libc/sys/sh/Makefile.am: Likewise.
1603         * libc/sys/sparc64/Makefile.am: Likewise.
1604         * libc/sys/sun4/Makefile.am: Likewise.
1605         * libc/sys/sysmec/Makefile.am: Likewise.
1606         * libc/sys/sysnec810/Makefile.am: Likewise.
1607         * libc/sys/sysnecv850/Makefile.am: Likewise.
1608         * libc/sys/sysvi386/Makefile.am: Likewise.
1609         * libc/sys/sysvnecv70/Makefile.am: Likewise.
1610         * libc/sys/tic80/Makefile.am: Likewise.
1611         * libc/sys/w65/Makefile.am: Likewise.
1612         * libc/sys/z8ksim/Makefile.am: Likewise.
1613         * iconvdata/Makefile.in: Regenerate.
1614         * libc/sys/a29khif/Makefile.in: Likewise.
1615         * libc/sys/arc/Makefile.in: Likewise.
1616         * libc/sys/arm/Makefile.in: Likewise.
1617         * libc/sys/d10v/Makefile.in: Likewise.
1618         * libc/sys/decstation/Makefile.in: Likewise.
1619         * libc/sys/h8300hms/Makefile.in: Likewise.
1620         * libc/sys/h8500hms/Makefile.in: Likewise.
1621         * libc/sys/linux/Makefile.in: Likewise.
1622         * libc/sys/linux/machine/i386/Makefile.in: Likewise.
1623         * libc/sys/m88kbug/Makefile.in: Likewise.
1624         * libc/sys/mmixware/Makefile.in: Likewise.
1625         * libc/sys/netware/Makefile.in: Likewise.
1626         * libc/sys/rdos/Makefile.in: Likewise.
1627         * libc/sys/rtems/Makefile.in: Likewise.
1628         * libc/sys/sh/Makefile.in: Likewise.
1629         * libc/sys/sparc64/Makefile.in: Likewise.
1630         * libc/sys/sun4/Makefile.in: Likewise.
1631         * libc/sys/sysmec/Makefile.in: Likewise.
1632         * libc/sys/sysnec810/Makefile.in: Likewise.
1633         * libc/sys/sysnecv850/Makefile.in: Likewise.
1634         * libc/sys/sysvi386/Makefile.in: Likewise.
1635         * libc/sys/sysvnecv70/Makefile.in: Likewise.
1636         * libc/sys/tic80/Makefile.in: Likewise.
1637         * libc/sys/w65/Makefile.in: Likewise.
1638         * libc/sys/z8ksim/Makefile.in: Likewise.
1639
1640         * configure.in (newlib_cv_ldbl_eq_dbl): Rename cache variable
1641         from newlib_ldbl_eq_dbl.
1642         * configure: Regenerate.
1643
1644 2009-08-19  Eric Blake  <ebb9@byu.net>
1645
1646         * libc/Makefile.am (SUBDEFS): Correctly build popen docs.
1647         * libc/libc.texinfo (Top): Add posix node to menu.
1648
1649 2009-08-18  Jeff Johnston  <jjohnstn@redhat.com>
1650
1651         * newlib.hin: Add comment regarding file being manually edited.
1652         * Makefile.am: Add no-op rule for newlib.hin.
1653         * Makefile.in: Regenerated.
1654
1655 2009-08-18  Jeff Johnston  <jjohnstn@redhat.com>
1656
1657         * acconfig.h: Add templates for _HAVE_LONG_DOUBLE and _LDBL_EQ_DBL.
1658
1659 2009-08-18  Eric Blake  <ebb9@byu.net>
1660
1661         * libc/posix/popen.c (popen): Fix documented prototype.
1662
1663         Improve popen compatibility with glibc.
1664         * libc/posix/popen.c (popen): The 2006-08-22 change to use
1665         FD_CLOEXEC disagrees with other implementations; instead, use
1666         pidlist to work even when fcntl is not available.  Meanwhile,
1667         support the 'e' modifier to set CLOEXEC, as in glibc.  Drop
1668         cygwin-specific code, now that cygwin has its own version.
1669         * libc/posix/Makefile.am (CHEWOUT_FILES): Document popen.
1670         * libc/posix/posix.tex: New file.
1671
1672 2009-08-17  Craig Howland <howland@LGSInnovations.com>
1673
1674         * libc/string/wcsncpy.c (wcsncpy):  Re-write function based on small
1675         version of strncpy() (fixing two bugs).
1676
1677 2009-08-13  Corinna Vinschen  <corinna@vinschen.de>
1678
1679         * libc/stdio/mktemp.c (mkdtemp): Fix typo in function name.
1680
1681 2009-08-12  Jeff Johnston  <jjohnstn@redhat.com>
1682
1683         * libc/stdio/mktemp.c (_gettemp): Do not call _mkdir_r unless
1684         HAVE_MKDIR is defined.
1685
1686 2009-08-12  Hans-Peter Nilsson  <hp@axis.com>
1687
1688         * libc/include/reent.h: Add prototype and definition of _mkdir_r.
1689         * libc/reent/Makefile.am (GENERAL_SOURCES): Add mkdirr.c.
1690         (CHEWOUT_FILES): Add mkdirr.def.
1691         * libc/reent/Makefile.in: Regenerate.
1692         * libc/reent/mkdirr.c: New file.
1693
1694 2009-08-10  Jeff Johnston  <jjohnstn@redhat.com>
1695
1696         * libc/stdlib/wcstombs.c: Change documentation to specify size_t
1697         return type instead of int.
1698
1699 2009-07-29  Jeff Johnston  <jjohnstn@redhat.com>
1700
1701         * libc/stdlib/a64l.c: Fix to use 'a' instead of 'A' in calculation
1702         when a lower-case character is detected.
1703
1704 2009-07-29  Corinna Vinschen  <corinna@vinschen.de>
1705
1706         * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Rework UTF-16 surrogate
1707         pair handling to be more bullet-proof even with incomplete UTF-8
1708         sequences.  Add check for 4 byte sequences resulting in values
1709         outside the valid Unicode range.  Add a comment to clarify checking
1710         for invalid CESU-8 sequences.
1711
1712 2009-07-28  Corinna Vinschen  <corinna@vinschen.de>
1713
1714         * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Fix incrementing n in case
1715         of handling incomplete sequences.
1716
1717 2009-07-22  Eric Blake  <ebb9@byu.net>
1718
1719         Avoid a fault from locking a closed standard file.
1720         * libc/stdio/fflush.c (_fflush_r): Give up early if stream has
1721         been previously closed.
1722
1723 2009-07-09  Craig Howland <howland@LGSInnovations.com>
1724
1725         * libm/math/ef_scalb.c:  Replace isnanf() (pre-C99 function call) with
1726         isnan() (C99 macro).
1727         * libm/math/wf_log.c:  Ditto.
1728         * libm/math/wf_j0.c:  Ditto.
1729         * libm/math/wf_sqrt.c:  Ditto.
1730         * libm/math/wf_pow.c:  Ditto.
1731         * libm/math/wf_fmod.c:  Ditto.
1732         * libm/math/wf_remainder.c:  Ditto.
1733         * libm/math/wf_scalb.c:  Ditto.
1734         * libm/math/wf_atanh.c:  Ditto.
1735         * libm/math/wf_cosh.c:  Ditto.
1736         * libm/math/wf_acos.c:  Ditto.
1737         * libm/math/wf_acosh.c:  Ditto.
1738         * libm/math/wf_jn.c:  Ditto.
1739         * libm/math/wf_log10.c:  Ditto.
1740         * libm/math/wf_asin.c:  Ditto.
1741         * libm/math/wf_j1.c:  Ditto.
1742         * libm/common/sf_isnan.c:  Add #include <ieeefp.h>, fix comment.
1743         * libm/common/sf_isinf.c:  Add #include <ieeefp.h>, adjust comment to
1744         match that from s_isinf.c.
1745         * libc/include/machine/ieeefp.h:  Simplify isinf and isnan macros to
1746         remove un-necessary extension use (in a similar manner to as was
1747         recently done in math.h).
1748         * libc/include/math.h:  Remove isnanf and isinff prototypes (are in
1749         ieeefp.h).
1750         * libm/machine/spu/sf_isinf.c:  Fix comment (remove <math.h>).
1751
1752 2009-07-06  Joel Sherrill <joel.sherrill@oarcorp.com>
1753
1754         * libc/include/sys/features.h: Enable UNIX98 mutex attributes
1755         for RTEMS.
1756
1757 2009-07-03  Eric Blake  <ebb9@byu.net>
1758
1759         Add mkdtemp, mkstemps.
1760         * libc/stdio/mktemp.c: Fix documentation.
1761         (_gettemp): Add domkdir and length parameters.  Check for
1762         insufficient 'X' suffix.  Drop cygwin-specific code.
1763         (_mkstemp_r, _mktemp_r, mkstemp, mktemp): Adjust clients.
1764         (_mkdtemp_r, _mkstemps_r, mkdtemp, mkstemps): New functions.
1765         * libc/include/stdlib.h (_mkdtemp_r, _mkstemps_r, mkdtemp)
1766         (mkstemps): Declare them.
1767
1768         Add fpurge.
1769         * libc/stdio/fpurge.c (fpurge, _fpurge_r): New file.
1770         * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES, fpurge):
1771         Build it.
1772         * libc/stdio/Makefile.in: Regenerated.
1773         * libc/include/stdio.h (fpurge, _fpurge_r): New declarations.
1774         * libc/stdio/stdio.tex: Build documentation.
1775
1776 2009-06-23  Jeff Johnston  <jjohnstn@redhat.com>
1777
1778         * Makefile.am (MATHOBJS_IN_LIBC): Add s_fpclassify and
1779         sf_fpclassify as these are now used for infinity testing.
1780         * Makefile.in: Regenerated.
1781
1782 2009-06-19  Joel Sherrill <joel.sherrill@oarcorp.com>
1783
1784         * libc/sys/rtems/machine/param.h: Change ALIGNBYTES
1785         so it can point to an aligned structure or double.
1786
1787 2009-06-18  Corinna Vinschen  <corinna@vinschen.de>
1788
1789         * libc/locale/locale.c (loadlocale): Add handling of "@cjknarrow"
1790         modifier on _MB_CAPABLE targets.  Add comment to explain.  Improve
1791         documentation.
1792
1793 2009-06-17  Michael Eager <eager@eagercon.com>
1794
1795         * libc/include/pthread.h: Support XMK (Xilinx) BSP, add RTEMS to
1796         PTHREAD_MUTEX_NORMAL.
1797         * libc/include/sys/features.h: Same.
1798         * libc/include/sys/types.h: Same.
1799
1800 2009-06-16  Corinna Vinschen  <corinna@vinschen.de>
1801
1802         * libc/include/locale.h (struct lconv): Add missing members required
1803         by POSIX.1-2008.
1804         * libc/locale/locale.c (lconv): Initialize new members to default
1805         values in "C" locale.
1806
1807 2009-06-16  Corinna Vinschen  <corinna@vinschen.de>
1808
1809         * libc/stdio/vfprintf.c (_VFPRINTF_R): Use actual length of
1810         radix char instead of assuming length 1.
1811         * libc/stdlib/gdtoa-gethex.c: Remove use of USE_LOCALE.
1812         (gethex): Allow multibyte decimal point.
1813         Fix compiler warnings due to different signedness of pointer types.
1814         * libc/stdlib/strtod.c: Remove use of USE_LOCALE.
1815         (_strtod_r): Allow multibyte decimal point.
1816         * libc/stdlib/wcstod.c (_wcstod_r): Evaluate correct wide char
1817         endptr position if the decimal point is a multibyte char.
1818
1819 2009-06-16  Craig Howland <howland@LGSInnovations.com>
1820
1821         * libc/ctype/local.h (__locale_charset): Add arguments to
1822         prototype
1823         * libc/stdlib/local.h (__locale_charset): Ditto.
1824
1825 2009-06-16  Craig Howland <howland@LGSInnovations.com>
1826
1827         * libc/include/math.h:  Simplify fpclassify, isinf, isnan, and signbit
1828         macros to remove un-necessary extension use.  isinf and isnan also
1829         changed to use fpclassify.  isfinite macro modified to run faster by
1830         only calling fpclassify once instead of possibly twice.
1831
1832 2009-06-09  Corinna Vinschen  <corinna@vinschen.de>
1833
1834         * libc/ctype/tolower.c (tolower): Cast conversion result from
1835         mbtowc/wctomb to unsigned char to avoid negative return values.
1836         * libc/ctype/toupper.c (toupper): Ditto.
1837
1838 2009-06-03  IWAMURO Motonori  <deenheart@gmail.com>
1839
1840         * libc/string/wcwidth.c: Optimize for speed.
1841
1842 2009-06-03  Corinna Vinschen  <corinna@vinschen.de>
1843
1844         * libc/locale/locale.c (lc_ctype_cjk_lang): New static int.
1845         (loadlocale): In case of setting LC_CTYPE, set lc_ctype_cjk_lang
1846         to 1 if the language is "jp", "ko", or "zh", to 0 otherwise.
1847         (__locale_cjk_lang): New function.
1848         * libc/string/local.h (__locale_cjk_lang): Declare.
1849         * libc/string/wcwidth.c: Fix comments.
1850         (__wcwidth): Handle CJK Ambiguous Width characters according
1851         to setting returned by __locale_cjk_lang.
1852
1853 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
1854
1855         * libc/include/sys/config.h: Remove specification of _REENT_SMALL for
1856         thumb2.
1857
1858 2009-06-02  IWAMURO Motonori  <deenheart@gmail.com>
1859
1860         * libc/ctype/jp2uc.c: Skip all definition if defined __CYGWIN__.
1861         (__jp2uc): Change the scope to static function.
1862         * libc/ctype/local.h (_jp2uc): Define as macro if defined __CYGWIN__.
1863         * libc/string/local.h (_jp2uc): Include ../ctype/local.h.
1864
1865 2009-05-27  Neal H. Walfield  <neal@gnu.org>
1866
1867         * libc/include/machine/setjmp.h (sigjmp_buf): Size according to
1868         _JBTYPE and the size of sigset_t.
1869
1870 2009-05-15  Craig Howland <howland@LGSInnovations.com>
1871
1872         * configure.in:  Add configuration test for long double type existing
1873         and set flag _HAVE_LONG_DOUBLE if true.  Fix INIT_ARRAY (.init_array)
1874         and _LDBL_EQ_DBL tests to not link so that will work with
1875         cross-compilers.
1876         * configure: Regenerated.
1877         * Makefile.in: Ditto.
1878         * newlib.hin: Add _HAVE_LONG_DOUBLE flag.
1879         * libc/include/math.h:  Change non-builtin defines for HUGE_VAL,
1880         HUGE_VALF, and HUGE_VALL to be constant expressions.  Add definitions
1881         for the non-builtin case for INFINITY and NAN.  Gate HUGE_VALL and
1882         union __ldmath definitions with (new) _HAVE_LONG_DOUBLE.
1883         *libm/common/s_infconst.c:  Change definitions to use values from
1884         float.h instead of non-so-portable integer forms.  Mark as being
1885         deprecated (because now removed from math.h, are not used anywhere
1886         in Newlib, itself).
1887
1888 2009-05-15  Corinna Vinschen  <corinna@vinschen.de>
1889
1890         * libc/string/local.h: New file.
1891         * libc/string/wcswidth.c (wcswidth):  Convert japanese wide
1892         characters to Unicode here.  Handle surrogate pairs for UTF-16
1893         systems.  Call __wcwidth rather than wcwidth.
1894         * libc/string/wcwidth.c: New implementation using Markus Kuhn's
1895         wcwidth implementation for Unicode.
1896         (bisearch): New static function.
1897         (__wcwidth): New function.  Take wint_t rather than wchar_t as
1898         parameter to allow full Unicode handling on UTF-16 systems.
1899         Move old wcwidth implementation here for non-multibyte aware
1900         systems.
1901         (wcwidth): Convert japanese wide characters to Unicode here.
1902         Call __wcwidth rather than using iswprint/iswcntrl.
1903
1904 2009-05-14  Corinna Vinschen  <corinna@vinschen.de>
1905
1906         * libc/ctype/local.h (JP_JIS, JP_SJIS, JP_EUCJP): Move definition
1907         to jp2uc.c.
1908         (__jp2uc): Remove declaration.
1909         (_jp2uc): Declare.
1910         * libc/ctype/jp2uc.c (JP_JIS, JP_SJIS, JP_EUCJP): Define.
1911         (__jp2uc): Remove Cygwin special case.
1912         (_jp2uc): New function.  On Cygwin, just return c.
1913         * libc/ctype/iswalpha.c (iswalpha): Just call _jp2uc.
1914         * libc/ctype/iswblank.c (iswblank): Ditto.
1915         * libc/ctype/iswcntrl.c (iswcntrl): Ditto.
1916         * libc/ctype/iswprint.c (iswprint): Ditto.
1917         * libc/ctype/iswpunct.c (iswpunt): Ditto.
1918         * libc/ctype/iswspace.c (iswspace): Ditto.
1919         * libc/ctype/towlower.c (towlower): Ditto.
1920         * libc/ctype/towupper.c (towupper): Ditto.
1921
1922 2009-05-13  Paul Brook  <paul@codesourcery.com>
1923
1924         * libc/machine/arm/setjmp.S: Don't bother saving IP.  Copy SP to
1925         IP before saving.  Likewise when restoring.
1926
1927 2009-05-13  Paul Brook  <paul@codesourcery.com>
1928
1929         * libc/machine/arm/setjmp.S: Add ARMv6-M implementation.
1930
1931 2009-05-13  Corinna Vinschen  <corinna@vinschen.de>
1932
1933         * libc/locale/locale.c (setlocale): Don't build on Cygwin.
1934
1935 2009-05-11  Craig Howland <howland@LGSInnovations.com>
1936
1937         * libm/machine/i386/f_llrint.c: Remove llrint() definition.
1938         * libm/machine/i386/f_llrintf.c: Remove llrintf() definition.
1939
1940 2009-05-08  Nick Clifton  <nickc@redhat.com>
1941
1942         * MAINTAINERS: Add myself as a maintainer for the MN10300 and to
1943         the write-after-approval list.
1944
1945 2009-04-30  Anthony Green  <green@moxielogic.com>
1946
1947         * MAINTAINERS: Add myself as moxie maintainer and to the
1948         write-after-approval list.
1949
1950 2009-04-30  Eric Blake  <ebb9@byu.net>
1951
1952         Allow gcc warning for toupper even with extended charsets.
1953         * libc/include/ctype.h (toupper, tolower)
1954         [_MB_EXTENDED_CHARSETS_ISO]: Allow gcc warning when called with
1955         'char' even when we must call the function for correct behavior.
1956         [!_MB_EXTENDED_CHARSETS_ISO]: Fix regression in result type.
1957
1958 2009-04-24  Jeff johnston  <jjohnstn@redhat.com>
1959
1960         * libc/stdio/fgetc.c: Make sure sfp lock is acquired before the
1961         file lock and released before the file lock to avoid a deadlock
1962         scenario.
1963         * libc/stdio/fgets.c: Ditto.
1964         * libc/stdio/fgetwc.c: Ditto.
1965         * libc/stdio/fgetws.c: Ditto.
1966         * libc/stdio/fread.c: Ditto.
1967         * libc/stdio/fseek.c: Ditto.
1968         * libc/stdio/getc.c: Ditto.
1969         * libc/stdio/getdelim.c: Ditto.
1970         * libc/stdio/gets.c: Ditto.
1971
1972 2009-04-24  Jeff johnston  <jjohnstn@redhat.com>
1973
1974         * configure.in: Add configuration test for long double equals dbl
1975         and set flag _LDBL_EQ_DBL if true.
1976         * configure: Regenerated.
1977         * newlib.hin: Add _LDBL_EQ_DBL flag.
1978         * libc/include/math.h: Use _LDBL_EQ_DBL flag instead of
1979         _HAVE_LDBL_MATH.
1980         * libc/include/stdlib.h: Use _LDBL_EQ_DBL flag instead of
1981         _HAVE_LDBL_STDLIB.
1982         * libc/common/local.h: Remove _LDBL_EQ_DBL flag setting.
1983         * libc/stdlib/local.h: Ditto.
1984
1985 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
1986
1987         * libc/include/stdint.h (UINTPTR_MAX): Define to __UINTPTR_MAX__
1988         if __UINTPTR_MAX__ defined.
1989
1990 2009-04-24  Eric Blake  <ebb9@byu.net>
1991
1992         Be namespace clean in ctype.h.
1993         * libc/include/ctype.h (_tolower, _toupper, isalpha, isupper)
1994         (islower, isdigit, isxdigit, isspace, ispunct, isalnum)
1995         (isprint, isgraph, iscntrl, isblank, toupper, tolower)
1996         (isascii, toascii): Don't use 'c' as macro parameter name.
1997
1998         Trigger gcc warning if isFoo macros are called with plain char.
1999         * libc/include/ctype.h (isalpha, isupper, islower, isdigit)
2000         (isxdigit, isspace, ispunct, isalnum, isprint, isgraph)
2001         (iscntrl, isblank, toupper, tolower): Rewrite to let 'gcc -Wall'
2002         warn when user calls macro with a char argument.
2003
2004 2009-04-23  Mike Burgess  <wizardsguild@earthlink.net>
2005
2006         * libc/string/strcasecmp.c: Optimized rewrite.
2007         * libc/string/strncasecmp.c: Fix description.
2008         * libc/string/strlwr.c: Avoid passing signed char to tolower.
2009         * libc/string/strupr.c: Avoid passing signed char to tolower.
2010
2011 2009-04-23  Paul Brook  <paul@codesourcery.com>
2012             Kazu Hirata  <kazu@codesourcery.com>
2013
2014         * libc/stdlib/__atexit.c (__register_exitproc): Use weak reference
2015         to malloc.  Allocate dynamically only if it is present.
2016         * libc/stdlib/__call_atexit.c (__call_exitprocs): Use weak
2017         reference to free.  Call free only if it is present.
2018
2019 2009-04-22 Anthony Green <green@moxielogic.com>
2020
2021         * configure.host: Add moxie support.
2022         * libc/machine/configure.in: Add moxie support.
2023         * libc/machine/configure: Rebuilt.
2024         * libc/machine/moxie/aclocal.m4: New file.
2025         * libc/machine/moxie/configure: New file.
2026         * libc/machine/moxie/configure.in: New file.
2027         * libc/machine/moxie/Makefile.am: New file.
2028         * libc/machine/moxie/Makefile.in: New file.
2029         * libc/machine/moxie/setjmp.S: New file.
2030         * libc/include/machine/setjmp.h (_JBLEN): Define for moxie.
2031         * libc/include/machine/ieeefp.h: Add moxie support.
2032
2033 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
2034
2035         * libc/stdio/local.h (__chclass, __state_table, __action_table):
2036         Add extern to the declarations.
2037         * libc/stdlib/local.h (__iso_8859_conv, __cp_conv): Likewise.
2038
2039 2009-04-21  Corinna Vinschen  <corinna@vinschen.de>
2040
2041         * libc/ctype/ctype_.c (_CTYPE_DATA_128_255): Rename from
2042         _CTYPE_DATA_128_256.
2043         * libc/ctype/ctype_cp.h: Split off all character class values for
2044         character 255 from the rest of the definitions.
2045         (__ctype_cp): Use the new definitions.  Make sure that the table
2046         always contains 0 for EOF (-1).
2047         * libc/ctype/ctype_iso.h: Ditto.
2048
2049 2009-04-21  Sandra Loosemore  <sandra@codesourcery.com>
2050
2051         * libc/reent/impure.c (__sf_fake_stdin, __sf_fake_stdout)
2052         (__sf_fake_stderr): Declare locally with weak attribute.
2053
2054 2009-04-21  Mark Mitchell  <mark@codesourcery.com>
2055
2056         * libc/include/_ansi.h: Move C++ defines to top of file.
2057         (_NOTHROW): New macro.
2058         (_EXFUN_NOTHROW): Likewise.
2059         * libc/include/stdlib.h (calloc): Declare with _EXFUN_NOTHROW.
2060         (free): Likewise.
2061         (malloc): Likewise.
2062         (realloc): Likewise.
2063         (_malloc_r): Likewise.
2064         (_callor_r): Likewise.
2065         (_free_r): Likewise.
2066         (_realloc_r): Likewise.
2067
2068 2009-04-20  Jeff johnston  <jjohnstn@redhat.com>
2069
2070         * libc/include/math.h: Change _LDBL_EQ_DBL flag usage to
2071         be _HAVE_LDBL_MATH.
2072         * libc/include/stdlib.h: Change _LDBL_EQ_DBL flag usage to
2073         be _HAVE_LDBL_STDLIB.
2074
2075 2009-04-17  Jeff johnston  <jjohnstn@redhat.com>
2076
2077         * libc/include/machine/ieeefp.h (_LDBL_EQ_DBL): Remove.
2078         * libc/stdlib/local.h (_LDBL_EQ_DBL): Add.
2079         * libc/stdlib/strtold.c: Include local.h.
2080         * libc/stdlib/wcstold.c: Likewise.
2081         * libm/common/atanl.c: Likewise.
2082         * libm/common/cosl.c: Likewise.
2083         * libm/common/sinl.c: Likewise.
2084         * libm/common/modfl.c: Likewise.
2085         * libm/common/frexpl.c: Likewise.
2086         * libm/common/tanhl.c: Likewise.
2087         * libm/common/tanl.c: Likewise.
2088         * libm/common/expm1l.c: Likewise.
2089         * libm/common/log1pl.c: Likewise.
2090         * libm/common/ceill.c: Likewise.
2091         * libm/common/fabsl.c: Likewise.
2092         * libm/common/floorl.c: Likewise.
2093         * libm/common/acosl.c: Likewise.
2094         * libm/common/asinl.c: Likewise.
2095         * libm/common/atan2l.c: Likewise.
2096         * libm/common/coshl.c: Likewise.
2097         * libm/common/expl.c: Likewise.
2098         * libm/common/fmodl.c: Likewise.
2099         * libm/common/hypotl.c: Likewise.
2100         * libm/common/ldexpl.c: Likewise.
2101         * libm/common/log10l.c: Likewise.
2102         * libm/common/logl.c: Likewise.
2103         * libm/common/powl.c: Likewise.
2104         * libm/common/sqrtl.c: Likewise.
2105         * libm/common/copysignl.c: Likewise.
2106         * libm/common/ilogbl.c: Likewise.
2107         * libm/common/nanl.c: Likewise.
2108         * libm/common/cbrtl.c: Likewise.
2109         * libm/common/asinhl.c: Likewise.
2110         * libm/common/nextafterl.c: Likewise.
2111         * libm/common/rintl.c: Likewise.
2112         * libm/common/scalbnl.c: Likewise.
2113         * libm/common/exp2l.c: Likewise.
2114         * libm/common/fdiml.c: Likewise.
2115         * libm/common/fmal.c: Likewise.
2116         * libm/common/fmaxl.c: Likewise.
2117         * libm/common/fminl.c: Likewise.
2118         * libm/common/lrintl.c: Likewise.
2119         * libm/common/lroundl.c: Likewise.
2120         * libm/common/nearbyintl.c: Likewise.
2121         * libm/common/remquol.c: Likewise.
2122         * libm/common/roundl.c: Likewise.
2123         * libm/common/scalblnl.c: Likewise.
2124         * libm/common/truncl.c: Likewise.
2125         * libm/common/acoshl.c: Likewise.
2126         * libm/common/atanhl.c: Likewise.
2127         * libm/common/erfcl.c: Likewise.
2128         * libm/common/erfl.c: Likewise.
2129         * libm/common/lgammal.c: Likewise.
2130         * libm/common/remainderl.c: Likewise.
2131         * libm/common/tgammal.c: Likewise.
2132         * libm/common/sinhl.c: Likewise.
2133         * libm/common/llroundl.c: Likewise.
2134         * libm/common/llrintl.c: Likewise.
2135         * libm/common/local.h: New file with _LDBL_EQ_DBL macro.
2136
2137 2009-04-17  Ken Werner  <ken.werner@de.ibm.com>
2138
2139         * libc/include/machine/ieeefp.h: _LDBL_EQ_DBL check fixed.
2140         * libc/include/math.h (llrintl): Declare.
2141         * libm/common/llrintl.c: New File.
2142         * libm/common/Makefile.am: New File added.
2143         * libm/common/Makefile.in: Regenerate.
2144
2145 2009-04-17  Ken Werner  <ken.werner@de.ibm.com>
2146
2147         * libc/configure.in: Change AC_TRY_COMPILE to AC_TRY_COMMAND to
2148         avoid executable test.
2149         * libc/configure: Regenerate.
2150
2151 2009-04-17  Jeff johnston  <jjohnstn@redhat.com>
2152
2153         * configure.in: Remove _HAVE_ARRAY_ALIASING check.
2154         * configure: Regenerated.
2155         * Makefile.in: Regenerated.
2156         * newlib.hin: Remove _HAVE_ARRAY_ALIASING flag.
2157         * libc/ctype/ctype_.c: Do not check for _HAVE_ARRAY_ALIASING.
2158         * libm/configure.in: Change AC_TRY_COMPILE to AC_TRY_COMMAND to
2159         avoid executable test.
2160         * libm/configure: Regenerated.
2161
2162 2009-04-16  Jeff johnston  <jjohnstn@redhat.com>
2163
2164         * libc/misc/init.c (__libc_fini_array): Process fini_array in
2165         reverse order as compliant with the ELF specification.
2166
2167 2009-04-16  Ken Werner  <ken.werner@de.ibm.com>
2168
2169         * libc/machine/spu/Makefile.am: Add new File.
2170         * libc/machine/spu/Makefile.in: Regenerate.
2171         * libc/machine/spu/fdopen.c: New file.
2172
2173 2009-04-16  Hans-Peter Nilsson  <hp@axis.com>
2174
2175         * libc/include/stdint.h (INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX): Define.
2176
2177 2009-04-16  Ken Werner  <ken.werner@de.ibm.com>
2178
2179         * libm/libm.texinfo: Add long double function support chapter.
2180         * libc/include/machine/ieeefp.h: Add _LDBL_EQ_DBL define.
2181         * libc/include/stdlib.h: Include <machine/ieeefp.h>.
2182         (strtold, wcstold): Declare.
2183         * libc/stdlib/strtold.c: New File.
2184         * libc/stdlib/wcstold.c: Likewise.
2185         * libc/configure.in: Add long double check.
2186         * libc/configure: Regenerate.
2187         * libc/stdlib/Makefile.am: Add strtold.c and wcstold.c.
2188         * libc/stdlib/Makefile.in: Regenerate.
2189         * libc/include/math.h (atanl, cosl, sinl, tanl, tanhl): Declare.
2190         (frexpl, modfl, ceill, fabsl, floorl, log1pl, expm1l, acosl): Ditto.
2191         (asinl, atan2l, coshl, sinhl, expl, ldexpl, logl, log10l, powl): Ditto.
2192         (sqrtl, fmodl, hypotl, copysignl, nanl, ilogbl, asinhl, cbrt): Ditto.
2193         (nextafterl, rintl, scalbnl, exp2l, scalblnl, tgammal): Ditto.
2194         (nearbyintl, lrintl, llrintl, roundl, lroundl, llround): Ditto.
2195         (llroundl, truncl, remquol, fdiml, fmaxl, fminl, fmal, acoshl): Ditto.
2196         (atanhl, remainderl, lgammal, erfl, erfcl): Ditto.
2197         * libm/common/atanl.c: New File.
2198         * libm/common/cosl.c: Likewise.
2199         * libm/common/sinl.c: Likewise.
2200         * libm/common/modfl.c: Likewise.
2201         * libm/common/frexpl.c: Likewise.
2202         * libm/common/tanhl.c: Likewise.
2203         * libm/common/tanl.c: Likewise.
2204         * libm/common/expm1l.c: Likewise.
2205         * libm/common/log1pl.c: Likewise.
2206         * libm/common/ceill.c: Likewise.
2207         * libm/common/fabsl.c: Likewise.
2208         * libm/common/floorl.c: Likewise.
2209         * libm/common/acosl.c: Likewise.
2210         * libm/common/asinl.c: Likewise.
2211         * libm/common/atan2l.c: Likewise.
2212         * libm/common/coshl.c: Likewise.
2213         * libm/common/expl.c: Likewise.
2214         * libm/common/fmodl.c: Likewise.
2215         * libm/common/hypotl.c: Likewise.
2216         * libm/common/ldexpl.c: Likewise.
2217         * libm/common/log10l.c: Likewise.
2218         * libm/common/logl.c: Likewise.
2219         * libm/common/powl.c: Likewise.
2220         * libm/common/sqrtl.c: Likewise.
2221         * libm/common/copysignl.c: Likewise.
2222         * libm/common/ilogbl.c: Likewise.
2223         * libm/common/nanl.c: Likewise.
2224         * libm/common/cbrtl.c: Likewise.
2225         * libm/common/asinhl.c: Likewise.
2226         * libm/common/nextafterl.c: Likewise.
2227         * libm/common/rintl.c: Likewise.
2228         * libm/common/scalbnl.c: Likewise.
2229         * libm/common/exp2l.c: Likewise.
2230         * libm/common/fdiml.c: Likewise.
2231         * libm/common/fmal.c: Likewise.
2232         * libm/common/fmaxl.c: Likewise.
2233         * libm/common/fminl.c: Likewise.
2234         * libm/common/lrintl.c: Likewise.
2235         * libm/common/lroundl.c: Likewise.
2236         * libm/common/nearbyintl.c: Likewise.
2237         * libm/common/remquol.c: Likewise.
2238         * libm/common/roundl.c: Likewise.
2239         * libm/common/scalblnl.c: Likewise.
2240         * libm/common/truncl.c: Likewise.
2241         * libm/common/acoshl.c: Likewise.
2242         * libm/common/atanhl.c: Likewise.
2243         * libm/common/erfcl.c: Likewise.
2244         * libm/common/erfl.c: Likewise.
2245         * libm/common/lgammal.c: Likewise.
2246         * libm/common/remainderl.c: Likewise.
2247         * libm/common/tgammal.c: Likewise.
2248         * libm/common/sinhl.c: Likewise.
2249         * libm/common/llroundl.c: Likewise.
2250         * libm/configure.in: Add long double check.
2251         * libm/configure: Regenerate.
2252         * libm/common/Makefile.am: Add new files.
2253         * libm/common/Makefile.in: Regenerate.
2254
2255 2009-04-09  Corinna Vinschen  <corinna@vinschen.de>
2256
2257         * libc/ctype/ctype_.c (_CTYPE_DATA_0_127): Remove _B flag from TAB.
2258         * libc/ctype/ctype_cp.h: Mark non-cased letters in tables for codepages
2259         720, 862, 874, 1255, and 1256 to _U|_L.  Fix a couple of incorrect
2260         class mappings.
2261         * libc/ctype/ctype_iso.h: Mark non-cased letters in ISO-8859 tables
2262         6, 8, and 11 to _U|_L.  Fix a couple of incorrect class mappings.
2263         * libc/ctype/isblank.c (isblank): Special case TAB.
2264         * libc/ctype/islower.c (islower): Check explicitely for _L flag only
2265         in (_U|_L).
2266         * libc/ctype/isupper.c (isupper): Ditto, but check for _U flag.
2267         * libc/include/ctype.h (islower): Same in macro.
2268         (isupper): Ditto.
2269         (isblank): Special case TAB.  Redefine macro for GCC only.
2270
2271 2009-04-09  Corinna Vinschen  <corinna@vinschen.de>
2272
2273         * libc/stdlib/local.h (__mbtowc): Declare extern.
2274         (__wctomb): Ditto.
2275
2276 2009-04-09  Corinna Vinschen  <corinna@vinschen.de>
2277
2278         * libc/stdlib/mbctype.h (_iseucjp1): Like _iseucjp, but also
2279         recognizes 0x8e and 0x8f lead bytes.
2280         (_iseucjp2): Rename from _iseucjp.
2281         * libc/stdlib/mbtowc_r.c (__eucjp_mbtowc): Convert JIS-X-0212
2282         triplebyte sequences as well.
2283         * libc/stdlib/wctomb_r.c (__eucjp_wctomb): Convert to JIS-X-0212
2284         triplebyte sequences as well.
2285
2286 2009-04-08  Ken Werner  <ken.werner@de.ibm.com>
2287
2288         * configure.in: Add square brackets for the array aliasing conftest.
2289         * configure: Regenerate.
2290
2291 2009-04-06  Mike Burgess  <wizardsguild@earthlink.net>
2292
2293         * libc/string/strncasecmp.c: Optimized rewrite.
2294
2295 2009-04-06  Ken Werner  <ken.werner@de.ibm.com>
2296
2297         * libc/include/sys/features.h: Undefine _POSIX_TIMERS for spu.
2298         * libc/include/machine/time.h (nanosleep): Declare.
2299
2300 2009-04-06  Corinna Vinschen  <corinna@vinschen.de>
2301
2302         * libc/locale/locale.c (loadlocale): Set mbc_max to 3 for EUCJP.
2303
2304 2009-04-04  Corinna Vinschen  <corinna@vinschen.de>
2305
2306         * libc/stdlib/wcstombs.c: Fix datatypes in documentation.
2307
2308 2009-04-04  Corinna Vinschen  <corinna@vinschen.de>
2309
2310         * libc/include/stdio.h (_ELIDABLE_INLINE): Move definition from here...
2311         * libc/include/_ansi.h (_ELIDABLE_INLINE): ..to here.
2312
2313 2009-04-03  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
2314
2315         * libc/include/stdio.h [__SCLE] (__sgetc_r): Prototype before define
2316         to avoid a warning with -Wmissing-prototypes.
2317
2318 2009-04-03  Ken Werner  <ken.werner@de.ibm.com>
2319
2320         * libc/machine/spu/mmap_ea.c (mmap_ea): Check length argument.
2321
2322 2009-04-03  Ken Werner  <ken.werner@de.ibm.com>
2323
2324         * libc/machine/spu/sys/linux_syscalls.h: include <sys/types.h>
2325         (linux_getpid, linux_gettid): Declare.
2326
2327 2009-04-03  Ken Werner  <ken.werner@de.ibm.com>
2328
2329         * libc/machine/spu/spu-gmon.c: Tweaks to support simultaneous SPU
2330         profiling.
2331
2332 2009-04-03  Ken Werner  <ken.werner@de.ibm.com>
2333
2334         * libc/include/math.h: Remove duplicate copysign prototype.
2335         Fix __math_68881 define typo.  Guard functions of the rint family.
2336
2337 2009-04-03  Craig Howland <howland@LGSInnovations.com>
2338
2339         * libm/common/s_llrint.c: New file, implementing llrint().
2340         * libm/common/sf_llrint.c: New file, implementing llrintf().
2341         * libm/common/Makefile.am:  Add s_llrint.c (src); sf_llrint.c (fsrc).
2342         * libm/common/Makefile.in:  Regenerate.
2343
2344 2009-04-02  Corinna Vinschen  <corinna@vinschen.de>
2345
2346         * libc/ctype/ctype_c.c: Move inclusion of ctype_iso.h and
2347         ctype_cp.h out of ALLOW_NEGATIVE_CTYPE_INDEX case.
2348         (__ctype_ptr__): Constify in !_MB_CAPABLE case.  Otherwise,
2349         de-constify in !ALLOW_NEGATIVE_CTYPE_INDEX case, too.  Add comment.
2350         (__set_ctype): Set __ctype_ptr__ pointer according to definition
2351         of ALLOW_NEGATIVE_CTYPE_INDEX.
2352         * libc/include/ctype.h (__ctype_ptr__): Constify in !_MB_CAPABLE case.
2353
2354 2009-03-31  Corinna Vinschen  <corinna@vinschen.de>
2355
2356         * libc/ctype/Makefile.am: Remove _tolower.c and _toupper.c
2357         source files.  Add a dependency rule for ctype_o to note
2358         changes in ctype_iso.h and ctype_cp.h.
2359         * libc/ctype/Makefile.in: Regenerate.
2360         * libc/ctype/_tolower.c: Remove file.
2361         * libc/ctype/_toupper.c: Remove file.
2362         * libc/ctype/ctype_.c: Make sure ALLOW_NEGATIVE_CTYPE_INDEX
2363         is always defined on Cygwin.
2364         (_ctype_b): Don't make `static const' on Cygwin.
2365         (ctype_iso.h): Include if _MB_EXTENDED_CHARSETS_ISO is set.
2366         (ctype_cp.h): Include if _MB_EXTENDED_CHARSETS_WINDOWS is set.
2367         (__ctype_ptr): Drop definition.
2368         (__ctype_ptr__): De-constify.  Mark as __EXPORT symbol.
2369         (_ctype_): Add Cygwin-specifc asm define.
2370         (__set_ctype): New function to set __ctype_ptr__ according to
2371         current charset.
2372         * libc/ctype/ctype_cp.h: New file containing Windows codepage
2373         specific character class tables.
2374         * libc/ctype/ctype_iso.h: New file containing ISO-8859-x
2375         specific character class tables.
2376         * libc/ctype/tolower.c (tolower): Reimplement to support any singlebyte
2377         charset if one of the extended charsets is enabled.
2378         * libc/ctype/toupper.c (toupper): Ditto.
2379         * libc/include/ctype.h (_tolower): Define as macro per POSIX.
2380         (_toupper): Ditto.
2381         (__ctype_ptr__): De-constify.
2382         (toupper): Disable macro on systems supporting extended charsets.
2383         (tolower): Ditto.
2384         * libc/include/sys/config.h (__EXPORT): Define empty if not defined.
2385         * libc/locale/locale.c (__mb_cur_max): Mark as __EXPORT symbol.
2386         (__set_ctype): Declare unconditionally.
2387         (loadlocale): Remove __CYGWIN__ guard around __set_ctype call.
2388
2389 2009-03-26  Corinna Vinschen  <corinna@vinschen.de>
2390
2391         * libc/locale/locale.c (loadlocale): Revert to charset "GBK" instead
2392         of "GB2312".  Fix documentation accordingly.
2393
2394 2009-03-26  Corinna Vinschen  <corinna@vinschen.de>
2395
2396         * libc/ctype/ctype_.c (_CTYPE_DATA_0_127): Mark TAB as blank character.
2397         * libc/ctype/isblank.c: Replace hardcoded test with test for having _B
2398         marker in ctype array.
2399         * libc/include/ctype.h (isblank): Add macro.
2400
2401 2009-03-25  Craig Howland <howland@LGSInnovations.com>
2402
2403         * libc/include/math.h:  (llround, llroundf): Declare.
2404         * libm/common/s_llround.c: New file, implementing llround().
2405         * libm/common/sf_llround.c: New file, implementing llroundf().
2406         * libm/common/sf_lround.c: Remove spurious cast in _DOUBLE_IS_32BITS
2407         version of function.
2408         * libm/common/sf_lrint.c: Ditto.
2409         * libm/common/sf_logb.c:  Corrected return for subnormal argument
2410         by replacing existing function with a version created from sf_ilogb.c.
2411         * libm/common/s_logb.c: Ditto, except starting point s_ilogb.c.  Also
2412         added documentation for logb() and logbf().
2413         * libm/common/s_signbit.c:  Add signbit() documentation.
2414         * libm/common/s_log2.c: Update return values to match what w_log2.c has,
2415         since log2 uses log(); add note about being derived instead of direct.
2416         * libm/common/sf_fma.c: Add casts to attempt to get correct results,
2417         as well as comments pointing out problems with the implementation.
2418         * libm/common/s_fma.c: Add fma() and fmaf() documentation.
2419         * libm/common/sf_remquo.c: Incorrect quotient returns for large values
2420         corrected by discarding existing function and replacing with Sun
2421         verion, with some enhancements.
2422         * libm/common/s_remquo.c: Ditto.  Add remquo() and remquof()
2423         documentation.
2424         * libm/common/s_fmax.c: Add fmax() and fmaxf() documentation.
2425         * libm/common/s_fmin.c: Add fmin() and fminf() documentation.
2426         * libm/common/s_fdim.c: Return NAN for NAN arg, add fdim() and fdimf()
2427         documentation.
2428         * libm/common/sf_fdim.c: Return NAN for NAN arg, HUGE_VALF for inf arg.
2429         * libm/common/s_trunc.c: Add trunc() and truncf() documentation.
2430         * libm/common/s_rint.c: Add rint() and rintf() documentation.
2431         * libm/common/s_round.c: Add round() and roundf() documentation.
2432         * libm/common/s_scalbn.c: Add scalbln() and scalblnf() documentation.
2433         * libm/common/s_infinity.c: Add infinity() and infinityf()
2434         documentation.
2435         * libm/common/s_lround.c: Add lround(), lroundf(), llround(), and
2436         llroundf() documentation.
2437         * libm/common/s_lrint.c: Add lrint(), lrintf(), llrint(), and llrintf()
2438         documentation.
2439         * libm/common/isgreater.c: New file for documenting math.h function-like
2440         macros isgreater(), isgreaterequal(), isless(), islessequal(),
2441         islessgreater(), and isunordered().
2442         * libm/common/s_isnan.c: Add documentation for function-like macros
2443         fpclassify(), isfinite(), isinf(), isnan(), and isnormal().
2444         * libm/common/s_nearbyint.c: Add nearbyint() and nearbyintf()
2445         documentation.
2446         * libm/common/Makefile.am: Add s_llround.c (src); sf_llround.c (fsrc);
2447         s_fdim.def, s_fma.def, s_fmax.def, s_fmin.def,
2448         s_logb.def, s_lrint.def, s_lround.def, s_nearbyint.def, s_remquo.def,
2449         s_rint.def, s_round.def, s_signbit.def, s_trunc.def, and
2450         isgreater.def (chobj);
2451         re-name all existing chew files (chobj) to match source file base
2452         names (put in underscores), delete all special targets for chew files
2453         (leaving all to be generated by rule).
2454         * libm/common/Makefile.in: regenerate.
2455         * libm/math/w_exp2.c: Add "base 2" to documentation description (and
2456         delete TRAD_SYNOPSIS).
2457         * libm/math/w_gamma.c: Add tgamma() and tgammaf() documentation, along
2458         with some history behind the function names.
2459         * libm/math/math.tex: Add includes for newly-added documentation (see
2460         .def additions to common/Makefile.am and math/Makefile.am in this
2461         ChangeLog list), adjusted existing .def file names to match source file
2462         base names (added underscores); add mention of HUGE_VALF; rename
2463         "Version of library" section to "Error Handling" and add some text
2464         about floating-point exception; added section "Standards Compliance And
2465         Portability".
2466         * libm/math/Makefile.am: Add w_exp2.def (chobj);
2467         re-name all existing chew files (chobj) to match source file base
2468         names, delete all special targets for chew files (leaving all to be
2469         generated by rule).
2470         * libm/math/Makefile.in: regenerated
2471         * doc/makedoc.c: Change silent ignoring of commands < 5 characters
2472         to a failure when reading macro file for commands < 4 characters;
2473         add -v (verbose) option for printing some debugging information;
2474         get rid of spurious translation of "@*" to "*" (no source files used @*,
2475         so no existing doc pages were affected); clean up some compiler
2476         warnings.
2477         * doc/doc.str: add BUGS and SEEALSO sections (to match texi2pod.pl
2478         which has them); Remove ITEM command (redundant with makedoc built-in
2479         "o", not used in any present source file so nothing is lost, anyway).
2480         * HOWTO: New file to hold information for maintainers regarding how
2481         to do things.  Initial sections on documentation and ELIX levels.
2482
2483 2009-03-25  Richard Earnshaw  <rearnsha@arm.com>
2484
2485         * libc/machine/arm/strcmp.c (strcmp_unaligned): Correctly
2486         detect the nul-byte in a big-endian string.
2487
2488 2009-03-25  Jeff Johnston  <jjohnstn@redhat.com>
2489
2490         * libc/string/wcsdup.c: Fix documentation error.
2491         * libc/string/Makefile.am: Fix CHEWOUT files to contain
2492         wcsdup.def rather than wcsdup.
2493         * libc/string/Makefile.in: Regenerated.
2494
2495 2009-03-25  Corinna Vinschen  <corinna@vinschen.de>
2496
2497         * libc/locale/locale.c (loadlocale): Only change __wctomb and __mbtowc
2498         pointers if category is LC_CTYPE.
2499
2500 2009-03-25  Corinna Vinschen  <corinna@vinschen.de>
2501
2502         * libc/locale/locale.c (loadlocale): Rename charset "GBK" to
2503         "GB2312".  Fix documentation accordingly.
2504
2505 2009-03-24  Corinna Vinschen  <corinna@vinschen.de>
2506
2507         * libc/locale/locale.c (loadlocale): Rename charset "CP949" to
2508         "eucKR".  Fix documentation accordingly.
2509
2510 2009-03-24  Corinna Vinschen  <corinna@vinschen.de>
2511
2512         * libc/locale/locale.c (loadlocale): Allow charset starting with 'e'
2513         for "eucJP" charset support.
2514
2515 2009-03-24  Jeff Johnston  <jjohnstn@redhat.com>
2516
2517         * libc/include/sys/errno.h: Move EFTYPE to general usage because
2518         it is used in libc/search.
2519
2520 2009-03-24  Corinna Vinschen  <corinna@vinschen.de>
2521
2522         * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on
2523         _MB_CAPABLE systems.
2524         * libc/ctype/iswblank.c: Ditto.
2525         * libc/ctype/iswcntrl.c: Ditto.
2526         * libc/ctype/iswprint.c: Ditto.
2527         * libc/ctype/iswpunct.c: Ditto.
2528         * libc/ctype/iswspace.c: Ditto.
2529         * libc/ctype/jp2uc.c (__jp2uc): On Cygwin, just return c.
2530         Explain why.
2531         * libc/ctype/towlower.c: Ditto.
2532         * libc/ctype/towupper.c: Ditto.
2533         * libc/include/sys/config.h: Define _MB_EXTENDED_CHARSETS_ISO
2534         and _MB_EXTENDED_CHARSETS_WINDOWS if _MB_EXTENDED_CHARSETS_ALL is
2535         defined.  Define _MB_EXTENDED_CHARSETS_ALL on Cygwin only for now.
2536         * libc/include/sys/reent.h (struct _reent): Mark _current_category
2537         and _current_locale as unused.
2538         * libc/locale/locale.c: Add new charset support to documentation.
2539         Include ../stdio/local.h from here.
2540         (lc_ctype_charset): Set to "ASCII" by default.
2541         (lc_message_charset): Ditto.
2542         (_setlocale_r): Don't set _current_category and _current_locale.
2543         (loadlocale): Add Cygwin codepage support.  On _MB_CAPABLE
2544         systems, set __mbtowc and __wctomb function pointers to function
2545         corresponding with current charset.  Don't allow non-existant
2546         ISO-8859-12 charset.  Add support for Windows singlebyte codepages.
2547         On Cygwin, add support for GBK, CP949, and BIG5.  On Cygwin,
2548         call __set_ctype() in case the catorgy is LC_CTYPE.  Don't set
2549         _current_category and _current_locale.
2550         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add sb_charsets.c.
2551         * libc/stdlib/Makefile.in: Regenerate.
2552         * libc/stdlib/local.h: Add prototype for __locale_charset.
2553         Add prototypes for __mbtowc and __wctomb pointers.
2554         Add prototypes for charset-specific _wctomb_r and _mbtowc_r
2555         functions.
2556         Declare tables and functions from sb_charsets.c.
2557         * libc/stdlib/mbtowc_r.c (__mbtowc): Define.  Set to __ascii_mbtowc
2558         by default.
2559         (_mbtowc_r): Just call __mbtowc from here.
2560         (__ascii_mbtowc): New function.
2561         (__iso_mbtowc): New function.
2562         (__cp_mbtowc): New function.
2563         (__utf8_mbtowc): New function.
2564         (__sjis_mbtowc): New function.  Disable on Cygwin.
2565         (__eucjp_mbtowc): New function.  Disable on Cygwin.
2566         (__jis_mbtowc): New function.  Disable on Cygwin.
2567         * libc/stdlib/sb_charsets.c: New file, adding singlebyte to UTF
2568         conversion tables for all ISO and CP charsets.
2569         (__iso_8859_index): New function.
2570         (__cp_index): New function.
2571         * libc/stdlib/wctomb_r.c (__wctomb): Define.  Set to __ascii_wctomb
2572         by default.
2573         (_wctomb_r): Just call __wctomb from here.
2574         (__ascii_wctomb): New function.
2575         (__utf8_wctomb): New function.
2576         (__sjis_wctomb): New function.  Disable on Cygwin.
2577         (__eucjp_wctomb): New function.  Disable on Cygwin.
2578         (__jis_wctomb): New function.  Disable on Cygwin.
2579         (__iso_wctomb): New function.
2580         (__cp_wctomb): New function.
2581
2582 2009-03-23  Richard Earnshaw  <rearnsha@arm.com>
2583
2584         * libc/machine/arm/strcmp.c (strcmp): Treat char as unsigned.
2585
2586 2009-03-23  Corinna Vinschen  <corinna@vinschen.de>
2587
2588         * libc/locale/locale.c (loadlocale): Fix typo in language and
2589         territory evaluation.
2590
2591 2009-03-20  Jeff Johnston  <jjohnstn@redhat.com>
2592
2593         * libc/include/sys/errno.h: Protect various non-standard errnos
2594         with either __LINUX_ERRNO_EXTENSIONS__ or __CYGWIN__.
2595         * libc/include/sys/config.h[__CYGWIN__]: Define
2596         __LINUX_ERRNO_EXTENSIONS__.
2597
2598 2009-03-19  Corinna Vinschen  <corinna@vinschen.de>
2599
2600         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Return EILSEQ in case of an
2601         invalid character sequence.
2602
2603         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Fix compiler warning due to
2604         missing declaration of __locale_charset.
2605         * libc/stdlib/wctomb_r.c (_wctomb_r): Ditto.
2606
2607 2009-03-18  Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
2608
2609         * libm/common/s_log2.c: New file.
2610         * libm/common/sf_log2.c: Ditto.
2611         * libm/common/Makefile.am: Add s_log2.c and sf_log2.c.
2612         * libm/common/Makefile.in: Regenerated.
2613         * libc/include/math.h: Add log2 and log2f function prototypes.
2614
2615 2009-03-17  Corinna Vinschen  <corinna@vinschen.de>
2616
2617         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): Handle NULL destination
2618         string correctly.
2619
2620 2009-03-16  Mark Mitchell  <mark@codesourcery.com>
2621
2622         * libc/machine/arm/strlen.c (strlen): Fix defect in Thumb-2 mode.
2623
2624 2009-03-16  Richard Earnshaw  <rearnsha@arm.com>
2625
2626         * libc/machine/arm/strlen.c (strlen): Correctly detect
2627         end-of-string.
2628         * libc/machine/arm/strcpy.c (strcpy): Likewise.
2629         * libc/machine/arm/strcmp.c (strcmp, strcmp_unaligned): Likewise.
2630
2631 2009-03-15  Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
2632
2633         * libc/include/sys/errno.h (ESTRPIPE): Define.
2634         * libc/string/strerror.c (strerror): Decode it.
2635
2636 2009-03-15  Corinna Vinschen  <corinna@vinschen.de>
2637
2638         * libc/include/wchar.h (wcsdup, _wcsdup_r): Declare.
2639         * libc/string/Makefile.am: Add wcsdup.c.
2640         * libc/string/Makefile.in: Regenerate.
2641         * libc/string/strings.tex: Add wcsdup documentation reference.
2642         * libc/string/wcsdup.c: New file.
2643
2644 2009-03-14  Corinna Vinschen  <corinna@vinschen.de>
2645
2646         * libc/include/stdlib.h (_mkstemp_r, _mktemp_r): Move out of
2647         !_REENT_ONLY section.
2648
2649 2009-03-14  Corinna Vinschen  <corinna@vinschen.de>
2650
2651         * libc/include/stdio.h (_mkstemp_r, _mktemp_r): Move declarations
2652         to stdlib.h.
2653         * libc/include/stdlib.h (mktemp, _mktemp_r): Warn when using.
2654         * libc/stdio/mktemp.c: Explain the security risk when using
2655         mktemp.
2656
2657 2009-03-12  Craig Howland <howland@LGSInnovations.com>
2658
2659         * libc/time/time.tex (wcsftime.def):  Include.
2660         * libc/time/wcsftime.c:  Clean up documentation a little.
2661
2662 2009-03-12  Craig Howland <howland@LGSInnovations.com>
2663
2664         * libc/stdio/swscanf.c:  Some documentation corrections.
2665
2666 2009-03-12  Craig Howland <howland@LGSInnovations.com>
2667
2668         * libc/stdio/swprintf.c (_swprintf_r, swprintf):
2669         correct how terminating L'\0' is added;
2670         change return to match standard for when output does not fit;
2671         some corrections and enhancements to the docs.
2672         * libc/stdio/vswprintf.c (_vswprintf_r):  ditto, except for docs.
2673         * libc/stdio/vfwprintf.c:  some corrections to the docs and some
2674         enhancements to comments.  (No code changes.)
2675         * libc/time/strftime.c:  Correct some problems that made wcsftime()
2676         not work correctly:  work properly with swprintf returns that are
2677         different from snprintf returns, correct test vector lengths for
2678         when sizeof(wchar_t) > 1.
2679         * libc/stdio/sprintf.c:  Some documentation and comment corrections and
2680         enhancements to match those done to swprintf.c.
2681
2682 2009-03-11  Corinna Vinschen  <corinna@vinschen.de>
2683
2684         * libc/include/wchar.h (wcscasecmp, wcsncasecmp): Declare.
2685         * libc/string/Makefile.am: Add wcscasecmp.c, wcsncasecmp.c
2686         * libc/stdio/Makefile.in: Regenerate.
2687         * libc/string/strings.tex: Add new documentation references.
2688         * libc/string/wcscasecmp.c: New file.
2689         * libc/string/wcsncasecmp.c: New file.
2690
2691 2009-03-11  Corinna Vinschen  <corinna@vinschen.de>
2692
2693         * libc/include/wchar.h (fwscanf, swscanf, vfwscanf, vswscanf, vwscanf,
2694         wscanf): Declare.
2695         (_fwscanf_r, _swscanf_r, _vfwscanf_r, _vswscanf_r, _vwscanf_r,
2696         _wscanf_r): Declare.
2697         * libc/stdio/Makefile.am: Add new wscanf files.
2698         * libc/stdio/Makefile.in: Regenerate.
2699         * libc/stdio/fwscanf.c: New file.
2700         * libc/stdio/local.h (__svfwscanf_r, __ssvfwscanf_r, __svfiwscanf_r,
2701         __ssvfiwscanf_r): Declare.
2702         * libc/stdio/stdio.tex: Add new documentation references.
2703         * libc/stdio/swscanf.c: New file.
2704         * libc/stdio/vfwscanf.c: New file.
2705         * libc/stdio/vswscanf.c: New file.
2706         * libc/stdio/vwscanf.c: New file.
2707         * libc/stdio/wscanf.c: New file.
2708
2709         * libc/stdio/vfscanf.c (_sungetc_r): Make externaly available.  Only
2710         define if INTEGER_ONLY is defined.  Declare otherwise.
2711         (__ssrefill_r): Ditto.
2712         (_sfread_r): Ditto.
2713
2714         Remove static eofread/eofread1 functions and use __seofread
2715         function instead, throughout.
2716         * libc/stdio/local.h (__seofread): Declare.
2717         * libc/stdio/stdio.c (__seofread): Define.
2718
2719         * libc/stdio/fgetwc.c (__fgetwc): Fix compiler warning.
2720         * libc/stdio/fgetws.c (_fgetws_r): Ditto.
2721         * libc/stdio/fread.c (_fread_r): Ditto.
2722         * libc/stdio/vfprintf.c: Ditto.
2723         * libc/stdio/vswprintf.c: Ditto.
2724
2725 2009-03-09  Brooks Moses  <brooks@codesourcery.com>
2726
2727         * libc/machine/arm/arm_asm.h: Fix typo.
2728
2729 2009-03-09  Craig Howland <howland@LGSInnovations.com>
2730
2731         * libc/time/strftime.c:  Adapt for dual-purpose use so not only
2732         defines strftime(), but can also define wcsftime(); add optional
2733         test package; speed up %Y handling.
2734         * libc/time/wcsftime.c:  New file, defining wcsftime() (albeit
2735         indirectly by including strftime.c) and its documentation.
2736         * libc/time/time.tex:  Enhance tm_isdst explanation, change strftime
2737         description to match modified description in strftime.c
2738         * libc/time/Makefile.am:  Add wcsftime.c and wcsftime.def.  Add a rule
2739         so that wcsftime.o gets rebuilt when strftime changes.
2740         * libc/time/Makefile.in:  Regenerate.
2741         * libc/include/wchar.h (wcsftime): Declare.
2742
2743 2009-03-06  Hans-Erik Floryd <hans-erik.floryd@rt-labs.com>,
2744             Corinna Vinschen  <corinna@vinschen.de>
2745
2746         * libc/reent/reent.c (_reclaim_reent): Make a block from MP-related
2747         statements in _REENT_SMALL case.  Check if _atexit is not NULL before
2748         dereferencing it.
2749         (_wrapup_reent): Check if _atexit is not NULL before dereferencing it.
2750
2751 2009-03-06  Corinna Vinschen  <corinna@vinschen.de>
2752
2753         * libc/include/stdio.h (__VALIST): Guard against multiple definition.
2754         * libc/include/wchar.h: Include stdarg.h.
2755         (__VALIST): Define conditionally.
2756         (fwprintf, swprintf, vfwprintf, vswprintf, vwprintf, wprintf): Declare.
2757         (_fwprintf_r, _swprintf_r, _vfwprintf_r, _vswprintf_r, _vwprintf_r,
2758          _wprintf_r): Declare.
2759         * libc/stdio/Makefile.am: Add new files.
2760         * libc/stdio/Makefile.in: Regenerate.
2761         * libc/stdio/fwprintf.c: New file.
2762         * libc/stdio/local.h (_svfwprintf_r, _svfiwprintf_r): Declare.
2763         (__CH_CLASS, __STATE, __ACTION): Move definition from vfprintf.c here
2764         and move to the __ namespace.
2765         (__chclass, __state_table, __action_table): Declare.
2766         * libc/stdio/stdio.tex: Add new documentation references.
2767         * libc/stdio/swprintf.c: New file.
2768         * libc/stdio/vfprintf.c (__SPRINT): New macro to call the right
2769         __sprint_r function according to compilation unit.  Use throughout.
2770         (__ssprint_r): Rename STRING_ONLY variant from __sprint_r.
2771         Make externaly available.  Only define if INTEGER_ONLY is defined.
2772         (__sprint_r): Make externaly available.  Only define if INTEGER_ONLY
2773         is defined.  Handle stream orientation.
2774         (__sbprintf): Copy FILE's _flags2 member as well.
2775         (__chclass, __state_table, __action_table): Prepend __ to name and
2776         make externally available.
2777         * libc/stdio/vfwprintf.c: New file.
2778         * libc/stdio/vswprintf.c: New file.
2779         * libc/stdio/vwprintf.c: New file.
2780         * libc/stdio/wprintf.c: New file.
2781
2782 2009-03-03  Corinna Vinschen  <corinna@vinschen.de>
2783
2784         * libc/locale/locale.c (_setlocale_r): New implementation based on
2785         FreeBSD's setlocale.
2786         (currentlocale): New helper function.
2787         (loadlocale): Ditto.
2788         (__locale_charset): New function.
2789         (__locale_msgcharset): Rename from __locale_charset.
2790         * libc/ctype/local.h (__lc_ctype): Remove declaration.
2791         (__locale_charset): Declare.
2792         * libc/ctype/iswalpha.c (iswalpha): Call __locale_charset instead of
2793         using __lc_ctype directly.  Only compare against the charset alone.
2794         * libc/ctype/iswblank.c (iswblank): Ditto.
2795         * libc/ctype/iswcntrl.c (iswcntrl): Ditto.
2796         * libc/ctype/iswprint.c (iswprint): Ditto.
2797         * libc/ctype/iswpunct.c (iswpunct): Ditto.
2798         * libc/ctype/iswspace.c (iswspace): Ditto.
2799         * libc/ctype/towlower.c (towlower): Ditto.
2800         * libc/ctype/towupper.c (towupper): Ditto.
2801         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Ditto.
2802         * libc/stdlib/wctomb_r.c (_wctomb_r): Ditto.
2803         * libc/sys/linux/intl/loadmsgcat.c (_nl_init_domain_conv): Call
2804         __locale_msgcharset instead of __locale_charset.
2805
2806 2009-03-02  Jeff Johnston  <jjohnstn@redhat.com>
2807
2808         * libc/stdlib/wctomb_r.c (_wctomb_r): When checking single-byte
2809         charset, cast wchar to size_t in case wchar_t is signed.
2810         * libc/stdlib/wctomb.c (wctomb): Add similar single-byte check.
2811
2812 2009-03-02  Corinna Vinschen  <corinna@vinschen.de>
2813
2814         * libc/stdlib/wctomb_r.c (_wctomb_r): Return EILSEQ in case of an
2815         invalid wchar.  Return -1 if wchar doesn't fit into singlebyte
2816         value in case of using a singlebyte charset.
2817
2818 2009-02-26  Brooks Moses  <brooks@codesourcery.com>
2819
2820         * libc/machine/arm/strcpy.c: Add missing comma.
2821
2822 2009-02-26  Ralf Corsepius  <ralf.corsepius@rtems.org>
2823
2824         * libc/machine/lm32/configure.in: Let
2825         AC_CONFIG_SRCDIR point to setjmp.S instead of setjmp.s
2826         * libs/machine/lm32/configure: Regenerate.
2827
2828 2009-02-25  Brooks Moses  <brooks@codesourcery.com>
2829
2830         * libc/stdlib/Makefile.am (CHEWOUT_FILES): Add
2831           mbsnrtowcs.def, wcsnrtombs.def.
2832         * libc/stdlib/Makefile.in: Regenerate.
2833         * libc/stdlib/stdlib.tex (@menu): Use correct section
2834           names for mbsrtowcs, wcsrtombs.
2835         * libc/stdlib/wcstod.c: Remove stray character in
2836           documentation.
2837
2838 2009-02-25  Corinna Vinschen  <corinna@vinschen.de>
2839
2840         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Remove conversion of 5 and 6
2841         byte UTF-8 sequences since they are invalid in the Unicode standard.
2842         Handle surrogate pairs in case of wchar_t == UTF-16.
2843         * libc/stdlib/wctomb_r.c (_wctomb_r): Don't convert invalid Unicode
2844         wchar_t values beyond 0x10ffff into UTF-8 chars.  Handle surrogate
2845         pairs in case of wchar_t == UTF-16.
2846
2847 2009-02-24  Kevin Buettner  <kevinb@redhat.com>
2848
2849         * libc/stdio/open_memstream.c (stdint.h): Include.
2850
2851 2009-02-23  Craig Howland  <howland@LGSInnovations.com>
2852
2853         * libc/unix/ttyname.c:  Remove ttyname_r() (to a new file to avoid
2854         coupling ttyname_r() and ttyname() due to the latter's large buffer).
2855         * libc/unix/ttyname_r.c:  New file to hold ttyname_r(), previously in
2856         ttyname.c.
2857         * libc/unix/ttyname.h:  New file (common size definition for the 2
2858         ttyname*c files that are now split).
2859         * libc/unix/Makefile.am (ELIX_2_SOURCES):  Add ttyname_r.c.
2860         * libc/unix/Makefile.in:  Regenerate.
2861
2862 2009-02-19  Corinna Vinschen  <corinna@vinschen.de>
2863
2864         * libc/include/wchar.h (mbsnrtowcs): Declare.
2865         (_mbsnrtowcs_r): Declare.
2866         (wcsnrtombs): Declare.
2867         (_wcsnrtombs_r): Declare.
2868         * libc/stdlib/Makefile.am (ELIX_2_SOURCES): Add mbsnrtowcs.c
2869         and wcsnrtombs.c.
2870         * libc/stdlib/Makefile.in: Regenerate.
2871         * libc/stdlib/mbsnrtowcs.c: New file, implementing _mbsnrtowcs_r
2872         and mbsnrtowcs.  Document mbsnrtowcs and mbsrtowcs.
2873         * libc/stdlib/mbsrtowcs.c (_mbsrtowcs_r): Just call _mbsnrtowcs_r.
2874         (mbsrtowcs): Ditto.
2875         * libc/stdlib/wcsnrtombs.c: New file, implementing _wcsnrtombs_r
2876         and wcsnrtombs.  Document wcsrtombs and wcsnrtombs.
2877         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Just call _wcsnrtombs_r.
2878         (wcsrtombs): Ditto.
2879         * libc/stdlib/stdlib.tex: Accommodate new documentation.
2880
2881 2009-02-18  Jeff Johnston  <jjohnstn@redhat.com>
2882
2883         * libc/stdio/open_memstream.c (internal_open_memstream_r): Fix max
2884         buffer size to be in wchar_t units if wide == 1 is passed in.  In
2885         this case, also initialize the first character of the buffer to be
2886         wide char null.
2887         (_open_wmemstream_r): Cast buf to be (char **) to avoid warning.
2888         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Change all occurences of
2889         incrementing the size_t value n to first check that n is not already
2890         size_t -1.  Fix some compiler warnings.
2891         * libc/stdlib/wcstod.c: Add includes for <wctype.h> and <math.h>.
2892
2893 2009-02-18  Corinna Vinschen  <corinna@vinschen.de>
2894
2895         * libc/stdio/open_memstream.c: Add open_wmemstream to doumentation.
2896         (struct memstream): Add wide element.
2897         Change saved to a union to take char and wchar_t values.
2898         (memwriter): Accommodate wide-oriented oeprations.
2899         (memseeker): Ditto.
2900         (memseeker64): Ditto.
2901         (memcloser): Ditto.
2902         (internal_open_memstream_r): New static function.  Take functionality
2903         from former _open_memstream_r and handle additional "wide" parameter.
2904         (_open_memstream_r): Just call internal_open_memstream_r with wide==-1
2905         from here.
2906         (_open_wmemstream_r): New function.
2907         (open_wmemstream): Ditto.
2908         * libc/include/wchar.h (open_wmemstream): Declare.
2909         (_open_wmemstream_r): Declare.
2910
2911 2009-02-16  Corinna Vinschen  <corinna@vinschen.de>
2912
2913         * libc/stdio/fputwc.c: Fix typo in man page info.
2914
2915 2009-02-12  Corinna Vinschen  <corinna@vinschen.de>
2916
2917         * libc/include/wchar.h (_wcstod_r): Declare.
2918         (_wcstof_r): Declare.
2919         (wcstod): Declare.
2920         (wcstof): Declare.
2921         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add wcstod.c.
2922         (CHEWOUT_FILES): Add wcstod.def.
2923         * libc/stdlib/Makefile.in: Regenerate.
2924         * libc/stdlib/stdlib.tex: Add wcstod.
2925         * libc/stdlib/wcstod.c: New file.
2926
2927 2009-02-05  Neal H. Walfield  <neal@gnu.org>
2928
2929         * libc/machine/x86_64/memcpy.S (memcpy): Don't use the red zone.
2930
2931 2009-01-28  Jeff Johnston  <jjohnstn@redhat.com>
2932
2933         * libc/stdio/vfscanf.c (__SVFSCANF_R): Add additional check for
2934         inf and nan processing to not proceed if we have already collected
2935         zeroes.
2936
2937 2009-01-26  DJ Delorie  <dj@redhat.com>
2938
2939         * configure.host (m32c-*-*): Add long long I/O support by default.
2940
2941 2009-01-21  Richard Earnshaw  <rearnsha@arm.com>
2942
2943         * libc/machine/arm/arm_asm.h: New file.
2944         * libc/machine/arm/strlen.c: New file.
2945         * libc/machine/arm/strcpy.c: New file.
2946         * libc/machine/arm/strcmp.c: New file.
2947         * libc/machine/arm/Makefile.am: Add new string routines.
2948
2949 2009-01-19  Neal H. Walfield  <neal@gnu.org>
2950
2951         * libc/include/stdint.h (INT64_C, UINT64_C, INTMAX_C, UINTMAX_C)
2952         [__have_long64 && __have_longlong64]: Use L and UL, not LL and ULL.
2953         * libc/include/inttypes.h (__PRI64, __SCN64, __PRIMAX, __SCNMAX,
2954         __PRIPTR, __SCNPTR) [__have_long64 && __have_longlong64]: Use l,
2955         not ll.
2956
2957 2009-01-12  Nathan Froyd  <froydnj@codesourcery.com>
2958
2959         * libc/machine/powerpc/vfscanf.c (__sccl): Remove declaration.
2960
2961 2009-01-12  Jeff Johnston  <jjohnstn@redhat.com>
2962
2963         * libc/stdio/fwalk.c (__fwalk, __fwalk_reent): Remove locking of
2964         each fp.  Let the function being called lock the fp, if necessary.
2965
2966 2009-01-07  Kazu Hirata  <kazu@codesourcery.com>
2967
2968         * libc/include/sys/stdio.h (_flockfile, _funlockfile): Fix typos.
2969
2970 2009-01-05  Craig Howland <howland@LGSInnovations.com>
2971
2972         * libc/stdio/fwide.c:  Correct typo in TRAD_SYNOPSIS for _fwide_r.
2973
2974 2008-12-19  Jeff Johnston  <jjohnstn@redhat.com>
2975
2976         * NEWS: Update with 1.17.0 info.
2977         * README: Ditto.
2978         * acinclude.m4: Change version number to 1.17.0.
2979         * aclocal.m4: Regenerated.
2980         * configure: Ditto.
2981         * doc/aclocal.m4: Ditto.
2982         * doc/configure: Ditto.
2983         * libc/*/aclocal.m4: Ditto.
2984         * libc/*/configure: Ditto.
2985         * libc/libc.texinfo: Ditto.
2986         * libm/*/aclocal.m4: Ditto.
2987         * libm/*/configure: Ditto.
2988         * libm/libm.texinfo: Ditto.
2989         * libc/sys/linux/shared.ld: Add VERS_1.17
2990
2991 2008-12-17  Jon Beniston <jon@beniston.com>
2992
2993         * configure.host: Set syscall_dir for lm32 target.
2994
2995 2008-12-15  Jeff Johnston  <jjohnstn@redhat.com>
2996
2997         * libc/stdio/stdio.tex: Remove putwc and getwc references as they
2998         are included as part of fputwc and fgetwc, respectively.
2999
3000 2008-12-12  Craig Howland <howland@LGSInnovations.com>
3001
3002         * libc/include/wchar.h:  Added wcstok() declaration.
3003         * libc/string/wcstok.c: New file, implementing wcstok.
3004         * libc/string/Makefile.am: Add wcstok support.
3005         * libc/string/wcstrings.tex: Ditto.
3006         * libc/string/Makefile.in: Regenerated.
3007
3008 2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
3009
3010         * libc/stdio/fputws.c: Fix documentation.
3011         * libc/stdio/getwchar.c: Ditto.
3012         * libc/stdio/putwchar.c: Ditto.
3013
3014 2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
3015
3016         * libc/include/sys/features.h: Set RTEMS's _POSIX_MONOTONIC_CLOCK to
3017         200112L (SUSv3 compliance).
3018         Comment out RTEMS's _POSIX_SHARED_MEMORY_OBJECTS (Unsupported).
3019
3020 2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
3021
3022         * libc/sys/rtems/crt0.c: Add stubs for getdents(), nanosleep(),
3023         _execve(), _exit().
3024
3025 2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
3026
3027         * configure.host: Let *rtems* default to c99-formats.
3028
3029 2008-12-12  Craig Howland  <howland@LGSInnovations.com>
3030
3031         * libc/stdio/freopen.c:  Add <string.h> for memset prototype.
3032         * libc/stdio/fseek.c:  Ditto.
3033         * libc/stdio/fwide.c:  Add <wchar.h> for fwide prototype.
3034
3035 2008-12-11 Jeff Johnston  <jjohnstn@redhat.com>
3036
3037         * libc/include/sys/time.h (gettimeofday): Change prototype so
3038         2nd parameter is void *, matching SUSV2.
3039         * libc/syscalls/sysgettod.c (gettimeofday): Ditto.
3040
3041 2008-12-11 Jukka Pietarinen <jukka.pietarinen@mrf.fi>
3042
3043         * configure.host: Add lm32
3044         * libc/include/machine/ieeefp.h: Add __lm32__
3045         * libc/include/machine/setjmp.h: Add __lm32__
3046         * libc/machine/configure.in: Add lm32
3047         * libc/machine/configure: Regenerated.
3048         * libc/machine/lm32/aclocal.m4: New file.
3049         * libc/machine/lm32/configure.in: Ditto.
3050         * libc/machine/lm32/configure: Ditto.
3051         * libc/machine/lm32/Makefile.am: Ditto.
3052         * libc/machine/lm32/Makefile.in: Ditto.
3053         * libc/machine/lm32/setjmp.s: Ditto.
3054
3055 2008-12-11  Craig Howland  <howland@LGSInnovations.com>
3056
3057         * libc/include/sys/lock.h:  Add void cast to avoid "statement has no
3058         effect" warnings from gcc.
3059         * libc/include/sys/stdio.h:  Ditto.
3060         * libc/include/sys/time.h:  Correct gettimeofday() prototype.
3061         * libc/stdlib/__exp10.c:  Add #include "std.h" for function prototype.
3062         * libc/stdlib/__ten_mu.c:  Ditto.
3063         * libc/stdlib/std.h:  Correct __exp10's ANSI prototype.
3064         * libc/stdlib/ldtoa.c:  Change eiisinf definition to ANSI form.  (Are
3065         already others in file without _ansi method, so did not bother.)
3066         * libc/stdlib/system.c:  Use _ansi forms for function prototypes and
3067         definitions.
3068         * libc/time/mktime.c:  Ditto.
3069         * libc/misc/__dprintf.c:  Ditto.
3070         * libc/include/stdio.h:  Add function prototypes for _fgetc_r,
3071         _fgetpos_r, _fsetpos_r, _freopen_r, _rewind_r, freopen64, _freopen64_r,
3072         _funopen_r, and _fopencookie_r.
3073         * libc/include/reent.h:  Add function prototype for _stat64_r, align
3074         _execve_r prototype with POSIX definition for execve.
3075         * libc/reent/execr.c:  Align function prototype with POSIX definition.
3076         * libc/stdio/asniprintf.c:  Add #include "local.h".
3077         * libc/stdio/vasniprintf.c:  Ditto.
3078         * libc/stdio/fread.c:  Remove unused variable newcount.
3079         * libc/stdio/local.h:  Add function prototype for __sccl.
3080         * libc/stdio/open_memstream.c:  Remove unused variable flags.
3081         * libc/stdio/vfscanf.c:  Proper prototyping for ccfn, remove prototype
3082         for __sccl since now in local.h.
3083         * libc/string/memcpy.c:  Add #include <string.h> (for real and for
3084         traditional synopsis), remove extraneous stddef.h and limits.h.
3085         * libc/syscalls/sysclose.c:  Add #include <unistd.h>.
3086         * libc/syscalls/sysfork.c:  Ditto.
3087         * libc/syscalls/sysgetpid.c:  Ditto.
3088         * libc/syscalls/sysexecve.c:  Add #include <unistd.h>, align function
3089         prototype with POSIX definition.
3090         * libc/syscalls/sysfstat.c:  Add #include <sys/stat.h>.
3091         * libc/syscalls/sysgettod.c:  Correct sys/times.h to sys/time.h.
3092         * libc/syscalls/syskill.c:  Add #include <signal.h>.
3093         * libc/syscalls/syslink.c:  Add #include <unistd.h>, fix prototype.
3094         * libc/syscalls/sysunlink.c:  Ditto.
3095         * libc/syscalls/sysstat.c:  Add #include <sys/stat.h>, fix prototype.
3096         * libc/syscalls/syswait.c:  Add #include <sys/wait.h>, fix prototype.
3097
3098 2008-12-10  Corinna Vinschen  <corinna@vinschen.de>
3099
3100         Implement basic wide char stdio functionality, based on FreeBSD.
3101         * libc/include/stdio.h (__SORD): Define.
3102         (__SWID): Define.
3103         * libc/include/wchar.h: Add declarations for new wide char functions.
3104         (getwc): Define as macro.
3105         (getwchar): Ditto.
3106         (putwc): Ditto.
3107         (putwchar): Ditto.
3108         * libc/include/sys/reent.h (struct __sFILE): Add _mbstate member.
3109         (struct __sFILE64): Ditto.
3110         * libc/stdio/Makefile.am (ELIX_4_SOURCES): Add fgetwc.c, fgetws.c,
3111         fputwc.c, fputws.c, fwide.c, getwc.c, getwchar.c, putwc.c, putwchar.c
3112         and ungetwc.c.
3113         (CHEWOUT_FILES): Add fgetwc.def, fgetws.def, fputwc.def, fputws.def,
3114         fwide.def, getwc.def, getwchar.def, putwc.def, putwchar.def and
3115         ungetwc.def.
3116         Add header dependency rules for the new files.
3117         * libc/stdio/Makefile.in: Regenerate.
3118         * libc/stdio/fgetwc.c: New file, implementing fgetwc and _fgetwc_r.
3119         * libc/stdio/fgetws.c: New file, implementing fgetws and _fgetws_r.
3120         * libc/stdio/findfp.c (std): Initialize FILE's _mbstate member.
3121         (__sfmoreglue): Ditto.
3122         * libc/stdio/fputs.c (_fputs_r): Set stream orientation.
3123         * libc/stdio/fputwc.c: New file, implementing fputwc and _fputwc_r.
3124         * libc/stdio/fputws.c: New file, implementing fputws and _fputws_r.
3125         * libc/stdio/fread.c (_fread_r): Set stream orientation.
3126         * libc/stdio/freopen.c (_freopen_r): Reset stream orientation.  Reset
3127         _mbstate.
3128         * libc/stdio/fseek.c (_fseek_r): Reset _mbstate.
3129         * libc/stdio/fwide.c: New file, implementing fwide and _fwide_r.
3130         * libc/stdio/fwrite.c (_fwrite_r): Set stream orientation.
3131         * libc/stdio/getwc.c: New file, implementing getwc and _getwc_r.
3132         * libc/stdio/getwchar.c: New file, implementing getwchar and
3133         _getwchar_r.
3134         * libc/stdio/local.h (ORIENT): New macro.
3135         * libc/stdio/puts.c (_puts_r): Set stream orientation.
3136         * libc/stdio/putwc.c: New file, implementing putwc and _putwc_r.
3137         * libc/stdio/putwchar.c: New file, implementing putwchar and
3138         _putwchar_r.
3139         * libc/stdio/refill.c (__srefill_r): Set stream orientation.
3140         * libc/stdio/stdio.tex: Add documentation for new functions.
3141         * libc/stdio/ungetc.c (_ungetc_r): Set stream orientation.
3142         * libc/stdio/ungetwc.c: New file, implementing ungetwc and _ungetwc_r.
3143         * libc/stdio/vfscanf.c (__SVFSCANF_R): Set stream orientation.
3144         * libc/stdio/wbuf.c (__swbuf_r): Ditto.
3145
3146 2008-12-10  Joseph Myers  <joseph@codesourcery.com>
3147
3148         * libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
3149         INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
3150         constants with "long" types where appropriate.
3151         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
3152         INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
3153         UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
3154         Correct to match logic for defining corresponding types.
3155         (INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
3156         (SIZE_MAX): Define using __SIZE_MAX__ if available.
3157         (PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
3158         (PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
3159         (WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
3160         (UINT8_C, UINT16_C): Define to give signed values if corresponding
3161         types would promote to int.
3162
3163 2008-12-04  Corinna Vinschen  <corinna@vinschen.de>
3164
3165         * libc/include/sys/features.h (_POSIX_V6_ILP32_OFF32): Always define.
3166         (_POSIX_V6_LP64_OFF64): Ditto.
3167         (_POSIX_V6_LPBIG_OFFBIG): Ditto.
3168
3169 2008-11-28  Jeff Johnston  <jjohnstn@redhat.com>
3170
3171         * libc/sys/linux/inode.c: Include <dirent.h> instead of
3172         <linux/dirent.h>.
3173         * libc/sys/linux/io64.c: Add weak alias for _stat64.
3174
3175 2008-11-27  Ralf Corsepius <ralf.corsepius@rtems.org>
3176
3177         * libc/posix/telldir.c: Use #if !defined() instead of #ifndef
3178         to fix GCC warning.
3179
3180 2008-11-27  Ken Werner  <ken.werner@de.ibm.com>
3181
3182         * libc/machine/spu/Makefile.am: Add spu-mcount.S spu-gmon.c.
3183         * libc/machine/spu/Makefile.in: Regenerated.
3184         * libc/machine/spu/spu-gmon.c: New file.
3185         * libc/machine/spu/spu-mcount.S: New file.
3186
3187 2008-11-27  Joel Sherrill <joel.sherrill@oarcorp.com>
3188
3189         * configure.host (*-rtems*): Turn on using portion of unix subdirectory.
3190
3191 2008-11-27  Craig Howland <howland@LGSInnovations.com>
3192
3193         * libc/argz/argz_add.c:  Added #include <argz.h> to get function
3194         prototypes.
3195         * libc/argz/argz_append.c: Ditto.
3196         * libc/argz/argz_count.c: Ditto.
3197         * libc/argz/argz_create.c: Ditto.
3198         * libc/argz/argz_create_sep.c: Ditto.
3199         * libc/argz/argz_delete.c: Ditto.
3200         * libc/argz/argz_next.c: Ditto.
3201         * libc/argz/argz_stringify.c: Ditto
3202         * libc/stdlib/strtod.c: Added #include <stdlib.h> to get function
3203         prototypes.
3204         * libc/stdlib/wcstoul.c: Added #include <wchar.h> to get function
3205         prototypes, corrected traditional usage comment.
3206         * libc/include/wchar.h: Added _mbsrtowcs_r() prototype.
3207
3208 2008-11-26 Ken Werner <ken.werner@de.ibm.com>
3209
3210         * libm/machine/spu/headers/acosd2.h: Rebase against current simdmath.
3211         * libm/machine/spu/headers/asind2.h: Likewise.
3212         * libm/machine/spu/headers/asinhf4.h: Likewise.
3213         * libm/machine/spu/headers/divd2.h: Likewise.
3214         * libm/machine/spu/headers/erf_utils.h: Likewise.
3215         * libm/machine/spu/headers/erfcd2.h: Likewise.
3216         * libm/machine/spu/headers/erfcf4.h: Likewise.
3217         * libm/machine/spu/headers/erfd2.h: Likewise.
3218         * libm/machine/spu/headers/recipd2.h: Likewise.
3219
3220 2008-11-25  Corinna Vinschen  <corinna@vinschen.de>
3221
3222         * libc/stdio/gets.c (_gets_r): Lock stdin here and call
3223         __sgetc_r instead of _getchar_r.
3224
3225 2008-11-24  Craig Howland  <howland@LGSInnovations.com>
3226
3227         * libc/stdlib/wcstoull_r.c:  Add EINVAL return for bad base value,
3228         include wchar.h for prototype, remove extraneous includes, use
3229         C99/POSIX ULLONG_MAX (but allow for poor limits.h).
3230         * libc/stdlib/wcstoull.c:  Fix usage comments (mistakes and to add
3231         base value check noted above), remove extraneous includes.
3232         * libc/stdio/asnprintf.c:  Add #include "local.h" to get function
3233         prototype for _svfprintf_r().
3234         * libc/stdio/vasnprintf.c:  Ditto.
3235         * libc/stdio/local.h:  Add function prototype for __submore().
3236         * libc/include/stdio.h:  Add function prototypes for _fseeko_r and
3237         _ftello_r.
3238         * libc/posix/namespace.h:  Commented out define for write to
3239         eliminate write() prototype being missing for collate.c (which is
3240         the only file that presently includes namespace.h).
3241         * libc/include/reent.h:  Added _rename_r.
3242         * libc/reent/renamer.c:  Corrected function prototypes in synopses.
3243         * libc/locale/ldpart.c:  Use struct stat64 when calling fstat64.
3244
3245 2008-11-24  Jeff Johnston  <jjohnstn@redhat.com>
3246
3247         * libc/search/hash_func.c: Comment out unused static hash functions.
3248         * libc/reent/stat64r.c: New file.
3249         * libc/reent/Makefile.am: Add stat64r.c support.
3250         * libc/reent/Makefile.in: Regenerated.
3251
3252 2008-11-24  Joel Sherrill <joel.sherrill@oarcorp.com>
3253
3254         * libc/posix/scandir.c: Fix memory leaks.
3255
3256 2008-11-24  Joel Sherrill <joel.sherrill@oarcorp.com>
3257
3258         * libc/posix/Makefile.am: Compile readdir_r.c not readdir.c twice.
3259         * libc/posix/Makefile.in: Regenerated.
3260
3261 2008-11-24  Corinna Vinschen  <corinna@vinschen.de>
3262
3263         * libc/include/stdio.h (__SMOD): Remove definition of unused flag.
3264         * libc/include/sys/reent.h (struct __sFILE): Add _flags2 member.
3265         * libc/stdio/findfp.c (std): Initialize _flags2.
3266         (__sfp): Ditto.
3267         * libc/stdio/refill.c (__srefill_r): Drop resetting __SMOD flag.
3268         * libc/stdio/vfscanf.c (__ssrefill_r): Ditto.
3269         * libc/stdio/fseek.c (_fseek_r): Drop checking __SMOD flag.
3270         * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
3271
3272 2008-11-20  Ken Werner  <ken.werner@de.ibm.com>
3273
3274         * libc/machine/spu/sys/linux_syscalls.h: Additional syscall defines to
3275         be in sync with current kernels.
3276
3277 2008-11-20  Ken Werner  <ken.werner@de.ibm.com>
3278             Patrick Mansfield  <patmans@us.ibm.com>
3279             Joel Schopp   <jschopp@austin.ibm.com>
3280
3281         * libc/machine/spu/configure.in: Add __ea detection.
3282         * libc/machine/spu/Makefile.am: Add new files.
3283         * libc/machine/spu/include/ea.h: New file.
3284         * libc/machine/spu/ea_internal.h: Likewise.
3285         * libc/machine/spu/sys/mman.h: Likewise.
3286         * libc/machine/spu/mmap_ea.c: Likewise.
3287         * libc/machine/spu/munmap_ea.c: Likewise.
3288         * libc/machine/spu/mremap_ea.c: Likewise.
3289         * libc/machine/spu/msync_ea.c: Likewise.
3290         * libc/machine/spu/memchr_ea.c: Likewise.
3291         * libc/machine/spu/memcmp_ea.c: Likewise.
3292         * libc/machine/spu/memcpy_ea.c: Likewise.
3293         * libc/machine/spu/memmove_ea.c: Likewise.
3294         * libc/machine/spu/memset_ea.c: Likewise.
3295         * libc/machine/spu/malloc_ea.c: Likewise.
3296         * libc/machine/spu/realloc_ea.c: Likewise.
3297         * libc/machine/spu/calloc_ea.c: Likewise.
3298         * libc/machine/spu/free_ea.c: Likewise.
3299         * libc/machine/spu/posix_memalign_ea.c: Likewise.
3300         * libc/machine/spu/strcat_ea.c: Likewise.
3301         * libc/machine/spu/strchr_ea.c: Likewise.
3302         * libc/machine/spu/strcmp_ea.c: Likewise.
3303         * libc/machine/spu/strcpy_ea.c: Likewise.
3304         * libc/machine/spu/strcspn_ea.c: Likewise.
3305         * libc/machine/spu/strlen_ea.c: Likewise.
3306         * libc/machine/spu/strncat_ea.c: Likewise.
3307         * libc/machine/spu/strncmp_ea.c: Likewise.
3308         * libc/machine/spu/strncpy_ea.c: Likewise.
3309         * libc/machine/spu/strpbrk_ea.c: Likewise.
3310         * libc/machine/spu/strrchr_ea.c: Likewise.
3311         * libc/machine/spu/strspn_ea.c: Likewise.
3312         * libc/machine/spu/strstr_ea.c: Likewise.
3313         * libc/machine/spu/read_ea.c: Likewise.
3314         * libc/machine/spu/pread_ea.c: Likewise.
3315         * libc/machine/spu/readv_ea.c: Likewise.
3316         * libc/machine/spu/write_ea.c: Likewise.
3317         * libc/machine/spu/pwrite_ea.c: Likewise.
3318         * libc/machine/spu/writev_ea.c: Likewise.
3319
3320 2008-11-19  Joel Sherrill <joel.sherrill@oarcorp.com>
3321
3322         * libc/include/sys/config.h[__mips__]: Don't bother
3323         setting __ATTRIBUTE_IMPURE_PTR__ here.
3324         [__rtems__][__mips__]: No need to undef the __ATTRIBUTE_IMPURE_PTR__
3325         macro anymore.
3326
3327 2008-11-19  Jeff Johnston  <jjohnstn@redhat.com>
3328
3329         * libc/sys/linux/bits/dirent.h: New header file.
3330         * libc/sys/linux/sys/dirent.h: Include <bits/dirent.h> instead of
3331         <linux/dirent.h>.
3332         * libc/posix/Makefile.am: Remove reallocf.
3333         * libc/posix/Makefile.in: Regenerated.
3334         * libc/posix/reallocf.c: Moved to...
3335         * libc/stdlib/reallocf.c: Here
3336         * libc/stdlib/malloc.c: Add reallocf documentation.
3337         * libc/include/stdlib.h: Add reallocf and _reallocf_r prototypes.
3338         * libc/stdlib/Makefile.am: Add reallocf.
3339         * libc/stdlib/Makefile.in: Regenerated.
3340         * libc/posix/_isatty.c: Set errno.
3341
3342 2008-11-19  Craig Howland  <howland@LGSInnovations.com>
3343
3344         * libc/unix/collate.c (__collate_err): simplify to remove unnecessary
3345         strdup() and strlen() calls, also getting rid of a compiler warning.
3346
3347 2008-11-19  Ralf Corsepius <ralf.corsepius@rtems.org>
3348
3349         * libc/include/sys/config.h: Don't put
3350         __ATTRIBUTE_IMPURE_PTR__ into .sdata section for mips-rtems.
3351
3352 2008-11-19  Ralf Corsepius  <ralf.corsepius@rtems.org>
3353
3354         * libc/posix/runetype.h: Add include of stddef.h and remove
3355         defining standard types: size_t and wchar_t.
3356
3357 2008-11-19  Ralf Corsepius  <ralf.corsepius@rtems.org>
3358
3359         * libc/include/pthread.h: Remove prototypes for
3360         pthread_attr_getcputime and pthread_attr_setcputime which
3361         were proposed but never approved by the POSIX standard.
3362
3363 2008-11-18  Joel Sherrill <joel.sherrill@oarcorp.com>
3364
3365         * libc/unix/ttyname.c: Use isatty() instead of tcgetattr().
3366
3367 2008-11-18  Jeff Johnston  <jjohnstn@redhat.com>
3368
3369         * libc/unix/basename.c: Add !_NO_BASENAME flag check so code can be
3370         ignored if desired by a platform.
3371         * libc/unix/dirname.c: Ditto except replace BASENAME with file name.
3372         * libc/unix/getcwd.c: Ditto.
3373         * libc/unix/getlogin.c: Ditto.
3374         * libc/unix/getpass.c: Ditto.
3375         * libc/unix/getpwent.c: Ditto.
3376         * libc/unix/getut.c: Ditto.
3377         * libc/unix/pread.c: Ditto.
3378         * libc/unix/pwrite.c: Ditto.
3379         * libc/unix/sigset.c: Ditto.
3380
3381 2008-11-18  Craig Howland  <howland@LGSInnovations.com>
3382
3383         * libc/unix/ttyname.c: Add ttyname_r and change ttyname to use
3384         ttyname_r.
3385
3386 2008-11-17  Joel Sherrill <joel.sherrill@oarcorp.com>
3387
3388         * configure.host: RTEMS now uses posix subdirectory.
3389
3390 2008-11-17  Joel Sherrill <joel.sherrill@oarcorp.com>
3391
3392         * sys/rtems/include/limits.h: Add _POSIX2_RE_DUP_MAX.
3393         * sys/rtems/sys/param.h: sys/rtprio.h not needed.
3394
3395 2008-10-31  Jeff Johnston  <jjohnstn@redhat.com>
3396
3397         * libc/stdio/diprintf.c: Modify documentation so eclipse newlib
3398         libhover docs generate properly.
3399         * libc/stdio/dprintf.c: Ditto.
3400         * libc/stdio/fflush.c: Ditto.
3401         * libc/stdio/fopencookie.c: Ditto.
3402         * libc/stdio/fread.c: Ditto.
3403         * libc/stdio/fsetpos.c: Ditto.
3404         * libc/stdio/getc_u.c: Ditto.
3405         * libc/stdio/getchar_u.c: Ditto.
3406         * libc/stdio/putc_u.c: Ditto.
3407         * libc/stdio/putchar_u.c: Ditto.
3408         * libc/stdio/remove.c: Ditto.
3409         * libc/stdio/siprintf.c: Ditto.
3410         * libc/stdio/siscanf.c: Ditto.
3411         * libc/stdio/sprintf.c: Ditto.
3412         * libc/stdio/sscanf.c: Ditto.
3413         * libc/stdio/vfprintf.c: Ditto.
3414         * libc/stdio/vfscanf.c: Ditto.
3415         * libc/stdio/viprintf.c: Ditto.
3416         * libc/stdio/viscanf.c: Ditto.
3417         * libc/stdlib/calloc.c: Ditto.
3418         * libc/stdlib/efgcvt.c: Ditto.
3419         * libc/stdlib/envlock.c: Ditto.
3420         * libc/time/asctime.c: Ditto.
3421         * libc/time/ctime.c: Ditto.
3422         * libc/time/gmtime.c: Ditto.
3423         * libc/time/lcltime.c: Ditto.
3424         * libc/time/tzset.c: Ditto.
3425         * libc/stdlib/envlock.h: Moved to libc/include.
3426
3427 2008-10-31  Jeff Johnston  <jjohnstn@redhat.com>
3428
3429         * libc/include/limits.h: Add ARG_MAX, PATH_MAX, and _POSIX2_RE_DUP_MAX.
3430         * libc/include/envlock.h: New file.
3431         * libc/include/fnmatch.h: Ditto.
3432         * libc/include/glob.h: Ditto.
3433         * libc/include/regex.h: Ditto.
3434         * libc/include/wordexp.h: Ditto.
3435         * libc/posix/Makefile.am: Add new files moved from
3436         libc/sys/linux/stdlib.
3437         * libc/posix/Makefile.in: Regenerated.
3438         * libc/posix/COPYRIGHT: New file moved from libc/sys/linux/stdlib.
3439         * libc/posix/cclass.h: Ditto.
3440         * libc/posix/cname.h: Ditto.
3441         * libc/posix/collate.c: Ditto.
3442         * libc/posix/collate.h: Ditto.
3443         * libc/posix/collcmp.c: Ditto.
3444         * libc/posix/engine.c: Ditto.
3445         * libc/posix/fnmatch.3: Ditto.
3446         * libc/posix/glob.3: Ditto.
3447         * libc/posix/fnmatch.c: Ditto.
3448         * libc/posix/glob.c: Ditto.
3449         * libc/posix/namespace.h: Ditto.
3450         * libc/posix/reallocf.c: Ditto.
3451         * libc/posix/regcomp.c: Ditto.
3452         * libc/posix/regerror.c: Ditto.
3453         * libc/posix/regex.3: Ditto.
3454         * libc/posix/regex2.h: Ditto.
3455         * libc/posix/regexec.c: Ditto.
3456         * libc/posix/regfree.c: Ditto.
3457         * libc/posix/rune.h: Ditto.
3458         * libc/posix/runetype.h: Ditto.
3459         * libc/posix/scandir.c: Remove advertising clause which is not in
3460         effect.
3461         * libc/posix/sysexits.h: Ditto.
3462         * libc/posix/un-namespace.h: Ditto.
3463         * libc/posix/utils.h: Ditto.
3464         * libc/posix/wordexp.c: Ditto.
3465         * libc/posix/wordfree.c: Ditto.
3466         * libc/posix/execl.c: Add !_NO_EXECVE flag check.
3467         * libc/posix/execle.c: Ditto.
3468         * libc/posix/execlp.c: Ditto.
3469         * libc/posix/execv.c: Ditto.
3470         * libc/posix/execve.c: Ditto.
3471         * libc/posix/execvp.c: Ditto.
3472         * libc/posix/popen.c: Add !_NO_POPEN flag check.
3473         * libc/sys/linux/configure: Regenerated.
3474         * libc/sys/linux/configure.in: Remove stdlib.
3475         * libc/sys/linux/include/limits.h: Add include of linux/limits.h.
3476         * libc/sys/linux/stdlib/Makefile.am: Removed.
3477         * libc/sys/linux/stdlib/Makefile.in: Ditto.
3478         * libc/sys/linux/stdlib/COPYRIGHT: Moved to libc/posix.
3479         * libc/sys/linux/stdlib/cclass.h: Ditto.
3480         * libc/sys/linux/stdlib/cname.h: Ditto.
3481         * libc/sys/linux/stdlib/collate.c: Ditto.
3482         * libc/sys/linux/stdlib/collate.h: Ditto.
3483         * libc/sys/linux/stdlib/collcmp.c: Ditto.
3484         * libc/sys/linux/stdlib/engine.c: Ditto.
3485         * libc/sys/linux/stdlib/fnmatch.3: Ditto.
3486         * libc/sys/linux/stdlib/fnmatch.c: Ditto.
3487         * libc/sys/linux/stdlib/glob.3: Ditto.
3488         * libc/sys/linux/stdlib/glob.c: Ditto.
3489         * libc/sys/linux/stdlib/reallocf.c: Ditto.
3490         * libc/sys/linux/stdlib/regcomp.c: Ditto.
3491         * libc/sys/linux/stdlib/regerror.c: Ditto.
3492         * libc/sys/linux/stdlib/regex.3: Ditto.
3493         * libc/sys/linux/stdlib/regex2.h: Ditto.
3494         * libc/sys/linux/stdlib/regexec.c: Ditto.
3495         * libc/sys/linux/stdlib/regfree.c: Ditto.
3496         * libc/sys/linux/stdlib/utils.h: Ditto.
3497         * libc/sys/linux/stdlib/wordexp.c: Ditto.
3498         * libc/sys/linux/stdlib/wordfree.c: Ditto.
3499
3500 2008-10-16  Joel Sherrill <joel.sherrill@oarcorp.com>
3501
3502         * libc/include/sys/unistd.h: RTEMS follows standard for sync().
3503
3504 2008-10-16  Joel Sherrill <joel.sherrill@oarcorp.com>
3505
3506         * libc/include/time.h: Add CLOCK_MONOTONIC.
3507         * libc/include/sys/features.h: Define
3508         _POSIX_MONOTONIC_CLOCK for RTEMS.
3509
3510 2008-10-15  Jeff Johnston  <jjohnstn@redhat.com>
3511
3512         * newlib.hin: Restore to previous 1.14 version which has no
3513         PACKAGE_ macros.
3514
3515 2008-10-15  Joel Sherrill <joel.sherrill@oarcorp.com>
3516
3517         * libc/include/sys/unistd.h: Enable ttyname_r() for RTEMS.
3518
3519 2008-10-15  Craig Howland  <howland@LGSInnovations.com>
3520
3521         * libc/include/ctype.h (isblank):  isblank is C99.
3522         * libc/ctype/isblank.c (isblank comments):  ditto.  isblank does not
3523         have a macro version (as was claimed in the description).
3524
3525 2008-10-15  Jeff Johnston  <jjohnstn@redhat.com>
3526
3527         * libc/stdio/vfscanf.c (__ssvfiscanf_r): Do not support %lc, %C, %ls or
3528         %S conversions when the EL/IX level is 1.
3529
3530 2008-10-06  Eric Blake  <ebb9@byu.net>
3531
3532         * libc/stdlib/ldtoa.c (etoasc): Fix rounding to even when fraction
3533         is 0.5 or 0.75.
3534
3535 2008-10-06  Craig Howland  <howland@LGSInnovations.com>
3536
3537         * libc/time/tzset_r.c (_tzset_r):  Change US default start/end dates to
3538         2007 law revision of start in 2nd Sunday in March, end 1st Sun in Nov.
3539
3540 2008-10-02  Jeff Johnston  <jjohnstn@redhat.com>
3541
3542         * libc/string/str-two-way.h (critical_factorization): Cast the index
3543         operation to ensure unsigned rollover occurs when adding to SIZE_MAX.
3544
3545 2008-10-02  Jeff Johnston  <jjohnstn@redhat.com>
3546
3547         * libc/sys/linux/include/stdint.h (SIZE_MAX): Fix value which should
3548         be size of size_t, not int.
3549         (SIZE_MIN): Remove.
3550         * libc/sys/linux/sys/stdint.h: Ditto.
3551
3552 2008-10-02  Jeff Johnston  <jjohnstn@redhat.com>
3553
3554         * libc/include/sys/reent.h[_REENT_SMALL](_REENT_INIT_RAND48): Add
3555         initialization of _rand_next to 1.
3556
3557 2008-09-29  Peter O'Gorman  <pogma@thewrittenword.com>
3558             Steve Ellcey  <sje@cup.hp.com>
3559
3560         * configure: Regenerate for new libtool.
3561         * aclocal.m4: Ditto.
3562         * Makefile.in: Ditto.
3563         * newlib.hin: Ditto.
3564         * doc/Makefile.in: Ditto.
3565         * doc/configure: Ditto.
3566         * iconvdata/Makefile.in: Ditto.
3567         * iconvdata/aclocal.m4: Ditto.
3568         * iconvdata/configure: Ditto.
3569         * libc/Makefile.in: Ditto.
3570         * libc/aclocal.m4: Ditto.
3571         * libc/configure: Ditto.
3572         * libc/argz/Makefile.in: Ditto.
3573         * libc/ctype/Makefile.in: Ditto.
3574         * libc/errno/Makefile.in: Ditto.
3575         * libc/iconv/Makefile.in: Ditto.
3576         * libc/iconv/ccs/Makefile.in: Ditto.
3577         * libc/iconv/ccs/binary/Makefile.in: Ditto.
3578         * libc/iconv/ces/Makefile.in: Ditto.
3579         * libc/iconv/lib/Makefile.in: Ditto.
3580         * libc/locale/Makefile.in: Ditto.
3581         * libc/machine/Makefile.in: Ditto.
3582         * libc/machine/aclocal.m4: Ditto.
3583         * libc/machine/configure: Ditto.
3584         * libc/machine/a29k/Makefile.in: Ditto.
3585         * libc/machine/a29k/configure: Ditto.
3586         * libc/machine/arm/Makefile.in: Ditto.
3587         * libc/machine/arm/configure: Ditto.
3588         * libc/machine/bfin/Makefile.in: Ditto.
3589         * libc/machine/bfin/configure: Ditto.
3590         * libc/machine/cris/Makefile.in: Ditto.
3591         * libc/machine/cris/configure: Ditto.
3592         * libc/machine/crx/Makefile.in: Ditto.
3593         * libc/machine/crx/configure: Ditto.
3594         * libc/machine/d10v/Makefile.in: Ditto.
3595         * libc/machine/d10v/configure: Ditto.
3596         * libc/machine/d30v/Makefile.in: Ditto.
3597         * libc/machine/d30v/configure: Ditto.
3598         * libc/machine/fr30/Makefile.in: Ditto.
3599         * libc/machine/fr30/configure: Ditto.
3600         * libc/machine/frv/Makefile.in: Ditto.
3601         * libc/machine/frv/configure: Ditto.
3602         * libc/machine/h8300/Makefile.in: Ditto.
3603         * libc/machine/h8300/configure: Ditto.
3604         * libc/machine/h8500/Makefile.in: Ditto.
3605         * libc/machine/h8500/configure: Ditto.
3606         * libc/machine/hppa/Makefile.in: Ditto.
3607         * libc/machine/hppa/configure: Ditto.
3608         * libc/machine/i386/Makefile.in: Ditto.
3609         * libc/machine/i386/aclocal.m4: Ditto.
3610         * libc/machine/i386/configure: Ditto.
3611         * libc/machine/i960/Makefile.in: Ditto.
3612         * libc/machine/i960/configure: Ditto.
3613         * libc/machine/iq2000/Makefile.in: Ditto.
3614         * libc/machine/iq2000/configure: Ditto.
3615         * libc/machine/m32c/Makefile.in: Ditto.
3616         * libc/machine/m32c/configure: Ditto.
3617         * libc/machine/m32r/Makefile.in: Ditto.
3618         * libc/machine/m32r/configure: Ditto.
3619         * libc/machine/m68hc11/Makefile.in: Ditto.
3620         * libc/machine/m68hc11/configure: Ditto.
3621         * libc/machine/m68k/Makefile.in: Ditto.
3622         * libc/machine/m68k/configure: Ditto.
3623         * libc/machine/m88k/Makefile.in: Ditto.
3624         * libc/machine/m88k/configure: Ditto.
3625         * libc/machine/mep/Makefile.in: Ditto.
3626         * libc/machine/mep/configure: Ditto.
3627         * libc/machine/mips/Makefile.in: Ditto.
3628         * libc/machine/mips/configure: Ditto.
3629         * libc/machine/mn10200/Makefile.in: Ditto.
3630         * libc/machine/mn10200/configure: Ditto.
3631         * libc/machine/mn10300/Makefile.in: Ditto.
3632         * libc/machine/mn10300/configure: Ditto.
3633         * libc/machine/mt/Makefile.in: Ditto.
3634         * libc/machine/mt/configure: Ditto.
3635         * libc/machine/necv70/Makefile.in: Ditto.
3636         * libc/machine/necv70/configure: Ditto.
3637         * libc/machine/powerpc/Makefile.in: Ditto.
3638         * libc/machine/powerpc/configure: Ditto.
3639         * libc/machine/sh/Makefile.in: Ditto.
3640         * libc/machine/sh/configure: Ditto.
3641         * libc/machine/sparc/Makefile.in: Ditto.
3642         * libc/machine/sparc/configure: Ditto.
3643         * libc/machine/spu/Makefile.in: Ditto.
3644         * libc/machine/spu/configure: Ditto.
3645         * libc/machine/tic4x/Makefile.in: Ditto.
3646         * libc/machine/tic4x/configure: Ditto.
3647         * libc/machine/tic80/Makefile.in: Ditto.
3648         * libc/machine/tic80/configure: Ditto.
3649         * libc/machine/v850/Makefile.in: Ditto.
3650         * libc/machine/v850/configure: Ditto.
3651         * libc/machine/w65/Makefile.in: Ditto.
3652         * libc/machine/w65/configure: Ditto.
3653         * libc/machine/x86_64/Makefile.in: Ditto.
3654         * libc/machine/x86_64/configure: Ditto.
3655         * libc/machine/xscale/Makefile.in: Ditto.
3656         * libc/machine/xscale/configure: Ditto.
3657         * libc/machine/xstormy16/Makefile.in: Ditto.
3658         * libc/machine/xstormy16/configure: Ditto.
3659         * libc/machine/z8k/Makefile.in: Ditto.
3660         * libc/machine/z8k/configure: Ditto.
3661         * libc/misc/Makefile.in: Ditto.
3662         * libc/posix/Makefile.in: Ditto.
3663         * libc/reent/Makefile.in: Ditto.
3664         * libc/search/Makefile.in: Ditto.
3665         * libc/signal/Makefile.in: Ditto.
3666         * libc/stdio/Makefile.in: Ditto.
3667         * libc/stdio64/Makefile.in: Ditto.
3668         * libc/stdlib/Makefile.in: Ditto.
3669         * libc/string/Makefile.in: Ditto.
3670         * libc/sys/Makefile.in: Ditto.
3671         * libc/sys/aclocal.m4: Ditto.
3672         * libc/sys/configure: Ditto.
3673         * libc/sys/a29khif/Makefile.in: Ditto.
3674         * libc/sys/a29khif/configure: Ditto.
3675         * libc/sys/arc/Makefile.in: Ditto.
3676         * libc/sys/arc/configure: Ditto.
3677         * libc/sys/arm/Makefile.in: Ditto.
3678         * libc/sys/arm/configure: Ditto.
3679         * libc/sys/d10v/Makefile.in: Ditto.
3680         * libc/sys/d10v/configure: Ditto.
3681         * libc/sys/decstation/Makefile.in: Ditto.
3682         * libc/sys/decstation/configure: Ditto.
3683         * libc/sys/h8300hms/Makefile.in: Ditto.
3684         * libc/sys/h8300hms/configure: Ditto.
3685         * libc/sys/h8500hms/Makefile.in: Ditto.
3686         * libc/sys/h8500hms/configure: Ditto.
3687         * libc/sys/linux/Makefile.in: Ditto.
3688         * libc/sys/linux/aclocal.m4: Ditto.
3689         * libc/sys/linux/configure: Ditto.
3690         * libc/sys/linux/argp/Makefile.in: Ditto.
3691         * libc/sys/linux/cmath/Makefile.in: Ditto.
3692         * libc/sys/linux/dl/Makefile.in: Ditto.
3693         * libc/sys/linux/iconv/Makefile.in: Ditto.
3694         * libc/sys/linux/intl/Makefile.in: Ditto.
3695         * libc/sys/linux/linuxthreads/Makefile.in: Ditto.
3696         * libc/sys/linux/linuxthreads/aclocal.m4: Ditto.
3697         * libc/sys/linux/linuxthreads/configure: Ditto.
3698         * libc/sys/linux/linuxthreads/machine/Makefile.in: Ditto.
3699         * libc/sys/linux/linuxthreads/machine/aclocal.m4: Ditto.
3700         * libc/sys/linux/linuxthreads/machine/configure: Ditto.
3701         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Ditto.
3702         * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Ditto.
3703         * libc/sys/linux/linuxthreads/machine/i386/configure: Ditto.
3704         * libc/sys/linux/machine/Makefile.in: Ditto.
3705         * libc/sys/linux/machine/aclocal.m4: Ditto.
3706         * libc/sys/linux/machine/configure: Ditto.
3707         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
3708         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
3709         * libc/sys/linux/machine/i386/configure: Ditto.
3710         * libc/sys/linux/net/Makefile.in: Ditto.
3711         * libc/sys/linux/stdlib/Makefile.in: Ditto.
3712         * libc/sys/m88kbug/Makefile.in: Ditto.
3713         * libc/sys/m88kbug/configure: Ditto.
3714         * libc/sys/mmixware/Makefile.in: Ditto.
3715         * libc/sys/mmixware/configure: Ditto.
3716         * libc/sys/netware/Makefile.in: Ditto.
3717         * libc/sys/netware/configure: Ditto.
3718         * libc/sys/rdos/Makefile.in: Ditto.
3719         * libc/sys/rdos/configure: Ditto.
3720         * libc/sys/rtems/Makefile.in: Ditto.
3721         * libc/sys/rtems/configure: Ditto.
3722         * libc/sys/sh/Makefile.in: Ditto.
3723         * libc/sys/sh/configure: Ditto.
3724         * libc/sys/sparc64/Makefile.in: Ditto.
3725         * libc/sys/sparc64/configure: Ditto.
3726         * libc/sys/sun4/Makefile.in: Ditto.
3727         * libc/sys/sun4/configure: Ditto.
3728         * libc/sys/sysmec/Makefile.in: Ditto.
3729         * libc/sys/sysmec/configure: Ditto.
3730         * libc/sys/sysnec810/Makefile.in: Ditto.
3731         * libc/sys/sysnec810/configure: Ditto.
3732         * libc/sys/sysnecv850/Makefile.in: Ditto.
3733         * libc/sys/sysnecv850/configure: Ditto.
3734         * libc/sys/sysvi386/Makefile.in: Ditto.
3735         * libc/sys/sysvi386/configure: Ditto.
3736         * libc/sys/sysvnecv70/Makefile.in: Ditto.
3737         * libc/sys/sysvnecv70/configure: Ditto.
3738         * libc/sys/tic80/Makefile.in: Ditto.
3739         * libc/sys/tic80/configure: Ditto.
3740         * libc/sys/w65/Makefile.in: Ditto.
3741         * libc/sys/w65/configure: Ditto.
3742         * libc/sys/z8ksim/Makefile.in: Ditto.
3743         * libc/sys/z8ksim/configure: Ditto.
3744         * libc/syscalls/Makefile.in: Ditto.
3745         * libc/time/Makefile.in: Ditto.
3746         * libc/unix/Makefile.in: Ditto.
3747         * libm/Makefile.in: Ditto.
3748         * libm/aclocal.m4: Ditto.
3749         * libm/configure: Ditto.
3750         * libm/common/Makefile.in: Ditto.
3751         * libm/machine/Makefile.in: Ditto.
3752         * libm/machine/aclocal.m4: Ditto.
3753         * libm/machine/configure: Ditto.
3754         * libm/machine/i386/Makefile.in: Ditto.
3755         * libm/machine/i386/aclocal.m4: Ditto.
3756         * libm/machine/i386/configure: Ditto.
3757         * libm/machine/spu/Makefile.in: Ditto.
3758         * libm/machine/spu/configure: Ditto.
3759         * libm/math/Makefile.in: Ditto.
3760         * libm/mathfp/Makefile.in: Ditto.
3761
3762 2008-09-26  Craig Howland  <howland@LGSInnovations.com>
3763
3764         * libc/stdlib/getenv_r.c (_getenv_r): Modify to not match if name
3765         contains an equal sign.
3766
3767 2008-09-25  Raphael Derossa Pereira  <raphaelpereira@gmail.com>
3768
3769         * libc/include/pthread.h[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add
3770         new pthread_mutexattr_gettype and pthread_mutexattr_settype
3771         prototypes.
3772         * libc/include/sys/types.h[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add
3773         new mutex type values.
3774         (pthread_mutexattr_t)[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add type
3775         field.
3776
3777 2008-09-24  Jeff Johnston  <jjohnstn@redhat.com>
3778
3779         * libc/stdlib/setenv_r.c (_unsetenv_r): Modify to return -1 only if
3780         name is NULL, empty, or contains equal sign.
3781
3782 2008-09-24  Pawel Veselov  <pawel.veselov@gmail.com>
3783
3784         Fix setenv/getenv/unsetenv to be OpenGroup compliant:
3785         * libc/include/stdlib.h (unsetenv, _unsetenv_r): Redefine with integer
3786         return types.
3787         * libc/stdlib/getenv_r.c (_findenv_r): Do no special processing with
3788         names that contain equal chars.
3789         * libc/stdlib/setenv.c: Redefine _unsetenv_r as returning int.
3790         * libc/stdlib/setenv_r.c (_setenv_r): Return -1 and set errno to
3791         EINVAL if name contains an equal sign.  Do not remove any equal signs
3792         from the value.
3793         (_unsetenv_r): Modified to return int.  Return -1 and set EINVAL
3794         if name contains equal sign.  Return -1 if no variable(s) were found
3795         and return 0 otherwise.
3796
3797 2008-09-19  Eric Blake  <ebb9@byu.net>
3798
3799         Supply missing POSIX errno values.
3800         * libc/include/sys/errno.h (ENOTRECOVERABLE, EOWNERDEAD): Define.
3801         * libc/string/strerror.c (strerror): Decode them, and ECANCELED.
3802
3803 2008-09-10  Ken Werner  <ken.werner@de.ibm.com>
3804
3805         * libc/machine/spu/strcpy.h: Add missing header.
3806         * libc/machine/spu/spu_timer_slih.c: Remove unused Variable.
3807         * libm/machine/spu/headers/lgammaf4.h: Add type cast.
3808
3809 2008-09-08  Jeff Johnston  <jjohnstn@redhat.com>
3810
3811         * libc/sys/linux/dl/atomicity.h (exchange_and_add): Fix asm
3812         statement to use "m" instead of "0".
3813         (atomic_add): Ditto.
3814         * libc/sys/linux/linuxthreads/spinlock.c (__pthread_release): Ditto.
3815         * libc/sys/linux/net/getaddrinfo.c: Add limit.h include.
3816         * libc/sys/linux/stdlib/glob.c: Ditto.
3817
3818 2008-09-04  Ken Werner  <ken.werner@de.ibm.com>
3819
3820         * libm/machine/spu/headers/acosd2.h: Duplicated preamble text removed.
3821         * libm/machine/spu/headers/acosf4.h: Likewise.
3822         * libm/machine/spu/headers/acoshd2.h: Likewise.
3823         * libm/machine/spu/headers/acoshf4.h: Likewise.
3824         * libm/machine/spu/headers/asind2.h: Likewise.
3825         * libm/machine/spu/headers/asinf4.h: Likewise.
3826         * libm/machine/spu/headers/asinhd2.h: Likewise.
3827         * libm/machine/spu/headers/asinhf4.h: Likewise.
3828         * libm/machine/spu/headers/atan2d2.h: Likewise.
3829         * libm/machine/spu/headers/atan2f4.h: Likewise.
3830         * libm/machine/spu/headers/atand2.h: Likewise.
3831         * libm/machine/spu/headers/atanf4.h: Likewise.
3832         * libm/machine/spu/headers/atanhd2.h: Likewise.
3833         * libm/machine/spu/headers/atanhf4.h: Likewise.
3834         * libm/machine/spu/headers/cos_sin.h: Likewise.
3835         * libm/machine/spu/headers/cosd2.h: Likewise.
3836         * libm/machine/spu/headers/cosf4.h: Likewise.
3837         * libm/machine/spu/headers/coshd2.h: Likewise.
3838         * libm/machine/spu/headers/coshf4.h: Likewise.
3839         * libm/machine/spu/headers/divd2.h: Likewise.
3840         * libm/machine/spu/headers/divf4.h: Likewise.
3841         * libm/machine/spu/headers/erf_utils.h: Likewise.
3842         * libm/machine/spu/headers/erfcd2.h: Likewise.
3843         * libm/machine/spu/headers/erfcf4.h: Likewise.
3844         * libm/machine/spu/headers/erfd2.h: Likewise.
3845         * libm/machine/spu/headers/erff4.h: Likewise.
3846         * libm/machine/spu/headers/exp2d2.h: Likewise.
3847         * libm/machine/spu/headers/exp2f4.h: Likewise.
3848         * libm/machine/spu/headers/expd2.h: Likewise.
3849         * libm/machine/spu/headers/expf4.h: Likewise.
3850         * libm/machine/spu/headers/expm1d2.h: Likewise.
3851         * libm/machine/spu/headers/expm1f4.h: Likewise.
3852         * libm/machine/spu/headers/floord2.h: Likewise.
3853         * libm/machine/spu/headers/floorf4.h: Likewise.
3854         * libm/machine/spu/headers/hypotd2.h: Likewise.
3855         * libm/machine/spu/headers/hypotf4.h: Likewise.
3856         * libm/machine/spu/headers/isnand2.h: Likewise.
3857         * libm/machine/spu/headers/isnanf4.h: Likewise.
3858         * libm/machine/spu/headers/ldexpd2.h: Likewise.
3859         * libm/machine/spu/headers/ldexpf4.h: Likewise.
3860         * libm/machine/spu/headers/lgammad2.h: Likewise.
3861         * libm/machine/spu/headers/lgammaf4.h: Likewise.
3862         * libm/machine/spu/headers/log10d2.h: Likewise.
3863         * libm/machine/spu/headers/log1pd2.h: Likewise.
3864         * libm/machine/spu/headers/log1pf4.h: Likewise.
3865         * libm/machine/spu/headers/log2d2.h: Likewise.
3866         * libm/machine/spu/headers/log2f4.h: Likewise.
3867         * libm/machine/spu/headers/logbf4.h: Likewise.
3868         * libm/machine/spu/headers/logd2.h: Likewise.
3869         * libm/machine/spu/headers/logf4.h: Likewise.
3870         * libm/machine/spu/headers/nearbyintf4.h: Likewise.
3871         * libm/machine/spu/headers/nextafterd2.h: Likewise.
3872         * libm/machine/spu/headers/nextafterf4.h: Likewise.
3873         * libm/machine/spu/headers/powd2.h: Likewise.
3874         * libm/machine/spu/headers/powf4.h: Likewise.
3875         * libm/machine/spu/headers/recipd2.h: Likewise.
3876         * libm/machine/spu/headers/recipf4.h: Likewise.
3877         * libm/machine/spu/headers/rintf4.h: Likewise.
3878         * libm/machine/spu/headers/scalbnf4.h: Likewise.
3879         * libm/machine/spu/headers/signbitd2.h: Likewise.
3880         * libm/machine/spu/headers/sincosd2.h: Likewise.
3881         * libm/machine/spu/headers/sincosf4.h: Likewise.
3882         * libm/machine/spu/headers/sind2.h: Likewise.
3883         * libm/machine/spu/headers/sinf4.h: Likewise.
3884         * libm/machine/spu/headers/sinhd2.h: Likewise.
3885         * libm/machine/spu/headers/sinhf4.h: Likewise.
3886         * libm/machine/spu/headers/sqrtd2.h: Likewise.
3887         * libm/machine/spu/headers/sqrtf4.h: Likewise.
3888         * libm/machine/spu/headers/tand2.h: Likewise.
3889         * libm/machine/spu/headers/tanf4.h: Likewise.
3890         * libm/machine/spu/headers/tanhd2.h: Likewise.
3891         * libm/machine/spu/headers/tanhf4.h: Likewise.
3892         * libm/machine/spu/headers/tgammad2.h: Likewise.
3893         * libm/machine/spu/headers/tgammaf4.h: Likewise.
3894         * libm/machine/spu/headers/truncd2.h: Likewise.
3895         * libm/machine/spu/headers/truncf4.h: Likewise.
3896         * libm/machine/spu/headers/simdmath.h: Likewise.
3897
3898 2008-09-04  Ken Werner  <ken.werner@de.ibm.com>
3899
3900         * libm/machine/spu/headers/acoshf4.h: Rebase against current simdmath.
3901         * libm/machine/spu/headers/asinhd2.h: Likewise.
3902         * libm/machine/spu/headers/atanhd2.h: Likewise.
3903         * libm/machine/spu/headers/atanhf4.h: Likewise.
3904         * libm/machine/spu/headers/erff4.h: Likewise.
3905         * libm/machine/spu/headers/expd2.h: Likewise.
3906         * libm/machine/spu/headers/ldexpd2.h: Likewise.
3907         * libm/machine/spu/headers/lgammaf4.h: Likewise.
3908         * libm/machine/spu/headers/logbf4.h: Likewise.
3909         * libm/machine/spu/headers/nextafterd2.h: Likewise.
3910         * libm/machine/spu/headers/nextafterf4.h: Likewise.
3911         * libm/machine/spu/headers/recipd2.h: Likewise.
3912         * libm/machine/spu/headers/simdmath.h: Likewise.
3913         * libm/machine/spu/headers/acoshd2.: Likewise.
3914
3915 2008-09-04  Ken Werner  <ken.werner@de.ibm.com>
3916
3917         * libm/machine/spu/headers/cbrt.h: cbrt_factors[] declared.
3918         * libm/machine/spu/headers/cbrtf.h: Likewise.
3919
3920 2008-09-01  Ken Werner  <ken.werner@de.ibm.com>
3921
3922         * libc/machine/spu/include/spu_timer.h: spu_timebase function added.
3923         * libc/machine/spu/spu_timebase.c: New file.
3924         * libc/machine/spu/Makefile.am: Add new file.
3925         * libc/machine/spu/Makefile.in: Regenerated.
3926
3927 2008-08-28  Craig Howland  <howland@LGSInnovations.com>
3928
3929         * libc/time/mktime.c (mktime): Fix tm_isdst value usage (allowing
3930         any positive value from user (per std) rather than depending
3931         upon 1).
3932
3933 2008-08-28  Corinna Vinschen  <corinna@vinschen.de>
3934
3935         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Optimize condition
3936         for accepting a converted character.
3937
3938 2008-08-27  Sandra Loosemore  <sandra@codesourcery.com>
3939
3940         * libc/libc.texinfo: Remove "LOCAL KLUGE" that prevents it
3941         from building pdfs.
3942         * libm/libm.texinfo: Likewise.
3943
3944 2008-08-27  Corinna Vinschen  <corinna@vinschen.de>
3945
3946         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Fix condition for
3947         accepting a converted character and continuing the loop.
3948
3949 2008-07-24  Jeff Johnston  <jjohnstn@redhat.com>
3950
3951         * libc/include/ctype.h (_ctype_): Restore for C++ backward
3952         compatability only.
3953
3954 2008-07-21  Jeff Johnston  <jjohnstn@redhat.com>
3955
3956         * libc/ctype/ctype_.c: Add new pointer __ctype_ptr__ which is one
3957         less than the old __ctype_ptr.
3958         * libc/ctype/isalnum.c: Use __ctype_ptr__.
3959         * libc/ctype/isalpha.c: Ditto.
3960         * libc/ctype/iscntrl.c: Ditto.
3961         * libc/ctype/isdigit.c: Ditto.
3962         * libc/ctype/islower.c: Ditto.
3963         * libc/ctype/isprint.c: Ditto.
3964         * libc/ctype/ispunct.c: Ditto.
3965         * libc/ctype/isspace.c: Ditto.
3966         * libc/ctype/isupper.c: Ditto.
3967         * libc/ctype/isxdigit.c: Ditto.
3968         * libc/include/ctype.h: Change ctype macros to use new __ctype_ptr__
3969         and add declaration of __ctype_ptr__.  Remove older ctype table pointers
3970         from here even though they can still work.
3971
3972 2008-07-18  Ken Werner  <ken.werner@de.ibm.com>
3973
3974         * libc/machine/spu/strcpy.h: Fix error in previous patch.
3975
3976 2008-07-17  Jeff Johnston  <jjohnstn@redhat.com>
3977
3978         * libc/include/assert.h (__ASSERT_FUNC): Define to __FUNCTION__ when
3979         __STDC_VERSION__ < 199901L and __GNUC__ >= 2.
3980
3981 2008-07-17  Ken Werner  <ken.werner@de.ibm.com>
3982
3983         * libc/machine/spu/strcpy.h: Pad null bytes if necessary.
3984
3985 2008-07-08  Kenji Tanaka  <tanaka.ken2@jp.panasonic.com>
3986
3987         * libc/machine/mn10300/memset.S: Fix bug where return value is
3988         incorrectly set if number of bytes set is a multiple of 4.
3989
3990 2008-07-07  Hans-Peter Nilsson  <hp@axis.com>
3991
3992         * libc/machine/mips/strncpy.c: Include stdint.h to get uintptr_t.
3993         (strncpy): Cast src to uintptr_t before checking alignment with "&".
3994
3995 2008-07-02  Jeff Johnston  <jjohnstn@redhat.com>
3996
3997         * libc/argz/argz_count.c: Include stddef.h to get size_t.
3998         * libc/argz/argz_extract.c: Ditto.
3999         * libc/argz/argz_stringify.c: Ditto.
4000         * libc/search/hash.h: Ditto.
4001         * libc/sys/linux/include/sched.h: Ditto.
4002         * libc/sys/linux/sys/types.h: Ditto.
4003
4004 2008-07-02  Jeff Johnston  <jjohnstn@redhat.com>
4005
4006         * libc/machine/mips/strncpy.c (strncpy): Fix logic so unaligned
4007         source data is taken care of before loop unrolling.
4008
4009 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
4010
4011         Fix strict-aliasing issues with _strtod_r and Storeinc.
4012         * libc/stdlib/strtod.c (_strtod_r): Change local variables aadj,
4013         rv, rv0 from double to type U.  Use accessor macros dval, dword0
4014         and dword1 for all accesses except for the ULtod call, where rv.i
4015         replaces the pointer cast.
4016         * libc/stdlib/mprec.h (U): Rename member L to i for easier re-use
4017         of access macros.  Tweak comment.
4018         Remove #ifdef'd YES_ALIAS code.
4019         (dword0, dword1, dval): Define in terms of uncast union member
4020         access.  Ditto for _DOUBLE_IS_32BITS variants.
4021         (Storeinc): Replace aliasing-flawed microoptimized definition with
4022         alternative suggested in comment.  Remove now stale comment.
4023
4024 2008-06-21  Corinna Vinschen  <corinna@vinschen.de>
4025
4026         * libc/include/machine/setjmp.h (_longjmp): Define as function on
4027         Cygwin.
4028         (_setjmp): Ditto.
4029
4030 2008-06-18  Eric Blake  <ebb9@byu.net>
4031
4032         Per Posix, strsignal returns non-const char*.
4033         * libc/include/string.h (strsignal): Fix return type.
4034
4035 2008-06-17  Ken Werner  <ken.werner@de.ibm.com>
4036
4037         * libc/machine/spu/sys/linux_syscalls.h: New file to add Linux syscall
4038         support.
4039
4040 2008-06-16  Ken Werner  <ken.werner@de.ibm.com>
4041
4042         * libc/machine/spu/sys/dirent.h: Add extern "C" specifier if C++.
4043         * libc/machine/spu/sys/sched.h: Likewise.
4044         * libc/machine/spu/sys/syscall.h: Likewise.
4045
4046 2008-06-16  Ken Werner  <ken.werner@de.ibm.com>
4047
4048         * libc/machine/spu/mk_syscalls: Provide .type and .size directives
4049         in generated assembler files.
4050         * libc/machine/spu/fprintf.S: Regenerate.
4051         * libc/machine/spu/fscanf.S: Regenerate.
4052         * libc/machine/spu/printf.S: Regenerate.
4053         * libc/machine/spu/scanf.S: Regenerate.
4054         * libc/machine/spu/snprintf.S: Regenerate.
4055         * libc/machine/spu/sprintf.S: Regenerate.
4056         * libc/machine/spu/sscanf.S: Regenerate.
4057         * libc/machine/spu/stack_reg_va.S (__stack_reg_va): Provide .type
4058         and .size directives.
4059         * libc/machine/spu/setjmp.S (setjmp): Likewise.
4060         (longjmp): Likewise.
4061
4062 2008-06-11  Jeff Johnston  <jjohnstn@redhat.com>
4063
4064         * libc/include/machine/_default_types.h: Fix GNUC check to
4065         handle 4.0 and greater.
4066
4067 2008-06-09  Ken Werner  <ken.werner@de.ibm.com>
4068
4069         * libc/machine/spu/Makefile.am: Add new files.
4070         * libc/machine/spu/Makefile.in: Likewise.
4071         * libc/machine/spu/include/spu_timer.h: New file to add timer support
4072         using interrupts.
4073         * libc/machine/spu/spu_clock_stop.c: Likewise.
4074         * libc/machine/spu/spu_clock_svcs.c: Likewise.
4075         * libc/machine/spu/spu_timer_flih.S: Likewise.
4076         * libc/machine/spu/spu_timer_free.c: Likewise.
4077         * libc/machine/spu/spu_timer_internal.h: Likewise.
4078         * libc/machine/spu/spu_timer_slih.c: Likewise.
4079         * libc/machine/spu/spu_timer_slih_reg.c: Likewise.
4080         * libc/machine/spu/spu_timer_stop.c: Likewise.
4081         * libc/machine/spu/spu_timer_svcs.c: Likewise.
4082
4083 2008-06-09  Ken Werner  <ken.werner@de.ibm.com>
4084
4085         * libc/machine/spu/strcat.c: Return value fixed.
4086         * libc/machine/spu/strncat.c: Likewise.
4087
4088 2008-05-28  Eric Blake  <ebb9@byu.net>
4089
4090         Fix bug in previous patch.
4091         * libc/machine/i386/memset.S (memset): Mask second arg correctly.
4092
4093 2008-05-27  Jeff Johnston  <jjohnstn@redhat.com>
4094
4095         * libc/string/memset.c: Fix documented prototype to remove
4096         erroneous const attribute on first parameter.
4097
4098 2008-05-26  Eric Blake  <ebb9@byu.net>
4099
4100         Optimize the generic and x86 memchr.
4101         * libc/string/memchr.c (memchr) [!__OPTIMIZE_SIZE__]:
4102         Pre-align pointer so unaligned searches aren't penalized.
4103         * libc/machine/i386/memchr.S (memchr) [!__OPTIMIZE_SIZE__]: Word
4104         operations are faster than repnz byte searches.
4105
4106 2008-05-26  Eric Blake  <ebb9@byu.net>
4107
4108         Optimize the generic and x86 memset.
4109         * libc/string/memset.c (memset) [!__OPTIMIZE_SIZE__]:
4110         Pre-align pointer so unaligned stores aren't penalized.
4111         * libc/machine/i386/memset.S (memset) [!__OPTIMIZE_SIZE__]:
4112         Pre-align pointer so unaligned stores aren't penalized.  Prefer
4113         8-byte over 4-byte alignment.  Reduce register pressure.
4114
4115 2008-05-26  Eric Blake  <ebb9@byu.net>
4116
4117         Optimize the generic and x86 strlen.
4118         * libc/string/strlen.c (strlen) [!__OPTIMIZE_SIZE__]: Pre-align
4119         data so unaligned searches aren't penalized.
4120         * libc/machine/i386/strlen.S (strlen) [!__OPTIMIZE_SIZE__]:
4121         Word operations are faster than repnz byte searches.
4122
4123 2008-05-23  Corinna Vinschen  <corinna@vinschen.de>
4124
4125         * libc/include/sys/_default_fcntl.h: Include <sys/time.h> on Cygwin.
4126
4127 2008-05-22  Jeff Johnston  <jjohnstn@redhat.com>
4128
4129         * libc/include/sys/reent.h: Add _h_errno field.
4130         * libc/sys/linux/libc-symbols.h: Add default stubs for new libc macros
4131         now used in net directory.
4132         * libc/sys/linux/bits/libc-lock.h: Always define _IO_MTSAFE_IO.
4133         * libc/sys/linux/include/hesiod.h: Add needed macros for new code
4134         in net directory.
4135         * libc/sys/linux/include/netdb.h: Ditto.
4136         * libc/sys/linux/include/resolv.h: Ditto.
4137         * libc/sys/linux/include/stdint.h: Ditto.
4138         * libc/sys/linux/include/arpa/nameser.h: Ditto.
4139         * libc/sys/linux/include/net/ethernet.h: Ditto.
4140         * libc/sys/linux/include/net/if_ppp.h: Ditto.
4141         * libc/sys/linux/include/netinet/if_ether.h: Ditto.
4142         * libc/sys/linux/machine/i386/get_clockfreq.c: Remove static memmem.
4143         * libc/sys/linux/machine/i386/include/endian.h: Protect macros with
4144         flags to avoid duplicate definition.
4145         * libc/sys/linux/machine/i386/include/param.h: Ditto.
4146         * libc/sys/linux/net/Makefile.am: Modified to account for removed and
4147         added files.
4148         * libc/sys/linux/net/Makefile.in: Regenerated.
4149         * libc/sys/linux/net/base64.c: Replaced with glibc version of code.
4150         * libc/sys/linux/net/getaddrinfo.c: Ditto.
4151         * libc/sys/linux/net/getnameinfo.c: Ditto.
4152         * libc/sys/linux/net/getproto.c: Ditto.
4153         * libc/sys/linux/net/getservent.c: Ditto.
4154         * libc/sys/linux/net/inet_netof.c: Ditto.
4155         * libc/sys/linux/net/inet_lnaof.c: Ditto.
4156         * libc/sys/linux/net/ns_name.c: Ditto.
4157         * libc/sys/linux/net/ns_netint.c: Ditto.
4158         * libc/sys/linux/net/inet_ntoa.c: Ditto.
4159         * libc/sys/linux/net/ns_parse.c: Ditto.
4160         * libc/sys/linux/net/ns_print.c: Ditto.
4161         * libc/sys/linux/net/ns_ttl.c: Ditto.
4162         * libc/sys/linux/net/nsap_addr.c: Ditto.
4163         * libc/sys/linux/net/rcmd.c: Ditto.
4164         * libc/sys/linux/net/res_comp.c: Ditto.
4165         * libc/sys/linux/net/res_data.c: Ditto.
4166         * libc/sys/linux/net/res_debug.c: Ditto.
4167         * libc/sys/linux/net/res_init.c: Ditto.
4168         * libc/sys/linux/net/res_mkquery.c: Ditto.
4169         * libc/sys/linux/net/res_query.c: Ditto.
4170         * libc/sys/linux/net/res_send.c: Ditto.
4171         * libc/sys/linux/net/send.c: Ditto.
4172         * libc/sys/linux/stdlib/collate.c: Ditto.
4173         * libc/sys/linux/sys/ioctl.h: Ditto.
4174         * libc/sys/linux/sys/socket.h: Ditto.
4175         * libc/sys/linux/sys/unistd.h: Ditto.
4176         * libc/sys/linux/iconv/iconvconfig.c: Removed either because no longer
4177         used or because licensing includes advertising clause that cannot be
4178         ignored.
4179         * libc/sys/linux/iconv/strtab.c: Ditto.
4180         * libc/sys/linux/include/libc_private.h: Ditto.
4181         * libc/sys/linux/include/nsswitch.h: Ditto.
4182         * libc/sys/linux/include/net/if_atm.h: Ditto.
4183         * libc/sys/linux/include/net/if_media.h: Ditto.
4184         * libc/sys/linux/include/net/if_pppvar.h: Ditto.
4185         * libc/sys/linux/include/netinet/if_atm.h: Ditto.
4186         * libc/sys/linux/include/netinet/ip_flow.h: Ditto.
4187         * libc/sys/linux/intl/locale.alias: Ditto.
4188         * libc/sys/linux/net/addr2ascii.3: Ditto.
4189         * libc/sys/linux/net/bindresvport.c: Ditto.
4190         * libc/sys/linux/net/byteorder.3: Ditto.
4191         * libc/sys/linux/net/res_config.h: Ditto.
4192         * libc/sys/linux/net/ether_addr.c: Ditto.
4193         * libc/sys/linux/net/ethers.3: Ditto.
4194         * libc/sys/linux/net/getaddrinfo.3: Ditto.
4195         * libc/sys/linux/net/gethostbydns.c: Ditto.
4196         * libc/sys/linux/net/gethostbyht.c: Ditto.
4197         * libc/sys/linux/net/gethostbyname.3: Ditto.
4198         * libc/sys/linux/net/gethostbynis.c: Ditto.
4199         * libc/sys/linux/net/gethostnamadr.c: Ditto.
4200         * libc/sys/linux/net/getifaddrs.3: Ditto.
4201         * libc/sys/linux/net/getifaddrs.c: Ditto.
4202         * libc/sys/linux/net/getipnodebyname.3: Ditto.
4203         * libc/sys/linux/net/getnameinfo.3: Ditto.
4204         * libc/sys/linux/net/getnetbydns.c: Ditto.
4205         * libc/sys/linux/net/getnetbyht.c: Ditto.
4206         * libc/sys/linux/net/getnetbynis.c: Ditto.
4207         * libc/sys/linux/net/getnetent.3: Ditto.
4208         * libc/sys/linux/net/getnetnamadr.c: Ditto.
4209         * libc/sys/linux/net/getprotoent.3: Ditto.
4210         * libc/sys/linux/net/getprotoent.c: Ditto.
4211         * libc/sys/linux/net/getprotoname.c: Ditto.
4212         * libc/sys/linux/net/getservbyname.c: Ditto.
4213         * libc/sys/linux/net/getservbyport.c: Ditto.
4214         * libc/sys/linux/net/getservent.3: Ditto.
4215         * libc/sys/linux/net/herror.c: Ditto.
4216         * libc/sys/linux/net/hesiod.3: Ditto.
4217         * libc/sys/linux/net/hesiod.c: Ditto.
4218         * libc/sys/linux/net/if_indextoname.3: Ditto.
4219         * libc/sys/linux/net/inet.3: Ditto.
4220         * libc/sys/linux/net/inet6_option_space.3: Ditto.
4221         * libc/sys/linux/net/inet6_rthdr_space.3: Ditto.
4222         * libc/sys/linux/net/inet_makeaddr.c: Ditto.
4223         * libc/sys/linux/net/inet_net.3: Ditto.
4224         * libc/sys/linux/net/inet_network.c: Ditto.
4225         * libc/sys/linux/net/innetgr-stub.c: Ditto.
4226         * libc/sys/linux/net/ip6opt.c: Ditto.
4227         * libc/sys/linux/net/iso_addr.3: Ditto.
4228         * libc/sys/linux/net/iso_addr.c: Ditto.
4229         * libc/sys/linux/net/linkaddr.3: Ditto.
4230         * libc/sys/linux/net/linkaddr.c: Ditto.
4231         * libc/sys/linux/net/map_v4v6.c: Ditto.
4232         * libc/sys/linux/net/name6.c: Ditto.
4233         * libc/sys/linux/net/namespace.h: Ditto.
4234         * libc/sys/linux/net/ns.3: Ditto.
4235         * libc/sys/linux/net/ns_addr.c: Ditto.
4236         * libc/sys/linux/net/ns_ntoa.c: Ditto.
4237         * libc/sys/linux/net/nsdispatch.3: Ditto.
4238         * libc/sys/linux/net/nsdispatch.c: Ditto.
4239         * libc/sys/linux/net/nslexer.c: Ditto.
4240         * libc/sys/linux/net/nslexer.l: Ditto.
4241         * libc/sys/linux/net/nsparser.c: Ditto.
4242         * libc/sys/linux/net/nsparser.h: Ditto.
4243         * libc/sys/linux/net/nsparser.y: Ditto.
4244         * libc/sys/linux/net/rcmd.3: Ditto.
4245         * libc/sys/linux/net/rcmdsh.3: Ditto.
4246         * libc/sys/linux/net/res_mkupdate.c: Ditto.
4247         * libc/sys/linux/net/res_update.c: Ditto.
4248         * libc/sys/linux/net/resolver.3: Ditto.
4249         * libc/sys/linux/net/rthdr.c: Ditto.
4250         * libc/sys/linux/net/vars.c: Ditto.
4251         * libc/sys/linux/shlib-compat.h: New file.
4252         * libc/sys/linux/machine/i386/atomic.h: Ditto.
4253         * libc/sys/linux/net/XXX-lookup.c: Ditto.
4254         * libc/sys/linux/net/alias-lookup.c: Ditto.
4255         * libc/sys/linux/net/res_libc.c: Ditto.
4256         * libc/sys/linux/net/aliases.h: Ditto.
4257         * libc/sys/linux/net/check_pf.c: Ditto.
4258         * libc/sys/linux/net/databases.def: Ditto.
4259         * libc/sys/linux/net/digits_dots.c: Ditto.
4260         * libc/sys/linux/net/ether_aton.c: Ditto.
4261         * libc/sys/linux/net/ether_aton_r.c: Ditto.
4262         * libc/sys/linux/net/ether_hton.c: Ditto.
4263         * libc/sys/linux/net/ether_line.c: Ditto.
4264         * libc/sys/linux/net/ether_ntoa.c: Ditto.
4265         * libc/sys/linux/net/ether_ntoa_r.c: Ditto.
4266         * libc/sys/linux/net/ether_ntoh.c: Ditto.
4267         * libc/sys/linux/net/etherent.h: Ditto.
4268         * libc/sys/linux/net/ethers-lookup.c: Ditto.
4269         * libc/sys/linux/net/function.def: Ditto.
4270         * libc/sys/linux/net/getXXbyYY.c: Ditto.
4271         * libc/sys/linux/net/getXXbyYY_r.c: Ditto.
4272         * libc/sys/linux/net/getXXent.c: Ditto.
4273         * libc/sys/linux/net/getXXent_r.c: Ditto.
4274         * libc/sys/linux/net/getaliasent.c: Ditto.
4275         * libc/sys/linux/net/getaliasent_r.c: Ditto.
4276         * libc/sys/linux/net/getaliasname.c: Ditto.
4277         * libc/sys/linux/net/getaliasname_r.c: Ditto.
4278         * libc/sys/linux/net/gethstbyad.c: Ditto.
4279         * libc/sys/linux/net/gethstbyad_r.c: Ditto.
4280         * libc/sys/linux/net/gethstbynm.c: Ditto.
4281         * libc/sys/linux/net/gethstbynm2.c: Ditto.
4282         * libc/sys/linux/net/gethstbynm2_r.c: Ditto.
4283         * libc/sys/linux/net/gethstbynm_r.c: Ditto.
4284         * libc/sys/linux/net/gethstent.c: Ditto.
4285         * libc/sys/linux/net/gethstent_r.c: Ditto.
4286         * libc/sys/linux/net/getnetbyad.c: Ditto.
4287         * libc/sys/linux/net/getnetbyad_r.c: Ditto.
4288         * libc/sys/linux/net/getnetbynm.c: Ditto.
4289         * libc/sys/linux/net/getnetbynm_r.c: Ditto.
4290         * libc/sys/linux/net/getnetent.c: Ditto.
4291         * libc/sys/linux/net/getnetent_r.c: Ditto.
4292         * libc/sys/linux/net/getnetgrent.c: Ditto.
4293         * libc/sys/linux/net/getnetgrent_r.c: Ditto.
4294         * libc/sys/linux/net/getnssent.c: Ditto.
4295         * libc/sys/linux/net/getnssent_r.c: Ditto.
4296         * libc/sys/linux/net/getproto_r.c: Ditto.
4297         * libc/sys/linux/net/getprtent.c: Ditto.
4298         * libc/sys/linux/net/getprtent_r.c: Ditto.
4299         * libc/sys/linux/net/getprtname.c: Ditto.
4300         * libc/sys/linux/net/getprtname_r.c: Ditto.
4301         * libc/sys/linux/net/getrpcbyname.c: Ditto.
4302         * libc/sys/linux/net/getrpcbyname_r.c: Ditto.
4303         * libc/sys/linux/net/getrpcbynumber.c: Ditto.
4304         * libc/sys/linux/net/getrpcbynumber_r.c: Ditto.
4305         * libc/sys/linux/net/getrpcent.c: Ditto.
4306         * libc/sys/linux/net/getrpcent_r.c: Ditto.
4307         * libc/sys/linux/net/getservent_r.c: Ditto.
4308         * libc/sys/linux/net/getsrvbynm.c: Ditto.
4309         * libc/sys/linux/net/getsrvbynm_r.c: Ditto.
4310         * libc/sys/linux/net/getsrvbypt.c: Ditto.
4311         * libc/sys/linux/net/getsrvbypt_r.c: Ditto.
4312         * libc/sys/linux/net/grp-lookup.c: Ditto.
4313         * libc/sys/linux/net/herrno.c: Ditto.
4314         * libc/sys/linux/net/hosts-lookup.c: Ditto.
4315         * libc/sys/linux/net/ifaddrs.h: Ditto.
4316         * libc/sys/linux/net/ifreq.c: Ditto.
4317         * libc/sys/linux/net/ifreq.h: Ditto.
4318         * libc/sys/linux/net/in6_addr.c: Ditto.
4319         * libc/sys/linux/net/inet6_option.c: Ditto.
4320         * libc/sys/linux/net/inet_mkadr.c: Ditto.
4321         * libc/sys/linux/net/inet_net.c: Ditto.
4322         * libc/sys/linux/net/key-lookup.c: Ditto.
4323         * libc/sys/linux/net/local.h: Ditto.
4324         * libc/sys/linux/net/netgroup.h: Ditto.
4325         * libc/sys/linux/net/netgrp-lookup.c: Ditto.
4326         * libc/sys/linux/net/network-lookup.c: Ditto.
4327         * libc/sys/linux/net/not-cancel.h: Ditto.
4328         * libc/sys/linux/net/ns_samedomain.c: Ditto.
4329         * libc/sys/linux/net/nscd-types.h: Ditto.
4330         * libc/sys/linux/net/nss.h: Ditto.
4331         * libc/sys/linux/net/nsswitch.c: Ditto.
4332         * libc/sys/linux/net/nsswitch.h: Ditto.
4333         * libc/sys/linux/net/opensock.c: Ditto.
4334         * libc/sys/linux/net/proto-lookup.c: Ditto.
4335         * libc/sys/linux/net/pwd-lookup.c: Ditto.
4336         * libc/sys/linux/net/res_debug.h: Ditto.
4337         * libc/sys/linux/net/res_hconf.c: Ditto.
4338         * libc/sys/linux/net/res_hconf.h: Ditto.
4339         * libc/sys/linux/net/rexec.c: Ditto.
4340         * libc/sys/linux/net/rpc-lookup.c: Ditto.
4341         * libc/sys/linux/net/ruserpass.c: Ditto.
4342         * libc/sys/linux/net/service-lookup.c: Ditto.
4343         * libc/sys/linux/net/spwd-lookup.c: Ditto.
4344         * libc/sys/linux/net/nscd/nscd-client.h: Ditto.
4345         * libc/sys/linux/net/nscd/nscd_proto.h: Ditto.
4346
4347 2008-05-21  Eric Blake  <ebb9@byu.net>
4348
4349         Optimize the generic strchr.
4350         * libc/string/strchr.c (strchr) [!__OPTIMIZE_SIZE__]: Pre-align
4351         data so unaligned searches aren't penalized.  Special-case
4352         searching for 0.
4353
4354         Optimize strchr for x86.
4355         * libc/machine/i386/strchr.S (strchr) [!__OPTIMIZE_SIZE__]:
4356         Pre-align data so unaligned searches aren't penalized.
4357         Special-case searching for 0.
4358
4359 2008-05-20  Nick Clifton  <nickc@redhat.com>
4360
4361         * libc/sys/sysnecv850/crt0.S (___dso_handle): Define (weak).
4362
4363 2008-05-20  DJ Delorie  <dj@redhat.com>
4364
4365         * libc/sys/sysnecv850/isatty.c (_isatty): Renamed from isatty.
4366
4367 2008-05-14  Jeff Johnston  <jjohnstn@redhat.com>
4368
4369         * libc/include/sys/reent.h: Change _REENT_INIT... macros to
4370         access macro parameter with parentheses around it.
4371
4372 2008-04-26  Mark Mitchell  <mark@codesourcery.com>
4373
4374         * libc/include/stdint.h (SIZE_MIN): Remove.
4375         (SIZE_MAX): Define.
4376         * testsuite/newlib.stdlib/stdlib.exp: New.
4377         * testsuite/newlib.stdlib/size_max.c: Likewise.
4378
4379 2008-04-29  Eric Blake  <ebb9@byu.net>
4380
4381         Fix 2008-04-14 regression in asprintf(ptr,"").
4382         * libc/stdio/asnprintf.c (asnprintf, _asnprintf_r): Avoid stdio
4383         baggage.
4384         * libc/stdio/asniprintf.c (asniprintf, _asniprintf_r): Likewise.
4385         * libc/stdio/asiprintf.c (asiprintf, _asiprintf_r): Likewise.
4386         * libc/stdio/vasniprintf.c (_vasniprintf_r): Likewise.
4387         * libc/stdio/vsnprintf.c (_vsnprintf_r): Likewise.
4388         * libc/stdio/vfprintf.c (_VFPRINTF_R) [STRING_ONLY]: Always malloc
4389         an initial buffer for asprintf.
4390
4391 2008-04-24  Corinna Vinschen  <corinna@vinschen.de>
4392
4393         * libc/include/sys/stat.h: Guard at-functions with !__INSIDE_CYGWIN__.
4394         (fstatat): Fix type of third parameter.
4395
4396 2008-04-25  Nick Clifton  <nickc@redhat.com>
4397
4398         * libc/machine/arm/setjmp.S: Fix thumb2 support.
4399
4400 2008-04-24  Nick Clifton  <nickc@redhat.com>
4401
4402         * libc/include/machine/ieeefp.h: Fix typo: _DOUBLE_IS_32_BITS
4403         should be _DOUBLE_IS_32BITS.
4404
4405 2008-04-24  Corinna Vinschen  <corinna@vinschen.de>
4406
4407         * libc/include/sys/stat.h (UTIME_NOW): Define for Cygwin.
4408         (UTIME_OMIT): Ditto.
4409         (utimensat): Declare for Cygwin.
4410         (futimens): Ditto.
4411
4412 2008-04-23  Ken Werner  <ken.werner@de.ibm.com>
4413
4414         * libc/include/_ansi.h: _LONG_LONG renamed to _LONG_LONG_TYPE.
4415         * libc/include/math.h: Likewise.
4416
4417 2008-04-23  Corinna Vinschen  <corinna@vinschen.de>
4418
4419         * libc/include/stdio.h (renameat): Declare for Cygwin.
4420         (symlinkat): Ditto.
4421         * libc/include/sys/unistd.h (readlink): Align declaration to POSIX.
4422         (faccessat): Declare for Cygwin.
4423         (fchownat): Ditto.
4424         (linkat): Ditto.
4425         (readlinkat): Ditto.
4426         * libc/include/sys/_default_fcntl.h (AT_FDCWD): Define for Cygwin.
4427         (AT_EACCESS): Ditto.
4428         (AT_SYMLINK_NOFOLLOW): Ditto.
4429         (AT_SYMLINK_FOLLOW): Ditto.
4430         (AT_REMOVEDIR): Ditto.
4431         (futimesat): Declare for Cygwin.
4432         (openat): Ditto.
4433         (unlinkat): Ditto.
4434         * libc/include/sys/stat.h (fchmodat): Ditto.
4435         (fstatat): Ditto.
4436         (mkdirat): Ditto.
4437         (mkfifoat): Ditto.
4438         (mknodat): Ditto.
4439
4440 2008-04-22  Nick Clifton  <nickc@redhat.com>
4441
4442         * libc/machine/arm/setjmp.S: Add support for thumb2 multiple
4443         register load/store instructions.
4444
4445 2008-04-16  Patrick Mansfield  <patmans@us.ibm.com>
4446
4447         * libc/machine/spu/sys/errno.h: Use _impure_data, not _reent_data.
4448
4449 2008-04-16  Patrick Mansfield  <patmans@us.ibm.com>
4450
4451         * libc/machine/spu/impure.c: Add missing underscore to impure_data.
4452
4453 2008-04-14  Patrick Mansfield  <patmans@us.ibm.com>
4454
4455         * libc/machine/spu/impure.c: New file, supply a non-static _impure_data.
4456         * libc/machine/spu/Makefile.am: Add new file impure.c.
4457         * libc/machine/spu/Makefile.in: Regenerate.
4458         * libc/machine/spu/sys/errno.h: Define errno to be _reent_data._errno.
4459
4460 2008-04-14  Jeff Johnston  <jjohnstn@redhat.com>
4461
4462         * libc/stdio/Makefile.am: Build vfprintf.c and vfscanf.c with
4463         -DSTRING_ONLY defined with and without -DINTEGER_ONLY defined
4464         to build special versions for sprintf/sscanf family functions.
4465         * libc/stdio/Makefile.in: Regenerated.
4466         * libc/stdio/vfprintf.c[STRING_ONLY][INTEGER_ONLY](_VFPRINTF_R):
4467         Redefine to be _svfiprintf_r which is optimized to work with siprintf
4468         family of functions (i.e. no I/O) and does not support floating-point.
4469         [STRING_ONLY][!INTEGER_ONLY](_VFPRINTF_R): Redefine to be
4470         _svfprintf_r which is optimized to work with sprintf family of
4471         functions and not use I/O.
4472         [STRING_ONLY](__sprint_r): New string only version of static function.
4473         designed to work with sprintf family of functions.
4474         * libc/stdio/vfscanf.c[STRING_ONLY][INTEGER_ONLY](_SVFSCANF_R):
4475         Redefine to be _ssvfiscanf_r which is optimized to work with siscanf
4476         family of functions (i.e. no I/O) and no float-point support.
4477         [STRING_ONLY][!INTEGER_ONLY](_SVFSCANF_R): Redefine to be
4478         __ssvfscanf_r which is optimized to work with sscanf family of
4479         functions and does not require I/O functions.
4480         * libc/stdio/asprintf.c: Call _svfprintf_r instead of _vfprintf_r.
4481         * libc/stdio/snprintf.c: Ditto.
4482         * libc/stdio/sprintf.c: Ditto.
4483         * libc/stdio/vasnprintf.c: Ditto.
4484         * libc/stdio/vasprintf.c: Ditto.
4485         * libc/stdio/siprintf.c: Call _svfiprintf_r instead of _vfiprintf_r.
4486         * libc/stdio/sniprintf.c: Ditto.
4487         * libc/stdio/vasiprintf.c: Ditto.
4488         * libc/stdio/vsiprintf.c: Ditto.
4489         * libc/stdio/vsniprintf.c: Ditto.
4490         * libc/stdio/vsprintf.c: Ditto.
4491         * libc/stdio/local.h: Add prototypes for _svfprintf_r, _svfiprintf_r,
4492         _ssvfscanf_r, and _ssvfiscanf_r.
4493         * libc/stdio/sscanf.c: Call _ssvfscanf_r instead of _svfscanf_r.
4494         * libc/stdio/vsscanf.c: Ditto.
4495         * libc/stdio/siscanf.c: Call _ssvfiscanf_r instead of _svfiscanf_r.
4496         * libc/stdio/vsiscanf.c: Ditto.
4497
4498 2008-04-04  DJ Delorie  <dj@redhat.com>
4499
4500         * libm/machine/spu/configure: Regenerate with autoconf 2.61.
4501         * libc/sys/configure: Regenerate with autoconf 2.61.
4502         * libc/machine/configure: Regenerate with autoconf 2.61.
4503
4504 2008-04-01 Patrick Mansfield <patmans@us.ibm.com>
4505
4506         * libc/machine/spu/memcmp.c: New file for SPU optimized memcmp.
4507         * libc/machine/spu/strncmp.h: New file supply _strncmp_internal.
4508         * libc/machine/spu/Makefile.am: Add memcmp.c.
4509         * libc/machine/spu/Makefile.in: Rebuild.
4510         * libc/machine/spu/strncmp.c: Use _strncmp_internal.
4511
4512 2008-04-01 Patrick Mansfield <patmans@us.ibm.com>
4513
4514         * configure.host: Build SPU with -DREENTRANT_SYSCALLS_PROVIDED and
4515           -DMISSING_SYSCALL_NAMES.
4516
4517 2008-04-01 Patrick Mansfield <patmans@us.ibm.com>
4518
4519         * libc/machine/spu/Makefile.am: Add assert.c.
4520         * libc/machine/spu/Makefile.in: Regenerate.
4521         * libc/machine/spu/assert.c: New file.
4522
4523 2008-03-27 Patrick Mansfield <patmans@us.ibm.com>
4524
4525         * libc/include/reent.h: Define _func_r functions in this file to
4526         func if REENTRANT_SYSCALLS_PROVIDED and MISSING_SYSCALL_NAMES are
4527         defined.
4528
4529 2008-03-27  Corinna Vinschen  <corinna@vinschen.de>
4530
4531         * libc/include/sys/unistd.h: Declare lockf(2) and define lockf
4532         constants when building for Cygwin.
4533
4534 2008-03-11  Jeff Johnston  <jjohnstn@redhat.com>
4535
4536         * libc/stdio/rgetc.c (__srget_r): Invoke CHECK_INIT to ensure
4537         stdin gets resolved properly before refilling.
4538
4539 2008-03-07  Jeff Johnston  <jjohnstn@redhat.com>
4540
4541         * libc/include/getopt.h: Hide newlib extensions under
4542         the __need_getopt_newlib flag.
4543         * libc/stdlib/getopt.c: #define __need_getopt_newlib before including
4544         getopt.h.  Put entire code under !HAVE_GETOPT to support platforms
4545         with their own getopt implementation.
4546         * configure.host: Specify HAVE_GETOPT for x86-linux.
4547
4548 2008-03-07  Jeff Johnston  <jjohnstn@redhat.com>
4549
4550         * libc/include/sys/reent.h(_REENT_SMALL_CHECK_INIT): Specify
4551         this macro completely instead of referring to CHECK_STD_INIT which
4552         is only found in libc/stdio/local.h.
4553         * libc/stdio/dprintf.c: Add include of local.h.
4554         * libc/stdio/vdprintf.c: Ditto.
4555         * libc/stdio/vdiprintf.c: Ditto.
4556
4557 2008-03-04  Eric Blake  <ebb9@byu.net>
4558
4559         Fix strtod("nan()", ptr).
4560         * libc/stdlib/gdtoa-hexnan.c (hexnan): When the optional
4561         n-char-sequence is omitted, still parse the ().
4562
4563 2008-03-03  Eric Blake  <ebb9@byu.net>
4564
4565         Fix ftell bug after ungetc.
4566         * libc/stdio/ftell.c (_ftell_r): Don't flush ungetc buffer on
4567         ftell.
4568         * libc/stdio64/ftello64.c (_ftello64_r): Likewise.
4569         * libc/stdio/fflush.c (_fflush_r): Clear unget buffer when
4570         repositioning underlying fd offset.
4571
4572 2008-03-02  Jeff Johnston  <jjohnstn@redhat.com>
4573
4574         * libc/include/getopt.h (no_argument): Added for glibc compatibility.
4575         (required_argument, optional_argument): Ditto.
4576
4577 2008-02-29  Gregory Pietsch  <gpietsch@comcast.net>
4578
4579         * libc/stdlib/getopt.c (getopt_internal): Rewrite to accept
4580         data area so as to support reentrant calls.  Change all callers
4581         to fill in data area with global values and restore any changes
4582         to the global values after call.
4583         (__getopt_r, __getopt_long_r, __getopt_long_only_r): New routines
4584         to support reentrancy that add a data area argument.
4585         * libc/include/getopt.h: Add new _r routines and provide macros
4586         so they can be called with using double-underscores.
4587
4588 2008-02-21  Eric Blake  <ebb9@byu.net>
4589
4590         Fix strtod("-0x", NULL).
4591         * libc/stdlib/strtod.c (_strtod_r): Fall back to 0 if hex parse
4592         fails.
4593
4594 2008-02-12  Jeff Johnston  <jjohnstn@redhat.com>
4595
4596         * libc/machine/powerpc/vfprintf.c (_VFPRINTF_R): Prepare
4597         for user specifying --disable-newlib-io-long-long on configure.
4598         Call _fflush_r instead of fflush.  For _mbtowc_r, pass the
4599         reentrant pointer passed in rather than _REENT.
4600
4601 2008-02-12  Peter Rosin  <peda@lysator.liu.se>
4602
4603         * libc/stdlib/getopt.c (getopt_internal): Handle optional
4604         arguments better for long options and short options not
4605         appearing as the first option in a sequence.
4606
4607 2008-02-11  Patrick Mansfield  <patmans@us.ibm.com>
4608
4609         * libc/machine/spu/straddr.h: New file, supplies _straddr.
4610         * libc/machine/spu/strcat.c: Use _straddr and _strcpy.
4611         * libc/machine/spu/strcpy.c: Use _strcpy.
4612         * libc/machine/spu/strcpy.h: Supply _strcpy for optimized SPU
4613         str[n]cpy and str[n]cat.
4614         * libc/machine/spu/strncat.c: Use _straddr and _strcpy.
4615         * libc/machine/spu/strncpy.c: Use _strcpy.
4616
4617 2008-02-11  Patrick Mansfield  <patmans@us.ibm.com>
4618
4619         * libc/machine/spu/strlen.c: Remove the len variable and unneeded
4620         calculation of its value.
4621
4622 2008-01-25  Hans-Peter Nilsson  <hp@bitrange.com>
4623
4624         * libc/sys/mmixware/isatty.c (_isatty): Renamed from isatty.
4625         Make ISO C.
4626
4627 2008-01-21  DJ Delorie  <dj@redhat.com>
4628
4629         * libc/sys/sh/syscalls.c (_isatty): New.
4630
4631 2008-01-21  Neal H. Walfield  <neal@gnu.org>
4632
4633         * Makefile.am (crt1.o): Use correct source.
4634         * Makefile.in: Regenerated.
4635
4636 2008-01-15  Eric Blake  <ebb9@byu.net>
4637
4638         * libc/string/Makefile.am (ELIX_2_SOURCES): Fix definition.
4639         * libc/string/Makefile: Regenerate.
4640
4641 2008-01-15  Corinna Vinschen  <corinna@vinschen.de>
4642
4643         * libc/include/machine/setjmp.h (__SIGMASK_FUNC): Define as
4644         pthread_sigmask or sigprocmask depending on _POSIX_THREADS.
4645         (sigsetjmp): Use __SIGMASK_FUNC.
4646         (siglongjmp): Ditto.
4647         (_setjmp): Define as macro.
4648         (_longjmp): Ditto.
4649
4650 2008-01-11  Eric Blake  <ebb9@byu.net>
4651
4652         Make strstr and strcasestr O(n), not O(n^2); add memmem.
4653         * libc/string/str-two-way.h: New file.
4654         * libc/string/memmem.c (memmem): New file.
4655         * libc/include/string.h (memmem): Declare for all platforms.
4656         * libc/string/strstr.c (strstr): Provide O(n) implementation when
4657         not optimizing for space.
4658         * libc/string/strcasestr.c (strcasestr): Likewise.
4659         * libc/string/Makefile.am (ELIX_SOURCES): Rename to...
4660         (ELIX_2_SOURCES): ...this.
4661         (ELIX_4_SOURCES): New category, for memmem.
4662         (lib_a_SOURCES, libstring_la_SOURCES): Build new file.
4663         (CHEWOUT_FILES): Build documentation for memmem.
4664         * libc/string/strings.tex: Include new docs.
4665
4666 2008-01-08  Jeff Johnston  <jjohnstn@redhat.com>
4667
4668         * libc/machine/m68k/memcpy.S: Remove % from register references
4669         as this is already handled by m68kasm.h.
4670         * libc/machine/m68k/memset.S: Ditto.
4671
4672 2008-01-07  Jeff Johnston  <jjohnstn@redhat.com>
4673
4674         * libc/machine/m68k/m68kasm.h: New file.
4675         * libc/machine/m68k/setjmp.S: Remove common definitions and
4676         place in m68kasm.h.  Include "m68kasm.h".
4677         * libc/machine/m68k/memcpy.S: Include "m68kasm.h" and use
4678         SYM() macro when referencing function name.
4679         * libc/machine/m68k/memset.S: Ditto.
4680
4681 2008-01-03  Jeff Johnston  <jjohnstn@redhat.com>
4682
4683         Make isatty syscall handling consistent with other newlib syscalls.
4684
4685         * libc/include/_syslist.h: Add _isatty.
4686         * libc/include/reent.h: Add _isatty_r.
4687         * libc/include/sys/unistd.h: Add _isatty.
4688         * libc/posix/Makefile.am: Add new _isatty.c file.
4689         * libc/posix/Makefile.in: Regenerated.
4690         * libc/posix/_isatty.c: New file.
4691         * libc/posix/isatty.c: Changed to call _isatty().
4692         * libc/reent/Makefile.am: Add new isattyr.c file.
4693         * libc/reent/Makefile.in: Regenerated.
4694         * libc/reent/isattyr.c: New file.
4695         * libc/stdio/freopen.c: Changed to call _isatty_r().
4696         * libc/stdio/makebuf.c: Ditto.
4697         * libc/sys/a29khif/_isatty.S: Change isatty to _isatty.
4698         * libc/sys/arc/isatty.c: Ditto.
4699         * libc/sys/arm/syscalls.c: Ditto.
4700         * libc/sys/d10v/syscalls.c: Ditto.
4701         * libc/sys/h8300hms/syscalls.c: Ditto.
4702         * libc/sys/h8500hms/syscalls.c: Ditto.
4703         * libc/sys/linux/Makefile.am: Add new isatty.c file.
4704         * libc/sys/linux/Makefile.in: Regenerated.
4705         * libc/sys/linux/isatty.c: New file.
4706         * libc/syscalls/Makefile.am: Add new sysisatty.c file.
4707         * libc/syscalls/Makefile.in: Regenerated.
4708         * libc/syscalls/sysisatty.c: New file.
4709
4710 2008-01-02  Jeff Johnston  <jjohnstn@redhat.com>
4711
4712         * libc/syscalls/sysclose.c: Always call reentrant version of the
4713         underlying syscall since one is guaranteed to exist in libc/reent.
4714         * libc/syscalls/sysexecve.c: Ditto.
4715         * libc/syscalls/sysfcntl.c: Ditto.
4716         * libc/syscalls/sysfork.c: Ditto.
4717         * libc/syscalls/sysfstat.c: Ditto.
4718         * libc/syscalls/sysgetpid.c: Ditto.
4719         * libc/syscalls/sysgettod.c: Ditto.
4720         * libc/syscalls/syskill.c: Ditto.
4721         * libc/syscalls/syslink.c: Ditto.
4722         * libc/syscalls/syslseek.c: Ditto.
4723         * libc/syscalls/sysopen.c: Ditto.
4724         * libc/syscalls/sysread.c: Ditto.
4725         * libc/syscalls/syssbrk.c: Ditto.
4726         * libc/syscalls/sysstat.c: Ditto.
4727         * libc/syscalls/systimes.c: Ditto.
4728         * libc/syscalls/sysunlink.c: Ditto.
4729         * libc/syscalls/syswait.c: Ditto.
4730         * libc/syscalls/syswrite.c: Ditto.
4731
4732 2007-12-19  Jeff Johnston  <jjohnstn@redhat.com>
4733
4734         * NEWS: Update with 1.16.0 info.
4735         * README: Ditto.
4736         * acinclude.m4: Change version number to 1.16.0.
4737         * aclocal.m4: Regenerated.
4738         * configure: Ditto.
4739         * doc/aclocal.m4: Ditto.
4740         * doc/configure: Ditto.
4741         * libc/*/aclocal.m4: Ditto.
4742         * libc/*/configure: Ditto.
4743         * libc/libc.texinfo: Ditto.
4744         * libm/*/aclocal.m4: Ditto.
4745         * libm/*/configure: Ditto.
4746         * libm/libm.texinfo: Ditto.
4747         * libc/sys/linux/shared.ld: Add VERS_1.16.
4748
4749 2007-12-19  Jeff Johnston  <jjohnstn@redhat.com>
4750
4751         * libc/string/strcasestr.c: Remove id macro.
4752         * libc/sys/linux/linuxthreads/attr.c: Fix up sched_priority
4753         field reference to be __sched_priority.
4754         * libc/sys/linux/linuxthreads/joinrace.c: Ditto.
4755         * libc/sys/linux/linuxthreads/manager.c: Ditto.
4756         * libc/sys/linux/stdlib/collate.c: Remove id macro.
4757         * libc/sys/linux/stdlib/collcmp.c: Ditto.
4758         * libc/sys/linux/stdlib/engine.c: Ditto.
4759         * libc/sys/linux/stdlib/fnmatch.c: Ditto.
4760         * libc/sys/linux/stdlib/glob.c: Ditto.
4761         * libc/sys/linux/stdlib/reallocf.c: Ditto.
4762         * libc/sys/linux/stdlib/regcomp.c: Ditto.
4763         * libc/sys/linux/stdlib/regerror.c: Ditto.
4764         * libc/sys/linux/stdlib/regexec.c: Ditto.
4765         * libc/sys/linux/stdlib/regfree.c: Ditto.
4766         * libc/sys/linux/sys/cdefs.h: Replace with latest version.
4767         * libc/sys/linux/include/argp.h: Ditto.
4768         * libc/sys/linux/sys/libc-lock.h: New file.
4769         * libc/sys/linux/sys/stdint.h: Ditto.
4770         * libc/sys/linux/include/sched.h: New file.
4771
4772 2007-12-19  Dave Korn  <dave.korn@artimi.com>
4773             Jeff Johnston  <jjohnstn@redhhat.com>
4774
4775         * libc/include/_ansi.h: Add _LONG_LONG definition.
4776         * libc/include/math.h (llrint, llrintf, rintl, lrintl, llrintl): Add
4777         prototypes.
4778         * libc/machine/i386/machine/fastmath.h: Add support for new i386
4779         fast math versions of rint, lrint, and llrint family functions.
4780         * libm/machine/i386/Makefile.am: Add new files.
4781         * libm/machine/i386/Makefile.in: Regenerated.
4782         * libm/machine/i386/f_llrint.c, libm/machine/i386/f_lrint.c,
4783         libm/machine/i386/f_rint.c, libm/machine/i386/f_llrintf.c,
4784         libm/machine/i386/f_lrintf.c, libm/machine/i386/f_rintf.c,
4785         libm/machine/i386/f_llrintl.c, libm/machine/i386/f_lrintl.c,
4786         libm/machine/i386/f_rintl.c:  New files with fast math implementations.
4787
4788 2007-12-19  Jeff Johnston  <jjohnstn@redhat.com>
4789
4790         * libc/include/sys/features.h: Add checks for C90 compilers using
4791         -ansi.
4792
4793 2007-12-19  Corinna Vinschen  <corinna@vinschen.de>
4794
4795         * libc/include/wchar.h: Add prototypes for wcpcpy and wcpncpy.
4796         * libc/string/Makefile.am (ELIX_SOURCES): Add wcpcpy.c and
4797         wcpncpy.c.
4798         (CHEWOUT_FILES): Add wcpcpy.def and wcpncpy.def.
4799         * libc/string/Makefile.in: Regenerate.
4800         * libc/string/wcpcpy.c: New file.
4801         * libc/string/wcpncpy.c: New file.
4802         * libc/string/wcstrings.tex: Add wcpcpy and wcpncpy.
4803
4804 2007-12-19  Corinna Vinschen  <corinna@vinschen.de>
4805
4806         * libc/stdio/vfprintf.c (_VFPRINTF_R): Use correct pointer in call to
4807         _wcsrtombs_r.
4808
4809 2007-11-19  Nick Clifton  <nickc@redhat.com>
4810
4811         * libc/machine/mn10300/Makefile.am (CCASFLAGS): Add -Wa,--gdwarf-2.
4812         * libc/machine/mn10300/Makefile.in: Regenerate.
4813         * libc/machine/mn10300/memchar.S: Remove redundant labels.  Add
4814         .debug_frame section.
4815         * libc/machine/mn10300/memcmp.S: Likewise.
4816         * libc/machine/mn10300/memcpy.S: Likewise.
4817         * libc/machine/mn10300/memset.S: Likewise.
4818         * libc/machine/mn10300/strchr.S: Likewise.
4819         * libc/machine/mn10300/strcmp.S: Likewise.
4820         * libc/machine/mn10300/strcpy.S: Likewise.
4821         * libc/machine/mn10300/strlen.S: Likewise.
4822
4823 2007-11-15  Jeff Johnston  <jjohnstn@redhat.com>
4824
4825         * libc/include/sys/_default_fcntl.h: New header file that
4826         is the default version of sys/fcntl.h.
4827         * libc/include/sys/fcntl.h: Changed to simply include
4828         sys/_default_fcntl.h.
4829         * libc/sys/arm/sys/fcntl.h: New file that includes
4830         sys/_default_fcntl.h and defines O_BINARY.
4831
4832 2007-11-08  Corinna Vinschen  <corinna@vinschen.de>
4833
4834         * libc/include/sys/unistd.h: Remove Cygwin definition of MAXPATHLEN.
4835
4836 2007-11-07  Dave Brolley  <brolley@redhat.com>
4837
4838         * libc/machine/configure: Regenerated to pick up mep-elf changes.
4839
4840         * Contribute mep-elf from Red Hat
4841         2006-10-27  DJ Delorie  <dj@redhat.com>
4842
4843         * libc/include/machine/setjmp.h: Add MeP support.
4844
4845         2003-04-17  DJ Delorie  <dj@redhat.com>
4846
4847         * configure.host (mep-*-*): Support "long long" type.
4848
4849         2001-06-06  DJ Delorie  <dj@redhat.com>
4850
4851         * libc/include/machine/ieeefp.h (mep): Support little endian too.
4852
4853         2001-05-14  DJ Delorie  <dj@redhat.com>
4854
4855         * configure.host: Add mep's machine_dir.
4856         * libc/include/setjmp.h: Add mep support.
4857         * libc/machine/mep: New.
4858         * libc/machine/mep/setjmp.S: New, support mep's setjmp/longjmp.
4859
4860         2001-05-04  DJ Delorie  <dj@redhat.com>
4861
4862         * configure.host: Add mep.
4863         * libc/include/machine/ieeefp.h: Ditto.
4864
4865 2007-10-31  DJ Delorie  <dj@redhat.com>
4866
4867         * libc/signal/signal.c (_raise_r): Don't attempt to initialize the
4868         signal table, just use a default, in case initialization cause
4869         recursion.
4870
4871 2007-10-23  Jeff Johnston  <jjohnstn@redhat.com>
4872
4873         * libc/stdlib/wcstombs_r.c: Add SUSV2 support for calculating
4874         size if output buffer is NULL.
4875
4876 2007-10-17  Jeff Johnston  <jjohnstn@redhat.com>
4877
4878         * libm/mathfp/s_logarithm.c: Fix error introduced by previous
4879         fix when handling negative input values.  Make function
4880         consistent with math directory and glibc version such that
4881         inf and nan values return inf and nan respectively with no
4882         errno setting.
4883         * libm/mathfp/sf_logarithm.c: Ditto.
4884         * libm/math/w_log.c: Set errno to ERANGE when input is 0.0.
4885         * libm/math/wf_log.c: Ditto.
4886         * libm/math/w_log10.c: Ditto.
4887         * libm/math/wf_log10.c: Ditto.
4888
4889 2007-10-17  Jeff Johnston  <jjohnstn@redhat.com>
4890
4891         * libm/mathfp/s_logarithm.c: Fix case where input is 0 to
4892         return -inf.
4893         * libm/mathfp/sf_logarithm.c: Ditto.
4894
4895 2007-10-17  Jeff Johnston  <jjohnstn@redhat.com>
4896
4897         * libc/machine/i386/machine/fastmath.h: New file.
4898
4899 2007-10-13  Eric Blake  <ebb9@byu.net>
4900
4901         * libc/stdio/vfprintf.c (_VFPRINTF_R) [__OPTIMIZE_SIZE__]:
4902         Correctly nest else within conditionals.
4903         Reported by Artur Lipowski.
4904
4905 2007-10-09  Nick Clifton  <nickc@redhat.com>
4906
4907         * libc/sys/linux/dl/do-lookup.h (FCT): Support symbols with
4908         the STT_COMMON type.
4909
4910 2007-10-09  Ben Elliston  <bje@au.ibm.com>
4911
4912         * libm/machine/spu/headers/acosd2.h: Include spu_intrinsics.h
4913         before simdmath.h to get a definition for `vector'.
4914         * libm/machine/spu/headers/asind2.h: Likewise.
4915
4916 2007-09-28  Patrick Mansfield  <patmans@us.ibm.com>
4917
4918         * libm/machine/spu/headers/dom_chkd_less_than.h: New file.
4919         * libm/machine/spu/headers/dom_chkd_negone_one.h: Ditto.
4920         * libm/machine/spu/headers/dom_chkf_less_than.h: Ditto.
4921         * libm/machine/spu/headers/dom_chkf_negone_one.h: Ditto.
4922         * libm/machine/spu/headers/acos.h: Add domain check.
4923         * libm/machine/spu/headers/acosf.h: Ditto.
4924         * libm/machine/spu/headers/acosh.h: Ditto.
4925         * libm/machine/spu/headers/acoshf.h: Ditto.
4926         * libm/machine/spu/headers/asin.h: Ditto.
4927         * libm/machine/spu/headers/asinf.h: Ditto.
4928         * libm/machine/spu/headers/atanh.h: Ditto.
4929         * libm/machine/spu/headers/atanhf.h: Ditto.
4930         * libm/machine/spu/headers/fmod.h: Ditto.
4931         * libm/machine/spu/headers/fmodf.h: Ditto.
4932         * libm/machine/spu/headers/log.h: Ditto.
4933         * libm/machine/spu/headers/log10.h: Ditto.
4934         * libm/machine/spu/headers/log1p.h: Ditto.
4935         * libm/machine/spu/headers/log1pf.h: Ditto.
4936         * libm/machine/spu/headers/log2.h: Ditto.
4937         * libm/machine/spu/headers/log2f.h: Ditto.
4938         * libm/machine/spu/headers/sqrt.h: Ditto.
4939         * libm/machine/spu/headers/sqrtf.h: Ditto.
4940         * libm/machine/spu/headers/tgamma.h: Ditto.
4941         * libm/machine/spu/headers/tgammaf.h: Ditto.
4942
4943 2007-09-28  Patrick Mansfield  <patmans@us.ibm.com>
4944
4945         * libm/machine/spu/Makefile.am: Add new C files.
4946         * libm/machine/spu/Makefile.in: Regenerate.
4947         * libm/machine/spu/headers/acos.h: New file.
4948         * libm/machine/spu/headers/acosd2.h: Ditto.
4949         * libm/machine/spu/headers/acosf.h: Ditto.
4950         * libm/machine/spu/headers/acosf4.h: Ditto.
4951         * libm/machine/spu/headers/acosh.h: Ditto.
4952         * libm/machine/spu/headers/acoshd2.h: Ditto.
4953         * libm/machine/spu/headers/acoshf.h: Ditto.
4954         * libm/machine/spu/headers/acoshf4.h: Ditto.
4955         * libm/machine/spu/headers/asin.h: Ditto.
4956         * libm/machine/spu/headers/asind2.h: Ditto.
4957         * libm/machine/spu/headers/asinf.h: Ditto.
4958         * libm/machine/spu/headers/asinf4.h: Ditto.
4959         * libm/machine/spu/headers/asinh.h: Ditto.
4960         * libm/machine/spu/headers/asinhd2.h: Ditto.
4961         * libm/machine/spu/headers/asinhf.h: Ditto.
4962         * libm/machine/spu/headers/asinhf4.h: Ditto.
4963         * libm/machine/spu/headers/atan.h: Ditto.
4964         * libm/machine/spu/headers/atan2.h: Ditto.
4965         * libm/machine/spu/headers/atan2d2.h: Ditto.
4966         * libm/machine/spu/headers/atan2f.h: Ditto.
4967         * libm/machine/spu/headers/atan2f4.h: Ditto.
4968         * libm/machine/spu/headers/atand2.h: Ditto.
4969         * libm/machine/spu/headers/atanf4.h: Ditto.
4970         * libm/machine/spu/headers/atanh.h: Ditto.
4971         * libm/machine/spu/headers/atanhd2.h: Ditto.
4972         * libm/machine/spu/headers/atanhf.h: Ditto.
4973         * libm/machine/spu/headers/atanhf4.h: Ditto.
4974         * libm/machine/spu/headers/cos.h: Ditto.
4975         * libm/machine/spu/headers/cos_sin.h: Ditto.
4976         * libm/machine/spu/headers/cosd2.h: Ditto.
4977         * libm/machine/spu/headers/cosf.h: Ditto.
4978         * libm/machine/spu/headers/cosf4.h: Ditto.
4979         * libm/machine/spu/headers/cosh.h: Ditto.
4980         * libm/machine/spu/headers/coshd2.h: Ditto.
4981         * libm/machine/spu/headers/coshf.h: Ditto.
4982         * libm/machine/spu/headers/coshf4.h: Ditto.
4983         * libm/machine/spu/headers/divd2.h: Ditto.
4984         * libm/machine/spu/headers/divf4.h: Ditto.
4985         * libm/machine/spu/headers/erf.h: Ditto.
4986         * libm/machine/spu/headers/erf_utils.h: Ditto.
4987         * libm/machine/spu/headers/erfc.h: Ditto.
4988         * libm/machine/spu/headers/erfcd2.h: Ditto.
4989         * libm/machine/spu/headers/erfcf.h: Ditto.
4990         * libm/machine/spu/headers/erfcf4.h: Ditto.
4991         * libm/machine/spu/headers/erfd2.h: Ditto.
4992         * libm/machine/spu/headers/erff.h: Ditto.
4993         * libm/machine/spu/headers/erff4.h: Ditto.
4994         * libm/machine/spu/headers/exp.h: Ditto.
4995         * libm/machine/spu/headers/exp2.h: Ditto.
4996         * libm/machine/spu/headers/exp2d2.h: Ditto.
4997         * libm/machine/spu/headers/exp2f4.h: Ditto.
4998         * libm/machine/spu/headers/expd2.h: Ditto.
4999         * libm/machine/spu/headers/expf4.h: Ditto.
5000         * libm/machine/spu/headers/expm1.h: Ditto.
5001         * libm/machine/spu/headers/expm1d2.h: Ditto.
5002         * libm/machine/spu/headers/expm1f.h: Ditto.
5003         * libm/machine/spu/headers/expm1f4.h: Ditto.
5004         * libm/machine/spu/headers/floord2.h: Ditto.
5005         * libm/machine/spu/headers/floorf4.h: Ditto.
5006         * libm/machine/spu/headers/hypot.h: Ditto.
5007         * libm/machine/spu/headers/hypotd2.h: Ditto.
5008         * libm/machine/spu/headers/hypotf.h: Ditto.
5009         * libm/machine/spu/headers/hypotf4.h: Ditto.
5010         * libm/machine/spu/headers/isnan.h: Ditto.
5011         * libm/machine/spu/headers/isnand2.h: Ditto.
5012         * libm/machine/spu/headers/isnanf.h: Ditto.
5013         * libm/machine/spu/headers/isnanf4.h: Ditto.
5014         * libm/machine/spu/headers/ldexpd2.h: Ditto.
5015         * libm/machine/spu/headers/ldexpf4.h: Ditto.
5016         * libm/machine/spu/headers/lgamma.h: Ditto.
5017         * libm/machine/spu/headers/lgammad2.h: Ditto.
5018         * libm/machine/spu/headers/lgammaf.h: Ditto.
5019         * libm/machine/spu/headers/lgammaf4.h: Ditto.
5020         * libm/machine/spu/headers/log.h: Ditto.
5021         * libm/machine/spu/headers/log10.h: Ditto.
5022         * libm/machine/spu/headers/log10d2.h: Ditto.
5023         * libm/machine/spu/headers/log1p.h: Ditto.
5024         * libm/machine/spu/headers/log1pd2.h: Ditto.
5025         * libm/machine/spu/headers/log1pf.h: Ditto.
5026         * libm/machine/spu/headers/log1pf4.h: Ditto.
5027         * libm/machine/spu/headers/log2.h: Ditto.
5028         * libm/machine/spu/headers/log2d2.h: Ditto.
5029         * libm/machine/spu/headers/log2f4.h: Ditto.
5030         * libm/machine/spu/headers/logbf.h: Ditto.
5031         * libm/machine/spu/headers/logbf4.h: Ditto.
5032         * libm/machine/spu/headers/logd2.h: Ditto.
5033         * libm/machine/spu/headers/logf4.h: Ditto.
5034         * libm/machine/spu/headers/nearbyintf.h: Ditto.
5035         * libm/machine/spu/headers/nearbyintf4.h: Ditto.
5036         * libm/machine/spu/headers/nextafter.h: Ditto.
5037         * libm/machine/spu/headers/nextafterd2.h: Ditto.
5038         * libm/machine/spu/headers/nextafterf.h: Ditto.
5039         * libm/machine/spu/headers/nextafterf4.h: Ditto.
5040         * libm/machine/spu/headers/pow.h: Ditto.
5041         * libm/machine/spu/headers/powd2.h: Ditto.
5042         * libm/machine/spu/headers/powf.h: Ditto.
5043         * libm/machine/spu/headers/powf4.h: Ditto.
5044         * libm/machine/spu/headers/recipd2.h: Ditto.
5045         * libm/machine/spu/headers/recipf4.h: Ditto.
5046         * libm/machine/spu/headers/rintf.h: Ditto.
5047         * libm/machine/spu/headers/rintf4.h: Ditto.
5048         * libm/machine/spu/headers/scalbnf4.h: Ditto.
5049         * libm/machine/spu/headers/signbit.h: Ditto.
5050         * libm/machine/spu/headers/signbitd2.h: Ditto.
5051         * libm/machine/spu/headers/simdmath.h: Ditto.
5052         * libm/machine/spu/headers/sin.h: Ditto.
5053         * libm/machine/spu/headers/sincos.h: Ditto.
5054         * libm/machine/spu/headers/sincosd2.h: Ditto.
5055         * libm/machine/spu/headers/sincosf.h: Ditto.
5056         * libm/machine/spu/headers/sincosf4.h: Ditto.
5057         * libm/machine/spu/headers/sind2.h: Ditto.
5058         * libm/machine/spu/headers/sinf.h: Ditto.
5059         * libm/machine/spu/headers/sinf4.h: Ditto.
5060         * libm/machine/spu/headers/sinh.h: Ditto.
5061         * libm/machine/spu/headers/sinhd2.h: Ditto.
5062         * libm/machine/spu/headers/sinhf.h: Ditto.
5063         * libm/machine/spu/headers/sinhf4.h: Ditto.
5064         * libm/machine/spu/headers/sqrtd2.h: Ditto.
5065         * libm/machine/spu/headers/sqrtf.h: Ditto.
5066         * libm/machine/spu/headers/sqrtf4.h: Ditto.
5067         * libm/machine/spu/headers/tan.h: Ditto.
5068         * libm/machine/spu/headers/tand2.h: Ditto.
5069         * libm/machine/spu/headers/tanf.h: Ditto.
5070         * libm/machine/spu/headers/tanf4.h: Ditto.
5071         * libm/machine/spu/headers/tanh.h: Ditto.
5072         * libm/machine/spu/headers/tanhd2.h: Ditto.
5073         * libm/machine/spu/headers/tanhf.h: Ditto.
5074         * libm/machine/spu/headers/tanhf4.h: Ditto.
5075         * libm/machine/spu/headers/tgamma.h: Ditto.
5076         * libm/machine/spu/headers/tgammad2.h: Ditto.
5077         * libm/machine/spu/headers/tgammaf.h: Ditto.
5078         * libm/machine/spu/headers/tgammaf4.h: Ditto.
5079         * libm/machine/spu/headers/truncd2.h: Ditto.
5080         * libm/machine/spu/headers/truncf4.h: Ditto.
5081         * libm/machine/spu/log2.c: Ditto.
5082         * libm/machine/spu/s_asinh.c: Ditto.
5083         * libm/machine/spu/s_atan.c: Ditto.
5084         * libm/machine/spu/s_cos.c: Ditto.
5085         * libm/machine/spu/s_erf.c: Ditto.
5086         * libm/machine/spu/s_expm1.c: Ditto.
5087         * libm/machine/spu/s_isnan.c: Ditto.
5088         * libm/machine/spu/s_log1p.c: Ditto.
5089         * libm/machine/spu/s_nextafter.c: Ditto.
5090         * libm/machine/spu/s_sin.c: Ditto.
5091         * libm/machine/spu/s_tan.c: Ditto.
5092         * libm/machine/spu/s_tanh.c: Ditto.
5093         * libm/machine/spu/sf_asinh.c: Ditto.
5094         * libm/machine/spu/sf_cos.c: Ditto.
5095         * libm/machine/spu/sf_erf.c: Ditto.
5096         * libm/machine/spu/sf_expm1.c: Ditto.
5097         * libm/machine/spu/sf_log1p.c: Ditto.
5098         * libm/machine/spu/sf_logb.c: Ditto.
5099         * libm/machine/spu/sf_nearbyint.c: Ditto.
5100         * libm/machine/spu/sf_nextafter.c: Ditto.
5101         * libm/machine/spu/sf_rint.c: Ditto.
5102         * libm/machine/spu/sf_sin.c: Ditto.
5103         * libm/machine/spu/sf_tan.c: Ditto.
5104         * libm/machine/spu/sf_tanh.c: Ditto.
5105         * libm/machine/spu/w_acos.c: Ditto.
5106         * libm/machine/spu/w_acosh.c: Ditto.
5107         * libm/machine/spu/w_asin.c: Ditto.
5108         * libm/machine/spu/w_atan2.c: Ditto.
5109         * libm/machine/spu/w_atanh.c: Ditto.
5110         * libm/machine/spu/w_cosh.c: Ditto.
5111         * libm/machine/spu/w_exp.c: Ditto.
5112         * libm/machine/spu/w_exp2.c: Ditto.
5113         * libm/machine/spu/w_hypot.c: Ditto.
5114         * libm/machine/spu/w_lgamma.c: Ditto.
5115         * libm/machine/spu/w_log.c: Ditto.
5116         * libm/machine/spu/w_log10.c: Ditto.
5117         * libm/machine/spu/w_pow.c: Ditto.
5118         * libm/machine/spu/w_sincos.c: Ditto.
5119         * libm/machine/spu/w_sinh.c: Ditto.
5120         * libm/machine/spu/w_tgamma.c: Ditto.
5121         * libm/machine/spu/wf_acos.c: Ditto.
5122         * libm/machine/spu/wf_acosh.c: Ditto.
5123         * libm/machine/spu/wf_asin.c: Ditto.
5124         * libm/machine/spu/wf_atan2.c: Ditto.
5125         * libm/machine/spu/wf_atanh.c: Ditto.
5126         * libm/machine/spu/wf_cosh.c: Ditto.
5127         * libm/machine/spu/wf_hypot.c: Ditto.
5128         * libm/machine/spu/wf_lgamma.c: Ditto.
5129         * libm/machine/spu/wf_pow.c: Ditto.
5130         * libm/machine/spu/wf_sincos.c: Ditto.
5131         * libm/machine/spu/wf_sinh.c: Ditto.
5132         * libm/machine/spu/wf_sqrt.c: Ditto.
5133         * libm/machine/spu/wf_tgamma.c: Ditto.
5134
5135 2007-09-28  Patrick Mansfield  <patmans@us.ibm.com>
5136
5137         * configure.host: Define _POSIX_MODE to match the existing vector
5138         math code, as we don't support the matherr callout.
5139         * libm/machine/spu/Makefile.am: New file.
5140         * libm/machine/spu/Makefile.in: Auto-generated.
5141         * libm/machine/spu/headers/atanf.h: New file.
5142         * libm/machine/spu/headers/cbrt.h: Ditto.
5143         * libm/machine/spu/headers/cbrtf.h: Ditto.
5144         * libm/machine/spu/headers/ceil.h: Ditto.
5145         * libm/machine/spu/headers/ceilf.h: Ditto.
5146         * libm/machine/spu/headers/copysign.h: Ditto.
5147         * libm/machine/spu/headers/copysignf.h: Ditto.
5148         * libm/machine/spu/headers/exp2f.h: Ditto.
5149         * libm/machine/spu/headers/expf.h: Ditto.
5150         * libm/machine/spu/headers/fabs.h: Ditto.
5151         * libm/machine/spu/headers/fabsf.h: Ditto.
5152         * libm/machine/spu/headers/fdim.h: Ditto.
5153         * libm/machine/spu/headers/fdimf.h: Ditto.
5154         * libm/machine/spu/headers/floor.h: Ditto.
5155         * libm/machine/spu/headers/floorf.h: Ditto.
5156         * libm/machine/spu/headers/fma.h: Ditto.
5157         * libm/machine/spu/headers/fmaf.h: Ditto.
5158         * libm/machine/spu/headers/fmax.h: Ditto.
5159         * libm/machine/spu/headers/fmaxf.h: Ditto.
5160         * libm/machine/spu/headers/fmin.h: Ditto.
5161         * libm/machine/spu/headers/fminf.h: Ditto.
5162         * libm/machine/spu/headers/fmod.h: Ditto.
5163         * libm/machine/spu/headers/fmodf.h: Ditto.
5164         * libm/machine/spu/headers/frexp.h: Ditto.
5165         * libm/machine/spu/headers/frexpf.h: Ditto.
5166         * libm/machine/spu/headers/ilogb.h: Ditto.
5167         * libm/machine/spu/headers/ilogbf.h: Ditto.
5168         * libm/machine/spu/headers/ldexp.h: Ditto.
5169         * libm/machine/spu/headers/ldexpf.h: Ditto.
5170         * libm/machine/spu/headers/llrint.h: Ditto.
5171         * libm/machine/spu/headers/llrintf.h: Ditto.
5172         * libm/machine/spu/headers/llround.h: Ditto.
5173         * libm/machine/spu/headers/llroundf.h: Ditto.
5174         * libm/machine/spu/headers/log10f.h: Ditto.
5175         * libm/machine/spu/headers/log2f.h: Ditto.
5176         * libm/machine/spu/headers/logf.h: Ditto.
5177         * libm/machine/spu/headers/lrint.h: Ditto.
5178         * libm/machine/spu/headers/lrintf.h: Ditto.
5179         * libm/machine/spu/headers/lround.h: Ditto.
5180         * libm/machine/spu/headers/lroundf.h: Ditto.
5181         * libm/machine/spu/headers/nearbyint.h: Ditto.
5182         * libm/machine/spu/headers/remainder.h: Ditto.
5183         * libm/machine/spu/headers/remainderf.h: Ditto.
5184         * libm/machine/spu/headers/remquo.h: Ditto.
5185         * libm/machine/spu/headers/remquof.h: Ditto.
5186         * libm/machine/spu/headers/rint.h: Ditto.
5187         * libm/machine/spu/headers/round.h: Ditto.
5188         * libm/machine/spu/headers/roundf.h: Ditto.
5189         * libm/machine/spu/headers/scalbn.h: Ditto.
5190         * libm/machine/spu/headers/scalbnf.h: Ditto.
5191         * libm/machine/spu/headers/sqrt.h: Ditto.
5192         * libm/machine/spu/headers/trunc.h: Ditto.
5193         * libm/machine/spu/headers/truncf.h: Ditto.
5194         * libm/machine/spu/headers/vec_literal.h: Ditto.
5195         * libm/machine/spu/llrint.c: Ditto.
5196         * libm/machine/spu/llrintf.c: Ditto.
5197         * libm/machine/spu/llround.c: Ditto.
5198         * libm/machine/spu/llroundf.c: Ditto.
5199         * libm/machine/spu/log2f.c: Ditto.
5200         * libm/machine/spu/s_cbrt.c: Ditto.
5201         * libm/machine/spu/s_ceil.c: Ditto.
5202         * libm/machine/spu/s_copysign.c: Ditto.
5203         * libm/machine/spu/s_fabs.c: Ditto.
5204         * libm/machine/spu/s_fdim.c: Ditto.
5205         * libm/machine/spu/s_floor.c: Ditto.
5206         * libm/machine/spu/s_fma.c: Ditto.
5207         * libm/machine/spu/s_fmax.c: Ditto.
5208         * libm/machine/spu/s_fmin.c: Ditto.
5209         * libm/machine/spu/s_frexp.c: Ditto.
5210         * libm/machine/spu/s_ilogb.c: Ditto.
5211         * libm/machine/spu/s_ldexp.c: Ditto.
5212         * libm/machine/spu/s_lrint.c: Ditto.
5213         * libm/machine/spu/s_lround.c: Ditto.
5214         * libm/machine/spu/s_nearbyint.c: Ditto.
5215         * libm/machine/spu/s_remquo.c: Ditto.
5216         * libm/machine/spu/s_rint.c: Ditto.
5217         * libm/machine/spu/s_round.c: Ditto.
5218         * libm/machine/spu/s_scalbn.c: Ditto.
5219         * libm/machine/spu/s_trunc.c: Ditto.
5220         * libm/machine/spu/sf_atan.c: Ditto.
5221         * libm/machine/spu/sf_cbrt.c: Ditto.
5222         * libm/machine/spu/sf_ceil.c: Ditto.
5223         * libm/machine/spu/sf_copysign.c: Ditto.
5224         * libm/machine/spu/sf_fabs.c: Ditto.
5225         * libm/machine/spu/sf_fdim.c: Ditto.
5226         * libm/machine/spu/sf_floor.c: Ditto.
5227         * libm/machine/spu/sf_fma.c: Ditto.
5228         * libm/machine/spu/sf_fmax.c: Ditto.
5229         * libm/machine/spu/sf_fmin.c: Ditto.
5230         * libm/machine/spu/sf_frexp.c: Ditto.
5231         * libm/machine/spu/sf_ilogb.c: Ditto.
5232         * libm/machine/spu/sf_ldexp.c: Ditto.
5233         * libm/machine/spu/sf_lrint.c: Ditto.
5234         * libm/machine/spu/sf_lround.c: Ditto.
5235         * libm/machine/spu/sf_remquo.c: Ditto.
5236         * libm/machine/spu/sf_round.c: Ditto.
5237         * libm/machine/spu/sf_scalbn.c: Ditto.
5238         * libm/machine/spu/sf_trunc.c: Ditto.
5239         * libm/machine/spu/w_fmod.c: Ditto.
5240         * libm/machine/spu/w_remainder.c: Ditto.
5241         * libm/machine/spu/w_sqrt.c: Ditto.
5242         * libm/machine/spu/wf_exp.c: Ditto.
5243         * libm/machine/spu/wf_exp2.c: Ditto.
5244         * libm/machine/spu/wf_fmod.c: Ditto.
5245         * libm/machine/spu/wf_log.c: Ditto.
5246         * libm/machine/spu/wf_log10.c: Ditto.
5247         * libm/machine/spu/wf_remainder.c: Ditto.
5248
5249 2007-09-21  Patrick Mansfield  <patmans@us.ibm.com>
5250
5251         * libc/machine/spu/sys/uio.h: New file for readv and writev use.
5252
5253 2007-09-21  Patrick Mansfield  <patmans@us.ibm.com>
5254
5255         * libc/include/sched.h: New file, just include sys/sched.h.
5256         * libc/machine/spu/sys/sched.h: New file, has just sched_yield
5257         prototype.
5258         * libc/machine/spu/sys/utime.h: New file, has utime prototype and
5259         struct utimbuf definition.
5260
5261 2007-09-21  Patrick Mansfield  <patmans@us.ibm.com>
5262
5263         * libc/machine/spu/sys/dirent.h: New file, add prototypes and SPU
5264         specific struct and typedef.
5265
5266 2007-09-18  Patrick Mansfield  <patmans@us.ibm.com>
5267
5268         * libc/include/sys/types.h: Use __dev_t, __uid_t, and __gid_t to
5269         typedef dev_t, gid_t, and uid_t.
5270         * libc/include/sys/_types.h: Move previous dev_t, uid_t and gid_t
5271         types.h code to here, but typedef __dev_t, __uid_t, and __gid_t instead.
5272         Change to lower case for all __foo_t_defined names.
5273         * libc/machine/spu/machine/_types.h: Add SPU specific __dev_t,
5274         __uid_t, and __gid_t making them all four bytes. Change to lower case
5275         for all __foo_t_defined names.
5276
5277 2007-09-18  Jeff Johnston  <jjohnstn@redhat.com>
5278
5279         * libc/reent/renamer.c: New file.
5280         * libc/reent/Makefile.am: Add new file.
5281         * libc/reent/Makefile.in: Regenerated.
5282         * libc/stdio/rename.c: Break out _rename_r code into reent/renamer.c
5283         and add check for rename syscall.
5284
5285 2007-09-17  Eric Blake  <ebb9@byu.net>
5286
5287         Obey POSIX on printf("%.s", (char*)NULL).
5288         * libc/stdio/vfprintf.c (_VFPRINTF_R): Take precision into account
5289         for %s on NULL.  Skip NULL check when optimizing for size.
5290
5291 2007-09-07  Jeff Johnston  <jjohnstn@redhat.com>
5292
5293         * libc/include/sys/_types.h: Protect all types with flag
5294         checks to allow definition in machine/_types.h.
5295
5296 2007-09-07  Jeff Johnston  <jjohnstn@redhat.com>
5297
5298         * libc/sys/linux/sys/_types.h: Add _fpos_t and _fpos64_t
5299         definitions in light of the previous change.
5300
5301 2007-09-07  Patrick Mansfield  <patmans@us.ibm.com>
5302
5303         * libc/include/machine/_default_types.h: New file, contains what
5304         was previously in libc/include/machine/_types.h.
5305         * libc/include/machine/_types.h: Now only includes
5306         machine/_default_types.h.
5307         * libc/include/sys/reent.h: Remove _fpos_t and _fpos64_t.
5308         * libc/include/sys/_types.h: Move _fpos_t and _fpos64_t to here,
5309         with conditional declarations.
5310         * libc/machine/spu/machine/_types.h: New file, add SPU specific
5311         typedefs for _fpos_t and _fpos64_t.
5312
5313 2007-09-07  Jeff Johnston  <jjohnstn@redhat.com>
5314
5315         * libc/include/math.h (_M_LOG2E): Replace with..
5316         (_M_LOG2_E): New macro.
5317         (log2, log2f, M_LOG2_E): Use _M_LOG2_E.
5318
5319 2007-09-06  Brian Dessent  <brian@dessent.net>
5320
5321         * libc/reent/getreent.c: Allow for case where __getreent is
5322         defined as a macro.
5323
5324 2007-09-06  Jeff Johnston  <jjohnstn@redhat.com>
5325
5326         * libc/include/math.h (_M_LOG2E): New log2 of e macro.
5327         (log2): Use _M_LOG2E instead of M_LOG2E.
5328         (log2f): Ditto.
5329         (M_LOG2E): Define to be _M_LOG2E.
5330
5331 2007-09-04  Kazunori Asayama <asayama@sm.sony.co.jp>
5332
5333         * libm/math/wf_tgamma.c: Add missing include.
5334
5335 2007-08-31  Antony King  <antony.king@st.com>
5336
5337         * libc/stdlib/mprec.h [_DOUBLE_IS_32BITS}: Define IEEE_Arith
5338         bits and redefine associated dword0 macro (rvalue issue).
5339         * libc/stdio/vfieeefp.h: Ditto.
5340         * libc/stdlib/strtod.c: Add checks for _DOUBLE_IS_32BITS
5341         to prevent setting dword1 which is an rvalue only.
5342
5343 2007-08-28  Hans Kester  <hans.kester@ellips.nl>
5344
5345         * configure.host: Added support for x86_64.
5346         * libc/include/machine/ieeefp.h: Define __IEEE_LITTLE_ENDIAN for x86_64.
5347         * libc/include/machine/setjmp.h: Define _JBTYPE and _JBLEN for x86_64.
5348         * libc/machine/x86_64/aclocal.m4: Generated.
5349         * libc/machine/x86_64/configure.in: New.
5350         * libc/machine/x86_64/configure: Generated.
5351         * libc/machine/x86_64/Makefile.am: New.
5352         * libc/machine/x86_64/Makefile.in: Generated.
5353         * libc/machine/x86_64/setjmp.S: New.
5354         * libc/machine/x86_64/memcpy.S: New.
5355         * libc/machine/x86_64/memset.S: New.
5356         * libc/machine/configure.in: Added support for x86_64.
5357         * libc/machine/configure: Regenerated.
5358
5359 2007-08-24  Jeff Johnston  <jjohnstn@redhat.com>
5360
5361         * libm/common/sf_lround.c (lroundf): Cast sizeof calculation
5362         to int before comparing it to a signed int value.
5363
5364 2007-08-24  Hans-Peter Nilsson  <hp@axis.com>
5365
5366         * libc/machine/cris/sys/errno.h (ECANCELED, ENOKEY, EKEYEXPIRED)
5367         (EKEYREVOKED, EKEYREJECTED, EOWNERDEAD, ENOTRECOVERABLE, ENOTSUP):
5368         Define.
5369
5370 2007-08-23  Hidetaka Takano  <hidetaka.takano@glb.toshiba.co.jp>
5371
5372         Reduce the memory consumption of variable argument functions
5373         for SPU (cell):
5374         * libc/machine/spu/Makefile.am: Replace printf/scanf family C sources
5375           to assembler sources.
5376         * libc/machine/spu/Makefile.in: Regenerated.
5377         * libc/machine/spu/stdio.c: Add __check_init function wrapping
5378           CHECK_INIT macro to use from assembler routines.
5379         * libc/machine/spu/c99ppe.h: Add definitions for assembler code.
5380         * libc/machine/spu/fiprintf.S: New file.
5381         * libc/machine/spu/fiscanf.S: Ditto.
5382         * libc/machine/spu/fprintf.S: Ditto.
5383         * libc/machine/spu/fscanf.S: Ditto.
5384         * libc/machine/spu/iprintf.S: Ditto.
5385         * libc/machine/spu/iscanf.S: Ditto.
5386         * libc/machine/spu/printf.S: Ditto.
5387         * libc/machine/spu/scanf.S: Ditto.
5388         * libc/machine/spu/siprintf.S: Ditto.
5389         * libc/machine/spu/siscanf.S: Ditto.
5390         * libc/machine/spu/sniprintf.S: Ditto.
5391         * libc/machine/spu/snprintf.S: Ditto.
5392         * libc/machine/spu/sprintf.S: Ditto.
5393         * libc/machine/spu/sscanf.S: Ditto.
5394         * libc/machine/spu/stack_reg_va.S: Ditto.
5395         * libc/machine/spu/syscall.def: Ditto. (for maintenance)
5396         * libc/machine/spu/mk_syscalls: Ditto. (for maintenance)
5397         * libc/machine/spu/fiprintf.c: Removed. (Replaced by .S)
5398         * libc/machine/spu/fiscanf.c: Ditto.
5399         * libc/machine/spu/fprintf.c: Ditto.
5400         * libc/machine/spu/fscanf.c: Ditto.
5401         * libc/machine/spu/iprintf.c: Ditto.
5402         * libc/machine/spu/iscanf.c: Ditto.
5403         * libc/machine/spu/printf.c: Ditto.
5404         * libc/machine/spu/scanf.c: Ditto.
5405         * libc/machine/spu/siprintf.c: Ditto.
5406         * libc/machine/spu/siscanf.c: Ditto.
5407         * libc/machine/spu/sniprintf.c: Ditto.
5408         * libc/machine/spu/snprintf.c: Ditto.
5409         * libc/machine/spu/sprintf.c: Ditto.
5410         * libc/machine/spu/sscanf.c: Ditto.
5411
5412 2007-08-03  Ralf Corsepius  <ralf.corsepius@rtems.org>
5413
5414         * libc/include/tar.h: New.
5415
5416 2007-08-03  Jeff Johnston  <jjohnstn@redhat.com>
5417
5418         * libc/sys/linux/intl/Makefile.am: Change stpcpy reference to
5419         lcl_stpcpy to avoid conflict with new stpcpy.c in libc/string.
5420         * libc/sys/linux/intl/Makefile.in: Regenerated.
5421         * libc/sys/linux/intl/stpcpy.c: Renamed to...
5422         * libc/sys/linux/intl/lcl_stpcpy.c: ..this.
5423
5424 2007-08-02  Eric Blake  <ebb9@byu.net>
5425
5426         Implement fmemopen and open_memstream.
5427         * libc/stdio/fmemopen.c (_fmemopen_r, fmemopen): New file.
5428         * libc/stdio/open_memstream.c (_open_memstream_r, open_memstream):
5429         New file.
5430         * libc/stdio/fopencookie.c (fcwriter): Minor optimization.
5431         * libc/include/stdio.h (dprintf, vdprintf): Group all POSIX 200x
5432         functions together.
5433         (fmemopen, open_memstream): Declare new functions.
5434         * libc/stdio/stdio.tex: Document them.
5435         * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Add
5436         fmemopen and open_memstream.
5437         * libc/stdio/Makefile.in: Regenerate.
5438
5439 2007-07-31  Eric Blake  <ebb9@byu.net>
5440
5441         More POSIX stream corner cases.
5442         * libc/stdio/findfp.c (__sinit): Open stderr read/write.
5443         * libc/stdio/fdopen.c (_fdopen_r): Set O_APPEND on fd when
5444         requested.
5445         * libc/stdio64/fdopen64.c (_fdopen64_r): Likewise.
5446
5447 2007-07-18  Eric Blake  <ebb9@byu.net>
5448
5449         Fix 'make info'.
5450         * libc/stdio/stdio.tex: Add missing include.
5451         * libc/stdio/vfprintf.c: Use expected node name.
5452         * libc/stdio/vfscanf.c: Likewise.
5453         * libc/stdio/sscanf.c: Likewise.
5454         * libc/stdio/sprintf.c: Likewise.
5455         * libc/stdio/siscanf.c: Likewise.
5456         * libc/stdio/siprintf.c: Likewise.
5457         * libc/stdio/fopencookie.c: Quote raw {}.
5458         Reported by DJ Delorie.
5459
5460 2007-07-13  Eric Blake  <ebb9@byu.net>
5461
5462         Fix fflush issues.
5463         * libc/stdio/fflush.c (_fflush_r): New function.
5464         (fflush): Fix reentrancy and large offset behavior.
5465         * libc/include/stdio.h (_fflush_r): Add prototype.
5466         * libc/stdio/fclose.c (_fclose_r): All fflush callers changed.
5467         * libc/stdio/freopen.c (_freopen_r): Likewise.
5468         * libc/stdio/fseek.c (_fseek_r): Likewise.
5469         * libc/stdio/ftell.c (_ftell_r): Likewise.
5470         * libc/stdio/fvwrite.c (__sfvwrite_r): Likewise.
5471         * libc/stdio/refill.c (__srefill_r): Likewise.
5472         * libc/stdio/setvbuf.c (setvbuf): Likewise.
5473         * libc/stdio/ungetc.c (_ungetc_r): Likewise.
5474         * libc/stdio/vfprintf.c (__sbprintf): Likewise.
5475         * libc/stdio/wbuf.c (__swbuf_r): Likewise.
5476         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
5477         * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.  Defer to
5478         32-bit version if not large file.
5479         * libc/stdio64/ftello64.c (_ftello64_r): Likewise.
5480         * libc/stdio64/tmpfile64.c (_tmpfile64_r): Avoid compile warning.
5481
5482         Documentation updates.
5483         * libc/stdio/ungetc.c: Document ungetc.
5484         * libc/stdio/Makefile.am (CHEWOUT_FILES): Sort, match current list
5485         of files with documentation.
5486         * libc/stdio/Makefile.in: Regenerate.
5487         * libc/stdio/stdio.tex: Sort and update stdio documentation index.
5488
5489 2007-07-11  Jeff Johnston  <jjohnstn@redhat.com>
5490
5491         * libc/include/math.h: Fix so C99 functions/macros are accessible
5492         when -std=c99 is used when compiling and not when using C89.
5493
5494 2007-07-06  Corinna Vinschen  <corinna@vinschen.de>
5495
5496         * libc/include/wchar.h: Declare wcstol, wcstoll, wcstoul,
5497         wcstoull, _wcstol_r, _wcstoll_r, _wcstoul_r and _wcstoull_r.
5498         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add wcstol.c and wcstoul.c.
5499         (EXTENDED_SOURCES): Add wcstoll.c, wcstoll_r.c, wcstoull.c and
5500         wcstoull_r.c.
5501         (CHEWOUT_FILES): Add .def files accordingly.
5502         * libc/stdlib/Makefile.in: Regenerate.
5503         * libc/stdlib/stdlib.tex: Add documentation links for above functions.
5504         * libc/stdlib/strtoll.c: Fix portability note.
5505         * libc/stdlib/strtoull.c: Ditto.
5506         * libc/stdlib/wcstol.c: New file.
5507         * libc/stdlib/wcstoll.c: New file.
5508         * libc/stdlib/wcstoll_r.c: New file.
5509         * libc/stdlib/wcstoul.c: New file.
5510         * libc/stdlib/wcstoull.c: New file.
5511         * libc/stdlib/wcstoull_r.c: New file.
5512
5513 2007-07-06  Jeff Johnston  <jjohnstn@redhat.com>
5514
5515         * libc/include/sys/time.h (gettimeofday): Change to proper
5516         prototype where second parameter is void *.
5517         * libc/reent/gettimeofdayr.c (_gettimeofday_r): Change prototype
5518         accordingly.
5519         * libc/include/reent.h: Fix prototype for _gettimeofday_r.
5520         * libc/sys/arm/syscalls.c: Fix gettimeofday function signature.
5521         * libc/sys/rdos/gettod.c: Ditto.
5522         * libc/sys/sh/syscalls.c: Ditto.
5523         * libc/time/time.c (time): Change call to _gettimeofday_r
5524         to pass NULL as 2nd argument.
5525
5526 2007-07-06  Jeff Johnston  <jjohnstn@redhat.com>
5527
5528         * libc/sys/linux/intl/dcigettext.c: Define HAVE_STPCPY.
5529         * libc/sys/linux/intl/l10nflist.c: Ditto.
5530
5531 2007-07-04  Corinna Vinschen  <corinna@vinschen.de>
5532
5533         * libc/include/wchar.h: Add prototype for wcsxfrm.
5534         * libc/string/Makefile.am (GENERAL_SOURCES): Add wcsxfrm.c.
5535         (CHEWOUT_FILES): Add wcsxfrm.def.
5536         * libc/string/Makefile.in: Regenerate.
5537         * libc/string/wcsxfrm.c: New file.
5538         * libc/string/wcstrings.tex: Add wcsxfrm.
5539
5540 2007-06-28  Corinna Vinschen  <corinna@vinschen.de>
5541
5542         * libc/include/string.h: Add prototypes for stpcpy and stpncpy.
5543         * libc/string/Makefile.am (ELIX_SOURCES): Add stpcpy.c and
5544         stpncpy.c.
5545         (CHEWOUT_FILES): Add stpcpy.def and stpncpy.def.
5546         * libc/string/Makefile.in: Regenerate.
5547         * libc/string/stpcpy.c: New file.
5548         * libc/string/stpncpy.c: New file.
5549         * libc/string/strings.tex: Add stpcpy and stpncpy.
5550
5551 2007-06-27  Eric Blake  <ebb9@byu.net>
5552
5553         Support __func__ in assert, as required by C99.
5554         * libc/stdlib/assert.c (__assert_func): New function.
5555         (__assert): Use __assert_func.
5556         * libc/include/assert.h (assert) [!NDEBUG]: Use __assert_func when
5557         possible.
5558
5559 2007-06-20  Patrick Mansfield  <patmans@us.ibm.com>
5560
5561         * libc/machine/spu/perror.c: Pass errno as the second argument to
5562         the assist call.
5563
5564 2007-06-20  Patrick Mansfield  <patmans@us.ibm.com>
5565
5566         * libc/include/sys/unistd.h[__SPU__]: Add lockf prototype and related
5567         defines; expose ftruncate, truncate and sync prototypes.
5568
5569 2007-06-20  Patrick Mansfield  <patmans@us.ibm.com>
5570
5571         * libc/include/sys/unistd.h[__SPU__]: Make fchdir prototype visible.
5572         * libc/include/sys/stat.h[__SPU__]: Make mknod and lstat prototypes
5573         visible.
5574
5575 2007-06-15  Patrick Mansfield  <patmans@us.ibm.com>
5576
5577         * libc/machine/spu/Makefile.am: Remove mktemp.c, it was left in
5578         from a dropped patch.
5579         * libc/machine/spu/Makefile.in: Regenerate.
5580
5581 2007-06-13  Patrick Mansfield  <patmans@us.ibm.com>
5582
5583         * libc/machine/spu/creat.c: New file copied from libc/posix/creat.c,
5584         it just calls open with appropriate arguments.
5585         * libc/machine/spu/Makefile.am: Add creat.c.
5586         * libc/machine/spu/Makefile.in: Regenerate.
5587
5588 2007-06-13  Jeff Johnston  <jjohnstn@redhat.com>
5589
5590         * libc/machine/spu/Makefile.am: Re-add back setjmp.S which
5591         I accidentally dropped.
5592         * libc/machine/spu/Makefile.in: Regenerated.
5593
5594 2007-06-13  Patrick Mansfield  <patmans@us.ibm.com>
5595
5596         * libc/include/sys/features.h: Define _POSIX_TIMERS for spu.
5597         * libc/include/sys/unistd.h: Change usleep prototype to Posix
5598         form and move outside of OS flag checks.
5599         * libc/machine/spu/Makefile.am: Add sleep and usleep.
5600         * libc/machine/spu/Makefile.in: Regenerate.
5601         * libc/machine/spu/sleep.c: Copy libc/posix/sleep.c.
5602         * libc/machine/spu/usleep.c: Copy libc/posix/usleep.c.
5603
5604 2007-06-11  Corinna Vinschen  <corinna@vinschen.de>
5605
5606         * libc/include/sys/unistd.h: Declare confstr for Cygwin.
5607         Define confstr constants for Cygwin.  Add comment.
5608
5609 2007-06-10  Hans-Peter Nilsson  <hp@bitrange.com>
5610
5611         * libc/sys/mmixware/access.c (access): Do not try to use a magic
5612         file-handle and a direct syscall, just use _open.
5613         * libc/sys/mmixware/sys/syscall.h (TMPFNO): Remove this magic
5614         file-handle.
5615
5616         * libc/sys/mmixware/_exit.c (_exit): Update comment about
5617         passing on the exit value.
5618
5619 2007-06-08  Jeff Johnston  <jjohnstn@redhat.com>
5620
5621         * libc/string/strcasestr.c: New file.
5622         * libc/include/string.h: Add strcasestr.
5623         * libc/string/strings.tex: Add strcasestr.
5624         * libc/string/Makefile.am: Ditto.
5625         * libc/string/Makefile.in: Regenerated.
5626
5627 2007-06-06  Christian Groessler  <chris@groessler.org>
5628
5629         * libc/stdlib/ldtoa (_ldcheck): Make sure the setting of
5630         rnd is done after the last local variable declaration.
5631
5632 2007-06-06  Jeff Johnston  <jjohnstn@redhat.com>
5633
5634         * libc/stdlib/mprec.h[Just_16]: Make sure that Pack_16 is defined.
5635
5636 2007-06-05  Christian Groessler  <chris@groessler.org>
5637
5638         * libc/argz/argz_insert.c (argz_insert): Move delta variable
5639         declaration to top of function in keeping with C89 standard.
5640
5641 2007-06-04  Eric Blake  <ebb9@byu.net>
5642
5643         Implement funopen, fopencookie.
5644         * libc/include/sys/reent.h (struct __sFILE, struct __sFILE64):
5645         Switch to reentrant callbacks.
5646         * libc/include/stdio.h (funopen): Fix declaration.
5647         (fopencookie): Declare.
5648         * libc/stdio/local.h (__sread, __swrite, __sseek, __sclose)
5649         (__sseek64, __swrite64): Fix prototypes.
5650         [__SCLE]: Pull in setmode declaration.
5651         * libc/stdio/stdio.c (__sread, __swrite, __sseek, __sclose): Fix
5652         reentrancy.
5653         * libc/stdio64/stdio64.c (__sseek64_r, __swrite64_r): Delete.
5654         (__sseek64, __swrite64): Fix reentrancy.
5655         * libc/stdio/fseek.c (_fseek_r): Account for overflow, and fix
5656         reentrancy.
5657         * libc/stdio/ftell.c (_ftell_r): Likewise.
5658         * libc/stdio/flags.c (__sflags): Don't lose __SAPP on "a+".
5659         * libc/stdio/fclose.c (_fclose_r): Fix reentrancy.
5660         * libc/stdio/freopen.c (_freopen_r): Likewise.
5661         * libc/stdio/fvwrite.c (__sfvwrite_r): Likewise.
5662         * libc/stdio/refill.c (__srefill_r): Likewise.
5663         * libc/stdio/siscanf.c (eofread): Likewise.
5664         * libc/stdio/sscanf.c (eofread): Likewise.
5665         * libc/stdio/vsiscanf.c (eofread1): Likewise.
5666         * libc/stdio/vsscanf.c (eofread1): Likewise.
5667         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
5668         * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.
5669         * libc/stdio64/ftello64.c (_ftello64_r): Likewise.
5670         * libc/stdio/fflush.c (fflush): Improve reentrancy, although more
5671         could be fixed.
5672         * libc/stdio/fopencookie.c (_fopencookie_r, fopencookie): New file.
5673         * libc/stdio/funopen.c (_funopen_r, funopen): New file.
5674         * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Build
5675         new files.
5676         * libc/stdio/Makefile.in: Regenerate.
5677
5678 2007-05-29  Eric Blake  <ebb9@byu.net>
5679
5680         Avoid more compiler warnings.
5681         * libc/stdlib/btowc.c: Add missing header.
5682         * libc/stdlib/getopt.c (getopt_internal): Initialize variable.
5683         * libc/stdlib/system.c (do_system) [__CYGWIN__]: Add declaration.
5684         * libc/stdlib/wctob.c: Add missing header.
5685         * libc/string/strcpy.c (strcpy): Avoid warnings.
5686         * libc/string/strrchr.c (strrchr): Likewise.
5687
5688 2007-05-29  Corinna Vinschen  <corinna@vinschen.de>
5689
5690         * libc/argz/argz_add_sep.c (argz_add_sep): Handle empty string
5691         argument.
5692         * libc/argz/argz_append.c (argz_append): Handle empty buf argument.
5693         * libc/argz/argz_create_sep.c (argz_create_sep): Return (NULL, 0)
5694         on empty input strings.
5695         * libc/argz/argz_extract.c (argz_extract): Check argz_len before
5696         looping through argz.
5697         * libc/argz/argz_stringify.c (argz_stringify): Ditto.
5698
5699 2007-05-27  Brian Dessent  <brian@dessent.net>
5700
5701         * libc/stdio/vfprintf.c (_VFPRINTF_R): Populate 'ox' when
5702         handling %p.
5703
5704 2007-05-25  Eric Blake  <ebb9@byu.net>
5705
5706         * libc/stdio/rewind.c (rewind): Fix regression of 2003-08-22.
5707
5708 2007-05-24  Steve Ellcey  <sje@cup.hp.com>
5709             Charles Wilson  <libtool@cwilson.fastmail.fm>
5710
5711         * libtool.m4: removed
5712         * configure.in: invoke _LD_DECL_SED before conditionally initializing
5713         libtool.  Move AC_PROG_AWK outside conditional.
5714         * libc/sys/linux/configure.in: Ditto.
5715         * libc/sys/linux/linuxthreads/configure.in: Ditto.
5716         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
5717         * libc/sys/linux/machine/i386/configure.in: Ditto.
5718
5719         * iconvdata/configure.in: invoke _LD_DECL_SED before conditionally
5720         initializing libtool.
5721         * libc/configure.in: Ditto.
5722         * libc/machine/configure.in: Ditto.
5723         * libc/machine/i386/configure.in: Ditto.
5724         * libc/sys/configure.in: Ditto.
5725         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
5726         * libc/sys/linux/machine/configure.in: Ditto.
5727         * libm/configure.in: Ditto.
5728         * libm/machine/configure.in: Ditto.
5729
5730         * Makefile.am: Ensure toplevel is included in ACLOCAL_AMFLAGS.
5731         * doc/Makefile.am: Ditto.
5732         * iconvdata/Makefile.am: Ditto.
5733         * libc/Makefile.am: Ditto.
5734         * libc/machine/Makefile.am: Ditto.
5735         * libc/machine/a29k/Makefile.am: Ditto.
5736         * libc/machine/arm/Makefile.am: Ditto.
5737         * libc/machine/bfin/Makefile.am: Ditto.
5738         * libc/machine/cris/Makefile.am: Ditto.
5739         * libc/machine/crx/Makefile.am: Ditto.
5740         * libc/machine/d10v/Makefile.am: Ditto.
5741         * libc/machine/d30v/Makefile.am: Ditto.
5742         * libc/machine/fr30/Makefile.am: Ditto.
5743         * libc/machine/frv/Makefile.am: Ditto.
5744         * libc/machine/h8300/Makefile.am: Ditto.
5745         * libc/machine/h8500/Makefile.am: Ditto.
5746         * libc/machine/hppa/Makefile.am: Ditto.
5747         * libc/machine/i386/Makefile.am: Ditto.
5748         * libc/machine/i960/Makefile.am: Ditto.
5749         * libc/machine/iq2000/Makefile.am: Ditto.
5750         * libc/machine/m32c/Makefile.am: Ditto.
5751         * libc/machine/m32r/Makefile.am: Ditto.
5752         * libc/machine/m68hc11/Makefile.am: Ditto.
5753         * libc/machine/m68k/Makefile.am: Ditto.
5754         * libc/machine/m88k/Makefile.am: Ditto.
5755         * libc/machine/mips/Makefile.am: Ditto.
5756         * libc/machine/mn10200/Makefile.am: Ditto.
5757         * libc/machine/mn10300/Makefile.am: Ditto.
5758         * libc/machine/mt/Makefile.am: Ditto.
5759         * libc/machine/necv70/Makefile.am: Ditto.
5760         * libc/machine/powerpc/Makefile.am: Ditto.
5761         * libc/machine/sh/Makefile.am: Ditto.
5762         * libc/machine/sparc/Makefile.am: Ditto.
5763         * libc/machine/spu/Makefile.am: Ditto.
5764         * libc/machine/tic4x/Makefile.am: Ditto.
5765         * libc/machine/tic80/Makefile.am: Ditto.
5766         * libc/machine/v850/Makefile.am: Ditto.
5767         * libc/machine/w65/Makefile.am: Ditto.
5768         * libc/machine/xscale/Makefile.am: Ditto.
5769         * libc/machine/xstormy16/Makefile.am: Ditto.
5770         * libc/machine/z8k/Makefile.am: Ditto.
5771         * libc/sys/Makefile.am: Ditto.
5772         * libc/sys/a29khif/Makefile.am: Ditto.
5773         * libc/sys/arc/Makefile.am: Ditto.
5774         * libc/sys/arm/Makefile.am: Ditto.
5775         * libc/sys/d10v/Makefile.am: Ditto.
5776         * libc/sys/decstation/Makefile.am: Ditto.
5777         * libc/sys/h8300hms/Makefile.am: Ditto.
5778         * libc/sys/h8500hms/Makefile.am: Ditto.
5779         * libc/sys/linux/Makefile.am: Ditto.
5780         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
5781         * libc/sys/linux/linuxthreads/machine/Makefile.am: Ditto.
5782         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
5783         * libc/sys/linux/machine/Makefile.am: Ditto.
5784         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
5785         * libc/sys/m88kbug/Makefile.am: Ditto.
5786         * libc/sys/mmixware/Makefile.am: Ditto.
5787         * libc/sys/netware/Makefile.am: Ditto.
5788         * libc/sys/rdos/Makefile.am: Ditto.
5789         * libc/sys/rtems/Makefile.am: Ditto.
5790         * libc/sys/sh/Makefile.am: Ditto.
5791         * libc/sys/sparc64/Makefile.am: Ditto.
5792         * libc/sys/sun4/Makefile.am: Ditto.
5793         * libc/sys/sysmec/Makefile.am: Ditto.
5794         * libc/sys/sysnec810/Makefile.am: Ditto.
5795         * libc/sys/sysnecv850/Makefile.am: Ditto.
5796         * libc/sys/sysvi386/Makefile.am: Ditto.
5797         * libc/sys/sysvnecv70/Makefile.am: Ditto.
5798         * libc/sys/tic80/Makefile.am: Ditto.
5799         * libc/sys/w65/Makefile.am: Ditto.
5800         * libc/sys/z8ksim/Makefile.am: Ditto.
5801         * libm/Makefile.am: Ditto.
5802         * libm/machine/Makefile.am: Ditto.
5803         * libm/machine/i386/Makefile.am: Ditto.
5804         * libm/machine/spu/Makefile.am: Ditto.
5805
5806         * aclocal.m4: Regenerate.
5807         * iconvdata/aclocal.m4: Regenerate.
5808         * libc/aclocal.m4: Regenerate.
5809         * libc/machine/aclocal.m4: Regenerate.
5810         * libc/machine/i386/aclocal.m4: Regenerate.
5811         * libc/sys/aclocal.m4: Regenerate.
5812         * libc/sys/linux/aclocal.m4: Regenerate.
5813         * libc/sys/linux/linuxthreads/aclocal.m4: Regenerate.
5814         * libc/sys/linux/linuxthreads/machine/aclocal.m4: Regenerate.
5815         * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Regenerate.
5816         * libc/sys/linux/machine/aclocal.m4: Regenerate.
5817         * libc/sys/linux/machine/i386/aclocal.m4: Regenerate.
5818         * libm/aclocal.m4: Regenerate.
5819         * libm/machine/aclocal.m4: Regenerate.
5820         * libm/machine/i386/aclocal.m4: Regenerate.
5821
5822         * Makefile.in: Regenerate.
5823         * doc/Makefile.in: Regenerate.
5824         * iconvdata/Makefile.in: Regenerate.
5825         * libc/Makefile.in: Regenerate.
5826         * libc/argz/Makefile.in: Regenerate.
5827         * libc/ctype/Makefile.in: Regenerate.
5828         * libc/errno/Makefile.in: Regenerate.
5829         * libc/iconv/Makefile.in: Regenerate.
5830         * libc/iconv/ccs/Makefile.in: Regenerate.
5831         * libc/iconv/ccs/binary/Makefile.in: Regenerate.
5832         * libc/iconv/ces/Makefile.in: Regenerate.
5833         * libc/iconv/lib/Makefile.in: Regenerate.
5834         * libc/locale/Makefile.in: Regenerate.
5835         * libc/machine/Makefile.in: Regenerate.
5836         * libc/machine/a29k/Makefile.in: Regenerate.
5837         * libc/machine/arm/Makefile.in: Regenerate.
5838         * libc/machine/bfin/Makefile.in: Regenerate.
5839         * libc/machine/cris/Makefile.in: Regenerate.
5840         * libc/machine/crx/Makefile.in: Regenerate.
5841         * libc/machine/d10v/Makefile.in: Regenerate.
5842         * libc/machine/d30v/Makefile.in: Regenerate.
5843         * libc/machine/fr30/Makefile.in: Regenerate.
5844         * libc/machine/frv/Makefile.in: Regenerate.
5845         * libc/machine/h8300/Makefile.in: Regenerate.
5846         * libc/machine/h8500/Makefile.in: Regenerate.
5847         * libc/machine/hppa/Makefile.in: Regenerate.
5848         * libc/machine/i386/Makefile.in: Regenerate.
5849         * libc/machine/i960/Makefile.in: Regenerate.
5850         * libc/machine/iq2000/Makefile.in: Regenerate.
5851         * libc/machine/m32c/Makefile.in: Regenerate.
5852         * libc/machine/m32r/Makefile.in: Regenerate.
5853         * libc/machine/m68hc11/Makefile.in: Regenerate.
5854         * libc/machine/m68k/Makefile.in: Regenerate.
5855         * libc/machine/m88k/Makefile.in: Regenerate.
5856         * libc/machine/mips/Makefile.in: Regenerate.
5857         * libc/machine/mn10200/Makefile.in: Regenerate.
5858         * libc/machine/mn10300/Makefile.in: Regenerate.
5859         * libc/machine/mt/Makefile.in: Regenerate.
5860         * libc/machine/necv70/Makefile.in: Regenerate.
5861         * libc/machine/powerpc/Makefile.in: Regenerate.
5862         * libc/machine/sh/Makefile.in: Regenerate.
5863         * libc/machine/sparc/Makefile.in: Regenerate.
5864         * libc/machine/spu/Makefile.in: Regenerate.
5865         * libc/machine/tic4x/Makefile.in: Regenerate.
5866         * libc/machine/tic80/Makefile.in: Regenerate.
5867         * libc/machine/v850/Makefile.in: Regenerate.
5868         * libc/machine/w65/Makefile.in: Regenerate.
5869         * libc/machine/xscale/Makefile.in: Regenerate.
5870         * libc/machine/xstormy16/Makefile.in: Regenerate.
5871         * libc/machine/z8k/Makefile.in: Regenerate.
5872         * libc/misc/Makefile.in: Regenerate.
5873         * libc/posix/Makefile.in: Regenerate.
5874         * libc/reent/Makefile.in: Regenerate.
5875         * libc/search/Makefile.in: Regenerate.
5876         * libc/signal/Makefile.in: Regenerate.
5877         * libc/stdio/Makefile.in: Regenerate.
5878         * libc/stdio64/Makefile.in: Regenerate.
5879         * libc/stdlib/Makefile.in: Regenerate.
5880         * libc/string/Makefile.in: Regenerate.
5881         * libc/sys/Makefile.in: Regenerate.
5882         * libc/sys/a29khif/Makefile.in: Regenerate.
5883         * libc/sys/arc/Makefile.in: Regenerate.
5884         * libc/sys/arm/Makefile.in: Regenerate.
5885         * libc/sys/d10v/Makefile.in: Regenerate.
5886         * libc/sys/decstation/Makefile.in: Regenerate.
5887         * libc/sys/h8300hms/Makefile.in: Regenerate.
5888         * libc/sys/h8500hms/Makefile.in: Regenerate.
5889         * libc/sys/linux/Makefile.in: Regenerate.
5890         * libc/sys/linux/argp/Makefile.in: Regenerate.
5891         * libc/sys/linux/cmath/Makefile.in: Regenerate.
5892         * libc/sys/linux/dl/Makefile.in: Regenerate.
5893         * libc/sys/linux/iconv/Makefile.in: Regenerate.
5894         * libc/sys/linux/intl/Makefile.in: Regenerate.
5895         * libc/sys/linux/linuxthreads/Makefile.in: Regenerate.
5896         * libc/sys/linux/linuxthreads/machine/Makefile.in: Regenerate.
5897         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Regenerate.
5898         * libc/sys/linux/machine/Makefile.in: Regenerate.
5899         * libc/sys/linux/machine/i386/Makefile.in: Regenerate.
5900         * libc/sys/linux/net/Makefile.in: Regenerate.
5901         * libc/sys/linux/stdlib/Makefile.in: Regenerate.
5902         * libc/sys/m88kbug/Makefile.in: Regenerate.
5903         * libc/sys/mmixware/Makefile.in: Regenerate.
5904         * libc/sys/netware/Makefile.in: Regenerate.
5905         * libc/sys/rdos/Makefile.in: Regenerate.
5906         * libc/sys/rtems/Makefile.in: Regenerate.
5907         * libc/sys/sh/Makefile.in: Regenerate.
5908         * libc/sys/sparc64/Makefile.in: Regenerate.
5909         * libc/sys/sun4/Makefile.in: Regenerate.
5910         * libc/sys/sysmec/Makefile.in: Regenerate.
5911         * libc/sys/sysnec810/Makefile.in: Regenerate.
5912         * libc/sys/sysnecv850/Makefile.in: Regenerate.
5913         * libc/sys/sysvi386/Makefile.in: Regenerate.
5914         * libc/sys/sysvnecv70/Makefile.in: Regenerate.
5915         * libc/sys/tic80/Makefile.in: Regenerate.
5916         * libc/sys/w65/Makefile.in: Regenerate.
5917         * libc/sys/z8ksim/Makefile.in: Regenerate.
5918         * libc/syscalls/Makefile.in: Regenerate.
5919         * libc/time/Makefile.in: Regenerate.
5920         * libc/unix/Makefile.in: Regenerate.
5921         * libm/Makefile.in: Regenerate.
5922         * libm/common/Makefile.in: Regenerate.
5923         * libm/machine/Makefile.in: Regenerate.
5924         * libm/machine/i386/Makefile.in: Regenerate.
5925         * libm/machine/spu/Makefile.in: Regenerate.
5926         * libm/math/Makefile.in: Regenerate.
5927         * libm/mathfp/Makefile.in: Regenerate.
5928
5929         * configure: Regenerate.
5930         * iconvdata/configure: Regenerate.
5931         * libc/configure: Regenerate.
5932         * libc/machine/configure: Regenerate.
5933         * libc/machine/i386/configure: Regenerate.
5934         * libc/sys/configure: Regenerate.
5935         * libc/sys/linux/configure: Regenerate.
5936         * libc/sys/linux/linuxthreads/configure: Regenerate.
5937         * libc/sys/linux/linuxthreads/machine/configure: Regenerate.
5938         * libc/sys/linux/linuxthreads/machine/i386/configure: Regenerate.
5939         * libc/sys/linux/machine/configure: Regenerate.
5940         * libc/sys/linux/machine/i386/configure: Regenerate.
5941         * libm/configure: Regenerate.
5942         * libm/machine/configure: Regenerate.
5943         * libm/machine/i386/configure: Regenerate.
5944
5945 2007-05-23  Eric Blake  <ebb9@byu.net>
5946
5947         * libc/stdio/vfprintf.c (_VFPRINTF_R): Don't truncate %p when
5948         sizeof(void*) is 8 but sizeof(long) is 4.
5949         * libc/stdio/vfscanf.c (__SVFSCANF_R): Likewise.  Fix %i scanning
5950         of "-0x".  Support "-nan" and "inf" for %e.  Audit usage of ungetc
5951         to fix reentrancy and bug on encoding error in multibyte locales.
5952         Always return EOF on read error.
5953
5954 2007-05-23 Patrick Mansfield <patmans@us.ibm.com>
5955
5956         * libc/machine/spu/sys/syscall.h: Update the __send_to_ppe
5957         prototype.
5958         * libc/machine/spu/fclose.c: Use the __send_to_ppe return value
5959         instead of the slot 0 value, remove any now unused variables, and
5960         for some cases, now store the result in an int vs int*.
5961         * libc/machine/spu/feof.c: Ditto.
5962         * libc/machine/spu/ferror.c: Ditto.
5963         * libc/machine/spu/fflush.c: Ditto.
5964         * libc/machine/spu/fgetc.c: Ditto.
5965         * libc/machine/spu/fgetpos.c: Ditto.
5966         * libc/machine/spu/fgets.c: Ditto.
5967         * libc/machine/spu/fileno.c: Ditto.
5968         * libc/machine/spu/fopen.c: Ditto.
5969         * libc/machine/spu/fprintf.c: Ditto.
5970         * libc/machine/spu/fputc.c: Ditto.
5971         * libc/machine/spu/fputs.c: Ditto.
5972         * libc/machine/spu/fread.c: Ditto.
5973         * libc/machine/spu/freopen.c: Ditto.
5974         * libc/machine/spu/fscanf.c: Ditto.
5975         * libc/machine/spu/fseek.c: Ditto.
5976         * libc/machine/spu/fsetpos.c: Ditto.
5977         * libc/machine/spu/ftell.c: Ditto.
5978         * libc/machine/spu/fwrite.c: Ditto.
5979         * libc/machine/spu/getc.c: Ditto.
5980         * libc/machine/spu/getchar.c: Ditto.
5981         * libc/machine/spu/gets.c: Ditto.
5982         * libc/machine/spu/printf.c: Ditto.
5983         * libc/machine/spu/putc.c: Ditto.
5984         * libc/machine/spu/putchar.c: Ditto.
5985         * libc/machine/spu/puts.c: Ditto.
5986         * libc/machine/spu/remove.c: Ditto.
5987         * libc/machine/spu/rename.c: Ditto.
5988         * libc/machine/spu/scanf.c: Ditto.
5989         * libc/machine/spu/setvbuf.c: Ditto.
5990         * libc/machine/spu/snprintf.c: Ditto.
5991         * libc/machine/spu/sprintf.c: Ditto.
5992         * libc/machine/spu/sscanf.c: Ditto.
5993         * libc/machine/spu/tmpfile.c: Ditto.
5994         * libc/machine/spu/tmpnam.c: Ditto.
5995         * libc/machine/spu/ungetc.c: Ditto.
5996         * libc/machine/spu/vfprintf.c: Ditto.
5997         * libc/machine/spu/vfscanf.c: Ditto.
5998         * libc/machine/spu/vprintf.c: Ditto.
5999         * libc/machine/spu/vscanf.c: Ditto.
6000         * libc/machine/spu/vsnprintf.c: Ditto.
6001         * libc/machine/spu/vsprintf.c: Ditto.
6002         * libc/machine/spu/vsscanf.c: Ditto.
6003
6004 2007-05-23  Eric Blake  <ebb9@byu.net>
6005
6006         * libc/stdio/vfscanf.c (__SVFSCANF_R): Support scanf(%1$s).
6007         Avoid warning when !FLOATING_POINT.
6008         * libc/stdio/vfprintf.c (_VFPRINTF_R): Simplify _NO_POS_ARGS
6009         slightly.
6010
6011 2007-05-23  Corinna Vinschen  <vinschen@redhat.com>
6012
6013         * libc/argz/argz_create_sep.c (argz_create_sep): Initialize *argz_len
6014         to zero.
6015         * libc/include/argz.h: Guard against multiple inclusion.  Guard for
6016         use with C++.
6017
6018 2007-05-18  Eric Blake  <ebb9@byu.net>
6019
6020         * libc/stdio/vfprintf.c [_WANT_IO_LONG_LONG]: Allow non-gcc
6021         compilers.
6022         * libc/stdio/vfscanf.c: Likewise.
6023
6024 2007-05-17  Cary R.  <cygcary <at> yahoo.com>
6025
6026         * libm/math/w_atan2.c: Fix atan2 to be consistent with glibc
6027         (atan2(+0,-0), atan2(-0,-0) and atan(-0,+0))
6028         * libm/math/wf_atan2.c: Ditto.
6029
6030 2007-05-17  Yaakov Selkowitz  <yselkowitz <at> users.sourceforge.net>
6031
6032         * libm/common/Makefile.am: Add support for exp10, exp10f,
6033         pow10, and pow10f functions.
6034         * libm/common/Makefile.in: Regenerated.
6035         * libm/common/s_pow10.c: New file.
6036         * libm/common/sf_pow10.c: Ditto.
6037         * libm/common/s_exp10.c: Ditto.
6038         * libm/common/sf_exp10.c: Ditto.
6039         * libc/include/math.h [!pow10]: New pow10 prototype.
6040         [!pow10f]: New pow10f prototype.
6041         [!exp10]: New exp10 prototype.
6042         [!exp10f]: New exp10f prototype.
6043
6044 2007-05-17  Charles Wilson  <cygwin@...>
6045
6046         * stdio/tmpfile.c: Include <sys/stat.h>.
6047         * stdio64/tmpfile64.c: Ditto.
6048
6049 2007-05-16  Eric Blake  <ebb9@byu.net>
6050
6051         Close security hole in tmpfile.
6052         * libc/stdio/tmpfile.c (_tmpfile_r): Avoid window between filename
6053         generation and opening the fd.
6054         * libc/stdio64/tmpfile64.c (_tmpfile64_r): Likewise.
6055
6056         * libc/include/math.h (INFINITY, NAN, FP_ILOGB0, FP_ILOGBNAN)
6057         (MATH_ERRNO, MATH_ERREXCEPT, math_errhandling): Add macros
6058         required by POSIX.
6059         * libc/stdlib/ldtoa.c (USE_INFINITY): Rename from INFINITY, to
6060         avoid clash with <math.h>.
6061
6062         * libc/stdlib/wctomb_r.c (_wctomb_r): Avoid gcc warnings on cygwin.
6063         * libc/search/hash.c (__hash_open): Likewise.
6064
6065 2007-05-14 Eric Blake <ebb9@byu.net>
6066
6067         Reduce stack size of *printf.
6068         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix use of decimal point
6069         in %f.  Avoid malloc when possible for %S.
6070         (BUF): Improve stack locality by using smaller size.
6071         (MAXEXPLEN, _PRINTF_FLOAT_TYPE): Define.
6072         (exponent): Use smaller stack size.
6073
6074 2007-05-11  Eric Blake  <ebb9@byu.net>
6075
6076         Minimize printf/scanf size on platforms that don't need C99.
6077         * acconfig.h (_WANT_IO_C99_FORMATS): New macro.
6078         * newlib.hin (_WANT_IO_C99_FORMATS): Likewise.
6079         * configure.in (newlib-io-c99-formats): New configure option.
6080         (_WANT_IO_C99_FORMATS): Define appropriately.
6081         * configure.host (*-linux*, cygwin): Default c99-formats to yes.
6082         * libc/stdio/vfprintf.c (_VFPRINTF_R) [!_WANT_IO_C99_FORMATS]:
6083         Cripple ' flag; hh, z, j, t sizes; a, A, F, C, S specifiers.
6084         * libc/stdio/vfscanf.c (_VFSCANF_R) [!_WANT_IO_C99_FORMATS]:
6085         Likewise.
6086         * configure: Regenerate.
6087
6088         * libc/stdio/vfprintf.c (_VFPRINTF_R, cvt, exponent, chclass)
6089         (get_arg): Support '%a' and '%A'.
6090
6091 2007-05-09  Eric Blake  <ebb9@byu.net>
6092
6093         Allow zero size with non-null buf in *asnprintf.
6094         * libc/stdio/asnprintf.c (_asnprintf_r, asnprintf): Avoid free'ing
6095         user's buf.
6096         * libc/stdio/asniprintf.c (_asniprintf_r, asniprintf): Likewise.
6097         * libc/stdio/vasniprintf.c (_vasniprintf_r): Likewise.
6098         * libc/stdio/vasnprintf.c (_vasnprintf_r): Likewise.
6099
6100 2007-05-07  Charles Wilson  <cygwin@...>
6101
6102         * libc/stdio/vfprintf.c: Fix typo in comments that breaks docs.
6103
6104 2007-05-03  Eric Blake  <ebb9@byu.net>
6105
6106         Add support for asnprintf, and improve *printf documentation.
6107         * libc/stdio/Makefile.am (ELIX_SOURCES): Rename...
6108         (ELIX_2_SOURCES): ...to this.
6109         (ELIX_4_SOURCES): Add new variable.  Build asnprintf.
6110         (GENERAL_SOURCES): Move dprintf to ELIX_4_SOURCES.
6111         (CHEWOUT_FILES): Include diprintf in documentation.
6112         * libc/stdio/Makefile.in: Regenerate.
6113         * libc/stdio/diprintf.c: Improve documentation.
6114         * libc/stdio/dprintf.c: Likewise.
6115         * libc/stdio/siprintf.c: Likewise.
6116         * libc/stdio/sprintf.c: Likewise.
6117         * libc/stdio/vfprintf.c: Likewise.
6118         * libc/stdio/viprintf.c: Likewise.
6119         * libc/stdio/vsniprintf.c: Consolidate documentation.
6120         * libc/stdio/asiprintf.c: Refer to documentation.
6121         * libc/stdio/asprintf.c: Likewise.
6122         * libc/stdio/fiprintf.c: Likewise.
6123         * libc/stdio/fprintf.c: Likewise.
6124         * libc/stdio/iprintf.c: Likewise.
6125         * libc/stdio/printf.c: Likewise.
6126         * libc/stdio/sniprintf.c: Likewise.
6127         * libc/stdio/vdiprintf.c: Likewise.
6128         * libc/stdio/vdprintf.c: Likewise.
6129         * libc/stdio/vsiprintf.c: Likewise.
6130         * libc/stdio/fvwrite.c (__sfvwrite_r): Handle asnprintf.
6131         * libc/stdio/asniprintf.c (asniprintf, _asniprintf_r): New file.
6132         * libc/stdio/asnprintf.c (asnprintf, _asnprintf_r): New file.
6133         * libc/stdio/vasniprintf.c (vasniprintf, _vasniprintf_r): New
6134         file.
6135         * libc/stdio/vasnprintf.c (vasnprintf, _vasnprintf_r): New file.
6136         * libc/stdio/vdprintf.c (_vdprintf_r): Rewrite to avoid malloc in
6137         typical case.
6138         * libc/stdio/vdiprintf.c (_vdiprintf_r): Likewise.
6139         * libc/include/stdio.h: Add prototypes for new functions; sort
6140         existing functions.
6141
6142 2007-05-03  Kazu Hirata  <kazu@codesourcery.com>
6143
6144         * libc/machine/m68k/Makefile.am (lib_a_SOURCES): Add memcpy.S
6145         and memset.S.
6146         * libc/machine/m68k/Makefile.in: Regenerate.
6147         * libc/machine/m68k/memcpy.S: Use sub.l followed by dbra.
6148         * libc/machine/m68k/memset.S: Likewise.
6149
6150 2007-05-01  Eric Blake  <ebb9@byu.net>
6151
6152         * libc/stdio64/local64.h: Delete, move contents to...
6153         * libc/stdio/local.h: ...here.
6154         * libc/stdio64/fdopen64.c: Update includes.
6155         * libc/stdio64/fopen64.c: Likewise.
6156         * libc/stdio64/freopen64.c: Likewise.
6157         * libc/stdio64/fseeko64.c: Likewise.
6158         * libc/stdio64/ftello64.c: Likewise.
6159         * libc/stdio/findfp.c (std) [__LARGE64_FILES]: Open stdin, stdout,
6160         and stderr with 64-bit offset.
6161         * libc/stdio/fseek.c (_fseek_r): Avoid compile warning.
6162         * libc/stdio/makebuf.c (__smakebuf_r): Likewise.
6163         * libc/stdio/mktemp.c (_gettemp): Likewise.
6164
6165 2007-05-01  Cary R.  <cygcary <at> yahoo.com>
6166
6167         * libm/math/e_pow.c: Fix to be consistent with glibc with regards
6168         to treatment of NaN and +-inf arguments.
6169         * libm/math/ef_pow.c: Ditto.
6170         * libm/math/w_pow.c: Ditto.
6171         * libm/math/wf_pow.c: Ditto.
6172         * libm/math/w_acos.c: Fix domain errors to return NaN.
6173         * libm/math/w_asin.c: Ditto.
6174         * libm/math/wf_acos.c: Ditto.
6175         * libm/math/wf_asin.c: Ditto.
6176         * libm/math/w_log.c: Fix to return NaN for negative number inputs.
6177         * libm/math/wf_log.c: Ditto.
6178         * libm/math/wf_log10.c: Ditto.
6179         * libm/math/w_log10.c: Ditto.
6180
6181 2007-04-27  Jeff Johnston  <jjohnstn@redhat.com>
6182
6183         * libc/machine/m68k/Makefile.am: Temporarily remove
6184         memcpy.S and memset.S until logic can be confirmed for
6185         !(__mcoldfile__) case.
6186         * libc/machine/m68k/Makefile.in: Regenerated.
6187
6188 2007-04-27  Kazu Hirata  <kazu@codesourcery.com>
6189
6190         * libc/machine/m68k/Makefile.am (lib_a_SOURCES): Add memcpy.S
6191         and memset.S.
6192         * libc/machine/m68k/Makefile.in: Regenerate.
6193         * libc/machine/m68k/memcpy.S, libc/machine/m68k/memset.S: New.
6194
6195 2007-04-26  Patrick Mansfield <patmans@us.ibm.com>
6196
6197         * libc/include/ieeefp.h: use prefixed __ieeefp_ macros that can be
6198         overridden via machine/ieeefp.h.
6199         * libc/include/machine/ieeefp.h: Add SPU specific C99 and ieeefp
6200         macros for isnan and related macros.
6201         * libc/include/math.h: Allow C99 isfinite, isinf, and isnan to be
6202         overridden via machine/ieeefp.h.
6203         * libm/machine/spu/Makefile.am: Add new files.
6204         * libm/machine/spu/Makefile.in: Autogenerate with new files.
6205         * libm/machine/spu/sf_fpclassify.c: Add SPU specific __fpclassifyf.
6206         * libm/machine/spu/sf_finite.c: Add SPU specific finitef.
6207         * libm/machine/spu/sf_isinf.c: Add SPU specific isinff.
6208         * libm/machine/spu/sf_isinff.c: Add SPU specific __isinff.
6209         * libm/machine/spu/sf_isnan.c: Add SPU specific isnanf.
6210         * libm/machine/spu/sf_isnanf.c: Add SPU specific __isnanf.
6211         * libm/machine/spu/sf_nan.c: Add SPU specific nanf.
6212
6213 2007-04-25  Jeff Johnston  <jjohnstn@redhat.com>
6214
6215         * libm/common/s_fpclassify.c (__fpclassifyf): Move this to...
6216         * libm/common/sf_fpclassify.c: ...here.  New file.
6217         * libm/common/Makefile.am: Add sf_fpclassify.c.
6218         * libm/common/Makefile.in: Regenerated.
6219
6220 2007-04-25  Patrick Mansfield <patmans@us.ibm.com>
6221
6222         * libc/machine/spu/sys/errno.h: New file, so spu errno values match
6223         ppu linux values. This file is a copy of the cris/sys/errno.h plus
6224         a few changes (see spu errno.h comments).
6225
6226 2007-04-25  Eric Blake  <ebb9@byu.net>
6227
6228         * libc/stdio/vfprintf.c (get_arg): Support %1$lc.  Simplify types
6229         that promote to int.
6230
6231 2007-04-25  Patrick Mansfield <patmans@us.ibm.com>
6232
6233         * libm/machine/spu/headers/feholdexcept.h: Use *envp not env so
6234         we clear the proper bits in the fpscr, and don't set some random ones.
6235
6236 2007-04-24  Eric Blake  <ebb9@byu.net>
6237
6238         * libc/stdio/vfprintf.c (_VFPRINTF_R): Don't zero pad on infinity
6239         or NaN with %05f.
6240
6241         * libc/stdio/vfprintf.c (_VFPRINTF_R): Avoid multibyte when not
6242         _MB_CAPABLE.
6243
6244         * libc/include/limits.h (NL_ARGMAX): Define a default value.
6245         * libc/stdio/vfprintf.c (MAX_POS_ARGS): Define in terms of
6246         NL_ARGMAX, if present.
6247
6248 2007-04-23  Brian Dessent  <brian@dessent.net>
6249
6250         * libc/stdio/vfprintf.c (_vfprintf_r): When the alternate-form flag
6251         has been specified with types 'f', 'F', 'g', or 'G', ensure the
6252         trailing decimal is printed.
6253
6254 2007-04-23  Ralf Wildenhues  <Ralf.Wildenhues <at> gmx.de>
6255
6256         * confsubdir.m4 (AC_CONFIG_SUBDIRS, _AC_OUTPUT_SUBDIRS): New
6257         file.  Override Autoconf-2.59's version of these macros with
6258         fixed handling of multiple adjacent whitespace in arguments.
6259         * aclocal.m4: Regenerated forcefully.
6260         * configure: Ditto.
6261         * Makefile.in: Ditto.
6262         * libc/*Makefile.in: Ditto.
6263         * libc/*aclocal.m4: Ditto.
6264         * libc/*configure: Ditto.
6265         * libm/*Makefile.in: Ditto.
6266         * libm/*aclocal.m4: Ditto.
6267         * libm/*configure: Ditto.
6268
6269 2007-04-23  Jeff Johnston  <jjohnstn@redhat.com>
6270
6271         * libc/sys/arc/dummy.S: Dummy file to force .S.o suffix rule.
6272         * libc/sys/arc/Makefile.am: Add dummy.S to EXTRA_lib_a_SOURCES
6273         and set lib_a_CCASFLAGS so crto.o will use .S.o default suffix rule.
6274         * libc/sys/arc/Makefile.in: Regenerated.
6275
6276 2007-04-17  Brian Dessent  <brian@dessent.net>
6277
6278         * libc/stdio/sscanf.c: Update documentation comments.
6279         * libc/stdio/vfscanf.c (__SVFSCANF_R): Handle j, t, and z modifiers.
6280
6281 2007-04-12  Eric Blake  <ebb9@byu.net>
6282
6283         * libc/stdio/vfprintf.c (_VFPRINTF_F, cvt): Don't confuse %F with %e.
6284         (chclass): Recognize 'F', 'X', 'n', and not 'W'.
6285         (get_arg): Handle %1$F, %1$n.
6286
6287 2007-04-10  Eric Blake  <ebb9@byu.net>
6288
6289         * libc/include/stdio.h (_ELIDABLE_INLINE): Work even when using
6290         CFLAGS=-O0.
6291
6292 2007-04-09  Eric Blake  <ebb9@byu.net>
6293
6294         * libc/include/stdio.h: Add gcc format attributes to printf and
6295         scanf families.
6296
6297 2007-04-09  Joel Schopp <jschopp@austin.ibm.com>
6298
6299         * libc/machine/spu/strxfrm.c: Fix strxfrm so we still copy data
6300         even if the passed in length n is shorter than the source string.
6301         This matches both the non-spu specific and the glibc strxfrm
6302         behaviour.
6303
6304 2007-04-04  Mark Mitchell  <mark@codesourcery.com>
6305
6306         * libc/stdlib/__call_atexit.c (__call_exitprocs): Handle atexit
6307         functions registering additional atexit functions.
6308
6309         * testsuite/lib/flags.exp (newlib_include_flags): Drop
6310         -I${newlib_dir}.
6311
6312 2007-04-04  Patrick Mansfield <patmans@us.ibm.com>
6313
6314         * libc/machine/spu/sys/syscall.h: New file for __send_to_ppe
6315         prototype.
6316         * libc/machine/spu/c99ppe.h: Remove static version of send_to_ppe.
6317         * libc/machine/spu/clearerr.c: Call __send_to_ppe vs send_to_ppe.
6318         * libc/machine/spu/fclose.c: Ditto.
6319         * libc/machine/spu/feof.c: Ditto.
6320         * libc/machine/spu/ferror.c: Ditto.
6321         * libc/machine/spu/fflush.c: Ditto.
6322         * libc/machine/spu/fgetc.c: Ditto.
6323         * libc/machine/spu/fgetpos.c: Ditto.
6324         * libc/machine/spu/fgets.c: Ditto.
6325         * libc/machine/spu/fileno.c: Ditto.
6326         * libc/machine/spu/fopen.c: Ditto.
6327         * libc/machine/spu/fprintf.c: Ditto.
6328         * libc/machine/spu/fputc.c: Ditto.
6329         * libc/machine/spu/fputs.c: Ditto.
6330         * libc/machine/spu/fread.c: Ditto.
6331         * libc/machine/spu/freopen.c: Ditto.
6332         * libc/machine/spu/fscanf.c: Ditto.
6333         * libc/machine/spu/fseek.c: Ditto.
6334         * libc/machine/spu/fsetpos.c: Ditto.
6335         * libc/machine/spu/ftell.c: Ditto.
6336         * libc/machine/spu/fwrite.c: Ditto.
6337         * libc/machine/spu/getc.c: Ditto.
6338         * libc/machine/spu/getchar.c: Ditto.
6339         * libc/machine/spu/gets.c: Ditto.
6340         * libc/machine/spu/perror.c: Ditto.
6341         * libc/machine/spu/printf.c: Ditto.
6342         * libc/machine/spu/putc.c: Ditto.
6343         * libc/machine/spu/putchar.c: Ditto.
6344         * libc/machine/spu/puts.c: Ditto.
6345         * libc/machine/spu/remove.c: Ditto.
6346         * libc/machine/spu/rename.c: Ditto.
6347         * libc/machine/spu/rewind.c: Ditto.
6348         * libc/machine/spu/scanf.c: Ditto.
6349         * libc/machine/spu/setbuf.c: Ditto.
6350         * libc/machine/spu/setvbuf.c: Ditto.
6351         * libc/machine/spu/snprintf.c: Ditto.
6352         * libc/machine/spu/sprintf.c: Ditto.
6353         * libc/machine/spu/sscanf.c: Ditto.
6354         * libc/machine/spu/tmpfile.c: Ditto.
6355         * libc/machine/spu/tmpnam.c: Ditto.
6356         * libc/machine/spu/ungetc.c: Ditto.
6357         * libc/machine/spu/vfprintf.c: Ditto.
6358         * libc/machine/spu/vfscanf.c: Ditto.
6359         * libc/machine/spu/vprintf.c: Ditto.
6360         * libc/machine/spu/vscanf.c: Ditto.
6361         * libc/machine/spu/vsnprintf.c: Ditto.
6362         * libc/machine/spu/vsprintf.c: Ditto.
6363         * libc/machine/spu/vsscanf.c: Ditto.
6364
6365 2007-04-04  Jeff Johnston  <jjohnstn@redhat.com>
6366
6367         * libc/argz/argz_insert.c: Add stddef.h to get ptrdiff_t type.
6368
6369 2007-04-04  Eric Blake  <ebb9@byu.net>
6370
6371         * libc/stdio/asiprintf.c (_asiprintf_r): Fix reentrancy.
6372         (asiprintf): Avoid overhead.
6373         * libc/stdio/asprintf.c (_asprintf_r): Fix reentrancy.
6374         (asprintf): Avoid overhead.
6375         * libc/stdio/diprintf.c (_diprintf_r, diprintf): New file.
6376         * libc/stdio/dprintf.c (_dprintf_r, dprintf): Use _DEFUN.
6377         * libc/stdio/fiprintf.c (_fiprintf_r): Add reentrant version.
6378         (fiprintf): Avoid overhead.
6379         * libc/stdio/fprintf.c (_fprintf_r): Add reentrant version.
6380         (fprintf): Avoid overhead.
6381         * libc/stdio/iprintf.c (_iprintf_r): Use _DEFUN.
6382         (iprintf): Avoid overhead.
6383         * libc/stdio/printf.c (_printf_r): Use _DEFUN.
6384         (printf): Avoid overhead.
6385         * libc/stdio/vasiprintf.c (vasiprintf): Reduce binary size.
6386         * libc/stdio/vasprintf.c (vasprintf): Reduce binary size.
6387         * libc/stdio/vdiprintf.c (_vdiprintf_r, vdiprintf): New file.
6388         * libc/stdio/vdprintf.c (vdprintf): Avoid overhead.
6389         * libc/stdio/vsiprintf.c (vsiprintf): Reduce binary size.
6390         * libc/stdio/vsniprintf.c (vsniprintf): Reduce binary size.
6391         * libc/stdio/vsnprintf.c (vsnprintf): Reduce binary size.
6392         * libc/stdio/vsprintf.c (vsprintf): Reduce binary size.
6393         * libc/stdio/Makefile.am (GENERAL_SOURCES): Add diprintf.c,
6394         vdiprintf.c.
6395         * libc/include/stdio.h (diprintf, _diprintf_r, vdiprintf)
6396         (_vdiprintf_r, _fiprintf_r, _vfiprintf_r): Add prototypes.
6397
6398 2007-03-30  Dave Korn  <dave.korn@artimi.com>
6399
6400         * libc/include/stdio.h (_ELIDABLE_INLINE):  New macro to conceal
6401         conflicting inline semantics between C99 and GNU89.
6402         (__sgetc_r):  Replace static inline with _ELIDABLE_INLINE to be
6403         compatible with -fkeep-inline-functions usage.
6404         (__sputc_r):  Likewise for consistency even though disabled.
6405
6406 2007-03-29  Nick Clifton  <nickc@redhat.com>
6407
6408         Reflect changes made to generic vfprintf.c:
6409         * libc/machine/powerpc/vfprintf.c (__sprint): Rename to __sprint_r
6410         and add a "struct reent *" argument.
6411         (__sbprintf): Rename to __sbprintf_r, add a "struct reent *"
6412         argument and call _VFPRINTF_R instead of VFPRINTF.
6413         (_VFPRINTF_R): Add data pointer to call to cantwrite().
6414         Fix uses of __sprint() and __sbprintf.
6415
6416 2007-03-20  Nick Clifton  <nickc@redhat.com>
6417
6418         Reflect changes made to generic vfprintf.c:
6419         * libc/machine/powerpc/vfprintf.c (__sprint): Rename to __sprint_r
6420         and add a "struct reent *" argument.
6421         (__sbprintf): Rename to __sbprintf_r, add a "struct reent *"
6422         argument and call _VFPRINTF_R instead of VFPRINTF.
6423         (_VFPRINTF_R): Add data pointer to call to cantwrite().
6424         Fix uses of __sprint() and __sbprintf.
6425
6426 2007-03-16  Charles Wilson  <cygwin@...>
6427
6428         * libc/argz/argz_insert.c: "before" pointer is
6429         invalid after *argz realloc.  Compute offset
6430         between "before" and *argz, and use it after
6431         reallocation instead.
6432
6433 2007-03-16  Eric Blake  <ebb9@byu.net>
6434
6435         * libc/stdio64/fseek064.c (_fseeko64_r): Fix reentrancy.
6436         * libc/stdio64/freopen64.c (_freopen64_r): Ditto.
6437
6438 2007-03-15  Jeff Johnston  <jjohnstn@redhat.com>
6439
6440         * configure.in: Add new --enable-newlib-reent-small option.
6441         * configure: Regenerated.
6442         * acconfig.h: Add _WANT_REENT_SMALL.
6443         * newlib.hin: Regenerated minus PACKAGE macros to add
6444         _WANT_REENT_SMALL macro.
6445         * libc/include/sys/config.h[_WANT_REENT_SMALL]: Set _REENT_SMALL
6446         if not already set.
6447         * libc/stdio/fflush.c[_REENT_SMALL]: Return immediately if
6448         there is no buffer.
6449         * libc/stdio/local.h[_REENT_SMALL]: Fix CHECK_INIT macro to
6450         use reentrant pointer passed in when resetting the file
6451         pointer to one of the std streams.
6452
6453 2007-03-15  Eric Blake  <ebb9@byu.net>
6454
6455         * libc/stdio/local.h (cantwrite, FREEUB, FREELB): Make reentrant.
6456         (__smakebuf): Rename...
6457         (__smakebuf_r): to this.
6458         * libc/stdio/fvwrite.h (__swsetup_r): Rename, from __swsetup.
6459         * libc/stdio/makebuf.c (__smakebuf): Detect failed asprint
6460         allocation, then rename...
6461         (__smakebuf_r): ...to this and fix reentrancy.
6462         * libc/stdio/wsetup.c (__swsetup): Detect failed asprintf
6463         allocation, then rename...
6464         (__swsetup_r): ...to this and fix reentrancy.
6465         * libc/stdio/fseek.c (_fseek_r): Fix reentrancy.
6466         * libc/stdio/refill.c (__srefill_r): Likewise.
6467         * libc/stdio/fclose.c (_fclose_r): Likewise.
6468         * libc/stdio/fread.c (_fread_r): Likewise.
6469         * libc/stdio/freopen.c (_freopen_r): Likewise.
6470         * libc/stdio/wbuf.c (__swbuf_r): Likewise.
6471         * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.
6472         * libc/stdio/fvwrite.c (__sfvwrite_r): Set errno properly on
6473         failed asprintf allocation, and fix reentrancy.
6474         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Report overflow,
6475         as required by POSIX.
6476         * libc/stdio/sniprintf.c (sniprintf, _sniprintf_r): Likewise.
6477         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Likewise.
6478         * libc/stdio/vsniprintf.c (vsniprintf, _vsniprintf_r): Likewise.
6479
6480 2007-03-12  Eric Blake  <ebb9@byu.net>
6481
6482         * libc/stdio/fvwrite.c (__sfvwrite_r): Fix reentrancy.
6483         * libc/stdio/vasprintf.c (vasprintf, _vasprintf_r): Pass failed
6484         allocation to caller.
6485         * libc/stdio/asprintf.c (_asprintf_r, asprintf): Likewise.
6486         * libc/stdio/asiprintf.c (_asiprintf_r, asiprintf): Likewise.
6487         * libc/stdio/vasiprintf.c (vasiprintf, _vasiprintf_r): Likewise.
6488
6489 2007-02-23  Jeff Johnston  <jjohnstn@redhat.com>
6490
6491         * libm/math/w_pow.c: Fix typo in documentation comment.
6492
6493 2007-02-21  Patrick Mansfield <patmans@us.ibm.com>
6494
6495         * libc/reent/timer.c: Removed (split into two new files).
6496         * libc/reent/timesr.c: New file for _times_r.
6497         * libc/reent/gettimeofdayr.c: New file out _gettimeofday_r.
6498         * reent/Makefile.in: Remove timer.c, add timesr.c and
6499         gettimeofdayr.c.
6500         * libc/reent/Makefile.am: Regenerate.
6501
6502 2007-02-20  Patrick Mansfield <patmans@us.ibm.com>
6503
6504         * configure.host: Build SPU with default_newlib_atexit_dynamic_alloc="no".
6505
6506 2007-02-20  Kazunori Asayama <asayama@sm.sony.co.jp>
6507
6508         * libc/machine/spu/Makefile.am: Add new objects.
6509         * libc/machine/spu/Makefile.in: Regenerated.
6510         * libc/machine/spu/fiprintf.c: New file. Add implementation of
6511         integer-only version.
6512         * libc/machine/spu/fiscanf.c: Ditto.
6513         * libc/machine/spu/iprintf.c: Ditto.
6514         * libc/machine/spu/iscanf.c: Ditto.
6515         * libc/machine/spu/siprintf.c: Ditto.
6516         * libc/machine/spu/siscanf.c: Ditto.
6517         * libc/machine/spu/sniprintf.c: Ditto.
6518         * libc/machine/spu/vfiprintf.c: Ditto.
6519         * libc/machine/spu/vfiscanf.c: Ditto.
6520         * libc/machine/spu/viprintf.c: Ditto.
6521         * libc/machine/spu/viscanf.c: Ditto.
6522         * libc/machine/spu/vsiprintf.c: Ditto.
6523         * libc/machine/spu/vsiscanf.c: Ditto.
6524         * libc/machine/spu/vsniprintf.c: Ditto.
6525         * libc/machine/spu/fprintf.c: Add support for integer-only
6526         version.
6527         * libc/machine/spu/fscanf.c: Ditto.
6528         * libc/machine/spu/printf.c: Ditto.
6529         * libc/machine/spu/scanf.c: Ditto.
6530         * libc/machine/spu/snprintf.c: Ditto.
6531         * libc/machine/spu/sprintf.c: Ditto.
6532         * libc/machine/spu/sscanf.c: Ditto.
6533         * libc/machine/spu/vfprintf.c: Ditto.
6534         * libc/machine/spu/vfscanf.c: Ditto.
6535         * libc/machine/spu/vprintf.c: Ditto.
6536         * libc/machine/spu/vscanf.c: Ditto.
6537         * libc/machine/spu/vsnprintf.c: Ditto.
6538         * libc/machine/spu/vsprintf.c: Ditto.
6539         * libc/machine/spu/vsscanf.c: Ditto.
6540
6541 2007-02-20  Kazunori Asayama <asayama@sm.sony.co.jp>
6542
6543         * libc/include/stdio.h: Add declaration for vsiprintf.
6544
6545 2007-02-14  Patrick Mansfield <patmans@us.ibm.com>
6546
6547         Add a floating point environment for SPU (cell):
6548
6549         * configure.host: add libm_machine_dir=spu.
6550         * libm/machine/configure: Add spu.
6551         * libm/machine/configure.in: regenerated with spu added.
6552         * libc/machine/spu/include/fenv.h: New file.
6553         * libc/machine/spu/sys/fenv.h: Ditto.
6554         * libm/machine/spu/Makefile.am: Ditto.
6555         * libm/machine/spu/Makefile.in: Ditto.
6556         * libm/machine/spu/aclocal.m4: Ditto.
6557         * libm/machine/spu/configure: Ditto.
6558         * libm/machine/spu/configure.in: Ditto.
6559         * libm/machine/spu/fe_dfl_env.c: Ditto.
6560         * libm/machine/spu/feclearexcept.c: Ditto.
6561         * libm/machine/spu/fegetenv.c: Ditto.
6562         * libm/machine/spu/fegetexceptflag.c: Ditto.
6563         * libm/machine/spu/fegetround.c: Ditto.
6564         * libm/machine/spu/feholdexcept.c: Ditto.
6565         * libm/machine/spu/feraiseexcept.c: Ditto.
6566         * libm/machine/spu/fesetenv.c: Ditto.
6567         * libm/machine/spu/fesetexceptflag.c: Ditto.
6568         * libm/machine/spu/fesetround.c: Ditto.
6569         * libm/machine/spu/fetestexcept.c: Ditto.
6570         * libm/machine/spu/feupdateenv.c: Ditto.
6571         * libm/machine/spu/headers/feclearexcept.h: Ditto.
6572         * libm/machine/spu/headers/fefpscr.h: Ditto.
6573         * libm/machine/spu/headers/fegetenv.h: Ditto.
6574         * libm/machine/spu/headers/fegetexceptflag.h: Ditto.
6575         * libm/machine/spu/headers/fegetround.h: Ditto.
6576         * libm/machine/spu/headers/feholdexcept.h: Ditto.
6577         * libm/machine/spu/headers/feraiseexcept.h: Ditto.
6578         * libm/machine/spu/headers/fesetenv.h: Ditto.
6579         * libm/machine/spu/headers/fesetexceptflag.h: Ditto.
6580         * libm/machine/spu/headers/fesetround.h: Ditto.
6581         * libm/machine/spu/headers/fetestexcept.h: Ditto.
6582         * libm/machine/spu/headers/feupdateenv.h: Ditto.
6583
6584 2007-02-14  Corinna Vinschen  <corinna@vinschen.de>
6585
6586         * libc/include/sys/features.h: Add _POSIX_MESSAGE_PASSING for
6587         Cygwin.
6588
6589 2007-02-08  Corinna Vinschen  <corinna@vinschen.de>
6590
6591         * libc/include/sys/features.h: Add _POSIX_SHARED_MEMORY_OBJECTS for
6592         Cygwin.  Fix value of _POSIX_SEMAPHORES.  Fix formatting.
6593
6594 2007-02-07  Corinna Vinschen  <corinna@vinschen.de>
6595
6596         * libc/include/sys/features.h: Add definition of all supported
6597         _POSIX_xxx values for Cygwin.
6598         * libc/include/sys/types.h (pthread_rwlock_t): Omit definition
6599         on Cygwin.
6600         (pthread_rwlockattr_t): Ditto.
6601         * libc/include/sys/unistd.h: Define all _SC_xxx values as
6602         required by SUSv3.  Unify formatting.
6603
6604 2007-02-02  Ralf Corsépius <ralf.corsepius@rtems.org>
6605
6606         * libc/include/sys/errno.h: Add ECANCELED.
6607
6608 2007-02-01  Joel Schopp <jschopp@austin.ibm.com>
6609             Kazunori Asayama <asayama@sm.sony.co.jp>
6610
6611         * libc/machine/spu/Makefile.am: Add objects.
6612         * libc/machine/spu/Makefile.in: Regenerated.
6613         * libc/machine/spu/vsscanf.c: New file. Add a stdio function
6614         implementation.
6615         * libc/machine/spu/snprintf.c: Ditto.
6616         * libc/machine/spu/sprintf.c: Ditto.
6617         * libc/machine/spu/sscanf.c: Ditto.
6618         * libc/machine/spu/remove.c: Ditto.
6619         * libc/machine/spu/rename.c: Ditto.
6620         * libc/machine/spu/tmpnam.c: Ditto.
6621         * libc/machine/spu/vsnprintf.c: Add initialization routine of
6622         stdio stuffs.
6623         * libc/machine/spu/vsprintf.c: Ditto.
6624
6625 2007-02-01  Joel Schopp <jschopp@austin.ibm.com>
6626             Kazunori Asayama <asayama@sm.sony.co.jp>
6627
6628         * configure.host: Enable SPU specific stdio directory.
6629         * libc/machine/spu/Makefile.am: Add objects.
6630         * libc/machine/spu/Makefile.in: Regenerated.
6631         * libc/machine/spu/c99ppe.h: Add macros and function
6632         declarations to initialize SPU specific stdio stuffs.
6633         * libc/machine/spu/stdio.c: Add functions to manage Cell SPU
6634         specific FILE structures.
6635         * libc/machine/spu/perror.c: Add initialization routine of
6636         stdio stuffs.
6637         * libc/machine/spu/printf.c: Ditto.
6638         * libc/machine/spu/putchar.c: Ditto.
6639         * libc/machine/spu/puts.c: Ditto.
6640         * libc/machine/spu/vprintf.c: Ditto.
6641         * libc/machine/spu/clearerr.c: New file. Add a stdio function
6642         implementation.
6643         * libc/machine/spu/feof.c: Ditto.
6644         * libc/machine/spu/ferror.c: Ditto.
6645         * libc/machine/spu/fileno.c: Ditto.
6646         * libc/machine/spu/fopen.c: Ditto.
6647         * libc/machine/spu/fclose.c: Ditto.
6648         * libc/machine/spu/freopen.c: Ditto.
6649         * libc/machine/spu/fflush.c: Ditto.
6650         * libc/machine/spu/fseek.c: Ditto.
6651         * libc/machine/spu/ftell.c: Ditto.
6652         * libc/machine/spu/rewind.c: Ditto.
6653         * libc/machine/spu/fgetpos.c: Ditto.
6654         * libc/machine/spu/fsetpos.c: Ditto.
6655         * libc/machine/spu/fread.c: Ditto.
6656         * libc/machine/spu/fwrite.c: Ditto.
6657         * libc/machine/spu/getc.c: Ditto.
6658         * libc/machine/spu/getchar.c: Ditto.
6659         * libc/machine/spu/gets.c: Ditto.
6660         * libc/machine/spu/fgetc.c: Ditto.
6661         * libc/machine/spu/fgets.c: Ditto.
6662         * libc/machine/spu/ungetc.c: Ditto.
6663         * libc/machine/spu/putc.c: Ditto.
6664         * libc/machine/spu/fputc.c: Ditto.
6665         * libc/machine/spu/fputs.c: Ditto.
6666         * libc/machine/spu/vfprintf.c: Ditto.
6667         * libc/machine/spu/vfscanf.c: Ditto.
6668         * libc/machine/spu/fprintf.c: Ditto.
6669         * libc/machine/spu/fscanf.c: Ditto.
6670         * libc/machine/spu/scanf.c: Ditto.
6671         * libc/machine/spu/vscanf.c: Ditto.
6672         * libc/machine/spu/setbuf.c: Ditto.
6673         * libc/machine/spu/setvbuf.c: Ditto.
6674         * libc/machine/spu/tmpfile.c: Ditto.
6675
6676 2007-02-01  Jeff Johnston  <jjohnstn@redhat.com>
6677
6678         * libc/include/sys/config.h[__SPU__]: Define __CUSTOM_FILE_IO__.
6679         * libc/include/stdio.h[!__CUSTOM_FILE_IO__]: Add flag check
6680         around stdio macros that manipulate fields in the normal file
6681         structure.
6682         * libc/include/sys/reent.h[__CUSTOM_FILE_IO__]: Include
6683         <sys/custom_file.h> to define custom FILE structure.
6684         * libc/include/sys/custom_file.h: New default header file
6685         that generates error if not overridden when __CUSTOM_FILE_IO__ set.
6686         * libc/machine/spu/sys/custom_file.h: New file.
6687
6688 2007-01-31  Kazunori Asayama <asayama@sm.sony.co.jp>
6689
6690         * configure.host: Define stdio directory as a variable.
6691         * libc/Makefile.am: Define stdio related names
6692         as macros.
6693         * libc/configure.in: Add detection routine of stdio directory.
6694         * libc/Makefile.in: Regenerated.
6695         * libc/configure: Ditto.
6696         * libc/argz/Makefile.in: Ditto.
6697         * libc/ctype/Makefile.in: Ditto.
6698         * libc/errno/Makefile.in: Ditto.
6699         * libc/iconv/Makefile.in: Ditto.
6700         * libc/iconv/ccs/Makefile.in: Ditto.
6701         * libc/iconv/ccs/binary/Makefile.in: Ditto.
6702         * libc/iconv/ces/Makefile.in: Ditto.
6703         * libc/iconv/lib/Makefile.in: Ditto.
6704         * libc/locale/Makefile.in: Ditto.
6705         * libc/misc/Makefile.in: Ditto.
6706         * libc/posix/Makefile.in: Ditto.
6707         * libc/reent/Makefile.in: Ditto.
6708         * libc/search/Makefile.in: Ditto.
6709         * libc/signal/Makefile.in: Ditto.
6710         * libc/stdio/Makefile.in: Ditto.
6711         * libc/stdio64/Makefile.in: Ditto.
6712         * libc/stdlib/Makefile.in: Ditto.
6713         * libc/string/Makefile.in: Ditto.
6714         * libc/syscalls/Makefile.in: Ditto.
6715         * libc/time/Makefile.in: Ditto.
6716         * libc/unix/Makefile.in: Ditto.
6717
6718 2007-01-30  Ben Elliston  <bje@au.ibm.com>
6719
6720         * libc/machine/spu/vsnprintf.c (c99_vsnprintf_t): Const-qualify
6721         fmt member.
6722         * libc/machine/spu/printf.c (c99_printf_t): Likewise.
6723         (printf): Pass fmt to va_start to suppress a warning.
6724
6725         * libc/search/hash.c (init_hash): Make `info' parameter const.
6726
6727 2007-01-19  Kazunori Asayama <asayama@sm.sony.co.jp>
6728
6729         * libc/machine/spu/c99ppe.h: Replace vector with __vector.
6730         * libc/machine/spu/vec_literal.h: Ditto.
6731         * libc/machine/spu/strncmp.c: Ditto.
6732
6733 2007-01-15  Joseph Myers  <joseph@codesourcery.com>
6734             Kazu Hirata  <kazu@codesourcery.com>
6735
6736         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Add support
6737         for E500V1 and E500V2.
6738
6739 2007-01-11  Jeff Johnston  <jjohnstn@redhat.com>
6740
6741         * libm/configure.in: Always configure machine directory.
6742         * libm/Makefile.am: Make machine subdirectory part of SUBDIRS
6743         unconditionally.
6744         * libm/configure: Regenerated.
6745         * libm/Makefile.in: Ditto.
6746         * libm/*/Makefile.in: Ditto.
6747
6748 2007-01-05  Brian Ford  <Brian.Ford@FlightSafety.com>
6749
6750         * configure.host (*-*-cygwin*): Define HAVE_BLKSIZE.
6751
6752 2007-01-02  Ben Elliston  <bje@au.ibm.com>
6753
6754         * doc/makedoc.c: Include <stdlib.h>.
6755         (malloc, realloc): Remove extern declarations.
6756
6757 2006-12-18  Jeff Johnston  <jjohnstn@redhat.com>
6758
6759         * NEWS: Update with 1.15.0 info.
6760         * README: Ditto.
6761         * acinclude.m4: Change version number to 1.15.0.
6762         * aclocal.m4: Regenerated.
6763         * configure: Ditto.
6764         * doc/aclocal.m4: Ditto.
6765         * doc/configure: Ditto.
6766         * libc/*/aclocal.m4: Ditto.
6767         * libc/*/configure: Ditto.
6768         * libc/libc.texinfo: Ditto.
6769         * libm/*/aclocal.m4: Ditto.
6770         * libm/*/configure: Ditto.
6771         * libm/libm.texinfo: Ditto.
6772         * libc/sys/linux/shared.ld: Add VERS_1.15.
6773
6774 2006-12-18  Kazu Hirata  <kazu@codesourcery.com>
6775
6776         Merge from newlib-csl-20060320-branch:
6777         2006-12-01  Nathan Sidwell  <nathan@codesourcery.com>
6778                     Kazu Hirata  <kazu@codesourcery.com>
6779
6780         * configure.host: Recognize fido.
6781
6782 2006-12-18  Joel Schopp <jschopp@austin.ibm.com>
6783
6784         * libc/machine/spu/c99ppe.h: New file
6785         * libc/machine/spu/perror.c: New file to override libc/stdio version.
6786         * libc/machine/spu/printf.c: New file
6787         * libc/machine/spu/putchar.c: New file
6788         * libc/machine/spu/puts.c: New file
6789         * libc/machine/spu/vprintf.c: New file
6790         * libc/machine/spu/vsnprintf.c: New file
6791         * libc/machine/spu/vsprintf.c: New file
6792         * libc/machine/spu/Makefile.am: Add new targets.
6793         * libc/machine/spu/Makefile.in: Regenerated.
6794
6795 2006-12-18  Jeff Johnston  <jjohnstn@redhat.com>
6796
6797         * aclocal.m4 */aclocal.m4: Regenerated using aclocal 1.9.6.
6798         * Makefile.in */Makefile.in: Regenerated using automake 1.9.6.
6799
6800 2006-12-18  Jeff Johnston  <jjohnstn@redhat.com>
6801
6802         * libc/stdlib/mallocr.c (malloc_extend_top): Add patch from
6803         2.6.5 version of Doug Lea's malloc which is the basis of
6804         this code.
6805
6806 2006-12-18  Kazunori Asayama <asayama@sm.sony.co.jp>
6807
6808         * libc/include/machine/setjmp.h[__SPU__]: Replace vector with __vector.
6809
6810 2006-12-14  Jeff Johnston  <jjohnstn@redhat.com>
6811             Eric Blake  <ebb9@byu.net>
6812
6813         * libc/stdio/fflush.c (fflush): On seekable streams, always flush
6814         read but unused data.
6815         * libc/stdio/fclose.c (_fclose_r): Always flush streams, since
6816         even read streams may have side effects that must happen.
6817
6818 2006-12-13  Joel Schopp <jschopp@austin.ibm.com>
6819
6820         * libc/machine/spu/setjmp.S: Fix to handle registers past 115
6821         correctly.
6822
6823 2006-12-13  Joel Schopp <jschopp@austin.ibm.com>
6824
6825         * libc/include/alloca.h: Add undef alloca to work with xlc.
6826
6827 2006-12-12  Joel Schopp <jschopp@austin.ibm.com>
6828
6829         * libc/include/machine/setjmp.h[__SPU__]: Redefine _JBTYPE for
6830         cell spu.
6831
6832 2006-12-04  Kazunori Asayama  <asayama@sm.sony.co.jp>
6833
6834         * libc/machine/spu/strncpy.c: Add padding.
6835
6836 2006-12-04  Kazunori Asayama  <asayama@sm.sony.co.jp>
6837
6838         * testsuite/newlib.string/tstring.c:
6839
6840 2006-12-01  Kazunori Asayama  <asayama@sm.sony.co.jp>
6841
6842         * libc/machine/spu/strchr.c: Fix mask for misaligned string.
6843         * libc/machine/spu/strrchr.c: Ditto.
6844
6845 2006-11-30  Lev Bishop  <lev.bishop@gmail.com>
6846
6847         * libc/include/math.h: Allow C99 functions/macros to be
6848         defined for C++ even when __STRICT_ANSI__.
6849
6850 2006-11-29  Jeff Johnston  <jjohnstn@redhat.com>
6851
6852         * libc/stdio/makebuf.c (__smakebuf): If dealing with
6853         an asprintf-family buffer, make the default initial size 64.
6854
6855 2006-11-29  Eric Blake  <ebb9@byu.net>
6856
6857         * libc/stdio/fvwrite.c (__sfvwrite_r): Avoid off-by-one error in
6858         asprintf, as well as quadratic realloc behavior.
6859
6860 2006-11-29  Kazunori Asayama  <asayama@sm.sony.co.jpi
6861
6862         * libc/machine/spu/memset.c: Fix type of explicit cast.
6863         * libc/machine/spu/strncmp.c: Add explicit cast.
6864         * libc/machine/spu/strrchr.c: Ditto.
6865         * libc/machine/spu/strspn.c: Ditto.
6866
6867 2006-11-22  Luca Barbato  <lu_zero@gentoo.org>
6868
6869         * libc/machine/spu/memcpy.c: Use spu_splats, explicit cast.
6870         * libc/machine/spu/memmove.c: Use spu_splats, explicit cast.
6871         * libc/machine/spu/memset.c: Use spu_splats, remove apple-cast.
6872         * libc/machine/spu/strchr.c: Use spu_splats, remove apple-cast.
6873         * libc/machine/spu/strncat.c: Explicit cast.
6874         * libc/machine/spu/strncmp.c: Use spu_splats.
6875         * libc/machine/spu/strncpy.c: Explicit cast.
6876         * libc/machine/spu/strrchr.c: Use spu_splats.
6877         * libc/machine/spu/strspn.c: Use spu_splats.
6878
6879 2006-11-15  Till Straumann  <strauman@slac.stanford.edu>
6880
6881         * libc/time/tzset_r.c (_tzset_r): Initialize local variable.
6882
6883 2006-11-14  Eric Blake  <ebb9@byu.net>
6884
6885         * libc/stdio/vfprintf.c (_vfprintf_r): Support ' flag.
6886         (chclass): ' is a flag.  j, t, and z are modifiers.
6887
6888 2006-11-08  Jie Zhang  <jie.zhang@analog.com>
6889
6890         * configure.host: Add support for bfin.
6891         * libc/include/machine/ieeefp.h: Define __IEEE_LITTLE_ENDIAN for bfin.
6892         * libc/include/machine/setjmp.h: Define _JBLEN for bfin.
6893         * libc/machine/bfin/aclocal.m4: Generate.
6894         * libc/machine/bfin/configure.in: New.
6895         * libc/machine/bfin/configure: Generate.
6896         * libc/machine/bfin/Makefile.am: New.
6897         * libc/machine/bfin/Makefile.in: Generate.
6898         * libc/machine/bfin/setjmp.S: New.
6899         * libc/machine/bfin/longjmp.S: New.
6900         * libc/machine/configure.in: Add bfin support.
6901         * libc/machine/configure: Generate.
6902
6903 2006-11-07  Corinna Vinschen  <corinna@vinschen.de>
6904
6905         * libc/include/sys/unistd.h (_SC_STREAM_MAX): Define on Cygwin.
6906         (_PC_FILESIZEBITS): Add definition.
6907         (_PC_2_SYMLINKS): Ditto.
6908         (_PC_SYMLINK_MAX): Ditto.
6909
6910 2006-10-27  Joel Schopp  <jschopp@austin.ibm.com>
6911
6912         * libc/machine/spu/memcpy.c: Override generic function with vectorized
6913         version optimized for the cell spu.
6914         * libc/machine/spu/memmove.c: Ditto.
6915         * libc/machine/spu/memset.c: Ditto.
6916         * libc/machine/spu/strcat.c: Ditto.
6917         * libc/machine/spu/strchr.c: Ditto.
6918         * libc/machine/spu/strcmp.c: Ditto.
6919         * libc/machine/spu/strcpy.c: Ditto.
6920         * libc/machine/spu/strcspn.c: Ditto.
6921         * libc/machine/spu/strlen.c: Ditto.
6922         * libc/machine/spu/strncat.c: Ditto.
6923         * libc/machine/spu/strncmp.c: Ditto.
6924         * libc/machine/spu/strncpy.c: Ditto.
6925         * libc/machine/spu/strpbrk.c: Ditto.
6926         * libc/machine/spu/strrchr.c: Ditto.
6927         * libc/machine/spu/strspn.c: Ditto.
6928         * libc/machine/spu/strxfrm.c: Ditto.
6929         * libc/machine/spu/vec_literal.h: Add abstraction of vector literals,
6930         removing altivec style initializers.
6931         * libc/machine/spu/Makefile.am: Add new files to list so they build
6932         * libc/machine/spu/Makefile.in: Regenerate from new Makefile.am
6933
6934 2006-10-27  Jeff Johnston  <jjohnstn@redhat.com>
6935
6936         * README: Add a brief section on how to regenerate
6937         configuration files in newlib.
6938
6939 2006-10-25  Vladimir Prus  <vladimir@codesourcery.com>
6940
6941         * libc/include/math.h: (exception): Add a comment
6942         telling fixincludes that we handle C vs. C++ issue.
6943
6944 2006-10-11  Yang Tse  <yangsita@gmail.com>
6945
6946         * libc/include/machine/setjmp.h: Use __extension__ keyword for gcc's
6947         braced-groups.
6948
6949 2006-10-11  Corinna Vinschen  <corinna@vinschen.de>
6950
6951         * libc/reent/reeent.c (_reclaim_reent): Free _REENT_MP_RESULT.
6952
6953 2006-09-26  Jeff Johnston  <jjohnstn@redhat.com>
6954
6955         * libc/include/stdio.h[_REENT_SMALL]: Do not allow macros
6956         for clearerr, feof, or fileno.
6957         * libc/include/sys/reent.h[_REENT_SMALL](struct _reent): Change
6958         the dummy std stream scheme to use pointers to const external
6959         fake files, one for each standard stream.
6960         * libc/stdio/local.h (CHECK_INIT): Change to take a file pointer
6961         argument.  For _REENT_SMALL, reset the file pointer if it
6962         matches one of the fake std stream pointers.
6963         * libc/stdio/clearerr.c: Fix CHECK_INIT macro to add file pointer
6964         argument.
6965         * libc/stdio/fclose.c: Ditto.
6966         * libc/stdio/feof.c: Ditto.
6967         * libc/stdio/ferror.c: Ditto.
6968         * libc/stdio/fflush.c: Ditto.
6969         * libc/stdio/fgetc.c: Ditto.
6970         * libc/stdio/fgets.c: Ditto.
6971         * libc/stdio/fileno.c: Ditto.
6972         * libc/stdio/findfp.c: Ditto.
6973         * libc/stdio/fputc.c: Ditto.
6974         * libc/stdio/fputs.c: Ditto.
6975         * libc/stdio/fread.c: Ditto.
6976         * libc/stdio/freopen.c: Ditto.
6977         * libc/stdio/fseek.c: Ditto.
6978         * libc/stdio/ftell.c: Ditto.
6979         * libc/stdio/fwrite.c: Ditto.
6980         * libc/stdio/getc.c: Ditto.
6981         * libc/stdio/getdelim.c: Ditto.
6982         * libc/stdio/putc.c: Ditto.
6983         * libc/stdio/refill.c: Ditto.
6984         * libc/stdio/setvbuf.c: Ditto.
6985         * libc/stdio/ungetc.c: Ditto.
6986         * libc/stdio/vfprintf.c: Ditto.
6987         * libc/stdio/vfscanf.c: Ditto.
6988         * libc/stdio/wbuf.c: Ditto.: Ditto.
6989         * libc/stdio/wsetup.c: Ditto.
6990         * libc/stdio64/freopen64.c: Ditto.
6991         * libc/stdio64/fseeko64.c: Ditto.
6992         * libc/stdio64/ftello64.c: Ditto.
6993         * libc/machine/powerpc/vfprintf.c: Ditto.
6994         * libc/machine/powerpc/vfscanf.c: Ditto.
6995
6996 2006-09-22  Paul Brook  <paul@codesourcery.com>
6997
6998         * libc/include/sys/reent.h: Define and use __reent_assert.
6999
7000 2006-09-13  Joel Sherrill <joel@oarcorp.com>
7001
7002         * libc/include/pthread.h: Add pthread barriers,
7003         rwlocks, and spinlocks.  Change const to
7004         _CONST and prefix parameter names with
7005         an underscore.
7006         * libc/include/sys/types.h: Add id and attribute
7007         types for barriers, wrlocks, and spinlocks.
7008         * libc/include/sys/features.h: Enable barriers,
7009         wrlocks, and spinlocks for RTEMS.
7010
7011 2006-09-13  Patrick Mansfield <patmans@us.ibm.com>
7012
7013         * libc/include/math.h: Remove _CONST from _LIB_VERSION, as it is
7014         supposed to be writable.
7015         * libm/common/s_lib_ver.c: Ditto.
7016
7017 2006-09-12  Paul Brook  <paul@codesourcery.com>
7018
7019         * libc/stdlib/rand.c (srand): Add _REENT_CHECK_RAND48.
7020
7021 2006-09-07  Masaki Muranaka  <monaka@monami-software.com>
7022
7023
7024         * libc/machine/xstormy16/Makefile.am:
7025         Add $(lpfx) prefix to LIBADD objects.
7026         lib_a_DEPENDENCIES uses the value of lib_a_LIBADD.
7027         * libc/machine/xstormy16/Makefile.in: Regenerated.
7028
7029 2006-09-06  Eric Blake  <ebb9@byu.net>
7030
7031         * libc/stdio/vfprintf.c (_vfprintf_r, get_arg): Add 'hh', 'j',
7032         't', and 'z' modifiers.
7033
7034 2006-09-01  Kazu Hirata  <kazu@codesourcery.com>
7035
7036         Merge from newlib-csl-20060320-branch:
7037         2006-05-22  Sandra Loosemore <sandra@codesourcery.com>
7038
7039         * configure.host: Tell it we have _rename and _system when
7040         building m68k-unknown-elf.
7041
7042 2006-08-29  Paul Brook  <paul@codesourcery.com>
7043
7044         * libc/include/sys/config.h: Define _REENT_SMALL for Thumb-2.
7045
7046 2006-08-27  Joel Sherrill <joel.sherrill@OARcorp.com>
7047
7048         * libc/sys/rtems/machine/sys/param.h: Conditionalize definition of
7049         BLKDEV_IOSIZE and MAXPHYS so it will fit into small memory targets.
7050         This is needed to build all AVR and H8300 RTEMS multilib variants.
7051
7052 2006-08-23  Kazunori Asayama  <asayama@sm.sony.co.jp>
7053
7054         * libc/machine/configure.in: Add configuration for SPU.
7055         * libc/machine/configure: Regenerated.
7056         * libc/machine/spu/memcpy.c: Include string.h.
7057
7058 2006-08-22  Eric Blake  <ebb9@byu.net>
7059
7060         * libc/posix/popen.c (popen): Don't close output end of pipe in
7061         child if stdout was closed on entry.
7062         [HAVE_FCNTL]: In parent, mark file as close-on-exec, per POSIX.
7063
7064 2006-08-19  Ramana Radhakrishnan  <ramana.r@gmail.com>
7065
7066         * sys/types.h: Correct syntax error caused by missing '\' on #ifdef
7067         line.
7068
7069 2006-08-17  Brian Ford  <Brian.Ford@FlightSafety.com>
7070
7071         * libc/time/gmtime.c: Correct man page; clock is not a
7072         local time and no conversion occurs.
7073
7074 2006-08-16  Joel Schopp  <jschopp@austin.ibm.com>
7075
7076         * configure.host (newlib_cflags) [spu]: Add special compiler
7077         options to reduce size.
7078
7079 2006-08-16  Joel Schopp  <jschopp@austin.ibm.com>
7080
7081         * configure.host: Add spu support.
7082         * libc/include/stdint.h: Ditto.
7083         * libc/include/machine/ieeefp.h: Ditto.
7084         * libc/include/machine/setjmp.h: Ditto.
7085         * libc/include/sys/config.h: Ditto.
7086         * libc/include/sys/types.h: Ditto.
7087         * libc/machine/spu/Makefile.am: New file.
7088         * libc/machine/spu/Makefile.in: Ditto.
7089         * libc/machine/spu/aclocal.m4: Ditto.
7090         * libc/machine/spu/configure: Ditto.
7091         * libc/machine/spu/configure.in: Ditto.
7092         * libc/machine/spu/memcpy.c: Ditto.
7093         * libc/machine/spu/setjmp.S: Ditto.
7094
7095 2006-08-03  J"orn Rennecke  <joern.rennecke@st.com>
7096
7097         * dtoa.c (dtoa_r): Handle the denormalized _DOUBLE_IS_32BITS case
7098         properly.
7099
7100 2006-08-01  Jeff Johnston  <jjohnstn@redhat.com>
7101
7102         * libc/Makefile.am: Add libc_TEXINFOS dependency on
7103         generated .texi files.
7104         * libm/Makefile.am: Add libm_TEXINFOS dependency on
7105         generated .texi files.
7106         * libc/Makefile.in: Regenerated.
7107         * libm/Makefile.in: Ditto.
7108
7109 2006-08-01  Thiemo Seufer  <ths@mips.com>
7110             Nigel Stephens  <nigel@mips.com>
7111
7112         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): For MIPS
7113         define this to force _impure_ptr to live in the .sdata section.
7114
7115 2006-07-31  Jeff Johnston  <jjohnstn@redhat.com>
7116
7117         * acinclude.m4: Check for readelf tool.
7118         * configure.in: Use ${READELF} instead of hard-coding.
7119         * Regenerate all aclocal.m4, Makefile.in, and configure files.
7120
7121 2006-07-31  Jeff Johnston  <jjohnstn@redhat.com>
7122
7123         * libc/sys/linux/mmap.c: Remove include of sys/mman.h
7124         to avoid conflict with newer glibc's revision of mremap.
7125
7126 2006-07-05  Jeff Johnston  <jjohnstn@redhat.com>
7127
7128         * libc/stdlib/mprec.h [_DOUBLE_IS_32BITS]: Turn off C99 hex
7129         floating-point format support.  Also redefine
7130         dword0 and dword1 macros.
7131         * libc/stdlib/strtod.c: Add checks for _DOUBLE_IS_32BITS
7132         to prevent setting dword1 which is an rvalue only.
7133
7134 2006-06-22  Jeff Johnston  <jjohnstn@redhat.com>
7135
7136         * libc/stdlib/Makefile.am: Add new gdtoa routines.
7137         * libc/stdlib/Makefile.in: Regenerated.
7138         * libc/stdlib/gd_qnan.h: New file.
7139         * libc/stdlib/gdtoa-gethex.c: Ditto.
7140         * libc/stdlib/gdtoa-hexnan.c: Ditto.
7141         * libc/stdlib/gdtoa.h: Ditto.
7142         * libc/stdlib/mprec.c: Add new helper routines needed by
7143         the new gdtoa code.
7144         * libc/stdlib/mprec.h: Integrate some defines and prototypes
7145         used by gdtoa routines here.
7146         * libc/stdlib/strtod.c: Rebased on David M. Gay's gdtoa-strtod.c
7147         which adds C99 support such as nan, inf, and hexadecimal input
7148         format.
7149
7150 2006-06-15  Corinna Vinschen  <corinna@vinschen.de>
7151
7152         * libc/include/stdio.h (__sgetc_r): Fix typo.
7153         * libc/stdio/fread.c (_fread_r): Convert crlf calls to crlf_r.
7154         * libc/stdio/rget.c (__srbuf): Reinstantiate.
7155         * libc/stdio/wbuf.c (__swbuf): Ditto.
7156
7157 2006-06-14  Jeff Johnston  <jjohnstn@redhat.com>
7158
7159         * libc/include/stdio.h: Add new reentrant I/O prototypes for
7160         read/write functions.  Change getc/putc macros to have reentrant underlying
7161         macros/functions.  This includes __sgetc_raw_r, __sgetc_r, and __sputc_r.
7162         * libc/stdio/fgetc.c: Fix and/or add reentrant version to call
7163         new reentrant I/O functions/macros for reading/writing.
7164         * libc/stdio/fgets.c: Ditto.
7165         * libc/stdio/fputc.c: Ditto.
7166         * libc/stdio/fputs.c: Ditto.
7167         * libc/stdio/fread.c: Ditto.
7168         * libc/stdio/fseek.c: Ditto.
7169         * libc/stdio64/fseeko64.c: Ditto.
7170         * libc/stdio/fwrite.c: Ditto.
7171         * libc/stdio/getc.c: Ditto.
7172         * libc/stdio/getc_u.c: Ditto.
7173         * libc/stdio/getchar.c: Ditto.
7174         * libc/stdio/getchar_u.c: Ditto.
7175         * libc/stdio/putc.c: Ditto.
7176         * libc/stdio/putc_u.c: Ditto.
7177         * libc/stdio/putchar.c: Ditto.
7178         * libc/stdio/puts.c: Ditto.
7179         * libc/stdio/vfprintf.c: Ditto.
7180         * libc/stdio/vfscanf.c: Ditto.
7181         * libc/stdio/fvwrite.c: Change __sfvwrite into reentrant __sfvwrite_r.
7182         Change all previous callers of __sfvwrite.  Set errno to EBADF and
7183         set error flag on if attempt is made to write to file that does not
7184         allow writing.
7185         * libc/stdio/fvwrite.h: Fix new reentrant prototypes.
7186         * libc/stdio/local.h: Ditto.
7187         * libc/stdio/refill.c: Turn __srefill into reentrant __srefill_r.
7188         Set errno to EBADF and the error flag on if attempt is made to
7189         read unreadable file.  Change all previous callers of __srefill.
7190         * libc/stdio/rget.c
7191         * libc/stdio/wbuf.c: Turn __swbuf into reentrant __swbuf_r.  Change
7192         all previous callers of __swbuf.
7193         * libc/sys/linux/machine/i386/huge_val.h: Ifdef out file contents since
7194         huge value macros are already defined correctly for i386 by <math.h>.
7195
7196 2006-06-13  Sandra Loosemore <sandra@codesourcery.com>
7197
7198         * /libc/sys/arm/syscalls.c (_unlink, isatty, _system, _rename):
7199         Make them do something useful in the ARM_RDI_MONITOR case.
7200
7201 2006-06-07  Fred Fish  <fnf@specifix.com>
7202
7203         * libc/search/hash_bigkey.c (MIN,MAX): Remove
7204         defines that are already supplied by <sys/param.h>.
7205
7206 2006-06-07  Fred Fish  <fnf@specifix.com>
7207
7208         * configure.host: Remove references to HAVE_GETTIMEOFDAY.
7209
7210 2006-06-05  Shaun Jackman  <sjackman@gmail.com>
7211
7212         * libc/posix/Makefile.am (GENERAL_SOURCES): Add sleep.c and
7213         usleep.c.
7214         * libc/posix/Makefile.in: Regenerate.
7215         * libc/posix/sleep.c: New file.
7216         * libc/posix/usleep.c: Ditto.
7217
7218 2006-06-05  Shaun Jackman  <sjackman@gmail.com>
7219
7220         * configure.host (newlib_cflags) [arm, thumb, xscale]:  Remove
7221         -DABORT_PROVIDED flag.
7222         * newlib/libc/sys/arm/syscalls.c (kill, exit): Sync with libgloss.
7223         * newlib/libc/sys/arm/libcfunc.c (abort): Ditto.
7224
7225 2006-06-05  Jeff Johnston  <jjohnstn@redhat.com>
7226
7227         * Makefile.am (AM_MAKEFLAGS): Pass CCASFLAGS.
7228         * Makefile.in: Regenerated.
7229         * libc/machine/sh/Makefile.am (AM_CCASFLAGS): Remove
7230         extraneous CFLAGS reference now that CCASFLAGS are being extended
7231         properly via multilib.
7232         * libc/machine/sh/Makefile.in: Regenerated.
7233
7234 2006-06-02  Shaun Jackman  <sjackman@gmail.com>
7235
7236         * libc/unix/sigset.c: Undefine sigfillset, sigdelset, and
7237         sigismember.
7238
7239 2006-05-23  Jeff Johnston  <jjohnstn@redhat.com>
7240
7241         * libc/misc/dprintf.c: Removed.
7242         * libc/misc/__dprintf.c: Renamed from dprintf.c.
7243         * libc/misc/Makefile.am: Changed appropriately for rename.
7244         * libc/misc/Makefile.in: Regenerated.
7245
7246 2006-05-23  Jeff Johnston  <jjohnstn@redhat.com>
7247
7248         * libc/include/stdio.h: Protect dprintf prototype
7249         with #ifndef dprintf so as to not interfere with
7250         historical code defining their own dprintf macro.
7251
7252 2006-05-18  Jeff Johnston  <jjohnstn@redhat.com>
7253
7254         * libc/include/stdio.h: Add prototypes for fiscanf,
7255         iscanf, and siscanf.
7256
7257 2006-05-11  J"orn Rennecke <joern.rennecke@st.com>
7258
7259         * acinclude.m4 (_NEWLIB_VERSION): Rename to:
7260         (DEF_NEWLIB_VERSION).
7261         * configure.in (_NEWLIB_VERSION): Use NEWLIB_VERSION.
7262         * configure: Regenerate.
7263
7264 2006-05-09  Jeff Johnston  <jjohnstn@redhat.com>
7265
7266         * libc/ctype/Makefile.am: Add $(ELIX_SOURCES) to
7267         lib_a_SOURCES.
7268         * libc/ctype/Makefile.in: Regenerated.
7269
7270 2006-05-09  Kazu Hirata  <kazu@codesourcery.com>
7271
7272         * libc/machine/arm/Makefile.am: Fix a typo.
7273         * libc/machine/arm/Makefile.in: Regenerated.
7274
7275 2006-05-08  J"orn Rennecke <joern.rennecke@st.com>
7276
7277         * libc/machine/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
7278         * libc/machine/sh/Makefile.in: Regenerate.
7279
7280 2006-05-03  J"orn Rennecke <joern.rennecke@st.com>
7281
7282         * libc/sys/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
7283         * libc/sys/sh/Makefile.in (AM_CCASFLAGS): Likewise.
7284
7285 2006-05-02  Jeff Johnston  <jjohnstn@redhat.com>
7286
7287         * libc/sys/sysnec810/Makefile.am: Specify .S files instead of
7288         .s.
7289         * libc/sys/sysnec810/Makefile.in: Regenerated.
7290         * libc/sys/sysnec810/crt0.S: Renamed from .s file.
7291         * libc/sys/sysnec810/io.S: Ditto.
7292         * libc/sys/sysnec810/crt0.s: Renamed to .S file.
7293         * libc/sys/sysnec810/io.s: Ditto.
7294
7295 2006-05-01  Jeff Johnston  <jjohnstn@redhat.com>
7296
7297         * libc/argz/Makefile.am: Prefix any objects specified with $(lpfx).  If source file can
7298         be specified instead of object, do so.
7299         * libc/ctype/Makefile.am: Ditto.
7300         * libc/iconv/ccs/Makefile.am: Ditto.
7301         * libc/iconv/ces/Makefile.am: Ditto.
7302         * libc/iconv/lib/Makefile.am: Ditto.
7303         * libc/locale/Makefile.am: Ditto.
7304         * libc/posix/Makefile.am: Ditto.
7305         * libc/reent/Makefile.am: Ditto.
7306         * libc/search/Makefile.am: Ditto.
7307         * libc/stdio/Makefile.am: Ditto.
7308         * libc/stdio64/Makefile.am: Ditto.
7309         * libc/stdlib/Makefile.am: Ditto.
7310         * libc/string/Makefile.am: Ditto.
7311         * libc/syscalls/Makefile.am: Ditto.
7312         * libc/unix/Makefile.am: Ditto.
7313         * libc/machine/a29k/Makefile.am: Specify lib_a_CCASFLAGS so .S files will get
7314         prefix added automatically.  Any specified rules must use $(lpfx) for
7315         object file names.
7316         * libc/machine/arm/Makefile.am: Ditto.
7317         * libc/machine/cris/Makefile.am: Ditto.
7318         * libc/machine/crx/Makefile.am: Ditto.
7319         * libc/machine/d10v/Makefile.am: Ditto.
7320         * libc/machine/d30v/Makefile.am: Ditto.
7321         * libc/machine/fr30/Makefile.am: Ditto.
7322         * libc/machine/frv/Makefile.am: Ditto.
7323         * libc/machine/h8300/Makefile.am: Ditto.
7324         * libc/machine/h8500/Makefile.am: Ditto.
7325         * libc/machine/hppa/Makefile.am: Ditto.
7326         * libc/machine/i386/Makefile.am: Ditto.
7327         * libc/machine/i960/Makefile.am: Ditto.
7328         * libc/machine/iq2000/Makefile.am: Ditto.
7329         * libc/machine/m32c/Makefile.am: Ditto.
7330         * libc/machine/m32r/Makefile.am: Ditto.
7331         * libc/machine/m68hc11/Makefile.am: Ditto.
7332         * libc/machine/m68k/Makefile.am: Ditto.
7333         * libc/machine/m88k/Makefile.am: Ditto.
7334         * libc/machine/mips/Makefile.am: Ditto.
7335         * libc/machine/mn10200/Makefile.am: Ditto.
7336         * libc/machine/mn10300/Makefile.am: Ditto.
7337         * libc/machine/mt/Makefile.am: Ditto.
7338         * libc/machine/necv70/Makefile.am: Ditto.
7339         * libc/machine/powerpc/Makefile.am: Ditto.
7340         * libc/machine/sh/Makefile.am: Ditto.
7341         * libc/machine/sh/Makefile.in: Ditto.
7342         * libc/machine/sparc/Makefile.am: Ditto.
7343         * libc/machine/tic4x/Makefile.am: Ditto.
7344         * libc/machine/tic80/Makefile.am: Ditto.
7345         * libc/machine/v850/Makefile.am: Ditto.
7346         * libc/machine/w65/Makefile.am: Ditto.
7347         * libc/machine/xscale/Makefile.am: Ditto.
7348         * libc/machine/xstormy16/Makefile.am: Ditto.
7349         * libc/machine/z8k/Makefile.am: Ditto.
7350         * libc/sys/a29khif/Makefile.am: Ditto.
7351         * libc/sys/arm/Makefile.am: Ditto.
7352         * libc/sys/d10v/Makefile.am: Ditto.
7353         * libc/sys/h8300hms/Makefile.am: Ditto.
7354         * libc/sys/h8500hms/Makefile.am: Ditto.
7355         * libc/sys/linux/Makefile.am: Ditto.
7356         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
7357         * libc/sys/linux/net/Makefile.am: Ditto.
7358         * libc/sys/linux/stdlib/Makefile.am: Ditto.
7359         * libc/sys/m88kbug/Makefile.am: Ditto.
7360         * libc/sys/mmixware/Makefile.am: Ditto.
7361         * libc/sys/rdos/Makefile.am: Ditto.
7362         * libc/sys/rtems/Makefile.am: Ditto.
7363         * libc/sys/sh/Makefile.am: Ditto.
7364         * libc/sys/sun4/Makefile.am: Ditto.
7365         * libc/sys/sysmec/Makefile.am: Ditto.
7366         * libc/sys/sysnec810/Makefile.am: Ditto.
7367         * libc/sys/sysnecv850/Makefile.am: Ditto.
7368         * libc/sys/sysvi386/Makefile.am: Ditto.
7369         * libc/sys/sysvnecv70/Makefile.am: Ditto.
7370         * libc/sys/tic80/Makefile.am: Ditto.
7371         * libc/sys/w65/Makefile.am: Ditto.
7372         * libc/sys/z8ksim/Makefile.am: Ditto.
7373         * libc/machine/necv70/fastmath.S: Renamed from .s file.
7374         * libc/machine/necv70/setjmp.S: Ditto.
7375         * libc/machine/necv70/fastmath.s: Removed.
7376         * libc/machine/necv70/setjmp.s: Ditto.
7377         * libc/machine/w65/*.S: New files renamed from .s files.
7378         * libc/machine/w65/*.s: Renamed and removed.
7379         * libc/sys/a29khif/*.S: New files renamed from .s files.
7380         * libc/sys/a29khif/*.s: Renamed and removed.
7381         * libc/sys/sysvi386/*.S: New files renamed from .s files.
7382         * libc/sys/sysvi386/*.s: Renamed and removed.
7383         * libc/sys/sysvnecv70/*.S: New files renamed from .s files.
7384         * libc/sys/sysvnecv70/*.s: Renamed and removed.
7385         * libc/*Makefile.in: Regenerated as appropriate.
7386
7387 2006-04-24  DJ Delorie  <dj@redhat.com>
7388
7389         * libc/machine/sh/configure.in: Avoid link tests.
7390         * libc/machine/sh/configure: Regenerate.
7391
7392 2006-04-18  Jeff Johnston  <jjohnstn@redhat.com>
7393
7394         * libc/include/sys/signal.h (sigdelset, sigfillset, sigismember): New macros.
7395         (sigaddset, sigemptyset): Add return code.
7396
7397 2006-04-13  Ralf Corsepius  <ralf.corsepius@rtems.org>
7398
7399         * acinclude.m4: New _NEWLIB_VERSION.
7400         * acinclude.m4(NEWLIB_CONFIGURE): AC_REQUIRE(_NEWLIB_VERSION).
7401         Use AC_CANONICAL_HOST instead of AC_CANONICAL_SYSTEM.
7402         Use new form of AC_INIT_AUTOMAKE.
7403         * configure.in: AC_PREREQ(2.59).
7404         Use autoconf-2.5.x version of AC_INIT.
7405         Use AC_CONFIG_FILES and autoconf-2.5x AC_OUTPUT instead of
7406         autoconf-2.13's AC_OUTPUT.
7407         * libm/configure.in: Ditto.
7408         * libm/machine/configure.in: Ditto.
7409         * libm/machine/i386/configure.in: Ditto.
7410         * libc/configure.in: Ditto.
7411         * libc/machine/a29k/configure.in: Ditto.
7412         * libc/machine/arm/configure.in: Ditto.
7413         * libc/machine/configure.in: Ditto.
7414         * libc/machine/mn10300/configure.in: Ditto.
7415         * libc/machine/powerpc/configure.in: Ditto.
7416         * libc/machine/z8k/configure.in: Ditto.
7417         * libc/machine/h8300/configure.in: Ditto.
7418         * libc/machine/mips/configure.in: Ditto.
7419         * libc/machine/crx/configure.in: Ditto.
7420         * libc/machine/m68hc11/configure.in: Ditto.
7421         * libc/machine/h8500/configure.in: Ditto.
7422         * libc/machine/xscale/configure.in: Ditto.
7423         * libc/machine/d10v/configure.in: Ditto.
7424         * libc/machine/fr30/configure.in: Ditto.
7425         * libc/machine/sh/configure.in: Ditto.
7426         * libc/machine/tic80/configure.in: Ditto.
7427         * libc/machine/m32r/configure.in: Ditto.
7428         * libc/machine/xstormy16/configure.in: Ditto.
7429         * libc/machine/i386/configure.in: Ditto.
7430         * libc/machine/d30v/configure.in: Ditto.
7431         * libc/machine/mn10200/configure.in: Ditto.
7432         * libc/machine/frv/configure.in: Ditto.
7433         * libc/machine/mt/configure.in: Ditto.
7434         * libc/machine/i960/configure.in: Ditto.
7435         * libc/machine/v850/configure.in: Ditto.
7436         * libc/machine/necv70/configure.in: Ditto.
7437         * libc/machine/tic4x/configure.in: Ditto.
7438         * libc/machine/cris/configure.in: Ditto.
7439         * libc/machine/m68k/configure.in: Ditto.
7440         * libc/machine/m32c/configure.in: Ditto.
7441         * libc/machine/hppa/configure.in: Ditto.
7442         * libc/machine/w65/configure.in: Ditto.
7443         * libc/machine/iq2000/configure.in: Ditto.
7444         * libc/machine/sparc/configure.in: Ditto.
7445         * libc/machine/m88k/configure.in: Ditto.
7446         * libc/sys/linux/configure.in: Ditto.
7447         * libc/sys/linux/machine/configure.in: Ditto.
7448         * libc/sys/linux/machine/i386/configure.in: Ditto.
7449         * libc/sys/linux/linuxthreads/configure.in: Ditto.
7450         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
7451         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
7452         * libc/sys/arm/configure.in: Ditto.
7453         * libc/sys/configure.in: Ditto.
7454         * libc/sys/decstation/configure.in: Ditto.
7455         * libc/sys/a29khif/configure.in: Ditto.
7456         * libc/sys/sysnecv850/configure.in: Ditto.
7457         * libc/sys/d10v/configure.in: Ditto.
7458         * libc/sys/netware/configure.in: Ditto.
7459         * libc/sys/mmixware/configure.in: Ditto.
7460         * libc/sys/h8500hms/configure.in: Ditto.
7461         * libc/sys/sh/configure.in: Ditto.
7462         * libc/sys/tic80/configure.in: Ditto.
7463         * libc/sys/rdos/configure.in: Ditto.
7464         * libc/sys/sysmec/configure.in: Ditto.
7465         * libc/sys/sysvi386/configure.in: Ditto.
7466         * libc/sys/h8300hms/configure.in: Ditto.
7467         * libc/sys/sparc64/configure.in: Ditto.
7468         * libc/sys/arc/configure.in: Ditto.
7469         * libc/sys/sysnec810/configure.in: Ditto.
7470         * libc/sys/m88kbug/configure.in: Ditto.
7471         * libc/sys/sysvnecv70/configure.in: Ditto.
7472         * libc/sys/z8ksim/configure.in: Ditto.
7473         * libc/sys/rtems/configure.in: Ditto.
7474         * libc/sys/w65/configure.in: Ditto.
7475         * libc/sys/sun4/configure.in: Ditto.
7476         * doc/configure.in: Ditto.
7477         * iconvdata/configure.in: Ditto.
7478         * configure.in: Use AC_CONFIG_HEADER instead of AM_CONFIG_HEADER.
7479
7480 2006-04-11  Jeff Johnston  <jjohnstn@redhat.com>
7481
7482         * acinclude.m4: Properly add square brackets for
7483         AC_DEFUN macros.  Rewrite LIB_AC_PROG_CC to remove
7484         macros no longer available.  Add LIB_AM_PROG_AS to
7485         remove prereq of AC_PROG_CC.  Add LIB_AC_PROG_CC_GNU
7486         macro.  Substitute lpfx (library object prefix).
7487         * configure.host: Set lpfx depending on whether
7488         libtool is used or not.
7489         * configure.in: Individually specify libc and libm
7490         to AC_CONFIG_SUBDIRS.  Add square bracket quoting as
7491         necessary.
7492         * Makefile.am: Use $(lpfx) to get object names for
7493         math-library functions that should also be in libc.
7494         * libc/machine/configure.in: Use case statement to determine
7495         AC_CONFIG_SUBDIRS statement.
7496         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
7497         * libc/sys/linux/machine/configure.in: Ditto.
7498         * libc/sys/configure.in: Ditto.
7499         * libm/machine/configure.in: Ditto.
7500         * libc/sys/linux/configure.in: Fix up AC_CONFIG_SUBDIRS.
7501         * libm/configure.in: Add AM_CONDITIONAL statement
7502         for HAVE_LIBM_MACHINE_DIR.
7503         * libc/machine/a29k/Makefile.am: Modified to work with
7504         latest automake.  Change includes setting AM_CCASFLAGS
7505         so building .S files will properly pick up flags used
7506         to build C files.
7507         * libc/machine/arm/Makefile.am: Ditto.
7508         * libc/machine/crx/Makefile.am: Ditto.
7509         * libc/machine/d10v/Makefile.am: Ditto.
7510         * libc/machine/d30v/Makefile.am: Ditto.
7511         * libc/machine/fr30/Makefile.am: Ditto.
7512         * libc/machine/frv/Makefile.am: Ditto.
7513         * libc/machine/h8300/Makefile.am: Ditto.
7514         * libc/machine/h8500/Makefile.am: Ditto.
7515         * libc/machine/hppa/Makefile.am: Ditto.
7516         * libc/machine/i386/Makefile.am: Ditto.
7517         * libc/machine/iq2000/Makefile.am: Ditto.
7518         * libc/machine/m32c/Makefile.am: Ditto.
7519         * libc/machine/m32r/Makefile.am: Ditto.
7520         * libc/machine/m68hc11/Makefile.am: Ditto.
7521         * libc/machine/m68k/Makefile.am: Ditto.
7522         * libc/machine/m88k/Makefile.am: Ditto.
7523         * libc/machine/mips/Makefile.am: Ditto.
7524         * libc/machine/mn10200/Makefile.am: Ditto.
7525         * libc/machine/mn10300/Makefile.am: Ditto.
7526         * libc/machine/mt/Makefile.am: Ditto.
7527         * libc/machine/necv70/Makefile.am: Ditto.
7528         * libc/machine/powerpc/Makefile.am: Ditto.
7529         * libc/machine/sh/Makefile.am: Ditto.
7530         * libc/machine/sparc/Makefile.am: Ditto.
7531         * libc/machine/tic4x/Makefile.am: Ditto.
7532         * libc/machine/tic80/Makefile.am: Ditto.
7533         * libc/machine/v850/Makefile.am: Ditto.
7534         * libc/machine/w65/Makefile.am: Ditto.
7535         * libc/machine/xscale/Makefile.am: Ditto.
7536         * libc/machine/xstormy16/Makefile.am: Ditto.
7537         * libc/machine/z8k/Makefile.am: Ditto.
7538         * libc/sys/a29khif/Makefile.am: Ditto.
7539         * libc/sys/arc/Makefile.am: Ditto.
7540         * libc/sys/arm/Makefile.am: Ditto.
7541         * libc/sys/d10v/Makefile.am: Ditto.
7542         * libc/sys/decstation/Makefile.am: Ditto.
7543         * libc/sys/h8300hms/Makefile.am: Ditto.
7544         * libc/sys/h8500hms/Makefile.am: Ditto.
7545         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
7546         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
7547         * libc/sys/m88kbug/Makefile.am: Ditto.
7548         * libc/sys/mmixware/Makefile.am: Ditto.
7549         * libc/sys/netware/Makefile.am: Ditto.
7550         * libc/sys/rdos/Makefile.am: Ditto.
7551         * libc/sys/rtems/Makefile.am: Ditto.
7552         * libc/sys/sh/Makefile.am: Ditto.
7553         * libc/sys/sparc64/Makefile.am: Ditto.
7554         * libc/sys/sysmec/Makefile.am: Ditto.
7555         * libc/sys/sysnec810/Makefile.am: Ditto.
7556         * libc/sys/sysnecv850/Makefile.am: Ditto.
7557         * libc/sys/sysvi386/Makefile.am: Ditto.
7558         * libc/sys/sysvnecv70/Makefile.am: Ditto.
7559         * libc/sys/tic80/Makefile.am: Ditto.
7560         * libc/sys/w65/Makefile.am: Ditto.
7561         * libc/sys/z8ksim/Makefile.am: Ditto.
7562         * libm/machine/i386/Makefile.am: Ditto.
7563         * libc/sys/arm/Makefile.am: Ditto plus add EXTRA sources including
7564         trap.S so that automake will generate a .S.o suffix rule.
7565         * libc/argz/Makefile.am: Modified to work with
7566         latest automake.  Change includes adding lib_a_CFLAGS
7567         so automake doesn't complain about libtool and non-libtool
7568         libraries sharing objects.
7569         * libc/ctype/Makefile.am: Ditto.
7570         * libc/errno/Makefile.am: Ditto.
7571         * libc/iconv/ccs/Makefile.am: Ditto.
7572         * libc/iconv/ces/Makefile.am: Ditto.
7573         * libc/iconv/lib/Makefile.am: Ditto.
7574         * libc/locale/Makefile.am: Ditto.
7575         * libc/misc/Makefile.am: Ditto.
7576         * libc/posix/Makefile.am: Ditto.
7577         * libc/reent/Makefile.am: Ditto.
7578         * libc/search/Makefile.am: Ditto.
7579         * libc/signal/Makefile.am: Ditto.
7580         * libc/stdio/Makefile.am: Ditto.
7581         * libc/stdio64/Makefile.am: Ditto.
7582         * libc/stdlib/Makefile.am: Ditto.
7583         * libc/string/Makefile.am: Ditto.
7584         * libc/sys/linux/Makefile.am: Ditto.
7585         * libc/sys/linux/argp/Makefile.am: Ditto.
7586         * libc/sys/linux/cmath/Makefile.am: Ditto.
7587         * libc/sys/linux/dl/Makefile.am: Ditto.
7588         * libc/sys/linux/iconv/Makefile.am: Ditto.
7589         * libc/sys/linux/intl/Makefile.am: Ditto.
7590         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
7591         * libc/sys/linux/net/Makefile.am: Ditto.
7592         * libc/sys/linux/stdlib/Makefile.am: Ditto.
7593         * libc/syscalls/Makefile.am: Ditto.
7594         * libc/time/Makefile.am: Ditto.
7595         * libc/unix/Makefile.am: Ditto.
7596         * libm/Makefile.am: Ditto.
7597         * libm/common/Makefile.am: Ditto.
7598         * libm/math/Makefile.am: Ditto.
7599         * libm/mathfp/Makefile.am: Ditto.
7600         * Regenerate all aclocal.m4, Makefile.in, and configure files.
7601
7602 2006-04-07  Jeff Johnston  <jjohnstn@redhat.com>
7603
7604         * libc/time/time.c (time): Do not check for HAVE_GETTIMEOFDAY
7605         anymore.  Assume there is a gettimeofday syscall.
7606
7607 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
7608
7609         * libc/sys/linux/include/netinet/ip.h: Include netinet/in_systm.h
7610         for the declaration of n_long.
7611
7612 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
7613
7614         * libc/sys/linux/include/net/if.h: Include sys/socket.h for
7615         struct sockaddr.
7616         (IFF_SMART): Replace this define with IFF_NOTRAILERS.
7617         (IFF_CANTCHANGE): Replace IFF_SMART reference with IFF_NOTRAILERS.
7618         (IFF_NOTRAILERS): New define.
7619         (struct ifreq): Add ifru_netmask.
7620         (ifr_netmask): New define.
7621
7622 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
7623
7624         * libc/sys/linux/sys/ioccom.h (ioctl): Change declaration to
7625         match sys/ioctl.h.
7626
7627 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
7628
7629         * libtool.m4: Set lt_cv_deplibs_check_method=pass_all for
7630         linux-newlib libc implementations.
7631
7632 2006-03-29  Eric Blake  <ebb9@byu.net>
7633
7634         * libc/stdio/freopen.c (_freopen_r) [__SCLE]: Fix typo.
7635         * libc/stdio64/freopen64.c (_freopen64_r) [__SCLE]: Likewise.
7636
7637 2006-03-29  Jeff Johnston  <jjohnstn@redhat.com>
7638
7639         * libc/sys/linux/io.c (__mknod): Fix declaration of
7640         syscall to pass a dev_t as third argument rather than
7641         a pointer to dev_t.
7642
7643 2006-03-29  Jeff Johnston  <jjohnstn@redhat.com>
7644
7645         * libc/sys/linux/net/name6.c: Fix struct references.
7646
7647 2006-03-22  Mark Mitchell  <mark@codesourcery.com>
7648
7649         * configure.host: Allow hosts to set the default
7650         newlib_atexit_dynamic_alloc value.
7651         * configure.in: Likewise.
7652         * configure: Regenerated.
7653
7654 2006-03-20  Mark Mitchell  <mark@codesourcery.com>
7655
7656         * acconfig.h (_ATEXIT_DYNAMIC_ALLOC): Undef.
7657         * configure.in (--disable-newlib-atexit-dynamic-alloc): New
7658         option.
7659         * configure: Regenerated.
7660         * newlib.hin: Regenerated.
7661         * libc/stdlib/__atexit.c (__register_exitproc): Don't call malloc
7662         if _ATEXIT_DYNAMIC_ALLOC is undefined.
7663         * libc/stdlib/__call_atexit.c (__call_exitprocs): Don't call free
7664         if _ATEXIT_DYNAMIC_ALLOC is undefined.
7665
7666 2006-03-17  Jeff Johnston  <jjohnstn@redhat.com>
7667
7668         * libc/sys/linux/linuxthreads/config.h: Remove definition
7669         of UINT32_C.
7670
7671 2006-03-15  Jeff Johnston  <jjohnstn@redhat.com>
7672
7673         * libc/stdio/wsetup.c (__swsetup): Don't make a buffer
7674         for a string I/O file that isn't using the asprintf family.
7675
7676 2006-03-07  Eric Blake  <ebb9@byu.net>
7677
7678         * libc/stdio/freopen.c (_freopen_r) [HAVE_FCNTL]: For NULL
7679         filename, allow read-only or write-only FILE atop O_RDWR file
7680         descriptor.
7681         * libc/stdio64/freopen64.c (_freopen64_r) [HAVE_FCNTL]: Likewise.
7682
7683 2006-03-07  Jeff Johnston  <jjohnstn@redhat.com>
7684
7685         * libm/common/sf_isinf.c[_DOUBLE_IS_32BITS]: Undef isinf.
7686         * libm/common/sf_isnan.c[_DOUBLE_IS_32BITS]: Undef isnan.
7687
7688 2006-03-02  Jeff Johnston  <jjohnstn@redhat.com>
7689
7690         * libm/math/math.tex: Fix reference to sisnan.def which
7691         is now in common subdirectory.
7692         * libm/mathfp/mathfp.tex: Ditto.
7693
7694 2006-02-27  Jeff Johnston  <jjohnstn@redhat.com>
7695
7696         * Makefile.am (MATHOBJS_IN_LIBC): Add s_isinfd, sf_isinff,
7697         s_isnand, and sf_isnanf object files.
7698         * Makefile.in: Regenerated.
7699         * libc/include/ieeefp.h: Undef isnan and isinf to avoid
7700         conflict if <math.h> has previously been included.
7701         * libc/include/math.h
7702         * libc/include/math.h: Make isnan and isinf macros to
7703         conform to C99.
7704         (__isinfd, __isinff, __isnand, __isnanf): New functions.
7705         * libm/common/Makefile.am: Add new s_isinfd, s_isnand, sf_isinff,
7706         and sf_isnanf files.  Also support s_isnan, sf_isnan, s_isinf, and
7707         sf_isinf files which have been moved from math/mathfp directories.
7708         * libm/common/Makefile.in: Regenerated.
7709         * libm/common/s_isinfd.c: New file.
7710         * libm/common/s_isnand.c: Ditto.
7711         * libm/common/sf_isinff.c: Ditto.
7712         * libm/common/sf_isnanf.c: Ditto.
7713         * libm/common/s_isinf.c: Moved from libm/math directory.
7714         * libm/common/s_isnan.c: Ditto.
7715         * libm/common/sf_isinf.c: Ditto.
7716         * libm/common/sf_isnan.c: Ditto.
7717         * libm/math/Makefile.am: Remove isinf and isnan family functions
7718         which have been moved into common directory.
7719         * libm/mathfp/Makefile.am: Ditto.
7720         * libm/math/Makefile.in: Regenerated.
7721         * libm/mathfp/Makefile.in: Ditto.
7722         * libm/math/s_isinf.c: Removed.
7723         * libm/math/s_isnan.c: Ditto.
7724         * libm/math/sf_isinf.c: Ditto.
7725         * libm/math/sf_isnan.c: Ditto.
7726         * libm/mathfp/s_isinf.c: Ditto.
7727         * libm/mathfp/s_isnan.c: Ditto.
7728         * libm/mathfp/sf_isinf.c: Ditto.
7729         * libm/mathfp/sf_isnan.c: Ditto.
7730
7731 2006-02-20  Jeff Johnston  <jjohnstn@redhat.com>
7732
7733         * libc/stdio/fflush.c (fflush): For an fflush on a read-only
7734         stream, turn off fseek/rewind optimization as per POSIX/SUSv3.
7735         * libc/stdio/fseek.c (_fseek_r): After a successful unoptimized
7736         seek, turn off the __SNPT no-optimization flag.
7737
7738 2006-02-16  Jeff Johnston  <jjohnstn@redhat.com>
7739
7740         * libc/sys/linux/aio.c: Define _GNU_SOURCE so struct aioinit
7741         will be defined.
7742         * libc/sys/linux/sys/types.h: Move <sys/config.h> ahead of
7743         <features.h> to preset special flags.
7744
7745 2006-02-15  Corinna Vinschen  <corinna@vinschen.de>
7746
7747         * libc/include/sys/time.h (struct timeval): Change member types
7748         according to SUSv3.
7749         * libc/include/sys/types.h (useconds_t): Change to unsigned
7750         according to SUSv3.
7751         (suseconds_t): Define type.
7752
7753 2006-02-13  Jeff Johnston  <jjohnstn@redhat.com>
7754             David Carne  <davidcarne@gmail.com>
7755
7756         * libc/string/strndup_r.c (_strndup_r): Use strnlen logic
7757         instead of strlen to determine number of bytes to copy.
7758         * libc/string/strnlen.c (strnlen): Fix so check for max limit occurs
7759         before looking at storage location.
7760
7761 2006-02-07  Paul Brook  <paul@codesourcery.com>
7762
7763         * libc/machine/arm/setjmp.S: Add Thumb-2 support.
7764         * libc/sys/arm/crt0.S: Add Thumb-2 startup code.
7765         * libc/sys/arm/libcfunc.c (do_AngelSWI): Use AngelSWIInsn.
7766         * libc/sys/arm/swi.h (AngelSWIInsn, AngelSWIAsm): Define.
7767         * libc/sys/arm/trap.S: Disable for Thumb-2.
7768
7769 2006-01-31  Leif Ekblad  <leif@rdos.net>
7770
7771         * configure.host: RDOS support added
7772         * libc/include/sys/config.h: Ditto.
7773         * libc/sys/rdos/Makefile.am, libc/sys/rdos/Makefile.in: New files.
7774         * libc/sys/rdos/aclocal.m4, libc/sys/rdos/chown.c: Ditto.
7775         * libc/sys/rdos/close.c, libc/sys/rdos/config.h: Ditto.
7776         * libc/sys/rdos/configure, libc/sys/rdos/configure.in: Ditto.
7777         * libc/sys/rdos/crt0.S, libc/sys/rdos/execve.c: Ditto.
7778         * libc/sys/rdos/fork.c, libc/sys/rdos/fstat.c: Ditto.
7779         * libc/sys/rdos/getenv.c, libc/sys/rdos/getpid.c: Ditto.
7780         * libc/sys/rdos/gettod.c, libc/sys/rdos/isatty.c: Ditto.
7781         * libc/sys/rdos/kill.c, libc/sys/rdos/link.c: Ditto.
7782         * libc/sys/rdos/lseek.c, libc/sys/rdos/open.c: Ditto.
7783         * libc/sys/rdos/rdos.S, libc/sys/rdos/rdos.h: Ditto.
7784         * libc/sys/rdos/rdoshelp.c, libc/sys/rdos/read.c: Ditto.
7785         * libc/sys/rdos/readlink.c, libc/sys/rdos/sbrk.c: Ditto.
7786         * libc/sys/rdos/stat.c, libc/sys/rdos/symlink.c: Ditto.
7787         * libc/sys/rdos/times.c, libc/sys/rdos/unlink.c: Ditto.
7788         * libc/sys/rdos/user.def, libc/sys/rdos/wait.c: Ditto.
7789         * libc/sys/rdos/write.c: Ditto.
7790
7791 2006-01-24  Jeff Johnston  <jjohnstn@redhat.com>
7792
7793         * acinclude.m4: Add nodefine to AM_INIT_AUTOMAKE macro invocation
7794         so as not to define PACKAGE and VERSION in newlib.h.
7795         * aclocal.m4: Regenerated.
7796         * configure: Ditto.
7797         * newlib.hin: Ditto.
7798
7799 2006-01-20  Jeff Johnston  <jjohnstn@redhat.com>
7800
7801         * acconfig.h: New file to generate newlib.hin from.
7802         * newlib.hin: Regenerated.
7803         * stamp-h.in: Regenerated.
7804         * Makefile.am: Add ACLOCAL_AMFLAGS so aclocal can be
7805         called automatically.
7806         * Makefile.in: Regenerated.
7807         * acinclude.m4: Add proper comment for hack in previous change.
7808         * aclocal.m4 */aclocal.m4: Regenerated.
7809         * configure */configure: Regenerated.
7810
7811 2006-01-11  Jeff Johnston  <jjohnstn@redhat.com>
7812
7813         * acinclude.m4: Add hack to prevent INSTALL in subdirs
7814         from being set to "../".
7815         * Makefile.am: Pass INSTALL in AM_MAKEFLAGS.
7816         * aclocal.m4: Regenerated.
7817         * configure: Ditto.
7818         * Makefile.in: Ditto.
7819         * doc/aclocal.m4: Ditto.
7820         * doc/configure: Ditto.
7821         * iconvdata/aclocal.m4: Ditto.
7822         * iconvdata/configure: Ditto.
7823         * libc/*/aclocal.m4: Ditto.
7824         * libc/*/configure: Ditto.
7825         * libc/libc.texinfo: Ditto.
7826         * libm/*/aclocal.m4: Ditto.
7827         * libm/*/configure: Ditto.
7828
7829 2006-01-10  Eric Blake  <ebb9@byu.net>
7830
7831         * libc/stdio/freopen.c (_freopen_r): Fix use of oflags.
7832         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
7833
7834 2006-01-10  Jeff Johnston  <jjohnstn@redhat.com>
7835
7836         * libm/mathfp/s_frexp.c: Check for special values on
7837         the original input, not the manipulated output value.
7838         * libm/mathfp/sf_frexp.c: Ditto.
7839         * libm/mathfp/s_atangent.c: Don't use local value branch
7840         when checking for quadrant.
7841         * libm/mathfp/sf_atangent.c: Ditto.
7842
7843 2006-01-09  Jeff Johnston  <jjohnstn@redhat.com>
7844
7845         * libc/stdio/freopen.c: Switch to use isatty instead of _isatty.
7846         * libc/stdio64/freopen64.c: Ditto.
7847
7848 2006-01-09  Eric Blake  <ebb9@byu.net>
7849
7850         * libc/stdio/freopen.c (_freopen_r): Accept NULL filename.
7851         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
7852
7853 2006-01-06  Jeff Johnston  <jjohnstn@redhat.com>
7854
7855         * libc/sys/linux/include/getopt.h: Add macros needed by
7856         new version of getopt.c in libc/stdlib.
7857
7858 2006-01-04  Gregory Pietsch  <gpietsch@comcast.net>
7859
7860         * libc/stdlib/getopt.c: Replaced with version
7861         that adds getopt_long and getopt_long_only support.
7862         * libc/include/getopt.h: New file.
7863
7864 2005-12-16  Jeff Johnston  <jjohnstn@redhat.com>
7865
7866         * NEWS: Update with 1.14.0 info.
7867         * README: Ditto.
7868         * acinclude.m4: Change version number to 1.14.0.
7869         * aclocal.m4: Regenerated.
7870         * configure: Ditto.
7871         * doc/aclocal.m4: Ditto.
7872         * doc/configure: Ditto.
7873         * libc/*/aclocal.m4: Ditto.
7874         * libc/*/configure: Ditto.
7875         * libc/libc.texinfo: Ditto.
7876         * libm/*/aclocal.m4: Ditto.
7877         * libm/*/configure: Ditto.
7878         * libm/libm.texinfo: Ditto.
7879         * libc/sys/linux/shared.ld: Add VERS_1.14.
7880
7881 2005-12-16  Jeff Johnston  <jjohnstn@redhat.com>
7882
7883         * libc/sys/linux/sys/stat.h: Change *stat64 prototypes to
7884         take a pointer to struct stat64 rather than struct stat.
7885
7886 2005-12-16  Ralf Corsepius <ralf.corsepius@rtems.org>
7887
7888         * libc/include/stdint.h: Prefer long over int for int32_t.
7889         Use __have_long32 to set up int32_t.
7890         * libc/include/inttypes.h: Use "#if xxx" instead of "#ifdef xxx"
7891         (Sync with stdint.h).
7892
7893 2005-12-14  Corinna Vinschen  <corinna@vinschen.de>
7894
7895         * libc/include/sys/fcntl.h: Define O_SYNC unconditionally.  Fix
7896         typo in O_NDELAY comment.
7897
7898 2005-12-13  Nathan Sidwell  <nathan@codesourcery.com>
7899
7900         * libc/include/machine/ieeefp.h (__mt__): Renamed from __ms1__.
7901         * libc/include/machine/setjmp.h (__mt__): Likewise.
7902         * libc/machine/mt/setjmp.S: Rename ms1 reference to mt.
7903         * libc/machine/configure.in: Ditto.
7904
7905 2005-12-12  Nathan Sidwell  <nathan@codesourcery.com>
7906
7907         * configure.host: Replace ms1 arch with mt arch.
7908         * libc/machine/mt: Renamed from ms1 dir.
7909
7910 2005-12-08  Shaun Jackman  <sjackman@gmail.com>
7911
7912         * libc/include/sys/types.h: Remove the ifdef armour around
7913         standard POSIX types.
7914
7915 2005-12-06  Ralf Corsepius <ralf.corsepius@rtems.org>
7916
7917         * libc/sys/rtems/crt0.c: Add rtems_gxx_key_create,
7918         rtems_gxx_key_delete, rtems_gxx_getspecific,
7919         rtems_gxx_setspecific, rtems_gxx_mutex_trylock,
7920         rtems_gxx_recursive_mutex_init, rtems_gxx_recursive_mutex_lock,
7921         rtems_gxx_recursive_mutex_trylock, rtems_gxx_recursive_mutex_unlock.
7922
7923 2005-12-05  Christopher Faylor  <cgf@timesys.com>
7924
7925         * libc/include/stdlib.h: Move cygwin declarations to cygwin-specific
7926         file.  Declare unsetenv and _unsetenv_r when not cygwin.
7927
7928 2005-11-18  Jeff Johnston  <jjohnstn@redhat.com>
7929
7930         * libc/time/strptime.c (strptime): Don't abort for %c and %Z.
7931         Treat %c as "%a %b %e %H:%M:%S %Y" and ignore %Z.
7932
7933 2005-11-18  Christopher Faylor  <cgf@timesys.com>
7934
7935         * include/sys/time.h: Move more cygwin stuff to cygwin-specific header.
7936
7937 2005-11-18  Christopher Faylor  <cgf@timesys.com>
7938
7939         * include/time.h: Remove more cygwin-specific stuff.
7940
7941 2005-11-18  Christopher Faylor  <cgf@timesys.com>
7942
7943         * include/time.h: Move cygwin declarations to cygwin-specific header.
7944         * include/sys/time.h: Rename cygwin include to "sys_time.h".
7945
7946 2005-11-17  Jeff Johnston  <jjohnstn@redhat.com>
7947
7948         * libc/sys/linux/dl/dl-local.h: New file based on old dlfcn.h
7949         in libc/sys/linux/include.
7950         * libc/sys/linux/dl/dlfcn.h: Moved to libc/sys/linux/include.
7951         * libc/sys/linux/dl/ldsodefs.h: Include dl-local.h instead of dlfcn.h.
7952         * libc/sys/linux/include/dlfcn.h: Replaced with dlfcn.h formerly
7953         in libc/sys/linux/dl.
7954
7955 2005-11-11  Christopher Faylor  <cgf@timesys.com>
7956
7957         * libc/include/sys/time.h: For cygwin, use general header rather than
7958         specific "sys/select.h".
7959
7960 2005-11-08  Tom Walsh  <tom@openhardware.net>
7961
7962         * libc/time/tzvars.c: New file.
7963         * libc/time/tzset_r.c: Moved globals into tzvars.c
7964         so other time functions needn't link in __tzset_r and its
7965         dependencies.
7966         * libc/time/Makefile.am: Add the new file.
7967         * libc/time/Makefile.in: Regenerated.
7968
7969 2005-11-08  Christopher Faylor  <cgf@timesys.com>
7970
7971         * libc/include/string.h: Add cygwin-specific function declaration.
7972
7973 2005-11-07  Corinna Vinschen  <corinna@vinschen.de>
7974
7975         * libc/include/ieeefp.h: Add C++ guards.
7976
7977 2005-11-03  Jeff Johnston  <jjohnstn@redhat.com>
7978
7979         * libc/unix/getcwd.c: Don't use non-reentrant syscall names.
7980         * libc/unix/getlogin.c: Ditto.
7981         * libc/unix/getpass.c: Ditto.
7982         * libc/unix/getut.c: Ditto.
7983         * libc/unix/ttyname.c: Ditto.
7984
7985 2005-11-03  Shaun Jackman  <sjackman@gmail.com>
7986
7987         * libc/include/sys/unistd.h (readlink, symlink): Provide these
7988         prototypes by default.
7989         * libc/sys/linux/include/unistd.h (readlink): Remove this
7990         prototype.
7991         * libc/sys/linux/sys/unistd.h (readlink, symlink): New
7992         prototypes.
7993
7994 2005-11-01  Ralf Corsepius <ralf.corsepius@rtems.org>
7995
7996         * libc/include/stdint.h: Cleanup #if vs. #ifdef.
7997
7998 2005-10-31  Darin Johnson  <darin@usa.net>
7999
8000         * libm/mathfp/s_mathcnst.c: Fix endian-ness check to be
8001         correct for constants.
8002
8003 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
8004
8005         * libc/stdio/siprintf.c: Wrap long lines in ANSI_SYNOPSIS.
8006         * libc/stdio/siscanf.c: Likewise.
8007         * libc/stdio/sprintf.c: Likewise.
8008         * libc/stdio/sscanf.c: Likewise.
8009         * libc/stdio/vfprintf.c: Likewise.
8010         * libc/stdio/vfscanf.c: Likewise.
8011         * libc/stdio/viprintf.c: Likewise.
8012         * libc/stdio/viscanf.c: Likewise.
8013
8014 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
8015
8016         * libc/sys.tex (Stubs): Format examples consistently.   Change sbrk
8017         example to use "_end" symbol instead of "end".  Change write  example
8018         to use "outbyte" instead of "writechar".
8019
8020 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
8021
8022         * libc/ctype/ctype.tex: Use hyphens as appropriate, but not  otherwise.
8023         * libc/ctype/islower.c: Likewise.
8024         * libc/ctype/isupper.c: Likewise.
8025         * libc/ctype/iswalnum.c: Likewise.
8026         * libc/ctype/iswalpha.c: Likewise.
8027         * libc/ctype/iswblank.c: Likewise.
8028         * libc/ctype/iswcntrl.c: Likewise.
8029         * libc/ctype/iswdigit.c: Likewise.
8030         * libc/ctype/iswgraph.c: Likewise.
8031         * libc/ctype/iswlower.c: Likewise.
8032         * libc/ctype/iswprint.c: Likewise.
8033         * libc/ctype/iswpunct.c: Likewise.
8034         * libc/ctype/iswspace.c: Likewise.
8035         * libc/ctype/iswupper.c: Likewise.
8036         * libc/ctype/iswxdigit.c: Likewise.
8037         * libc/ctype/tolower.c: Likewise.
8038         * libc/ctype/toupper.c: Likewise.
8039         * libc/ctype/towctrans.c: Likewise.
8040         * libc/ctype/towlower.c: Likewise.
8041         * libc/ctype/towupper.c: Likewise.
8042         * libc/string/strcasecmp.c: Likewise.
8043         * libc/string/strcoll.c: Likewise.
8044         * libc/string/strings.tex: Likewise.
8045         * libc/string/strlwr.c: Likewise.
8046         * libc/string/strncasecmp.c: Likewise.
8047         * libc/string/strupr.c: Likewise.
8048         * libc/string/wcscoll.c: Likewise.
8049         * libc/string/wcslcat.c: Likewise.
8050         * libc/string/wcslcpy.c: Likewise.
8051         * libc/string/wcsnlen.c: Likewise.
8052         * libc/string/wcsstr.c: Likewise.
8053         * libc/string/wcstrings.tex: Likewise.
8054         * libc/string/wmemchr.c: Likewise.
8055         * libc/string/wmemcmp.c: Likewise.
8056         * libc/string/wmemcpy.c: Likewise.
8057         * libc/string/wmemmove.c: Likewise.
8058         * libc/string/wmemset.c: Likewise.
8059
8060 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
8061
8062         * libc/misc/unctrl.c: Replace FUNCTION description.
8063         * libc/signal/signal.c: Remove documentation for raise and  _raise_r.
8064         * libc/stdio/getdelim.c: Fix spelling errors.
8065         * libc/stdio/getw.c: Put RETURNS on a separate line.  Fix  punctuation.
8066         * libc/stdio/putw.c: Likewise.
8067         * libc/stdlib/a64l.c: Fix formatting, spelling and  punctuation in
8068         documentation.
8069         * libc/stdlib/assert.c: Do not capitalize FUNCTION description.
8070         * libc/stdlib/efgcvt.c: Add spaces to FUNCTION description.
8071         * libc/stdlib/envlock.c: Use em-dash in FUNCTION description.
8072         * libc/stdlib/mlock.c: Likewise.
8073         * libc/stdlib/mstats.c: Likewise.
8074         * libc/time/tzlock.c: Likewise.
8075         * libc/stdlib/rand.c: Use "multi-threaded" and "thread-safe"  in NOTES.
8076         * libc/stdlib/rand48.c: Remove extra space in FUNCTION  description
8077         and hyphenate "pseudo-random".
8078         * libc/string/bcmp.c: Remove extra blank lines in  documentation.
8079         * libc/string/strncat.c: Likewise.
8080         * libc/string/memchr.c: Remove extra ">" character in  documentation.
8081         * libc/string/strcspn.c: Use "characters" instead of "chars".
8082         * libc/string/strpbrk.c: Likewise.
8083         * libc/string/strerror_r.c: Capitalize "GNU".
8084         * libc/string/strnlen.c: Likewise.
8085         * libc/string/strtok.c: Fix formatting, spelling and  punctuation in
8086         documentation.  Use "multi-threaded" and "thread-safe" in  NOTES.
8087         * libc/string/wcscat.c: Split PORTABILITY into two paragraphs.
8088         * libc/string/wcschr.c: Likewise.
8089         * libc/string/wcscmp.c: Likewise.
8090         * libc/string/wcscpy.c: Likewise.
8091         * libc/string/wcscspn.c: Likewise.
8092         * libc/string/wcslen.c: Likewise.
8093         * libc/string/wcsncat.c: Likewise.
8094         * libc/string/wcsncmp.c: Likewise.
8095         * libc/string/wcsncpy.c: Likewise.
8096         * libc/string/wcsnlen.c: Likewise.
8097         * libc/string/wcspbrk.c: Likewise.
8098         * libc/string/wcsrchr.c: Likewise.
8099         * libc/string/wcsspn.c: Likewise.
8100         * libc/string/wmemchr.c: Likewise.
8101         * libc/string/wmemcmp.c: Likewise.
8102         * libc/string/wmemcpy.c: Likewise.
8103         * libc/string/wmemset.c: Likewise.
8104         * libc/string/wmemmove.c: Likewise.  Also fix FUNCTION  description.
8105         * libc/string/wcswidth.c: Formatting and punctuation in  documentation.
8106         * libc/string/wcwidth.c: Likewise.
8107         * libm/common/s_modf.c: Remove extra period from documentation.
8108         * libm/math/s_isnan.c: Fix formatting, grammar and  punctuation in
8109         documentation.
8110         * libm/mathfp/s_isnan.c: Likewise.
8111         * libm/math/s_ldexp.c: Fix punctuation.
8112         * libm/mathfp/s_ldexp.c: Likewise.
8113         * libm/math/w_log.c: Likewise.
8114         * libm/mathfp/s_logarithm.c: Likewise.
8115         * libm/math/w_j0.c: Add spaces to FUNCTION description.
8116         * libm/mathfp/w_jn.c: Likewise.
8117
8118 2005-10-26  Shaun Jackman  <sjackman@gmail.com>
8119
8120         * libc/posix/scandir.c (scandir): Update the function
8121         prototype to match the header.
8122         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Remove an
8123         extraneous #endif.
8124         * libc/sys/linux/sys/lock.h: Do not include
8125         machine/weakalias.h, since it's not used by this file.
8126
8127 2005-10-26  Jeff Johnston  <jjohnstn@redhat.com>
8128
8129         * libc/Makefile.am: Reorder SUBLIBS so machine and sys
8130         directories can override properly.
8131
8132 2005-10-20  Jeff Johnston  <jjohnstn@redhat.com>
8133
8134         * libc/include/math.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): When
8135         gcc is 3.3 or greater, use special gcc builtins.
8136
8137 2005-10-20  Corinna Vinschen <corinna@vinschen.de>
8138
8139         * libc/include/sys/time.h: Declare futimes and lutimes for Cygwin.
8140
8141 2005-10-18  Corinna Vinschen <corinna@vinschen.de>
8142
8143         * libc/include/sys/features.h: Define _POSIX_MEMLOCK_RANGE for Cygwin.
8144
8145 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
8146
8147         * libc/include/math.h (HUGE_VALF, HUGE_VALL): New.
8148         * libm/common/Makefile.am: Add s_infconst.c support.
8149         * libm/common/Makefile.in: Regenerated.
8150         * libm/common/s_infconst.c: New file with float and
8151         long double infinity support added.
8152         * libm/math/Makefile.am: Remove s_infconst.c support.
8153         * libm/math/Makefile.in: Regenerated.
8154         * libm/math/s_infconst.c: Moved to common directory.
8155         * libm/mathfp/Makefile.am: Remove s_infconst.c support.
8156         * libm/mathfp/Makefile.in: Regenerated.
8157         * libm/mathfp/s_infconst.c: Moved to common directory.
8158
8159 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
8160
8161         * libc/sys/linux/net/gethostbydns.c (dprintf): Rename to
8162         dbgprintf to prevent conflict with new dprintf function.
8163
8164 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
8165
8166         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix up "inf" and
8167         "nan" processing for systems that have long double support.
8168
8169 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
8170
8171         * libc/sys/linux/sys/types.h (int8_t): Add type.
8172
8173 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
8174
8175         * libm/common/Makefile.am (doc): Do not append to $(TARGETDOC).
8176         * libm/common/Makefile.in: Regenerate.
8177         * libm/common/common.tex: Delete file.
8178         * libm/math/math.tex: Include .def files from common/.
8179         * libm/mathfp/mathfp.tex: Likewise.
8180
8181 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
8182
8183         * libc/libc.texinfo (Top): Surround this node with @ifnottex
8184         instead of @ifinfo.  Update menu to add Introduction and match
8185         SUBDIRS order.
8186         (Introduction): New section.
8187
8188 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
8189
8190         * libc/reent/reent.tex (Reentrancy): Replace "Cygnus C Library"
8191         with "Red Hat newlib C Library".
8192         * libc/sys.tex (Stubs): Likewise.
8193         * libm/math/math.tex (Math): Likewise.
8194         * libm/mathfp/mathfp.tex (Math): Likewise.
8195
8196 2005-10-11  Shaun Jackman  <sjackman@gmail.com>
8197
8198         * libc/include/stdio.h (dprintf): New declaration.
8199         (vdprintf): Ditto.
8200         * libc/stdio/Makefile.am (GENERAL_SOURCES): Add dprintf.c
8201         and vdprintf.c.
8202         * libc/stdio/Makefile.in: Regenerate.
8203         * libc/stdio/dprintf.c: New file.
8204         * libc/stdio/vdprintf.c: New file.
8205         * libc/stdio/stdio.tex (dprintf): New entry.
8206
8207 2005-10-11  David Weatherford  <weath@tensilica.com>
8208
8209         * libc/stdio/vfprintf.c (_VFPRINTF_R): Recognize 'F' format.
8210         Print "inf" and "nan" in lowercase for e/f/g formats and in
8211         uppercase for E/F/G formats.
8212
8213 2005-10-07  Bob Wilson  <bob.wilson@acm.org>
8214
8215         * libc/stdlib/mallocr.c (mALLOc, rEALLOCc, mEMALIGn): Set errno
8216         to ENOMEM on failure.
8217
8218 2005-10-06  Ralf Corsepius <ralf.corsepius@rtems.org>
8219
8220         * libc/include/stdint.h: Add [u]int_fast<N>_t types.
8221
8222 2005-10-04  Ralf Corsepius <ralf.corsepius@rtems.org>
8223
8224         * libc/include/stdint.h: Move magic to set __have_long* to the
8225         beginning.  Use #if __have* instead of #if defined(__have*).
8226         Minor typo fixes.
8227
8228 2005-10-04  James E Wilson  <wilson@specifix.com>
8229
8230         * libc/include/sys/dirent.h (_DIRENT_H_): Delete #include_next.  Add
8231         #error.
8232
8233 2005-10-03  Jeff Johnston  <jjohnstn@redhat.com>
8234
8235         * libc/sys/linux/include/stdint.h: Include <sys/types.h> and
8236         incorporate Ralf's change below.
8237
8238 2005-10-03  Ralf Corsepius <ralf.corsepius@rtems.org>
8239
8240         * libc/include/stdint.h:
8241         Use __INTMAX_TYPE__ to derive intmax_t.
8242         Use __UINTMAX_TYPE__ to derive uintmax_t.
8243         Fix minor typo.
8244
8245 2005-09-27  Ralf Corsepius <ralf.corsepius@rtems.org>
8246
8247         * libc/include/stdint.h: Correct __STDINT_EXP macro incorrectly
8248         handling GCC >= 4.
8249
8250 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
8251
8252         * libc/sys/linux/include/stdint.h: Update to match functionality
8253         of generic newlib stdint.h.
8254
8255 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
8256
8257         * libc/include/stdint.h (__EXP): Rename to __STDINT_EXP
8258         and do not #undef the macro after it is used.  Fix typos.
8259         Also change 64-bit constants to use the __have_long64 and
8260         __have_longlong64 flags to determine if long or long long
8261         constants should be used.
8262         * libc/include/inttypes.h: Include stddef.h to get wchar_t
8263         type defined.
8264
8265 2005-09-20  Shaun Jackman  <sjackman@gmail.com>
8266
8267         * libc/include/stdint.h: Fix typo in names of
8268         LEAST macros.
8269
8270 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
8271
8272         * libc/sys/rtems/include/inttypes.h: Moved to...
8273         * libc/include/inttypes.h: ...here.
8274
8275 2005-09-19  Jeff Johnston  <jjohnstn@redhat.com>
8276
8277         * libc/sys/rtems/include/stdint.h: Moved to...
8278         * libc/include/stdint.h: ...here.
8279
8280 2005-09-08  Jeff Johnston  <jjohnstn@redhat.com>
8281
8282         * Makefile.am: Add include files under bits sub-directory.
8283         * Makefile.in: Regenerated.
8284         * libc/sys/linux/argp/argp-fs-xinl.c: Set __OPTIMIZE__ to
8285         actual value of 1 to be compatible with newer glibc headers.
8286         * libc/sys/linux/sys/cdefs.h: Fix to be compatible with newer
8287         glibc headers.
8288         * libc/sys/linux/sys/dirent.h: Ditto.
8289         * libc/sys/linux/argp/argp-xinl.c: Ditto.
8290         * libc/sys/linux/dl/dl-runtime.c: Make sure fixup and
8291         profile_fixup routines are marked used so they won't be
8292         optimized away.
8293         * libc/sys/linux/dl/dl-cache.c: Don't use weak_extern macro
8294         to mark functions as weak.
8295         * libc/sys/linux/dl/dl-open.c: Ditto.
8296         * libc/sys/linux/iconv/gconv_open.c: Fix to obey new gcc4
8297         rules about lvalues.
8298         * libc/sys/linux/iconv/gconv_simple.c: Ditto.
8299         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Don't use
8300         weak_extern macro to mark functions as weak.  Instead always
8301         use #pragma weak.
8302         * iconvdata/jis0208.h: Fix to work with gcc4.
8303         * libc/sys/linux/dl/dl-load.c: Ditto.
8304         * libc/sys/linux/dl/dl-reloc.c: Ditto.
8305         * libc/sys/linux/dl/do-rel.h: Ditto.
8306         * libc/sys/linux/dl/dynamic-link.h: Ditto.
8307         * libc/sys/linux/include/ltdl.h: Ditto.
8308         * libc/sys/linux/machine/i386/dl-machine.h: Ditto.
8309         * libc/sys/linux/machine/i386/weakalias.h: Ditto.
8310         * libc/sys/linux/net/ns_ntoa.c: Ditto.
8311         * libc/sys/linux/bits/initspin.h: New file.
8312         * libc/sys/linux/bits/libc-lock.h: Ditto.
8313         * libc/sys/linux/bits/pthreadtypes.h: Ditto.
8314         * libc/sys/linux/bits/typesizes.h: Ditto.
8315
8316 2005-09-08  Eric Blake  <ebb9@byu.net>
8317
8318         * libc/argz/argz_insert.c (argz_insert): Don't die with EINVAL when
8319         before is NULL.
8320
8321 2005-09-08  Brian Dessent  <brian@dessent.net>
8322
8323         * sf_lrint.c (lrintf): Mask 'i0' correctly when extracting
8324         mantissa.
8325         * s_lrint.c: Ditto.
8326
8327 2005-09-02  Jeff Johnston  <jjohnstn@redhat.com>
8328
8329         * libc/include/stdio.h: Add prototype for viprintf.
8330
8331 2005-09-01  Jeff Johnston  <jjohnstn@redhat.com>
8332
8333         * libm/mathfp/s_pow.c: (pow): Change code so 0 raised to
8334         any positive power results in 0.
8335         * libm/mathfp/sf_pow.c (powf): Ditto.
8336
8337 2005-08-31  Paul Brook  <paul@codesourcery.com>
8338
8339         * configure.host: Set have_crt0 to no for Arm targts when not
8340         providing syscalls.  Set sys_dir=arm unconditionally.
8341         Default have_crt0 based on sys_dir.
8342         * configure.in: Use have_crt0.
8343         * libc/configure.in: Ditto.
8344         * libc/sys/configure.in: Ditto.
8345         * configure: Regenerate.
8346         * libc/configure: Regenerate.
8347         * libc/sys/configure: Regenerate.
8348         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add aeabi_atexit.c.
8349         Only build other files when providing syscalls.
8350         * libc/sys/arm/Makefile.in: Regenerate.
8351         * libc/sys/arm/aeabi_atexit.c: New file.
8352
8353 2005-08-26  Christopher Faylor  <cgf@timesys.com>
8354
8355         * libc/include/string.h: Revert previous change.
8356
8357 2005-08-25  Christopher Faylor  <cgf@timesys.com>
8358
8359         * libc/include/string.h: For Cygwin, Define strerror_r as per ISO C.
8360
8361 2005-08-22  Shaun Jackman  <sjackman@gmail.com>
8362
8363         * libc/include/_syslist.h: If HAVE_OPENDIR is not defined,
8364         define _opendir as opendir, _readdir as readdir, and
8365         _closedir as closedir so that the implementations in
8366         libc/posix will be used.
8367
8368 2005-08-10  DJ Delorie  <dj@redhat.com>
8369
8370         * MAINTAINERS (CPU Ports): Add CPU port maintainer section.
8371
8372 2005-08-10  Stephen Huw Clarke  <stephen.clarke@st.com>
8373
8374         * libm/common/sf_fmax.c: Fix to properly handle NaNs.
8375         * libm/common/s_max.c: Ditto.
8376         * libm/common/sf_fmin.c: Ditto.
8377         * libm/common/s_min.c: Ditto.
8378
8379 2005-08-10  DJ Delorie  <dj@redhat.com>
8380
8381         * configure.host: Add m32c support.
8382         * libc/include/machine/ieeefp.h: Likewise.
8383         * libc/include/machine/setjmp.h: Likewise.
8384         * libc/include/sys/config.h: Likewise.
8385         * libc/machine/m32c: New directory, Renesas R8C/M16C/M32C support.
8386         * libc/machine/m32c/aclocal.m4: New file.
8387         * libc/machine/m32c/configure: Ditto.
8388         * libc/machine/m32c/configure.in: Ditto.
8389         * libc/machine/m32c/Makefile.am: Ditto.
8390         * libc/machine/m32c/Makefile.in: Ditto.
8391         * libc/machine/m32c/setjmp.S: Ditto.
8392
8393 2005-08-02  Bob Wilson  <bob.wilson@acm.org>
8394
8395         * libm/math/ef_hypot.c (__ieee754_hypotf): Add missing exponent bias
8396         to the value for 2^126.
8397
8398 2005-07-26  Hans-Peter Nilsson  <hp@bitrange.com>
8399
8400         * libc/machine/cris/libcdtor.c (defaultors): Mark artificially as
8401         used.
8402
8403 2005-07-20  Bob Wilson  <bob.wilson@acm.org>
8404            Darin Petkov <darin@tensilica.com>
8405
8406        * libm/math/ef_atan2.c (pi, pi_lo): Use round-to-nearest value of pi.
8407
8408 2005-07-19  Paul Brook  <paul@codesourcery.com>
8409
8410         * libc/sys/arm/crt0.S: Ensure doubleword stack alignment.
8411
8412 2005-07-18  Joseph S. Myers  <joseph@codesourcery.com>
8413
8414         * testsuite/lib/checkoutput.exp (newlib_check_output): Use test
8415         names after PASS and FAIL which do not depend on source directory
8416         name or on whether test passed or failed.
8417         * testsuite/lib/passfail.exp (newlib_pass_fail): Likewise.
8418
8419 2005-07-08  Ola Hugosson   <Ola.Hugosson@anoto.com>
8420
8421         * libc/string/wcsspn.c (wcsspn): Add missing increment of q.
8422
8423 2005-07-07  Shaun Jackman  <sjackman@gmail.com>
8424
8425         * libc/unix/ttyname.c (ttyname): Avoid calling _closedir
8426         twice for the same directory. _closedir calls free, and freeing
8427         the same pointer twice may cause a crash.
8428
8429 2005-07-06  Aldy Hernandez  <aldyh@redhat.com>
8430
8431         * configure.host: Added entry for ms1*.
8432         * libc/include/machine/ieeefp.h: Handle ms1.
8433         * libc/include/machine/setjmp.h (_JBLEN): Define for ms1.
8434         * libc/machine/ms1/aclocal.m4: New.
8435         * libc/machine/ms1/configure: New.
8436         * libc/machine/ms1/configure.in: New.
8437         * libc/machine/ms1/Makefile.am: New.
8438         * libc/machine/ms1/Makefile.in: New.
8439         * libc/machine/ms1/setjmp.S: New.
8440
8441 2005-07-04  Mark Mitchell  <mark@codesourcery.com>
8442
8443         * Makefile.am (site.exp): Set tmpdir.
8444         * Makefile.in: Regenerated.
8445         * testsuite/lib/checkoutput.exp (newlib_check_output): Put
8446         executables in $tmpdir.
8447         * testsuite/lib/flags.exp (libgloss_link_flags): Use the original
8448         libgloss version if not running in the build directory.
8449         * testsuite/lib/newlib.exp (newlib_init): Put testglue.o in
8450         $tmpdir.
8451         * testsuite/lib/passfail.exp (newlib_pass_fail): Put executables
8452         in $tmpdir.
8453
8454 2005-06-28  Dave Korn  <dave.korn@artimi.com>
8455
8456         * libm/common/s_lrint.c (lrint):  Fix signed-vs-unsigned comparison
8457         and miscalculation caused by fp representation of zero.
8458         * libm/common/sf_lrint.c (lrintf):  Likewise.
8459
8460 2005-06-16  Christopher Faylor  <cgf@timesys.com>
8461
8462         * libc/stdio/vfprintf.c (cvt): Don't rely on pointer aliasing to
8463         determine characteristics of long double.  Use a union instead.
8464         * ldtoa.c (_ldtoa_r): Ditto.
8465         (_ldcheck): Ditto.
8466         (_strtold): Ditto.
8467         (union uconv): New union.
8468
8469 2005-06-03  Jeff Johnston  <jjohnstn@redhat.com>
8470
8471         * libc/stdlib/mallocr.c (MALLOC_COPY): Switch to use memmove
8472         instead of memcpy.
8473
8474 2005-05-12  Jeff Johnston  <jjohnstn@redhat.com>
8475
8476         * configure.host (mn10300-*): Add long long I/O support by default.
8477
8478 2005-05-12  Jeff Johnston  <jjohnstn@redhat.com>
8479
8480         * libc/sys/linux/getpwuid.c: Removed.
8481         * libc/sys/linux/getpwnam.c: Removed.
8482         * libc/sys/linux/getpwent.c: New file containing logic
8483         from files removed above.  This allows overriding of file
8484         in libc/unix.
8485         * libc/sys/linux/Makefile.am: Support changes above.
8486         * libc/sys/linux/Makefile.in: Regenerated.
8487
8488 2005-04-28  Jeff Johnston  <jjohnstn@redhat.com>
8489
8490         * libc/stdio/vfscanf.c (__svfscanf_r): Fix code thinko
8491         when checking for multiple flags.
8492
8493 2005-04-18  Hans-Peter Nilsson  <hp@axis.com>
8494
8495         * configure.host <cris-*-* | crisv32-*-*>: Set
8496         default_newlib_io_long_long="yes".
8497
8498 2005-04-08  Jeff Johnston  <jjohnstn@redhat.com>
8499
8500         * libc/include/libgen.h: New file.
8501
8502 2005-04-08  Shaun Jackman  <sjackman@gmail.com>
8503
8504         * libc/unix/Makefile.am: Add support for basename and dirname.
8505         * libc/unix/Makefile.in: Regenerated.
8506         * libc/unix/basename.c: New file.
8507         * libc/unix/dirname.c: New file.
8508
8509 2005-04-07  Shaun Jackman  <sjackman@gmail.com>
8510
8511         * libc/sys/linux/inode.c (lchown): New function.
8512
8513 2005-04-07  Shaun Jackman  <sjackman@gmail.com>
8514
8515         * libc/unix/Makefile.am (LIB_OBJS): Include all the ELIX objects if no
8516         ELIX level is defined.
8517         * libc/unix/Makefile.in: Regenerated.
8518
8519 2005-04-05  Dave Korn  <dave.korn@artimi.com>
8520
8521         * libc/stdio/vfscanf.c (__svfscanf_r): If an error occurs processing
8522         something that looks like a "NaN", put back the characters processed.
8523
8524 2005-04-01  Corinna Vinschen  <corinna@vinschen.de>
8525
8526         * libc/stdlib/strtod.c (_strtod_r): Never change s00.
8527
8528 2005-03-23  Christopher Faylor  <cgf@timesys.com>
8529
8530         * configure.host: For cygwin, redefine CC with cygwin include directory
8531         first to mimic the behavior of the top-level configury.  Move include
8532         directory out of newlib_cflags.
8533
8534 2005-03-22  Jeff Johnston  <jjohnstn@redhat.com>
8535
8536         * configure.host: For arc, set -DREENTRANT_SYSCALLS_PROVIDED flag on.
8537         * libc/sys/arc/syscalls.c: Change functions to use __errno_r rather
8538         than errno.
8539
8540 2005-03-22  Christopher Faylor  <cgf@timesys.com>
8541
8542         * libc/include/machine/_types.h: Make trivial change to comment to
8543         avoid a spurious warning from gcc.
8544
8545 2005-03-21  Nicholas Wourms  <nwourms@netscape.net>
8546
8547         * libc/stdio/vfprintf.c: Move newlib.h before _WANT_IO_POS_ARGS test,
8548         since _WANT_IO_POS_ARGS is now defined in there.  Remove duplicate
8549         reent.h include.
8550
8551 2005-03-18  Hans-Peter Nilsson  <hp@axis.com>
8552             Corinna Vinschen  <corinna@vinschen.de>
8553
8554         * libc/include/ctype.h: Remove invalid +1 offset from
8555         ctype macro references to __ctype_ptr.
8556         (_ctype_): Move declaration outside #ifndef __cplusplus.
8557
8558 2005-03-18  Corinna Vinschen  <corinna@vinschen.de>
8559
8560         * libc/include/machine/setjmp.h (sigsetjmp): Use GCC extension to
8561         evaluate first parameter only once.
8562         (siglongjmp): Ditto.
8563
8564 2005-03-17  Jeff Johnston  <jjohnstn@redhat.com>
8565
8566         * configure.in: Add new check to see if compiler supports
8567         aliasing of arrays and define _HAVE_ARRAY_ALIASING if true.
8568         * configure: Regenerated.
8569         * Makefile.in: Ditto.
8570         * newlib.hin: Add _HAVE_ARRAY_ALIASING.
8571         * libc/ctype/ctype_.c: Check for _HAVE_ARRAY_ALIASING before
8572         aliasing the _ctype_ array to _ctype_b.
8573         * libc/include/ctype.h: Change macros to use __ctype_ptr.  Mark
8574         _ctype_ as deprecated.
8575
8576 2005-03-17  Hans-Peter Nilsson  <hp@axis.com>
8577
8578         * configure.host (newlib_cflags) <cris-*-*, crisv32-*-*>: Add
8579         -DCOMPACT_CTYPE.
8580
8581 2005-03-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
8582
8583         * libc/sys/rtems/include/inttypes.h: New file.
8584         * libc/sys/rtems/include/stdint.h: Ditto.
8585
8586 2005-03-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
8587
8588         * libc/string/memcmp.c: Fix to avoid pointer signedness warning.
8589
8590 2005-03-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
8591
8592         * libc/include/machine/_types.h: New file.
8593         * libc/include/sys/types.h: Do not check for __rtems__
8594         when including <machine/_types.h>.  Remove some redundant
8595         declarations now that <machine/_types.h> is included.
8596         * libc/sys/rtems/machine/_types.h: Removed.  Replaced with
8597         shared header file.
8598
8599 2005-02-25  Ralf Corsepius  <ralf.corsepius@rtems.org>
8600
8601         * libm/common/fdlibm.h (FLT_UWORD_MAX, FLT_UWORD_HALF_MAX): Add
8602         L qualifier for these long constants.
8603
8604 2005-02-25  Eric Blake  <ebb9@byu.net>
8605
8606         * libc/include/time.h (__tzrule_struct): Make offset long, since
8607         a 16-bit int overflows on a 12-hour offset.
8608         * libc/sys/linux/include/time.h: Ditto.
8609         * libc/time/mktime.c (mktime): Use new type of __tzrule.offset.
8610         * libc/time/mktm_r.c: Ditto.
8611         * libc/time/gettzinfo.c: Ditto.
8612         * libc/time/strftime.c (strftime): Fix '%x' to deal with negative
8613         years.  Fix '%z' to use long, not int.
8614
8615 2005-02-24  Ralf Corsepius  <ralf.corsepius@rtems.org>
8616
8617         * libm/common/s_fpclassify.c: Use __uint32_t instead of int to
8618         manipulate float values in integer form.
8619         * libm/common/sf_round.c: Ditto.
8620
8621 2005-02-24  Ralf Corsepius  <ralf.corsepius@rtems.org>
8622
8623         * libc/include/sys/types.h [__rtems__]: Include new
8624         header file machine/_types.h.
8625         * libc/include/machine/types.h: Ditto.
8626         * libc/sys/rtems/machine/_types.h: New file.
8627
8628 2005-02-23  Corinna Vinschen  <corinna@vinschen.de>
8629
8630         * libc/include/time.h (_timezone): Change to long also for Cygwin.
8631         (timezone): Drop cast from definition.
8632
8633 2005-02-23  Jeff Johnston  <jjohnstn@redhat.com>
8634
8635         * libc/include/time.h [!CYGWIN](_timezone): Change to long.
8636         (__tzrule_type, __tzinfo_type): New types.
8637         (__gettzinfo): New function.
8638         * libc/sys/linux/include/time.h: Ditto.
8639         * libc/time/Makefile.am: Add gettzinfo.c.
8640         * libc/time/Makefile.in: Regenerated.
8641         * libc/time/local.h: Moved __tzrule_type to time.h.
8642         * libc/time/mktime.c: Call __gettzinfo to reference
8643         __tznorth, __tzyear, and __tzrule array.
8644         * libc/time/mktm_r.c: Ditto.
8645         * libc/time/strftime.c: Ditto.
8646         * libc/time/tzset_r.c: Ditto.  Also remove definition
8647         of __tzrule which is now in gettzinfo.c.  Change _timezone
8648         references to not cast to time_t.
8649         * libc/time/gettzinfo.c: New file.
8650
8651 2005-02-23  Corinna Vinschen  <corinna@vinschen.de>
8652
8653         * libc/include/sys/unistd.h: Define getpeereid for Cygwin.
8654
8655 2005-02-22  Corinna Vinschen  <corinna@vinschen.de>
8656
8657         * libc/include/sys/unistd.h: Define fdatasync also for Cygwin.
8658
8659 2005-02-16  Eric Blake  <ebb9@byu.net>
8660
8661         * libc/time/time.tex: Improve the documentation.
8662         * libc/time/strftime.c: Improve the documentation.
8663         (iso_year_adjust): New helper function.
8664         (strftime): Simplify '%E' and '%O'. Change '%c' to use
8665         recursion. Fix '%C', '%y', and '%Y' to deal with years with more
8666         than 4 characters.  Combine '%d' and '%e'. Implement '%D', '%F',
8667         '%g', '%G', '%n', '%R', '%t', '%T', '%u', '%V', '%X', and '%z'.
8668         Avoid core dumps on valid inputs (maxsize == 0, or
8669         tim_p->tm_isdst > 1).
8670
8671 2005-02-08  Corinna Vinschen  <corinna@vinschen.de>
8672
8673         * libc/include/pwd.h (struct passwd): Change pw_uid and pw_gid
8674         members to uid_t and gid_t according to SUSv3.
8675         * libc/include/sys/time.h (utimes):  Change second parameter
8676         to const according to SUSv3.
8677
8678 2005-02-07  Antony King  <antony.king@st.com>
8679
8680         * libc/stdio/clearerr.c (clearerr): Ensure CHECK_INIT() is
8681         called before _flockfile to prevent lock object use before
8682         initialisation. _REENT_SMALL_CHECK_INIT() and CHECK_INIT()
8683         take a struct _reent * instead of a FILE *.
8684         * libc/stdio/fclose.c (_fclose_r): Ditto.
8685         * libc/stdio/feof.c (feof): Ditto.
8686         * libc/stdio/ferror.c (ferror): Ditto.
8687         * libc/stdio/fflush.c (fflush): Ditto.
8688         * libc/stdio/fgetc.c (fgetc): Ditto.
8689         * libc/stdio/fgets.c (fgets): Ditto.
8690         * libc/stdio/fileno.c (fileno): Ditto.
8691         * libc/stdio/fputc.c (fputc): Ditto.
8692         * libc/stdio/fputs.c (fputs): Ditto.
8693         * libc/stdio/fread.c (fread): Ditto.
8694         * libc/stdio/freopen.c (_freopen_r): Ditto.
8695         * libc/stdio/fseek.c (_fseek_r): Ditto.
8696         * libc/stdio/ftell.c (_ftell_r): Ditto.
8697         * libc/stdio/fwrite.c (fwrite): Ditto.
8698         * libc/stdio/getc.c (getc): Ditto.
8699         * libc/stdio/getdelim.c (__getdelim): Ditto.
8700         * libc/stdio/putc.c (putc): Ditto.
8701         * libc/stdio/setvbuf.c (setvbuf): Ditto.
8702         * libc/stdio/ungetc.c (_ungetc_r): Ditto.
8703         * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
8704         * libc/stdio64/freopen64.c (_freopen64_r): Ditto.
8705         * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
8706         * libc/stdio64/ftello64.c (_ftello64_r): Ditto.
8707         * libc/stdio/local.h (CHECK_INIT): Argument is now a struct
8708         _reent * instead of a FILE * and so replace incorrect use of
8709         _REENT with argument.
8710         * libc/sys/arm/syscalls.c (CHECK_INIT): Ditto.
8711         * libc/stdio/getchar.c (getchar): _REENT_SMALL_CHECK_INIT() and
8712         CHECK_INIT() take a struct _reent * instead of a FILE *.
8713         * libc/stdio/iprintf.c (iprintf, _iprintf_r): Ditto.
8714         * libc/stdio/iscanf.c (iscanf, _iscanf_r): Ditto.
8715         * libc/stdio/perror.c (perror): Ditto.
8716         * libc/stdio/printf.c (printf, _printf_r): Ditto.
8717         * libc/stdio/putchar.c (putchar): Ditto.
8718         * libc/stdio/puts.c (puts): Ditto.
8719         * libc/stdio/refill.c (__srefill): Ditto.
8720         * libc/stdio/scanf.c (scanf, _scanf_r): Ditto.
8721         * libc/stdio/vfscanf.c (VFSCANF, _VFSCANF_R): Ditto.
8722         * libc/stdio/viprintf.c (viprintf, _viprintf_r): Ditto.
8723         * libc/stdio/viscanf.c (viscanf, _viscanf_r): Ditto.
8724         * libc/stdio/vprintf.c (vprintf, _vprintf_r): Ditto.
8725         * libc/stdio/vscanf.c (vscanf, _vscanf_r): Ditto.
8726         * libc/stdio/wbuf.c (__swbuf): Ditto.
8727         * libc/stdio/wsetup.c (__swsetup): Ditto.
8728         * libc/stdlib/mallocr.c (malloc_stats): Ditto.
8729         * libc/stdlib/mstats.c (_mstats_r): Ditto.
8730         * libc/include/sys/reent.h (_REENT_SMALL_CHECK_INIT): Ditto.
8731         * libc/machine/powerpc/vfscanf.c (vfscanf): Ditto.
8732         * libc/stdio/fgetpos.c (_fgetpos_r): Removed unnecessary calls
8733         to _flockfile and _funlockfile; rely on locking in _ftell_r.
8734         * libc/stdio64/fgetpos64.c (_fgetpos64_r): Ditto (_ftello64_r).
8735         * libc/machine/powerpc/vfprintf.c (__sbprintf): Removed unnecessary
8736         initialision of _data field in FILE structure.
8737         * libc/machine/powerpc/vfprintf.c (VFPRINTF): Added CHECK_INIT() call.
8738
8739 2005-02-07  Jeff Johnston  <jjohnstn@redhat.com>
8740
8741         * libc/stdio/findfp.c (__sinit): Protect with new lock.
8742         (__sinit_lock): New lock.
8743         (__sinit_lock_acquire, __sinit_lock_release): New functions.
8744         * libc/stdio/local.h: Add reference to new __sinit locking
8745         functions.
8746
8747 2005-02-07  Jeff Johnston  <jjohnstn@redhat.com>
8748
8749         * libc/include/math.h (isfinite, isnormal, isunordered): Change
8750         input variable names to avoid mixups with nesting macros.
8751
8752 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
8753
8754         * configure.host: Add support for cris-*-* and crisv32-*-*.
8755         * libc/include/machine/ieeefp.h: Ditto.
8756         * libc/include/machine/setjmp.h: Ditto.
8757         * libc/machine/cris/configure.in, libc/machine/cris/Makefile.am,
8758         libc/machine/cris/libcdtor.c, libc/machine/cris/setjmp.c,
8759         libc/machine/cris/memmove.c, libc/machine/cris/memcpy.c,
8760         libc/machine/cris/memset.c, libc/machine/cris/include/pthread.h,
8761         libc/machine/cris/sys/signal.h, libc/machine/cris/sys/fcntl.h,
8762         libc/machine/cris/sys/errno.h, libc/machine/cris/aclocal.m4,
8763         libc/machine/cris/configure, libc/machine/cris/Makefile.in: New
8764         files.
8765
8766 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
8767
8768         * testsuite/newlib.string/memmove1.c: New test.
8769
8770 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
8771
8772         * testsuite/include/check.h: Include stdlib.h.
8773
8774 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
8775
8776         * Makefile.am (stmp-targ-include): Support include header files
8777         from machine directories.
8778         (install-data-local): Ditto.
8779         * Makefile.in: Regenerate.
8780
8781 2005-01-24  Jeff Johnston  <jjohnstn@redhat.com>
8782
8783         * libc/include/string.h: Remove Linux-specific declaration of
8784         strsignal and add #include <sys/string.h>.
8785         * libc/include/sys/string.h: New file.
8786         * libc/include/sys/linux/sys/string.h: New file with strsignal
8787         declaration deleted above.
8788
8789 2005-01-20  Jeff Johnston  <jjohnstn@redhat.com>
8790
8791         * libc/time/strftime.c (strftime): Change %r and %x to be compliant
8792         to POSIX standard for "C" locale.  Allow %E and %O modifiers
8793         to be ignored as long as they precede valid specifiers according
8794         to POSIX.
8795
8796 2005-01-19  Shaun Jackman  <sjackman@gmail.com>
8797
8798         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
8799         environment variable is set.
8800
8801 2005-01-19  Shaun Jackman  <sjackman@gmail.com>
8802
8803         * tzset_r.c (_tzname): Add a comma.
8804
8805 2005-01-18  Aldy Hernandez  <aldyh@redhat.com>
8806
8807         * libc/machine/powerpc/vfprintf.c: Use _REENT when calling
8808         _VFPRINTF_R.
8809
8810 2005-01-07  Paul Brook  <paul@codesourcery.com>
8811
8812         * configure.in: Add test for .init_array.
8813         * configure: Regenerate.
8814         * newlib.hin: Add HAVE_INITFINI_ARRAY.
8815         * libc/misc/Makefile.am: Add init.c
8816         * libc/misc/Makefile.in: Regenerate.
8817         * libc/misc/init.c: New file.
8818         * libc/sys/arm/crt0.S: Call __libc_{init,fini}_array instead of
8819         _init/_fini if they exist.
8820
8821 2005-01-06  Jeff Johnston  <jjohnstn@redhat.com>
8822
8823         * libc/stdlib/strtod.c (_strtod_r): Add NaN support.
8824         * (strtof): Ditto.
8825         * libc/stdio/vfscanf.c (__svfscanf_r): Ditto.
8826         * Makefile.am (MATHOBJS_IN_LIBC): Add s_nan and sf_nan
8827         functions for use by strtod and strtof.
8828         * Makefile.in: Regenerated.
8829
8830 2005-01-06  Hans-Peter Nilsson  <hp@axis.com>
8831
8832         * libc/stdio/ftell.c (ftell_r): Add parenthesis for __SWR
8833         bit-test in combination with NULL test.
8834
8835 2005-01-06  Hans-Peter Nilsson  <hp@axis.com>
8836
8837         * README: Fix typo of LGPL.  Change "license" to "copyright".
8838
8839 2004-12-17  Jeff Johnston  <jjohnstn@redhat.com>
8840
8841         * NEWS: Update with 1.13.0 info.
8842         * README: Ditto.
8843         * acinclude.m4: Change version number to 1.13.0.
8844         * aclocal.m4: Regenerated.
8845         * configure: Ditto.
8846         * doc/aclocal.m4: Ditto.
8847         * doc/configure: Ditto.
8848         * libc/*/aclocal.m4: Ditto.
8849         * libc/*/configure: Ditto.
8850         * libc/libc.texinfo: Ditto.
8851         * libm/*/aclocal.m4: Ditto.
8852         * libm/*/configure: Ditto.
8853         * libm/libm.texinfo: Ditto.
8854         * libc/sys/linux/shared.ld: Add VERS_1.13.
8855
8856 2004-12-17  Christian Groessler  <chris@groessler.org>
8857
8858         * libc/machine/z8k/memcmp.S: New file.
8859         * libc/machine/z8k/memcpy.S: Ditto.
8860         * libc/machine/z8k/memmove.S: Ditto.
8861         * libc/machine/z8k/memset.S: Ditto.
8862         * libc/machine/z8k/Makefile.am: Add new files.
8863         * libc/machine/z8k/Makefile.in: Regenerated.
8864         * libc/machine/z8k/setjmp.S: Fix indirect register usage in Z8002
8865         part.  Implement Z8002 stdcall version.
8866
8867 2004-12-13  Jeff Johnston  <jjohnstn@redhat.com>
8868
8869         * libc/stdio/fread.c (fread): For unbuffered I/O, attempt
8870         a low-level read if we don't get the full amount of bytes so
8871         EOF or error flags will be set.
8872
8873 2004-12-09  Alex Mogilnikov  <alx@intellectronika.ru>
8874
8875         * libc/time/tzset_r (_tzset_r): Properly skip over
8876         '/' when it is detected.
8877
8878 2004-12-08  Alex Mogilnikov  <alx@intellectronika.ru>
8879
8880         * libc/time/tzset_r (_tzset_r): Fix loop.
8881
8882 2004-12-08  Alex Mogilnikov  <alx@intellectronika.ru>
8883
8884         * libc/time/mktm_r (_mktm_r): Fix overflow calculation for
8885         m_day.
8886         (__tzcalc_limits): Fix reference to month array to be zero-based.
8887
8888 2004-12-07  Jeff Johnston  <jjohnstn@redhat.com>
8889
8890         * libc/sys/linux/sys/unistd.h: Add prototypes for ftruncate, truncate,
8891         and usleep.
8892
8893 2004-12-03  Jeff Johnston  <jjohnstn@redhat.com>
8894
8895         * Makefile.am (libc_la_LDFLAGS): Add -lgcc to handle any
8896         libgcc dependencies.
8897         (libm_la_LDFLAGS): Ditto.
8898         * Makefile.in: Regenerated.
8899
8900 2004-12-03  Shaun Jackman  <sjackman@gmail.com>
8901
8902         * libc/sys/linux/linuxthreads/Makefile.am (install-data-local): Fix
8903         our link to use readlink so as to preserve any relative link created
8904         by install-toollibLIBRARIES.
8905         * libc/sys/linux/linuxthreads/Makefile.in: Regenerated.
8906
8907 2004-12-02  Shaun Jackman  <sjackman@gmail.com>
8908
8909         * libc/sys/linux/stdlib/glob.c: Include <sys/types.h> which defines
8910         time_t before including sys/stat.h, which uses it.
8911         * libc/sys/linux/sys/stat.h: Include <sys/types.h> and
8912         <linux/time.h> just prior to definition of __KERNEL__ so as to
8913         allow building on Debian Linux where otherwise, mktime would
8914         be redefined.
8915
8916 2004-11-26  Paul Brook  <paul@codesourcery.com>
8917
8918         * libc/sys/arm/crt0.S (_start): Add .cantunwind annotation.
8919
8920 2004-11-24  Jeff Johnston  <jjohnstn@redhat.com>
8921
8922         * libc/include/stdlib.h (putenv, _putenv_r): Change to remove
8923         const for value string parameter to match Single Unix and glibc.
8924         * libc/stdlib/putenv.c: Ditto.
8925         * libc/stdlib/putenv_r.c: Ditto.
8926
8927 2004-11-24  Jeff Johnston  <jjohnstn@redhat.com>
8928
8929         * libc/stdio/Makefile.am: Fix missing vfscanf.
8930         * libc/stdio/Makefile.in: Regenerated.
8931
8932 2004-11-23  Jeff Johnston  <jjohnstn@redhat.com>
8933
8934         * libc/include/stdio.h: Add new iprintf and iscanf variants.  Also
8935         do some reordering.
8936         * libc/machine/powerpc/vfscanf.c: Remove __sccl function.
8937         * libc/stdio/Makefile.am: Add support for new iprintf and iscanf
8938         family functions.
8939         * libc/stdio/Makefile.in: Regenerated.
8940         * libc/stdio/fiprintf.c: Remove doc to siprintf.c.
8941         * libc/stdio/iprintf.c: Ditto.
8942         * libc/stdio/local.h (__svfiscanf_r): New prototype.
8943         * libc/stdio/siprintf.c: Add docs for various iprintf family functions.
8944         * libc/stdio/sniprintf.c: Move docs to siprintf.c.
8945         * libc/stdio/stdio.tex: Add new functions.
8946         * libc/stdio/vfscanf.c: Split out __sccl function to separate
8947         file and add special name defines so this file can be used
8948         to build vfiscanf.o.
8949         * libc/stdio/asiprintf.c: New file.
8950         * libc/stdio/fiscanf.c: Ditto.
8951         * libc/stdio/iscanf.c: Ditto.
8952         * libc/stdio/sccl.c: Ditto.
8953         * libc/stdio/siscanf.c: Ditto.
8954         * libc/stdio/vasiprintf.c: Ditto.
8955         * libc/stdio/viprintf.c: Ditto.
8956         * libc/stdio/viscanf.c: Ditto.
8957         * libc/stdio/vsiprintf.c: Ditto.
8958         * libc/stdio/vsiscanf.c: Ditto.
8959         * libc/stdio/vsniprintf.c: Ditto.
8960
8961 2004-11-19  Shaun Jackman  <sjackman@gmail.com>
8962
8963         * libc/include/stdio.h: Add sniprintf.
8964         * libc/stdio/Makefile.am: Add sniprintf.c.
8965         * libc/stdio/Makefile.in: Regenerated.
8966         * libc/stdio/sniprintf.c: New file.
8967         * libc/stdio/stdio.tex: Add sniprintf.
8968
8969 2004-11-17  Christopher Faylor  <cgf@timesys.com>
8970
8971         * libc/stdio/refill.c (__srefill): Try again after EOF on Cygwin.  Clear
8972         EOF flag if successful.
8973
8974 2004-10-28  Christopher Faylor  <cgf@timesys.com>
8975
8976         * libc/include/sys/signal.h: Move <signal.h> include to bottom of file
8977         so that all relevant definitions have been performed for use in the
8978         include.
8979
8980 2004-10-26  Jason Tishler  <jason@tishler.net>
8981
8982         * libc/stdio/fread.c (fread): Fix return value for unbuffered
8983         fread.
8984
8985 2004-10-25  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
8986
8987         * libc/include/machine/setjmp.h: Add AVR support.
8988         * libc/sys/rtems/crt0.S [__AVR__]: Add __stack.
8989
8990 2004-10-08  Jeff Johnston  <jjohnstn@redhat.com>
8991
8992         * libc/include/sys/signal.h: If <signal.h> didn't include
8993         this header file, include <signal.h> to account for
8994         applications that take advantage that the two header
8995         files are the same in glibc.
8996
8997 2004-10-05  Tomer Levi  <Tomer.Levi@nsc.com>
8998
8999         * configure.host: Add support for crx.
9000         * libc/include/machine/ieeefp.h: Ditto.
9001         * libc/include/machine/setjmp.h: Ditto.
9002         * libc/machine/crx/Makefile.am: New file.
9003         * libc/machine/crx/configure.in: Ditto.
9004         * libc/machine/crx/setjmp.S: Ditto.
9005         * libc/machine/crx/getenv.c: Ditto.
9006         * libc/machine/crx/aclocal.m4: Generate.
9007         * libc/machine/crx/configure: Ditto.
9008         * libc/machine/crx/Makefile.in: Ditto.
9009         * libc/machine/crx/sys/asm.h: New file.
9010         * libc/machine/crx/sys/libh.h: Ditto.
9011         * libc/machine/crx/sys/syscall.h: Ditto.
9012
9013 2004-10-05  Jeff Johnston  <jjohnstn@redhat.com>
9014
9015         * Makefile.am (stmp-targ-include): Support sys header files
9016         from machine directories.
9017         * Makefile.in: Regenerated.
9018
9019 2004-10-04  Jeff Johnston  <jjohnstn@redhat.com>
9020
9021         * libc/stdio/vfscanf.c (__svfscanf_r): For int conversions,
9022         count skipped zero characters as part of the nread count for %n.
9023         * libc/machine/powerpc/vfscanf.c: Ditto.
9024
9025 2004-09-24  Jeff Johnston  <jjohnstn@redhat.com>
9026
9027         * libc/stdio/local.h: Include <stdlib.h>.
9028
9029 2004-09-24  Corinna Vinschen  <corinna@vinschen.de>
9030
9031         * libc/stdio/fread.c (fread): Include <malloc.h>.
9032
9033 2004-09-22  Jeff Johnston  <jjohnstn@redhat.com>
9034
9035         * libc/stdio/fread.c (fread):  For non-space-optimized case,
9036         add special code for unbuffered files to use user buffer and
9037         only require one low-level system read.
9038
9039 2004-09-21  Ian Lance Taylor  <ian@wasabisystems.com>
9040
9041         * libc/machine/xscale/setjmp.S: New file, copied from
9042         libc/machine/arm/setjmp.S.
9043         * libc/machine/xscale/Makefile.am (lib_a_SOURCES): Add setjmp.S.
9044         * libc/machine/xscale/Makefile.in: Regenerate.
9045
9046 2004-09-16  Antony King  <antony.king@st.com>
9047
9048         * libc/include/sys/lock.h: Replaced empty {} with (0) to conform
9049         with locking API.
9050         * libc/include/sys/stdio.h: (_flockfile)[!_SINGLE_THREAD]: Add
9051         check for__SSTR in _flags and if set, skip lock request.
9052         (_funlockfile)[!SINGLE_THREAD]: Ditto.
9053         * libc/stdio/local.h (CHECK_INIT): Added check that _REENT is
9054         not NULL.
9055         * libc/stdio/siprintf.c (siprintf, _siprintf_r): Added missing
9056         initialisation of _file to -1 in local FILE.
9057         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Ditto.
9058         * libc/stdio/sscanf.c (sscanf, _sscanf_r): Ditto.
9059         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
9060         * libc/stdio/vsscanf.c (_vsscanf_r): Ditto.
9061         * libc/stdio/sscanf.c (sscanf, _sscanf_r): Added __SSTR flag to
9062         _flags in local FILE to prevent locking.
9063         * libc/stdio/vsscanf.c (_vsscanf_r): Ditto.
9064
9065 2004-09-16  Antony King  <antony.king@st.com>
9066
9067         * libc/stdio/fwalk.c (_fwalk): Remove check for _GLOBAL_REENT
9068         and only walk the reentrancy parameter.
9069         (_fwalk_reent): Ditto.
9070         * libc/stdlib/exit.c: Remove out of date _REENT_ONLY check.
9071
9072 2004-09-16  Antony King  <antony.king@st.com>
9073
9074         * libc/stdio64/freopen64.c: Remove casting of fp lock to
9075         _LOCK_RECURSIVE_T.
9076
9077 2004-09-16  Antony King  <antony.king@st.com>
9078
9079         * libc/time/tzlock.c: Add default stubs that use generic
9080         locking code.
9081
9082 2004-09-16  Antony King  <antony.king@st.com>
9083
9084         * libc/ctype/ctype.tex: Added missing documentation.
9085         * libc/stdio/stdio.tex Ditto.
9086         * libc/stdlib/stdlib.tex Ditto.
9087         * libc/string/strings.tex Ditto.
9088         * libc/time/time.tex: Ditto.
9089         * libc/stdio/setbuffer.c: Removed setlinebuf documentation.
9090
9091 2004-09-15  Corinna Vinschen  <vinschen@redhat.com>
9092
9093         * libc/reent/impure.c (reent_data): Define as alias to impure_data
9094         when building for Cygwin.
9095         * libc/include/sys/reent.h (_GLOBAL_REENT): Revert definition to
9096         _global_impure_ptr.
9097
9098 2004-09-15  Jeff Johnston  <jjohnstn@redhat.com>
9099
9100         * configure.host: Reverting 2004-09-14 change as fix has occurred on
9101         Cygwin side.
9102         * configure.in: Ditto.
9103         * libc/configure.in: Ditto.
9104         * libc/sys/configure.in: Ditto.
9105         * configure: Ditto.
9106         * libc/configure: Ditto.
9107         * libc/sys/configure: Ditto.
9108         * libc/include/sys/reent.h: Ditto.
9109         * libc/stdlib/__atexit.c: Ditto.
9110         * libc/stdlib/__call_atexit.c: Ditto.
9111         * libc/stdlib/cxa_atexit.c: Ditto.
9112         * libc/stdlib/cxa_finalize.c: Ditto.
9113         * libc/sys/cygwin/Makefile.am: Removed again.
9114         * libc/sys/cygwin/Makefile.in: Ditto.
9115         * libc/sys/cygwin/aclocal.m4: Ditto.
9116         * libc/sys/cygwin/configure: Ditto.
9117         * libc/sys/cygwin/configure.in: Ditto.
9118         * libc/sys/cygwin/dummy.c: Ditto.
9119         * libc/sys/cygwin/sys/reent.h: Ditto.
9120
9121 2004-09-14  Jeff Johnston  <jjohnstn@redhat.com>
9122
9123         * configure.host: Add Cygwin sys directory.
9124         * configure.in: Do not set CRT0 for cygwin.
9125         * libc/configure.in: Ditto.
9126         * libc/sys/configure.in: Ditto.
9127         * configure: Regenerated.
9128         * libc/configure: Ditto.
9129         * libc/sys/configure: Ditto.
9130         * libc/include/sys/reent.h: Add __REENT_HAS_CXA_SUPPORT flag.
9131         * libc/stdlib/__atexit.c: Keep cxa support protected by new
9132         __REENT_HAS_CXA_SUPPORT flag.
9133         * libc/stdlib/__call_atexit.c: Ditto.
9134         * libc/stdlib/cxa_atexit.c: Ditto.
9135         * libc/stdlib/cxa_finalize.c: Ditto.
9136         * libc/sys/cygwin/Makefile.am: New file.
9137         * libc/sys/cygwin/Makefile.in: Ditto.
9138         * libc/sys/cygwin/aclocal.m4: Ditto.
9139         * libc/sys/cygwin/configure: Ditto.
9140         * libc/sys/cygwin/configure.in: Ditto.
9141         * libc/sys/cygwin/dummy.c: Ditto.
9142         * libc/sys/cygwin/sys/reent.h: Ditto.  This file is stabilized
9143         version of reent.h.
9144
9145 2004-09-13 Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
9146
9147         * libc/iconv/iconv.tex: Updated with new content.
9148         * libc/iconv/lib/iconvnls.c: Reference ICONV_DEFAULT_NLSPATH
9149         instead of NLS_DEFAULT_NLSPATH.
9150         * libc/iconv/lib/iconvnls.h: Fix typo.
9151         * libc/include/sys/iconvnls.h: New file.
9152
9153 2004-09-09  Paul Brook  <paul@codesourcery.com>
9154
9155         * libc/include/sys/reent.h (struct _on_exit_args): Add _dso_handle
9156         and _is_cxa.
9157         (struct _atexit): Add _next when _REENT_SMALL.
9158         (struct _reent): Add _atexit0 when _REENT_SMALL.
9159         (_REENT_INIT_PTR): Adjust.
9160         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add __atexit.c and
9161         __call_exit.c.
9162         (EXTENDED_SOURCES): Add cxa_atexit.c and cxa_finalize.c.
9163         * libc/stdlib/Makefile.in: Regenerate.
9164         * libc/stdlib/__atexit.c: New file.
9165         * libc/stdlib/__call_atexit.c: New file.
9166         * libc/stdlib/atexit.h: Remove old definitions.  Add new.
9167         * libc/stdlib/atexit.c (atexit): Use __register_exitproc.
9168         * libc/stdlib/cxa_atexit.c: New file.
9169         * libc/stdlib/cxa_finalize.c: New file.
9170         * libc/stdlib/exit.c (exit): Use __call_exitprocs.
9171         * libc/stdlib/on_exit.c (on_exit): Use __register_exitproc.
9172         2004-09-09  Jeff Johnston  <jjohnstn@redhat.com>
9173         * libc/reent/reent.c [_REENT_SMALL]: Fix reference to
9174         _on_exit_args_ptr.
9175
9176 2004-08-23  Jeff Johnston  <jjohnstn@redhat.com>
9177
9178         * libc/include/sys/unistd.h (getpass): Change prototype to use
9179         const instead of __const.
9180
9181 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
9182
9183         * libc/stdio/vfscanf.c (_NO_LONGLONG): Move out of FLOATING_POINT
9184         #if.
9185
9186 2004-08-12  Jeff Johnston  <jjohnstn@redhat.com>
9187
9188         * libc/sys/linux/sys/types.h (u64): New typedef to allow building
9189         on linux systems with glibc 2.3.3 installed.
9190         * libc/sys/linux/dl/dl-runtime.c: Fix prototypes for fixup and
9191         profile_fixup so newlib can build on fc3 system.
9192
9193 2004-07-30  Alexandre Oliva  <aoliva@redhat.com>
9194
9195         Introduce SH2a support.
9196         2004-03-16  Corinna Vinschen  <vinschen@redhat.com>
9197         * libc/include/machine/ieeefp.h: Define _DOUBLE_IS_32BITS for
9198         __SH2A_SINGLE_ONLY__, too.
9199         * libc/machine/sh/asm.h: Define DELAYED_BRANCHES for __SH2A__, too.
9200         2004-02-24  Corinna Vinschen  <vinschen@redhat.com>
9201         * libc/sys/sh/crt0.S (start_l): Support sh2a-nofpu.  Fix comments.
9202         2004-02-10  DJ Delorie  <dj@redhat.com>
9203         * libc/sys/sh/crt0.S (start_l): Support sh2a.
9204
9205 2004-07-29  Jeff Johnston  <jjohnstn@redhat.com>
9206
9207         * libc/time/strptime.c: Correct full-name of "March" typo.
9208
9209 2004-07-16  Anil Paranjpe  <anilp1@kpitcummins.com>
9210
9211         * configure.host (h8300*-*-*): Default long long printing support.
9212
9213 2004-07-16  Jeff Johnston  <jjohnstn@redhat.com>
9214
9215         * libc/stdio/fvwrite.c (_sfvwrite):  For asprintf family
9216         calls, if realloc fails, free up buffer as it is no longer
9217         used.
9218
9219 2004-07-07  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
9220
9221         * libc/iconv/iconv.tex: Updated to represent recent changes.
9222         * libc/iconv/lib/iconv.c: Documentation updated.
9223
9224 2004-07-07  Nick Clifton  <nickc@redhat.com>
9225
9226         * configure.host (newlib_cflags): Define PREFER_SIZE_OVER_SPEED
9227         for xStormy16.
9228
9229 2004-07-06  Chris Demetriou  <cgd@broadcom.com>
9230
9231         * configure.host (mips*-*-elf*): Default long long printing
9232         support.
9233
9234 2004-07-05  Jeff Johnston  <jjohnstn@redhat.com>
9235
9236         * libc/Makefile.am (libc.dvi): Add target and specify
9237         same dependencies as libc.info.
9238         * libc/Makefile.in: Regenerated.
9239         * libm/Makefile.am (libm.dvi): Add target and specify
9240         same dependencies as libm.info.
9241         * libm/Makefile.in: Regenerated.
9242
9243 2004-06-29  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
9244
9245         * acinclude.m4: Move --enable-newlib-iconv option back here.
9246         * configure.in: Remove --enable-newlib-iconv option.  Don't
9247         tie iconv support to --enable-newlib-mb.
9248         * aclocal.m4: Regenerated.
9249         * configure: Ditto.
9250         * doc/aclocal.m4, doc/configure: Ditto.
9251         * iconvdata/aclocal.m4, iconvdata/configure: Ditto.
9252         * libm/*/aclocal.m4: Ditto.
9253         * libm/*/configure: Ditto.
9254         * libc/*/aclocal.m4: Ditto.
9255         * libc/*/configure: Ditto.
9256
9257 2004-06-25  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
9258
9259         * acinclude.m4: Move iconv options into configure.in.
9260         * aclocal.m4: Regenerated.
9261         * configure: Ditto.
9262         * configure.in: Add iconv options.
9263         * newlib.hin: Add new iconv encodings and remove deleted ones.
9264         * doc/aclocal.m4: Regenerated.
9265         * doc/configure: Ditto.
9266         * iconvdata/aclocal.m4: Ditto.
9267         * iconvdata/configure: Ditto.
9268         * libc/iconv: Design change.  New size-optimized ccs format.
9269         * libc/iconv/AUTHORS: Removed.
9270         * libc/iconv/COPYING: Ditto.
9271         * libc/iconv/README.ORIGINAL: Ditto.
9272         * libc/iconv/README.TODO: Ditto.
9273         * libc/iconv/charset.aliases: Ditto.
9274         * libc/iconv/encoding.aliases: New file.
9275         * libc/iconv/Makefile.am: Updated.
9276         * libc/iconv/Makefile.in: Regenerated.
9277         * libc/iconv/iconv.tex: Updated.
9278         * libc/iconv/ccs/Makefile.am: Ditto.
9279         * libc/iconv/ccs/Makefile.in: Regenerated.
9280         * libc/iconv/ccs/big5.c: Updated.
9281         * libc/iconv/ccs/cns11643_plane1.c: Ditto.
9282         * libc/iconv/ccs/cns11643_plane14.c: Ditto.
9283         * libc/iconv/ccs/cns11643_plane2.c: Ditto.
9284         * libc/iconv/ccs/cp775.c: Ditto.
9285         * libc/iconv/ccs/cp850.c: Ditto.
9286         * libc/iconv/ccs/cp852.c: Ditto.
9287         * libc/iconv/ccs/cp855.c: Ditto.
9288         * libc/iconv/ccs/cp866.c: Ditto.
9289         * libc/iconv/ccs/iso_8859_1.c: Ditto.
9290         * libc/iconv/ccs/README.CCS.SOURCES: Removed.
9291         * libc/iconv/ccs/gb_2312_80.c: Ditto.
9292         * libc/iconv/ccs/iconv_mktbl: Ditto.
9293         * libc/iconv/ccs/jis_x0201.c: Ditto.
9294         * libc/iconv/ccs/jis_x0208_1983.c: Ditto.
9295         * libc/iconv/ccs/shift_jis.c: Ditto.
9296         * libc/iconv/ccs/us_ascii.c: Ditto.
9297         * libc/iconv/ccs/ccs.h: New file.
9298         * libc/iconv/ccs/ccsbi.c: Ditto.
9299         * libc/iconv/ccs/ccsbi.h: Ditto.
9300         * libc/iconv/ccs/ccsnames.h: Ditto.
9301         * libc/iconv/ccs/iso_8859_10.c: Ditto.
9302         * libc/iconv/ccs/iso_8859_11.c: Ditto.
9303         * libc/iconv/ccs/iso_8859_13.c: Ditto.
9304         * libc/iconv/ccs/iso_8859_14.c: Ditto.
9305         * libc/iconv/ccs/iso_8859_3.c: Ditto.
9306         * libc/iconv/ccs/iso_8859_6.c: Ditto.
9307         * libc/iconv/ccs/iso_8859_7.c: Ditto.
9308         * libc/iconv/ccs/iso_8859_8.c: Ditto.
9309         * libc/iconv/ccs/iso_8859_9.c: Ditto.
9310         * libc/iconv/ccs/iso_ir_111.c: Ditto.
9311         * libc/iconv/ccs/jis_x0201_1976.c: Ditto.
9312         * libc/iconv/ccs/jis_x0208_1990.c: Ditto.
9313         * libc/iconv/ccs/koi8_ru.c: Ditto.
9314         * libc/iconv/ccs/koi8_uni.c: Ditto.
9315         * libc/iconv/ccs/mktbl.pl: Ditto.
9316         * libc/iconv/ccs/win_1250.c: Ditto.
9317         * libc/iconv/ccs/win_1251.c: Ditto.
9318         * libc/iconv/ccs/win_1252.c: Ditto.
9319         * libc/iconv/ccs/win_1253.c: Ditto.
9320         * libc/iconv/ccs/win_1254.c: Ditto.
9321         * libc/iconv/ccs/win_1255.c: Ditto.
9322         * libc/iconv/ccs/win_1256.c: Ditto.
9323         * libc/iconv/ccs/win_1257.c: Ditto.
9324         * libc/iconv/ccs/win_1258.c: Ditto.
9325         * libc/iconv/ccs/iso_8859_15.c: Updated.
9326         * libc/iconv/ccs/iso_8859_2.c: Ditto.
9327         * libc/iconv/ccs/iso_8859_4.c: Ditto.
9328         * libc/iconv/ccs/iso_8859_5.c: Ditto.
9329         * libc/iconv/ccs/jis_x0212_1990.c: Ditto.
9330         * libc/iconv/ccs/koi8_r.c: Ditto.
9331         * libc/iconv/ccs/koi8_u.c: Ditto.
9332         * libc/iconv/ccs/ksx1001.c: Ditto.
9333         * libc/iconv/ccs/binary/gb_2312_80.cct: Removed.
9334         * libc/iconv/ccs/binary/jis_x0201.cct: Ditto.
9335         * libc/iconv/ccs/binary/shift_jis.cct: Ditto.
9336         * libc/iconv/ccs/binary/us_ascii.cct: Ditto.
9337         * libc/iconv/ccs/binary/jis_x0208_1983.cct: Ditto.
9338         * libc/iconv/ccs/binary/Makefile.am: Updated.
9339         * libc/iconv/ccs/binary/Makefile.in: Regenerated.
9340         * libc/iconv/ccs/binary/big5.cct: Updated.
9341         * libc/iconv/ccs/binary/cns11643_plane1.cct: Ditto.
9342         * libc/iconv/ccs/binary/cns11643_plane14.cct: Ditto.
9343         * libc/iconv/ccs/binary/cns11643_plane2.cct: Ditto.
9344         * libc/iconv/ccs/binary/cp775.cct: Updated.: Ditto.
9345         * libc/iconv/ccs/binary/cp850.cct: Ditto.: Ditto.
9346         * libc/iconv/ccs/binary/cp852.cct: Ditto.: Ditto.
9347         * libc/iconv/ccs/binary/cp855.cct: Ditto.: Ditto.
9348         * libc/iconv/ccs/binary/cp866.cct: Ditto.: Ditto.
9349         * libc/iconv/ccs/binary/iso_8859_1.cct: Ditto.
9350         * libc/iconv/ccs/binary/iso_8859_15.cct: Ditto.
9351         * libc/iconv/ccs/binary/iso_8859_4.cct: Ditto.
9352         * libc/iconv/ccs/binary/iso_8859_5.cct: Ditto.
9353         * libc/iconv/ccs/binary/iso_8859_2.cct: Ditto.
9354         * libc/iconv/ccs/binary/jis_x0212_1990.cct: Ditto.
9355         * libc/iconv/ccs/binary/koi8_r.cct: Ditto.
9356         * libc/iconv/ccs/binary/koi8_u.cct: Ditto.
9357         * libc/iconv/ccs/binary/ksx1001.cct: Ditto.
9358         * libc/iconv/ccs/binary/iso_8859_10.cct: New file.
9359         * libc/iconv/ccs/binary/iso_8859_11.cct: Ditto.
9360         * libc/iconv/ccs/binary/iso_8859_13.cct: Ditto.
9361         * libc/iconv/ccs/binary/iso_8859_14.cct: Ditto.
9362         * libc/iconv/ccs/binary/iso_8859_3.cct: Ditto.
9363         * libc/iconv/ccs/binary/iso_8859_6.cct: Ditto.
9364         * libc/iconv/ccs/binary/iso_8859_7.cct: Ditto.
9365         * libc/iconv/ccs/binary/iso_8859_8.cct: Ditto.
9366         * libc/iconv/ccs/binary/iso_8859_9.cct: Ditto.
9367         * libc/iconv/ccs/binary/iso_ir_111.cct: Ditto.
9368         * libc/iconv/ccs/binary/jis_x0201_1976.cct: Ditto.
9369         * libc/iconv/ccs/binary/jis_x0208_1990.cct: Ditto.
9370         * libc/iconv/ccs/binary/koi8_ru.cct: Ditto.
9371         * libc/iconv/ccs/binary/koi8_uni.cct: Ditto.
9372         * libc/iconv/ccs/binary/win_1250.cct: Ditto.
9373         * libc/iconv/ccs/binary/win_1251.cct: Ditto.
9374         * libc/iconv/ccs/binary/win_1252.cct: Ditto.
9375         * libc/iconv/ccs/binary/win_1253.cct: Ditto.
9376         * libc/iconv/ccs/binary/win_1254.cct: Ditto.
9377         * libc/iconv/ccs/binary/win_1255.cct: Ditto.
9378         * libc/iconv/ccs/binary/win_1256.cct: Ditto.
9379         * libc/iconv/ccs/binary/win_1257.cct: Ditto.
9380         * libc/iconv/ccs/binary/win_1258.cct: Ditto.
9381         * libc/iconv/ces/Makefile.am: Updated.
9382         * libc/iconv/ces/Makefile.in: Regenerated.
9383         * libc/iconv/ces/ucs-2-internal.c: Updated.
9384         * libc/iconv/ces/ucs-4-internal.c: Ditto.
9385         * libc/iconv/ces/utf-16.c: Ditto.
9386         * libc/iconv/ces/utf-8.c: Ditto.
9387         * libc/iconv/ces/cesbi.c: New file.
9388         * libc/iconv/ces/cesbi.h: Ditto.
9389         * libc/iconv/ces/cesdeps.h: Ditto.
9390         * libc/iconv/ces/euc.c: Ditto.
9391         * libc/iconv/ces/mkdeps.pl: Ditto.
9392         * libc/iconv/ces/table-pcs.c: Ditto.
9393         * libc/iconv/ces/table.c: Ditto.
9394         * libc/iconv/ces/ucs-2.c: Ditto.
9395         * libc/iconv/ces/ucs-4.c: Ditto.
9396         * libc/iconv/ces/us-ascii.c: Ditto.
9397         * libc/iconv/ces/euc-jp.c: Removed.
9398         * libc/iconv/ces/euc-kr.c: Ditto.
9399         * libc/iconv/ces/euc-tw.c: Ditto.
9400         * libc/iconv/ces/gb2312.c: Ditto.
9401         * libc/iconv/ces/iso-10646-ucs-2.: Ditto.c
9402         * libc/iconv/ces/iso-10646-ucs-4.c: Ditto.
9403         * libc/iconv/lib/Makefile.am: Updated.
9404         * libc/iconv/lib/Makefile.in: Regenerated.
9405         * libc/iconv/lib/endian.h: Updated.
9406         * libc/iconv/lib/iconv.c: Ditto.
9407         * libc/iconv/lib/local.h: Ditto.
9408         * libc/iconv/lib/aliases.c: Removed.
9409         * libc/iconv/lib/bialiasesi.c: Ditto.
9410         * libc/iconv/lib/biccs.c: Ditto.
9411         * libc/iconv/lib/bices.c: Ditto.
9412         * libc/iconv/lib/ccs.c: Ditto.
9413         * libc/iconv/lib/ces.c: Ditto.
9414         * libc/iconv/lib/ces_euc.c: Ditto.
9415         * libc/iconv/lib/ces_iso2022.c: Ditto.
9416         * libc/iconv/lib/ces_table.c: Ditto.
9417         * libc/iconv/lib/converter.c: Ditto.
9418         * libc/iconv/lib/deps.h: Ditto.
9419         * libc/iconv/lib/loaddata.c: Ditto.
9420         * libc/iconv/lib/aliasesbi.c: New file.
9421         * libc/iconv/lib/aliasesi.c: Ditto.
9422         * libc/iconv/lib/conv.h: Ditto.
9423         * libc/iconv/lib/encnames.h: Ditto.
9424         * libc/iconv/lib/encoding.deps: Ditto.
9425         * libc/iconv/lib/iconvnls.c: Ditto.
9426         * libc/iconv/lib/iconvnls.h: Ditto.
9427         * libc/iconv/lib/nullconv.c: Ditto.
9428         * libc/iconv/lib/ucsconv.c: Ditto.
9429         * libc/iconv/lib/ucsconv.h: Ditto.
9430         * libc/include/iconv.h: Update copyright.
9431         * libc/*/aclocal.m4: Regenerated.
9432         * libc/*/configure: Ditto.
9433         * libm/*/aclocal.m4: Ditto.
9434         * libm/*/configure: Ditto.
9435
9436 2004-06-22  Alexandre Oliva  <aoliva@redhat.com>
9437
9438         * libc/include/machine/setjmp.h [__H8300__] (_JBTYPE): Define,
9439         instead of typedefing jmp_buf.
9440
9441         2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
9442         * libc/machine/h8300/Makefile.am (lib_a_SOURCES): Add h8sx_strcpy.S.
9443         * libc/machine/h8300/defines.h (LEN): New macro.
9444         * libc/machine/h8300/memcpy.S: Add h8sx version.
9445         * libc/machine/h8300/memset.S: Likewise.
9446         * libc/machine/h8300/strcmp.S: Likewise.
9447         * libc/machine/h8300/setjmp.S: Use h8sx move instructions.
9448         * libc/machine/h8300/h8sx_strcpy.S: New file.
9449         2003-06-30  Richard Sandiford  <rsandifo@redhat.com>
9450         * libc/include/machine/ieeefp.h: Extend __H8300S__ handling to
9451         __H8300SX__.
9452         * libc/include/machine/setjmp.h: Likewise.
9453         * libc/include/sys/config.h: Likewise.
9454         * libc/machine/h8300/defines.h: Likewise.
9455         * libc/machine/h8300/setjmp.S: Likewise.
9456         * libc/machine/h8300/strcmp.S: Likewise.
9457         * libc/sys/h8300hms/close.S: Likewise.
9458         * libc/sys/h8300hms/fstat.S: Likewise.
9459         * libc/sys/h8300hms/lseek.S: Likewise.
9460         * libc/sys/h8300hms/read.S: Likewise.
9461         * libc/sys/h8300hms/write.S: Likewise.
9462         * libc/sys/h8300hms/crt0.S: Likewise.
9463         * libc/machine/h8300/setarch.h: Use .h8300sx or .h8300sxn if
9464         __H8300SX__ is defined.
9465         * libc/sys/h8300hms/setarch.h: Likewise.
9466
9467 2004-06-17  Jeff Johnston  <jjohnstn@redhat.com>
9468
9469         * libc/include/sys/reent.h (_GLOBAL_REENT): Back
9470         out change which set _GLOBAL_REENT to _global_impure_ptr until
9471         we understand why Cygwin breaks because of it.
9472
9473 2004-06-14  Jeff Johnston  <jjohnstn@redhat.com>
9474
9475         * libc/sys/linux/machine/i386/syscall.h: For now, set up
9476         __syscall_return macro for systems with vsyscall.
9477
9478 2004-06-11  Antony King  <antony.king@st.com>
9479
9480         * libc/include/sys/_types.h: Include <sys/lock.h> and change
9481         _flock_t to be of type _LOCK_RECURSIVE_T.
9482         * libc/include/sys/reent.h: (_REENT_INIT): Reformat.
9483         (_REENT_INIT_PTR): Ditto.  Use memset where appropriate.
9484         (_global_impure_ptr): New declaration.
9485         (_GLOBAL_REENT): Change to be _global_impure_ptr.
9486         * libc/include/sys/stdio.h: Include <sys/lock.h> and
9487         <sys/reent.h>.
9488         (_flockfile)[!_SINGLE_THREAD]: Add code for lock call.
9489         (_funlockfile)[!SINGLE_THREAD]: Ditto.
9490         * libc/reent/impure.c: Set _global_impure_ptr to _impure_ptr.
9491         * libc/stdio/fclose.c: Remove casting of fp lock to
9492         _LOCK_RECURSIVE_T.
9493         * libc/stdio/findfp.c: Ditto.
9494         * libc/stdio/fopen.c: Ditto.
9495         * libc/stdio/freopen.c: Ditto.
9496         * libc/stdio/vfprintf.c: Ditto.
9497         * libc/stdio64/fopen64.c: Ditto.
9498         * libc/stdlib/envlock.c: Add default stubs that use generic
9499         locking code.
9500         * libc/stdlib/mlock.c: Ditto.
9501
9502         Jeff Johnston  <jjohnstn@redhat.com>
9503         * libc/sys/linux/sys/_types.h (__flock_mutex_t): New subtype.
9504         (_flock_t): Change to be a struct containing a single member
9505         named mutex which is of type __flock_mutex_t.
9506
9507 2004-06-09  Jeff Johnston  <jjohnstn@redhat.com>
9508
9509         * libc/sys/linux/Makefile.am: Change siglist.inc to be generated
9510         from /usr/include/asm/signal.h instead of kernel sources.  Also
9511         default max to 32 if not found in header file.
9512         * libc/sys/linux/Makefile.in: Regenerated.
9513         * libc/sys/linux/machine/i386/socketcall.h: Fix for Fedora Core 2
9514         systems where __syscall_return is not defined.
9515         * libc/sys/linux/machine/i386/syscall.h: Change for Fedora Core 2
9516         systems to use syscall() function instead of assembler interrupt.
9517
9518 2004-06-09  Toralf Lund  <toralf@procaptura.com>
9519
9520         * libc/sys/arm/setjmp.S, libc/sys/arm/access.c: Move
9521         files from libc/sys/arm to libc/machine/arm.
9522         * libc/machine/arm/Makefile.am, libc/machine/arm/Makefile.in: Add
9523         library build support for files moved from libc/sys/arm.
9524         * libc/sys/arm/Makefile.am, libc/sys/arm/Makefile.in:  Remove
9525         references to access and setjmp.
9526         * configure.host: Add checks for newlib_may_supply_syscalls to
9527         determine whether or not to use sys/arm directory and use
9528         special compiler flags: ARM_RDI_MONITOR and ARM_RDP_MONITOR.
9529
9530 2004-06-02  Jeff Johnston  <jjohnstn@redhat.com>
9531
9532         * libc/stdio/vfscanf.c (__svfscanf_r): For CT_INT conversions,
9533         reset digit flags appropriately after we have discovered "0x".
9534         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
9535
9536 2004-05-27  Jeff Johnston  <jjohnstn@redhat.com>
9537
9538         * libc/stdio/vfprintf.c (_VFPRINTF): Move file locking
9539         from here ...
9540         (_VFPRINTF_R): ... to here so all I/O printf routines
9541         are covered.
9542
9543 2004-05-26  Jeff Johnston  <jjohnstn@redhat.com>
9544
9545         * libc/search/hash_buf.c: Protect MAX and MIN macros from
9546         redefinition.
9547         * libc/search/hash.c: Ditto.
9548
9549 2004-05-25  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9550
9551         * newlib.hin: (_WANT_IO_POS_ARGS): New define.
9552         (_WANT_IO_LONG_LONG): Ditto.
9553         (_WANT_IO_LONG_DOUBLE): Ditto.
9554         * configure.in: Add new configuration options
9555         --enable-newlib-io-long-long and --enable-newlib-io-long-double
9556         which tie to new defines in newlib.hin.
9557         * configure: Regenerated.
9558         * configure.host: Add checks for new configuration options.  Also
9559         fix up check for --enable-newlib-io-pos-args so configuration
9560         option will override any default for a given platform.
9561         Remove defining compiler flags for the _WANT_IO* options.
9562         * libc/stdio/vfprintf.c: Change to use new newlib.hin defines
9563         instead of looking for old compiler flags.
9564         * libc/stdio/vfscanf.c: Ditto.
9565         * libc/stdio/vfieeefp.h: Ditto.
9566         * libc/machine/powerpc/vfprintf.c: Ditto.
9567         * libc/machine/powerpc/vfscanf.c: Ditto.
9568
9569 2004-05-25  Jeff Johnston  <jjohnstn@redhat.com>
9570
9571         * testsuite/include/check.h: Add include of <stdio.h>.
9572
9573 2004-05-17  Corinna Vinschen  <corinna@vinschen.de>
9574
9575         * libc/include/grp.h: Declare getgrnam_r and getgrgid_r also on Cygwin.
9576
9577 2004-05-11  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9578
9579         * libc/stdio/vfprintf.c (VFPRINTF_R): Use _free_r instead
9580         of free.
9581
9582 2004-05-07  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9583
9584         * libc/stdio/iprintf.c (_iprintf_r): Fix old-style argument
9585         list for reentrant pointer.  Call _vfiprintf_r.
9586         * libc/stdio/siprintf.c (_siprintf_r): New function.
9587         * libc/stdio/vfprintf.c (__sbprintf): Add reetrant struct
9588         pointer argument.  Change all callers.  Call _VFPRINTF_R.
9589         * libc/include/stdio.h (_siprintf_r, _vfiprintf_r): New
9590         prototypes.
9591
9592 2004-05-07  Jeff Johnston  <jjohnstn@redhat.com>
9593
9594         * libc/include/sys/param.h: Remove endian info and include
9595         <machine/endian.h> instead.
9596         * libc/include/machine/endian.h: New file.
9597         * libc/include/machine/param.h: Ditto.
9598         * libc/machine/arm/machine/endian.h: Ditto.
9599         * libc/machine/arm/machine/param.h: Ditto.
9600         * libc/sys/arm/sys/param.h: Removed.
9601         * libc/sys/sysvi386/sys/param.h: Ditto.
9602         * libc/sys/rtems/sys/param.h: Modified to include <machine/endian.h>.
9603
9604 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9605
9606         * libc/stdio/vfprintf.c (_VFPRINTF_R): Set error flag when
9607         multibyte functions return failure for %C, %S, %lc, and %ls
9608         format specifiers.
9609
9610 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9611
9612         * testsuite/include/check.h (CHECK): Add flush of stdout.
9613
9614 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9615
9616         * libc/include/stdio.h (_ungetc_r): New prototype.
9617         * libc/stdio/ungetc.c (_ungetc_r): New reentrant function.
9618         (__submore): Add reentrant struct pointer argument.
9619         (ungetc): Change to call _ungetc_r.
9620
9621 2004-04-28  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9622
9623         * libc/stdio/local.h (_fwalk_reent): Specify prototype of
9624         function pointer argument.
9625         * libc/stdio/fwalk.c (_fwalk, _fwalk_reent): Change prototypes
9626         to specify function pointer arguments.
9627         (__fwalk, __fwalk_reent): Ditto.
9628
9629 2004-04-26  Aldy Hernandez  <aldyh@redhat.com>
9630
9631         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Fix typo in
9632         CT_INT case.
9633
9634 2004-04-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9635
9636         * configure.in: Define _MB_CAPABLE if mb supported.
9637         * configure: Regenerated.
9638         * configure.host: Remove manual setting of MB_CAPABLE compiler
9639         flag.
9640         * newlib.hin: Add _MB_CAPABLE flag.
9641         * libc/ctype/iswalpha.c, libc/ctype/iswblank.c: Include <newlib.h>
9642         and check for _MB_CAPABLE flag instead of MB_CAPABLE.
9643         * libc/ctype/iswcntrl.c, libc/ctype/iswprint.c: Ditto.
9644         * libc/ctype/iswpunct.c, libc/ctype/iswspace.c: Ditto.
9645         * libc/ctype/jp2uc.c: Ditto.
9646         * libc/ctype/towlower.c, libc/ctype/towupper.c: Ditto.
9647         * libc/locale/locale.c: Ditto
9648         * libc/machine/powerpc/vfscanf.c: Ditto
9649         * libc/stdio/vfprintf.c, libc/stdio/vfscanf.c: Ditto
9650         * libc/stdlib/mblen.c: Ditto
9651         * libc/stdlib/mblen_r.c, libc/stdlib/mbrlen.c: Ditto
9652         * libc/stdlib/mbrtowc.c, libc/stdlib/mbsrtowcs.c: Ditto
9653         * libc/stdlib/mbstowcs.c, libc/stdlib/mbtowc.c: Ditto
9654         * libc/stdlib/mbtowc_r.c, libc/stdlib/wcrtomb.c: Ditto
9655         * libc/stdlib/wcsrtombs.c, libc/stdlib/wcstombs.c: Ditto
9656         * libc/stdlib/wctomb.c, libc/sys/linux/intl/dcigettext.c: Ditto
9657         * libc/sys/linux/intl/explodename.c: Ditto
9658         * libc/sys/linux/intl/finddomain.c: Ditto
9659         * libc/sys/linux/intl/l10nflist.c: Ditto
9660         * libc/sys/linux/intl/loadmsgcat.c: Ditto
9661         * libc/sys/linux/intl/localealias.c: Ditto
9662
9663 2004-04-23  Jeff Johnston  <jjohnstn@redhat.com>
9664
9665         * libc/machine/powerpc/vfscanf.c (NNZDIGITS): New define.
9666         (__svfscanf_r): In integer conversions, leave out leading zeroes
9667         which are not part of a base prefix.
9668         Keep track of width truncation to fit into buf, not counting left-out
9669         zeroes against width till the truncation has been compensated for.
9670         This is based on Joern's patch of 04/21 for libc/stdio/vfscanf.c.
9671
9672 2004-04-23  Jeff Johnston  <jjohnstn@redhat.com>
9673
9674         * libc/include/stdio.h: (_ftell_r, _fseek_r): New prototypes.
9675
9676 2004-04-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9677
9678         * libc/stdio/asprintf.c libc/stdio/clearerr.c,
9679         libc/stdio/fclose.c libc/stdio/fcloseall.c libc/stdio/fdopen.c,
9680         libc/stdio/feof.c libc/stdio/ferror.c libc/stdio/fflush.c,
9681         libc/stdio/fgetc.c libc/stdio/fgetpos.c libc/stdio/fgets.c,
9682         libc/stdio/fileno.c libc/stdio/findfp.c libc/stdio/fiprintf.c,
9683         libc/stdio/flags.c libc/stdio/fopen.c libc/stdio/fprintf.c,
9684         libc/stdio/fputc.c libc/stdio/fputs.c libc/stdio/fread.c,
9685         libc/stdio/freopen.c libc/stdio/fscanf.c libc/stdio/fseek.c,
9686         libc/stdio/fseeko.c libc/stdio/fsetpos.c libc/stdio/ftell.c,
9687         libc/stdio/ftello.c libc/stdio/fvwrite.c libc/stdio/fwalk.c,
9688         libc/stdio/fwrite.c libc/stdio/getc.c libc/stdio/getc_u.c,
9689         libc/stdio/getchar.c libc/stdio/getchar_u.c,
9690         libc/stdio/getdelim.c libc/stdio/getline.c libc/stdio/gets.c,
9691         libc/stdio/getw.c libc/stdio/iprintf.c libc/stdio/local.h,
9692         libc/stdio/makebuf.c libc/stdio/mktemp.c libc/stdio/perror.c,
9693         libc/stdio/printf.c libc/stdio/putc.c libc/stdio/putc_u.c,
9694         libc/stdio/putchar.c libc/stdio/putchar_u.c libc/stdio/puts.c,
9695         libc/stdio/putw.c libc/stdio/refill.c libc/stdio/remove.c,
9696         libc/stdio/rename.c libc/stdio/rewind.c libc/stdio/rget.c,
9697         libc/stdio/scanf.c libc/stdio/setbuf.c libc/stdio/setbuffer.c,
9698         libc/stdio/setlinebuf.c libc/stdio/setvbuf.c,
9699         libc/stdio/siprintf.c libc/stdio/snprintf.c,
9700         libc/stdio/sprintf.c libc/stdio/sscanf.c libc/stdio/stdio.c,
9701         libc/stdio/tmpfile.c libc/stdio/tmpnam.c libc/stdio/ungetc.c,
9702         libc/stdio/vasprintf.c libc/stdio/vfieeefp.h,
9703         libc/stdio/vfprintf.c libc/stdio/vfscanf.c,
9704         libc/stdio/vprintf.c libc/stdio/vscanf.c,
9705         libc/stdio/vsnprintf.c libc/stdio/vsprintf.c,
9706         libc/stdio/vsscanf.c libc/stdio/wbuf.c,
9707         libc/stdio/wsetup.c: Perform minor formatting changes.  Move
9708         copyright notices to top of file, ensure that <_ansi.h> is
9709         included, be consistent with open parentheses, use _DEFUN macro,
9710         include "local.h" where needed, and remove various compiler
9711         warnings.
9712
9713 2004-04-21  J"orn Rennecke <joern.rennecke@superh.com>
9714
9715         * libc/stdio/vfscanf.c (NNZDIGITS): New define.
9716         (__svfscanf_r): In integer conversions, leave out leading zeroes
9717         which are not part of a base prefix.
9718         Keep track of width truncation to fit into buf, not counting left-out
9719         zeroes against width till the truncation has been compensated for.
9720
9721 2004-04-20  Corinna Vinschen  <corinna@vinschen.de>
9722
9723         * libc/include/sys/unistd.h (ttyname_r): Add missing comma.
9724
9725 2004-04-20  Corinna Vinschen  <corinna@vinschen.de>
9726
9727         * libc/include/sys/unistd.h (ttyname_r): Add declaration for Cygwin.
9728
9729 2004-04-10  Corinna Vinschen  <corinna@vinschen.de>
9730
9731         * libc/include/sys/unistd.h (sync): Define void on Cygwin according
9732         to SUSv3.
9733
9734 2004-04-08  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9735
9736         * libc/stdio/fclose.c (_fclose_r): New function.
9737         * libc/stdio/freopen.c (_freopen_r): Call _fclose_r.
9738         * libc/stdio/fcloseall.c (_fcloseall_r): Call _fwalk_reent.
9739         * libc/stdio64/freopen64.c (_freopen64_r): Use _fclose_r.
9740         * libc/include/stdio.h (_fclose_r): New prototype.
9741         * libc/stdio/fopen.c: Fix typo in comment.
9742
9743 2004-04-08  Jeff Johnston  <jjohnstn@redhat.com>
9744
9745         * libc/stdio/fwalk.c (_fwalk_reent): New version of _fwalk
9746         to handle _r reentrant functions.
9747
9748 2004-04-08  Eric Christopher  <echristo@redhat.com>
9749
9750         * libc/include/machine/setjmp.h: Fix endif locations.
9751
9752 2004-04-01  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9753
9754         * libc/time/strptime.c: Add standard includes to avoid
9755         warning messages at compilation time.
9756
9757 2004-04-01  Jeff Johnston  <jjohnstn@redhat.com>
9758
9759         * libc/stdio/vfscanf.c (__svfscanf_r): Add locking/unlocking
9760         of file.
9761
9762 2004-03-30  Jeff Johnston  <jjohnstn@redhat.com>
9763
9764         * libc/machine/h8300/Makefile.am: Reformat slightly.
9765         * libc/machine/h8300/Makefile.in: Regenerate.
9766
9767 2004-03-30  Thomas Pfaff  <tpfaff@gmx.net>
9768
9769         * libc/stdio/findfp.c (__fp_lock_all): Add call to
9770         __sfp_lock_acquire.
9771         (__fp_unlock_all): Add call to __sfp_lock_release.
9772
9773 2004-03-25  Thomas Pfaff  <tpfaff@gmx.net>
9774
9775         * libc/stdio/fclose.c (fclose): Protect file pointer list when
9776         releasing a file.
9777          * libc/stdio/fcloseall.c (_fcloseall_r): Close all files via
9778         fwalk.
9779         * libc/stdio/fdopen.c (_fdopen_r): Add calls to
9780         _flockfile/_funlockfile.
9781         * libc/stdio/findfp.c: Move __sfp_lock. Change __sfp_lock type
9782         to recursive.
9783         Change __lock_acquire/__lock_release calls for __sfp_lock to
9784         __sfp_lock_acquire/__sfp_lock_release throughout.
9785         (std): Make sure that file lock is only initialized once.
9786         (__sfp): Move _file initialization. Initialize file lock.
9787         (__sfp_lock_acquire): New function.
9788         (__sfp_lock_release): Ditto.
9789         (__fp_lock_all): Remove __sfp_lock_acquire call.
9790         (__fp_unlock_all): Remove __sfp_lock_release call.
9791         * libc/stdio/fopen.c (_fopen_r): Protect file pointer list.
9792         Add calls to _flockfile/_funlockfile. Remove
9793         __lock_init_recursive call.
9794         * libc/stdio/freopen.c (_freopen_r): Protect file pointer list.
9795         * libc/stdio/fwalk.c (__fwalk): New static function.
9796         (_fwalk): Protect file pointer list. Use __fwalk to walk through
9797         file pointers.
9798         * libc/stdio/local.h: Add defines for
9799         __sfp_lock_acquire/__sfp_lock_release when
9800         single threaded. Add function prototypes otherwise.
9801         * libc/stdio64/fdopen64.c (_fdopen64_r): Add calls to
9802         _flockfile/_funlockfile.
9803         * libc/stdio/fopen64.c (_fopen64_r): Protect file pointer list.
9804         Add calls to _flockfile/_funlockfile. Remove
9805          __lock_init_recursive call.
9806         * libc/stdio/freopen64.c (_freopen64_r): Protect file pointer
9807         list.
9808
9809 2004-03-25  Jeff Johnston  <jjohnstn@redhat.com>
9810
9811         * libc/sys/linux/sys/lock.h: Turn on __USE_GNU flag if not already
9812         defined.  Change __LOCK_RECURSIVE_INIT to be __LOCK_INIT_RECURSIVE.
9813         * libc/sys/linux/dl/dl-support.c: Change __LOCK_RECURSIVE_INIT
9814         to be __LOCK_INIT_RECURSIVE.
9815
9816 2004-03-11  Kazu Hirata  <kazu@cs.umass.edu>
9817
9818         * libc/sys/h8300hms/Makefile.am (lib_a_SOURCES): Replace
9819         _exit.c with _exit.S.
9820         * libc/sys/h8300hms/Makefile.in: Regenerate.
9821         * libc/sys/h8300hms/_exit.c: Remove.
9822         * libc/sys/h8300hms/_exit.S: New.
9823
9824 2004-03-09  Thomas Pfaff  <tpfaff@gmx.net>
9825
9826         * libc/stdio/findfp.c (__sfp): Rename lock to __sfp_lock.
9827         Change __sfp_lock to static global.
9828         (__fp_lock): New static function.
9829         (__fp_unlock): Ditto.
9830         (__fp_lock_all): New function.
9831         (__fp_unlock_all): Ditto.
9832
9833 2004-02-10  Christopher Faylor  <cgf@redhat.com>
9834
9835         * libm/mathfp/er_gamma.c (gamma): Add new non-reentrant function.
9836         * libm/mathfp/er_lgamma.c (lgamma): Ditto.
9837         * libm/mathfp/erf_gamma.c (gammaf): Ditto.
9838         * libm/mathfp/erf_lgamma.c (lgammaf): Ditto.
9839
9840 2004-02-09  Christopher Faylor  <cgf@redhat.com>
9841
9842         * libc/include/time.h (TIMER_RELTIME): New define.
9843
9844 2004-02-09  Jeff Johnston  <jjohnstn@redhat.com>
9845
9846         * libc/stdlib/Makefile.am: Add mallstatsr to LIBADD_OBJS.
9847         * libc/stdlib/Makefile.in: Regenerated.
9848
9849 2004-02-08  Christopher Faylor  <cgf@redhat.com>
9850
9851         * libc/include/sys/features.h: Add _POSIX_TIMERS define for __CYGWIN__.
9852         * libc/include/sys/reent.h (__getreent): Protect against possibly being
9853         defined.
9854         * libc/include/sys/unistd.h (fdatasync): Don't define for __CYGWIN__.
9855
9856 2004-02-05  Paul Brook  <paul@codesourcery.com>
9857
9858         * libc/include/machine/ieeefp.h[__arm__][__VFP_FP__]: Set
9859         IEEE_{BIG,LITTLE} based on __ARMEL__ flag.
9860
9861 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
9862
9863         * NEWS: Update with 1.12.0 info.
9864         * README: Ditto.
9865         * acinclude.m4: Change version number to 1.12.0.
9866         * aclocal.m4: Regenerated.
9867         * configure: Ditto.
9868         * doc/aclocal.m4: Ditto.
9869         * doc/configure: Ditto.
9870         * libc/*/aclocal.m4: Ditto.
9871         * libc/*/configure: Ditto.
9872         * libc/libc.texinfo: Ditto.
9873         * libm/*/aclocal.m4: Ditto.
9874         * libm/*/configure: Ditto.
9875         * libm/libm.texinfo: Ditto.
9876         * libc/sys/linux/shared.ld: Add VERS_1.12.
9877
9878 2004-02-02  Joel Sherrill  <joel@oarcorp.com>
9879
9880         * configure.host: Add support for tic4x.
9881         * libc/include/machine/ieeefp.h: Ditto.
9882         * libc/include/machine/setjmp.h: Ditto.
9883         * libc/machine/tic4x/Makefile.am: New file.
9884         * libc/machine/tic4x/configure.in: Ditto.
9885         * libc/machine/tic4x/setjmp.S: Ditto.
9886         * libc/machine/tic4x/aclocal.m4: Generated.
9887         * libc/machine/tic4x/configure: Ditto.
9888         * libc/machine/tic4x/Makefile.in: Ditto.
9889
9890 2004-01-30  Jeff Johnston  <jjohnstn@redhat.com>
9891
9892         * libc/stdio/fwalk.c (_fwalk.c): Don't traverse the
9893         file chain on the passed in reentrancy struct if it
9894         is _GLOBAL_REENT.
9895
9896 2004-01-30  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9897             Jeff Johnston  <jjohnstn@redhat.com>
9898
9899         * libc/iconv/iconv.tex: Updated with more information.
9900
9901 2004-01-30  Thomas Pfaff  <tpfaff@gmx.net>
9902             Jeff Johnston  <jjohnstn@redhat.com>
9903
9904         * libc/stdio/fwalk.c (_fwalk): Traverse the given reentrancy
9905         struct for std streams and traverse the global reeentrancy
9906         struct for all other streams.
9907
9908 2004-01-27  Jeff Johnston  <jjohnstn@redhat.com>
9909
9910         * libc/stdlib/atexit.c: Protect global atexit list with a
9911         lock when newlib is multithreaded.
9912
9913 2004-01-27  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9914
9915         * configure.in: Add support to generate iconv converter flags
9916         for newlib.h
9917         * newlib.hin: Add iconv converter flags.
9918         * configure: Regenerated.
9919         * libc/Makefile.in: Ditto.
9920         * libc/configure.in: Moved iconv converter parsing logic to
9921         top level newlib configure.in.
9922         * libc/configure: Regenerated.
9923         * libc/iconv/Makefile.in: Ditto.
9924         * libc/iconv/README.TODO
9925         * libc/iconv/charset.aliases: Remove wrong BE aliases for
9926         UCS2/UCS4/UTF8.
9927         * libc/iconv/ccs/Makefile.am: Remove C flag setting now that
9928         newlib.h can be used.
9929         * libc/iconv/ces/Makefile.am: Ditto.
9930         * libc/iconv/lib/Makefile.am: Ditto.
9931         * libc/iconv/ccs/Makefile.in: Regenerated.
9932         * libc/iconv/ces/Makefile.in: Ditto.
9933         * libc/iconv/lib/Makefile.in: Ditto.
9934         * libc/iconv/ccs/README.CCS.SOURCES: Updated.
9935         * libc/iconv/ccs/iconv_mktbl: Don't write junk strings to binaries.
9936         * libc/iconv/ccs/big5.c: Switch to use new underscored flags
9937         defined in newlib.h.
9938         * libc/iconv/ccs/cns11643_plane1.c: Ditto.
9939         * libc/iconv/ccs/cns11643_plane14.c: Ditto.
9940         * libc/iconv/ccs/cns11643_plane2.c: Ditto.
9941         * libc/iconv/ccs/cp775.c: Ditto.
9942         * libc/iconv/ccs/cp850.c: Ditto.
9943         * libc/iconv/ccs/cp852.c: Ditto.
9944         * libc/iconv/ccs/cp855.c: Ditto.
9945         * libc/iconv/ccs/cp866.c: Ditto.
9946         * libc/iconv/ccs/gb_2312_80.c: Ditto.
9947         * libc/iconv/ccs/iso_8859_1.c: Ditto.
9948         * libc/iconv/ccs/iso_8859_15.c: Ditto.
9949         * libc/iconv/ccs/iso_8859_2.c: Ditto.
9950         * libc/iconv/ccs/iso_8859_4.c: Ditto.
9951         * libc/iconv/ccs/iso_8859_5.c: Ditto.
9952         * libc/iconv/ccs/jis_x0201.c: Ditto.
9953         * libc/iconv/ccs/jis_x0208_1983.c: Ditto.
9954         * libc/iconv/ccs/jis_x0212_1990.c: Ditto.
9955         * libc/iconv/ccs/koi8_r.c: Ditto.
9956         * libc/iconv/ccs/koi8_u.c: Ditto.
9957         * libc/iconv/ccs/ksx1001.c: Ditto.
9958         * libc/iconv/ccs/shift_jis.c: Ditto.
9959         * libc/iconv/ccs/us_ascii.c: Ditto.
9960         * libc/iconv/ccs/binary/big5.cct: Newly generated.
9961         * libc/iconv/ccs/binary/cns11643_plane1.cct: Ditto.
9962         * libc/iconv/ccs/binary/cns11643_plane14.cct: Ditto.
9963         * libc/iconv/ccs/binary/cns11643_plane2.cct: Ditto.
9964         * libc/iconv/ccs/binary/cp775.cct: Ditto.
9965         * libc/iconv/ccs/binary/cp850.cct: Ditto.
9966         * libc/iconv/ccs/binary/cp852.cct: Ditto.
9967         * libc/iconv/ccs/binary/cp855.cct: Ditto.
9968         * libc/iconv/ccs/binary/cp866.cct: Ditto.
9969         * libc/iconv/ccs/binary/gb_2312_80.cct: Ditto.
9970         * libc/iconv/ccs/binary/iso_8859_1.cct: Ditto.
9971         * libc/iconv/ccs/binary/iso_8859_15.cct: Ditto.
9972         * libc/iconv/ccs/binary/iso_8859_2.cct: Ditto.
9973         * libc/iconv/ccs/binary/iso_8859_4.cct: Ditto.
9974         * libc/iconv/ccs/binary/iso_8859_5.cct: Ditto.
9975         * libc/iconv/ccs/binary/jis_x0201.cct: Ditto.
9976         * libc/iconv/ccs/binary/jis_x0208_1983.cct: Ditto.
9977         * libc/iconv/ccs/binary/jis_x0212_1990.cct: Ditto.
9978         * libc/iconv/ccs/binary/koi8_r.cct: Ditto.
9979         * libc/iconv/ccs/binary/koi8_u.cct: Ditto.
9980         * libc/iconv/ccs/binary/ksx1001.cct: Ditto.
9981         * libc/iconv/ccs/binary/shift_jis.cct: Ditto.
9982         * libc/iconv/ccs/binary/us_ascii.cct: Ditto.
9983         * libc/iconv/lib/bialiasesi.c: Sync with charset.aliases.
9984         * libc/iconv/ces/euc-jp.c: Use newlib.h macros.
9985         * libc/iconv/ces/euc-kr.c: Ditto.
9986         * libc/iconv/ces/euc-tw.c: Ditto.
9987         * libc/iconv/ces/gb2312.c: Ditto.
9988         * libc/iconv/ces/iso-10646-ucs-2.c: Ditto.
9989         * libc/iconv/ces/iso-10646-ucs-4.c: Ditto.
9990         * libc/iconv/ces/ucs-2-internal.c: Ditto.
9991         * libc/iconv/ces/ucs-4-internal.c: Ditto.
9992         * libc/iconv/ces/utf-16.c: Ditto.
9993         * libc/iconv/ces/utf-8.c: Ditto.
9994         * libc/iconv/lib/aliases.c: Ditto.
9995         * libc/iconv/lib/biccs.c: Ditto.
9996         * libc/iconv/lib/bices.c: Ditto.
9997         * libc/iconv/lib/ccs.c: Ditto.
9998         * libc/iconv/lib/ces.c: Ditto.
9999         * libc/iconv/lib/ces_euc.c: Ditto.
10000         * libc/iconv/lib/ces_iso2022.c: Ditto.
10001         * libc/iconv/lib/ces_table.c: Ditto.
10002         * libc/iconv/lib/converter.c: Ditto.
10003         * libc/iconv/lib/deps.h: Ditto.
10004         * libc/iconv/lib/endian.h: Ditto.
10005         * libc/iconv/lib/iconv.c: Ditto.
10006         * libc/iconv/lib/loaddata.c: Ditto.
10007         * libc/iconv/lib/local.h: Include newlib.h.
10008         * libc/argz/Makefile.in: Regenerated.
10009         * libc/ctype/Makefile.in: Ditto.
10010         * libc/errno/Makefile.in: Ditto.
10011         * libc/iconv/ccs/binary/Makefile.in: Ditto.
10012         * libc/locale/Makefile.in: Ditto.
10013         * libc/misc/Makefile.in: Ditto.
10014         * libc/posix/Makefile.in: Ditto.
10015         * libc/reent/Makefile.in: Ditto.
10016         * libc/search/Makefile.in: Ditto.
10017         * libc/signal/Makefile.in: Ditto.
10018         * libc/stdio/Makefile.in: Ditto.
10019         * libc/stdio64/Makefile.in: Ditto.
10020         * libc/stdlib/Makefile.in: Ditto.
10021         * libc/string/Makefile.in: Ditto.
10022         * libc/syscalls/Makefile.in: Ditto.
10023         * libc/time/Makefile.in: Ditto.
10024         * libc/unix/Makefile.in: Ditto.
10025         * testsuite/newlib.iconv/iconv.exp: New file.
10026         * testsuite/newlib.iconv/iconvjp.c: Ditto.
10027         * testsuite/newlib.iconv/iconvnm.c: Ditto.
10028         * testsuite/newlib.iconv/iconvru.c: Ditto.
10029
10030 2004-01-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
10031
10032         * acinclude.m4 (--enable-newlib-iconv): New configuration option.
10033         (--enable-newlib-builtin-converters): Ditto.
10034         * configure.in: Add code to set _ICONV_ENABLED flag.
10035         Set _MB_LEN_MAX to 1 if not mb enabled.
10036         * configure: Regenerated.
10037         * aclocal.m4: Ditto.
10038         * Makefile.in: Ditto.
10039         * newlib.hin: Add _ICONV_ENABLED flag.
10040         * libc/Makefile.am: Add support for iconv.
10041         * libc/configure.in: Ditto.
10042         * libc/Makefile.in: Regenerated.
10043         * libc/aclocal.m4: Ditto.
10044         * libc/configure: Ditto.
10045         * libc/libc.texinfo: Add iconv documentation.
10046         * libc/iconv/AUTHORS, libc/iconv/COPYING, libc/iconv/Makefile.am,
10047         libc/iconv/Makefile.in, libc/iconv/README.ORIGINAL,
10048         libc/iconv/README.TODO, libc/iconv/charset.aliases,
10049         libc/iconv/iconv.tex, libc/iconv/ccs/Makefile.am,
10050         libc/iconv/ccs/Makefile.in, libc/iconv/ccs/README.CCS.SOURCES,
10051         libc/iconv/ccs/big5.c, libc/iconv/ccs/cns11643_plane1.c,
10052         libc/iconv/ccs/cns11643_plane14.c, libc/iconv/ccs/cns11643_plane2.c,
10053         libc/iconv/ccs/cp775.c, libc/iconv/ccs/cp850.c,
10054         libc/iconv/ccs/cp852.c, libc/iconv/ccs/cp855.c,
10055         libc/iconv/ccs/cp866.c, libc/iconv/ccs/gb_2312_80.c,
10056         libc/iconv/ccs/iconv_mktbl, libc/iconv/ccs/iso_8859_1.c,
10057         libc/iconv/ccs/iso_8859_15.c, libc/iconv/ccs/iso_8859_2.c,
10058         libc/iconv/ccs/iso_8859_4.c, libc/iconv/ccs/iso_8859_5.c,
10059         libc/iconv/ccs/jis_x0201.c, libc/iconv/ccs/jis_x0208_1983.c,
10060         libc/iconv/ccs/jis_x0212_1990.c, libc/iconv/ccs/koi8_r.c,
10061         libc/iconv/ccs/koi8_u.c, libc/iconv/ccs/ksx1001.c,
10062         libc/iconv/ccs/shift_jis.c, libc/iconv/ccs/us_ascii.c,
10063         libc/iconv/ccs/binary/Makefile.am, libc/iconv/ccs/binary/Makefile.in,
10064         libc/iconv/ccs/binary/big5.cct,
10065         libc/iconv/ccs/binary/cns11643_plane1.cct,
10066         libc/iconv/ccs/binary/cns11643_plane14.cct,
10067         libc/iconv/ccs/binary/cns11643_plane2.cct,
10068         libc/iconv/ccs/binary/cp775.cct, libc/iconv/ccs/binary/cp850.cct,
10069         libc/iconv/ccs/binary/cp852.cct, libc/iconv/ccs/binary/cp855.cct,
10070         libc/iconv/ccs/binary/cp866.cct, libc/iconv/ccs/binary/gb_2312_80.cct,
10071         libc/iconv/ccs/binary/iso_8859_1.cct,
10072         libc/iconv/ccs/binary/iso_8859_15.cct,
10073         libc/iconv/ccs/binary/iso_8859_2.cct,
10074         libc/iconv/ccs/binary/iso_8859_4.cct,
10075         libc/iconv/ccs/binary/iso_8859_5.cct,
10076         libc/iconv/ccs/binary/jis_x0201.cct,
10077         libc/iconv/ccs/binary/jis_x0208_1983.cct,
10078         libc/iconv/ccs/binary/jis_x0212_1990.cct,
10079         libc/iconv/ccs/binary/koi8_r.cct, libc/iconv/ccs/binary/koi8_u.cct,
10080         libc/iconv/ccs/binary/ksx1001.cct,
10081         libc/iconv/ccs/binary/shift_jis.cct,
10082         libc/iconv/ccs/binary/us_ascii.cct,
10083         libc/iconv/ces/Makefile.am, libc/iconv/ces/Makefile.in,
10084         libc/iconv/ces/euc-jp.c, libc/iconv/ces/euc-kr.c,
10085         libc/iconv/ces/euc-tw.c, libc/iconv/ces/gb2312.c,
10086         libc/iconv/ces/iso-10646-ucs-2.c, libc/iconv/ces/iso-10646-ucs-4.c,
10087         libc/iconv/ces/ucs-2-internal.c, libc/iconv/ces/ucs-4-internal.c,
10088         libc/iconv/ces/utf-16.c, libc/iconv/ces/utf-8.c,
10089         libc/iconv/lib/Makefile.am, libc/iconv/lib/Makefile.in,
10090         libc/iconv/lib/aliases.c, libc/iconv/lib/bialiasesi.c,
10091         libc/iconv/lib/biccs.c, libc/iconv/lib/bices.c,
10092         libc/iconv/lib/ccs.c, libc/iconv/lib/ces.c,
10093         libc/iconv/lib/ces_euc.c, libc/iconv/lib/ces_iso2022.c,
10094         libc/iconv/lib/ces_table.c, libc/iconv/lib/converter.c,
10095         libc/iconv/lib/deps.h, libc/iconv/lib/endian.h,
10096         libc/iconv/lib/iconv.c, libc/iconv/lib/loaddata.c,
10097         libc/iconv/lib/local.h, libc/include/iconv.h: New files.
10098         * libc/sys/linux/include/iconv.h: Ditto.
10099         * libc/include/sys/_types.h (_iconv_t): Added.
10100         * doc/aclocal.m4: Regenerated.
10101         * doc/configure: Ditto.
10102         * doc/Makefile.in: Ditto.
10103         * iconvdata/Makefile.in: Ditto.
10104         * iconvdata/aclocal.m4: Ditto.
10105         * iconvdata/configure: Ditto.
10106         * libc/*aclocal.m4: Ditto.
10107         * libc/*Makefile.in: Ditto.
10108         * libc/*configure: Ditto.
10109         * libm/*aclocal.m4: Ditto.
10110         * libm/*Makefile.in: Ditto.
10111         * libm/*configure: Ditto.
10112
10113 2004-01-22  Thomas Pfaff  <tpfaff@gmx.net>
10114
10115         * libc/stdio/findfp.c (__sfp): Protect global FILE pointer list
10116         by a lock when newlib is multithreaded.
10117
10118 2004-01-21  Jeff Johnston  <jjohnstn@redhat.com>
10119
10120         * libc/stdlib/mbrtowc.c (_mbrtowc_r): Fix case where s is null
10121         pointer to match C99 spec.
10122         * libc/stdlib/mbsrtowcs.c (_mbsrtowc_r): Fix to ignore len when
10123         dst is NULL.  Also fix to not alter src pointer when dst is NULL
10124         and call _mbrtowc_r instead of _mbtowc_r.
10125         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Call _wcrtomb_r instead
10126         of _wctomb_r.
10127
10128 2004-01-19  Thomas Pfaff  <tpfaff@gmx.net>
10129
10130         * libc/stdio/fclose.c (fclose): Release FILE as the last step.
10131         * libc/stdio/freopen.c (freopen): Ditto.
10132
10133 2004-01-16  Christopher Faylor  <cgf@redhat.com>
10134
10135         * libc/stdio/vfprintf.c: Add sys/lock.h include.
10136
10137 2004-01-16  Thomas Pfaff  <tpfaff@gmx.net>
10138
10139         * libc/stdio/findfp.c (__sfp): Remove unnecessary memset.
10140         * libc/stdio/vfprintf.c (__sbprintf): Ditto.
10141         Add calls to __lock_init_recursive and __lock_close_recursive
10142         instead.
10143
10144 2004-01-15  Thomas Pfaff  <tpfaff@gmx.net>
10145
10146         * libc/stdio/fclose.c: Include sys/lock.h.
10147         (fclose): Destroy lock when file is closed.
10148         * libc/stdio/findfp.c (__sfp): Initialize file pointers _lock
10149         member.
10150         * libc/stdio/freopen.c: Include sys/lock.h.
10151         (_freopen_r): Destroy lock when file is closed.
10152         * libc/stdio/vfprintf.c (__sbprintf): Initialize file pointers
10153         _lock member.
10154
10155 2004-01-08  Joel Sherrill  <joel@oarcorp.com>
10156
10157         * libc/ctype/iswctype.c, include/sys/reent.h, libc/stdlib/a64l.c:
10158         Remove warnings.
10159
10160 2004-01-08  Joel Sherrill  <joel@oarcorp.com>
10161
10162         * libc/sys/rtems/sys/queue.h: New file.
10163         * libc/include/sys/signal.h: Reflect renumbering of signals to
10164         fit into 32-bit mask.
10165         * libc/include/sys/unistd.h: Add fdatasync() prototype.
10166         * libc/sys/rtems/crt0.c: Add more symbols which may be implicitly
10167         required.  In particular, add the reentrant variants of libc calls.
10168         * libc/sys/rtems/sys/dirent.h: Add scandir() prototype.
10169
10170 2004-01-06  Mark Mitchell  <mark@codesourcery.com>
10171
10172         * libc/sys/arm/syscalls.c (unistd.h): Include it.
10173         (remap_handle): Use STDIN_FILENO instead of __sfileno(stdin).
10174         Similarly for stdout and stderr.
10175
10176 2004-01-06  Jeff Johnston  <jjohnstn@redhat.com>
10177
10178         * libc/libc.texinfo: Correct escape character for @ sign
10179         so file will be processed by make info.  Update copyright years.
10180         * libm/libm.texinfo: Ditto.
10181
10182 2003-12-05  Jeff Johnston  <jjohnstn@redhat.com>
10183
10184         * libc/include/sys/stat.h: No longer include stat-dj.h.
10185         * libc/include/sys/stat-dj.h: Removed.
10186
10187 2003-12-05  Jeff Johnston  <jjohnstn@redhat.com>
10188
10189         * libc/include/wchar.h: Include <sys/reent.h>.
10190
10191 2003-12-05  Christopher Faylor  <cgf@redhat.com>
10192
10193         * libc/stdlib/mbrlen.c: Change include order to prevent compiler errors
10194         when defining _mbrtowc.
10195         * libc/stdlib/mbsinit.c: Ditto.
10196         * libc/stdlib/mbsrtowcs.c: Ditto.
10197         * libc/stdlib/wcrtomb.c: Ditto.
10198         * libc/stdlib/wcsrtombs.c: Ditto.
10199         * libc/stdlib/wctob.c: Ditto.
10200
10201 2003-12-05  Christopher Faylor  <cgf@redhat.com>
10202
10203         * libc/stdlib/mbrlen.c: Change include order to prevent compiler
10204         errors when defining _mbrtowc.
10205         * libc/stdlib/mbsinit.c: Ditto.
10206         * libc/stdlib/mbsrtowcs.c: Ditto.
10207
10208 2003-12-05  Christopher Faylor  <cgf@redhat.com>
10209
10210         * libc/stdlib/mbrtowc.c: Change include order to prevent compiler
10211         errors when defining _mbrtowc.
10212
10213 2003-12-04  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
10214
10215         * libc/stdio/vfprintf.c (_VFPRINTF_R): Use _r versions
10216         of mb routines for %lc and %ls support.
10217         * libc/stdio/vfscanf.c (_svfscanf_r): Add %lc, %C,
10218         %ls, and %S support.  Remove CYGNUS_NEC markers and
10219         code within.
10220
10221 2003-12-04  Jeff Johnston  <jjohnstn@redhat.com>
10222
10223         * libc/include/wchar.h: Add prototypes for _mbrtowc_r,
10224         _wcrtomb_r, and _wcsrtombs_r.
10225
10226 2003-12-01  Corinna Vinschen  <corinna@vinschen.de>
10227
10228         * libc/include/sys/fcntl.h: Don't define struct flock when on
10229         Cygwin.  This is done in winsup/cygwin/include/cygwin/types.h now.
10230
10231 2003-11-28  Christopher Faylor  <cgf@redhat.com>
10232
10233         * libc/include/sys/signal.h: Use system specific signal file when
10234         building on cygwin.
10235
10236 2003-11-27  Jeff Johnston  <jjohnstn@redhat.com>
10237
10238         * libc/include/stdlib.h (_atoi_r): New prototype.
10239         * libc/stdlib/atoi.c (_atoi_r): New reentrant function.
10240
10241 2003-11-27  Jeff Johnston  <jjohnstn@redhat.com>
10242
10243         * libc/include/stdlib.h (_atoll_r, _atol_r): New prototypes.
10244         * libc/stdlib/atol.c (_atol_r): New reentrant function.
10245         * libc/stdlib/atoll.c (_atoll_r): Ditto.
10246
10247 2003-11-27  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
10248             Jeff Johnston  <jjohnstn@redhat.com>
10249
10250         * libc/include/stdlib.h (lldiv_t): New type.
10251         (atoll, llabs, lldiv): New prototypes.
10252         * libc/stdlib/Makefile.am: Add support for atoll, llabs, and lldiv.
10253         * libc/stdlib/stdlib.tex: Ditto.
10254         * libc/stdlib/Makefile.in: Regenerated.
10255         * libc/stdlib/atoll.c: New file.
10256         * libc/stdlib/llabs.c: Ditto.
10257         * libc/stdlib/lldiv.c: Ditto.
10258
10259 2003-11-26  Corinna Vinschen  <corinna@vinschen.de>
10260
10261         * libc/include/fcntl.h: Declare syscalls only when building newlib.
10262         * libc/include/unistd.h: Ditto.
10263         * libc/include/stat.h: Ditto.  Also declare struct stat64.
10264
10265 2003-11-24  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
10266
10267         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix check for 'C' format
10268         specifier to use ch instead of *fmt.
10269
10270 2003-11-21  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
10271
10272         * libc/stdio/vfprintf.c (_VFPRINTF_R, get_arg): Move mb-specific
10273         code within checks for MB_CAPABLE.  For non-mb-capable platforms,
10274         use simple byte logic.
10275
10276 2003-11-21  Jeff Johnston  <jjohnstn@redhat.com>
10277
10278         * libc/stdio/vfscanf.c (__svfscanf_r)[!_NO_LONGDBL]: Don't use
10279         _strtold routine for processing floats and doubles since it
10280         is not as fast as _strtod_r.
10281
10282 2003-11-20 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
10283
10284         * libc/machine/h8300/defines.h : Correct pointer register defines
10285         for normal mode.
10286         * libc/machine/h8300/memcpy.S : Use add/sub instead of adds/subs
10287         for normal mode.
10288         * libc/machine/h8300/reg_memcpy.S : Likewise.
10289         * libc/machine/h8300/reg_memset.S : Likewise.
10290         * libc/machine/h8300/strcmp.S : Likewise.
10291
10292 2003-11-19  Nicholas Wourms  <nwourms@netscape.net>
10293
10294         * configure.host: Enable positional arguments for printf
10295         family for Cygwin.
10296         * libc/stdio/vfprintf.c (_VFPRINTF_R): Remove extraneous
10297         pointer reference for quad_ptr_t.
10298
10299 2003-11-19  Jeff Johnston  <jjohnstn@redhat.com>
10300
10301         * libc/stdio/scanf.c: Don't include local.h more than once.
10302
10303 2003-11-18  Corinna Vinschen  <corinna@vinschen.de>
10304
10305         * libc/include/sys/fcntl.h: Declare _open64.
10306         * libc/include/sys/stat.h: Declare _fstat64.
10307         * libc/include/sys/unistd.h: Declare _lseek64.
10308
10309 2003-11-17  Corinna Vinschen  <corinna@vinschen.de>
10310
10311         * libc/include/stdlib.h (getprogname): Declare for Cygwin.
10312         (setprogname): Ditto.
10313
10314 2003-11-10  Jeff Johnston  <jjohnstn@redhat.com>
10315
10316         * libc/machine/powerpc/ufix64toa.c (_ufix64to_r): Fix shifts
10317         to use (Ebits + 1) which accounts for the sign-bit.
10318
10319 2003-11-07  Jeff Johnston  <jjohnstn@redhat.com>
10320
10321         * configure.host: Remove -DLOOSE_KERNEL_NAMES flag for linux
10322         x86 build.
10323         * iconvdata/Makefile.am: Make dependent on newlib's configure.host
10324         and set up default flags to pass to aclocal.
10325         * iconvdata/Makefile.in: Regenerated.
10326         * libc/sys/linux/Makefile.am: Add _ELIX_LEVEL_4 getlogin, getpwnam,
10327         and getpwuid routines.
10328         * libc/sys/linux/Makefile.in: Regenerated.
10329         * libc/sys/linux/getlogin.c: New stub file to allow x86-linux
10330         applications to link with newlib's shared libc library.
10331         * libc/sys/linux/getpwnam.c: Ditto.
10332         * libc/sys/linux/getpwuid.c: Ditto.
10333         * libc/sys/linux/sys/types.h: Include <features.h> and supply types
10334         that were formerly supplied by /usr/include/linux/types.h with
10335         kernel types.
10336         * testsuite/newlib.wctype/twctype.c: Fix testcase to properly
10337         test _ELIX_LEVEL macro.
10338
10339 2003-11-07  Jeff Johnston  <jjohnstn@redhat.com>
10340
10341         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix typos that should be
10342         referring to _NO_LONGLONG macro.
10343
10344 2003-11-06  Jeff Johnston  <jjohnstn@redhat.com>
10345
10346         * libc/sys/linux/linuxthreads/td_init.c: Replace function name
10347         in LOG() macro so this will compile on gcc 3.4 and up.
10348         * libc/sys/linux/linuxthreads/td_log.c: Ditto.
10349         * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto.
10350         * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto.
10351         * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto.
10352         * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto.
10353         * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto.
10354         * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto.
10355         * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto.
10356         * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto.
10357         * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto.
10358         * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto.
10359         * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto.
10360         * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto.
10361         * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto.
10362         * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto.
10363         * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto.
10364         * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto.
10365         * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto.
10366         * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto.
10367         * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto.
10368         * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto.
10369         * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto.
10370         * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto.
10371         * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto.
10372         * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto.
10373         * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto.
10374         * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto.
10375         * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto.
10376         * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto.
10377         * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto.
10378         * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto.
10379         * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto.
10380         * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto.
10381         * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto.
10382         * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto.
10383         * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto.
10384
10385 2003-11-05  Jeff Johnston  <jjohnstn@redhat.com>
10386             Artem B. Bityuckiy  <abitytsky@softminecorp.com>
10387
10388         * libc/stdio/vfprintf.c (_VFPRINTF_R): Add support for
10389         %ls, %S, %lc, and %C format specifiers.
10390         (get_arg): Ditto.
10391         * libc/stdio/sprintf.c: Add documentation regarding new
10392         format specifiers added in vfprintf.c.
10393
10394 2003-11-05  Jeff Johnston  <jjohnstn@redhat.com>
10395
10396         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Numerous fixes
10397         to make code work as specified in standard.
10398
10399 2003-10-23  Jeff Johnston  <jjohnstn@redhat.com>
10400
10401         * configure.in: Use absolute newlib basedir when forming
10402         CC_FOR_NEWLIB include options.
10403         * configure: Regenerated.
10404
10405 2003-10-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
10406
10407         * libc/string/wcsnlen.c: New file.
10408         * libc/include/wchar.h: Add wcsnlen prototype.
10409         * libc/string/Makefile.am: Add wcsnlen support.
10410         * libc/string/Makefile.in: Regenerated.
10411         * libc/string/wcstrings.tex: Add wcsnlen documentation.
10412
10413 2003-10-22  Richard Sandiford  <rsandifo@redhat.com>
10414
10415         * libc/stdlib/exit.c (exit): Handle null _GLOBAL_REENT->_atexits.
10416
10417 2003-10-20  Bob Wilson  <bob.wilson@acm.org>
10418
10419         * libc/locale/locale.c: Use double quotes in code.
10420         * libc/locale/locale.tex: Likewise.
10421         * libc/libc.texinfo: Hyphenate "floating-point".
10422         * libc/machine/necv70/necv70.tex: Likewise.
10423         * libc/stdio/sprintf.c: Likewise.
10424         * libc/stdio/sscanf.c: Likewise.
10425         * libc/stdlib/atof.c: Likewise.
10426         * libc/stdlib/ldtoa.c: Fix comment typo.
10427         * libc/stdlib/div.c: Use @ifnottex instead of @ifinfo.
10428         * libc/stdlib/ldiv.c: Likewise.
10429         * libm/common/s_expm1.c: Likewise.
10430         * libm/common/s_ilogb.c: Hyphenate "floating-point".  Use "nonzero".
10431         * libm/common/s_infinity: Hyphenate "double- and single-precision".
10432         * libm/common/s_nan.c: Likewise.  Also correct the FUNCTION summary.
10433         * libm/common/s_nextafter.c: Fix typo.  Hyphenate "double-precision"
10434         and "floating-point".
10435         * libm/common/s_scalbn.c: Correct the FUNCTION summary.
10436         * libm/math/e_pow.c: Fix comment typo.
10437         * libm/math/math.tex: Hyphenate "single-precision" and "floating-point".
10438         * libm/math/s_asinh.c: Use @ifnottex instead of @ifinfo.
10439         * libm/math/s_atan.c: Likewise.
10440         * libm/math/s_frexp.c: Likewise.  Also use "nonzero".
10441         * libm/math/s_isnan.c: Hyphenate "single-precision" and
10442         "floating-point".  Use "nonzero".
10443         * libm/math/s_ldexp.c: Use @ifnottex instead of @ifinfo.
10444         * libm/math/w_acos.c: Likewise.
10445         * libm/math/w_acosh.c: Likewise.
10446         * libm/math/w_asin.c: Likewise.
10447         * libm/math/w_atan2.c: Likewise.
10448         * libm/math/w_atanh.c: Likewise.
10449         * libm/math/w_cosh.c: Likewise.
10450         * libm/math/w_exp.c: Likewise.
10451         * libm/math/w_exp2.c: Likewise.  Add missing @end and missing @tex
10452         version of 2^x in the description.
10453         * libm/math/w_fmod.c: Use @ifnottex instead of @ifinfo.
10454         * libm/math/w_gamma.c: Likewise.
10455         * libm/math/w_hypot.c: Likewise.
10456         * libm/math/w_j0.c: Likewise.
10457         * libm/math/w_sinh.c: Likewise.
10458         * libm/math/w_pow.c: Replace "exp1.0nt" with "exponent".
10459         * libm/mathfp/mathfp.tex: Hyphenate "single-precision" and
10460         "floating-point".
10461         * libm/mathfp/e_acosh.c: Use @ifnottex instead of @ifinfo.
10462         * libm/mathfp/e_atanh.c: Likewise.
10463         * libm/mathfp/e_hypot.c: Likewise.
10464         * libm/mathfp/er_lgamma.c: Likewise.
10465         * libm/mathfp/s_acos.c: Likewise.
10466         * libm/mathfp/s_asine.c: Likewise.
10467         * libm/mathfp/s_asinh.c: Likewise.
10468         * libm/mathfp/s_atan.c: Likewise.
10469         * libm/mathfp/s_atan2.c: Likewise.
10470         * libm/mathfp/s_atangent.c: Likewise.
10471         * libm/mathfp/s_cosh.c: Likewise.
10472         * libm/mathfp/s_exp.c: Likewise.
10473         * libm/mathfp/s_fmod.c: Likewise.
10474         * libm/mathfp/s_frexp.c: Likewise.  Also use "nonzero".
10475         * libm/mathfp/s_isnan.c: Hyphenate "single-precision" and
10476         "floating-point".  Use "nonzero".
10477         * libm/math/s_pow.c: Replace "exp1.0nt" with "exponent".
10478         * libm/mathfp/s_ldexp.c: Use @ifnottex instead of @ifinfo.
10479         * libm/mathfp/s_sineh.c: Likewise.
10480         * libm/mathfp/w_jn.c: Likewise.
10481
10482 2003-10-15  Alexandre Oliva  <aoliva@redhat.com>
10483
10484         * Makefile.am: Add $(MAKE) comments to multido and multiclean
10485         lines, to enable parallel make.
10486         * Makefile.in: Rebuilt.
10487
10488 2003-10-14  Christopher Faylor  <cgf@redhat.com>
10489
10490         * libc/time/clock.c: Clarify documentation of return value when no
10491         measurement is available.
10492
10493 2003-09-29  Ian Lance Taylor  <ian@wasabisystems.com>
10494
10495         * libm/configure.in: Check libm_machine_dir, not machine_dir.
10496         * libm/configure: Regenerate.
10497         * libm/Makefile.in: Ditto.
10498
10499 2003-09-29  J"orn Rennecke <joern.rennecke@superh.com>
10500
10501         * libc/machine/sh/strncpy.S: New file.
10502         * libc/machine/sh/Makefile.am: Add entry & rule for new file.
10503         * libc/machine/sh/Makefile.in: Regenerate.
10504
10505 2003-09-11  James E Wilson  <wilson@specifixinc.com>
10506
10507         * MAINTAINERS: Update my e-mail address.
10508
10509 2003-09-10  Corinna Vinschen  <corinna@vinschen.de>
10510
10511         * libc/include/sys/unistd.h: Declare function daemon for Cygwin.
10512
10513 2003-09-09  Jeff Johnston  <jjohnstn@redhat.com>
10514
10515         * libc/machine/powerpc/fix64.h: Fix typo for _simdldcheck
10516         prototype.
10517         * libc/machine/powerpc/simdldtoa.c: Remove prototype for
10518         _simdldcheck().  Also add unsigned cast for index variable in
10519         for loop using sizeof operators.
10520         * libc/machine/powerpc/strtoufix32.c: Remove unused variable.
10521         * libc/machine/powerpc/strtosfix64.c: Fix call to _simdldcheck.
10522         * libc/machine/powerpc/strtoufix64.c (_strtoufix64_r): Ditto
10523         plus fix shift calculation for determining if there is a
10524         carry from word2.
10525
10526 2003-09-09  Corinna Vinschen  <corinna@vinschen.de>
10527
10528         * libc/include/grp.h: Don't define setgrfile, group_from_gid and
10529         setgroupent for Cygwin.
10530
10531 2003-09-05  Jeff Johnston  <jjohnstn@redhat.com>
10532
10533         * libc/stdlib/exit.c (exit): Setting of struct _atexit ptr p
10534         is different for _REENT_SMALL than when using regular reent
10535         struct.
10536
10537 2003-09-05  Ben Elliston  <bje@wasabisystems.com>
10538
10539         * libc/ctype/wctype.c (_DEFUN): Remove empty default case, as
10540         modern versions of GCC issue a warning.
10541
10542         * libc/machine/xscale/memcmp.c (memcmp): Strip trailing whitespace
10543         after continuation characters that induces a warning from modern
10544         versions of GCC.
10545
10546 2003-09-04  Ben Elliston  <bje@wasabisystems.com>
10547
10548         * libc/stdlib/mstats.c[_ELIX_LEVEL]: Fix guards.  #ifndef FOO ||
10549         FOO >= 2 is invalid; use #if !defined (FOO) || FOO >= 2 instead.
10550
10551 2003-09-02  Thomas Pfaff  <tpfaff@gmx.net>
10552
10553         * libc/stdlib/atexit.c: Rename _REENT to _GLOBAL_REENT throughout.
10554         * libc/stdlib/exit.c : Ditto.
10555         * libc/stdlib/on_exit.c: Ditto.
10556
10557 2003-08-27  Corinna Vinschen  <corinna@vinschen.de>
10558
10559         * libc/include/reent.h: Define stat64 as __stat64 when
10560         compiling newlib for Cygwin.
10561
10562 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
10563
10564         * libc/include/sys/stat.h[__CYGWIN__]: Only define stat64 as
10565         __stat64 when compiling newlib.
10566
10567 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
10568
10569         * libc/include/stdio.h: Allow the io64 function prototypes for
10570         Cygwin when compiling newlib.
10571         * libc/include/sys/stat.h[__CYGWIN__]: Define stat64 as __stat64
10572         to expose the Cygwin struct __stat64 type.
10573         * libc/stdio64/fseeko64.c: Use _fstat64_r and pass a struct stat64
10574         pointer.
10575         * libc/stdio64/tmpfile64.c(_tmpfile64_r): Call _fopen64_r.
10576
10577 2003-08-23  Christopher Faylor  <cgf@redhat.com>
10578
10579         * libc/stdio64/fseeko64.c (fseeko64_r): Rename second fseeko64_r
10580         definition to fseeko64.
10581
10582 2003-08-22  Jeff Johnston  <jjohnstn@redhat.com>
10583
10584         * libc/include/sys/reent.h: Add _GLOBAL_REENT macro.
10585         * libc/stdio: Globally remove/replace all references to fp->_data.
10586         Replace with _REENT or _GLOBAL_REENT where appropriate.
10587         * libc/stdio/asprintf.c: Ditto.
10588         * libc/stdio/fclose.c: Ditto.
10589         * libc/stdio/fvwrite.c: Ditto.
10590         * libc/stdio/makebuf.c: Ditto.
10591         * libc/stdio/refill.c: Ditto.
10592         * libc/stdio/local.h: Ditto.
10593         * libc/stdio/setvbuf.c: Ditto.
10594         * libc/stdio/sscanf.c: Ditto.
10595         * libc/stdio/stdio.c: Ditto.
10596         * libc/stdio/ungetc.c: Ditto.
10597         * libc/stdio/vfscanf.c: Ditto.
10598         * libc/stdio/vsscanf.c: Ditto.
10599         * libc/stdio/fopen.c: Ditto.  Also use _fseek_r in _fopen_r.
10600         * libc/stdio/vasprintf.c: Ditto.  Also call _vfprintf_r directly.
10601         * libc/stdio/vsnprintf.c: Ditto.
10602         * libc/stdio/vsprintf.c: Ditto.
10603         * libc/stdio/fcloseall.c(fcloseall): Use _GLOBAL_REENT macro
10604         instead of _REENT to walk file list.
10605         * libc/stdio/fflush.c: Ditto.
10606         * libc/stdio/fgetpos.c: Add reentrant version and have regular
10607         version call reentrant version with _REENT argument.
10608         * libc/stdio/fsetpos.c: Ditto.
10609         * libc/stdio/fseek.c: Ditto.
10610         * libc/stdio/fseeko.c: Ditto.
10611         * libc/stdio/ftell.c: Ditto.
10612         * libc/stdio/ftello.c: Ditto.
10613         * libc/stdio/freopen.c: Ditto.
10614         * libc/stdio/findfp.c: Use _GLOBAL_REENT pointer when adding
10615         new files to chain.  Also use _GLOBAL_REENT pointer for
10616         cleaning up.
10617         * libc/stdio/fiprintf.c: Reformatted to minimize duplicate code.
10618         * libc/stdio/siprintf.c: Ditto.
10619         * libc/stdio/iprintf.c: Ditto.
10620         * libc/stdio/fprintf.c: Ditto.
10621         * libc/stdio/printf.c: Ditto.
10622         * libc/stdio/snprintf.c: Call _vfprintf_r directly.
10623         * libc/stdio/sprintf.c: Ditto.
10624         * libc/stdio/vprintf.c: Ditto.  Also add _REENT_ONLY check.
10625         * libc/stdio/rewind.c: Call _fseek_r directly.
10626         * libc/stdio/tmpfile.c: Call _fopen_r and _remove_r directly.
10627         * libc/stdio/vfprintf.c (_VFPRINTF_R): Change _r routines to use
10628         data pointer.
10629         (get_arg): Add extra struct _reent pointer argument.
10630         * libc/stdio64/fgetpos64.c: Add _r versions, remove any reference
10631         to fp->_data.
10632         * libc/stdio64/fopen64.c: Ditto.
10633         * libc/stdio64/freopen64.c: Ditto.
10634         * libc/stdio64/fsetpos64.c: Ditto.
10635         * libc/stdio64/ftello64.c: Ditto.
10636         * libc/stdio64/local64.h: Ditto.
10637         * libc/stdio64/stdio64.c: Ditto.
10638         * libc/stdio64/fseeko64.c: Ditto plus use _fstat_r instead of
10639         _fstat64_r for the meantime.
10640
10641 2003-08-19  Jeff Johnston  <jjohnstn@redhat.com>
10642
10643         * libc/stdlib/mallocr.c (mALLOc, rEALLOc, mEMEALIGn): Enhance
10644         overflow detection.
10645
10646 2003-08-13  Aldy Hernandez  <aldyh@redhat.com>
10647
10648         * libc/machine/powerpc/machine/stdlib.h: Wrap SPE functions in
10649         extern "C".
10650
10651 2003-08-13  Jeff Johnston  <jjohnstn@redhat.com>
10652
10653         * libc/include/math.h: Add prototypes for __signbitf and
10654         __signbitd.
10655
10656 2003-07-31  Jeff Johnston  <jjohnstn@redhat.com>
10657
10658         * libc/ctype/iswalpha.c: Fix calls to __jp2uc to pass the
10659         correct type of conversion when dealing with EUCJP or SJIS.
10660         * libc/ctype/iswblank.c: Ditto.
10661         * libc/ctype/iswcntrl.c: Ditto.
10662         * libc/ctype/iswprint.c: Ditto.
10663         * libc/ctype/iswpunct.c: Ditto.
10664         * libc/ctype/iswspace.c: Ditto.
10665         * libc/ctype/towlower.c: Ditto.
10666         * libc/ctype/towupper.c: Ditto.
10667
10668 2003-07-31  Nick Clifton  <nickc@redhat.com>
10669
10670         * libc/sys/sysnecv850/crt0.S (_start): Allocate 4 slots on stack
10671         before calling main, in case it saves its argument registers.
10672         Remove reference to deleted v850ea port.
10673         * configure.host: Remove reference to deleted v850ea port.
10674         Do not use -mv850 when building for v850e target.  This
10675         prevents the ctbp system register from being initialised.
10676
10677 2003-07-29  Honda Hiroki  <hhonda@ipflex.com>
10678
10679         * libc/stdio/vfprintf.c: Set output size to 1 when
10680         we have %f format with precision 0 and # flag not specified.
10681
10682 2003-07-29  Alexandre Oliva  <aoliva@redhat.com>
10683
10684         * libc/machine/mn10300/setjmp.S: Never emit both .am33 and
10685         .am33_2.
10686
10687 2003-07-25  Christopher Faylor  <cgf@redhat.com>
10688
10689         * libc/stdio64/fdopen64.c: Include sys/lock.h.
10690
10691 2003-07-25  Christopher Faylor  <cgf@redhat.com>
10692
10693         * configure.host: Find cygwin include directory, when appropriate.
10694
10695 2003-07-24  Christopher Faylor  <cgf@redhat.com>
10696
10697         * libc/stdio64/fdopen64.c: New file.
10698         * libc/stdio64/Makefile.am (LIB_OBJS): Add fdopen64.o
10699         * libc/stdio64/Makefile.in: Regenerate.
10700         * libc/include/stdio.h (fdopen64): Define.
10701         * libc/include/stdio.h (_fdopen64_r): Ditto.
10702
10703 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
10704
10705         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
10706         * libc/include/machine/setjmp.h (_JBLEN, AM33/2.0): Set to 26.
10707         * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Save and
10708         restore callee-saved FP registers.
10709
10710 2003-07-10  J"orn Rennecke <joern.rennecke@superh.com>
10711
10712         * libc/include/sys/unistd.h (ftruncate, truncate): Also declare
10713         for __sh__.
10714         * libc/sys/sh/Makefile.am (lib_a_SOURCES): Add ftruncate.c and
10715         truncate.c.
10716         * libc/sys/sh/Makefile.in: Regenerate.
10717         * libc/sys/sh/sys/syscall.h: (SYS_truncate, SYS_ftruncate): Define.
10718         * libc/sys/sh/ftruncate.c: New file.
10719         * libc/sys/sh/truncate.c: Likewise.
10720
10721 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
10722
10723         * libc/include/math.h (nan, nanf): Update prototype to C99.
10724         * libm/common/s_nan.c (nan): Likewise.
10725         * libm/common/s_nanf.c (nanf, nan): Likewise.
10726         * libc/sys/linux/cmath/math_private.h (nan, nanf): Likewise.
10727
10728 2003-07-07  Jeff Johnston  <jjohnstn@redhat.com>
10729
10730         * libc/include/stdbool.h: Removed as this is defined by gcc.
10731
10732 2003-07-03  Shaun Jackman  <sjackman@pathwayconnect.com>
10733
10734         * libc/include/stdbool.h: New header file defined by C99.
10735
10736 2003-07-02  Jeff Johnston  <jjohnstn@redhat.com>
10737
10738         * libc/include/sys/types.h (int8_t): Make signed.
10739
10740 2003-07-02  Jeff Johnston  <jjohnstn@redhat.com>
10741
10742         * libc/sys/linux/include/mqueue.h: Add include of <sys/fcntl.h>.
10743
10744 2003-06-27  Jose Goncalves  <jose.goncalves@inov.pt>
10745
10746         * libc/sys/linux/mq_open.c (mq_open): Only set created flag
10747         on if we actually created the shared memory file exclusively.
10748
10749 2003-06-27  Joe Vornehm  <joev@mitre.org>
10750
10751         * libm/common/s_fpclassify.c (__fpclassifyf): Fix
10752         comparisons to account for unsigned internal value w.
10753
10754 2003-06-26  Jeff Johnston  <jjohnstn@redhat.com>
10755
10756         * libc/sys/linux/mq_open.c (mq_open): Must allocate rdbuf and
10757         wrbuf for a non-creating open.
10758
10759 2003-06-24  Kazu Hirata  <kazu@cs.umass.edu>
10760
10761         * libc/machine/h8300/setarch.h: New.
10762         * libc/machine/h8300/memcpy.S: Use it.
10763         * libc/machine/h8300/memset.S: Likewise.
10764         * libc/machine/h8300/reg_memcpy.S: Likewise.
10765         * libc/machine/h8300/reg_memset.S: Likewise.
10766         * libc/machine/h8300/setjmp.S: Likewise.
10767         * libc/machine/h8300/strcmp.S: Likewise.
10768
10769 2003-06-24  Richard Sandiford  <rsandifo@redhat.com>
10770
10771         * libc/sys/h8300hms/crt0.S (_start): Fix register sizes in call
10772         to atexit().
10773
10774 2003-06-20  Jeff Johnston  <jjohnstn@redhat.com>
10775
10776         * configure.host (iq2000): Add tabs.
10777
10778 2003-06-20  Jeff Johnston  <jjohnstn@redhat.com>
10779
10780         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix macros
10781         to handle latest on_exit change.
10782         * libc/sys/linux/Makefile.am: Remove special compilation
10783         for malloc.c and mcheck.c.
10784         * libc/sys/linux/Makefile.in: Regenerated.
10785         * libc/sys/linux/mntent.c: Add definition of _LIBC flag
10786         after including <features.h>.
10787         * libc/sys/linux/mcheck.c: Ditto.
10788         * libc/sys/linux/malloc.c: Ditto plus define _GNU_SOURCE
10789         for <features.h>.
10790         * libc/sys/linux/intl/Makefile.am: Remove -D_LIBC and
10791         add -DNOT_IN_libc to C flags.
10792         * libc/sys/linux/intl/Makefile.in: Regenerated.
10793         * libc/sys/linux/intl/config.h: Add definition of _LIBC.
10794         * libc/sys/linux/linuxthreads/semaphore.h: Include
10795         <bits/pthreadtypes.h>.
10796         * libc/sys/linux/sys/dirent.h: Define _LIBC and NOT_IN_libc after
10797         including <features.h>.
10798         * libc/sys/linux/sys/lock.h: Ditto.
10799
10800 2003-06-11  Nick Clifton  <nickc@redhat.com>
10801
10802         * libc/reent/reent.c (reclaim_reent): Fix typo in code to free
10803         _on_exit_args_ptr.
10804
10805 2003-06-10  Stan Cox  <scox@redhat.com>
10806             Anthony Green  <green@redhat.com>
10807
10808         * configure.host: Add iq2000 support.
10809         * newlib/libc/include/machine/ieeefp.h: Ditto.
10810         * newlib/libc/include/machine/setjmp.h: Ditto.
10811         * libc/machine/iq2000, libc/machine/iq2000/setjmp.S,
10812         libc/machine/iq2000/aclocal.m4, libc/machine/iq2000/configure,
10813         libc/machine/iq2000/configure.in, libc/machine/iq2000/Makefile.am,
10814         libc/machine/iq2000/Makefile.in: New files.
10815
10816 2003-06-10  Richard Sandiford  <rsandifo@redhat.com>
10817
10818         * libc/sys/h8300hms/setarch.h: New file.
10819         * libc/sys/h8300hms/close.S, libc/sys/h8300hms/fstat.S,
10820         libc/sys/h8300hms/lseek.S, libc/sys/h8300hms/open.S,
10821         libc/sys/h8300hms/read.S, libc/sys/h8300hms/stat.S,
10822         libc/sys/h8300hms/write.S, libc/sys/h8300hms/crt0.S: Use it.
10823
10824 2003-06-06  Jeff Johnston  <jjohnstn@redhat.com>
10825
10826         * libc/argz/argz_add.c: Change to use _DEFUN macro for function
10827         definition.
10828         * libc/argz/argz_add_sep.c: Ditto.
10829         * libc/argz/argz_append.c libc/argz/argz_count.c: Ditto.
10830         * libc/argz/argz_create.c libc/argz/argz_create_sep.c: Ditto.
10831         * libc/argz/argz_delete.c libc/argz/argz_extract.c: Ditto.
10832         * libc/argz/argz_insert.c libc/argz/argz_next.c: Ditto.
10833         * libc/argz/argz_replace.c libc/argz/argz_stringify.c: Ditto.
10834         * libc/argz/envz_add.c libc/argz/envz_entry.c: Ditto.
10835         * libc/argz/envz_get.c libc/argz/envz_merge.c: Ditto.
10836         * libc/argz/envz_remove.c libc/argz/envz_strip.c: Ditto.
10837         * libc/locale/nl_langinfo.c libc/misc/ffs.c: Ditto.
10838         * libc/posix/closedir.c libc/posix/creat.c: Ditto.
10839         * libc/posix/execl.c libc/posix/execle.c: Ditto.
10840         * libc/posix/execlp.c libc/posix/execve.c: Ditto.
10841         * libc/posix/isatty.c libc/posix/opendir.c: Ditto.
10842         * libc/posix/popen.c libc/posix/readdir.c: Ditto.
10843         * libc/posix/readdir_r.c libc/posix/rewinddir.c: Ditto.
10844         * libc/posix/scandir.c libc/posix/seekdir.c: Ditto.
10845         * libc/posix/telldir.c libc/search/hcreate.c: Ditto.
10846         * libc/search/tdelete.c libc/search/tdestroy.c: Ditto.
10847         * libc/search/tfind.c libc/search/tsearch.c: Ditto.
10848         * libc/search/twalk.c libc/signal/signal.c: Ditto.
10849
10850 2003-06-05  Nick Clifton  <nickc@redhat.com>
10851
10852         * libc/include/sys/reent.h (struct _on_exit_args): New
10853         structure containing fields used by the on_exit() function.
10854         (struct _atexit): Include struct _on_exit_args.  For
10855         _REENT_SMALL do his via a pointer that is initialised when
10856         needed.
10857         * libc/reent/reent.c (_reclaim_reent): Free the _on_exit_args
10858         structure, if one has been allocated.
10859         * libc/stdlib/atexit.c (atexit): Update indirection to
10860         _fntypes field.
10861         * libc/stdlib/on_exit.c (on_exit): Indirect via the
10862         _on_exit_args structure.  For _REENT_SMALL, allocate a
10863         structure if one does not exist.
10864         * libc/stdlib/exit.c (exit): Indirect via the _on_exit_args
10865         structure.
10866
10867 2003-06-04  Jeff Johnston  <jjohnstn@redhat.com>
10868
10869         * libc/sys/linux/net/Makefile.am: Remove extraneous markers.
10870         * libc/sys/linux/net/Makefile.in: Regenerated.
10871
10872 2003-06-03  Jeff Johnston  <jjohnstn@redhat.com>
10873
10874         * libc/reent/execr.c: Use _DEFUN macro for function declaration.
10875         * libc/reent/fcntlr.c: Ditto.
10876         * libc/reent/fstat64r.c: Ditto.
10877         * libc/reent/linkr.c: Ditto.
10878         * libc/reent/lseek64r.c: Ditto.
10879         * libc/reent/lseekr.c: Ditto.
10880         * libc/reent/openr.c: Ditto.
10881         * libc/reent/readr.c: Ditto.
10882         * libc/reent/reent.c: Ditto.
10883         * libc/reent/sbrkr.c: Ditto.
10884         * libc/reent/signalr.c: Ditto.
10885         * libc/reent/signgam.c: Ditto.
10886         * libc/reent/statr.c: Ditto.
10887         * libc/reent/timer.c: Ditto.
10888         * libc/reent/unlinkr.c: Ditto.
10889         * libc/reent/writer.c: Ditto.
10890         * libc/syscalls/sysclose.c: Ditto.
10891         * libc/syscalls/sysexecve.c: Ditto.
10892         * libc/syscalls/sysfcntl.c: Ditto.
10893         * libc/syscalls/sysfork.c: Ditto.
10894         * libc/syscalls/sysfstat.c: Ditto.
10895         * libc/syscalls/sysgetpid.c: Ditto.
10896         * libc/syscalls/sysgettod.c: Ditto.
10897         * libc/syscalls/syskill.c: Ditto.
10898         * libc/syscalls/syslink.c: Ditto.
10899         * libc/syscalls/syslseek.c: Ditto.
10900         * libc/syscalls/sysopen.c: Ditto.
10901         * libc/syscalls/sysread.c: Ditto.
10902         * libc/syscalls/syssbrk.c: Ditto.
10903         * libc/syscalls/sysstat.c: Ditto.
10904         * libc/syscalls/systimes.c: Ditto.
10905         * libc/syscalls/sysunlink.c: Ditto.
10906         * libc/syscalls/syswait.c: Ditto.
10907         * libc/syscalls/syswrite.c: Ditto.
10908
10909 2003-06-03  Till Straumann  <strauman@SLAC.Stanford.EDU>
10910
10911         * libc/time/tzset_r.c: Change local variables that are
10912         set via sscanf using the %h format specifier to be unsigned short
10913         instead of int.
10914
10915 2003-05-30  Kelley Cook  <kelleycook@wideopenwest.com>
10916
10917         * configure.host:  Allow i[34567]86 variant.
10918         * configure.in: Likewise.
10919         * README: Likewise to the docs.
10920         * configure: Regenerated.
10921         * Makefile.in: Ditto.
10922
10923 2003-05-28  Jeff Johnston  <jjohnstn@redhat.com>
10924             Tom Fitzsimmons  <fitzsim@redhat.com>
10925
10926         * configure.in: Add iconvdata support for x86 linux.
10927         * configure: Regenerated.
10928         * libc/sys/linux/Makefile.am: Add EL/IX level 3 network, dynamic
10929         library, iconv, and linuxthreads support.
10930         * libc/sys/linux/configure.in: Ditto.
10931         * libc/sys/linux/Makefile.in: Regenerated.
10932         * libc/sys/linux/configure: Ditto.
10933         * iconvdata/EUC-JP.irreversible: New file.
10934         * iconvdata/Makefile.am: Ditto.
10935         * iconvdata/Makefile.in: Ditto.
10936         * iconvdata/SJIS.irreversible: Ditto.
10937         * iconvdata/aclocal.m4: Ditto.
10938         * iconvdata/configure: Ditto.
10939         * iconvdata/configure.in: Ditto.
10940         * iconvdata/dummy.c: Ditto.
10941         * iconvdata/euc-jp.c: Ditto.
10942         * iconvdata/gconv-modules: Ditto.
10943         * iconvdata/jis0201.c: Ditto.
10944         * iconvdata/jis0201.h: Ditto.
10945         * iconvdata/jis0208.c: Ditto.
10946         * iconvdata/jis0208.h: Ditto.
10947         * iconvdata/jis0212.c: Ditto.
10948         * iconvdata/jis0212.h: Ditto.
10949         * iconvdata/sjis.c: Ditto.
10950         * libc/include/errno.h: Protect definition of error_t.
10951         * libc/sys/linux/gethostid.c: New file.
10952         * libc/sys/linux/sethostid.c: Ditto.
10953         * libc/sys/linux/dl/Makefile.am: Ditto.
10954         * libc/sys/linux/dl/Makefile.in: Ditto.
10955         * libc/sys/linux/dl/abi-tag.h: Ditto.
10956         * libc/sys/linux/dl/atomicity.h: Ditto.
10957         * libc/sys/linux/dl/dl-addr.c: Ditto.
10958         * libc/sys/linux/dl/dl-cache.c: Ditto.
10959         * libc/sys/linux/dl/dl-cache.h: Ditto.
10960         * libc/sys/linux/dl/dl-close.c: Ditto.
10961         * libc/sys/linux/dl/dl-debug.c: Ditto.
10962         * libc/sys/linux/dl/dl-deps.c: Ditto.
10963         * libc/sys/linux/dl/dl-dst.h: Ditto.
10964         * libc/sys/linux/dl/dl-error.c: Ditto.
10965         * libc/sys/linux/dl/dl-fini.c: Ditto.
10966         * libc/sys/linux/dl/dl-init.c: Ditto.
10967         * libc/sys/linux/dl/dl-iteratephdr.c: Ditto.
10968         * libc/sys/linux/dl/dl-libc.c: Ditto.
10969         * libc/sys/linux/dl/dl-librecon.h: Ditto.
10970         * libc/sys/linux/dl/dl-load.c: Ditto.
10971         * libc/sys/linux/dl/dl-lookup.c: Ditto.
10972         * libc/sys/linux/dl/dl-lookupcfg.h: Ditto.
10973         * libc/sys/linux/dl/dl-minimal.c: Ditto.
10974         * libc/sys/linux/dl/dl-misc.c: Ditto.
10975         * libc/sys/linux/dl/dl-object.c: Ditto.
10976         * libc/sys/linux/dl/dl-open.c: Ditto.
10977         * libc/sys/linux/dl/dl-osinfo.h: Ditto.
10978         * libc/sys/linux/dl/dl-profile.c: Ditto.
10979         * libc/sys/linux/dl/dl-profstub.c: Ditto.
10980         * libc/sys/linux/dl/dl-reloc.c: Ditto.
10981         * libc/sys/linux/dl/dl-runtime.c: Ditto.
10982         * libc/sys/linux/dl/dl-support.c: Ditto.
10983         * libc/sys/linux/dl/dl-sym.c: Ditto.
10984         * libc/sys/linux/dl/dl-version.c: Ditto.
10985         * libc/sys/linux/dl/dlfcn.h: Ditto.
10986         * libc/sys/linux/dl/do-lookup.h: Ditto.
10987         * libc/sys/linux/dl/do-rel.h: Ditto.
10988         * libc/sys/linux/dl/dynamic-link.h: Ditto.
10989         * libc/sys/linux/dl/kernel-features.h: Ditto.
10990         * libc/sys/linux/dl/ldsodefs.h: Ditto.
10991         * libc/sys/linux/dl/libintl.h: Ditto.
10992         * libc/sys/linux/dl/trusted-dirs.h: Ditto.
10993         * libc/sys/linux/dl/unsecvars.h: Ditto.
10994         * libc/sys/linux/iconv/Makefile.am: Ditto.
10995         * libc/sys/linux/iconv/Makefile.in: Ditto.
10996         * libc/sys/linux/iconv/categories.def: Ditto.
10997         * libc/sys/linux/iconv/dummy-repertoire.c: Ditto.
10998         * libc/sys/linux/iconv/gconv.c: Ditto.
10999         * libc/sys/linux/iconv/gconv_builtin.c: Ditto.
11000         * libc/sys/linux/iconv/gconv_builtin.h: Ditto.
11001         * libc/sys/linux/iconv/gconv_cache.c: Ditto.
11002         * libc/sys/linux/iconv/gconv_charset.h: Ditto.
11003         * libc/sys/linux/iconv/gconv_close.c: Ditto.
11004         * libc/sys/linux/iconv/gconv_conf.c: Ditto.
11005         * libc/sys/linux/iconv/gconv_db.c: Ditto.
11006         * libc/sys/linux/iconv/gconv_dl.c: Ditto.
11007         * libc/sys/linux/iconv/gconv_int.h: Ditto.
11008         * libc/sys/linux/iconv/gconv_open.c: Ditto.
11009         * libc/sys/linux/iconv/gconv_simple.c: Ditto.
11010         * libc/sys/linux/iconv/gconv_trans.c: Ditto.
11011         * libc/sys/linux/iconv/hash-string.h: Ditto.
11012         * libc/sys/linux/iconv/iconv.c: Ditto.
11013         * libc/sys/linux/iconv/iconv.h: Ditto.
11014         * libc/sys/linux/iconv/iconv_charmap.c: Ditto.
11015         * libc/sys/linux/iconv/iconv_close.c: Ditto.
11016         * libc/sys/linux/iconv/iconv_open.c: Ditto.
11017         * libc/sys/linux/iconv/iconvconfig.c: Ditto.
11018         * libc/sys/linux/iconv/iconvconfig.h: Ditto.
11019         * libc/sys/linux/iconv/loadinfo.h: Ditto.
11020         * libc/sys/linux/iconv/localeinfo.h: Ditto.
11021         * libc/sys/linux/iconv/loop.c: Ditto.
11022         * libc/sys/linux/iconv/skeleton.c: Ditto.
11023         * libc/sys/linux/iconv/strtab.c: Ditto.
11024         * libc/sys/linux/include/dl-hash.h: Ditto.
11025         * libc/sys/linux/include/dlfcn.h: Ditto.
11026         * libc/sys/linux/include/fnmatch.h: Ditto.
11027         * libc/sys/linux/include/gconv.h: Ditto.
11028         * libc/sys/linux/include/glob.h: Ditto.
11029         * libc/sys/linux/include/hesiod.h: Ditto.
11030         * libc/sys/linux/include/ifaddrs.h: Ditto.
11031         * libc/sys/linux/include/libc_private.h: Ditto.
11032         * libc/sys/linux/include/link.h: Ditto.
11033         * libc/sys/linux/include/namespace.h: Ditto.
11034         * libc/sys/linux/include/netconfig.h: Ditto.
11035         * libc/sys/linux/include/netdb.h: Ditto.
11036         * libc/sys/linux/include/nsswitch.h: Ditto.
11037         * libc/sys/linux/include/regex.h: Ditto.
11038         * libc/sys/linux/include/resolv.h: Ditto.
11039         * libc/sys/linux/include/rune.h: Ditto.
11040         * libc/sys/linux/include/runetype.h: Ditto.
11041         * libc/sys/linux/include/semaphore.h: Ditto.
11042         * libc/sys/linux/include/setlocale.h: Ditto.
11043         * libc/sys/linux/include/un-namespace.h: Ditto.
11044         * libc/sys/linux/include/wordexp.h: Ditto.
11045         * libc/sys/linux/include/arpa/ftp.h: Ditto.
11046         * libc/sys/linux/include/arpa/inet.h: Ditto.
11047         * libc/sys/linux/include/arpa/nameser.h: Ditto.
11048         * libc/sys/linux/include/arpa/nameser_compat.h: Ditto.
11049         * libc/sys/linux/include/arpa/telnet.h: Ditto.
11050         * libc/sys/linux/include/arpa/tftp.h: Ditto.
11051         * libc/sys/linux/include/net/bpf.h: Ditto.
11052         * libc/sys/linux/include/net/bpf_compat.h: Ditto.
11053         * libc/sys/linux/include/net/bpfdesc.h: Ditto.
11054         * libc/sys/linux/include/net/bridge.h: Ditto.
11055         * libc/sys/linux/include/net/ethernet.h: Ditto.
11056         * libc/sys/linux/include/net/fddi.h: Ditto.
11057         * libc/sys/linux/include/net/if.h: Ditto.
11058         * libc/sys/linux/include/net/if_arc.h: Ditto.
11059         * libc/sys/linux/include/net/if_arp.h: Ditto.
11060         * libc/sys/linux/include/net/if_atm.h: Ditto.
11061         * libc/sys/linux/include/net/if_dl.h: Ditto.
11062         * libc/sys/linux/include/net/if_gif.h: Ditto.
11063         * libc/sys/linux/include/net/if_ieee80211.h: Ditto.
11064         * libc/sys/linux/include/net/if_llc.h: Ditto.
11065         * libc/sys/linux/include/net/if_media.h: Ditto.
11066         * libc/sys/linux/include/net/if_mib.h: Ditto.
11067         * libc/sys/linux/include/net/if_ppp.h: Ditto.
11068         * libc/sys/linux/include/net/if_pppvar.h: Ditto.
11069         * libc/sys/linux/include/net/if_slvar.h: Ditto.
11070         * libc/sys/linux/include/net/if_sppp.h: Ditto.
11071         * libc/sys/linux/include/net/if_stf.h: Ditto.
11072         * libc/sys/linux/include/net/if_tap.h: Ditto.
11073         * libc/sys/linux/include/net/if_tapvar.h: Ditto.
11074         * libc/sys/linux/include/net/if_tun.h: Ditto.
11075         * libc/sys/linux/include/net/if_tunvar.h: Ditto.
11076         * libc/sys/linux/include/net/if_types.h: Ditto.
11077         * libc/sys/linux/include/net/if_var.h: Ditto.
11078         * libc/sys/linux/include/net/if_vlan_var.h: Ditto.
11079         * libc/sys/linux/include/net/intrq.h: Ditto.
11080         * libc/sys/linux/include/net/iso88025.h: Ditto.
11081         * libc/sys/linux/include/net/net_osdep.h: Ditto.
11082         * libc/sys/linux/include/net/netisr.h: Ditto.
11083         * libc/sys/linux/include/net/pfil.h: Ditto.
11084         * libc/sys/linux/include/net/pfkeyv2.h: Ditto.
11085         * libc/sys/linux/include/net/ppp_comp.h: Ditto.
11086         * libc/sys/linux/include/net/ppp_defs.h: Ditto.
11087         * libc/sys/linux/include/net/radix.h: Ditto.
11088         * libc/sys/linux/include/net/raw_cb.h: Ditto.
11089         * libc/sys/linux/include/net/route.h: Ditto.
11090         * libc/sys/linux/include/net/slcompress.h: Ditto.
11091         * libc/sys/linux/include/net/slip.h: Ditto.
11092         * libc/sys/linux/include/net/zlib.h: Ditto.
11093         * libc/sys/linux/include/netinet/icmp6.h: Ditto.
11094         * libc/sys/linux/include/netinet/icmp_var.h: Ditto.
11095         * libc/sys/linux/include/netinet/if_atm.h: Ditto.
11096         * libc/sys/linux/include/netinet/if_ether.h: Ditto.
11097         * libc/sys/linux/include/netinet/igmp.h: Ditto.
11098         * libc/sys/linux/include/netinet/igmp_var.h: Ditto.
11099         * libc/sys/linux/include/netinet/in.h: Ditto.
11100         * libc/sys/linux/include/netinet/in_gif.h: Ditto.
11101         * libc/sys/linux/include/netinet/in_pcb.h: Ditto.
11102         * libc/sys/linux/include/netinet/in_systm.h: Ditto.
11103         * libc/sys/linux/include/netinet/in_var.h: Ditto.
11104         * libc/sys/linux/include/netinet/ip.h: Ditto.
11105         * libc/sys/linux/include/netinet/ip6.h: Ditto.
11106         * libc/sys/linux/include/netinet/ip_dummynet.h: Ditto.
11107         * libc/sys/linux/include/netinet/ip_ecn.h: Ditto.
11108         * libc/sys/linux/include/netinet/ip_encap.h: Ditto.
11109         * libc/sys/linux/include/netinet/ip_flow.h: Ditto.
11110         * libc/sys/linux/include/netinet/ip_fw.h: Ditto.
11111         * libc/sys/linux/include/netinet/ip_icmp.h: Ditto.
11112         * libc/sys/linux/include/netinet/ip_mroute.h: Ditto.
11113         * libc/sys/linux/include/netinet/ip_var.h: Ditto.
11114         * libc/sys/linux/include/netinet/ipprotosw.h: Ditto.
11115         * libc/sys/linux/include/netinet/tcp.h: Ditto.
11116         * libc/sys/linux/include/netinet/tcp_debug.h: Ditto.
11117         * libc/sys/linux/include/netinet/tcp_fsm.h: Ditto.
11118         * libc/sys/linux/include/netinet/tcp_seq.h: Ditto.
11119         * libc/sys/linux/include/netinet/tcp_timer.h: Ditto.
11120         * libc/sys/linux/include/netinet/tcp_var.h: Ditto.
11121         * libc/sys/linux/include/netinet/tcpip.h: Ditto.
11122         * libc/sys/linux/include/netinet/udp.h: Ditto.
11123         * libc/sys/linux/include/netinet/udp_var.h: Ditto.
11124         * libc/sys/linux/include/netinet6/ah.h: Ditto.
11125         * libc/sys/linux/include/netinet6/ah6.h: Ditto.
11126         * libc/sys/linux/include/netinet6/esp.h: Ditto.
11127         * libc/sys/linux/include/netinet6/esp6.h: Ditto.
11128         * libc/sys/linux/include/netinet6/esp_rijndael.h: Ditto.
11129         * libc/sys/linux/include/netinet6/icmp6.h: Ditto.
11130         * libc/sys/linux/include/netinet6/in6.h: Ditto.
11131         * libc/sys/linux/include/netinet6/in6_gif.h: Ditto.
11132         * libc/sys/linux/include/netinet6/in6_ifattach.h: Ditto.
11133         * libc/sys/linux/include/netinet6/in6_pcb.h: Ditto.
11134         * libc/sys/linux/include/netinet6/in6_prefix.h: Ditto.
11135         * libc/sys/linux/include/netinet6/in6_var.h: Ditto.
11136         * libc/sys/linux/include/netinet6/ip6.h: Ditto.
11137         * libc/sys/linux/include/netinet6/ip6_ecn.h: Ditto.
11138         * libc/sys/linux/include/netinet6/ip6_fw.h: Ditto.
11139         * libc/sys/linux/include/netinet6/ip6_mroute.h: Ditto.
11140         * libc/sys/linux/include/netinet6/ip6_var.h: Ditto.
11141         * libc/sys/linux/include/netinet6/ip6protosw.h: Ditto.
11142         * libc/sys/linux/include/netinet6/ipcomp.h: Ditto.
11143         * libc/sys/linux/include/netinet6/ipcomp6.h: Ditto.
11144         * libc/sys/linux/include/netinet6/ipsec.h: Ditto.
11145         * libc/sys/linux/include/netinet6/ipsec6.h: Ditto.
11146         * libc/sys/linux/include/netinet6/mld6_var.h: Ditto.
11147         * libc/sys/linux/include/netinet6/nd6.h: Ditto.
11148         * libc/sys/linux/include/netinet6/pim6.h: Ditto.
11149         * libc/sys/linux/include/netinet6/pim6_var.h: Ditto.
11150         * libc/sys/linux/include/netinet6/raw_ip6.h: Ditto.
11151         * libc/sys/linux/include/netinet6/scope6_var.h: Ditto.
11152         * libc/sys/linux/include/netinet6/tcp6_var.h: Ditto.
11153         * libc/sys/linux/include/netinet6/udp6_var.h: Ditto.
11154         * libc/sys/linux/include/netns/idp.h: Ditto.
11155         * libc/sys/linux/include/netns/idp_var.h: Ditto.
11156         * libc/sys/linux/include/netns/ns.h: Ditto.
11157         * libc/sys/linux/include/netns/ns_error.h: Ditto.
11158         * libc/sys/linux/include/netns/ns_if.h: Ditto.
11159         * libc/sys/linux/include/netns/ns_pcb.h: Ditto.
11160         * libc/sys/linux/include/netns/sp.h: Ditto.
11161         * libc/sys/linux/include/netns/spidp.h: Ditto.
11162         * libc/sys/linux/include/netns/spp_debug.h: Ditto.
11163         * libc/sys/linux/include/netns/spp_timer.h: Ditto.
11164         * libc/sys/linux/include/netns/spp_var.h: Ditto.
11165         * libc/sys/linux/include/rpc/Makefile: Ditto.
11166         * libc/sys/linux/include/rpc/auth.h: Ditto.
11167         * libc/sys/linux/include/rpc/auth_des.h: Ditto.
11168         * libc/sys/linux/include/rpc/auth_kerb.h: Ditto.
11169         * libc/sys/linux/include/rpc/auth_unix.h: Ditto.
11170         * libc/sys/linux/include/rpc/clnt.h: Ditto.
11171         * libc/sys/linux/include/rpc/clnt_soc.h: Ditto.
11172         * libc/sys/linux/include/rpc/clnt_stat.h: Ditto.
11173         * libc/sys/linux/include/rpc/des.h: Ditto.
11174         * libc/sys/linux/include/rpc/des_crypt.h: Ditto.
11175         * libc/sys/linux/include/rpc/nettype.h: Ditto.
11176         * libc/sys/linux/include/rpc/pmap_clnt.h: Ditto.
11177         * libc/sys/linux/include/rpc/pmap_prot.h: Ditto.
11178         * libc/sys/linux/include/rpc/pmap_rmt.h: Ditto.
11179         * libc/sys/linux/include/rpc/raw.h: Ditto.
11180         * libc/sys/linux/include/rpc/rpc.h: Ditto.
11181         * libc/sys/linux/include/rpc/rpc_com.h: Ditto.
11182         * libc/sys/linux/include/rpc/rpc_msg.h: Ditto.
11183         * libc/sys/linux/include/rpc/rpcb_clnt.h: Ditto.
11184         * libc/sys/linux/include/rpc/rpcb_prot.h: Ditto.
11185         * libc/sys/linux/include/rpc/rpcb_prot.x: Ditto.
11186         * libc/sys/linux/include/rpc/rpcent.h: Ditto.
11187         * libc/sys/linux/include/rpc/svc.h: Ditto.
11188         * libc/sys/linux/include/rpc/svc_auth.h: Ditto.
11189         * libc/sys/linux/include/rpc/svc_dg.h: Ditto.
11190         * libc/sys/linux/include/rpc/svc_soc.h: Ditto.
11191         * libc/sys/linux/include/rpc/types.h: Ditto.
11192         * libc/sys/linux/include/rpc/xdr.h: Ditto.
11193         * libc/sys/linux/intl/Makefile.am: Ditto.
11194         * libc/sys/linux/intl/Makefile.in: Ditto.
11195         * libc/sys/linux/intl/bindtextdom.c: Ditto.
11196         * libc/sys/linux/intl/catgets.c: Ditto.
11197         * libc/sys/linux/intl/catgetsinfo.h: Ditto.
11198         * libc/sys/linux/intl/config.h: Ditto.
11199         * libc/sys/linux/intl/dcgettext.c: Ditto.
11200         * libc/sys/linux/intl/dcigettext.c: Ditto.
11201         * libc/sys/linux/intl/dcngettext.c: Ditto.
11202         * libc/sys/linux/intl/dgettext.c: Ditto.
11203         * libc/sys/linux/intl/dngettext.c: Ditto.
11204         * libc/sys/linux/intl/explodename.c: Ditto.
11205         * libc/sys/linux/intl/finddomain.c: Ditto.
11206         * libc/sys/linux/intl/gettext.c: Ditto.
11207         * libc/sys/linux/intl/gettext.h: Ditto.
11208         * libc/sys/linux/intl/gettextP.h: Ditto.
11209         * libc/sys/linux/intl/hash-string.h: Ditto.
11210         * libc/sys/linux/intl/l10nflist.c: Ditto.
11211         * libc/sys/linux/intl/loadinfo.h: Ditto.
11212         * libc/sys/linux/intl/loadmsgcat.c: Ditto.
11213         * libc/sys/linux/intl/locale.alias: Ditto.
11214         * libc/sys/linux/intl/localealias.c: Ditto.
11215         * libc/sys/linux/intl/ngettext.c: Ditto.
11216         * libc/sys/linux/intl/open_catalog.c: Ditto.
11217         * libc/sys/linux/intl/plural.c: Ditto.
11218         * libc/sys/linux/intl/plural.y: Ditto.
11219         * libc/sys/linux/intl/stpcpy.c: Ditto.
11220         * libc/sys/linux/intl/textdomain.c: Ditto.
11221         * libc/sys/linux/linuxthreads/LICENSE: Ditto.
11222         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
11223         * libc/sys/linux/linuxthreads/Makefile.in: Ditto.
11224         * libc/sys/linux/linuxthreads/aclocal.m4: Ditto.
11225         * libc/sys/linux/linuxthreads/attr.c: Ditto.
11226         * libc/sys/linux/linuxthreads/barrier.c: Ditto.
11227         * libc/sys/linux/linuxthreads/bp-sym.h: Ditto.
11228         * libc/sys/linux/linuxthreads/cancel.c: Ditto.
11229         * libc/sys/linux/linuxthreads/condvar.c: Ditto.
11230         * libc/sys/linux/linuxthreads/config.h: Ditto.
11231         * libc/sys/linux/linuxthreads/configure: Ditto.
11232         * libc/sys/linux/linuxthreads/configure.in: Ditto.
11233         * libc/sys/linux/linuxthreads/defs.awk: Ditto.
11234         * libc/sys/linux/linuxthreads/ecmutex.c: Ditto.
11235         * libc/sys/linux/linuxthreads/events.c: Ditto.
11236         * libc/sys/linux/linuxthreads/getcpuclockid.c: Ditto.
11237         * libc/sys/linux/linuxthreads/getreent.c: Ditto.
11238         * libc/sys/linux/linuxthreads/internals.h: Ditto.
11239         * libc/sys/linux/linuxthreads/join.c: Ditto.
11240         * libc/sys/linux/linuxthreads/joinrace.c: Ditto.
11241         * libc/sys/linux/linuxthreads/kernel-features.h: Ditto.
11242         * libc/sys/linux/linuxthreads/libc-internal.h: Ditto.
11243         * libc/sys/linux/linuxthreads/libc-symbols.h: Ditto.
11244         * libc/sys/linux/linuxthreads/linuxthreads.texi: Ditto.
11245         * libc/sys/linux/linuxthreads/lockfile.c: Ditto.
11246         * libc/sys/linux/linuxthreads/manager.c: Ditto.
11247         * libc/sys/linux/linuxthreads/mq_notify.c: Ditto.
11248         * libc/sys/linux/linuxthreads/mutex.c: Ditto.
11249         * libc/sys/linux/linuxthreads/no-tsd.c: Ditto.
11250         * libc/sys/linux/linuxthreads/oldsemaphore.c: Ditto.
11251         * libc/sys/linux/linuxthreads/posix-timer.h: Ditto.
11252         * libc/sys/linux/linuxthreads/prio.c: Ditto.
11253         * libc/sys/linux/linuxthreads/proc_service.h: Ditto.
11254         * libc/sys/linux/linuxthreads/pt-machine.c: Ditto.
11255         * libc/sys/linux/linuxthreads/ptclock_gettime.c: Ditto.
11256         * libc/sys/linux/linuxthreads/ptclock_settime.c: Ditto.
11257         * libc/sys/linux/linuxthreads/ptfork.c: Ditto.
11258         * libc/sys/linux/linuxthreads/pthread.c: Ditto.
11259         * libc/sys/linux/linuxthreads/ptlongjmp.c: Ditto.
11260         * libc/sys/linux/linuxthreads/queue.h: Ditto.
11261         * libc/sys/linux/linuxthreads/reent.c: Ditto.
11262         * libc/sys/linux/linuxthreads/reqsyscalls.c: Ditto.
11263         * libc/sys/linux/linuxthreads/restart.h: Ditto.
11264         * libc/sys/linux/linuxthreads/rwlock.c: Ditto.
11265         * libc/sys/linux/linuxthreads/semaphore.c: Ditto.
11266         * libc/sys/linux/linuxthreads/semaphore.h: Ditto.
11267         * libc/sys/linux/linuxthreads/shlib-compat.h: Ditto.
11268         * libc/sys/linux/linuxthreads/signals.c: Ditto.
11269         * libc/sys/linux/linuxthreads/specific.c: Ditto.
11270         * libc/sys/linux/linuxthreads/spinlock.c: Ditto.
11271         * libc/sys/linux/linuxthreads/spinlock.h: Ditto.
11272         * libc/sys/linux/linuxthreads/sysctl.c: Ditto.
11273         * libc/sys/linux/linuxthreads/td_init.c: Ditto.
11274         * libc/sys/linux/linuxthreads/td_log.c: Ditto.
11275         * libc/sys/linux/linuxthreads/td_symbol_list.c: Ditto.
11276         * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto.
11277         * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto.
11278         * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto.
11279         * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto.
11280         * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto.
11281         * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto.
11282         * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto.
11283         * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto.
11284         * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto.
11285         * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto.
11286         * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto.
11287         * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto.
11288         * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto.
11289         * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto.
11290         * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto.
11291         * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto.
11292         * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto.
11293         * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto.
11294         * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto.
11295         * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto.
11296         * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto.
11297         * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto.
11298         * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto.
11299         * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto.
11300         * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto.
11301         * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto.
11302         * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto.
11303         * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto.
11304         * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto.
11305         * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto.
11306         * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto.
11307         * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto.
11308         * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto.
11309         * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto.
11310         * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto.
11311         * libc/sys/linux/linuxthreads/testrtsig.h: Ditto.
11312         * libc/sys/linux/linuxthreads/thread_db.h: Ditto.
11313         * libc/sys/linux/linuxthreads/thread_dbP.h: Ditto.
11314         * libc/sys/linux/linuxthreads/timer_create.c: Ditto.
11315         * libc/sys/linux/linuxthreads/timer_delete.c: Ditto.
11316         * libc/sys/linux/linuxthreads/timer_getoverr.c: Ditto.
11317         * libc/sys/linux/linuxthreads/timer_gettime.c: Ditto.
11318         * libc/sys/linux/linuxthreads/timer_routines.c: Ditto.
11319         * libc/sys/linux/linuxthreads/timer_settime.c: Ditto.
11320         * libc/sys/linux/linuxthreads/tst-cancel.c: Ditto.
11321         * libc/sys/linux/linuxthreads/tst-context.c: Ditto.
11322         * libc/sys/linux/linuxthreads/tststack.c: Ditto.
11323         * libc/sys/linux/linuxthreads/unload.c: Ditto.
11324         * libc/sys/linux/linuxthreads/weaks.c: Ditto.
11325         * libc/sys/linux/linuxthreads/wrapsyscall.c: Ditto.
11326         * libc/sys/linux/linuxthreads/bits/initspin.h: Ditto.
11327         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Ditto.
11328         * libc/sys/linux/linuxthreads/bits/libc-tsd.h: Ditto.
11329         * libc/sys/linux/linuxthreads/bits/local_lim.h: Ditto.
11330         * libc/sys/linux/linuxthreads/bits/posix_opt.h: Ditto.
11331         * libc/sys/linux/linuxthreads/bits/pthreadtypes.h: Ditto.
11332         * libc/sys/linux/linuxthreads/bits/sigthread.h: Ditto.
11333         * libc/sys/linux/linuxthreads/machine/Makefile.am: Ditto.
11334         * libc/sys/linux/linuxthreads/machine/Makefile.in: Ditto.
11335         * libc/sys/linux/linuxthreads/machine/aclocal.m4: Ditto.
11336         * libc/sys/linux/linuxthreads/machine/configure: Ditto.
11337         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
11338         * libc/sys/linux/linuxthreads/machine/generic/generic-sysd: Ditto.ep.h
11339         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
11340         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Ditto.
11341         * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Ditto.
11342         * libc/sys/linux/linuxthreads/machine/i386/bp-asm.h: Ditto.
11343         * libc/sys/linux/linuxthreads/machine/i386/clone.S: Ditto.
11344         * libc/sys/linux/linuxthreads/machine/i386/configure: Ditto.
11345         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
11346         * libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.S: Ditto.
11347         * libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.h: Ditto.
11348         * libc/sys/linux/linuxthreads/machine/i386/pspinlock.c: Ditto.
11349         * libc/sys/linux/linuxthreads/machine/i386/pt-machine.h: Ditto.
11350         * libc/sys/linux/linuxthreads/machine/i386/sigcontextinfo.h: Ditto.
11351         * libc/sys/linux/linuxthreads/machine/i386/stackinfo.h: Ditto.
11352         * libc/sys/linux/linuxthreads/machine/i386/sysdep.S: Ditto.
11353         * libc/sys/linux/linuxthreads/machine/i386/sysdep.h: Ditto.
11354         * libc/sys/linux/linuxthreads/machine/i386/useldt.h: Ditto.
11355         * libc/sys/linux/machine/i386/dl-machine.h: Ditto.
11356         * libc/sys/linux/net/Makefile.am: Ditto.
11357         * libc/sys/linux/net/Makefile.in: Ditto.
11358         * libc/sys/linux/net/addr2ascii.3: Ditto.
11359         * libc/sys/linux/net/addr2ascii.c: Ditto.
11360         * libc/sys/linux/net/ascii2addr.c: Ditto.
11361         * libc/sys/linux/net/base64.c: Ditto.
11362         * libc/sys/linux/net/bindresvport.c: Ditto.
11363         * libc/sys/linux/net/byteorder.3: Ditto.
11364         * libc/sys/linux/net/ether_addr.c: Ditto.
11365         * libc/sys/linux/net/ethers.3: Ditto.
11366         * libc/sys/linux/net/getaddrinfo.3: Ditto.
11367         * libc/sys/linux/net/getaddrinfo.c: Ditto.
11368         * libc/sys/linux/net/gethostbydns.c: Ditto.
11369         * libc/sys/linux/net/gethostbyht.c: Ditto.
11370         * libc/sys/linux/net/gethostbyname.3: Ditto.
11371         * libc/sys/linux/net/gethostbynis.c: Ditto.
11372         * libc/sys/linux/net/gethostnamadr.c: Ditto.
11373         * libc/sys/linux/net/getifaddrs.3: Ditto.
11374         * libc/sys/linux/net/getifaddrs.c: Ditto.
11375         * libc/sys/linux/net/getipnodebyname.3: Ditto.
11376         * libc/sys/linux/net/getnameinfo.3: Ditto.
11377         * libc/sys/linux/net/getnameinfo.c: Ditto.
11378         * libc/sys/linux/net/getnetbydns.c: Ditto.
11379         * libc/sys/linux/net/getnetbyht.c: Ditto.
11380         * libc/sys/linux/net/getnetbynis.c: Ditto.
11381         * libc/sys/linux/net/getnetent.3: Ditto.
11382         * libc/sys/linux/net/getnetnamadr.c: Ditto.
11383         * libc/sys/linux/net/getproto.c: Ditto.
11384         * libc/sys/linux/net/getprotoent.3: Ditto.
11385         * libc/sys/linux/net/getprotoent.c: Ditto.
11386         * libc/sys/linux/net/getprotoname.c: Ditto.
11387         * libc/sys/linux/net/getservbyname.c: Ditto.
11388         * libc/sys/linux/net/getservbyport.c: Ditto.
11389         * libc/sys/linux/net/getservent.3: Ditto.
11390         * libc/sys/linux/net/getservent.c: Ditto.
11391         * libc/sys/linux/net/herror.c: Ditto.
11392         * libc/sys/linux/net/hesiod.3: Ditto.
11393         * libc/sys/linux/net/hesiod.c: Ditto.
11394         * libc/sys/linux/net/if_indextoname.3: Ditto.
11395         * libc/sys/linux/net/ifname.c: Ditto.
11396         * libc/sys/linux/net/inet.3: Ditto.
11397         * libc/sys/linux/net/inet6_option_s: Ditto.pace.3
11398         * libc/sys/linux/net/inet6_rthdr_space.3: Ditto.
11399         * libc/sys/linux/net/inet_addr.c: Ditto.
11400         * libc/sys/linux/net/inet_lnaof.c: Ditto.
11401         * libc/sys/linux/net/inet_makeaddr.c: Ditto.
11402         * libc/sys/linux/net/inet_net.3: Ditto.
11403         * libc/sys/linux/net/inet_net_ntop.c: Ditto.
11404         * libc/sys/linux/net/inet_net_pton.c: Ditto.
11405         * libc/sys/linux/net/inet_neta.c: Ditto.
11406         * libc/sys/linux/net/inet_netof.c: Ditto.
11407         * libc/sys/linux/net/inet_network.c: Ditto.
11408         * libc/sys/linux/net/inet_ntoa.c: Ditto.
11409         * libc/sys/linux/net/inet_ntop.c: Ditto.
11410         * libc/sys/linux/net/inet_pton.c: Ditto.
11411         * libc/sys/linux/net/innetgr-stub.c: Ditto.
11412         * libc/sys/linux/net/ip6opt.c: Ditto.
11413         * libc/sys/linux/net/iso_addr.3: Ditto.
11414         * libc/sys/linux/net/iso_addr.c: Ditto.
11415         * libc/sys/linux/net/issetugid-stub.c: Ditto.
11416         * libc/sys/linux/net/linkaddr.3: Ditto.
11417         * libc/sys/linux/net/linkaddr.c: Ditto.
11418         * libc/sys/linux/net/map_v4v6.c: Ditto.
11419         * libc/sys/linux/net/name6.c: Ditto.
11420         * libc/sys/linux/net/namespace.h: Ditto.
11421         * libc/sys/linux/net/ns.3: Ditto.
11422         * libc/sys/linux/net/ns_addr.c: Ditto.
11423         * libc/sys/linux/net/ns_name.c: Ditto.
11424         * libc/sys/linux/net/ns_netint.c: Ditto.
11425         * libc/sys/linux/net/ns_ntoa.c: Ditto.
11426         * libc/sys/linux/net/ns_parse.c: Ditto.
11427         * libc/sys/linux/net/ns_print.c: Ditto.
11428         * libc/sys/linux/net/ns_ttl.c: Ditto.
11429         * libc/sys/linux/net/nsap_addr.c: Ditto.
11430         * libc/sys/linux/net/nsdispatch.3: Ditto.
11431         * libc/sys/linux/net/nsdispatch.c: Ditto.
11432         * libc/sys/linux/net/nslexer.c: Ditto.
11433         * libc/sys/linux/net/nslexer.l: Ditto.
11434         * libc/sys/linux/net/nsparser.c: Ditto.
11435         * libc/sys/linux/net/nsparser.h: Ditto.
11436         * libc/sys/linux/net/nsparser.y: Ditto.
11437         * libc/sys/linux/net/rcmd.3: Ditto.
11438         * libc/sys/linux/net/rcmd.c: Ditto.
11439         * libc/sys/linux/net/rcmdsh.3: Ditto.
11440         * libc/sys/linux/net/rcmdsh.c: Ditto.
11441         * libc/sys/linux/net/recv.c: Ditto.
11442         * libc/sys/linux/net/res_comp.c: Ditto.
11443         * libc/sys/linux/net/res_config.h: Ditto.
11444         * libc/sys/linux/net/res_data.c: Ditto.
11445         * libc/sys/linux/net/res_debug.c: Ditto.
11446         * libc/sys/linux/net/res_init.c: Ditto.
11447         * libc/sys/linux/net/res_mkquery.c: Ditto.
11448         * libc/sys/linux/net/res_mkupdate.c: Ditto.
11449         * libc/sys/linux/net/res_query.c: Ditto.
11450         * libc/sys/linux/net/res_send.c: Ditto.
11451         * libc/sys/linux/net/res_update.c: Ditto.
11452         * libc/sys/linux/net/resolver.3: Ditto.
11453         * libc/sys/linux/net/rthdr.c: Ditto.
11454         * libc/sys/linux/net/send.c: Ditto.
11455         * libc/sys/linux/net/un-namespace.h: Ditto.
11456         * libc/sys/linux/net/vars.c: Ditto.
11457         * libc/sys/linux/stdlib/COPYRIGHT: Ditto.
11458         * libc/sys/linux/stdlib/Makefile.am: Ditto.
11459         * libc/sys/linux/stdlib/Makefile.in: Ditto.
11460         * libc/sys/linux/stdlib/cclass.h: Ditto.
11461         * libc/sys/linux/stdlib/cname.h: Ditto.
11462         * libc/sys/linux/stdlib/collate.c: Ditto.
11463         * libc/sys/linux/stdlib/collate.h: Ditto.
11464         * libc/sys/linux/stdlib/collcmp.c: Ditto.
11465         * libc/sys/linux/stdlib/engine.c: Ditto.
11466         * libc/sys/linux/stdlib/fnmatch.3: Ditto.
11467         * libc/sys/linux/stdlib/fnmatch.c: Ditto.
11468         * libc/sys/linux/stdlib/glob.3: Ditto.
11469         * libc/sys/linux/stdlib/glob.c: Ditto.
11470         * libc/sys/linux/stdlib/reallocf.c: Ditto.
11471         * libc/sys/linux/stdlib/regcomp.c: Ditto.
11472         * libc/sys/linux/stdlib/regerror.c: Ditto.
11473         * libc/sys/linux/stdlib/regex.3: Ditto.
11474         * libc/sys/linux/stdlib/regex2.h: Ditto.
11475         * libc/sys/linux/stdlib/regexec.c: Ditto.
11476         * libc/sys/linux/stdlib/regfree.c: Ditto.
11477         * libc/sys/linux/stdlib/utils.h: Ditto.
11478         * libc/sys/linux/stdlib/wordexp.c: Ditto.
11479         * libc/sys/linux/stdlib/wordfree.c: Ditto.
11480         * libc/sys/linux/sys/dlfcn.h: Ditto.
11481         * libc/sys/linux/sys/elfclass.h: Ditto.
11482         * libc/sys/linux/sys/event.h: Ditto.
11483         * libc/sys/linux/sys/ioccom.h: Ditto.
11484         * libc/sys/linux/sys/libc-tsd.h: Ditto.
11485         * libc/sys/linux/sys/link.h: Ditto.
11486         * libc/sys/linux/sys/lock.h: Ditto.
11487         * libc/sys/linux/sys/param.h: Ditto.
11488         * libc/sys/linux/sys/socket.h: Ditto.
11489         * libc/sys/linux/sys/sockio.h: Ditto.
11490
11491 2003-05-28  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
11492
11493         * newlib/libc/machine/h8300/memcpy.S: Use .h8300hn and .h8300sn for
11494         normal mode
11495         * newlib/libc/machine/h8300/memset.S: Likewise
11496         * newlib/lib/machine/h8300/reg_memcpy.S: Likewise
11497         * newlib/lib/machine/h8300/reg_memset.S: Likewise
11498         * newlib/lib/machine/h8300/setjmp.S: Likewise
11499         * newlib/lib/machine/h8300/strcmp.S: Likewise
11500         * newlib/lib/sys/h8300hms/crt0.S: Likewise
11501
11502 2003-05-13  Corinna Vinschen  <corinna@vinschen.de>
11503
11504         * libc/ctype/ctype_.c: Remove checks for deprecated __CYGWIN32__.
11505         * libc/include/stdio.h: Ditto.
11506         * libc/include/sys/config.h: Ditto.
11507         * libc/stdio/mktemp.c: Ditto.
11508
11509 2003-05-13  Corinna Vinschen  <corinna@vinschen.de>
11510
11511         * libc/locale/ldpart.c (__part_load_locale): Substitute
11512         __CYGWIN_USE_BIG_TYPES__ by __USE_INTERNAL_STAT64.
11513         * libc/search/hash.c (__hash_open): Ditto.
11514         (init_hash): Ditto.
11515         * libc/stdio/fseek.c (fseek): Ditto.
11516         * libc/stdio/makebuf.c (__smakebuf): Ditto.
11517         * libc/stdio/mktemp.c (_gettemp): Ditto.
11518
11519 2003-05-12  Corinna Vinschen  <corinna@vinschen.de>
11520
11521         * libc/include/stdio.h: Change one __CYGWIN__ to __CYGWIN32__.
11522
11523 2003-05-12  Corinna Vinschen  <corinna@vinschen.de>
11524
11525         * configure.host: Accomodate removing the libc/sys/cygwin dir.
11526         * libc/locale/ldpart.c (__part_load_locale): Use 64 bit stat call
11527         if __CYGWIN_USE_BIG_TYPES__ is set.
11528         * libc/search/hash.c (__hash_open): Ditto.
11529         (init_hash): Ditto.
11530         * libc/stdio/fseek.c (fseek): Ditto.
11531         * libc/stdio/makebuf.c (__smakebuf): Ditto.
11532         * libc/stdio/mktemp.c (_gettemp): Ditto.
11533         * libc/sys/cygwin/Makefile.am: Remove.
11534         * libc/sys/cygwin/Makefile.in: Remove.
11535         * libc/sys/cygwin/aclocal.m4: Remove.
11536         * libc/sys/cygwin/configure: Remove.
11537         * libc/sys/cygwin/configure.in: Remove.
11538         * libc/sys/cygwin/crt0.c: Move to winsup/cygwin directory.
11539         * libc/sys/cygwin/sys/dirent.h: Move to winsup/cygwin/include/sys
11540         directory.
11541         * libc/sys/cygwin/sys/param.h: Ditto.
11542         * libc/sys/cygwin/sys/utime.h: Ditto.
11543         * libc/sys/cygwin/sys/utmp.h: Ditto.
11544
11545 2003-05-11  Corinna Vinschen  <corinna@vinschen.de>
11546
11547         * libc/include/sys/types.h: Don't define key_t for Cygwin.
11548
11549 2003-05-10  Christopher Faylor  <cgf@redhat.com>
11550
11551         * libc/sys/cygwin/sys/dirent.h (struct dirent): Accommodate (slightly)
11552         64 bit inodes.
11553
11554 2003-05-09  Corinna Vinschen  <corinna@vinschen.de>
11555
11556         * libc/include/sys/config.h: Remove all Cygwin specific configuration.
11557         Include cygwin/config.h instead.
11558
11559 2003-04-16  Jeff Johnston  <jjohnstn@redhat.com>
11560
11561         * newlib/libc/machine/powerpc (ato*fix*.c,strto*fix*.c): Shield
11562         all code with #ifdef __SPE__ test.
11563         * newlib/libc/machine/powerpc (simdldtoa.c, ufix64toa.c): Ditto.
11564
11565 2003-04-15  Chris January <chris@atomice.net>
11566
11567         * newlib/libc/include/sys/unistd.h: add declaration for gethostid on
11568         Cygwin.
11569
11570 2003-04-09  J"orn Rennecke <joern.rennecke@superh.com>
11571
11572         * libc/machine/sh/memset.S: Avoid clobbering volatile
11573         objects following a tiny to-be-set array in the same quadword.
11574
11575 2001-04-09  Corinna Vinschen  <corinna@vinschen.de>
11576
11577         * libc/include/wchar.h: Add definitions for wcswidth and wcwidth.
11578         * libc/string/Makefile.am: Add wcswidth.c and wcwidth.c
11579         * libc/string/Makefile.in: Regenerated.
11580         * libc/string/wcswidth.c: New file.
11581         * libc/string/wcwidth.c: New file.
11582         * libc/string/wcstrings.tex: Add wcswidth and wcwidth.
11583
11584 Thu Apr  3 14:01:16 2003  J"orn Rennecke <joern.rennecke@superh.com>
11585
11586         * libc/machine/sh/memset.S: Fix problem with alloco region
11587         exceeding destination region for length >= 88 bytes, start
11588         & 0x16 == 0, end & 0x1f == 18.
11589
11590 2001-04-03  Corinna Vinschen  <corinna@vinschen.de>
11591
11592         * libc/string/wcscoll.c: Fix comment.
11593
11594 2001-04-02  Corinna Vinschen  <corinna@vinschen.de>
11595
11596         * libc/include/wchar.h: Add definition for wcscoll.
11597         * libc/string/Makefile.am: Add wcscoll.c.
11598         * libc/string/Makefile.in: Regenerated.
11599         * libc/string/wcscoll.c: New file.
11600         * libc/string/wcstrings.tex: Add wcscoll.
11601
11602 2003-04-01  Corinna Vinschen  <corinna@vinschen.de>
11603
11604         * libc/stdio/sscanf.c: Update flags description.
11605         * libc/stdio/vfscanf.c: Add CHAR flag value to denote 8 bit target
11606         type.
11607         (__svfscanf_r): Add 'hh' and 'll' handling.
11608
11609 2003-04-01  Corinna Vinschen  <corinna@vinschen.de>
11610
11611         * libc/sys/cygwin/sys/dirent.h (struct DIR): Change type of
11612         __d_position member to _off_t.
11613
11614 2003-03-20  Jeff Johnston  <jjohnstn@redhat.com>
11615
11616         * libc/stdio/vfscanf.c (__svfscanf_r): For floating point conversion,
11617         count all characters used to create number against maximum width.
11618         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
11619
11620 2003-03-18  D.Venkatasubramanian  <dvenkat@noida.hcltech.com>
11621
11622         * libc/include/sys/h8300hms/crt0.S[__SIMULATOR__]: Add commandline
11623         support.
11624         * configure.host (h8300*-*-*): Added comment regarding -D__SIMULATOR__
11625         flag to support simulator only extensions.
11626
11627 2003-03-17  Bob Cassels  <bcassels@abinitio.com>
11628
11629         * libc/string/wcschr.c: (wcschr): Look for character first,
11630         then for end of string, so you can do wcschr(x, '\0').
11631
11632 2003-03-10  Corinna Vinschen  <corinna@vinschen.de>
11633
11634         * libc/include/stdio.h: Declare fgetpos, fsetpos, fseeko and ftello
11635         with internal (_fpos_t and _off_t) datatypes when compiling newlib.
11636         * libc/include/sys/unistd.h: Declare _lseek using _off_t.
11637         * libc/reent/lseekr.c (_lseek_r): Use _off_t instead of off_t.
11638         * libc/stdio/fseeko.c (fseeko): Ditto.
11639         * libc/stdio/ftello.c (ftello): Ditto.
11640         * libc/stdio/stdio.c (__swrite): Ditto.
11641         (__sseek): Ditto.
11642         * libc/stdio/fgetpos.c (fgetpos): Use _fpos_t instead of fpos_t.
11643         * libc/stdio/fseek.c (fseek): Ditto.
11644         * libc/stdio/fsetpos.c (fsetpos): Ditto.
11645         * libc/stdio/ftell.c (ftell): Ditto.
11646         * libc/stdio/local.h: Declare __sseek using _off_t.
11647
11648 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
11649
11650         * libc/reent/lseekr.c (lseek_r): Use _off_t instead of off_t.
11651
11652 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
11653
11654         * libc/include/sys/config.h: Define __CYGWIN_USE_BIG_TYPES__ for
11655         Cygwin.
11656
11657 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
11658
11659         * libc/include/pwd.h: Add guards to avoid type clashes when compiling
11660         Cygwin.
11661         * libc/include/sys/stat.h: Ditto.
11662         * libc/include/sys/unistd.h: Ditto.
11663         * libc/sys/cygwin/sys/dirent.h: Ditto.
11664
11665 2003-03-07  Christopher Faylor  <cgf@redhat.com>
11666
11667         * libc/include/sys/unistd.h: Guard getopt.h call to force only
11668         declaration of getopt and avoid getopt_long declaration.
11669         * libc/sys/cygwin/include/unistd.h: Remove.
11670
11671 2003-03-07  Corinna Vinschen  <corinna@vinschen.de>
11672
11673         * configure.host: Define stdio64_dir for Cygwin.
11674         * libc/include/stdio.h: Change definition of fpos_t to fulfill
11675         Cygwin 64bit file access requirements.
11676         Drop definition of f*64() functions when compiled for Cygwin.
11677         * libc/include/sys/config.h: Define __LARGE64_FILES for Cygwin.
11678         * libc/reent/lseek64r.c: Use _off64_t instead of off64_t.
11679         * libc/stdio64/local64.h: Use _fpos64_t instead of fpos64_t.
11680
11681 2003-03-07   Jeff Johnston  <jjohnstn@redhat.com>
11682
11683         * libc/include/sys/reent.h: Remove extraneous _sig_func
11684         declaration.
11685
11686 2003-02-25   D.Venkatasubramanian <dvenkat@noida.hcltech.com>
11687
11688         * libc/sys/h8300hms/Makefile.am: Add support for new files.
11689         * libc/sys/h8300hms/Makefile.in: Regenerated.
11690         * libc/sys/h8300hms/close.S: New file.
11691         * libc/sys/h8300hms/fstat.S: Ditto.
11692         * libc/sys/h8300hms/lseek.S: Ditto.
11693         * libc/sys/h8300hms/open.S: Ditto.
11694         * libc/sys/h8300hms/stat.S: Ditto.
11695         * libc/sys/h8300hms/read.S: New file to replace read.c.
11696         * libc/sys/h8300hms/read.c: Removed.
11697         * libc/sys/h8300hms/syscalls.c: Removed functions _open,
11698         _lseek, _close, _stat, _fstat.
11699         * libc/sys/h8300hms/write.S: New file to replace write.c.
11700         * libc/sys/h8300hms/write.c: Removed.
11701
11702 2003-02-20  Nick Clifton  <nickc@redhat.com>
11703
11704         * Add support for Cirrus Maverick ARM co-processor:
11705
11706         2000-09-13  Aldy Hernandez  <aldyh@redhat.com>
11707
11708                 * libc/include/machine/ieeefp.h: Set IEEE_BIG_ENDIAN or
11709                 IEEE_LITTLE_ENDIAN depending on endian mode (cirrus).
11710
11711         2000-08-11  Aldy Hernandez  <aldyh@redhat.com>
11712
11713                 * configure.host: set sys_dir, syscall_dir, and
11714                 newlib_cflags for ep9312 host.
11715
11716         * configure.host: Restore alpha sorting of entries in case
11717         statements.
11718
11719 2003-02-19  Jeff Johnston  <jjohnstn@redhat.com>
11720
11721         * libc/stdlib/mallocr.c (unlink): Revert 02/18 fix.
11722
11723 2003-02-18  Christian Groessler  <chris@groessler.org>
11724
11725         * libc/machine/z8k/setjmp.S (_setjmp / _longjmp): Fix to
11726         support z8001 segmented mode.
11727
11728 2003-02-18  Earnie Boyd  <earnie@users.sf.net>
11729
11730         * libc/stdlib/mallocr.c (unlink): Don't assign a value to a pointer
11731         with a NULL value.
11732
11733 2003-02-10  Christopher Faylor  <cgf@redhat.com>
11734
11735         * libc/include/sys/types.h: Don't define __MS_types__ for Cygwin.
11736         Don't define some types under cygwin.
11737
11738 2003-02-07  Jeff Johnston  <jjohnstn@redhat.com>
11739
11740         * acinclude.m4 (--disable-newlib-supplied-syscalls): New configuration
11741         option to allow disabling of syscalls being supplied in newlib.
11742         * aclocal.m4: Regenerated.
11743         * configure: Ditto.
11744         * configure.host: Add support of new configuration option and add
11745         -D__NO_SYSCALLS__ if newlib supplied syscalls are disabled.
11746         * doc/aclocal.m4: Regenerated.
11747         * doc/configure: Ditto.
11748         * libc/*aclocal.m4: Ditto.
11749         * libc/*configure: Ditto.
11750         * libm/*aclocal.m4: Ditto.
11751         * libm/*configure: Ditto.
11752         * libc/sys/arm/Makefile.am: Don't build syscalls.o if new option
11753         is disabled.
11754         * libc/sys/arm/Makefile.in: Regenerated.
11755
11756 2003-02-05  Jonathan Larmour  <jifl@eCosCentric.com>
11757
11758         * libc/stdio/vsprintf.c (vsprintf, _vsprintf_r): Set _file fd to
11759         -1 to be sure it cannot later match a valid file fd causing
11760         isatty() to return 1.
11761         * libc/stdio/asprintf.c (asprintf, _asprintf_r): Ditto.
11762         * libc/stdio/sprintf.c (sprintf, _sprintf_r): Ditto.
11763         * libc/stdio/vasprintf.c (vasprintf, _vasprintf_r): Ditto.
11764
11765 2003-02-03  Jeff Johnston  <jjohnstn@redhat.com>
11766
11767         * libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate the format
11768         buffer based on the precision, after we have processed the input value
11769         in a local buffer and know its relative magnitude.
11770
11771 2003-01-31  Michael Snyder  <msnyder@redhat.com>
11772
11773         * libc/sys/h8300hms/_exit.c (_exit, __exit):  Slip a magic cookie
11774         into registers r1 and r2, so that the simulator can distinguish
11775         this trap from a breakpoint trap.  Copied from libgloss.
11776
11777 2003-01-31  Michael Snyder  <msnyder@redhat.com>
11778
11779         * libc/sys/h8300hms/crt0.S (_start): Change local label
11780         from .loop to .Loop, so that ld and gdb will ignore it.
11781
11782 2003-01-29  Jason Tishler  <jason@tishler.net>
11783
11784         * libc/include/time.h: Declare nanosleep() under Cygwin.
11785
11786 2003-01-24  Nick Clifton  <nickc@redhat.com>
11787
11788         * Add sh2e support:
11789
11790         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
11791
11792                 * libc/machine/sh/asm.h: Added __SH2E__ next to __SH3E__.
11793                 * libc/machine/sh/setjmp.S: Likewise.
11794                 * libc/include/machine/ieeefp.h: Likewise.
11795
11796 2003-01-24  Corinna Vinschen  <corinna@vinschen.de>
11797
11798         * libc/include/sys/unistd.h: Add setregid and setreuid declarations
11799         for Cygwin.
11800
11801 2003-01-21 Anita Kulkarni  <anitak@kpit.com>
11802
11803         * libc/time/difftime.c : Typecast the result to double.
11804
11805 2003-01-20  Christopher Faylor  <cgf@redhat.com>
11806
11807         * libc/include/sys/unistd.h: Add rresvport declaration for cygwin.
11808
11809 2003-01-18  Nick Clifton  <nickc@redhat.com>
11810
11811         * libc/include/machine/ieeefp.h : Define __IEEE_BIG_ENDIAN,
11812         __SMALL_BITFIELDS and _DOUBLE_IS_32BITS for IP2K.
11813
11814 2003-01-16  Joel Sherrill <joel@OARcorp.com>
11815
11816         * libc/sys/rtems/include/limits.h, libc/sys/rtems/sys/param.h,
11817         libc/sys/rtems/sys/syslimits.h: Update to be in sync with what
11818         constants are defined in each file in the shared versions in
11819         libc/include.
11820         * libc/sys/rtems/crt0.c: Define extra symbols on SH and HP-PA to
11821         autoconf can link programs.
11822         * libc/include/machine/types.h: Explicitly specify signed on
11823         intXX_t types to ensure they are signed.
11824
11825 2003-01-14  Christopher Faylor  <cgf@redhat.com>
11826
11827         * libc/time/strftime.c (strftime): Add '%h' and '%l, %k' GNU
11828         extensions.
11829
11830 2003-01-08  Richard Sandiford  <rsandifo@redhat.com>
11831
11832         * configure.host (mips64vr-elf, mips64vrel-elf): New config.
11833
11834 2003-01-07  Charles Wilson  <cwilson@ece.gatech.edu>
11835
11836         * libc/stdio/sprintf.c: fix typo
11837         * libc/stdio/vfprintf.c: fix typo
11838
11839 2003-01-07  Jeff Johnston  <jjohnstn@redhat.com>
11840
11841         * configure.host: Support long double I/O for x86-linux.
11842         * libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate a buffer
11843         large enough to hold formatted result.
11844         * libc/machine/powerpc/simdldtoa.c (_simdldtoa_r): Ditto.
11845
11846 2003-01-06  Charles Wilson  <cwilson@ece.gatech.edu>
11847
11848         * Makefile.am: Add vasprintf.
11849         * Makefile.in: Regenerated.
11850
11851 2003-01-06  Charles Wilson  <cwilson@ece.gatech.edu>
11852
11853         * asprintf.c (_asprintf_r): insure both declarations
11854         are the same.
11855
11856 2002-12-28  Christopher Faylor  <cgf@redhat.com>
11857
11858         * libc/include/sys/unistd.h: Under cygwin, just include getopt.h rather
11859         than defining getopt directly.
11860
11861 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
11862
11863         * NEWS: Update with 1.11.0 info.
11864         * README: Ditto.
11865         * acinclude.m4: Change version number to 1.11.0.
11866         * aclocal.m4: Regenerated.
11867         * configure: Ditto.
11868         * doc/aclocal.m4: Ditto.
11869         * doc/configure: Ditto.
11870         * libc/*/aclocal.m4: Ditto.
11871         * libc/*/configure: Ditto.
11872         * libc/libc.texinfo: Ditto.
11873         * libm/*/aclocal.m4: Ditto.
11874         * libm/*/configure: Ditto.
11875         * libm/libm.texinfo: Ditto.
11876         * libc/sys/linux/shared.ld: Add VERS_1.11.
11877
11878 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
11879
11880         * libc/machine/i386/f_atan2.S: Change copyright from Cygnus
11881         Solutions to Red Hat Inc.
11882         * libc/machine/i386/f_atan2f.S: Ditto.
11883         * libc/machine/i386/f_exp.c: Ditto.
11884         * libc/machine/i386/f_expf.c: Ditto.
11885         * libc/machine/i386/f_frexp.S: Ditto.
11886         * libc/machine/i386/f_frexpf.S: Ditto.
11887         * libc/machine/i386/f_ldexp.S: Ditto.
11888         * libc/machine/i386/f_ldexpf.S: Ditto.
11889         * libc/machine/i386/f_log.S: Ditto.
11890         * libc/machine/i386/f_log10.S: Ditto.
11891         * libc/machine/i386/f_log10f.S: Ditto.
11892         * libc/machine/i386/f_logf.S: Ditto.
11893         * libc/machine/i386/f_pow.c: Ditto.
11894         * libc/machine/i386/f_powf.c: Ditto.
11895         * libc/machine/i386/f_tan.S: Ditto.
11896         * libc/machine/i386/f_tanf.S: Ditto.
11897         * libc/machine/i386/memchr.S: Ditto.
11898         * libc/machine/i386/memcmp.S: Ditto.
11899         * libc/machine/i386/memcpy.S: Ditto.
11900         * libc/machine/i386/memmove.S: Ditto.
11901         * libc/machine/i386/memset.S: Ditto.
11902         * libc/machine/i386/strchr.S: Ditto.
11903         * libc/machine/i386/strlen.S: Ditto.
11904         * libm/machine/i386/f_atan2.S: Ditto.
11905         * libm/machine/i386/f_atan2f.S: Ditto.
11906         * libm/machine/i386/f_exp.c: Ditto.
11907         * libm/machine/i386/f_expf.c: Ditto.
11908         * libm/machine/i386/f_frexp.S: Ditto.
11909         * libm/machine/i386/f_frexpf.S: Ditto.
11910         * libm/machine/i386/f_ldexp.S: Ditto.
11911         * libm/machine/i386/f_ldexpf.S: Ditto.
11912         * libm/machine/i386/f_log.S: Ditto.
11913         * libm/machine/i386/f_log10.S: Ditto.
11914         * libm/machine/i386/f_log10f.S: Ditto.
11915         * libm/machine/i386/f_logf.S: Ditto.
11916         * libm/machine/i386/f_pow.c: Ditto.
11917         * libm/machine/i386/f_powf.c: Ditto.
11918         * libm/machine/i386/f_tan.S: Ditto.
11919         * libm/machine/i386/f_tanf.S: Ditto.
11920
11921 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
11922
11923         * libc/stdlib/environ.c: Update license to Red Hat.
11924         * libc/machine/hppa/setjmp.S: Ditto.
11925         * libm/test/Makefile.in: Ditto.
11926
11927 2002-12-19  Jeff Johnston  <jjohnstn@redhat.com>
11928
11929         * configure.host: Remove references to go32.
11930         * libc/sys/go32/*: Removed.
11931
11932 2002-12-16  Kazu Hirata  <kazu@cs.umass.edu>
11933
11934         * libc/include/sys/config.h: Change setting of INT_MAX
11935         and UINT_MAX, to use __INT_MAX__ for __H8300__, __H8300H__,
11936         __H8300S__.  Also consolidate flag settings for these
11937         platforms.
11938
11939 2002-12-10  Joel Sherrill  <joel@OARcorp.com>
11940
11941         * libc/include/machine/setjmp.h: Make sure _JBLEN is defined
11942         for i386-rtems targets.
11943
11944 2002-12-06  Jeff Johnston  <jjohnstn@redhat.com>
11945
11946         * libc/include/stdlib.h (strtof): New prototype (from C99).
11947         (strtodf): Changed from prototype to macro which redefines
11948         to strtof.
11949         * libc/stdlib/atof.c: Change documentation to refer to strtof
11950         instead of strtodf.
11951         * libc/stdlib/atoff.c (atoff): Change to call strtof instead of
11952         strtodf.
11953         * libc/stdlib/strtod.c (strtodf): Renamed to strtof.
11954         (strtof): New function.
11955         * libm/test/convert.c (test_strtodf): Renamed to test_strtof which
11956         calls strtof.
11957
11958 2002-11-27  Christopher Faylor  <cgf@redhat.com>
11959
11960         * libc/string/memset.c (memset): Fix comment.
11961
11962 2002-11-26  Christopher Faylor  <cgf@redhat.com>
11963
11964         * libc/string/memset.c (memset): Move initialization of 'd' earlier in
11965         function.
11966
11967 2002-11-25  Christopher Faylor  <cgf@redhat.com>
11968
11969         * libc/string/memset.c (memset): Minor optimization: Use new 'd'
11970         variable, introduced below, everywhere.
11971
11972 2002-11-25  Kazu Hirata  <kazu@cs.umass.edu>
11973
11974         * libc/string/memset.c (memset): Make it safe even if
11975         sizeof (int) = 2.
11976
11977 2002-11-22  Joe Buehler  <jbuehler@hekimian.com>
11978
11979         * configure.in: Change check for libc/include in ${CC} to
11980         use an intermediate value so as to work with different shells.
11981         * configure: Regenerated.
11982         * Makefile.in: Ditto.
11983
11984 2002-11-22  Vijay L. Khuspe  <vijayk1@kpit.com>
11985
11986         * libc/sys/h8300hms/read.c: Add support for normal mode
11987         architecture.
11988
11989 2002-11-20  Ryo Tsuruta  <ryo@kitanet.ne.jp>
11990
11991         * libc/machine/h8300/setjmp.S (setjmp, longjmp): Combine common
11992         code for __H8300H__ and __H8300S__.  Also return 32-bit return code
11993         when -mint32 is used.
11994
11995 2002-11-18  Nick Clifton  <nickc@redhat.com>
11996
11997         * libc/sys/arm/crt0.S: Add NULL to end of argv array.
11998
11999 2002-11-14  Jeff Johnston  <jjohnstn@redhat.com>
12000
12001         * testsuite/lib/passfail.exp (newlib_pass_fail): Changed to
12002         only issue one pass/fail message for a compile/link/execute.
12003         * testsuite/newlib.elix/elix.exp: New file.
12004         * testsuite/newlib.elix/tmmap.c: Ditto.
12005
12006 2002-11-06  Christopher Faylor  <cgf@redhat.com>
12007
12008         * libc/stdlib/malign.c: Don't compile if MALLOC_PROVIDED.
12009         * libc/stdlib/mlock.c: Ditto.
12010         * libc/stdlib/msize.c: Ditto.
12011         * libc/stdlib/msize.c: Ditto.
12012         * libc/stdlib/mtrim.c: Ditto.
12013         * libc/stdlib/valloc.c: Ditto.
12014
12015 2002-11-12  Jeff Johnston  <jjohnstn@redhat.com>
12016
12017         * libc/stdlib/ldtoa.c (e64toe): When checking the exponent
12018         for inf/nan, make sure that the check ignores the sign bit.
12019
12020 2002-11-07  Joel Sherrill <joel@OARcorp.com>
12021
12022         * libc/sys/rtems/machine: New directory.
12023         * libc/sys/rtems/machine/limits.h, libc/sys/rtems/machine/param.h,
12024         libc/sys/rtems/sys/param.h, libc/sys/rtems/sys/syslimits.h,
12025         libc/sys/rtems/sys/utime.h: New files added to make *-rtems newlib
12026         targets more BSD like when installed without requiring files to
12027         be overwritten at install point when RTEMS itself is installed.
12028         * Makefile.am: Pick up system dependent machine .h files such as
12029         might be found on a BSD-ish system.
12030         * Makefile.in: Regenerate.
12031         * libc/include/machine/types.h: When on an RTEMS target, define a
12032         few BSD flavor types.
12033
12034 2002-11-06  Sergey Okhapkin  <sos@prospect.com.ru>
12035
12036         * include/utmp.h: Define WTMP_FILE.  Define and use UT_IDLEN.
12037
12038 2002-11-06  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
12039
12040         * libc/include/wchar.h: Use _{BEGIN,END}_STD_C instead of extern "C".
12041         * libc/include/wctype.h: Ditto.
12042
12043 2002-11-04  Jeff Johnston  <jjohnstn@redhat.com>
12044
12045         * libc/include/wchar.h: Add extern "C" specifier if C++.
12046         * libc/include/wctype.h: Ditto.
12047
12048 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
12049
12050         * testsuite/newlib.wctype/tiswctype.c: New test case.
12051         * testsuite/newlib.wctype/twctrans.c: Ditto.
12052
12053 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
12054
12055         * libc/sys/linux/machine/i386/include/endian.h: New file.
12056         * libc/sys/linux/machine/i386/include/param.h: Ditto.
12057
12058 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
12059
12060         * libm/machine/i386/aclocal.m4: Regenerated.
12061         * libm/machine/i386/configure: Ditto.
12062
12063 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
12064
12065         * testsuite/include/check.h: New header file to use with
12066         test cases.
12067         * testsuite/lib/newlib.exp: Add testsuite/include directory
12068         to list of header files to use.
12069         * testsuite/newlib.wctype/twctype.c: New test case for iswctype fns.
12070         * testsuite/newlib.wctype/wctype.exp: New file.
12071
12072 2002-10-11  Graham Stott  <graham.stott@btinternet.com>
12073             Richard Sandiford  <rsandifo@redhat.com>
12074
12075         * libc/include/sys/config.h (SIZE_T_SMALLER_THAN_LONG): Undefine.
12076         * libc/stdlib/mallocr.c (long_sub_size_t): Define in a way that
12077         doesn't require the SIZE_T_SMALLER_THAN_LONG macro.
12078
12079 2002-10-07      Joel Sherrill <joel@OARcorp.com>
12080
12081         * libc/sys/rtems/crt0.c: Add even more symbols so gcc() can link
12082         dummy programs.
12083
12084 2002-10-07      Joel Sherrill <joel@OARcorp.com>
12085
12086         * libc/include/pthread.h: Define PTHREAD_CANCELED.
12087
12088 2002-10-07      Joel Sherrill <joel@OARcorp.com>
12089
12090         * libc/machine/hppa/DEFS.h, libc/machine/hppa/pcc_prefix.s,
12091         libc/machine/hppa/setjmp.S, libc/machine/hppa/DEFS.h: Make this
12092         compile with current GNU tools.
12093
12094 2002-10-07  Jeff Johnston  <jjohnstn@redhat.com>
12095
12096         * Makefile.am: Add EXTRA_DIRS to allow future dependencies on
12097         the build library.
12098         * configure.in: Ditto.
12099         * Makefile.in: Regenerated.
12100         * configure: Ditto.
12101         * libc/sys/linux/Makefile.am: Add EXTRA_SUBDIRS and EXTRA_SUBLIBS
12102         for specifying configured libraries/directories.
12103         * libc/sys/linux/configure.in: Ditto.
12104         * libc/sys/linux/Makefile.in: Regenerated.
12105         * libc/sys/linux/configure: Ditto.
12106
12107 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
12108
12109         * libc/include/reent.h: Update documentation at start of file.
12110
12111 2002-09-27  Jim Wilson  <wilson@redhat.com>
12112
12113         * libc/sys/sysnecv850/crt0.S (start): Delete v850 code for initializing
12114         the ctbp register.
12115
12116 2002-09-27  Jeff Johnston  <jjohnstn@redhat.com>
12117
12118         * libc/ctype/jp2uc.c: Change to use multiple arrays in jp2uc.h.
12119         Also convert to EUCJP before using arrays.  For values not in
12120         the conversion arrays, return WEOF.
12121         * libc/ctype/jp2uc.h: Change from one array to a number of
12122         arrays to account for the fact that the originating table
12123         is not contiguous for the input values since some are invalid.
12124
12125 2002-09-24  Jeff Johnston  <jjohnstn@redhat.com>
12126
12127         * libc/time/ctime.c: Fix prototype documentation.
12128
12129 2002-09-24  Corinna Vinschen  <corinna@vinschen.de>
12130
12131         * libc/include/sys/errno.h: Add EOVERFLOW.
12132
12133 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
12134
12135         * libc/include/wctype.h: New file.
12136
12137 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
12138
12139         * libc/ctype/Makefile.am: Add new files.
12140         * libc/ctype/Makefile.in: Regenerated.
12141         * libc/ctype/ctype.tex: Add new iswxxxx, towxxxx, wctype,
12142         and wctrans functions to documentation index.
12143         * libc/ctype/iswalnum.c: New file.
12144         * libc/ctype/iswalpha.c: Ditto.
12145         * libc/ctype/iswblank.c: Ditto.
12146         * libc/ctype/iswcntrl.c: Ditto.
12147         * libc/ctype/iswctype.c: Ditto.
12148         * libc/ctype/iswdigit.c: Ditto.
12149         * libc/ctype/iswgraph.c: Ditto.
12150         * libc/ctype/iswlower.c: Ditto.
12151         * libc/ctype/iswprint.c: Ditto.
12152         * libc/ctype/iswpunct.c: Ditto.
12153         * libc/ctype/iswspace.c: Ditto.
12154         * libc/ctype/iswupper.c: Ditto.
12155         * libc/ctype/iswxdigit.c: Ditto.
12156         * libc/ctype/jp2uc.c: Ditto.
12157         * libc/ctype/jp2uc.h: Ditto.
12158         * libc/ctype/local.h: Ditto.
12159         * libc/ctype/towctrans.c: Ditto.
12160         * libc/ctype/towlower.c: Ditto.
12161         * libc/ctype/towupper.c: Ditto.
12162         * libc/ctype/utf8alpha.h: Ditto.
12163         * libc/ctype/utf8print.h: Ditto.
12164         * libc/ctype/utf8punct.h: Ditto.
12165         * libc/ctype/wctrans.c: Ditto.
12166         * libc/ctype/wctype.c: Ditto.
12167         * libc/locale/locale.c (__lc_ctype): New external array to
12168         replace static lc_ctype array.
12169         * libc/stdlib/mbtowc_r.c: Use __lc_ctype to check current lc_ctype
12170         rather than reentrancy structure's _current_locale field.
12171         * libc/stdlib/wctomb_r.c: Ditto.
12172
12173 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
12174
12175         * configure.host: Minor comment and formatting changes.
12176         * libc/Makefile.am: Add libc_la_DEPENDENCIES.
12177         * libc/Makefile.in: Regenerated.
12178         * libc/include/sys/config.h: Minor format change.
12179
12180 2002-09-19  Jeff Johnston  <jjohnstn@redhat.com>
12181
12182         * libc/syscalls/sysfcntl.c (fcntl): Fix typo in preprocessor
12183         statement comment.
12184
12185 2002-09-19  Jeff Johnston  <jjohnstn@redhat.com>
12186
12187         * libc/posix/opendir.c (opendir): Change code to check
12188         for HAVE_FCNTL before calling fcntl.
12189         * libc/search/hash.c (hash_open): Ditto.
12190         * libc/search/hash_page.c (open_tmp): Ditto.
12191         * libc/reent/Makefile.am: Add fcntlr.c.
12192         * libc/reent/Makefile.in: Regenerated.
12193         * libc/reent/fcntlr.c: New file.
12194         * libc/stdio/fdopen.c (_fdopen_r): Change to call _fcntl_r
12195         instead of _fcntl when HAVE_FCNTL flag is set.
12196         * libc/syscalls/sysfcntl.c (fcntl): Check for HAVE_FCNTL flag
12197         to see if _fcntl or _fcntl_r should be called.  If flag is not
12198         set, default to ENOSYS stub.
12199
12200 2002-09-16  Jeff Johnston  <jjohnstn@redhat.com>
12201
12202         * libc/include/wchar.h (mbstate_t): Change protective flag to
12203         be _MBSTATE_T.
12204         * libc/include/sys/_types.h (_mbstate_t): Remove protective flag.
12205         [__CYGWIN__]: Remove special code that defines mbstate_t and WEOF
12206         for Cygwin.
12207         * libc/sys/linux/sys/_types.h (_mbstate_t): Remove protective flag.
12208
12209 2002-09-11  Jeff Johnston  <jjohnstn@redhat.com>
12210
12211         * acinclude.m4 (enable-newlib-mb): Change check to
12212         default newlib_mb variable to empty string rather than "no".
12213         * configure.host: Remove hard-coding of -DMB_CAPABLE for
12214         x86-linux and Cygwin.  Add code to check for newlib_mb
12215         being unset in which case set to "yes" for x86-linux and
12216         Cygwin.  Change check for newlib_mb being "yes" to allow
12217         for an empty string.
12218         * configure.in (_MB_LEN_MAX): New AC_DEFINE.
12219         * newlib.hin (_MB_LEN_MAX): New define to configure.
12220         * aclocal.m4: Regenerated.
12221         * configure: Ditto.
12222         * libc/include/limits.h: New file.
12223         * libc/sys/linux/include/limits.h: Ditto.
12224         * doc/aclocal.m4 doc/configure libc/aclocal.m4
12225           libc/configure libc/machine/aclocal.m4
12226           libc/machine/configure libc/machine/a29k/aclocal.m4
12227           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
12228           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
12229           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
12230           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
12231           libc/machine/fr30/configure libc/machine/frv/aclocal.m4
12232           libc/machine/frv/configure libc/machine/h8300/aclocal.m4
12233           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
12234           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
12235           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
12236           libc/machine/i386/configure libc/machine/i960/aclocal.m4
12237           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
12238           libc/machine/m32r/configure libc/machine/m68hc11/aclocal.m4
12239           libc/machine/m68hc11/configure libc/machine/m68k/aclocal.m4
12240           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
12241           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
12242           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
12243           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
12244           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
12245           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
12246           libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
12247           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
12248           libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
12249           libc/machine/tic80/configure libc/machine/v850/aclocal.m4
12250           libc/machine/v850/configure libc/machine/w65/aclocal.m4
12251           libc/machine/w65/configure libc/machine/xscale/aclocal.m4
12252           libc/machine/xscale/configure
12253           libc/machine/xstormy16/aclocal.m4
12254           libc/machine/xstormy16/configure libc/machine/z8k/aclocal.m4
12255           libc/machine/z8k/configure libc/sys/aclocal.m4
12256           libc/sys/configure libc/sys/a29khif/aclocal.m4
12257           libc/sys/a29khif/configure libc/sys/arc/aclocal.m4
12258           libc/sys/arc/configure libc/sys/arm/aclocal.m4
12259           libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
12260           libc/sys/cygwin/configure libc/sys/d10v/aclocal.m4
12261           libc/sys/d10v/configure libc/sys/decstation/aclocal.m4
12262           libc/sys/decstation/configure libc/sys/go32/aclocal.m4
12263           libc/sys/go32/configure libc/sys/h8300hms/aclocal.m4
12264           libc/sys/h8300hms/configure libc/sys/h8500hms/aclocal.m4
12265           libc/sys/h8500hms/configure libc/sys/idt/aclocal.m4
12266           libc/sys/idt/configure libc/sys/linux/aclocal.m4
12267           libc/sys/linux/configure
12268           libc/sys/linux/machine/aclocal.m4
12269           libc/sys/linux/machine/configure
12270           libc/sys/linux/machine/i386/aclocal.m4
12271           libc/sys/linux/machine/i386/configure
12272           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
12273           libc/sys/mmixware/aclocal.m4 libc/sys/mmixware/configure
12274           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
12275           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
12276           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
12277           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
12278           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
12279           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
12280           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
12281           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
12282           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
12283           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
12284           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
12285           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
12286           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
12287           libm/aclocal.m4 libm/configure: Regenerated.
12288
12289 2002-09-09  Jeff Johnston  <jjohnstn@redhat.com>
12290
12291         * libc/sys/linux/machine/i386/crt0.c (_start): Remove
12292         code that clears the .bss section.
12293
12294 2002-09-09  Jeff Johnston  <jjohnstn@redhat.com>
12295
12296         * libc/include/sys/_types.h (_mbstate_t): Changed to use
12297         unsigned char internally.
12298         * libc/sys/linux/sys/_types.h: Ditto.
12299         * libc/include/sys/reent.h
12300         * libc/stdlib/mblen.c (mblen): Use function-specific state
12301         value from default reentrancy structure.
12302         * libc/stdlib/mblen_r.c (_mblen_r):  If return code from
12303         _mbtowc_r is less than 0, reset state __count value and
12304         return -1.
12305         * libc/stdlib/mbrlen.c (mbrlen): If the input state pointer
12306         is NULL, use the function-specific pointer provided in the
12307         default reentrancy structure.
12308         * libc/stdlib/mbrtowc.c: Add reentrant form of function.
12309         If input state pointer is NULL, use function-specific area
12310         provided in reentrancy structure.
12311         * libc/stdlib/mbsrtowcs.c: Ditto.
12312         * libc/stdlib/wcrtomb.c: Ditto.
12313         * libc/stdlib/wcsrtombs.c: Ditto.
12314         * libc/stdlib/mbstowcs.c: Reformat.
12315         * libc/stdlib/wcstombs.c: Ditto.
12316         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): If an error occurs,
12317         reset the state's __count value and return -1.
12318         * libc/stdlib/mbtowc.c: Ditto.
12319         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Add restartable functionality.
12320         If number of bytes is used up before completing a valid multibyte
12321         character, return -2 and save the state.
12322         * libc/stdlib/wctomb_r.c (_wctomb_r): Define __state as __count
12323         and change some __count references to __state for clarity.
12324
12325 2002-09-06  Jeff Johnston  <jjohnstn@redhat.com>
12326
12327         * libc/include/sys/config.h (MB_LEN_MAX): Removed as this
12328         is defined by <limits.h>.
12329
12330 2002-09-05  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
12331
12332         * libc/include/wchar.h (WCHAR_MAX): Only define if not already
12333         defined.
12334
12335 2002-09-04  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
12336
12337         * libc/include/sys/config.h: Define accordingly __WCHAR_MAX__.
12338         * libc/include/wchar.h: Define WCHAR_MIN as 0 and WCHAR_MAX as
12339         __WCHAR_MAX__ or 0x7fffffffu.
12340         * libc/string/wcscmp.c: Delete wrong and unnecessary type cast.
12341         * libc/string/wcsncmp.c: Ditto.
12342
12343 2002-09-03  Jeff Johnston  <jjohnstn@redhat.com>
12344
12345         * libc/string/wcschr.c: Add include of <stddef.h>.
12346         * libc/string/wcspbrk.c: Ditto.
12347         * libc/string/wcsrchr.c: Ditto.
12348         * libc/string/wcsstr.c: Ditto.
12349
12350 2002-09-03  Jeff Johnston  <jjohnstn@redhat.com>
12351
12352         * libc/include/sys/_types.h (_flock_t): Added.
12353         * libc/include/sys/lock.h (__lock_try_acquire): New interface.
12354         (__lock_try_acquire_recursive): Ditto.
12355         * libc/include/sys/reent.h (__sFILE, __sFILE64): Add new
12356         _lock field.
12357         * libc/stdio/findfp.c (std)[!__SINGLE_THREAD__]: Initialize _lock
12358         field.
12359         * libc/stdio/fopen.c (_fopen_r)[!__SINGLE_THREAD__]: Ditto.
12360         * libc/stdio64/fopen64.c (_fopen64_r)[!__SINGLE_THREAD__]: Ditto.
12361         * libc/sys/linux/include/time.h (struct timespec): Moved from
12362         <sys/types.h> and added check for __need_timespec flag so type
12363         can be defined by itself.
12364         * libc/sys/linux/sys/_types.h (_flock_t): New type.
12365         * libc/sys/linux/sys/types.h (struct timespec): Moved to
12366         <time.h>.
12367
12368 2002-08-29  Thomas Fitzsimmons  <fitzsim@redhat.com>
12369
12370         * libc/sys/linux/argp: New directory.
12371         * libc/sys/linux/getopt.c: New file.
12372         * libc/sys/linux/getopt1.c: New file.
12373         * libc/sys/linux/getoptlong.c: Remove file.
12374         * libc/sys/linux/include/argp.h: New file.
12375         * libc/sys/linux/Makefile.am: Define argp_dir and ARGP_LIB,
12376         based on ELIX level.
12377         (SUBDIRS): Add argp_dir.
12378         (SUBLIBS): Add ARGP_LIB.
12379         (ELIX_2_OBJS): Add getopt.$(oext), getopt1.$(oext), remove
12380         getopt_long.$(oext).
12381         * libc/sys/linux/configure.in (AC_OUTPUT): Add argp/Makefile.
12382
12383 2002-08-29  Jeff Johnston  <jjohnstn@redhat.com>
12384
12385         * libc/libc.texinfo: Add node reference to wide-character strings.
12386         * libc/string/wcstrings.tex: New file.
12387         * libc/string/strtok_r.c: Remove outdated advertising clause.
12388         * libc/string/Makefile.am (doc): Add wide-character string
12389         chapter to documentation.
12390         * libc/string/Makefile.in: Regenerated.
12391
12392 2002-08-29  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
12393
12394         * libc/include/wchar.h: Define NULL. Define WEOF more general
12395         way. Declare functions in newlib manner.
12396         * libc/stdlib/Makefile.am: Delete wmem*.c
12397         * libc/stdlib/Makefile.in: Regenerated.
12398         * libc/stdlib/wmemchr.c: Delete.
12399         * libc/stdlib/wmemcmp.c: Ditto.
12400         * libc/stdlib/wmemcpy.c: Ditto.
12401         * libc/stdlib/wmemmove.c: Ditto.
12402         * libc/stdlib/wmemset.c: Ditto.
12403         * libc/string/Makefile.am: Add wmem*.c and wcs*.c.
12404         * libc/string/Makefile.in: Regenerated.
12405         * libc/string/wcscat.c: New file derived from the NetBSD C Library.
12406         * libc/string/wcschr.c: Ditto.
12407         * libc/string/wcscmp.c: Ditto.
12408         * libc/string/wcscpy.c: Ditto.
12409         * libc/string/wcscspn.c: Ditto.
12410         * libc/string/wcslcat.c: Ditto.
12411         * libc/string/wcslcpy.c: Ditto.
12412         * libc/string/wcslen.c: Ditto.
12413         * libc/string/wcsncat.c: Ditto.
12414         * libc/string/wcsncmp.c: Ditto.
12415         * libc/string/wcsncpy.c: Ditto.
12416         * libc/string/wcspbrk.c: Ditto.
12417         * libc/string/wcsrchr.c: Ditto.
12418         * libc/string/wcsspn.c: Ditto.
12419         * libc/string/wcsstr.c: Ditto.
12420         * libc/string/wmemchr.c: Ditto.
12421         * libc/string/wmemcmp.c: Ditto.
12422         * libc/string/wmemcpy.c: Ditto.
12423         * libc/string/wmemmove.c: Ditto.
12424         * libc/string/wmemset.c: Ditto.
12425
12426 2002-08-29  Jeff Johnston  <jjohnstn@redhat.com>
12427
12428         * libc/locale/locale.c (_setlocale_r)[MB_CAPABLE]: Fix so
12429         default locale "" is accepted for LC_CTYPE or LC_MESSAGES
12430         and is treated as if "C" was specified.
12431
12432 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
12433
12434         * Makefile.am (install-data-local): Move install of build
12435         newlib.h after installing headers in libc/include so as to
12436         overwrite default newlib.h.
12437         * Makefile.in: Regenerated.
12438
12439 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
12440
12441         * libc/include/newlib.h: New file for tools that use newlib
12442         headers but don't build newlib first (e.g. gcc).
12443
12444 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
12445
12446         * libc/stdlib/wmemchr.c: Explicitly include <_ansi.h>.
12447         * libc/stdlib/wmemcmp.c: Ditto.
12448         * libc/stdlib/wmemcpy.c: Ditto.
12449         * libc/stdlib/wmemmove.c: Ditto.
12450         * libc/stdlib/wmemset.c: Ditto.
12451
12452 2002-08-27  Egor Duda  <deo@logos-m.ru>
12453
12454         * libc/stdlib/wmemchr.c: New file.
12455         * libc/stdlib/wmemcmp.c: Ditto.
12456         * libc/stdlib/wmemcpy.c: Ditto.
12457         * libc/stdlib/wmemmove.c: Ditto.
12458         * libc/stdlib/wmemset.c: Ditto.
12459         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add new files.
12460         * configure.host: Default -DMB_CAPABLE for cygwin.
12461         * libc/include/wchar.h: Declare wmemchr(), wmemcmp(), wmemcpy(),
12462         wmemmove() and wmemset().  Add include of <_ansi.h>.
12463         * libc/stdlib/Makefile.in: Regenerate.
12464
12465 2002-08-27  Jeff Johnston  <jjohnstn@redhat.com>
12466
12467         * configure.host: Remove _ELIX_LEVEL flag setting.
12468         * Makefile.am(stmp-targ-include): Copy newlib.h to targ-include.
12469         (install-data-local): Install newlib.h.
12470         * Makefile.in: Regenerated.
12471         * aclocal.m4: Ditto.
12472         * configure: Ditto.
12473         * configure.in: Add AM_CONFIG_HEADER to generate newlib.h based on
12474         newlib.hin.  Add AC_DEFINE_UNQUOTED entries for _ELIX_LEVEL
12475         and _NEWLIB_VERSION to fill in newlib.h header file entries.
12476         In AC_OUTPUT statement, unset ac_file so multilib support does
12477         not use last ac_file temporary used in newlib.h configuration.
12478         * libc/include/_ansi.h: Include <newlib.h>.
12479         * newlib.hin: New template file for newlib.h.
12480         * stamp-h.in: New file.
12481
12482 2002-08-26  Wu Yongwei <adah@netstd.com>
12483
12484         * time.h (timezonevar): Change "#if" to "#ifdef".
12485
12486 2002-08-26  Jeff Johnston  <jjohnstn@redhat.com>
12487
12488         * Makefile.am(LIBC_OBJECTLISTS): Add STDIO64_OBJECTLIST.
12489         * Makefile.in: Regenerated.
12490         * acinclude.m4: Add support for --enable-newlib-elix-level option.
12491         * aclocal.m4: Regenerated.
12492         * configure: Ditto.
12493         * configure.host: Add code to define _ELIX_LEVEL if
12494         --enable-newlib-elix-level option is used.
12495         * configure.in:
12496         * libc/aclocal.m4: Regenerated.
12497         * libc/configure: Ditto.
12498         * libc/argz/Makefile.am: Add EL/IX level checking.
12499         * libc/argz/Makefile.in: Regenerated.
12500         * libc/argz/dummy.c: New file.
12501         * libc/ctype/Makefile.am: Add EL/IX level checking.
12502         * libc/ctype/Makefile.in: Regenerated.
12503         * libc/locale/Makefile.am: Add EL/IX level checking.
12504         * libc/locale/Makefile.in: Regenerated.
12505         * libc/posix/Makefile.am: Add EL/IX level checking.
12506         * libc/posix/Makefile.in: Regenerated.
12507         * libc/posix/telldir.c: Add EL/IX level checking.
12508         * libc/reent/Makefile.am: Ditto.
12509         * libc/reent/fstat64r.c: Ditto.
12510         * libc/reent/lseek64r.c: Ditto.
12511         * libc/reent/open64r.c: Ditto.
12512         * libc/reent/Makefile.in: Regenerated.
12513         * libc/search/Makefile.am: Add EL/IX level checking.
12514         * libc/search/Makefile.in: Regenerated.
12515         * libc/stdio/Makefile.am: Add EL/IX level checking.
12516         * libc/stdio/Makefile.in: Regenerated.
12517         * libc/stdio64/Makefile.am: Add EL/IX level checking.
12518         * libc/stdio64/Makefile.in: Regenerated.
12519         * libc/stdio64/dummy.c: New file.
12520         * libc/stdio64/fgetpos64.c: Fix so _LARGE64_FILES macro is checked
12521         after first include.
12522         * libc/stdio64/fopen64.c: Ditto.
12523         * libc/stdio64/freopen64.c: Ditto.
12524         * libc/stdio64/fseeko64.c: Ditto.
12525         * libc/stdio64/fsetpos64.c: Ditto.
12526         * libc/stdio64/ftello64.c: Ditto.
12527         * libc/stdio64/tmpfile64.c: Ditto.
12528         * libc/stdlib/Makefile.am: Add EL/IX level checking.
12529         * libc/stdlib/Makefile.in: Regenerated.
12530         * libc/stdlib/mstats.c: Add EL/IX level checking.
12531         * libc/string/Makefile.am: Ditto.
12532         * libc/string/Makefile.in: Regenerated.
12533         * libc/sys/linux/Makefile.am: Add EL/IX level checking.
12534         * libc/sys/linux/Makefile.in: Regenerated.
12535         * libc/sys/linux/aclocal.m4: Ditto.
12536         * libc/sys/linux/configure: Ditto.
12537         * libc/sys/linux/aio.c: Add EL/IX level checking.
12538         * libc/sys/linux/ftok.c: Ditto.
12539         * libc/sys/linux/getdate.c: Ditto.
12540         * libc/sys/linux/ids.c: Ditto.
12541         * libc/sys/linux/inode.c: Ditto.
12542         * libc/sys/linux/io.c: Ditto.
12543         * libc/sys/linux/process.c: Ditto.
12544         * libc/sys/linux/resource.c: Ditto.
12545         * libc/sys/linux/sched.c: Ditto.
12546         * libc/sys/linux/sig.c: Ditto.
12547         * libc/sys/linux/termios.c: Ditto.
12548         * libc/sys/linux/wait.c: Ditto plus add __waitpid and
12549         __libc___waitpid weak aliases.
12550         * libc/sys/linux/machine/i386/syscall.h: Add new _base macros
12551         that generate the code for a syscall, but do not create a
12552         weak alias.
12553         * libc/syscalls/Makefile.am: Add EL/IX level checking.
12554         * libc/syscalls/Makefile.in: Regenerated.
12555         * libc/time/tzset_r.c: Change to replace strdup with equivalent
12556         functionality.
12557         * libc/unix/Makefile.am: Add EL/IX level checking.
12558         * libc/unix/Makefile.in: Regenerated.
12559
12560 2002-08-26  Christopher Faylor  <cgf@redhat.com>
12561
12562         * libc/include/malloc.h: On cygwin, define malloc _r functions as
12563         wrapper macros to standard malloc functions.
12564         * libc/include/stdlib.h: Ditto.
12565         * configure.host: Always define MALLOC_PROVIDED on cygwin.
12566
12567 2002-08-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
12568
12569         * libc/include/langinfo.h: New file.
12570         * libc/include/wchar.h: Likewise.
12571         * libc/include/sys/syslimits.h: Likewise.
12572         * libc/locale/fix_grouping.c: Likewise.
12573         * libc/locale/ldpart.c: Likewise.
12574         * libc/locale/ldpart.h: Likewise.
12575         * libc/locale/lmessages.c: Likewise.
12576         * libc/locale/lmessages.h: Likewise.
12577         * libc/locale/lmonetary.c: Likewise.
12578         * libc/locale/lmonetary.h: Likewise.
12579         * libc/locale/lnumeric.c: Likewise.
12580         * libc/locale/lnumeric.h: Likewise.
12581         * libc/locale/nl_langinfo.3: Likewise.
12582         * libc/locale/nl_langinfo.c: Likewise.
12583         * libc/locale/timelocal.c: Likewise.
12584         * libc/locale/timelocal.h: Likewise.
12585         * libc/stdlib/btowc.c: Likewise.
12586         * libc/stdlib/mbrlen.c: Likewise.
12587         * libc/stdlib/mbrtowc.c: Likewise.
12588         * libc/stdlib/mbsinit.c: Likewise.
12589         * libc/stdlib/mbsrtowcs.c: Likewise.
12590         * libc/stdlib/wcrtomb.c: Likewise.
12591         * libc/stdlib/wcsrtombs.c: Likewise.
12592         * libc/stdlib/wctob.c: Likewise.
12593         * libc/sys/linux/prof-freq.c: Likewise.
12594         * libc/sys/linux/profile.c: Likewise.
12595         * libc/sys/linux/machine/i386/dl-procinfo.c: Likewise.
12596         * libc/sys/linux/machine/i386/dl-procinfo.h: Likewise.
12597         * libc/include/stdlib.h: Change re-entrant functions to take
12598         mbstate_t pointers.
12599         * libc/include/sys/_types.h: Define _mbstate_t.
12600         * libc/include/sys/config.h (MB_LEN_MAX): New macro.
12601         * libc/include/sys/errno.h (EILSEQ): New error code.
12602         * libc/include/sys/reent.h: Include wchar.h.  Change reentrant
12603         structure to use mbstate_t.
12604         * libc/locale/Makefile.am (LIB_SOURCES): Add new files.
12605         * libc/machine/powerpc/vfprintf.c: Use mbstate_t.
12606         * libc/machine/powerpc/vfscanf.c: Likewise.
12607         * libc/stdio/getdelim.c: Reallocate buffer only when necessary.
12608         * libc/stdio/vfprintf.c: Likewise.
12609         * libc/stdio/vfscanf.c: Likewise.
12610         * libc/stdlib/Makefile.am (LIB_SOURCES): Add new files.
12611         * libc/stdlib/mblen.c: Use mbstate_t.
12612         * libc/stdlib/mblen_r.c: Likewise.
12613         * libc/stdlib/mbstowcs.c: Likewise.
12614         * libc/stdlib/mbstowcs_r.c: Likewise.
12615         * libc/stdlib/mbtowc.c: Likewise.
12616         * libc/stdlib/mbtowc_r.c: Likewise.
12617         * libc/stdlib/wcstombs.c: Likewise.
12618         * libc/stdlib/wcstombs_r.c: Likewise.
12619         * libc/stdlib/wctomb_r.c: Likewise.
12620         * libc/sys/linux/Makefile.am (LIB_SOURCES): Add prof-freq.c and
12621         profile.c.
12622         * libc/sys/linux/machine/i386/Makefile.am (LIB_SOURCES): Add
12623         dl-procinfo.c.
12624         * libc/sys/linux/sys/errno.h (EILSEQ): New error code.
12625         * libc/sys/linux/sys/types.h (off_t): Define type.
12626         * testsuite/newlib.locale/UTF-8.c: Change locale name from UTF-8
12627         to C-UTF-8.
12628         * testsuite/newlib.locale/UTF-8.exp: Likewise.
12629
12630 2002-08-20  Casper S. Hornstrup  <chorns@users.sourceforge.net>
12631
12632         * libc/stdlib/mallocr.c: #include windows.h on Win32.
12633           (AlignPage): Continue macro on next line.
12634
12635 2002-08-19  Jeff Johnston  <jjohnstn@redhat.com>
12636
12637         * libc/sys/linux/include/pthread.h: New file.
12638
12639 2002-08-19  Jeff Johnston  <jjohnstn@redhat.com>
12640
12641         * libc/include/sys/types.h: Support __need_inttypes macro
12642         that only sets the __intxx and __uintxx types.
12643         * libc/machine/powerpc/Makefile.am: Add stdlib to include directories
12644         to get mprec.h.
12645         * libc/machine/powerpc/Makefile.in: Regenerated.
12646         * libc/machine/powerpc/vfprintf.c: Fix state variable type.
12647         * libc/machine/powerpc/vfscanf.c: Fix state variable type.  Remove
12648         redundant fixed-point conversion prototypes.
12649         * libc/machine/powerpc/machine/stdlib.h[__SPE__]: Include <sys/types.h>
12650         after setting __need_inttypes.
12651
12652 2002-08-18  Christopher Faylor  <cgf@redhat.com>
12653
12654         * libc/include/sys/unistd.h: Add getsid declaration for cygwin.
12655
12656 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
12657
12658         * libc/include/sys/config.h[__PPC__][__SPE__]: Set
12659         _LONG_DOUBLE to double.
12660
12661 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
12662
12663         * configure.host: Add powerpc*-*-eabispe* configuration.
12664         * libc/machine/powerpc/atosfix16.c: New fixed-point conversion file.
12665         * libc/machine/powerpc/atosfix32.c: Ditto.
12666         * libc/machine/powerpc/atosfix64.c: Ditto.
12667         * libc/machine/powerpc/atoufix16.c: Ditto.
12668         * libc/machine/powerpc/atoufix32.c: Ditto.
12669         * libc/machine/powerpc/atoufix64.c: Ditto.
12670         * libc/machine/powerpc/fix64.h: Ditto.
12671         * libc/machine/powerpc/simdldtoa.c: Ditto.
12672         * libc/machine/powerpc/strtosfix16.c: Ditto.
12673         * libc/machine/powerpc/strtosfix32.c: Ditto.
12674         * libc/machine/powerpc/strtosfix64.c: Ditto.
12675         * libc/machine/powerpc/strtoufix16.c: Ditto.
12676         * libc/machine/powerpc/strtoufix32.c: Ditto.
12677         * libc/machine/powerpc/strtoufix64.c: Ditto.
12678         * libc/machine/powerpc/ufix64toa.c: Ditto.
12679         * libc/machine/powerpc/configure.in: Add check for
12680         powerpc*-eabispe and add fixed-point conversion functions.
12681         * libc/machine/powerpc/configure: Regenerated.
12682         * libc/machine/powerpc/vfprintf.c[__SPE__]: Add support for
12683         %r and %R format specifiers which handle fixed-point data.
12684         * libc/machine/powerpc/vfscanf.c[__SPE__]: Ditto.
12685         * libc/machine/powerpc/machine/stdlib.h[__SPE__]: Add fixed-point
12686         function prototypes.
12687
12688 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
12689
12690         *  Makefile.am: Move cmath stuff into libc/sys/linux.
12691         *  Makefile.in: Regenerated.
12692         *  configure.host: Default -DMB_CAPABLE for x86-linux.
12693         *  libc/include/reent.h: Define _sbrk to take signed int argument.
12694         *  libc/include/sys/unistd.h: Ditto for _sbrk_r and sbrk.
12695         *  libc/locale/locale.c[MB_CAPABLE]: Add LC_MESSAGES support and
12696         make locale name checking more efficient.  Also allow "C-ISO-8859-1"
12697         locale for LC_CTYPE and LC_MESSAGES.
12698         *  libc/reent/sbrkr.c: Change prototype to take ptrdiff_t.
12699         *  libc/sys/linux/brk.c: Change sbrk prototype.
12700         *  libc/sys/linux/include/time.h: Remove Cygwin stuff and
12701         include <sys/features.h>.
12702         (CLOCK_THREAD_CPUTIME): Renamed to CLOCK_THREAD_CPUTIME_ID.
12703         (CLOCK_PROCESS_CPUTIME): Renamed to CLOCK_PROCESS_CPUTIME_ID.
12704         *  libc/sys/linux/sys/cdefs.h: Replace with glibc sys/cdefs.h
12705         with a few local additions.
12706         *  libc/sys/linux/sys/features.h: New file.
12707         *  libc/sys/linux/sys/unistd.h: Change _sbrk_r and sbrk prototypes
12708         to take signed argument.
12709         *  libc/syscalls/syssbrk.c: Change sbrk, _sbrk_r, and _sbrk
12710         prototypes to take signed size argument.
12711
12712 2002-08-16  Thomas Fitzsimmons  <fitzsim@redhat.com>
12713
12714         * libc/sys/linux/cmath: New directory.
12715         * libc/sys/linux/include/cmathcalls.h: New file.
12716         * libc/sys/linux/include/complex.h: New file.
12717         * libc/sys/linux/machine/i386/huge_val.h: New file
12718         * libm/math/w_sincos.c: New file
12719         * libm/math/wf_sincos.c: New file
12720         * libm/mathfp/s_sincos.c: New file
12721         * libm/mathfp/sf_sincos.c: New file
12722         * Makefile.am (LIBC_OBJECTLISTS): Add cmath/objectlist.awk.in.
12723         * libc/include/math.h: Add sincos and sincosf declarations.
12724         * libc/sys/linux/Makefile.am (SUBDIRS): Add cmath.
12725         (SUBLIBS): Likewise.
12726         * libc/sys/linux/configure.in (AC_OUTPUT): Add cmath.
12727         * libm/math/Makefile.am (src): Add w_sincos.c.
12728         (fsrc): Add wf_sincos.c.
12729         * libm/mathfp/Makefile.am (src): Add s_sincos.c
12730         (fsrc): Add sf_sincos.c.
12731
12732 2002-08-12  Jeff Johnston  <jjohnstn@redhat.com>
12733
12734         * libc/sys/linux/machine/i386/crt0.c (__bss_start,_end):
12735         Declare as extern chars and use the address operator to
12736         properly use values set in linker script.
12737
12738 2002-08-09  Jason Tishler  <jason@tishler.net>
12739
12740         * libc/stdlib/mallocr.c: Include <limits.h>.
12741         (request2size): Change macro to do
12742         unsigned long comparisons and avoid signed overflow.
12743         (mALLOc): Add overflow check for the number of bytes to allocate.
12744         (rEALLOc): Ditto.
12745
12746 2002-08-09  Jeff Johnston  <jjohnstn@redhat.com>
12747
12748         * configure.host: Add check for --enable-newlib-io-pos-args
12749         and define WANT_IO_POS_ARGS flag if enabled.  Define
12750         the flag by default for x86-linux configurations.
12751         * configure.in: Add support for --enable-newlib-io-pos-args.
12752         * libc/configure.in: Ditto.
12753         * configure: Regenerated.
12754         * libc/configure: Ditto.
12755         * libc/stdio/Makefile.am: Specify -fshort-enums for compiling
12756         vfprintf.c and vfiprintf.c.
12757         * libc/stdio/Makefile.in: Regenerated.
12758         * libc/stdio/vfprintf.c: Add positional argument support that
12759         is enabled by compiling with -DWANT_IO_POS_ARGS.
12760
12761 2002-08-07  Richard Sandiford  <rsandifo@redhat.com>
12762
12763         * libc/include/machine/setjmp.h: For mips, define _JBLEN based
12764         based on __mips_soft_float rather than __mips64.
12765         * libc/machine/mips/setjmp.S: Provide hard and soft float versions
12766         of both 32-bit and 64-bit code.
12767
12768 2002-08-04  Christopher Faylor  <cgf@redhat.com>
12769
12770         * libc/stdio/popen.c (popen): Allow "rb", "rt", "wb", and "wt"
12771         arguments for popen to match similar functionality in fopen.
12772
12773 2002-07-29  Pierre Humblet  <pierre.humblet@ieee.org>
12774
12775         * libc/include/sys/unistd.h: Add setgroups prototype for Cygwin.
12776
12777 2002-07-29  Jeff Johnston  <jjohnstn@redhat.com>
12778
12779         * libc/sys/linux/Makefile.am: Add aio64.c.
12780         * libc/sys/linux/Makefile.in: Regenerated.
12781         * libc/sys/linux/aio.c (aio_init): ENOSYS stub added.
12782         * libc/sys/linux/aio64.c: New file.
12783
12784 2002-07-26  Jeff Johnston  <jjohnstn@redhat.com>
12785
12786         *  libc/include/sys/param.h (MAX, MIN): Added macros.
12787         *  libc/sys/linux/Makefile.am: Add new files.
12788         *  libc/sys/linux/Makefile.in: Regenerated.
12789         *  libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
12790         *  libc/sys/linux/inode.c (fchdir): Added syscall.
12791         *  libc/sys/linux/ftw.c: New file.
12792         *  libc/sys/linux/ftw64.c: Ditto.
12793         *  libc/sys/linux/getwd.c: Ditto.
12794         *  libc/sys/linux/scandir64.c: Ditto.
12795         *  libc/sys/linux/strverscmp.c: Ditto.
12796         *  libc/sys/linux/versionsort.c: Ditto.
12797         *  libc/sys/linux/versionsort64.c: Ditto.
12798
12799 2002-07-26  Jeff Johnston  <jjohnstn@redhat.com>
12800
12801         * libc/string/strings.tex: Fix typo for memccpy.
12802
12803 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
12804
12805         * libc/sys/linux/io64.c (truncate64, ftruncate64): Added.
12806         * libc/sys/linux/sys/types.h (off64_t): Definition added.
12807
12808 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
12809
12810         * libc/sys/linux/Makefile.am: Add fclean.c.
12811         * libc/sys/linux/Makefile.in: Regenerated.
12812         * libc/sys/linux/fclean.c: New file.
12813
12814 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
12815
12816         * libc/sys/linux/Makefile.am: Add confstr.c.
12817         * libc/sys/linux/Makefile.in: Regenerated.
12818         * libc/sys/linux/confstr.c: New file.
12819         * libc/sys/linux/confstr.h: Ditto.
12820         * libc/sys/linux/sys/unistd.h: Include <features.h> and
12821         <bits/environments.h>.
12822
12823 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
12824
12825         * libc/sys/linux/config.h (__set_errno): Macro definition removed.
12826         * libc/sys/linux/fpathconf.c (__set_errno): Ditto.
12827         * libc/sys/linux/libc-internal.h (__set_errno): Ditto.
12828         * libc/sys/linux/pathconf.c (__set_errno): Ditto.
12829         * libc/sys/linux/ttyname_r.c (__set_errno): Ditto.
12830         * libc/sys/linux/sys/errno.h (__set_errno): Macro definition added.
12831
12832 2002-07-24  Jeff Johnston  <jjohnstn@redhat.com>
12833
12834         * libc/sys/linux/Makefile.am: Add new files.
12835         * libc/sys/linux/Makefile.in: Regenerated.
12836         * libc/sys/linux/fstab.c: New file.
12837         * libc/sys/linux/fstatvfs.c: Ditto.
12838         * libc/sys/linux/fstatvfs64.c: Ditto.
12839         * libc/sys/linux/internal_statvfs.c: Ditto.
12840         * libc/sys/linux/mntent.c: Ditto.
12841         * libc/sys/linux/mntent_r.c: Ditto.
12842         * libc/sys/linux/statvfs.c: Ditto.
12843         * libc/sys/linux/statvfs64.c: Ditto.
12844         * libc/sys/linux/include/paths.h: Ditto.
12845         * libc/sys/linux/inode.c (statfs, fstatfs): New syscalls
12846         with double-underscore weak-aliases.
12847         * libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
12848
12849 2002-07-24  Jeff Johnston  <jjohnstn@redhat.com>
12850
12851         * libc/include/signal.h (SIG_IGN, SIG_DFL, SIG_ERR): Change
12852         to use _sig_func_ptr type casted constants.
12853         (_sig_func_ptr): Typedef moved to sys/signal.h.
12854         * libc/include/sys/signal.h (_sig_func_ptr): Typedef added.
12855         For __rtems, use POSIX definition, otherwise default to ANSI.
12856         * libc/sys/linux/sys/signal.h (_sig_func_ptr): Typedef added.
12857
12858 2002-07-24  Stephane Carrez  <stcarrez@nerim.fr>
12859
12860         * configure.host: Recognize m6811-elf and m6812-elf targets.
12861         * libc/include/machine/setjmp.h (_JBLEN): Define for 68hc11/68hc12.
12862         * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Define for 68HC11.
12863         (_DOUBLE_IS_32BITS): Define when compiling with -fshort-double.
12864         * libc/include/sys/config.h (INT_MAX, UINT_MAX): Define
12865         according to __INT_MAX__.
12866         (_POINTER_INT): Define to short.
12867         * libc/machine/m68hc11/Makefile.am: New file.
12868         * libc/machine/m68hc11/Makefile.in: New file.
12869         * libc/machine/m68hc11/configure.in: New file.
12870         * libc/machine/m68hc11/configure: New file.
12871         * libc/machine/m68hc11/aclocal.m4: New file.
12872         * libc/machine/m68hc11/setjmp.S: New file.
12873
12874 2002-07-23  Jeff Johnston  <jjohnstn@redhat.com>
12875
12876         * libc/include/string.h: Add mempcpy, strndup, and _strndup_r
12877         prototypes.
12878         * libc/stdlib/Makefile.am: Remove strdup.c and strdup_r.c.
12879         * libc/stdlib/Makefile.in: Regenerated.
12880         * libc/stdlib/strdup.c: Removed.
12881         * libc/stdlib/strdup_r.c: Removed.
12882         * libc/string/Makefile.am: Add strdup.c, strdup_r.c, memccpy.c,
12883         mempcpy.c, strndup.c, and strndup_r.c.
12884         * libc/string/Makefile.in: Regenerated.
12885         * libc/string/memccpy.c: New file.
12886         * libc/string/mempcpy.c: Ditto.
12887         * libc/string/strndup.c: Ditto.
12888         * libc/string/strndup_r.c: Ditto.
12889         * libc/string/strdup.c: New file moved from stdlib.
12890         * libc/string/strdup_r.c: Ditto.
12891         * libc/string/strings.tex: Add memccpy and mempcpy documentation.
12892
12893 2002-07-23  Jeff Johnston  <jjohnstn@redhat.com>
12894
12895         * libc/include/stdio.h: Move fcloseall prototype within
12896         #ifndef _REENT_ONLY section.
12897         * libc/sys/linux/Makefile.am: Add new files.
12898         * libc/sys/linux/Makefile.in: Regenerated.
12899         * libc/sys/linux/sys/stdio.h: Add ctermid prototype.
12900         * libc/sys/linux/sys/unistd.h: Add ttyname_r prototype.
12901         * libc/sys/linux/sys/types.h: Add ino64_t type.
12902         * libc/sys/linux/ctermid.c: New file.
12903         * libc/sys/linux/ttyname_r.c: Ditto.
12904         * libc/sys/linux/readdir64.c: Ditto.
12905
12906 2002-07-22  Jeff Johnston  <jjohnstn@redhat.com>
12907
12908         * libc/include/stdio.h (fcloseall, _fcloseall_r): Added prototypes.
12909         * libc/stdio/Makefile.am: Added fcloseall.c support.
12910         * libc/stdio/Makefile.in: Regenerated.
12911         * libc/stdio/fcloseall.c: New file.
12912         * libc/stdio64/Makefile.am: Remove missing .def references.
12913         * libc/stdio64/Makefile.in: Regenerated.
12914
12915 2002-07-22  Jeff Johnston  <jjohnstn@redhat.com>
12916
12917         * libc/machine/powerpc/time.c: Removed..renamed to times.c.
12918         * libc/machine/powerpc/times.c: New file.
12919         * libc/machine/powerpc/Makefile.am: Change time.c to times.c.
12920         * libc/machine/powerpc/Makefile.in: Regenerated.
12921
12922 2002-07-22  Aldy Hernandez  <aldyh@redhat.com>
12923
12924         * libc/machine/powerpc/time.c: New file.
12925         * libc/machine/powerpc/Makefile.am (lib_a_SOURCES): Add
12926         time.c.
12927         * libc/machine/powerpc/Makefile.in: Regenerated.
12928
12929 2002-07-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
12930
12931         * libc/libc.texinfo: Change copyright notices to Red Hat from
12932         Cygnus.
12933         * libm/libm.texinfo: Likewise.
12934         * README: Change docs URL to
12935         http://sources.redhat.com/newlib/docs.html.
12936
12937 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
12938
12939         * libc/sys/linux/Makefile.am: Add pathconf.c and fpathconf.c.
12940         * libc/sys/linux/Makefile.in: Regenerated.
12941         * libc/sys/linux/inode.c: Add chmod, fchmod, and chown syscalls.
12942         * libc/sys/linux/io.c: Add ftruncate syscall.
12943         * libc/sys/linux/fpathconf.c: New file.
12944         * libc/sys/linux/pathconf.c: Ditto.
12945         * libc/sys/linux/linux_fsinfo.h: Ditto.
12946         * libc/sys/linux/sys/unistd.h: Ditto.
12947
12948 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
12949
12950         * libc/stdio64/Makefile.am: Remove missing files.
12951         * libc/stdio64/Makefile.in: Regenerated.
12952
12953 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
12954
12955         * libc/include/sys/config.h[__i386__][__linux__]: Define
12956         _LARGE64FILE_SOURCE to 1.
12957         * libc/sys/linux/Makefile.am: Add getrlimit64.c and setrlimit64.c.
12958         * libc/sys/linux/Makefile.in: Regenerated.
12959         * libc/sys/linux/resource.c: Add __getrlimit and __setrlimit aliases.
12960         * libc/sys/linux/sys/linux_time.h: Protect struct timeval definition.
12961         * libc/sys/linux/sys/resource.h: Include <bits/resource.h> instead
12962         of <linux/resource.h>.
12963         * libc/sys/linux/getrlimit64.c: New file.
12964         * libc/sys/linux/setrlimit64.c: Ditto.
12965
12966 2002-07-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
12967
12968         * libc/argz/argz_replace.c: Include buf_findstr.h.
12969         * libc/argz/buf_findstr.c: Likewise.
12970         * libc/argz/envz_entry.c: Include buf_findstr.h.  Cast return
12971         value to (char *).
12972         * libc/argz/envz_get.c: Likewise.
12973         * libc/include/sys/unistd.h: Add getopt and getsubopt declarations.
12974         * libc/stdlib/Makefile.am (LIB_SOURCES): Add getsubopt.c.
12975         * libc/stdlib/getsubopt.3: New file.
12976         * libc/stdlib/getsubopt.c: New file.
12977         * libc/sys/linux/machine/i386/socketcall.h (__sockcall_base):
12978         Change esp to ebp.
12979
12980 2002-07-17  Jeff Johnston  <jjohnstn@redhat.com>
12981
12982         * configure.host(stdio64_dir): New setting that is used to
12983         enable building of new stdio64 directory.
12984         * libc/Makefile.am[HAVE_STDIO64_DIR]: Add support for
12985         large files.
12986         (stmp-stdio64,stdio64.texi): New targets to optionally add in
12987         stdio64 info to info files.
12988         * libc/Makefile.in: Regenerated.
12989         * libc/configure: Ditto.
12990         * libc/configure.in: Add configuration variables that are set
12991         when stdio64 is selected as subdir in configure.host.
12992         * libc/libc.texinfo: Add optional menu item for Stdio64, based
12993         on whether STDIO64 flag is set or not.
12994         * libc/sys.tex: Add optional stdio64 syscalls based on whether
12995         STDIO64 flag is set or not.
12996         * libc/include/reent.h[__LARGE64_FILES]: Add new stdio64
12997         _r sycall routines.
12998         * libc/include/stdio.h[__LARGE64_FILES]: Add new stdio64 prototypes.
12999         (FILE): Typedef'd to __FILE instead of struct __sFILE directly.
13000         (__SL64): New file flag indicating file is opened via fopen64.
13001         * libc/include/sys/_types.h(_off64_t): Added.
13002         * libc/include/sys/config.h: For x86-linux, define __LARGE64_FILES.
13003         * libc/include/sys/reent.h(struct __sFILE64): New file structure
13004         for 64-bit offset large file support.
13005         (__FILE): New intermediate type either set to struct __sFILE64 or
13006         struct __sFILE, depending on whether __LARGE64_FILES is set or not.
13007         * libc/reent/Makefile.am[HAVE_STDIO64_DIR]: Add new files.
13008         * libc/reent/Makefile.in: Regenerated.
13009         * libc/reent/fstat64r.c: New file.
13010         * libc/reent/lseek64r.c: Ditto.
13011         * libc/reent/open64r.c: Ditto.
13012         * libc/reent/reent.tex: Optionally add stdio64 reentrant syscalls
13013         based on whether STDIO64 flag is set.
13014         * libc/stdio/stdio.tex: Add blank line.
13015         * libc/stdio64/Makefile.am: New file.
13016         * libc/stdio64/Makefile.in: Ditto.
13017         * libc/stdio64/fgetpos64.c: Ditto.
13018         * libc/stdio64/fopen64.: Ditto.
13019         * libc/stdio64/freopen64.c: Ditto.
13020         * libc/stdio64/fseeko64.c: Ditto.
13021         * libc/stdio64/fsetpos64.c: Ditto.
13022         * libc/stdio64/ftello64.c: Ditto.
13023         * libc/stdio64/local64.h: Ditto.
13024         * libc/stdio64/stdio64.c: Ditto.
13025         * libc/stdio64/stdio64.tex: Ditto.
13026         * libc/stdio64/tmpfile64.c: Ditto.
13027         * libc/sys/linux/io64.c: Add weak aliases for lseek64, fstat64, and
13028         open64.
13029
13030 2002-07-16  Jeff Johnston  <jjohnstn@redhat.com>
13031
13032         * libc/Makefile.am (stmp-extra): New target to set makeinfo flag
13033         if LIBC_EXTRA_LIB is present.
13034         * libc/Makefile.in: Regenerated.
13035         * libc/libc.texinfo: Add blank line.
13036         * libc/argz/Makefile.am: Add doc support.
13037         * libc/search/Makefile.am: Ditto.
13038         * libc/argz/Makefile.in: Regenerated.
13039         * libc/search/Makefile.in: Ditto.
13040         * libc/misc/misc.tex: Add ffs function.
13041         * libc/stdio/ftell.c: Fix missing doc delimeter in description.
13042
13043 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
13044
13045         * libc/include/sys/config.h[__H8300__]: Replace __SMALL_BITFIELDS
13046         definition that was removed in error.
13047
13048 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
13049
13050         * libc/include/machine/ieeefp.h: Change to only define
13051         floating point defines (e.g one of __IEEE_BIG_ENDIAN or
13052         __IEEE_LITTLE_ENDIAN must be defined for each platform).
13053         * libc/include/sys/config.h: Include <machine/ieeefp.h> and
13054         remove redundant floating point definitions.
13055
13056 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
13057
13058         * libc/sys/linux/callocr.c: Fix so code references
13059         calloc.
13060
13061 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
13062
13063         * libc/sys/linux/Makefile.am: Add new files.
13064         * libc/sys/linux/Makefile.in: Regenerated.
13065         * libc/sys/linux/bp-sym.h: Moved to include directory.
13066         * libc/sys/linux/mmap.c: Add weak aliases: __mmap, __munmap, __mremap.
13067         * libc/sys/linux/inode.c: Set _LIBC to 1.
13068         * libc/sys/linux/mq_close.c: Ditto.
13069         * libc/sys/linux/mq_getattr.c: Ditto.
13070         * libc/sys/linux/mq_open.c: Ditto.
13071         * libc/sys/linux/mq_receive.c: Ditto.
13072         * libc/sys/linux/mq_send.c: Ditto.
13073         * libc/sys/linux/mq_setattr.c: Ditto.
13074         * libc/sys/linux/mq_unlink.c: Ditto.
13075         * libc/sys/linux/calloc.c: New file.
13076         * libc/sys/linux/callocr.c: Ditto.
13077         * libc/sys/linux/cfreer.c: Ditto.
13078         * libc/sys/linux/config.h: Ditto.
13079         * libc/sys/linux/free.c: Ditto.
13080         * libc/sys/linux/freer.c: Ditto.
13081         * libc/sys/linux/msize.c: Ditto.
13082         * libc/sys/linux/msizer.c: Ditto.
13083         * libc/sys/linux/mstats.c: Ditto.
13084         * libc/sys/linux/mtrim.c: Ditto.
13085         * libc/sys/linux/mtrimr.c: Ditto.
13086         * libc/sys/linux/pvallocr.c: Ditto.
13087         * libc/sys/linux/realloc.c: Ditto.
13088         * libc/sys/linux/reallocr.c: Ditto.
13089         * libc/sys/linux/thread-m.h: Ditto.
13090         * libc/sys/linux/vallocr.c: Ditto.
13091         * libc/sys/linux/bp-checks.h: Ditto.
13092         * libc/sys/linux/libc-symbols.h: Ditto.
13093         * libc/sys/linux/libc-tsd.h: Ditto.
13094         * libc/sys/linux/libintl.h: Ditto.
13095         * libc/sys/linux/malign.c: Ditto.
13096         * libc/sys/linux/malignr.c: Ditto.
13097         * libc/sys/linux/mallinfor.c: Ditto.
13098         * libc/sys/linux/malloc.c: Ditto.
13099         * libc/sys/linux/mallocr.c: Ditto.
13100         * libc/sys/linux/malloptr.c: Ditto.
13101         * libc/sys/linux/mallstatsr.c: Ditto.
13102         * libc/sys/linux/mcheck.c: Ditto.
13103         * libc/sys/linux/mhooks.h: Ditto.
13104         * libc/sys/linux/include/bp-sym.h: Ditto.
13105         * libc/sys/linux/include/malloc.h: Ditto.
13106         * libc/sys/linux/include/mcheck.h: Ditto.
13107         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Remove
13108         getpagesize.c.
13109         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Regenerated.
13110         * libc/sys/linux/linuxthreads/machine/i386/getpagesize.c: Moved.
13111         * libc/sys/linux/machine/i386/getpagesize.c: New file.
13112         * libc/sys/linux/machine/i386/Makefile.am: Add getpagesize.c.
13113         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
13114         * libc/sys/linux/machine/i386/sysdep.h: New file.
13115         * libc/sys/linux/machine/i386/weakalias.h: Add weak_function support.
13116         * libc/sys/linux/sys/dirent.h: Set _LIBC to 1.
13117         * libc/sys/linux/sys/lock.h: Include <machine/weakalias.h>.
13118
13119 2002-07-12  Jeff Johnston  <jjohnstn@redhat.com>
13120
13121         * libc/sys/linux/include/mqueue.h: Change to use <bits/siginfo.h>
13122         instead of <asm/siginfo.h>.
13123         * libc/sys/linux/sys/signal.h: Change to include various linux
13124         <bits/xxx.h> header files, rather than <linux/signal.h> so as
13125         to work with multiple releases of glibc header files.
13126
13127 2002-07-11  Chris Demetriou  <cgd@broadcom.com>
13128
13129         * testsuite/newlib.search/hsearchtest.c: New file to test
13130         newlib/libc/search.
13131         * testsuite/newlib.search/hsearchtest.exp: Likewise.
13132
13133 2002-07-10  Florian Schrack  <florian.schrack@freenet.de>
13134
13135         * libc/sys/mmixware/read.c: Use SYS_Fgets syscall if dealing with
13136         a terminal.
13137         * libc/sys/mmixware/sys/syscall.h (SYS_Fgets): Definition added.
13138
13139 2002-07-08  Jeff Johnston  <jjohnstn@redhat.com>
13140
13141         * libc/include/math.h (MAXFLOAT): Added.
13142
13143 Mon Jul  8 13:55:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
13144
13145         * libc/machine/sh/Makefile.am (lib_a_SOURCES):
13146         Make strcmp.S unconditional.
13147         * libc/machine/sh/Makefile.in: Regenerate.
13148         * libc/machine/sh/asm.h (DELAYED_BRANCHES, SL): Also for __SH5__ .
13149         * strcmp.S (strcmp): Add SHmedia variant.  Use different registers
13150         for SHcompact.
13151
13152 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
13153
13154         * libc/sys/linux/inode.c: Fix utime prototype and add _LIBC
13155         define before including <sys/lock.h>.
13156
13157 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
13158
13159         * libc/include/utime.h: Add include of <_ansi.h>.
13160         * libc/sys/linux/Makefile.am: Add utimes.c.
13161         * libc/sys/linux/Makefile.in: Regenerated.
13162         * libc/sys/linux/inode.c(__umask): New static routine.
13163         (umask): Written to use __umask and attempt to thread lock.
13164         (getumask): New function written to use __umask and thread lock.
13165         * libc/sys/linux/utimes.c: New file.
13166         * libc/sys/linux/sys/time.h: Fix utimes prototype.
13167         * libc/sys/linux/sys/utime.h: New file.
13168
13169 2002-07-04  Thomas Fitzsimmons  <fitzsim@redhat.com>
13170
13171         * libtool.m4: New file.
13172         * libc/sys/linux/process.c: Implement vfork in terms of fork,
13173         rather than as a syscall.
13174
13175 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
13176
13177         * libc/include/stdio.h: Add new prototypes.
13178         * libc/stdio/Makefile.am: Add fseeko.c and ftello.c.
13179         * libc/stdio/Makefile.in: Regenerated.
13180         * libc/stdio/fseek.c: Add fseeko documentation.
13181         * libc/stdio/ftell.c: Add ftello documentation.
13182         * libc/stdio/fseeko.c: New file.
13183         * libc/stdio/ftello.c: New file.
13184
13185 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
13186
13187         * libc/stdio/Makefile.am: Add asprintf.c and vasprintf.c.
13188         * libc/stdio/Makefile.in: Regenerated.
13189         * libc/stdio/asprintf.c: New file.
13190         * libc/stdio/vasprintf.c: Ditto.
13191         * libc/stdio/fvwrite.c: Add code to dynamically reallocate
13192         the buffer for asprintf support.
13193         * libc/stdio/sprintf.c: Add asprintf documentation.
13194         * libc/stdio/vfprintf.c: Add vasprintf documentation.
13195         * libc/include/stdio.h: Add new prototypes.
13196
13197 2002-07-02  Thomas Fitzsimmons  <fitzsim@redhat.com>
13198
13199         * libc/search/hcreate.c: Remove advertising clause from license.
13200         * libc/search/hcreate_r.c: Likewise.
13201
13202 2002-07-02  Chris Demetriou  <cgd@broadcom.com>
13203
13204         * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN)
13205         (__IEEE_BIG_ENDIAN): Define appropriately for MIPS.
13206         Check that one of them is defined and error out if not.
13207         Add any platforms defined in <machine/ieeefp.h> that are missing.
13208         * libc/search/hash.h (DB_BYTE_ORDER, DB_BIG_ENDIAN)
13209         (DB_LITTLE_ENDIAN): New defines.
13210         * libc/search/hash.c: Replace all incorrect checks for
13211         _IEEE_LITTLE_ENDIAN with tests of BYTE_ORDER, and all uses of
13212         BYTE_ORDER, LITTLE_ENDIAN, and BIG_ENDIAN with DB_* versions.
13213         * libc/search/hash_page.c: Likewise.
13214
13215 2002-06-28  Thomas Fitzsimmons  <fitzsim@redhat.com>
13216
13217         * libm/mathfp/sf_pow.c (powf): Change k from int to float.
13218
13219 2002-06-27  Benjamin Kosnik  <bkoz@redhat.com>
13220
13221         * libc/include/stdio.h: Untangle, add _BEGIN_STD_C and _END_STD_C.
13222         * libc/include/time.h: Same.
13223         * libc/include/string.h: Same.
13224         * libc/include/stdlib.h: Same.
13225         * libc/include/signal.h: Same.
13226         * libc/include/setjmp.h: Same.
13227         * libc/include/math.h: Same.
13228         * libc/include/locale.h: Same.
13229         * libc/include/ctype.h: Same.
13230         * libc/include/machine/setjmp.h: Same.
13231         * libc/include/_ansi.h (_BEGIN_STD_C): Add.
13232         (_END_STD_C): Add.
13233
13234 2002-06-27  Jeff Johnston  <jjohnstn@redhat.com>
13235
13236         * libc/include/sys/_types.h: Define _ssize_t as int if int is
13237         32-bits, otherwise define it as long.
13238         * libc/include/sys/types.h: Include <_ansi.h> and <sys/_types.h>
13239         and define ssize_t as _ssize_t.
13240         * libc/reent/readr.c: Change return type to _ssize_t.
13241         * libc/reent/writer.c: Ditto.
13242         * libc/sys/linux/Makefile.am: Add aio.c.
13243         * libc/sys/linux/Makefile.in: Regenerated.
13244         * libc/sys/linux/aio.c: New file.
13245         * libc/sys/linux/sys/cdefs.h: Add __restrict_arr definition.
13246         * libm/common/fdlibm.h: Undef __P before defining it.
13247
13248 2002-06-27  Thomas Fitzsimmons  <fitzsim@redhat.com>
13249
13250         * libm/mathfp/s_pow.c (pow): Fix checks on variable k.  Add
13251         exponent_is_even_int variable.  Handle case where x is
13252         negative, and y is an odd integer.
13253         * libm/mathfp/sf_pow.c (powf): Likewise.
13254
13255         * libm/mathfp/er_lgamma.c: Remove __kernel references.
13256         * libm/mathfp/erf_lgamma.c: Likewise.
13257         * libm/mathfp/s_tgamma.c: Likewise.
13258         * libm/mathfp/sf_tgamma.c: Likewise.
13259
13260 2002-06-27  Jeff Johnston  <jjohnstn@redhat.com>
13261
13262         * libc/sys/linux/Makefile.am: Add new clock routines.
13263         * libc/sys/linux/Makefile.in: Regenerated.
13264         * libc/sys/linux/clock_getres.c: New file.
13265         * libc/sys/linux/clock_gettime.c: Ditto.
13266         * libc/sys/linux/clock_settime.c: Ditto.
13267         * libc/sys/linux/hp-timing.h: Ditto.
13268         * libc/sys/linux/libc-internal.h: Ditto.
13269         * libc/sys/linux/sysconf.c: Fix typo.
13270         * libc/sys/linux/include/time.h: Add include of <sys/linux_time.h>.
13271         * libc/sys/linux/machine/hp-timing.h: New file.
13272         * libc/sys/linux/machine/i386/Makefile.am: Add new files.
13273         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
13274         * libc/sys/linux/machine/i386/get_clockfreq.c: New file.
13275         * libc/sys/linux/machine/i386/hp-timing.c: Ditto.
13276         * libc/sys/linux/machine/i386/hp-timing.h: Ditto.
13277         * libc/sys/linux/sys/linux_time.h: New file.
13278         * libc/sys/linux/sys/time.h: Remove include of <linux/time.h> and
13279         replace with <sys/linux_time.h>.
13280
13281 Wed Jun 26 16:33:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
13282
13283         * libc/sys/sh/crt0.S: Remove vestigial .section directive.
13284
13285 2002-06-25  Jeff Johnston  <jjohnstn@redhat.com>
13286
13287         * libc/sys/linux/Makefile.am: Consolidate additional items under
13288         ADD_OBJS.
13289         * libc/sys/linux/Makefile.in: Regenerated.
13290
13291 2002-06-25  Jeff Johnston  <jjohnstn@redhat.com>
13292
13293         * libc/sys/linux/sethostname.c: New file.
13294         * libc/sys/linux/Makefile.am: Add sethostname.c support.
13295         * libc/sys/linux/Makefile.in: Regenerated.
13296
13297 2002-06-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
13298
13299         * libc/search/db_local.h: New file.
13300         * libc/include/db.h: Remove.
13301         * libc/search/Makefile.am (LIB_SOURCES): Add db_local.h.
13302         * libc/search/hash.c (MIN,MAX): Add macros.  Change <db.h> to
13303         "db_local.h".
13304         * libc/search/hash_bigkey.c: Likewise.
13305         * libc/search/hash_buf.c: Likewise.
13306         * libc/search/hash_func.c: Likewise.
13307         * libc/search/hash_log2.c: Likewise.
13308         * libc/search/hash_page.c: Likewise.
13309
13310 2002-06-24  J"orn Rennecke <joern.rennecke@superh.com>
13311
13312         * libc/machine/sh/strlen.S: New file.
13313         * libc/machine/sh/Makefile.am (lib_a_SOURCES): Add rule for it.
13314         * libc/machine/sh/Makefile.am: Regenerate.
13315
13316 2002-06-24  Jeff Johnston  <jjohnstn@redhat.com>
13317
13318         * libc/sys/linux/gethostname.c: Change name to __gethostname and
13319         add gethostname alias.
13320
13321 2002-06-24  Jeff Johnston  <jjohnstn@redhat.com>
13322
13323         * libc/include/math.h: Remove <sys/types.h>.
13324         (__dmath): Use __ULong instead of __uint32_t.
13325         * libc/include/sys/reent.h: If long or int is not 32-bits,
13326         include <sys/types.h> to get definitions for __int32_t and __uint32_t.
13327         * libc/stdlib/mprec.h: Include <sys/types.h> to get integer defs.
13328         * libm/common/fdlibm.h: Ditto.
13329
13330 2002-06-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
13331
13332         * libc/include/ndbm.h: Remove.
13333         * libc/search/ndbm.c: Remove.
13334
13335 2002-06-24  WATANABE Hirofumi <eban@os.rim.or.jp>
13336
13337         * libc/stdio/fseek.c (fseek): Fix braces.
13338
13339 2002-06-21  Corinna Vinschen  <corinna@vinschen.de>
13340
13341         * libc/time/strftime.c (strftime): Add %e format specifier.
13342
13343 2002-06-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
13344
13345         * libc/search/hash.h (LITTLE_ENDIAN, BIG_ENDIAN): Define if not
13346         previously defined.
13347
13348 2002-06-21  Richard Earnshaw  (rearnsha@arm.com)
13349
13350         * libc/sys/arm/sys/param.h (BIG_ENDIAN, LITTLE_ENDIAN): Define.
13351         (BYTE_ORDER): Define as appropriate for the target.
13352
13353 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
13354
13355         * libc/include/sys/config.h[__linux__]: Set _READ_WRITE_RETURN_TYPE
13356         to _ssize_t.
13357         * libc/sys/linux/io.c (read, write): Change to return ssize_t.
13358
13359 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
13360
13361         * libc/include/stdio.h (__getline, __getdelim): New prototypes.
13362         * libc/include/time.h [HAVE_GETDATE](getdate, getdate_r): Ditto.
13363         [HAVE_GETDATE](getdate_err): New error code.
13364         * libc/stdio/Makefile.am: Add support for getline.c and getdelim.c.
13365         * libc/stdio/Makefile.in: Regenerated.
13366         * libc/stdio/getdelim.c: New file.
13367         * libc/stdio/getline.c: Ditto.
13368         * libc/sys/linux/Makefile.am: Add support for getdate.c, getdate_err.c
13369         and ntp_gettime.c.  Also add AM_CFLAGS to point to libc/stdio.
13370         * libc/sys/linux/Makefile.in: Regenerated.
13371         * libc/sys/linux/getdate.c: New file.
13372         * libc/sys/linux/getdate_err.c: Ditto.
13373         * libc/sys/linux/ntp_gettime.c: Ditto.
13374         * libc/sys/linux/time.c (adjtimex, ntp_adjtime): New functions.
13375         * libc/sys/linux/sys/stdio.h (getline, getdelim): New macros.
13376
13377 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
13378
13379         * libc/include/math.h: Add <sys/types.h> to get _uint32_t definition.
13380         * libc/include/machine/types.h: Skip __off_t, __pid_t, and
13381         __loff_t definitions if special _HAVE_SYSTYPES macro defined.
13382         * libc/include/sys/config.h: Removed _uint*, _int* definitions.
13383         * libc/include/sys/param.h: Remove i386 case which is handled
13384         by default case.
13385         (BIG_ENDIAN, LITTLE_ENDIAN): Protect
13386         definitions in case they are already defined.
13387         (BYTE_ORDER): Add default case using _IEEE_BIG_ENDIAN and
13388         _IEEE_LITTLE_ENDIAN flags.
13389         * libc/include/sys/reent.h: Change __uint32_t references to
13390         use _ULong instead.
13391         (_REENT_GETDATE_REENT_P): New macro.
13392         * libc/include/sys/types.h (__int16_t, __uint16_t): Added.
13393         (__int32_t, __uint32_t, __int64_t, __uint64_t): Ditto.
13394         * libc/search/hash.h: Add default setting of BYTE_ORDER,
13395         LITTLE_ENDIAN, and BIG_ENDIAN, if not already defined.
13396         * libc/sys/linux/sys/types.h: Include <sys/_types.h>.  Define
13397         ssize_t based on _ssize_t.  Remove __socklen_t, __uintptr_t,
13398         pid_t, off_t, loff_t, caddr_t, and daddr_t type
13399         definitions which are done by subsequent glibc headers.
13400         Add macro definitions to prevent subsequent header files from
13401         defining pid_t, off_t, ssize_t, and key_t.  Move uintptr_t and
13402         intptr_t to after glibc definitions of types they are based on.
13403
13404 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
13405
13406         * libc/include/errno.h: Protect from multiple inclusion.
13407
13408 2002-06-21  Nick Clifton  <nickc@cambridge.redhat.com>
13409
13410         * libc/sys/arm/swi.h (ADP_Stopped_RunTimeError): Set correct value.
13411
13412 2002-06-20  Thomas Fitzsimmons  <fitzsim@redhat.com>
13413
13414         * Makefile.am (LIB_OBJECTLISTS): Add
13415         libc/search/objectlist.awk.in.
13416         * libc/Makefile.am (SUBDIRS): Add search.
13417         (SUBLIBS): Add search/libsearch.la.
13418         * libc/configure.in (AC_OUTPUT): Add search/Makefile.
13419         * libc/search: New directory.
13420         * libc/search/Makefile.am: New file.
13421         * libc/search/extern.h: New file.
13422         * libc/search/hash.c: New file.
13423         * libc/search/hash.h: New file.
13424         * libc/search/hash_bigkey.c: New file.
13425         * libc/search/hash_buf.c: New file.
13426         * libc/search/hash_func.c: New file.
13427         * libc/search/hash_log2.c: New file.
13428         * libc/search/hash_page.c: New file.
13429         * libc/search/hcreate.3: New file.
13430         * libc/search/hcreate.c: New file.
13431         * libc/search/hcreate_r.c: New file.
13432         * libc/search/ndbm.c: New file.
13433         * libc/search/page.h: New file.
13434         * libc/search/tdelete.c: New file.
13435         * libc/search/tdestroy.c: New file.
13436         * libc/search/tfind.c: New file.
13437         * libc/search/tsearch.3: New file.
13438         * libc/search/tsearch.c: New file.
13439         * libc/search/twalk.c: New file.
13440         * libc/include/db.h: New file.
13441         * libc/include/ndbm.h: New file.
13442         * libc/include/search.h: New file.
13443         * libc/include/sys/queue.h: New file.
13444         * libc/include/sys/cdefs.h: New file.
13445         * libc/include/sys/param.h
13446         [__IEEE_LITTLE_ENDIAN,__IEEE_BIG_ENDIAN]: Set BYTE_ORDER to
13447         LITTLE_ENDIAN or BIG_ENDIAN.
13448         * libc/include/sys/errno.h (EFTYPE): New macro.
13449         * libc/search/bsearch.c: Move from libc/stdlib.
13450         * libc/search/qsort.c: Likewise.
13451         * libc/stdlib/Makefile.am (LIB_SOURCES): Remove bsearch.c and
13452         qsort.c.
13453         (CHEWOUT_FILES): Remove bsearch.def and qsort.def.
13454         * libc/stdlib/stdlib.tex: Remove references to bsearch and qsort.
13455
13456 2002-06-19  Jeff Johnston  <jjohnstn@redhat.com>
13457
13458         * libc/sys/linux/Makefile.am: Add support for message queue routines,
13459         ipc routines, and ftok.
13460         * libc/sys/linux/Makefile.in: Regenerated.
13461         * libc/sys/linux/ftok.c: New file.
13462         * libc/sys/linux/ipc.c: Ditto.
13463         * libc/sys/linux/mq_close.c: Ditto.
13464         * libc/sys/linux/mq_getattr.c: Ditto.
13465         * libc/sys/linux/mq_notify.c: Ditto.
13466         * libc/sys/linux/mq_open.c: Ditto.
13467         * libc/sys/linux/mq_receive.c: Ditto.
13468         * libc/sys/linux/mq_send.c: Ditto.
13469         * libc/sys/linux/mq_setattr.c: Ditto.
13470         * libc/sys/linux/mq_unlink.c: Ditto.
13471         * libc/sys/linux/mqlocal.h: Ditto.
13472         * libc/sys/linux/include/mqueue.h: Ditto.
13473         * libc/sys/linux/sys/types.h: Define __gid_t_defined and
13474         __uid_t_defined.
13475
13476 2002-06-19  J"orn Rennecke <joern.rennecke@superh.com>
13477
13478         * libm/common/sf_lround.c (round): Change name to: (lround).
13479         * libm/common/sf_remquo.c (remquo): Pass all arguemnts to
13480         remquof.
13481
13482 2002-06-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
13483
13484         * testsuite/lib/passfail.exp (newlib_pass_fail_all): New
13485         procedure.
13486         (newlib_pass_fail): Change to compile and run only one file.
13487         * testsuite/newlib.locale/locale.exp: Use new
13488         newlib_pass_fail_all procedure.
13489         * testsuite/newlib.string/string.exp: Likewise.
13490
13491 2002-06-18  Dave Brolley  <brolley@redhat.com>
13492
13493         From Catherine Moore, Michael Meissner, Richard Sandiford:
13494         * libc/include/machine/setjmp.h (_JBLEN): Define for __frv__.
13495         (_JBTYPE): Ditto.
13496         * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Ditto.
13497         (__ATTRIBUTE_IMPURE_PTR__): Ditto.
13498         * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Ditto.
13499         * configure.host: Support frv-*-*.
13500         * libc/machine/frv/Makefile.am: New file.
13501         * libc/machine/frv/configure.in: New file.
13502         * libc/machine/frv/setjmp.S: New file.
13503
13504 2002-06-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
13505
13506         * libc/include/ctype.h: Remove isblank macro.
13507
13508         * libc/ctype/Makefile.am (LIB_SOURCES): Add isblank.c.
13509         * libc/ctype/isblank.c: New file.
13510         * libc/include/ctype.h [!__STRICT_ANSI__]: Add isblank
13511         declaration.  Add isblank macro.
13512
13513 2002-06-18  Jeff Johnston  <jjohnstn@redhat.com>
13514
13515         * testsuite/newlib.stdlib/atexit.c: New file.
13516         * testsuite/newlib.stdlib/atexit.exp: Ditto.
13517         * testsuite/newlib.string/tstring.c: Change default start size
13518         to something more reasonable for embedded platforms.
13519
13520 2002-06-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
13521
13522         * libc/sys/linux/sys/errno.h (EFTYPE): Add macro.
13523
13524         * libc/argz: New directory.
13525         * libc/argz/*: New files.
13526         * libc/argz/argz_add.c: New file.
13527         * libc/argz/argz_add_sep.c: New file.
13528         * libc/argz/argz_append.c: New file.
13529         * libc/argz/argz_count.c: New file.
13530         * libc/argz/argz_create.c: New file.
13531         * libc/argz/argz_create_sep.c: New file.
13532         * libc/argz/argz_delete.c: New file.
13533         * libc/argz/argz_extract.c: New file.
13534         * libc/argz/argz_insert.c: New file.
13535         * libc/argz/argz_next.c: New file.
13536         * libc/argz/argz_replace.c: New file.
13537         * libc/argz/argz_stringify.c: New file.
13538         * libc/argz/buf_findstr.c: New file.
13539         * libc/argz/envz_add.c: New file.
13540         * libc/argz/envz_entry.c: New file.
13541         * libc/argz/envz_get.c: New file.
13542         * libc/argz/envz_merge.c: New file.
13543         * libc/argz/envz_remove.c: New file.
13544         * libc/argz/envz_strip.c: New file.
13545         * libc/include/argz.h: New file.
13546         * libc/include/envz.h: New file.
13547         * Makefile.am (LIBC_OBJECTLISTS): Add
13548         libc/argz/objectlist.awk.in.
13549         * libc/Makefile.am (SUBDIRS): Add argz.
13550         (SUBLIBS): Add argz/libargz.la.
13551         * libc/configure.in (AC_OUTPUT): Add argz/Makefile.
13552         * libc/include/errno.h: Add error_t typedef.
13553
13554 2002-06-13  Jeff Johnston  <jjohnstn@redhat.com>
13555
13556         * libc/include/stdlib.h: Add _Exit prototype.
13557         * libc/stdlib/Makefile.am: Add _Exit.c support.
13558         * libc/stdlib/Makefile.in: Ditto.
13559         * libc/stdlib/_Exit.c: New file.
13560
13561 2002-06-13  Stephen L. Moshier  <steve@moshier.net>
13562
13563         * libm/math/e_pow.c (__ieee754_pow): Fix case whereby
13564         x is close to -1.0 and y is very large to use ax (absolute value)
13565         instead of x.
13566         * libm/math/ef_pow.c (__ieee754_powf): Ditto.
13567
13568 Thu Jun 13 19:23:40 2002  J"orn Rennecke <joern.rennecke@superh.com>
13569
13570         * libc/machine/sh/strcpy.S (strcpy, __SHMEDIA__ code):
13571         Fix clobbering bytes before destination if src and dst have same
13572         non-zero misalignment.
13573
13574         * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
13575         Fixed bug in writing end of set region.
13576
13577 2002-06-10  Christopher Faylor  <cgf@redhat.com>
13578
13579         * libc/include/process.h: Remove cygwin-only sexec* declarations.  Fix
13580         spawnve declaration.
13581
13582 2002-06-06  Thomas Fitzsimmons  <fitzsim@redhat.com>
13583
13584         * libm/common/s_fdim.c: New file.
13585         * libm/common/s_fma.c: Likewise.
13586         * libm/common/s_fmax.c: Likewise.
13587         * libm/common/s_fmin.c: Likewise.
13588         * libm/common/s_fpclassify.c: Likewise.
13589         * libm/common/s_lrint.c: Likewise.
13590         * libm/common/s_lround.c: Likewise.
13591         * libm/common/s_nearbyint.c: Likewise.
13592         * libm/common/s_remquo.c: Likewise.
13593         * libm/common/s_round.c: Likewise.
13594         * libm/common/s_scalbln.c: Likewise.
13595         * libm/common/s_signbit.c: Likewise.
13596         * libm/common/s_trunc.c: Likewise.
13597         * libm/common/sf_fdim.c: Likewise.
13598         * libm/common/sf_fma.c: Likewise.
13599         * libm/common/sf_fmax.c: Likewise.
13600         * libm/common/sf_fmin.c: Likewise.
13601         * libm/common/sf_lrint.c: Likewise.
13602         * libm/common/sf_lround.c: Likewise.
13603         * libm/common/sf_nearbyint.c: Likewise.
13604         * libm/common/sf_remquo.c: Likewise.
13605         * libm/common/sf_round.c: Likewise.
13606         * libm/common/sf_scalbln.c: Likewise.
13607         * libm/common/sf_trunc.c: Likewise.
13608         * libm/math/w_exp2.c: Likewise.
13609         * libm/math/w_tgamma.c: Likewise.
13610         * libm/math/wf_exp2.c: Likewise.
13611         * libm/math/wf_tgamma.c: Likewise.
13612         * libm/mathfp/s_exp2.c: Likewise.
13613         * libm/mathfp/s_tgamma.c: Likewise.
13614         * libm/mathfp/sf_exp2.c: Likewise.
13615         * libm/mathfp/sf_tgamma.c: Likewise.
13616         * libm/math/er_gamma.c: Fix return value.
13617         * libm/math/erf_gamma.c: Likewise.
13618         * libm/mathfp/er_gamma.c: Likewise.
13619         * libm/mathfp/erf_gamma.c: Likewise.
13620         * libc/include/math.h (!__STRICT_ANSI__): Include ISOC99-specific
13621         declarations and macros.
13622         Regenerated all Makefile.in, aclocal.m4 and configure files to
13623         use new libtool macros in top-level libtool.m4
13624
13625 2002-06-05  Jeff Johnston  <jjohnstn@redhat.com>
13626
13627         * libc/include/string.h[__linux__]: Add strsignal prototype.
13628         * libc/include/sys/lock.h: New file with default locking support.
13629         * libc/include/sys/reent.h: Add signal buffer support for strsignal
13630         and psignal.
13631         * libc/posix/Makefile.am: Add support for readdir_r.c.
13632         * libc/posix/Makefile.in: Regenerated.
13633         * libc/posix/closedir.c: Add locking support and hash table cleanup.
13634         * libc/posix/opendir.c: Add lock support.
13635         * libc/posix/readdir.c: Ditto.
13636         * libc/posix/rewinddir.c: Ditto.
13637         * libc/posix/scandir.c: Ditto.
13638         * libc/posix/seekdir.c: Ditto.
13639         * libc/posix/telldir.c: Ditto plus add _cleanupdir routine to
13640         clean up leftover hash table entries.
13641         * libc/posix/readdir_r.c: New file.
13642         * libc/sys/linux/Makefile.am: Add psignal.c and strsignal.c support.
13643         * libc/sys/linux/Makefile.in: Regenerated.
13644         * libc/sys/linux/sys/dirent.h: Add dd_lock to DIR structure.
13645         * libc/sys/linux/sys/signal.h: Add psignal prototype.
13646         * libc/sys/linux/psignal.c: New file.
13647         * libc/sys/linux/strsignal.c: Ditto.
13648
13649 2002-06-03  Corinna Vinschen  <corinna@vinschen.de>
13650
13651         * libc/include/sys/types.h: Don't define dev_t when compiling for
13652         Cygwin.
13653
13654 2002-05-31  Jeff Johnston  <jjohnstn@redhat.com>
13655
13656         * libc/sys/linux/Makefile.am: Add sig.c and sigaction.c.  Also
13657         make siglist.inc dependent on sig.c instead of signal.c.
13658         * libc/sys/linux/Makefile.in: Regenerated.
13659         * libc/sys/linux/sig.c: Rename from signal.c and change code to
13660         use NSIG instead of _NSIG.
13661         * libc/sys/linux/sigaction.c: New file.
13662         * libc/sys/linux/signal.c: Changed to be linux signal() function
13663         so as to override regular newlib default signal.c.
13664         * libc/sys/linux/machine/i386/Makefile.am: Remove sigset.c.
13665         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
13666         * libc/sys/linux/machine/i386/sigset.c: Moved to linux main directory.
13667         * libc/sys/linux/sigset.c: Moved from machine/i386 directory.
13668         * libc/sys/linux/sys/signal.h: Redefine NSIG to _NSIG and override
13669         default linux sigset_t typedef by defining it equal to __sigset_t.
13670         * libc/unix/sigset.c: Add check so code isn't compiled on systems
13671         with a sigset_t that isn't implemented with a single int.
13672
13673 2002-05-30  Jeff Johnston  <jjohnstn@redhat.com>
13674
13675         * libc/sys/linux/Makefile.am: Add support for new files.
13676         * libc/sys/linux/Makefile.in: Regenerated.
13677         * libc/sys/linux/ids.c: Add __getuid weak alias for getuid.
13678         * libc/sys/linux/signal.c: Change to use real-time syscalls for
13679         sigsuspend, sigprocmask, and sigpending.  Also remove sigaction as
13680         it is in a separate file now.
13681         * libc/sys/linux/machine/i386/Makefile.am
13682         * libc/sys/linux/machine/i386/Makefile.in
13683         * libc/sys/linux/sys/signal.h: Add include of <bits/signum.h>.
13684         * libc/sys/linux/sigaction.c: New file.
13685         * libc/sys/linux/sigqueue.c: Ditto.
13686         * libc/sys/linux/sigwait.c: Ditto.
13687         * libc/sys/linux/machine/i386/sigaction.c: Ditto.
13688         * libc/sys/linux/kernel_sigaction.h: Ditto.
13689
13690 2002-05-28  Jeff Johnston  <jjohnstn@redhat.com>
13691
13692         * libc/sys/linux/Makefile.am: Add support for cfspeed.c and
13693         tcsendbrk.c.
13694         * libc/sys/linux/Makefile.in: Regenerated.
13695         * libc/sys/linux/termios.c: Add tcflow(), tcflush(),
13696         tcgetpgrp(), and tcsetpgrp() functions.
13697         * libc/sys/linux/sys/termios.h: Add include of machine/termios.h
13698         to get __MAX_BAUD rate.
13699         * libc/sys/linux/machine/i386/include/termios.h: New file.
13700         * libc/include/machine/termios.h: Ditto.
13701         * libc/sys/linux/cfspeed.c: Ditto.
13702         * libc/sys/linux/tcsendbrk.c: Ditto.
13703
13704 2002-05-24  Jeff Johnston  <jjohnstn@redhat.com>
13705
13706         * libc/include/string.h: Add strnlen and strerror_r prototypes.
13707         * libc/string/Makefile.am: Add strnlen.c and strerror_r.c support.
13708         * libc/string/Makefile.in: Regenerated.
13709         * libc/string/strerror_r.c: New file.
13710         * libc/string/strnlen.c: New file.
13711         * libc/sys/linux/Makefile.am: Add rename.c.
13712         * libc/sys/linux/Makefile.in: Regenerated.
13713         * libc/sys/linux/rename.c: New file to override default rename.
13714
13715 2002-05-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
13716
13717         * libc/sys/linux/sys/cdefs.h: Add __weak_reference macros.
13718         * libc/sys/linux/sys/time.h: Add conversion macros.
13719         * libc/sys/linux/sys/types.h: Add FD_ macros.  Include <bits/types.h>.
13720         * libc/sys/linux/ids.c: Add setresuid and syslog syscalls.
13721         * libc/sys/linux/gethostname.c: New file.
13722         * libc/sys/linux/seteuid.c: New file.
13723         * libc/sys/linux/sysctl.c: New file.
13724
13725 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
13726
13727         * libc/string/Makefile.am: Add support for strsep.c.
13728         * libc/string/Makefile.in: Regenerated.
13729         * libc/string/strsep.c: New file.
13730         * libc/string/strtok.c: Change to call __strtok_r service routine.
13731         * libc/string/strtok_r.c: Add __strtok_r routine which takes
13732         additional flag parameter regarding whether to skip leading delimeters.
13733         Change strtok_r to call __strtok_r.
13734
13735 2002-05-23  Gareth Pearce  <tilps@hotmail.com>
13736
13737         * libc/stdio/Makefile.am: Modify to add setbuffer.c and setlinebuf.c.
13738         * libc/stdio/Makefile.in: Regenerated.
13739         * libc/stdio/setbuffer.c: New file.
13740         * libc/stdio/setlinebuf.c: New file.
13741
13742 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
13743
13744         * libc/sys/linux/Makefile.am: Add resource.c.
13745         * libc/sys/linux/Makefile.in: Regenerated.
13746         * libc/sys/linux/resource.c: New file.
13747         * libc/sys/linux/time.c: Add settimeofday, getitimer, and setitimer.
13748         * libc/sys/linux/machine/i386/Makefile.am: Remove syscalls.c.
13749         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
13750         * libc/sys/linux/machine/i386/syscalls.c: Removed as functions
13751         are now found in libc/sys/linux/resource.c.
13752
13753 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
13754
13755         * libc/include/string.h (bcmp, bcopy, bzero): Change prototypes
13756         to use void * pointers and comply with Single Unix spec.
13757         * libc/string/bcmp.c: Change to use void * instead of char *.
13758         * libc/string/bcopy.c: Ditto.
13759         * libc/string/bzero.c: Ditto.
13760
13761 2002-05-22  Jeff Johnston  <jjohnstn@redhat.com>
13762
13763         * libc/sys/linux/shm_open.c: New file.
13764         * libc/sys/linux/shm_unlink.c: Ditto.
13765         * libc/sys/linux/Makefile.am: Add support for shm_open.c and
13766         shm_unlink.c.
13767         * libc/sys/linux/Makefile.in: Regenerated.
13768         * libc/sys/linux/sys/types.h: Add some additional checks to see
13769         if clock_t or time_t is already defined.
13770
13771 2002-05-22  Jeff Johnston  <jjohnstn@redhat.com>
13772
13773         * Makefile.am: Don't pass $toollibdir down directly in
13774         AM_MAKEFLAGS as it causes all multilibs to use the same toollibdir.
13775         Pass it under the name: top_toollibdir.
13776         * Makefile.in: Regenerated.
13777
13778 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
13779
13780         * libc/include/sys/types.h: Revert previous patch.
13781
13782 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
13783
13784         * libc/include/sys/types.h: Include cygwin/types.h always under
13785         Cygwin, not only if _POSIX_THREADS is defined.
13786
13787 2002-05-21 Dhananjay Deshpande <dhananjayd@kpit.com>
13788
13789         * configure.host: Specify sys_dir=h8300hms for h8300-*-coff* target.
13790
13791 2002-05-17  Jeff Johnston  <jjohnstn@redhat.com>
13792
13793         * Makefile.am: Copy and install headers from sys/machine/include
13794         directory.  Also pass $toollibdir to lower-level directories.
13795         * Makefile.in: Regenerated.
13796         * libc/include/stdio.h[!_REENT_ONLY]: Change stdin, stdout, and
13797         stderr to use _REENT macro instead of _impure_ptr directly.
13798         * libc/include/sys/config.h[__i386__][__linux__]: Define
13799         __DYNAMIC_REENT__.
13800         * libc/include/sys/reent.h[!_REENT_ONLY]: Change _REENT macro to be
13801         call to __getreent() function if !__SINGLE_THREAD__ and
13802         __DYNAMIC_REENT__ is set.
13803         * libc/reent/Makefile.am: Add support for getreent.c.
13804         * libc/reent/Makefile.in: Regenerated.
13805         * libc/string/strerror.c: Add check if EOPNOTSUPP and ENOTSUP are same.
13806         * libc/sys/linux/Makefile.am: Add support for new files.
13807         * libc/sys/linux/configure.in: Add $EXTRA_DIRS variable.
13808         * libc/sys/linux/Makefile.in: Regenerated.
13809         * libc/sys/linux/configure: Ditto.
13810         * libc/sys/linux/io.c: Add poll syscall.  Also weak-alias
13811         __close, __read, __write, __poll, __open, __lseek, __fcntl from
13812         their __libc_ counterparts.
13813         * libc/sys/linux/io64.c: Add __libc_ prefix to lseek64 and open64
13814         and weak-alias to regular names.
13815         * libc/sys/linux/pread64.c: Rename to __libc_pread64 and weak-alias
13816         to pread64 and __pread64.
13817         * libc/sys/linux/process.c: Weak_alias __libc_getpid to __getpid.
13818         * libc/sys/linux/pwrite64.c: Rename to __libc_pwrite64 and
13819         weak-alias to pwrite64.
13820         * libc/sys/linux/sched.c: Weak-alias __libc_sched_getparam,
13821         __libc_sched_getscheduler, __libc_sched_get_priority_max,
13822         __libc_sched_get_priority_min, and __libc_sched_setschedule to
13823         name with __ instead of __libc_.
13824         * libc/sys/linux/siglongjmp.c: Include <machine/weakalias.h>.
13825         Rename siglongjmp to __libc_siglongjmp and weak-alias to siglongjmp.
13826         Call __libc_longjmp instead of longjmp, from __libc_siglongjmp.
13827         * libc/sys/linux/signal.c: Rename raise to __libc_raise and weak-alias
13828         to raise.
13829         * libc/sys/linux/socket.c: Weak-alias __libc_connect to __connect and
13830         __libc_send to __send.
13831         * libc/sys/linux/time.c: Weak-alias __libc_gettimeofday to
13832         __gettimeofday.
13833         * libc/sys/linux/wait.c: Rename wait to __libc_wait and weak-alias
13834         it to wait.  Rename wait3 to __libc_wait3 and weak-alias it to wait3.
13835         * libc/sys/linux/include/setjmp.h: Use __jmp_buf in sigjmp_buf
13836         type and typedef __jmp_buf to jmp_buf.
13837         * libc/sys/linux/machine/i386/Makefile.am: Add syscalls.c and
13838         setjmp.S.
13839         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
13840         * libc/sys/linux/machine/i386/crt0.c: Add support to clear .bss
13841         section.
13842         * libc/sys/linux/machine/i386/socketcall.h: Change to use __libc_
13843         prefix for function macros and then use weak_alias() to regular names.
13844         * libc/sys/linux/machine/i386/syscall.h: Ditto.
13845         * libc/sys/linux/sys/errno.h: Define EOPNOTSUP to be ENOTSUP.
13846         * libc/sys/linux/sys/stdio.h: Define _flockfile and _funlockfile
13847         to be flockfile() and funlockfile() respectively.
13848         * libc/sys/linux/sys/types.h
13849         * libc/reent/getreent.c: New file.
13850         * libc/sys/linux/flockfile.c: Ditto.
13851         * libc/sys/linux/funlockfile.c: Ditto.
13852         * libc/sys/linux/getreent.c: Ditto.
13853         * libc/sys/linux/pread.c: Ditto.
13854         * libc/sys/linux/pwrite.c: Ditto.
13855         * libc/sys/linux/raise.c: Ditto.
13856         * libc/sys/linux/system.c: Ditto.
13857         * libc/sys/linux/tcdrain.c: Ditto.
13858         * libc/sys/linux/machine/i386/i386mach.h: Ditto.
13859         * libc/sys/linux/machine/i386/setjmp.S: Ditto.
13860         * libc/sys/linux/machine/i386/syscalls.c: Ditto.
13861         * libc/sys/linux/machine/i386/weakalias.h: Ditto.
13862         * libc/sys/linux/machine/i386/include/setjmp.h: Ditto.
13863
13864 2002-05-14 Dhananjay Deshpande <dhananjayd@kpit.com>
13865
13866         * newlib/libc/sys/h8300hms/Makeile.am (lib_a_SOURCES): Add read.c.
13867         * newlib/libc/sys/h8300hms/read.c: New file.  Magic trap 0xC8 for sim.
13868         * newlib/libc/sys/h8300hms/syscalls.c: Move _read() to read.c.
13869         * newlib/libs/sys/h8300hms/sys/syscall.h: New file.
13870
13871 Thu May 16 17:24:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
13872
13873         * libc/machine/sh/strcpy.S (strcpy): Replace LITTLE_ENDIAN with
13874         __LITTLE_ENDIAN__.  make sure r0 has right value at first loop
13875         exit point.
13876
13877 2002-05-15  Thomas Fitzsimmons  <fitzsim@redhat.com>
13878
13879         * testsuite/lib/newlib.exp: Add newlib_include_flags to compile
13880         options when testing natively on i[3456]86-*-linux.
13881
13882         * testsuite/lib/checkoutput.exp (newlib_check_output): Output
13883         only one pass or fail per test file.  Trim \r's from output
13884         values received from test programs.  Remove support for named
13885         tests.
13886         * testsuite/newlib.locale/UTF-8.exp: Update to support new
13887         newlib_check_output behaviour.
13888         * testsuite/newlib.locale/UTF-8.c: Likewise.
13889
13890 2002-05-15  Jeff Johnston  <jjohnstn@redhat.com>
13891
13892         * libc/include/stdlib.h: Add on_exit prototype.
13893         * libc/include/sys/reent.h (struct _atexit): Add argument array
13894         and bits to track type of exit routine to support both on_exit
13895         and atexit.
13896         (_REENT_INIT_PTR): Add missing fields that won't be zeroed out
13897         by default and change the setting of the atexit structure.
13898         (_REENT_INIT)[!_REENT_SMALL]: Remove extraneous end brace.
13899         * libc/stdlib/on_exit.c: New file.
13900         * libc/stdlib/Makefile.am: Add support for on_exit.
13901         * libc/stdlib/Makefile.in: Regenerated.
13902         * libc/stdlib/atexit.c: Change to initialize types field.
13903         * libc/stdlib/exit.c: Change to look at types field for each
13904         exit routine and either call an atexit-style or an on_exit-style
13905         routine accordingly.
13906
13907 2002-05-13  Jeff Johnston  <jjohnstn@redhat.com>
13908
13909         * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Don't
13910         allow v specifier with n or L specifiers.  For vector c format,
13911         move tmp declaration to the top.
13912
13913 2002-05-13  Jeff Johnston  <jjohnstn@redhat.com>
13914
13915         * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Restore
13916         the original format specifier when looping for vectors to compensate
13917         for any changes made in vector %g format processing.
13918         Also add syntax checking for various invalid scenarios
13919         involving vector format extensions.
13920         * libc/machine/powerpc/vfscanf.c(__VFSCANF_R)[__ALTIVEC__]: Fix
13921         return code setting for vector formats.  Also treat vector
13922         separator mismatch as a match error instead of an input error.
13923         Perform some syntax checking for vector formats.
13924
13925 2002-05-10  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
13926
13927         * libc/include/string.h (!__STRICT_ANSI__): Add strlcat and strlcpy.
13928         * libc/string/Makefile.am: Add strlcat.c and strlcpy.c.
13929         * libc/string/strlcat.c: New file.
13930         * libc/string/strlcpy.c: New file.
13931
13932 2002-05-10  Jeff Johnston  <jjohnstn@redhat.com>
13933
13934         * libc/string/strchr.c: Fix comment typo.
13935
13936 2002-05-08  Thomas Fitzsimmons  <fitzsim@redhat.com>
13937
13938         * acinclude.m4: Add support for --enable-newlib-multithread.
13939         * configure.host (newlib_cflags): Add -D__SINGLE_THREAD__ if
13940         --enable-newlib-multithread=no.
13941
13942         * libc/stdio/getc_u.c: New file.
13943         * libc/stdio/getchar_u.c: New file.
13944         * libc/stdio/putc_u.c: New file.
13945         * libc/stdio/putchar_u.c: New file.
13946         * libc/include/stdio.h: Add declarations for getc_unlocked,
13947         getchar_unlocked, putc_unlocked and putchar_unlocked.
13948         * libc/stdio/Makefile.am (LIB_SOURCES): Add new files.
13949         (CHEWOUT_FILES): Add new files' .def's.
13950         * libc/stdio/putchar.c (_putchar_r): Replace __sputc with putc.
13951
13952 Wed May  8 17:47:35 2002  J"orn Rennecke <joern.rennecke@superh.com>
13953
13954         * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
13955         Also handle as single quad word when destination ends at last
13956         byte of first quad word.  Fix byte selection in single quad code.
13957
13958 2002-05-07  Thomas Fitzsimmons  <fitzsim@redhat.com>
13959
13960         * libc/include/sys/stdio.h: New file.
13961         * libc/sys/linux/sys/stdio.h: New file.
13962         * libc/include/stdio.h: Add declarations for flockfile,
13963         ftrylockfile, and funlockfile.  Include <sys/stdio.h>.
13964         * libc/stdio/clearerr.c: Add file locking.
13965         * libc/stdio/fclose.c: Likewise.
13966         * libc/stdio/feof.c: Likewise.
13967         * libc/stdio/ferror.c: Likewise.
13968         * libc/stdio/fflush.c: Likewise.
13969         * libc/stdio/fgetc.c: Likewise.
13970         * libc/stdio/fgetpos.c: Likewise.
13971         * libc/stdio/fgets.c: Likewise.
13972         * libc/stdio/fileno.c: Likewise.
13973         * libc/stdio/fputc.c: Likewise.
13974         * libc/stdio/fputs.c: Likewise.
13975         * libc/stdio/fread.c: Likewise.
13976         * libc/stdio/freopen.c: Likewise.
13977         * libc/stdio/fseek.c: Likewise.
13978         * libc/stdio/ftell.c: Likewise.
13979         * libc/stdio/fwrite.c: Likewise.
13980         * libc/stdio/getc.c: Likewise.
13981         * libc/stdio/putc.c: Likewise.
13982         * libc/stdio/setvbuf.c: Likewise.
13983         * libc/stdio/ungetc.c: Likewise.
13984         * libc/stdio/vfprintf.c: Likewise.
13985
13986 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
13987
13988         * libc/machine/powerpc/vfprintf.c[__ALTIVEC__]: Add vector
13989         support for 'p' format.  Fix code to print bytes for vector
13990         integer formats that do not specify 'h' or 'l'.
13991         * libc/machine/powerpc/vfscanf.c[__ALTIVEC__]: Add vector support
13992         for 'p' specifier.  Fix code to scan 16 bytes for vector integer
13993         formats that do not specify 'h' or 'l'.
13994
13995         * libc/include/stdlib.h (a64l, l64a, _l64a_r): Added prototypes.
13996
13997 2002-05-06  Nick Clifton  <nickc@cambridge.redhat.com>
13998
13999         * libc/sys/arm/syscalls.c (_rename): Add parameter names.
14000         (_sbrk): Add cast of return value.
14001
14002 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
14003
14004         *  libc/include/sys/reent.h (_l64a_buf): New reentrant area.
14005         (_REENT_L64A_BUF): New macro for accessing area.
14006         *  libc/stdlib/Makefile.am: Add a64l.c and l64a.c.
14007         *  libc/stdlib/Makefile.in: Regenerated.
14008         *  libc/stdlib/a64l.c: New file.
14009         *  libc/stdlib/l64a.c: New file.
14010
14011 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
14012
14013         * libc/unix/pread.c: Fix typo for _pread_r.
14014         * libc/unix/pwrite.c: Fix type for _pwrite_r.
14015         * libc/sys/linux/pread64.c: Fix typo for read syscall.
14016         * libc/sys/linux/pwrite64.c: Fix typo for write syscall.
14017
14018 2002-05-03  Christopher Faylor  <cgf@redhat.com>
14019
14020         * libc/include/sys/unistd.h: Define getdomainname under cygwin.
14021
14022 2002-05-03  Thomas Fitzsimmons  <fitzsim@redhat.com>
14023
14024         * configure.in (CC_FOR_NEWLIB): Change -isystem's to -I's.
14025
14026 2002-05-01  Christopher Faylor  <cgf@redhat.com>
14027
14028         * utmp.h: Define more UNIX constants.
14029
14030 2002-05-01  Thomas Fitzsimmons  <fitzsim@redhat.com>
14031
14032         * Makefile.am: Add support for checking multilibs.
14033
14034         * libc/Makefile.am (SUBLIBS): Add LIBC_EXTRA_LIB.
14035         (SUBDEFS): Add LIBC_EXTRA_DEF.
14036         * libc/configure.in (LIBC_EXTRA_LIB): New variable.
14037         (LIBC_EXTRA_DEF): Likewise.
14038         (extra_dir): Likewise.
14039         * libc/machine/xscale/machine: New directory.
14040         * libc/machine/xscale/machine/profile.h: New file.
14041
14042         * Makefile.am (site.exp): Remove newlib_cflags.  Add
14043         multibuildtop.
14044         * testsuite/newlib.locale/UTF-8.c: Change fprintf's to printf's.
14045         * testsuite/lib/flags.exp: New file.
14046         * testsuite/lib/newlib.exp: Load flags.exp.
14047         (newlib_target_compile): Remove libgloss directory references.
14048         (newlib_init): Remove newlib_cflags references.
14049
14050 2002-04-30  Thomas Fitzsimmons  <fitzsim@redhat.com>
14051
14052         * testsuite/lib/newlib.exp (newlib_target_compile): Change
14053         method of finding libgloss_target_dir.
14054
14055         * Makefile.am (site.exp): Change host_alias, host_triplet,
14056         target_alias, target_triplet to refer to gcc's host and target
14057         variables (newlib's build and host variables).
14058         * testsuite/lib/newlib.exp (newlib_init): Change build
14059         references to host references, host references to target
14060         references to reflect Makefile.am changes.
14061         (newlib_target_compile): Likewise.
14062         (newlib_finish): Likewise.
14063
14064 2002-04-29  Jeff Johnston  <jjohnstn@redhat.com>
14065
14066         * libc/sys/linux/io64.c (fstat64, lstat64): New syscalls added.
14067
14068 2002-04-29  Jonathan Larmour  <jlarmour@redhat.com>
14069
14070         * libc/sys/arm/syscalls.c (_rename): New function. Just a stub.
14071         (_system): New function. Ditto.
14072         * libc/stdlib/system.c (_system_r): Call _system if HAVE_SYSTEM.
14073         * configure.host: define HAVE_SYSTEM and HAVE_RENAME for xscale
14074         targets.
14075
14076 2002-04-29  Jeff Johnston  <jjohnstn@redhat.com>
14077
14078         *  libc/include/sys/unistd.h (pread, pwrite): Added prototypes.
14079         *  libc/unix/Makefile.am: Add pread.c and pwrite.c.
14080         *  libc/sys/linux/Makefile.am: Add pread64.c and pwrite64.c.
14081         *  libc/sys/linux/Makefile.in: Regenerated.
14082         *  libc/unix/Makefile.in: Ditto.
14083         *  libc/sys/linux/pread64.c: New file.
14084         *  libc/sys/linux/pwrite64.c: Ditto.
14085         *  libc/unix/pread.c: Ditto.
14086         *  libc/unix/pwrite.c: Ditto.
14087
14088 2002-04-26  Jeff Johnston  <jjohnstn@redhat.com>
14089
14090         *  libc/sys/linux/Makefile.am: Add io64.c.
14091         *  libc/sys/linux/Makefile.in: Regenerated.
14092         *  libc/sys/linux/io.c(mkfifo, fsync, fdatasync): Added syscalls.
14093         *  libc/sys/linux/signal.c (sigwaitinfo, sigtimedwait): Ditto.
14094         *  libc/sys/linux/io64.c: New file.
14095
14096 2002-04-26  Jeff Johnston  <jjohnstn@redhat.com>
14097
14098         * configure.in (CC_FOR_NEWLIB): New variable that
14099         bases on $(CC) and adds targ-include and libc/include as
14100         -isystem directives if they are not already part of $(CC).
14101         * Makefile.am (AM_MAKEFLAGS): Change setting of CC to equal
14102         $(CC_FOR_NEWLIB).
14103         * configure: Regenerated.
14104         * Makefile.in: Ditto.
14105
14106 2002-04-25  Jeff Johnston  <jjohnstn@redhat.com>
14107
14108         *  libc/sys/linux/Makefile.am: Add support for sched.c.
14109         *  libc/sys/linux/Makefile.in: Regenerated.
14110         *  libc/sys/linux/sched.c: New file.
14111         *  libc/sys/linux/sys/types.h: Add struct timespec.
14112
14113 2002-04-25  Thomas Fitzsimmons  <fitzsim@redhat.com>
14114
14115         * configure.in (CC_FOR_BUILD): Set to gcc whether
14116         cross-compiling or not.
14117         (CC): Add -isystem's for targ-include and libc/include when they
14118         do not already appear in CC.
14119
14120 2002-04-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
14121
14122         * Makefile.am (check-DEJAGNU): New target.
14123         (site.exp): Likewise.
14124         * acinclude.m4 (NEWLIB_CONFIGURE): Replace AC_CANONICAL_HOST
14125         with AC_CANONICAL_SYSTEM.  Remove AC_CANONICAL_BUILD.
14126         * libc/locale/locale.c (_setlocale_r): Add UTF-8 support.
14127         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Likewise.
14128         * libc/stdlib/wctomb_r.c (_wctomb_r): Likewise.
14129         * testsuite: New directory.
14130         * testsuite/config: Likewise.
14131         * testsuite/lib: Likewise.
14132         * testsuite/newlib.locale: Likewise.
14133         * testsuite/newlib.string: Likewise.
14134         * testsuite/config/default.exp: New file.
14135         * testsuite/lib/checkoutput.exp: New file.
14136         * testsuite/lib/newlib.exp: New file.
14137         * testsuite/lib/passfail.exp: New file.
14138         * testsuite/newlib.locale/UTF-8.c: New file.
14139         * testsuite/newlib.locale/UTF-8.exp: New file.
14140         * testsuite/newlib.locale/locale.exp: New file.
14141         * testsuite/newlib.string/string.exp: New file.
14142         * testsuite/newlib.string/tstring.c: New file.
14143
14144 2002-04-23  Jeff Johnston  <jjohnstn@redhat.com>
14145
14146         *  libc/include/machine/types.h (__pid_t, __off_t, __loff_t): Added.
14147         *  libc/sys/linux/Makefile.am: Add support for mmap.c.
14148         *  libc/sys/linux/Makefile.in: Regenerated.
14149         *  libc/sys/linux/mmap.c: New file.
14150         *  libc/sys/linux/machine/i386/syscall.h: Add _syscall6 macro.
14151         *  libc/sys/linux/sys/types.h (pid_t, off_t, loff_t): Added.
14152
14153 2002-04-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
14154
14155         * acinclude.m4 (newlib_cflags): Remove include directories that
14156         are already specified in the top-level configure.in's FLAGS_FOR_TARGET.
14157
14158 2002-04-19  Bill Siegmund  <ctc-dsl@pacbell.net>
14159
14160         * libc/machine/xscale/memchr.c: Don't use multi-line strings.
14161         * libc/machine/xscale/memcmp.c: Ditto.
14162         * libc/machine/xscale/memcpy.c: Ditto.
14163         * libc/machine/xscale/memmove.c: Ditto.
14164         * libc/machine/xscale/memset.c: Ditto.
14165         * libc/machine/xscale/strchr.c: Ditto.
14166         * libc/machine/xscale/strcmp.c: Ditto.
14167         * libc/machine/xscale/strcpy.c: Ditto.
14168         * libc/machine/xscale/strlen.c: Ditto.
14169
14170 2002-04-19  Alexandre Oliva  <aoliva@redhat.com>
14171
14172         * libc/include/sys/config.h: Remove include of <limits.h>.
14173         (__INT_MAX__, __LONG_MAX__): Define like GCC's limits.h would
14174         define INT_MAX and LONG_MAX.  Use them in tests.
14175
14176 2002-04-19  Jeff Johnston  <jjohnstn@redhat.com>
14177
14178         *  configure.host: Add support for powerpc-eabialtivec*.
14179         *  libc/include/malloc.h: Add include of <machine/malloc.h>.
14180         *  libc/include/stdlib.h: Add include of <machine/stdlib.h>.
14181         *  libc/include/machine/malloc.h: New file.
14182         *  libc/include/machine/stdlib.h: Ditto.
14183         *  libc/include/machine/setjmp.h: Add support for powerpc altivec.
14184         *  libc/machine/powerpc/Makefile.am: Add conditional objects and
14185         sources based on configuration.
14186         *  libc/machine/powerpc/Makefile.in: Regenerated.
14187         *  libc/machine/powerpc/configure: Ditto.
14188         *  libc/machine/powerpc/configure.in: Add check for
14189         powerpc-eabialtivec* in which case add in additional source files.
14190         *  libc/machine/powerpc/setjmp.S: Add altivec support.
14191         *  libc/machine/powerpc/vec_calloc.c: New file.
14192         *  libc/machine/powerpc/vec_free.c: Ditto.
14193         *  libc/machine/powerpc/vec_malloc.c: Ditto.
14194         *  libc/machine/powerpc/vec_mallocr.c: Ditto.
14195         *  libc/machine/powerpc/vec_realloc.c: Ditto.
14196         *  libc/machine/powerpc/machine/malloc.h: Ditto.
14197         *  libc/machine/powerpc/machine/stdlib.h: Ditto.
14198         *  libc/machine/powerpc/vfprintf.c: New file that is vfprintf.c
14199         with added altivec format specifiers.
14200         *  libc/machine/powerpc/vfscanf.c: New file that is vfscanf.c with
14201         added altivec format specifiers.
14202
14203 2002-04-19      Joel Sherrill <joel@OARcorp.com>
14204
14205         * libs/sys/rtems/crt0.c: Satisfy gcc's references to libc functions
14206         while autoconf is trying to link main(){}.
14207
14208 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
14209
14210         * libc/sys/linux/signal.c: Remove include of <bits/sigset.h>.
14211         * libc/sys/linux/sys/signal.h: Add include of <bits/sigset.h>.
14212
14213 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
14214
14215         * libc/time/time.tex: Add tzset info.
14216
14217 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
14218
14219         * libc/include/time.h (tzset, _tzset_r): Added prototypes.
14220         (strptime): Moved prototype to be within !__STRICT_ANSI__.
14221         (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
14222         (tzname): Defined for all platforms.
14223         (daylight, timezone): Defined only for CYGWIN.
14224         * libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
14225         environment set up.
14226         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
14227         environment variable is set.
14228         * libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
14229         tzset_r.c.
14230         * libc/time/Makefile.in: Regenerated.
14231         * libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
14232         * libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
14233         * libc/time/lcltime_r.c (lcltime_r): Ditto.
14234         * libc/time/local.h: New local header file.
14235         * libc/time/mktime.c (mktime): Add timezone support.
14236         * libc/time/mktm_r.c: New file which is the common engine
14237         for gmtime_r and lcltime_r.  This code has timezone support.
14238         * libc/time/strftime.c (strftime): Add %Z timezone support.
14239         * libc/time/tzlock.c: New file containing timezone lock stubs.
14240         * libc/time/tzset.c: New file containing tzset() routine.
14241         * libc/time/tzset_r.c: New file containing _tzset_r and
14242         internal routine for calculating timezone changes for specified year.
14243
14244 2002-04-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
14245
14246         * configure.in (CRT0_DIR): Set to libc/.
14247         (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
14248         * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
14249         $(CRT0_DIR)$(CRT0) to prevent make warnings.  Likewise for
14250         $(CRT1_DIR)/$(CRT1).
14251         * libc/machine/xstormy16/Makefile.in: Regenerated.
14252         * libc/machine/xstormy16/aclocal.m4: Regenerated.
14253         * libc/machine/xstormy16/configure: Regenerated.
14254
14255 2002-04-13  Alexandre Oliva  <aoliva@redhat.com>
14256
14257         * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
14258         fails, don't bail out, and try to correct next time.
14259
14260         * libc/include/sys/config.h: Include limits.h.
14261
14262 2002-04-12  Eric Norum  <eric.norum@usask.com>
14263
14264         * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
14265         routine to allow autoconf to determine that building executables
14266         for rtems works.
14267         (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
14268         (rtems_gxx_mutex_once): Ditto.
14269
14270 2002-04-09  Tom Rix  <trix@redhat.com>
14271
14272         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
14273
14274 2002-04-09  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
14275
14276         * libc/include/time.h: Fix strptime declaration.
14277         * libc/time/Makefile.am: Add strptime.c.
14278         * libc/time/Makefile.in: Regenerated.
14279         * libc/time/strptime.c: New file.
14280
14281 2002-04-08  Jeff Johnston  <jjohnstn@redhat.com>
14282
14283         * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
14284         siglongjmp prototype, and sigsetjmp macro definition.
14285         * libc/sys/linux/siglongjmp.c: New file.
14286         * libc/sys/linux/Makefile.am: Add support for siglongjmp.
14287         * libc/sys/linux/Makefile.in: Regenerated.
14288
14289 2002-04-04  Jeff Johnston  <jjohnstn@redhat.com>
14290
14291         * Makefile.am: Add support for installing crt1.o if one exists.
14292         * configure.host: Specify crt1.o for linux.
14293         * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
14294         * Makefile.in: Regenerated.
14295         * configure: Ditto.
14296         * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
14297         Added for non-Cygwin, non-RTEMS configurations.
14298         * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
14299         * libc/sys/linux/Makefile.in: Regenerated.
14300         * libc/sys/linux/crt1.c: New empty file to override one defaulted
14301         by gcc.  This fixes problem with reconfiguring linux newlib build.
14302         * libc/sys/linux/sysconf.c: New file.
14303
14304 2002-04-03  Jeff Johnston  <jjohnstn@redhat.com>
14305
14306         * configure.host: Add support for machine subdirectory of
14307         sys subdirectory.
14308         * configure.in: Add check for sys machine subdirectory.
14309         * Makefile.am: Ditto.
14310         * configure: Regenerated.
14311         * Makefile.in: Ditto.
14312         * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
14313         * libc/sys/linux/sys/syscall.h: Ditto.
14314         * libc/sys/linux/sleep.c: New file.
14315         * libc/sys/linux/socket.c: Ditto.
14316         * libc/sys/linux/sockops.h: Ditto.
14317         * libc/sys/linux/stack.c: Ditto.
14318         * libc/sys/linux/usleep.c: Ditto.
14319         * libc/sys/linux/machine/Makefile.am: Ditto.
14320         * libc/sys/linux/machine/Makefile.in: Ditto.
14321         * libc/sys/linux/machine/aclocal.m4: Ditto.
14322         * libc/sys/linux/machine/configure: Ditto.
14323         * libc/sys/linux/machine/configure.in: Ditto.
14324         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
14325         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
14326         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
14327         * libc/sys/linux/machine/i386/configure: Ditto.
14328         * libc/sys/linux/machine/i386/configure.in: Ditto.
14329         * libc/sys/linux/machine/i386/crt0.c: Ditto.
14330         * libc/sys/linux/machine/i386/sigset.c: Ditto.
14331         * libc/sys/linux/machine/i386/sigstack.h: Ditto.
14332         * libc/sys/linux/machine/i386/socketcall.h: Ditto.
14333         * libc/sys/linux/machine/i386/syscall.h: Ditto.
14334         * libc/sys/linux/sys/select.h: Ditto.
14335         * libc/sys/linux/configure.in: Add support for machine directory.
14336         * libc/sys/linux/Makefile.am: Ditto plus add new files above.
14337         * libc/sys/linux/Makefile.in: Regenerated.
14338         * libc/sys/linux/configure: Ditto.
14339         * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
14340         * libc/sys/linux/inode.c: Ditto.
14341         * libc/sys/linux/linux.c: Ditto.
14342         * libc/sys/linux/process.c: Ditto.
14343         * libc/sys/linux/systat.c: Ditto.
14344         * libc/sys/linux/time.c: Ditto.
14345         * libc/sys/linux/wait.c: Ditto.
14346         * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
14347         * libc/sys/linux/io.c: Change header plus add readv/writev.
14348         * libc/sys/linux/signal.c: Change header plus change sigsuspend to
14349         use __sigsuspend syscall.
14350         * libc/sys/linux/select.c: Change header plus change select to
14351         use _newselect syscall.
14352         * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
14353         used by glibc header files.
14354         * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
14355         types.
14356
14357 2002-04-01  Jeff Johnston  <jjohnstn@redhat.com>
14358
14359         * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
14360         initializing a struct _reent that has been dynamically allocated.
14361         (_REENT_CHECK_MISC): New macro that checks _misc struct for
14362         _REENT_SMALL and does nothing otherwise.
14363         (_REENT_STRTOK_LAST): New macro for reentrant strtok.
14364         (_REENT_MBLEN_STATE): New macro for reentrant mblen.
14365         (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
14366         (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
14367         [_REENT_SMALL](struct _misc_reent): New structure containing
14368         miscellaneous reentrant areas needed by newlib.
14369         [_REENT_SMALL](struct _reent): Add _misc pointer.
14370         [_REENT_SMALL](_REENT_INIT_MISC): New macro.
14371         * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
14372         and _REENT_STRTOK_LAST macros.
14373         * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
14374         and _REENT_MBLEN_STATE macros.
14375         * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
14376         and _REENT_MBTOWC_STATE macros.
14377         * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
14378         and _REENT_WCTOMB_STATE macros.
14379
14380 2002-04-01  Till Straumann <strauman@SLAC.Stanford.EDU>
14381
14382         * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
14383
14384 Wed Mar 27 07:34:44 2002  Jason Tishler <jason@tishler.net>
14385
14386         * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
14387
14388 Tue Mar 26 17:17:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
14389
14390         * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
14391         Store high part of leading bytes too.
14392
14393 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
14394
14395         * libm/math/ef_hypot.c: Increase scale factor to 68.
14396
14397 2002-03-13  Alexandre Oliva  <aoliva@redhat.com>
14398
14399         * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
14400         error.
14401
14402 2002-03-12  Jeff Johnston  <jjohnstn@redhat.com>
14403
14404         * libc/sys/go32/access.c: Change license to relaxed license
14405         used in identical file throughout newlib/libgloss.
14406
14407 2002-03-12  Richard Earnshaw  <rearnsha@arm.com>
14408
14409         * libc/sys/arm/access.c: New file.
14410         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
14411         * libc/sys/arm/Makefile.in: Regenerate.
14412         * libc/sys/arm/syscalls.c (_stat): New function.
14413
14414 2002-03-11  Michael Meissner  <meissner@redhat.com>
14415
14416         * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
14417         variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
14418         * libc/machine/mips/Makefile.in: Regenerate.
14419         * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
14420         * libc/machine/mips/memset.c: Dito.
14421         * libc/machine/mips/strcmp.c: Dito.
14422         * libc/machine/mips/strlen.c: Dito.
14423         * libc/machine/mips/strncmp.c: Dito.
14424
14425 2002-03-06  Jeff Johnston  <jjohnstn@redhat.com>
14426
14427         * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
14428         object so it works for shared library or statici library.
14429 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
14430
14431         *  libc/include/time.h (tzset, _tzset_r): Added prototypes.
14432         (strptime): Moved prototype to be within !__STRICT_ANSI__.
14433         (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
14434         (tzname): Defined for all platforms.
14435         (daylight, timezone): Defined only for CYGWIN.
14436         *  libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
14437         environment set up.
14438         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
14439         environment variable is set.
14440         *  libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
14441         tzset_r.c.
14442         *  libc/time/Makefile.in: Regenerated.
14443         *  libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
14444         *  libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
14445         *  libc/time/lcltime_r.c (lcltime_r): Ditto.
14446         *  libc/time/local.h: New local header file.
14447         *  libc/time/mktime.c (mktime): Add timezone support.
14448         *  libc/time/mktm_r.c: New file which is the common engine
14449         for gmtime_r and lcltime_r.  This code has timezone support.
14450         *  libc/time/strftime.c (strftime): Add %Z timezone support.
14451         *  libc/time/tzlock.c: New file containing timezone lock stubs.
14452         *  libc/time/tzset.c: New file containing tzset() routine.
14453         *  libc/time/tzset_r.c: New file containing _tzset_r and
14454         internal routine for calculating timezone changes for specified year.
14455
14456 2002-04-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
14457
14458         * configure.in (CRT0_DIR): Set to libc/.
14459         (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
14460         * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
14461         $(CRT0_DIR)$(CRT0) to prevent make warnings.  Likewise for
14462         $(CRT1_DIR)/$(CRT1).
14463         * libc/machine/xstormy16/Makefile.in: Regenerated.
14464         * libc/machine/xstormy16/aclocal.m4: Regenerated.
14465         * libc/machine/xstormy16/configure: Regenerated.
14466
14467 2002-04-13  Alexandre Oliva  <aoliva@redhat.com>
14468
14469         * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
14470         fails, don't bail out, and try to correct next time.
14471
14472         * libc/include/sys/config.h: Include limits.h.
14473
14474 2002-04-12  Eric Norum  <eric.norum@usask.com>
14475
14476         * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
14477         routine to allow autoconf to determine that building executables
14478         for rtems works.
14479         (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
14480         (rtems_gxx_mutex_once): Ditto.
14481
14482 2002-04-09  Tom Rix  <trix@redhat.com>
14483
14484         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
14485
14486 2002-04-09  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
14487
14488         * libc/include/time.h: Fix strptime declaration.
14489         * libc/time/Makefile.am: Add strptime.c.
14490         * libc/time/Makefile.in: Regenerated.
14491         * libc/time/strptime.c: New file.
14492
14493 2002-04-08  Jeff Johnston  <jjohnstn@redhat.com>
14494
14495         * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
14496         siglongjmp prototype, and sigsetjmp macro definition.
14497         * libc/sys/linux/siglongjmp.c: New file.
14498         * libc/sys/linux/Makefile.am: Add support for siglongjmp.
14499         * libc/sys/linux/Makefile.in: Regenerated.
14500
14501 2002-04-04  Jeff Johnston  <jjohnstn@redhat.com>
14502
14503         * Makefile.am: Add support for installing crt1.o if one exists.
14504         * configure.host: Specify crt1.o for linux.
14505         * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
14506         * Makefile.in: Regenerated.
14507         * configure: Ditto.
14508         * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
14509         Added for non-Cygwin, non-RTEMS configurations.
14510         * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
14511         * libc/sys/linux/Makefile.in: Regenerated.
14512         * libc/sys/linux/crt1.c: New empty file to override one defaulted
14513         by gcc.  This fixes problem with reconfiguring linux newlib build.
14514         * libc/sys/linux/sysconf.c: New file.
14515
14516 2002-04-03  Jeff Johnston  <jjohnstn@redhat.com>
14517
14518         * configure.host: Add support for machine subdirectory of
14519         sys subdirectory.
14520         * configure.in: Add check for sys machine subdirectory.
14521         * Makefile.am: Ditto.
14522         * configure: Regenerated.
14523         * Makefile.in: Ditto.
14524         * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
14525         * libc/sys/linux/sys/syscall.h: Ditto.
14526         * libc/sys/linux/sleep.c: New file.
14527         * libc/sys/linux/socket.c: Ditto.
14528         * libc/sys/linux/sockops.h: Ditto.
14529         * libc/sys/linux/stack.c: Ditto.
14530         * libc/sys/linux/usleep.c: Ditto.
14531         * libc/sys/linux/machine/Makefile.am: Ditto.
14532         * libc/sys/linux/machine/Makefile.in: Ditto.
14533         * libc/sys/linux/machine/aclocal.m4: Ditto.
14534         * libc/sys/linux/machine/configure: Ditto.
14535         * libc/sys/linux/machine/configure.in: Ditto.
14536         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
14537         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
14538         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
14539         * libc/sys/linux/machine/i386/configure: Ditto.
14540         * libc/sys/linux/machine/i386/configure.in: Ditto.
14541         * libc/sys/linux/machine/i386/crt0.c: Ditto.
14542         * libc/sys/linux/machine/i386/sigset.c: Ditto.
14543         * libc/sys/linux/machine/i386/sigstack.h: Ditto.
14544         * libc/sys/linux/machine/i386/socketcall.h: Ditto.
14545         * libc/sys/linux/machine/i386/syscall.h: Ditto.
14546         * libc/sys/linux/sys/select.h: Ditto.
14547         * libc/sys/linux/configure.in: Add support for machine directory.
14548         * libc/sys/linux/Makefile.am: Ditto plus add new files above.
14549         * libc/sys/linux/Makefile.in: Regenerated.
14550         * libc/sys/linux/configure: Ditto.
14551         * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
14552         * libc/sys/linux/inode.c: Ditto.
14553         * libc/sys/linux/linux.c: Ditto.
14554         * libc/sys/linux/process.c: Ditto.
14555         * libc/sys/linux/systat.c: Ditto.
14556         * libc/sys/linux/time.c: Ditto.
14557         * libc/sys/linux/wait.c: Ditto.
14558         * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
14559         * libc/sys/linux/io.c: Change header plus add readv/writev.
14560         * libc/sys/linux/signal.c: Change header plus change sigsuspend to
14561         use __sigsuspend syscall.
14562         * libc/sys/linux/select.c: Change header plus change select to
14563         use _newselect syscall.
14564         * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
14565         used by glibc header files.
14566         * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
14567         types.
14568
14569 2002-04-01  Jeff Johnston  <jjohnstn@redhat.com>
14570
14571         * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
14572         initializing a struct _reent that has been dynamically allocated.
14573         (_REENT_CHECK_MISC): New macro that checks _misc struct for
14574         _REENT_SMALL and does nothing otherwise.
14575         (_REENT_STRTOK_LAST): New macro for reentrant strtok.
14576         (_REENT_MBLEN_STATE): New macro for reentrant mblen.
14577         (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
14578         (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
14579         [_REENT_SMALL](struct _misc_reent): New structure containing
14580         miscellaneous reentrant areas needed by newlib.
14581         [_REENT_SMALL](struct _reent): Add _misc pointer.
14582         [_REENT_SMALL](_REENT_INIT_MISC): New macro.
14583         * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
14584         and _REENT_STRTOK_LAST macros.
14585         * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
14586         and _REENT_MBLEN_STATE macros.
14587         * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
14588         and _REENT_MBTOWC_STATE macros.
14589         * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
14590         and _REENT_WCTOMB_STATE macros.
14591
14592 2002-04-01  Till Straumann <strauman@SLAC.Stanford.EDU>
14593
14594         * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
14595
14596 Wed Mar 27 07:34:44 2002  Jason Tishler <jason@tishler.net>
14597
14598         * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
14599
14600 Tue Mar 26 17:17:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
14601
14602         * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
14603         Store high part of leading bytes too.
14604
14605 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
14606
14607         * libm/math/ef_hypot.c: Increase scale factor to 68.
14608
14609 2002-03-13  Alexandre Oliva  <aoliva@redhat.com>
14610
14611         * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
14612         error.
14613
14614 2002-03-12  Jeff Johnston  <jjohnstn@redhat.com>
14615
14616         * libc/sys/go32/access.c: Change license to relaxed license
14617         used in identical file throughout newlib/libgloss.
14618
14619 2002-03-12  Richard Earnshaw  <rearnsha@arm.com>
14620
14621         * libc/sys/arm/access.c: New file.
14622         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
14623         * libc/sys/arm/Makefile.in: Regenerate.
14624         * libc/sys/arm/syscalls.c (_stat): New function.
14625
14626 2002-03-11  Michael Meissner  <meissner@redhat.com>
14627
14628         * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
14629         variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
14630         * libc/machine/mips/Makefile.in: Regenerate.
14631         * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
14632         * libc/machine/mips/memset.c: Dito.
14633         * libc/machine/mips/strcmp.c: Dito.
14634         * libc/machine/mips/strlen.c: Dito.
14635         * libc/machine/mips/strncmp.c: Dito.
14636
14637 2002-03-06  Jeff Johnston  <jjohnstn@redhat.com>
14638
14639         * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
14640         object so it works for shared library or statici library.
14641         * libc/machine/i386/Makefile.in: Regenerated.
14642
14643 Wed Mar  6 10:24:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
14644
14645         * libc/machine/sh/Makefile.am (lib_a_SOURCES, SH64 case):
14646         Add memcpy.S, memset.S and strcpy.S.
14647         * libc/machine/sh/Makefile.in: Regenerate.
14648         * libc/machine/sh/asm.h (_ENTRY): Set SH5 alignment to 8 bytes.
14649         (SHHI, SHLO): Define.
14650         * libc/machine/sh/memset.S: Add code for SH5.
14651         * libc/machine/sh/memset.S: Likewise.
14652         * libc/machine/sh/strcpy.S: Likewise.
14653
14654 2002-02-27  Jeff Johnston  <jjohnstn@redhat.com>
14655
14656         * configure.host: Add check for --disable-newlib-io-float
14657         configuration option and add -DNO_FLOATING_POINT to newlib cflags
14658         if appropriate.
14659         * acinclude.m4: Added --disable-newlib-io-float option.
14660         * aclocal.m4: Regenerated.
14661         * configure: Ditto.
14662         * doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
14663         * libc/*/aclocal.m4 libc/*/configure
14664         * libm/*/aclocal.m4 libm/*/configure: Ditto.
14665         * libc/stdio/vfprintf.c [!INTEGER_ONLY]: Only set FLOATING_POINT
14666         if NO_FLOATING_POINT flag is not defined.
14667
14668 2002-02-25  Jeff Johnston  <jjohnstn@redhat.com>
14669
14670         * libc/include/sys/config.h: Add __extension__ in front of
14671         long long references.
14672
14673 2002-02-23  Corinna Vinschen  <corinna@vinschen.de>
14674
14675         * libc/include/sys/stat.h (_fstat): Don't declare when compiling Cygwin.
14676         (_stat): Ditto.
14677
14678 2002-02-23  Corinna Vinschen  <corinna@vinschen.de>
14679
14680         * libc/sys/cygwin/sys/dirent.h (struct __DIR): Use __off32_t instead
14681         of off_t.
14682
14683 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
14684
14685         * libc/machine/xscale/strchr.c (strchr): Add 'r1' to the list of
14686         clobbered registers.
14687
14688 2002-02-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
14689
14690         * configure.host (newlib_cflags): When host is in m68* add
14691         -DCOMPACT_CTYPE.
14692
14693 2002-02-15  Jeff Johnston  <jjohnstn@redhat.com>
14694
14695         * libc/include/sys/config.h: Add definitions for
14696         __int16_t, __uint16_t, __int64_t, and __uint64_t.
14697
14698 2002-02-12  Hans-Peter Nilsson  <hp@bitrange.com>
14699
14700         * libc/sys/mmixware/link.c: New.
14701         * libc/sys/mmixware/sys/syscall.h (TRAP1i, I3f): Make asm
14702         volatile.
14703         * libc/sys/mmixware/times.c (_times): Renamed from times.
14704         * libc/sys/mmixware/open.c (_open): Attempt to handle O_APPEND
14705         properly by reading previous contents, not through BinaryReadWrite.
14706         * libc/sys/mmixware/Makefile.am (lib_a_SOURCES): Add link.c
14707         * libc/sys/mmixware/Makefile.in: Regenerate.
14708
14709 2002-02-10  Corinna Vinschen  <corinna@vinschen.de>
14710
14711         * libc/include/grp.h: Don't declare group functions when compiling
14712         Cygwin.
14713
14714 2002-02-09  Corinna Vinschen  <corinna@vinschen.de>
14715
14716         * libc/include/grp.h: Include Cygwin specific header.
14717         * libc/include/sys/stat.h: Ditto.  Don't define `struct stat'
14718         when compiling for Cygwin.
14719         * libc/include/sys/types.h: Don't define off_t, uid_t
14720         and gid_t when compiling for Cygwin.
14721
14722 2002-02-08  matthew green  <mrg@redhat.com>
14723
14724         * libc/include/sys/reent.h (_REENT_CHECK_EMERGENCY): Allocate
14725         _REENT_EMERGENCY_SIZE, not sizeof(char *).
14726
14727 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
14728
14729         Contribute sh64-elf.
14730         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
14731         * configure.host (newlib_cflags) [sh*-*-*]: Enable long long
14732         support in printf.
14733         2001-01-29  Alexandre Oliva  <aoliva@redhat.com>
14734         * libc/machine/sh/setjmp.S [SH5]: Switch to SHmedia mode before
14735         any labels.
14736         2001-01-24  Alexandre Oliva  <aoliva@redhat.com>
14737         * libc/sys/sh/trap.S (___trap34) [SH5]: Don't trash r2.
14738         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
14739         * libc/machine/sh/configure.in: Rework conditionals.
14740         * libc/machine/sh/Makefile.am: Likewise.
14741         * libc/machine/sh/configure, libc/machine/sh/Makefile.in: Rebuilt.
14742         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
14743         * configure.host: Match `sh*'.
14744         * libc/include/machine/setjmp.h: Define for SH5.
14745         * libc/machine/sh/configure.in: Detect SH5.
14746         * libc/machine/sh/configure: Rebuilt.
14747         * libc/machine/sh/Makefile.am: Use only setjmp.S for SH5.
14748         * libc/machine/sh/Makefile.in: Rebuilt.
14749         * libc/machine/sh/asm.h: Adjust for SH5.
14750         * libc/machine/sh/setjmp.S: Implement in SHmedia.
14751         * libc/sys/sh/crt0.S: Likewise.
14752         * libc/sys/sh/trap.S: Likewise.
14753
14754 2002-02-07  Jeff Johnston  <jjohnstn@redhat.com>
14755
14756         * libc/machine/i386/Makefile.am: (mach_add_src): Remove.
14757         (mach_add_obj): Conditionally set to setjmp.o or nothing.
14758         (LIB_SOURCES): Remove $(mach_add_src).
14759         (lib_a_LIBADD, lib_a_DEPENDENCIES): Add and set to $(mach_add_src).
14760         (lib_la_LIBADD, lib_la_DEPENDENCIES): Ditto.
14761         * libc/machine/i386/Makefile.in: Regenerate.
14762
14763 2002-02-05  Manik Raina <manik@cisco.com>
14764
14765         * libc/misc/dprintf.c (parse_number): #if 0 unused function.
14766         * libc/stdlib/ldtoa.c (_ldcheck): Remove unused local variables
14767         s, p, k, and outstr.
14768         * libc/stdlib/dtoa.c (_dtoa_r): Initialize mlo.
14769
14770 2002-02-04  Jeff Johnston  <jjohnstn@redhat.com>
14771
14772         * libc/include/sys/reent.h [(!_REENT_SMALL]: Add
14773         _REENT_CHECK_EMERGENCY macro.
14774
14775 2002-02-03  matthew green  <mrg@redhat.com>
14776
14777         * libc/reent/signgam.c (__signgam): Fix error in previous.
14778
14779 2002-02-02  matthew green  <mrg@redhat.com>
14780
14781         * libc/include/sys/config.h (_REENT_SMALL): Define for Xstormy16.
14782
14783         * libc/reent/reent.c (_reclaim_reent): Clean for _REENT_SMALL case.
14784         * libc/reent/reent.tex: Add blurb about _REENT_SMALL.
14785         * libc/include/sys/reent.h (struct _reent): Completely new version
14786         for _REENT_SMALL.
14787         (_REENT_INIT): New defines, different defintion depending on _REENT_SMALL.
14788         (_REENT_CHECK, _REENT_CHECK_TM): Likewise.
14789         (_REENT_CHECK_ASCTIME_BUF, _REENT_INIT_RAND48): Likewise.
14790         (_REENT_CHECK_RAND48, _REENT_INIT_MP, _REENT_CHECK_MP): Likewise.
14791         (_REENT_CHECK_EMERGENCY, _REENT_SIGNGAM, _REENT_RAND_NEXT): Likewise.
14792         (_REENT_RAND48_SEED, _REENT_RAND48_MULT, _REENT_RAND48_ADD): Likewise.
14793         (_REENT_MP_RESULT, _REENT_MP_RESULT_K, _REENT_MP_P5S): Likewise.
14794         (_REENT_MP_FREELIST, _REENT_ASCTIME_BUF, _REENT_TM): Likewise.
14795         (_REENT_EMERGENCY): Likewise.
14796
14797         * libc/include/sys/reent.h (struct __sFILE_fake): New struct, same as
14798         the start of the real __sFILE, used for stdin, stdout and stderr until
14799         they are setup properly.
14800         (struct __sFILE): Move location of _data in _REENT_SMALL case.
14801         * libc/stdio/findfp.c (__sinit): Rearrange for _REENT_SMALL case by
14802         allocated stdin, stdout and stderr.
14803         * libc/stdio/getchar.c (_getchar_r): Call _REENT_SMALL_CHECK_INIT().
14804         * libc/stdio/iprintf.c (iprintf, _iprintf_r): Likewise.
14805         * libc/stdio/perror.c (_perror_r): Likewise.
14806         * libc/stdio/printf.c (printf, _printf_r): Likewise.
14807         * libc/stdio/putchar.c (_putchar_r): Likewise.
14808         * libc/stdio/puts.c (_puts_r): Likewise.
14809         * libc/stdio/scanf.c (scanf, _scanf_r): Likewise.
14810         * libc/stdio/vprintf.c (vprintf): Likewise.
14811         * libc/stdio/vscanf.c (vscanf, _vscanf_r): Likewise.
14812
14813         * libc/stdio/tmpnam.c (_tmpnam_r): Use _REENT_EMERGENCY().
14814
14815         * libc/reent/reent.c (_wrapup_reent): Adjust for _REENT_SMALL atexit.
14816         * libc/include/sys/reent.h (_atexit): Limit atexit() entries to 32
14817         for _REENT_SMALL.
14818         * libc/stdlib/atexit.c (atexit): Rearrange for _REENT_SMALL case.
14819         * libc/stdlib/exit.c (exit): Rearrange for _REENT_SMALL case.
14820
14821         * libc/include/sys/reent.h (struct _rand48): Keep _rand_next if
14822         _REENT_SMALL.
14823         * libc/stdlib/drand48.c (_drand48_r): Call _REENT_CHECK_RAND48().
14824         * libc/stdlib/lcong48.c (_lcong48_r): Likewise.
14825         * libc/stdlib/lrand48.c (_lrand48_r): Likewise.
14826         * libc/stdlib/mrand48.c (_mrand48_r): Likewise.
14827         * libc/stdlib/rand48.c (__dorand48): Likewise.
14828         * libc/stdlib/seed48.c (_seed48_r): Likewise.
14829         * libc/stdlib/srand48.c (_srand48_r): Likewise.
14830         * libc/stdlib/rand48.h (__rand48_seed, __rand48_mult, __rand48_add): Define
14831         as _REENT_RAND48_SEED(), _REENT_RAND48_MULT() and _REENT_RAND48_ADD().
14832         * libc/stdlib/dtoa.c (_dtoa_r): Call _REENT_CHECK_MP().  Use
14833         _REENT_MP_RESULT() and _REENT_MP_RESULT_K().
14834         * libc/stdlib/ldtoa.c (_ldtoa_r): Likewise.
14835         * libc/stdlib/rand.c (srand): Use _REENT_RAND_NEXT().
14836         * libc/stdlib/rand.c (rand): Likewise.
14837
14838         * libc/stdlib/mallocr.c (malloc_stats): Call _REENT_SMALL_CHECK_INIT().
14839         * libc/stdlib/mstats.c (_mstats_r): Call _REENT_SMALL_CHECK_INIT().
14840
14841         * libc/stdlib/mprec.c (Balloc): Call _REENT_CHECK_MP.  Use
14842         _REENT_MP_FREELIST() and _REENT_MP_P5S.
14843         * libc/include/sys/reent.h (struct _mprec): New structure.
14844
14845         * libc/include/sys/reent.h (struct _reent): Rename _strtok_last to
14846         _unused_strtok_last.
14847         * libc/string/strtok.c (strtok): Use a local static variable.
14848
14849         * libc/include/sys/reent.h (_REENT_ASCTIME_SIZE): New define.
14850         (_REENT_EMERGENCY_SIZE): Likewise.
14851         * libc/time/asctime.c (asctime): Call _REENT_CHECK_ASCTIME_BUF().  Use
14852         _REENT_ASCTIME_BUF().
14853         * libc/time/lcltime.c (localtime): Call _REENT_CHECK_TM().  Use
14854         _REENT_TM().
14855
14856         * libc/include/math.h (__singam_r): Use _REENT_SIGNGAM().
14857         * libc/reent/signgam.c (__signgam): Use _REENT_SIGNGAM().
14858         * libm/math/w_gamma.c (gamma): Use _REENT_SIGNGAM().
14859         * libm/math/w_lgamma.c (lgamma): Use _REENT_SIGNGAM().
14860         * libm/math/wf_gamma.c (gammaf): Use _REENT_SIGNGAM().
14861         * libm/math/wf_lgamma.c (lgammaf): Use _REENT_SIGNGAM().
14862
14863 2002-02-01  Geoffrey Keating  <geoffk@redhat.com>
14864
14865         * configure.host (xstormy16): Don't use the generic malloc.
14866         * libc/machine/xstormy16/Makefile.am: Build tiny-malloc.
14867         * libc/machine/xstormy16/Makefile.in: Regenerate.
14868         * libc/machine/xstormy16/mallocr.c: New file.
14869         * libc/machine/xstormy16/tiny-malloc.c: New file.
14870
14871 2002-01-28  Thomas Fitzsimmons  <fitzsim@redhat.com>
14872
14873         * libc/include/sys/signal.h [__CYGWIN__]: Issue error message
14874         when _CYGWIN_TYPES_H is not defined.
14875
14876 2002-01-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
14877
14878         * libc/include/sys/signal.h: Revert 2002-01-23 change.
14879
14880 2002-01-23  Thomas Fitzsimmons  <fitzsim@redhat.com>
14881
14882         * libc/include/sys/signal.h: Remove pthread_kill declaration
14883         when __CYGWIN__ is defined.
14884
14885 2002-01-18  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
14886
14887         * libc/include/time.h: Add prototype for strptime for Cygwin.
14888
14889 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
14890
14891         * libc/machine/xscale/memset.c (memset): Fix bug when len == 1 and
14892         dst was not word aligned.
14893
14894         * libc/sys/arm/syscalls.c (_sbrk): Return -1 rather than aborting
14895         if too much memory is requested.
14896
14897 2002-01-11 Jeff Johnston  <jjohnstn@redhat.com>
14898
14899         * libc/stdio/vfscanf.c (__svfscanf_r): Change loop that
14900         reads blanks from the input file to break if EOF reached
14901         rather than end processing.
14902
14903 2002-01-07 Jeff Johnston  <jjohnstn@redhat.com>
14904
14905         * MAINTAINERS: Change e-mail addresses to refer to redhat domain.
14906
14907 2002-01-07 Alan Matsuoka <alanm@redhat.com>
14908
14909         * libc/include/machine/ieeefp.h: Configure d10v doubles to
14910         be 32 bits if __DOUBLE__ == 32  otherwise doubles are 64 bits.
14911         libc/include/sys/config.h: Ditto.
14912
14913 2001-12-28  Corinna Vinschen  <corinna@vinschen.de>
14914
14915         * libc/sys/cygwin/sys/utmp.h: Add definition of UTMP_FILE.
14916
14917 2001-12-22  Geoffrey Keating  <geoffk@redhat.com>
14918             Catherine Moore  <clm@redhat.com>
14919             Richard Henderson  <rth@redhat.com>
14920             Corinna Vinschen  <vinschen@redhat.com>
14921
14922         * configure.host: Add support for xstormy16.
14923         * libc/include/machine/ieeefp.h: Add support for xstormy16.
14924         * libc/include/machine/setjmp.h: Add support for xstormy16.
14925         * libc/include/sys/config.h: Add support for xstormy16.
14926         * libc/machine/xstormy16/Makefile.am: New file.
14927         * libc/machine/xstormy16/Makefile.in: New file.
14928         * libc/machine/xstormy16/aclocal.m4: New file.
14929         * libc/machine/xstormy16/configure: New file.
14930         * libc/machine/xstormy16/configure.in: New file.
14931         * libc/machine/xstormy16/setjmp.S: New file.
14932
14933 2001-12-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
14934
14935         * libm/machine/configure.in (HAVE_LIBM_MACHINE_DIR): New conditional.
14936         * libm/machine/Makefile.am [HAVE_LIBM_MACHINE_DIR] (LIBM_MACHLIB): New variable.
14937
14938 2001-12-19  Corinna Vinschen  <corinna@vinschen.de>
14939
14940         * libm/machine/Makefile.am: Change rules to create correct lib.a.
14941         * libm/machine/Makefile.in: Regenerated through automake.
14942
14943 2001-12-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
14944
14945         * Makefile.am (DOCDIR): Force to empty string when doc
14946         directory is not present.
14947
14948 2001-12-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
14949
14950         * libc/machine/i386/f_*: Move to libm/machine/i386.
14951
14952 2001-12-18      Joel Sherrill <joel@OARcorp.com>
14953
14954         * libm/machine/Makefile.am: Add dummy doc stub so
14955         "make info" works.
14956
14957 2001-12-17      Joel Sherrill <joel@OARcorp.com>
14958
14959         * libc/include/sys/types.h (ino_t): RTEMS uses long also.
14960
14961 2001-12-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
14962
14963         * libc/stdlib/Makefile.am (LIB_COMPILE): Change to equal
14964         $(COMPILE) rather than $(CC).
14965         * libc/stdio/Makefile.am (LIB_COMPILE): Likewise.
14966         (vfprintf.$(oext)): Remove $(INCLUDES), made redundant by
14967         $(LIB_COMPILE) change.
14968         (vfiprintf.$(oext)): Likewise.
14969
14970 2001-12-17  Corinna Vinschen  <vinschen@redhat.de>
14971
14972         * libc/sys/cygwin/include/unistd.h: Add __UNISTD_GETOPT_ to allow
14973         conditionalized including of getopt stuff.
14974
14975 2001-12-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
14976
14977         * libc/stdio/Makefile.am (vfprintf.$(oext)): Add $(INCLUDES) to
14978         compile line.
14979         (vfiprintf.$(oext)): Likewise.
14980
14981 2001-12-13  Thomas Fitzsimmons  <fitzsim@redhat.com>
14982
14983         * Makefile.shared: New file.
14984         * libc/sys/linux/shared.ld: New file.
14985         * libm/machine/*: New files.
14986         * libm/machine/i386/*: New files.
14987         * Makefile.am: Add libtool support.  Change math and mathfp
14988         references to variables.
14989         * configure.host: Add variables for libtool support.  Add
14990         libm_machine_dir variable.
14991         * configure.in: Add objectlist variables, for libtool
14992         support.  Add CC_FOR_BUILD tests.
14993         * libc/Makefile.am: Add libtool support.  Change crt0.o
14994         reference to be a variable reference.
14995         * libc/configure.in: Add libtool support.  Change sublib
14996         names to be lib${subdir}.la when using libtool.
14997         * libc/ctype/Makefile.am: Add libtool support.
14998         * libc/errno/Makefile.am: Likewise.
14999         * libc/locale/Makefile.am: Likewise.
15000         * libc/machine/Makefile.am: Likewise.
15001         * libc/machine/configure.in: Likewise.
15002         * libc/machine/i386/Makefile.am: Likewise.
15003         * libc/machine/i386/configure.in: Likewise.
15004         * libc/misc/Makefile.am: Likewise.
15005         * libc/posix/Makefile.am: Likewise.
15006         * libc/reent/Makefile.am: Likewise.
15007         * libc/signal/Makefile.am: Likewise.
15008         * libc/stdio/Makefile.am: Likewise.
15009         * libc/stdlib/Makefile.am: Likewise.
15010         * libc/string/Makefile.am: Likewise.
15011         * libc/sys/Makefile.am: Likewise.
15012         * libc/sys/configure.in: Likewise.
15013         * libc/sys/linux/Makefile.am: Add libtool support.  Change
15014         awk reference to a variable reference.  Change signal.h
15015         reference to a variable reference.
15016         * libc/sys/linux/configure.in: Add libtool support.
15017         * libc/syscalls/Makefile.am: Likewise.
15018         * libc/time/Makefile.am: Likewise.
15019         * libc/unix/Makefile.am: Likewise.
15020         * libm/Makefile.am: Add libtool support.  Change math and
15021         mathfp references to variables.
15022         * libm/configure.in: Add libtool support.  Add
15023         LIBM_MACHINE_LIB variable.
15024         * libm/common/Makefile.am: Add libtool support.
15025         * libm/math/Makefile.am: Likewise.
15026         * libm/mathfp/Makefile.am: Likewise.
15027         Regenerate all Makefile.in, aclocal.m4, and configure.
15028
15029 2001-12-13 Anita Kulkarni <anitak@kpit.com>
15030
15031         * libc/sys/sh/crt0.S: Remove stack symbol definition 0xdeaddead.
15032
15033 2001-12-06  John Peacock <jpeacock@rowman.com>
15034
15035         * libc/include/sys/unistd.h: Correct ualarm declaration.
15036
15037 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
15038
15039         * libc/sys/arm/crt0.S: For __USES_INITFINI__ preserve the argument
15040         vector before calling the initialisation functions.
15041
15042 2001-11-29  Christopher Faylor  <cgf@redhat.com>
15043
15044         * libc/include/dirent.h: Protect against multiple inclusion.
15045
15046 2001-11-27  Christopher Faylor  <cgf@redhat.com>
15047
15048         * libc/include/sys/types.h: Define useconds_t.
15049         * libc/include/sys/ulimit.h: Declare ualarm.
15050
15051 2001-11-21  Christopher Faylor  <cgf@redhat.com>
15052
15053         * libc/sys/cygwin/sys/dirent.h (DIR): Add another internal element.
15054
15055 2001-11-19  Hans-Peter Nilsson  <hp@bitrange.com>
15056
15057         * libc/sys/mmixware/*: Tweak license header in all source files.
15058
15059 2001-11-12  Corinna Vinschen  <vinschen@redhat.com>
15060
15061         * libc/include/alloca.h: Move libc/sys/linux/include/alloca.h
15062         to here.  Rearrange for general inclusion by stdlib.h.
15063         * libc/include/stdlib.h: Include <alloca.h> if __STRICT_ANSI__
15064         isn't defined.
15065         * libc/sys/linux/include/alloca.h: Move to libc/include.
15066
15067 2001-11-12  Anthony Green  <green@redhat.com>
15068
15069         * libc/sys/arm/crt0.S (__stack_base__): New symbol.
15070
15071 2001-11-13  Hans-Peter Nilsson  <hp@bitrange.com>
15072
15073         * libc/sys/mmixware/*: Correct spacing in all source files.
15074         * libc/sys/mmixware/syscall.h: Move misplaced file...
15075         * libc/sys/mmixware/sys/syscall.h: ...here.
15076
15077 2001-11-12  Hans-Peter Nilsson  <hp@bitrange.com>
15078
15079         * libc/include/machine/ieeefp.h: Add support for mmix target.
15080         * libc/include/machine/setjmp.h: Ditto.
15081         * configure.host: Ditto.
15082         * libc/sys/mmixware/Makefile.am, libc/sys/mmixware/_exit.c,
15083         libc/sys/mmixware/access.c, libc/sys/mmixware/aclocal.m4,
15084         libc/sys/mmixware/chmod.c, libc/sys/mmixware/chown.c,
15085         libc/sys/mmixware/close.c, libc/sys/mmixware/configure.in,
15086         libc/sys/mmixware/creat.c, libc/sys/mmixware/crt0.c,
15087         libc/sys/mmixware/execv.c, libc/sys/mmixware/execve.c,
15088         libc/sys/mmixware/fork.c, libc/sys/mmixware/fstat.c,
15089         libc/sys/mmixware/getpid.c, libc/sys/mmixware/gettime.c,
15090         libc/sys/mmixware/isatty.c, libc/sys/mmixware/kill.c,
15091         libc/sys/mmixware/lseek.c, libc/sys/mmixware/open.c,
15092         libc/sys/mmixware/pipe.c, libc/sys/mmixware/read.c,
15093         libc/sys/mmixware/sbrk.c, libc/sys/mmixware/setjmp.S,
15094         libc/sys/mmixware/stat.c, libc/sys/mmixware/sys/syscall.h,
15095         libc/sys/mmixware/time.c, libc/sys/mmixware/times.c,
15096         libc/sys/mmixware/unlink.c, libc/sys/mmixware/utime.c,
15097         libc/sys/mmixware/wait.c, libc/sys/mmixware/write.c: New files.
15098         * libc/sys/mmixware/configure, libc/sys/mmixware/Makefile.in,
15099         libc/sys/mmixware/aclocal.m4: Generate.
15100
15101 2001-11-05  Corinna Vinschen  <corinna@vinschen.de>
15102
15103         * libc/include/sys/unistd.h: Add prototypes for endusershell(),
15104         getusershell(), iruserok(), revoke(), ruserok() and setusershell()
15105         when __CYGWIN__ is defined.
15106         * libc/sys/cygwin/sys/utmp.h: Add prototypes for login_tty() and
15107         logwtmp().
15108
15109 2001-11-01  Arati Dikey  <aratidikey@hotmail.com>
15110
15111         * libm/mathfp/sf_isinf.c (isinff): Change to use _DEFUN macro.
15112         [_DOUBLE_IS_32BITS](isinf): New function that calls isinff.
15113         * libm/mathfp/sf_isnan.c (isnanf): Change to use _DEFUN macro.
15114         [_DOUBLE_IS_32BITS](isnan): New function that calls isnanf.
15115
15116 2001-10-24  Christopher Faylor  <cgf@redhat.com>
15117
15118         * libc/stdio/fseek.c: Reset pointer to buffer base
15119         when forced to seek outside of current buffer contents.
15120         This prevents the code from erroneously thinking there is
15121         anything in the current buffer.
15122
15123 2001-10-22  Geoffrey Keating  <geoffk@redhat.com>
15124
15125         * libc/include/math.h: The C++ standard adds the single-precision
15126         versions of the elementary functions.
15127
15128 2001-10-22  Christopher Faylor  <cgf@redhat.com>
15129
15130         * libc/posix/execvp.c: Remove obsolete CYGWIN32 considerations
15131         throughout.
15132         * signal.h: Change comment to reflect __CYGWIN__ rather than __CYGWIN32__.
15133         * popen.c (popen): Use __CYGWIN_ rather than __CYGWIN32__.
15134         * system.c (_system_r): Ditto.
15135
15136 2001-10-17  Corinna Vinschen  <corinna@vinschen.de>
15137
15138         * libc/include/sys/unistd.h: Add prototype for fchdir() when
15139         __CYGWIN__ or __rtems__ is defined.
15140
15141 2001-10-01  Charles Wilson  <cwilson@ece.gatech.edu>
15142
15143         * libc/include/stdlib.h: add declarations for
15144         _strtoull_r, _strtoll_r, strtoull, and strtoll.
15145         * libc/stdio/local.h: remove declarations of
15146         __strtoull_r and __strtoll_r.
15147         * libc/stdio/vfscanf.c(__svfscanf_r): call
15148         _strtoull_r instead of __strtoull_r. Ditto
15149         _strtoll_r vs. __strtoll_r.
15150         * libc/stdlib/Makefile.am: add new files to
15151         .c list and .def list
15152         * libc/stdlib/Makefile.in: regenerate
15153         * libc/stdlib/strtoll_r.c: rename __strtoll_r
15154         as _strtoll_r
15155         * libc/stdlib/strtoull_r.c: rename __strtoull_r
15156         as _strtoull_r
15157         * libc/stdlib/strtoull.c: new file
15158         * libc/stdlib/strtoll.c: new file
15159
15160 Mon Sep 17 17:29:47 2001  Christopher Faylor <cgf@cygnus.com>
15161
15162         * libc/include/process.h: Add getpid() declaration.
15163
15164 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
15165
15166         * libc/sys/arm/crt0.S: Add calls to _init and _fini (via atexit)
15167         for new style arm/elf ctor/dtor handling.
15168         Minor formatting tidy up.
15169
15170 2001-09-13  Jeff Johnston  <jjohnstn@redhat.com>
15171
15172         * libc/stdlib/Makefile.am: Add support to build strtoll_r.c
15173         and strtoull_r.c.
15174         * libc/stdlib/Makefile.in: Regenerated.
15175         * libc/stdlib/strtoll_r.c: New file.
15176         * libc/stdlib/strtoull_r.c: New file.
15177         * libc/stdio/local.h: Add prototypes for long long string
15178         conversion routines.
15179         * libc/stdio/vfscanf.c (__svfscanf_r): Add optional long long support
15180         tied to %L integer conversion specifier.
15181
15182 Thu Sep 13 08:49:49 2001  Jason Tishler <jason@tishler.net>
15183
15184         * strftime.c (strftime): Fix "%W" implementation to properly handle
15185         Mondays too.
15186
15187 2001-09-07  Jeff Law  <law@redhat.com>
15188
15189         * libc/sys/h8300hms/crt0.S: For H8/300H and H8/S, load address of
15190         __fini with "mov.l" instead of "mov.w".
15191
15192 2001-09-05  Corinna Vinschen  <corinna@vinschen.de>
15193
15194         * libc/sys/cygwin/include/unistd.h: New file, wrapping sys/unistd.h
15195         and getopt.h.
15196
15197 2001-09-04  Jason Merrill  <jason_merrill@redhat.com>
15198
15199         * libc/sys/h8300hms/crt0.S: Support ELF initialization.
15200
15201 2001-09-03  Corinna Vinschen  <corinna@vinschen.de>
15202
15203         * libc/sys/cygwin/sys/dirent.h (struct dirent): Add version number
15204         field.
15205         (__DIRENT_VERSION): New define.
15206
15207 2001-09-03  Corinna Vinschen  <corinna@vinschen.de>
15208
15209         * libc/sys/cygwin/sys/dirent.h (struct dirent): Add `d_fd' member.
15210         Shrink __d_reserved accordingly to keep structure size.
15211         (dirfd): Declare external.
15212
15213 2001-08-29  Joel Sherrill <joel@OARcorp.com>
15214
15215         * libc/include/sys/unistd.h: Prototype chroot() for RTEMS.
15216
15217 2001-08-29  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
15218
15219         * libc/machine/i386/f_atan2.S, libc/machine/i386/f_atan2f.S,
15220           libc/machine/i386/f_exp.c, libc/machine/i386/f_expf.c,
15221           libc/machine/i386/f_frexp.S, libc/machine/i386/f_frexpf.S,
15222           libc/machine/i386/f_ldexp.S, libc/machine/i386/f_ldexpf.S,
15223           libc/machine/i386/f_log.S, libc/machine/i386/f_log10.S,
15224           libc/machine/i386/f_log10f.S, libc/machine/i386/f_logf.S,
15225           libc/machine/i386/f_pow.c, libc/machine/i386/f_powf.c,
15226           libc/machine/i386/f_tan.S, libc/machine/i386/f_tanf.S:
15227         Add conditional compilation to avoid HW FPU instructions
15228         when compiled for soft-float.
15229
15230 2001-08-29  Jeff Johnston  <jjohnstn@redhat.com>
15231
15232         * Makefile.am: Add check for ln failing when creating libg.a
15233         so that cp gets used as a backup.
15234         * Makefile.in: Regenerated.
15235
15236 2001-08-29  Jeff Johnston  <jjohnstn@redhat.com>
15237
15238         * libc/include/sys/reent.h: Add include of <sys/_types.h>.
15239         No longer include time.h.  Add struct __tm to use for
15240         _localtime_buf in the reentrant structure.  Add a
15241         _NULL definition to use in initializing the reentrant struct.
15242         * libc/include/sys/config.h: For CYGWIN32 and RTEMS, change
15243         the _READ_WRITE_RETURN_TYPE to _ssize_t which is found in
15244         <sys/_types.h>.
15245         * libc/include/sys/unistd.h: Include <sys/_types.h>.
15246         * libc/time/lcltime.c (localtime): Cast the reentrant struct
15247         _localtime_buf to be struct tm *.
15248
15249 Wed Aug 29 14:17:38 2001  J"orn Rennecke <amylaar@redhat.com>
15250
15251         * configure.host (h8300-*-elf*, h8500-*-elf*): New cases.
15252         * libc/sys/h8300hms/crt1.c (__main): Don't reference __ctors /
15253         __ctors_end.
15254         * libc/sys/h8300hms/syscalls.c: Include errno.h.
15255         (_unlink): New stub function.
15256
15257 Sat Aug 25 22:22:25 2001  Christopher Faylor <cgf@cygnus.com>
15258
15259         * libc/include/sys/errno.h: Add a cautionary comment.
15260
15261 2001-08-21  Jeff Johnston  <jjohnstn@redhat.com>
15262
15263         * libc/stdlib/mallocr.c [!defined(MALLOC_ALIGNMENT)]: Add conditional
15264         for SIZE_SZ so that alignment ends up a minimum of 8.
15265
15266 Mon Aug 13 22:26:01 2001  Christopher Faylor <cgf@cygnus.com>
15267
15268         * libc/include/machine/setjmp.h: Protect sigsetjmp/siglongjmp macro
15269         arguments.
15270
15271         * libc/include/sys/errno.h: Declare sys_errlist and sys_nerr, under
15272         Cygwin.
15273
15274 2001-08-13  Jeff Johnston  <jjohnstn@redhat.com>
15275
15276         * libc/include/malloc.h (M_MXFAST, M_NLBLKS, M_GRAIN, M_KEEP): New
15277         macro constants for mallopt options.
15278         (M_TRIM_THRESHOLD, M_TOP_PAD, M_MMAP_THRESHOLD, M_MMAP_MAX): Ditto.
15279
15280 2001-08-02  Jeff Johnston  <jjohnstn@redhat.com>
15281
15282         * libc/include/stdio.h (BUFSIZ): Define to __BUFSIZ__ if provided,
15283         otherwise default.
15284
15285 2001-07-12  Aldy Hernandez  <aldyh@redhat.com>
15286
15287         * libc/machine/mips/setjmp.S: Allow mips16 and mips64 to coexist.
15288
15289 2001-06-27  Nick Clifton  <nickc@cambridge.redhat.com>
15290
15291         * libc/include/machine/ieeefp.h (__IEEE_BYTES_LITTLE_ENDIAN):
15292         Define for little endian ARMs.
15293
15294         * libc/stdlib/mprec.h (Storeinc): Use little endian version if
15295         __IEEE_BYTES_LITTLE_ENDIAN is defined.
15296
15297 2001-06-11  Danny Smith  <dannysmith@users.sourceforge.net>
15298
15299         * /libc/include/ctype.h (is* and to* macros): Do not define if C++.
15300
15301 2001-06-11  Egor Duda  <deo@logos-m.ru>
15302
15303         * libc/ctype/ctype_.c: When compiled with gcc on platforms
15304         with signed char, make _ctype_[-128] ... _ctype[-1] refer to
15305         initialized memory region. Platform can define COMPACT_CTYPE
15306         to avoid allocation of the additional 128 bytes of data.
15307         Add pointer to _ctype_ array. Always initialize all _ctype_
15308         array elements.
15309
15310 2001-06-08  Jonathan Larmour  <jlarmour@redhat.com>
15311
15312         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Avoid dereferencing
15313         NULL pointer.
15314
15315 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
15316
15317         * libc/stdio/vfprintf.c (_VFPRINTF_R): Handle printf ("%#.0o",0)
15318
15319 2001-05-25  Nick Clifton  <nickc@cambridge.redhat.com>
15320
15321         * libc/machine/xscale/memcmp.c: Fix bug when both pointers have
15322         matching, non-word alignment, and the length is <= 4 but more than
15323         enough to move them over a word boundary.
15324         Add comments explaining what each instruction does.
15325
15326 Mon May  7 20:39:25 2001  Christopher Faylor <cgf@cygnus.com>
15327
15328         * libc/include/sys/stat.h: Revert March 3, Cygwin change.
15329         * libc/include/sys/unistd.h: Ditto.
15330
15331 2001-05-04  Earnie Boyd  <earnie@users.sourceforge.net>
15332
15333         * libc/string/strrchr.c: Use strchr for the speed improvements.
15334
15335 2001-05-01  Jeff Johnston  <jjohnstn@redhat.com>
15336
15337         * libc/stdio/findfp (__sinit)[HAVE_FCNTL]: For platforms that have
15338         real file systems, let __smakebuf() determine if line buffering
15339         should be used for stdout.
15340
15341 2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>
15342
15343         * libc/stdio/vfscanf.c (__svfscanf_r): Initialize new_exp local var.
15344
15345 2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>
15346
15347         * libc/include/stdlib.h: Add prototype for _strtod_r.
15348
15349 2001-04-24  Charles Wilson  <cwilson@ece.gatech.edu
15350
15351         * libc/stdio/vprintf.c (vprintf): fix signature to use _DEFUN
15352         * libc/stdio/vprintf.c (_vprintf_r): new function
15353         * libc/stdio/vsnprintf.c (vsnprintf): fix signature to use _DEFUN
15354         * libc/stdio/vsnprintf.c (_vsnprintf_r): fix signature to use
15355         _DEFUN, and call _vfprintf_r, not vfprintf.
15356         * libc/stdio/vsprintf.c (vsprintf.c): fix signature to use _DEFUN
15357         * libc/stdio/vsprintf.c (_vsprintf_r): fix signature to use
15358         _DEFUN, and call _vfprintf_r, not vfprintf.
15359
15360 2001-04-22  Earnie Boyd  <earnie@users.sourceforge.net>
15361
15362         * libc/include/sys/unistd.h [X_OK]: Use better protection against
15363         Cygwin X_OK definitions in sys/file.h.
15364
15365 Fri Apr 20 23:17:51 2001  Christopher Faylor <cgf@cygnus.com>
15366
15367         * libc/include/sys/time.h: Define timercmp and other macros for
15368         __CYGWIN__, too.
15369
15370 2001-04-20  Jeff Johnston  <jjohnstn@redhat.com>
15371
15372         * acinclude.m4: Added --enable-malloc-debugging configure flag.
15373         * configure.host: For Cygwin specify -DMALLOC_PROVIDED if
15374         --enable-malloc-debugging selected.
15375         * aclocal.m4 configure: Regenerated.
15376           libm/aclocal.m4 libm/configure: Ditto.
15377         * libc/aclocal.m4 libc/configure: Ditto.
15378         * libc/machine/aclocal.m4 libc/machine/configure: Ditto.
15379         * libc/machine/*/aclocal.m4 libc/machine/*/configure: Ditto.
15380         * libc/sys/aclocal.m4 libc/sys/configure: Ditto.
15381         * libc/sys/*/aclocal.m4 libc/sys/*/configure: Ditto.
15382         * doc/aclocal.m4 doc/configure: Ditto.
15383
15384 2001-04-20  Jeff Johnston  <jjohnstn@redhat.com>
15385
15386         * libc/include/stdio.h[!_REENT_ONLY]: Moved various functions together
15387         into one list.
15388         [!__STRICT_ANSI__]: Moved non-ANSI I/O functions in this list.
15389         (vfscanf, vscanf, vsscanf, _vfscanf_r, _vscanf_r, _vsscanf_r): New
15390         function prototypes.
15391         (_fscanf_r, _sscanf_r): Ditto.
15392         * libc/include/stdlib.h: Added _strtod_r prototype.
15393         * libc/stdio/Makefile.am: Add new v*scanf functions.
15394         * libc/stdio/Makefile.in: Regenerate.
15395         * libc/stdio/fscanf.c: Reorganized so HAVE_STDC only affects prototype
15396         and code is shared.  Added reentrant _fscanf_r which calls __svfscanf_r.
15397         * libc/stdio/scanf.c: Changed to call __svfscanf_r.
15398         * libc/stdio/sscanf.c: Changed documentation to add reentrant routines.
15399         (sscanf): Changed to call __svfscanf_r with _REENT argument.
15400         (_sscanf_r): New routine.
15401         * libc/stdio/local.h: Removed __svfscanf prototype and replaced it
15402         with __svfscanf_r prototype.
15403         * libc/stdio/vfscanf.c (vfscanf, _vfscanf_r: New
15404         routines.
15405         (__svfscanf_r): Reentrant version of __svfscanf which takes reetrancy
15406         structure as argument as calls reentrant versions of helper functions
15407         (e.g. _strtol_r, _strtoul_r). Also replaced calls to atol and atof
15408         to _strtol_r and _strtod_r respectively.
15409         * libc/stdio/vfscanf.c: Also changed __svfscanf to call __svfscanf_r.
15410         * libc/stdlib/strtod.c (strtod): Changed to call _strtod_r with
15411         _REENT argument.
15412         * libc/stdio/vscanf.c: New file.
15413         * libc/stdio/vsscanf.c: Ditto.
15414
15415 2001-04-19  Robert Collins  <rbtcollins@hotmail.com>
15416
15417         * include/time.h[__CYGWIN__]:  Define tzname to _tzname if not defined.
15418         Define daylight to _daylight if it is not defined
15419         Prepare a variable export of timezone based on timezonevariable.
15420         (Cannot be used with the timezone() function.)
15421
15422 2001-04-17  Stephen L. Moshier  <moshier@moshier.ne.mediaone.net>
15423
15424         * newlib/libm/math/ef_asin.c (pio2_hi, pio2_lo, pio4_hi):
15425          Correct the numerical values.
15426
15427 2001-04-13  Robert Collins <rbtcollins@hotmail.com>
15428
15429         * libc/include/sys/unistd.h: Add pthread_atfork (Cygwin only).
15430
15431 Thu Apr 12 23:11:00 2001  Corinna Vinschen <corinna@vinschen.de>
15432
15433         * libc/include/sys/errno.h: Add ECASECLASH to indicate case clash
15434         on case insensitve file systems.
15435
15436 2001-04-12  Robert Collins <rbtcollins@hotmail.com>
15437
15438         * libc/include/sys/features.h: Add appropriate defines for Cygwin
15439         pthread support.
15440         * libc/include/sys/signal.h: Remove unneeded __CYGWIN__ protection.
15441         * libc/include/sys/types.h: Protect __CYGWIN__ from the rtems pthreads
15442         types.  Include <cygwin/types.h> for the cygwin specific typedefs.
15443
15444 2001-04-04  Richard Sandiford  <rsandifo@redhat.com>
15445
15446         * libc/include/machine/ieeefp.h: Comment about new configuration
15447         macros _FLT_LARGEST_EXPONENT_IS_NORMAL and _FLT_NO_DENORMALS.
15448         * libm/common/fdlib.h: Define new macros for testing floats.
15449         * libm/common/sf_*: Use them.
15450         * libm/math/ef_*: Likewise.
15451         * libm/math/sf_*: Likewise.
15452
15453 2001-03-29  Jeff Johnston  <jjohnstn@redhat.com>
15454
15455         * libc/sys/arm/setjmp.S: Added .code 16 specifier for thumb-mode
15456         prolog to by-pass possible assembler error.
15457
15458 2001-03-21  Egor Duda  <deo@logos-m.ru>
15459
15460         Allow building internal stubs for non-reentrant syscalls
15461         if target provides its own malloc
15462         * libc/reent/reent.c (errno): Move definition here.
15463         * libc/reent/sbrkr.c: From here.
15464
15465 2001-03-20  Danny Smith <dannysmith@users.sourceforge.net>
15466
15467         * libc/include/sys/types.h (BSD int typedefs): Guard with
15468         _BSDTYPES_DEFINED rather than _WINSOCK_H.
15469         (fd_set): Add !defined __USE_W32_SOCKETS to guard; define
15470         _SYS_TYPES_FD_SET.
15471         * libc/include/sys/unistd.h (gethostname): Don't declare if defined
15472         (_WINSOCK_H) || defined (__USE_W32_SOCKETS).
15473
15474 Sat Mar 17 18:30:00 2001  Corinna Vinschen <corinna@vinschen.de>
15475
15476         * libc/include/sys/unistd.h: Add _PC_POSIX_PERMISSONS and
15477         _PC_POSIX_SECURITY constants for Cygwin.
15478
15479 Wed Mar 14  9:34:00 2001  Corinna Vinschen <corinna@vinschen.de>
15480
15481         * libc/sys/cygwin/crt0.c: Add copyright hint.
15482         * libc/sys/cygwin/sys/dirent.h: Ditto.
15483         * libc/sys/cygwin/sys/param.h: Ditto.
15484         * libc/sys/cygwin/sys/utime.h: Ditto.
15485         * libc/sys/cygwin/sys/utmp.h: Ditto.
15486
15487 2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
15488
15489         * libc/stdio/vfprintf.c (QUADINT) [_NO_LONGLONG]: Make it
15490         equivalent to LONGINT.
15491
15492 2001-03-08  Richard Sandiford  <rsandifo@redhat.com>
15493
15494         * (libc/include/machine/setjmp.h): Use 23 long long ints for a
15495         jmpbuf on MIPS64 targets.
15496         * (libc/machine/mips/setjmp.S): Add MIPS64 version.
15497
15498 Wed Mar  7 16:02:07 2001  Christopher Faylor <cgf@cygnus.com>
15499
15500         * libc/include/sys/config.h: Use ssize_t for Cygwin read/write
15501           declarations.
15502
15503 Mon Mar  5 21:48:54 2001  J"orn Rennecke <amylaar@redhat.com>
15504
15505         * libc/include/sys/config.h (_READ_WRITE_RETURN_TYPE): Define.
15506         For RTEMS, define to be ssize_t.  Default to int if not defined.
15507         * libc/stdio/sscanf.c (eofread): Return _READ_WRITE_RETURN_TYPE.
15508         * libc/stdio/stdio.c (__sread, __swrite): Likewise.
15509         * libc/stdio/local.h (__sread, __swrite): Likewise.
15510         * libc/include/sys/reent.h (_read, _write): Likewise.
15511         * libc/include/sys/unistd.h (read, write, _read, _write): Likewise.
15512         * libc/syscalls/sysread.c (read): Likewise.
15513         * libc/syscalls/syswrite.c (write): Likewise.
15514
15515 2001-03-05  Jeff Johnston  <jjohnstn@redhat.com>
15516
15517         * libc/time/mktime.c: Add L suffix to _SEC_IN_xxxx constants.
15518
15519 Sat Mar  3 00:34:14 2001  Christopher Faylor <cgf@cygnus.com>
15520
15521         * libc/include/sys/stat.h: Use special defines for executable stat bits
15522         when compiling for Cygwin.
15523         * libc/include/sys/unistd.h: Use special define for X_OK when compiling
15524         for Cygwin.
15525
15526 2001-03-02  Jeff Johnston  <jjohnstn@redhat.com>
15527
15528         * libc/string/strtok.c: Add #undef of __STRICT_ANSI__ so prototype
15529         of strtok_r is always defined.
15530
15531 2001-03-02  Jeff Johnston  <jjohnstn@redhat.com>
15532
15533         * libc/include/machine/ansi.h: New dummy header file.
15534
15535 2001-02-22  Jeff Johnston  <jjohnstn@redhat.com>
15536
15537         * libc/include/machine/setjmp-dj.h: With DJ Delorie's permission,
15538         changed the copyright information to allow free modification of the
15539         file with no reference to "copying.dj".
15540         * libc/include/sys/stat-dj.h: Ditto.
15541         * libc/machine/i386/setjmp.S: Ditto.
15542         * libc/sys/h8300hms/sys/file.h: Ditto.
15543         * libc/sys/sysmec/access.c: Ditto.
15544         * libc/sys/sysnecv850/access.c: Ditto.
15545         * libc/stdio/mktemp.c: Fixed typo for the word copyright.
15546         * libc/stdlib/getenv_r.c: Ditto.
15547         * libc/stdlib/putenv_r.c: Ditto.
15548         * libc/stdlib/setenv_r.c: Ditto.
15549         * libc/stdlib/getenv.c: Removed DJ reference since any possible
15550         modifications will now be in the _r version of this file.
15551         * libc/stdlib/putenv.c: Ditto.
15552         * libc/stdlib/setenv.c: Ditto.
15553         * libc/sys/go32/copying.dj: Removed DJ's address which is no longer
15554         valid.  Added a reference to DJ's web page that contains his address.
15555         * libc/sys/go32/*.s: Removed references to DJ's old address.
15556         * libc/sys/go32/*.c: Ditto.
15557         * libc/sys/go32/*.h: Ditto.
15558         * libc/sys/go32/*.S: Ditto.
15559         * libc/sys/go32/sys/*.h: Ditto.
15560
15561 2001-02-21  Jeff Johnston  <jjohnstn@redhat.com>
15562
15563         * libc/stdio/fdopen.c (fdopen): Protect calls to _fcntl() with
15564         HAVE_FCNTL flag check.
15565         * configure.host: Define HAVE_FCNTL for Cygwin, go32, RTEMS, sparc64,
15566         powerpcle, x86 netware, x86 sco, x86 Linux and Vxworks.
15567
15568 Thu Feb 15 01:39:51 2001  Christopher Faylor <cgf@cygnus.com>
15569
15570         * libc/include/sys/signal.h: Always include sys/types.h under Cygwin.
15571
15572 2001-02-14  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
15573
15574         * libc/include/stdlib.h: Add declarations of rand48 functions and
15575         their reentrant versions.
15576         * libc/include/sys/reent.h: Move macros from rand48.h. Add
15577         struct _rand48 for shared parameters of rand48 functions.
15578         (struct _reent): Add a variable _r48 of struct _rand48.
15579         (_REENT_INIT): Add _r48 initialization.
15580         * libc/stdlib/Makefile.am (lib_a_SOURCES): Add rand48 functions.
15581         (CHEWOUT_FILES): Add rand48.def.
15582         * libc/stdlib/Makefile.am: Add dependencies for rand48 functions.
15583         * libc/stdlib/Makefile.in: Regenerated.
15584         * libc/stdlib/drand48.c (drand48, _drand48_r): Derived from the
15585         NetBSD C library.
15586         * libc/stdlib/erand48.c (erand48, _erand48_r): Ditto.
15587         * libc/stdlib/jrand48.c (jrand48, _jrand48_r): Ditto.
15588         * libc/stdlib/lcong48.c (lcong48, _lcong48_r): Ditto.
15589         * libc/stdlib/lrand48.c (lrand48, _lrand48_r): Ditto.
15590         * libc/stdlib/mrand48.c (mrand48, _mrand48_r): Ditto.
15591         * libc/stdlib/nrand48.c (nrand48, _nrand48_r): Ditto.
15592         * libc/stdlib/seed48.c (seed48, _seed48_r): Ditto.
15593         * libc/stdlib/srand48.c (srand48, _srand48_r): Ditto.
15594         * libc/stdlib/rand48.c (__dorand48): Ditto.
15595         * libc/stdlib/rand48.h: Ditto, and modify declarations of global
15596         parameters into macros referring them in the reentrant structure.
15597
15598 2001-02-12  Jeff Johnston  <jjohnstn@redhat.com>
15599
15600         * libc/include/sys/stat.h: Add mknod for Cygwin now that
15601         Cygwin definition has correct prototype.
15602
15603 2001-02-08  Jeff Johnston  <jjohnstn@redhat.com>
15604
15605         * libc/include/sys/stat.h: Must revert change for mknod
15606         for CYGWIN until winsup/cygwin/syscalls.cc changes mknod
15607         prototype.
15608
15609 2001-02-08  Jeff Johnston  <jjohnstn@redhat.com>
15610
15611         * libc/include/stdio.h: Revert putw prototype.
15612
15613 2001-02-08  Edward M. Lee  <tailbert@yahoo.com>
15614
15615         * libc/include/grp.h: add prototype for initgroups.
15616         * libc/include/stdio.h: fix prototype for putw.
15617         * libc/include/sys/signal.h: add prototype for killpg.
15618         * libc/include/sys/stat.h: enable mknod/lstat for CYGWIN.
15619         * libc/include/sys/unistd.h: add prototypes for getpgid, setpgrp,
15620         vhangup and remove duplicate sysconf prototype.
15621
15622 2001-02-07  Jeff Johnston  <jjohnstn@redhat.com>
15623
15624         * libc/sys/rtems/sys/types.h: Removed.
15625
15626 2001-02-05  Charles Wilson  <cwilson@ece.gatech.edu>
15627
15628         * libc/include/locale.h: add LC_MESSAGES definition
15629
15630 2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
15631
15632         * libc/sys/sh/sys/syscall.h (SYS_get_argc, SYS_get_argN_len,
15633         SYS_get_argN):
15634         * libc/sys/sh/syscalls.c (__setup_argv_for_main,
15635         __setup_argv_and_call_main): New.
15636
15637 2001-01-31  Jeff Johnston  <jjohnstn@redhat.com>
15638
15639         * libc/include/stdio.h (FILENAME_MAX): Changed to use __FILENAME_MAX__
15640         if defined.
15641         (FOPEN_MAX): Changed to use __FOPEN_MAX__ if defined.
15642         (L_tmpnam): Changed to use __L_tmpnam__ if defined.
15643         * libc/include/sys/config.h: Changed to set __FILENAME_MAX__
15644         appropriately for Cygwin and RTEMS so not to exceed PATH_MAX.
15645
15646 Mon Jan 29 23:03:06 2001  Christopher Faylor <cgf@cygnus.com>
15647
15648         * libc/stdlib/mallocr.c: Undefine windows preprocessor variables when
15649         compiling under Cygwin.
15650
15651 2001-01-29  Jeff Johnston  <jjohnstn@redhat.com>
15652
15653         * libc/include/math.h (signgam): Change to errno-like solution
15654         using a function to return the address of the real signgam.
15655         * libc/reent/signgam.c: New file containing __signgam().
15656         * libc/reent/Makefile.am: Added signgam.c to list of files.
15657         * libc/reent/Makefile.in: Regenerated.
15658
15659 2001-01-25  Alexandre Oliva  <aoliva@redhat.com>
15660
15661         * libc/sys/sh/syscalls.c (_times): New.
15662
15663         * configure.host (sh*-*-*): Add -DHAVE_GETTIMEOFDAY to newlib_cflags.
15664         * libc/sys/sh/syscalls.c (_gettimeofday): New.
15665
15666 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
15667
15668         * libc/include/math.h (signgam): Regress previous fix as
15669         it does not handle programs with extern int signgam in them.
15670
15671 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
15672
15673         * libc/include/math.h (signgam): Changed to a macro refering to
15674         its location in the reentrant structure.
15675
15676 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
15677
15678         * libc/stdio/vfprintf.c (_VFPRINTF_R): Modification to fix
15679         that suppressed . for %.0f, 0.1.  Check now looks if there
15680         are padding zeroes (expt) in addition to any digits (ndig) to
15681         print.
15682
15683 2001-01-18  Jeff Johnston  <jjohnstn@redhat.com>
15684
15685         * libc/sys/arc/Makefile.am: New file.
15686         * libc/sys/arc/Makefile.in: Ditto.
15687         * libc/sys/arc/aclocal.m4: Ditto.
15688         * libc/sys/arc/configure: Ditto.
15689         * libc/sys/arc/configure.in: Ditto.
15690         * libc/sys/arc/crt0.S: Ditto.
15691         * libc/sys/arc/isatty.c: Ditto.
15692         * libc/sys/arc/mem-layout.c: Ditto.
15693         * libc/sys/arc/sbrk.c: Ditto.
15694         * libc/sys/arc/syscalls.c: Ditto.
15695         * libc/sys/arc/sys/syscall.h: Ditto.
15696
15697 Wed Jan 17 23:20:56 2001  Christopher Faylor <cgf@cygnus.com>
15698
15699         * libc/include/sys/unistd.h: Use correct declaration for setdtablesize.
15700
15701 Fri Jan 12 00:34:31 2001  Christopher Faylor <cgf@cygnus.com>
15702
15703         * libc/include/sys/signal.h: Add some SA_* defines for Cygwin.
15704
15705 Thu Jan 11 20:42:06  2001  Earnie Boyd  <earnie_boyd@yahoo.com>
15706
15707         * libc/include/sys/features.h: __CYGWIN__ preferred over __CYGWIN32__
15708
15709 2001-01-09  Nick Clifton  <nickc@redhat.com>
15710
15711         * configure.host (v859): Remove unsupported compiler options.
15712
15713 Fri Jan  5 19:57:00 EST 2001  Aaron J. Grier  <aaron@frye.com>
15714
15715         * src/newlib/configure.host (*-*-rtems*): add printf long long
15716         support for RTEMS.
15717
15718 2000-12-19  Graham Stott <grahams@redhat.com>
15719
15720         * libc/machine/xscale/memcmp.c (memcmp): Add clobber for "lr".
15721
15722 Wed Dec 14  Jeff Johnston  <jjohnstn@redhat.com>
15723
15724         * configure.host: Turn on long double I/O for Cygwin.
15725
15726 Wed Dec 14  Jeff Johnston  <jjohnstn@redhat.com>
15727
15728         * MAINTAINERS: Removed Ranjith.
15729         * NEWS: Updated for 1.9.0.
15730         * README: Updated.
15731         * acinclude.m4: Updated to release 1.9.0.
15732         * aclocal.m4 configure
15733           doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
15734           libc/machine/aclocal.m4 libc/machine/configure
15735           libc/machine/a29k/aclocal.m4 libc/machine/a29k/configure
15736           libc/machine/arm/aclocal.m4 libc/machine/arm/configure
15737           libc/machine/d10v/aclocal.m4 libc/machine/d10v/configure
15738           libc/machine/d30v/aclocal.m4 libc/machine/d30v/configure
15739           libc/machine/fr30/aclocal.m4 libc/machine/fr30/configure
15740           libc/machine/h8300/aclocal.m4 libc/machine/h8300/configure
15741           libc/machine/h8500/aclocal.m4 libc/machine/h8500/configure
15742           libc/machine/hppa/aclocal.m4 libc/machine/hppa/configure
15743           libc/machine/i386/aclocal.m4 libc/machine/i386/configure
15744           libc/machine/i960/aclocal.m4 libc/machine/i960/configure
15745           libc/machine/m32r/aclocal.m4 libc/machine/m32r/configure
15746           libc/machine/m68k/aclocal.m4 libc/machine/m68k/configure
15747           libc/machine/m88k/aclocal.m4 libc/machine/m88k/configure
15748           libc/machine/mips/aclocal.m4 libc/machine/mips/configure
15749           libc/machine/mn10200/aclocal.m4 libc/machine/mn10200/configure
15750           libc/machine/mn10300/aclocal.m4 libc/machine/mn10300/configure
15751           libc/machine/necv70/aclocal.m4 libc/machine/necv70/configure
15752           libc/machine/powerpc/aclocal.m4 libc/machine/powerpc/configure
15753           libc/machine/sh/aclocal.m4 libc/machine/sh/configure
15754           libc/machine/sparc/aclocal.m4 libc/machine/sparc/configure
15755           libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
15756           libc/machine/v850/aclocal.m4 libc/machine/v850/configure
15757           libc/machine/w65/aclocal.m4 libc/machine/w65/configure
15758           libc/machine/xscale/aclocal.m4 libc/machine/xscale/configure
15759           libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
15760           libc/sys/aclocal.m4 libc/sys/configure
15761           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
15762           libc/sys/arm/aclocal.m4 libc/sys/arm/configure
15763           libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
15764           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
15765           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
15766           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
15767           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
15768           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
15769           libc/sys/linux/aclocal.m4 libc/sys/linux/configure
15770           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
15771           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
15772           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
15773           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
15774           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
15775           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
15776           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
15777           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
15778           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
15779           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
15780           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
15781           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
15782           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
15783           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
15784           libm/aclocal.m4 libm/configure: Regenerated.
15785
15786 Wed Dec 13 11:52:00 2000  Corinna Vinschen <vinschen@cygnus.com>
15787
15788         * libc/include/sys/unistd.h: Add declarations for `chroot' and `getwd'
15789         when __CYGWIN__ is defined.
15790
15791 2000-12-13  Jeff Johnston  <jjohnstn@redhat.com>
15792
15793         * libc/stdlib/ldtoa.c (_ldcheck): New routine
15794         that categorizes a long double as NaN, Infinity, or other.
15795         * libc/stdio/vfprintf.c [WANT_IO_LONG_DBL](_VFPRINTF_R): Removed
15796         isinfl and isnanl static routines which were i386-specific.  Changed
15797         calls to the two removed routines to a single _ldcheck call.
15798         * libc/stdio/vfieeefp.h (ldieee): Fixed missing semi-colons.
15799
15800 2000-12-13  Jeff Johnston  <jjohnstn@redhat.com>
15801
15802         * Makefile.am: Fixed install-data-local target to use
15803         $(mkinstalldirs) for the installed header files to ensure
15804         the directories exist before copying.
15805         * Makefile.in: Regenerated.
15806
15807 2000-12-12  Jeff Johnston  <jjohnstn@redhat.com>
15808
15809         * libc/include/sys/unistd.h: Restored Cygwin _SC
15810         constants and moved new constants appropriately
15811         so Cygwin will build.
15812
15813 2000-12-11  Joel Sherrill <joel@OARcorp.com>
15814
15815         * Merge RTEMS specific .h files into main libc/include.
15816         * libc/sys/rtems/include/signal.h: Removed.
15817         * libc/sys/rtems/include/time.h: Removed.
15818         * libc/sys/rtems/sys/features.h: Removed.
15819         * libc/sys/rtems/sys/sched.h: Removed.
15820         * libc/sys/rtems/sys/siginfo.h: Removed.
15821         * libc/sys/rtems/sys/signal.h: Removed.
15822         * libc/sys/rtems/sys/time.h: Removed.
15823         * libc/sys/rtems/sys/times.h: Removed.
15824         definitions for time_t and clock_t since these are
15825         no longer in time.h.
15826         * libc/include/pthread.h: New file.
15827         * libc/include/sys/sched.h: New file.
15828         * libc/include/sys/features.h: New file.
15829         * libc/include/time.h: Removed duplicate definition of clock_t
15830         and time_t, get them from <sys/types.h> instead.  Add prototypes
15831         for POSIX clock and timer functionality.
15832         * libc/sys/linux/sys/types.h: Changed to include
15833         * libc/include/machine/types.h: Add _CLOCKID_T_ and _TIMER_T_.
15834         * libc/include/sys/signal.h: Add more complete set of POSIX
15835         signal functionality including real-time and threaded signals.
15836         * libc/include/sys/types.h: Add clock_t, time_t, struct
15837         timespec, and struct itimerspec.  Centralizing these makes
15838         things cleaner.  RTEMS uses 64-bit dev_t.
15839         Added numerous primitive definitions
15840         for pthreads including macros, pthread_attr_t,
15841         pthread_mutexattr_t, pthread_condattr_t, pthread_key_t,
15842         pthread_once_t, and pthread_t.
15843         * libc/include/sys/unistd.h: Added getlogin_r() prototype.
15844         If RTEMS follow POSIX on read(), write() and sbrk() prototype.
15845         Feature flags removed and moved to new file <sys/features.h>.
15846         Full set of POSIX sysconf() constants
15847
15848 2000-12-08  Werner Almesberger  <Werner.Almesberger@epfl.ch>
15849
15850         * configure.host: Added x86 linux target.
15851         * libc/unix/getpass.c (_PATH_PASSWD, _PASSWORD_LEN): Default
15852         definitions provided if not already defined.
15853         * libc/sys/linux/crt0.c: New file.
15854         * libc/sys/linux/Makefile.am: Ditto.
15855         * libc/sys/linux/Makefile.in: Ditto.
15856         * libc/sys/linux/aclocal.m4: Ditto.
15857         * libc/sys/linux/brk.c: Ditto.
15858         * libc/sys/linux/configure: Ditto.
15859         * libc/sys/linux/configure.in: Ditto.
15860         * libc/sys/linux/getoptlong.c: Ditto.
15861         * libc/sys/linux/ids.c: Ditto.
15862         * libc/sys/linux/inode.c: Ditto.
15863         * libc/sys/linux/io.c: Ditto.
15864         * libc/sys/linux/linux.c: Ditto.
15865         * libc/sys/linux/process.c: Ditto.
15866         * libc/sys/linux/realpath.c: Ditto.
15867         * libc/sys/linux/select.c: Ditto.
15868         * libc/sys/linux/signal.c: Ditto.
15869         * libc/sys/linux/systat.c: Ditto.
15870         * libc/sys/linux/termios.c: Ditto.
15871         * libc/sys/linux/time.c: Ditto.
15872         * libc/sys/linux/wait.c: Ditto.
15873         * libc/sys/linux/include/alloca.h: Ditto.
15874         * libc/sys/linux/include/getopt.h: Ditto.
15875         * libc/sys/linux/include/stdint.h: Ditto.
15876         * libc/sys/linux/include/unistd.h: Ditto.
15877         * libc/sys/linux/sys/cdefs.h: Ditto.
15878         * libc/sys/linux/sys/dirent.h: Ditto.
15879         * libc/sys/linux/sys/errno.h: Ditto.
15880         * libc/sys/linux/sys/fcntl.h: Ditto.
15881         * libc/sys/linux/sys/file.h: Ditto.
15882         * libc/sys/linux/sys/ioctl.h: Ditto.
15883         * libc/sys/linux/sys/resource.h: Ditto.
15884         * libc/sys/linux/sys/signal.h: Ditto.
15885         * libc/sys/linux/sys/stat.h: Ditto.
15886         * libc/sys/linux/sys/syscall.h: Ditto.
15887         * libc/sys/linux/sys/termios.h: Ditto.
15888         * libc/sys/linux/sys/time.h: Ditto.
15889         * libc/sys/linux/sys/types.h: Ditto.
15890         * libc/sys/linux/sys/utmp.h: Ditto.
15891         * libc/sys/linux/sys/utsname.h: Ditto.
15892         * libc/sys/linux/sys/wait.h: Ditto.
15893
15894 2000-12-08  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
15895
15896         * Makefile.am: $(INSTALL), $(INSTALL_DATA), and $(INSTALL_PROGRAM)
15897         can be a relative path to $(top_srcdir)/install.sh so ensure the
15898         autoconf detected settings are properly passed recursively.
15899         Similarly, add AM_MAKEFLAGS to FLAGS_TO_PASS so they also get passed
15900         properly to subdirectories.
15901         * Makefile.in: Regenerated.
15902
15903 2000-12-07  Jay Kulpinski <jskulpin@eng01.gdds.com>
15904
15905         * libc/stdio/vfprintf.c: Minor modification to avoid requiring
15906         a floating point register unless really printing a floating
15907         point number.
15908
15909 2000-12-07  Jeff Johnston  <jjohnstn@redhat.com>
15910
15911         * libc/stdlib/ldtoa.c: Removed include of alloca.h.
15912         Also removed \r's.
15913         (asctoeg): Replaced alloca call with stack array and malloc
15914         when storage exceeds reasonable limit.
15915         (e53toe): Fixed einfin calls missing ldp parameter.
15916         (eiisinf): Hide behind check for LDBL_MANT_DIG == 64.
15917
15918 2000-12-06  Jeff Johnston  <jjohnstn@redhat.com>
15919
15920
15921         * libc/stdio/vfscanf.c: Fix typo for _NO_LONGDBL macro.
15922
15923 2000-12-06  Jeff Johnston  <jjohnstn@redhat.com>
15924
15925         * libc/stdlib/Makefile.am: Added ldtoa.c to list of sources.
15926         * libc/stdlib/Makefile.in: Regenerated.
15927         * libc/stdio/floatio.h: Added suitable MAXEXP for long double.
15928         * libc/stdio/vfieeefp.h: Added long double bit structures.
15929         * libc/stdio/vfprintf.c[WANT_IO_LONG_DBL]: Added long double support.
15930         [WANT_IO_LONG_DBL](isinfl, isnanl): New static long double routines.
15931         (exponent): Changed expbuf to reasonable maximum instead of MAXEXP.
15932         * libc/stdio/vfscanf.c[WANT_IO_LONG_DBL]: Added long double support.
15933         * libc/stdlib/ldtoa.c: New file containing _ldtoa_r and
15934         _strtold routines used for conversions between character
15935         and long double.
15936
15937 Wed Dec  6 12:01:00 2000  Corinna Vinschen <vinschen@cygnus.com>
15938
15939         * libc/include/stdlib.h: Add declarations for `mkstemp' and `mktemp'.
15940
15941 2000-12-04  Joel Sherrill <joel@OARcorp.com>
15942
15943         * libc/include/machine/time.h: RTEMS systems can configure clock
15944         tick rate so use sysconf() to ask.
15945
15946 2000-12-04  Joel Sherrill <joel@OARcorp.com>
15947
15948         * libc/include/sys/times.h: Add reference to POSIX standard.
15949
15950 2000-12-04  Joel Sherrill <joel@OARcorp.com>
15951
15952         * libc/include/sys/time.h: Added BSD timer manipulation macros
15953         used by RTEMS code.
15954
15955 2000-12-04  Joel Sherrill <joel@OARcorp.com>
15956
15957         * libc/sys/rtems/crt0.c: Add stubs for functions implicitly
15958         referenced by code generated by gcc 2.8.1.
15959         (a29k): Add stubs for V_SPILL, V_FILL, V_BSD_OS, V_EPI_OS to
15960         satisfy gcc.
15961
15962 2000-12-04  Joel Sherrill <joel@OARcorp.com>
15963
15964         * libc/stdlib/system.c: Avoid compiling do_system() for RTEMS.
15965
15966 2000-12-04  Joel Sherrill <joel@OARcorp.com>
15967
15968         * libc/include/ieeefp.h: Added entries for OpenCores CPUs.
15969
15970 2000-12-04  Joel Sherrill <joel@OARcorp.com>
15971
15972         * configure.host (or16, or32): New entries for OpenCores
15973         OpenRisc CPUs.
15974         (*-*-rtems*): Add -DNO_EXEC.
15975
15976 2000-12-04  Keith Outwater <vac4050@cae597.rsc.raytheon.com>
15977
15978         * libc/include/sys/errno.h: Added comments on many error numbers.
15979         * libc/string/strerror.c: Added some more strings.
15980
15981 2000-11-30  Jeff Johnston <jjohnstn@redhat.com>
15982
15983         * libc/sys/sh/syscalls.c (_link): New stub.
15984
15985 2000-11-29  Nick Clifton  <nickc@redhat.com>
15986
15987         * configure.host: Add xscale target.
15988         * libc/machine/xscale: New directory.
15989         * libc/machine/xscale/Makefile.am: New file.
15990         * libc/machine/xscale/Makefile.in: New file.
15991         * libc/machine/xscale/aclocal.m4: New file.
15992         * libc/machine/xscale/configure: New file.
15993         * libc/machine/xscale/configure.in: New file.
15994         * libc/machine/xscale/memchr.S: New file.
15995         * libc/machine/xscale/memcmp.S: New file.
15996         * libc/machine/xscale/memcpy.S: New file.
15997         * libc/machine/xscale/memmove.S: New file.
15998         * libc/machine/xscale/memset.S: New file.
15999         * libc/machine/xscale/strchr.S: New file.
16000         * libc/machine/xscale/strcmp.S: New file.
16001         * libc/machine/xscale/strcpy.S: New file.
16002         * libc/machine/xscale/strlen.S: New file.
16003
16004 Sat Nov 25 11:24:00 2000  Corinna Vinschen <vinschen@cygnus.com>
16005
16006         * libc/include/sys/types.h: Change i to `__i' in FD_ZERO macro to
16007         avoid compiler warnings.
16008
16009 2000-11-22  Michael Meissner  <meissner@redhat.com>
16010
16011         * libc/posix/execl.c (execl): Don't reference environ directly,
16012         reference it only via a static pointer to avoid problems with some
16013         shared library systems and with different uses of small data where
16014         the user specifies his own version of environ.
16015         * libc/posix/execv.c (execv): Ditto.
16016         * libc/stdlib/getenv_r.c (_findenv_r): Ditto.
16017         * libc/stdlib/setenv_r.c (_setenv_r,_unsetenv_r): Ditto.
16018         * libc/stdlib/system.c (system, !cygwin32 case): Ditto.
16019
16020         * libc/stdlib/getenv.c (environ): Delete unused reference to
16021         environ.
16022
16023         * libc/stdlib/getenv_r.c: Make initial comment friendlier to emacs
16024         colorization.
16025         * libc/stdlib/system.c: Ditto.
16026
16027 Tue Nov 21 20:32:21 2000  Christopher Faylor <cgf@cygnus.com>
16028
16029         * libc/sys/cygwin/sys/dirent.h: Change definition to avoid necessity of
16030         including windows headers.
16031
16032 2000-11-20  Jeff Johnston  <jjohnstn@redhat.com>
16033
16034         * libc/include/sys/unistd.h: Removed definition of MAXNAMLEN.
16035         * libc/include/dirent.h: Added definition of MAXNAMLEN if
16036         not defined by sys/dirent.h.
16037         * libc/posix/execvp.c: Added include of dirent.h to get
16038         MAXNAMLEN value which used to be in unistd.h.
16039
16040 Mon Nov  6 12:56:00 2000  Corinna Vinschen <vinschen@cygnus.com>
16041
16042         * libc/include/sys/types.h: Change type of i to `size_t' in
16043         FD_ZERO macro to avoid compiler warnings.
16044
16045 Sun Oct 29 20:06:41 2000  Christopher Faylor <cgf@cygnus.com>
16046
16047         * libc/include/stdlib.h: Avoid declaring cfree under Cygwin.
16048         * libc/include/malloc.h: Ditto.  Also remove obsolete declaration.
16049
16050 Tue Oct 24 20:16:00 2000  Corinna Vinschen <vinschen@cygnus.com>
16051
16052         * libc/include/sys/unistd.h: Add defines for sysconf values
16053         _SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES and
16054         _SC_AVPHYS_PAGES.
16055
16056 Mon Oct  9 20:26:33 2000  Christopher Faylor <cgf@cygnus.com>
16057
16058         * libc/include/sys/unistd.h: Add getdtablesize and setdtablesize
16059         declarations for __CYGWIN__.
16060
16061 2000-09-19  Geoffrey Keating  <geoffk@cygnus.com>
16062
16063         * libc/signal/signal.c (__sigtramp_r): ISO C requires
16064         case labels to be integral constant expressions, so
16065         use an if/else tree instead.
16066         (_raise_r): Likewise.
16067
16068 2000-09-13  Jeff Johnston  <jjohnstn@redhat.com>
16069
16070         * libc/machine/v850/setjmp.S: Fixed tab problems caused by
16071         clipping patch from e-mail reader.
16072
16073 2000-09-13  Will Cohen  <wcohen@redhat.com>
16074
16075         * libc/machine/v850/setjmp.S (_setjmp): Save r1 rather than r0.
16076         Added return value 0.
16077         (_longjmp): Allow longjmp to return value of second argument
16078         passed to it.
16079
16080 2000-09-06  Jeff Johnston <jjohnstn@redhat.com>
16081
16082         * libc/include/sys/types.h (FD_ZERO): Remove call to bzero and
16083         inline code to prevent having to include another header file.
16084
16085 Wed Sep  6 15:06:40 2000  Christopher Faylor <cgf@cygnus.com>
16086
16087         * Makefile.am: Fix space vs. tab problem in install-data-local.
16088         * Makefile.in: Regenerate.
16089
16090 Wed Sep  6 13:49:51 2000  Christopher Faylor <cgf@cygnus.com>
16091
16092         * libc/include/_ansi.h (_EXFUN): Define specially for __CYGWIN__.
16093         (_EXPARM): New macro for defining a function parameter.
16094         * libc/include/stdlib.h: Use _EXPARM.
16095         * libc/stdlib/mallocr.c: Don't build cfree for Cygwin.
16096
16097 2000-09-05  Manfred Hollstein  <manfredh@redhat.com>
16098
16099         * Makefile.am (install-data-local): Use optional $(DESTDIR) where
16100         required, as documented in the gnu coding standards.
16101         * Makefile.in: Regenerate.
16102
16103 2000-09-05  Jeff Johnston <jjohnstn@redhat.com>
16104
16105         * libc/include/fcntl.h (_FNDELAY): Changed to be _FNONBLOCK to
16106         make O_NDELAY and O_NONBLOCK have the same value.
16107
16108 2000-08-30  Kazu Hirata  <kazu@hxi.com>
16109
16110         * libc/sys/h8300hms/crt0.S: Optimize for both speed and code size.
16111
16112 2000-08-30  Werner Almesberger  <Werner.Almesberger@epfl.ch>
16113
16114         * libc/posix/execve.c: included unistd.h for "_execve" prototype.
16115         * libc/misc/unctrl.c libc/sys/sysvi386/crt0.c (sccsid): changed
16116         "#ifndef lint" to "#if defined(LIBC_SCCS) && !defined(lint)" like
16117         everywhere else.
16118
16119 2000-08-30  Geoffrey Keating  <geoffk@cygnus.com>
16120
16121         * libc/string/swab.c: Specify that it's defined in <unistd.h>.
16122         * libc/include/string.h: Don't include <sys/types.h>,
16123         as it causes really bad namespace pollution.  Don't declare
16124         swab(), it is properly declared in unistd.h.
16125
16126 2000-08-29  Werner Almesberger  <Werner.Almesberger@epfl.ch>
16127
16128         * libc/unix/getpwent.c (getpwnam, getpwuid, getpwent): removed
16129         (broken) support for non-existent /etc/passwd field "comment".
16130
16131 2000-08-27  Werner Almesberger  <Werner.Almesberger@epfl.ch>
16132
16133         * libc/posix/scandir.c (DIRSIZ, scandir): use struct dirent.d_namlen
16134         only if _DIRENT_HAVE_D_NAMLEN is defined.
16135         (alphasort): aligned prototype with
16136         libc/sys/cygwin/sys/dirent.h and simplified function body.
16137         * libc/posix/telldir.c (telldir): changed "telldir" prototype to
16138         long telldir (DIR *) as mentioned in annex B of POSIX.1
16139
16140 2000-08-27  Werner Almesberger  <Werner.Almesberger@epfl.ch>
16141
16142         * libc/machine/i386/i386mach.h: added SOTYPE_FUNCTION to set type
16143         of global entry points if _I386MACH_NEED_SOTYPE_FUNCTION is defined;
16144         Added __CLI and __STI macros (controlled via
16145         _I386MACH_ALLOW_HW_INTERRUPTS macro).
16146         * libc/machine/i386/f_atan2.S libc/machine/i386/f_atan2f.S
16147         libc/machine/i386/f_frexp.S libc/machine/i386/f_frexpf.S
16148         libc/machine/i386/f_ldexp.S libc/machine/i386/f_ldexpf.S
16149         libc/machine/i386/f_log.S libc/machine/i386/f_log10.S
16150         libc/machine/i386/f_log10f.S libc/machine/i386/f_logf.S
16151         libc/machine/i386/f_tan.S libc/machine/i386/f_tanf.S
16152         libc/machine/i386/memchr.S libc/machine/i386/memcmp.S
16153         libc/machine/i386/memcpy.S libc/machine/i386/memmove.S
16154         libc/machine/i386/memset.S libc/machine/i386/setjmp.S
16155         libc/machine/i386/strchr.S libc/machine/i386/strlen.S:
16156         (that's libc/machine/i386/*.S) added SOTYPE_FUNCTION(symbol)
16157         for all global entry points.
16158         * libc/machine/i386/setjmp.S: removed code replicated in
16159         libc/machine/i386/i386mach.h and included i386mach.h instead;
16160         Use __CLI and __STI instead of cli and sti.
16161
16162 2000-08-25  DJ Delorie  <dj@redhat.com>
16163
16164         * libc/include/sys/unistd.h (environ): this one isn't from the
16165         DLL, no __IMPORT
16166
16167 Fri Aug 25 13:37:11 2000  Christopher Faylor <cgf@cygnus.com>
16168
16169         * libc/stdlib/system.c (do_system): Eliminate explicit declaration of
16170         environ when compiling under cygwin since it is already declared in
16171         unistd.h.
16172
16173 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
16174
16175         * libc/stdlib/mprec.c (ulp, b2d, d2b): changed a few expressions
16176         like  x << y-z  to the equivalent  x << (y-z).
16177         (d2b): changed if statements with assignment to perform the
16178         assignment prior to the if check.
16179         * libc/reent/reent.c: included stdlib.h for "_free_r" prototype.
16180         * libc/unix/getpass.c (getpass): moved "echo" assignment out of if.
16181         * libc/unix/ttyname.c: included string.h for "strcpy" prototype.
16182         * libc/unix/getcwd.c (ISDOT): added parentheses to clarify && and ||
16183         precedence.
16184         * libc/include/sys/unistd.h: added "vfork" prototype (for popen.c).
16185         Added "_execve" prototype (for execl.c, execle.c, execv.c, and
16186         execve.c).
16187         * libc/posix/popen.c (popen): added parentheses to clarify && and ||
16188         precedence.
16189         * libm/math/e_cosh.c (__ieee754_cosh): changed parentheses to
16190         clarify && and || precendence (and to remove pascalism).
16191         * libm/math/e_sinh.c (__ieee754_sinh): Ditto.
16192         * libm/math/s_infconst.c: added another pair of braces to all
16193         initializers for __infinity (need three: for __infinity[1] array,
16194         for union __dmath, and for i[2]).
16195
16196 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
16197
16198         * libc/stdlib/abort.c: changed description: uses "raise" instead of
16199         "getpid" and "kill"; added: uses "write" and "_exit".
16200         Also included unistd.h for "_exit" prototype.
16201         * libc/stdlib/system.c: included unistd.h for "execve" prototype,
16202         reent.h for "_fork_r" and "_wait_r" prototypes.
16203         (do_system): changed  extern char *environ[] to POSIX-friendly
16204         extern char **environ.
16205         * libc/stdlib/wctomb_r.c: included string.h for "strlen" and "strcmp"
16206         prototypes.
16207         * libc/stdlib/remove.c: included reent.h for "_unlink_r" prototype.
16208         * libc/reent/execr.c: included sys/wait.h for "wait" prototype.
16209         * libc/reent/fstatr.c: included sys/stat.h for "fstat" prototype.
16210         * libc/reent/openr.c: included fcntl.h for "open" prototype.
16211         * libc/reent/signalr.c: included signal.h for "kill" prototype,
16212         unistd.h for "getpid" prototype.
16213         * libc/reent/statr.c: included sys/stat.h for "stat" prototype.
16214         * libc/reent/timer.c: included sys/time.h for "gettimeofday" prototype.
16215         * libc/unix/getut.c (utmpname): removed local, incorrect "strdup"
16216         prototype.  Also included stdlib.h for "abort", string.h for
16217         "strdup" and "strncmp" prototypes.
16218         * libc/unix/getlogin.c: included string.h for "strncmp", "memset", and
16219         "strncpy", unistd.h for "read" and "close" prototypes.
16220         * libc/posix/execvp.c: included string.h for "strchr", "strlen", and
16221         "strcat" prototypes.
16222
16223 2000-08-23  Werner Almesberger  <Wernen Almesberger@epfl.ch>
16224
16225         * libc/stdio/stdio.c (__swrite): declare "oldmode" only if it's
16226         used later (ifdef __SCLE)
16227         * libc/stdio/vfscanf.c (__svfscanf): declare "state" only if it's
16228         used later (ifdef MB_CAPABLE)
16229         * libc/string/memset.c (memset): removed unused variables "count"
16230         and "unaligned_addr"
16231         * libc/locale/locale.c (_setlocale_r): declare "lc_ctype" and
16232         "last_lc_ctype" only of they're used later (ifdef MB_CAPABLE)
16233         * libc/unix/getpwent.c (getpwnam): removed unused variables "uid"
16234         and "gid"
16235
16236 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
16237
16238         * libc/stdlib/envlock.c: changed documented "__env_lock" and
16239         "__env_unlock" prototype from "void *" or "char *" to
16240         "struct _reent *" to match real function.  Also added include
16241         of envlock.h.
16242         * libc/stdlib/mlock.c: changed documented "__malloc_lock" and
16243         "__malloc_unlock" prototype from "void *" or "char *" to
16244         "struct _reent *" to match real function.
16245         * libc/stdlib/envlock.h: added "__env_lock" and "__env_unlock"
16246         prototypes (for getenv_r.c and setenv_r.c).
16247
16248 2000-08-22  Werner Almesberger  <Werner.Almesberger@epfl.ch>
16249
16250         * libc/unix/getut.c (utmpname): added _CONST to reflect common use
16251         and prototype in cygwin's utmp.h
16252
16253 2000-08-16  Eric Fifer  <efifer@sanwaint.com>
16254
16255         * libc/stdio/vfprintf.c (_vfprintf_r): suppress . with "%.0f", 0.1
16256
16257 2000-08-09  Nick Clifton  <nickc@cygnus.com>
16258
16259         * libc/sys/arm/setjmp.S: Recode to clean up function prologues and
16260         epilogue and to allow the functions to be used in a Thumb based
16261         toolchain.
16262
16263 2000-08-08  Jeff Johnston <jjohnstn@redhat.com>
16264
16265         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Fixed code
16266         so size of 0 results in nothing being written to string.
16267         Also fixed code so that when size is non-zero, there is only
16268         a maximum of size - 1 characters written to the array and
16269         a nul terminator is appended at the end.
16270         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
16271
16272 2000-08-01  DJ Delorie  <dj@redhat.com>
16273
16274         * libc/include/sys/config.h: define __IMPORT appropriately
16275         * libc/include/ctype.h (_ctype_): use __IMPORT
16276         * libc/include/math.h (__infinity, signam, _LIB_VERSION): ditto
16277         * libc/include/math.h (__mb_cur_max): ditto
16278         * libc/include/time.h (_timezone, _daylight, _tzname): ditto
16279         * libc/include/unctrl.h (__unctrl, __unctrllen): ditto
16280         * libc/include/errno.h (_sys_errlist, _sys_nerr): ditto
16281         * libc/include/unistd.h (environ): ditto
16282
16283 2000-07-28  Michael Meissner  <meissner@redhat.com>
16284
16285         * libc/include/math.h (__infinity): Declare as an array without
16286         bounds to get around small data support.  Rewrite Cygwin support
16287         to be more general.
16288         * libm/math/s_infconst.c (__infinity): Ditto.
16289         * libm/mathfp/s_infconst.c (__infinity): Ditto.
16290
16291 Thu Jul 27 10:46:01 2000  Christopher Faylor <cgf@cygnus.com>
16292
16293         * libc/include/math.h: Use appropriate dll import linkage for
16294         __infinity under Cygwin.
16295
16296 2000-07-13  DJ Delorie  <dj@cygnus.com>
16297
16298         * libc/stdio/vfprintf.c: pad 0.0 correctly with %e
16299
16300 Wed Jun 28 14:08:00 2000  Keith Walker  <keith.walker@arm.com>
16301
16302         * libc/sys/arm/crt0.S (.LC30): Added missing length parameter
16303         to argument list for AngelSWI_Reason_GetCmdLine.
16304
16305 Tue Jun 27 15:49:00 2000  Marek Michalkiewicz  <marekm@linux.org.pl>
16306
16307         * configure.host: Add support for AVR target.
16308         * libc/include/machine/ieeefp.h: Likewise.
16309         * libc/include/sys/config.h: Likewise.
16310
16311 Thu Jun 22 18:35:00 2000  Ranjith Kumaran  <ranjith@cygnus.com>
16312
16313         * README: Newlib 1.8.2 must be built in a separate directory
16314         than the sources.
16315
16316 Tue Jun 20 14:30:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
16317
16318         * libc/include/sys/reent.h (_rand_next): Added __extension__
16319         qualifier as long long type is not strict ANSI.
16320         * libc/stdlib/rand.c (rand): Added __extension__ qualifier
16321         to long long constant.
16322
16323 Fri Jun 16 23:02:00 2000  Corinna Vinschen <corinna@vinschen.de>
16324
16325         * libc/include/sys/unistd.h: Add prototypes for `seteuid' and
16326         `setegid' provided by Cygwin.
16327
16328 Thu Jun 15  0:21:00 2000  Corinna Vinschen <corinna@vinschen.de>
16329
16330         * libc/stdio/fdopen.c: Take explicit given bin/textmode into
16331         account for Cygwin.
16332
16333 Fri Jun  9 14:28:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
16334
16335         * libc/include/sys/reent.h (_rand_next): Changed to
16336         unsigned long long and moved to end of _reent struct in _new union.
16337         (_REENT_INIT): Changed to move _rand_next initialization.
16338         * libc/stdlib/rand.c (rand): Changed to use unsigned long long
16339         linear congruential algorithm that is used by DJGPP.
16340
16341 Thu Jun  8 21:18:00 2000  Ranjith Kumaran  <ranjith@cygnus.com>
16342
16343         * libc/include/stdlib.h: Set RAND_MAX to __RAND_MAX.
16344         * libc/include/sys/config.h: Define __RAND_MAX.
16345
16346 Thu Jun  8 17:54:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
16347
16348         * libc/stdlib/rand_r.c: New algorithm that meets minimal
16349         standard.
16350
16351 Fri Jun  2 23:02:11 2000  Christopher Faylor <cgf@cygnus.com>
16352
16353         * libc/include/string.h: Work around problem with strsignal and gdb.
16354
16355 Tue May 30 13:13:01 2000  Christopher Faylor <cgf@cygnus.com>
16356
16357         * libc/include/ctype.h: __CYGWIN32__ -> __CYGWIN__
16358         * libc/include/malloc.h: Ditto.
16359         * libc/include/process.h: Ditto.
16360         * libc/include/stdio.h: Ditto.
16361         * libc/include/stdlib.h: Ditto.
16362         * libc/include/time.h: Ditto.
16363         * libc/include/machine/setjmp.h: Ditto.
16364         * libc/include/sys/errno.h: Ditto.
16365         * libc/include/sys/signal.h: Ditto.
16366         * libc/include/sys/stat.h: Ditto.
16367         * libc/include/sys/time.h: Ditto.
16368         * libc/include/sys/unistd.h: Ditto.
16369         * libc/include/string.h: Ditto.  strsignal should return a const char *.
16370
16371 2000-05-26  Marek Michalkiewicz  <marekm@linux.org.pl>
16372
16373         * libm/common/s_expm1.c (expm1): Add curly braces, avoid warnings.
16374         * libm/common/s_log1p.c (log1p): Likewise.
16375         * libm/common/s_scalbn.c (scalbn): Likewise.
16376         * libm/math/e_log.c: Likewise.
16377         * libm/math/e_asin.c: Likewise.
16378         * libm/math/ef_asin.c: Likewise.
16379         * libm/math/e_j0.c (pzero, qzero): Remove redundant test.
16380         * libm/math/e_j1.c (pone, qone): Likewise.
16381         * libm/math/ef_j0.c (pzerof, qzerof): Likewise.
16382         * libm/math/ef_j1.c (ponef, qonef): Likewise.
16383         * libm/mathfp/e_j0.c (pzero, qzero): Likewise.
16384         * libm/mathfp/e_j1.c (pone, qone): Likewise.
16385         * libm/mathfp/ef_j0.c (pzerof, qzerof): Likewise.
16386         * libm/mathfp/ef_j1.c (ponef, qonef): Likewise.
16387
16388 2000-05-19  DJ Delorie  <dj@cygnus.com>
16389
16390         * libc/stdio/stdio.c (__stextmode): new, see if file is text mode
16391         (__sread): always read in binary mode
16392         (__swrite): always write in binary mode
16393         * libc/include/stdio.h: no getc/putc macros for cygwin; causes
16394         compatibility issues with different dll versions
16395         * libc/stdio/fopen.c: use __stextmode
16396         * libc/stdio/fdopen.c: ditto
16397         * libc/stdio/freopen.c: ditto
16398         * libc/stdio/findfp.c: set up __SCLE for std{in,out,err}
16399         * libc/stdio/local.h: declare __stextmode
16400
16401 2000-05-18  DJ Delorie  <dj@cygnus.com>
16402
16403         * libc/stdio/fgets.c (fgets): perform CRLF conversions if __SCLE
16404
16405 Mon May 15 18:54:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
16406
16407         * libc/include/ctype.h: Changed tolower and toupper macros
16408         to use __extension__ to prevent pedantic warnings.
16409
16410 Mon May 15 14:26:00 2000  Joel Sherrill  <joel@oarcorp.com>
16411
16412         * libc/sys/rtems/sys/time.h: Add macros for manipulating timeval
16413         structures.
16414
16415 Wed May 10 19:24:53 2000  Jim Wilson  <wilson@cygnus.com>
16416
16417         * libc/include/machine/ieeefp.h: Add ia64 support.
16418         * configure.host: Likewise.
16419
16420 Wed May 10 13:52:24 2000  Egor Duda <deo@logos-m.ru>
16421
16422         * libc/time/asctime_r.c (asctime_r): Change output format. Day of
16423         month is now padded with space, not zero.  This now conforms to
16424         ANSI standard.
16425
16426 Wed May 03 17:57:00 2000  Corinna Vinschen <corinna@vinschen.de>
16427
16428         * libc/include/sys/errno.h: Add define for ENOSHARE ("No such
16429         host or network path") used by cygwin. Add some comments.
16430
16431 Tue May 02 23:45:48 2000  DJ Delorie  <dj@cygnus.com>
16432
16433         * libc/include/stdio.h (FILE): define __SCLE for "convert line
16434         endings" for Cygwin.
16435         (__sgetc): convert line endings if needed
16436         (__sputc): ditto
16437         * libc/stdio/fdopen.c (_fdopen_r): Remember if we opened in text mode
16438         * libc/stdio/fopen.c (_fopen_r): ditto
16439         * libc/stdio/freopen.c (freopen): ditto
16440         * libc/stdio/fread.c (fread): perform CRLF conversions if __SCLE
16441         * libc/stdio/fvwrite.c (__sfvwrite): ditto
16442
16443 Thu Apr 27 07:45:48 2000  Alexandre Oliva  <aoliva@cygnus.com>
16444
16445         * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Use
16446         post-increment when it is worth it, spacewise.
16447
16448 Mon Apr 17 12:46:00 2000  Marek Michalkiewicz <marekm@linux.org.pl>
16449
16450         * libc/signal/signal.c (_signal_r) : Removed unused local variable temp.
16451         * libc/stdio/findfp.c (std): Added declaration of flags and file.
16452         * libc/stdio/mktemp.c (_gettemp, _mkstemp_r, mkstemp): Added int
16453         return type.
16454         * libc/stdio/putchar.c (putchar): Added return statement.
16455         * libc/stdio/refill.c (lflush): Added correct parentheses.
16456         * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
16457         * libc/stdio/vfscanf.c (__svfscanf): Changed sprintf call which
16458         prints long value to use l qualifier.
16459         * libc/stdlib/dtoa.c (_dtoa_r): Added parentheses to remove warning
16460         messages and initialized local values: ilim, ilim1, and spec_case.
16461         * libc/stdlib/ecvtbuf.c (print_e): Removed unused variable dp.
16462         * libc/stdlib/mbctype.h (_issjis1, _issjis2): Added parentheses.
16463         * libc/stdlib/mprec.c: Ditto.
16464         * libc/stdlib/setenv_r.c: Ditto.
16465         * libc/stdlib/strtod.c: Ditto.
16466         * libc/stdlib/strtol.c: Ditto.
16467         * libc/stdlib/strtoul.c: Ditto.
16468         * libm/common/sf_expm1.c: Added curly braces to if else clauses.
16469         * libm/common/sf_log1p.c: Ditto.
16470         * libm/common/sf_scalbn.c: Ditto.
16471         * libm/math/ef_log.c: Ditto.
16472
16473 Sun Apr 16 12:45:00 2000  Corinna Vinschen <corinna@vinschen.de>
16474
16475         * libc/posix/execvp.c (execvp): Check path for
16476         trailing slash.
16477
16478 Fri Mar 31 20:39:00 2000  Corinna Vinschen <corinna@vinschen.de>
16479
16480         * libc/include/sys/unistd.h: Add prototypes for
16481         fchmod, fchown, lchown.
16482
16483 Fri Mar 24 15:34:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
16484
16485         * acinclude.m4: Changed release to 1.8.2.
16486         * aclocal.m4 configure doc/aclocal.m4 doc/configure
16487           libc/aclocal.m4 libc/configure libc/machine/aclocal.m4
16488           libc/machine/configure libc/machine/a29k/aclocal.m4
16489           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
16490           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
16491           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
16492           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
16493           libc/machine/fr30/configure libc/machine/h8300/aclocal.m4
16494           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
16495           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
16496           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
16497           libc/machine/i386/configure libc/machine/i960/aclocal.m4
16498           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
16499           libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
16500           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
16501           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
16502           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
16503           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
16504           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
16505           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
16506           libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
16507           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
16508           libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
16509           libc/machine/tic80/configure libc/machine/v850/aclocal.m4
16510           libc/machine/v850/configure libc/machine/w65/aclocal.m4
16511           libc/machine/w65/configure libc/machine/z8k/aclocal.m4
16512           libc/machine/z8k/configure libc/sys/aclocal.m4
16513           libc/sys/aclocal.m4 libc/sys/configure
16514           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
16515           libc/sys/arm/aclocal.m4 libc/sys/arm/configure
16516           libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
16517           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
16518           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
16519           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
16520           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
16521           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
16522           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
16523           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
16524           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
16525           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
16526           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
16527           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
16528           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
16529           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
16530           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
16531           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
16532           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
16533           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
16534           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
16535           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
16536           libm/aclocal.m4 libm/configure: Regenerated.
16537
16538 2000-03-24  Nick Clifton  <nickc@cygnus.com>
16539
16540         * libc/sys/arm/syscalls.c: Fix compile time warnings.
16541         (do_AngelSWI): Add "cc" to list o registers clobbered.
16542
16543 Thu Mar 22 14:57:00 2000  Fernando Nasser <fnasser@redhat.com>
16544
16545         * libc/sys/arm/syscalls.c (do_AngelSWI): Prevent registers with valid
16546         information to be clobbered by an Angel C library support syscall.
16547
16548 Tue Mar 21 19:08:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
16549
16550         * libc/stdlib/envlock.c: Fixed comment typo.
16551
16552 Fri Mar 17 15:37:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
16553
16554         * libc/stdio/vfscanf.c (__svfscanf): Fixed floating point
16555         code to update nread as each character is processed instead
16556         of using buffer contents which throw away leading zeroes.
16557
16558 Mon Mar 13 15:22:00 2000  Sergei Organov <osv@javad.ru>
16559
16560         * libm/mathfp/sf_sqrt.c: Change _DOUBLE_IS_32BITS sqrt call to sqrtf.
16561
16562 Fri Mar 10 16:09:20 2000  Jeff Johnston <jjohnstn@cygnus.com>
16563
16564         * libc/include/string.h: Include <sys/types.h>.
16565
16566 Fri Mar 10 14:53:50 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
16567
16568         * libc/stdio/putw.c (putw): Return 0 on success, to be compliant
16569         with XSH5, not SVID.
16570
16571 Thu Mar  9 17:20:41 2000  Jeff Johnston <jjohnstn@cygnus.com>
16572
16573         * libc/include/string.h: Changed last argument back to ssize_t
16574         to make it compatible with XPG4 definition which is
16575         defined in <unistd.h>.  There is a conflict in the SVID 3
16576         and XPG4 definitions and newlib will settle with XPG4.
16577         * libc/string/swab.c: Ditto.
16578
16579 Wed Mar  8 17:11:41 2000  Jeff Johnston <jjohnstn@cygnus.com>
16580
16581         * libc/include/string.h: Changed last argument to size_t.
16582         * libc/string/swab.c: Changed last argument to size_t.
16583
16584 Wed Mar  8 00:46:41 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
16585
16586         * libc/reent/Makefile.am (lib_a_SOURCES): Added unlinkr.c.
16587         (CHEWOUT_FILES): Added unlinkr.def.
16588         * libc/reent/Makefile.in: Rebuilt.
16589         * libc/sys.tex: Include unlinkr.def.
16590         * libc/reent/linkr.c (_unlink_r): Moved to...
16591         * libc/reent/unlinkr.c: ... new file.
16592
16593 Wed Mar  8 00:43:07 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
16594
16595         * libc/string/Makefile.am (lib_a_SOURCES): Added swab.c.
16596         (CHEWOUT_FILES): Added swab.def.
16597         * libc/string/Makefile.in: Rebuilt.
16598         * libc/string/string.tex: Include swab.def.
16599         * libc/include/string.h (swab): Declare.
16600         * libc/string/swab.c: New file.
16601
16602 Wed Mar  8 00:38:35 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
16603
16604         * libc/stdio/Makefile.am (lib_a_SOURCES): Added getw.c and putw.c.
16605         (CHEWOUT_FILES): Added getw.def and putw.def.
16606         * libc/stdio/Makefile.in: Rebuilt.
16607         * libc/stdio/stdio.tex: Include getw.def and putw.def.
16608         * libc/stdio/getw.c: New file.
16609         * libc/stdio/putw.c: New file.
16610
16611 Fri Feb 25 14:50:50 2000  Jeff Johnston <jjohnstn@cygnus.com>
16612
16613         * libc/stdio/flags.c (__sflags): Added check that mode[1]
16614         is non-null before looking at mode[2].
16615
16616 Thu Feb 24 11:43:00 2000  Ran Cabell <rcabell@norfolk.infi.net>
16617
16618         * libm/mathfp/sf_atan2.c: Fix atan2 typo for _DOUBLE_IS_32_BITS.
16619         * libm/mathfp/sf_atan.c: Ditto.
16620
16621 Thu Feb 24 11:39:00 2000  Joel Sherrill <joel@OARcorp.com>
16622
16623         * libc/include/sys/stat.h: Add RTEMS prototype for lstat.
16624
16625 Tue Feb 22 14:37:00 2000  Ran Cabell <rcabell@norfolk.infi.net>
16626
16627         * libm/mathfp/sf_exp.c: Corrected _DOUBLE_IS_32_BITS to be
16628         _DOUBLE_IS_32BITS.
16629
16630 Mon Feb 21 11:43:50 2000  Jeff Johnston <jjohnstn@cygnus.com>
16631
16632         * libc/stdio/vfprintf.c (VFPRINTF): Added CHECK_INIT
16633         call prior to calling _VFPRINTF_R so reentrant data area is set.
16634         (_VFPRINTF_R): Removed now extraneous CHECK_INIT call.
16635
16636 Thu Feb 17 01:42:50 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
16637
16638         * libc/stdio/vfscanf.c (limits.h): #include.
16639         (MAX_LONG_LEN): #define.
16640         (__svfscanf): Handle floating point numbers with arbitrary amounts
16641         of leading zeroes.
16642
16643 2000-02-15  Nick Clifton  <nickc@cygnus.com>
16644
16645         * libc/sys/arm/syscalls.c (_fstat): Initialise all fields to
16646         zero.  Set the blocksize to 1024/
16647
16648 Thu Jan 20 18:57:00 2000  Fernando Nasser <fnasser@redhat.com>
16649
16650         * setvbuf.c (setvbuf):  Set size to BUFSIZ when passed a zero size
16651         with line buffering.
16652
16653 Mon Jan 10 18:43:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
16654
16655         * acinclude.m4: Changed include directory for winsup headers.
16656         * aclocal.m4 configure libc/aclocal.m4
16657           libc/configure libc/ctype/Makefile.in libc/errno/Makefile.in
16658           libc/locale/Makefile.in libc/machine/aclocal.m4
16659           libc/machine/configure libc/machine/a29k/aclocal.m4
16660           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
16661           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
16662           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
16663           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
16664           libc/machine/fr30/configure
16665           libc/machine/h8300/aclocal.m4
16666           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
16667           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
16668           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
16669           libc/machine/i386/configure libc/machine/i960/aclocal.m4
16670           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
16671           libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
16672           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
16673           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
16674           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
16675           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
16676           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
16677           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
16678           libc/machine/powerpc/configure
16679           libc/machine/sh/aclocal.m4
16680           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
16681           libc/machine/sparc/configure
16682           libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
16683           libc/machine/v850/aclocal.m4 libc/machine/v850/configure
16684           libc/machine/w65/aclocal.m4 libc/machine/w65/configure
16685           libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
16686           libc/misc/Makefile.in libc/posix/Makefile.in
16687           libc/reent/Makefile.in
16688           libc/signal/Makefile.in
16689           libc/string/Makefile.in libc/sys/aclocal.m4 libc/sys/configure
16690           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
16691           libc/sys/arm/Makefile.in libc/sys/arm/aclocal.m4
16692           libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
16693           libc/sys/cygwin/configure libc/sys/d10v/Makefile.in
16694           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
16695           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
16696           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
16697           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
16698           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
16699           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
16700           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
16701           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
16702           libc/sys/sh/Makefile.in libc/sys/sh/aclocal.m4
16703           libc/sys/sh/configure libc/sys/sparc64/aclocal.m4
16704           libc/sys/sparc64/configure libc/sys/sun4/aclocal.m4
16705           libc/sys/sun4/configure libc/sys/sysmec/aclocal.m4
16706           libc/sys/sysmec/configure libc/sys/sysnec810/aclocal.m4
16707           libc/sys/sysnec810/configure libc/sys/sysnecv850/aclocal.m4
16708           libc/sys/sysnecv850/configure libc/sys/sysvi386/aclocal.m4
16709           libc/sys/sysvi386/configure libc/sys/sysvnecv70/aclocal.m4
16710           libc/sys/sysvnecv70/configure libc/sys/tic80/aclocal.m4
16711           libc/sys/tic80/configure libc/sys/w65/aclocal.m4
16712           libc/sys/w65/configure libc/sys/z8ksim/aclocal.m4
16713           libc/sys/z8ksim/configure libc/syscalls/Makefile.in
16714           libc/time/Makefile.in libc/unix/Makefile.in libm/aclocal.m4
16715           libm/configure: Regenerated.
16716
16717 Mon Jan 10 18:43:46 2000  Jeff Johnston <jjohnstn@cygnus.com>
16718
16719         * libc/stdlib/putenv_r.c (_putenv_r): New file.
16720         * libc/stdlib/strdup_r.c (_strdup_r): New file.
16721         * libc/include/string.h: Added _strdup_r.
16722         * libc/stdlib/putenv.c: Added call to reentrant version.
16723         * libc/stdlib/strdup.c: Ditto.
16724         * libc/stdlib/Makefile.am: Added _putenv_r and _unsetenv_r.
16725         * libc/include/stdlib.h: Ditto.
16726         * libc/stdlib/Makefile.in: Regenerated.
16727         * libc/string/Makefile.in: Regenerated.
16728         * libc/stdlib/setenv.c: Added reentrant version of unsetenv.
16729         * libc/stdlib/setenv_r.c: Added unsetenv_r and changed memory
16730         management calls to reentrant versions.
16731         * libc/stdlib/wcstombs.c: Added #ifndef _REENT_ONLY wrapper.
16732         * libc/stdlib/wctomb.c: Ditto.
16733         * libc/stdlib/mblen.c: Ditto.
16734         * libc/stdlib/mbstowcs.c: Ditto.
16735         * libc/stdlib/mbtowc.c: Ditto.
16736         * libc/stdlib/getenv.c: Ditto.
16737         * libc/reent/reent.tex: Added references to _putenv_r, _setenv_r,
16738         and _strdup_r.
16739
16740 Thu Jan  6 15:33:46 2000  Christopher Faylor <cgf@cygnus.com>
16741
16742         patch from Corinna Vinschen <corinna@vinschen.de>
16743         * libc/sys/cygwin/sys/param.h: Define NGROUP_MAX as 16.
16744
16745 Mon Jan 03 14:36:00 2000  Sergei Organov <osv@javad.ru>
16746
16747         * libm/mathfp/s_atangent.c: Fix exponent calculation.
16748         * libm/mathfp/s_ldexp.c: Ditto.
16749         * libm/mathfp/sf_atangent.c: Ditto.
16750         * libm/mathfp/sf_ldexp.c: Ditto.
16751
16752 Tue Dec 14 5:42:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
16753
16754         * libc/machine/i960/setjmp.S: fix typo leaving .link_pix uncommented
16755         * libc/include/locale.h: define NULL to be 0.
16756
16757 Tue Dec  7 15:41:45 1999  Jim Wilson  <wilson@cygnus.com>
16758
16759         * libc/sys/sh/syscalls.c (stack_ptr): Move definition before first
16760         function.
16761
16762 Wed Dec  1 17:39:29 1999  Jeffrey A Law  (law@cygnus.com)
16763
16764         * libc/machine/mn10300/setjmp.S: Handle am33.
16765
16766 1999-11-26  Nick Clifton  <nickc@cygnus.com>
16767
16768         * libc/sys/arm/syscalls.c: Add function prototypes.
16769         (stack_ptr): Move declaration before function definitions.
16770
16771 Sat Nov 20 17:13:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
16772
16773         * NEWS: Updated version information.
16774         * README: Ditto.
16775
16776 Tue Nov 09 12:19:21 1999  Jeff Johnston <jjohnstn@cygnus.com>
16777
16778         * libc/machine/i386/strchr.S: Fixed alignment test.
16779
16780 Thu Oct 28 05:30:46 1999  Andrew Cagney  <cagney@makita.cygnus.com>
16781
16782         * libc/sys/d10v/crt0.S (_start): Construct a real stack frame.
16783
16784 Thu Oct 28 15:29:11 1999  Andrew Cagney  <cagney@b1.cygnus.com>
16785
16786         * libc/sys/d10v/crt0.S (_start): Initialize both SPI and SPU
16787         ensuring that there is space between the two.
16788
16789 Thu Oct 14 13:39:21 1999  Christopher Faylor <cgf@cygnus.com>
16790
16791         * libc/stdio/flags.c: Conditionalize check for 't' for cygwin case
16792         only.
16793
16794 1999-10-08  Vadim Egorov  <egorovv@1c.ru>
16795
16796         * libc/include/stdlib.h: add ptsname, grantpt, unlockpt to cygwin
16797         section
16798
16799 Sat Oct  2 02:02:00 MEST 1999  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
16800
16801         * libc/machine/sh/asm.h: Added __SH4_SINGLE__ to DELAYED_BRANCHES
16802         * libc/machine/sh/memcpy.S: Fix line wrapping in SL macro
16803
16804 Fri Oct  1 13:17:59 CDT 1999  <joel@OARcorp.com>
16805         * libc/include/grp.h: Added getgrnam_r and getgrgid_r prototypes
16806           per POSIX 1003.1b.
16807         * libc/include/pwd.h: Added getpwnam_r and getpwuid_r prototypes
16808           per POSIX 1003.1b.
16809
16810 1999-09-13  DJ Delorie  <dj@cygnus.com>
16811
16812         * libc/stdio/mktemp.c (_gettemp): on cygwin, check for EACCESS
16813         also.
16814
16815 Thu Sep  9 15:31:00 1999  Jeff Johnston <jjohnstn@cygnus.com>
16816
16817         * setvbuf.c (setvbuf):  When mallocing a buffer of size BUFSIZ,
16818         also note BUFSIZ as its size.
16819
16820 Tue Sep  7 17:15:00 1999  Joel Sherrill <joel@OARcorp.com>
16821
16822         * configure.host: Corrected feature defines for RTEMS.
16823         * libc/include/sys/stat.h: Added protototype for RTEMS mknod.
16824         * libc/include/sys/stat.h: mkfifo() should take const path arg.
16825         * libc/include/sys/unistd.h: pathconf() should take const path arg.
16826           Enabled usleep(), ftruncate(), and truncate() prototypes for RTEMS.
16827           Added defines for _POSIX_JOB_CONTROL, _POSIX_SAVED_IDS, and
16828           _POSIX_VERSION for RTEMS.  Added defines for _PC_ASYNC_IO,
16829           _PC_PRIO_IO, and _PC_SYNC_IO.
16830         * libc/machine/m68k/Makefile.am: Added strcpy.c and strlen.c.
16831         * libc/machine/m68k/Makefile.in: Regenerated.
16832         * libc/machine/m68k/strcpy.c: New file.
16833         * libc/machine/m68k/strlen.c: New file.
16834         * libc/stdio/tmpnam.c: Always make the returned name usable.
16835         * libc/sys/rtems/crt0.c: New version that passes all autoconf tests.
16836         * libc/sys/rtems/sys/dirent.h: New file.
16837         * libc/sys/rtems/sys/types.h: Added dev_t.
16838
16839 Tue Sep  7 17:15:00 1999   Jay Kulpinski <jskulpin@eng01.gdds.com>
16840
16841         * libc/stdlib/mprec.c: Fixed unitialized variable problem.
16842
16843 Fri Sep  3 12:35:20 1999  Jeff Johnston <jjohnstn@cygnus.com>
16844
16845         * libc/stdio/ftell.c (ftell): Backing off Joern's fix and
16846         my patch.
16847
16848 Thu Sep  2 22:05:20 1999  Christopher Faylor <cgf@cygnus.com>
16849
16850         patch from Jeff Johnston <jjohnstn@cygnus.com>
16851         * libc/stdio/ftell.c (ftell): Avoid using buffer position when the
16852         buffer is not in a useful state.
16853
16854 1999-09-01  Nick Clifton  <nickc@cygnus.com>
16855
16856         * libc/sys/arm/syscalls.c (_link): Add stub.
16857
16858 Fri Aug 27 23:09:09 1999  J"orn Rennecke <amylaar@cygnus.co.uk>
16859
16860         * ftell.c (ftell): Use actual position within buffer for text mode.
16861         * findfp.c (std): Initialize ptr->_bf._size.
16862
16863 Wed Aug 18 18:48:02 1999  Christopher Faylor <cgf@cygnus.com>
16864
16865         * libc/include/sys/unistd.h: Add nice() declaration.
16866
16867 1999-08-09  Nick Clifton  <nickc@cygnus.com>
16868
16869         * libc/sys/arm/crt0.S (change_mode): Rename to __change_mode and
16870         declare as a thumb function so that the disassembler will see the
16871         mode change.
16872
16873 Thu Aug  5 17:37:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
16874
16875         * libc/reent/reent.tex: Updated list of reentrant functions.
16876
16877 1999-07-09  Michael Meissner  <meissner@cygnus.com>
16878
16879         * libc/include/stdlib.h (_findenv{,_r}): Add prototypes.
16880
16881 Tue Jul  6 10:46:24 1999  Jeff Johnston <jjohnstn@cygnus.com>
16882
16883         * libc/stdio/sprintf.c: Moved snprintf and _snprintf_r to
16884         separate file.
16885         * libc/stdio/snprintf.c: New file.
16886         * libc/stdio/vsprintf.c: Moved vsnprintf and _vsnprintf_r to
16887         separate file.
16888         * libc/stdio/vsnprintf.c: New file.
16889         * libc/stdio/Makefile.am: Added snprintf.c and vsnprintf.c.
16890         * libc/stdio/Makefile.in: Regenerated.
16891
16892 Mon Jul  5 14:43:24 1999  Christopher Faylor <cgf@cygnus.com>
16893
16894         Patch submitted by Egor Duda <deo@logos-m.ru>:
16895         * libc/include/stdio.h: Add declarations for *nprintf.
16896         * libc/stdio/sprintf.c (snprintf): New function.
16897         (_snprintf_r): New function.
16898         * libc/stdio/vsprintf.c (vsnprintf): New function.
16899         (_vnsprintf_r): New function.
16900
16901 Wed Jun 30 16:36:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
16902
16903         * libc/Makefile.am (stmp-targetdep): Remove extraneous blank.
16904         * libm/Makefile.am (stmp-targetdep): Ditto.
16905         * libc/Makefile.in: Regenerated.
16906         * libm/Makefile.in: Ditto.
16907
16908 Fri Jun 25 10:49:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
16909
16910         * libc/Makefile.am (stmp-targetdep): Ignore "." in SUBDIRS.
16911         * libm/Makefile.am (stmp-targetdep): Ditto.
16912         * libc/Makefile.in: Regenerated.
16913         * libm/Makefile.in: Ditto.
16914
16915 Thu June 03 16:25:00 1999  Jeff Johnston <jjohnstn@cygnus.com>
16916
16917         * Makefile.am: Removed dependencies on all-recursive and added "."
16918         to the SUBDIRS list to prevent infinite recursion from occurring.
16919         Also removed any references to EXTRA_DATA.
16920         * libc/Makefile.am: Ditto.
16921         * libc/machine/Makefile.am: Ditto.
16922         * libc/machine/i386/Makefile.am: Ditto.
16923         * libm/Makefile.am: Ditto.
16924         * libc/sys/Makefile.am: Ditto.
16925         * Makefile.in: Regenerated.
16926         * aclocal.m4: Ditto.
16927         * configure: Ditto.
16928         * doc/Makefile.in: Ditto.
16929         * doc/aclocal.m4: Ditto.
16930         * doc/configure: Ditto.
16931         * libc/Makefile.in: Ditto.
16932         * libc/aclocal.m4: Ditto.
16933         * libc/configure: Ditto.
16934         * libc/machine/Makefile.in: Ditto.
16935         * libc/machine/aclocal.m4: Ditto.
16936         * libc/machine/configure: Ditto.
16937         * libc/machine/mn10300/Makefile.in: Ditto.
16938         * libc/machine/mn10300/aclocal.m4: Ditto.
16939         * libc/machine/mn10300/configure: Ditto.
16940         * libc/sys/Makefile.in: Ditto.
16941         * libc/sys/aclocal.m4: Ditto.
16942         * libc/sys/configure: Ditto.
16943         * libm/Makefile.in: Ditto.
16944         * libm/aclocal.m4: Ditto.
16945         * libm/configure: Ditto.
16946
16947 Thu June 03 16:20:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
16948
16949         * libc/include/stdlib/stdlib.tex: Add link to env_lock.
16950
16951 Fri May 28 17:09:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
16952
16953         * libc/include/stdlib.h: Add reentrant routines.
16954         * libc/stdlib/Makefile.am: Add reentrant routines.
16955         * libc/stdlib/Makefile.in: Ditto.
16956         * libc/stdlib/envlock.c: New file.
16957         * libc/stdlib/envlock.h: New file.
16958         * libc/stdlib/getenv.c: Modify to call reentrant routine.
16959         * libc/stdlib/getenv_r.c: New file.
16960         * libc/stdlib/mblen.c: Modify to call reentrant routine.
16961         * libc/stdlib/mblen_r.c: New file.
16962         * libc/stdlib/setenv.c: Modify to call reentrant routine.
16963         * libc/stdlib/setenv_r.c: New file.
16964         * libc/stdlib/stdlib.tex: Add reentrant routines.
16965
16966 Mon May 17 22:01:38 1999  Christopher Faylor <cgf@cygnus.com>
16967
16968         * libc/include/sys/types.h: Define __MS_types__ whenever
16969         cygwin or win32.
16970
16971 Sun May 16 16:02:41 1999  Christopher Faylor <cgf@cygnus.com>
16972
16973         * libc/include/machine/ieeefp.h: Always default to little
16974         endian if Windows, regardless of architecture.
16975         * libc/include/machine/sethmp.h: Define JBLEN if CYGWIN
16976         regardless of architecture.
16977
16978 Mon May  3 11:49:18 1999  Geoffrey Noer  <noer@cygnus.com>
16979
16980         * libc/include/machine/setjmp.h: Accept CYGWIN define, even if
16981         _WIN32 isn't defined.
16982
16983 Mon May  3 11:41:51 1999  Jeff Johnston  <jjohnstn@cygnus.com>
16984
16985         * libm/common/s_rint.c (rint): Add volatile qualifier for
16986         intermediate value w.
16987         * libm/common/sf_rint.c (rintf): Ditto.
16988
16989 Thu Apr 29 20:34:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
16990
16991         * libc/sys/arm/syscalls.c (remap_handle): Added check to
16992         ensure that std streams are initialized before being referenced.
16993
16994 1999-04-27  Jason Molenda  (jsm@bugshack.cygnus.com)
16995
16996         * README: Update reference to newlib@cygnus.com new
16997         newlib@sourceware.cygnus.com address.
16998
16999 Mon Apr 26 18:17:33 1999  Geoffrey Noer  <noer@cygnus.com>
17000
17001         * libc/include/sys/types.h: Define MS_types if CYGWIN is defined.
17002         * libc/include/sys/fcntl.h: Define _O_BINARY et al if CYGWIN is
17003         defined, even if _WIN32 isn't defined.
17004
17005 Sat Apr 24 19:59:55 1999  Christopher Faylor <cgf@cygnus.com>
17006
17007         * libc/include/sys/fcntl.h: Correct _O_CREATE to _O_CREAT.
17008
17009 Wed Apr 21 18:01:00 1999  Ranjith Kumaran  <ranjith@cygnus.com>
17010
17011         * libc/include/sys/reent.h: Change Long and ULong to __Long and
17012         __ULong.
17013         * libc/stdlib/dtoa.c: Ditto.
17014         * libc/stdlib/mprec.c: Ditto.
17015         * libc/stdlib/mprec.h: Ditto.
17016         * libc/stdlib/strtod.c: Ditto.
17017
17018 1999-04-21  Nick Clifton  <nickc@cygnus.com>
17019
17020         * configure.host (mcore): Remove mcore machine directory.
17021
17022 1999-04-18  Nick Clifton  <nickc@cygnus.com>
17023
17024         * libc/include/machine/ieeefp.h: Add support for mcore target.
17025         * libc/include/machine/setjmp.h: Add support for mcore target.
17026         * configure.host: Add support for mcore target.
17027
17028 1999-04-13  Mark Salter  <msalter@cygnus.com>
17029
17030         * libc/sys/arm/libcfunc.c: Moved isatty to syscall.c
17031         * libc/sys/arm/syscalls.c: Added isatty.
17032
17033 Wed Apr 07 16:06:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
17034
17035         * libc/stdlib/ecvtbuf.c (fcvtbuf): Fixed code to properly
17036         insert zeroes after significant digits.
17037
17038 Wed Mar 17 22:06:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
17039
17040         * libc/stdio/vfprintf.c (cvt): Changed floating point
17041         cvt routine to use union used by dtoa to properly determine
17042         if the sign bit is on or not.
17043         * libc/stdio/vfieeefp.h: New file
17044
17045 Wed Mar 17 17:35:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
17046
17047         * aclocal.m4: Regenerated.
17048         * configure: Regenerated.
17049
17050 Wed Mar 17 16:35:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
17051
17052         * libc/machine/i386/Makefile.am (lib_a_SOURCES): Added missing
17053         f_tanf reference.
17054         * libc/machine/i386/Makefile.in: Regenerated.
17055
17056 Tue Mar 16 14:56:36 1999  Jeff Johnston  <jjohnstn@cygnus.com>
17057
17058         * acinclude.m4: Changed to work with new automake.
17059         * configure: Regenerated.
17060         * libc/machine/i386/aclocal.m4: Regenerated.
17061         * libc/machine/i386/configure: Regenerated.
17062
17063 Tue Mar 16 13:55:36 1999  Corinna Vinschen  <corinna.vinschen@cityweb.de>
17064
17065         * libc/sys/cygwin/sys/dirent.h: Add additional prototypes
17066         for telldir() and seekdir().  Rename unused structure element
17067         for use with these two routines.
17068
17069 Fri Mar 12 19:11:58 1999  Jeff Johnston  <jjohnstn@cygnus.com>
17070
17071         * libc/time/mktime.c (validate_structure): Multiple fixes to
17072         code to handle cases where input fields are outside valid ranges.
17073         * libc/stdlib/div.c (div): Modified invalid rounding check.
17074         * libc/stdlib/ldiv.c (ldiv): Ditto.
17075
17076 Thu Mar 11 21:32:13 1999  Jeff Johnston  <jjohnstn@cygnus.com>
17077
17078         * libc/machine/i386/memcpy.S: Performance rewrite.
17079         * libc/machine/i386/memmove.S: Ditto.
17080         * libc/machine/i386/i386mach.h: Added more register definitions.
17081         * libc/include/math.h: Include <machine/fastmath.h> if -ffast-math
17082         option used.
17083         * libc/include/machine/fastmath.h: Add definitions for x86
17084         fast-math routines.
17085
17086 Wed Mar 10 17:56:00 1999 Ranjith Kumaran  <ranjith@cygnus.com>
17087
17088         * libc/stdlib/strtod.c: Change from unsigned long to ULong.
17089
17090 Tue Mar  9 14:31:58 1999  Geoffrey Noer  <noer@cygnus.com>
17091
17092         Adjust newlib headers for new Cygwin Win32 API header files:
17093         * libc/include/sys/time.h: Check _WINSOCK_H rather than
17094         _GNU_H_WINDOWS32_SOCKETS.
17095         * libc/include/sys/types.h: Ditto.
17096
17097 Tue Mar 09 15:55:00 1999 Ranjith Kumaran  <ranjith@cygnus.com>
17098
17099         *include/sys/reent.h: Add checks for size of Bigint element Long.
17100         *libc/dtoa.c: Change routines to use generic Long type.
17101         *libc/mprec.c: Change routines to use generic Long type.
17102         *libc/mprec.h: Change routines to use generic Long type.
17103
17104 Tue Mar 02 18:07:49 1999 Ranjith Kumaran  <ranjith@cygnus.com>
17105
17106         * libc/Makefile.am: Add .def files.
17107         * libc/Makefile.in: Regenerate.
17108         * libc/e_acosh.c: Documentation update.
17109         * libc/e_atanh.c: Documentation update.
17110         * libc/e_hypot.c: Documentation update.
17111         * libc/e_remainder.c: Documentation update.
17112         * libc/er_lgamma.c: Documentation update.
17113         * libc/mathfp.tex: Documentation update.
17114         * libc/s_acos.c: Documentation update.
17115         * libc/s_atan.c: Documentation update.
17116         * libc/s_atan2.c: Documentation update.
17117         * libc/s_cosh.c: Documentation update.
17118         * libc/s_fmod.c: Documentation update.
17119         * libc/s_isnan.c: Documentation update.
17120         * libc/s_log10.c: Documentation update.
17121         * libc/s_pow.c: Documentation update.
17122         * libc/w_jn.c: Documentation update.
17123
17124 Sun Feb 28 23:18:49 1999  Geoffrey Noer  <noer@cygnus.com>
17125
17126         * aclocal.m4: Regenerate.
17127         * configure: Regenerate.
17128
17129 Tue Feb 23 13:57:26 1999  Jeff Johnston  <jjohnstn@cygnus.com>
17130
17131         * libc/machine/mn10300/setjmp.S (_longjmp): Fixed longjmp
17132         to return 1 if user specified return code is 0.
17133         * libc/machine/mn10200/setjmp.S (_longjmp): Ditto.
17134
17135 Thu Feb 18 11:13:28 1999  Jeff Johnston  <jjohnstn@cygnus.com>
17136
17137         * libc/machine/mn10200/setjmp.S (_setjmp/_longjmp): Fixed setjmp
17138         to save the return address.  Fixed longjmp to return to the original
17139         calling address of setjmp and to return the user specified return code
17140         rather than default to 1.
17141         * libc/machine/mn10300/setjmp.S (_setjmp/_longjmp): Ditto.
17142
17143 Mon Feb 15 17:48:17 1999  Jeff Johnston  <jjohnstn@cygnus.com>
17144
17145         * libc/stdlib/mprec.h (mult): Define mult to be _multiply instead of _mult.
17146
17147 1999-02-10  Nick Clifton  <nickc@cygnus.com>
17148
17149         * libc/sys/arm/syscalls.c (initialise_monitor_handles): Make block
17150         volatile so that its assignments will not be discarded.
17151
17152 Wed Feb 10 17:19:40 1999  Jeff Johnston  <jjohnstn@cygnus.com>
17153
17154         * libc/include/_ansi.h: Corrected _STRICT_ANSI reference to
17155         be __STRICT_ANSI__ which is generated by compiler.
17156         * libc/include/ctype.h: Ditto.
17157         * libc/include/math.h: Ditto.
17158         * libc/include/stdio.h: Ditto.
17159         * libc/include/stdlib.h: Ditto.
17160         * libc/include/string.h: Ditto.
17161         * libc/include/sys/signal.h: Ditto.
17162
17163 1999-02-08  Nick Clifton  <nickc@cygnus.com>
17164
17165         * configure.host: Add support for StrongARM target.
17166
17167 Fri Feb  5 11:13:14 1999  Jeff Johnston  <jjohnstn@cygnus.com>
17168
17169         * libc/string/strncpy.c (strncpy): Removed redundant code
17170         that was copying bytes if data unaligned.
17171
17172 1999-02-02  Brendan Kehoe  <brendan@cygnus.com>
17173
17174         * libc/stdlib/Makefile.{am,in} (CHEWOUT_FILES): Add mblen.def,
17175         mbstowcs.def, and wcstombs.def.
17176
17177 Sat Jan 30 02:36:33 1999  Christopher Faylor <cgf@cygnus.com>
17178
17179         * libc/include/sys/errno.h: Add Cygwin errno.
17180         * libc/stdio/flags.c: Don't default to O_TEXT if no other flag
17181         is specified.
17182
17183 1999-01-29  Nick Clifton  <nickc@cygnus.com>
17184
17185         * libc/sys/arm/syscalls.c: Move C library functions into seperate
17186         file.
17187
17188         * libc/sys/arm/libcfunc.c: New file containing C library functions
17189         from syscalls.c
17190
17191         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add libcfuncs.c
17192         * libc/sys/arm/Makefile.in (lib_a_SOURCES): Regenerate.
17193
17194
17195 1999-01-27  Michael Meissner  <meissner@cygnus.com>
17196
17197         * libc/include/machine/setjmp.h (D30V _JBLEN/_JBTYPE): Use double
17198         type, and cut size in half so that the jmp_buf array is guaranteed
17199         to be aligned on a 64-bit boundary.
17200
17201 Mon Jan 25 12:05:38 1999  Jeff Johnston  <jjohnstn@cygnus.com>
17202
17203         * libc/string/strings.tex: Added information about
17204         strcasecmp and strncasecmp.
17205         * libc/stdlib/stdlib.tex: Added missing information
17206         about mblen, mbstowcs, and wcstombs.
17207         * libc/string/strchr.c: Changed how mask is built to use
17208         shift operators so register will be used instead of storage.
17209
17210 1999-01-22  DJ Delorie  <dj@cygnus.com>
17211
17212         * libc/include/stdlib.h: don't use dllimport if we're building
17213         newlib, since it's inside cygwin.dll
17214
17215 Fri Jan 22 14:57:18 1999  Christopher Faylor <cgf@cygnus.com>
17216
17217         * libc/ctype/ctype_.c: Need to use __declspec(dllexport) for
17218         _ctype_ under cygwin.
17219
17220 Fri Jan 22 09:50:19 1999  Christopher Faylor <cgf@cygnus.com>
17221
17222         * include/stdlib.h: Fix typo from previous checkin.
17223
17224 Thu Jan 21 22:42:21 1999  Christopher Faylor <cgf@cygnus.com>
17225
17226         * include/ctype.h: Use __declspec(dllimport) method for exporting
17227         variable from cygwin DLL.
17228         * include/time.h: Ditto.
17229         * sys/errno.h: Ditto.
17230         * include/stdlib.h: Export __mb_cur_max from cygwin DLL.
17231         * libc/locale/locale.c: Use __declspec(dllexport) method for
17232         exporting variable from cygwin DLL.
17233
17234 Sat Jan 16 13:29:54 1999  Christopher Faylor <cgf@cygnus.com>
17235
17236         * libc/stdio/setvbuf.c: Always clean up when _IONBF or possible
17237         access of bogus pointer will result in SIGSEGV.
17238
17239 1999-01-07  Nick Clifton  <nickc@cygnus.com>
17240
17241         * libc/sys/arm/setjmp.S: Use C macros to cope with the possibility
17242         of an underscore prefix to function names.
17243
17244 Fri Jan  8 19:00:07 1999  Jeff Johnston  <jjohnstn@cygnus.com>
17245
17246         * libc/machine/i386/i386mach.h (__REG_PREFIX__): Create new
17247         define __REG_PREFIX__ instead of using __REGISTER_PREFIX__.
17248
17249 1998-12-31  Michael Meissner  <meissner@cygnus.com>
17250
17251         * libc/machine/i386/i386mach.h (__REGISTER_PREFIX__): Only define
17252         to `%' if not already defined.
17253
17254 1998-12-30  Michael Meissner  <meissner@cygnus.com>
17255
17256         * libc/stdio/tmpnam.c (_tempnam_r): Make directory and prefix
17257         arguments const char *, not char *.
17258         * libc/include/stdio.h (_tempnam_r): Ditto.
17259
17260         * libc/include/sys/reent.h (struct _reent): The _sig_func type
17261         points to a function taking an integer, not void.
17262
17263 Tue Dec 29 14:35:53 1998  Christopher Faylor <cgf@cygnus.com>
17264
17265         * configure.host: Add a define for Cygwin builds.
17266         * libc/include/ctype.h: Don't use dll imported variables in newlib.
17267
17268 Mon Dec 28 09:19:56 1998  Christopher Faylor <cgf@cygnus.com>
17269
17270         * libc/include/ctype.h: Define _ctype_ as dll imported variable
17271         for use with Cygwin.
17272         * libc/include/sys/errno.h: Define _sys_errlist and _sys_nerr as
17273         dll imported variables for use with Cygwin.
17274         * libc/ctype/ctype_.c: Undefine _ctype_ in case it has been defined
17275         as a dll imported variable for Cygwin.
17276
17277 Sat Dec 26 00:13:53 1998  Christopher Faylor <cgf@cygnus.com>
17278
17279         * libc/include/sys/unistd.h: Add proto for getpass.
17280
17281 Fri Dec 18 19:28:19 1998  Geoffrey Noer  <noer@cygnus.com>
17282
17283         * libc/sys/cygwin/sys/dirent.h: add protos for scandir and
17284         alphasort.
17285
17286 Fri Dec 18 16:33:25 1998  Geoffrey Noer  <noer@cygnus.com>
17287
17288         * libc/posix/execvp.c (execvp): call cygwin_posix_path_list_p,
17289         not posix_path_list_p.
17290
17291 1998-12-15  Nick Clifton  <nickc@cygnus.com>
17292
17293         * libc/string/memchr.c: Treat 'c' argument as an unsigned byte not
17294         a signed int.
17295
17296 1998-12-13  Nick Clifton  <nickc@cygnus.com>
17297
17298         * libc/include/machine/setjmp.h (_JBLEN): Set to 10.
17299
17300 1998-12-12  Nick Clifton  <nickc@cygnus.com>
17301
17302         * libc/machine/fr30/setjmp.S: New file, supplied by Mark Slater
17303         <msalter@cygnus.com>
17304         * libc/machine/fr30/Makefile.am: Add build of setjmp.S
17305         * libc/machine/fr30/Makefile.in: Regenerated.
17306
17307 1998-12-11  Nick Clifton  <nickc@cygnus.com>
17308
17309         * configure.host: Remove use of libc/sys for FR30 port.
17310         * libc/sys/fr30: Remove directory (replaced by libgloss).
17311
17312 1998-12-10  Ken Raeburn  <raeburn@cygnus.com>
17313
17314         * libc/string/strcat.c (ALIGNED): Sense of result was reversed.
17315         * libc/string/strncat.c (ALIGNED): Ditto.
17316
17317 Wed Dec  9 14:37:57 1998  Geoffrey Noer  <noer@cygnus.com>
17318
17319         * libc/include/sys/time.h: include sys/types.h
17320
17321 Tue Dec  8 15:53:18 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17322
17323         * libc/machine/i386/memcmp.S (memcmp): Fix for unequal
17324         comparison found when checking word at a time.
17325
17326 1998-12-04  Nick Clifton  <nickc@cygnus.com>
17327
17328         * libc/sys/fr30/crt0.s (_start): Initialise frame pointer.
17329
17330 1998-12-03  Nick Clifton  <nickc@cygnus.com>
17331
17332         * libc/sys/fr30/syscalls.c (_times): New function stub.
17333
17334 Thu Dec  3 15:59:19 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17335
17336         * configure.host (mach_add_setjmp): Replaced mach_add_objs
17337         with mach_add_setjmp flag which indicates if setjmp should
17338         be added to the machine directory objects.
17339         * acinclude.m4: Removed reference to mach_add_objs.
17340         * aclocal.m4: Regenerated.
17341         * Makefile.in: Regenerated.
17342         * configure: Regenerated.
17343         * libc/aclocal.m4: Regenerated.
17344         * libc/Makefile.in: Regenerated.
17345         * libc/configure: Regenerated.
17346         * libc/machine/aclocal.m4: Regenerated.
17347         * libc/machine/Makefile.in: Regenerated.
17348         * libc/machine/configure: Regenerated.
17349         * libc/machine/i386/aclocal.m4: Regenerated.
17350         * libc/machine/i386/Makefile.am: Altered to selectively add
17351         setjmp.S to the src files list.
17352         * libc/machine/i386/Makefile.in: Regenerated.
17353         * libc/machine/i386/configure.in: Altered to test mach_add_setjmp.
17354         * libc/machine/i386/configure: Regenerated.
17355
17356 1998-12-02  Nick Clifton  <nickc@cygnus.com>
17357
17358         * libc/sys/fr30/crt0.s (_start): Fix function names.
17359
17360         * libc/machine/fr30: New directory
17361         * libc/machine/fr30/Makefile.am: New file.
17362         * libc/machine/fr30/Makefile.in: New generated file.
17363         * libc/machine/fr30/configure.in: New file.
17364         * libc/machine/fr30/configure: New generated file.
17365         * libc/machine/fr30/aclocal.m4: New generated file.
17366         * libc/sys/fr30/Makefile.am: New file.
17367         * libc/sys/fr30/Makefile.in: New generated file.
17368         * libc/sys/fr30/configure.in: New file.
17369         * libc/sys/fr30/configure: New generated file.
17370         * libc/sys/fr30/syscalls.c: New file.
17371
17372 Tue Dec  1 16:28:56 1998  Geoffrey Noer  <noer@cygnus.com>
17373
17374         * libc/sys/cygwin/sys/utmp.h: new file, moved from winsup/include.
17375
17376 1998-12-01  Ken Raeburn  <raeburn@cygnus.com>
17377
17378         * libc/time/strftime.c (strftime): Also handle %y for years before
17379         1900.
17380
17381 Tue Dec  1 13:26:07 1998  Christopher Faylor <cgf@cygnus.com>
17382
17383         * libc/string/strcasecmp.c (strcasecmp): Adhere to standard
17384         UNIX convention.  Perform tolower on characters before comparing
17385         them rather than use toupper.
17386         * libc/string/strncasecmp.c (strncasecmp): Ditto.
17387
17388 Mon Nov 30 16:24:19 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17389
17390         * configure.host: Added using i386 machine directory
17391         for all x86 cross-compiler and configuring
17392         which added object files to use via new "mach_add_objs" variable.
17393         * configure: Regenerated.
17394         * libc/configure: Regenerated.
17395         * libc/Makefile.in: Regenerated.
17396         * libc/aclocal.m4: Regenerated.
17397         * libc/ctype/Makefile.in: Regenerated.
17398         * libc/errno/Makefile.in: Regenerated.
17399         * libc/locale/Makefile.in: Regenerated.
17400         * libc/machine/Makefile.in: Regenerated.
17401         * libc/machine/aclocal.m4: Regenerated.
17402         * libc/machine/configure: Regenerated.
17403         * libc/posix/Makefile.in: Regenerated.
17404         * libc/reent/Makefile.in: Regenerated.
17405         * libc/signal/Makefile.in: Regenerated.
17406         * libc/stdio/Makefile.in: Regenerated.
17407         * libc/stdlib/Makefile.in: Regenerated.
17408         * libc/string/Makefile.in: Regenerated.
17409         * libc/string/memmove.c: Optimized code to use memcpy
17410         logic when performing a non-destructive copy.
17411         * libc/string/strncmp.c: Altered code to allow building
17412         optimized for size or speed.
17413         * libc/syscalls/Makefile.in: Regenerated.
17414         * libc/time/Makefile.in: Regenerated.
17415         * libc/unix/Makefile.in: Regenerated.
17416         * libc/machine/i386/Makefile.am: Added new files and reference
17417         to "mach_add_objs" to indicate optional object files.
17418         * libc/machine/i386/Makefile.in: Regenerated.
17419         * libc/machine/i386/aclocal.m4: Regenerated.
17420         * libc/machine/i386/configure: Regenerated.
17421         * libc/machine/i386/memchr.S: New file that implements
17422         function in Intel assembler.
17423         * libc/machine/i386/memcmp.S: ditto.
17424         * libc/machine/i386/memcpy.S: ditto.
17425         * libc/machine/i386/memmove.S: ditto.
17426         * libc/machine/i386/memset.S: ditto.
17427         * libc/machine/i386/strchr.S: ditto.
17428         * libc/machine/i386/strlen.S: ditto.
17429         * libc/machine/i386/f_atan2.S: New file that implements
17430         fast version of math function to be used by compiler when
17431         --ffast_math compile option is used.
17432         * libc/machine/i386/f_atan2f.S: ditto.
17433         * libc/machine/i386/f_exp.c: ditto.
17434         * libc/machine/i386/f_expf.c: ditto.
17435         * libc/machine/i386/f_frexp.S: ditto.
17436         * libc/machine/i386/f_frexpf.S: ditto.
17437         * libc/machine/i386/f_ldexp.S: ditto.
17438         * libc/machine/i386/f_ldexpf.S: ditto.
17439         * libc/machine/i386/f_log.S: ditto.
17440         * libc/machine/i386/f_logf.S: ditto.
17441         * libc/machine/i386/f_log10.S: ditto.
17442         * libc/machine/i386/f_log10f.S: ditto.
17443         * libc/machine/i386/f_math.h: New file.
17444         * libc/machine/i386/f_pow.c: ditto.
17445         * libc/machine/i386/f_powf.S: ditto.
17446         * libc/machine/i386/f_tan.S: ditto.
17447         * libc/machine/i386/f_tan.S: ditto.
17448         * libc/machine/i386/i386mach.h: New file.
17449
17450 Mon Nov 30 13:02:17 1998  Christopher Faylor <cgf@cygnus.com>
17451
17452         patch from Mumit Khan <khan@xraylith.wisc.edu>
17453         * libc/include/stdio.h (tempnam): Add prototype.
17454         * libc/stdio/tmpnam.c (_tempnam_r): Handle NULL prefix.
17455         (tempnam): Adhere to prototype.
17456
17457 Thu Nov 26 00:21:32 1998  Christopher Faylor <cgf@cygnus.com>
17458
17459         * Makefile.am: Add default for AR_FLAGS.
17460         * Makefile.in: Regenerate.
17461
17462 Tue Nov 24 18:48:56 1998  Geoffrey Noer  <noer@cygnus.com>
17463
17464         * libc/include/time.h: move __cplusplus wrapper after includes
17465         * libc/include/sys/time.h: ditto.  If Cygwin, include
17466         sys/select.h.
17467         * libc/include/sys/types.h: lose "32" in comment about Cygwin.
17468
17469 1998-11-23  Ken Raeburn  <raeburn@cygnus.com>
17470
17471         * libc/time/strftime.c (strftime): Handle %y after year 2000.
17472
17473 Wed Nov 18 12:22:41 1998  Nick Clifton  <nickc@cygnus.com>
17474
17475         * libc/sys/fr30/crt0.s (_start): Switch over to using int #9 as
17476         abnormnal end-of-crt0 marker.
17477
17478 Tue Nov 17 16:27:58 1998  Nick Clifton  <nickc@cygnus.com>
17479
17480         * libc/sys/fr30/crt0.s: New file/directory.
17481         * libc/include/machine/setjmp.h: Add FR30 target.
17482         * libc/include/machine/ieeefp.h: Add FR30 target.
17483         * configure.host: Add FR30 target.
17484
17485 Mon Nov  16 23:15:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
17486
17487         * libm/math: Files that are duplicated in common directory removed.
17488         * libm/math/fdlibm.h: Removed.
17489         * libm/math/s_cbrt.c: Removed.
17490         * libm/math/s_copysign.c: Removed.
17491         * libm/math/s_expm1.c: Removed.
17492         * libm/math/s_finite.c: Removed.
17493         * libm/math/s_ilogb.c: Removed.
17494         * libm/math/s_infinity.c: Removed.
17495         * libm/math/s_lib_ver.c: Removed.
17496         * libm/math/s_log1p.c: Removed.
17497         * libm/math/s_logb.c: Removed.
17498         * libm/math/s_matherr.c: Removed.
17499         * libm/math/s_modf.c: Removed.
17500         * libm/math/s_nan.c: Removed.
17501         * libm/math/s_nextafter.c: Removed.
17502         * libm/math/s_rint.c: Removed.
17503         * libm/math/s_scalbn.c: Removed.
17504         * libm/math/sf_cbrt.c: Removed.
17505         * libm/math/sf_copysign.c: Removed.
17506         * libm/math/sf_expm1.c: Removed.
17507         * libm/math/sf_finite.c: Removed.
17508         * libm/math/sf_ilogb.c: Removed.
17509         * libm/math/sf_infinity.c: Removed.
17510         * libm/math/sf_log1p.c: Removed.
17511         * libm/math/sf_logb.c: Removed.
17512         * libm/math/sf_modf.c: Removed.
17513         * libm/math/sf_nan.c: Removed.
17514         * libm/math/sf_nextafter.c: Removed.
17515         * libm/math/sf_rint.c: Removed.
17516         * libm/math/sf_scalbn.c: Removed.
17517         * libm/math/Makefile.am: Removed references to deleted files (above).
17518         * libm/math/Makefile.in: Regenerated.
17519         * libm/Makefile.am: Added common directory to math.
17520         * libm/Makefile.in: Regenerated.
17521
17522 Mon Nov  2 23:12:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
17523
17524         * libm/mathfp: Add non-ANSI functions.
17525         * libm/mathfp/e_acosh.c acosh(): New file.
17526         * libm/mathfp/e_atanh.c atanh(): New file.
17527         * libm/mathfp/e_hypot.c hypot(): New file.
17528         * libm/mathfp/e_j0.c j0(): New file.
17529         * libm/mathfp/e_j1.c j1(): New file.
17530         * libm/mathfp/e_remainder.c remainder(): New file.
17531         * libm/mathfp/e_scalb.c scalb(): New file.
17532         * libm/mathfp/ef_acosh.c acoshf(): New file.
17533         * libm/mathfp/ef_atanh.c atanhf(): New file.
17534         * libm/mathfp/ef_hypot.c hypotf(): New file.
17535         * libm/mathfp/ef_j0.c j0f(): New file.
17536         * libm/mathfp/ef_j1.c j1f(): New file.
17537         * libm/mathfp/ef_remainder.c remainderf(): New file.
17538         * libm/mathfp/ef_scalb.c scalbf(): New file.
17539         * libm/mathfp/er_gamma.c gamma_r: New file.
17540         * libm/mathfp/er_lgamma.c lgamma_r(): New file.
17541         * libm/mathfp/erf_gamma.c gamma_rf(): New file.
17542         * libm/mathfp/erf_lgamma.c lgamma_rf(): New file.
17543         * libm/mathfp/w_cabs.c cabs(): New file.
17544         * libm/mathfp/w_drem.c drem(): New file.
17545         * libm/mathfp/w_jn.c jn(): New file.
17546         * libm/mathfp/wf_cabs.c cabsf(): New file.
17547         * libm/mathfp/wf_drem.c dremf(): New file.
17548         * libm/mathfp/wf_jn.c jnf(): New file.
17549
17550 Mon Nov  2 16:43:18 1998  Geoffrey Noer  <noer@cygnus.com>
17551
17552         * libc/sys/cygwin32: remove directory and contents
17553         * libc/sys/cygwin: and add back, losing the "32".
17554         * configure.host: check for cygwin* instead of cygwin32.
17555         * acinclude.m4: ditto.
17556         * aclocal.m4: regenerate with aclocal
17557         * configure: regenerate with autoconf
17558
17559 Tue Oct 20 17:28:28 1998  Geoffrey Noer  <noer@cygnus.com>
17560
17561         * libc/stdio/tmpnam.c (_tempnam_r): not enough memory allocated
17562         for length
17563
17564 Tue Oct 20 18:49:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17565
17566         * libc/include/sys/reent.h (struct _reent): Added variables _rand_next, _strtok_last,
17567         _asctime_buf, _localtime_buf and _gamma_signgam to struct reent
17568         to make rand/srand, strtok, asctime, localtime, w_gamma,
17569         w_lgamma, wf_gamma, and wf_lgamma reentrant.  Included
17570         time.h to bring in struct tm definition.
17571         * libc/stdlib/rand.c (rand, srand): Don't emit functions 'rand' and 'srand' if
17572         '_REENT_ONLY' is set. Used variable '_rand_next' from struct reent.
17573         * libc/stdlib/strtok.c (strtok): Used variable '_strtok_last' from struct reent
17574         instead of static variable.
17575         * libc/stdlib/asctime.c (asctime): Used variable '_asctime_buf' from
17576         struct reent instead of static variable.
17577         * libc/stdlib/lcltime.c (localtime): Used variable '_localtime_buf' from
17578         struct reent instead of static variable.
17579         * libm/math/Makefile.am: Removed s_signgam.o.
17580         * libm/math/Makefile.in: Regenerated.
17581         * libm/math/w_gamma.c (gamma): Used variable '_gamma_signgam' from
17582         struct reent instead of global variable 'signgam'.
17583         * libm/math/w_lgamma.c (lgamma): Likewise.
17584         * libm/math/wf_gamma.c (gammaf): Likewise.
17585         * libm/math/wf_lgamma.c (lgammaf): Likewise.
17586         * libm/math/s_signgam.c: Removed.
17587         * libc/include/unctrl.h: Defined arrays __unctrl and __unctrllen
17588         to be const.
17589         * libc/misc/unctrl.c: Defined arrays __unctrl and __unctrllen
17590         to be const.
17591         * libc/reent/Makefile.am: Added dependence for impure.o on impure.c and
17592         libc/include/reent.h.
17593         * libc/reent/Makefile.in: Regenerated.
17594         * libc/stdio/vfprintf.c (_vfprintf_r): Defined arrays 'blanks' and 'zeroes'
17595         to be const.
17596         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Defined arrays 'JIS_state_table' and
17597         'JIS_action_table' to be const.
17598         * libm/math/s_lib_ver.c: define variable _LIB_VERSION to be const.
17599
17600 Mon Oct 12 00:26:33 1998  Christopher Faylor <cgf@cygnus.com>
17601
17602         * acinclude.m4:  $with_target_subdir should default to '.'
17603         or confusion results when configuring in same directory as sources.
17604         * Regenerate all aclocal.m4 and configure files.
17605
17606 Fri Oct  9 16:27:36 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17607
17608         * libc/stdlib/mallocr.c: Added 16 byte alignment support which
17609         can be set by defining MALLOC_ALIGNMENT=16.  Also added support
17610         for platforms where sizeof(size_t) < sizeof(long) via
17611         SIZE_T_SMALLER_THAN_LONG macro.
17612
17613 Wed Oct  7 14:02:40 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17614
17615         * libc/include/time.h (CLOCKS_PER_SEC): Change CLOCKS_PER_SEC
17616         to refer to _CLOCKS_PER_SEC_ and added including <machine/time.h>
17617         which sets _CLOCKS_PER_SEC_ for selected machines.
17618         * libc/include/machine/time.h: New file.
17619
17620 Tue Oct  6 16:08:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17621
17622         * libc/syscalls/sysexecve.c: New file.
17623         * libc/syscalls/sysgettod.c: New file.
17624         * libc/syscalls/systimes.c: New file.
17625         * libc/syscalls/Makefile.am: Added new objects.
17626         * libc/syscalls/Makefile.in: Regenerated.
17627         * libc/include/_syslist.h (_execve): Moved define in file.
17628         * libc/include/reent.h:  Added _execve_r declaration.
17629         * libc/Makefile.in: Regenerated.
17630         * libc/ctype/Makefile.in: Regenerated.
17631         * libc/errno/Makefile.in: Regenerated.
17632         * libc/locale/Makefile.in: Regenerated.
17633         * libc/machine/Makefile.in: Regenerated.
17634         * libc/misc/Makefile.in: Regenerated.
17635         * libc/posix/Makefile.in: Regenerated.
17636         * libc/reent/Makefile.in: Regenerated.
17637         * libc/reent/execr.c (_execve_r): Added _execve_r function.
17638         * libc/signal/Makefile.in: Regenerated.
17639         * libc/stdio/Makefile.in: Regenerated.
17640         * libc/time/Makefile.in: Regenerated.
17641         * libc/unix/Makefile.in: Regenerated.
17642         * libm/mathfp/Makefile.in: Regenerated.
17643
17644 Tue Oct  6 14:14:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17645
17646         * libc/string/Makefile.in: Regenerated.
17647         * libc/string/memchr.c (memchr): Moved code to reduce object size.
17648         * libc/string/memcpy.c (memcpy): Ditto.
17649         * libc/string/memcmp.c (memcmp): Ditto.
17650         * libc/string/memset.c (memset): Ditto.
17651         * libc/string/strchr.c (strchr): Ditto.
17652         * libc/string/strcmp.c (strcmp): Ditto.
17653         * libc/string/strcpy.c (strcpy): Ditto.
17654         * libc/string/strlen.c (strlen): Ditto.
17655
17656 Tue Oct  6 13:58:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17657
17658         * libm/acinclude.m4: Removed since newlib/acinclude.m4 can be used
17659         to generate aclocal.m4.
17660         * libm/Makefile.in: Regenerated.
17661         * libm/aclocal.m4: Regenerated.
17662         * libm/configure: Regenerated.
17663         * libm/math/Makefile.in: Regenerated.
17664         * libm/mathfp/Makefile.in: Regenerated.
17665
17666 1998-09-25  Mark Salter  <msalter@cygnus.com>
17667
17668         * libc/include/machine/setjmp.h: Fixed test for mn10300 and mn10200
17669         by adding leading and trailing underscores to symbol names.
17670
17671 Tue Sep 22 15:33:41 1998  Christopher Faylor <cgf@cygnus.com>
17672
17673         * Makefile.in: Add default for AR_FLAGS.
17674
17675 Tue Sep 22 15:02:49 1998  Christopher Faylor <cgf@cygnus.com>
17676
17677         patch from ian@airs.com (Ian Taylor):
17678         * acinclude.m4: Run AC_CANONICAL_BUILD explicitly before
17679         NEWLIB_CONFIGURE so AC_CANONICAL_HOST will be run before it
17680         is needed for detecting the build machine.  Required for
17681         cygwin native builds.
17682
17683         * Regenerate all aclocal.m4 and configure files.
17684
17685 Mon Sep 21 14:44:16 1998  Nick Clifton  <nickc@cygnus.com>
17686
17687         * libc/sys/arm/crt0.S: Prepend a period to all local labels that
17688         used to start with LC.
17689
17690 Thu Sep 17 18:18:11 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
17691
17692         * libc/machine/sh/setjmp.S (setjmp): Handle __SH4* like __SH3E__ .
17693         (longjmp): Likewise.
17694
17695 Thu Sep 17 16:25:33 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
17696
17697         * libc/machine/sh/memset.S (memset): Move copy from r4 to r4 before
17698         the test for small number of bytes.
17699
17700 Thu Sep 10 11:40:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
17701
17702         * Makefile.am: Add --enable-newlib-hw-fp check.  This builds the new
17703         math library that uses floating point algorithms instead of the old
17704         libm.
17705         * Makefile.in: Regenerate with automake version 1.3b.
17706         * configure: Rebuild.
17707         * libm/Makefile.in: Regenerate with automake version 1.3b.
17708         * libm/aclocal.m4: Regenerate.
17709         * libm/configure: Rebuild.
17710         * libm/configure.in: Add newlib_hw_fp definition and mathfp directory.
17711         * libm/acinclude.m4: Define macros for configure.in.
17712         * libm/config.h.in: Generate.
17713         * libm/mathfp/Makefile.am: New file.
17714         * libm/mathfp/Makefile.in: Generate.
17715         * libm/mathfp/s_acos.c (acos): New file.
17716         * libm/mathfp/s_asin.c (asin): New file.
17717         * libm/mathfp/s_asine.c (asine): New file.
17718         * libm/mathfp/s_atan.c (atan): New file.
17719         * libm/mathfp/s_atan2.c (atan2): New file.
17720         * libm/mathfp/s_atangent.c (atangent): New file.
17721         * libm/mathfp/s_ceil.c (ceil): New file.
17722         * libm/mathfp/s_copysign.c (copysign): New file.
17723         * libm/mathfp/s_cos.c (cos): New file.
17724         * libm/mathfp/s_cosh.c (cosh): New file.
17725         * libm/mathfp/s_exp.c (exp): New file.
17726         * libm/mathfp/s_fabs.c (fabs): New file.
17727         * libm/mathfp/s_finite.c (finite): New file.
17728         * libm/mathfp/s_floor.c (floor): New file.
17729         * libm/mathfp/s_fmod.c (fmod): New file.
17730         * libm/mathfp/s_frexp.c (frexp): New file.
17731         * libm/mathfp/s_infconst.c: New file.
17732         * libm/mathfp/s_isinf (isinf).c: New file.
17733         * libm/mathfp/s_isnan.c (isnan): New file.
17734         * libm/mathfp/s_ispos.c (ispos): New file.
17735         * libm/mathfp/s_ldexp.c (ldexp): New file.
17736         * libm/mathfp/s_log.c (log): New file.
17737         * libm/mathfp/s_log10.c (log10): New file.
17738         * libm/mathfp/s_logarithm.c (logarithm): New file.
17739         * libm/mathfp/s_mathcnst.c: New file.
17740         * libm/mathfp/s_modf (modf).c: New file.
17741         * libm/mathfp/s_numtest.c (numtest): New file.
17742         * libm/mathfp/s_pow.c (pow): New file.
17743         * libm/mathfp/s_scalbn.c (scalbn): New file.
17744         * libm/mathfp/s_sin (sin).c: New file.
17745         * libm/mathfp/s_sine.c (sine): New file.
17746         * libm/mathfp/s_sineh.c (sineh): New file.
17747         * libm/mathfp/s_sinf.c (sinf): New file.
17748         * libm/mathfp/s_sinh.c (sinh): New file.
17749         * libm/mathfp/s_sqrt.c (sqrt): New file.
17750         * libm/mathfp/s_tan.c (tan): New file.
17751         * libm/mathfp/s_tanh.c (tanh): New file.
17752         * libm/mathfp/sf_acos.c (acosf): New file.
17753         * libm/mathfp/sf_asin.c (asinf): New file.
17754         * libm/mathfp/sf_asine.c (asinef): New file.
17755         * libm/mathfp/sf_atan.c (atanf): New file.
17756         * libm/mathfp/sf_atan2.c (atan2f): New file.
17757         * libm/mathfp/sf_atangent.c (atangent): New file.
17758         * libm/mathfp/sf_ceil.c (ceilf): New file.
17759         * libm/mathfp/sf_copysign.c (copysignf): New file.
17760         * libm/mathfp/sf_cos.c (cosf): New file.
17761         * libm/mathfp/sf_cosh.c (coshf): New file.
17762         * libm/mathfp/sf_exp.c (expf): New file.
17763         * libm/mathfp/sf_fabs.c (fabsf): New file.
17764         * libm/mathfp/sf_finite.c (finitef): New file.
17765         * libm/mathfp/sf_floor.c (floorf): New file.
17766         * libm/mathfp/sf_fmod.c (fmodf): New file.
17767         * libm/mathfp/sf_frexp.c (frexpf): New file.
17768         * libm/mathfp/sf_isinf.c (isinff): New file.
17769         * libm/mathfp/sf_isnan.c (isnanf): New file.
17770         * libm/mathfp/sf_ispos.c (isposf): New file.
17771         * libm/mathfp/sf_ldexp.c (ldexpf): New file.
17772         * libm/mathfp/sf_log.c (logf): New file.
17773         * libm/mathfp/sf_log10.c (log10f): New file.
17774         * libm/mathfp/sf_logarithm.c (logarithmf): New file.
17775         * libm/mathfp/sf_modf.c (modff): New file.
17776         * libm/mathfp/sf_numtest.c (numtestf): New file.
17777         * libm/mathfp/sf_pow.c (powf): New file.
17778         * libm/mathfp/sf_scalbn.c (scalbnf): New file.
17779         * libm/mathfp/sf_sin.c (sinf): New file.
17780         * libm/mathfp/sf_sine.c (sinef): New file.
17781         * libm/mathfp/sf_sineh.c (sinehf): New file.
17782         * libm/mathfp/sf_sinh.c (sinhf): New file.
17783         * libm/mathfp/sf_sqrt.c (sqrtf): New file.
17784         * libm/mathfp/sf_tan.c (tanf): New file.
17785         * libm/mathfp/sf_tanh.c (tanhf): New file.
17786         * libm/mathfp/zmath.h: New file.
17787
17788 Wed Sep  2 02:49:03 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
17789
17790         * libc/machine/sh/strcmp.S (L_char_loop): Re-load r0 at loop
17791         exit if it has been overwritten by pre-fetching in delay slot.
17792
17793 1998-09-01  Michael Meissner  <meissner@cygnus.com>
17794
17795         * Makefile.am (tooldir): Add in host_alias, so that multilib
17796         libraries are installed in the directory the compiler looks in.
17797         * Makefile.in: Regenerate.
17798
17799         * libc/stdlib/Makefile.in: Regenerate with automake version 1.3b.
17800
17801 Mon Aug 31 11:39:31 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17802
17803         * libc/machine/mn10300/memcpy.S (_memcpy): Move alignment test
17804         ahead of test for number of bytes being moved.
17805
17806 Thu Aug 27 14:07:53 1998  Christopher Faylor <cgf@cygnus.com>
17807
17808         * libc/include/sys/unistd.h: Nothing special needed for
17809         _exit under cygwin.
17810
17811 Wed Aug 26 15:05:21 1998  Nick Clifton  <nickc@cygnus.com>
17812
17813         * libc/sys/arm/syscalls.c (_sbrk): Rename '_end' to 'end' to
17814         conform to user label naming conventions.
17815
17816 Mon Aug 24 14:46:19 1998  Geoffrey Noer <noer@cygnus.com>
17817
17818         * libc/sys/cygwin32/sys/utime.h: variable names in
17819         protos should start with two leading underscores
17820         * libc/include/string.h: ditto
17821         * libc/include/sys/signal.h: ditto
17822         * libc/include/sys/stat.h: ditto
17823         * libc/include/sys/time.h: ditto
17824         * libc/include/sys/unistd.h: ditto
17825         * libc/include/ctype.h: ditto
17826         * libc/include/stdlib.h: ditto
17827         * libc/include/sys/reent.h: struct _atexit function ptr takes a
17828         void, same with _sig_func.
17829
17830 Fri Aug 21 14:44:14 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17831
17832         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Added preprocessor checks
17833         for MB_CAPABLE to reduce code size when newlib is not configured
17834         with --enable-newlib-mb.
17835         * libc/stdlib/Makefile.am: Specified -fshort-enums when building
17836         mbtowc_r.o to minimize size.
17837         * libc/stdlib/Makefile.in: Rebuild.
17838
17839 Wed Aug 19 16:20:13 1998  Jim Wilson  <wilson@cygnus.com>
17840
17841         * libc/sys/sparc64/Makefile.am (.S_r.o, .c_r.o): Change -DREENTRANT
17842         to -DREENT.
17843         * libc/sys/sparc64/Makefile.in: Rebuild.
17844
17845 Tue Aug 18 22:38:29 1998  Ian Lance Taylor  <ian@cygnus.com>
17846
17847         * Makefile.am (MAKEOVERRIDES): Define.
17848         * Makefile.in: Rebuild.
17849
17850 Tue Aug 18 12:38:47 1998  Jim Wilson  <wilson@cygnus.com>
17851
17852         * libc/sys/sparc64/sys/stat.h (stat): Add const.
17853
17854 Mon Aug 17 22:27:06 1998  Ian Lance Taylor  <ian@cygnus.com>
17855
17856         * acinclude.m4 (NEWLIB_CONFIGURE): Use top_builddir in
17857         newlib_cflags when looking for targ-include.
17858         * */aclocal.m4, */configure: Rebuild.
17859
17860 Fri Jul 31 10:57:42 1998  Catherine Moore  <clm@cygnus.com>
17861
17862         * libc/sys/arm/syscalls.c (_sbrk): Change "__end__"
17863         to "_end".
17864
17865 Wed Jul 29 00:02:01 1998  Mark Alexander  <marka@cygnus.com>
17866
17867         * libc/include/sys/config.h: Define __IEEE_LITTLE_ENDIAN
17868         on SPARCs with little-endian data.
17869         * libc/include/machine/ieeefp.h: Ditto.
17870
17871 Wed Jul 22 18:00:10 1998  Ian Lance Taylor  <ian@cygnus.com>
17872
17873         * acinclude.m4: Handle a relative srcdir correctly when setting
17874         newlib_cflags.
17875         * */aclocal.m4, */configure: Rebuild.
17876
17877 Wed Jul 22 17:11:33 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17878
17879         * libm/math/wrf_lgamma.c (lgammaf_r): Initialize exc.err to 0 and
17880         also set exc.arg1, exc.arg2 appropriately in case matherr is supplied.
17881         * libm/math/wrf_gamma.c (gammaf_r): ditto
17882         * libm/math/wr_lgamma.c (lgamma_r): ditto
17883         * libm/math/wr_gamma.c (gamma_r): ditto
17884         * libm/math/wf_sqrt.c (sqrtf): ditto
17885         * libm/math/wf_sinh.c (sinhf): ditto
17886         * libm/math/wf_scalb.c (scalbf): ditto
17887         * libm/math/wf_remainder.c (remainderf): ditto
17888         * libm/math/wf_pow.c (powf): ditto
17889         * libm/math/wf_log10.c (log10f): ditto
17890         * libm/math/wf_log.c (logf): ditto
17891         * libm/math/wf_lgamma.c (lgammaf): ditto
17892         * libm/math/wf_jn.c (jnf, ynf): ditto
17893         * libm/math/wf_j1.c (j1f, y1f): ditto
17894         * libm/math/wf_j0.c (j0f, y0f): ditto
17895         * libm/math/wf_hypot.c (hypotf): ditto
17896         * libm/math/wf_gamma.c (gammaf): ditto
17897         * libm/math/wf_fmod.c (fmodf): ditto
17898         * libm/math/wf_exp.c (expf): ditto
17899         * libm/math/wf_cosh.c (coshf): ditto
17900         * libm/math/wf_atanh.c (atanhf): ditto
17901         * libm/math/wf_atan2f.c (atan2f): ditto
17902         * libm/math/wf_asin.c (asinf): ditto
17903         * libm/math/wf_acosh.c (acoshf): ditto
17904         * libm/math/wf_acos.c (acosf): ditto
17905         * libm/math/w_sqrt.c (sqrt): ditto
17906         * libm/math/w_sinh.c (sinh): ditto
17907         * libm/math/w_scalb.c (scalb): ditto
17908         * libm/math/w_remainder.c (remainder): ditto
17909         * libm/math/w_pow.c (pow): ditto
17910         * libm/math/w_log10.c (log10): ditto
17911         * libm/math/w_log.c (log): ditto
17912         * libm/math/w_lgamma.c (lgamma): ditto
17913         * libm/math/w_jn.c (jn, yn): ditto
17914         * libm/math/w_j1.c (j1, y1): ditto
17915         * libm/math/w_j0.c (j0, y0): ditto
17916         * libm/math/w_hypot.c (hypot): ditto
17917         * libm/math/w_gamma.c (gamma): ditto
17918         * libm/math/w_fmod.c (fmod): ditto
17919         * libm/math/w_exp.c (exp): ditto
17920         * libm/math/w_cosh.c (cosh): ditto
17921         * libm/math/w_atanh.c (atanh): ditto
17922         * libm/math/w_atan2f.c (atan2): ditto
17923         * libm/math/w_asin.c (asin): ditto
17924         * libm/math/w_acosh.c (acosh): ditto
17925         * libm/math/w_acos.c (acos): ditto
17926
17927 Tue Jul 21 12:34:54 1998  Ian Lance Taylor  <ian@cygnus.com>
17928
17929         * libm/math/Makefile.am (src): Add w_cabs.c and w_drem.c.
17930         (fsrc): Add wf_cabs.c and wf_drem.c.
17931         * libm/math/Makefile.in: Rebuild.
17932
17933         * Makefile.am (AM_MAKEFLAGS): Add CFLAGS_FOR_BUILD.  Remove some
17934         unused directory variables.  Remove duplicate CFLAGS.
17935         * Makefile.in: Rebuild.
17936
17937         * doc/Makefile.am ($(MKDOC)): Don't use $(CFLAGS) when building
17938         with $(CC_FOR_BUILD).
17939         (makedoc.o): Likewise.
17940         * doc/Makefile.in: Rebuild.
17941
17942         * libc/sys/cygwin32/Makefile.am (EXTRA_LIBRARIES): Define, to
17943         force a definition of COMPILE.
17944         (libfoo_a_SOURCES): Define.
17945         * libc/sys/cygwin32/Makefile.in: Rebuild.
17946         * libc/sys/tic80/Makefile.am (EXTRA_LIBRARIES): Define, to
17947         force a definition of COMPILE.
17948         (libfoo_a_SOURCES): Define.
17949         * libc/sys/tic80/Makefile.in: Rebuild.
17950
17951 Mon Jul 20 20:49:24 1998  Christopher Faylor <cgf@cygnus.com>
17952
17953         * libc/include/sys/fcntl.h: Add O_NOINHERIT, Win32-specific
17954         flag.
17955
17956 Fri Jul 17 16:13:16 1998  Ian Lance Taylor  <ian@cygnus.com>
17957
17958         * Build using autoconf and automake.  Added many Makefile.am and
17959         configure.in files, plus generated files.  Old configure.in files
17960         and all old Makefile.in files completely replaced.  Removed
17961         host/any.  Added acinclude.m4 and configure.host.
17962
17963 Sat Jul 11 18:14:49 1998  Felix Lee  <flee@cygnus.com>
17964
17965         * libc/stdio/vfprintf.c: enable long long support, sometimes.
17966         * configure.in (*-*-cygwin32): add -DWANT_PRINTF_LONG_LONG.
17967
17968 Tue Jul  7 01:51:55 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
17969
17970         * libc/machine/sh/strcmp.S, libc/machine/sh/strcpy.S: New files.
17971         * libc/machine/sh/Makefile.in: Add rules for new files.
17972
17973 Tue Jul  7 01:40:55 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
17974
17975         * libc/machine/sh/asm.h (SL, DELAYED_BRANCHES): Define.
17976         * libc/machine/sh/memset.S (memset): Remove uses of dt; shorten code.
17977         * libc/machine/sh/memcpy.S (SL, DELAYED_BRANCHES): Don't define.
17978
17979 Thu Jul  2 10:33:16 1998  Nick Clifton  <nickc@cygnus.com>
17980
17981         * libc/sys/arm/syscalls.c (_exit): Add comment, noting that exit
17982         code is ignored.
17983
17984 Wed Jun 24 13:56:54 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17985
17986         * libc/stdio/tmpnam.c (_tmpnam_r): Changed routine to use
17987         internal static buffer when s is NULL, as prescribed by ANSI.
17988
17989 1998-06-22  Vladimir N. Makarov  <vmakarov@cygnus.com>
17990
17991         * libc/sys/h8300hms/Makefile.in (OFILES): malloc.o has been
17992         removed.
17993         * libc/sys/h8300hms/malloc.c: has been removed.  Now malloc.c from
17994         libc/stdlib will be used for h8300hms.
17995
17996 Thu Jun 18 16:56:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17997
17998         * libc/machine/mn10300/strlen.S (_strlen): New optimized assembler
17999         version that can be built either for speed or size.
18000         * libc/machine/mn10300/memset.S (_memset): ditto
18001         * libc/machine/mn10300/memchr.S (_memchr): ditto
18002         * libc/machine/mn10300/memcpy.S (_memcpy): ditto
18003         * libc/machine/mn10300/memcmp.S (_memcmp): ditto
18004         * libc/machine/mn10300/strchr.S (_strchr): ditto
18005         * libc/machine/mn10300/strcmp.S (_strcmp): ditto
18006         * libc/machine/mn10300/strcpy.S (_strcpy): ditto
18007         * libc/machine/mn10300/Makefile.in: Added entries for
18008         memchr.o, memcmp.o, memcpy.o, memset.o, strchr.o,
18009         strcmp.o, strcpy.o, and strlen.o.
18010
18011 Wed Jun 17 12:50:26 1998  Mark Alexander  <marka@cygnus.com>
18012
18013         * configure.in: Don't use libc/sys/sysmec for MN10200; it's
18014         been replaced with libgloss/mn10200.
18015
18016 Fri Jun 12 14:34:39 1998  Michael Meissner  <meissner@cygnus.com>
18017
18018         * libc/string/strchr.c (strchr): Make s a constant pointer to
18019         avoid warning.
18020
18021 Tue Jun  9 16:29:30 1998  Jason Molenda  (crash@bugshack.cygnus.com)
18022
18023         * configure.in (target == arm* or thumb*): Define ARM_RDI_MONITOR
18024         instead of ARM_RDP_MONITOR (sys/libc/arm/crt0.S to assume Angel
18025         board SWIs instead of Demon board SWIs).
18026
18027 Thu Jun  4 12:16:46 1998  Michael Meissner  <meissner@cygnus.com>
18028
18029         * libc/string/strncat.c (strncat):  Make -Os act the same as
18030         PREFER_SIZE_OVER_SPEED being defined.
18031
18032 Wed Jun  3 17:52:33 1998  Michael Meissner  <meissner@cygnus.com>
18033
18034         * libc/string/memchr.c (memchr): Make -Os act the same as
18035         PREFER_SIZE_OVER_SPEED being defined.
18036         * libc/string/memcmp.c (memcmp): Ditto.
18037         * libc/string/memcpy.c (memcpy): Ditto.
18038         * libc/string/memset.c (memset): Ditto.
18039         * libc/string/strcat.c (strcat): Ditto.
18040         * libc/string/strchr.c (strchr): Ditto.
18041         * libc/string/strcmp.c (strcmp): Ditto.
18042         * libc/string/strcpy.c (strcpy): Ditto.
18043         * libc/string/strlen.c (strlen): Ditto.
18044         * libc/string/strncat.c (strncat): Ditto.
18045         * libc/string/strncmp.c (strncmp): Ditto.
18046         * libc/string/strncpy.c (strncpy): Ditto.
18047
18048 Mon Jun  1 15:25:07 1998  Geoffrey Noer  <noer@cygnus.com>
18049
18050         * libc/include/sys/itimer.h: remove
18051         * libc/include/sys/time.h: itimer stuff should be here
18052
18053 Mon Jun  1 16:31:29 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18054
18055         * libc/stdio/vfprintf.c (cvt): Changed code to look at sign
18056         bit instead of comparing to 0 so -0.0 can be printed correctly.
18057
18058 Sat May 30 09:33:51 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
18059
18060         * libc/stdlib/mprec.c (b2d): Inilialize d in non-VAX case too.
18061
18062 Fri May 29 22:25:10 1998  Geoffrey Noer  <noer@cygnus.com>
18063
18064         * libc/include/sys/unistd.h: fix sync() proto
18065         * libc/include/sys/fcntl.h: remove _close which is already
18066         defined in unistd.h.
18067         * libc/include/sys/time.h: add getitimer proto
18068
18069 Fri May 29 16:10:28 1998  Geoffrey Noer  <noer@cygnus.com>
18070
18071         * libc/string/strchr.c: convert arg to unsigned char
18072         * libc/include/stdlib.h: add protos for random, srandom
18073         * libc/include/sys/stat.h: add lstat proto
18074         * libc/include/sys/time.h: add setitimer proto
18075         * libc/include/sys/unistd.h: add readlink, symlink protos
18076         * libc/include/process.h: instead of including windows.h and using
18077         HANDLEs in sexec protos, just use void *s.  Need to include
18078         sys/types.h.
18079
18080 Fri May 29 03:04:29 1998  Geoffrey Noer  <noer@cygnus.com>
18081
18082         * libc/include/sys/fcntl.h: add _close proto for Cygwin32
18083
18084 Thu May 28 16:34:21 1998  Geoffrey Noer  <noer@cygnus.com>
18085
18086         * libc/include/process.h: add secure exec protos
18087
18088 Wed May 27 13:54:51 1998  Jeffrey A Law  (law@cygnus.com)
18089
18090         * libc/stdlib/dtoa.c (_dtoa_r): Use "double_union" for variables
18091         which are accessed as both doubles and integers.
18092         * libc/stdlib/mprec.c (ulp, b2d, ratio): Likewise.
18093         * libc/stdlib/strtod.c (_strtod_r): Likewise.
18094         * libc/stdlib/mprec.h: Add "union double_union" and change
18095         word0/word1 macros to use it.
18096
18097 Tue May 26 18:04:21 1998  Geoffrey Noer  <noer@cygnus.com>
18098
18099         * libc/include/sys/signal.h: add __cplusplus wrapper
18100
18101 Tue May 26 15:10:22 1998  Geoffrey Noer  <noer@cygnus.com>
18102
18103         * libc/include/sys/utime.h: new generic file that gets replaced by
18104         libc/sys/SYSDIR/sys/utime.h on systems that support the utime
18105         function.
18106         * sys/cygwin32/sys/utime.h: use _EXFUN in utime proto
18107         * libc/include/time.h: remove duplicate utime proto
18108         * libc/include/utime.h: add comment
18109
18110 Sun May 24 23:56:20 1998  Christopher Faylor <cgf@cygnus.com>
18111
18112         * libc/include/sys/time.h: Add missing include to
18113         allow use of _EXFUN.  Remove times function that is
18114         already defined in times.h.
18115
18116 Sun May 24 01:32:14 1998  Christopher Faylor <cgf@cygnus.com>
18117
18118         * libc/include/time.h: Fix typo in tzset.
18119
18120 Fri May 22 17:00:48 1998  Geoffrey Noer  <noer@cygnus.com>
18121
18122         * libc/include/sys/time.h: add missing Cygwin32 function protos
18123         * libc/include/sys/unistd.h: ditto
18124         * libc/include/time.h: ditto
18125
18126 Wed May 20 20:35:11 1998  Geoffrey Noer  <noer@cygnus.com>
18127
18128         * libc/sys/cygwin32/sys/param.h: add protected NULL def, remove
18129         FIXME.
18130         * libc/include/sys/types.h: add a new __MS_types__ section
18131         to define vm_offset_t, vm_size_t, int32_t et al, register_t,
18132         __BIT_TYPES_DEFINED__.
18133
18134 Wed May 20 18:49:21 1998  Geoffrey Noer  <noer@cygnus.com>
18135
18136         * libc/sys/cygwin32/sys/param.h: move here from winsup/include/sys
18137         since it overrides the one in libc/include/sys.  Also, start
18138         including types.h.
18139
18140 Wed May 20 14:45:40 1998  Geoffrey Noer  <noer@cygnus.com>
18141
18142         * libm/math/Makefile.in: add s_signgam.o to obj list
18143
18144 Tue May 19 11:57:11 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18145
18146         * libc/include/sys/reent.h (_REENT_INIT): Initialize current locale to "C".
18147
18148 Mon May 18 22:36:12 1998  Christopher Faylor <cgf@cygnus.com>
18149
18150         * libc/include/sys/signal.h: cygwin32 exports sig{empty,add}set,
18151         so don't use defines.
18152
18153 Mon May 18 19:01:02 1998  Michael Meissner  <meissner@cygnus.com>
18154
18155         * libc/sys/d10v/crt0.S: Use correct stab for 16-bit ints.
18156
18157 Sun May 17 18:40:32 1998  Frank Ch. Eigler  <fche@cygnus.com>
18158
18159         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Accept a NULL
18160         _current_locale as default locale.
18161
18162 Sat May 16 21:59:59 1998  Bob Manson  <manson@charmed.cygnus.com>
18163
18164         * libc/stdlib/mallocr.c (mALLOc): Add explicit tests for
18165         insufficient space in a chunk.
18166
18167 Tue May 12 14:41:01 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18168
18169         * configure.in (links): Added check for --enable-newlib-mb configure
18170         option which defines the MB_CAPABLE macro.
18171         * libc/locale/locale.c (_setlocale_r): Added support for setting
18172         LC_CTYPE to "C-JIS", "C-SJIS" or "C-EUCJP", when MB_CAPABLE is
18173         defined.
18174         * libc/stdlib/mbtowc_r.c (_mbtowc_r): New function _mbtowc_r that
18175         implements mbtowc() with multibyte support for JIS, SJIS, and EUC-JP.
18176         * libc/stdlib/wctomb_r.c (_wctomb_r): New function _wctomb_r that
18177         implements wctomb() with multibyte support for JIS, SJIS, and EUC-JP.
18178         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): New function _mbstowcs_r that
18179         implements mbstowcs() with multibyte support for JIS, SJIS, and EUC-JP.
18180         * libc/stdlib/wcstombs_r.c (_wcstombs_r): New function _wcstomb_r that implements
18181         wcstombs() with multibyte support for JIS, SJIS, and EUC-JP.
18182         * libc/stdlib/Makefile.in: Added new multibyte
18183         routines: _mbtowc_r(), _wctomb_r(), _mbstowcs_r(), and _wcstombs_r().
18184         * libc/include/stdlib.h: Added declarations of _mbtowc_r(), _wctomb_r(),
18185         _mbstowcs_r(), and _wcstombs_r().
18186         * libc/stdlib/mbctype.h: New internal header file that contains macros to test
18187         for JIS, SJIS, and EUC-JP characters.
18188         * libc/stdlib/mblen.c (mblen): Added code to call _mbtowc_r() if
18189         MB_CAPABLE defined.
18190         * libc/stdlib/mbtowc.c (mbtowc): Added code to call _mbtowc_r() if
18191         MB_CAPABLE defined.
18192         * libc/stdlib/wctomb.c (wctomb): Added code to call _wctomb_r() if
18193         MB_CAPABLE defined.
18194         * libc/stdlib/mbstowcs.c (mbstowcs): Added code to call _mbstowcs_r()
18195         if MB_CAPABLE defined.
18196         * libc/stdlib/wcstombs.c (wcstombs): Added code to call _wcstombs_r()
18197         if MB_CAPABLE defined.
18198         * libc/stdio/vfscanf.c (__svfscanf): Added multibyte tolerance
18199         to the format string processing when MB_CAPABLE.
18200         * libc/stdio/vfprintf.c (_VFPRINTF_R): Changed mbtowc() call to
18201         call _mbtowc_r().
18202
18203 Tue May  5 16:07:23 1998  Nick Clifton  <nickc@cygnus.com>
18204
18205         The following modifications are courtesy of Anthony Thompson,
18206         athompson@cambridge.arm.com:
18207         * libc/sys/arm/syscalls.c: Initialise and track stdin/out/err for
18208         boith RDI and RDP monitors.
18209         * libc/sys/arm/crt0.S: Call initialise_monitor_handles() for both
18210         RDI and RDP monitors.
18211
18212 Wed Apr 29 15:22:15 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18213
18214         * configure.in (links): Added -DHAVE_GETTIMEOFDAY for arm and thumb.
18215         * libc/sys/arm/syscalls.c (_gettimeofday _times): Added functions.
18216         (_swiopen): Fixed open flags to treat write with append as just append.
18217         (_swilseek): Fixed lseek support to properly handle offsets from SEEK_END.
18218         * libc/sys/arm/sys/param.h: New file to override param.h for ARM.
18219
18220 Fri Apr 24 18:00:09 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
18221
18222         * libc/machine/sh/memcpy.S (L_odddst, big endian version):
18223         When needing to transfer an initial 2-byte-word, store as
18224         two single bytes.
18225
18226 Wed Apr 22 17:56:03 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
18227
18228         * libc/sys/sh/crt0.S (start): Handle __SH4_SINGLE_ONLY__ like
18229         __SH3E__ .
18230         * libc/machine/sh/memcpy.S (DELAYED_BRANCHES, SL): Likewise.
18231         * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Likewise.
18232
18233 Wed Apr 22 12:28:03 1998  Michael Meissner  <meissner@cygnus.com>
18234
18235         * configure.in (target_cflags): If --enable-target-optspace, use
18236         -Os to compile newlib rather than -O2.  Default to using -Os for
18237         d10v, d30v and m32r if --{enable,disable}-target-optspace is not
18238         used.
18239
18240 Tue Apr 21 23:13:34 1998  Geoffrey Noer  <noer@cygnus.com>
18241
18242         * libc/include/machine/setjmp.h: change sigsetjmp and
18243         siglongjmp definitions to use an array instead of a struct
18244         for __CYGWIN32__
18245
18246 Tue Apr 14 11:47:47 1998  Doug Evans  <devans@canuck.cygnus.com>
18247
18248         * libc/reent/impure.c (__ATTRIBUTE_IMPURE_DATA__): Fix spelling.
18249
18250 Mon Apr  6 15:05:08 1998  Jonathan Larmour  <jlarmour@cygnus.co.uk>
18251
18252         * libc/string/strxfrm.c: fix to get correct return value
18253
18254 Wed Apr  1 16:09:05 1998  Nick Clifton  <nickc@cygnus.com>
18255
18256         * libc/sys/arm/crt0.S: Set top of RAM to be 0x800000 for PE
18257         builds.  Make mode change labels global so that they will be seen
18258         by the debugger.
18259
18260 Wed Mar 18 09:45:10 1998  Nick Clifton  <nickc@cygnus.com>
18261
18262         * configure.in (links): Do not use ARM debiugging protocols for PE
18263         builds.
18264
18265         * libc/sys/arm/syscalls.c (_sbrk): Add "_sbrk: " to error
18266         message.
18267
18268 Fri Mar 13 11:24:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18269
18270         * libc/stdio/findfp.c (__sinit): Made stdout default to
18271         line buffered mode as defined by ANSI.
18272
18273 Tue Mar 10 11:41:26 1997  Bob Manson  <manson@charmed.cygnus.com>
18274
18275         * libc/include/sys/itimer.h: New file.
18276
18277         * libc/signal/signal.c (__sigtramp_r,__sigtramp): New functions.
18278
18279 Mon Mar  9 14:19:26 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
18280
18281         * libc/machine/sh/memcpy.S: (_memcpy): Fix for execute/memcpy-1.c
18282         failure.
18283
18284 Fri Feb 27 13:56:10 1998  Michael Meissner  <meissner@cygnus.com>
18285
18286         * libc/machine/d30v/setjmp.S (longjmp): Fix order of parallel
18287         insns.
18288
18289 Wed Feb 25 09:29:54 1998  Nick Clifton  <nickc@cygnus.com>
18290
18291         * libc/sys/arm/syscalls.c (_open): Add varags to conform to prototype.
18292
18293 Tue Feb 24 18:00:13 1998  Michael Meissner  <meissner@cygnus.com>
18294
18295         * libc/machine/d30v/{setjmp.S,Makefile.in}: New files for D30V
18296         support.
18297
18298         * libc/include/machine/setjmp.h: Add D30V support.
18299
18300         * configure.in (d30v-*): Add d30v machine directory.
18301
18302 Mon Feb 23 09:32:58 1998  Mark Alexander  <marka@cygnus.com>
18303
18304         * configure.in: Don't use libc/sys/sysmec for MN10300; it's
18305         been replaced with libgloss/mn10300.
18306
18307 Sat Feb 21 17:44:43 1998  Geoffrey Noer  <noer@cygnus.com>
18308
18309         * libc/stdlib/mallocr.c: remove __malloc_copy routine now that
18310         it is no longer needed.
18311
18312 Thu Feb 19 16:15:10 1998  Geoffrey Noer  <noer@cygnus.com>
18313
18314         * libc/include/sys/signal.h: add sigpause proto for Cygwin32
18315
18316 Wed Feb 18 23:51:08 1998  Geoffrey Noer  <noer@cygnus.com>
18317
18318         * libc/stdio/fdopen.c (fdopen): Make all writes go to the end of
18319         the file when O_APPEND is set, wherever the EOF happens to be at
18320         that time.
18321
18322 Wed Feb 18 23:25:02 1998  Geoffrey Noer  <noer@cygnus.com>
18323
18324         patch from cgf@bbc.com (Christopher Faylor):
18325         * libc/stdio/freopen.c (freopen): Conform to standard UNIX
18326         convention of closing fp prior to attempting to open the file
18327         argument.  This allows correct operation when reopening
18328         stdin/stdout/stderr.  Replaces last freopen.c patch.
18329
18330 Wed Feb 18 16:27:40 1998  Geoffrey Noer  <noer@cygnus.com>
18331
18332         patch from cgf@bbc.com (Christopher Faylor):
18333         * libc/stdio/freopen.c: freopen was not preserving the fd
18334         of the stream being operated on.  This confuses programs that
18335         expect that the handles for stdout and stderr will be 1 and 2.
18336
18337 Mon Feb 16 23:34:07 1998  Andrew Cagney  <cagney@b1.cygnus.com>
18338
18339         * libc/sys/d10v/crt0.S (_start): Set PSW{SW} - select SPU.
18340
18341 Thu Feb 12 15:09:20 1998  Ranjith Kumaran <ranjith@cygnus.com>
18342
18343         * libc/sys/go32/longjmp.S: Fix longjmp to not return 0.
18344
18345 Wed Feb 11 17:50:45 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18346
18347         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Alignment code
18348         altered to not use a branch.  Also added hint that last
18349         bclr in longjmp will likely result in branch.
18350
18351
18352 Mon Feb  9 03:44:02 1998  Geoffrey Noer  <noer@cygnus.com>
18353
18354         * libc/sys/cygwin32/crt0.c: add missing args to main() extern
18355
18356 Fri Feb  6 16:32:32 1998  Nick Clifton  <nickc@cygnus.com>
18357
18358         * libc/sys/sysnecv850/crt0.S (_start): Initialise _ctbp even for
18359         v850 builds.
18360
18361         * configure.in: Add -msmall-sld to target_cflags for v850 builds.
18362
18363 Wed Feb  4 16:56:20 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18364
18365         * libc/machine/powerpc/setjmp.S (longjmp): Fixed code
18366         that loads FR14 to specify offset of 8 rather than 4
18367         so it loads from offset 96 (where setjmp stored it).
18368
18369 Tue Feb  3 18:08:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18370
18371         * libc/machine/sh/memcpy.S: (_memcpy): Update to
18372         latest version supplied by customer.
18373         * libc/machine/sh/memset.S (_memset): Ditto.
18374
18375 Mon Feb  2 16:20:39 1998  Nick Clifton  <nickc@cygnus.com>
18376
18377         * libc/sys/sysnecv850/Makefile.in (OFILES): Add link.o (for
18378         PR14730).
18379
18380 Mon Feb  2 15:13:26 1998  Geoffrey Noer  <noer@cygnus.com>
18381
18382         * libc/include/string.h: remove redefinition of ffs
18383
18384 Wed Jan 28 13:30:14 1998  Geoffrey Noer  <noer@cygnus.com>
18385
18386         * libc/include/sys/signal.h: include _ansi.h so _EXFUN is
18387         defined
18388
18389 Wed Jan 28 10:38:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18390
18391         * libc/machine/tic80/setjmp.S: Adding _setjmp to allow
18392         TI Libraries to link to libc.a
18393
18394 Sat Jan 24 10:15:56 1998  Michael Meissner  <meissner@cygnus.com>
18395
18396         * libc/include/sys/fcntl.h (_open,_fcntl): Add prototypes.
18397         * libc/include/sys/stat.h (_{,f}stat): Ditto.
18398         * libc/include/sys/wait.h (_wait): Ditto.
18399         * libc/include/sys/unistd.h (_close,_fork,_getpid): Ditto.
18400         (_link,_lseek,_read,_sbrk,_unlink,_write): Ditto.
18401
18402 Fri Jan 23 11:32:10 1998  Michael Meissner  <meissner@cygnus.com>
18403
18404         * libc/machine/d10v/setjmp.S: Change to new ABI.  Add simple
18405         minded stabs so function name shows up when running the simulator
18406         with -t.
18407         * libc/sys/d10v/{crt0,trap}.S: Ditto.
18408
18409 Thu Jan 22 15:57:14 1998  Fred Fish  <fnf@cygnus.com>
18410
18411         * libc/sys/d10v/trap.S: Change syscalls to use trap 15.
18412         * libc/sys/d10v/crt0.S: Use R6 where we used to use R2.
18413         Use R5 where we used to use R3.
18414
18415 Wed Jan 21 14:22:23 1998  Bill Moyer <billm@cygnus.com>
18416
18417         * libc/stdlib/getopt.c (getopt): replaced __progname
18418         with nargv[0] to improve portability to imbedded systems.
18419
18420 Thu Jan 15 12:32:38 1998  Nick Clifton  <nickc@cygnus.com>
18421
18422         * libc/sys/arm/syscalls.c (initialise_angel_handles): Applied
18423         patch supplied by Tont.Thompson@arm.com to fix the creation of the
18424         stdout file.
18425
18426 Wed Jan 14 13:00:19 1998  Ian Lance Taylor  <ian@cygnus.com>
18427
18428         * libc/stdio/tmpnam.c (worker): Generate a different file name
18429         each time.
18430
18431         * libc/posix/popen.c (popen): If __CYGWIN32__, and execing /bin/sh
18432         fails, try an execlp for sh.
18433
18434         * host/any (INCLUDES): If target_os is cygwin32, then add a -I
18435         option for the winsup include directory.
18436
18437 Wed Jan  7 17:02:58 1998  Nick Clifton  <nickc@cygnus.com>
18438
18439         * libc/sys/arm/syscalls.c: Applied patches for Angel based remote
18440         debugging interface from Tony.Thompson@arm.com.
18441
18442         * libc/sys/arm/crt0.S (_mainCRTStartup): ditto.
18443         * libc/sys/arm/swi.h: ditto.
18444
18445 Tue Jan  6 14:15:10 1998  Geoffrey Noer  <noer@cygnus.com>
18446
18447         * libc/sys/cygwin32/sys/dirent.h: add __d_dirhash field to
18448         DIR struct used for readdir hashes.
18449
18450 Thu Jan  1 11:22:22 1998  Jeffrey A Law  (law@cygnus.com)
18451
18452         * libc/string/strchr.c: Use "unsigned chars" as necessary.
18453
18454 Wed Dec 31 04:25:30 1997  Jeffrey A Law  (law@cygnus.com)
18455
18456         * libc/stdlib/mallocr.c (idx2binblock): Don't lose on 16bit
18457         integer targets.
18458
18459 Sat Dec 13 15:11:06 1997  Ian Lance Taylor  <ian@cygnus.com>
18460
18461         * libc/stdlib/mallocr.c (__malloc_copy): New function, compiled if
18462         INTERNAL_NEWLIB and __CYGWIN32__ and DEFINE_MALLOC.
18463         * libc/include/malloc.h: Add extern "C" if __cplusplus.
18464         (__malloc_copy): Declare.
18465
18466 Wed Dec 10 12:15:54 1997  Ian Lance Taylor  <ian@cygnus.com>
18467
18468         * libc/stdlib/mallocr.c: If INTERNAL_NEWLIB, include
18469         <sys/config.h>.
18470         (POINTER_UINT): Define.
18471         (DEFAULT_TRIM_THRESHOLD): Mark constants as long.
18472         (MALLOC_ALIGNMENT): Don't define if already defined.
18473         (malloc_extend_top): Cast pointers to POINTER_UINT, not unsigned
18474         long.
18475
18476 Tue Dec  9 19:23:42 1997  Michael Meissner  <meissner@cygnus.com>
18477
18478         * libc/string/memset.c (memset): Fiddle with code so that the long
18479         value being stored is not a stack value.  Unroll storing longs 4
18480         times.
18481
18482 Tue Dec  9 14:13:18 1997  Jeff Johnston  <jjohnstn@cygnus.com>
18483
18484         * Reduce code size for libm modules.
18485         * libm/math/w_sqrt.c (sqrt): Remove call to kernel_standard
18486         and simply move code into sqrt.
18487         * libm/math/wrf_lgamma.c (lgammaf_r): Likewise.
18488         * libm/math/wr_lgamma.c (lgamma_r): Likewise.
18489         * libm/math/wrf_gamma.c (gammaf_r): Likewise.
18490         * libm/math/wr_gamma.c (gamma_r): Likewise.
18491         * libm/math/wf_sinh.c (sinfh): Likewise.
18492         * libm/math/w_sinh.c (sinh): Likewise.
18493         * libm/math/wf_scalb.c (scalbf): Likewise.
18494         * libm/math/w_scalb.c (scalb): Likewise.
18495         * libm/math/wf_remainder.c (remainderf): Likewise.
18496         * libm/math/w_remainder.c (remainder): Likewise.
18497         * libm/math/wf_pow.c (powf): Likewise.
18498         * libm/math/w_pow.c (pow): Likewise.
18499         * libm/math/wf_log10.c (log10f): Likewise.
18500         * libm/math/w_log10.c (log10): Likewise.
18501         * libm/math/wf_log.c (logf): Likewise.
18502         * libm/math/w_log.c (log): Likewise.
18503         * libm/math/w_lgamma.c (lgamma): Likewise.
18504         * libm/math/wf_lgamma.c (lgammaf): Likewise.
18505         * libm/math/wf_jn.c (jnf): Likewise.
18506         * libm/math/w_jn.c (jn): Likewise.
18507         * libm/math/wf_j1.c (j1f): Likewise.
18508         * libm/math/w_j1.c (j1): Likewise.
18509         * libm/math/wf_j0.c (j0f): Likewise.
18510         * libm/math/w_j0.c (j0): Likewise.
18511         * libm/math/wf_hypot.c (hypotf): Likewise.
18512         * libm/math/w_hypot.c (hypot): Likewise.
18513         * libm/math/wf_gamma.c (gammaf): Likewise.
18514         * libm/math/w_gamma.c (gamma): Likewise.
18515         * libm/math/wf_fmod.c (fmodf): Likewise.
18516         * libm/math/w_fmod.c (fmod): Likewise.
18517         * libm/math/wf_exp.c (expf): Likewise.
18518         * libm/math/w_exp.c (exp): Likewise.
18519         * libm/math/wf_cosh.c (coshf): Likewise.
18520         * libm/math/w_cosh.c (cosh): Likewise.
18521         * libm/math/wf_atanh.c (atanhf): Likewise.
18522         * libm/math/w_atanh.c (atanh): Likewise.
18523         * libm/math/wf_atan2.c (atan2f): Likewise.
18524         * libm/math/w_atan2.c (atan2): Likewise.
18525         * libm/math/wf_asin.c (asinf): Likewise.
18526         * libm/math/w_asin.c (asin): Likewise.
18527         * libm/math/wf_acosh.c (acoshf): Likewise.
18528         * libm/math/w_acosh.c (acosh): Likewise.
18529         * libm/math/wf_acos.c (asocf): Likewise.
18530         * libm/math/w_acos.c (acos): Likewise.
18531         * libm/math/wf_sqrt.c (sqrtf): Likewise.
18532         * libm/math/k_standard.c (_k_standard): Don't require SVID behavior
18533         for embedded systems.
18534
18535 Mon Dec  8 12:12:58 1997  Ian Lance Taylor  <ian@cygnus.com>
18536
18537         * libc/stdlib/mallocr.c (malloc_extend_top): Add patch from Doug
18538         Lea in case of a foreign sbrk.
18539
18540 Fri Dec  5 23:27:28 1997  Ian Lance Taylor  <ian@cygnus.com>
18541
18542         Incorporate Doug Lea's malloc:
18543         * libc/stdlib/mallocr.c: Completely replaced.
18544         * libc/stdlib/malloc.c: Document malloc_usable_size and memalign.
18545         (realloc): Remove.
18546         * libc/stdlib/calloc.c (calloc): Just call _calloc_r.
18547         * libc/stdlib/mstats.c: Document mallinfo, malloc_stats, and
18548         mallopt.
18549         (mallinfo, malloc_stats, mallopt): New functions.
18550         (_mstats_r): Just call _malloc_stats_r.
18551         * libc/stdlib/malign.c: New file.
18552         * libc/stdlib/mlock.c: New file.
18553         * libc/stdlib/msize.c: New file.
18554         * libc/stdlib/mtrim.c: New file.
18555         * libc/stdlib/realloc.c: New file.
18556         * libc/stdlib/valloc.c: New file.
18557         * libc/stdlib/malloc.h: Remove.
18558         * libc/stdlib/callocr.c: Remove.
18559         * libc/stdlib/Makefile.in (OFILES): Add cfreer.o, freer.o,
18560         malign.o, malignr.o, mallinfor.o, malloptr.o, mallstatsr.o,
18561         mlock.o, msize.o, msizer.o, mtrim.o, pvallocr.o, realloc.o,
18562         reallocr.o, valloc.o, vallocr.o.
18563         (CHEWOUT_FILES): Add mlock.def, mstats.def.
18564         (MALLOC_CFLAGS): New variable.
18565         (mallocr.o): New target, build from mallocr.c.
18566         (freer.o, reallocr.o, callocr.o, cfreer.o, malignr.o): Likewise.
18567         (vallocr.o, pvallocr.o, mallinfor.o, mallstatsr.o): Likewise.
18568         (msizer.o, malloptr.o): Likewise.
18569         (malign.o, mlock.o, msize.o, mtrim.o, realloc.o): New targets.
18570         (valloc.o): New target.
18571         * libc/stdlib/stdlib.tex: Include mlock.def and mstats.def.
18572         * libc/include/malloc.h: Declare struct mallinfo, and new
18573         routines.
18574         * libc/include/stdlib.h (cfree): Correct declaration.
18575
18576 Tue Dec  2 10:12:16 1997  Nick Clifton  <nickc@cygnus.com>
18577
18578         * libc/include/machine/setjmp.h: Add support for Thumb target.
18579
18580         * libc/include/machine/ieeefp.h: Add support for Thumb target.
18581
18582         * configure.in (links): Add support for Thumb target.
18583
18584 Wed Nov 26 09:56:17 1997  Nick Clifton  <nickc@cygnus.com>
18585
18586         * libc/sys/arm/setjmp.S: Updated with version from branch.
18587
18588 Thu Nov 20 01:21:43 1997  Geoffrey Noer  <noer@cygnus.com>
18589
18590         * libc/include/stdio.h: add POSIX-required define L_ctermid
18591         for ctermid
18592
18593 Wed Nov 19 16:11:40 1997  Michael Meissner  <meissner@cygnus.com>
18594
18595         * configure.in (d30v-*-*): Define ABORT_MESSAGE, SMALL_MEMORY, in
18596         addition to MISSING_SYSCALL_NAMES.
18597
18598 Mon Nov 17 20:05:05 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
18599
18600         * libc/include/sys/config.h: (UINT_MAX, for D10V):  Make unsigned.
18601
18602 Mon Nov 10 22:26:55 1997  Geoffrey Noer  <noer@cygnus.com>
18603
18604         * libc/include/string.h: change strsignal proto to return
18605         a char *.  This eliminates compile problems in gdb resulting
18606         from gdb's definition of strsignal in defs.h.
18607
18608 Mon Nov 10 17:11:08 1997  Geoffrey Noer  <noer@cygnus.com>
18609
18610         * libc/sys/cygwin32/sys/utime.h: new (moved here from
18611         winsup/include) so as not to conflict with the one in
18612         libc/include.
18613         * libc/include/string.h: add protos for strsignal, strtosigno
18614
18615 Mon Nov 10 13:49:54 1997  Michael Meissner  <meissner@cygnus.com>
18616
18617         * libc/include/sys/config.h: Define __IEEE_BIG_ENDIAN if d30v.
18618
18619         * configure.in (d30v-*-*): Add configuration.
18620
18621 Thu Oct 30 14:01:23 1997  Nick Clifton  <nickc@cygnus.com>
18622
18623         * configure.in (links): Add -DARM_RD[P|I]_MONITOR to target_cflags
18624         to select which kind of debug monitor is in use for an ARM target.
18625
18626         * libc/sys/arm/crt0.S: New version: Supports Thumb startups and
18627         Angel and Demon debug monitors.  Part of this code was supplied by
18628         Tony Thompson at ARM: athompso@arm.com.
18629
18630 Fri Oct 24 18:57:05 1997  Jeffrey A Law  (law@cygnus.com)
18631
18632         * strncat.c (strncat): Don't call strncpy; strncay has the wrong
18633         semantics when the count is greater than the length of the second
18634         source string.
18635
18636 Thu Oct 23 01:37:41 1997  Geoffrey Noer  <noer@cygnus.com>
18637
18638         * libc/include/sys/signal.h: reorder CYGWIN32 signal numbers
18639         * libc/include/sys/unistd.h: add protos for usleep, truncate,
18640         truncate and ftruncate take off_t, not size_t
18641
18642 Tue Oct 21 18:42:00 1997  Jim Wilson  <wilson@cygnus.com>
18643
18644         * libc/string/strcat.c (strcat): Add missing comment end.
18645         * libc/string/strncat.c (strncat): Likewise.
18646
18647 Tue Oct 21 17:23:34 1997  Nick Clifton  <nickc@cygnus.com>
18648
18649         * configure.in (links): Define PREFER_SIZE_OVER_SPEED for v850
18650         targets.
18651         * libc/string/{memchr.c, memcmp.c, memcpy.c}:   Add space
18652         optimised version which is selected if PREFER_SIZE_OVER_SPEED is
18653         defined.
18654         * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
18655         * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
18656         * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
18657
18658 Mon Oct 13 15:12:35 1997  Ian Lance Taylor  <ian@cygnus.com>
18659
18660         * libc/include/sys/param.h (BIG_ENDIAN): Define if __i386__.
18661         (LITTLE_ENDIAN, BYTE_ORDER): Likewise.
18662
18663 Thu Oct  9 13:54:44 1997  Doug Evans  <dje@canuck.cygnus.com>
18664
18665         * libc/machine/i386/setjmp.S: New file.
18666         * libc/machine/i386/Makefile.in: Delete COPYOFILES.
18667         (OFILES): Add setjmp.o.
18668         (setjmp.o): Add rule for.
18669         * configure.in: Don't set machine_dir for *-*-{go32,sco*,cygwin32}.
18670
18671 Tue Oct  7 14:01:29 1997 Bill Moyer     (billm@cygnus.com)
18672                          Jeffrey A Law  (law@cygnus.com)
18673
18674         * libc/string/{memchr.c, memcmp.c, memcpy.c}: Reimplement to run faster.
18675         * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
18676         * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
18677         * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
18678
18679 Mon Oct  6 14:07:59 1997  Nick Clifton  <nickc@cygnus.com>
18680
18681         * libc/sys/sysnecv850/Makefile.in (crt0.o trap.o): Explicit
18682         rules.
18683
18684         * libc/include/sys/config.h: Use __v850 to select v850
18685         endianness.
18686
18687         * libc/include/machine/setjmp.h: Use __v850 to select v850 jump
18688         buffer size.
18689
18690         * libc/include/machine/ieeefp.h: Use __v850 to select v850
18691         endianness.
18692
18693 Thu Sep 25 14:11:37 1997  Geoffrey Noer  <noer@cygnus.com>
18694
18695         * libc/stdlib/setenv.c: change unsetenv definition to match
18696         style of setenv (with _DEFUN).  The string should be a const.
18697         * libc/include/stdlib.h: unsetenv proto should return void.
18698
18699 Tue Sep 23 18:17:20 1997  Geoffrey Noer  <noer@cygnus.com>
18700
18701         * libc/include/stdlib.h: define unsetenv proto for __CYGWIN32__
18702
18703 Thu Sep 18 12:50:15 1997  Angela Marie Thomas (angela@cygnus.com)
18704
18705         * libc/stdio/glue.h: remove.
18706         * libc/stdio/findfp.c, libc/stdio/fwalk.c: remove #include "glue.h"
18707         * libc/stdio/Makefile.in: remove glue.h dependencies
18708
18709 Wed Sep 17 17:42:27 1997  Nick Clifton  <nickc@cygnus.com>
18710
18711         * libc/sys/sysnecv850/crt0.S: Created V850e version.
18712
18713 Tue Sep  9 10:40:57 1997  Doug Evans  <dje@canuck.cygnus.com>
18714
18715         * configure.in (target_cpu): Add `arc'.
18716
18717 Tue Sep  9 10:40:42 1997  Joel Sherrill  <joel@OARcorp.com>
18718
18719         * newlib/configure.in (*-*-rtems*): Add -DSIGNAL_PROVIDED and
18720           -DREENTRANT_SYSCALLS_PROVIDED to the target_cflags.
18721         * newlib/libc/include/sys/errno.h: Add ENOTSUP.
18722         * newlib/libc/reent/reent.c: Add _wrapup_reent.
18723         * newlib/libc/sys/rtems/sys/types.h: Avoid redefinitions for go32.
18724
18725 Sun Sep  7 16:41:41 1997  Gavin Koch  <gavin@cygnus.com>
18726
18727         * libc/machine/mips/setjmp.S: Handle mips16 builds.
18728
18729 Thu Aug 21 20:05:38 1997  Ian Lance Taylor  <ian@cygnus.com>
18730
18731         * libc/include/stdio.h (siprintf): Declare.
18732
18733 Mon Aug 18 11:19:13 1997  Nick Clifton  <nickc@cygnus.com>
18734
18735         * libc/sys/sysnecv850/Makefile.in (.c.o): Add rule that includes
18736         TARGET_CFLAGS and NEWLIB_FLAGS.
18737
18738 Mon Aug 18 11:15:43 1997  Nick Clifton  <nickc@cygnus.com>
18739
18740         * configure.in (links): Add support for v850ea target.
18741
18742 Mon Aug 18 11:15:43 1997  Nick Clifton  <nickc@cygnus.com>
18743
18744         * configure.in (links): Add support for v850e target.
18745
18746 Wed Aug 13 19:16:54 1997  Nick Clifton  <nickc@cygnus.com>
18747
18748         * libc/sys/sysnecv850/crt0.S: Remove initial setting of r0 to 0.
18749
18750 Mon Aug 11 15:49:54 1997  Doug Evans  <dje@canuck.cygnus.com>
18751
18752         * configure.in (arc-*-*): Add support for.
18753         * libc/include/machine/ieeefp.h (__arc__): Add support for the ARC.
18754
18755 Fri Jul 25 17:37:41 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
18756
18757         * libc/sys/sh/crt0.S (start): Add fpscr initialization for SH4.
18758
18759 Thu Jul 24 18:32:17 1997  Geoffrey Noer  <noer@cygnus.com>
18760
18761         * libc/stdlib/bsearch.c (bsearch): remove last unneeded
18762         comparison which accesses invalid memory when the key is
18763         larger than the last member of the array.
18764         * libc/include/machine/setjmp.h: add sigsetjmp, siglongjmp
18765         for CYGWIN32
18766         * libc/include/sys/unistd.h: add _POSIX defines for CYGWIN32
18767
18768 Tue Jul 22 16:03:06 1997  Ian Lance Taylor  <ian@cygnus.com>
18769
18770         * libc/include/stdlib.h (realpath): Declare if __CYGWIN32__ and
18771         not _STRICT_ANSI.
18772
18773 Thu Jul 10 15:11:52 1997  Doug Evans  <dje@canuck.cygnus.com>
18774
18775         * libm/math/k_standard.c (__kernel_standard): Call fflush(stdout)
18776         ifndef _USE_WRITE, instead of ifdef _USE_WRITE.
18777
18778 Thu Jul 10 16:00:09 1997  Mike Meissner  <meissner@cygnus.com>
18779
18780         * libc/machine/tic80/setjmp.S (setjmp,longjmp): Use ld.d and st.d
18781         to load/store memory.
18782
18783 Mon Jul  7 17:38:17 1997  Ian Lance Taylor  <ian@cygnus.com>
18784
18785         * libc/include/sys/fcntl.h: Define _O_* symbols with leading
18786         underscores if _WIN32.
18787
18788 Wed Jul  2 10:07:20 1997  Doug Evans  <dje@canuck.cygnus.com>
18789
18790         * libm/math/k_standard.c (__kernel_standard): Delete reentrancy
18791         support ifdef _USE_WRITE missed in last change.
18792         From Anders Blomdell <anders.blomdell@control.lth.se>.
18793
18794 Wed Jun 25 10:18:49 1997  Doug Evans  <dje@canuck.cygnus.com>
18795
18796         * libc/stdio/tmpnam.c (worker): Handle _open_r being stubbed out.
18797         (_tmpnam_r, _tempnam_r): Update.
18798
18799 Wed Jun 25 00:16:55 1997  Mark Alexander  <marka@cygnus.com>
18800
18801         * libc/machine/sparc/setjmp.S: New file.
18802         * libc/machine/sparc/Makefile.in: Add setjmp.
18803         * libc/include/machine/setjmp.h: Increase jmpbuf size for sparc.
18804
18805 Tue Jun 24 23:27:38 1997  Mark Alexander  <marka@cygnus.com>
18806
18807         * libc/include/machine/setjmp.h: Use __TIC80__ instead of __tic80__.
18808
18809 Tue Jun 24 14:53:40 1997  Doug Evans  <dje@canuck.cygnus.com>
18810
18811         From Joel Sherrill <joel@oarcorp.com>.
18812         * libc/stdlib/getenv.c (_findenv): Avoid dereferencing null `environ'.
18813
18814         Add rtems support.  From Joel Sherrill <joel@oarcorp.com>.
18815         * configure.in: Recognize *-*-rtems*.
18816         * libc/sys/rtems/{Makefile.in,crt0.c,dummysys.c}: New files.
18817         * libc/sys/rtems/sys/{features.h,sched.h,siginfo.h,signal.h,
18818         time.h,times.h,types.h}: New files.
18819         * libc/sys/rtems/include/{limits.h,signal.h,time.h}. New files.
18820
18821 Fri Jun 20 11:13:16 1997  Geoffrey Noer  <noer@cygnus.com>
18822
18823         patch from sos@prospect.com.ru (Sergey Okhapkin):
18824         * include/sys/wait.h: correct operator precidence bug
18825         in WIFSIGNALED
18826
18827 Wed Jun 18 22:08:27 1997  Geoffrey Noer  <noer@cygnus.com>
18828
18829         * libc/include/stdlib.h: remove unsetenv proto since it conflicts
18830         with newlib's unsetenv function
18831         * libc/sys/cygwin32/sys: new directory for includes
18832         * libc/sys/cygwin32/sys/dirent.h: move cygwin32's dirent.h
18833         here from winsup/include/sys
18834
18835 Mon Jun 16 21:02:22 1997  Geoffrey Noer  <noer@cygnus.com>
18836
18837         * libc/include/sys/unistd.h: _exit should only be
18838         labelled noreturn when not __CYGWIN32__
18839         * libc/include/stdlib.h: for __CYGWIN32__, add proto for unsetenv
18840         * libc/include/sys/signal.h: add SIGIO to _WIN32 list and
18841         increment NSIG
18842
18843 Thu Jun 12 18:52:41 1997  Ian Lance Taylor  <ian@cygnus.com>
18844
18845         * libc/include/sys/time.h: Only define timeval and timezone if
18846         _GNU_H_WINDOWS32_SOCKETS is not defined.
18847         * libc/include/sys/stat.h: If _WIN32, define _S_IFMT, etc.
18848
18849 Wed Jun 11 09:46:26 1997  Jeffrey A Law  (law@cygnus.com)
18850
18851         * libc/machine/mn10200/setjmp.S: Implement setjmp/longjmp
18852         * libc/machine/mn10300/setjmp.S: Likewise.
18853
18854         * libc/sys/sysmec/crt0.S: Use "call" instead of "calls" for
18855         the mn10300 (more relaxing opportunities).
18856
18857 Tue Jun 10 17:24:45 1997  Mike Meissner  <meissner@cygnus.com>
18858
18859         * configure.in (powerpc*-*-{eabi,elf,linux,rtems,sysv,solaris}):
18860         Build libraries with -mstrict-align.
18861
18862 Fri Jun  6 14:07:59 1997  Ian Lance Taylor  <ian@cygnus.com>
18863
18864         * libc/string/strlwr.c: New file.
18865         * libc/string/strupr.c: New file.
18866         * libc/include/string.h: Declare strlwr and strupr.
18867         * libc/string/Makefile.in (OFILES): Add strlwr.o and strupr.o.
18868         (CHEWOUT_FILES): Add strlwr.def and strupr.def.
18869         (strlwr.o, strupr.o): New targets.
18870         * libc/string/strings.tex: Include strlwr and strupr docs.
18871
18872         * libc/include/sys/types.h: Don't define u_char, et. al., if
18873         _GNU_H_WINDOWS32_SOCKETS is defined.  Likewise for fd_set,
18874         et. al.  Make FD_SETSIZE default 64 rather than 60.  Define
18875         _types_fd_set rather than fd_set, and define fd_set as a macro.
18876
18877         * libc/include/malloc.h: New file.
18878
18879         * libc/include/string.h: Define strcmpi, stricmp, strncmpi, and
18880         strnicmp if they are not already defined.
18881
18882         * libc/include/time.h: If __CYGWIN32__, declare tzset and define
18883         _timezone, _daylight, and _tzname.
18884
18885 Wed Jun  4 12:51:16 1997  Doug Evans  <dje@canuck.cygnus.com>
18886
18887         * configure.in: Sort all configuration tables.
18888
18889         From Joel Sherrill <joel@oarcorp.com>
18890         * Makefile.in (stmp-targ-include): Copy $(sys_dir)/include/*.h.
18891
18892 Tue Jun  3 14:47:46 1997  Ian Lance Taylor  <ian@cygnus.com>
18893
18894         * libc/include/sys/signal.h: Don't include <sys/types.h>.  Just
18895         use int when declaring kill.
18896
18897         * libc/include/sys/timeb.h: New file.
18898
18899 Mon Jun  2 12:06:58 1997  Geoffrey Noer  <noer@cirdan.cygnus.com>
18900
18901         * libc/include/sys/time.h: add itimer support for Cygwin32
18902
18903 Mon May 19 11:56:46 1997  Mike Meissner  <meissner@cygnus.com>
18904
18905         * libc/stdlib/abort.c (abort): If ABORT_MESSAGE is defined, write
18906         out a message that abort was called to stderr.
18907
18908 Fri May 16 15:02:59 1997  Bob Manson  <manson@charmed.cygnus.com>
18909
18910         * libc/sys/sysmec/fstat.c (_fstat): Set st_blksize to 4096
18911         so that libio doesn't freak.
18912
18913         * libc/sys/sysmec/sbrk.c (_sbrk): The argument is a size_t, not
18914         int.
18915
18916         * libc/stdlib/mallocr.c (_morecore_r): Use size_t for
18917         memory sizes, not int.
18918
18919 Wed May 14 21:16:58 1997  Bob Manson  <manson@charmed.cygnus.com>
18920
18921         * libm/math/ef_hypot.c: Use long constants where
18922         appropriate.
18923         * libm/math/ef_sqrt.c: Ditto.
18924
18925         * libc/sys/sysmec/times.c(_times): Change to times.
18926
18927         * libc/sys/sysmec/read.c(_read): The third argument is
18928         size_t.
18929         * libc/sys/sysmec/write.c (_write): Ditto.
18930
18931         * libc/sys/sysmec/lseek.c: Include unistd.h for off_t.
18932         (_lseek): It's off_t for the second argument.
18933
18934 Wed May 14 15:23:36 1997  Mike Meissner  <meissner@cygnus.com>
18935
18936         * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN): Define here,
18937         as well as machine/ieeefp.h.
18938
18939 Thu May  8 15:47:25 1997  Geoffrey Noer  <noer@cygnus.com>
18940
18941         * libc/include/sys/signal.h: add signal protos for winsup
18942         functions (when __CYGWIN32__), include types.h
18943         * libc/include/sys/types.h: Change __go32_types__ internal
18944         define to __MS_types__ since it's used for more than just
18945         GO32 configs.  Define this if GO32, __MSDOS__, or _WIN32 are
18946         defined.
18947         * libc/include/sys/unistd.h: add ftruncate proto for
18948         winsup functions (when __CYGWIN32__)
18949
18950 Fri Apr 25 10:10:16 1997  Doug Evans  <dje@canuck.cygnus.com>
18951
18952         * libc/sys/h8300hms/sbrk.c (stack_ptr): Add definition.
18953
18954 Thu Apr 24 15:46:51 1997  Mike Stump  <mrs@cygnus.com>
18955
18956         * libc/include/machine/setjmp.h: Add tic80 support.
18957         * libc/machine/tic80/setjmp.S: Likewise.
18958
18959 Tue Apr 22 16:54:40 1997  Geoffrey Noer  <noer@pizza.cygnus.com>
18960
18961         * libc/sys/cygwin32/crt0.c: Add reference to main() so we can
18962         link programs from libraries only (such as in the X11
18963         distribution)
18964
18965 Mon Apr 21 15:02:12 1997  Fred Fish  <fnf@cygnus.com>
18966
18967         * libc/sys/arm/syscalls.c (signal): Remove stub, signal()
18968         supplied elsewhere in newlib.
18969
18970 Mon Apr 14 16:25:55 1997  Ian Lance Taylor  <ian@cygnus.com>
18971
18972         * Makefile.in (INSTALL): Change install.sh to install-sh.
18973
18974 Fri Apr 11 17:04:02 1997  Jason Molenda  (crash@godzilla.cygnus.co.jp)
18975
18976         * README: update WWW address for on-line documentation.
18977
18978 Wed Apr  9 00:38:13 1997  Geoffrey Noer  <noer@cygnus.com>
18979
18980         * libc/include/sys/signal.h: for _WIN32, define SIGCONT and
18981         increment NSIG
18982
18983 Mon Apr  7 23:54:00 1997  Jeffrey A Law  (law@cygnus.com)
18984
18985         * libc/sys/sysmec/crt0.S: Update for new calling conventions on the
18986         mn10300.
18987         * libc/sys/sysmec/trap.S: Don't compare a register to itself.
18988
18989 Tue Mar 25 08:47:43 1997  Jeffrey A Law  (law@cygnus.com)
18990
18991         * libc/sys/arm/syscalls.c: Fix/add stack/heap collision detection.
18992         * libc/sys/d10v/syscalls.c: Likewise.
18993         * libc/sys/h8300hms/sbrk.c: Likewise.
18994         * libc/sys/h8500hms/syscalls.c: Likewise.
18995         * libc/sys/m88kbug/syscalls.c: Likewise.
18996         * libc/sys/sh/syscalls.c: Likewise.
18997         * libc/sys/sysmec/sbrk.c: Likewise.
18998         * libc/sys/sysnecv850/sbrk.c: Likewise.
18999         * libc/sys/w65/syscalls.c: Likewise.
19000         * libc/sys.tex: Update sbrk sample code to include stack/heap collision.
19001
19002 Tue Mar 18 14:14:34 1997  Jeffrey A Law  (law@cygnus.com)
19003
19004         * libc/sys/sysmec/trap.S: Use "syscall" to trigger an
19005         emulated syscall instead of "trap".
19006
19007 Fri Mar 14 11:26:13 1997  Michael Meissner  <meissner@cygnus.com>
19008
19009         * libc/sys/d10v/trap.S (__trap0): Use trap 15 for system calls,
19010         not trap 0.
19011
19012 Sun Mar  9 23:27:04 1997  Doug Evans  <dje@seba.cygnus.com>
19013
19014         * configure.in (m32r-*-*): Add -msdata=sdata to target_cflags.
19015
19016 Sat Mar  8 09:05:01 1997  Fred Fish  <fnf@cygnus.com>
19017
19018         * libc/machine/arm/Makefile.in: Fix comment, is for "arm"
19019         not "sh".
19020         * libc/machine/m32r/Makefile.in: Fix comment, is for "m32r"
19021         not "d10v".
19022         * libc/sys/tic80/crt0.c: New file for TIc80.
19023         * libc/sys/tic80/Makefile.in: New file for TIc80.
19024         * libc/machine/tic80/Makefile.in: New file for TIc80.
19025
19026 Wed Mar  5 11:32:12 1997  J.T. Conklin  <jtc@cygnus.com>
19027
19028         * libc/machine/sh/memcpy.S: New file.
19029         * libc/machine/sh/memset.S: New file.
19030         * libc/machine/sh/Makefile.in (OFILES): Add memcpy.o and memset.o
19031
19032 Thu Feb 27 16:27:55 1997  Fred Fish  <fnf@cygnus.com>
19033
19034         * libc/include/machine/ieeefp.h (_IEEE_LITTLE_ENDIAN): Define
19035         for TIc80.
19036
19037 Wed Feb 26 13:43:39 1997  Jeffrey A Law  (law@cygnus.com)
19038
19039         * libc/sys/sysmec/crt0.S: Handle new calling conventions for
19040         the mn10200.
19041
19042 Wed Feb 26 07:11:03 1997  Michael Meissner  <meissner@cygnus.com>
19043
19044         * libc/machine/powerpc/setjmp.S (longjmp): Correct return status
19045         (patch from andrew@pogo.WV.TEK.COM).
19046
19047 Fri Feb 14 11:49:28 1997  Doug Evans  <dje@canuck.cygnus.com>
19048
19049         * libc/machine/m32r/setjmp.S (setjmp): Save r12.
19050         (longjmp): Restore r12. Fix code that handles returning 1 if passed 0.
19051
19052 Mon Feb 10 10:02:34 1997  Fred Fish  <fnf@cygnus.com>
19053
19054         * configure.in:  Add cases for "tic80" to set machine_dir,
19055         sys_dir, and syscall_dir.
19056
19057 Sun Feb  2 17:57:15 1997  Geoffrey Noer  <noer@cygnus.com>
19058
19059         * libc/sys/cygwin32/crt0.c: initialize floating pt registers
19060
19061 Wed Jan 29 15:57:38 1997  Geoffrey Noer  <noer@cygnus.com>
19062
19063         * libc/include/math.h: avoid conflicts with ANSI C++ <exception>
19064
19065 Mon Jan 27 12:50:01 1997  Doug Evans  <dje@seba.cygnus.com>
19066
19067         * libc/machine/m32r/setjmp.S: Use proper comment delimiter.
19068         Use proper constant prefix.
19069
19070 Fri Jan 24 10:59:04 1997  Jeffrey A Law  (law@cygnus.com)
19071
19072         * libc/sys/sysmec/*.c: Don't cast args to syscall to integers,
19073         that loses on the mn10200 where ints and pointers are different
19074         sizes.
19075
19076 Tue Jan 14 13:29:55 PST 1997  Jeremy Allison <jra@cygnus.com>
19077
19078         * configure.in: Added -DSIGNAL_PROVIDED to cygwin32
19079         target as signal is provided in winsup.
19080
19081 Tue Jan 14 11:10:13 1997  Jeremy Allison <jra@cygnus.com>
19082
19083         * libc/include/sys/process.h: Corrected const definitions
19084         in spawn functions. Added cwait.
19085
19086 Thu Jan  2 12:22:41 1997  Jeffrey A Law  (law@cygnus.com)
19087
19088         * libc/include/machine/ieeefp.h: mn10200 uses 16bit ints and 32bit
19089         doubles.
19090         * libc/include/sys/config.h: Similarly.
19091
19092 Tue Dec 31 18:36:14 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
19093
19094         * configure.in (sparc-sun-sunos*): Add -DSIGNAL_PROVIDED to the
19095         target_cflags.
19096         (i[3456]86-*-sco*): Ditto.
19097
19098         * libc/signal/Makefile.in (OFILES): Add signal.o.
19099         (CFILES): Add signal.c.
19100
19101         * libc/signal/raise.c (_raise_r): Only compile code if
19102         SIGNAL_PROVIDED is defined.
19103
19104         * libc/signal/signal.c: Redo whole file so that it works with
19105         current newlib.  Use _kill_r if no signal handler provided.
19106
19107         * libc/sys/{go32,sparc64,sysmec}/Makefile.in: Delete raise and
19108         signal stubs.
19109         * libc/sys/sysvnecv70/Makefile.in: Ditto.
19110         * libc/sys/sysnecv850/Makefile.in: Ditto.
19111
19112         * libc/sys/{go32,sparc64}/signal.c: Delete, stub no longer used.
19113         * libc/sys/sysmec/{raise,signal}.c: Ditto.
19114         * libc/sys/sysvnecv70/signal.s: Ditto.
19115         * libc/sys/sysnecv850/raise.c: Ditto.
19116
19117         * libc/sys/sysnecv850/kill.c (_kill): Encode signal # so that
19118         simulator and debugger can tell the difference between a signal
19119         being raised and an exit system call.
19120
19121         * NEWS: Document software signals being provided.
19122
19123 Mon Dec 23 11:54:19 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
19124
19125         * libc/reent/impure.c (_REENT_ATTR): Delete in favor of
19126         __ATTRIBUTE_IMPURE_PTR__.  Move PowerPC definition to
19127         include/sys/config.h.
19128         (impure_data): Use __ATTRIBUTE_IMPURE_DATA__ for attributes.
19129         Change from 'inpure_data'.
19130         (_impure_ptr): Use __ATTRIBUTE_IMPURE_PTR__ for attributes.  Use
19131         &impure_data, not &inpure_data.
19132
19133         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): If PowerPC
19134         and and System V ABI, define so that _impure_ptr lives in the
19135         .sdata section.
19136
19137 Sun Dec 22 23:33:05 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
19138
19139         * libc/include/sys/reent.h (__ATTRIBUTE_IMPURE_PTR__): Define as
19140         nothing if not defined.
19141         (_impure_ptr): Use __ATTRIBUTRE_IMPURE_PTR__, so a machine can set
19142         its attributes.
19143
19144         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__):
19145
19146 Wed Dec 18 10:12:04 1996  Jeffrey A Law  (law@cygnus.com)
19147
19148         * libc/sys/sysmec/crt0.S: Fix mn10200 stuff.
19149         * libc/sys/sysmec/trap.s: Handle mn10200 too.
19150         * libc/machine/mn10200/setjmp.S: Fix mn10200 stuff.
19151
19152 Mon Dec 16 10:05:36 1996  Jeffrey A Law  (law@cygnus.com)
19153
19154         * libc/sys/sysmec/crt0.S: Handle mn10200 too.
19155
19156 Fri Dec 13 11:05:20 1996  Jeremy Allison <jra@cygnus.com>
19157
19158         * libc/include/sys/errno.h: Added net errno's.
19159
19160 Wed Dec 11 16:24:25 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
19161
19162         * libc/misc/ffs.c: New file to support ffs function for GCC test
19163         gcc.c-torture/execute/960909-1.c.
19164
19165         * libc/misc/Makefile.in ({O,CHEWOUT_}FILES): Add ffs.
19166
19167 Sat Dec  7 10:12:37 1996  Jeffrey A Law  (law@cygnus.com)
19168
19169         * libc/sys/sysmec/crt0.S: Handle underscore prefix.
19170         * libc/sys/sysmec/trap.S: Likewise.
19171
19172 Fri Dec  6 15:08:49 1996  Jim Wilson  <wilson@cygnus.com>
19173
19174         * configure.in (mips*vr4300*-*-*): Delete use of sys/vr4300.
19175         * libc/sys/vr4300/{Makefile.in,crt0.S,syscalls.c}: Delete.
19176
19177 Wed Dec  4 16:25:27 1996  Jeffrey A Law  (law@cygnus.com)
19178
19179         * libc/sys/sysmec/signal.c: Dummy file.
19180         * libc/sys/sysmec/Makefile.in: Build it.
19181
19182 Wed Nov 27 13:10:18 1996  Ian Lance Taylor  <ian@cygnus.com>
19183
19184         * libc/machine/mips/machine/regdef.h: Define pc as $pc for
19185         mips16.
19186
19187 Mon Nov 25 09:58:28 1996  Jeffrey A Law  (law@cygnus.com)
19188
19189         * libc/sys/sysmec/{crt0.S,trap0.S}: Actually try to implement
19190         c-startup and simulator traps.
19191
19192
19193         * libc/sys/sysmec/crt0.S: Remove bogus '_' symbol prefixing
19194         * libc/sys/sysmec/trap0.S: Likewise.
19195
19196 Sat Nov 23 09:01:03 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
19197
19198         * libc/stdlib/mallocr.c (ROUND_TO): If SMALL_MEMORY, set to 0x7 to
19199         round to double word alignment.
19200         (_morecore_r): Combine rounding up pointers to both ROUND_TO and 8
19201         byte alignment.
19202
19203         * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Define if d10v.
19204
19205         * libc/sys/d10v/syscalls.c (_sbrk): Add better checks for running
19206         out of memory.
19207
19208 Mon Nov 18 13:08:26 1996  Jeffrey A Law  (law@cygnus.com)
19209
19210         * configure.in: Handle mn10200 and mn10300.
19211         * libc/include/machine/{ieeefp.h,setjmp.h}: Likewise.
19212         * libc/include/sys/config.h: Likewise.
19213         * libc/sys/sysmec: New directory for mec stuff.
19214         * libc/machine/mn10300: New directory for mn10300 stuff.
19215         * libc/machine/mn10200: Similarly for mn10200 stuff.
19216
19217 Fri Nov 15 16:41:41 1996  Doug Evans  <dje@canuck.cygnus.com>
19218
19219         * libc/sys/arm/crt0.S: Use .text, not .section .text.
19220         * libc/sys/arm/syscalls.c: Rewrite to set errno properly.
19221
19222         * libc/include/sys/types.h (_ST_INT32): New macro, local to file.
19223         (nlink_t): Change type from unsigned int to unsigned short.
19224         (mode_t): Ensure size is 32 bits even if int is 16.
19225         * libc/include/sys/stat.h (st_nlink): Change type to nlink_t.
19226         (st_spare[123]): Change type from int to long.
19227
19228 Fri Nov 15 11:41:50 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
19229
19230         * libc/sys/d10v/syscalls.c (_sbrk): Align initial heap_end to 8
19231         byte boundary.
19232
19233         * configure.in (d10v*): Define SMALL_MEMORY.
19234
19235 Mon Nov 11 10:30:44 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
19236
19237         * configure.in (powerpc*-{eabi,elf,linux,rtem,sysv,solaris}*): Add
19238         -mrelocatable-lib and -mno-eabi flags.
19239
19240 Mon Nov 11 09:01:39 1996  Jeffrey A Law  (law@cygnus.com)
19241
19242         * libc/machine/h8300/memcpy.S: Fix comments to reflect reality.
19243         Fix handling of mis-aligned source operand when both the
19244         destination & length are properly aligned.
19245
19246 Wed Oct 30 09:41:11 1996  Jeffrey A Law  (law@cygnus.com)
19247
19248         * libc/sys/sysnecv850/Makefile.in (OFILES): Add
19249         times.o, time.o and gettime.o
19250         * libc/sys/sysnecv850/{time.c, times.c, gettime.c}: New files.
19251         * libc/sys/sysnecv850/sys/syscall.h: Add SYS_times and
19252         SYS_gettimeofday.
19253
19254 Tue Oct 29 13:40:09 1996  Jeffrey A Law  (law@cygnus.com)
19255
19256         * libc/sys/sysnecv850/Makefile.in (OFILES): Add access.o
19257         * libc/sys/sysnecv850/access.c: New file.
19258
19259 Mon Oct 21 19:47:02 1996  Ian Lance Taylor  <ian@cygnus.com>
19260
19261         * libc/sys/vr4300/Makefile.in (clean): Remove $(OFILES).
19262
19263         * libc/stdlib/mprec.h (word0, word1): Use __uint32_t, not unsigned
19264         long.
19265
19266 Mon Oct 21 14:43:07 1996  Jeffrey A Law  (law@cygnus.com)
19267
19268         * libc/sys/sysnecv850/crt0.S: Initialize ep and gp registers.
19269
19270 Thu Oct 17 11:47:16 1996  Doug Evans  <dje@seba.cygnus.com>
19271
19272         * libc/include/machine/{ieeefp.h,setjmp.h}: Add m32r support.
19273         * libc/include/sys/config.h: Add m32r support.
19274
19275 Wed Oct 16 23:08:05 1996  Jeffrey A Law  (law@cygnus.com)
19276
19277         * libc/sys/sysnecv850/v850.ld: Remove.  It doesn't belong
19278         here.
19279
19280 Wed Oct 16 21:18:07 1996  Mark Alexander  <marka@cygnus.com>
19281
19282         * libc/include/machine/setjmp.h: Add D10v support.
19283
19284 Tue Oct 15 22:28:26 1996  Jeffrey A Law  (law@cygnus.com)
19285
19286         * configure.in: Configure the "libc/syscalls" directory for
19287         the v850.
19288
19289         * libc/sys/sysnecv850/{close.c, execve.c, fork.c}: Add missing '_'.
19290         * libc/sys/sysnecv850/{fstat.c, getpid.c, kill.c}: Likewise.
19291         * libc/sys/sysnecv850/{lseek.c, open.c, read.c}: Likewise.
19292         * libc/sys/sysnecv850/{sbrk.c, stat.c, unlink.c}: Likewise.
19293         * libc/sys/sysnecv850/{wait.c, write.c}: Likewise.
19294
19295 Tue Oct 15 16:24:39 1996  Stu Grossman  (grossman@critters.cygnus.com)
19296
19297         * libc/sys/sysnecv850/crt0.S (start):  Allocate spill space on
19298         stack for args for main and other routines.  Zero out args for
19299         main.
19300
19301         * libc/sys/sysnecv850/v850.ld:  New.  Linker script to layout memory
19302         correctly.
19303
19304 Tue Oct 15 11:51:42 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
19305
19306         * libc/stdio/findfp.c (std): Remove extraneous ';' after
19307         function.
19308
19309         * libc/sys/d10v/sys/syscall.h (SYS_kill): Add.
19310
19311         * libc/sys/d10v/{syscalls.c,trap.S} (_kill,_getpid): Make these
19312         real system calls now.
19313
19314         * libc/stdio/setvbuf (setvbuf): Cast pointers to _POINTER_INT
19315         before casting them to int.
19316         * libc/stdio/tmpnam.c (_tempnam_r): Ditto.
19317
19318         * libc/stdlib/mallocr.c (_morecore_r): Use _POINTER_INT when
19319         aligning pointer.
19320         * libc/string/memset.c (memset): Ditto.
19321
19322         * libc/stdio/vfscanf.c (__svfscanf): When converting to pointer,
19323         first convert ints to _POINTER_INT to eliminate GCC warning.
19324
19325         * libc/stdio/vfprintf.c (_vfprintf_r): Use _POINTER_INT when
19326         processing %p.
19327
19328         * libm/math/ef_scalb.c (__ieee754_scalbf): Cut down range to 32000
19329         from 65000 if ints are only 16 bits.
19330
19331         * libm/math/sf_scalbn.c (scalbnf): Cut down overflow test to 30000
19332         from 50000 if ints are only 16 bits.
19333
19334         * libc/include/sys/config.h (_POINTER_INT): New macro, to give an
19335         int type that is the same size as a pointer.
19336
19337         * libc/misc/dprintf.c (__dprintf): Use _POINTER_INT when
19338         processing %p.
19339         (get_number): Explicitly cast number to long before shifting by 16
19340         or 24, in case ints are short.
19341
19342         * libc/include/sys/config.h (_POINTER_INT): Define as short.
19343
19344 Wed Oct  9 16:54:32 1996  Jeremy Allison <jra@cygnus.com>
19345
19346         * libc/string.h: Added ffs, removed swab.
19347         * libc/sys/errno.h: Added EOPNOTSUPP.
19348         * libc/sys/unistd.h: Added swab.
19349
19350 Thu Oct  3 17:08:50 1996  Jeremy Allison <jra@cygnus.com>
19351
19352         * libc/include/sys/stat.h: Added fchmod.
19353         * libc/include/sys/unistd.h: Added fsync.
19354
19355 Tue Oct  1 17:34:08 1996  Jeremy Allison <jra@cygnus.com>
19356
19357         * libc/include/sys/errno.h: Added defines for EPFNOSUPPORT (96)
19358         and ECONNRESET (104) for cygwin32.
19359
19360 Tue Oct  1 16:24:05 1996  Gavin Koch  <gavin@cygnus.com>
19361
19362         * libc/sys/sysnecv850/_exit.c: added _do_dtors to
19363         do the static destructors.
19364
19365 Mon Sep 30 15:59:05 1996  Stu Grossman  (grossman@critters.cygnus.com)
19366
19367         * libc/sys/sysnecv850/trap.S:  Change I/O to use trap 31.
19368
19369 Mon Sep 30 12:02:50 1996  Doug Evans  <dje@canuck.cygnus.com>
19370
19371         * libc/machine/m32r/{Makefile.in,setjmp.S}: New files.
19372         * configure.in: Recognize m32r-*-*.
19373
19374 Mon Sep 30 00:34:41 1996  James G. Smith  <jsmith@cygnus.co.uk>
19375
19376         * libc/sys/arm/trap.S (__rt_stkovf_split_big,
19377         __rt_stkovf_split_small): Added default software stack overflow
19378         handlers, which just call SWI_Exit.
19379         * libc/sys/arm/crt0.S (_mainCRTStartup): Simple software stack
19380         limit initialisation.
19381
19382 Fri Sep 27 13:08:03 1996  Mark Alexander  <marka@cygnus.com>
19383
19384         * libc/sys/d10v/{trap.S,sys/syscall.h}: Add time() function.
19385
19386 Fri Sep 27 12:32:00 1996  Jeremy Allison <jra@cygnus.com>
19387
19388         * libc/include/sys/types.h: Added ssize_t definition.
19389
19390 Wed Sep 25 14:52:18 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
19391
19392         * libc/machine/d10v/setjmp.S: Use ';' for comments.
19393         * libc/sys/d10v/{crt0.S,trap.S}: Ditto.
19394
19395         * libc/machine/d10v/setjmp.S (longjmp): Use exef0t || instead of
19396         branch around a single ldi instruction.
19397
19398         * libc/sys/d10v/crt0.S (_start): Use auto-increment to zero bss.
19399         Call exit, instead of just issuing a stop instruction.
19400
19401 Sun Sep 22 17:26:55 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
19402
19403         * libc/sys/d10v/{trap.S,syscalls.c}: Add -mint32 support.
19404
19405 Fri Sep 20 13:23:12 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
19406
19407         * libc/stdlib/mprec.h: Explicitly declare all large constants as
19408         longs, and then cast them to __uint32_t.
19409
19410         * libc/include/sys/config.h: Protect against multiple inclusions.
19411
19412 Tue Sep 17 13:10:33 1996  Mark Alexander  <marka@cygnus.com>
19413
19414         * configure.in (d10v*): Set syscall_dir.
19415
19416 Sun Sep 15 10:41:59 1996  Mark Alexander  <marka@cygnus.com>
19417
19418         * libc/sys/d10v/crt0.S: Set stack pointer.
19419
19420 Thu Sep 12 13:02:38 1996  Mark Alexander  <marka@cygnus.com>
19421
19422         * libc/sys/d10v/{trap.S, syscalls.c}: Rewrite most system calls
19423         in assembly for efficiency.  Change calling convention to allow
19424         long ints to be returned.
19425
19426 Wed Sep 11 10:28:18 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
19427
19428         * libc/machine/v850/Makefile.in (setjmp.o): Fix dependency.
19429
19430 Thu Sep  5 19:23:06 1996  Doug Evans  <dje@canuck.cygnus.com>
19431
19432         * libc/posix/execvp.c (execvp): Don't search PATH if file has '/'.
19433         Handle empty entries in $PATH.
19434
19435 Tue Sep 03 18:15:02 1996  Mark Alexander  <marka@cygnus.com>
19436
19437         * libc/machine/d10v/setjmp.S: Make it really work.
19438
19439 Tue Sep  3 12:16:26 1996  Ian Lance Taylor  <ian@cygnus.com>
19440
19441         * libc/sys/sh/crt0.S: If __ELF__, use ELF section attributes for
19442         the .stack section.
19443
19444 Tue Sep  3 10:08:45 1996  Jeffrey A Law  (law@cygnus.com)
19445
19446         * sys/sysnecv850/sys/file.h: Remove.
19447         * sys/sysnecv850/sys/syscall.h: New file.
19448         * sys/sysnecv850/{misc.c,syscalls.c,malloc.c}: Deleted.
19449         * sys/sysnecv850/{chmod.c, chown.c, close.c, creat.c} New files.
19450         * sys/sysnecv850/{execv.c, execve.c, fork.c, fstat.c} New files.
19451         * sys/sysnecv850/{getpid.c, isatty.c, kill.c, lseek.c} New files.
19452         * sys/sysnecv850/{open.c, pipe.c, raise.c, read.c} New files.
19453         * sys/sysnecv850/{stat.c, unlink.c, utime.c, wait.c} New files.
19454         * sys/sysnec850/trap.S: New file.
19455         * sys/sysnecv850/{_exit.c, write.c}: Use new TRAP0 mechanism for
19456         syscalls.
19457         * sys/sysnecv850/crt0.S: Use cmp/bl, not tst/bz.
19458         * sys/sysnec850/sbrk.c: New version.
19459
19460 Sun Sep  1 20:08:27 1996  Jeffrey A Law  (law@cygnus.com)
19461
19462         * sys/sysnecv850/crt0.S: Fix order of comparison args.  Loop
19463         as long as r6 is less than r7.
19464
19465 Sun Sep  1 13:54:19 1996  Ian Lance Taylor  <ian@cygnus.com>
19466
19467         * Makefile.in (mostlyclean): Separate from clean target.  Don't
19468         remove *.a or targ-include.
19469         * libc/machine/sparc/Makefile.in (mostlyclean): New target.
19470
19471 Sun Sep  1 11:35:26 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
19472
19473         * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Define for
19474         d10v.
19475         (__SMALL_BITFIELDS): Ditto.
19476
19477         * libc/include/sys/config.h (_DOUBLE_IS_32BITS): Define for d10v.
19478
19479 Sat Aug 31 16:42:36 1996  Jeffrey A Law  (law@cygnus.com)
19480
19481         * libc/sys/sysnecv850/misc.c (raise, getpid, kill): Remove '_'
19482         prefix.
19483
19484         * libc/sys/sysnecv850/sbrk.c (sbrk): Remove '_' prefix.
19485         * libc/sys/sysnecv850/syscalls.c (read, lseek, close): Likewise.
19486         * libc/sys/sysnecv850/syscalls.c (fstat, open, close): Likewise.
19487         * libc/sys/sysnecv850/write.c (write): Likewise.
19488
19489         * libc/sys/sysnecv850/crt0.S: Don't try to zero out an empty
19490         .bss.
19491
19492 Fri Aug 30 11:18:45 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
19493
19494         * libc/include/sys/config.h: Define INT_MAX, UINT_MAX
19495         appropriately for D10V, depending on -mint16/-mint32.
19496
19497 Thu Aug 29 16:09:37 1996  Mark Alexander  <marka@cygnus.com>
19498
19499         * configure.in: Add cases for D10V.
19500
19501 Thu Aug 29 17:03:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
19502
19503         * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
19504
19505 Wed Aug 28 21:05:52 1996  Jeffrey A Law  (law@cygnus.com)
19506
19507         * libc/include/machine/ieeefp.h: Fix typo.
19508
19509 Wed Aug 28 19:47:55 1996  Mark Alexander  <marka@cygnus.com>
19510
19511         * libc/sys/d10v: New directory for D10V stuff.
19512         * libc/include/machine/ieeefp.h: Add D10V defines.
19513
19514 Mon Aug 26 13:34:58 1996  Doug Evans  <dje@canuck.cygnus.com>
19515
19516         * libc/include/sys/errno.h: Add winsup/include/sys/errno.h values:
19517         ELOOP, ENOBUFS, EAFNOSUPPORT, EPROTOTYPE, ENOTSOCK, ENOPROTOOPT,
19518         ESHUTDOWN, ECONNREFUSED, EADDRINUSE, ECONNABORTED, EWOULDBLOCK.
19519         * libc/string/strerror.c (strerror): Add them.
19520
19521 Thu Aug 22 16:38:19 1996  Jeffrey A Law  (law@cygnus.com)
19522
19523         * libc/sys/sysnecv850: New directory for v850 stuff.
19524
19525         * libc/machine/v850: New directory for v850 stuff.
19526         * libc/machine/v850/setjmp.S: setjmp/longjmp support.
19527
19528         * configure.in: Add support for the v850.
19529
19530         * libc/include/machine/ieeefp.h: Add v850 defines.
19531         * libc/include/machine/setjmp.h: Likewise.
19532         * libc/include/sys/config.h: Add v850 defines.
19533
19534 Sat Aug 17 04:06:36 1996  Geoffrey Noer  <noer@cygnus.com>
19535
19536         * libc/include/machine/ieeefp.h
19537         * libc/include/machine/setjmp.h
19538         * libc/include/sys/fcntl.h
19539         * libc/include/sys/signal.h
19540         * libc/include/sys/types.h
19541         * libc/stdlib/system.c:
19542         Fix preprocessor defines to match new scheme (_WIN32 for WIN32
19543         API availability, __CYGWIN32__ for cygwin32 environment specific).
19544
19545 Thu Aug 15 17:09:21 1996  Geoffrey Noer  <noer@cygnus.com>
19546
19547         * libc/include/stdlib.h: add multibyte character functions.  Add
19548         __eprintf for assert.
19549
19550 Thu Aug 15 11:15:40 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
19551
19552         * libc/stdlib/malloc.h (MALLOC_ALIGNMENT): Use either pointer
19553         arithmetic or __alignof__ to properly get the alignment, instead
19554         of hardwiring it to 4.
19555
19556 Wed Aug 14 23:43:28 1996  Geoffrey Noer  <noer@cygnus.com>
19557
19558         * libc/stdio/fseek.c: add fflush call to adjust seek offset
19559         on append stream (fix from NetBSD sources), adjust curoff offset
19560         for ungetc's benefit.
19561         * libc/stdio/ftell.c: adjust curoff offset for ungetc's benefit.
19562         * libc/stdio/rewind.c: replace code with up to date NetBSD
19563         code to undo hacks made to work around above problem of not
19564         having fflush call mentioned above
19565
19566 Fri Aug  2 18:28:07 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
19567
19568         * libc/reent/{closer.c, execr.c, fstatr.c, linkr.c, lseekr.c,
19569         openr.c, readr.c, sbrkr.c, signalr.c, statr.c, timer.c, writer.c}:
19570         Partially revert last changes.  The thread specific errno is set
19571         iff if the underlying syscall fails and the global errno is not
19572         zero.
19573
19574 Fri Jul 19 11:41:52 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
19575
19576         * libc/reent/filer.c: Removed files, all functions have split out
19577         into their own files.
19578         * libc/reent/{closer.c, lseekr.c, openr.c, readr.c, writer.c}:
19579         New files containing functions formally in filer.c
19580         * libc/reent/Makefile.in: Updated for above change.
19581
19582         * libc/reent/execr.c (_fork_r, _wait_r): Set errno if underlying
19583         syscall fails, not if errno is changed.
19584         * libc/reent/filer.c (_open_r, _close_r, _lseek_r, _read_r,
19585         _write_r): Likewise.
19586         * libc/reent/fstatr.c (_fstat_r): Likewise.
19587         * libc/reent/linkr.c (_link_r, _unlink_r): Likewise.
19588         * libc/reent/sbrkr.c (_sbrk_r): Likewise.
19589         * libc/reent/signalr.c (_kill_r): Likewise.
19590         * libc/reent/statr.c (_stat_r): Likewise.
19591         * libc/reent/timer.c (_gettimeofday_r): Likewise.
19592
19593         * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, sbrkr.c,
19594         signalr.c, statr.c, timer.c} (errno): declare extern rather
19595         than as a common.
19596
19597         * libc/stdio/vfprintf.c (__sbprintf): Use the VFPRINTF macro
19598         instead of calling vfprintf so that i*printf will not require
19599         floating point support code.
19600
19601 Mon Jul 15 16:50:59 1996  Doug Evans  <dje@canuck.cygnus.com>
19602
19603         * libc/posix/execvp.c (execvp): Use posix_path_list_p to determine
19604         path delimiter.
19605         * libc/include/sys/unistd.h (_SC_PATH_RULES): Delete.
19606         (_PATH_RULES_{UNKNOWN,WIN32,POSIX}): Delete.
19607
19608 Thu Jul 11 14:34:14 1996  Geoffrey Noer  <noer@cygnus.com>
19609
19610         * libc/include/signal.h: _sig_func_ptr function takes an int
19611         * libc/include/sys/signal.h: sa_handler function takes an int
19612
19613 Tue Jul  9 21:22:32 1996  Jeffrey A Law  (law@cygnus.com)
19614
19615         * libc/include/machine/ieeefp.h: Simplify H8/S support.
19616         * libc/include/sys/config.h: Add missing H8/S conditional.
19617
19618 Sun Jun 30 12:05:46 1996  Doug Evans  <dje@canuck.cygnus.com>
19619
19620         * libc/include/sys/unistd.h (MAXPATHLEN): Add cygwin32 value.
19621
19622 Wed Jun 26 09:57:54 1996  Jeffrey A Law  (law@cygnus.com)
19623
19624         * libc/include/machine/setjmp.h: Handle H8/S.
19625         * libc/include/machine/ieeefp.h: Likewise.
19626         * libc/include/sys/config.h: Likewise.
19627         * libc/machine/h8300/{defines.h, memcpy.S, memset.S}: Likewise.
19628         * libc/machine/h8300/{reg_memcpy.S, reg_memset.S}: Likewise.
19629         * libc/machine/h8300/{strcmp.S, setjmp.S}: Likewise.
19630         * libc/sys/h8300hms/crt0.S: Likewise.
19631
19632 Tue Jun 25 23:15:45 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
19633
19634         * Makefile.in (datadir): Set to $(prefix)/share.
19635         (oldincludedir, docdir): Removed.
19636         * doc/Makefile.in (datadir): Set to $(prefix)/share.
19637         (oldincludedir, docdir): Removed.
19638         * libc/Makefile.in (datadir): Set to $(prefix)/share.
19639         (oldincludedir, docdir): Removed.
19640         * libm/Makefile.in (datadir): Set to $(prefix)/share.
19641         (oldincludedir, docdir): Removed.
19642
19643 Fri Jun 21 19:24:41 1996  Ian Lance Taylor  <ian@cygnus.com>
19644
19645         * libc/include/sys/reent.h (_REENT_INIT): Update for change to
19646         _reent struct.
19647
19648 Wed Jun 19 14:00:09 1996  Doug Evans  <dje@canuck.cygnus.com>
19649
19650         * libc/posix/execvp.c: Delete _WIN32 support.  For __CYGWIN32__
19651         fetch current path rules with sysconf and handler posix/win32
19652         appropriately.
19653
19654         * libc/include/sys/unistd.h (_PATH_RULES{,_POSIX,_WIN32}): Define.
19655
19656         * libc/include/process.h: Prepend '_' to P_{WAIT,NOWAIT,OVERLAY}.
19657         (WAIT_CHILD): Always define.
19658
19659 Sat Jun 15 17:50:42 1996  Ian Lance Taylor  <ian@cygnus.com>
19660
19661         * libc/stdlib/eprintf.c: New file.
19662         * libc/stdlib/Makefile.in (OFILES): Add eprintf.o.
19663         (eprintf.o): New target.
19664
19665 Thu Jun 13 16:44:32 1996  Doug Evans  <dje@canuck.cygnus.com>
19666
19667         * libc/sys/cygwin32/crt0.c (__cygwin_crt0_bp): New global.
19668         (mainCRTStartup): Do int3 if __cygwin_crt0_bp non-zero.
19669
19670 Thu Jun 13 17:45:17 1996  Mike Meissner  <meissner@rtl.cygnus.com>
19671
19672         * libc/include/machine/ieeefp.h: Add support for AIX and Windows
19673         NT in PowerPC endianess cases.
19674
19675 Tue Jun 11 12:26:28 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
19676
19677         * libc/include/machine/ieeefp.h: Clean up PowerPC endianess.
19678
19679 Thu Jun  6 11:34:20 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
19680
19681         * libc/string/strtok.c: Fix doc typo.
19682
19683 Mon Jun  3 11:30:00 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
19684
19685         * libc/include/sys/reent.h (struct _reent): Removed _asctime,
19686         _next, _scanpoint, _signgam fields.
19687
19688         * libc/include/stdlib.h (rand_r): Added new declaration.
19689         (_rand_r, _srand_r): Removed declarations.
19690         * libc/stdlib/rand.c (_rand_r, _srand_r): Removed, these functions
19691         have been made obsolete by rand_r.
19692         * libc/stdlib/rand_r.c: New file, rand_r function as specified
19693         by POSIX.1c.
19694
19695         * libc/string/strtok.c: Update documentation to describe
19696         strtok_r().
19697
19698 Sat Jun  1 23:50:39 1996  Michael Meissner  <meissner@cygnus.com>
19699
19700         * libc/include/sys/stat.h (stat structure): Use the expanded stat
19701         structure on Solaris, and PowerPC systems even though __svr4__ is
19702         defined.
19703
19704 Tue May 28 13:02:42 1996  Doug Evans  <dje@canuck.cygnus.com>
19705
19706         * libc/sys/go32/sys/errno.h (ENOSYS,ESPIPE): Keep values <= 255.
19707
19708 Fri May 17 10:34:44 1996  Ian Lance Taylor  <ian@cygnus.com>
19709
19710         * host/any: Use ../.. rather than .. to get to the main build
19711         directory.  This matches the current layout of the build
19712         directory.
19713
19714 Wed May 15 15:52:27 1996  Jeffrey A Law  (law@cygnus.com)
19715
19716         * libc/machine/h8300/__main.S: Delete.  No longer needed.
19717         * libc/machine/h8300/Makefile.in: Corresponding changes.
19718         * libc/sys/h8300hms/crt1.c: New file.
19719         * libc/sys/h8300hms/Makefile.in: Corresponding changes.
19720         * libc/sys/h8300hms/crt0.s: Call __main.
19721
19722         * libc/sys/h8300hms/crt0.S: Use temporary label names
19723         for branch targets.
19724
19725 Mon May 13 14:26:30 1996  Doug Evans  <dje@canuck.cygnus.com>
19726
19727         * libc/stdio/fopen.c (_fopen_r): Fix arguments to fseek.
19728
19729 Fri May  3 16:38:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
19730
19731         * libc/reent/impure.c (_impure_ptr): Force the impure pointer into
19732         .sdata on the PowerPC so that we can link newlib with code
19733         compiled with -msdata.
19734
19735 Mon Apr 29 21:38:02 1996  Doug Evans  <dje@canuck.cygnus.com>
19736
19737         * libc/sys/arm/syscalls.c (_sbrk): Rename end to __end__.
19738
19739 Thu Apr 25 06:38:59 1996  Michael Meissner  <meissner@cygnus.com>
19740
19741         * libc/sys/cygwin32/crt0.c (mainCRTStartup): On PowerPC, set the
19742         exception handler to __cygwin_exception_handler.
19743
19744 Tue Apr 23 15:14:20 1996  Ian Lance Taylor  <ian@cygnus.com>
19745
19746         * libc/include/machine/setjmp.h: Check _AM29K, not ___AM29K__.
19747
19748 Sun Apr 21 12:11:51 1996  Doug Evans  <dje@blues.cygnus.com>
19749
19750         * libm/math/Makefile.in ({w,wf}_cabs.o,{w,wf}_drem.o): Add rule for
19751         SunOS VPATH.
19752         * libc/stdlib/Makefile.in (atoff.o,atol.o,mblen.o,mbstowcs.o,
19753         wcstombs.o): Likewise.
19754
19755 Thu Apr 18 12:37:01 1996  Doug Evans  <dje@canuck.cygnus.com>
19756
19757         * libc/stdlib/environ.c (initial_env): New static local.
19758         (environ): Point to `initial_env'.
19759
19760         * libc/include/machine/setjmp.h: Clean up.
19761         (__H8300H__,__PPC__): Define _JBTYPE.
19762         (__arm__): Provide entry for.
19763         (sigjmp_buf): Delete.
19764         (jmp_buf): Use _JBTYPE if defined, otherwise int.
19765
19766 Thu Apr 18 12:10:52 1996  Jeffrey A Law  (law@cygnus.com)
19767
19768         * libc/machine/h8300/strcmp.S: Sign extend the result to
19769         32bits so we don't lose with -mint32.
19770
19771 Sun Apr 14 19:59:52 1996  Doug Evans  <dje@canuck.cygnus.com>
19772
19773         * libc/sys/go32/sys/errno.h: New file.
19774         * libc/sys/go32/Makefile.in (stat.o): Depend on stat.c.
19775         * libc/sys/go32/gerrno.s (syscall_error): Call __errno to get
19776         errno's address (make compatible with rest of newlib).
19777         * libc/sys/go32/stat.c (fixinode): Set errno upon failure.
19778         * libc/string/strerror.c (strerror): Surround each case with #ifdef.
19779
19780 Thu Mar 28 13:44:42 1996  Doug Evans  <dje@canuck.cygnus.com>
19781
19782         * libc/machine/sparc/{scan.c,shuffle.c}: New files.
19783         * libc/machine/sparc/Makefile.in: Build them.
19784         * libc/machine/sparc/machine/sparclet.h: New file.
19785
19786 Mon Mar 25 15:29:14 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
19787
19788         * libc/machine/sh/asm.h: New file.
19789         * libc/machine/sh/setjmp.S: Only save clobbered registers.  Added
19790         support for SH3e's FP registers.  Use asm.h.
19791
19792 Mon Mar 25 11:59:23 1996  Jeffrey A Law  (law@cygnus.com)
19793
19794         * libc/stdio/vfprintf.c (cvt): Accept a reent structure
19795         as first argument.  Call _dtoa_r and pass the reent structure
19796         instead of calling __dtoa.
19797
19798 Fri Mar 22 13:59:37 1996  Jeffrey A Law  (law@cygnus.com)
19799
19800         * libc/include/sys/config.h: Define DOUBLE_IS_32BITS for
19801         the h8300, h8500, and others.  Add comments for some rather
19802         dubious code.
19803
19804 Thu Mar 14 18:04:43 1996  Ian Lance Taylor  <ian@cygnus.com>
19805
19806         * Makefile.in (check): Check that testsuite exists before cd.
19807
19808 Tue Mar 12 11:46:47 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
19809
19810         * libc/include/string.h (strsep): Correct prototype.
19811
19812 Mon Mar 11 09:55:19 1996  Doug Evans  <dje@charmed.cygnus.com>
19813
19814         * libc/sys/h8300/_exit.c (_exit,__exit): Set r0 to 0 before `sleep'.
19815         * libc/sys/h8300/misc.c (_kill): Set r0 to indicate abort and `sleep'.
19816         * libc/sys/h8300/crt0.S (_start): Call exit instead of `sleep'.
19817
19818 Wed Mar  6 11:51:55 1996  Doug Evans  <dje@charmed.cygnus.com>
19819
19820         * libc/posix/{creat.c,isatty.c}: New files.
19821         * libc/posix/Makefile.in (OFILES): Add creat.o, isatty.o.
19822
19823         * libc/sys/sparc64/crt0.S (environ): Delete.
19824         (.LHaveBias): Renamed from HaveBias.
19825
19826 Thu Feb 15 10:48:37 1996  Doug Evans  <dje@charmed.cygnus.com>
19827
19828         * libc/stdlib/mallocr.c (etext): Move decl inside ifdef WARN_VLIMIT.
19829         (_morecore_r): Delete SBRK_IS_ALLOC support.
19830
19831 Tue Feb 13 09:44:09 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
19832
19833         * libc/sys/cygwin32/Makefile.in (lib.a): Make lib.a with a dummy
19834         module rather than touch, so we don't get warning messages when
19835         all of the libraries are combined into libc.a.
19836
19837 Tue Feb 13 06:32:07 1996  Doug Evans  <dje@charmed.cygnus.com>
19838
19839         * libc/sys/sparclite/{Makefile.in,crt0.s}: Deleted.
19840         crt0.s replaced by version in libgloss.
19841
19842 Mon Feb  5 15:17:51 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
19843
19844         * libc/reent/Makefile.in (OFILES): Add impure.o.
19845         * libc/reent/impure.o: New file, define initial reentrancy struct.
19846         * libc/reent/reent.c: Remove above definition.
19847
19848         * libm/math/sf_asinh.c: Fix typo.
19849
19850         * Makefile.in (MATHOBJS_IN_LIBC): Removed sr_ldexp.o and
19851         srf_ldexp.o.
19852
19853         * libm/libm.texinfo: Change documentation to reflect changes
19854         in reentrancy model.
19855         * libm/math/w_gamma.c: Likewise.
19856
19857 Wed Jan 31 18:49:45 1996  Steve Chamberlain  <sac@slash.cygnus.com>
19858
19859         * configure.in (*-*-cygwin32): New.
19860         (*-*-win32): Deleted.
19861         * libc/sys/win32 renamed libc/sys/cygwin32.
19862
19863 Tue Jan 30 22:09:03 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
19864
19865         * libc/include/sys/file.h: New include file.
19866
19867 Fri Jan 26 15:52:54 1996  Steve Chamberlain  <sac@slash.cygnus.com>
19868
19869         * libc/include/machine/setjmp.h: Increase size of PPC jmp_buf.
19870
19871 Tue Jan 23 17:49:16 1996  Steve Chamberlain  <sac@slash.cygnus.com>
19872
19873         * libc/include/sys/wait.h (WIFSIGNALED): Fix.
19874
19875 Tue Jan 16 09:28:10 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
19876
19877         * doc/makedoc.c (realloc): Declare at file scope.
19878         (catchar): Not here.
19879
19880 Wed Dec 27 15:45:23 1995  Doug Evans  <dje@canuck.cygnus.com>
19881
19882         * Makefile.in (VERSION): Update to 1.7.0.
19883         * {libc,libm}/Makefile.in (VERSION): Likewise.
19884         * configure.in: Minor clean up of multilib stuff.
19885
19886         From David Johnson <davidj@ICSI.Berkeley.EDU>
19887         * {libc,libm}/Makefile.in (lib[cm].a): Delete library first.
19888
19889         * libc/stdlib/environ.c: New file.
19890         * libc/stdlib/Makefile.in (OFILES): Build it.
19891         * libc/sys/h8500hms/crt0.c (environ): Deleted.
19892         * libc/sys/m88kbug/crt0.c (environ): Deleted.
19893         * libc/sys/z8ksim/crt0.c (environ): Deleted.
19894         * libc/sys/netware/environ.c: Deleted.
19895
19896 Tue Dec 19 15:24:46 1995  Kim Knuttila  <krk@cygnus.com>
19897
19898         * configure.in (links): set sys_dir, posix_dir, syscall_dir
19899
19900 Wed Dec 13 04:16:25 1995  Michael Meissner  <meissner@wogglebug.tiac.net>
19901
19902         * doc/makedoc.c (init_string_with_size,nextword): Move malloc
19903         declaration out to external scope and declare it PTR, not char *.
19904
19905 Mon Dec 11 17:35:12 1995  steve chamberlain  <sac@slash.cygnus.com>
19906
19907         * libc/include/sys/unistd.h (getpagesize): New declaration.
19908         (_SC_PAGESIZE): New definition.
19909         * libc/include/time.h (CLK_TCK): Defined as CLOCKS_PER_SEC.
19910         * libc/configure.in (i[345]86-*-win32): Remove -DNO_FORK.
19911
19912 Fri Dec  1 16:48:46 1995  James G. Smith  <jsmith@cygnus.co.uk>
19913
19914         * libc/sys/vr4300/syscalls.c (sbrk): Fixed memory
19915         addressing. System call returns size, not (last address + 1).
19916
19917 Thu Nov 30 15:05:26 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19918
19919         * libm/math/*.c: Removed _foo_r() reentrancy API.
19920         * libc/include/math.h: Removed _foo_r prototypes and macros.
19921
19922         * libm/math/*.c: On systems with IEEE single precision "doubles"
19923         move foo() -> foof() wrapper code from the files that implement
19924         the standard IEEE double precision functions to the files that
19925         implement IEEE single precision functions. (ie. On those systems
19926         sin is moved from s_sin.c to sf_sin.c).  There should eventually
19927         be use of a C extension (like gcc's alias attribute) so that the
19928         wrappers are not needed at all.
19929
19930         * libc/sys/sysnec810/sbrk.c: Cast &end to char * to get around
19931         strict NEC V810 compiler.
19932         * libc/misc/dprintf.c (getnumber): Cast char * to unsigned char *
19933         for same reason.
19934
19935 Wed Nov 29 14:25:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19936
19937         * libc/stdlib/strtol.c (_strtol_r): Replaced with implementation
19938         from NetBSD C library.
19939         * libc/stdlib/strtoul.c (_strtoul_r): Likewise.
19940
19941         * libc/stdlib/assert.c (__assert): Renamed from __assertfail
19942         and adapted from implementation I wrote for NetBSD C library.
19943         The difference is __assert doesn't take a format argument,
19944         so that there won't be multiple copies of the same string
19945         constant in the executable if assertions are enabled in
19946         more than one source module.
19947         * libc/include/assert.h (assert): Changed to call __assert.
19948
19949 Tue Nov 28 16:54:26 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19950
19951         * libc/stdlib/strtod.c (_strtod_r): Changed to not assign to
19952         word1 on systems with 32 bit doubles.
19953         * libc/stdlib/qsort.c (qsort): Cast some void *'s to char *'s
19954         so that we can do arithmetic on them.
19955         * libc/misc/dprintf.c: Changed to support stdarg.h for ANSI
19956         compilers.
19957
19958 Tue Nov 28 16:03:32 1995  Doug Evans  <dje@canuck.cygnus.com>
19959
19960         * libc/sys/arm/crt0.S: Zero bss.
19961
19962 Fri Nov 24 16:09:23 1995  Doug Evans  <dje@deneb.cygnus.com>
19963
19964         * libc/include/unctrl.h: New file.
19965         * libc/misc/{Makefile.in,dprintf.c,unctrl.c,misc.tex}: New files.
19966         * configure.in (subdirs): Add libc/misc.
19967         * libc/Makefile.in (SUBDIRS): Add misc.
19968         (SUBLIBS): Add misc/lib.a.
19969
19970         * libc/include/sys/reent.h (struct _reent): Make __sf last member.
19971
19972 Wed Nov 22 19:49:47 1995  Doug Evans  <dje@deneb.cygnus.com>
19973
19974         * libc/stdio/vfprintf.c (__sbprintf): Init fake._data.
19975         (_vfprintf_r): Call CHECK_INIT.
19976
19977 Tue Nov 14 02:52:12 1995  Doug Evans  <dje@canuck.cygnus.com>
19978
19979         * Makefile.in (MULTITOP): Delete.
19980         (MULTISRCTOP, MULTIBUILDTOP): Add.
19981         * configure.in: Delete call to cfg-ml-com.in.  Call config-ml.in
19982         instead of cfg-ml-pos.in.
19983
19984 Wed Nov  8 01:24:08 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
19985
19986         * libc/sys/vr4300/syscalls.c: Added clean version of sbrk().
19987         * libc/sys/vr4300/crt0.S: Cleaned up. Added check for FPU
19988         presence.
19989
19990 Thu Nov  2 22:25:06 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
19991
19992         * libc/string/strtok.c: Include string.h to pick up strtok_r
19993         prototype.
19994
19995 Wed Nov  1 18:54:11 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19996
19997         * libc/string/strtok.c: include <_ansi.h>.
19998         * libc/time/asctime_r.c: `reresult' -> `result'.
19999
20000 Wed Nov  1 14:35:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20001
20002         * libc/time/{ctime.c, gmtime.c, lcltime.c}: Wrap functions
20003         in #ifndef _REENT_ONLY ... #endif conditional.
20004
20005         * libc/include/string.h (_strtok_r): Remove declaration.
20006         * libc/include/time.h (_asctime_r): Remove declaration.
20007         * libc/string/strtok.c (_strtok_r): Removed.
20008         * libc/time/asctime.c (_asctime_r): Removed.
20009
20010         * libc/string/Makefile.in (OFILES): Add new object.
20011         * libc/string/strtok_r.c: New file.  strtok_r function as
20012         specified by POSIX.1c, adapted from strtok implementation
20013         from NetBSD C library.
20014         * libc/string/strtok.c (strtok): Reimplemented in terms of
20015         strtok_r.
20016
20017         * libc/time/Makefile.in (OFILES): Add new objects.
20018         * libc/time/{asctime_r.c, ctime_r.c, gmtime_r.c, lcltime_r.c}:
20019         New files, reentrant time functions specified by POSIX.1c.
20020         * libc/time/{asctime.c, ctime.c, gmtime.c, lcltime.c}: Non-
20021         reentrant time functions re-written in terms of reentrant
20022         functions.
20023         * libc/time/lcltime.c: Renamed from localtime.c
20024
20025         * libc/include/time.h: Add prototypes for asctime_r, ctime_r,
20026         gmtime_r, and localtime_r.
20027
20028 Sat Oct 28 14:34:31 1995  steve chamberlain  <sac@slash.cygnus.com>
20029
20030         * libc/sys/win32/crt0.c (mainCRTStartup): Call cygwin_crt0.
20031         * libc/include/sys/unistd.h (getlogin): Revert change of
20032         Oct 19.
20033         * libc/include/sys/signal.h (sigprocmask): Change prototype
20034         so it compiles with c++.
20035
20036 Wed Oct 25 15:43:18 1995  Michael Meissner  <meissner@cygnus.com>
20037
20038         * libc/include/machine/setjmp.h (PowerPC _JBLEN): Consider it a
20039         PowerPC if __PPC__ is defined.  Bump jump_buf length to 62 ints,
20040         to give some room in case we need to align the jmp_buf.
20041
20042         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Rewrite to use
20043         the new ppc-asm.h include file the compiler provides to specify
20044         function prologue/epilogue.  Eliminate saves of the xer and ctr
20045         registers, which are volatile.  Before starting to save registers,
20046         align to 8 byte boundary.
20047
20048 Mon Oct 23 11:20:51 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
20049
20050         * libc/sys/vr4300/syscalls.c: Added empty kill() function,
20051         referenced by standard libraries.
20052
20053 Thu Oct 19 21:39:47 1995  Fred Fish  <fnf@cygnus.com>
20054
20055         * libc/unix/Makefile.in, libc/string/Makefile.in,
20056         libc/stdio/Makefile.in, libc/reent/Makefile.in,
20057         libc/posix/Makefile.in:
20058         Remove tabs from otherwise empty line.  Confuses some
20059         older non-GNU versions of "make".
20060
20061 Thu Oct 19 16:32:17 1995  steve chamberlain  <sac@slash.cygnus.com>
20062
20063         * libc/sys/unistd.h (getlogin): Returns const char *.
20064
20065 Wed Oct 18 12:57:50 1995  steve chamberlain  <sac@slash.cygnus.com>
20066
20067         * libc/include/fcntl.h (O_BINARY, O_TEXT): New.
20068         * libc/include/errno.h: Moved into and include...
20069         * libc/include/sys/errno.h: New file.
20070         * libc/include/sys/wait.h: New file.
20071         * libc/stdio/rename.c (_rename_r): Use _rename system call if available.
20072         * libc/sys/win32/*: Moved out.
20073         * libc/sys/win32/crt0.c: Rewritten to cope with shared library.
20074         * configure.in (i[345]86-*-win32): HAVE_RENAME
20075
20076 Wed Oct 18 09:58:27 1995  Brendan Kehoe  <brendan@lisa.cygnus.com>
20077
20078         * libc/unix/sigset.c (sigemptyset, sigaddset): Prefix #undef to
20079         avoid macro expansion for these two names.
20080
20081 Tue Oct 17 08:45:33 1995  Doug Evans  <dje@canuck.cygnus.com>
20082
20083         * libc/machine/h8500/psi.S: r6 renamed to fp.
20084
20085 Sun Oct 15 12:58:10 1995  Michael Meissner  <meissner@wogglebug.tiac.net>
20086
20087         * configure.in (powerpc*): No longer need to define
20088         NO_LONGLONG_POINTERS to supress warnings.
20089
20090 Sat Oct 14 12:55:08 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
20091
20092         * libc/reent/reent.c (_reclaim_reent): Call cleanup indirectly
20093         through PTR instead of directly.
20094
20095         * libc/sys/sh/crt0.S: Clean up formatting.  Delete unused
20096         non-standard constructor support.
20097
20098 Thu Oct 12 11:39:42 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20099
20100         * libc/stdlib/dtoa.c (_dtoa_r): Set result pointer to the
20101         address of the Bigint instead of the address of its _x field,
20102         as the size the result buffer was calculated accordingly.
20103         Fix from Jim Wilson <wilson@chestnut@cygnus.com>.
20104
20105         * libc/stdlib/{div.c, ldiv.c}: Replaced with implementation
20106         from NetBSD C library.  No longer special cases division by
20107         zero (which needs to be done by the application anyway), but
20108         it doesn't need to call abs() (or labs()) four times either.
20109
20110         * libc/stdlib/qsort.c: Replaced with implementation from
20111         NetBSD C library.
20112
20113 Tue Oct 10 14:01:10 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20114
20115         * libc/stdio/vfprintf.c: Replaced with implementation from
20116         NetBSD C library (which is derived from the 4.4BSD C library).
20117         * libc/stdio/cvt.c: Removed.
20118         * libc/stdio/Makefile: Updated.
20119
20120 Tue Oct 10 12:15:23 1995  steve chamberlain  <sac@slash.cygnus.com>
20121
20122         * libc/sys/win32/syscalls.c (rename): New.
20123         * libc/sys/win32/include/winkernel.h (MoveFileExA): New.
20124
20125 Fri Oct  6 12:18:43 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
20126
20127         * libc/machine/sh/Makefile.in (setjmp.o): Depend on setjmp.S.
20128         * libc/machine/sh/setjmp.S: Rename from setjmp.s.
20129
20130         * libc/sys/sh/Makefile.in (OFILES, all): Delete setjmp.o.
20131         (setjmp.o): Delete rule to build setjmp.o.
20132         * libc/sys/sh/setjmp.S: Delete file.
20133
20134 Fri Oct  6 11:19:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20135
20136         * libc/stdlib/mprec.c (d2b): Added support for _DOUBLE_IS_32BITS.
20137         * libc/stdlib/mprec.h: Fixed constants used for IEEE single float
20138         format.  Added #defines to map d2b, i2b, low0bits, lshift, mult,
20139         pow5mult and s2b to identifiers with leading underscores.
20140         * libc/stdlib/Makefile.in: Add mprec.h as a dependency to dtoa.o,
20141         ecvtbuf.o, mprec.o and strtod.o.  Sort dependencies.
20142
20143 Thu Oct  5 17:27:30 1995  steve chamberlain  <sac@slash.cygnus.com>
20144
20145         * libc/sys/posix/popen.c (sys/types.h): Include.
20146
20147 Thu Oct  5 16:33:01 1995  Doug Evans  <dje@canuck.cygnus.com>
20148
20149         * libc/sys/win32/syscalls.h (fhandler): New struct.
20150         (__lookup_fhandler, __lookup_fhandler_hook): Declare.
20151         (__fhandler_normal): Declare.
20152         (hinfo): New member op_handlers.
20153         * libc/sys/win32/syscalls.c (__read): Don't validate fd.
20154         (__write): Likewise.
20155         (_read, _write, _open, _close, _lseek): Validate fd here.
20156         Move file type specific stuff to foo_normal.
20157         (read_normal, write_normal, open_normal, close_normal, lseek_normal):
20158         New functions.
20159         (__lookup_fhandler): New function.
20160         (__lookup_fhandler_hook, __fhandler_normal): New variables.
20161
20162         From anders.blomdell@control.lth.se (Anders Blomdell)
20163         * libc/sys/win32/crt0.c (vfork_init): Unset __FD_TABLE__.
20164         Don't touch standard handles.
20165         * libc/sys/win32/spawn.c (_spawn): Use STARTF_USESTDHANDLES.
20166         (_execve): Only create __FD_TABLE__ if necessary.
20167         * libc/sys/win32/include/winkernel.h (STARTF_*): Define.
20168
20169 Thu Oct  5 14:25:14 1995  steve chamberlain  <sac@slash.cygnus.com>
20170
20171         * libc/sys/win32/sys/termios.h (FLUSHO): New.
20172         * libc/sys/win32/include/win*.h: Moved a load of prototypes around.
20173         * libc/sys/win32/pipe.c (_fctnl): Ignore F_SETFL without errors.
20174         * libc/sys/win32/exception.c (ehandler3): set strace when a signal
20175         without a handler is received.
20176         * libc/sys/win32/Makefile.in: Remove --nodelete.
20177         * libc/sys/win32/resouce.c (gettimeofday): New.
20178         * libc/sys/win32/syscalls.c (path_to_real_path): New.
20179         * libc/sys/win32/syscalls.h (include/wincon.h): Don't include.
20180
20181 Wed Oct  4 13:10:35 1995  Doug Evans  <dje@canuck.cygnus.com>
20182
20183         * libc/sys/win32/dirsearch.c (opendir): stat real path name.
20184         Don't append "/*" to search pattern if trailing '/' already there,
20185         append "*".
20186         * libc/sys/win32/spawn.c (_spawn): CreateProcess doesn't seem to
20187         like /'s, convert them to \'s.  Handle //<drive>/ path names.
20188         Add space for quoted \'s in arg string.  Print translated prog name
20189         and original prog name.
20190         (_execve): Handle parent doing exec a teensy bit better.
20191         * libc/sys/win32/syscalls.h (__path_to_real_path): Update prototype.
20192         * libc/sys/win32/syscalls.c (__path_to_real_path): Don't assume
20193         path needs conversion, handle both cases.  Delete `const' from result.
20194         (hash_path_name): New function.
20195         (_open): Call it.
20196         (_stat): Likewise.  Fill in more fields for directories.
20197         * libc/sys/win32/wait.c (_wait): Explicitly pass -1 to waitpid.
20198         (wait_for_any): Fix trace message.
20199         (waitpid): Explicitly test for intpid == 0.
20200
20201         From anders.blomdell@control.lth.se (Anders Blomdell)
20202         * libc/sys/win32/spawn.c (__vfork_get_empty_entry): zero fill result
20203         so `next' is valid.
20204
20205 Sat Sep 30 15:00:15 1995  Jason Molenda  (crash@phyeaux.cygnus.com)
20206
20207         * libc/sys/win32/spawn.c (_spawn): Make quoting rules more
20208         complicated.
20209
20210 Sat Sep 30 10:25:57 1995  Jason Molenda    (crash@phydeaux.cygnus.com)
20211
20212         * libc/include/_ansi.h: set _HAVE_STDC if __STDC__ is defined
20213         at all, not just == 1.
20214         * libm/math/wf_acos.c (acosf): check for _HAVE_STDC, not __STDC__.
20215
20216 Sat Sep 30 04:30:09 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
20217
20218         * libc/sys/win32/include/winbase.h: include <wintypes.h> and <winnt.h>
20219         * libc/sys/win32/include/wintypes.h: include <winnt.h>
20220         * libc/sys/win32/include/winnt.h: avoid multiple inclusion of this
20221         file.
20222
20223 Fri Sep 29 01:49:17 1995  steve chamberlain  <sac@slash.cygnus.com>
20224
20225         * libc/sys/syscalls.c (getcwd): Fix off by one error.
20226
20227         * libc/sys/signal.c (sleep): Fill it in.
20228         * libc/sys/termios.c (tcflush): Use PurgeComm
20229         (tcsetattr): Set some more of the bits.
20230         * libc/sys/include/winkernel.h: Add PurgeComm and Sleep.
20231
20232 Fri Sep 29 04:33:53 1995  Doug Evans  <dje@deneb.cygnus.com>
20233
20234         * libc/sys/arm/crt0.S (fp): Initialize to 0.
20235         Conditionally include .idata$3 stuff ifdef __pe__.
20236
20237 Fri Sep 29 01:49:17 1995  steve chamberlain  <sac@slash.cygnus.com>
20238
20239         * libc/sys/win32/crt0.c (hmap_init): Call __init_hinfo.
20240         * libc/sys/win32/pipe.c (pipe): Ditto.
20241         * libc/sys/win32/syscalls.c (__read):  Use new vtime and vmin fields.
20242         * libc/sys/win32/syscalls.h (hinfo): vtime, vmin are new.
20243         * libc/sys/win32/termios.c (tcsetattr): Init new fields.
20244         (tcgetattr): Contents are new.
20245         * libc/sys/win32/include/winkernel.h (DCB): New.
20246         (GetCommState, SetCommState): New.
20247
20248 Thu Sep 28 16:29:09 1995  Doug Evans  <dje@deneb.cygnus.com>
20249
20250         * libc/sys/arm/crt0.S (_start): Define.
20251
20252 Thu Sep 28 12:26:45 1995  steve chamberlain  <sac@slash.cygnus.com>
20253
20254         * libc/sys/arm/crt0.S: Move stack to top of RAM on PIE board.
20255         * libc/sys/arm/syscalls.c (_read, _write): Use the SWI properly.
20256
20257         * libc/sys/win32/sysconf.c: New
20258         * libc/sys/win32/sys/winadvapi.h: New
20259         * libc/sys/win32/syscalls.h (hinfo): Added timeout_len, w_binary, r_binary.
20260         * libc/sys/win32/crt0.c (hmap_init): Initialize new fields.
20261         * libc/sys/win32/pipe.c (pipe): Ditto.
20262         * libc/sys/win32/signal.c (_raise): New.
20263         (_kill): Moved from spawn.c
20264         * libc/sys/win32/spawn.c (kill): Moved to signal.c
20265         * libc/sys/win32/syscalls.c (__read): Use new fields.
20266         (_open): Ditto.
20267         * libc/sys/win32/termios.c (tcflush, tcsetattr, tcgetattr): Fill in.
20268         * libc/sys/win32/exceptions.c (__stack_trace): Keep going for longer.
20269         * libc/include/sys/unistd.h (rmdir): Takes const path.
20270         * libc/include/sys/stat.h (mkdir): Takes const path.
20271         * libc/include/sys/signal.h (SIGTTOU, SIGTTIN): New for win32.
20272
20273 Thu Sep 28 10:11:27 1995  Doug Evans  <dje@canuck.cygnus.com>
20274
20275         * libc/sys/win32/spawn.c (_spawn): Fix quoting.
20276
20277         Add support for specifying paths as //<drive>/foo/bar.
20278         * libc/sys/win32/syscalls.h (__path_needs_conversion_p): Declare.
20279         (__path_to_real_path): Declare.
20280         (PATH_TO_REAL_PATH): New macro.
20281         * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): Minor cleanup.
20282         (__path_needs_conversion_p, __path_to_real_path): New functions.
20283         (_open): Fix test for error return from CreateFileA.
20284         Handle new path syntax.
20285         (_link, mkdir, rmdir, getcwd, chdir, stat): Handle new path syntax.
20286         * libc/sys/win32/dirsearch.c (opendir): Likewise.
20287
20288 Wed Sep 27 16:36:46 1995  steve chamberlain  <sac@slash.cygnus.com>
20289
20290         * libc/sys/win32/include/*.h: Reorganized
20291         * libc/sys/win32/include/WINREADME: New.
20292         * libc/sys/win32/Makefile.in (DLLS): Build version.a.
20293         * libc/sys/win32/*.c: Fix for new include scheme.
20294         * libc/sys/win32/crt0.c (__this_uinfo_buf, __this_uinfo): New.
20295         * libc/sys/win32/getlogin.c (getlogin): Use uinfo.
20296         * libc/sys/win32/passwd.c (*): Fix.
20297         * libc/sys/win32/syscalls.c (get[e|][g|u]id): Use passwd info.
20298         (_stat): Get directory owner and permissions right.
20299         * libc/sys/win32/syscalls.h (uinfo): New.
20300         * libc/sys/win32/version.def: Remove leading underscores.
20301
20302 Tue Sep 26 18:18:47 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
20303
20304         * libc/sys/win32/key.c: include "include/wincon.h".
20305
20306 Tue Sep 26 07:21:48 1995  steve chamberlain  <sac@slash.cygnus.com>
20307
20308         * libc/sys/win32/{key, stubs}.c: New.
20309         * libc/sys/win32/Makefile: Adjust to cope.
20310         * libc/sys/win32/crt0.c (vfork_init_first): Cope with -ve pids.
20311         (environ_init): Change env names to upper case.
20312         * libc/sys/win32/dirsearch.c (readdir): Don't fill in inode number.
20313         * libc/sys/win32/passwd.c (*): Fill in the functions.
20314         * libc/sys/win32/pipe.c (_fcntl): F_GETFL returns O_RDWR.
20315         * libc/sys/win32/spawn.c (_spawn): Cope with -ve pids.
20316         * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): New function.
20317         (_open): Initialze hmap->execable_p too.
20318         * libc/sys/win32/syscalls.c (getuid, getgid, geteuid, getegid): Return from macros.
20319         (_fstat): Fill in permissions.
20320         * libc/sys/win32/syscalls.h (hinfo): Add execable_p.
20321
20322 Fri Sep 22 13:47:27 1995  Doug Evans  <dje@canuck.cygnus.com>
20323
20324         * configure.in (cfg-ml-com.in invocation): Use ${with_multilib_top}
20325         if defined.
20326         (cfg-ml-pos.in invocation): Likewise.
20327
20328 Fri Sep 22 11:43:44 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20329
20330         * Makefile.in (MATHOBJS_IN_LIBC): Added s_isinf.o, sf_isinf.o,
20331         s_isnan.o and sf_isnan.o.
20332
20333 Wed Sep 20 14:50:19 1995  Ian Lance Taylor  <ian@cygnus.com>
20334
20335         * All Makefile.in files: added maintainer-clean target as a
20336         synonym for realclean.
20337
20338 Wed Sep 20 11:02:50 1995  Jeff Law  (law@snake.cs.utah.edu)
20339
20340         * libc/include/machine/setjmp.h: Add hppa support.
20341         * libc/machine/hppa/setjmp.S: New file with setjmp/longjmp
20342         support.
20343         * libc/machine/hppa/Makefile.in: Related changes.
20344
20345 Tue Sep 19 12:09:01 1995  J.T. Conklin  <jtc@blues.cygnus.com>
20346
20347         * configure.in (machine_dir): Don't set for v810-*-*.
20348
20349 Fri Sep 15 20:22:08 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
20350
20351         * libc/sys/win32/crt0.c (passover): Change to handle MKS quoting
20352         conventions correctly.
20353
20354 Thu Sep 14 13:37:22 1995  J.T. Conklin  <jtc@blues.cygnus.com>
20355
20356         * libc/stdio/puts.c: Update documentation of return value to match
20357         ANSI standard.
20358
20359 Thu Sep 14 01:52:37 1995  Doug Evans  <dje@canuck.cygnus.com>
20360
20361         Fix file descriptor inheritance.
20362         * libc/sys/win32/syscalls.h (CHILD_P): Define again.
20363         (NOT_OPEN_FD): Fix.
20364         * libc/sys/win32/spawn.c (vfork0): Only create inheritable handle if
20365         close-on-exec flag not set.  Initialize child's entire fd table.
20366         * libc/sys/win32/syscalls.c (_open): Only create inheritable handle if
20367         CHILD_P.
20368         * libc/sys/win32/pipe.c (pipe): Only create new handle as inheritable
20369         if CHILD_P.  Initialize entire hmap entry.
20370         (dup): Only create new handle as inheritable if CHILD_P.
20371         (dup2): Likewise.  Properly initialize hmap entry.
20372
20373         * libc/sys/win32/spawn.c (_execve): Don't pass _P_SEARCH_PATH to
20374         _spawn.
20375         (_exit): Use CHILD_P.
20376         * libc/sys/win32/syscalls.c (_fstat): Fix call to memset.
20377         (_stat): Likewise.
20378
20379 Mon Sep 11 23:09:39 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
20380
20381         * libc/sys/win32/crt0.c (passover): fix up the state table.
20382         * libc/posix/popen.c: Added.
20383         * libc/posix/Makefile.in: compile popen.c.
20384
20385 Mon Sep 11 11:43:38 1995  J.T. Conklin  <jtc@cygnus.com>
20386
20387         * libc/include/machine/ieeefp.h: On the h8/300, h8/300h and
20388         h8/500 define _DOUBLE_IS_32BITS.
20389
20390 Sat Sep  9 17:55:54 1995  Doug Evans  <dje@canuck.cygnus.com>
20391
20392         Get vfork/exec/spawn/cwait/wait working again.
20393         * libc/sys/win32/syscalls.h (VFORK_NEWBORN_PSEUDO_PID): Define.
20394         (procinfo): New member vfork_level.
20395         * libc/sys/win32/crt0.c (__vfork_next_pid): Delete.
20396         (vfork_init_first): Use GetCurrentProcessId to get pid.
20397         Initialize vfork_level.
20398         (vfork_init): Delete __PID__.
20399         (environ_init): New function.  Undo patch of Aug 19, Posix says
20400         environment variables are case sensitive.
20401         (mainCRTStartup): Call it.
20402         * libc/sys/win32/spawn.c (__vfork_next_pid): Delete.
20403         (my_longjump: Make static.
20404         (_spawn): New argument `h'.  Delete setting of __PID__.
20405         Delete local `idx'.  Look for chars that need quotes, rather than
20406         ones that don't.  Set handle of created process in `h'.
20407         Result is process id if created task.
20408         (allocate_spawn_entry): New function.
20409         (spawnvp, spawnv): Call it.  Store handle and pid in procinfo entry.
20410         (_execve): Set __FD_TABLE__ before spawning child.
20411         Scan our fd table when passing fds, not our parent's.
20412         Store handle and pid in procinfo entry.
20413         (vfork0): Ensure strace message always printed.
20414         Set child pid to VFORK_NEWBORN_PSEUDO_PID.
20415         (vfork): Don't clobber result of vfork0.
20416         * libc/sys/win32/wait.c (cwait): Fix non-error result (is pid).
20417         (wait_for_any): Ignore processes in state FORK_STATE_VFORK_0.
20418
20419         * libc/sys/win32/syscalls.h (procinfo): New members `handle_valid_p'
20420         and `exit_code'.
20421         * libc/sys/win32/spawn.c (allocate_spawn_entry): Initialize them.
20422         (vfork0): Likewise.  Distinguish children, grandchildren, etc. by
20423         adding vfork level to pseudo-pid.
20424         (vfork1): If not root, set state back to FORK_STATE_VFORK_0.
20425         (spawnvp, spawnv, _execve): Set handle_valid_p if success.
20426         (_exit): If child, set exit code.
20427         (__vfork_record_death): Only close process handle if valid.
20428         * libc/sys/win32/wait.c (wait_for_single): Watch for children that
20429         didn't exec.
20430         (wait_for_any): Likewise.  Start scan after root entry.
20431
20432 Fri Sep  8 18:48:02 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
20433
20434         * libc/include/sys/types.h (off_t): off_t back to 32 bits.
20435         * libc/include/sys/_types.h (_off_t): _off_t back to 32 bits.
20436         * libc/sys/win32/syscalls.c (_fstat): st_size is lower 32-bits
20437         of actual file length.
20438
20439         * libc/sys/win32/sys/wait.h: include <sys/types.h>.
20440         * libc/include/paths.h: _PATH_BSHELL added.
20441         * libc/include/sys/unistd.h: define STDIN_FILENO, STDOUT_FILENO,
20442         and STDERR_FILENO.
20443
20444 Thu Sep  7 21:02:22 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
20445
20446         * libc/include/ar.h: Added.
20447         * libc/include/sys/types.h: ino_t goes back to 32-bits.
20448         * libc/sys/win32/syscalls.h (hinfo): added .namehash field.
20449         * libc/sys/win32/syscalls.c (_open): compute .namehash based
20450         on filename.
20451         (_fstat): use .namehash for inode number of the fd.
20452
20453 Thu Sep  7 12:57:19 1995  steve chamberlain  <sac@slash.cygnus.com>
20454
20455         * libc/sys/win32/{console,ioctl,pipe,spawn,syscalls,wait}.? (*):
20456          Change hinfo to __this_procinfo.
20457         * libc/sys/win32/crt0.c: Remove procinfo_list.
20458
20459 Wed Sep  6 18:38:26 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
20460
20461         * libc/include/sys/types.h (ino_t): Define ino_t correctly for
20462         win32 environment.
20463
20464 Wed Sep  6 18:09:29 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
20465
20466         * libc/sys/win32/include/grp.h: Removed.
20467         * libc/sys/include/grp.h: Added.
20468         * libc/sys/win32/grp.c: Include <grp.h>.
20469
20470 Wed Sep  6 16:52:48 1995  steve chamberlain  <sac@slash.cygnus.com>
20471
20472         * libc/include/sys/signal.h (__need_MAX_SIGNALS): Removed.
20473         (sigset_t, sigaction, SIG_SETMASK, SIG_BLOCK, SIG_UNBLOCK):
20474         Defined for all but strict ANSI.
20475         * libc/include/sys/reent.h (__need_MAX_SIGNALS): Removed.
20476         * libc/include/machine/setjmp.h: Get win32 _JBLEN right.
20477         * libc/signal/signal.c (_signal_r): Changed from using
20478         _MAX_SIGNALS to NSIG.
20479         * libc/sys/win32/crt0.c (__current_pid, __parent_hmap, __child_hmap,
20480          __hmap): Deleted.
20481         (__strace, __vfork_next_pid): New.
20482         (__exe_suffix): Default to 1.
20483         (passover, table): Understand quoted arguments.
20484         (vfork_init_first): New.
20485         (vfork_init): Initialize new process structure.
20486         (mainCRTStartup): Pass environ to main.
20487         * exceptions.c (__sig_mask): New
20488         (ehandler3): Ignore signals in mask.
20489         (really_exit): Remove CHILD_P test.
20490         * pipe.c (pipe, dup, dup2): Use new process and file structure.
20491         * resource.c (getrusage): Ditto.
20492         * signal.c (sigprocmask): New.
20493         * spawn.c (*): Rewritten.
20494         * syscalls.c (*): Use new process and file structure.
20495         (find_unused_handle): New.
20496         * syscalls.h (MAX_HANDLES): Deleted.
20497         (hinfo): Removed child_created_p.
20498         (MAX_CHILDREN): Deleted.
20499         (vfork_jmp_info, procinfo): New.
20500         * wait.c (*): Mostly new.
20501         * sys/strace.h (_STRACE_PARANOID): New.
20502         * sys/param.h: New file.
20503
20504 Wed Sep  6 17:03:53 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
20505
20506         * libc/include/sys/stat.h: add S_BLKSIZE.
20507         * libc/include/sys/_types.h: _off_t is a 64-bit type under win32.
20508         * libc/include/sys/types.h: define off_t and ino_t to be 64 bit
20509         types under win32.
20510         (mode_t): add a #else to avoid multiple definitons.
20511
20512         * libc/sys/win32/Makefile.in: add grp.c.
20513         * libc/sys/win32/grp.c: include grp.h correctly.
20514         * libc/sys/win32/syscalls.c (_fstat): set almost all of the fields
20515         of the st structure with real information.
20516         * libc/sys/win32 (dirent): d_ino is of type ino_t.
20517
20518 Wed Sep  6 10:41:34 1995  Doug Evans  <dje@canuck.cygnus.com>
20519
20520         * libc/include/sys/types.h (mode_t): Correct for svr4 sparc's
20521         and (maybe) sparc64.
20522         (nlink_t): Provide typedef.
20523
20524 Tue Sep  5 18:46:05 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
20525
20526         * libc/sys/win32/grp.c: New file.
20527         * libc/sys/win32/include/grp.h: New file.
20528
20529 Tue Sep  5 13:47:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20530
20531         * libc/include/machine/ieeefp.h: Added whitespace to make this
20532         file easier to maintain.
20533         On the sh, define either __IEEE_BIG_ENDIAN or __IEEE_LITTLE_ENDIAN
20534         depending on the value of __LITTLE_ENDIAN__.
20535         On the sh3e, define _DOUBLE_IS_32BITS.
20536
20537 Fri Sep  1 15:35:18 1995  James G. Smith  <jsmith@beauty.cygnus.com>
20538
20539         * libc/sys/vr4300/syscalls.c: Added missing support
20540         routines. _raise() and getpid().
20541
20542 Fri Sep  1 14:12:48 1995  James G. Smith  <jsmith@rtl.cygnus.com>
20543
20544         * configure.in (mips*vr4300*-*-elf): Fixed silly mistake
20545
20546 Fri Sep  1 08:42:11 1995  James G. Smith  <jsmith@beauty.cygnus.com>
20547
20548         * configure.in (mips*vr4300*-idt-*) Add support for RISQ monitor
20549         and VR4300 processor.
20550         * libc/sys/vr4300: Add directory.
20551         * libc/sys/vr4300/{Makefile.in, crt0.S, syscalls.c}: Add SIM
20552         monitor run-time support.
20553
20554 Thu Aug 31 09:16:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20555
20556         * libc/stdlib/Makefile.in (CHEWOUT_FILES): Removed atol.def.
20557         * libc/stdlib/stdlib.tex: Don't include atol.def.
20558
20559 Wed Aug 30 20:38:28 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
20560
20561         * libc/sys/win32/uname.c (uname): hardcode processor as `i386'.
20562
20563 Wed Aug 30 10:48:08 1995  steve chamberlain  <sac@slash.cygnus.com>
20564
20565         * libc/ctype/Makefile.in: Fill in _to* dependencies.
20566
20567 Tue Aug 29 17:14:29 1995  steve chamberlain  <sac@slash.cygnus.com>
20568
20569         * libc/sys/win32/{dirsearch.c,sys/dirent.h}: Fix namespace problems.
20570         * libc/sys/win32/sys/dirent.h (struct dirent): Added d_ino.
20571         * libc/sys/win32/strace.c (__sys_printf): Increase size of buffer.
20572         * libc/sys/win32/smallprint.c (__small_vsprintf): Remove debug.
20573         * libc/sys/win32/dirsearch.c (readdir): Set d_ino.
20574
20575 Tue Aug 29 19:00:09 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
20576
20577         * libc/stdlib/atol.c (atol): DEFUN -> _DEFUN.
20578
20579 Tue Aug 29 16:08:09 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20580
20581         * libc/stdlib/Makefile.in (OFILES): Added atoff.o and atol.o.
20582         * libc/stdlib/atoff.c: New file.
20583         * libc/stdlib/atof.c (atoff): Moved to atoff.c.
20584         * libc/stdlib/atoi.c (atol): Removed.
20585         * libc/stdlib/atol.c: Removed duplicate documentation.
20586
20587         * libc/include/ctype.h (_tolower, _toupper): Moved inside
20588         #ifndef _STRICT_ANSI conditional.
20589         * libc/ctype/Makefile.in (OFILES): Added _tolower.o and _toupper.o
20590         * libc/ctype/_tolower.c: New file.
20591         * libc/ctype/_toupper.c: New file.
20592         * libc/ctype/tolower.c (_tolower): Moved to _tolower.c.
20593         * libc/ctype/toupper.c (_toupper): Moved to _toupper.c.
20594         * libc/ctype/toascii.c (_toascii): Removed.
20595
20596 Tue Aug 29 12:17:32 1995  Doug Evans  <dje@canuck.cygnus.com>
20597
20598         * libc/sys/sparc64/sys/types.h: Deleted.
20599
20600 Mon Aug 28 22:06:08 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
20601
20602         * libc/sys/win32/uname.c (uname): change `Windows/NT' to `Windows_NT'
20603         and recognize Windows_95 systems.
20604
20605 Mon Aug 28 19:50:54 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
20606
20607         * libc/sys/win32/crt0.c (vfork_init, hmap_init): standard I/O fds
20608         and passed fds should be opened in text mode.
20609
20610 Mon Aug 28 18:51:22 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
20611
20612         * libc/sys/win32/crt0.c (vfork_init): mark passed fds as used
20613         in __hmap, set to binary mode by default.
20614
20615 Tue Aug 22 14:12:37 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20616
20617         * libc/sys/sh/syscalls.c: Updated all functions to call __trap34.
20618         * libc/sys/sh/trap.S (__trap34): Renamed from __trap3.  Use trap
20619         vector 34.
20620
20621 Sat Aug 19 18:25:37 1995  steve chamberlain  <sac@slash.cygnus.com>
20622
20623         * Makefile.in (install): Install all libraries found in the
20624         top level.  If there's a sys/<type>/include directory,
20625         install those headers into include.
20626
20627         * libc/sys/win32/kernel.def351: Delete
20628         * libc/sys/win32/{comctl32.def, comdlg32.def, ctl3d32.def,
20629         glaux.def, glu32.def, largeint.def, libc.def, libcmt.def,
20630         lz32.def, mgmtapi.def, mpr.def, msacm32.def, msvcrt.def,
20631         nddeapi.def, netapi32.def, odbc32.def, odbccp32.def, oldnames.def,
20632         ole32.def, oleaut32.def, opengl32.def, rasapi32.def, rpcndr.def,
20633         rpcns4.def, rpcrt4.def, scrnsave.def, shell32.def, snmp.def,
20634         uuid.def, vdmdbg.def, version.def, vfw32.def, win32spl.def,
20635         winmm.def, winspool.def, winstrm.def, wsock32.def}: New.
20636
20637         * libc/sys/win32/Makefile.in: Update for new files and new dlltool options.
20638         * libc/sys/win32/crt0.c: Force all env names to upper case.
20639         * libc/sys/win32/sys/win*.h -> libc/sys/win32/include
20640         * libc/sys/win32/*.c: Headers have moved.
20641         * libs/sys/win32/*.[ch]: Test for open_p rather than BAD_HANDLE,
20642         __vfork_child_idx is now __vfork_child_ptr.
20643
20644         * posix/execvp (execvp): Don't crash if no PATH envname.
20645
20646 Fri Aug 18 12:22:59 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20647
20648         * libc/include/sys/reent.h (_Bigint): Removed _reclaim field.
20649         * libc/reent/reent.c (_reclaim_reent): Free Bigint's by going
20650         through the _freelist instead of through the _reclaim list.
20651         * libc/stdlib/mprec.c (_Balloc): Don't put new node on _reclaim list.
20652         * libc/stdlib/mprec.c (_Bcopy): Make like version in master dtoa.c
20653         sources.
20654
20655 Thu Aug 17 11:03:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20656
20657         * libc/machine/h8500/setjmp.S: New file.
20658         * libc/include/machine/setjmp.h: Updated for H8/500.
20659
20660 Wed Aug 16 16:19:11 1995  steve chamberlain  <sac@slash.cygnus.com>
20661
20662         * libc/sys/win32/syscalls.c (_open): More stracing.
20663         (_stat): Open the file in O_BINARY.
20664
20665 Wed Aug 16 15:49:01 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20666
20667         * libc/machine/h8300/setjmp.S: New file.
20668         * libc/include/machine/setjmp.h: Updated for H8/300 and H8/300H.
20669
20670 Tue Aug 15 10:31:09 1995  Doug Evans  <dje@canuck.cygnus.com>
20671
20672         * libc/sys/win32/crt0.c (__exe_suffix): New global.
20673         (mainCRTStartup): Set __exe_suffix from LIBC_EXE_SUFFIX.
20674         * libc/sys/win32/spawn.c (_spawn): Add .exe suffix based on
20675         __exe_suffix.  Free fd_tab after setting env variable.
20676         (spawnv,_execve): Update.
20677         * libc/sys/win32/syscalls.h (__exe_suffix): Declare.
20678         * libc/sys/win32/smallprint.c (puts,putn): New (static) functions.
20679         (__small_vfprintf): New function.
20680         * libc/sys/win32/strace.c (__sys_printf): Call __small_vfprintf.
20681         * libc/sys/win32/wait.c (cwait): Validate argument.
20682
20683         * libc/sys/win32/syscalls.c (queue_file_deletion): Add trace message.
20684         (process_deletion_queue): Likewise.
20685
20686         * libc/sys/win32/Makefile.in (lib.a): Don't call $(RANLIB).
20687
20688 Mon Aug 14 10:14:10 1995  steve chamberlain  <sac@slash.cygnus.com>
20689
20690         * libc/sys/win32: Copyrights and gratuitous indenting.
20691
20692 Mon Aug 14 01:32:58 1995  Doug Evans  <dje@canuck.cygnus.com>
20693
20694         * libc/sys/win32/syscalls.c (queue_file_deletion): Finish.
20695         (process_deletion_queue): Likewise.
20696         (__close_all_files): New function.
20697         (_close): Only queue file deletion if really a file.
20698         * libc/sys/win32/spawn.c (_spawn): Only ensure .exe suffix if
20699         _P_APPEND_EXE.
20700         (_exit): Call __close_all_files.
20701
20702         * libc/stdlib/system.c: #include <errno.h>.
20703         (_system_r): Fix results in -DNO_EXEC case.
20704
20705         * libc/sys/win32/sys/dirent.h (DIR): New member __d_dirname.
20706         Reorganize structure.
20707         * libc/sys/win32/dirsearch.c (opendir): Use stat to determine
20708         if argument is valid.  Save directory name in DIR.  malloc space
20709         for dirent struct separately.
20710         * libc/sys/win32/syscalls.c (stat): Fix test for directory.
20711
20712         * libc/include/errno.h (ENAMETOOLONG): Define.
20713         * libc/string/strerror.c (strerror): Reword ENFILE.
20714         Add ENOSYS, ENMFILE, ENOTEMPTY, ENAMETOOLONG.
20715
20716 Sun Aug 13 22:42:25 1995  Doug Evans  <dje@canuck.cygnus.com>
20717
20718         * libc/sys/win32/crt0.c (__progname): New global.
20719         (mainCRTStartup): Support strace=bitmask,filename.
20720         * libc/sys/win32/dirsearch.c (all fns): Add trace messages.
20721         * libc/sys/win32/syscalls.c (_write): Print parent trace message
20722         if error.
20723         (getcwd): Handle len too small.  Convert '\\' to '/'.
20724         * libc/sys/win32/sys/fcntl.h (O_RDWR): = O_RDONLY|O_WRONLY.
20725         Add prototypes for open, creat, fcntl.
20726         (O_APPEND): Change value to conform to Microsoft's value.
20727         * libc/sys/win32/sys/strace.h (_STRACE): Protect in do/while.
20728
20729         * libc/stdlib/getopt.c: New file.
20730         * libc/stdlib/Makefile.in: Build it.
20731
20732 Sat Aug 12 12:17:14 1995  Doug Evans  <dje@canuck.cygnus.com>
20733
20734         * libc/posix/execvp.c (execvp): Watch for DOS drives ifdef _WIN32.
20735         Fix scanning of $PATH.
20736         * libc/posix/exec*.c: Call _execve, not execve.
20737         * libc/posix/execve.c: New file.
20738         * libc/posix/Makefile.in (OFILES): Add execve.o.
20739
20740         * libc/sys/win32/sys/strace.h (_STRACE_ALL, _STRACE_UHOH,
20741         _STRACE_STARTUP, _STRACE_SYSCALL): More bit masks of things to trace.
20742         (_STRACE): If level==0, always print.  Handle new bit mask scheme.
20743         * libc/sys/win32/crt0.c: Update _STRACE calls.
20744         * libc/sys/win32/{pipe.c,resource.c,spawn.c,syscalls.c,wait.c}: Ditto.
20745
20746         * libc/sys/win32/smallprint.c (rn): Fix digit list.
20747
20748         * libc/sys/win32/syscalls.c (__really_exit): Move from here,
20749         * libc/sys/win32/exceptions.c (really_exit): to here. Avoid recursion.
20750         * libc/sys/win32/spawn.c (spawnvp): Pass `prog' as image name.
20751         Print __seterrno trace message first.
20752         (_execve): Renamed from execve.
20753         (vfork): Update __strace usage.
20754         (__vfork_child_pid): Deleted.
20755         (__vfork_children, __vfork_child_idx): New globals.
20756         (_spawnvp): New function.
20757         (spawnvp, spawnv, _execve): Call _spawnvp.
20758         (init_child): Record child in __vfork_children.
20759         (__vfork_get_entry, __vfork_record_death): New functions.
20760         * libc/sys/win32/crt0.c (mainCRTStartup): Initialize __vfork_children.
20761         * libc/sys/win32/kernel32.def (WaitForMultipleObjects): Define.
20762         * libc/sys/win32/syscalls.h (CHILD_P): New macro.  All files updated.
20763         (MAX_CHILDREN, CHILD_INTERIM_PID): Define.
20764         (children): New typedef.
20765         (__vfork_children,__vfork_child_idx): Declare.
20766         (__vfork_get_entry,__vfork_record_death): Declare.
20767         * libc/sys/win32/wait.c (wait_for_single,wait_for_any): New functions.
20768         (waitpid): Handle pid == -1.
20769         * libc/sys/win32/sys/wintypes.h (WaitForMultipleObjects): Declare.
20770         * configure.in (i386-win32): Add -DNO_FORK.
20771         * libc/syscalls/sysfork.c (fork): Don't define for NO_FORK.
20772         * libc/reent/execr.c (_fork_r): Likewise.
20773         * libc/stdlib/system.c (do_system): New function.
20774         If WIN32, try to get shell path from $SH_PATH, use vfork.
20775         (_system_r): Return 1 for (s == NULL) if WIN32 or unix,
20776         otherwise return 0.
20777
20778 Sat Aug 12 11:08:00 1995  steve chamberlain  <sac@slash.cygnus.com>
20779
20780         * libc/stdlib/{mallocr.c, mstats.c}: Move mstats from mallocr to mstats.c.
20781         * libc/sys/win32/fcntl.h: Don't include self.
20782         * libc/sys/win32/sys/strace.h (_STRACE_WM, _strace_wm): New.
20783         * libc/sys/win32/sys/winbase.h: (GetUserName) New.
20784         * libc/sys/win32/sys/wincon.h (HANDLER_ROUTINE): Define correctly.
20785         * libc/sys/win32/sys/wintypes.h (GetFileType, GetCurrentProcess, CloseHandle,
20786         SetFilePointer, CreateFileA, GetFileInformationByHandle, GetStdHandle):
20787         Correct prototypes.
20788         * libc/sys/win32/strace.c: New file.
20789         * libc/sys/win32/smallprint.c: New file.
20790         * libc/sys/win32/crt0.c (func): Delete.
20791         (mainCRTStartup): Fix alloca usage.  Set handles explictly.
20792         * libc/sys/win32/dirsearch.c: Clean up handle usage, fix calls to __seterrno.
20793         * libc/sys/win32/exceptions.c: Lint.
20794         * libc/sys/win32/{ioctl.c, pipe.c, resource.c, spawn.c, cwait.c, syscalls.c}:
20795         Clean up handle usage.
20796         * libc/sys/win32/syscalls.c (__sys_printf): Moved into strace.c
20797         (open.c): Default file type is text.
20798         * libc/sys/win32/uname.c (uname): Use __small_sprintf.
20799         * libc/sys/win32/advapi32.def: New
20800
20801 Fri Aug 11 17:11:52 1995  Doug Evans  <dje@canuck.cygnus.com>
20802
20803         * configure.in (posix_dir, libc_posix_lib): New variables.
20804         Define LIBC_POSIX_LIB in makefile to be $libc_posix_lib.
20805         (i[345]86-*-win32): Define posix_dir.
20806         Delete -DNO_EXEC.  Define -DHAVE_OPENDIR.
20807         (if unix_dir): Fix typo.
20808         * libc/posix/{Makefile.in,closedir,opendir,readdir,rewinddir,
20809         scandir,seekdir,telldir}: New files.
20810         * libc/posix/{execl.c,execle.c,execlp.c,execv.c,execvp.c}: Move here
20811         from libc/unix.
20812         * libc/Makefile.in (LIBC_POSIX_LIB): Define.
20813         (SUBDIRS): Add posix.
20814         (SUBLIBS): Add $(LIBC_POSIX_LIB).
20815
20816         * libc/include/sys/signal.h (SIGCHLD): Add for _WIN32.
20817         (NSIG): Increase to 21.
20818         * libc/include/sys/unistd.h (pid_t): Move from here,
20819         * libc/include/sys/types.h (pid_t): to here.
20820
20821         * libc/sys/win32/syscalls.h: #include "sys/strace.h".
20822         (__ptrace): Delete.
20823         (hinfo): New members close_exec_p, child_created_p.
20824         (struct exception_list): Define.
20825         (__hmap): Redefine as pointer to table.
20826         (__parent_hmap, __child_hmap): New globals.
20827         (__set_errno, __really_exit): Declare.
20828         (__vfork_child_pid): Declare.
20829         * libc/sys/win32/crt0.c (__strace, __trace_file): New global.
20830         (__orig_stdin, __orig_stdout, __orig_stderr): New globals.
20831         (__parent_hmap, __child_hmap): New globals.
20832         (__hmap): Redefine as pointer to active map.
20833         (__get_console): New function.
20834         (mainCRTStartup): Change leading '=' in environ vars to '!'.
20835         (env __FD_TABLE__): Watch for this and initialize our fd/handle
20836         mapping table from it if defined.
20837         (argv, envp): Dump if __strace >= 4.
20838         (main): Call here.
20839         * libc/sys/win32/exceptions.c (myp): Redefine.
20840         (__syscalls_b): Delete.
20841         (__stack_trace): New function.
20842         (ehandler3): Update to use _STRACE.  Print stack trace.
20843         Call __really_exit instead of exit.
20844         (init_exceptions): Delete args argc,argv.  New arg mine.
20845         * libc/sys/win32/kernel32.def (CreatePipe, DuplicateHandle, FindClose,
20846         FindFirstFileA, FindNextFileA, GetComputerNameA,
20847         GetEnvironmentVariableA, ReadFile, SetEnvironmentVariableA): Define.
20848         * libc/sys/win32/signal.c (signal): Validate arg.
20849         (alarm, sleep): Define as stubs for now.
20850         * libc/sys/win32/syscalls.c (all fns): Update to use _STRACE.
20851         (__syscalls_b, errno): Delete.
20852         (__vfork_child_pid, __vfork_jmp_buf): New globals.
20853         (__seterrno): Handle more errors.
20854         (__sys_printf): Renamed from _ptrace.
20855         (__really_exit): New function.
20856         (queue_file_deletion, process_deletion_queue): New functions.
20857         (__resume_parent): New function.
20858         (_unlink): Handle trying to delete open file.
20859         (__totime_t): Renamed from totime_t.
20860         (setsid, __read, __write): New functions.
20861         (cwait, spawnvp, R, D, getrusage, _execve, _fork, _wait): Delete.
20862         * libc/sys/win32/{dirsearch.c,getlogin.c,misc.c,resource.c,passwd.c,
20863         times.c,spawn.c,pipe.c,wait.c,termios.c,ioctl.c,uname.c}: New files.
20864         * libc/sys/win32/console.c: Update to new definition of __hmap.
20865         * libc/sys/win32/Makefile.in: Build new files.
20866         * libc/sys/win32/sys/{dirent.h,winerror.h,wait.h,termios.h}: New files.
20867         * libc/sys/win32/sys/{ioctl.h,utsname.h}: New files.
20868         * libc/sys/win32/sys/strace.h: Renamed from ptrace.h.
20869         * libc/sys/win32/sys/wintypes.h (GetCurrentDirectoryA): Fix prototype.
20870
20871 Thu Aug 10 16:32:52 1995  Doug Evans  <dje@canuck.cygnus.com>
20872
20873         * libc/sys/h8500hms/misc.c (kill): Handle SIGABRT.
20874
20875 Thu Aug 10 12:07:38 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20876
20877         * libc/stdlib/{dtoa.c, strtod.c}: Merged assorted changes that
20878         have been made to the master dtoa.c sources (from netlib.att.com)
20879         since they were integrated into newlib in early 1992.  Fixes
20880         problems with storage leaks and handling of numbers with very
20881         negative exponents.
20882
20883 Wed Aug  9 14:18:39 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20884
20885         * Makefile.in (all): set rootpre and srcrootpre before calling
20886         sub-makes.
20887
20888 Tue Aug  8 17:20:45 1995  steve chamberlain  <sac@slash.cygnus.com>
20889
20890         * libc/sys/win32/crt0.c: Change __hmap usage.
20891         * libc/sys/win32/exceptions.c: Use _ptrace call.
20892         * libc/sys/win32/syscalls.c: Use _ptrace call.
20893         (read, write): Cope with DOS style CRLF when in TEXT mode.
20894         * libc/sys/win32/syscalls.h: Declare hinfo struct.
20895         * libc/sys/win32/user32.def: Get DefWindowProc arg list right.
20896         * libc/sys/win32/sys/fcntl.h, ptrace.h: New.
20897         * libc/sys/win32/sys/windows.h: Fill in rest of messages.
20898         * libc/sys/win32/sys/wintypes.h: Fix attribute syntax.
20899
20900 Mon Aug  7 13:04:54 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20901
20902         * libc/include/math.h (cabs, cabsf, drem, dremf): New declarations.
20903
20904         * libm/math/{w_cabs.c, wf_cabs.c, w_drem.c, wf_drem.c}: New files,
20905         wrappers for hypot() and remainder() for BSD libm compatibility.
20906         These are public domain implementations written by me for the
20907         NetBSD libm some time ago.  Note cabs() is required by ucbtest.
20908         * libm/math/Makefile.in (obj): Added w_cabs.o and w_drem.o.
20909         (fobj): Added wf_cabs.o and wf_drem.o.
20910
20911 Thu Aug  3 08:13:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20912
20913         * libc/sys/h8500hms/misc.c: New file.
20914         * libc/sys/h8500hms/Makefile.in (OFILES): Add misc.o.
20915
20916 Wed Aug  2 16:46:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20917
20918         * libc/time/localtime.c (localtime): Fix problem with leap year
20919         handling.  Stole algorithm from Arthur David Olson's tz code.
20920
20921 Mon Jul 31 10:21:54 1995  steve chamberlain  <sac@slash.cygnus.com>
20922
20923         * configure.in: (z8k-*sim): Renamed z8k-*-coff.
20924
20925         * libc/sys/z8ksim/glue.c (_getpid, _kill): New
20926         (_exit): Use argument.
20927
20928 Fri Jul 28 15:17:04 1995  Doug Evans  <dje@canuck.cygnus.com>
20929
20930         * libc/sys/win32/sys/winbase.h (_WINBASE_H): Define.
20931
20932 Wed Jul 26 16:24:19 1995  steve chamberlain  <sac@slash.cygnus.com>
20933
20934         * libc/sys/sh/trap.S (perrno): Align correctly. (pr 7532)
20935
20936 Mon Jul 24 13:42:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20937
20938         * configure.in (sparc*): Add -DMALLOC_ALIGNMENT=8 to
20939         target_cflags.
20940
20941 Mon Jul 24 11:42:07 1995  steve chamberlain  <sac@slash.cygnus.com>
20942
20943         * libc/sys/win32/crt0.c (mainCRTStartup):  Look for
20944         ptrace with case insensitivity
20945         * libc/sys/win32/{user32.def, gdi32.def, exceptions.c, screen.c,
20946         sys/winbase.h,  sys/windows.h, sys/wintypes.h, sys/winuser.h}:
20947         New files.
20948
20949 Fri Jul 21 11:22:26 1995  Doug Evans  <dje@canuck.cygnus.com>
20950
20951         * Makefile.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
20952         (MULTITOP, MULTIDIRS, MULTISUBDIR, MULTIDO, MULTICLEAN): New variables.
20953         (all, install, *clean): Use new multilib support.
20954         * configure.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
20955
20956 Fri Jul 21 07:11:42 1995  steve chamberlain  <sac@slash.cygnus.com>
20957
20958         * libc/include/sys/signal.h (__WIN32__): New.
20959
20960         * configure.in (i386-*-win32): Remobe SBRK_IS_ALLOC.
20961
20962         * libc/stdlib/mprec.c (Balloc): Fix trampling problem.
20963         (ulp, b2d): Handle 32 bit doubles.
20964         * libc/stdlib/mprec.h:  Handle 32 bit doubles.
20965         * libc/stdlib/strtod.c (_strtod_r): Ditto.
20966
20967 Fri Jul 14 08:24:58 1995  steve chamberlain  <sac@slash.cygnus.com>
20968
20969         from medp@primag.co.uk:
20970         * libc/stdio/setvbuf.c (setvbuf): Fix line buffering on
20971         dynamically allocated buffers.
20972
20973 Thu Jul 20 10:11:03 1995  Fred Fish  <fnf@fishbowl>
20974
20975         * libc/include/sys/unistd.h (_exit):  Add _ATTRIBUTE ((noreturn)).
20976         * libc/stdlib/exit.c (unistd.h):  Include to pick up _exit() declaration.
20977
20978 Thu Jul 20 10:16:25 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
20979
20980         * configure.in (powerpc): Fix previous fix.
20981
20982 Wed Jul 19 14:08:55 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
20983
20984         * configure.in (powerpc-*eabiaix*): Update PowerPC multilib
20985         directories for this target.
20986
20987 Wed Jul 19 00:34:30 1995  Jeffrey A. Law  <law@rtl.cygnus.com>
20988
20989         * configure.in (hppa): Add machine_dir definition.
20990         * libc/machine/hppa: New directory with PA specific implementations
20991         of the basic memory/string functions.
20992
20993 Tue Jul 18 21:16:00 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
20994
20995         * configure.in: Update current PowerPC multilib directories.
20996         Split big and little endian configurations.
20997
20998 Tue Jul 18 11:55:33 1995  Ian Lance Taylor  <ian@cygnus.com>
20999
21000         * configure.in: Add --enable-single-float option to configure to
21001         control use of MIPS single-float directories.  Default to yes.
21002
21003         * Makefile.in (all): Don't recurse into multilib directory if it
21004         does not exist.
21005
21006 Mon Jul 17 15:51:30 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21007
21008         * libc/sys/sh/syscalls.c: Fix typo.
21009
21010 Mon Jul  3 14:38:52 1995  Steve Chamberlain  <sac@slash.cygnus.com>
21011
21012         * Makefile.in, libc/Makefile.in, libc/sys/Makefile.in:
21013         Pass down DLLTOOL.
21014         * libc/include/process.h: Define WAIT_CHILD.
21015         * libc/include/types.h: Get sizes right for win32.
21016         * configure.in (i386-*-pe): Becomes i386-win32.
21017         * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
21018         wintypes.h,sys/file.h,sys/resource.h}: Second pass.
21019         * libc/stdlib/mallocr.c: Don't round up memory block if SBRK_IS_ALLOC
21020         is defined.
21021
21022 Wed Jun 28 18:34:54 1995  Steve Chamberlain  <sac@slash.cygnus.com>
21023
21024         * configure.in (i[345]86-*-pe):  New target (NT).
21025         * host/any: DLLTOOL new.
21026         * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
21027         wintypes.h,sys/file.h,sys/resource.h}: Preliminary support for
21028         WIN32 (just enough to cross host the comp-tools).
21029
21030 Thu Jun 22 11:45:18 1995  Doug Evans  <dje@canuck.cygnus.com>
21031
21032         * libc/machine/h8300/{cmpsi.S,ucmpsi.S,divhi3.S,mulhi3.S,mulsi3.S}:
21033         Deleted.  These files live in gcc/config/h8300/lib1funcs.asm now.
21034
21035 Mon Jun 19 11:40:40 1995  Doug Evans  <dje@canuck.cygnus.com>
21036
21037         * libc/include/machine/ieeefp.h (arm): Change to always be
21038         __IEEE_BIG_ENDIAN (even on little endian ARM's).
21039
21040 Thu Jun  8 14:22:28 1995  Steve Chamberlain  <sac@slash.cygnus.com>
21041
21042         * libc/sys/crt0.S: Initialze sp, and call exit after main.
21043         * libc/sys/syscalls.c (abort): New.
21044         * configure.in (arm): Define ABORT_PROVIDED.
21045
21046 Wed Jun  7 14:04:35 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21047
21048         * configure.in (powerpc): Define multidirs.
21049
21050 Mon Jun  5 16:10:13 1995  Doug Evans  <dje@canuck.cygnus.com>
21051
21052         * libc/sys/arm/crt0.S: Add __USER_LABEL_PREFIX__ support.
21053
21054 Thu Jun  1 10:51:47 1995  Sean Eric Fagan <sef@cygnus.com>
21055
21056         * configure.in (sparclite): Delete target_cflags.  Define multidirs.
21057
21058 Wed May 24 14:23:25 1995  Steve Chamberlain  <sac@slash.cygnus.com>
21059
21060         * configure.in, libc/include/machine/ieeefp.h: Modified
21061         for arm:
21062         libc/machine/arm/*, libc/sys/arm/*: New
21063
21064 Tue May 23 13:53:07 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21065
21066         * libc/include/machine/ieeefp.h: Use __PPC__ instead of
21067           __powerpc__ when determining endianness.
21068
21069 Wed May 10 07:55:56 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21070
21071         * configure.in (m68*): Add multidir for the m68332.
21072
21073         * host/any (CC): Fix typo in last change.
21074
21075 Fri Apr 14 22:20:31 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
21076
21077         * libc/include/sys/config.h: Test __m68k__ instead of __m68000__
21078         when determining endianness.
21079         * libc/include/machine/ieeefp.h: Ditto.
21080         * libc/machine/m68k/setjmp.S: Use '&' instead of '#' for immediate
21081         operands.
21082
21083 Fri Apr 14 14:14:29 1995  Doug Evans  <dje@chestnut.cygnus.com>
21084
21085         * libc/include/errno.h (ENOTEMPTY): Define.
21086
21087 Thu Apr  6 12:21:20 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21088
21089         * configure.in (sparc-sun-sunos*): Add -DMALLOC_ALIGNMENT=8 to
21090           target_cflags.
21091
21092         * libc/sys/sun4/Makefile.in (COPYOFILES): Added rem.o, multiply.o,
21093           and umultiply.o.
21094
21095         * libc/stdio/tmpnam.c (worker): Unconditionally increment count
21096           instead of only when open succeeds.  ANSI requires that multiple
21097           calls to tmpnam() result in different files.
21098
21099         * libc/sys/sun4/Makefile.in (COPYRENAMEOFILES): New macro, list of
21100           objects pulled in from /lib/libc.a that must be renamed before
21101           being pulled into newlib.  /lib/libc.a's div.o conflicted with
21102           newlib's file with the same name.
21103
21104         * libc/stdlib/ldiv.c (ldiv): Call labs() instead of abs().
21105
21106         * host/any (CC, AS, AR, RANLIB): Changed so that executables in
21107           the build tree will only be used if the executables are present
21108           (instead of just the Makefiles).
21109
21110         * libc/include/stdlib.h (mblen, mbtowc, wctomb, mbstowcs,
21111           wcstombs): Define.
21112         * libc/stdlib/{mblen.c, mbstowcs.c, wcstombs.c}: New files, null
21113           versions of these functions that I orignally wrote for the
21114           NetBSD C library.
21115         * libc/stdlib/{mbtowc.c, wctomb.c}: Replaced functions with
21116           versions I wrote for NetBSD.
21117
21118 Wed Mar 29 12:42:42 1995  Kung Hsu  <kung@mexican.cygnus.com>
21119
21120         * libc/sys/sparclite/Makefile.in: add crt0.s and make info.
21121         * libc/sys/sparclite/crt0.s: ditto.
21122
21123 Tue Mar 28 20:28:03 1995  Rob Savoye  <rob@rtl.cygnus.com>
21124
21125         * configure.in: Add soft-float for proelf.
21126
21127 Mon Mar 27 12:07:56 1995  Steve Chamberlain  <sac@bang.hack.com>
21128
21129         * libc/stdlib/mprec.h (Bcopy): Copy the right number
21130         of bytes.
21131
21132 Mon Mar 27 11:24:22 1995  Doug Evans  <dje@chestnut.cygnus.com>
21133
21134         * Makefile.in (all): Depend on `force'.
21135         * configure.in (syscall_dir): Renamed from fake_sys_dir.
21136         (libc_syscall_lib): Renamed from libc_fake_sys_lib.
21137         (LIBC_SYSCALL_LIB): Renamed from LIBC_FAKE_SYS_LIB.
21138         * libc/Makefile.in: Likewise.
21139         * libc/include/reent.h: Update syscall references.
21140         (_fcntl_r): Add prototype.
21141         * libc/syscalls/*.c #include <reent.h>.
21142         (*) Call reentrant version if REENTRANT_SYSCALLS_PROVIDED.
21143
21144 Mon Mar 20 16:57:39 1995  Doug Evans  <dje@deneb.cygnus.com>
21145
21146         * libc/include/sys/stat-dj.h (S_ISBLK): Define.
21147         (S_ISCHR, S_ISDIR, S_ISFIFO, S_ISREG): Define.
21148         * libc/include/sys/stat.h (stat-dj.h): Include ifdef MSDOS.
21149         (time.h, sys/types.h): Always include (even if MSDOS).
21150         (stat): Fix prototype.
21151
21152 Fri Mar 10 11:30:38 1995  Ian Lance Taylor  <ian@cygnus.com>
21153
21154         * configure.in (i[345]86-*-go32): Compile with -DNO_EXEC.
21155
21156 Mon Feb 27 18:00:39 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
21157
21158         * libc/machine/h8500/psi.S (EXTPSIHI_RN_SN): Ifdef out.
21159
21160 Mon Feb 13 16:10:03 1995  Ian Lance Taylor  <ian@cygnus.com>
21161
21162         * libc/include/regdef.h: New file.
21163         * libc/machine/mips/machine/regdef.h: New file.
21164
21165 Mon Feb  6 15:24:29 1995  Doug Evans  <dje@canuck.cygnus.com>
21166
21167         * libc/sys/sparc64/sys/fcntl.h (open): Add ellipsis.
21168
21169 Fri Jan 27 13:52:10 1995  Steve Chamberlain  <sac@splat>
21170
21171         * libc/sys/sh/crt0.S: Pass main's return to exit.
21172         * libc/sys/sh/trap.S: Put errno in the right place.
21173
21174 Tue Jan 24 18:57:56 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
21175
21176         * libm/math/e_rem_pio2.c (__ieee754_rem_pio2): Integrate change
21177         from fdlibm 5.2: handle |x| < 3pi/4 more efficiently.
21178         * libm/math/ef_rem_pio2.c: Likewise.
21179         * libm/math/e_log10.c: Remove unused static one.
21180         * libm/math/ef_log10.c: Likewise.
21181         * libm/math/s_frexp.c: Likewise.
21182         * libm/math/sf_frexp.c: Likewise.
21183
21184 Sun Jan 22 21:26:14 1995  Steve Chamberlain  <sac@splat>
21185
21186         * libc/sys/go32/Makefile.in, clock.S, dir.c, setjmp.S, stat.c,
21187         longjmp.S: Upgraded.
21188         * libc/sys/go32/sys/setjmp.h: Upgraded.
21189         * libc/sys/go32/sys/go32.h, dpmi.h: New files.
21190
21191 Fri Jan 20 18:33:18 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
21192
21193         * configure.in: Add many entries to multidirs for mips targets.
21194
21195 Wed Jan 18 10:19:25 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21196
21197         * libm/math/e_jn.c (__ieee754_yn): Integrate change from fdlibm
21198           5.2 which fixes bug where jn(-1,x) is three times larger than
21199           the actual answer.
21200         * libm/math/ef_jn.c (__ieee754_ynf): Likewise.
21201
21202 Sun Jan 15 21:48:58 1995  Steve Chamberlain  <sac@splat>
21203
21204         * libc/sys/w65/sys/syscalls.h: New file
21205         * libc/include/machine/ieeefp.h: W65 support.
21206         * libc/include/sys/config.h: Ditto.
21207         * libc/machine/w65/Makefile.in, cmpsi, divsi3, lshrhi.s, mulsi3.c,
21208         sdivhi3.s, smulhi3.s, udivhi3.s, umodhi3.s: New files.
21209         * libc/sys/w65/Makefile.in, crt0.c, syscalls.c, trap.c: New files.
21210
21211 Wed Jan 11 15:59:01 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
21212
21213         * libc/sys/Makefile.in (lib.a, crt0.o): Depend upon subs.
21214
21215 Tue Jan  3 15:57:03 1995  Rob Savoye  <rob@darkstar.cygnus.com>
21216
21217         * Makefile.in, configure.in: Remove any references to the old
21218         "stub" dir.
21219
21220 Thu Dec 22 10:42:08 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
21221
21222         * libc/syscalls/sysopen.c: Write _HAVE_STDC version of open, which
21223         uses ... in prototype.
21224
21225
21226 Wed Nov 30 08:39:42 1994  Ian Lance Taylor  <ian@rtl.cygnus.com>
21227
21228         * libc/sys/a29khif/sys/libconfig.h: Remove.
21229         * libc/sys/go32/sys/libconfig.h: Remove.
21230         * libc/sys/sun4/sys/libconfig.h: Remove.
21231         * libc/sys/sysvi386/sys/libconfig.h: Remove.
21232         * libc/sys/sysvnecv70/sys/libconfig.h: Remove.
21233         * libc/sys/sparc64/sys/libconfig.h: Remove.
21234
21235         * libc/include/_ansi.h (_FLOAT_ARG, _FLOAT_RET): Don't define.
21236         * libc/include/sys/config.h (_FLOAT_ARG, _FLOAT_RET): Likewise.
21237         * libc/include/math.h: Change all uses of _FLOAT_RET and
21238         _FLOAT_ARG to float.
21239         * libm/test/math.c: Likewise.
21240         * testsuite/libm.sac/math.c: Likewise.
21241         * testsuite/libm.sac/working/math.c: Likewise.
21242
21243 Wed Nov 23 22:39:28 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
21244
21245         * libc/sys/sh/trap.s,crt0.s,setjmp.s: Renamed with .S so that
21246         gcc calls gas with endian option.
21247         * configure.in (sh): Build little endian version too.
21248
21249 Wed Nov 16 18:21:45 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
21250
21251         * configure.in: Configure big and little endian versions for MIPS
21252         targets.
21253
21254 Sat Nov 12 21:12:51 1994  Doug Evans  <dje@canuck.cygnus.com>
21255
21256         * libc/include/limits.h: Deleted.
21257         * libc/include/machine/limits.h: Deleted.
21258
21259 Thu Nov 10 15:32:44 1994  Rob Savoye  <rob@rtl.cygnus.com>
21260
21261         * ChangeLog: Remove stub directory. This has all been rewritten
21262         and moved to devo/libgloss.
21263
21264 Thu Sep 29 18:31:04 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
21265
21266         * Makefile.in (dvi): Add to info target, use $@ in sub make.
21267         (docs): Merge into info target.
21268         * libm/Makefile.in (dvi): Add $(srcdir).
21269         * libm/math/Makefile.in (chobjs): Remove underscores from file
21270         names.  Texinfo doesn't like them.
21271         (wacos.def, ...): Add explicit targets for all .def files.
21272         * libm/math/math.tex: Remove underscores from @include file names.
21273         * doc/Makefile.in (dvi): Add dummy target.
21274         * testsuite/Makefile.in (dvi): Add dummy target.
21275
21276 Mon Sep 26 21:17:46 1994  Doug Evans  (dje@canuck.cygnus.com)
21277
21278         * Makefile.in (VERSION): Define.  For net newlib releases.
21279
21280 Thu Sep 22 19:01:26 1994  Doug Evans  (dje@canuck.cygnus.com)
21281
21282         * README: New file.
21283
21284 Mon Sep 19 16:35:23 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
21285
21286         * libc/stdlib/ecvtbuf.c (_gcvt): Undo last change.
21287
21288 Mon Sep 19 11:44:23 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
21289
21290         * libc/stdlib/setenv.c (_findenv): Declare.
21291
21292         * libc/include/sys/fcntl.h: Fix declarations of open, creat, and
21293         fcntl to not use _EXFUN, and change string parameters to open and
21294         creat to be ``const char *''.
21295         * libc/sys/sparc64/sys/fcntl.h: Likewise.
21296         * libc/sys/sparc64/creat.c (creat): Make PATH const.
21297         * libc/syscalls/sysopen.c: Include <fcntl.h>.
21298         (open) Make _FILE const.
21299         * libc/sys/z8ksim/glue.c (_open): Make BUF const.
21300         (_creat): Make PATH const.
21301         * libc/sys/h8300hms/syscalls.c (_open): Make PATH const.
21302         * libc/sys/h8500hms/syscalls.c (_open): Likewise.
21303         * libc/sys/m88kbug/syscalls.c (open): Likewise.
21304         * libc/sys/sh/syscalls.c (_open): Likewise.
21305         * stub/shared/glue.c (open): Make BUF const.
21306         * stub/ex93x/syscalls.c (open): Make FILENAME const.
21307
21308 Thu Sep  8 16:39:12 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
21309
21310         * libc/include/errno.h: Add ENMFILE
21311         * libc/include/sys/config.h: Support Z8000.
21312         * libc/include/sys/signal.h: New signals for go32.
21313         * libc/machine/h8500/psi.S (__addpsir0r0): New function
21314         * libc/machine/h8500/cmpsi.S (__ucmppsi2): New function
21315         * libc/machine/sh/sdivsi3.s (__sdivsi3): Rewritten.
21316         * libc/stdlib/mallocr.c (_morecore_r): Minimum chunk
21317         size is variable, depending upon CHUNK_POWER.
21318         * libc/sys/go32/*.c: Upgrade to new go32 stuff.
21319
21320 Sun Sep  4 17:42:43 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
21321
21322         * libc/stdlib/ecvtbuf.c (_gcvt): Output '-' for negative numbers.
21323
21324 Fri Sep  2 10:56:01 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
21325
21326         * libc/include/_ansi.h (_PARAMS): Don't define if already defined.
21327
21328 Wed Aug 24 11:11:03 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
21329
21330         * configure.in: Change i[34]86 to i[345]86.
21331
21332         * libc/include/math.h: Don't define HUGE_VAL if it is already
21333         defined.
21334
21335 Wed Aug 17 15:18:02 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
21336
21337         * testsuite/libm.sac/test_erfc.c: Correct some result values.
21338         * testsuite/libm.sac/test_gammaf.c: Likewise.
21339         * testsuite/libm.sac/test_sin.c: Likewise.
21340         * testsuite/libm.sac/test_tanh.c: Likewise.
21341
21342 Tue Aug 16 16:12:53 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
21343
21344         * libc/include/machine/ieeefp.h: Don't try set endianness if it is
21345         already set.  Define typedefs __int32_t and __uint32_t.
21346         * libc/include/math.h: Include <machine/ieeefp.h>.
21347         (union __dmath): Use __uint32_t.
21348         * libm/math/fdlibm.h, libm/math/*.c: Use __int32_t and __uint32_t
21349         instead of int and unsigned int.
21350
21351 Thu Aug 11 15:16:09 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
21352
21353         Replace the math library with the SunPRO fdlibm package.
21354         * libm/math: Completely changed all files.
21355         * libm/ieeefp: Remove contents and directory.
21356         * libm/Makefile.in (LIBM_FP_LIB): Remove.
21357         (SUBDIRS): Just set to math/lib.a.
21358         * libm/libm.texinfo: Updated for new library.
21359         * libc/include/math.h: Extensive changes for new math library.
21360         * libc/include/ieeefp.h (isnanf, isinff, finitef): Change argument
21361         from _FLOAT_ARG to float.
21362         (maxpowtwo, maxpowtwof): Don't declare.
21363         * configure.in (fp_dir): Removed; was always ieeefp anyhow.
21364         (libm_fp_lib): Removed.
21365         * Makefile.in (MATHOBJS_IN_LIBC): Updated with new file names.
21366         * testsuite/libm.paranoia/Makefile.in (check): Correct --srcdir
21367         argument to ${RUNTEST}.
21368         * testsuite/libm.sac/Makefile.in (LOCAL_CFLAGS): Define.
21369         (.c.o): New rule.
21370         (RUNTESTFLAGS): Set CC and CFLAGS.
21371         (TESTS): Remove test_log2 and test_log2f.
21372         (${TESTS}): Pass ${LOCAL_CFLAGS}, not ${CFLAGS}.
21373         * testsuite/libm.sac/math.c (run_vector_1): Use float, not
21374         _FLOAT_ARG, for single precision argument type.
21375         * testsuite/libm.sac/sac.exp: Treat an error in bit 63 as an
21376         expected failure.  Close the input pipe.
21377         * testsuite/libm.sac/test.c (test_sok, test_iok, test_scok):
21378         Correct misspelling of inaccurate.
21379         (test_mok): Use ``inaccurate'', not ``wrong''.
21380         * testsuite/libm.sac/{test_acos.c, test_acosh.c, test_asin.c,
21381         test_asinh.c, test_atan.c, test_atanh.c, test_ceil.c,
21382         test_ceilf.c, test_cos.c, test_cosh.c, test_erf.c, test_erf.c,
21383         test_fabs.c, test_floor.c, test_floorf.c, test_fmod.c,
21384         test_fmodf.c, test_gamma.c, test_log1p.c, test_log1pf.c,
21385         test_yn.c): Correct many result values.  Many are still wrong.
21386
21387         * libc/stdlib/ecvtbuf.c (print_e): If _dtoa_r sets decpt to 9999,
21388         just copy the string.
21389         (_gcvt): Always return the buffer.
21390
21391 Tue Aug  9 13:43:23 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
21392
21393         * bcopy.c: fixed documentation, bcopy was not specified by ANSI.
21394
21395 Wed Aug  3 05:39:41 1994  D. V. Henkel-Wallace  (gumby@cygnus.com)
21396
21397         * libc/include/sys/reent.h: (struct _Bigint): add _reclaim
21398         structure.
21399         (struct _reent): add _p5s, _cvtlen, _cvtbuf.
21400         (_reclaim_reent): declare new entry point.
21401         * libc/reent/reent.c (cleanup_glue, _reclaim_reent): new
21402         functions.
21403
21404         * libc/stdlib/mprec.c (Balloc): Keep track of every struct bigint
21405         ever allocated, so that we can later reclaim them all.
21406         (pow5mult): make reentrant.
21407
21408         * libc/stdlib/ecvtbuf.c (fcvtbuf, ecvtbuf): extend these functions
21409         so that when given NULL as a buffer, return a pointer to static
21410         space in the rent structure.  This is not documented behaviour;
21411         it's only to support ecvt and fcvt, which aren't ANSI anyway.
21412         * libc/stdlib/efgcvt.c (fcvt, ecvt) Use new functionality (and
21413         therefore become reentrant).
21414
21415         * libc/stdlib/dtoastub.c: remove spurious inclusion of mprec.h.
21416
21417 Mon Aug  1 16:52:24 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
21418
21419         * libc/include/machine/ieeefp.h: Check _AM29K, not ___AM29K__.
21420
21421 Thu Jul 28 15:40:21 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
21422
21423         * Makefile.in: Make link to libg.a after libc.a; this is needed
21424           for the testsuites to build executables when everything comes
21425           from the tree.
21426
21427 Mon Jun 27 17:14:29 1994  Bill Cox  (bill@rtl.cygnus.com)
21428
21429         * libc/Makefile.in: Add a VERSION variable so we can keep track.
21430         * libm/Makefile.in: Add a VERSION variable so we can keep track.
21431
21432 Wed Jun 22 10:26:00 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
21433
21434         * libc/include/stdio.h: Use __VALIST, not va_list.
21435
21436 Tue May 17 15:43:28 1994  Bill Cox  (bill@rtl.cygnus.com)
21437
21438         * testsuite/config/unix-libm.exp, testsuite/lib/libm.exp,
21439         testsuite/libm.sac/execute.exp:
21440           Replace error proc calls with perror calls.
21441
21442 Wed May 11 09:25:28 1994  Doug Evans  (dje@canuck.cygnus.com)
21443
21444         * libc/include/*.h: #include "_ansi.h" instead of <_ansi.h>.
21445         * libc/include/time.h: #define NULL as 0L.
21446
21447 Mon May  9 18:41:20 1994  Doug Evans  (dje@canuck.cygnus.com)
21448
21449         * host/any (INCLUDES): Delete -I of gcc/include, gcc -B takes
21450         care of it.
21451
21452 Mon May  9 18:39:39 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
21453
21454         * libc/include/sys/signal.h: Check for __GO32__, not __i386__ and
21455         not __unix__.
21456
21457 Sat May  7 17:07:36 1994  Steve Chamberlain  (sac@cygnus.com)
21458
21459         * configure.in (TARGET_CFLAGS): Set -O2 as default.
21460         (z8k-*-*): Use syscalls fake sys dir.
21461         * libc/sys/z8k/glue.c: Rename syscalls.
21462         * libc/sys/go32/Makefile.in: Use new routines.
21463         * libc/machine/Makefile.in: Fix typo in ln stuff.
21464
21465 Thu May  5 13:47:48 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
21466
21467         * Makefile.in (libm.a, crt0.o): Use cp if ln fails.
21468         * libc/Makefile.in (crt0.o): Likewise.
21469         * libc/machine/Makefile.in (lib.a): Likewise.
21470         * libc/sys/Makefile.in (lib.a, crt0.o): Likewise.
21471
21472         All Makefile.in files: Added mostlyclean, realclean and distclean
21473         targets.
21474
21475         * Makefile.in: Don't bother to unexport XTRAFLAGS or
21476         XTRAFLAGS_FOR_TARGET, since they are no longer passed down from
21477         the top level Makefile.
21478
21479 Tue Apr 26 15:10:34 1994  Doug Evans  (dje@canuck.cygnus.com)
21480
21481         * libc/sys/sparc64/sys/stat.h: New file.
21482         * libc/sys/sparc64/sys/time.h: New file.
21483         * libc/sys/sparc64/sys/types.h: New file.
21484
21485 Fri Apr 22 12:58:24 1994  Stan Shebs  (shebs@andros.cygnus.com)
21486
21487         * stub/ex93x/crt0.s (start): Add code to clear bss.
21488
21489 Wed Apr 13 10:34:58 1994  Doug Evans  (dje@canuck.cygnus.com)
21490
21491         * libc/include/sys/types.h (time_t): Properly protect inside
21492         #ifndef __time_t_defined.
21493
21494         * libc/stdio/fileno.c: New file.
21495         * libc/stdio/Makefile.in (OFILES, CHEWOUT_FILES): Add fileno.
21496         (fileno.o): Add dependency.
21497         * libc/include/stdio.h (__sgetc): Rename never to _never.
21498         (fileno macro): Disable, needs to do CHECK_INIT first.
21499
21500 Mon Apr 11 17:37:09 1994  Bill Cox  (bill@rtl.cygnus.com)
21501
21502         * testsuite/Makefile.in (EXPECT, RUNTEST): Set these for the check
21503         goal.
21504
21505         * testsuite/Makefile.in (check): Set TCL_LIBRARY for runtest.
21506         * testsuite/libm.paranoia/Makefile.in (check): Set TCL_LIBRARY for
21507         runtest.
21508         * testsuite/libm.sac/Makefile.in (check): Set TCL_LIBRARY for
21509         runtest.
21510
21511 Sat Apr  9 16:18:09 1994  Doug Evans  (dje@cygnus.com)
21512
21513         * libc/sys/sparc64/sys/fcntl.h: New file, define solaris versions
21514         of the various constants.
21515
21516 Thu Apr  7 21:19:07 1994  Mark Eichin  (eichin@cygnus.com)
21517
21518         * libc/include/math.h: #ifndef __math_68881 around things which
21519         conflict with the (gcc-provided) inline functions in
21520         gcc/ginclude/math-68881.h.
21521
21522 Thu Apr  7 02:50:43 1994  Doug Evans  (dje@cygnus.com)
21523
21524         * libc/include/_syslist.h (_gettimeofday): Define.
21525         (_times): Ditto.
21526         * libc/include/reent.h: #include <machine/types.h> to get _CLOCK_T_.
21527         (struct tms, timeval, timezone): Declare.
21528         (_gettimeofday_r, _times_r): Declare.
21529         * libc/include/time.h (_CLOCK_T_): Don't #undef.  Remove
21530         #ifdef _CLOCK_T_ surrounding definition of clock_t.
21531         (time_t): Add multiple definition protection, __time_t_defined.
21532         * libc/include/sys/time.h: Don't #include <time.h>.
21533         Always define struct timezone (remove #ifndef _TIME_H_).
21534         * libc/include/sys/times.h (_CLOCK_T_): Don't #undef.  Remove
21535         #ifdef _CLOCK_T_ surrounding definition of clock_t.
21536         * libc/reent/Makefile.in (OFILES): Add timer.o.
21537         (CHEWOUT_FILES): Add timer.def.  Add timer.o/timer.c dependence.
21538         * libc/reent/timer.c: New file.
21539         * libc/time/clock.c: #include <reent.h>.
21540         (clock): Call _times_r instead of times.
21541         * libc/time/time.c (HAVE_GETTIMEOFDAY): Renamed from
21542         HAVE_GET_TIME_OF_DAY.
21543         Add comment regarding supporting OS routine(s) required (for docs).
21544         #include <reent.h>.
21545         (time): Call _gettimeofday_r instead of gettimeofday.
21546         * libc/time/asctime.c: Fix comment regarding supporting OS routines.
21547         * libc/time/ctime.c: Ditto.
21548         * libc/time/strftime.c: Ditto.
21549         * libc/sys/sparc64/Makefile.in (TEMPLATE_SFILES): Remove gettimeofday.
21550         (TEMPLATE_SFILES_R): Define here.  Also define times.
21551         Add times_r.o/times.S dependence.
21552         (time2.c, junk.c): Deleted.
21553         * libc/sys/sparc64/time2.c: Deleted.
21554         * configure.in (sparc64-*-*): Define HAVE_GETTIMEOFDAY.
21555
21556         * libc/stdio/mktemp.c (_getpid_r): Renamed from _getpid.
21557         * libc/stdio/tmpnam.c (_getpid_r): Ditto.
21558         * libc/sys/sparc64/junk.c: Deleted.
21559
21560 Mon Mar 21 16:51:03 1994  Doug Evans  (dje@canuck.cygnus.com)
21561
21562         * libc/sys/sparc64/Makefile.in: Add times syscall.
21563         * libc/sys/sparc64/crt0.S: Handle stack bias at run time so we can
21564         be used with and without it.  Add comment clarifying Medium/Anywhere
21565         model requirements.
21566         * libc/sys/sparc64/sigsetjmp.S (setjmp, longjmp): Add svr4 support.
21567         * libc/sys/sparc64/sys/syscall.h (SYS_times): Define for sunos4
21568         even if obsolete.
21569
21570 Sun Mar 20 15:51:47 1994  Doug Evans  (dje@cygnus.com)
21571
21572         * configure.in (target_cflags): Move init.
21573         (sparc64-*-*): Define HAVE_BLKSIZE.
21574
21575 Wed Mar  9 10:44:52 1994  Doug Evans  (dje@canuck.cygnus.com)
21576
21577         * libc/include/sys/_types.h: New file.
21578         * libc/include/reent.h: #include it.
21579         Add comment describing REENTRANT_SYSCALLS_PROVIDED and
21580         MISSING_SYSCALL_NAMES.
21581         Sort syscalls.
21582         * libc/include/_syslist.h: Remove _raise.
21583         * libc/reent/signalr.c: New file.
21584         * libc/reent/Makefile.in: Compile it.
21585         * libc/signal/signal.c: Only use ifdef SIMULATED_SIGNALS.
21586         Add doc for raise and _raise_r.
21587         * libc/signal/raise.c: Only use ifndef SIMULATED_SIGNALS.
21588         (raise): Call _raise_r.
21589         (_raise_r): Call _getpid_r and _kill_r.
21590         * libc/stdlib/abort.c: Remove inclusion of stdio.h and _syslist.h.
21591         (abort): Loop forever calling raise and _exit.
21592
21593 Mon Mar  7 14:40:08 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
21594
21595         * configure.in: Remove extraneous echo.
21596
21597 Thu Mar  3 12:14:22 1994  Doug Evans  (dje@canuck.cygnus.com)
21598
21599         * libc/sys/sparc64/sys/dirent.h (MAXNAMLEN): #undef to avoid
21600         collision with unistd.h, and fix for svr4.
21601
21602 Wed Mar  2 13:55:25 1994  Doug Evans  (dje@canuck.cygnus.com)
21603
21604         * libc/stdio/local.h (_llicvt): Declare.
21605         (CVT_BUF_SIZE): Define (and buffer size from 512 to 128).
21606         * libc/stdio/cvt.c: Include "local.h" to get CVT_BUF_SIZE.
21607         (_llicvt): Define.
21608         (_sicvt): Fix function header (`value' is short).
21609         * libc/stdio/vfprintf.c (_vfprintf_r): Use CVT_BUF_SIZE.
21610         Add printing of long long's support.
21611         Add printing of 8 byte pointer support.
21612
21613 Fri Feb 11 21:52:11 1994  Steve Chamberlain  (sac@sphagnum.cygnus.com)
21614
21615         * libc/sys/sh/syscalls.c (pipe, execv, wait, fork, utime, chown,
21616         stat, chmod): New hooks.
21617         (sbrk): Abort if stack and heap collide.
21618         * libc/machine/sh/udivsi3, libc/machine/sh/sdivsi3 Modified to
21619         shortcut when given small args.
21620         * libc/machine/sh/setjmp.s: Rewritten.
21621         * libc/machine/sh/strcmp.s (strcmp): New function takes advantage
21622         of cmp/str instruction.
21623
21624 Wed Feb  9 15:12:35 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
21625
21626         * configure.in: Accept powerpc* as a CPU type, using fp_dir ieeefp
21627         and machine_dir powerpc.
21628         * libc/include/machine/setjmp.h, libc/include/machine/ieeefp.h:
21629         Add cases for __powerpc__.
21630         * libc/machine/powerpc/Makefile.in, libc/machine/powerpc/setjmp.S:
21631         New files.
21632
21633         * libc/include/stdio.h (_iprintf_r): Declare correctly.
21634
21635 Thu Jan 27 10:36:27 1994  Steve Chamberlain  (sac@cygnus.com)
21636
21637         * libc/stdlib/callocr.c: New file with _calloc_r in it.
21638         * libc/stdlib/calloc.c (calloc_r): Now in callocr.c
21639
21640 Thu Jan 20 15:14:37 1994  Doug Evans  (dje@canuck.cygnus.com)
21641
21642         * libc/stdlib/ecvtbuf.c (print_f): Remove local "done".
21643         (print_e): More comments to describe args, etc.
21644         "type" arg may now be 'g' or 'G' for %g/G format --> remove
21645         trailing blanks.
21646         (_gcvt): Remove locals decpt, sign, end, p, done.
21647         More comments for print_e invocation.
21648         Pass "type" to print_e as is (g/G).
21649
21650 Wed Jan 19 16:34:18 1994  Rob Savoye  (rob@darkstar.cygnus.com)
21651
21652         * stub/shared/m68k-crt0.S: Changed so it compiles (and runs) on a
21653         stock m68000.
21654
21655 Mon Jan 17 15:41:53 1994  Doug Evans  (dje@canuck.cygnus.com)
21656
21657         * libc/stdlib/mallocr.c (_morecore_r): Fix aligning of pointer so it
21658         works with any sized pointer, including ones bigger than ints and
21659         longs.
21660
21661 Thu Jan  6 14:53:21 1994  Doug Evans  (dje@canuck.cygnus.com)
21662
21663         * libc/sys/sparc64/{time2.c,utime.S,utime2.c}: New files.
21664
21665 Sat Dec 11 16:17:20 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
21666
21667         * libc/include/stdlib.h (_calloc_r): Add prototype.
21668         * libc/machine/h8500/negsi2.c: New file.
21669         * libc/machine/h8500/divsi3.c: Prevent overflow when dividing v
21670         large unsigned numbers.
21671         * libc/machine/h8500/cmpsi.c: Add cmppsi.
21672         * libc/stdlib/mallocr.c (morecore_r): Fix aligning pointers so it
21673         works when sizeof(size_t) != sizeof(char *).
21674         * libc/stdlib/mprec.c (Balloc): Call calloc rather than malloc to
21675         get play area
21676         * libc/stdlib/mprec.h: Define Just_16 if generating for z8000.
21677
21678 Mon Dec  6 15:59:53 1993  Doug Evans  (dje@rtl.cygnus.com)
21679
21680         * libc/include/assert.h (assert): Handle -traditional.
21681
21682 Tue Nov 16 15:49:24 1993  Mark Eichin  (eichin@cygnus.com)
21683
21684         * Makefile.in: added ; after every "fi" and "done" that wasn't at
21685         the end of a line (ie. anything before a backslash continuation)
21686         so that bash handles them.
21687
21688 Tue Nov 16 12:31:57 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
21689
21690         * libc/sys/go32/lstat.s: new file, copied from stat.s and renamed
21691         stat to lstat
21692
21693 Mon Nov 15 15:50:43 1993  Steve Chamberlain  (sac@jonny.cygnus.com)
21694
21695         * libc/sys/sh/crt0.s, libc/sys/sh/trap.s,
21696         libc/machine/sh/sdivsi3.s, libc/machine/sh/setjmp.s,
21697         libc/machine/sh/udivsi3.s: Use new calling convention.
21698
21699 Mon Nov 15 15:25:38 1993  Mark Eichin  (eichin@cygnus.com)
21700
21701         * libc/include/sys/unistd.h, libc/include/sys/stat.h: ANSI-fy
21702         chmod, access, chdir, chown by making _path const. Also fix _amode
21703         param of access.
21704
21705 Fri Nov 12 20:25:28 1993  Mark Eichin  (eichin@cygnus.com)
21706
21707         * libc/sys/a29khif/_tmpnam.s (_tmpnam): renamed function to
21708         _khif_tmpnam, because it doesn't comply with ANSI but may be
21709         useful anyway. Real tmpnam was already in libc/stdio, and was
21710         colliding with this one (pr 2176.)
21711         * libc/sys/a29khif/stubs.s (tmpnam): removed tmpnam. This file is
21712         the wrong idea anyhow.
21713
21714 Mon Nov  8 07:50:16 1993  Doug Evans  (dje@canuck.cygnus.com)
21715
21716         * configure.in: Remove h8300h, we have multilib now.
21717
21718 Fri Nov  5 12:37:27 1993  Mark Eichin  (eichin@cygnus.com)
21719
21720         * libc/string/strcasecmp.c, libc/string/strncasecmp.c: new
21721         functions, to get preference over the ones in libiberty (since we
21722         provide correct declarations in <string.h>.
21723         * libc/string/Makefile.in: add support for strncasecmp,
21724         strcasecmp.
21725
21726 Fri Nov  5 09:05:45 1993  D. V. Henkel-Wallace  (gumby@blues.cygnus.com)
21727
21728         * Change netware config not to look for cpu explicitly.
21729
21730 Thu Nov  4 14:21:25 1993  Doug Evans  (dje@canuck.cygnus.com)
21731
21732         * libc/sys/sparc64/{creat.c,junk.c}: New files.
21733         * libc/sys/sparc64/Makefile.in: Add dependencies.
21734
21735 Wed Nov  3 10:42:49 1993  Doug Evans  (dje@canuck.cygnus.com)
21736
21737         * configure.in: Clean up v9 a bit, new "os" aoutv8.
21738
21739 Tue Nov  2 10:00:44 1993  D. V. Henkel-Wallace  (gumby@cygnus.com)
21740
21741         * libc/include/sys/reent.h: make structure smaller by allocating
21742         some stuff when needed.
21743         * libc/signal/signal.c: allocate as needed
21744         * libc/stdio/findfp.c,stdio/local.h: ditto
21745         * libc/stdlib/mprec.c: ditto
21746
21747         * libc/time/localtime.c: don't return a dangling stack ptr.
21748
21749 Wed Sep 29 20:42:34 1993  Rob Savoye  (rob@darkstar.cygnus.com)
21750
21751         * stub/mvme135/crt0.S, stub/mvme135/glue.c: Moved to stub/generic.
21752
21753 Wed Sep 29 16:27:49 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
21754
21755         * libc/include/stdio.h (__sputc): comment out static inline which
21756           confuses coff toolchains.
21757
21758 Thu Sep  2 16:31:36 1993  Mark Eichin  (eichin@cygnus.com)
21759
21760         * libc/sys/a29khif/{_close.s, _fstat.s, _lseek.s, _sbrk.s,
21761         _write.s, getpid.c, kill.c, read.s}:
21762         * libc/sys/a29khif/stubs.s: eliminated stubs that already go
21763         through the syscalls directory.
21764
21765 Fri Oct 29 13:59:58 1993  Jeffrey Wheat  (cassidy@cygnus.com)
21766
21767         * configure.in: fixed double quote gotcha.
21768
21769 Wed Oct 27 15:27:09 1993  Rob Savoye  (rob@darkstar.cygnus.com)
21770
21771         * stub/ex931: stub library for sparclite board.
21772         * stub/idp: Renamed from mc68ec. Added contructor table
21773         stuff to linker script.
21774         * stub/mvme135: Renamed from m68kmvme. Added contructor table
21775         stuff to linker script.
21776
21777 Tue Oct 26 17:01:23 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
21778
21779         * configure.in: Configure testsuites only if they exist.
21780
21781 Tue Oct 26 12:37:11 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
21782
21783         * configure.in: Don't set machine_dir for i386 until there is
21784         something in libc/machine/i386 to compile.  For i[34]86-*-netware*
21785         use sys/netware, don't use signal, define NO_EXEC, ABORT_PROVIDED,
21786         CLOCK_PROVIDED and MALLOC_PROVIDED.
21787
21788         * libc/sys/netware: New directory.  Contains simplistic and
21789         probably incorrect stubs for NetWare.  Should be enough to load
21790         the library.
21791         * libc/sys/netware/crt0.c, libc/sys/netware/environ.c,
21792         libc/sys/netware/getpid.c, libc/sys/netware/link.c: New NetWare
21793         stub files.
21794
21795         * libc/reent/execr.c: Don't use if NO_EXEC is defined.
21796         * libc/reent/sbrkr.c: Don't use if MALLOC_PROVIDED is defined.
21797         * libc/stdlib/abort.c: Don't use if ABORT_PROVIDED is defined.
21798         * libc/time/clock.c: Don't use if CLOCK_PROVIDED is defined.
21799
21800 Mon Oct 25 16:48:08 1993  Roland H. Pesch  (pesch@cygnus.com)
21801
21802         * testsuite/Makefile.in: add "docs" dummy target for consistency
21803         with rest of newlib; turn "info" and "install-info" into dummy
21804         targets, since they wouldn't have worked.  (Depended on
21805         nonexistent "doc" subdir.)
21806
21807 Fri Oct 22 20:37:32 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
21808
21809         * configure.in: handle mips* instead of mips
21810
21811 Thu Oct 21 08:57:24 1993  Ian Lance Taylor  (ian@cygnus.com)
21812
21813         * libc/include/sys/dirent.h: New file.  If it is not overridden by
21814         a version of libc/sys/*/sys/dirent.h, it includes the next
21815         <dirent.h> file in case there is one lurking somewhere.
21816
21817 Fri Oct 15 14:17:40 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
21818
21819         * libc/stdlib/strtoul.c (_strtoul_r): Several changes for ANSI
21820         compliance, namely: Accept a minus sign.  Consider a single 0 with
21821         a radix of 0 as being a conversion.  Determine overflow correctly.
21822         If an overflow occurs, set *ptr to the end of the number, not the
21823         middle.
21824         * lib/stdlib/strtol.c (_strtol_r): Determine overflow correctly.
21825
21826 Thu Oct 14 21:49:52 1993  Doug Evans  (dje@canuck.cygnus.com)
21827
21828         * libc/machine/h8300/divsi3.S (divmodsi4): Fix h8300h case.
21829
21830 Fri Oct  1 17:17:34 1993  Doug Evans  (dje@canuck.cygnus.com)
21831
21832         * Makefile.in (INSTALL): Use $srcrootpre.
21833         (crt0.o): Replace $< with $(CRT0_DIR)/$(CRT0), Sun make
21834         can't handle it.
21835         * libc/Makefile.in (crt0.o): Spell out $<, Sun make can't handle
21836         it.
21837         * libc/sys/Makefile.in (crt0.o, lib.a): Ditto.
21838         * stub/Makefile.in (crt0.o, TARGETLIB): Ditto.
21839         * libc/sys/sparc64/Makefile.in (isatty.o): Sun VPATH lossage.
21840         * libm/math/Makefile.in (matherr.o): Ditto.
21841
21842 Thu Sep 30 11:09:17 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
21843
21844         * configure.in: Build multidirs for z8k.
21845         * libc/include/stdlib.h (_strtoul_r): add prototype.
21846         * libc/include/machine/limits.h: Get INT_MIN right for all the z8k family.
21847         * libc/include/machine/setjmp.h: Add for z8k.
21848         * libc/machine/z8k/{mulsi.o, udivsi3.o, umodsi3.o, modsi3.o} obsolete.
21849         * libc/sys/z8ksim/glue.c: tidy up.
21850
21851 Mon Sep 20 14:04:46 1993  Doug Evans  (dje@canuck.cygnus.com)
21852
21853         * libc/unix/{execl.c execle.c execlp.c execv.c execvp.c}:
21854         New files.  Requires execve system call.
21855         * libc/unix/Makefile.in: Use them.
21856         * libc/sys/sparc64/{execl.c execle.c execlp.c execv.c execvp.c}:
21857         Deleted, moved to libc/unix.
21858         * libc/sys/sparc64/Makefile.in: Remove them.
21859
21860 Mon Sep 20 10:38:32 1993  Doug Evans  (dje@canuck.cygnus.com)
21861
21862         * libc/sys/sparc64/{template.S template_r.S}: New files.
21863         * libc/sys/sparc64/Makefile.in: Build source for trivial syscalls
21864         from templates.
21865         * libc/sys/sparc64/{chdir.S chmod.S close.S dup.S fcntl.S
21866         fork.S fstat.S lseek.S link.S mkdir.S open.S pipe.S read.S rmdir.S
21867         umask.S unlink.S wait4.S write.S}: Removed, now built from
21868         templates.
21869
21870 Sun Sep 19 14:52:57 1993  Doug Evans  (dje@canuck.cygnus.com)
21871
21872         * libc/time/time.c: #include <_ansi.h>.
21873
21874 Sun Sep 19 13:43:25 1993  Doug Evans  (dje@canuck.cygnus.com)
21875
21876         * configure.in (sparc64-*-*): Remove -D__SIZE_TYPE__.
21877
21878 Mon Sep 13 13:52:16 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
21879
21880         * configure.in: match m8* rather than m88k so that m88110 is
21881           recognized as well.
21882
21883 Tue Sep  7 12:19:32 1993  Doug Evans  (dje@canuck.cygnus.com)
21884
21885         * libc/sys/h8300hms/{Makefile.in, _exit.c, misc.c}:
21886         Renamed exit.c to _exit.c to avoid collision with stdlib/exit.c.
21887         misc.c: New file.
21888
21889         * configure.in: Add multilib support to h8300.
21890
21891 Mon Sep  6 14:07:06 1993  Doug Evans  (dje@canuck.cygnus.com)
21892
21893         * libc/stdlib/abort.c (abort): Remove _VOLATILE from return type.
21894         * libc/include/_ansi.h (_ATTRIBUTE): New macro for __attribute__.
21895         * libc/include/stdlib.h (exit, abort): Add noreturn attribute.
21896
21897 Mon Sep  6 14:24:18 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
21898
21899         * configure.in: Corrected multidirs for sparc target.
21900
21901 Mon Aug 30 15:56:44 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
21902
21903         Support for building newlib multiple times with different
21904         compilation flags.
21905         * configure.in: Only configure doc at top level.  Set multidirs
21906         when appropriate for target, unless not at top level.  If
21907         multidirs is set, independently configure each subdirectory.
21908         Adjust TOP, MULTIDIRS and MULTISUBDIR appropriately in Makefile.
21909         * Makefile.in (MULTIDIRS, MULTISUBDIR): New variables,
21910         automagically set by configure.in.
21911         (all): If MULTIDIRS is set, build multiple copies of libraries.
21912         (install): If MULTIDIRS is set, install multiple copies of
21913         libraries.  Install in $(tooldir)/lib/$(MULTISUBDIR).  If
21914         MULTISUBDIR is set, don't bother to install header files.
21915         * host/any (INCLUDES, CHEW): Use $(SRCTOP) rather than $(TOP) from
21916         ${srcrootpre}.
21917         * stub/configure.in: Set MULTISUBDIR appropriately.
21918         * stub/Makefile.in (install): Install in
21919         $(tooldir)/lib/$(MULTISUBDIR).
21920         * All Makefile.in files: Define SRCTOP as well as TOP.
21921
21922 Mon Aug 30 10:34:24 1993  Doug Evans  (dje@canuck.cygnus.com)
21923
21924         * libc/machine/h8300/{mulhi3.S, divhi3.S}: Comment out if h8300h.
21925         * libc/machine/h8300/{mulsi3.S, divsi3.S}: Add h8300h support.
21926
21927 Thu Aug 26 19:38:12 1993  Doug Evans  (dje@canuck.cygnus.com)
21928
21929         * libc/sys/h8300hms/exit.c (_exit): New function.
21930
21931 Wed Aug 25 16:31:48 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
21932
21933         * configure.in: recognize m88110.
21934
21935 Fri Aug 20 16:46:23 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
21936
21937         * libc/sys/m88kbug/crt0.c: pretty up, remove extraneous comments,
21938           prototype main and call with args.
21939
21940 Fri Jul 30 16:52:47 1993  K. Richard Pixley  (rich@cygnus.com)
21941
21942         First real try at system traps for m88k-bug.
21943         * libc/sys/m88kbug/syscalls.c: many changes.  Convert from stubs
21944           to real trap calls.
21945         * libc/sys/m88kbug/sys/systraps.h: new file.
21946
21947 Tue Jul 27 16:31:16 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
21948
21949         Patches to fix info building when target does not use sys
21950         directory.
21951         * libc/Makefile.in (targetdep.tex): add sys.tex separately.
21952         * libc/sys.tex, libc/sys/sys.tex: moved from libc/sys/sys.tex to
21953           libc/sys.tex.
21954         * libc/sys/Makefile.in (doc): do nothing.
21955
21956 Mon Jul 26 17:08:11 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
21957
21958         * libc/Makefile.in (CRT0): new macro.
21959           (all): depend on $(CRT0) rather than crt0.o.
21960
21961         * configure.in: fix libc_sys_dir -> libc_sys_lib thinko.
21962           do not default crt0, instead, set crt0 and crt0_dir based on
21963           sys_dir and stub_dir.
21964
21965         * Makefile.in (CRT0_DIR): new macro.
21966           (all): depend on $(CRT0) rather than crt0.o which may not exist.
21967           (crt0.o): depend on $(CRT0_DIR)/$(CRT0) rather than simply
21968           $(CRT0).
21969           ($(CRT0)): recur by cd'ing into $(CRT0_DIR).
21970
21971 Sun Jul 25 17:51:51 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
21972
21973         * testsuite/lib/libm.exp:
21974                 added code to support compiling and linking of tests for
21975                 libm.sac (paranoia to be added next) and processing the
21976                 pass or failure of the tests.
21977
21978         * testsuite/config/unix-libm.exp:
21979                 platform specific proc's for dealing with compiler, linker
21980                 and the way we execute and process the test results.
21981
21982         * testsuite/libm.sac/execute.exp:
21983                 generic framework for the sac tests. the config and lib
21984                 expect code for specific platforms tie it all together.
21985
21986         * testsuite/libm.sac/test_is.c:
21987                 changed the output of the test to be consistant with the
21988                 other tests. parsing of pass nad fail messages is now fixed.
21989
21990 Fri Jul 23 19:20:07 1993  Per Bothner  (bothner@kalessin)
21991
21992         * libc/include/{assert.h, ctype.h, dirent.h, errno.h, fastmath.h,
21993         locale.h, math.h, pwd.h, reent.h, setjmp.h, signal.h, stdio.h,
21994         stdlib.h, string.h, termios.h, time.h, utime.h, utmp.h}: For C++:
21995         #ifdef __cplusplus, surround by extern ""C { ... }.
21996         * libc/include/assert.h:  Do *not* protect assert.h against
21997         multiple inclusion!  Also, #undef it before #define, to allow
21998         redefinition.
21999         * libc/include/stdio.h (getlogin, cuserid):  Removed.  These
22000         should be only in unistd.h.
22001
22002         * libc/include/sys/{fcntl.h, reent.h, stat.h, time.h, times.h,
22003         unistd.h}: For C++: #ifdef __cplusplus, surround by extern ""C {
22004         ... }.
22005
22006 Fri Jul 23 10:15:33 1993  Doug Evans  (dje@canuck.cygnus.com)
22007
22008         * libc/machine/sparc/Makefile.in: Must create a library, even
22009         if empty.
22010
22011 Wed Jul 21 16:00:37 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
22012
22013         * configure.in: set machine_dir for m88k.  edit crt0 definition
22014           into makefiles.
22015
22016         * Makefile.in, libc/Makefile.in (crt0): pull up from lower directories.
22017
22018         * libc/Makefile.in (all): also build crt0.o.
22019
22020         * libc/machine/i386/Makefile.in, libc/machine/sparc/Makefile.in,
22021           libc/machine/z8k/Makefile.in, libm/Makefile.in (clean): no need
22022           to remove CRT0.
22023
22024         * libc/machine/m88k/Makefile.in (TOP, TARGETLIB): removed.
22025           (all): reworked to build in place.
22026           (clean): remove lib.a
22027           (Makefile): remove redundant ./, call $(SHELL) rather than sh.
22028
22029         * libc/sys/m88kbug/crt0.c (start): renamed to _start.
22030           (_start): key off edata rather than _start_bss.
22031
22032 Wed Jul 21 14:29:47 1993  david d `zoo' zuhn  (zoo@cygnus.com)
22033
22034         * libc/include/sys/unistd.h, libc/include/reent.h,
22035         libc/reent/sbrkr.c: change sbrk to return void* instead of char*.
22036
22037 Tue Jul 20 13:19:18 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
22038
22039         * libm/Makefile.in, libc/Makefile.in ($(SUBDIRS)): dollar escape a dollar sign.
22040
22041         * Makefile.in (libc.a): break into two rules, one for libc.a and
22042           one for libc/libc.a.  Force subdirs current before rebuilding
22043           library.
22044           (libm.a): break into two rules, one for libm.a and one for
22045           libm/libm.a.  Force subdirs current before rebuilding library.
22046
22047         * libc/Makefile.in (SUBLIBS): fix typo.
22048
22049         * libc/sys/Makefile.in (all): force descent into subdirs, then
22050           rebuild library iff out of of date.
22051
22052 Fri Jul 16 17:47:57 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
22053
22054         Rework so that library is built and then finished rather than
22055         being built on each invocation of make.
22056
22057         * host/any (machine_dir, sys_dir, signal_dir): these are not
22058           shared and have been moved to their associated Makefile.in's.
22059           (AR_FLAGS): switch to qc which is faster.
22060         * configure.in: no longer assign machine_dir for m88k.  set
22061           stub_dir, stub_lib, & crt0 for m68k*-unknown-{aout,coff}.  If
22062           stub_dir set, then add to configdirs.  add comment about silly
22063           configuration.
22064           (configdirs): drop stub.  It will be added only
22065           when needed.
22066           (libm_fp_lib, libc_unix_lib, libc_signal_lib, libc_machine_lib,
22067           libc_sys_dir, fake_sys_dir, libc_fake_sys_lib, stub_dir,
22068           stub_lib, crt0): new variables for tailoring lower level
22069           makefiles.  Assign accordingly and edit into makefiles.
22070         * libm/Makefile.in: updated copyright.
22071           (TARGETLIB): removed.
22072           (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir.
22073           (SUBDIRS): removed TARGETDEP_DIRS.
22074           (LIBM_FP_LIB, SUBLIBS): new macros.
22075           (all): reworked.
22076           (force): new target to force rebuilds.
22077           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
22078         * libc/sys/a29khif/Makefile.in, libc/sys/decstation/Makefile.in,
22079           libc/sys/go32/Makefile.in, libc/sys/h8300hms/Makefile.in,
22080           libc/sys/h8500hms/Makefile.in, libc/sys/m88kbug/Makefile.in,
22081           libc/sys/sh/Makefile.in, libc/sys/sparc64/Makefile.in,
22082           libc/sys/sun4/Makefile.in, libc/sys/sysvi386/Makefile.in,
22083           libc/sys/sysvnecv70/Makefile.in, libc/sys/z8ksim/Makefile.in,
22084           stub/m68kmvme/Makefile.in: updated copyright.
22085           (TARGETLIB, TARGETCRT0, CRT0): macros removed.
22086           (all): reworked.  made this the default rule.
22087           (clean): also remove lib.a.
22088           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
22089         * stub/Makefile.in: updated copyright.
22090           (TARGETLIB, TARGETCRT0, CRT0, TOP): removed.
22091           (stub_lib): new macro.
22092           (FLAGS_TO_PASS): removed TARGETLIB, stub_dir, TARGETCRT0.  Added
22093           RANLIB.
22094           (all): reworked.
22095           (clean, install): assume stub_dir exists.
22096           (Makefile): depend on configure.in.  call $(SHELL) rather than
22097           sh.  drop redundant ./
22098         * stub/configure.in (stublib): new macro, assign it, edit it into
22099           makefiles.
22100         * Makefile, libc/Makefile.in, doc/Makefile.in, libc/sys/Makefile.in:
22101           updated copyright.
22102           (all): reworked.
22103           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
22104         * libc/Makefile.in (TARGETCRT0): removed.
22105           (FLAGS_TO_PASS): dropped TARGETLIB, machine_dir, sys_dir,
22106           TARGETCRT0.
22107           (SUBDIRS): drop TARGETDEP_DIRS.
22108           (LIBC_SIGNAL_LIB, LIBC_SYS_LIB, LIBC_MACHINE_LIB, LIBC_UNIX_LIB,
22109           LIBC_FAKE_SYS_LIB, SUBLIBS): new macros for configuration.
22110           (force): new target to force rebuilds.
22111         * libc/sys/Makefile.in (TARGETCRT0, sys_dir): removed.
22112           (FLAGS_TO_PASS): TARGETLIB, machine_dir, sys_dir, TARGETCRT0
22113           removed.
22114           (clean): assume sys_dir always exists.
22115         * libm/test/Makefile.in (Makefile): call $(SHELL) rather than sh.
22116           drop redundant ./
22117         * libc/ctype/Makefile.in, libc/errno/Makefile.in,
22118           libc/locale/Makefile.in, libc/machine/Makefile.in,
22119           libc/machine/a29k/Makefile.in, libc/machine/h8300/Makefile.in,
22120           libc/machine/h8500/Makefile.in, libc/machine/i386/Makefile.in,
22121           libc/machine/i960/Makefile.in, libc/machine/m68k/Makefile.in,
22122           libc/machine/mips/Makefile.in, libc/machine/necv70/Makefile.in,
22123           libc/machine/sh/Makefile.in, libc/machine/sparc/Makefile.in,
22124           libc/machine/z8k/Makefile.in, libc/reent/Makefile.in,
22125           libc/signal/Makefile.in, libc/stdio/Makefile.in,
22126           libc/stdlib/Makefile.in, libc/string/Makefile.in,
22127           libc/sys/Makefile.in, libc/syscalls/Makefile.in,
22128           libc/time/Makefile.in, libc/unix/Makefile.in,
22129           libm/ieeefp/Makefile.in, libm/math/Makefile.in: updated copyright.
22130           (TARGETLIB): removed.
22131           (all): reworked.
22132           (clean): also remove lib.a.
22133           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
22134         * Makefile.in: (machine_dir, sys_dir, stub_dir, stub_lib, CRT0):
22135           new macros.
22136           (SUBDIRS): moved to follow frag inclusion, change stub to
22137           stub_dir.
22138           (FLAGS_TO_PASS): removed machine_dir, sys_dir, signal_dir which
22139           are now set in the libc Makefile.
22140         * libc/machine/Makefile.in (TARGETCRT0, machine_dir): removed.
22141           (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir,
22142           TARGETCRT0.
22143           (force): new target to force rebuilds.
22144         * stub/configure.in: determine and set stub_lib for for Makefile.
22145
22146 Thu Jul 15 12:01:27 1993  Doug Evans  (dje@canuck.cygnus.com)
22147
22148         * libc/sys/h8300hms/Makefile.in: Make `all' the default target.
22149         crt0.s renamed to crt0.S.
22150         * libc/sys/h8300hms/crt0.S: Add h8/300h support.
22151
22152         * libc/machine/h8300/Makefile.in: Make `all' the default target.
22153         * libc/machine/h8300/{cmpsi.S,ucmpsi.S}: #ifdef out entire file if
22154         h8300h.
22155         * libc/machine/h8300/defines.h: Add macros to handle pointers for
22156         h8300 (16 bits) and h8300h (32 bits).
22157         * libc/machine/h8300/{divsi3.S,mulsi3.S,memcpy.S,memset.S,
22158         reg_memcpy.S,reg_memset.S,strcmp.S}: Add h8300h support.
22159
22160 Thu Jul 15 10:13:29 1993  Ian Lance Taylor  (ian@cygnus.com)
22161
22162         * libc/machine/m88k/setjmp.S, Makefile.in: New files; a simple
22163         implementation of setjmp and longjmp for the m88k.
22164         * libc/include/machine/setjmp.h: Added __m88000__ case.
22165
22166 Wed Jul 14 10:10:30 1993  Doug Evans  (dje@canuck.cygnus.com)
22167
22168         * configure.in: Recognize h8300h as variant of h8300.
22169
22170 Tue Jul 13 12:24:11 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
22171
22172         * libc/include/sys/unistd.h (read, write): get prototypes right.
22173         (sbrk): New prototype.
22174         * libc/reent/sbrkr.c (sbrkr): Use correct sbrk prototype.
22175         * libc/stdio/local.h: Include unistd.h.
22176         * libc/machine/h8300/syscalls.c: Names have changed.
22177
22178 Mon Jul 12 18:08:42 1993  K. Richard Pixley  (rich@cygnus.com)
22179
22180         * configure.in: add sys_dir assignment for m88k-bug.
22181
22182 Thu Jul  8 09:16:21 1993  Doug Evans  (dje@canuck.cygnus.com)
22183
22184         * libc/sys/sparc64/sys/syscallasm.h: New macros to handle either
22185         a.out or elf.
22186         * libc/sys/sparc64: all *.S files: Use new macros.
22187         * libc/sys/sparc64/isatty.c: New file.
22188         * libc/sys/sparc64/Makefile.in: Stop using /lib/libc.a for
22189         functions beyond what newlib provides.
22190
22191 Thu Jul  8 09:11:28 1993  Doug Evans  (dje@canuck.cygnus.com)
22192
22193         * libc/include/sys/stat.h: Move st_atime so not doubly defined for
22194         svr4.
22195
22196 Thu Jul  8 09:09:16 1993  Doug Evans  (dje@canuck.cygnus.com)
22197
22198         * libc/include/machine/ieeefp.h: Add support for h8/300h.
22199
22200 Fri Jul  2 10:11:20 1993  K. Richard Pixley  (rich@cygnus.com)
22201
22202         * configure.in: add m88k.
22203         * libc/include/machine/ieeefp.h: add case for m88k.  Also add
22204         sanity check so no one else need ever chase what I did to find
22205         this.
22206
22207         * libm/math/Makefile.in (FAKEC): added atanf.c log1pf.c scalbnf.c.
22208
22209 Fri Jul  2 09:15:21 1993  Ian Lance Taylor  (ian@cygnus.com)
22210
22211         * doc/makedoc.c: Include <ctype.h>.
22212
22213 Wed Jun 30 09:35:06 1993  Doug Evans  (dje@canuck.cygnus.com)
22214
22215         * libc/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
22216         * libc/sys/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
22217         * libc/machine/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
22218
22219         * libm/test/Makefile.in (all): Link with ../../lib[cm].a.
22220
22221 Sun Jun 27 17:05:20 1993  Doug Evans  (dje@sphagnum.cygnus.com)
22222
22223         * libc/include/errno.h (ENOSYS): Added.
22224
22225         * libc/unix/getpwd.c (getcwd): Fix typo (_up -> up).
22226
22227 Mon Jun 21 09:03:32 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
22228
22229         * libc/stdio/fflush.c (fflush): Check for reent struct
22230         initialization.
22231         * libc/stdio/fdopen.c (fdopen): Avoid namespace conflict.
22232
22233 Fri Jun 18 16:06:05 1993  Mark Eichin  (eichin@rtl.cygnus.com)
22234
22235         * libc/stdlib/dtoastub.c: new file -- move user callable "dtoa"
22236         out of dtoa.c so it doesn't pollute the namespace.
22237         * libc/include/_syslist.h: new file -- mappings from _function to
22238         function, for systems where we can't win (by default, all of them,
22239         until we start updating system calls.)
22240         * libc/syscalls: new directory -- stubs for exporting _function
22241         names as unmodified function names.
22242         * libc/configure.in: add MISSING_SYSCALL_NAMES to enable
22243         _syslist.h on all platforms by default, but put hooks in for
22244         fake_sys_dir so we can include it when we've renamed the system
22245         calls.
22246         * libc/reent/execr.c libc/reent/filer.c libc/reent/fstatr.c
22247         libc/reent/linkr.c libc/reent/sbrkr.c libc/reent/statr.c
22248         libc/signal/raise.c libc/signal/signal.c libc/stdio/fdopen.c
22249         libc/stdio/mktemp.c libc/stdio/tmpnam.c libc/stdlib/abort.c
22250         libc/stdlib/system.c libc/unix/getcwd.c libc/unix/getlogin.c
22251         libc/unix/getpass.c libc/unix/getut.c libc/unix/ttyname.c: change
22252         non ANSI functions to call _function.
22253
22254 Wed Jun  9 09:48:26 1993  Ian Lance Taylor  (ian@cygnus.com)
22255
22256         * libc/stdlib/strtoul.c (_strtoul_r): Handle leading 0 correctly
22257         when base 16 is specified.  Don't accept non-digits if radix > 10.
22258
22259 Thu Jun  3 10:01:15 1993  Doug Evans  (dje@canuck.cygnus.com)
22260
22261         * libc/include/math.h: Rename xxx_r fns to _xxx_r.
22262
22263 Wed Jun  2 16:54:16 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
22264
22265         * libc/include/sys/stat.h: Surround text after #endif with
22266         comments.
22267
22268 Wed Jun  2 12:47:32 1993  Ian Lance Taylor  (ian@cygnus.com)
22269
22270         * libc/stdlib/mallocr.c: If MALLOC_PROVIDED is defined, just make
22271         _malloc_r, _realloc_r, and free_r call the corresponding
22272         non-reentrant functions.
22273
22274         * libm/math/modf.c (modf): We now take the address of ipart, so
22275         don't make it a register variable.
22276
22277 Tue Jun  1 18:25:54 1993  Doug Evans  (dje@canuck.cygnus.com)
22278
22279         * libm/math/*: Rename all xxx_r fns to _xxx_r.
22280
22281 Wed May 26 22:06:35 1993  Roland H. Pesch  (pesch@cygnus.com)
22282
22283         * libc/libc.texinfo and embedded docn throughout: formatting
22284         improvements, minor rephrasing for clarity, and improved
22285         reentrancy docn.
22286
22287 Sun May 23 17:29:49 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
22288
22289         * libm/ieeefp/infinity.c (maxpowtwof): Fix initialzation bug.
22290
22291         * libc/stdio/cvt.c (_licvt): Print the right value on machines
22292         where sizeof(int) != sizeof(long).
22293
22294 Fri May 21 22:09:32 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
22295
22296         * libc/reent/execr.c, libc/reent/filer.c, libc/reent/linkr.c,
22297         libc/reent/sbrkr.c, libc/reent/statr.c, libc/stdio/tmpnam.c,
22298         libc/stdlib/atol.c, libc/stdlib/rand.c, libc/string/strpbrk.c,
22299         libc/string/strspn.c, libm/ieeefp/isnan.c, libm/math/bessel.c,
22300         libm/math/matherr.c: changes for better docn formatting (info).
22301
22302         * libc/libc.texinfo, libc/ctype/ctype.tex, libc/locale/locale/tex,
22303         libc/reent/reent.tex, libc/signal/signal.tex,
22304         libc/stdio/stdio.tex, libc/stdlib/stdlib.tex,
22305         libc/string/strings.tex, libc/sys/sys.tex, libc/time/time.tex,
22306         libm/libm.texinfo, libm/ieeefp/ieeefp.tex, libm/math/math.tex: use
22307         makeinfo node defaulting to get better Info file node structure.
22308         (Requires recent sac change to doc/makedoc.c and doc/doc.str.)
22309         Also include a few formerly missing sections (subroutines).
22310
22311         * doc/doc.str: delete fossil expansion for "func"
22312
22313         * default.menu, no-signal.menu: delete.
22314
22315         * Makefile.in, libc/Makefile.in, configure.in, host/any: simplify
22316         method used to adjust doc for missing "signals" chapter when
22317         signal_dir is empty.
22318
22319 Thu May 20 21:38:37 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
22320
22321         * configure.in: added testsuite/libm.sac
22322
22323 Wed May 19 14:52:34 1993  Doug Evans  (dje@thepub.cygnus.com)
22324
22325         * libc/sys/sparc64/crt0.S: Set %g4 to 0 (to test Medium/Anywhere
22326         code model).
22327
22328 Tue May 18 13:17:21 1993  Ian Lance Taylor  (ian@cygnus.com)
22329
22330         * libm/Makefile.in: Use $(MAKE) rather than make, and define
22331         MAKEOVERRIDES to be empty.
22332
22333 Mon May 17 08:42:44 1993  Ian Lance Taylor  (ian@cygnus.com)
22334
22335         * configure.in: Don't build mips-*-* with -msoft-float, since that
22336         makes it incompatible with hard floating point.
22337
22338 Mon May 17 00:03:35 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
22339
22340         * Makefile.in: added recursive 'make check'
22341
22342 Thu May 13 16:24:18 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
22343
22344         * configure.in: added ./testsuite ./testsuite/libm.paranoia
22345         * ./testsuite/Makefile.in: created
22346         * ./testsuite/libm.paranoia: paranoia tests added
22347
22348 Thu May 13 10:30:24 1993  Ian Lance Taylor  (ian@cygnus.com)
22349
22350         * configure.in: For mips-*-* set machine_dir to mips.
22351
22352         * libc/machine/mips: New directory.
22353         * libc/machine/mips/Makefile.in: New file.
22354         * libc/machine/mips/setjmp.S: New file; simplistic MIPS version of
22355         setjmp and longjmp.
22356         * libc/include/machine/setjmp.h: Added __mips__ case.
22357
22358         * libc/machine/lmips: Removed unused and useless directory.
22359
22360 Mon May  3 10:22:31 1993  Ian Lance Taylor  (ian@cygnus.com)
22361
22362         * configure.in: Accept i486-*-sco* as well as i386-*-sco*.
22363
22364 Thu Apr 15 15:16:44 1993  Doug Evans  (dje@canuck.cygnus.com)
22365
22366         * libc/sys/sparc64/crt0.S: Add comment (%g1 contains atexit arg at
22367         start up).
22368
22369 Fri Apr  9 13:32:26 1993  Ian Lance Taylor  (ian@cygnus.com)
22370
22371         * libc/include/machine/setjmp-dj.h: Use _SETJMP_DJ_H rather than
22372         SETJMP_H.
22373
22374 Thu Apr  8 10:07:18 1993  Doug Evans  (dje@canuck.cygnus.com)
22375
22376         * libm/test/convert.c: structure member errno -> errno_val.
22377         Must include <errno.h> to use errno, it's a macro now.
22378         * libm/test/math.c: Ditto.
22379         * libm/test/math2.c: Include errno.h.
22380         * libm/test/string.c: Ditto.
22381         * libm/test/test.h: structure member errno -> errno_val.
22382         Remove extern int errno decl.
22383
22384 Thu Apr  8 07:56:33 1993  Ian Lance Taylor  (ian@cygnus.com)
22385
22386         * libc/stdio/Makefile.in: Added dependencies on local header
22387         files.
22388         * libc/stdio/std.h, libc/stdio/vfprintf.h: Removed unused header
22389         files.
22390
22391 Wed Apr  7 16:19:32 1993  Ian Lance Taylor  (ian@cygnus.com)
22392
22393         * libc/include/machine/ieeefp.h: Added __MIPSEB__ case.
22394
22395 Wed Apr  7 10:55:21 1993  Doug Evans  (dje@canuck.cygnus.com)
22396
22397         * libc/stdio/siprintf.c libc/stdio/sscanf.c libc/stdio/vsprintf.c:
22398         Initialize _data.
22399
22400         * libc/stdio/vfprintf.c: No need to declare _icvt, _licvt, _sicvt.
22401         * libc/stdio/local.h: Add prototype for _licvt.
22402
22403         * libc/stdio/ungetc.c (__submore): Use _malloc_r,_realloc_r
22404         instead of malloc,reealloc.
22405
22406         * libc/stdlib/local.h: New file.
22407         * libc/stdlib/efgcvt.c: #include local.h.
22408         (gcvt): Fix call to _gcvt.
22409         * libc/stdlib/ecvtbuf.c: #include local.h.
22410
22411         * libc/stdlib/Makefile.in: new files mallocr.c mstats.c.
22412         * libc/stdlib/mallocr.c mstats.c malloc.h: New files.
22413         * libc/stdlib/malloc.c: main routines moved to mallocr.c.
22414
22415         * libc/stdlib/atexit.c: moved global data to struct _reent.
22416         * libc/stdlib/exit.c: use struct _atexit in struct _reent.
22417
22418         * libc/reent/reent.c (inpure_data): _REENT_INIT macro modified.
22419
22420 Wed Apr  7 09:41:50 1993  Doug Evans  (dje@canuck.cygnus.com)
22421
22422         * libc/include/sys/reent.h: Stuff required by ANSI headers moved
22423         here from ../reent.h.
22424
22425 Tue Apr  6 12:56:01 1993  Ian Lance Taylor  (ian@cygnus.com)
22426
22427         * Makefile.in (MATHOBJS_IN_LIBC): List of object files which
22428         should be provided in both libc.a and libm.a.
22429         (libc.a): Depend on targ-include and libm.a.  Copy
22430         $(MATHOBJS_IN_LIBC) from libm.a to libc.a.
22431         (libm.a): Depend on targ-include.
22432         * configure.in (subdirs): Removed libc/math.
22433
22434 Mon Apr  5 10:18:16 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
22435
22436         * libm/ieeefp/infinity.c (maxpowtwo): Fix initialization bug.
22437
22438 Sat Apr  3 11:06:07 1993  Doug Evans  (dje@canuck.cygnus.com)
22439
22440         * libc/include/{errno.h, math.h, stdio.h, stdlib.h}: Use
22441         sys/reent.h instead of reent.h.
22442         * libc/include/reent.h: Split into two parts: stuff needed by ANSI
22443         headers moved to sys/reent.h.
22444         * libc/include/signal.h: _MAX_SIGNALS moved to sys/signal.h.
22445         * libc/include/sys/signal.h: Define _MAX_SIGNALS if
22446         __need__MAX_SIGNALS defined.
22447         * libc/include/stdio.h: struct __sFILE moved to sys/reent.h.
22448         std{in,out,err} refer to new _std{in,out,err} members.
22449
22450 Fri Apr  2 11:27:12 1993  Doug Evans  (dje@canuck.cygnus.com)
22451
22452         * libc/include/sys/signal.h: #define _SYS_SIGNAL_H for general
22453         case.
22454
22455 Fri Apr  2 09:41:10 1993  Doug Evans  (dje@canuck.cygnus.com)
22456
22457         * libc/sys/sparc64/execve.S (execve): Insert nop in delay slot,
22458         rather than whatever macro seterrno() has.
22459
22460 Thu Apr  1 16:47:08 1993  Doug Evans  (dje@canuck.cygnus.com)
22461
22462         * libc/locale/locale.c: Reentrant routines _r_xxx renamed to
22463         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
22464
22465         * libc/include/machine/fastmath.h: Use _HAVE_STDC instead of
22466         __STDC__.
22467
22468         * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, reent.c,
22469         reent.tex, sbrkr.c, statr.c}: _r_xxx reentrant routines renamed to
22470         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
22471
22472         * libc/signal/signal.c: Reentrant routines _r_xxx renamed to
22473         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
22474
22475         * libc/stdio/{fclose.c, fdopen.c, findfp.c, fiprintf.c, flags.c,
22476         fopen.c, fprintf.c, freopen.c, fscanf.c, fseek.c, ftell.c,
22477         fwalk.c, getchar.c, gets.c, iprintf.c, local.h, makebuf.c,
22478         mktemp.c, perror.c, printf.c, putchar.c, puts.c, refill.c,
22479         remove.c, rename.c, scanf.c, setvbuf.c, siprintf.c, sprintf.c,
22480         sscanf.c, stdio.c, tmpfile.c, tmpnam.c, vfprintf.c, vfprintf.h,
22481         vfscanf.c, vprintf.c, vsprintf.c}: Reentrant routines _r_xxx
22482         renamed to _xxx_r.  struct reent_struct renamed to struct _reent
22483         for ANSI.  structure members given leading "_" for ANSI.  Use
22484         _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
22485
22486         * libc/stdlib/{__adjust.c, calloc.c, dtoa.c, ecvtbuf.c, malloc.c,
22487         mprec.c, mprec.h, rand.c, std.h, strtod.c, strtol.c, strtoul.c,
22488         system.c}: Reentrant routines _r_xxx renamed to _xxx_r.  struct
22489         reent_struct renamed to struct _reent for ANSI.
22490         Structure members given leading "_" for ANSI.
22491         _CONST --> const in prototypes.
22492         Use _HAVE_STDC instead of __STDC__.
22493
22494         * libc/string/strtok.c: Reentrant routines _r_xxx renamed to
22495         _xxx_r.
22496         struct reent_struct renamed to struct _reent for ANSI.
22497         Structure members given leading "_" for ANSI.
22498
22499         * libc/time/asctime.c: Reentrant routines _r_xxx renamed to
22500         _xxx_r.
22501         struct reent_struct renamed to struct _reent for ANSI.
22502
22503         * libm/math/{acos.h, acosh.h, asin.c, asinh.h, atanh.h, bessel.h,
22504         cbrt.h, cosh.h, erf.c, erf.h, error.c, exp.c, fmod.c, frexp.h,
22505         gamma.h, hypot.h, ldexp.c, log.h, log10.c, log1p.c log2.c,
22506         mathimpl.h, pow.c, remainder.c, sincos.c, sinh.h, sqrt.h, tan.c,
22507         tanh.h}: struct reent_struct renamed to struct _reent for ANSI.
22508
22509         * libc/include/{_ansi.h, ctype.h, math.h, reent.h, locale.h,
22510         signal.h, stdio.h, stdlib.h, string.h, time.h}:
22511         Use _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
22512         #ifndef _STRICT_ANSI non-ANSI routines.
22513         Reentrant routines renamed from _r_xxx to _xxx_r.
22514         No need to use _STRICT_ANSI on _xxx_r reentrant routines.
22515         Use _STRICT_ANSI instead of __STRICT_ANSI, _ANSI_SOURCE, etc.
22516         Clean up namespace (structure members have leading "_").
22517         struct reent_struct renamed to struct _reent for ANSI compliance.
22518         _CONST --> const in function prototypes.
22519
22520         * libc/include/string.h: Add NULL and size_t.
22521
22522         * libc/sys/sparc64/Makefile.in: New syscall routines for link,
22523         unlink, wait, wait4. Reentrant syscall routines close, fork,
22524         fstat, link, lseek, open, read, sbrk, stat, unlink, wait, wait4,
22525         write.
22526         * libc/sys/sparc64/cerror.S (cerror_r): New routine.
22527         * libc/sys/sparc64/{close.S, fork.S, fstat.S, link.S, lseek.S,
22528         open.S, read.S, sbrk.S, stat.S, unlink.S, wait.S, wait4.S,
22529         write.S}: Define reentrant versions.
22530         * libc/sys/sparc64/sys/syscallasm.h (defsyscall_r): New macro for
22531         reentrant syscalls.
22532
22533         * libc/sys/sparc64/crt0.S (start): Fix initialization of environ.
22534
22535         * libc/include/stdlib.h (RAND_MAX): Fix value.
22536
22537 Thu Apr  1 12:28:30 1993  Ian Lance Taylor  (ian@cygnus.com)
22538
22539         * libc/sys/a29khif/_main.c: Removed unnecessary file.
22540         * libc/sys/a29khif/Makefile.in (OFILES): Removed _main.c, moved
22541         VPATH support targets after all: target.
22542
22543         * stub/mvme135/mvme.S: Renamed exceptionhandler to
22544         exceptionHandler, which is what mvme135-stub.c expects.
22545
22546 Wed Mar 31 17:42:03 1993  Doug Evans  (dje@cygnus.com)
22547
22548         * libc/stdio/tmpnam.c (worker): Fix test for _r_open() failure.
22549
22550         * libc/unix/getpass.c (getpass): Use stdin,stderr instead of
22551         def_stdin/def_stderr (latter removed from stdio.h to make it ANSI
22552         compliant).
22553
22554 Tue Mar 30 09:58:21 1993  Doug Evans  (dje@canuck.cygnus.com)
22555
22556         * libc/reent/execr.c (_r_wait): Re-order args to make reent_struct
22557         first.
22558         libc/reent/filer.c (_r_open, _r_close, _r_lseek, _r_read,
22559         _r_write): Ditto.
22560         libc/reent/fstatr.c (_r_fstat): Ditto.
22561         libc/reent/linkr.c (_r_link, _r_unlink): Ditto.
22562         libc/reent/sbrkr.c (_r_sbrk): Ditto.
22563         libc/reent/statr.c (_r_stat): Ditto.
22564
22565         * libc/stdio/fopen.c (_r_fopen): Re-order args to _r_open.
22566         * libc/stdio/freopen.c (freopen): Ditto for _r_open, _r_free.
22567         * libc/stdio/fseek.c (fseek): Ditto for _r_fseek.
22568         * libc/stdio/makebuf.c (__smakebuf): Ditto for _r_fstat.
22569         * libc/stdio/mktemp.c (_gettemp): Ditto for _r_stat, _r_open.
22570         * libc/stdio/remove.c (_r_remove): Ditto for _r_unlink.
22571         * libc/stdio/rename.c (_r_rename): Ditto for _r_link, _r_unlink.
22572         * libc/stdio/stdio.c (__sread): Ditto for _r_read.
22573         (__swrite): Ditto for _r_lseek, _r_write.
22574         (__sseek): Ditto for _r_lseek.
22575         (__close): Ditto for _r_close.
22576         * libc/stdio/tmpnam.c (worker): Ditto for _r_open, _r_close.
22577
22578         * libc/stdlib/malloc.c (_r_morecore): Re-order args to _r_sbrk.
22579         * libc/stdlib/system.c (_r_system): Ditto for _r_wait.
22580
22581         * libc/include/reent.h: Re-order arguments to _r_xxx syscall fns
22582         to make reent_struct the first argument (and thus consistent with
22583         the rest of newlib).
22584
22585         * stub/mvme135/mvme135-stub.c (initializeRemcomErrorFrame): Remove
22586         reference to __STDC__.
22587
22588 Mon Mar 29 12:34:32 1993  Doug Evans  (dje@canuck.cygnus.com)
22589
22590         * libc/stdlib/exit.c (exit): Use _REENT->__cleanup instead of
22591         global __cleanup.
22592
22593 Wed Mar 24 11:54:35 1993  Doug Evans  (dje@canuck.cygnus.com)
22594
22595         * libc/stdio/freopen.c (freopen): Ensure stdio is initialized
22596         first.
22597         libc/stdio/fclose.c (fclose): Ditto.
22598
22599 Tue Mar 23 01:26:52 1993  Doug Evans  (dje@rtl.cygnus.com)
22600
22601         * Run through indent and rename reentrant routines for ANSI.
22602         libc/stdio/{clearerr.c cvt.c fclose.c fdopen.c feof.c ferror.c
22603         fflush.c fgetc.c fgetpos.c fgets.c findfp.c fiprintf.c flags.c
22604         fopen.c fprintf.c fputc.c fputs.c fread.c freopen.c fscanf.c
22605         fseek.c fsetpos.c ftell.c fvwrite.c fwalk.c fwrite.c getc.c
22606         getchar.c gets.c iprintf.c makebuf.c mktemp.c perror.c printf.c
22607         putc.c putchar.c puts.c refill.c remove.c rename.c rewind.c rget.c
22608         scanf.c setbuf.c setvbuf.c siprintf.c sprintf.c sscanf.c stdio.c
22609         tmpfile.c tmpnam.c ungetc.c vfprintf.c vfscanf.c vprintf.c
22610         vsprintf.c wbuf.c wsetup.c local.h}
22611
22612         * libc/locale/locale.c: Reformat and rename for ANSI, GNU style.
22613
22614         * Run through indent and rename xxx_r fns to _r_xxx for ANSI.
22615         libc/stdlib/{__adjust.c __exp10.c __ten_mu.c abort.c abs.c
22616         assert.c atexit.c atof.c atoi.c atol.c bsearch.c calloc.c div.c
22617         dtoa.c ecvtbuf.c efgcvt.c exit.c getenv.c labs.c ldiv.c malloc.c
22618         mbtowc.c mprec.c putenv.c qsort.c rand.c setenv.c strdup.c
22619         strtod.c strtol.c strtoul.c system.c wctomb.c mprec.h}
22620
22621         * Run through indent.
22622         libc/string/{bcmp.c bcopy.c bzero.c index.c memchr.c memcmp.c
22623         memcpy.c memmove.c memset.c rindex.c strcat.c strchr.c strcmp.c
22624         strcoll.c strcpy.c strcspn.c strerror.c strlen.c strncat.c
22625         strncmp.c strncpy.c strpbrk.c strrchr.c strspn.c strstr.c strtok.c
22626         strxfrm.c}
22627
22628         * libc/time/{asctime.c clock.c ctime.c difftime.c gmtime.c
22629         localtime.c mktime.c strftime.c time.c}:
22630         Run through indent and rename xxx_r (reentrant) fns to _r_xxx for ANSI.
22631
22632         * Reformatting + renaming (for ANSI, GNU style, consistency).
22633         libc/include/{_ansi.h, assert.h, ctype.h, errno.h, fastmath.h,
22634         ieeefp.h, locale.h, math.h, paths.h, pwd.h, reent.h, setjmp.h,
22635         signal.h, stdio.h, stdlib.h, string.h, time.h, unistd.h}
22636
22637 Fri Mar 19 11:28:01 1993  Doug Evans  (dje@cygnus.com)
22638
22639         * libc/include/stdio.h (stdin_r): Fix.
22640
22641 Fri Mar 19 09:43:48 1993  Ian Lance Taylor  (ian@cygnus.com)
22642
22643         * Makefile.in: Unexport some variables to keep GNU make from
22644         putting them in the environment and using up needed ARG_MAX space
22645         (a hack is used to let this work with older makes as well).
22646
22647 Tue Mar 16 15:11:08 1993  Ian Lance Taylor  (ian@cygnus.com)
22648
22649         * Makefile.in: Use $(MAKE) rather than make.
22650         (MAKEOVERRIDES): Define to be empty.
22651         (FLAGS_TO_PASS): Don't pass down LD (it's not used).
22652         (libc.a, libm.a): Depend on targ-include.
22653         * host/any (LD): Don't define.
22654         (INCLUDES): Use targ-include.
22655         * stub/Makefile.in (MAKEOVERRIDES): Define to be empty.
22656         (FLAGS_TO_PASS): Don't pass down LD (it's not used).
22657         * libc/Makefile.in: Use $(MAKE) rather than make.
22658         (MAKEOVERRIDES): Define to be empty.
22659         (FLAGS_TO_PASS): Don't pass LD (it's not used).
22660         (all): Rewrote to be slightly smaller.
22661         * libc/machine/Makefile.in, libc/sys/Makefile.in (MAKEOVERRIDES):
22662         Define to be empty.
22663         (FLAGS_TO_PASS): Don't pass LD (it's not used).
22664         * libm/Makefile.in (FLAGS_TO_PASS): Don't pass LD (it's not used).
22665
22666 Mon Mar 15 08:45:41 1993  Ian Lance Taylor  (ian@cygnus.com)
22667
22668         * libc/sys/go32/gerrno.s: Renamed from errno.s to avoid conflict
22669         with errno/errno.c.
22670
22671 Fri Mar 12 09:46:54 1993  Ian Lance Taylor  (ian@cygnus.com)
22672
22673         * Changes for reentrancy.
22674         libc/stdio/fdopen.c, libc/stdio/freopen.c, libc/stdio/perror.c:
22675         Use ptr->_errno, not errno.
22676         libc/stdio/mktemp.c (mkstemp_r, mktemp_r): New functions.
22677         libc/stdio/remove.c (remove_r): New function.
22678         libc/stdio/rename.c (rename_r): New function.
22679         libc/stdio/fopen.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
22680         libc/stdio/makebuf.c, libc/stdio/mktemp.c, libc/stdio/remove.c,
22681         libc/stdio/rename.c, libc/stdio/stdio.c, libc/stdio/tmpnam.c: Use
22682         reentrant versions of system calls.
22683         libc/stdio/gets.c: Call getchar_f, not nonexistent getchar_r.
22684         libc/stdio/scanf.c: Use stdin_r, not nonexistent stdin_n.
22685         libc/stdio/tmpfile.c: Use tmpnam_f, not nonexistent tmpnam_r.
22686         libc/stdio/findfp.c: Include <string.h>.
22687         libc/stdio/fread.c, libc/stdio/rget.c, libc/stdio/scanf.c: Include
22688         "local.h".
22689         libc/stdio/wbuf.c: Include "fvwrite.h"
22690
22691         * libc/stdlib/{dtoa.c, ecvtbuf.c, mprec.c, strtod.c}: Include
22692         <string.h>.
22693         libc/stdlib/malloc.c: Call sbrk_r rather than sbrk.
22694         (NULL): Don't define if already defined.
22695         libc/stdlib/system.c: Call reentrant versions of system calls.
22696         (system_r): New function.
22697
22698         * Changes for reentrancy.
22699         libc/include/_ansi.h (_PARAMS): New macro.
22700         libc/include/errno.h: Define errno as a macro that calls __errno.
22701         (__errno_r): New macro for reentrant code.
22702         libc/include/math.h: Include reent.h.  Declare many reentrant
22703         functions.
22704         (signgam): Now a macro, not a variable.
22705         (struct exception): Added err field.
22706         libc/include/reent.h: Don't declare __sglue.  Added function
22707         declarations.
22708         (struct reent_struct): Moved errno to beginning.  Added _signgam.
22709         libc/include/stdio.h, libc/include/stdlib.h: Added function
22710         declarations.
22711
22712         * More reentrancy hacking.
22713         libc/errno/errno.c (__errno): New function.
22714         libc/reent/execr.c, libc/reent/filer.c, libc/reent/fstatr.c,
22715         libc/reent/linkr.c, libc/reent/sbrkr.c, libc/reent/statr.c: New
22716         files.
22717
22718         * Added many new reentrant functions to libm/math/*.
22719         libm/math/error.c (__matherror): Added reent_struct pointer
22720         argument. Changed all callers.
22721         libm/math/gamma.c (signgam): Removed. Set ptr->_signgam, instead.
22722         libm/math/exp.h, libm/math/pow.h, libm/math/sincos.h,
22723         libm/math/tan.h: Removed obsolete unused header files.
22724
22725         * libc/sys/a29khif/stubs.s: Use register lr0, not v0.
22726
22727         * libc/sys/sun/Makefile.in (COPYOFILES): Don't pull in errno.o.
22728
22729 Mon Mar  8 16:43:43 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
22730
22731         * libc/sys/a29khif/stubs.s: clobber safe register, and fill all
22732         delay slots.
22733
22734 Tue Mar  2 14:47:00 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
22735
22736         * libc/libc.texinfo:  comment out reentrancy chapter (duh)
22737
22738 Tue Mar  2 14:34:16 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
22739
22740         * libc/reent/reent.tex:  New file.  (text from
22741         newlib/libc/libc.texinfo)
22742         * libc/stdio/tmpnam.c:  fixed doc typo
22743         * libc/stdlib/rand.c:   fixed doc typo
22744
22745 Tue Mar  2 14:34:16 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
22746
22747         * libc/reent/reent.tex:  New file.  (text from
22748         newlib/libc/libc.texinfo)
22749
22750 Fri Feb 26 12:20:54 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
22751
22752         support for reentrancy
22753         * libc/reent/reent.c, libc/reent/Makefile.in, libc/reent/reent.c:
22754         new files
22755         * libc/errno/errno.c, libc/include/ieeefp.h,
22756         libc/include/locale.h, libc/include/reent.h,
22757         libc/include/signal.h, libc/include/stdio.h,
22758         libc/include/stdlib.h, libc/include/string.h, libc/include/time.h,
22759         libc/signal/signal.c libc/stdio/cvt.c, libc/stdio/fclose.c,
22760         libc/stdio/fdopen.c, libc/stdio/fflush.c, libc/stdio/fgets.c,
22761         libc/stdio/findfp.c, libc/stdio/flags.c, libc/stdio/fopen.c,
22762         libc/stdio/fputc.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
22763         libc/stdio/ftell.c, libc/stdio/fwalk.c, libc/stdio/getchar.c,
22764         libc/stdio/gets.c, libc/stdio/glue.h, libc/stdio/iprintf.c,
22765         libc/stdio/local.h, libc/stdio/makebuf.c, libc/stdio/perror.c,
22766         libc/stdio/printf.c, libc/stdio/putchar.c, libc/stdio/puts.c,
22767         libc/stdio/refill.c, libc/stdio/scanf.c, libc/stdio/setvbuf.c,
22768         libc/stdio/sprintf.c, libc/stdio/tmpfile.c, libc/stdio/tmpnam.c,
22769         libc/stdio/ungetc.c, libc/stdio/vfprintf.c, libc/stdio/vfprintf.h,
22770         libc/stdio/vfscanf.c, libc/stdio/vprintf.c, libc/stdio/wsetup.c,
22771         libc/stdlib/__adjust.c, libc/stdlib/__exp10.c,
22772         libc/stdlib/assert.c, libc/stdlib/atexit.c, libc/stdlib/atol.c,
22773         libc/stdlib/dtoa.c, libc/stdlib/ecvtbuf.c, libc/stdlib/malloc.c,
22774         libc/stdlib/mprec.c, libc/stdlib/mprec.h, libc/stdlib/rand.c,
22775         libc/stdlib/setenv.c, libc/stdlib/std.h, libc/stdlib/strtod.c,
22776         libc/stdlib/strtol.c, libc/stdlib/strtoul.c, libc/string/strtok.c,
22777         libc/time/asctime.c, libc/time/localtime.c, libc/time/mktime.c,
22778         libc/time/strftime.c: modify to provide reentracy.
22779
22780         new routines:
22781         strtok_r, asctime_r, fdopen_r, _cleanup_r, fopen_r, iprintf_r,
22782         perror_r, printf_r, putchar_r, puts_r, scanf_r, sprintf_r,
22783         tmpfile_r, vfiprintf_r, vfprintf_r, strtod_r, dtoa_r, rand_r,
22784         srand_r, strtoul_r,strtol_r, free_r, malloc_r, morecore_r,
22785         mstats_r, realloc_r, localeconv_r, setlocale_r
22786
22787 Wed Feb 17 20:17:15 1993  Mark Eichin  (eichin@cygnus.com)
22788
22789         * libc/include/machine/ieeefp.h, libc/include/machine/setjmp.h,
22790         libc/include/sys/config.h, libc/include/sys/signal.h,
22791         libc/include/sys/stat.h, libc/include/sys/types.h: For compiler
22792         provided macros (such as m68000), use the ansi version
22793         (__m68000__) so that the library can be used with code compiled
22794         -ansi. In particular, m68000, mc68000, _AM29K, i386, MIPSEL, unix,
22795         and sparc.
22796
22797 Wed Feb 17 13:01:34 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
22798
22799         * configure.in (sparc*): Don't set -fsoft-float for sparc
22800         configurations.  Do set -fsoft-float for sparclite configurations.
22801
22802 Fri Feb 12 16:25:52 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
22803
22804         * default.menu, no-signal.menu: alternate forms of libc main menu
22805           (in newlib rather than newlib/libc due to configuration restrictions)
22806
22807         * configure.in: select one of the two menus above, link to
22808         libc.menu
22809
22810         * libc/libc.texinfo: include menu from separate file
22811
22812 Fri Feb 12 12:50:06 1993  Ian Lance Taylor  (ian@cygnus.com)
22813
22814         * Makefile.in (FLAGS_TO_PASS): Put INSTALL back in.
22815         (info): Split long shell command in half.
22816         * libc/Makefile.in (info, targetdep.tex): Don't pass everything to
22817         sub-makes, just CHEW and TARGETDOC.
22818         (targetdep.tex): Removed now special handling of sys and machine
22819         subdirectories, made obsolete some time ago.
22820         * libc/machine/Makefile.in (doc): Don't pass everything to
22821         sub-make, just CHEW and TARGETDOC.
22822         (Makefile): New target.
22823         * libc/sys/Makefile.in (Makefile): New target.
22824
22825 Thu Feb 11 15:25:15 1993  Ian Lance Taylor  (ian@cygnus.com)
22826
22827         * Makefile.in (here and most subdirectories): Only pass down CHEW
22828         and TARGETDOC when making info, not for other targets.
22829
22830         * Makefile.in (here and most subdirectories), host/any: Use $(AR)
22831         $(AR_FLAGS) rather than $(ARUPDATE).
22832
22833 Wed Feb 10 11:57:52 1993  Ian Lance Taylor  (ian@cygnus.com)
22834
22835         * Try to reduce command line length:
22836         * Makefile.in (FLAGS_TO_PASS): don't pass down exec_prefix,
22837         CC_FOR_BUILD, CFLAGS_FOR_BUILD, INSTALL or CHEW.
22838         (info, docs): pass CC_FOR_BUILD and CFLAGS_FOR_BUILD to doc.
22839         (info): Pass CHEW to other subdirs.
22840
22841 Tue Feb  9 14:01:42 1993  Mark Eichin  (eichin@cygnus.com)
22842
22843         * configure.in: add signal_dir, like unix_dir, but by default it
22844         is set to "signal" so that a29khif can turn it off (since a29khif
22845         has raise() as part of machine-specific signal.s.)
22846
22847 Fri Jan 15 12:09:50 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
22848
22849         * libc/sys/config.h, libc/machine/ieeefp.h: add Z8000 support
22850         * libc/stdio/Makefile.in: pass CFLAGS so vfiprintf.c gets built
22851         correctly.
22852         * libc/stdio/fdopen.c, libc/stdio/fgets.c, libc/stdio/fscanf.c,
22853         libc/stdio/vfprintf: type lint.
22854         * libc/sys/z8ksim/crt0.c (start): Z8001/Z8002 independent
22855         initialzation code.
22856         * libc/sys/z8ksim/glue.c: Z8001/Z8002 clean system calls.
22857
22858 Tue Dec 29 10:15:33 1992  Ian Lance Taylor  (ian@cygnus.com)
22859
22860         * stub/mvme135/mvme135-asm.S: new file.
22861         stub/mvme135mvme135-stub.c: moved all assembler routines into
22862         mvme135-asm.S.
22863         stub/mvme135/Makefile.in: build mvme135-stub.o.
22864
22865 Mon Dec 28 12:40:43 1992  Ian Lance Taylor  (ian@cygnus.com)
22866
22867         * Makefile.in: don't pass down $(CPP); use $(CC) -E in
22868         sub-Makefiles instead, to try to avoid line length limitations.
22869
22870 Mon Dec 21 18:36:13 1992  Per Bothner  (bothner@rtl.cygnus.com)
22871
22872         * libc/include/unistd.h (read, write):  Use void* instead of
22873         char*.
22874
22875 Thu Dec 17 13:49:46 1992  Mark Eichin  (eichin@cygnus.com)
22876
22877         * stub/go32/resetpc: sample script to send a reset packet to the
22878         stub
22879
22880         * stub/go32/I386STUB.C: new file, gdb/i386stub.c modified for the
22881         DOS environment, which compiles with Turbo C.
22882
22883         * stub/go32/DSER32.LNK: new file, linker commands for serial
22884         remote stub.
22885
22886         * stub/go32/CONTROL.C: turn off debug_mode, add CYGNUS tag line to
22887         start up message to identify version; call set_debug_traps.
22888
22889         * stub/go32/DEBUG.C: turn off debug_mode (so stub doesn't need any
22890         keyboard interaction); call handle_exception() in go_til_stop,
22891         rather than return, so that the remote stub gets control.
22892
22893         * stub/go32/MAKEFILE: fixed to actually use DOS commands (del and
22894         rename, rather than mv), set flags that work with current Turbo C,
22895         including using the /3 flag; also, add commands to build dser32.
22896
22897         * stub/go32/DEBUG32.LNK, stub/go32/GO32.LNK: fix paths to match
22898         default Turbo C installation (\tc rather than \usr)
22899
22900         * stub/go32/MONO.C (printf): current Turbo C uses "..." instead of
22901         "&..."
22902
22903 Mon Dec 14 09:37:33 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
22904
22905         * libc/include/math.h: added _DOUBLE_IS_32BITS checks
22906
22907 Thu Nov 12 22:31:04 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
22908
22909         * libc/stdio/cvt.c (licvt): new function to convert ints when
22910         sizeof(int) != sizeof(long).
22911
22912         * libc/include/stdio.h: added prototype for iprintf.
22913         * libc/include/machine/limits.h machine/ieeefp.h: z8k stuff
22914
22915 Tue Nov 10 12:18:12 1992  Ian Lance Taylor  (ian@cygnus.com)
22916
22917         * libc/machine/m68k/setjmp.S: use __USER_LABEL_PREFIX__ and
22918         __REGISTER_PREFIX__.
22919
22920 Mon Nov  2 13:50:14 1992  Ian Lance Taylor  (ian@cygnus.com)
22921
22922         * libc/sys/m68kbare: moved into stub directory.
22923
22924 Mon Nov  2 13:40:42 1992  Ian Lance Taylor  (ian@cygnus.com)
22925
22926         * configure.in, Makefile.in: created new directory stub, to hold
22927         sample code for specific targets.
22928
22929 Wed Oct 28 02:19:55 1992  Mark Eichin  (eichin@cygnus.com)
22930
22931         * restored libc/sys/go32/sys/fcntl.h, to override incorrect values
22932         in the unified libc/include/sys/fcntl.h.
22933
22934 Wed Oct 21 13:55:58 1992  Doug Evans  (dje@rtl.cygnus.com)
22935
22936         * libc/stdlib/ecvtbuf.c: (print_f,_gcvt): printf("%f", 0.01)
22937         printed .01, not 0.01.
22938
22939 Mon Oct 19 11:05:55 1992  Ian Lance Taylor  (ian@cygnus.com)
22940
22941         * configure.in: compile with -m68000 for m68* targets.
22942
22943 Sun Oct 18 05:29:05 1992  Mark Eichin  (eichin@cygnus.com)
22944
22945         * libm/math/remainder.c (remainder): document the svr4 and sunos
22946         references used to construct the function.
22947
22948 Sat Oct 17 21:46:16 1992  Mark Eichin  (eichin@cygnus.com)
22949
22950         * libm/math/remainder.c (rint, remainder): fix old typos.
22951         * libm/math/Makefile.in: actually build remainder.c (functions
22952         rint and remainder, from SysVr4 Programmer's Guide floor(3m) man
22953         page.)
22954
22955 Thu Oct 15 07:48:05 1992  Ian Lance Taylor  (ian@cygnus.com)
22956
22957         * libc/string/bcopy.c: BSD version works on overlapping strings,
22958         so ours should too.
22959
22960         * libc/stdlib/system.c: always invoke /bin/sh, not getenv
22961         ("SHELL").
22962
22963 Wed Oct 14 11:07:11 1992  Ian Lance Taylor  (ian@cygnus.com)
22964
22965         * Makefile.in (docs): new target.
22966
22967 Wed Oct 14 07:44:25 1992  Ian Lance Taylor  (ian@cygnus.com)
22968
22969         * libc/include/sys/times.h: define clock_t as required by POSIX.
22970         libc/include/time.h: protect clock_t from multiple definitions.
22971
22972 Wed Oct  7 11:02:21 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
22973
22974         * libm/math/sqrt.h (sqrt): actually, the final version of fp-bit
22975         does not need more than the original three iterations to get
22976         within 1 ulp. (Paranoia tests for rounding to better than that,
22977         but further iterations *don't* help, only more subtle changes
22978         can.)
22979
22980 Tue Oct  6 09:22:12 1992  Ian Lance Taylor  (ian@cygnus.com)
22981
22982         * libc/sys/vxworks68, libc/sys/vxworks960: removed, since they
22983         were doing nothing useful.
22984
22985 Tue Oct  6 08:48:13 1992  Ian Lance Taylor  (ian@cygnus.com)
22986
22987         * configure.in: define MALLOC_PROVIDED for vxworks targets;
22988         removed sys_dir settings of vxworks68 and vxworks960.
22989         host/any: don't pass -nostdinc to gcc, since newlib no longer
22990         provides all required header files.
22991
22992         * libc/stdlib/malloc.c: only compile this file if MALLOC_PROVIDED
22993         is not defined; this provides a hook for VxWorks.
22994
22995 Mon Oct  5 03:44:57 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
22996
22997         * libc/stdio/setvbuf.c (setvbuf): while ANSI does say to malloc a
22998         buffer if buf is NULL, don't do it here -- it is already being
22999         done by makebuf elsewhere in stdio.
23000
23001 Fri Oct  2 13:12:07 1992  Ian Lance Taylor  (ian@cygnus.com)
23002
23003         * libc/sys/a29khif/Makefile.in: assemble Steve's list of stubs so
23004         that C programs can call functions without using initial
23005         underscores.
23006
23007 Thu Oct  1 09:37:47 1992  Ian Lance Taylor  (ian@cygnus.com)
23008
23009         * libc/stdlib/abort.c (abort): call exit, in case kill returns.
23010
23011 Wed Sep 30 08:22:18 1992  Ian Lance Taylor  (ian@cygnus.com)
23012
23013         * configure.in: set TARGET_CFLAGS for certain CPU types to
23014         -msoft-float.
23015
23016 Tue Sep 29 21:09:32 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
23017
23018         * libc/sys/m68kbare/glue.c: use <_ansi.h> instead of <ansidecl.h>
23019
23020 Mon Sep 28 14:58:44 1992  Ian Lance Taylor  (ian@cygnus.com)
23021
23022         * configure.in: added sys_dir m68kbare for m68k*-unknown-aout and
23023         m68k*-unknown-coff.
23024
23025 Fri Sep 25 08:33:21 1992  Ian Lance Taylor  (ian@cygnus.com)
23026
23027         * libc/include/stdio.h: define __need___va_list before including
23028         <stdarg.h>, to avoid defining va_arg, et. al.
23029
23030 Tue Sep 22 13:47:00 1992  Ian Lance Taylor  (ian@cygnus.com)
23031
23032         * libc/sys/Makefile.in: handle the case of an empty $(sys_dir)
23033         (don't cd to the user's home directory).
23034
23035         * libc/Makefile.in: replaced all instances of $(MAKE) with make.
23036         In general this is the wrong thing to do, but I can't get around
23037         GNU make's insistence on passing command line arguments any other
23038         way.
23039
23040 Tue Sep 22 10:12:44 1992  Ian Lance Taylor  (ian@cygnus.com)
23041
23042         * configure.in: always configure the libc/sys directory, since it
23043         now provides a required documentation file.
23044
23045         * Makefile.in: replaced all instances of $(MAKE) with make.  In
23046         general this is the wrong thing to do, but I can't get around GNU
23047         make's insistence on passing command line arguments any other way.
23048
23049 Mon Sep 21 22:42:26 1992  Ian Lance Taylor  (ian@tweedledumbest.cygnus.com)
23050
23051         * libc/stdlib/ecvtbuf.c (_gcvt): string for 0 was not null
23052         terminated.
23053
23054         * libc/stdio/local.h: include <stdarg.h> to define va_list.
23055         libc/stdio/vsprintf.c: include <stdarg.h> rather than <varargs.h>.
23056
23057         * libc/include/float.h, libc/include/stdarg.h,
23058         libc/include/stddef.h, libc/include/varargs.h: removed; use gcc
23059         versions instead.
23060         libc/include/stdio.h: get size_t from <stddef.h>, and va_list from
23061         <stdarg.h>, not from <machine/types.h>.  Protect definition of
23062         NULL.
23063         libc/include/time.h: get size_t from stddef.h.  Protect definition
23064         of NULL.
23065         libc/include/machine/limits.h: override gcc <limits.h> by defining
23066         _LIMITS_H___.  Don't define CLK_TCK.  Copied in gcc <limits.h> to
23067         get correct INT_MIN and LONG_LONG values.
23068         libc/include/machine/types.h: don't define ptrdiff_t, wchar_t,
23069         size_t or va_list at all; they're now gotten from stddef.h
23070         instead.
23071         libc/include/machine/varargs.h: removed; use gcc version instead.
23072         libc/include/sys/types.h: explicitly include <machine/types.h>.
23073
23074         * libm/math/sqrt.h: using the fp-bit routines appears to require
23075         more iterations.
23076
23077         * Makefile.in, host/any: let system include files override machine
23078         include files.
23079
23080 Sat Sep 19 21:10:06 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
23081
23082         * libc/include/machine/types.h: allow __*_TYPE__ from cpp to
23083         override _*_T_ definitions defaulted here.
23084
23085 Tue Sep 15 11:14:46 1992  Ian Lance Taylor  (ian@cygnus.com)
23086
23087         * Makefile.in (install): install the include files in
23088         $(tooldir)/include, not $(exec_prefix)/include.
23089
23090 Fri Sep 11 15:48:43 1992  Ian Lance Taylor  (ian@cygnus.com)
23091
23092         * Makefile.in (install): fixed typo, and changed install to not
23093         force rebuild of libc.a and libm.a.
23094
23095 Thu Sep 10 10:46:09 1992  Ian Lance Taylor  (ian@cygnus.com)
23096
23097         * libc/sys/a29khif/*: Changed all .include's to include
23098         sys/sysmac.h, not plain sysmac.h.  The header files live in sys so
23099         that they will be installed for the user.
23100
23101         * Makefile.in (all): create targ-include, a directory holding the
23102         machine and system specific header files during the build.
23103         (install): fixed installation of machine and system specific
23104         header files.
23105
23106         * Makefile.in: fixed comment.
23107         host/any: change .s.o rule to use $(AS) rather than $(CC), so that
23108         we can pass $(INCLUDES) to it.
23109
23110 Thu Sep 10 10:13:13 1992  Ian Lance Taylor  (ian@cygnus.com)
23111
23112         * libc/include/sys/param.h: new generic file, which may be
23113         overridden for specific systems.
23114
23115         * libc/include/sys/signal.h: define all ANSI signal names, and
23116         NSIG (which is not ANSI) for a29k.
23117
23118 Tue Sep  8 09:04:30 1992  Ian Lance Taylor  (ian@cygnus.com)
23119
23120         * Makefile.in: don't pass down arguments the lower level makes
23121         will not need.
23122         * libc/Makefile.in: recurse directly, rather than using subdir_do,
23123         in hopes of avoiding argument length limits.
23124         * libm/Makefile.in: recurse directly, rather using subdir_do, in
23125         hopes of avoiding argument length limits.
23126
23127 Tue Sep  8 08:27:22 1992  Ian Lance Taylor  (ian@cygnus.com)
23128
23129         * libc/include/sys/fcntl.h: include <sys/types.h> to ensure that
23130         mode_t is defined.
23131
23132 Mon Sep  7 14:02:07 1992  Ian Lance Taylor  (ian@cygnus.com)
23133
23134         * Fixed make info and make install-info for newlib, changing most
23135         Makefile.in and several *.tex files.  Moved doc directory from
23136         libc to top level.
23137
23138         * libc/time/mktime.c (_DAYS_IN_MONTH): actually, not const.
23139         Should be rewritten.
23140
23141         * libc/string/strings.tex: renamed node index to node index
23142         function, so that it does not conflict with the top level index
23143         node.
23144
23145         * libc/include/sys/config.h: define __IEEE_BIG_ENDIAN for h8300.
23146
23147 Fri Sep  4 02:34:06 1992  Ian Lance Taylor  (ian@cygnus.com)
23148
23149         * Overhauled general configuration for newlib.  Eliminated all
23150         target dependent Makefile fragments.  Create libraries in newlib
23151         rather than newlib/libc and newlib/libm.  Use CC, et. al., rather
23152         than CROSS_CC, et. al.  Broke make docs; will fix later.
23153
23154         * libc/time/localtime.c (_DAYS_IN_MONTH): actually, not const.
23155         Should be rewritten.
23156
23157 Tue Sep  1 15:21:14 1992  Ian Lance Taylor  (ian@cygnus.com)
23158
23159         * libc/configure.in: cleaned up somewhat; switch on ${target}
23160         rather than ${target_alias}.
23161         * libm/configure.in: cleaned up somewhat; switch on ${target}
23162         rather than ${target_alias}.
23163
23164         * libc/ctype/ctype_.c: marked _ctype_ array _CONST.
23165         * libc/include/ctype.h: marked _ctype_ as _CONST.
23166
23167         * libc/locale/locale.c (lconv, localeconv): marked static lconv as
23168         _CONST.
23169
23170         * libc/stdio/cvt.c, libc/stdio/findfp.c (__sfmoreglue),
23171         libc/stdio/vfscanf.c (__svfscanf): made static variables const.
23172         libc/stdio/gets.c (gets): removed non-ANSI warning message.
23173         libc/stdio/tmpnam.c (tmpnam): removed unneeded filename variable.
23174
23175         * libc/stdlib/mprec.h, libc/stdlib/mprec.c (pow5mult, tens,
23176         bigtens, tinytens): marked arrays _CONST.
23177         libc/stdlib/qsort.c (swap): if __GNUC__, use _builtin_alloca
23178         rather than a static variable.
23179
23180         * libc/time/asctime.c (asctime), libc/time/localtime.c
23181         (_DAYS_IN_MONTH), libc/time/mktime.c (_DAYS_IN_MONTH,
23182         _DAYS_BEFORE_MONTH), libc/time/strftime.c (dname_len, dname,
23183         mname_len, mname): Marked static arrays _CONST.
23184
23185         * libm/math/gamma.h: made local variables non-static.
23186
23187         * libm/math/acos.h, libm/math/bessel.c, libm/math/erf.c,
23188         libm/math/exp.c, libm/math/gamma.h: marked static arrays as
23189         _CONST.
23190
23191         * libm/math/constants.c: removed file, because the constants it
23192         defined were never referenced.
23193         libm/math/Makefile.in: removed references to constants.c.
23194         libm/math/mathimpl.h: removed declarations of constants.
23195
23196 Wed Aug 26 21:09:06 1992  Ian Lance Taylor  (ian@cygnus.com)
23197
23198         * libc/include/machine/varargs.h: only call __builtin_saveregs if
23199         it is sensibly defined in libgcc2.  Checks preprocessor defines,
23200         which is not a good solution.
23201
23202         * libm/sqrt.c: sqrt(Infinity) should not be a domain error.
23203
23204         * libm/frexp.c: handle denormalized numbers as arguments.
23205
23206         * libm/math/Makefile.in: added some dependencies for .c files
23207         which include local .h files.
23208
23209 Mon Aug 24 12:57:58 1992  Ian Lance Taylor  (ian@cygnus.com)
23210
23211         * libc/configure.in: set target_alias for OSE*.  Replace
23212         target_makefile_frag if it is blank.
23213
23214         * libc/Makefile.in: make sure everything is passed to subsidiary
23215         makes; create all directories when installing.
23216
23217         * libm/ieeefp/Makefile.in, libm/math/Makefile.in: use
23218         CROSS_ARUPDATE instead of AR.
23219
23220         * libm/configure.in: set target_alias for OSE*.  Replace
23221         target_makefile_frag if it is blank.
23222
23223         * libm/Makefile.in: make sure everything is passed to subsidiary
23224         makes; create all directories when installing.
23225
23226 Thu Aug 20 15:11:51 1992  Mark Eichin  (eichin@cygnus.com)
23227
23228         * add following change from libc copy.
23229
23230 Wed Aug 19 18:54:49 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
23231
23232         * libc/libc.texinfo: make copyright disclaimers appear on back of
23233         title page; make format of same slightly less ugly; avoid using
23234         underbars in section headings (avoids nasty texinfo bug in table
23235         of contents).
23236
23237         * libc/ctype/tolower.c, libc/ctype/toupper.c: (doc changes in
23238           comments only) avoid using underbars in section headings
23239
23240         * libc/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
23241           isnan ieeefp/fpmask.c, ieeefp/fpround.c, ieeefp/fpsticky.c (doc
23242           changes in comments only): shorten headings ieeefp/infinity.c,
23243           ieeefp/isnan.c: (doc, comments only) more informative headings
23244
23245         * libc/math/bessel.c: (doc, comments only) shorten heading
23246
23247         * libc/stdlib/efgcvt.c, libc/stdlib/mbtowc.c, libc/stdlib/wctomb.c
23248         (doc, comments only) shorten headings
23249
23250         * libc/time/localtime.c (doc, comments only): shorten headings
23251
23252         * libm/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
23253           isnan
23254           libm/ieeefp/fpmask.c, libm/ieeefp/fpround.c,
23255           libm/ieeefp/fpsticky.c (doc changes in comments only): shorten
23256           headings
23257           libm/ieeefp/infinity.c, libm/ieeefp/isnan.c: (doc, comments
23258           only) more informative headings
23259         * libm/math/bessel.c: (doc, comments only) shorten heading
23260
23261 Wed Aug 19 07:06:37 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
23262
23263         * .../Makefile.in: use CROSS_ARUPDATE consistently.
23264         * config/*.mt: define CROSS_AR as well as CROSS_ARUPDATE
23265         * config/*.mt: define CROSS_CPP based on CROSS_CC, not /lib/cpp.
23266         * .../Makefile.in: get rid of .c.o rule - if TOP is correctly
23267         defined, the one from the .mt file will be correct.
23268         * libc/include/machine, libc/include/sys: created, and populated
23269         with common files from machine/*/machine. ifdefs were used for
23270         most, typically by handling exceptions first and then filling in
23271         defaults. Files with D.J. Delorie copyright #included rather than
23272         copied. Most files in include/sys really were the same in the
23273         original.
23274         * libc/include/...: cleaned up use of _EXFUN.
23275         * libc/stdlib/mprec.c: mprec.h doesn't get installed, so include
23276         it with double quotes, not angles.
23277
23278 Mon Aug 10 11:43:20 1992  Ian Lance Taylor  (ian@dumbest.cygnus.com)
23279
23280         * libc/Makefile.in: always create installation directories.
23281
23282 Sun Aug  9 22:45:48 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
23283
23284         * libc/configure.in: handle host properly (using canonical
23285         triples), better error message for the case of target not found
23286
23287 Thu May 28 01:56:37 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
23288
23289         * libc/Makefile.in (insincdir): Ensure this directory exists
23290         before attempting installation.
23291
23292 Fri May  1 18:16:42 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
23293
23294         * libc/stdlib/assert.c: now calls abort like it should
23295         * libc/sys/a29khif: many many patches for 29khif work
23296         * libc/machine/i386: gnulib2 expanded there.
23297
23298 Tue Apr 28 19:08:37 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
23299
23300         Added accurate fp conversion routines to stdlib, moved dcvt from
23301         stdio to stdlib and called it ecvtbuf:
23302         * libc/stdlib/mprec.c, mprec.h: new files for multiprec arithmetic
23303         * libc/stdlib/Makefile.in, efgcvt.c, strtod.c: modified to use new
23304         routines
23305         * libc/libc.texinfo: Modifed to include the copyright info from
23306         the mprec files
23307         * libc/stdlib/efgcvt.c: now xref to ecvtbuf in stdlib.
23308         * libc/test/ : many vector which tested for the implementation
23309         defined returns of strange conversion requests have been updated
23310         to relflect the new implementation
23311
23312 Mon Apr 27 13:41:33 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
23313
23314         * libc/libc.texinfo: new chapter on variable arg lists
23315         (stdarg.h/varargs.h)
23316         * libc/libc.texinfo: new title
23317         * libc/time/gmtime.c, libc/time/localtime./c, libc/time/mktime.c:
23318         (doc only) shorter headings for better formatting.
23319
23320 Fri Apr 24 11:26:48 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
23321
23322         * libc/libc.texinfo: three more info menu entries
23323         * libc/locale/locale.tex: new chapter
23324         * libc/locale/locale.c: new doc for setlocale, localeconv
23325         * libc/locale/Makefile.in: use new locale doc
23326         * libc/signal/signal.tex: new chapter
23327         * libc/signal/raise.c, libc/signal/signal.c: new doc
23328         * libc/signal/Makefile.in: use new doc
23329         * libc/time/time.tex: new chapter
23330         * libc/time/asctime.c libc/time/clock.c libc/time/ctime.c
23331         libc/time/difftime.c libc/time/gmtime.c libc/time/localtime.c
23332         libc/time/mktime.c libc/time/strftime.c libc/time/time.c: new doc
23333         * libc/time/Makefile.in: use new doc
23334
23335 Tue Apr 21 14:48:50 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
23336
23337         * libm/math/log1p.c: split to use the new function way of float
23338         function definition. math/log1p.h deleted
23339         * libm/math/scalb.c: obsolete and deleted
23340         * libm/math/scalbn.c: created from part log1p.c
23341         * libm/math/Makefile.in: know about log1p and scalbn
23342
23343 Tue Apr 21 12:32:21 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
23344
23345         * libc/ctype/isupper.c: revise doc;
23346           libc/ctype/ctype.tex: use doc from isupper.c
23347
23348         * libc/string/bzero.c: new doc
23349
23350 Mon Apr 20 14:19:42 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
23351
23352         * libc/stdlib/system.c, libc/stdlib/exit.c, libc/stdlib/abort.c:
23353         new doc
23354         * libc/stdlib/Makefile.in: extract new doc
23355         * libc/stdlib/stdlib.tex: use new doc
23356
23357         * libc/string/strerror.c: expanded doc.
23358
23359         * libc/stdio/Makefile.in: extract doc from more files
23360         * libc/stdio/fopen.c, libc/stdio/perror.c, libc/stdio/remove.c,
23361         libc/stdio/rename.c, libc/stdio/rewind.c, libc/stdio/setbuf.c,
23362         libc/stdio/setvbuf.c, libc/stdio/sprintf.c, libc/stdio/tmpfile.c,
23363         libc/stdio/tmpnam.c, libc/stdio/vfprintf.c, libc/stdio/vprintf.c,
23364         libc/stdio/vsprintf.c: new doc
23365         * libc/stdio/stdio.tex: use new doc
23366
23367 Mon Apr 20 09:38:17 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
23368
23369         * libc/config/ebmon29k: added CROSS_CPP rule and other fixes
23370         * libc/include/ieeefp.h: fixed ansi conflict with isnanf, isinff,
23371         finitef functions.
23372         * libc/sys/a29khif/sys/*.h: ansidecl.h was renamed to _ansi.h some
23373         time ago.
23374
23375         * libc/stdio/stdio.h: added P_tmpdir for /tmp (SVID thing)
23376         * libc/stdio/setbuf.c: added ansi style definition.
23377         * libc/stdio/setvbuf.c: added ansi definition, now mallocs own
23378         buffer if none provided.
23379         * libc/stdio/tmpfile.c: lint
23380         * libc/stdio/tmpnam.c (worker): created. (tmpnam): mallocs buffer
23381         rather than using static, also make sure file isn't already
23382         present.  Uses P_tmpdir. (tempnam): rewritten to use new
23383         subroutine, and uses P_tmpdir.
23384         * libc/stdio/siprintf.c: created
23385
23386 Mon Apr 13 09:12:58 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
23387
23388         Release 1.03 for NEC, major mods. Main differences from release
23389         1.02::
23390
23391         More tests in test/:
23392         * jn_vec.c, jnf_vec.c, yn_vec.c, ynf_vec.c, log2_vec.c,
23393         log2f_vec.c, atan2_vec.c, atan2f_vec.c: new test vectors.
23394         * test_ieee.c: tests for ieee flags & masks - get/set rounding,
23395         get/set mask, get/set sticky and get/set roundtoi.  Tests
23396         that setting the bits changes the way arithmetic is done.
23397         * string.c: added test to make sure memcmp does it with unsigned
23398         chars.
23399         * test.c: cleaned up and removed lint.
23400         * sprint_vec, sprint_ivec.c, convert.c, conv_vec.c, iconf_vec.c,
23401         dvec.c: tests for string to value conversions,  sprintf, scanf,
23402         atof, atoff, strtod, strtodf, atoi, atol, strtol, ecvtbuf, ecvt,
23403         ecvtf,  fcvtbuf, fcvt, fcvtf, gcvt, gcvtf.  Some attention paid to
23404         rounding in sprintf too.
23405         * test_is.c: tests for  isalnum, isalpha, isascii, iscntrl,
23406         isdigit, isgraph, islower, isprint, ispunct, isspace, isupper,
23407         isxdigit, toascii, tolower, toupper, _tolower, _toupper in macro
23408         and function form.
23409         * math2.c: test for frexp, frexpf, ldexp, ldexpf, modf modff, pow,
23410         powf
23411
23412         In the library:
23413         * libc/stdlib/div.c, libc/stdlib/ldiv.c, libc/stdlib/strtod.c,
23414         libc/stdlib/strtol.c, libc/stdlib/stroul.c, libc/stdlib/abs.c,
23415         libc/stdlib/bsearch.c, libc/stdlib/calloc.c, libc/stdlib/getenv.c,
23416         libc/stdlib/labs.c, libc/stdlib/malloc.c: new documentation
23417         * libc/stdlib/efgcvt.c: rewritten to use new _dcvt routines rather
23418         than sprintf.
23419         * libc/stdio/dcvt.c: rewritten to make more useful elsewhere.
23420         * Method of producting float versions of double functions has
23421         changed, functions will be modified gradually. So far:
23422         libm/math/exp.c, libm/math/pow.c, libm/math/modf.c,
23423         libm/math/sincos.c, libm/math/fmod.c, libm/math/tan.c have been
23424         altered
23425         * libc/string/memcmp.c: now uses unsigned chars
23426         * libc/string/bcmp.c, libc/string/strcpy.c,
23427         libc/stsring/strxfrm.c: fixed doc
23428         * libc/sys/sysvnecv70.tex: fix example of sbrk code
23429 \f
23430 Local Variables:
23431 version-control: never
23432 End: