OSDN Git Service

2009-12-16 Joel Sherrill <joel.sherrill@oarcorp.com>
[pf3gnuchains/pf3gnuchains3x.git] / newlib / ChangeLog
1 2009-12-16  Joel Sherrill <joel.sherrill@oarcorp.com>
2
3         * libc/sys/rtems/machine/param.h: Only use sizeof(double) -1
4         for ALIGNBYTES on SPARC.
5
6 2009-12-16  Jeff Johnston  <jjohnstn@redhat.com>
7
8         * libc/include/sys/errno.h: Move EHOSTDOWN, EPFNOSUPPORT,
9         and ETOOMANYREFS into general list as they are referenced
10         by OpenGroup and needed by RTEMS.
11
12 2009-12-16  Ralf Corsépius <ralf.corsepius@rtems.org>
13
14         * libc/search/hcreate.c: Don't include <sys/queue.h> (Unused).
15
16 2009-12-16  Ralf Corsépius <ralf.corsepius@rtems.org>
17
18         * libc/sys/rtems/machine/_types.h: New (Derived from 
19         machine/_default_types.h).
20         * libc/sys/rtems/crt0.c: Rework. Introduce macro RTEMS_STUB.
21         * libc/sys/rtems/sys/param.h:
22         Update copyright notice from FreeBSD.
23         Remove HZ.
24         Add #include <sys/priority.h>
25         Remove priority handling (moved to sys/priority.h).
26         Remove CLBYTES (Unused, abandoned in BSD).
27         * libc/sys/rtems/sys/queue.h: Update copyright (from FreeBSD).
28         Remove CIRCLEQ_*.
29
30 2009-12-15  Conny Marco Menebrocker  <c-m-m@gmx.de>
31
32         * libc/machine/xc16x/Makefile.am: Fix typo and refer
33         to puts.c instead of putc.c.
34         * libc/machine/xc16x/Makefile.in: Regenerated.
35
36 2009-12-14  Maxim Kuvyrkov <maxim@codesourcery.com>
37
38         * libc/machine/m68k/memcpy.S: Patch to support
39         boards which do not support unaligned read/write.
40
41 2009-12-10  Conny Marco Menebrocker  <c-m-m@gmx.de>
42
43         * configure.host: Add xc16x support.
44         * libc/include/machine/ieeefp.h: Ditto.
45         * libc/include/sys/config.h: Ditto.
46         * libc/machine/configure.in: Ditto.
47         * libc/machine/Makefile.in: Regenerated.
48         * libc/machine/aclocal.m4: Ditto.
49         * libc/machine/configure: Ditto.
50         * libc/machine/xc16x/Makefile.am: New file.
51         * libc/machine/xc16x/Makefile.in: Ditto.
52         * libc/machine/xc16x/aclocal.m4: Ditto.
53         * libc/machine/xc16x/configure: Ditto.
54         * libc/machine/xc16x/configure.in: Ditto.
55         * libc/machine/xc16x/putchar.c: Ditto.
56         * libc/machine/xc16x/puts.c: Ditto.
57         * libc/machine/xc16x/setjmp.S: Ditto.
58
59 2009-12-08  Eric Blake  <ebb9@byu.net>
60
61         Fix some *at declarations.
62         * libc/include/stdio.h (symlinkat): Move this...
63         * libc/include/sys/_default_fcntl.h (unlinkat): ...and this...
64         * libc/include/sys/unistd.h (symlinkat, unlinkat): ...here, to
65         match POSIX.
66
67 2009-12-03  Craig Howland <howland@LGSInnovations.com>
68
69         * libc/stdlib/strtod.c:  Correct "NO_REENT" to "_REENT_ONLY".
70         * libc/stdlib/wcstod.c:  Ditto.
71         * libc/stdlib/dtoastub.c:  Ditto.
72
73 2009-11-23  Corinna Vinschen  <corinna@vinschen.de>
74
75         Use NetBSD fix for CVE-2009-0689 security vulnerability.
76         * libc/include/sys/reent.h (_Kmax): Define here based on the sizeof
77         size_t, as in latest NetBSD.
78         * libc/reent/reent.c (_reclaim_reent): Use _Kmax rather than constant
79         value 15.
80         * libc/stdlib/mprec.c (_Kmax): Don't define here.  Explain why.
81
82 2009-11-20  Nick Clifton  <nickc@redhat.com>
83
84         * libc/machine/rx/strncat.S (_strncat): Replace use of r6
85         (call-saved) with r14 (call-used).
86
87 2009-11-18  Dave Korn  <dave.korn.cygwin@googlemail.com>
88
89         * libm/machine/i386/f_tan.S (_f_tan): Free fp stack register
90         containing useless constant before advancing fp sp over it.
91         (_f_tanf): Likewise.
92
93 2009-11-18  Corinna Vinschen  <corinna@vinschen.de>
94
95         * libc/stdio/vfprintf.c: Include ../stdlib/local.h.  Replace call to
96         _mbtowc_r with direct call to __mbtowc.
97         * libc/stdio/vfscanf.c: Ditto.
98         * libc/stdlib/btowc.c: Include local.h.  Replace call to _mbtowc_r
99         with direct call to __mbtowc.
100         * libc/stdlib/mblen.c: Ditto.
101         * libc/stdlib/mblen_r.c: Ditto.
102         * libc/stdlib/mbrtowc.c: Ditto.
103         * libc/stdlib/mbstowcs_r.c: Ditto.
104         * libc/stdlib/mbtowc.c: Ditto.
105         * libc/stdlib/wcrtomb.c: Include local.h.  Replace call to _wctomb_r
106         with direct call to __wctomb.
107         * libc/stdlib/wcsnrtombs.c: Ditto.
108         (_wcsnrtombs_r): Ditto.
109         * libc/stdlib/wcstombs_r.c: Ditto.
110         * libc/stdlib/wctob.c: Ditto.
111         * libc/stdlib/wctomb.c: Ditto.
112
113         * libc/stdlib/mbrtowc.c (mbrtowc): Implement independently from
114         _mbrtowc_r, unless PREFER_SIZE_OVER_SPEED or __OPTIMIZE_SIZE__ are
115         defined.
116         * libc/stdlib/wcrtomb.c (wcrtomb): Implement independently from
117         _wcrtomb_r, unless PREFER_SIZE_OVER_SPEED or __OPTIMIZE_SIZE__ are
118         defined.
119
120         * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Drop unnecessary test for
121         ch >= 0.
122
123 2009-11-17  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
124
125         * libm/common/fdlibm.h (logb, logbf): Move decls from here...
126         * libc/include/math.h (logb, logbf): ...to here.
127
128 2009-11-06  Jon Turney  <jon.turney@dronecode.org.uk>
129
130         * libc/include/ctype.h (__ctype_lookup): Fix precedence.
131
132 2009-10-30  Corinna Vinschen  <corinna@vinschen.de>
133
134         * libc/stdio/fflush.c (_fflush_r): Store old errno to check for
135         low-level seek error condition.  Restore old errno in case of
136         success.  Don't use new position after seek as error condition,
137         rather check for return value of -1 and errno.  Handle EINVAL
138         just like ESPIPE.  Only set fp->_offset if errno is 0.
139
140 2009-10-27  Nick Clifton  <nickc@redhat.com>
141
142         * MAINTAINERS (ARM): Add myself as an ARM maintainer.
143
144 2009-10-26  DJ Delorie  <dj@redhat.com>
145
146         * configure.host: Add support for RX architecture.
147         * libc/include/machine/ieeefp.h: Likewise.
148         * libc/include/machine/setjmp.h: Likewise.
149         * libc/include/machine/configure.in: Likewise.
150         * libc/include/machine/configure: Regenerate.
151         * libc/machine/rx: New directory.
152         * libc/machine/rx/*: New files to support RX architecture.
153
154 2009-10-24  Eric Blake  <ebb9@byu.net>
155
156         * libc/include/ctype.h (__ctype_lookup): New macro.
157         (isalpha, isupper, islower, isdigit, isxdigit, isspace, ispunct)
158         (isalnum, isprint, isgraph, iscntrl, isblank): Use it to fix bug
159         on 64-bit machines.
160
161 2009-10-20  Jeff Johnston  <jjohnstn@redhat.com>
162
163         * configure.host: Don't set -O2 flag in newlib_cflags.  Leave
164         that to CFLAGS.
165         * acinclude.m4: Don't reset CFLAGS before calling _AC_PROG_CC_G
166         as it sets the same flags as we are using.
167         * aclocal.m4: Regenerated.
168         * configure: Ditto.
169         * Makefile.in: Ditto.
170         * iconvdata/aclocal.m4: Ditto.
171         * iconvdata/configure: Ditto.
172         * iconvdata/Makefile.in: Ditto.
173         * doc/aclocal.m4: Ditto.
174         * doc/configure: Ditto.
175         * doc/Makefile.in: Ditto.
176         * libc/aclocal.m4: Ditto.
177         * libc/configure: Ditto.
178         * libc/Makefile.in: Ditto.
179         * libc/*Makefile.in: Ditto.
180         * libc/*aclocal.m4: Ditto.
181         * libc/*configure: Ditto.
182         * libm/*Makefile.in: Ditto.
183         * libm/*aclocal.m4: Ditto.
184         * libm/*configure: Ditto.
185
186 2009-10-16  Jeff Johnston  <jjohnstn@redhat.com>
187
188         * libc/include/sys/config.h[__CYGWIN__]: Set __USE_XOPEN2K flag
189         if not __STRICT_ANSI__ or stdc version C99 or greater.
190         * libc/include/stdio.h[__STRICT_ANSI__]: Add __USE_XOPEN2K check
191         for fseeko and ftello prototypes.
192
193 2009-10-15  Corinna Vinschen  <corinna@vinschen.de>
194
195         * libc/include/wchar.h (struct tm0: Declare as incomplete type.
196
197 2009-10-15  Corinna Vinschen  <corinna@vinschen.de>
198
199         * libc/locale/nl_langinfo.c (nl_langinfo): Add Cygwin-specific temporary
200         exception for KOI8 charsets.
201
202 2009-10-13  Eric Blake  <ebb9@byu.net>
203
204         * libc/include/sys/unistd.h: Add _PC*, _CS*, and _SC* constants
205         new to POSIX 2008.
206
207 2009-10-13  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
208
209         * libc/include/sys/signal.h: Include <sys/types.h> always.
210         [__CYGWIN__, __rtems__]: Define kill first argument as pid_t per
211         standards.
212
213 2009-10-09  Dave Korn  <dave.korn@artimi.com>
214
215         * libc/include/sys/time.h (_TIMEVAL_DEFINED): Define when
216         defining struct timeval.
217
218 2009-10-09  Corinna Vinschen  <corinna@vinschen.de>
219
220         * libc/locale/locale.c (DEFAULT_LOCALE): New define.
221         (__default_locale): New global variable set to the default locale.
222         (__get_locale_env): Return __default_locale rather than fixed "C".
223
224 2009-10-08  Jeff Johnston  <jjohnstn@redhat.com>
225
226         * configure.host: For RTEMS, define HAVE_ASSERT_FUNC.
227         * libc/stdlib/assert.c (_assert_func): Do not specify
228         __assert_func if HAVE_ASSERT_FUNC flag is set.
229
230 2009-10-08  Eric Blake  <ebb9@byu.net>
231
232         * libc/include/getopt.h (__getopt_r, __getopt_long_r)
233         (__getopt_long_only_r): Protect declarations, to avoid compiler
234         warning.
235
236 2009-10-07  Corinna Vinschen  <corinna@vinschen.de>
237
238         * libc/locale/nl_langinfo.c (nl_langinfo): Just return current locale
239         charset on Cygwin.
240
241 2009-10-03  Corinna Vinschen  <corinna@vinschen.de>
242
243         * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Allow CESU-8 surrogate
244         value encoding.
245         * libc/stdlib/wctomb_r.c (__utf8_mbtowc): Allow CESU-8 surrogate
246         value decoding.
247
248 2009-09-29  Corinna Vinschen  <corinna@vinschen.de>
249
250         * libc/locale/locale.c (loadlocale): Allow "C." same as "C-" as locale
251         prefix.  Add some words to documentation.
252
253 2009-09-29  Corinna Vinschen  <corinna@vinschen.de>
254
255         * libc/stdlib/sb_charsets.c: Throughout, translate undefined
256         characters to their corresponding Windows Unicode value.
257
258 2009-09-28  Michael Eager <eager@eagercon.com>
259
260         * configure.host: Add microblaze.
261         * libc/include/machine/ieeefp.h [MICROBLAZE]: Define __IEEE_BIG_ENDIAN.
262         * libc/include/machine/setjmp.h [MICROBLAZE]: Define _JBLEN, _JBTYPE.
263         * libc/include/sys/config.h [MICROBLAZE]: Define _REENT_SMALL,
264         _UNIX98_THREAD_MUTEX_ATTRIBUTES.
265         * libc/include/sys/types.h: Treat XMK like rtems, define
266         PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE,
267         PTHREAD_MUTEX_DEFAULT, PTHREAD_STACK_MIN, define stuct pthread_attr_s.
268         * libc/machine/configure.in: Add microblaze.
269         * libc/machine/configure: Add microblaze (not regenerated).
270         * libc/machine/microblaze/configure.in: NEW.
271         * libc/machine/microblaze/configure: Generate.
272         * libc/machine/microblaze/Makefile.am: NEW.
273         * libc/machine/microblaze/Makefile.in: Generate.
274         * libc/machine/microblaze/{abort.c, strcmp.c, strcpy.c, strlen.c,
275         mallocr.c, longjmp.S, setjmp.S}: NEW.
276         * libc/stdlib/mallocr.c [MICROBLAZE]: Don't declare sbrk prototype,
277         mALLOc(): return malloc value.
278
279 2009-09-27  Corinna Vinschen  <corinna@vinschen.de>
280
281         * libc/locale/locale.c (lc_ctype_charset): Set to "UTF-8" on Cygwin.
282         (lc_message_charset): Ditto.
283         (loadlocale): Set charset of the "C" locale to "UTF-8" on Cygwin.
284         * libc/stdlib/mbtowc_r.c (__mbtowc): Default to __utf8_mbtowc on
285         Cygwin.
286         * libc/stdlib/wctomb_r.c (__wctomb): Default to __utf8_wctomb on
287         Cygwin.
288
289 2009-09-26  Eric Blake  <ebb9@byu.net>
290
291         * libc/include/sys/unistd.h (execvpe, fexecve) [__CYGWIN__]:
292         Add declarations.
293
294 2009-09-24  Eric Blake  <ebb9@byu.net>
295
296         * libc/include/sys/unistd.h (eaccess, euidaccess) [__CYGWIN__]:
297         Add declarations.
298
299 2009-09-23  Corinna Vinschen  <corinna@vinschen.de>
300
301         * libc/locale/locale.c: Drop Cygwin-specific windows.h include.
302         (loadlocale): Call __set_charset_from_codepage with 0 codepage.
303
304 2009-09-22  Ralf Corsépius <ralf.corsepius@rtems.org>
305
306         * libc/include/stdlib.h: Add posix_memalign.
307
308 2009-09-22  Ralf Corsépius <ralf.corsepius@rtems.org>
309
310         * configure.host (*-rtems*): Remove -DMISSING_SYSCALL_NAMES.
311         Add -DHAVE_BLKSIZE, -D_NO_WORDEXP -D_NO_POPEN.
312
313 2009-09-22  Ralf Corsépius <ralf.corsepius@rtems.org>
314
315         * configure.host (m32c): Move setting -DABORT_PROVIDED to second
316         "case $host".
317
318 2009-09-18  Christopher Faylor  <me+cygwin@cgf.cx>
319
320         * libc/include/sys/unistd.h: Declare getpagesize as returning
321         POSIX-mandated int.
322         * libc/sys/linux/sys/unistd.h: Ditto.
323
324 2009-08-31  Takaki Makino  <t@snowelm.com>
325
326         * libm/machine/i386/f_pow.c(_f_pow): Alter ASM so it works with
327         newer gcc versions.
328         * libm/maachine/i386/f_powf.c(_f_powf): Ditto.
329
330 2009-08-25  Andy Koppe  <andy.koppe@gmail.com>
331
332         * libc/stdlib/sb_charsets.c (__micro_atoi): Allow five-digit codepage
333         numbers.
334         * libc/locale/locale.c (loadlocale): Set MB_CUR_MAX to 1 for KOI8
335         charsets.
336         * libc/stdlib/local.h (__cp_conv): Remove incorrect number of codepages.
337
338 2009-08-24  Corinna Vinschen  <corinna@vinschen.de>
339
340         * libc/locale/locale.c: Update documentation.
341         (loadlocale): Map "KOI8-R" and "KOI8-U" to CP20866 and CP21866.
342
343 2009-08-24  Andy Koppe  <andy.koppe@gmail.com>
344
345         * libc/stdlib/sb_charsets.c (__cp_conv): Add KOI8-R (Russian, CP20866)
346         and KOI8-U (Ukrainian, CP21866) to Windows codepage conversion tables.
347         * libc/ctype/ctype_cp.h (__ctype_cp): Likewise for ctype tables.
348
349 2009-08-24  Andy Koppe  <andy.koppe@gmail.com>
350
351         * libc/ctype/iswspace.c (iswspace): Include "non-breaking
352         space" (U+00A0).
353         * libc/ctype/iswblank.c (iswblank): Likewise.
354
355 2009-08-21  Corinna Vinschen  <corinna@vinschen.de>
356
357         * libc/locale/locale.c (loadlocale): Throughout check charset string
358         case insensitive and store internal charset string uppercased.  Allow
359         "UTF8" additionally to "UTF-8".  Add this change to documentation.
360
361 2009-08-21  Eric Blake  <ebb9@byu.net>
362
363         * libc/include/iconv.h (iconv): Match POSIX prototype.
364         * libc/iconv/lib/iconv.c (iconv): Likewise.
365
366 2009-08-21  Craig Howland <howland@LGSInnovations.com>
367
368         * libm/common/s_remquo.c (remquo):  Fix sign of quotient when |x|==|y|.
369         * libc/stdio/mktemp.c:  Add #include <stdlib.h> for function prototypes.
370
371 2009-08-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
372
373         * iconvdata/Makefile.am (all): Remove.
374         * libc/sys/a29khif/Makefile.am (all-am): Rename from ...
375         (all): ... this.
376         * libc/sys/arc/Makefile.am: Likewise.
377         * libc/sys/arm/Makefile.am: Likewise.
378         * libc/sys/d10v/Makefile.am: Likewise.
379         * libc/sys/decstation/Makefile.am: Likewise.
380         * libc/sys/h8300hms/Makefile.am: Likewise.
381         * libc/sys/h8500hms/Makefile.am: Likewise.
382         * libc/sys/linux/Makefile.am: Likewise.
383         * libc/sys/linux/machine/i386/Makefile.am: Likewise.
384         * libc/sys/m88kbug/Makefile.am: Likewise.
385         * libc/sys/mmixware/Makefile.am: Likewise.
386         * libc/sys/netware/Makefile.am: Likewise.
387         * libc/sys/rdos/Makefile.am: Likewise.
388         * libc/sys/rtems/Makefile.am: Likewise.
389         * libc/sys/sh/Makefile.am: Likewise.
390         * libc/sys/sparc64/Makefile.am: Likewise.
391         * libc/sys/sun4/Makefile.am: Likewise.
392         * libc/sys/sysmec/Makefile.am: Likewise.
393         * libc/sys/sysnec810/Makefile.am: Likewise.
394         * libc/sys/sysnecv850/Makefile.am: Likewise.
395         * libc/sys/sysvi386/Makefile.am: Likewise.
396         * libc/sys/sysvnecv70/Makefile.am: Likewise.
397         * libc/sys/tic80/Makefile.am: Likewise.
398         * libc/sys/w65/Makefile.am: Likewise.
399         * libc/sys/z8ksim/Makefile.am: Likewise.
400         * iconvdata/Makefile.in: Regenerate.
401         * libc/sys/a29khif/Makefile.in: Likewise.
402         * libc/sys/arc/Makefile.in: Likewise.
403         * libc/sys/arm/Makefile.in: Likewise.
404         * libc/sys/d10v/Makefile.in: Likewise.
405         * libc/sys/decstation/Makefile.in: Likewise.
406         * libc/sys/h8300hms/Makefile.in: Likewise.
407         * libc/sys/h8500hms/Makefile.in: Likewise.
408         * libc/sys/linux/Makefile.in: Likewise.
409         * libc/sys/linux/machine/i386/Makefile.in: Likewise.
410         * libc/sys/m88kbug/Makefile.in: Likewise.
411         * libc/sys/mmixware/Makefile.in: Likewise.
412         * libc/sys/netware/Makefile.in: Likewise.
413         * libc/sys/rdos/Makefile.in: Likewise.
414         * libc/sys/rtems/Makefile.in: Likewise.
415         * libc/sys/sh/Makefile.in: Likewise.
416         * libc/sys/sparc64/Makefile.in: Likewise.
417         * libc/sys/sun4/Makefile.in: Likewise.
418         * libc/sys/sysmec/Makefile.in: Likewise.
419         * libc/sys/sysnec810/Makefile.in: Likewise.
420         * libc/sys/sysnecv850/Makefile.in: Likewise.
421         * libc/sys/sysvi386/Makefile.in: Likewise.
422         * libc/sys/sysvnecv70/Makefile.in: Likewise.
423         * libc/sys/tic80/Makefile.in: Likewise.
424         * libc/sys/w65/Makefile.in: Likewise.
425         * libc/sys/z8ksim/Makefile.in: Likewise.
426
427         * configure.in (newlib_cv_ldbl_eq_dbl): Rename cache variable
428         from newlib_ldbl_eq_dbl.
429         * configure: Regenerate.
430
431 2009-08-19  Eric Blake  <ebb9@byu.net>
432
433         * libc/Makefile.am (SUBDEFS): Correctly build popen docs.
434         * libc/libc.texinfo (Top): Add posix node to menu.
435
436 2009-08-18  Jeff Johnston  <jjohnstn@redhat.com>
437
438         * newlib.hin: Add comment regarding file being manually edited.
439         * Makefile.am: Add no-op rule for newlib.hin.
440         * Makefile.in: Regenerated.
441
442 2009-08-18  Jeff Johnston  <jjohnstn@redhat.com>
443
444         * acconfig.h: Add templates for _HAVE_LONG_DOUBLE and _LDBL_EQ_DBL.
445
446 2009-08-18  Eric Blake  <ebb9@byu.net>
447
448         * libc/posix/popen.c (popen): Fix documented prototype.
449
450         Improve popen compatibility with glibc.
451         * libc/posix/popen.c (popen): The 2006-08-22 change to use
452         FD_CLOEXEC disagrees with other implementations; instead, use
453         pidlist to work even when fcntl is not available.  Meanwhile,
454         support the 'e' modifier to set CLOEXEC, as in glibc.  Drop
455         cygwin-specific code, now that cygwin has its own version.
456         * libc/posix/Makefile.am (CHEWOUT_FILES): Document popen.
457         * libc/posix/posix.tex: New file.
458
459 2009-08-17  Craig Howland <howland@LGSInnovations.com>
460
461         * libc/string/wcsncpy.c (wcsncpy):  Re-write function based on small
462         version of strncpy() (fixing two bugs).
463
464 2009-08-13  Corinna Vinschen  <corinna@vinschen.de>
465
466         * libc/stdio/mktemp.c (mkdtemp): Fix typo in function name.
467
468 2009-08-12  Jeff Johnston  <jjohnstn@redhat.com>
469
470         * libc/stdio/mktemp.c (_gettemp): Do not call _mkdir_r unless
471         HAVE_MKDIR is defined.
472
473 2009-08-12  Hans-Peter Nilsson  <hp@axis.com>
474
475         * libc/include/reent.h: Add prototype and definition of _mkdir_r.
476         * libc/reent/Makefile.am (GENERAL_SOURCES): Add mkdirr.c.
477         (CHEWOUT_FILES): Add mkdirr.def.
478         * libc/reent/Makefile.in: Regenerate.
479         * libc/reent/mkdirr.c: New file.
480
481 2009-08-10  Jeff Johnston  <jjohnstn@redhat.com>
482
483         * libc/stdlib/wcstombs.c: Change documentation to specify size_t
484         return type instead of int.
485
486 2009-07-29  Jeff Johnston  <jjohnstn@redhat.com>
487
488         * libc/stdlib/a64l.c: Fix to use 'a' instead of 'A' in calculation
489         when a lower-case character is detected.
490
491 2009-07-29  Corinna Vinschen  <corinna@vinschen.de>
492
493         * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Rework UTF-16 surrogate
494         pair handling to be more bullet-proof even with incomplete UTF-8
495         sequences.  Add check for 4 byte sequences resulting in values
496         outside the valid Unicode range.  Add a comment to clarify checking
497         for invalid CESU-8 sequences.
498
499 2009-07-28  Corinna Vinschen  <corinna@vinschen.de>
500
501         * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Fix incrementing n in case
502         of handling incomplete sequences.
503
504 2009-07-22  Eric Blake  <ebb9@byu.net>
505
506         Avoid a fault from locking a closed standard file.
507         * libc/stdio/fflush.c (_fflush_r): Give up early if stream has
508         been previously closed.
509
510 2009-07-09  Craig Howland <howland@LGSInnovations.com>
511
512         * libm/math/ef_scalb.c:  Replace isnanf() (pre-C99 function call) with
513         isnan() (C99 macro).
514         * libm/math/wf_log.c:  Ditto.
515         * libm/math/wf_j0.c:  Ditto.
516         * libm/math/wf_sqrt.c:  Ditto.
517         * libm/math/wf_pow.c:  Ditto.
518         * libm/math/wf_fmod.c:  Ditto.
519         * libm/math/wf_remainder.c:  Ditto.
520         * libm/math/wf_scalb.c:  Ditto.
521         * libm/math/wf_atanh.c:  Ditto.
522         * libm/math/wf_cosh.c:  Ditto.
523         * libm/math/wf_acos.c:  Ditto.
524         * libm/math/wf_acosh.c:  Ditto.
525         * libm/math/wf_jn.c:  Ditto.
526         * libm/math/wf_log10.c:  Ditto.
527         * libm/math/wf_asin.c:  Ditto.
528         * libm/math/wf_j1.c:  Ditto.
529         * libm/common/sf_isnan.c:  Add #include <ieeefp.h>, fix comment.
530         * libm/common/sf_isinf.c:  Add #include <ieeefp.h>, adjust comment to
531         match that from s_isinf.c.
532         * libc/include/machine/ieeefp.h:  Simplify isinf and isnan macros to
533         remove un-necessary extension use (in a similar manner to as was
534         recently done in math.h).
535         * libc/include/math.h:  Remove isnanf and isinff prototypes (are in
536         ieeefp.h).
537         * libm/machine/spu/sf_isinf.c:  Fix comment (remove <math.h>).
538
539 2009-07-06  Joel Sherrill <joel.sherrill@oarcorp.com>
540
541         * libc/include/sys/features.h: Enable UNIX98 mutex attributes
542         for RTEMS.
543
544 2009-07-03  Eric Blake  <ebb9@byu.net>
545
546         Add mkdtemp, mkstemps.
547         * libc/stdio/mktemp.c: Fix documentation.
548         (_gettemp): Add domkdir and length parameters.  Check for
549         insufficient 'X' suffix.  Drop cygwin-specific code.
550         (_mkstemp_r, _mktemp_r, mkstemp, mktemp): Adjust clients.
551         (_mkdtemp_r, _mkstemps_r, mkdtemp, mkstemps): New functions.
552         * libc/include/stdlib.h (_mkdtemp_r, _mkstemps_r, mkdtemp)
553         (mkstemps): Declare them.
554
555         Add fpurge.
556         * libc/stdio/fpurge.c (fpurge, _fpurge_r): New file.
557         * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES, fpurge):
558         Build it.
559         * libc/stdio/Makefile.in: Regenerated.
560         * libc/include/stdio.h (fpurge, _fpurge_r): New declarations.
561         * libc/stdio/stdio.tex: Build documentation.
562
563 2009-06-23  Jeff Johnston  <jjohnstn@redhat.com>
564
565         * Makefile.am (MATHOBJS_IN_LIBC): Add s_fpclassify and
566         sf_fpclassify as these are now used for infinity testing.
567         * Makefile.in: Regenerated.
568
569 2009-06-19  Joel Sherrill <joel.sherrill@oarcorp.com>
570
571         * libc/sys/rtems/machine/param.h: Change ALIGNBYTES
572         so it can point to an aligned structure or double.
573
574 2009-06-18  Corinna Vinschen  <corinna@vinschen.de>
575
576         * libc/locale/locale.c (loadlocale): Add handling of "@cjknarrow"
577         modifier on _MB_CAPABLE targets.  Add comment to explain.  Improve
578         documentation.
579
580 2009-06-17  Michael Eager <eager@eagercon.com>
581
582         * libc/include/pthread.h: Support XMK (Xilinx) BSP, add RTEMS to
583         PTHREAD_MUTEX_NORMAL.
584         * libc/include/sys/features.h: Same.
585         * libc/include/sys/types.h: Same.
586
587 2009-06-16  Corinna Vinschen  <corinna@vinschen.de>
588
589         * libc/include/locale.h (struct lconv): Add missing members required
590         by POSIX.1-2008.
591         * libc/locale/locale.c (lconv): Initialize new members to default
592         values in "C" locale.
593
594 2009-06-16  Corinna Vinschen  <corinna@vinschen.de>
595
596         * libc/stdio/vfprintf.c (_VFPRINTF_R): Use actual length of
597         radix char instead of assuming length 1.
598         * libc/stdlib/gdtoa-gethex.c: Remove use of USE_LOCALE.
599         (gethex): Allow multibyte decimal point.
600         Fix compiler warnings due to different signedness of pointer types.
601         * libc/stdlib/strtod.c: Remove use of USE_LOCALE.
602         (_strtod_r): Allow multibyte decimal point.
603         * libc/stdlib/wcstod.c (_wcstod_r): Evaluate correct wide char
604         endptr position if the decimal point is a multibyte char.
605
606 2009-06-16  Craig Howland <howland@LGSInnovations.com>
607
608         * libc/ctype/local.h (__locale_charset): Add arguments to
609         prototype
610         * libc/stdlib/local.h (__locale_charset): Ditto.
611
612 2009-06-16  Craig Howland <howland@LGSInnovations.com>
613
614         * libc/include/math.h:  Simplify fpclassify, isinf, isnan, and signbit
615         macros to remove un-necessary extension use.  isinf and isnan also
616         changed to use fpclassify.  isfinite macro modified to run faster by
617         only calling fpclassify once instead of possibly twice.
618
619 2009-06-09  Corinna Vinschen  <corinna@vinschen.de>
620
621         * libc/ctype/tolower.c (tolower): Cast conversion result from
622         mbtowc/wctomb to unsigned char to avoid negative return values.
623         * libc/ctype/toupper.c (toupper): Ditto.
624
625 2009-06-03  IWAMURO Motonori  <deenheart@gmail.com>
626
627         * libc/string/wcwidth.c: Optimize for speed.
628
629 2009-06-03  Corinna Vinschen  <corinna@vinschen.de>
630
631         * libc/locale/locale.c (lc_ctype_cjk_lang): New static int.
632         (loadlocale): In case of setting LC_CTYPE, set lc_ctype_cjk_lang
633         to 1 if the language is "jp", "ko", or "zh", to 0 otherwise.
634         (__locale_cjk_lang): New function.
635         * libc/string/local.h (__locale_cjk_lang): Declare.
636         * libc/string/wcwidth.c: Fix comments.
637         (__wcwidth): Handle CJK Ambiguous Width characters according
638         to setting returned by __locale_cjk_lang.
639
640 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
641
642         * libc/include/sys/config.h: Remove specification of _REENT_SMALL for
643         thumb2.
644
645 2009-06-02  IWAMURO Motonori  <deenheart@gmail.com>
646
647         * libc/ctype/jp2uc.c: Skip all definition if defined __CYGWIN__.
648         (__jp2uc): Change the scope to static function.
649         * libc/ctype/local.h (_jp2uc): Define as macro if defined __CYGWIN__.
650         * libc/string/local.h (_jp2uc): Include ../ctype/local.h.
651
652 2009-05-27  Neal H. Walfield  <neal@gnu.org>
653
654         * libc/include/machine/setjmp.h (sigjmp_buf): Size according to
655         _JBTYPE and the size of sigset_t.
656
657 2009-05-15  Craig Howland <howland@LGSInnovations.com>
658
659         * configure.in:  Add configuration test for long double type existing
660         and set flag _HAVE_LONG_DOUBLE if true.  Fix INIT_ARRAY (.init_array)
661         and _LDBL_EQ_DBL tests to not link so that will work with
662         cross-compilers.
663         * configure: Regenerated.
664         * Makefile.in: Ditto.
665         * newlib.hin: Add _HAVE_LONG_DOUBLE flag.
666         * libc/include/math.h:  Change non-builtin defines for HUGE_VAL,
667         HUGE_VALF, and HUGE_VALL to be constant expressions.  Add definitions
668         for the non-builtin case for INFINITY and NAN.  Gate HUGE_VALL and
669         union __ldmath definitions with (new) _HAVE_LONG_DOUBLE.
670         *libm/common/s_infconst.c:  Change definitions to use values from
671         float.h instead of non-so-portable integer forms.  Mark as being
672         deprecated (because now removed from math.h, are not used anywhere
673         in Newlib, itself).
674
675 2009-05-15  Corinna Vinschen  <corinna@vinschen.de>
676
677         * libc/string/local.h: New file.
678         * libc/string/wcswidth.c (wcswidth):  Convert japanese wide
679         characters to Unicode here.  Handle surrogate pairs for UTF-16
680         systems.  Call __wcwidth rather than wcwidth.
681         * libc/string/wcwidth.c: New implementation using Markus Kuhn's
682         wcwidth implementation for Unicode.
683         (bisearch): New static function.
684         (__wcwidth): New function.  Take wint_t rather than wchar_t as
685         parameter to allow full Unicode handling on UTF-16 systems.
686         Move old wcwidth implementation here for non-multibyte aware
687         systems.
688         (wcwidth): Convert japanese wide characters to Unicode here.
689         Call __wcwidth rather than using iswprint/iswcntrl.
690
691 2009-05-14  Corinna Vinschen  <corinna@vinschen.de>
692
693         * libc/ctype/local.h (JP_JIS, JP_SJIS, JP_EUCJP): Move definition
694         to jp2uc.c.
695         (__jp2uc): Remove declaration.
696         (_jp2uc): Declare.
697         * libc/ctype/jp2uc.c (JP_JIS, JP_SJIS, JP_EUCJP): Define.
698         (__jp2uc): Remove Cygwin special case.
699         (_jp2uc): New function.  On Cygwin, just return c.
700         * libc/ctype/iswalpha.c (iswalpha): Just call _jp2uc.
701         * libc/ctype/iswblank.c (iswblank): Ditto.
702         * libc/ctype/iswcntrl.c (iswcntrl): Ditto.
703         * libc/ctype/iswprint.c (iswprint): Ditto.
704         * libc/ctype/iswpunct.c (iswpunt): Ditto.
705         * libc/ctype/iswspace.c (iswspace): Ditto.
706         * libc/ctype/towlower.c (towlower): Ditto.
707         * libc/ctype/towupper.c (towupper): Ditto.
708
709 2009-05-13  Paul Brook  <paul@codesourcery.com>
710
711         * libc/machine/arm/setjmp.S: Don't bother saving IP.  Copy SP to
712         IP before saving.  Likewise when restoring.
713
714 2009-05-13  Paul Brook  <paul@codesourcery.com>
715
716         * libc/machine/arm/setjmp.S: Add ARMv6-M implementation.
717
718 2009-05-13  Corinna Vinschen  <corinna@vinschen.de>
719
720         * libc/locale/locale.c (setlocale): Don't build on Cygwin.
721
722 2009-05-11  Craig Howland <howland@LGSInnovations.com>
723
724         * libm/machine/i386/f_llrint.c: Remove llrint() definition.
725         * libm/machine/i386/f_llrintf.c: Remove llrintf() definition.
726
727 2009-05-08  Nick Clifton  <nickc@redhat.com>
728
729         * MAINTAINERS: Add myself as a maintainer for the MN10300 and to
730         the write-after-approval list.
731
732 2009-04-30  Anthony Green  <green@moxielogic.com>
733
734         * MAINTAINERS: Add myself as moxie maintainer and to the
735         write-after-approval list.
736
737 2009-04-30  Eric Blake  <ebb9@byu.net>
738
739         Allow gcc warning for toupper even with extended charsets.
740         * libc/include/ctype.h (toupper, tolower)
741         [_MB_EXTENDED_CHARSETS_ISO]: Allow gcc warning when called with
742         'char' even when we must call the function for correct behavior.
743         [!_MB_EXTENDED_CHARSETS_ISO]: Fix regression in result type.
744
745 2009-04-24  Jeff johnston  <jjohnstn@redhat.com>
746
747         * libc/stdio/fgetc.c: Make sure sfp lock is acquired before the
748         file lock and released before the file lock to avoid a deadlock
749         scenario.
750         * libc/stdio/fgets.c: Ditto.
751         * libc/stdio/fgetwc.c: Ditto.
752         * libc/stdio/fgetws.c: Ditto.
753         * libc/stdio/fread.c: Ditto.
754         * libc/stdio/fseek.c: Ditto.
755         * libc/stdio/getc.c: Ditto.
756         * libc/stdio/getdelim.c: Ditto.
757         * libc/stdio/gets.c: Ditto.
758
759 2009-04-24  Jeff johnston  <jjohnstn@redhat.com>
760
761         * configure.in: Add configuration test for long double equals dbl
762         and set flag _LDBL_EQ_DBL if true.
763         * configure: Regenerated.
764         * newlib.hin: Add _LDBL_EQ_DBL flag.
765         * libc/include/math.h: Use _LDBL_EQ_DBL flag instead of
766         _HAVE_LDBL_MATH.
767         * libc/include/stdlib.h: Use _LDBL_EQ_DBL flag instead of
768         _HAVE_LDBL_STDLIB.
769         * libc/common/local.h: Remove _LDBL_EQ_DBL flag setting.
770         * libc/stdlib/local.h: Ditto.
771
772 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
773
774         * libc/include/stdint.h (UINTPTR_MAX): Define to __UINTPTR_MAX__
775         if __UINTPTR_MAX__ defined.
776
777 2009-04-24  Eric Blake  <ebb9@byu.net>
778
779         Be namespace clean in ctype.h.
780         * libc/include/ctype.h (_tolower, _toupper, isalpha, isupper)
781         (islower, isdigit, isxdigit, isspace, ispunct, isalnum)
782         (isprint, isgraph, iscntrl, isblank, toupper, tolower)
783         (isascii, toascii): Don't use 'c' as macro parameter name.
784
785         Trigger gcc warning if isFoo macros are called with plain char.
786         * libc/include/ctype.h (isalpha, isupper, islower, isdigit)
787         (isxdigit, isspace, ispunct, isalnum, isprint, isgraph)
788         (iscntrl, isblank, toupper, tolower): Rewrite to let 'gcc -Wall'
789         warn when user calls macro with a char argument.
790
791 2009-04-23  Mike Burgess  <wizardsguild@earthlink.net>
792
793         * libc/string/strcasecmp.c: Optimized rewrite.
794         * libc/string/strncasecmp.c: Fix description.
795         * libc/string/strlwr.c: Avoid passing signed char to tolower.
796         * libc/string/strupr.c: Avoid passing signed char to tolower.
797
798 2009-04-23  Paul Brook  <paul@codesourcery.com>
799             Kazu Hirata  <kazu@codesourcery.com>
800
801         * libc/stdlib/__atexit.c (__register_exitproc): Use weak reference
802         to malloc.  Allocate dynamically only if it is present.
803         * libc/stdlib/__call_atexit.c (__call_exitprocs): Use weak
804         reference to free.  Call free only if it is present.
805
806 2009-04-22 Anthony Green <green@moxielogic.com>
807
808         * configure.host: Add moxie support.
809         * libc/machine/configure.in: Add moxie support.
810         * libc/machine/configure: Rebuilt.
811         * libc/machine/moxie/aclocal.m4: New file.
812         * libc/machine/moxie/configure: New file.
813         * libc/machine/moxie/configure.in: New file.
814         * libc/machine/moxie/Makefile.am: New file.
815         * libc/machine/moxie/Makefile.in: New file.
816         * libc/machine/moxie/setjmp.S: New file.
817         * libc/include/machine/setjmp.h (_JBLEN): Define for moxie.
818         * libc/include/machine/ieeefp.h: Add moxie support.
819
820 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
821
822         * libc/stdio/local.h (__chclass, __state_table, __action_table):
823         Add extern to the declarations.
824         * libc/stdlib/local.h (__iso_8859_conv, __cp_conv): Likewise.
825
826 2009-04-21  Corinna Vinschen  <corinna@vinschen.de>
827
828         * libc/ctype/ctype_.c (_CTYPE_DATA_128_255): Rename from
829         _CTYPE_DATA_128_256.
830         * libc/ctype/ctype_cp.h: Split off all character class values for
831         character 255 from the rest of the definitions.
832         (__ctype_cp): Use the new definitions.  Make sure that the table
833         always contains 0 for EOF (-1).
834         * libc/ctype/ctype_iso.h: Ditto.
835
836 2009-04-21  Sandra Loosemore  <sandra@codesourcery.com>
837
838         * libc/reent/impure.c (__sf_fake_stdin, __sf_fake_stdout)
839         (__sf_fake_stderr): Declare locally with weak attribute.
840
841 2009-04-21  Mark Mitchell  <mark@codesourcery.com>
842
843         * libc/include/_ansi.h: Move C++ defines to top of file.
844         (_NOTHROW): New macro.
845         (_EXFUN_NOTHROW): Likewise.
846         * libc/include/stdlib.h (calloc): Declare with _EXFUN_NOTHROW.
847         (free): Likewise.
848         (malloc): Likewise.
849         (realloc): Likewise.
850         (_malloc_r): Likewise.
851         (_callor_r): Likewise.
852         (_free_r): Likewise.
853         (_realloc_r): Likewise.
854
855 2009-04-20  Jeff johnston  <jjohnstn@redhat.com>
856
857         * libc/include/math.h: Change _LDBL_EQ_DBL flag usage to
858         be _HAVE_LDBL_MATH.
859         * libc/include/stdlib.h: Change _LDBL_EQ_DBL flag usage to
860         be _HAVE_LDBL_STDLIB.
861
862 2009-04-17  Jeff johnston  <jjohnstn@redhat.com>
863
864         * libc/include/machine/ieeefp.h (_LDBL_EQ_DBL): Remove.
865         * libc/stdlib/local.h (_LDBL_EQ_DBL): Add.
866         * libc/stdlib/strtold.c: Include local.h.
867         * libc/stdlib/wcstold.c: Likewise.
868         * libm/common/atanl.c: Likewise.
869         * libm/common/cosl.c: Likewise.
870         * libm/common/sinl.c: Likewise.
871         * libm/common/modfl.c: Likewise.
872         * libm/common/frexpl.c: Likewise.
873         * libm/common/tanhl.c: Likewise.
874         * libm/common/tanl.c: Likewise.
875         * libm/common/expm1l.c: Likewise.
876         * libm/common/log1pl.c: Likewise.
877         * libm/common/ceill.c: Likewise.
878         * libm/common/fabsl.c: Likewise.
879         * libm/common/floorl.c: Likewise.
880         * libm/common/acosl.c: Likewise.
881         * libm/common/asinl.c: Likewise.
882         * libm/common/atan2l.c: Likewise.
883         * libm/common/coshl.c: Likewise.
884         * libm/common/expl.c: Likewise.
885         * libm/common/fmodl.c: Likewise.
886         * libm/common/hypotl.c: Likewise.
887         * libm/common/ldexpl.c: Likewise.
888         * libm/common/log10l.c: Likewise.
889         * libm/common/logl.c: Likewise.
890         * libm/common/powl.c: Likewise.
891         * libm/common/sqrtl.c: Likewise.
892         * libm/common/copysignl.c: Likewise.
893         * libm/common/ilogbl.c: Likewise.
894         * libm/common/nanl.c: Likewise.
895         * libm/common/cbrtl.c: Likewise.
896         * libm/common/asinhl.c: Likewise.
897         * libm/common/nextafterl.c: Likewise.
898         * libm/common/rintl.c: Likewise.
899         * libm/common/scalbnl.c: Likewise.
900         * libm/common/exp2l.c: Likewise.
901         * libm/common/fdiml.c: Likewise.
902         * libm/common/fmal.c: Likewise.
903         * libm/common/fmaxl.c: Likewise.
904         * libm/common/fminl.c: Likewise.
905         * libm/common/lrintl.c: Likewise.
906         * libm/common/lroundl.c: Likewise.
907         * libm/common/nearbyintl.c: Likewise.
908         * libm/common/remquol.c: Likewise.
909         * libm/common/roundl.c: Likewise.
910         * libm/common/scalblnl.c: Likewise.
911         * libm/common/truncl.c: Likewise.
912         * libm/common/acoshl.c: Likewise.
913         * libm/common/atanhl.c: Likewise.
914         * libm/common/erfcl.c: Likewise.
915         * libm/common/erfl.c: Likewise.
916         * libm/common/lgammal.c: Likewise.
917         * libm/common/remainderl.c: Likewise.
918         * libm/common/tgammal.c: Likewise.
919         * libm/common/sinhl.c: Likewise.
920         * libm/common/llroundl.c: Likewise.
921         * libm/common/llrintl.c: Likewise.
922         * libm/common/local.h: New file with _LDBL_EQ_DBL macro.
923
924 2009-04-17  Ken Werner  <ken.werner@de.ibm.com>
925
926         * libc/include/machine/ieeefp.h: _LDBL_EQ_DBL check fixed.
927         * libc/include/math.h (llrintl): Declare.
928         * libm/common/llrintl.c: New File.
929         * libm/common/Makefile.am: New File added.
930         * libm/common/Makefile.in: Regenerate.
931
932 2009-04-17  Ken Werner  <ken.werner@de.ibm.com>
933
934         * libc/configure.in: Change AC_TRY_COMPILE to AC_TRY_COMMAND to
935         avoid executable test.
936         * libc/configure: Regenerate.
937
938 2009-04-17  Jeff johnston  <jjohnstn@redhat.com>
939
940         * configure.in: Remove _HAVE_ARRAY_ALIASING check.
941         * configure: Regenerated.
942         * Makefile.in: Regenerated.
943         * newlib.hin: Remove _HAVE_ARRAY_ALIASING flag.
944         * libc/ctype/ctype_.c: Do not check for _HAVE_ARRAY_ALIASING.
945         * libm/configure.in: Change AC_TRY_COMPILE to AC_TRY_COMMAND to
946         avoid executable test.
947         * libm/configure: Regenerated.
948
949 2009-04-16  Jeff johnston  <jjohnstn@redhat.com>
950
951         * libc/misc/init.c (__libc_fini_array): Process fini_array in
952         reverse order as compliant with the ELF specification.
953
954 2009-04-16  Ken Werner  <ken.werner@de.ibm.com>
955
956         * libc/machine/spu/Makefile.am: Add new File.
957         * libc/machine/spu/Makefile.in: Regenerate.
958         * libc/machine/spu/fdopen.c: New file.
959
960 2009-04-16  Hans-Peter Nilsson  <hp@axis.com>
961
962         * libc/include/stdint.h (INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX): Define.
963
964 2009-04-16  Ken Werner  <ken.werner@de.ibm.com>
965
966         * libm/libm.texinfo: Add long double function support chapter.
967         * libc/include/machine/ieeefp.h: Add _LDBL_EQ_DBL define.
968         * libc/include/stdlib.h: Include <machine/ieeefp.h>.
969         (strtold, wcstold): Declare.
970         * libc/stdlib/strtold.c: New File.
971         * libc/stdlib/wcstold.c: Likewise.
972         * libc/configure.in: Add long double check.
973         * libc/configure: Regenerate.
974         * libc/stdlib/Makefile.am: Add strtold.c and wcstold.c.
975         * libc/stdlib/Makefile.in: Regenerate.
976         * libc/include/math.h (atanl, cosl, sinl, tanl, tanhl): Declare.
977         (frexpl, modfl, ceill, fabsl, floorl, log1pl, expm1l, acosl): Ditto.
978         (asinl, atan2l, coshl, sinhl, expl, ldexpl, logl, log10l, powl): Ditto.
979         (sqrtl, fmodl, hypotl, copysignl, nanl, ilogbl, asinhl, cbrt): Ditto.
980         (nextafterl, rintl, scalbnl, exp2l, scalblnl, tgammal): Ditto.
981         (nearbyintl, lrintl, llrintl, roundl, lroundl, llround): Ditto.
982         (llroundl, truncl, remquol, fdiml, fmaxl, fminl, fmal, acoshl): Ditto.
983         (atanhl, remainderl, lgammal, erfl, erfcl): Ditto.
984         * libm/common/atanl.c: New File.
985         * libm/common/cosl.c: Likewise.
986         * libm/common/sinl.c: Likewise.
987         * libm/common/modfl.c: Likewise.
988         * libm/common/frexpl.c: Likewise.
989         * libm/common/tanhl.c: Likewise.
990         * libm/common/tanl.c: Likewise.
991         * libm/common/expm1l.c: Likewise.
992         * libm/common/log1pl.c: Likewise.
993         * libm/common/ceill.c: Likewise.
994         * libm/common/fabsl.c: Likewise.
995         * libm/common/floorl.c: Likewise.
996         * libm/common/acosl.c: Likewise.
997         * libm/common/asinl.c: Likewise.
998         * libm/common/atan2l.c: Likewise.
999         * libm/common/coshl.c: Likewise.
1000         * libm/common/expl.c: Likewise.
1001         * libm/common/fmodl.c: Likewise.
1002         * libm/common/hypotl.c: Likewise.
1003         * libm/common/ldexpl.c: Likewise.
1004         * libm/common/log10l.c: Likewise.
1005         * libm/common/logl.c: Likewise.
1006         * libm/common/powl.c: Likewise.
1007         * libm/common/sqrtl.c: Likewise.
1008         * libm/common/copysignl.c: Likewise.
1009         * libm/common/ilogbl.c: Likewise.
1010         * libm/common/nanl.c: Likewise.
1011         * libm/common/cbrtl.c: Likewise.
1012         * libm/common/asinhl.c: Likewise.
1013         * libm/common/nextafterl.c: Likewise.
1014         * libm/common/rintl.c: Likewise.
1015         * libm/common/scalbnl.c: Likewise.
1016         * libm/common/exp2l.c: Likewise.
1017         * libm/common/fdiml.c: Likewise.
1018         * libm/common/fmal.c: Likewise.
1019         * libm/common/fmaxl.c: Likewise.
1020         * libm/common/fminl.c: Likewise.
1021         * libm/common/lrintl.c: Likewise.
1022         * libm/common/lroundl.c: Likewise.
1023         * libm/common/nearbyintl.c: Likewise.
1024         * libm/common/remquol.c: Likewise.
1025         * libm/common/roundl.c: Likewise.
1026         * libm/common/scalblnl.c: Likewise.
1027         * libm/common/truncl.c: Likewise.
1028         * libm/common/acoshl.c: Likewise.
1029         * libm/common/atanhl.c: Likewise.
1030         * libm/common/erfcl.c: Likewise.
1031         * libm/common/erfl.c: Likewise.
1032         * libm/common/lgammal.c: Likewise.
1033         * libm/common/remainderl.c: Likewise.
1034         * libm/common/tgammal.c: Likewise.
1035         * libm/common/sinhl.c: Likewise.
1036         * libm/common/llroundl.c: Likewise.
1037         * libm/configure.in: Add long double check.
1038         * libm/configure: Regenerate.
1039         * libm/common/Makefile.am: Add new files.
1040         * libm/common/Makefile.in: Regenerate.
1041
1042 2009-04-09  Corinna Vinschen  <corinna@vinschen.de>
1043
1044         * libc/ctype/ctype_.c (_CTYPE_DATA_0_127): Remove _B flag from TAB.
1045         * libc/ctype/ctype_cp.h: Mark non-cased letters in tables for codepages
1046         720, 862, 874, 1255, and 1256 to _U|_L.  Fix a couple of incorrect
1047         class mappings.
1048         * libc/ctype/ctype_iso.h: Mark non-cased letters in ISO-8859 tables
1049         6, 8, and 11 to _U|_L.  Fix a couple of incorrect class mappings.
1050         * libc/ctype/isblank.c (isblank): Special case TAB.
1051         * libc/ctype/islower.c (islower): Check explicitely for _L flag only
1052         in (_U|_L).
1053         * libc/ctype/isupper.c (isupper): Ditto, but check for _U flag.
1054         * libc/include/ctype.h (islower): Same in macro.
1055         (isupper): Ditto.
1056         (isblank): Special case TAB.  Redefine macro for GCC only.
1057
1058 2009-04-09  Corinna Vinschen  <corinna@vinschen.de>
1059
1060         * libc/stdlib/local.h (__mbtowc): Declare extern.
1061         (__wctomb): Ditto.
1062
1063 2009-04-09  Corinna Vinschen  <corinna@vinschen.de>
1064
1065         * libc/stdlib/mbctype.h (_iseucjp1): Like _iseucjp, but also
1066         recognizes 0x8e and 0x8f lead bytes.
1067         (_iseucjp2): Rename from _iseucjp.
1068         * libc/stdlib/mbtowc_r.c (__eucjp_mbtowc): Convert JIS-X-0212
1069         triplebyte sequences as well.
1070         * libc/stdlib/wctomb_r.c (__eucjp_wctomb): Convert to JIS-X-0212
1071         triplebyte sequences as well.
1072
1073 2009-04-08  Ken Werner  <ken.werner@de.ibm.com>
1074
1075         * configure.in: Add square brackets for the array aliasing conftest.
1076         * configure: Regenerate.
1077
1078 2009-04-06  Mike Burgess  <wizardsguild@earthlink.net>
1079
1080         * libc/string/strncasecmp.c: Optimized rewrite.
1081
1082 2009-04-06  Ken Werner  <ken.werner@de.ibm.com>
1083
1084         * libc/include/sys/features.h: Undefine _POSIX_TIMERS for spu.
1085         * libc/include/machine/time.h (nanosleep): Declare.
1086
1087 2009-04-06  Corinna Vinschen  <corinna@vinschen.de>
1088
1089         * libc/locale/locale.c (loadlocale): Set mbc_max to 3 for EUCJP.
1090
1091 2009-04-04  Corinna Vinschen  <corinna@vinschen.de>
1092
1093         * libc/stdlib/wcstombs.c: Fix datatypes in documentation.
1094
1095 2009-04-04  Corinna Vinschen  <corinna@vinschen.de>
1096
1097         * libc/include/stdio.h (_ELIDABLE_INLINE): Move definition from here...
1098         * libc/include/_ansi.h (_ELIDABLE_INLINE): ..to here.
1099
1100 2009-04-03  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
1101
1102         * libc/include/stdio.h [__SCLE] (__sgetc_r): Prototype before define
1103         to avoid a warning with -Wmissing-prototypes.
1104
1105 2009-04-03  Ken Werner  <ken.werner@de.ibm.com>
1106
1107         * libc/machine/spu/mmap_ea.c (mmap_ea): Check length argument.
1108
1109 2009-04-03  Ken Werner  <ken.werner@de.ibm.com>
1110
1111         * libc/machine/spu/sys/linux_syscalls.h: include <sys/types.h>
1112         (linux_getpid, linux_gettid): Declare.
1113
1114 2009-04-03  Ken Werner  <ken.werner@de.ibm.com>
1115
1116         * libc/machine/spu/spu-gmon.c: Tweaks to support simultaneous SPU
1117         profiling.
1118
1119 2009-04-03  Ken Werner  <ken.werner@de.ibm.com>
1120
1121         * libc/include/math.h: Remove duplicate copysign prototype.
1122         Fix __math_68881 define typo.  Guard functions of the rint family.
1123
1124 2009-04-03  Craig Howland <howland@LGSInnovations.com>
1125
1126         * libm/common/s_llrint.c: New file, implementing llrint().
1127         * libm/common/sf_llrint.c: New file, implementing llrintf().
1128         * libm/common/Makefile.am:  Add s_llrint.c (src); sf_llrint.c (fsrc).
1129         * libm/common/Makefile.in:  Regenerate.
1130
1131 2009-04-02  Corinna Vinschen  <corinna@vinschen.de>
1132
1133         * libc/ctype/ctype_c.c: Move inclusion of ctype_iso.h and
1134         ctype_cp.h out of ALLOW_NEGATIVE_CTYPE_INDEX case.
1135         (__ctype_ptr__): Constify in !_MB_CAPABLE case.  Otherwise,
1136         de-constify in !ALLOW_NEGATIVE_CTYPE_INDEX case, too.  Add comment.
1137         (__set_ctype): Set __ctype_ptr__ pointer according to definition
1138         of ALLOW_NEGATIVE_CTYPE_INDEX.
1139         * libc/include/ctype.h (__ctype_ptr__): Constify in !_MB_CAPABLE case.
1140
1141 2009-03-31  Corinna Vinschen  <corinna@vinschen.de>
1142
1143         * libc/ctype/Makefile.am: Remove _tolower.c and _toupper.c
1144         source files.  Add a dependency rule for ctype_o to note
1145         changes in ctype_iso.h and ctype_cp.h.
1146         * libc/ctype/Makefile.in: Regenerate.
1147         * libc/ctype/_tolower.c: Remove file.
1148         * libc/ctype/_toupper.c: Remove file.
1149         * libc/ctype/ctype_.c: Make sure ALLOW_NEGATIVE_CTYPE_INDEX
1150         is always defined on Cygwin.
1151         (_ctype_b): Don't make `static const' on Cygwin.
1152         (ctype_iso.h): Include if _MB_EXTENDED_CHARSETS_ISO is set.
1153         (ctype_cp.h): Include if _MB_EXTENDED_CHARSETS_WINDOWS is set.
1154         (__ctype_ptr): Drop definition.
1155         (__ctype_ptr__): De-constify.  Mark as __EXPORT symbol.
1156         (_ctype_): Add Cygwin-specifc asm define.
1157         (__set_ctype): New function to set __ctype_ptr__ according to
1158         current charset.
1159         * libc/ctype/ctype_cp.h: New file containing Windows codepage
1160         specific character class tables.
1161         * libc/ctype/ctype_iso.h: New file containing ISO-8859-x
1162         specific character class tables.
1163         * libc/ctype/tolower.c (tolower): Reimplement to support any singlebyte
1164         charset if one of the extended charsets is enabled.
1165         * libc/ctype/toupper.c (toupper): Ditto.
1166         * libc/include/ctype.h (_tolower): Define as macro per POSIX.
1167         (_toupper): Ditto.
1168         (__ctype_ptr__): De-constify.
1169         (toupper): Disable macro on systems supporting extended charsets.
1170         (tolower): Ditto.
1171         * libc/include/sys/config.h (__EXPORT): Define empty if not defined.
1172         * libc/locale/locale.c (__mb_cur_max): Mark as __EXPORT symbol.
1173         (__set_ctype): Declare unconditionally.
1174         (loadlocale): Remove __CYGWIN__ guard around __set_ctype call.
1175
1176 2009-03-26  Corinna Vinschen  <corinna@vinschen.de>
1177
1178         * libc/locale/locale.c (loadlocale): Revert to charset "GBK" instead
1179         of "GB2312".  Fix documentation accordingly.
1180
1181 2009-03-26  Corinna Vinschen  <corinna@vinschen.de>
1182
1183         * libc/ctype/ctype_.c (_CTYPE_DATA_0_127): Mark TAB as blank character.
1184         * libc/ctype/isblank.c: Replace hardcoded test with test for having _B
1185         marker in ctype array.
1186         * libc/include/ctype.h (isblank): Add macro.
1187
1188 2009-03-25  Craig Howland <howland@LGSInnovations.com>
1189
1190         * libc/include/math.h:  (llround, llroundf): Declare.
1191         * libm/common/s_llround.c: New file, implementing llround().
1192         * libm/common/sf_llround.c: New file, implementing llroundf().
1193         * libm/common/sf_lround.c: Remove spurious cast in _DOUBLE_IS_32BITS
1194         version of function.
1195         * libm/common/sf_lrint.c: Ditto.
1196         * libm/common/sf_logb.c:  Corrected return for subnormal argument
1197         by replacing existing function with a version created from sf_ilogb.c.
1198         * libm/common/s_logb.c: Ditto, except starting point s_ilogb.c.  Also
1199         added documentation for logb() and logbf().
1200         * libm/common/s_signbit.c:  Add signbit() documentation.
1201         * libm/common/s_log2.c: Update return values to match what w_log2.c has,
1202         since log2 uses log(); add note about being derived instead of direct.
1203         * libm/common/sf_fma.c: Add casts to attempt to get correct results,
1204         as well as comments pointing out problems with the implementation.
1205         * libm/common/s_fma.c: Add fma() and fmaf() documentation.
1206         * libm/common/sf_remquo.c: Incorrect quotient returns for large values
1207         corrected by discarding existing function and replacing with Sun
1208         verion, with some enhancements.
1209         * libm/common/s_remquo.c: Ditto.  Add remquo() and remquof()
1210         documentation.
1211         * libm/common/s_fmax.c: Add fmax() and fmaxf() documentation.
1212         * libm/common/s_fmin.c: Add fmin() and fminf() documentation.
1213         * libm/common/s_fdim.c: Return NAN for NAN arg, add fdim() and fdimf()
1214         documentation.
1215         * libm/common/sf_fdim.c: Return NAN for NAN arg, HUGE_VALF for inf arg.
1216         * libm/common/s_trunc.c: Add trunc() and truncf() documentation.
1217         * libm/common/s_rint.c: Add rint() and rintf() documentation.
1218         * libm/common/s_round.c: Add round() and roundf() documentation.
1219         * libm/common/s_scalbn.c: Add scalbln() and scalblnf() documentation.
1220         * libm/common/s_infinity.c: Add infinity() and infinityf()
1221         documentation.
1222         * libm/common/s_lround.c: Add lround(), lroundf(), llround(), and
1223         llroundf() documentation.
1224         * libm/common/s_lrint.c: Add lrint(), lrintf(), llrint(), and llrintf()
1225         documentation.
1226         * libm/common/isgreater.c: New file for documenting math.h function-like
1227         macros isgreater(), isgreaterequal(), isless(), islessequal(),
1228         islessgreater(), and isunordered().
1229         * libm/common/s_isnan.c: Add documentation for function-like macros
1230         fpclassify(), isfinite(), isinf(), isnan(), and isnormal().
1231         * libm/common/s_nearbyint.c: Add nearbyint() and nearbyintf()
1232         documentation.
1233         * libm/common/Makefile.am: Add s_llround.c (src); sf_llround.c (fsrc);
1234         s_fdim.def, s_fma.def, s_fmax.def, s_fmin.def,
1235         s_logb.def, s_lrint.def, s_lround.def, s_nearbyint.def, s_remquo.def,
1236         s_rint.def, s_round.def, s_signbit.def, s_trunc.def, and
1237         isgreater.def (chobj);
1238         re-name all existing chew files (chobj) to match source file base
1239         names (put in underscores), delete all special targets for chew files
1240         (leaving all to be generated by rule).
1241         * libm/common/Makefile.in: regenerate.
1242         * libm/math/w_exp2.c: Add "base 2" to documentation description (and
1243         delete TRAD_SYNOPSIS).
1244         * libm/math/w_gamma.c: Add tgamma() and tgammaf() documentation, along
1245         with some history behind the function names.
1246         * libm/math/math.tex: Add includes for newly-added documentation (see
1247         .def additions to common/Makefile.am and math/Makefile.am in this
1248         ChangeLog list), adjusted existing .def file names to match source file
1249         base names (added underscores); add mention of HUGE_VALF; rename
1250         "Version of library" section to "Error Handling" and add some text
1251         about floating-point exception; added section "Standards Compliance And
1252         Portability".
1253         * libm/math/Makefile.am: Add w_exp2.def (chobj);
1254         re-name all existing chew files (chobj) to match source file base
1255         names, delete all special targets for chew files (leaving all to be
1256         generated by rule).
1257         * libm/math/Makefile.in: regenerated
1258         * doc/makedoc.c: Change silent ignoring of commands < 5 characters
1259         to a failure when reading macro file for commands < 4 characters;
1260         add -v (verbose) option for printing some debugging information;
1261         get rid of spurious translation of "@*" to "*" (no source files used @*,
1262         so no existing doc pages were affected); clean up some compiler
1263         warnings.
1264         * doc/doc.str: add BUGS and SEEALSO sections (to match texi2pod.pl
1265         which has them); Remove ITEM command (redundant with makedoc built-in
1266         "o", not used in any present source file so nothing is lost, anyway).
1267         * HOWTO: New file to hold information for maintainers regarding how
1268         to do things.  Initial sections on documentation and ELIX levels.
1269
1270 2009-03-25  Richard Earnshaw  <rearnsha@arm.com>
1271
1272         * libc/machine/arm/strcmp.c (strcmp_unaligned): Correctly
1273         detect the nul-byte in a big-endian string.
1274
1275 2009-03-25  Jeff Johnston  <jjohnstn@redhat.com>
1276
1277         * libc/string/wcsdup.c: Fix documentation error.
1278         * libc/string/Makefile.am: Fix CHEWOUT files to contain
1279         wcsdup.def rather than wcsdup.
1280         * libc/string/Makefile.in: Regenerated.
1281
1282 2009-03-25  Corinna Vinschen  <corinna@vinschen.de>
1283
1284         * libc/locale/locale.c (loadlocale): Only change __wctomb and __mbtowc
1285         pointers if category is LC_CTYPE.
1286
1287 2009-03-25  Corinna Vinschen  <corinna@vinschen.de>
1288
1289         * libc/locale/locale.c (loadlocale): Rename charset "GBK" to
1290         "GB2312".  Fix documentation accordingly.
1291
1292 2009-03-24  Corinna Vinschen  <corinna@vinschen.de>
1293
1294         * libc/locale/locale.c (loadlocale): Rename charset "CP949" to
1295         "eucKR".  Fix documentation accordingly.
1296
1297 2009-03-24  Corinna Vinschen  <corinna@vinschen.de>
1298
1299         * libc/locale/locale.c (loadlocale): Allow charset starting with 'e'
1300         for "eucJP" charset support.
1301
1302 2009-03-24  Jeff Johnston  <jjohnstn@redhat.com>
1303
1304         * libc/include/sys/errno.h: Move EFTYPE to general usage because
1305         it is used in libc/search.
1306
1307 2009-03-24  Corinna Vinschen  <corinna@vinschen.de>
1308
1309         * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on
1310         _MB_CAPABLE systems.
1311         * libc/ctype/iswblank.c: Ditto.
1312         * libc/ctype/iswcntrl.c: Ditto.
1313         * libc/ctype/iswprint.c: Ditto.
1314         * libc/ctype/iswpunct.c: Ditto.
1315         * libc/ctype/iswspace.c: Ditto.
1316         * libc/ctype/jp2uc.c (__jp2uc): On Cygwin, just return c.
1317         Explain why.
1318         * libc/ctype/towlower.c: Ditto.
1319         * libc/ctype/towupper.c: Ditto.
1320         * libc/include/sys/config.h: Define _MB_EXTENDED_CHARSETS_ISO
1321         and _MB_EXTENDED_CHARSETS_WINDOWS if _MB_EXTENDED_CHARSETS_ALL is
1322         defined.  Define _MB_EXTENDED_CHARSETS_ALL on Cygwin only for now.
1323         * libc/include/sys/reent.h (struct _reent): Mark _current_category
1324         and _current_locale as unused.
1325         * libc/locale/locale.c: Add new charset support to documentation.
1326         Include ../stdio/local.h from here.
1327         (lc_ctype_charset): Set to "ASCII" by default.
1328         (lc_message_charset): Ditto.
1329         (_setlocale_r): Don't set _current_category and _current_locale.
1330         (loadlocale): Add Cygwin codepage support.  On _MB_CAPABLE
1331         systems, set __mbtowc and __wctomb function pointers to function
1332         corresponding with current charset.  Don't allow non-existant
1333         ISO-8859-12 charset.  Add support for Windows singlebyte codepages.
1334         On Cygwin, add support for GBK, CP949, and BIG5.  On Cygwin,
1335         call __set_ctype() in case the catorgy is LC_CTYPE.  Don't set
1336         _current_category and _current_locale.
1337         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add sb_charsets.c.
1338         * libc/stdlib/Makefile.in: Regenerate.
1339         * libc/stdlib/local.h: Add prototype for __locale_charset.
1340         Add prototypes for __mbtowc and __wctomb pointers.
1341         Add prototypes for charset-specific _wctomb_r and _mbtowc_r
1342         functions.
1343         Declare tables and functions from sb_charsets.c.
1344         * libc/stdlib/mbtowc_r.c (__mbtowc): Define.  Set to __ascii_mbtowc
1345         by default.
1346         (_mbtowc_r): Just call __mbtowc from here.
1347         (__ascii_mbtowc): New function.
1348         (__iso_mbtowc): New function.
1349         (__cp_mbtowc): New function.
1350         (__utf8_mbtowc): New function.
1351         (__sjis_mbtowc): New function.  Disable on Cygwin.
1352         (__eucjp_mbtowc): New function.  Disable on Cygwin.
1353         (__jis_mbtowc): New function.  Disable on Cygwin.
1354         * libc/stdlib/sb_charsets.c: New file, adding singlebyte to UTF
1355         conversion tables for all ISO and CP charsets.
1356         (__iso_8859_index): New function.
1357         (__cp_index): New function.
1358         * libc/stdlib/wctomb_r.c (__wctomb): Define.  Set to __ascii_wctomb
1359         by default.
1360         (_wctomb_r): Just call __wctomb from here.
1361         (__ascii_wctomb): New function.
1362         (__utf8_wctomb): New function.
1363         (__sjis_wctomb): New function.  Disable on Cygwin.
1364         (__eucjp_wctomb): New function.  Disable on Cygwin.
1365         (__jis_wctomb): New function.  Disable on Cygwin.
1366         (__iso_wctomb): New function.
1367         (__cp_wctomb): New function.
1368
1369 2009-03-23  Richard Earnshaw  <rearnsha@arm.com>
1370
1371         * libc/machine/arm/strcmp.c (strcmp): Treat char as unsigned.
1372
1373 2009-03-23  Corinna Vinschen  <corinna@vinschen.de>
1374
1375         * libc/locale/locale.c (loadlocale): Fix typo in language and
1376         territory evaluation.
1377
1378 2009-03-20  Jeff Johnston  <jjohnstn@redhat.com>
1379
1380         * libc/include/sys/errno.h: Protect various non-standard errnos
1381         with either __LINUX_ERRNO_EXTENSIONS__ or __CYGWIN__.
1382         * libc/include/sys/config.h[__CYGWIN__]: Define
1383         __LINUX_ERRNO_EXTENSIONS__.
1384
1385 2009-03-19  Corinna Vinschen  <corinna@vinschen.de>
1386
1387         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Return EILSEQ in case of an
1388         invalid character sequence.
1389
1390         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Fix compiler warning due to
1391         missing declaration of __locale_charset.
1392         * libc/stdlib/wctomb_r.c (_wctomb_r): Ditto.
1393
1394 2009-03-18  Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
1395
1396         * libm/common/s_log2.c: New file.
1397         * libm/common/sf_log2.c: Ditto.
1398         * libm/common/Makefile.am: Add s_log2.c and sf_log2.c.
1399         * libm/common/Makefile.in: Regenerated.
1400         * libc/include/math.h: Add log2 and log2f function prototypes.
1401
1402 2009-03-17  Corinna Vinschen  <corinna@vinschen.de>
1403
1404         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): Handle NULL destination
1405         string correctly.
1406
1407 2009-03-16  Mark Mitchell  <mark@codesourcery.com>
1408
1409         * libc/machine/arm/strlen.c (strlen): Fix defect in Thumb-2 mode.
1410
1411 2009-03-16  Richard Earnshaw  <rearnsha@arm.com>
1412
1413         * libc/machine/arm/strlen.c (strlen): Correctly detect
1414         end-of-string.
1415         * libc/machine/arm/strcpy.c (strcpy): Likewise.
1416         * libc/machine/arm/strcmp.c (strcmp, strcmp_unaligned): Likewise.
1417
1418 2009-03-15  Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
1419
1420         * libc/include/sys/errno.h (ESTRPIPE): Define.
1421         * libc/string/strerror.c (strerror): Decode it.
1422
1423 2009-03-15  Corinna Vinschen  <corinna@vinschen.de>
1424
1425         * libc/include/wchar.h (wcsdup, _wcsdup_r): Declare.
1426         * libc/string/Makefile.am: Add wcsdup.c.
1427         * libc/string/Makefile.in: Regenerate.
1428         * libc/string/strings.tex: Add wcsdup documentation reference.
1429         * libc/string/wcsdup.c: New file.
1430
1431 2009-03-14  Corinna Vinschen  <corinna@vinschen.de>
1432
1433         * libc/include/stdlib.h (_mkstemp_r, _mktemp_r): Move out of
1434         !_REENT_ONLY section.
1435
1436 2009-03-14  Corinna Vinschen  <corinna@vinschen.de>
1437
1438         * libc/include/stdio.h (_mkstemp_r, _mktemp_r): Move declarations
1439         to stdlib.h.
1440         * libc/include/stdlib.h (mktemp, _mktemp_r): Warn when using.
1441         * libc/stdio/mktemp.c: Explain the security risk when using
1442         mktemp.
1443
1444 2009-03-12  Craig Howland <howland@LGSInnovations.com>
1445
1446         * libc/time/time.tex (wcsftime.def):  Include.
1447         * libc/time/wcsftime.c:  Clean up documentation a little.
1448
1449 2009-03-12  Craig Howland <howland@LGSInnovations.com>
1450
1451         * libc/stdio/swscanf.c:  Some documentation corrections.
1452
1453 2009-03-12  Craig Howland <howland@LGSInnovations.com>
1454
1455         * libc/stdio/swprintf.c (_swprintf_r, swprintf):
1456         correct how terminating L'\0' is added;
1457         change return to match standard for when output does not fit;
1458         some corrections and enhancements to the docs.
1459         * libc/stdio/vswprintf.c (_vswprintf_r):  ditto, except for docs.
1460         * libc/stdio/vfwprintf.c:  some corrections to the docs and some
1461         enhancements to comments.  (No code changes.)
1462         * libc/time/strftime.c:  Correct some problems that made wcsftime()
1463         not work correctly:  work properly with swprintf returns that are
1464         different from snprintf returns, correct test vector lengths for
1465         when sizeof(wchar_t) > 1.
1466         * libc/stdio/sprintf.c:  Some documentation and comment corrections and
1467         enhancements to match those done to swprintf.c.
1468
1469 2009-03-11  Corinna Vinschen  <corinna@vinschen.de>
1470
1471         * libc/include/wchar.h (wcscasecmp, wcsncasecmp): Declare.
1472         * libc/string/Makefile.am: Add wcscasecmp.c, wcsncasecmp.c
1473         * libc/stdio/Makefile.in: Regenerate.
1474         * libc/string/strings.tex: Add new documentation references.
1475         * libc/string/wcscasecmp.c: New file.
1476         * libc/string/wcsncasecmp.c: New file.
1477
1478 2009-03-11  Corinna Vinschen  <corinna@vinschen.de>
1479
1480         * libc/include/wchar.h (fwscanf, swscanf, vfwscanf, vswscanf, vwscanf,
1481         wscanf): Declare.
1482         (_fwscanf_r, _swscanf_r, _vfwscanf_r, _vswscanf_r, _vwscanf_r,
1483         _wscanf_r): Declare.
1484         * libc/stdio/Makefile.am: Add new wscanf files.
1485         * libc/stdio/Makefile.in: Regenerate.
1486         * libc/stdio/fwscanf.c: New file.
1487         * libc/stdio/local.h (__svfwscanf_r, __ssvfwscanf_r, __svfiwscanf_r,
1488         __ssvfiwscanf_r): Declare.
1489         * libc/stdio/stdio.tex: Add new documentation references.
1490         * libc/stdio/swscanf.c: New file.
1491         * libc/stdio/vfwscanf.c: New file.
1492         * libc/stdio/vswscanf.c: New file.
1493         * libc/stdio/vwscanf.c: New file.
1494         * libc/stdio/wscanf.c: New file.
1495
1496         * libc/stdio/vfscanf.c (_sungetc_r): Make externaly available.  Only
1497         define if INTEGER_ONLY is defined.  Declare otherwise.
1498         (__ssrefill_r): Ditto.
1499         (_sfread_r): Ditto.
1500
1501         Remove static eofread/eofread1 functions and use __seofread
1502         function instead, throughout.
1503         * libc/stdio/local.h (__seofread): Declare.
1504         * libc/stdio/stdio.c (__seofread): Define.
1505
1506         * libc/stdio/fgetwc.c (__fgetwc): Fix compiler warning.
1507         * libc/stdio/fgetws.c (_fgetws_r): Ditto.
1508         * libc/stdio/fread.c (_fread_r): Ditto.
1509         * libc/stdio/vfprintf.c: Ditto.
1510         * libc/stdio/vswprintf.c: Ditto.
1511
1512 2009-03-09  Brooks Moses  <brooks@codesourcery.com>
1513
1514         * libc/machine/arm/arm_asm.h: Fix typo.
1515
1516 2009-03-09  Craig Howland <howland@LGSInnovations.com>
1517
1518         * libc/time/strftime.c:  Adapt for dual-purpose use so not only
1519         defines strftime(), but can also define wcsftime(); add optional
1520         test package; speed up %Y handling.
1521         * libc/time/wcsftime.c:  New file, defining wcsftime() (albeit
1522         indirectly by including strftime.c) and its documentation.
1523         * libc/time/time.tex:  Enhance tm_isdst explanation, change strftime
1524         description to match modified description in strftime.c
1525         * libc/time/Makefile.am:  Add wcsftime.c and wcsftime.def.  Add a rule
1526         so that wcsftime.o gets rebuilt when strftime changes.
1527         * libc/time/Makefile.in:  Regenerate.
1528         * libc/include/wchar.h (wcsftime): Declare.
1529
1530 2009-03-06  Hans-Erik Floryd <hans-erik.floryd@rt-labs.com>,
1531             Corinna Vinschen  <corinna@vinschen.de>
1532
1533         * libc/reent/reent.c (_reclaim_reent): Make a block from MP-related
1534         statements in _REENT_SMALL case.  Check if _atexit is not NULL before
1535         dereferencing it.
1536         (_wrapup_reent): Check if _atexit is not NULL before dereferencing it.
1537
1538 2009-03-06  Corinna Vinschen  <corinna@vinschen.de>
1539
1540         * libc/include/stdio.h (__VALIST): Guard against multiple definition.
1541         * libc/include/wchar.h: Include stdarg.h.
1542         (__VALIST): Define conditionally.
1543         (fwprintf, swprintf, vfwprintf, vswprintf, vwprintf, wprintf): Declare.
1544         (_fwprintf_r, _swprintf_r, _vfwprintf_r, _vswprintf_r, _vwprintf_r,
1545          _wprintf_r): Declare.
1546         * libc/stdio/Makefile.am: Add new files.
1547         * libc/stdio/Makefile.in: Regenerate.
1548         * libc/stdio/fwprintf.c: New file.
1549         * libc/stdio/local.h (_svfwprintf_r, _svfiwprintf_r): Declare.
1550         (__CH_CLASS, __STATE, __ACTION): Move definition from vfprintf.c here
1551         and move to the __ namespace.
1552         (__chclass, __state_table, __action_table): Declare.
1553         * libc/stdio/stdio.tex: Add new documentation references.
1554         * libc/stdio/swprintf.c: New file.
1555         * libc/stdio/vfprintf.c (__SPRINT): New macro to call the right
1556         __sprint_r function according to compilation unit.  Use throughout.
1557         (__ssprint_r): Rename STRING_ONLY variant from __sprint_r.
1558         Make externaly available.  Only define if INTEGER_ONLY is defined.
1559         (__sprint_r): Make externaly available.  Only define if INTEGER_ONLY
1560         is defined.  Handle stream orientation.
1561         (__sbprintf): Copy FILE's _flags2 member as well.
1562         (__chclass, __state_table, __action_table): Prepend __ to name and
1563         make externally available.
1564         * libc/stdio/vfwprintf.c: New file.
1565         * libc/stdio/vswprintf.c: New file.
1566         * libc/stdio/vwprintf.c: New file.
1567         * libc/stdio/wprintf.c: New file.
1568
1569 2009-03-03  Corinna Vinschen  <corinna@vinschen.de>
1570
1571         * libc/locale/locale.c (_setlocale_r): New implementation based on
1572         FreeBSD's setlocale.
1573         (currentlocale): New helper function.
1574         (loadlocale): Ditto.
1575         (__locale_charset): New function.
1576         (__locale_msgcharset): Rename from __locale_charset.
1577         * libc/ctype/local.h (__lc_ctype): Remove declaration.
1578         (__locale_charset): Declare.
1579         * libc/ctype/iswalpha.c (iswalpha): Call __locale_charset instead of
1580         using __lc_ctype directly.  Only compare against the charset alone.
1581         * libc/ctype/iswblank.c (iswblank): Ditto.
1582         * libc/ctype/iswcntrl.c (iswcntrl): Ditto.
1583         * libc/ctype/iswprint.c (iswprint): Ditto.
1584         * libc/ctype/iswpunct.c (iswpunct): Ditto.
1585         * libc/ctype/iswspace.c (iswspace): Ditto.
1586         * libc/ctype/towlower.c (towlower): Ditto.
1587         * libc/ctype/towupper.c (towupper): Ditto.
1588         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Ditto.
1589         * libc/stdlib/wctomb_r.c (_wctomb_r): Ditto.
1590         * libc/sys/linux/intl/loadmsgcat.c (_nl_init_domain_conv): Call
1591         __locale_msgcharset instead of __locale_charset.
1592
1593 2009-03-02  Jeff Johnston  <jjohnstn@redhat.com>
1594
1595         * libc/stdlib/wctomb_r.c (_wctomb_r): When checking single-byte
1596         charset, cast wchar to size_t in case wchar_t is signed.
1597         * libc/stdlib/wctomb.c (wctomb): Add similar single-byte check.
1598
1599 2009-03-02  Corinna Vinschen  <corinna@vinschen.de>
1600
1601         * libc/stdlib/wctomb_r.c (_wctomb_r): Return EILSEQ in case of an
1602         invalid wchar.  Return -1 if wchar doesn't fit into singlebyte
1603         value in case of using a singlebyte charset.
1604
1605 2009-02-26  Brooks Moses  <brooks@codesourcery.com>
1606
1607         * libc/machine/arm/strcpy.c: Add missing comma.
1608
1609 2009-02-26  Ralf Corsepius  <ralf.corsepius@rtems.org>
1610
1611         * libc/machine/lm32/configure.in: Let
1612         AC_CONFIG_SRCDIR point to setjmp.S instead of setjmp.s
1613         * libs/machine/lm32/configure: Regenerate.
1614
1615 2009-02-25  Brooks Moses  <brooks@codesourcery.com>
1616
1617         * libc/stdlib/Makefile.am (CHEWOUT_FILES): Add
1618           mbsnrtowcs.def, wcsnrtombs.def.
1619         * libc/stdlib/Makefile.in: Regenerate.
1620         * libc/stdlib/stdlib.tex (@menu): Use correct section
1621           names for mbsrtowcs, wcsrtombs.
1622         * libc/stdlib/wcstod.c: Remove stray character in
1623           documentation.
1624
1625 2009-02-25  Corinna Vinschen  <corinna@vinschen.de>
1626
1627         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Remove conversion of 5 and 6
1628         byte UTF-8 sequences since they are invalid in the Unicode standard.
1629         Handle surrogate pairs in case of wchar_t == UTF-16.
1630         * libc/stdlib/wctomb_r.c (_wctomb_r): Don't convert invalid Unicode
1631         wchar_t values beyond 0x10ffff into UTF-8 chars.  Handle surrogate
1632         pairs in case of wchar_t == UTF-16.
1633
1634 2009-02-24  Kevin Buettner  <kevinb@redhat.com>
1635
1636         * libc/stdio/open_memstream.c (stdint.h): Include.
1637
1638 2009-02-23  Craig Howland  <howland@LGSInnovations.com>
1639
1640         * libc/unix/ttyname.c:  Remove ttyname_r() (to a new file to avoid
1641         coupling ttyname_r() and ttyname() due to the latter's large buffer).
1642         * libc/unix/ttyname_r.c:  New file to hold ttyname_r(), previously in
1643         ttyname.c.
1644         * libc/unix/ttyname.h:  New file (common size definition for the 2
1645         ttyname*c files that are now split).
1646         * libc/unix/Makefile.am (ELIX_2_SOURCES):  Add ttyname_r.c.
1647         * libc/unix/Makefile.in:  Regenerate.
1648
1649 2009-02-19  Corinna Vinschen  <corinna@vinschen.de>
1650
1651         * libc/include/wchar.h (mbsnrtowcs): Declare.
1652         (_mbsnrtowcs_r): Declare.
1653         (wcsnrtombs): Declare.
1654         (_wcsnrtombs_r): Declare.
1655         * libc/stdlib/Makefile.am (ELIX_2_SOURCES): Add mbsnrtowcs.c
1656         and wcsnrtombs.c.
1657         * libc/stdlib/Makefile.in: Regenerate.
1658         * libc/stdlib/mbsnrtowcs.c: New file, implementing _mbsnrtowcs_r
1659         and mbsnrtowcs.  Document mbsnrtowcs and mbsrtowcs.
1660         * libc/stdlib/mbsrtowcs.c (_mbsrtowcs_r): Just call _mbsnrtowcs_r.
1661         (mbsrtowcs): Ditto.
1662         * libc/stdlib/wcsnrtombs.c: New file, implementing _wcsnrtombs_r
1663         and wcsnrtombs.  Document wcsrtombs and wcsnrtombs.
1664         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Just call _wcsnrtombs_r.
1665         (wcsrtombs): Ditto.
1666         * libc/stdlib/stdlib.tex: Accommodate new documentation.
1667
1668 2009-02-18  Jeff Johnston  <jjohnstn@redhat.com>
1669
1670         * libc/stdio/open_memstream.c (internal_open_memstream_r): Fix max
1671         buffer size to be in wchar_t units if wide == 1 is passed in.  In
1672         this case, also initialize the first character of the buffer to be
1673         wide char null.
1674         (_open_wmemstream_r): Cast buf to be (char **) to avoid warning.
1675         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Change all occurences of
1676         incrementing the size_t value n to first check that n is not already
1677         size_t -1.  Fix some compiler warnings.
1678         * libc/stdlib/wcstod.c: Add includes for <wctype.h> and <math.h>.
1679
1680 2009-02-18  Corinna Vinschen  <corinna@vinschen.de>
1681
1682         * libc/stdio/open_memstream.c: Add open_wmemstream to doumentation.
1683         (struct memstream): Add wide element.
1684         Change saved to a union to take char and wchar_t values.
1685         (memwriter): Accommodate wide-oriented oeprations.
1686         (memseeker): Ditto.
1687         (memseeker64): Ditto.
1688         (memcloser): Ditto.
1689         (internal_open_memstream_r): New static function.  Take functionality
1690         from former _open_memstream_r and handle additional "wide" parameter.
1691         (_open_memstream_r): Just call internal_open_memstream_r with wide==-1
1692         from here.
1693         (_open_wmemstream_r): New function.
1694         (open_wmemstream): Ditto.
1695         * libc/include/wchar.h (open_wmemstream): Declare.
1696         (_open_wmemstream_r): Declare.
1697
1698 2009-02-16  Corinna Vinschen  <corinna@vinschen.de>
1699
1700         * libc/stdio/fputwc.c: Fix typo in man page info.
1701
1702 2009-02-12  Corinna Vinschen  <corinna@vinschen.de>
1703
1704         * libc/include/wchar.h (_wcstod_r): Declare.
1705         (_wcstof_r): Declare.
1706         (wcstod): Declare.
1707         (wcstof): Declare.
1708         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add wcstod.c.
1709         (CHEWOUT_FILES): Add wcstod.def.
1710         * libc/stdlib/Makefile.in: Regenerate.
1711         * libc/stdlib/stdlib.tex: Add wcstod.
1712         * libc/stdlib/wcstod.c: New file.
1713
1714 2009-02-05  Neal H. Walfield  <neal@gnu.org>
1715
1716         * libc/machine/x86_64/memcpy.S (memcpy): Don't use the red zone.
1717
1718 2009-01-28  Jeff Johnston  <jjohnstn@redhat.com>
1719
1720         * libc/stdio/vfscanf.c (__SVFSCANF_R): Add additional check for
1721         inf and nan processing to not proceed if we have already collected
1722         zeroes.
1723
1724 2009-01-26  DJ Delorie  <dj@redhat.com>
1725
1726         * configure.host (m32c-*-*): Add long long I/O support by default.
1727
1728 2009-01-21  Richard Earnshaw  <rearnsha@arm.com>
1729
1730         * libc/machine/arm/arm_asm.h: New file.
1731         * libc/machine/arm/strlen.c: New file.
1732         * libc/machine/arm/strcpy.c: New file.
1733         * libc/machine/arm/strcmp.c: New file.
1734         * libc/machine/arm/Makefile.am: Add new string routines.
1735
1736 2009-01-19  Neal H. Walfield  <neal@gnu.org>
1737
1738         * libc/include/stdint.h (INT64_C, UINT64_C, INTMAX_C, UINTMAX_C)
1739         [__have_long64 && __have_longlong64]: Use L and UL, not LL and ULL.
1740         * libc/include/inttypes.h (__PRI64, __SCN64, __PRIMAX, __SCNMAX,
1741         __PRIPTR, __SCNPTR) [__have_long64 && __have_longlong64]: Use l,
1742         not ll.
1743
1744 2009-01-12  Nathan Froyd  <froydnj@codesourcery.com>
1745
1746         * libc/machine/powerpc/vfscanf.c (__sccl): Remove declaration.
1747
1748 2009-01-12  Jeff Johnston  <jjohnstn@redhat.com>
1749
1750         * libc/stdio/fwalk.c (__fwalk, __fwalk_reent): Remove locking of
1751         each fp.  Let the function being called lock the fp, if necessary.
1752
1753 2009-01-07  Kazu Hirata  <kazu@codesourcery.com>
1754
1755         * libc/include/sys/stdio.h (_flockfile, _funlockfile): Fix typos.
1756
1757 2009-01-05  Craig Howland <howland@LGSInnovations.com>
1758
1759         * libc/stdio/fwide.c:  Correct typo in TRAD_SYNOPSIS for _fwide_r.
1760
1761 2008-12-19  Jeff Johnston  <jjohnstn@redhat.com>
1762
1763         * NEWS: Update with 1.17.0 info.
1764         * README: Ditto.
1765         * acinclude.m4: Change version number to 1.17.0.
1766         * aclocal.m4: Regenerated.
1767         * configure: Ditto.
1768         * doc/aclocal.m4: Ditto.
1769         * doc/configure: Ditto.
1770         * libc/*/aclocal.m4: Ditto.
1771         * libc/*/configure: Ditto.
1772         * libc/libc.texinfo: Ditto.
1773         * libm/*/aclocal.m4: Ditto.
1774         * libm/*/configure: Ditto.
1775         * libm/libm.texinfo: Ditto.
1776         * libc/sys/linux/shared.ld: Add VERS_1.17
1777
1778 2008-12-17  Jon Beniston <jon@beniston.com>
1779
1780         * configure.host: Set syscall_dir for lm32 target.
1781
1782 2008-12-15  Jeff Johnston  <jjohnstn@redhat.com>
1783
1784         * libc/stdio/stdio.tex: Remove putwc and getwc references as they
1785         are included as part of fputwc and fgetwc, respectively.
1786
1787 2008-12-12  Craig Howland <howland@LGSInnovations.com>
1788
1789         * libc/include/wchar.h:  Added wcstok() declaration.
1790         * libc/string/wcstok.c: New file, implementing wcstok.
1791         * libc/string/Makefile.am: Add wcstok support.
1792         * libc/string/wcstrings.tex: Ditto.
1793         * libc/string/Makefile.in: Regenerated.
1794
1795 2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
1796
1797         * libc/stdio/fputws.c: Fix documentation.
1798         * libc/stdio/getwchar.c: Ditto.
1799         * libc/stdio/putwchar.c: Ditto.
1800
1801 2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
1802
1803         * libc/include/sys/features.h: Set RTEMS's _POSIX_MONOTONIC_CLOCK to
1804         200112L (SUSv3 compliance).
1805         Comment out RTEMS's _POSIX_SHARED_MEMORY_OBJECTS (Unsupported).
1806
1807 2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
1808
1809         * libc/sys/rtems/crt0.c: Add stubs for getdents(), nanosleep(),
1810         _execve(), _exit().
1811
1812 2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
1813
1814         * configure.host: Let *rtems* default to c99-formats.
1815
1816 2008-12-12  Craig Howland  <howland@LGSInnovations.com>
1817
1818         * libc/stdio/freopen.c:  Add <string.h> for memset prototype.
1819         * libc/stdio/fseek.c:  Ditto.
1820         * libc/stdio/fwide.c:  Add <wchar.h> for fwide prototype.
1821
1822 2008-12-11 Jeff Johnston  <jjohnstn@redhat.com>
1823
1824         * libc/include/sys/time.h (gettimeofday): Change prototype so
1825         2nd parameter is void *, matching SUSV2.
1826         * libc/syscalls/sysgettod.c (gettimeofday): Ditto.
1827
1828 2008-12-11 Jukka Pietarinen <jukka.pietarinen@mrf.fi>
1829
1830         * configure.host: Add lm32
1831         * libc/include/machine/ieeefp.h: Add __lm32__
1832         * libc/include/machine/setjmp.h: Add __lm32__
1833         * libc/machine/configure.in: Add lm32
1834         * libc/machine/configure: Regenerated.
1835         * libc/machine/lm32/aclocal.m4: New file.
1836         * libc/machine/lm32/configure.in: Ditto.
1837         * libc/machine/lm32/configure: Ditto.
1838         * libc/machine/lm32/Makefile.am: Ditto.
1839         * libc/machine/lm32/Makefile.in: Ditto.
1840         * libc/machine/lm32/setjmp.s: Ditto.
1841
1842 2008-12-11  Craig Howland  <howland@LGSInnovations.com>
1843
1844         * libc/include/sys/lock.h:  Add void cast to avoid "statement has no
1845         effect" warnings from gcc.
1846         * libc/include/sys/stdio.h:  Ditto.
1847         * libc/include/sys/time.h:  Correct gettimeofday() prototype.
1848         * libc/stdlib/__exp10.c:  Add #include "std.h" for function prototype.
1849         * libc/stdlib/__ten_mu.c:  Ditto.
1850         * libc/stdlib/std.h:  Correct __exp10's ANSI prototype.
1851         * libc/stdlib/ldtoa.c:  Change eiisinf definition to ANSI form.  (Are
1852         already others in file without _ansi method, so did not bother.)
1853         * libc/stdlib/system.c:  Use _ansi forms for function prototypes and
1854         definitions.
1855         * libc/time/mktime.c:  Ditto.
1856         * libc/misc/__dprintf.c:  Ditto.
1857         * libc/include/stdio.h:  Add function prototypes for _fgetc_r,
1858         _fgetpos_r, _fsetpos_r, _freopen_r, _rewind_r, freopen64, _freopen64_r,
1859         _funopen_r, and _fopencookie_r.
1860         * libc/include/reent.h:  Add function prototype for _stat64_r, align
1861         _execve_r prototype with POSIX definition for execve.
1862         * libc/reent/execr.c:  Align function prototype with POSIX definition.
1863         * libc/stdio/asniprintf.c:  Add #include "local.h".
1864         * libc/stdio/vasniprintf.c:  Ditto.
1865         * libc/stdio/fread.c:  Remove unused variable newcount.
1866         * libc/stdio/local.h:  Add function prototype for __sccl.
1867         * libc/stdio/open_memstream.c:  Remove unused variable flags.
1868         * libc/stdio/vfscanf.c:  Proper prototyping for ccfn, remove prototype
1869         for __sccl since now in local.h.
1870         * libc/string/memcpy.c:  Add #include <string.h> (for real and for
1871         traditional synopsis), remove extraneous stddef.h and limits.h.
1872         * libc/syscalls/sysclose.c:  Add #include <unistd.h>.
1873         * libc/syscalls/sysfork.c:  Ditto.
1874         * libc/syscalls/sysgetpid.c:  Ditto.
1875         * libc/syscalls/sysexecve.c:  Add #include <unistd.h>, align function
1876         prototype with POSIX definition.
1877         * libc/syscalls/sysfstat.c:  Add #include <sys/stat.h>.
1878         * libc/syscalls/sysgettod.c:  Correct sys/times.h to sys/time.h.
1879         * libc/syscalls/syskill.c:  Add #include <signal.h>.
1880         * libc/syscalls/syslink.c:  Add #include <unistd.h>, fix prototype.
1881         * libc/syscalls/sysunlink.c:  Ditto.
1882         * libc/syscalls/sysstat.c:  Add #include <sys/stat.h>, fix prototype.
1883         * libc/syscalls/syswait.c:  Add #include <sys/wait.h>, fix prototype.
1884
1885 2008-12-10  Corinna Vinschen  <corinna@vinschen.de>
1886
1887         Implement basic wide char stdio functionality, based on FreeBSD.
1888         * libc/include/stdio.h (__SORD): Define.
1889         (__SWID): Define.
1890         * libc/include/wchar.h: Add declarations for new wide char functions.
1891         (getwc): Define as macro.
1892         (getwchar): Ditto.
1893         (putwc): Ditto.
1894         (putwchar): Ditto.
1895         * libc/include/sys/reent.h (struct __sFILE): Add _mbstate member.
1896         (struct __sFILE64): Ditto.
1897         * libc/stdio/Makefile.am (ELIX_4_SOURCES): Add fgetwc.c, fgetws.c,
1898         fputwc.c, fputws.c, fwide.c, getwc.c, getwchar.c, putwc.c, putwchar.c
1899         and ungetwc.c.
1900         (CHEWOUT_FILES): Add fgetwc.def, fgetws.def, fputwc.def, fputws.def,
1901         fwide.def, getwc.def, getwchar.def, putwc.def, putwchar.def and
1902         ungetwc.def.
1903         Add header dependency rules for the new files.
1904         * libc/stdio/Makefile.in: Regenerate.
1905         * libc/stdio/fgetwc.c: New file, implementing fgetwc and _fgetwc_r.
1906         * libc/stdio/fgetws.c: New file, implementing fgetws and _fgetws_r.
1907         * libc/stdio/findfp.c (std): Initialize FILE's _mbstate member.
1908         (__sfmoreglue): Ditto.
1909         * libc/stdio/fputs.c (_fputs_r): Set stream orientation.
1910         * libc/stdio/fputwc.c: New file, implementing fputwc and _fputwc_r.
1911         * libc/stdio/fputws.c: New file, implementing fputws and _fputws_r.
1912         * libc/stdio/fread.c (_fread_r): Set stream orientation.
1913         * libc/stdio/freopen.c (_freopen_r): Reset stream orientation.  Reset
1914         _mbstate.
1915         * libc/stdio/fseek.c (_fseek_r): Reset _mbstate.
1916         * libc/stdio/fwide.c: New file, implementing fwide and _fwide_r.
1917         * libc/stdio/fwrite.c (_fwrite_r): Set stream orientation.
1918         * libc/stdio/getwc.c: New file, implementing getwc and _getwc_r.
1919         * libc/stdio/getwchar.c: New file, implementing getwchar and
1920         _getwchar_r.
1921         * libc/stdio/local.h (ORIENT): New macro.
1922         * libc/stdio/puts.c (_puts_r): Set stream orientation.
1923         * libc/stdio/putwc.c: New file, implementing putwc and _putwc_r.
1924         * libc/stdio/putwchar.c: New file, implementing putwchar and
1925         _putwchar_r.
1926         * libc/stdio/refill.c (__srefill_r): Set stream orientation.
1927         * libc/stdio/stdio.tex: Add documentation for new functions.
1928         * libc/stdio/ungetc.c (_ungetc_r): Set stream orientation.
1929         * libc/stdio/ungetwc.c: New file, implementing ungetwc and _ungetwc_r.
1930         * libc/stdio/vfscanf.c (__SVFSCANF_R): Set stream orientation.
1931         * libc/stdio/wbuf.c (__swbuf_r): Ditto.
1932
1933 2008-12-10  Joseph Myers  <joseph@codesourcery.com>
1934
1935         * libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
1936         INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
1937         constants with "long" types where appropriate.
1938         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
1939         INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
1940         UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
1941         Correct to match logic for defining corresponding types.
1942         (INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
1943         (SIZE_MAX): Define using __SIZE_MAX__ if available.
1944         (PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
1945         (PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
1946         (WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
1947         (UINT8_C, UINT16_C): Define to give signed values if corresponding
1948         types would promote to int.
1949
1950 2008-12-04  Corinna Vinschen  <corinna@vinschen.de>
1951
1952         * libc/include/sys/features.h (_POSIX_V6_ILP32_OFF32): Always define.
1953         (_POSIX_V6_LP64_OFF64): Ditto.
1954         (_POSIX_V6_LPBIG_OFFBIG): Ditto.
1955
1956 2008-11-28  Jeff Johnston  <jjohnstn@redhat.com>
1957
1958         * libc/sys/linux/inode.c: Include <dirent.h> instead of
1959         <linux/dirent.h>.
1960         * libc/sys/linux/io64.c: Add weak alias for _stat64.
1961
1962 2008-11-27  Ralf Corsepius <ralf.corsepius@rtems.org>
1963
1964         * libc/posix/telldir.c: Use #if !defined() instead of #ifndef
1965         to fix GCC warning.
1966
1967 2008-11-27  Ken Werner  <ken.werner@de.ibm.com>
1968
1969         * libc/machine/spu/Makefile.am: Add spu-mcount.S spu-gmon.c.
1970         * libc/machine/spu/Makefile.in: Regenerated.
1971         * libc/machine/spu/spu-gmon.c: New file.
1972         * libc/machine/spu/spu-mcount.S: New file.
1973
1974 2008-11-27  Joel Sherrill <joel.sherrill@oarcorp.com>
1975
1976         * configure.host (*-rtems*): Turn on using portion of unix subdirectory.
1977
1978 2008-11-27  Craig Howland <howland@LGSInnovations.com>
1979
1980         * libc/argz/argz_add.c:  Added #include <argz.h> to get function
1981         prototypes.
1982         * libc/argz/argz_append.c: Ditto.
1983         * libc/argz/argz_count.c: Ditto.
1984         * libc/argz/argz_create.c: Ditto.
1985         * libc/argz/argz_create_sep.c: Ditto.
1986         * libc/argz/argz_delete.c: Ditto.
1987         * libc/argz/argz_next.c: Ditto.
1988         * libc/argz/argz_stringify.c: Ditto
1989         * libc/stdlib/strtod.c: Added #include <stdlib.h> to get function
1990         prototypes.
1991         * libc/stdlib/wcstoul.c: Added #include <wchar.h> to get function
1992         prototypes, corrected traditional usage comment.
1993         * libc/include/wchar.h: Added _mbsrtowcs_r() prototype.
1994
1995 2008-11-26 Ken Werner <ken.werner@de.ibm.com>
1996
1997         * libm/machine/spu/headers/acosd2.h: Rebase against current simdmath.
1998         * libm/machine/spu/headers/asind2.h: Likewise.
1999         * libm/machine/spu/headers/asinhf4.h: Likewise.
2000         * libm/machine/spu/headers/divd2.h: Likewise.
2001         * libm/machine/spu/headers/erf_utils.h: Likewise.
2002         * libm/machine/spu/headers/erfcd2.h: Likewise.
2003         * libm/machine/spu/headers/erfcf4.h: Likewise.
2004         * libm/machine/spu/headers/erfd2.h: Likewise.
2005         * libm/machine/spu/headers/recipd2.h: Likewise.
2006
2007 2008-11-25  Corinna Vinschen  <corinna@vinschen.de>
2008
2009         * libc/stdio/gets.c (_gets_r): Lock stdin here and call
2010         __sgetc_r instead of _getchar_r.
2011
2012 2008-11-24  Craig Howland  <howland@LGSInnovations.com>
2013
2014         * libc/stdlib/wcstoull_r.c:  Add EINVAL return for bad base value,
2015         include wchar.h for prototype, remove extraneous includes, use
2016         C99/POSIX ULLONG_MAX (but allow for poor limits.h).
2017         * libc/stdlib/wcstoull.c:  Fix usage comments (mistakes and to add
2018         base value check noted above), remove extraneous includes.
2019         * libc/stdio/asnprintf.c:  Add #include "local.h" to get function
2020         prototype for _svfprintf_r().
2021         * libc/stdio/vasnprintf.c:  Ditto.
2022         * libc/stdio/local.h:  Add function prototype for __submore().
2023         * libc/include/stdio.h:  Add function prototypes for _fseeko_r and
2024         _ftello_r.
2025         * libc/posix/namespace.h:  Commented out define for write to
2026         eliminate write() prototype being missing for collate.c (which is
2027         the only file that presently includes namespace.h).
2028         * libc/include/reent.h:  Added _rename_r.
2029         * libc/reent/renamer.c:  Corrected function prototypes in synopses.
2030         * libc/locale/ldpart.c:  Use struct stat64 when calling fstat64.
2031
2032 2008-11-24  Jeff Johnston  <jjohnstn@redhat.com>
2033
2034         * libc/search/hash_func.c: Comment out unused static hash functions.
2035         * libc/reent/stat64r.c: New file.
2036         * libc/reent/Makefile.am: Add stat64r.c support.
2037         * libc/reent/Makefile.in: Regenerated.
2038
2039 2008-11-24  Joel Sherrill <joel.sherrill@oarcorp.com>
2040
2041         * libc/posix/scandir.c: Fix memory leaks.
2042
2043 2008-11-24  Joel Sherrill <joel.sherrill@oarcorp.com>
2044
2045         * libc/posix/Makefile.am: Compile readdir_r.c not readdir.c twice.
2046         * libc/posix/Makefile.in: Regenerated.
2047
2048 2008-11-24  Corinna Vinschen  <corinna@vinschen.de>
2049
2050         * libc/include/stdio.h (__SMOD): Remove definition of unused flag.
2051         * libc/include/sys/reent.h (struct __sFILE): Add _flags2 member.
2052         * libc/stdio/findfp.c (std): Initialize _flags2.
2053         (__sfp): Ditto.
2054         * libc/stdio/refill.c (__srefill_r): Drop resetting __SMOD flag.
2055         * libc/stdio/vfscanf.c (__ssrefill_r): Ditto.
2056         * libc/stdio/fseek.c (_fseek_r): Drop checking __SMOD flag.
2057         * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
2058
2059 2008-11-20  Ken Werner  <ken.werner@de.ibm.com>
2060
2061         * libc/machine/spu/sys/linux_syscalls.h: Additional syscall defines to
2062         be in sync with current kernels.
2063
2064 2008-11-20  Ken Werner  <ken.werner@de.ibm.com>
2065             Patrick Mansfield  <patmans@us.ibm.com>
2066             Joel Schopp   <jschopp@austin.ibm.com>
2067
2068         * libc/machine/spu/configure.in: Add __ea detection.
2069         * libc/machine/spu/Makefile.am: Add new files.
2070         * libc/machine/spu/include/ea.h: New file.
2071         * libc/machine/spu/ea_internal.h: Likewise.
2072         * libc/machine/spu/sys/mman.h: Likewise.
2073         * libc/machine/spu/mmap_ea.c: Likewise.
2074         * libc/machine/spu/munmap_ea.c: Likewise.
2075         * libc/machine/spu/mremap_ea.c: Likewise.
2076         * libc/machine/spu/msync_ea.c: Likewise.
2077         * libc/machine/spu/memchr_ea.c: Likewise.
2078         * libc/machine/spu/memcmp_ea.c: Likewise.
2079         * libc/machine/spu/memcpy_ea.c: Likewise.
2080         * libc/machine/spu/memmove_ea.c: Likewise.
2081         * libc/machine/spu/memset_ea.c: Likewise.
2082         * libc/machine/spu/malloc_ea.c: Likewise.
2083         * libc/machine/spu/realloc_ea.c: Likewise.
2084         * libc/machine/spu/calloc_ea.c: Likewise.
2085         * libc/machine/spu/free_ea.c: Likewise.
2086         * libc/machine/spu/posix_memalign_ea.c: Likewise.
2087         * libc/machine/spu/strcat_ea.c: Likewise.
2088         * libc/machine/spu/strchr_ea.c: Likewise.
2089         * libc/machine/spu/strcmp_ea.c: Likewise.
2090         * libc/machine/spu/strcpy_ea.c: Likewise.
2091         * libc/machine/spu/strcspn_ea.c: Likewise.
2092         * libc/machine/spu/strlen_ea.c: Likewise.
2093         * libc/machine/spu/strncat_ea.c: Likewise.
2094         * libc/machine/spu/strncmp_ea.c: Likewise.
2095         * libc/machine/spu/strncpy_ea.c: Likewise.
2096         * libc/machine/spu/strpbrk_ea.c: Likewise.
2097         * libc/machine/spu/strrchr_ea.c: Likewise.
2098         * libc/machine/spu/strspn_ea.c: Likewise.
2099         * libc/machine/spu/strstr_ea.c: Likewise.
2100         * libc/machine/spu/read_ea.c: Likewise.
2101         * libc/machine/spu/pread_ea.c: Likewise.
2102         * libc/machine/spu/readv_ea.c: Likewise.
2103         * libc/machine/spu/write_ea.c: Likewise.
2104         * libc/machine/spu/pwrite_ea.c: Likewise.
2105         * libc/machine/spu/writev_ea.c: Likewise.
2106
2107 2008-11-19  Joel Sherrill <joel.sherrill@oarcorp.com>
2108
2109         * libc/include/sys/config.h[__mips__]: Don't bother
2110         setting __ATTRIBUTE_IMPURE_PTR__ here.
2111         [__rtems__][__mips__]: No need to undef the __ATTRIBUTE_IMPURE_PTR__
2112         macro anymore.
2113
2114 2008-11-19  Jeff Johnston  <jjohnstn@redhat.com>
2115
2116         * libc/sys/linux/bits/dirent.h: New header file.
2117         * libc/sys/linux/sys/dirent.h: Include <bits/dirent.h> instead of
2118         <linux/dirent.h>.
2119         * libc/posix/Makefile.am: Remove reallocf.
2120         * libc/posix/Makefile.in: Regenerated.
2121         * libc/posix/reallocf.c: Moved to...
2122         * libc/stdlib/reallocf.c: Here
2123         * libc/stdlib/malloc.c: Add reallocf documentation.
2124         * libc/include/stdlib.h: Add reallocf and _reallocf_r prototypes.
2125         * libc/stdlib/Makefile.am: Add reallocf.
2126         * libc/stdlib/Makefile.in: Regenerated.
2127         * libc/posix/_isatty.c: Set errno.
2128
2129 2008-11-19  Craig Howland  <howland@LGSInnovations.com>
2130
2131         * libc/unix/collate.c (__collate_err): simplify to remove unnecessary
2132         strdup() and strlen() calls, also getting rid of a compiler warning.
2133
2134 2008-11-19  Ralf Corsepius <ralf.corsepius@rtems.org>
2135
2136         * libc/include/sys/config.h: Don't put
2137         __ATTRIBUTE_IMPURE_PTR__ into .sdata section for mips-rtems.
2138
2139 2008-11-19  Ralf Corsepius  <ralf.corsepius@rtems.org>
2140
2141         * libc/posix/runetype.h: Add include of stddef.h and remove
2142         defining standard types: size_t and wchar_t.
2143
2144 2008-11-19  Ralf Corsepius  <ralf.corsepius@rtems.org>
2145
2146         * libc/include/pthread.h: Remove prototypes for
2147         pthread_attr_getcputime and pthread_attr_setcputime which
2148         were proposed but never approved by the POSIX standard.
2149
2150 2008-11-18  Joel Sherrill <joel.sherrill@oarcorp.com>
2151
2152         * libc/unix/ttyname.c: Use isatty() instead of tcgetattr().
2153
2154 2008-11-18  Jeff Johnston  <jjohnstn@redhat.com>
2155
2156         * libc/unix/basename.c: Add !_NO_BASENAME flag check so code can be
2157         ignored if desired by a platform.
2158         * libc/unix/dirname.c: Ditto except replace BASENAME with file name.
2159         * libc/unix/getcwd.c: Ditto.
2160         * libc/unix/getlogin.c: Ditto.
2161         * libc/unix/getpass.c: Ditto.
2162         * libc/unix/getpwent.c: Ditto.
2163         * libc/unix/getut.c: Ditto.
2164         * libc/unix/pread.c: Ditto.
2165         * libc/unix/pwrite.c: Ditto.
2166         * libc/unix/sigset.c: Ditto.
2167
2168 2008-11-18  Craig Howland  <howland@LGSInnovations.com>
2169
2170         * libc/unix/ttyname.c: Add ttyname_r and change ttyname to use
2171         ttyname_r.
2172
2173 2008-11-17  Joel Sherrill <joel.sherrill@oarcorp.com>
2174
2175         * configure.host: RTEMS now uses posix subdirectory.
2176
2177 2008-11-17  Joel Sherrill <joel.sherrill@oarcorp.com>
2178
2179         * sys/rtems/include/limits.h: Add _POSIX2_RE_DUP_MAX.
2180         * sys/rtems/sys/param.h: sys/rtprio.h not needed.
2181
2182 2008-10-31  Jeff Johnston  <jjohnstn@redhat.com>
2183
2184         * libc/stdio/diprintf.c: Modify documentation so eclipse newlib
2185         libhover docs generate properly.
2186         * libc/stdio/dprintf.c: Ditto.
2187         * libc/stdio/fflush.c: Ditto.
2188         * libc/stdio/fopencookie.c: Ditto.
2189         * libc/stdio/fread.c: Ditto.
2190         * libc/stdio/fsetpos.c: Ditto.
2191         * libc/stdio/getc_u.c: Ditto.
2192         * libc/stdio/getchar_u.c: Ditto.
2193         * libc/stdio/putc_u.c: Ditto.
2194         * libc/stdio/putchar_u.c: Ditto.
2195         * libc/stdio/remove.c: Ditto.
2196         * libc/stdio/siprintf.c: Ditto.
2197         * libc/stdio/siscanf.c: Ditto.
2198         * libc/stdio/sprintf.c: Ditto.
2199         * libc/stdio/sscanf.c: Ditto.
2200         * libc/stdio/vfprintf.c: Ditto.
2201         * libc/stdio/vfscanf.c: Ditto.
2202         * libc/stdio/viprintf.c: Ditto.
2203         * libc/stdio/viscanf.c: Ditto.
2204         * libc/stdlib/calloc.c: Ditto.
2205         * libc/stdlib/efgcvt.c: Ditto.
2206         * libc/stdlib/envlock.c: Ditto.
2207         * libc/time/asctime.c: Ditto.
2208         * libc/time/ctime.c: Ditto.
2209         * libc/time/gmtime.c: Ditto.
2210         * libc/time/lcltime.c: Ditto.
2211         * libc/time/tzset.c: Ditto.
2212         * libc/stdlib/envlock.h: Moved to libc/include.
2213
2214 2008-10-31  Jeff Johnston  <jjohnstn@redhat.com>
2215
2216         * libc/include/limits.h: Add ARG_MAX, PATH_MAX, and _POSIX2_RE_DUP_MAX.
2217         * libc/include/envlock.h: New file.
2218         * libc/include/fnmatch.h: Ditto.
2219         * libc/include/glob.h: Ditto.
2220         * libc/include/regex.h: Ditto.
2221         * libc/include/wordexp.h: Ditto.
2222         * libc/posix/Makefile.am: Add new files moved from
2223         libc/sys/linux/stdlib.
2224         * libc/posix/Makefile.in: Regenerated.
2225         * libc/posix/COPYRIGHT: New file moved from libc/sys/linux/stdlib.
2226         * libc/posix/cclass.h: Ditto.
2227         * libc/posix/cname.h: Ditto.
2228         * libc/posix/collate.c: Ditto.
2229         * libc/posix/collate.h: Ditto.
2230         * libc/posix/collcmp.c: Ditto.
2231         * libc/posix/engine.c: Ditto.
2232         * libc/posix/fnmatch.3: Ditto.
2233         * libc/posix/glob.3: Ditto.
2234         * libc/posix/fnmatch.c: Ditto.
2235         * libc/posix/glob.c: Ditto.
2236         * libc/posix/namespace.h: Ditto.
2237         * libc/posix/reallocf.c: Ditto.
2238         * libc/posix/regcomp.c: Ditto.
2239         * libc/posix/regerror.c: Ditto.
2240         * libc/posix/regex.3: Ditto.
2241         * libc/posix/regex2.h: Ditto.
2242         * libc/posix/regexec.c: Ditto.
2243         * libc/posix/regfree.c: Ditto.
2244         * libc/posix/rune.h: Ditto.
2245         * libc/posix/runetype.h: Ditto.
2246         * libc/posix/scandir.c: Remove advertising clause which is not in
2247         effect.
2248         * libc/posix/sysexits.h: Ditto.
2249         * libc/posix/un-namespace.h: Ditto.
2250         * libc/posix/utils.h: Ditto.
2251         * libc/posix/wordexp.c: Ditto.
2252         * libc/posix/wordfree.c: Ditto.
2253         * libc/posix/execl.c: Add !_NO_EXECVE flag check.
2254         * libc/posix/execle.c: Ditto.
2255         * libc/posix/execlp.c: Ditto.
2256         * libc/posix/execv.c: Ditto.
2257         * libc/posix/execve.c: Ditto.
2258         * libc/posix/execvp.c: Ditto.
2259         * libc/posix/popen.c: Add !_NO_POPEN flag check.
2260         * libc/sys/linux/configure: Regenerated.
2261         * libc/sys/linux/configure.in: Remove stdlib.
2262         * libc/sys/linux/include/limits.h: Add include of linux/limits.h.
2263         * libc/sys/linux/stdlib/Makefile.am: Removed.
2264         * libc/sys/linux/stdlib/Makefile.in: Ditto.
2265         * libc/sys/linux/stdlib/COPYRIGHT: Moved to libc/posix.
2266         * libc/sys/linux/stdlib/cclass.h: Ditto.
2267         * libc/sys/linux/stdlib/cname.h: Ditto.
2268         * libc/sys/linux/stdlib/collate.c: Ditto.
2269         * libc/sys/linux/stdlib/collate.h: Ditto.
2270         * libc/sys/linux/stdlib/collcmp.c: Ditto.
2271         * libc/sys/linux/stdlib/engine.c: Ditto.
2272         * libc/sys/linux/stdlib/fnmatch.3: Ditto.
2273         * libc/sys/linux/stdlib/fnmatch.c: Ditto.
2274         * libc/sys/linux/stdlib/glob.3: Ditto.
2275         * libc/sys/linux/stdlib/glob.c: Ditto.
2276         * libc/sys/linux/stdlib/reallocf.c: Ditto.
2277         * libc/sys/linux/stdlib/regcomp.c: Ditto.
2278         * libc/sys/linux/stdlib/regerror.c: Ditto.
2279         * libc/sys/linux/stdlib/regex.3: Ditto.
2280         * libc/sys/linux/stdlib/regex2.h: Ditto.
2281         * libc/sys/linux/stdlib/regexec.c: Ditto.
2282         * libc/sys/linux/stdlib/regfree.c: Ditto.
2283         * libc/sys/linux/stdlib/utils.h: Ditto.
2284         * libc/sys/linux/stdlib/wordexp.c: Ditto.
2285         * libc/sys/linux/stdlib/wordfree.c: Ditto.
2286
2287 2008-10-16  Joel Sherrill <joel.sherrill@oarcorp.com>
2288
2289         * libc/include/sys/unistd.h: RTEMS follows standard for sync().
2290
2291 2008-10-16  Joel Sherrill <joel.sherrill@oarcorp.com>
2292
2293         * libc/include/time.h: Add CLOCK_MONOTONIC.
2294         * libc/include/sys/features.h: Define
2295         _POSIX_MONOTONIC_CLOCK for RTEMS.
2296
2297 2008-10-15  Jeff Johnston  <jjohnstn@redhat.com>
2298
2299         * newlib.hin: Restore to previous 1.14 version which has no
2300         PACKAGE_ macros.
2301
2302 2008-10-15  Joel Sherrill <joel.sherrill@oarcorp.com>
2303
2304         * libc/include/sys/unistd.h: Enable ttyname_r() for RTEMS.
2305
2306 2008-10-15  Craig Howland  <howland@LGSInnovations.com>
2307
2308         * libc/include/ctype.h (isblank):  isblank is C99.
2309         * libc/ctype/isblank.c (isblank comments):  ditto.  isblank does not
2310         have a macro version (as was claimed in the description).
2311
2312 2008-10-15  Jeff Johnston  <jjohnstn@redhat.com>
2313
2314         * libc/stdio/vfscanf.c (__ssvfiscanf_r): Do not support %lc, %C, %ls or
2315         %S conversions when the EL/IX level is 1.
2316
2317 2008-10-06  Eric Blake  <ebb9@byu.net>
2318
2319         * libc/stdlib/ldtoa.c (etoasc): Fix rounding to even when fraction
2320         is 0.5 or 0.75.
2321
2322 2008-10-06  Craig Howland  <howland@LGSInnovations.com>
2323
2324         * libc/time/tzset_r.c (_tzset_r):  Change US default start/end dates to
2325         2007 law revision of start in 2nd Sunday in March, end 1st Sun in Nov.
2326
2327 2008-10-02  Jeff Johnston  <jjohnstn@redhat.com>
2328
2329         * libc/string/str-two-way.h (critical_factorization): Cast the index
2330         operation to ensure unsigned rollover occurs when adding to SIZE_MAX.
2331
2332 2008-10-02  Jeff Johnston  <jjohnstn@redhat.com>
2333
2334         * libc/sys/linux/include/stdint.h (SIZE_MAX): Fix value which should
2335         be size of size_t, not int.
2336         (SIZE_MIN): Remove.
2337         * libc/sys/linux/sys/stdint.h: Ditto.
2338
2339 2008-10-02  Jeff Johnston  <jjohnstn@redhat.com>
2340
2341         * libc/include/sys/reent.h[_REENT_SMALL](_REENT_INIT_RAND48): Add
2342         initialization of _rand_next to 1.
2343
2344 2008-09-29  Peter O'Gorman  <pogma@thewrittenword.com>
2345             Steve Ellcey  <sje@cup.hp.com>
2346
2347         * configure: Regenerate for new libtool.
2348         * aclocal.m4: Ditto.
2349         * Makefile.in: Ditto.
2350         * newlib.hin: Ditto.
2351         * doc/Makefile.in: Ditto.
2352         * doc/configure: Ditto.
2353         * iconvdata/Makefile.in: Ditto.
2354         * iconvdata/aclocal.m4: Ditto.
2355         * iconvdata/configure: Ditto.
2356         * libc/Makefile.in: Ditto.
2357         * libc/aclocal.m4: Ditto.
2358         * libc/configure: Ditto.
2359         * libc/argz/Makefile.in: Ditto.
2360         * libc/ctype/Makefile.in: Ditto.
2361         * libc/errno/Makefile.in: Ditto.
2362         * libc/iconv/Makefile.in: Ditto.
2363         * libc/iconv/ccs/Makefile.in: Ditto.
2364         * libc/iconv/ccs/binary/Makefile.in: Ditto.
2365         * libc/iconv/ces/Makefile.in: Ditto.
2366         * libc/iconv/lib/Makefile.in: Ditto.
2367         * libc/locale/Makefile.in: Ditto.
2368         * libc/machine/Makefile.in: Ditto.
2369         * libc/machine/aclocal.m4: Ditto.
2370         * libc/machine/configure: Ditto.
2371         * libc/machine/a29k/Makefile.in: Ditto.
2372         * libc/machine/a29k/configure: Ditto.
2373         * libc/machine/arm/Makefile.in: Ditto.
2374         * libc/machine/arm/configure: Ditto.
2375         * libc/machine/bfin/Makefile.in: Ditto.
2376         * libc/machine/bfin/configure: Ditto.
2377         * libc/machine/cris/Makefile.in: Ditto.
2378         * libc/machine/cris/configure: Ditto.
2379         * libc/machine/crx/Makefile.in: Ditto.
2380         * libc/machine/crx/configure: Ditto.
2381         * libc/machine/d10v/Makefile.in: Ditto.
2382         * libc/machine/d10v/configure: Ditto.
2383         * libc/machine/d30v/Makefile.in: Ditto.
2384         * libc/machine/d30v/configure: Ditto.
2385         * libc/machine/fr30/Makefile.in: Ditto.
2386         * libc/machine/fr30/configure: Ditto.
2387         * libc/machine/frv/Makefile.in: Ditto.
2388         * libc/machine/frv/configure: Ditto.
2389         * libc/machine/h8300/Makefile.in: Ditto.
2390         * libc/machine/h8300/configure: Ditto.
2391         * libc/machine/h8500/Makefile.in: Ditto.
2392         * libc/machine/h8500/configure: Ditto.
2393         * libc/machine/hppa/Makefile.in: Ditto.
2394         * libc/machine/hppa/configure: Ditto.
2395         * libc/machine/i386/Makefile.in: Ditto.
2396         * libc/machine/i386/aclocal.m4: Ditto.
2397         * libc/machine/i386/configure: Ditto.
2398         * libc/machine/i960/Makefile.in: Ditto.
2399         * libc/machine/i960/configure: Ditto.
2400         * libc/machine/iq2000/Makefile.in: Ditto.
2401         * libc/machine/iq2000/configure: Ditto.
2402         * libc/machine/m32c/Makefile.in: Ditto.
2403         * libc/machine/m32c/configure: Ditto.
2404         * libc/machine/m32r/Makefile.in: Ditto.
2405         * libc/machine/m32r/configure: Ditto.
2406         * libc/machine/m68hc11/Makefile.in: Ditto.
2407         * libc/machine/m68hc11/configure: Ditto.
2408         * libc/machine/m68k/Makefile.in: Ditto.
2409         * libc/machine/m68k/configure: Ditto.
2410         * libc/machine/m88k/Makefile.in: Ditto.
2411         * libc/machine/m88k/configure: Ditto.
2412         * libc/machine/mep/Makefile.in: Ditto.
2413         * libc/machine/mep/configure: Ditto.
2414         * libc/machine/mips/Makefile.in: Ditto.
2415         * libc/machine/mips/configure: Ditto.
2416         * libc/machine/mn10200/Makefile.in: Ditto.
2417         * libc/machine/mn10200/configure: Ditto.
2418         * libc/machine/mn10300/Makefile.in: Ditto.
2419         * libc/machine/mn10300/configure: Ditto.
2420         * libc/machine/mt/Makefile.in: Ditto.
2421         * libc/machine/mt/configure: Ditto.
2422         * libc/machine/necv70/Makefile.in: Ditto.
2423         * libc/machine/necv70/configure: Ditto.
2424         * libc/machine/powerpc/Makefile.in: Ditto.
2425         * libc/machine/powerpc/configure: Ditto.
2426         * libc/machine/sh/Makefile.in: Ditto.
2427         * libc/machine/sh/configure: Ditto.
2428         * libc/machine/sparc/Makefile.in: Ditto.
2429         * libc/machine/sparc/configure: Ditto.
2430         * libc/machine/spu/Makefile.in: Ditto.
2431         * libc/machine/spu/configure: Ditto.
2432         * libc/machine/tic4x/Makefile.in: Ditto.
2433         * libc/machine/tic4x/configure: Ditto.
2434         * libc/machine/tic80/Makefile.in: Ditto.
2435         * libc/machine/tic80/configure: Ditto.
2436         * libc/machine/v850/Makefile.in: Ditto.
2437         * libc/machine/v850/configure: Ditto.
2438         * libc/machine/w65/Makefile.in: Ditto.
2439         * libc/machine/w65/configure: Ditto.
2440         * libc/machine/x86_64/Makefile.in: Ditto.
2441         * libc/machine/x86_64/configure: Ditto.
2442         * libc/machine/xscale/Makefile.in: Ditto.
2443         * libc/machine/xscale/configure: Ditto.
2444         * libc/machine/xstormy16/Makefile.in: Ditto.
2445         * libc/machine/xstormy16/configure: Ditto.
2446         * libc/machine/z8k/Makefile.in: Ditto.
2447         * libc/machine/z8k/configure: Ditto.
2448         * libc/misc/Makefile.in: Ditto.
2449         * libc/posix/Makefile.in: Ditto.
2450         * libc/reent/Makefile.in: Ditto.
2451         * libc/search/Makefile.in: Ditto.
2452         * libc/signal/Makefile.in: Ditto.
2453         * libc/stdio/Makefile.in: Ditto.
2454         * libc/stdio64/Makefile.in: Ditto.
2455         * libc/stdlib/Makefile.in: Ditto.
2456         * libc/string/Makefile.in: Ditto.
2457         * libc/sys/Makefile.in: Ditto.
2458         * libc/sys/aclocal.m4: Ditto.
2459         * libc/sys/configure: Ditto.
2460         * libc/sys/a29khif/Makefile.in: Ditto.
2461         * libc/sys/a29khif/configure: Ditto.
2462         * libc/sys/arc/Makefile.in: Ditto.
2463         * libc/sys/arc/configure: Ditto.
2464         * libc/sys/arm/Makefile.in: Ditto.
2465         * libc/sys/arm/configure: Ditto.
2466         * libc/sys/d10v/Makefile.in: Ditto.
2467         * libc/sys/d10v/configure: Ditto.
2468         * libc/sys/decstation/Makefile.in: Ditto.
2469         * libc/sys/decstation/configure: Ditto.
2470         * libc/sys/h8300hms/Makefile.in: Ditto.
2471         * libc/sys/h8300hms/configure: Ditto.
2472         * libc/sys/h8500hms/Makefile.in: Ditto.
2473         * libc/sys/h8500hms/configure: Ditto.
2474         * libc/sys/linux/Makefile.in: Ditto.
2475         * libc/sys/linux/aclocal.m4: Ditto.
2476         * libc/sys/linux/configure: Ditto.
2477         * libc/sys/linux/argp/Makefile.in: Ditto.
2478         * libc/sys/linux/cmath/Makefile.in: Ditto.
2479         * libc/sys/linux/dl/Makefile.in: Ditto.
2480         * libc/sys/linux/iconv/Makefile.in: Ditto.
2481         * libc/sys/linux/intl/Makefile.in: Ditto.
2482         * libc/sys/linux/linuxthreads/Makefile.in: Ditto.
2483         * libc/sys/linux/linuxthreads/aclocal.m4: Ditto.
2484         * libc/sys/linux/linuxthreads/configure: Ditto.
2485         * libc/sys/linux/linuxthreads/machine/Makefile.in: Ditto.
2486         * libc/sys/linux/linuxthreads/machine/aclocal.m4: Ditto.
2487         * libc/sys/linux/linuxthreads/machine/configure: Ditto.
2488         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Ditto.
2489         * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Ditto.
2490         * libc/sys/linux/linuxthreads/machine/i386/configure: Ditto.
2491         * libc/sys/linux/machine/Makefile.in: Ditto.
2492         * libc/sys/linux/machine/aclocal.m4: Ditto.
2493         * libc/sys/linux/machine/configure: Ditto.
2494         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
2495         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
2496         * libc/sys/linux/machine/i386/configure: Ditto.
2497         * libc/sys/linux/net/Makefile.in: Ditto.
2498         * libc/sys/linux/stdlib/Makefile.in: Ditto.
2499         * libc/sys/m88kbug/Makefile.in: Ditto.
2500         * libc/sys/m88kbug/configure: Ditto.
2501         * libc/sys/mmixware/Makefile.in: Ditto.
2502         * libc/sys/mmixware/configure: Ditto.
2503         * libc/sys/netware/Makefile.in: Ditto.
2504         * libc/sys/netware/configure: Ditto.
2505         * libc/sys/rdos/Makefile.in: Ditto.
2506         * libc/sys/rdos/configure: Ditto.
2507         * libc/sys/rtems/Makefile.in: Ditto.
2508         * libc/sys/rtems/configure: Ditto.
2509         * libc/sys/sh/Makefile.in: Ditto.
2510         * libc/sys/sh/configure: Ditto.
2511         * libc/sys/sparc64/Makefile.in: Ditto.
2512         * libc/sys/sparc64/configure: Ditto.
2513         * libc/sys/sun4/Makefile.in: Ditto.
2514         * libc/sys/sun4/configure: Ditto.
2515         * libc/sys/sysmec/Makefile.in: Ditto.
2516         * libc/sys/sysmec/configure: Ditto.
2517         * libc/sys/sysnec810/Makefile.in: Ditto.
2518         * libc/sys/sysnec810/configure: Ditto.
2519         * libc/sys/sysnecv850/Makefile.in: Ditto.
2520         * libc/sys/sysnecv850/configure: Ditto.
2521         * libc/sys/sysvi386/Makefile.in: Ditto.
2522         * libc/sys/sysvi386/configure: Ditto.
2523         * libc/sys/sysvnecv70/Makefile.in: Ditto.
2524         * libc/sys/sysvnecv70/configure: Ditto.
2525         * libc/sys/tic80/Makefile.in: Ditto.
2526         * libc/sys/tic80/configure: Ditto.
2527         * libc/sys/w65/Makefile.in: Ditto.
2528         * libc/sys/w65/configure: Ditto.
2529         * libc/sys/z8ksim/Makefile.in: Ditto.
2530         * libc/sys/z8ksim/configure: Ditto.
2531         * libc/syscalls/Makefile.in: Ditto.
2532         * libc/time/Makefile.in: Ditto.
2533         * libc/unix/Makefile.in: Ditto.
2534         * libm/Makefile.in: Ditto.
2535         * libm/aclocal.m4: Ditto.
2536         * libm/configure: Ditto.
2537         * libm/common/Makefile.in: Ditto.
2538         * libm/machine/Makefile.in: Ditto.
2539         * libm/machine/aclocal.m4: Ditto.
2540         * libm/machine/configure: Ditto.
2541         * libm/machine/i386/Makefile.in: Ditto.
2542         * libm/machine/i386/aclocal.m4: Ditto.
2543         * libm/machine/i386/configure: Ditto.
2544         * libm/machine/spu/Makefile.in: Ditto.
2545         * libm/machine/spu/configure: Ditto.
2546         * libm/math/Makefile.in: Ditto.
2547         * libm/mathfp/Makefile.in: Ditto.
2548
2549 2008-09-26  Craig Howland  <howland@LGSInnovations.com>
2550
2551         * libc/stdlib/getenv_r.c (_getenv_r): Modify to not match if name
2552         contains an equal sign.
2553
2554 2008-09-25  Raphael Derossa Pereira  <raphaelpereira@gmail.com>
2555
2556         * libc/include/pthread.h[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add
2557         new pthread_mutexattr_gettype and pthread_mutexattr_settype
2558         prototypes.
2559         * libc/include/sys/types.h[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add
2560         new mutex type values.
2561         (pthread_mutexattr_t)[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add type
2562         field.
2563
2564 2008-09-24  Jeff Johnston  <jjohnstn@redhat.com>
2565
2566         * libc/stdlib/setenv_r.c (_unsetenv_r): Modify to return -1 only if
2567         name is NULL, empty, or contains equal sign.
2568
2569 2008-09-24  Pawel Veselov  <pawel.veselov@gmail.com>
2570
2571         Fix setenv/getenv/unsetenv to be OpenGroup compliant:
2572         * libc/include/stdlib.h (unsetenv, _unsetenv_r): Redefine with integer
2573         return types.
2574         * libc/stdlib/getenv_r.c (_findenv_r): Do no special processing with
2575         names that contain equal chars.
2576         * libc/stdlib/setenv.c: Redefine _unsetenv_r as returning int.
2577         * libc/stdlib/setenv_r.c (_setenv_r): Return -1 and set errno to
2578         EINVAL if name contains an equal sign.  Do not remove any equal signs
2579         from the value.
2580         (_unsetenv_r): Modified to return int.  Return -1 and set EINVAL
2581         if name contains equal sign.  Return -1 if no variable(s) were found
2582         and return 0 otherwise.
2583
2584 2008-09-19  Eric Blake  <ebb9@byu.net>
2585
2586         Supply missing POSIX errno values.
2587         * libc/include/sys/errno.h (ENOTRECOVERABLE, EOWNERDEAD): Define.
2588         * libc/string/strerror.c (strerror): Decode them, and ECANCELED.
2589
2590 2008-09-10  Ken Werner  <ken.werner@de.ibm.com>
2591
2592         * libc/machine/spu/strcpy.h: Add missing header.
2593         * libc/machine/spu/spu_timer_slih.c: Remove unused Variable.
2594         * libm/machine/spu/headers/lgammaf4.h: Add type cast.
2595
2596 2008-09-08  Jeff Johnston  <jjohnstn@redhat.com>
2597
2598         * libc/sys/linux/dl/atomicity.h (exchange_and_add): Fix asm
2599         statement to use "m" instead of "0".
2600         (atomic_add): Ditto.
2601         * libc/sys/linux/linuxthreads/spinlock.c (__pthread_release): Ditto.
2602         * libc/sys/linux/net/getaddrinfo.c: Add limit.h include.
2603         * libc/sys/linux/stdlib/glob.c: Ditto.
2604
2605 2008-09-04  Ken Werner  <ken.werner@de.ibm.com>
2606
2607         * libm/machine/spu/headers/acosd2.h: Duplicated preamble text removed.
2608         * libm/machine/spu/headers/acosf4.h: Likewise.
2609         * libm/machine/spu/headers/acoshd2.h: Likewise.
2610         * libm/machine/spu/headers/acoshf4.h: Likewise.
2611         * libm/machine/spu/headers/asind2.h: Likewise.
2612         * libm/machine/spu/headers/asinf4.h: Likewise.
2613         * libm/machine/spu/headers/asinhd2.h: Likewise.
2614         * libm/machine/spu/headers/asinhf4.h: Likewise.
2615         * libm/machine/spu/headers/atan2d2.h: Likewise.
2616         * libm/machine/spu/headers/atan2f4.h: Likewise.
2617         * libm/machine/spu/headers/atand2.h: Likewise.
2618         * libm/machine/spu/headers/atanf4.h: Likewise.
2619         * libm/machine/spu/headers/atanhd2.h: Likewise.
2620         * libm/machine/spu/headers/atanhf4.h: Likewise.
2621         * libm/machine/spu/headers/cos_sin.h: Likewise.
2622         * libm/machine/spu/headers/cosd2.h: Likewise.
2623         * libm/machine/spu/headers/cosf4.h: Likewise.
2624         * libm/machine/spu/headers/coshd2.h: Likewise.
2625         * libm/machine/spu/headers/coshf4.h: Likewise.
2626         * libm/machine/spu/headers/divd2.h: Likewise.
2627         * libm/machine/spu/headers/divf4.h: Likewise.
2628         * libm/machine/spu/headers/erf_utils.h: Likewise.
2629         * libm/machine/spu/headers/erfcd2.h: Likewise.
2630         * libm/machine/spu/headers/erfcf4.h: Likewise.
2631         * libm/machine/spu/headers/erfd2.h: Likewise.
2632         * libm/machine/spu/headers/erff4.h: Likewise.
2633         * libm/machine/spu/headers/exp2d2.h: Likewise.
2634         * libm/machine/spu/headers/exp2f4.h: Likewise.
2635         * libm/machine/spu/headers/expd2.h: Likewise.
2636         * libm/machine/spu/headers/expf4.h: Likewise.
2637         * libm/machine/spu/headers/expm1d2.h: Likewise.
2638         * libm/machine/spu/headers/expm1f4.h: Likewise.
2639         * libm/machine/spu/headers/floord2.h: Likewise.
2640         * libm/machine/spu/headers/floorf4.h: Likewise.
2641         * libm/machine/spu/headers/hypotd2.h: Likewise.
2642         * libm/machine/spu/headers/hypotf4.h: Likewise.
2643         * libm/machine/spu/headers/isnand2.h: Likewise.
2644         * libm/machine/spu/headers/isnanf4.h: Likewise.
2645         * libm/machine/spu/headers/ldexpd2.h: Likewise.
2646         * libm/machine/spu/headers/ldexpf4.h: Likewise.
2647         * libm/machine/spu/headers/lgammad2.h: Likewise.
2648         * libm/machine/spu/headers/lgammaf4.h: Likewise.
2649         * libm/machine/spu/headers/log10d2.h: Likewise.
2650         * libm/machine/spu/headers/log1pd2.h: Likewise.
2651         * libm/machine/spu/headers/log1pf4.h: Likewise.
2652         * libm/machine/spu/headers/log2d2.h: Likewise.
2653         * libm/machine/spu/headers/log2f4.h: Likewise.
2654         * libm/machine/spu/headers/logbf4.h: Likewise.
2655         * libm/machine/spu/headers/logd2.h: Likewise.
2656         * libm/machine/spu/headers/logf4.h: Likewise.
2657         * libm/machine/spu/headers/nearbyintf4.h: Likewise.
2658         * libm/machine/spu/headers/nextafterd2.h: Likewise.
2659         * libm/machine/spu/headers/nextafterf4.h: Likewise.
2660         * libm/machine/spu/headers/powd2.h: Likewise.
2661         * libm/machine/spu/headers/powf4.h: Likewise.
2662         * libm/machine/spu/headers/recipd2.h: Likewise.
2663         * libm/machine/spu/headers/recipf4.h: Likewise.
2664         * libm/machine/spu/headers/rintf4.h: Likewise.
2665         * libm/machine/spu/headers/scalbnf4.h: Likewise.
2666         * libm/machine/spu/headers/signbitd2.h: Likewise.
2667         * libm/machine/spu/headers/sincosd2.h: Likewise.
2668         * libm/machine/spu/headers/sincosf4.h: Likewise.
2669         * libm/machine/spu/headers/sind2.h: Likewise.
2670         * libm/machine/spu/headers/sinf4.h: Likewise.
2671         * libm/machine/spu/headers/sinhd2.h: Likewise.
2672         * libm/machine/spu/headers/sinhf4.h: Likewise.
2673         * libm/machine/spu/headers/sqrtd2.h: Likewise.
2674         * libm/machine/spu/headers/sqrtf4.h: Likewise.
2675         * libm/machine/spu/headers/tand2.h: Likewise.
2676         * libm/machine/spu/headers/tanf4.h: Likewise.
2677         * libm/machine/spu/headers/tanhd2.h: Likewise.
2678         * libm/machine/spu/headers/tanhf4.h: Likewise.
2679         * libm/machine/spu/headers/tgammad2.h: Likewise.
2680         * libm/machine/spu/headers/tgammaf4.h: Likewise.
2681         * libm/machine/spu/headers/truncd2.h: Likewise.
2682         * libm/machine/spu/headers/truncf4.h: Likewise.
2683         * libm/machine/spu/headers/simdmath.h: Likewise.
2684
2685 2008-09-04  Ken Werner  <ken.werner@de.ibm.com>
2686
2687         * libm/machine/spu/headers/acoshf4.h: Rebase against current simdmath.
2688         * libm/machine/spu/headers/asinhd2.h: Likewise.
2689         * libm/machine/spu/headers/atanhd2.h: Likewise.
2690         * libm/machine/spu/headers/atanhf4.h: Likewise.
2691         * libm/machine/spu/headers/erff4.h: Likewise.
2692         * libm/machine/spu/headers/expd2.h: Likewise.
2693         * libm/machine/spu/headers/ldexpd2.h: Likewise.
2694         * libm/machine/spu/headers/lgammaf4.h: Likewise.
2695         * libm/machine/spu/headers/logbf4.h: Likewise.
2696         * libm/machine/spu/headers/nextafterd2.h: Likewise.
2697         * libm/machine/spu/headers/nextafterf4.h: Likewise.
2698         * libm/machine/spu/headers/recipd2.h: Likewise.
2699         * libm/machine/spu/headers/simdmath.h: Likewise.
2700         * libm/machine/spu/headers/acoshd2.: Likewise.
2701
2702 2008-09-04  Ken Werner  <ken.werner@de.ibm.com>
2703
2704         * libm/machine/spu/headers/cbrt.h: cbrt_factors[] declared.
2705         * libm/machine/spu/headers/cbrtf.h: Likewise.
2706
2707 2008-09-01  Ken Werner  <ken.werner@de.ibm.com>
2708
2709         * libc/machine/spu/include/spu_timer.h: spu_timebase function added.
2710         * libc/machine/spu/spu_timebase.c: New file.
2711         * libc/machine/spu/Makefile.am: Add new file.
2712         * libc/machine/spu/Makefile.in: Regenerated.
2713
2714 2008-08-28  Craig Howland  <howland@LGSInnovations.com>
2715
2716         * libc/time/mktime.c (mktime): Fix tm_isdst value usage (allowing
2717         any positive value from user (per std) rather than depending
2718         upon 1).
2719
2720 2008-08-28  Corinna Vinschen  <corinna@vinschen.de>
2721
2722         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Optimize condition
2723         for accepting a converted character.
2724
2725 2008-08-27  Sandra Loosemore  <sandra@codesourcery.com>
2726
2727         * libc/libc.texinfo: Remove "LOCAL KLUGE" that prevents it
2728         from building pdfs.
2729         * libm/libm.texinfo: Likewise.
2730
2731 2008-08-27  Corinna Vinschen  <corinna@vinschen.de>
2732
2733         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Fix condition for
2734         accepting a converted character and continuing the loop.
2735
2736 2008-07-24  Jeff Johnston  <jjohnstn@redhat.com>
2737
2738         * libc/include/ctype.h (_ctype_): Restore for C++ backward
2739         compatability only.
2740
2741 2008-07-21  Jeff Johnston  <jjohnstn@redhat.com>
2742
2743         * libc/ctype/ctype_.c: Add new pointer __ctype_ptr__ which is one
2744         less than the old __ctype_ptr.
2745         * libc/ctype/isalnum.c: Use __ctype_ptr__.
2746         * libc/ctype/isalpha.c: Ditto.
2747         * libc/ctype/iscntrl.c: Ditto.
2748         * libc/ctype/isdigit.c: Ditto.
2749         * libc/ctype/islower.c: Ditto.
2750         * libc/ctype/isprint.c: Ditto.
2751         * libc/ctype/ispunct.c: Ditto.
2752         * libc/ctype/isspace.c: Ditto.
2753         * libc/ctype/isupper.c: Ditto.
2754         * libc/ctype/isxdigit.c: Ditto.
2755         * libc/include/ctype.h: Change ctype macros to use new __ctype_ptr__
2756         and add declaration of __ctype_ptr__.  Remove older ctype table pointers
2757         from here even though they can still work.
2758
2759 2008-07-18  Ken Werner  <ken.werner@de.ibm.com>
2760
2761         * libc/machine/spu/strcpy.h: Fix error in previous patch.
2762
2763 2008-07-17  Jeff Johnston  <jjohnstn@redhat.com>
2764
2765         * libc/include/assert.h (__ASSERT_FUNC): Define to __FUNCTION__ when
2766         __STDC_VERSION__ < 199901L and __GNUC__ >= 2.
2767
2768 2008-07-17  Ken Werner  <ken.werner@de.ibm.com>
2769
2770         * libc/machine/spu/strcpy.h: Pad null bytes if necessary.
2771
2772 2008-07-08  Kenji Tanaka  <tanaka.ken2@jp.panasonic.com>
2773
2774         * libc/machine/mn10300/memset.S: Fix bug where return value is
2775         incorrectly set if number of bytes set is a multiple of 4.
2776
2777 2008-07-07  Hans-Peter Nilsson  <hp@axis.com>
2778
2779         * libc/machine/mips/strncpy.c: Include stdint.h to get uintptr_t.
2780         (strncpy): Cast src to uintptr_t before checking alignment with "&".
2781
2782 2008-07-02  Jeff Johnston  <jjohnstn@redhat.com>
2783
2784         * libc/argz/argz_count.c: Include stddef.h to get size_t.
2785         * libc/argz/argz_extract.c: Ditto.
2786         * libc/argz/argz_stringify.c: Ditto.
2787         * libc/search/hash.h: Ditto.
2788         * libc/sys/linux/include/sched.h: Ditto.
2789         * libc/sys/linux/sys/types.h: Ditto.
2790
2791 2008-07-02  Jeff Johnston  <jjohnstn@redhat.com>
2792
2793         * libc/machine/mips/strncpy.c (strncpy): Fix logic so unaligned
2794         source data is taken care of before loop unrolling.
2795
2796 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
2797
2798         Fix strict-aliasing issues with _strtod_r and Storeinc.
2799         * libc/stdlib/strtod.c (_strtod_r): Change local variables aadj,
2800         rv, rv0 from double to type U.  Use accessor macros dval, dword0
2801         and dword1 for all accesses except for the ULtod call, where rv.i
2802         replaces the pointer cast.
2803         * libc/stdlib/mprec.h (U): Rename member L to i for easier re-use
2804         of access macros.  Tweak comment.
2805         Remove #ifdef'd YES_ALIAS code.
2806         (dword0, dword1, dval): Define in terms of uncast union member
2807         access.  Ditto for _DOUBLE_IS_32BITS variants.
2808         (Storeinc): Replace aliasing-flawed microoptimized definition with
2809         alternative suggested in comment.  Remove now stale comment.
2810
2811 2008-06-21  Corinna Vinschen  <corinna@vinschen.de>
2812
2813         * libc/include/machine/setjmp.h (_longjmp): Define as function on
2814         Cygwin.
2815         (_setjmp): Ditto.
2816
2817 2008-06-18  Eric Blake  <ebb9@byu.net>
2818
2819         Per Posix, strsignal returns non-const char*.
2820         * libc/include/string.h (strsignal): Fix return type.
2821
2822 2008-06-17  Ken Werner  <ken.werner@de.ibm.com>
2823
2824         * libc/machine/spu/sys/linux_syscalls.h: New file to add Linux syscall
2825         support.
2826
2827 2008-06-16  Ken Werner  <ken.werner@de.ibm.com>
2828
2829         * libc/machine/spu/sys/dirent.h: Add extern "C" specifier if C++.
2830         * libc/machine/spu/sys/sched.h: Likewise.
2831         * libc/machine/spu/sys/syscall.h: Likewise.
2832
2833 2008-06-16  Ken Werner  <ken.werner@de.ibm.com>
2834
2835         * libc/machine/spu/mk_syscalls: Provide .type and .size directives
2836         in generated assembler files.
2837         * libc/machine/spu/fprintf.S: Regenerate.
2838         * libc/machine/spu/fscanf.S: Regenerate.
2839         * libc/machine/spu/printf.S: Regenerate.
2840         * libc/machine/spu/scanf.S: Regenerate.
2841         * libc/machine/spu/snprintf.S: Regenerate.
2842         * libc/machine/spu/sprintf.S: Regenerate.
2843         * libc/machine/spu/sscanf.S: Regenerate.
2844         * libc/machine/spu/stack_reg_va.S (__stack_reg_va): Provide .type
2845         and .size directives.
2846         * libc/machine/spu/setjmp.S (setjmp): Likewise.
2847         (longjmp): Likewise.
2848
2849 2008-06-11  Jeff Johnston  <jjohnstn@redhat.com>
2850
2851         * libc/include/machine/_default_types.h: Fix GNUC check to
2852         handle 4.0 and greater.
2853
2854 2008-06-09  Ken Werner  <ken.werner@de.ibm.com>
2855
2856         * libc/machine/spu/Makefile.am: Add new files.
2857         * libc/machine/spu/Makefile.in: Likewise.
2858         * libc/machine/spu/include/spu_timer.h: New file to add timer support
2859         using interrupts.
2860         * libc/machine/spu/spu_clock_stop.c: Likewise.
2861         * libc/machine/spu/spu_clock_svcs.c: Likewise.
2862         * libc/machine/spu/spu_timer_flih.S: Likewise.
2863         * libc/machine/spu/spu_timer_free.c: Likewise.
2864         * libc/machine/spu/spu_timer_internal.h: Likewise.
2865         * libc/machine/spu/spu_timer_slih.c: Likewise.
2866         * libc/machine/spu/spu_timer_slih_reg.c: Likewise.
2867         * libc/machine/spu/spu_timer_stop.c: Likewise.
2868         * libc/machine/spu/spu_timer_svcs.c: Likewise.
2869
2870 2008-06-09  Ken Werner  <ken.werner@de.ibm.com>
2871
2872         * libc/machine/spu/strcat.c: Return value fixed.
2873         * libc/machine/spu/strncat.c: Likewise.
2874
2875 2008-05-28  Eric Blake  <ebb9@byu.net>
2876
2877         Fix bug in previous patch.
2878         * libc/machine/i386/memset.S (memset): Mask second arg correctly.
2879
2880 2008-05-27  Jeff Johnston  <jjohnstn@redhat.com>
2881
2882         * libc/string/memset.c: Fix documented prototype to remove
2883         erroneous const attribute on first parameter.
2884
2885 2008-05-26  Eric Blake  <ebb9@byu.net>
2886
2887         Optimize the generic and x86 memchr.
2888         * libc/string/memchr.c (memchr) [!__OPTIMIZE_SIZE__]:
2889         Pre-align pointer so unaligned searches aren't penalized.
2890         * libc/machine/i386/memchr.S (memchr) [!__OPTIMIZE_SIZE__]: Word
2891         operations are faster than repnz byte searches.
2892
2893 2008-05-26  Eric Blake  <ebb9@byu.net>
2894
2895         Optimize the generic and x86 memset.
2896         * libc/string/memset.c (memset) [!__OPTIMIZE_SIZE__]:
2897         Pre-align pointer so unaligned stores aren't penalized.
2898         * libc/machine/i386/memset.S (memset) [!__OPTIMIZE_SIZE__]:
2899         Pre-align pointer so unaligned stores aren't penalized.  Prefer
2900         8-byte over 4-byte alignment.  Reduce register pressure.
2901
2902 2008-05-26  Eric Blake  <ebb9@byu.net>
2903
2904         Optimize the generic and x86 strlen.
2905         * libc/string/strlen.c (strlen) [!__OPTIMIZE_SIZE__]: Pre-align
2906         data so unaligned searches aren't penalized.
2907         * libc/machine/i386/strlen.S (strlen) [!__OPTIMIZE_SIZE__]:
2908         Word operations are faster than repnz byte searches.
2909
2910 2008-05-23  Corinna Vinschen  <corinna@vinschen.de>
2911
2912         * libc/include/sys/_default_fcntl.h: Include <sys/time.h> on Cygwin.
2913
2914 2008-05-22  Jeff Johnston  <jjohnstn@redhat.com>
2915
2916         * libc/include/sys/reent.h: Add _h_errno field.
2917         * libc/sys/linux/libc-symbols.h: Add default stubs for new libc macros
2918         now used in net directory.
2919         * libc/sys/linux/bits/libc-lock.h: Always define _IO_MTSAFE_IO.
2920         * libc/sys/linux/include/hesiod.h: Add needed macros for new code
2921         in net directory.
2922         * libc/sys/linux/include/netdb.h: Ditto.
2923         * libc/sys/linux/include/resolv.h: Ditto.
2924         * libc/sys/linux/include/stdint.h: Ditto.
2925         * libc/sys/linux/include/arpa/nameser.h: Ditto.
2926         * libc/sys/linux/include/net/ethernet.h: Ditto.
2927         * libc/sys/linux/include/net/if_ppp.h: Ditto.
2928         * libc/sys/linux/include/netinet/if_ether.h: Ditto.
2929         * libc/sys/linux/machine/i386/get_clockfreq.c: Remove static memmem.
2930         * libc/sys/linux/machine/i386/include/endian.h: Protect macros with
2931         flags to avoid duplicate definition.
2932         * libc/sys/linux/machine/i386/include/param.h: Ditto.
2933         * libc/sys/linux/net/Makefile.am: Modified to account for removed and
2934         added files.
2935         * libc/sys/linux/net/Makefile.in: Regenerated.
2936         * libc/sys/linux/net/base64.c: Replaced with glibc version of code.
2937         * libc/sys/linux/net/getaddrinfo.c: Ditto.
2938         * libc/sys/linux/net/getnameinfo.c: Ditto.
2939         * libc/sys/linux/net/getproto.c: Ditto.
2940         * libc/sys/linux/net/getservent.c: Ditto.
2941         * libc/sys/linux/net/inet_netof.c: Ditto.
2942         * libc/sys/linux/net/inet_lnaof.c: Ditto.
2943         * libc/sys/linux/net/ns_name.c: Ditto.
2944         * libc/sys/linux/net/ns_netint.c: Ditto.
2945         * libc/sys/linux/net/inet_ntoa.c: Ditto.
2946         * libc/sys/linux/net/ns_parse.c: Ditto.
2947         * libc/sys/linux/net/ns_print.c: Ditto.
2948         * libc/sys/linux/net/ns_ttl.c: Ditto.
2949         * libc/sys/linux/net/nsap_addr.c: Ditto.
2950         * libc/sys/linux/net/rcmd.c: Ditto.
2951         * libc/sys/linux/net/res_comp.c: Ditto.
2952         * libc/sys/linux/net/res_data.c: Ditto.
2953         * libc/sys/linux/net/res_debug.c: Ditto.
2954         * libc/sys/linux/net/res_init.c: Ditto.
2955         * libc/sys/linux/net/res_mkquery.c: Ditto.
2956         * libc/sys/linux/net/res_query.c: Ditto.
2957         * libc/sys/linux/net/res_send.c: Ditto.
2958         * libc/sys/linux/net/send.c: Ditto.
2959         * libc/sys/linux/stdlib/collate.c: Ditto.
2960         * libc/sys/linux/sys/ioctl.h: Ditto.
2961         * libc/sys/linux/sys/socket.h: Ditto.
2962         * libc/sys/linux/sys/unistd.h: Ditto.
2963         * libc/sys/linux/iconv/iconvconfig.c: Removed either because no longer
2964         used or because licensing includes advertising clause that cannot be
2965         ignored.
2966         * libc/sys/linux/iconv/strtab.c: Ditto.
2967         * libc/sys/linux/include/libc_private.h: Ditto.
2968         * libc/sys/linux/include/nsswitch.h: Ditto.
2969         * libc/sys/linux/include/net/if_atm.h: Ditto.
2970         * libc/sys/linux/include/net/if_media.h: Ditto.
2971         * libc/sys/linux/include/net/if_pppvar.h: Ditto.
2972         * libc/sys/linux/include/netinet/if_atm.h: Ditto.
2973         * libc/sys/linux/include/netinet/ip_flow.h: Ditto.
2974         * libc/sys/linux/intl/locale.alias: Ditto.
2975         * libc/sys/linux/net/addr2ascii.3: Ditto.
2976         * libc/sys/linux/net/bindresvport.c: Ditto.
2977         * libc/sys/linux/net/byteorder.3: Ditto.
2978         * libc/sys/linux/net/res_config.h: Ditto.
2979         * libc/sys/linux/net/ether_addr.c: Ditto.
2980         * libc/sys/linux/net/ethers.3: Ditto.
2981         * libc/sys/linux/net/getaddrinfo.3: Ditto.
2982         * libc/sys/linux/net/gethostbydns.c: Ditto.
2983         * libc/sys/linux/net/gethostbyht.c: Ditto.
2984         * libc/sys/linux/net/gethostbyname.3: Ditto.
2985         * libc/sys/linux/net/gethostbynis.c: Ditto.
2986         * libc/sys/linux/net/gethostnamadr.c: Ditto.
2987         * libc/sys/linux/net/getifaddrs.3: Ditto.
2988         * libc/sys/linux/net/getifaddrs.c: Ditto.
2989         * libc/sys/linux/net/getipnodebyname.3: Ditto.
2990         * libc/sys/linux/net/getnameinfo.3: Ditto.
2991         * libc/sys/linux/net/getnetbydns.c: Ditto.
2992         * libc/sys/linux/net/getnetbyht.c: Ditto.
2993         * libc/sys/linux/net/getnetbynis.c: Ditto.
2994         * libc/sys/linux/net/getnetent.3: Ditto.
2995         * libc/sys/linux/net/getnetnamadr.c: Ditto.
2996         * libc/sys/linux/net/getprotoent.3: Ditto.
2997         * libc/sys/linux/net/getprotoent.c: Ditto.
2998         * libc/sys/linux/net/getprotoname.c: Ditto.
2999         * libc/sys/linux/net/getservbyname.c: Ditto.
3000         * libc/sys/linux/net/getservbyport.c: Ditto.
3001         * libc/sys/linux/net/getservent.3: Ditto.
3002         * libc/sys/linux/net/herror.c: Ditto.
3003         * libc/sys/linux/net/hesiod.3: Ditto.
3004         * libc/sys/linux/net/hesiod.c: Ditto.
3005         * libc/sys/linux/net/if_indextoname.3: Ditto.
3006         * libc/sys/linux/net/inet.3: Ditto.
3007         * libc/sys/linux/net/inet6_option_space.3: Ditto.
3008         * libc/sys/linux/net/inet6_rthdr_space.3: Ditto.
3009         * libc/sys/linux/net/inet_makeaddr.c: Ditto.
3010         * libc/sys/linux/net/inet_net.3: Ditto.
3011         * libc/sys/linux/net/inet_network.c: Ditto.
3012         * libc/sys/linux/net/innetgr-stub.c: Ditto.
3013         * libc/sys/linux/net/ip6opt.c: Ditto.
3014         * libc/sys/linux/net/iso_addr.3: Ditto.
3015         * libc/sys/linux/net/iso_addr.c: Ditto.
3016         * libc/sys/linux/net/linkaddr.3: Ditto.
3017         * libc/sys/linux/net/linkaddr.c: Ditto.
3018         * libc/sys/linux/net/map_v4v6.c: Ditto.
3019         * libc/sys/linux/net/name6.c: Ditto.
3020         * libc/sys/linux/net/namespace.h: Ditto.
3021         * libc/sys/linux/net/ns.3: Ditto.
3022         * libc/sys/linux/net/ns_addr.c: Ditto.
3023         * libc/sys/linux/net/ns_ntoa.c: Ditto.
3024         * libc/sys/linux/net/nsdispatch.3: Ditto.
3025         * libc/sys/linux/net/nsdispatch.c: Ditto.
3026         * libc/sys/linux/net/nslexer.c: Ditto.
3027         * libc/sys/linux/net/nslexer.l: Ditto.
3028         * libc/sys/linux/net/nsparser.c: Ditto.
3029         * libc/sys/linux/net/nsparser.h: Ditto.
3030         * libc/sys/linux/net/nsparser.y: Ditto.
3031         * libc/sys/linux/net/rcmd.3: Ditto.
3032         * libc/sys/linux/net/rcmdsh.3: Ditto.
3033         * libc/sys/linux/net/res_mkupdate.c: Ditto.
3034         * libc/sys/linux/net/res_update.c: Ditto.
3035         * libc/sys/linux/net/resolver.3: Ditto.
3036         * libc/sys/linux/net/rthdr.c: Ditto.
3037         * libc/sys/linux/net/vars.c: Ditto.
3038         * libc/sys/linux/shlib-compat.h: New file.
3039         * libc/sys/linux/machine/i386/atomic.h: Ditto.
3040         * libc/sys/linux/net/XXX-lookup.c: Ditto.
3041         * libc/sys/linux/net/alias-lookup.c: Ditto.
3042         * libc/sys/linux/net/res_libc.c: Ditto.
3043         * libc/sys/linux/net/aliases.h: Ditto.
3044         * libc/sys/linux/net/check_pf.c: Ditto.
3045         * libc/sys/linux/net/databases.def: Ditto.
3046         * libc/sys/linux/net/digits_dots.c: Ditto.
3047         * libc/sys/linux/net/ether_aton.c: Ditto.
3048         * libc/sys/linux/net/ether_aton_r.c: Ditto.
3049         * libc/sys/linux/net/ether_hton.c: Ditto.
3050         * libc/sys/linux/net/ether_line.c: Ditto.
3051         * libc/sys/linux/net/ether_ntoa.c: Ditto.
3052         * libc/sys/linux/net/ether_ntoa_r.c: Ditto.
3053         * libc/sys/linux/net/ether_ntoh.c: Ditto.
3054         * libc/sys/linux/net/etherent.h: Ditto.
3055         * libc/sys/linux/net/ethers-lookup.c: Ditto.
3056         * libc/sys/linux/net/function.def: Ditto.
3057         * libc/sys/linux/net/getXXbyYY.c: Ditto.
3058         * libc/sys/linux/net/getXXbyYY_r.c: Ditto.
3059         * libc/sys/linux/net/getXXent.c: Ditto.
3060         * libc/sys/linux/net/getXXent_r.c: Ditto.
3061         * libc/sys/linux/net/getaliasent.c: Ditto.
3062         * libc/sys/linux/net/getaliasent_r.c: Ditto.
3063         * libc/sys/linux/net/getaliasname.c: Ditto.
3064         * libc/sys/linux/net/getaliasname_r.c: Ditto.
3065         * libc/sys/linux/net/gethstbyad.c: Ditto.
3066         * libc/sys/linux/net/gethstbyad_r.c: Ditto.
3067         * libc/sys/linux/net/gethstbynm.c: Ditto.
3068         * libc/sys/linux/net/gethstbynm2.c: Ditto.
3069         * libc/sys/linux/net/gethstbynm2_r.c: Ditto.
3070         * libc/sys/linux/net/gethstbynm_r.c: Ditto.
3071         * libc/sys/linux/net/gethstent.c: Ditto.
3072         * libc/sys/linux/net/gethstent_r.c: Ditto.
3073         * libc/sys/linux/net/getnetbyad.c: Ditto.
3074         * libc/sys/linux/net/getnetbyad_r.c: Ditto.
3075         * libc/sys/linux/net/getnetbynm.c: Ditto.
3076         * libc/sys/linux/net/getnetbynm_r.c: Ditto.
3077         * libc/sys/linux/net/getnetent.c: Ditto.
3078         * libc/sys/linux/net/getnetent_r.c: Ditto.
3079         * libc/sys/linux/net/getnetgrent.c: Ditto.
3080         * libc/sys/linux/net/getnetgrent_r.c: Ditto.
3081         * libc/sys/linux/net/getnssent.c: Ditto.
3082         * libc/sys/linux/net/getnssent_r.c: Ditto.
3083         * libc/sys/linux/net/getproto_r.c: Ditto.
3084         * libc/sys/linux/net/getprtent.c: Ditto.
3085         * libc/sys/linux/net/getprtent_r.c: Ditto.
3086         * libc/sys/linux/net/getprtname.c: Ditto.
3087         * libc/sys/linux/net/getprtname_r.c: Ditto.
3088         * libc/sys/linux/net/getrpcbyname.c: Ditto.
3089         * libc/sys/linux/net/getrpcbyname_r.c: Ditto.
3090         * libc/sys/linux/net/getrpcbynumber.c: Ditto.
3091         * libc/sys/linux/net/getrpcbynumber_r.c: Ditto.
3092         * libc/sys/linux/net/getrpcent.c: Ditto.
3093         * libc/sys/linux/net/getrpcent_r.c: Ditto.
3094         * libc/sys/linux/net/getservent_r.c: Ditto.
3095         * libc/sys/linux/net/getsrvbynm.c: Ditto.
3096         * libc/sys/linux/net/getsrvbynm_r.c: Ditto.
3097         * libc/sys/linux/net/getsrvbypt.c: Ditto.
3098         * libc/sys/linux/net/getsrvbypt_r.c: Ditto.
3099         * libc/sys/linux/net/grp-lookup.c: Ditto.
3100         * libc/sys/linux/net/herrno.c: Ditto.
3101         * libc/sys/linux/net/hosts-lookup.c: Ditto.
3102         * libc/sys/linux/net/ifaddrs.h: Ditto.
3103         * libc/sys/linux/net/ifreq.c: Ditto.
3104         * libc/sys/linux/net/ifreq.h: Ditto.
3105         * libc/sys/linux/net/in6_addr.c: Ditto.
3106         * libc/sys/linux/net/inet6_option.c: Ditto.
3107         * libc/sys/linux/net/inet_mkadr.c: Ditto.
3108         * libc/sys/linux/net/inet_net.c: Ditto.
3109         * libc/sys/linux/net/key-lookup.c: Ditto.
3110         * libc/sys/linux/net/local.h: Ditto.
3111         * libc/sys/linux/net/netgroup.h: Ditto.
3112         * libc/sys/linux/net/netgrp-lookup.c: Ditto.
3113         * libc/sys/linux/net/network-lookup.c: Ditto.
3114         * libc/sys/linux/net/not-cancel.h: Ditto.
3115         * libc/sys/linux/net/ns_samedomain.c: Ditto.
3116         * libc/sys/linux/net/nscd-types.h: Ditto.
3117         * libc/sys/linux/net/nss.h: Ditto.
3118         * libc/sys/linux/net/nsswitch.c: Ditto.
3119         * libc/sys/linux/net/nsswitch.h: Ditto.
3120         * libc/sys/linux/net/opensock.c: Ditto.
3121         * libc/sys/linux/net/proto-lookup.c: Ditto.
3122         * libc/sys/linux/net/pwd-lookup.c: Ditto.
3123         * libc/sys/linux/net/res_debug.h: Ditto.
3124         * libc/sys/linux/net/res_hconf.c: Ditto.
3125         * libc/sys/linux/net/res_hconf.h: Ditto.
3126         * libc/sys/linux/net/rexec.c: Ditto.
3127         * libc/sys/linux/net/rpc-lookup.c: Ditto.
3128         * libc/sys/linux/net/ruserpass.c: Ditto.
3129         * libc/sys/linux/net/service-lookup.c: Ditto.
3130         * libc/sys/linux/net/spwd-lookup.c: Ditto.
3131         * libc/sys/linux/net/nscd/nscd-client.h: Ditto.
3132         * libc/sys/linux/net/nscd/nscd_proto.h: Ditto.
3133
3134 2008-05-21  Eric Blake  <ebb9@byu.net>
3135
3136         Optimize the generic strchr.
3137         * libc/string/strchr.c (strchr) [!__OPTIMIZE_SIZE__]: Pre-align
3138         data so unaligned searches aren't penalized.  Special-case
3139         searching for 0.
3140
3141         Optimize strchr for x86.
3142         * libc/machine/i386/strchr.S (strchr) [!__OPTIMIZE_SIZE__]:
3143         Pre-align data so unaligned searches aren't penalized.
3144         Special-case searching for 0.
3145
3146 2008-05-20  Nick Clifton  <nickc@redhat.com>
3147
3148         * libc/sys/sysnecv850/crt0.S (___dso_handle): Define (weak).
3149
3150 2008-05-20  DJ Delorie  <dj@redhat.com>
3151
3152         * libc/sys/sysnecv850/isatty.c (_isatty): Renamed from isatty.
3153
3154 2008-05-14  Jeff Johnston  <jjohnstn@redhat.com>
3155
3156         * libc/include/sys/reent.h: Change _REENT_INIT... macros to
3157         access macro parameter with parentheses around it.
3158
3159 2008-04-26  Mark Mitchell  <mark@codesourcery.com>
3160
3161         * libc/include/stdint.h (SIZE_MIN): Remove.
3162         (SIZE_MAX): Define.
3163         * testsuite/newlib.stdlib/stdlib.exp: New.
3164         * testsuite/newlib.stdlib/size_max.c: Likewise.
3165
3166 2008-04-29  Eric Blake  <ebb9@byu.net>
3167
3168         Fix 2008-04-14 regression in asprintf(ptr,"").
3169         * libc/stdio/asnprintf.c (asnprintf, _asnprintf_r): Avoid stdio
3170         baggage.
3171         * libc/stdio/asniprintf.c (asniprintf, _asniprintf_r): Likewise.
3172         * libc/stdio/asiprintf.c (asiprintf, _asiprintf_r): Likewise.
3173         * libc/stdio/vasniprintf.c (_vasniprintf_r): Likewise.
3174         * libc/stdio/vsnprintf.c (_vsnprintf_r): Likewise.
3175         * libc/stdio/vfprintf.c (_VFPRINTF_R) [STRING_ONLY]: Always malloc
3176         an initial buffer for asprintf.
3177
3178 2008-04-24  Corinna Vinschen  <corinna@vinschen.de>
3179
3180         * libc/include/sys/stat.h: Guard at-functions with !__INSIDE_CYGWIN__.
3181         (fstatat): Fix type of third parameter.
3182
3183 2008-04-25  Nick Clifton  <nickc@redhat.com>
3184
3185         * libc/machine/arm/setjmp.S: Fix thumb2 support.
3186
3187 2008-04-24  Nick Clifton  <nickc@redhat.com>
3188
3189         * libc/include/machine/ieeefp.h: Fix typo: _DOUBLE_IS_32_BITS
3190         should be _DOUBLE_IS_32BITS.
3191
3192 2008-04-24  Corinna Vinschen  <corinna@vinschen.de>
3193
3194         * libc/include/sys/stat.h (UTIME_NOW): Define for Cygwin.
3195         (UTIME_OMIT): Ditto.
3196         (utimensat): Declare for Cygwin.
3197         (futimens): Ditto.
3198
3199 2008-04-23  Ken Werner  <ken.werner@de.ibm.com>
3200
3201         * libc/include/_ansi.h: _LONG_LONG renamed to _LONG_LONG_TYPE.
3202         * libc/include/math.h: Likewise.
3203
3204 2008-04-23  Corinna Vinschen  <corinna@vinschen.de>
3205
3206         * libc/include/stdio.h (renameat): Declare for Cygwin.
3207         (symlinkat): Ditto.
3208         * libc/include/sys/unistd.h (readlink): Align declaration to POSIX.
3209         (faccessat): Declare for Cygwin.
3210         (fchownat): Ditto.
3211         (linkat): Ditto.
3212         (readlinkat): Ditto.
3213         * libc/include/sys/_default_fcntl.h (AT_FDCWD): Define for Cygwin.
3214         (AT_EACCESS): Ditto.
3215         (AT_SYMLINK_NOFOLLOW): Ditto.
3216         (AT_SYMLINK_FOLLOW): Ditto.
3217         (AT_REMOVEDIR): Ditto.
3218         (futimesat): Declare for Cygwin.
3219         (openat): Ditto.
3220         (unlinkat): Ditto.
3221         * libc/include/sys/stat.h (fchmodat): Ditto.
3222         (fstatat): Ditto.
3223         (mkdirat): Ditto.
3224         (mkfifoat): Ditto.
3225         (mknodat): Ditto.
3226
3227 2008-04-22  Nick Clifton  <nickc@redhat.com>
3228
3229         * libc/machine/arm/setjmp.S: Add support for thumb2 multiple
3230         register load/store instructions.
3231
3232 2008-04-16  Patrick Mansfield  <patmans@us.ibm.com>
3233
3234         * libc/machine/spu/sys/errno.h: Use _impure_data, not _reent_data.
3235
3236 2008-04-16  Patrick Mansfield  <patmans@us.ibm.com>
3237
3238         * libc/machine/spu/impure.c: Add missing underscore to impure_data.
3239
3240 2008-04-14  Patrick Mansfield  <patmans@us.ibm.com>
3241
3242         * libc/machine/spu/impure.c: New file, supply a non-static _impure_data.
3243         * libc/machine/spu/Makefile.am: Add new file impure.c.
3244         * libc/machine/spu/Makefile.in: Regenerate.
3245         * libc/machine/spu/sys/errno.h: Define errno to be _reent_data._errno.
3246
3247 2008-04-14  Jeff Johnston  <jjohnstn@redhat.com>
3248
3249         * libc/stdio/Makefile.am: Build vfprintf.c and vfscanf.c with
3250         -DSTRING_ONLY defined with and without -DINTEGER_ONLY defined
3251         to build special versions for sprintf/sscanf family functions.
3252         * libc/stdio/Makefile.in: Regenerated.
3253         * libc/stdio/vfprintf.c[STRING_ONLY][INTEGER_ONLY](_VFPRINTF_R):
3254         Redefine to be _svfiprintf_r which is optimized to work with siprintf
3255         family of functions (i.e. no I/O) and does not support floating-point.
3256         [STRING_ONLY][!INTEGER_ONLY](_VFPRINTF_R): Redefine to be
3257         _svfprintf_r which is optimized to work with sprintf family of
3258         functions and not use I/O.
3259         [STRING_ONLY](__sprint_r): New string only version of static function.
3260         designed to work with sprintf family of functions.
3261         * libc/stdio/vfscanf.c[STRING_ONLY][INTEGER_ONLY](_SVFSCANF_R):
3262         Redefine to be _ssvfiscanf_r which is optimized to work with siscanf
3263         family of functions (i.e. no I/O) and no float-point support.
3264         [STRING_ONLY][!INTEGER_ONLY](_SVFSCANF_R): Redefine to be
3265         __ssvfscanf_r which is optimized to work with sscanf family of
3266         functions and does not require I/O functions.
3267         * libc/stdio/asprintf.c: Call _svfprintf_r instead of _vfprintf_r.
3268         * libc/stdio/snprintf.c: Ditto.
3269         * libc/stdio/sprintf.c: Ditto.
3270         * libc/stdio/vasnprintf.c: Ditto.
3271         * libc/stdio/vasprintf.c: Ditto.
3272         * libc/stdio/siprintf.c: Call _svfiprintf_r instead of _vfiprintf_r.
3273         * libc/stdio/sniprintf.c: Ditto.
3274         * libc/stdio/vasiprintf.c: Ditto.
3275         * libc/stdio/vsiprintf.c: Ditto.
3276         * libc/stdio/vsniprintf.c: Ditto.
3277         * libc/stdio/vsprintf.c: Ditto.
3278         * libc/stdio/local.h: Add prototypes for _svfprintf_r, _svfiprintf_r,
3279         _ssvfscanf_r, and _ssvfiscanf_r.
3280         * libc/stdio/sscanf.c: Call _ssvfscanf_r instead of _svfscanf_r.
3281         * libc/stdio/vsscanf.c: Ditto.
3282         * libc/stdio/siscanf.c: Call _ssvfiscanf_r instead of _svfiscanf_r.
3283         * libc/stdio/vsiscanf.c: Ditto.
3284
3285 2008-04-04  DJ Delorie  <dj@redhat.com>
3286
3287         * libm/machine/spu/configure: Regenerate with autoconf 2.61.
3288         * libc/sys/configure: Regenerate with autoconf 2.61.
3289         * libc/machine/configure: Regenerate with autoconf 2.61.
3290
3291 2008-04-01 Patrick Mansfield <patmans@us.ibm.com>
3292
3293         * libc/machine/spu/memcmp.c: New file for SPU optimized memcmp.
3294         * libc/machine/spu/strncmp.h: New file supply _strncmp_internal.
3295         * libc/machine/spu/Makefile.am: Add memcmp.c.
3296         * libc/machine/spu/Makefile.in: Rebuild.
3297         * libc/machine/spu/strncmp.c: Use _strncmp_internal.
3298
3299 2008-04-01 Patrick Mansfield <patmans@us.ibm.com>
3300
3301         * configure.host: Build SPU with -DREENTRANT_SYSCALLS_PROVIDED and
3302           -DMISSING_SYSCALL_NAMES.
3303
3304 2008-04-01 Patrick Mansfield <patmans@us.ibm.com>
3305
3306         * libc/machine/spu/Makefile.am: Add assert.c.
3307         * libc/machine/spu/Makefile.in: Regenerate.
3308         * libc/machine/spu/assert.c: New file.
3309
3310 2008-03-27 Patrick Mansfield <patmans@us.ibm.com>
3311
3312         * libc/include/reent.h: Define _func_r functions in this file to
3313         func if REENTRANT_SYSCALLS_PROVIDED and MISSING_SYSCALL_NAMES are
3314         defined.
3315
3316 2008-03-27  Corinna Vinschen  <corinna@vinschen.de>
3317
3318         * libc/include/sys/unistd.h: Declare lockf(2) and define lockf
3319         constants when building for Cygwin.
3320
3321 2008-03-11  Jeff Johnston  <jjohnstn@redhat.com>
3322
3323         * libc/stdio/rgetc.c (__srget_r): Invoke CHECK_INIT to ensure
3324         stdin gets resolved properly before refilling.
3325
3326 2008-03-07  Jeff Johnston  <jjohnstn@redhat.com>
3327
3328         * libc/include/getopt.h: Hide newlib extensions under
3329         the __need_getopt_newlib flag.
3330         * libc/stdlib/getopt.c: #define __need_getopt_newlib before including
3331         getopt.h.  Put entire code under !HAVE_GETOPT to support platforms
3332         with their own getopt implementation.
3333         * configure.host: Specify HAVE_GETOPT for x86-linux.
3334
3335 2008-03-07  Jeff Johnston  <jjohnstn@redhat.com>
3336
3337         * libc/include/sys/reent.h(_REENT_SMALL_CHECK_INIT): Specify
3338         this macro completely instead of referring to CHECK_STD_INIT which
3339         is only found in libc/stdio/local.h.
3340         * libc/stdio/dprintf.c: Add include of local.h.
3341         * libc/stdio/vdprintf.c: Ditto.
3342         * libc/stdio/vdiprintf.c: Ditto.
3343
3344 2008-03-04  Eric Blake  <ebb9@byu.net>
3345
3346         Fix strtod("nan()", ptr).
3347         * libc/stdlib/gdtoa-hexnan.c (hexnan): When the optional
3348         n-char-sequence is omitted, still parse the ().
3349
3350 2008-03-03  Eric Blake  <ebb9@byu.net>
3351
3352         Fix ftell bug after ungetc.
3353         * libc/stdio/ftell.c (_ftell_r): Don't flush ungetc buffer on
3354         ftell.
3355         * libc/stdio64/ftello64.c (_ftello64_r): Likewise.
3356         * libc/stdio/fflush.c (_fflush_r): Clear unget buffer when
3357         repositioning underlying fd offset.
3358
3359 2008-03-02  Jeff Johnston  <jjohnstn@redhat.com>
3360
3361         * libc/include/getopt.h (no_argument): Added for glibc compatibility.
3362         (required_argument, optional_argument): Ditto.
3363
3364 2008-02-29  Gregory Pietsch  <gpietsch@comcast.net>
3365
3366         * libc/stdlib/getopt.c (getopt_internal): Rewrite to accept
3367         data area so as to support reentrant calls.  Change all callers
3368         to fill in data area with global values and restore any changes
3369         to the global values after call.
3370         (__getopt_r, __getopt_long_r, __getopt_long_only_r): New routines
3371         to support reentrancy that add a data area argument.
3372         * libc/include/getopt.h: Add new _r routines and provide macros
3373         so they can be called with using double-underscores.
3374
3375 2008-02-21  Eric Blake  <ebb9@byu.net>
3376
3377         Fix strtod("-0x", NULL).
3378         * libc/stdlib/strtod.c (_strtod_r): Fall back to 0 if hex parse
3379         fails.
3380
3381 2008-02-12  Jeff Johnston  <jjohnstn@redhat.com>
3382
3383         * libc/machine/powerpc/vfprintf.c (_VFPRINTF_R): Prepare
3384         for user specifying --disable-newlib-io-long-long on configure.
3385         Call _fflush_r instead of fflush.  For _mbtowc_r, pass the
3386         reentrant pointer passed in rather than _REENT.
3387
3388 2008-02-12  Peter Rosin  <peda@lysator.liu.se>
3389
3390         * libc/stdlib/getopt.c (getopt_internal): Handle optional
3391         arguments better for long options and short options not
3392         appearing as the first option in a sequence.
3393
3394 2008-02-11  Patrick Mansfield  <patmans@us.ibm.com>
3395
3396         * libc/machine/spu/straddr.h: New file, supplies _straddr.
3397         * libc/machine/spu/strcat.c: Use _straddr and _strcpy.
3398         * libc/machine/spu/strcpy.c: Use _strcpy.
3399         * libc/machine/spu/strcpy.h: Supply _strcpy for optimized SPU
3400         str[n]cpy and str[n]cat.
3401         * libc/machine/spu/strncat.c: Use _straddr and _strcpy.
3402         * libc/machine/spu/strncpy.c: Use _strcpy.
3403
3404 2008-02-11  Patrick Mansfield  <patmans@us.ibm.com>
3405
3406         * libc/machine/spu/strlen.c: Remove the len variable and unneeded
3407         calculation of its value.
3408
3409 2008-01-25  Hans-Peter Nilsson  <hp@bitrange.com>
3410
3411         * libc/sys/mmixware/isatty.c (_isatty): Renamed from isatty.
3412         Make ISO C.
3413
3414 2008-01-21  DJ Delorie  <dj@redhat.com>
3415
3416         * libc/sys/sh/syscalls.c (_isatty): New.
3417
3418 2008-01-21  Neal H. Walfield  <neal@gnu.org>
3419
3420         * Makefile.am (crt1.o): Use correct source.
3421         * Makefile.in: Regenerated.
3422
3423 2008-01-15  Eric Blake  <ebb9@byu.net>
3424
3425         * libc/string/Makefile.am (ELIX_2_SOURCES): Fix definition.
3426         * libc/string/Makefile: Regenerate.
3427
3428 2008-01-15  Corinna Vinschen  <corinna@vinschen.de>
3429
3430         * libc/include/machine/setjmp.h (__SIGMASK_FUNC): Define as
3431         pthread_sigmask or sigprocmask depending on _POSIX_THREADS.
3432         (sigsetjmp): Use __SIGMASK_FUNC.
3433         (siglongjmp): Ditto.
3434         (_setjmp): Define as macro.
3435         (_longjmp): Ditto.
3436
3437 2008-01-11  Eric Blake  <ebb9@byu.net>
3438
3439         Make strstr and strcasestr O(n), not O(n^2); add memmem.
3440         * libc/string/str-two-way.h: New file.
3441         * libc/string/memmem.c (memmem): New file.
3442         * libc/include/string.h (memmem): Declare for all platforms.
3443         * libc/string/strstr.c (strstr): Provide O(n) implementation when
3444         not optimizing for space.
3445         * libc/string/strcasestr.c (strcasestr): Likewise.
3446         * libc/string/Makefile.am (ELIX_SOURCES): Rename to...
3447         (ELIX_2_SOURCES): ...this.
3448         (ELIX_4_SOURCES): New category, for memmem.
3449         (lib_a_SOURCES, libstring_la_SOURCES): Build new file.
3450         (CHEWOUT_FILES): Build documentation for memmem.
3451         * libc/string/strings.tex: Include new docs.
3452
3453 2008-01-08  Jeff Johnston  <jjohnstn@redhat.com>
3454
3455         * libc/machine/m68k/memcpy.S: Remove % from register references
3456         as this is already handled by m68kasm.h.
3457         * libc/machine/m68k/memset.S: Ditto.
3458
3459 2008-01-07  Jeff Johnston  <jjohnstn@redhat.com>
3460
3461         * libc/machine/m68k/m68kasm.h: New file.
3462         * libc/machine/m68k/setjmp.S: Remove common definitions and
3463         place in m68kasm.h.  Include "m68kasm.h".
3464         * libc/machine/m68k/memcpy.S: Include "m68kasm.h" and use
3465         SYM() macro when referencing function name.
3466         * libc/machine/m68k/memset.S: Ditto.
3467
3468 2008-01-03  Jeff Johnston  <jjohnstn@redhat.com>
3469
3470         Make isatty syscall handling consistent with other newlib syscalls.
3471
3472         * libc/include/_syslist.h: Add _isatty.
3473         * libc/include/reent.h: Add _isatty_r.
3474         * libc/include/sys/unistd.h: Add _isatty.
3475         * libc/posix/Makefile.am: Add new _isatty.c file.
3476         * libc/posix/Makefile.in: Regenerated.
3477         * libc/posix/_isatty.c: New file.
3478         * libc/posix/isatty.c: Changed to call _isatty().
3479         * libc/reent/Makefile.am: Add new isattyr.c file.
3480         * libc/reent/Makefile.in: Regenerated.
3481         * libc/reent/isattyr.c: New file.
3482         * libc/stdio/freopen.c: Changed to call _isatty_r().
3483         * libc/stdio/makebuf.c: Ditto.
3484         * libc/sys/a29khif/_isatty.S: Change isatty to _isatty.
3485         * libc/sys/arc/isatty.c: Ditto.
3486         * libc/sys/arm/syscalls.c: Ditto.
3487         * libc/sys/d10v/syscalls.c: Ditto.
3488         * libc/sys/h8300hms/syscalls.c: Ditto.
3489         * libc/sys/h8500hms/syscalls.c: Ditto.
3490         * libc/sys/linux/Makefile.am: Add new isatty.c file.
3491         * libc/sys/linux/Makefile.in: Regenerated.
3492         * libc/sys/linux/isatty.c: New file.
3493         * libc/syscalls/Makefile.am: Add new sysisatty.c file.
3494         * libc/syscalls/Makefile.in: Regenerated.
3495         * libc/syscalls/sysisatty.c: New file.
3496
3497 2008-01-02  Jeff Johnston  <jjohnstn@redhat.com>
3498
3499         * libc/syscalls/sysclose.c: Always call reentrant version of the
3500         underlying syscall since one is guaranteed to exist in libc/reent.
3501         * libc/syscalls/sysexecve.c: Ditto.
3502         * libc/syscalls/sysfcntl.c: Ditto.
3503         * libc/syscalls/sysfork.c: Ditto.
3504         * libc/syscalls/sysfstat.c: Ditto.
3505         * libc/syscalls/sysgetpid.c: Ditto.
3506         * libc/syscalls/sysgettod.c: Ditto.
3507         * libc/syscalls/syskill.c: Ditto.
3508         * libc/syscalls/syslink.c: Ditto.
3509         * libc/syscalls/syslseek.c: Ditto.
3510         * libc/syscalls/sysopen.c: Ditto.
3511         * libc/syscalls/sysread.c: Ditto.
3512         * libc/syscalls/syssbrk.c: Ditto.
3513         * libc/syscalls/sysstat.c: Ditto.
3514         * libc/syscalls/systimes.c: Ditto.
3515         * libc/syscalls/sysunlink.c: Ditto.
3516         * libc/syscalls/syswait.c: Ditto.
3517         * libc/syscalls/syswrite.c: Ditto.
3518
3519 2007-12-19  Jeff Johnston  <jjohnstn@redhat.com>
3520
3521         * NEWS: Update with 1.16.0 info.
3522         * README: Ditto.
3523         * acinclude.m4: Change version number to 1.16.0.
3524         * aclocal.m4: Regenerated.
3525         * configure: Ditto.
3526         * doc/aclocal.m4: Ditto.
3527         * doc/configure: Ditto.
3528         * libc/*/aclocal.m4: Ditto.
3529         * libc/*/configure: Ditto.
3530         * libc/libc.texinfo: Ditto.
3531         * libm/*/aclocal.m4: Ditto.
3532         * libm/*/configure: Ditto.
3533         * libm/libm.texinfo: Ditto.
3534         * libc/sys/linux/shared.ld: Add VERS_1.16.
3535
3536 2007-12-19  Jeff Johnston  <jjohnstn@redhat.com>
3537
3538         * libc/string/strcasestr.c: Remove id macro.
3539         * libc/sys/linux/linuxthreads/attr.c: Fix up sched_priority
3540         field reference to be __sched_priority.
3541         * libc/sys/linux/linuxthreads/joinrace.c: Ditto.
3542         * libc/sys/linux/linuxthreads/manager.c: Ditto.
3543         * libc/sys/linux/stdlib/collate.c: Remove id macro.
3544         * libc/sys/linux/stdlib/collcmp.c: Ditto.
3545         * libc/sys/linux/stdlib/engine.c: Ditto.
3546         * libc/sys/linux/stdlib/fnmatch.c: Ditto.
3547         * libc/sys/linux/stdlib/glob.c: Ditto.
3548         * libc/sys/linux/stdlib/reallocf.c: Ditto.
3549         * libc/sys/linux/stdlib/regcomp.c: Ditto.
3550         * libc/sys/linux/stdlib/regerror.c: Ditto.
3551         * libc/sys/linux/stdlib/regexec.c: Ditto.
3552         * libc/sys/linux/stdlib/regfree.c: Ditto.
3553         * libc/sys/linux/sys/cdefs.h: Replace with latest version.
3554         * libc/sys/linux/include/argp.h: Ditto.
3555         * libc/sys/linux/sys/libc-lock.h: New file.
3556         * libc/sys/linux/sys/stdint.h: Ditto.
3557         * libc/sys/linux/include/sched.h: New file.
3558
3559 2007-12-19  Dave Korn  <dave.korn@artimi.com>
3560             Jeff Johnston  <jjohnstn@redhhat.com>
3561
3562         * libc/include/_ansi.h: Add _LONG_LONG definition.
3563         * libc/include/math.h (llrint, llrintf, rintl, lrintl, llrintl): Add
3564         prototypes.
3565         * libc/machine/i386/machine/fastmath.h: Add support for new i386
3566         fast math versions of rint, lrint, and llrint family functions.
3567         * libm/machine/i386/Makefile.am: Add new files.
3568         * libm/machine/i386/Makefile.in: Regenerated.
3569         * libm/machine/i386/f_llrint.c, libm/machine/i386/f_lrint.c,
3570         libm/machine/i386/f_rint.c, libm/machine/i386/f_llrintf.c,
3571         libm/machine/i386/f_lrintf.c, libm/machine/i386/f_rintf.c,
3572         libm/machine/i386/f_llrintl.c, libm/machine/i386/f_lrintl.c,
3573         libm/machine/i386/f_rintl.c:  New files with fast math implementations.
3574
3575 2007-12-19  Jeff Johnston  <jjohnstn@redhat.com>
3576
3577         * libc/include/sys/features.h: Add checks for C90 compilers using
3578         -ansi.
3579
3580 2007-12-19  Corinna Vinschen  <corinna@vinschen.de>
3581
3582         * libc/include/wchar.h: Add prototypes for wcpcpy and wcpncpy.
3583         * libc/string/Makefile.am (ELIX_SOURCES): Add wcpcpy.c and
3584         wcpncpy.c.
3585         (CHEWOUT_FILES): Add wcpcpy.def and wcpncpy.def.
3586         * libc/string/Makefile.in: Regenerate.
3587         * libc/string/wcpcpy.c: New file.
3588         * libc/string/wcpncpy.c: New file.
3589         * libc/string/wcstrings.tex: Add wcpcpy and wcpncpy.
3590
3591 2007-12-19  Corinna Vinschen  <corinna@vinschen.de>
3592
3593         * libc/stdio/vfprintf.c (_VFPRINTF_R): Use correct pointer in call to
3594         _wcsrtombs_r.
3595
3596 2007-11-19  Nick Clifton  <nickc@redhat.com>
3597
3598         * libc/machine/mn10300/Makefile.am (CCASFLAGS): Add -Wa,--gdwarf-2.
3599         * libc/machine/mn10300/Makefile.in: Regenerate.
3600         * libc/machine/mn10300/memchar.S: Remove redundant labels.  Add
3601         .debug_frame section.
3602         * libc/machine/mn10300/memcmp.S: Likewise.
3603         * libc/machine/mn10300/memcpy.S: Likewise.
3604         * libc/machine/mn10300/memset.S: Likewise.
3605         * libc/machine/mn10300/strchr.S: Likewise.
3606         * libc/machine/mn10300/strcmp.S: Likewise.
3607         * libc/machine/mn10300/strcpy.S: Likewise.
3608         * libc/machine/mn10300/strlen.S: Likewise.
3609
3610 2007-11-15  Jeff Johnston  <jjohnstn@redhat.com>
3611
3612         * libc/include/sys/_default_fcntl.h: New header file that
3613         is the default version of sys/fcntl.h.
3614         * libc/include/sys/fcntl.h: Changed to simply include
3615         sys/_default_fcntl.h.
3616         * libc/sys/arm/sys/fcntl.h: New file that includes
3617         sys/_default_fcntl.h and defines O_BINARY.
3618
3619 2007-11-08  Corinna Vinschen  <corinna@vinschen.de>
3620
3621         * libc/include/sys/unistd.h: Remove Cygwin definition of MAXPATHLEN.
3622
3623 2007-11-07  Dave Brolley  <brolley@redhat.com>
3624
3625         * libc/machine/configure: Regenerated to pick up mep-elf changes.
3626
3627         * Contribute mep-elf from Red Hat
3628         2006-10-27  DJ Delorie  <dj@redhat.com>
3629
3630         * libc/include/machine/setjmp.h: Add MeP support.
3631
3632         2003-04-17  DJ Delorie  <dj@redhat.com>
3633
3634         * configure.host (mep-*-*): Support "long long" type.
3635
3636         2001-06-06  DJ Delorie  <dj@redhat.com>
3637
3638         * libc/include/machine/ieeefp.h (mep): Support little endian too.
3639
3640         2001-05-14  DJ Delorie  <dj@redhat.com>
3641
3642         * configure.host: Add mep's machine_dir.
3643         * libc/include/setjmp.h: Add mep support.
3644         * libc/machine/mep: New.
3645         * libc/machine/mep/setjmp.S: New, support mep's setjmp/longjmp.
3646
3647         2001-05-04  DJ Delorie  <dj@redhat.com>
3648
3649         * configure.host: Add mep.
3650         * libc/include/machine/ieeefp.h: Ditto.
3651
3652 2007-10-31  DJ Delorie  <dj@redhat.com>
3653
3654         * libc/signal/signal.c (_raise_r): Don't attempt to initialize the
3655         signal table, just use a default, in case initialization cause
3656         recursion.
3657
3658 2007-10-23  Jeff Johnston  <jjohnstn@redhat.com>
3659
3660         * libc/stdlib/wcstombs_r.c: Add SUSV2 support for calculating
3661         size if output buffer is NULL.
3662
3663 2007-10-17  Jeff Johnston  <jjohnstn@redhat.com>
3664
3665         * libm/mathfp/s_logarithm.c: Fix error introduced by previous
3666         fix when handling negative input values.  Make function
3667         consistent with math directory and glibc version such that
3668         inf and nan values return inf and nan respectively with no
3669         errno setting.
3670         * libm/mathfp/sf_logarithm.c: Ditto.
3671         * libm/math/w_log.c: Set errno to ERANGE when input is 0.0.
3672         * libm/math/wf_log.c: Ditto.
3673         * libm/math/w_log10.c: Ditto.
3674         * libm/math/wf_log10.c: Ditto.
3675
3676 2007-10-17  Jeff Johnston  <jjohnstn@redhat.com>
3677
3678         * libm/mathfp/s_logarithm.c: Fix case where input is 0 to
3679         return -inf.
3680         * libm/mathfp/sf_logarithm.c: Ditto.
3681
3682 2007-10-17  Jeff Johnston  <jjohnstn@redhat.com>
3683
3684         * libc/machine/i386/machine/fastmath.h: New file.
3685
3686 2007-10-13  Eric Blake  <ebb9@byu.net>
3687
3688         * libc/stdio/vfprintf.c (_VFPRINTF_R) [__OPTIMIZE_SIZE__]:
3689         Correctly nest else within conditionals.
3690         Reported by Artur Lipowski.
3691
3692 2007-10-09  Nick Clifton  <nickc@redhat.com>
3693
3694         * libc/sys/linux/dl/do-lookup.h (FCT): Support symbols with
3695         the STT_COMMON type.
3696
3697 2007-10-09  Ben Elliston  <bje@au.ibm.com>
3698
3699         * libm/machine/spu/headers/acosd2.h: Include spu_intrinsics.h
3700         before simdmath.h to get a definition for `vector'.
3701         * libm/machine/spu/headers/asind2.h: Likewise.
3702
3703 2007-09-28  Patrick Mansfield  <patmans@us.ibm.com>
3704
3705         * libm/machine/spu/headers/dom_chkd_less_than.h: New file.
3706         * libm/machine/spu/headers/dom_chkd_negone_one.h: Ditto.
3707         * libm/machine/spu/headers/dom_chkf_less_than.h: Ditto.
3708         * libm/machine/spu/headers/dom_chkf_negone_one.h: Ditto.
3709         * libm/machine/spu/headers/acos.h: Add domain check.
3710         * libm/machine/spu/headers/acosf.h: Ditto.
3711         * libm/machine/spu/headers/acosh.h: Ditto.
3712         * libm/machine/spu/headers/acoshf.h: Ditto.
3713         * libm/machine/spu/headers/asin.h: Ditto.
3714         * libm/machine/spu/headers/asinf.h: Ditto.
3715         * libm/machine/spu/headers/atanh.h: Ditto.
3716         * libm/machine/spu/headers/atanhf.h: Ditto.
3717         * libm/machine/spu/headers/fmod.h: Ditto.
3718         * libm/machine/spu/headers/fmodf.h: Ditto.
3719         * libm/machine/spu/headers/log.h: Ditto.
3720         * libm/machine/spu/headers/log10.h: Ditto.
3721         * libm/machine/spu/headers/log1p.h: Ditto.
3722         * libm/machine/spu/headers/log1pf.h: Ditto.
3723         * libm/machine/spu/headers/log2.h: Ditto.
3724         * libm/machine/spu/headers/log2f.h: Ditto.
3725         * libm/machine/spu/headers/sqrt.h: Ditto.
3726         * libm/machine/spu/headers/sqrtf.h: Ditto.
3727         * libm/machine/spu/headers/tgamma.h: Ditto.
3728         * libm/machine/spu/headers/tgammaf.h: Ditto.
3729
3730 2007-09-28  Patrick Mansfield  <patmans@us.ibm.com>
3731
3732         * libm/machine/spu/Makefile.am: Add new C files.
3733         * libm/machine/spu/Makefile.in: Regenerate.
3734         * libm/machine/spu/headers/acos.h: New file.
3735         * libm/machine/spu/headers/acosd2.h: Ditto.
3736         * libm/machine/spu/headers/acosf.h: Ditto.
3737         * libm/machine/spu/headers/acosf4.h: Ditto.
3738         * libm/machine/spu/headers/acosh.h: Ditto.
3739         * libm/machine/spu/headers/acoshd2.h: Ditto.
3740         * libm/machine/spu/headers/acoshf.h: Ditto.
3741         * libm/machine/spu/headers/acoshf4.h: Ditto.
3742         * libm/machine/spu/headers/asin.h: Ditto.
3743         * libm/machine/spu/headers/asind2.h: Ditto.
3744         * libm/machine/spu/headers/asinf.h: Ditto.
3745         * libm/machine/spu/headers/asinf4.h: Ditto.
3746         * libm/machine/spu/headers/asinh.h: Ditto.
3747         * libm/machine/spu/headers/asinhd2.h: Ditto.
3748         * libm/machine/spu/headers/asinhf.h: Ditto.
3749         * libm/machine/spu/headers/asinhf4.h: Ditto.
3750         * libm/machine/spu/headers/atan.h: Ditto.
3751         * libm/machine/spu/headers/atan2.h: Ditto.
3752         * libm/machine/spu/headers/atan2d2.h: Ditto.
3753         * libm/machine/spu/headers/atan2f.h: Ditto.
3754         * libm/machine/spu/headers/atan2f4.h: Ditto.
3755         * libm/machine/spu/headers/atand2.h: Ditto.
3756         * libm/machine/spu/headers/atanf4.h: Ditto.
3757         * libm/machine/spu/headers/atanh.h: Ditto.
3758         * libm/machine/spu/headers/atanhd2.h: Ditto.
3759         * libm/machine/spu/headers/atanhf.h: Ditto.
3760         * libm/machine/spu/headers/atanhf4.h: Ditto.
3761         * libm/machine/spu/headers/cos.h: Ditto.
3762         * libm/machine/spu/headers/cos_sin.h: Ditto.
3763         * libm/machine/spu/headers/cosd2.h: Ditto.
3764         * libm/machine/spu/headers/cosf.h: Ditto.
3765         * libm/machine/spu/headers/cosf4.h: Ditto.
3766         * libm/machine/spu/headers/cosh.h: Ditto.
3767         * libm/machine/spu/headers/coshd2.h: Ditto.
3768         * libm/machine/spu/headers/coshf.h: Ditto.
3769         * libm/machine/spu/headers/coshf4.h: Ditto.
3770         * libm/machine/spu/headers/divd2.h: Ditto.
3771         * libm/machine/spu/headers/divf4.h: Ditto.
3772         * libm/machine/spu/headers/erf.h: Ditto.
3773         * libm/machine/spu/headers/erf_utils.h: Ditto.
3774         * libm/machine/spu/headers/erfc.h: Ditto.
3775         * libm/machine/spu/headers/erfcd2.h: Ditto.
3776         * libm/machine/spu/headers/erfcf.h: Ditto.
3777         * libm/machine/spu/headers/erfcf4.h: Ditto.
3778         * libm/machine/spu/headers/erfd2.h: Ditto.
3779         * libm/machine/spu/headers/erff.h: Ditto.
3780         * libm/machine/spu/headers/erff4.h: Ditto.
3781         * libm/machine/spu/headers/exp.h: Ditto.
3782         * libm/machine/spu/headers/exp2.h: Ditto.
3783         * libm/machine/spu/headers/exp2d2.h: Ditto.
3784         * libm/machine/spu/headers/exp2f4.h: Ditto.
3785         * libm/machine/spu/headers/expd2.h: Ditto.
3786         * libm/machine/spu/headers/expf4.h: Ditto.
3787         * libm/machine/spu/headers/expm1.h: Ditto.
3788         * libm/machine/spu/headers/expm1d2.h: Ditto.
3789         * libm/machine/spu/headers/expm1f.h: Ditto.
3790         * libm/machine/spu/headers/expm1f4.h: Ditto.
3791         * libm/machine/spu/headers/floord2.h: Ditto.
3792         * libm/machine/spu/headers/floorf4.h: Ditto.
3793         * libm/machine/spu/headers/hypot.h: Ditto.
3794         * libm/machine/spu/headers/hypotd2.h: Ditto.
3795         * libm/machine/spu/headers/hypotf.h: Ditto.
3796         * libm/machine/spu/headers/hypotf4.h: Ditto.
3797         * libm/machine/spu/headers/isnan.h: Ditto.
3798         * libm/machine/spu/headers/isnand2.h: Ditto.
3799         * libm/machine/spu/headers/isnanf.h: Ditto.
3800         * libm/machine/spu/headers/isnanf4.h: Ditto.
3801         * libm/machine/spu/headers/ldexpd2.h: Ditto.
3802         * libm/machine/spu/headers/ldexpf4.h: Ditto.
3803         * libm/machine/spu/headers/lgamma.h: Ditto.
3804         * libm/machine/spu/headers/lgammad2.h: Ditto.
3805         * libm/machine/spu/headers/lgammaf.h: Ditto.
3806         * libm/machine/spu/headers/lgammaf4.h: Ditto.
3807         * libm/machine/spu/headers/log.h: Ditto.
3808         * libm/machine/spu/headers/log10.h: Ditto.
3809         * libm/machine/spu/headers/log10d2.h: Ditto.
3810         * libm/machine/spu/headers/log1p.h: Ditto.
3811         * libm/machine/spu/headers/log1pd2.h: Ditto.
3812         * libm/machine/spu/headers/log1pf.h: Ditto.
3813         * libm/machine/spu/headers/log1pf4.h: Ditto.
3814         * libm/machine/spu/headers/log2.h: Ditto.
3815         * libm/machine/spu/headers/log2d2.h: Ditto.
3816         * libm/machine/spu/headers/log2f4.h: Ditto.
3817         * libm/machine/spu/headers/logbf.h: Ditto.
3818         * libm/machine/spu/headers/logbf4.h: Ditto.
3819         * libm/machine/spu/headers/logd2.h: Ditto.
3820         * libm/machine/spu/headers/logf4.h: Ditto.
3821         * libm/machine/spu/headers/nearbyintf.h: Ditto.
3822         * libm/machine/spu/headers/nearbyintf4.h: Ditto.
3823         * libm/machine/spu/headers/nextafter.h: Ditto.
3824         * libm/machine/spu/headers/nextafterd2.h: Ditto.
3825         * libm/machine/spu/headers/nextafterf.h: Ditto.
3826         * libm/machine/spu/headers/nextafterf4.h: Ditto.
3827         * libm/machine/spu/headers/pow.h: Ditto.
3828         * libm/machine/spu/headers/powd2.h: Ditto.
3829         * libm/machine/spu/headers/powf.h: Ditto.
3830         * libm/machine/spu/headers/powf4.h: Ditto.
3831         * libm/machine/spu/headers/recipd2.h: Ditto.
3832         * libm/machine/spu/headers/recipf4.h: Ditto.
3833         * libm/machine/spu/headers/rintf.h: Ditto.
3834         * libm/machine/spu/headers/rintf4.h: Ditto.
3835         * libm/machine/spu/headers/scalbnf4.h: Ditto.
3836         * libm/machine/spu/headers/signbit.h: Ditto.
3837         * libm/machine/spu/headers/signbitd2.h: Ditto.
3838         * libm/machine/spu/headers/simdmath.h: Ditto.
3839         * libm/machine/spu/headers/sin.h: Ditto.
3840         * libm/machine/spu/headers/sincos.h: Ditto.
3841         * libm/machine/spu/headers/sincosd2.h: Ditto.
3842         * libm/machine/spu/headers/sincosf.h: Ditto.
3843         * libm/machine/spu/headers/sincosf4.h: Ditto.
3844         * libm/machine/spu/headers/sind2.h: Ditto.
3845         * libm/machine/spu/headers/sinf.h: Ditto.
3846         * libm/machine/spu/headers/sinf4.h: Ditto.
3847         * libm/machine/spu/headers/sinh.h: Ditto.
3848         * libm/machine/spu/headers/sinhd2.h: Ditto.
3849         * libm/machine/spu/headers/sinhf.h: Ditto.
3850         * libm/machine/spu/headers/sinhf4.h: Ditto.
3851         * libm/machine/spu/headers/sqrtd2.h: Ditto.
3852         * libm/machine/spu/headers/sqrtf.h: Ditto.
3853         * libm/machine/spu/headers/sqrtf4.h: Ditto.
3854         * libm/machine/spu/headers/tan.h: Ditto.
3855         * libm/machine/spu/headers/tand2.h: Ditto.
3856         * libm/machine/spu/headers/tanf.h: Ditto.
3857         * libm/machine/spu/headers/tanf4.h: Ditto.
3858         * libm/machine/spu/headers/tanh.h: Ditto.
3859         * libm/machine/spu/headers/tanhd2.h: Ditto.
3860         * libm/machine/spu/headers/tanhf.h: Ditto.
3861         * libm/machine/spu/headers/tanhf4.h: Ditto.
3862         * libm/machine/spu/headers/tgamma.h: Ditto.
3863         * libm/machine/spu/headers/tgammad2.h: Ditto.
3864         * libm/machine/spu/headers/tgammaf.h: Ditto.
3865         * libm/machine/spu/headers/tgammaf4.h: Ditto.
3866         * libm/machine/spu/headers/truncd2.h: Ditto.
3867         * libm/machine/spu/headers/truncf4.h: Ditto.
3868         * libm/machine/spu/log2.c: Ditto.
3869         * libm/machine/spu/s_asinh.c: Ditto.
3870         * libm/machine/spu/s_atan.c: Ditto.
3871         * libm/machine/spu/s_cos.c: Ditto.
3872         * libm/machine/spu/s_erf.c: Ditto.
3873         * libm/machine/spu/s_expm1.c: Ditto.
3874         * libm/machine/spu/s_isnan.c: Ditto.
3875         * libm/machine/spu/s_log1p.c: Ditto.
3876         * libm/machine/spu/s_nextafter.c: Ditto.
3877         * libm/machine/spu/s_sin.c: Ditto.
3878         * libm/machine/spu/s_tan.c: Ditto.
3879         * libm/machine/spu/s_tanh.c: Ditto.
3880         * libm/machine/spu/sf_asinh.c: Ditto.
3881         * libm/machine/spu/sf_cos.c: Ditto.
3882         * libm/machine/spu/sf_erf.c: Ditto.
3883         * libm/machine/spu/sf_expm1.c: Ditto.
3884         * libm/machine/spu/sf_log1p.c: Ditto.
3885         * libm/machine/spu/sf_logb.c: Ditto.
3886         * libm/machine/spu/sf_nearbyint.c: Ditto.
3887         * libm/machine/spu/sf_nextafter.c: Ditto.
3888         * libm/machine/spu/sf_rint.c: Ditto.
3889         * libm/machine/spu/sf_sin.c: Ditto.
3890         * libm/machine/spu/sf_tan.c: Ditto.
3891         * libm/machine/spu/sf_tanh.c: Ditto.
3892         * libm/machine/spu/w_acos.c: Ditto.
3893         * libm/machine/spu/w_acosh.c: Ditto.
3894         * libm/machine/spu/w_asin.c: Ditto.
3895         * libm/machine/spu/w_atan2.c: Ditto.
3896         * libm/machine/spu/w_atanh.c: Ditto.
3897         * libm/machine/spu/w_cosh.c: Ditto.
3898         * libm/machine/spu/w_exp.c: Ditto.
3899         * libm/machine/spu/w_exp2.c: Ditto.
3900         * libm/machine/spu/w_hypot.c: Ditto.
3901         * libm/machine/spu/w_lgamma.c: Ditto.
3902         * libm/machine/spu/w_log.c: Ditto.
3903         * libm/machine/spu/w_log10.c: Ditto.
3904         * libm/machine/spu/w_pow.c: Ditto.
3905         * libm/machine/spu/w_sincos.c: Ditto.
3906         * libm/machine/spu/w_sinh.c: Ditto.
3907         * libm/machine/spu/w_tgamma.c: Ditto.
3908         * libm/machine/spu/wf_acos.c: Ditto.
3909         * libm/machine/spu/wf_acosh.c: Ditto.
3910         * libm/machine/spu/wf_asin.c: Ditto.
3911         * libm/machine/spu/wf_atan2.c: Ditto.
3912         * libm/machine/spu/wf_atanh.c: Ditto.
3913         * libm/machine/spu/wf_cosh.c: Ditto.
3914         * libm/machine/spu/wf_hypot.c: Ditto.
3915         * libm/machine/spu/wf_lgamma.c: Ditto.
3916         * libm/machine/spu/wf_pow.c: Ditto.
3917         * libm/machine/spu/wf_sincos.c: Ditto.
3918         * libm/machine/spu/wf_sinh.c: Ditto.
3919         * libm/machine/spu/wf_sqrt.c: Ditto.
3920         * libm/machine/spu/wf_tgamma.c: Ditto.
3921
3922 2007-09-28  Patrick Mansfield  <patmans@us.ibm.com>
3923
3924         * configure.host: Define _POSIX_MODE to match the existing vector
3925         math code, as we don't support the matherr callout.
3926         * libm/machine/spu/Makefile.am: New file.
3927         * libm/machine/spu/Makefile.in: Auto-generated.
3928         * libm/machine/spu/headers/atanf.h: New file.
3929         * libm/machine/spu/headers/cbrt.h: Ditto.
3930         * libm/machine/spu/headers/cbrtf.h: Ditto.
3931         * libm/machine/spu/headers/ceil.h: Ditto.
3932         * libm/machine/spu/headers/ceilf.h: Ditto.
3933         * libm/machine/spu/headers/copysign.h: Ditto.
3934         * libm/machine/spu/headers/copysignf.h: Ditto.
3935         * libm/machine/spu/headers/exp2f.h: Ditto.
3936         * libm/machine/spu/headers/expf.h: Ditto.
3937         * libm/machine/spu/headers/fabs.h: Ditto.
3938         * libm/machine/spu/headers/fabsf.h: Ditto.
3939         * libm/machine/spu/headers/fdim.h: Ditto.
3940         * libm/machine/spu/headers/fdimf.h: Ditto.
3941         * libm/machine/spu/headers/floor.h: Ditto.
3942         * libm/machine/spu/headers/floorf.h: Ditto.
3943         * libm/machine/spu/headers/fma.h: Ditto.
3944         * libm/machine/spu/headers/fmaf.h: Ditto.
3945         * libm/machine/spu/headers/fmax.h: Ditto.
3946         * libm/machine/spu/headers/fmaxf.h: Ditto.
3947         * libm/machine/spu/headers/fmin.h: Ditto.
3948         * libm/machine/spu/headers/fminf.h: Ditto.
3949         * libm/machine/spu/headers/fmod.h: Ditto.
3950         * libm/machine/spu/headers/fmodf.h: Ditto.
3951         * libm/machine/spu/headers/frexp.h: Ditto.
3952         * libm/machine/spu/headers/frexpf.h: Ditto.
3953         * libm/machine/spu/headers/ilogb.h: Ditto.
3954         * libm/machine/spu/headers/ilogbf.h: Ditto.
3955         * libm/machine/spu/headers/ldexp.h: Ditto.
3956         * libm/machine/spu/headers/ldexpf.h: Ditto.
3957         * libm/machine/spu/headers/llrint.h: Ditto.
3958         * libm/machine/spu/headers/llrintf.h: Ditto.
3959         * libm/machine/spu/headers/llround.h: Ditto.
3960         * libm/machine/spu/headers/llroundf.h: Ditto.
3961         * libm/machine/spu/headers/log10f.h: Ditto.
3962         * libm/machine/spu/headers/log2f.h: Ditto.
3963         * libm/machine/spu/headers/logf.h: Ditto.
3964         * libm/machine/spu/headers/lrint.h: Ditto.
3965         * libm/machine/spu/headers/lrintf.h: Ditto.
3966         * libm/machine/spu/headers/lround.h: Ditto.
3967         * libm/machine/spu/headers/lroundf.h: Ditto.
3968         * libm/machine/spu/headers/nearbyint.h: Ditto.
3969         * libm/machine/spu/headers/remainder.h: Ditto.
3970         * libm/machine/spu/headers/remainderf.h: Ditto.
3971         * libm/machine/spu/headers/remquo.h: Ditto.
3972         * libm/machine/spu/headers/remquof.h: Ditto.
3973         * libm/machine/spu/headers/rint.h: Ditto.
3974         * libm/machine/spu/headers/round.h: Ditto.
3975         * libm/machine/spu/headers/roundf.h: Ditto.
3976         * libm/machine/spu/headers/scalbn.h: Ditto.
3977         * libm/machine/spu/headers/scalbnf.h: Ditto.
3978         * libm/machine/spu/headers/sqrt.h: Ditto.
3979         * libm/machine/spu/headers/trunc.h: Ditto.
3980         * libm/machine/spu/headers/truncf.h: Ditto.
3981         * libm/machine/spu/headers/vec_literal.h: Ditto.
3982         * libm/machine/spu/llrint.c: Ditto.
3983         * libm/machine/spu/llrintf.c: Ditto.
3984         * libm/machine/spu/llround.c: Ditto.
3985         * libm/machine/spu/llroundf.c: Ditto.
3986         * libm/machine/spu/log2f.c: Ditto.
3987         * libm/machine/spu/s_cbrt.c: Ditto.
3988         * libm/machine/spu/s_ceil.c: Ditto.
3989         * libm/machine/spu/s_copysign.c: Ditto.
3990         * libm/machine/spu/s_fabs.c: Ditto.
3991         * libm/machine/spu/s_fdim.c: Ditto.
3992         * libm/machine/spu/s_floor.c: Ditto.
3993         * libm/machine/spu/s_fma.c: Ditto.
3994         * libm/machine/spu/s_fmax.c: Ditto.
3995         * libm/machine/spu/s_fmin.c: Ditto.
3996         * libm/machine/spu/s_frexp.c: Ditto.
3997         * libm/machine/spu/s_ilogb.c: Ditto.
3998         * libm/machine/spu/s_ldexp.c: Ditto.
3999         * libm/machine/spu/s_lrint.c: Ditto.
4000         * libm/machine/spu/s_lround.c: Ditto.
4001         * libm/machine/spu/s_nearbyint.c: Ditto.
4002         * libm/machine/spu/s_remquo.c: Ditto.
4003         * libm/machine/spu/s_rint.c: Ditto.
4004         * libm/machine/spu/s_round.c: Ditto.
4005         * libm/machine/spu/s_scalbn.c: Ditto.
4006         * libm/machine/spu/s_trunc.c: Ditto.
4007         * libm/machine/spu/sf_atan.c: Ditto.
4008         * libm/machine/spu/sf_cbrt.c: Ditto.
4009         * libm/machine/spu/sf_ceil.c: Ditto.
4010         * libm/machine/spu/sf_copysign.c: Ditto.
4011         * libm/machine/spu/sf_fabs.c: Ditto.
4012         * libm/machine/spu/sf_fdim.c: Ditto.
4013         * libm/machine/spu/sf_floor.c: Ditto.
4014         * libm/machine/spu/sf_fma.c: Ditto.
4015         * libm/machine/spu/sf_fmax.c: Ditto.
4016         * libm/machine/spu/sf_fmin.c: Ditto.
4017         * libm/machine/spu/sf_frexp.c: Ditto.
4018         * libm/machine/spu/sf_ilogb.c: Ditto.
4019         * libm/machine/spu/sf_ldexp.c: Ditto.
4020         * libm/machine/spu/sf_lrint.c: Ditto.
4021         * libm/machine/spu/sf_lround.c: Ditto.
4022         * libm/machine/spu/sf_remquo.c: Ditto.
4023         * libm/machine/spu/sf_round.c: Ditto.
4024         * libm/machine/spu/sf_scalbn.c: Ditto.
4025         * libm/machine/spu/sf_trunc.c: Ditto.
4026         * libm/machine/spu/w_fmod.c: Ditto.
4027         * libm/machine/spu/w_remainder.c: Ditto.
4028         * libm/machine/spu/w_sqrt.c: Ditto.
4029         * libm/machine/spu/wf_exp.c: Ditto.
4030         * libm/machine/spu/wf_exp2.c: Ditto.
4031         * libm/machine/spu/wf_fmod.c: Ditto.
4032         * libm/machine/spu/wf_log.c: Ditto.
4033         * libm/machine/spu/wf_log10.c: Ditto.
4034         * libm/machine/spu/wf_remainder.c: Ditto.
4035
4036 2007-09-21  Patrick Mansfield  <patmans@us.ibm.com>
4037
4038         * libc/machine/spu/sys/uio.h: New file for readv and writev use.
4039
4040 2007-09-21  Patrick Mansfield  <patmans@us.ibm.com>
4041
4042         * libc/include/sched.h: New file, just include sys/sched.h.
4043         * libc/machine/spu/sys/sched.h: New file, has just sched_yield
4044         prototype.
4045         * libc/machine/spu/sys/utime.h: New file, has utime prototype and
4046         struct utimbuf definition.
4047
4048 2007-09-21  Patrick Mansfield  <patmans@us.ibm.com>
4049
4050         * libc/machine/spu/sys/dirent.h: New file, add prototypes and SPU
4051         specific struct and typedef.
4052
4053 2007-09-18  Patrick Mansfield  <patmans@us.ibm.com>
4054
4055         * libc/include/sys/types.h: Use __dev_t, __uid_t, and __gid_t to
4056         typedef dev_t, gid_t, and uid_t.
4057         * libc/include/sys/_types.h: Move previous dev_t, uid_t and gid_t
4058         types.h code to here, but typedef __dev_t, __uid_t, and __gid_t instead.
4059         Change to lower case for all __foo_t_defined names.
4060         * libc/machine/spu/machine/_types.h: Add SPU specific __dev_t,
4061         __uid_t, and __gid_t making them all four bytes. Change to lower case
4062         for all __foo_t_defined names.
4063
4064 2007-09-18  Jeff Johnston  <jjohnstn@redhat.com>
4065
4066         * libc/reent/renamer.c: New file.
4067         * libc/reent/Makefile.am: Add new file.
4068         * libc/reent/Makefile.in: Regenerated.
4069         * libc/stdio/rename.c: Break out _rename_r code into reent/renamer.c
4070         and add check for rename syscall.
4071
4072 2007-09-17  Eric Blake  <ebb9@byu.net>
4073
4074         Obey POSIX on printf("%.s", (char*)NULL).
4075         * libc/stdio/vfprintf.c (_VFPRINTF_R): Take precision into account
4076         for %s on NULL.  Skip NULL check when optimizing for size.
4077
4078 2007-09-07  Jeff Johnston  <jjohnstn@redhat.com>
4079
4080         * libc/include/sys/_types.h: Protect all types with flag
4081         checks to allow definition in machine/_types.h.
4082
4083 2007-09-07  Jeff Johnston  <jjohnstn@redhat.com>
4084
4085         * libc/sys/linux/sys/_types.h: Add _fpos_t and _fpos64_t
4086         definitions in light of the previous change.
4087
4088 2007-09-07  Patrick Mansfield  <patmans@us.ibm.com>
4089
4090         * libc/include/machine/_default_types.h: New file, contains what
4091         was previously in libc/include/machine/_types.h.
4092         * libc/include/machine/_types.h: Now only includes
4093         machine/_default_types.h.
4094         * libc/include/sys/reent.h: Remove _fpos_t and _fpos64_t.
4095         * libc/include/sys/_types.h: Move _fpos_t and _fpos64_t to here,
4096         with conditional declarations.
4097         * libc/machine/spu/machine/_types.h: New file, add SPU specific
4098         typedefs for _fpos_t and _fpos64_t.
4099
4100 2007-09-07  Jeff Johnston  <jjohnstn@redhat.com>
4101
4102         * libc/include/math.h (_M_LOG2E): Replace with..
4103         (_M_LOG2_E): New macro.
4104         (log2, log2f, M_LOG2_E): Use _M_LOG2_E.
4105
4106 2007-09-06  Brian Dessent  <brian@dessent.net>
4107
4108         * libc/reent/getreent.c: Allow for case where __getreent is
4109         defined as a macro.
4110
4111 2007-09-06  Jeff Johnston  <jjohnstn@redhat.com>
4112
4113         * libc/include/math.h (_M_LOG2E): New log2 of e macro.
4114         (log2): Use _M_LOG2E instead of M_LOG2E.
4115         (log2f): Ditto.
4116         (M_LOG2E): Define to be _M_LOG2E.
4117
4118 2007-09-04  Kazunori Asayama <asayama@sm.sony.co.jp>
4119
4120         * libm/math/wf_tgamma.c: Add missing include.
4121
4122 2007-08-31  Antony King  <antony.king@st.com>
4123
4124         * libc/stdlib/mprec.h [_DOUBLE_IS_32BITS}: Define IEEE_Arith
4125         bits and redefine associated dword0 macro (rvalue issue).
4126         * libc/stdio/vfieeefp.h: Ditto.
4127         * libc/stdlib/strtod.c: Add checks for _DOUBLE_IS_32BITS
4128         to prevent setting dword1 which is an rvalue only.
4129
4130 2007-08-28  Hans Kester  <hans.kester@ellips.nl>
4131
4132         * configure.host: Added support for x86_64.
4133         * libc/include/machine/ieeefp.h: Define __IEEE_LITTLE_ENDIAN for x86_64.
4134         * libc/include/machine/setjmp.h: Define _JBTYPE and _JBLEN for x86_64.
4135         * libc/machine/x86_64/aclocal.m4: Generated.
4136         * libc/machine/x86_64/configure.in: New.
4137         * libc/machine/x86_64/configure: Generated.
4138         * libc/machine/x86_64/Makefile.am: New.
4139         * libc/machine/x86_64/Makefile.in: Generated.
4140         * libc/machine/x86_64/setjmp.S: New.
4141         * libc/machine/x86_64/memcpy.S: New.
4142         * libc/machine/x86_64/memset.S: New.
4143         * libc/machine/configure.in: Added support for x86_64.
4144         * libc/machine/configure: Regenerated.
4145
4146 2007-08-24  Jeff Johnston  <jjohnstn@redhat.com>
4147
4148         * libm/common/sf_lround.c (lroundf): Cast sizeof calculation
4149         to int before comparing it to a signed int value.
4150
4151 2007-08-24  Hans-Peter Nilsson  <hp@axis.com>
4152
4153         * libc/machine/cris/sys/errno.h (ECANCELED, ENOKEY, EKEYEXPIRED)
4154         (EKEYREVOKED, EKEYREJECTED, EOWNERDEAD, ENOTRECOVERABLE, ENOTSUP):
4155         Define.
4156
4157 2007-08-23  Hidetaka Takano  <hidetaka.takano@glb.toshiba.co.jp>
4158
4159         Reduce the memory consumption of variable argument functions
4160         for SPU (cell):
4161         * libc/machine/spu/Makefile.am: Replace printf/scanf family C sources
4162           to assembler sources.
4163         * libc/machine/spu/Makefile.in: Regenerated.
4164         * libc/machine/spu/stdio.c: Add __check_init function wrapping
4165           CHECK_INIT macro to use from assembler routines.
4166         * libc/machine/spu/c99ppe.h: Add definitions for assembler code.
4167         * libc/machine/spu/fiprintf.S: New file.
4168         * libc/machine/spu/fiscanf.S: Ditto.
4169         * libc/machine/spu/fprintf.S: Ditto.
4170         * libc/machine/spu/fscanf.S: Ditto.
4171         * libc/machine/spu/iprintf.S: Ditto.
4172         * libc/machine/spu/iscanf.S: Ditto.
4173         * libc/machine/spu/printf.S: Ditto.
4174         * libc/machine/spu/scanf.S: Ditto.
4175         * libc/machine/spu/siprintf.S: Ditto.
4176         * libc/machine/spu/siscanf.S: Ditto.
4177         * libc/machine/spu/sniprintf.S: Ditto.
4178         * libc/machine/spu/snprintf.S: Ditto.
4179         * libc/machine/spu/sprintf.S: Ditto.
4180         * libc/machine/spu/sscanf.S: Ditto.
4181         * libc/machine/spu/stack_reg_va.S: Ditto.
4182         * libc/machine/spu/syscall.def: Ditto. (for maintenance)
4183         * libc/machine/spu/mk_syscalls: Ditto. (for maintenance)
4184         * libc/machine/spu/fiprintf.c: Removed. (Replaced by .S)
4185         * libc/machine/spu/fiscanf.c: Ditto.
4186         * libc/machine/spu/fprintf.c: Ditto.
4187         * libc/machine/spu/fscanf.c: Ditto.
4188         * libc/machine/spu/iprintf.c: Ditto.
4189         * libc/machine/spu/iscanf.c: Ditto.
4190         * libc/machine/spu/printf.c: Ditto.
4191         * libc/machine/spu/scanf.c: Ditto.
4192         * libc/machine/spu/siprintf.c: Ditto.
4193         * libc/machine/spu/siscanf.c: Ditto.
4194         * libc/machine/spu/sniprintf.c: Ditto.
4195         * libc/machine/spu/snprintf.c: Ditto.
4196         * libc/machine/spu/sprintf.c: Ditto.
4197         * libc/machine/spu/sscanf.c: Ditto.
4198
4199 2007-08-03  Ralf Corsepius  <ralf.corsepius@rtems.org>
4200
4201         * libc/include/tar.h: New.
4202
4203 2007-08-03  Jeff Johnston  <jjohnstn@redhat.com>
4204
4205         * libc/sys/linux/intl/Makefile.am: Change stpcpy reference to
4206         lcl_stpcpy to avoid conflict with new stpcpy.c in libc/string.
4207         * libc/sys/linux/intl/Makefile.in: Regenerated.
4208         * libc/sys/linux/intl/stpcpy.c: Renamed to...
4209         * libc/sys/linux/intl/lcl_stpcpy.c: ..this.
4210
4211 2007-08-02  Eric Blake  <ebb9@byu.net>
4212
4213         Implement fmemopen and open_memstream.
4214         * libc/stdio/fmemopen.c (_fmemopen_r, fmemopen): New file.
4215         * libc/stdio/open_memstream.c (_open_memstream_r, open_memstream):
4216         New file.
4217         * libc/stdio/fopencookie.c (fcwriter): Minor optimization.
4218         * libc/include/stdio.h (dprintf, vdprintf): Group all POSIX 200x
4219         functions together.
4220         (fmemopen, open_memstream): Declare new functions.
4221         * libc/stdio/stdio.tex: Document them.
4222         * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Add
4223         fmemopen and open_memstream.
4224         * libc/stdio/Makefile.in: Regenerate.
4225
4226 2007-07-31  Eric Blake  <ebb9@byu.net>
4227
4228         More POSIX stream corner cases.
4229         * libc/stdio/findfp.c (__sinit): Open stderr read/write.
4230         * libc/stdio/fdopen.c (_fdopen_r): Set O_APPEND on fd when
4231         requested.
4232         * libc/stdio64/fdopen64.c (_fdopen64_r): Likewise.
4233
4234 2007-07-18  Eric Blake  <ebb9@byu.net>
4235
4236         Fix 'make info'.
4237         * libc/stdio/stdio.tex: Add missing include.
4238         * libc/stdio/vfprintf.c: Use expected node name.
4239         * libc/stdio/vfscanf.c: Likewise.
4240         * libc/stdio/sscanf.c: Likewise.
4241         * libc/stdio/sprintf.c: Likewise.
4242         * libc/stdio/siscanf.c: Likewise.
4243         * libc/stdio/siprintf.c: Likewise.
4244         * libc/stdio/fopencookie.c: Quote raw {}.
4245         Reported by DJ Delorie.
4246
4247 2007-07-13  Eric Blake  <ebb9@byu.net>
4248
4249         Fix fflush issues.
4250         * libc/stdio/fflush.c (_fflush_r): New function.
4251         (fflush): Fix reentrancy and large offset behavior.
4252         * libc/include/stdio.h (_fflush_r): Add prototype.
4253         * libc/stdio/fclose.c (_fclose_r): All fflush callers changed.
4254         * libc/stdio/freopen.c (_freopen_r): Likewise.
4255         * libc/stdio/fseek.c (_fseek_r): Likewise.
4256         * libc/stdio/ftell.c (_ftell_r): Likewise.
4257         * libc/stdio/fvwrite.c (__sfvwrite_r): Likewise.
4258         * libc/stdio/refill.c (__srefill_r): Likewise.
4259         * libc/stdio/setvbuf.c (setvbuf): Likewise.
4260         * libc/stdio/ungetc.c (_ungetc_r): Likewise.
4261         * libc/stdio/vfprintf.c (__sbprintf): Likewise.
4262         * libc/stdio/wbuf.c (__swbuf_r): Likewise.
4263         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
4264         * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.  Defer to
4265         32-bit version if not large file.
4266         * libc/stdio64/ftello64.c (_ftello64_r): Likewise.
4267         * libc/stdio64/tmpfile64.c (_tmpfile64_r): Avoid compile warning.
4268
4269         Documentation updates.
4270         * libc/stdio/ungetc.c: Document ungetc.
4271         * libc/stdio/Makefile.am (CHEWOUT_FILES): Sort, match current list
4272         of files with documentation.
4273         * libc/stdio/Makefile.in: Regenerate.
4274         * libc/stdio/stdio.tex: Sort and update stdio documentation index.
4275
4276 2007-07-11  Jeff Johnston  <jjohnstn@redhat.com>
4277
4278         * libc/include/math.h: Fix so C99 functions/macros are accessible
4279         when -std=c99 is used when compiling and not when using C89.
4280
4281 2007-07-06  Corinna Vinschen  <corinna@vinschen.de>
4282
4283         * libc/include/wchar.h: Declare wcstol, wcstoll, wcstoul,
4284         wcstoull, _wcstol_r, _wcstoll_r, _wcstoul_r and _wcstoull_r.
4285         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add wcstol.c and wcstoul.c.
4286         (EXTENDED_SOURCES): Add wcstoll.c, wcstoll_r.c, wcstoull.c and
4287         wcstoull_r.c.
4288         (CHEWOUT_FILES): Add .def files accordingly.
4289         * libc/stdlib/Makefile.in: Regenerate.
4290         * libc/stdlib/stdlib.tex: Add documentation links for above functions.
4291         * libc/stdlib/strtoll.c: Fix portability note.
4292         * libc/stdlib/strtoull.c: Ditto.
4293         * libc/stdlib/wcstol.c: New file.
4294         * libc/stdlib/wcstoll.c: New file.
4295         * libc/stdlib/wcstoll_r.c: New file.
4296         * libc/stdlib/wcstoul.c: New file.
4297         * libc/stdlib/wcstoull.c: New file.
4298         * libc/stdlib/wcstoull_r.c: New file.
4299
4300 2007-07-06  Jeff Johnston  <jjohnstn@redhat.com>
4301
4302         * libc/include/sys/time.h (gettimeofday): Change to proper
4303         prototype where second parameter is void *.
4304         * libc/reent/gettimeofdayr.c (_gettimeofday_r): Change prototype
4305         accordingly.
4306         * libc/include/reent.h: Fix prototype for _gettimeofday_r.
4307         * libc/sys/arm/syscalls.c: Fix gettimeofday function signature.
4308         * libc/sys/rdos/gettod.c: Ditto.
4309         * libc/sys/sh/syscalls.c: Ditto.
4310         * libc/time/time.c (time): Change call to _gettimeofday_r
4311         to pass NULL as 2nd argument.
4312
4313 2007-07-06  Jeff Johnston  <jjohnstn@redhat.com>
4314
4315         * libc/sys/linux/intl/dcigettext.c: Define HAVE_STPCPY.
4316         * libc/sys/linux/intl/l10nflist.c: Ditto.
4317
4318 2007-07-04  Corinna Vinschen  <corinna@vinschen.de>
4319
4320         * libc/include/wchar.h: Add prototype for wcsxfrm.
4321         * libc/string/Makefile.am (GENERAL_SOURCES): Add wcsxfrm.c.
4322         (CHEWOUT_FILES): Add wcsxfrm.def.
4323         * libc/string/Makefile.in: Regenerate.
4324         * libc/string/wcsxfrm.c: New file.
4325         * libc/string/wcstrings.tex: Add wcsxfrm.
4326
4327 2007-06-28  Corinna Vinschen  <corinna@vinschen.de>
4328
4329         * libc/include/string.h: Add prototypes for stpcpy and stpncpy.
4330         * libc/string/Makefile.am (ELIX_SOURCES): Add stpcpy.c and
4331         stpncpy.c.
4332         (CHEWOUT_FILES): Add stpcpy.def and stpncpy.def.
4333         * libc/string/Makefile.in: Regenerate.
4334         * libc/string/stpcpy.c: New file.
4335         * libc/string/stpncpy.c: New file.
4336         * libc/string/strings.tex: Add stpcpy and stpncpy.
4337
4338 2007-06-27  Eric Blake  <ebb9@byu.net>
4339
4340         Support __func__ in assert, as required by C99.
4341         * libc/stdlib/assert.c (__assert_func): New function.
4342         (__assert): Use __assert_func.
4343         * libc/include/assert.h (assert) [!NDEBUG]: Use __assert_func when
4344         possible.
4345
4346 2007-06-20  Patrick Mansfield  <patmans@us.ibm.com>
4347
4348         * libc/machine/spu/perror.c: Pass errno as the second argument to
4349         the assist call.
4350
4351 2007-06-20  Patrick Mansfield  <patmans@us.ibm.com>
4352
4353         * libc/include/sys/unistd.h[__SPU__]: Add lockf prototype and related
4354         defines; expose ftruncate, truncate and sync prototypes.
4355
4356 2007-06-20  Patrick Mansfield  <patmans@us.ibm.com>
4357
4358         * libc/include/sys/unistd.h[__SPU__]: Make fchdir prototype visible.
4359         * libc/include/sys/stat.h[__SPU__]: Make mknod and lstat prototypes
4360         visible.
4361
4362 2007-06-15  Patrick Mansfield  <patmans@us.ibm.com>
4363
4364         * libc/machine/spu/Makefile.am: Remove mktemp.c, it was left in
4365         from a dropped patch.
4366         * libc/machine/spu/Makefile.in: Regenerate.
4367
4368 2007-06-13  Patrick Mansfield  <patmans@us.ibm.com>
4369
4370         * libc/machine/spu/creat.c: New file copied from libc/posix/creat.c,
4371         it just calls open with appropriate arguments.
4372         * libc/machine/spu/Makefile.am: Add creat.c.
4373         * libc/machine/spu/Makefile.in: Regenerate.
4374
4375 2007-06-13  Jeff Johnston  <jjohnstn@redhat.com>
4376
4377         * libc/machine/spu/Makefile.am: Re-add back setjmp.S which
4378         I accidentally dropped.
4379         * libc/machine/spu/Makefile.in: Regenerated.
4380
4381 2007-06-13  Patrick Mansfield  <patmans@us.ibm.com>
4382
4383         * libc/include/sys/features.h: Define _POSIX_TIMERS for spu.
4384         * libc/include/sys/unistd.h: Change usleep prototype to Posix
4385         form and move outside of OS flag checks.
4386         * libc/machine/spu/Makefile.am: Add sleep and usleep.
4387         * libc/machine/spu/Makefile.in: Regenerate.
4388         * libc/machine/spu/sleep.c: Copy libc/posix/sleep.c.
4389         * libc/machine/spu/usleep.c: Copy libc/posix/usleep.c.
4390
4391 2007-06-11  Corinna Vinschen  <corinna@vinschen.de>
4392
4393         * libc/include/sys/unistd.h: Declare confstr for Cygwin.
4394         Define confstr constants for Cygwin.  Add comment.
4395
4396 2007-06-10  Hans-Peter Nilsson  <hp@bitrange.com>
4397
4398         * libc/sys/mmixware/access.c (access): Do not try to use a magic
4399         file-handle and a direct syscall, just use _open.
4400         * libc/sys/mmixware/sys/syscall.h (TMPFNO): Remove this magic
4401         file-handle.
4402
4403         * libc/sys/mmixware/_exit.c (_exit): Update comment about
4404         passing on the exit value.
4405
4406 2007-06-08  Jeff Johnston  <jjohnstn@redhat.com>
4407
4408         * libc/string/strcasestr.c: New file.
4409         * libc/include/string.h: Add strcasestr.
4410         * libc/string/strings.tex: Add strcasestr.
4411         * libc/string/Makefile.am: Ditto.
4412         * libc/string/Makefile.in: Regenerated.
4413
4414 2007-06-06  Christian Groessler  <chris@groessler.org>
4415
4416         * libc/stdlib/ldtoa (_ldcheck): Make sure the setting of
4417         rnd is done after the last local variable declaration.
4418
4419 2007-06-06  Jeff Johnston  <jjohnstn@redhat.com>
4420
4421         * libc/stdlib/mprec.h[Just_16]: Make sure that Pack_16 is defined.
4422
4423 2007-06-05  Christian Groessler  <chris@groessler.org>
4424
4425         * libc/argz/argz_insert.c (argz_insert): Move delta variable
4426         declaration to top of function in keeping with C89 standard.
4427
4428 2007-06-04  Eric Blake  <ebb9@byu.net>
4429
4430         Implement funopen, fopencookie.
4431         * libc/include/sys/reent.h (struct __sFILE, struct __sFILE64):
4432         Switch to reentrant callbacks.
4433         * libc/include/stdio.h (funopen): Fix declaration.
4434         (fopencookie): Declare.
4435         * libc/stdio/local.h (__sread, __swrite, __sseek, __sclose)
4436         (__sseek64, __swrite64): Fix prototypes.
4437         [__SCLE]: Pull in setmode declaration.
4438         * libc/stdio/stdio.c (__sread, __swrite, __sseek, __sclose): Fix
4439         reentrancy.
4440         * libc/stdio64/stdio64.c (__sseek64_r, __swrite64_r): Delete.
4441         (__sseek64, __swrite64): Fix reentrancy.
4442         * libc/stdio/fseek.c (_fseek_r): Account for overflow, and fix
4443         reentrancy.
4444         * libc/stdio/ftell.c (_ftell_r): Likewise.
4445         * libc/stdio/flags.c (__sflags): Don't lose __SAPP on "a+".
4446         * libc/stdio/fclose.c (_fclose_r): Fix reentrancy.
4447         * libc/stdio/freopen.c (_freopen_r): Likewise.
4448         * libc/stdio/fvwrite.c (__sfvwrite_r): Likewise.
4449         * libc/stdio/refill.c (__srefill_r): Likewise.
4450         * libc/stdio/siscanf.c (eofread): Likewise.
4451         * libc/stdio/sscanf.c (eofread): Likewise.
4452         * libc/stdio/vsiscanf.c (eofread1): Likewise.
4453         * libc/stdio/vsscanf.c (eofread1): Likewise.
4454         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
4455         * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.
4456         * libc/stdio64/ftello64.c (_ftello64_r): Likewise.
4457         * libc/stdio/fflush.c (fflush): Improve reentrancy, although more
4458         could be fixed.
4459         * libc/stdio/fopencookie.c (_fopencookie_r, fopencookie): New file.
4460         * libc/stdio/funopen.c (_funopen_r, funopen): New file.
4461         * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Build
4462         new files.
4463         * libc/stdio/Makefile.in: Regenerate.
4464
4465 2007-05-29  Eric Blake  <ebb9@byu.net>
4466
4467         Avoid more compiler warnings.
4468         * libc/stdlib/btowc.c: Add missing header.
4469         * libc/stdlib/getopt.c (getopt_internal): Initialize variable.
4470         * libc/stdlib/system.c (do_system) [__CYGWIN__]: Add declaration.
4471         * libc/stdlib/wctob.c: Add missing header.
4472         * libc/string/strcpy.c (strcpy): Avoid warnings.
4473         * libc/string/strrchr.c (strrchr): Likewise.
4474
4475 2007-05-29  Corinna Vinschen  <corinna@vinschen.de>
4476
4477         * libc/argz/argz_add_sep.c (argz_add_sep): Handle empty string
4478         argument.
4479         * libc/argz/argz_append.c (argz_append): Handle empty buf argument.
4480         * libc/argz/argz_create_sep.c (argz_create_sep): Return (NULL, 0)
4481         on empty input strings.
4482         * libc/argz/argz_extract.c (argz_extract): Check argz_len before
4483         looping through argz.
4484         * libc/argz/argz_stringify.c (argz_stringify): Ditto.
4485
4486 2007-05-27  Brian Dessent  <brian@dessent.net>
4487
4488         * libc/stdio/vfprintf.c (_VFPRINTF_R): Populate 'ox' when
4489         handling %p.
4490
4491 2007-05-25  Eric Blake  <ebb9@byu.net>
4492
4493         * libc/stdio/rewind.c (rewind): Fix regression of 2003-08-22.
4494
4495 2007-05-24  Steve Ellcey  <sje@cup.hp.com>
4496             Charles Wilson  <libtool@cwilson.fastmail.fm>
4497
4498         * libtool.m4: removed
4499         * configure.in: invoke _LD_DECL_SED before conditionally initializing
4500         libtool.  Move AC_PROG_AWK outside conditional.
4501         * libc/sys/linux/configure.in: Ditto.
4502         * libc/sys/linux/linuxthreads/configure.in: Ditto.
4503         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
4504         * libc/sys/linux/machine/i386/configure.in: Ditto.
4505
4506         * iconvdata/configure.in: invoke _LD_DECL_SED before conditionally
4507         initializing libtool.
4508         * libc/configure.in: Ditto.
4509         * libc/machine/configure.in: Ditto.
4510         * libc/machine/i386/configure.in: Ditto.
4511         * libc/sys/configure.in: Ditto.
4512         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
4513         * libc/sys/linux/machine/configure.in: Ditto.
4514         * libm/configure.in: Ditto.
4515         * libm/machine/configure.in: Ditto.
4516
4517         * Makefile.am: Ensure toplevel is included in ACLOCAL_AMFLAGS.
4518         * doc/Makefile.am: Ditto.
4519         * iconvdata/Makefile.am: Ditto.
4520         * libc/Makefile.am: Ditto.
4521         * libc/machine/Makefile.am: Ditto.
4522         * libc/machine/a29k/Makefile.am: Ditto.
4523         * libc/machine/arm/Makefile.am: Ditto.
4524         * libc/machine/bfin/Makefile.am: Ditto.
4525         * libc/machine/cris/Makefile.am: Ditto.
4526         * libc/machine/crx/Makefile.am: Ditto.
4527         * libc/machine/d10v/Makefile.am: Ditto.
4528         * libc/machine/d30v/Makefile.am: Ditto.
4529         * libc/machine/fr30/Makefile.am: Ditto.
4530         * libc/machine/frv/Makefile.am: Ditto.
4531         * libc/machine/h8300/Makefile.am: Ditto.
4532         * libc/machine/h8500/Makefile.am: Ditto.
4533         * libc/machine/hppa/Makefile.am: Ditto.
4534         * libc/machine/i386/Makefile.am: Ditto.
4535         * libc/machine/i960/Makefile.am: Ditto.
4536         * libc/machine/iq2000/Makefile.am: Ditto.
4537         * libc/machine/m32c/Makefile.am: Ditto.
4538         * libc/machine/m32r/Makefile.am: Ditto.
4539         * libc/machine/m68hc11/Makefile.am: Ditto.
4540         * libc/machine/m68k/Makefile.am: Ditto.
4541         * libc/machine/m88k/Makefile.am: Ditto.
4542         * libc/machine/mips/Makefile.am: Ditto.
4543         * libc/machine/mn10200/Makefile.am: Ditto.
4544         * libc/machine/mn10300/Makefile.am: Ditto.
4545         * libc/machine/mt/Makefile.am: Ditto.
4546         * libc/machine/necv70/Makefile.am: Ditto.
4547         * libc/machine/powerpc/Makefile.am: Ditto.
4548         * libc/machine/sh/Makefile.am: Ditto.
4549         * libc/machine/sparc/Makefile.am: Ditto.
4550         * libc/machine/spu/Makefile.am: Ditto.
4551         * libc/machine/tic4x/Makefile.am: Ditto.
4552         * libc/machine/tic80/Makefile.am: Ditto.
4553         * libc/machine/v850/Makefile.am: Ditto.
4554         * libc/machine/w65/Makefile.am: Ditto.
4555         * libc/machine/xscale/Makefile.am: Ditto.
4556         * libc/machine/xstormy16/Makefile.am: Ditto.
4557         * libc/machine/z8k/Makefile.am: Ditto.
4558         * libc/sys/Makefile.am: Ditto.
4559         * libc/sys/a29khif/Makefile.am: Ditto.
4560         * libc/sys/arc/Makefile.am: Ditto.
4561         * libc/sys/arm/Makefile.am: Ditto.
4562         * libc/sys/d10v/Makefile.am: Ditto.
4563         * libc/sys/decstation/Makefile.am: Ditto.
4564         * libc/sys/h8300hms/Makefile.am: Ditto.
4565         * libc/sys/h8500hms/Makefile.am: Ditto.
4566         * libc/sys/linux/Makefile.am: Ditto.
4567         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
4568         * libc/sys/linux/linuxthreads/machine/Makefile.am: Ditto.
4569         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
4570         * libc/sys/linux/machine/Makefile.am: Ditto.
4571         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
4572         * libc/sys/m88kbug/Makefile.am: Ditto.
4573         * libc/sys/mmixware/Makefile.am: Ditto.
4574         * libc/sys/netware/Makefile.am: Ditto.
4575         * libc/sys/rdos/Makefile.am: Ditto.
4576         * libc/sys/rtems/Makefile.am: Ditto.
4577         * libc/sys/sh/Makefile.am: Ditto.
4578         * libc/sys/sparc64/Makefile.am: Ditto.
4579         * libc/sys/sun4/Makefile.am: Ditto.
4580         * libc/sys/sysmec/Makefile.am: Ditto.
4581         * libc/sys/sysnec810/Makefile.am: Ditto.
4582         * libc/sys/sysnecv850/Makefile.am: Ditto.
4583         * libc/sys/sysvi386/Makefile.am: Ditto.
4584         * libc/sys/sysvnecv70/Makefile.am: Ditto.
4585         * libc/sys/tic80/Makefile.am: Ditto.
4586         * libc/sys/w65/Makefile.am: Ditto.
4587         * libc/sys/z8ksim/Makefile.am: Ditto.
4588         * libm/Makefile.am: Ditto.
4589         * libm/machine/Makefile.am: Ditto.
4590         * libm/machine/i386/Makefile.am: Ditto.
4591         * libm/machine/spu/Makefile.am: Ditto.
4592
4593         * aclocal.m4: Regenerate.
4594         * iconvdata/aclocal.m4: Regenerate.
4595         * libc/aclocal.m4: Regenerate.
4596         * libc/machine/aclocal.m4: Regenerate.
4597         * libc/machine/i386/aclocal.m4: Regenerate.
4598         * libc/sys/aclocal.m4: Regenerate.
4599         * libc/sys/linux/aclocal.m4: Regenerate.
4600         * libc/sys/linux/linuxthreads/aclocal.m4: Regenerate.
4601         * libc/sys/linux/linuxthreads/machine/aclocal.m4: Regenerate.
4602         * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Regenerate.
4603         * libc/sys/linux/machine/aclocal.m4: Regenerate.
4604         * libc/sys/linux/machine/i386/aclocal.m4: Regenerate.
4605         * libm/aclocal.m4: Regenerate.
4606         * libm/machine/aclocal.m4: Regenerate.
4607         * libm/machine/i386/aclocal.m4: Regenerate.
4608
4609         * Makefile.in: Regenerate.
4610         * doc/Makefile.in: Regenerate.
4611         * iconvdata/Makefile.in: Regenerate.
4612         * libc/Makefile.in: Regenerate.
4613         * libc/argz/Makefile.in: Regenerate.
4614         * libc/ctype/Makefile.in: Regenerate.
4615         * libc/errno/Makefile.in: Regenerate.
4616         * libc/iconv/Makefile.in: Regenerate.
4617         * libc/iconv/ccs/Makefile.in: Regenerate.
4618         * libc/iconv/ccs/binary/Makefile.in: Regenerate.
4619         * libc/iconv/ces/Makefile.in: Regenerate.
4620         * libc/iconv/lib/Makefile.in: Regenerate.
4621         * libc/locale/Makefile.in: Regenerate.
4622         * libc/machine/Makefile.in: Regenerate.
4623         * libc/machine/a29k/Makefile.in: Regenerate.
4624         * libc/machine/arm/Makefile.in: Regenerate.
4625         * libc/machine/bfin/Makefile.in: Regenerate.
4626         * libc/machine/cris/Makefile.in: Regenerate.
4627         * libc/machine/crx/Makefile.in: Regenerate.
4628         * libc/machine/d10v/Makefile.in: Regenerate.
4629         * libc/machine/d30v/Makefile.in: Regenerate.
4630         * libc/machine/fr30/Makefile.in: Regenerate.
4631         * libc/machine/frv/Makefile.in: Regenerate.
4632         * libc/machine/h8300/Makefile.in: Regenerate.
4633         * libc/machine/h8500/Makefile.in: Regenerate.
4634         * libc/machine/hppa/Makefile.in: Regenerate.
4635         * libc/machine/i386/Makefile.in: Regenerate.
4636         * libc/machine/i960/Makefile.in: Regenerate.
4637         * libc/machine/iq2000/Makefile.in: Regenerate.
4638         * libc/machine/m32c/Makefile.in: Regenerate.
4639         * libc/machine/m32r/Makefile.in: Regenerate.
4640         * libc/machine/m68hc11/Makefile.in: Regenerate.
4641         * libc/machine/m68k/Makefile.in: Regenerate.
4642         * libc/machine/m88k/Makefile.in: Regenerate.
4643         * libc/machine/mips/Makefile.in: Regenerate.
4644         * libc/machine/mn10200/Makefile.in: Regenerate.
4645         * libc/machine/mn10300/Makefile.in: Regenerate.
4646         * libc/machine/mt/Makefile.in: Regenerate.
4647         * libc/machine/necv70/Makefile.in: Regenerate.
4648         * libc/machine/powerpc/Makefile.in: Regenerate.
4649         * libc/machine/sh/Makefile.in: Regenerate.
4650         * libc/machine/sparc/Makefile.in: Regenerate.
4651         * libc/machine/spu/Makefile.in: Regenerate.
4652         * libc/machine/tic4x/Makefile.in: Regenerate.
4653         * libc/machine/tic80/Makefile.in: Regenerate.
4654         * libc/machine/v850/Makefile.in: Regenerate.
4655         * libc/machine/w65/Makefile.in: Regenerate.
4656         * libc/machine/xscale/Makefile.in: Regenerate.
4657         * libc/machine/xstormy16/Makefile.in: Regenerate.
4658         * libc/machine/z8k/Makefile.in: Regenerate.
4659         * libc/misc/Makefile.in: Regenerate.
4660         * libc/posix/Makefile.in: Regenerate.
4661         * libc/reent/Makefile.in: Regenerate.
4662         * libc/search/Makefile.in: Regenerate.
4663         * libc/signal/Makefile.in: Regenerate.
4664         * libc/stdio/Makefile.in: Regenerate.
4665         * libc/stdio64/Makefile.in: Regenerate.
4666         * libc/stdlib/Makefile.in: Regenerate.
4667         * libc/string/Makefile.in: Regenerate.
4668         * libc/sys/Makefile.in: Regenerate.
4669         * libc/sys/a29khif/Makefile.in: Regenerate.
4670         * libc/sys/arc/Makefile.in: Regenerate.
4671         * libc/sys/arm/Makefile.in: Regenerate.
4672         * libc/sys/d10v/Makefile.in: Regenerate.
4673         * libc/sys/decstation/Makefile.in: Regenerate.
4674         * libc/sys/h8300hms/Makefile.in: Regenerate.
4675         * libc/sys/h8500hms/Makefile.in: Regenerate.
4676         * libc/sys/linux/Makefile.in: Regenerate.
4677         * libc/sys/linux/argp/Makefile.in: Regenerate.
4678         * libc/sys/linux/cmath/Makefile.in: Regenerate.
4679         * libc/sys/linux/dl/Makefile.in: Regenerate.
4680         * libc/sys/linux/iconv/Makefile.in: Regenerate.
4681         * libc/sys/linux/intl/Makefile.in: Regenerate.
4682         * libc/sys/linux/linuxthreads/Makefile.in: Regenerate.
4683         * libc/sys/linux/linuxthreads/machine/Makefile.in: Regenerate.
4684         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Regenerate.
4685         * libc/sys/linux/machine/Makefile.in: Regenerate.
4686         * libc/sys/linux/machine/i386/Makefile.in: Regenerate.
4687         * libc/sys/linux/net/Makefile.in: Regenerate.
4688         * libc/sys/linux/stdlib/Makefile.in: Regenerate.
4689         * libc/sys/m88kbug/Makefile.in: Regenerate.
4690         * libc/sys/mmixware/Makefile.in: Regenerate.
4691         * libc/sys/netware/Makefile.in: Regenerate.
4692         * libc/sys/rdos/Makefile.in: Regenerate.
4693         * libc/sys/rtems/Makefile.in: Regenerate.
4694         * libc/sys/sh/Makefile.in: Regenerate.
4695         * libc/sys/sparc64/Makefile.in: Regenerate.
4696         * libc/sys/sun4/Makefile.in: Regenerate.
4697         * libc/sys/sysmec/Makefile.in: Regenerate.
4698         * libc/sys/sysnec810/Makefile.in: Regenerate.
4699         * libc/sys/sysnecv850/Makefile.in: Regenerate.
4700         * libc/sys/sysvi386/Makefile.in: Regenerate.
4701         * libc/sys/sysvnecv70/Makefile.in: Regenerate.
4702         * libc/sys/tic80/Makefile.in: Regenerate.
4703         * libc/sys/w65/Makefile.in: Regenerate.
4704         * libc/sys/z8ksim/Makefile.in: Regenerate.
4705         * libc/syscalls/Makefile.in: Regenerate.
4706         * libc/time/Makefile.in: Regenerate.
4707         * libc/unix/Makefile.in: Regenerate.
4708         * libm/Makefile.in: Regenerate.
4709         * libm/common/Makefile.in: Regenerate.
4710         * libm/machine/Makefile.in: Regenerate.
4711         * libm/machine/i386/Makefile.in: Regenerate.
4712         * libm/machine/spu/Makefile.in: Regenerate.
4713         * libm/math/Makefile.in: Regenerate.
4714         * libm/mathfp/Makefile.in: Regenerate.
4715
4716         * configure: Regenerate.
4717         * iconvdata/configure: Regenerate.
4718         * libc/configure: Regenerate.
4719         * libc/machine/configure: Regenerate.
4720         * libc/machine/i386/configure: Regenerate.
4721         * libc/sys/configure: Regenerate.
4722         * libc/sys/linux/configure: Regenerate.
4723         * libc/sys/linux/linuxthreads/configure: Regenerate.
4724         * libc/sys/linux/linuxthreads/machine/configure: Regenerate.
4725         * libc/sys/linux/linuxthreads/machine/i386/configure: Regenerate.
4726         * libc/sys/linux/machine/configure: Regenerate.
4727         * libc/sys/linux/machine/i386/configure: Regenerate.
4728         * libm/configure: Regenerate.
4729         * libm/machine/configure: Regenerate.
4730         * libm/machine/i386/configure: Regenerate.
4731
4732 2007-05-23  Eric Blake  <ebb9@byu.net>
4733
4734         * libc/stdio/vfprintf.c (_VFPRINTF_R): Don't truncate %p when
4735         sizeof(void*) is 8 but sizeof(long) is 4.
4736         * libc/stdio/vfscanf.c (__SVFSCANF_R): Likewise.  Fix %i scanning
4737         of "-0x".  Support "-nan" and "inf" for %e.  Audit usage of ungetc
4738         to fix reentrancy and bug on encoding error in multibyte locales.
4739         Always return EOF on read error.
4740
4741 2007-05-23 Patrick Mansfield <patmans@us.ibm.com>
4742
4743         * libc/machine/spu/sys/syscall.h: Update the __send_to_ppe
4744         prototype.
4745         * libc/machine/spu/fclose.c: Use the __send_to_ppe return value
4746         instead of the slot 0 value, remove any now unused variables, and
4747         for some cases, now store the result in an int vs int*.
4748         * libc/machine/spu/feof.c: Ditto.
4749         * libc/machine/spu/ferror.c: Ditto.
4750         * libc/machine/spu/fflush.c: Ditto.
4751         * libc/machine/spu/fgetc.c: Ditto.
4752         * libc/machine/spu/fgetpos.c: Ditto.
4753         * libc/machine/spu/fgets.c: Ditto.
4754         * libc/machine/spu/fileno.c: Ditto.
4755         * libc/machine/spu/fopen.c: Ditto.
4756         * libc/machine/spu/fprintf.c: Ditto.
4757         * libc/machine/spu/fputc.c: Ditto.
4758         * libc/machine/spu/fputs.c: Ditto.
4759         * libc/machine/spu/fread.c: Ditto.
4760         * libc/machine/spu/freopen.c: Ditto.
4761         * libc/machine/spu/fscanf.c: Ditto.
4762         * libc/machine/spu/fseek.c: Ditto.
4763         * libc/machine/spu/fsetpos.c: Ditto.
4764         * libc/machine/spu/ftell.c: Ditto.
4765         * libc/machine/spu/fwrite.c: Ditto.
4766         * libc/machine/spu/getc.c: Ditto.
4767         * libc/machine/spu/getchar.c: Ditto.
4768         * libc/machine/spu/gets.c: Ditto.
4769         * libc/machine/spu/printf.c: Ditto.
4770         * libc/machine/spu/putc.c: Ditto.
4771         * libc/machine/spu/putchar.c: Ditto.
4772         * libc/machine/spu/puts.c: Ditto.
4773         * libc/machine/spu/remove.c: Ditto.
4774         * libc/machine/spu/rename.c: Ditto.
4775         * libc/machine/spu/scanf.c: Ditto.
4776         * libc/machine/spu/setvbuf.c: Ditto.
4777         * libc/machine/spu/snprintf.c: Ditto.
4778         * libc/machine/spu/sprintf.c: Ditto.
4779         * libc/machine/spu/sscanf.c: Ditto.
4780         * libc/machine/spu/tmpfile.c: Ditto.
4781         * libc/machine/spu/tmpnam.c: Ditto.
4782         * libc/machine/spu/ungetc.c: Ditto.
4783         * libc/machine/spu/vfprintf.c: Ditto.
4784         * libc/machine/spu/vfscanf.c: Ditto.
4785         * libc/machine/spu/vprintf.c: Ditto.
4786         * libc/machine/spu/vscanf.c: Ditto.
4787         * libc/machine/spu/vsnprintf.c: Ditto.
4788         * libc/machine/spu/vsprintf.c: Ditto.
4789         * libc/machine/spu/vsscanf.c: Ditto.
4790
4791 2007-05-23  Eric Blake  <ebb9@byu.net>
4792
4793         * libc/stdio/vfscanf.c (__SVFSCANF_R): Support scanf(%1$s).
4794         Avoid warning when !FLOATING_POINT.
4795         * libc/stdio/vfprintf.c (_VFPRINTF_R): Simplify _NO_POS_ARGS
4796         slightly.
4797
4798 2007-05-23  Corinna Vinschen  <vinschen@redhat.com>
4799
4800         * libc/argz/argz_create_sep.c (argz_create_sep): Initialize *argz_len
4801         to zero.
4802         * libc/include/argz.h: Guard against multiple inclusion.  Guard for
4803         use with C++.
4804
4805 2007-05-18  Eric Blake  <ebb9@byu.net>
4806
4807         * libc/stdio/vfprintf.c [_WANT_IO_LONG_LONG]: Allow non-gcc
4808         compilers.
4809         * libc/stdio/vfscanf.c: Likewise.
4810
4811 2007-05-17  Cary R.  <cygcary <at> yahoo.com>
4812
4813         * libm/math/w_atan2.c: Fix atan2 to be consistent with glibc
4814         (atan2(+0,-0), atan2(-0,-0) and atan(-0,+0))
4815         * libm/math/wf_atan2.c: Ditto.
4816
4817 2007-05-17  Yaakov Selkowitz  <yselkowitz <at> users.sourceforge.net>
4818
4819         * libm/common/Makefile.am: Add support for exp10, exp10f,
4820         pow10, and pow10f functions.
4821         * libm/common/Makefile.in: Regenerated.
4822         * libm/common/s_pow10.c: New file.
4823         * libm/common/sf_pow10.c: Ditto.
4824         * libm/common/s_exp10.c: Ditto.
4825         * libm/common/sf_exp10.c: Ditto.
4826         * libc/include/math.h [!pow10]: New pow10 prototype.
4827         [!pow10f]: New pow10f prototype.
4828         [!exp10]: New exp10 prototype.
4829         [!exp10f]: New exp10f prototype.
4830
4831 2007-05-17  Charles Wilson  <cygwin@...>
4832
4833         * stdio/tmpfile.c: Include <sys/stat.h>.
4834         * stdio64/tmpfile64.c: Ditto.
4835
4836 2007-05-16  Eric Blake  <ebb9@byu.net>
4837
4838         Close security hole in tmpfile.
4839         * libc/stdio/tmpfile.c (_tmpfile_r): Avoid window between filename
4840         generation and opening the fd.
4841         * libc/stdio64/tmpfile64.c (_tmpfile64_r): Likewise.
4842
4843         * libc/include/math.h (INFINITY, NAN, FP_ILOGB0, FP_ILOGBNAN)
4844         (MATH_ERRNO, MATH_ERREXCEPT, math_errhandling): Add macros
4845         required by POSIX.
4846         * libc/stdlib/ldtoa.c (USE_INFINITY): Rename from INFINITY, to
4847         avoid clash with <math.h>.
4848
4849         * libc/stdlib/wctomb_r.c (_wctomb_r): Avoid gcc warnings on cygwin.
4850         * libc/search/hash.c (__hash_open): Likewise.
4851
4852 2007-05-14 Eric Blake <ebb9@byu.net>
4853
4854         Reduce stack size of *printf.
4855         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix use of decimal point
4856         in %f.  Avoid malloc when possible for %S.
4857         (BUF): Improve stack locality by using smaller size.
4858         (MAXEXPLEN, _PRINTF_FLOAT_TYPE): Define.
4859         (exponent): Use smaller stack size.
4860
4861 2007-05-11  Eric Blake  <ebb9@byu.net>
4862
4863         Minimize printf/scanf size on platforms that don't need C99.
4864         * acconfig.h (_WANT_IO_C99_FORMATS): New macro.
4865         * newlib.hin (_WANT_IO_C99_FORMATS): Likewise.
4866         * configure.in (newlib-io-c99-formats): New configure option.
4867         (_WANT_IO_C99_FORMATS): Define appropriately.
4868         * configure.host (*-linux*, cygwin): Default c99-formats to yes.
4869         * libc/stdio/vfprintf.c (_VFPRINTF_R) [!_WANT_IO_C99_FORMATS]:
4870         Cripple ' flag; hh, z, j, t sizes; a, A, F, C, S specifiers.
4871         * libc/stdio/vfscanf.c (_VFSCANF_R) [!_WANT_IO_C99_FORMATS]:
4872         Likewise.
4873         * configure: Regenerate.
4874
4875         * libc/stdio/vfprintf.c (_VFPRINTF_R, cvt, exponent, chclass)
4876         (get_arg): Support '%a' and '%A'.
4877
4878 2007-05-09  Eric Blake  <ebb9@byu.net>
4879
4880         Allow zero size with non-null buf in *asnprintf.
4881         * libc/stdio/asnprintf.c (_asnprintf_r, asnprintf): Avoid free'ing
4882         user's buf.
4883         * libc/stdio/asniprintf.c (_asniprintf_r, asniprintf): Likewise.
4884         * libc/stdio/vasniprintf.c (_vasniprintf_r): Likewise.
4885         * libc/stdio/vasnprintf.c (_vasnprintf_r): Likewise.
4886
4887 2007-05-07  Charles Wilson  <cygwin@...>
4888
4889         * libc/stdio/vfprintf.c: Fix typo in comments that breaks docs.
4890
4891 2007-05-03  Eric Blake  <ebb9@byu.net>
4892
4893         Add support for asnprintf, and improve *printf documentation.
4894         * libc/stdio/Makefile.am (ELIX_SOURCES): Rename...
4895         (ELIX_2_SOURCES): ...to this.
4896         (ELIX_4_SOURCES): Add new variable.  Build asnprintf.
4897         (GENERAL_SOURCES): Move dprintf to ELIX_4_SOURCES.
4898         (CHEWOUT_FILES): Include diprintf in documentation.
4899         * libc/stdio/Makefile.in: Regenerate.
4900         * libc/stdio/diprintf.c: Improve documentation.
4901         * libc/stdio/dprintf.c: Likewise.
4902         * libc/stdio/siprintf.c: Likewise.
4903         * libc/stdio/sprintf.c: Likewise.
4904         * libc/stdio/vfprintf.c: Likewise.
4905         * libc/stdio/viprintf.c: Likewise.
4906         * libc/stdio/vsniprintf.c: Consolidate documentation.
4907         * libc/stdio/asiprintf.c: Refer to documentation.
4908         * libc/stdio/asprintf.c: Likewise.
4909         * libc/stdio/fiprintf.c: Likewise.
4910         * libc/stdio/fprintf.c: Likewise.
4911         * libc/stdio/iprintf.c: Likewise.
4912         * libc/stdio/printf.c: Likewise.
4913         * libc/stdio/sniprintf.c: Likewise.
4914         * libc/stdio/vdiprintf.c: Likewise.
4915         * libc/stdio/vdprintf.c: Likewise.
4916         * libc/stdio/vsiprintf.c: Likewise.
4917         * libc/stdio/fvwrite.c (__sfvwrite_r): Handle asnprintf.
4918         * libc/stdio/asniprintf.c (asniprintf, _asniprintf_r): New file.
4919         * libc/stdio/asnprintf.c (asnprintf, _asnprintf_r): New file.
4920         * libc/stdio/vasniprintf.c (vasniprintf, _vasniprintf_r): New
4921         file.
4922         * libc/stdio/vasnprintf.c (vasnprintf, _vasnprintf_r): New file.
4923         * libc/stdio/vdprintf.c (_vdprintf_r): Rewrite to avoid malloc in
4924         typical case.
4925         * libc/stdio/vdiprintf.c (_vdiprintf_r): Likewise.
4926         * libc/include/stdio.h: Add prototypes for new functions; sort
4927         existing functions.
4928
4929 2007-05-03  Kazu Hirata  <kazu@codesourcery.com>
4930
4931         * libc/machine/m68k/Makefile.am (lib_a_SOURCES): Add memcpy.S
4932         and memset.S.
4933         * libc/machine/m68k/Makefile.in: Regenerate.
4934         * libc/machine/m68k/memcpy.S: Use sub.l followed by dbra.
4935         * libc/machine/m68k/memset.S: Likewise.
4936
4937 2007-05-01  Eric Blake  <ebb9@byu.net>
4938
4939         * libc/stdio64/local64.h: Delete, move contents to...
4940         * libc/stdio/local.h: ...here.
4941         * libc/stdio64/fdopen64.c: Update includes.
4942         * libc/stdio64/fopen64.c: Likewise.
4943         * libc/stdio64/freopen64.c: Likewise.
4944         * libc/stdio64/fseeko64.c: Likewise.
4945         * libc/stdio64/ftello64.c: Likewise.
4946         * libc/stdio/findfp.c (std) [__LARGE64_FILES]: Open stdin, stdout,
4947         and stderr with 64-bit offset.
4948         * libc/stdio/fseek.c (_fseek_r): Avoid compile warning.
4949         * libc/stdio/makebuf.c (__smakebuf_r): Likewise.
4950         * libc/stdio/mktemp.c (_gettemp): Likewise.
4951
4952 2007-05-01  Cary R.  <cygcary <at> yahoo.com>
4953
4954         * libm/math/e_pow.c: Fix to be consistent with glibc with regards
4955         to treatment of NaN and +-inf arguments.
4956         * libm/math/ef_pow.c: Ditto.
4957         * libm/math/w_pow.c: Ditto.
4958         * libm/math/wf_pow.c: Ditto.
4959         * libm/math/w_acos.c: Fix domain errors to return NaN.
4960         * libm/math/w_asin.c: Ditto.
4961         * libm/math/wf_acos.c: Ditto.
4962         * libm/math/wf_asin.c: Ditto.
4963         * libm/math/w_log.c: Fix to return NaN for negative number inputs.
4964         * libm/math/wf_log.c: Ditto.
4965         * libm/math/wf_log10.c: Ditto.
4966         * libm/math/w_log10.c: Ditto.
4967
4968 2007-04-27  Jeff Johnston  <jjohnstn@redhat.com>
4969
4970         * libc/machine/m68k/Makefile.am: Temporarily remove
4971         memcpy.S and memset.S until logic can be confirmed for
4972         !(__mcoldfile__) case.
4973         * libc/machine/m68k/Makefile.in: Regenerated.
4974
4975 2007-04-27  Kazu Hirata  <kazu@codesourcery.com>
4976
4977         * libc/machine/m68k/Makefile.am (lib_a_SOURCES): Add memcpy.S
4978         and memset.S.
4979         * libc/machine/m68k/Makefile.in: Regenerate.
4980         * libc/machine/m68k/memcpy.S, libc/machine/m68k/memset.S: New.
4981
4982 2007-04-26  Patrick Mansfield <patmans@us.ibm.com>
4983
4984         * libc/include/ieeefp.h: use prefixed __ieeefp_ macros that can be
4985         overridden via machine/ieeefp.h.
4986         * libc/include/machine/ieeefp.h: Add SPU specific C99 and ieeefp
4987         macros for isnan and related macros.
4988         * libc/include/math.h: Allow C99 isfinite, isinf, and isnan to be
4989         overridden via machine/ieeefp.h.
4990         * libm/machine/spu/Makefile.am: Add new files.
4991         * libm/machine/spu/Makefile.in: Autogenerate with new files.
4992         * libm/machine/spu/sf_fpclassify.c: Add SPU specific __fpclassifyf.
4993         * libm/machine/spu/sf_finite.c: Add SPU specific finitef.
4994         * libm/machine/spu/sf_isinf.c: Add SPU specific isinff.
4995         * libm/machine/spu/sf_isinff.c: Add SPU specific __isinff.
4996         * libm/machine/spu/sf_isnan.c: Add SPU specific isnanf.
4997         * libm/machine/spu/sf_isnanf.c: Add SPU specific __isnanf.
4998         * libm/machine/spu/sf_nan.c: Add SPU specific nanf.
4999
5000 2007-04-25  Jeff Johnston  <jjohnstn@redhat.com>
5001
5002         * libm/common/s_fpclassify.c (__fpclassifyf): Move this to...
5003         * libm/common/sf_fpclassify.c: ...here.  New file.
5004         * libm/common/Makefile.am: Add sf_fpclassify.c.
5005         * libm/common/Makefile.in: Regenerated.
5006
5007 2007-04-25  Patrick Mansfield <patmans@us.ibm.com>
5008
5009         * libc/machine/spu/sys/errno.h: New file, so spu errno values match
5010         ppu linux values. This file is a copy of the cris/sys/errno.h plus
5011         a few changes (see spu errno.h comments).
5012
5013 2007-04-25  Eric Blake  <ebb9@byu.net>
5014
5015         * libc/stdio/vfprintf.c (get_arg): Support %1$lc.  Simplify types
5016         that promote to int.
5017
5018 2007-04-25  Patrick Mansfield <patmans@us.ibm.com>
5019
5020         * libm/machine/spu/headers/feholdexcept.h: Use *envp not env so
5021         we clear the proper bits in the fpscr, and don't set some random ones.
5022
5023 2007-04-24  Eric Blake  <ebb9@byu.net>
5024
5025         * libc/stdio/vfprintf.c (_VFPRINTF_R): Don't zero pad on infinity
5026         or NaN with %05f.
5027
5028         * libc/stdio/vfprintf.c (_VFPRINTF_R): Avoid multibyte when not
5029         _MB_CAPABLE.
5030
5031         * libc/include/limits.h (NL_ARGMAX): Define a default value.
5032         * libc/stdio/vfprintf.c (MAX_POS_ARGS): Define in terms of
5033         NL_ARGMAX, if present.
5034
5035 2007-04-23  Brian Dessent  <brian@dessent.net>
5036
5037         * libc/stdio/vfprintf.c (_vfprintf_r): When the alternate-form flag
5038         has been specified with types 'f', 'F', 'g', or 'G', ensure the
5039         trailing decimal is printed.
5040
5041 2007-04-23  Ralf Wildenhues  <Ralf.Wildenhues <at> gmx.de>
5042
5043         * confsubdir.m4 (AC_CONFIG_SUBDIRS, _AC_OUTPUT_SUBDIRS): New
5044         file.  Override Autoconf-2.59's version of these macros with
5045         fixed handling of multiple adjacent whitespace in arguments.
5046         * aclocal.m4: Regenerated forcefully.
5047         * configure: Ditto.
5048         * Makefile.in: Ditto.
5049         * libc/*Makefile.in: Ditto.
5050         * libc/*aclocal.m4: Ditto.
5051         * libc/*configure: Ditto.
5052         * libm/*Makefile.in: Ditto.
5053         * libm/*aclocal.m4: Ditto.
5054         * libm/*configure: Ditto.
5055
5056 2007-04-23  Jeff Johnston  <jjohnstn@redhat.com>
5057
5058         * libc/sys/arc/dummy.S: Dummy file to force .S.o suffix rule.
5059         * libc/sys/arc/Makefile.am: Add dummy.S to EXTRA_lib_a_SOURCES
5060         and set lib_a_CCASFLAGS so crto.o will use .S.o default suffix rule.
5061         * libc/sys/arc/Makefile.in: Regenerated.
5062
5063 2007-04-17  Brian Dessent  <brian@dessent.net>
5064
5065         * libc/stdio/sscanf.c: Update documentation comments.
5066         * libc/stdio/vfscanf.c (__SVFSCANF_R): Handle j, t, and z modifiers.
5067
5068 2007-04-12  Eric Blake  <ebb9@byu.net>
5069
5070         * libc/stdio/vfprintf.c (_VFPRINTF_F, cvt): Don't confuse %F with %e.
5071         (chclass): Recognize 'F', 'X', 'n', and not 'W'.
5072         (get_arg): Handle %1$F, %1$n.
5073
5074 2007-04-10  Eric Blake  <ebb9@byu.net>
5075
5076         * libc/include/stdio.h (_ELIDABLE_INLINE): Work even when using
5077         CFLAGS=-O0.
5078
5079 2007-04-09  Eric Blake  <ebb9@byu.net>
5080
5081         * libc/include/stdio.h: Add gcc format attributes to printf and
5082         scanf families.
5083
5084 2007-04-09  Joel Schopp <jschopp@austin.ibm.com>
5085
5086         * libc/machine/spu/strxfrm.c: Fix strxfrm so we still copy data
5087         even if the passed in length n is shorter than the source string.
5088         This matches both the non-spu specific and the glibc strxfrm
5089         behaviour.
5090
5091 2007-04-04  Mark Mitchell  <mark@codesourcery.com>
5092
5093         * libc/stdlib/__call_atexit.c (__call_exitprocs): Handle atexit
5094         functions registering additional atexit functions.
5095
5096         * testsuite/lib/flags.exp (newlib_include_flags): Drop
5097         -I${newlib_dir}.
5098
5099 2007-04-04  Patrick Mansfield <patmans@us.ibm.com>
5100
5101         * libc/machine/spu/sys/syscall.h: New file for __send_to_ppe
5102         prototype.
5103         * libc/machine/spu/c99ppe.h: Remove static version of send_to_ppe.
5104         * libc/machine/spu/clearerr.c: Call __send_to_ppe vs send_to_ppe.
5105         * libc/machine/spu/fclose.c: Ditto.
5106         * libc/machine/spu/feof.c: Ditto.
5107         * libc/machine/spu/ferror.c: Ditto.
5108         * libc/machine/spu/fflush.c: Ditto.
5109         * libc/machine/spu/fgetc.c: Ditto.
5110         * libc/machine/spu/fgetpos.c: Ditto.
5111         * libc/machine/spu/fgets.c: Ditto.
5112         * libc/machine/spu/fileno.c: Ditto.
5113         * libc/machine/spu/fopen.c: Ditto.
5114         * libc/machine/spu/fprintf.c: Ditto.
5115         * libc/machine/spu/fputc.c: Ditto.
5116         * libc/machine/spu/fputs.c: Ditto.
5117         * libc/machine/spu/fread.c: Ditto.
5118         * libc/machine/spu/freopen.c: Ditto.
5119         * libc/machine/spu/fscanf.c: Ditto.
5120         * libc/machine/spu/fseek.c: Ditto.
5121         * libc/machine/spu/fsetpos.c: Ditto.
5122         * libc/machine/spu/ftell.c: Ditto.
5123         * libc/machine/spu/fwrite.c: Ditto.
5124         * libc/machine/spu/getc.c: Ditto.
5125         * libc/machine/spu/getchar.c: Ditto.
5126         * libc/machine/spu/gets.c: Ditto.
5127         * libc/machine/spu/perror.c: Ditto.
5128         * libc/machine/spu/printf.c: Ditto.
5129         * libc/machine/spu/putc.c: Ditto.
5130         * libc/machine/spu/putchar.c: Ditto.
5131         * libc/machine/spu/puts.c: Ditto.
5132         * libc/machine/spu/remove.c: Ditto.
5133         * libc/machine/spu/rename.c: Ditto.
5134         * libc/machine/spu/rewind.c: Ditto.
5135         * libc/machine/spu/scanf.c: Ditto.
5136         * libc/machine/spu/setbuf.c: Ditto.
5137         * libc/machine/spu/setvbuf.c: Ditto.
5138         * libc/machine/spu/snprintf.c: Ditto.
5139         * libc/machine/spu/sprintf.c: Ditto.
5140         * libc/machine/spu/sscanf.c: Ditto.
5141         * libc/machine/spu/tmpfile.c: Ditto.
5142         * libc/machine/spu/tmpnam.c: Ditto.
5143         * libc/machine/spu/ungetc.c: Ditto.
5144         * libc/machine/spu/vfprintf.c: Ditto.
5145         * libc/machine/spu/vfscanf.c: Ditto.
5146         * libc/machine/spu/vprintf.c: Ditto.
5147         * libc/machine/spu/vscanf.c: Ditto.
5148         * libc/machine/spu/vsnprintf.c: Ditto.
5149         * libc/machine/spu/vsprintf.c: Ditto.
5150         * libc/machine/spu/vsscanf.c: Ditto.
5151
5152 2007-04-04  Jeff Johnston  <jjohnstn@redhat.com>
5153
5154         * libc/argz/argz_insert.c: Add stddef.h to get ptrdiff_t type.
5155
5156 2007-04-04  Eric Blake  <ebb9@byu.net>
5157
5158         * libc/stdio/asiprintf.c (_asiprintf_r): Fix reentrancy.
5159         (asiprintf): Avoid overhead.
5160         * libc/stdio/asprintf.c (_asprintf_r): Fix reentrancy.
5161         (asprintf): Avoid overhead.
5162         * libc/stdio/diprintf.c (_diprintf_r, diprintf): New file.
5163         * libc/stdio/dprintf.c (_dprintf_r, dprintf): Use _DEFUN.
5164         * libc/stdio/fiprintf.c (_fiprintf_r): Add reentrant version.
5165         (fiprintf): Avoid overhead.
5166         * libc/stdio/fprintf.c (_fprintf_r): Add reentrant version.
5167         (fprintf): Avoid overhead.
5168         * libc/stdio/iprintf.c (_iprintf_r): Use _DEFUN.
5169         (iprintf): Avoid overhead.
5170         * libc/stdio/printf.c (_printf_r): Use _DEFUN.
5171         (printf): Avoid overhead.
5172         * libc/stdio/vasiprintf.c (vasiprintf): Reduce binary size.
5173         * libc/stdio/vasprintf.c (vasprintf): Reduce binary size.
5174         * libc/stdio/vdiprintf.c (_vdiprintf_r, vdiprintf): New file.
5175         * libc/stdio/vdprintf.c (vdprintf): Avoid overhead.
5176         * libc/stdio/vsiprintf.c (vsiprintf): Reduce binary size.
5177         * libc/stdio/vsniprintf.c (vsniprintf): Reduce binary size.
5178         * libc/stdio/vsnprintf.c (vsnprintf): Reduce binary size.
5179         * libc/stdio/vsprintf.c (vsprintf): Reduce binary size.
5180         * libc/stdio/Makefile.am (GENERAL_SOURCES): Add diprintf.c,
5181         vdiprintf.c.
5182         * libc/include/stdio.h (diprintf, _diprintf_r, vdiprintf)
5183         (_vdiprintf_r, _fiprintf_r, _vfiprintf_r): Add prototypes.
5184
5185 2007-03-30  Dave Korn  <dave.korn@artimi.com>
5186
5187         * libc/include/stdio.h (_ELIDABLE_INLINE):  New macro to conceal
5188         conflicting inline semantics between C99 and GNU89.
5189         (__sgetc_r):  Replace static inline with _ELIDABLE_INLINE to be
5190         compatible with -fkeep-inline-functions usage.
5191         (__sputc_r):  Likewise for consistency even though disabled.
5192
5193 2007-03-29  Nick Clifton  <nickc@redhat.com>
5194
5195         Reflect changes made to generic vfprintf.c:
5196         * libc/machine/powerpc/vfprintf.c (__sprint): Rename to __sprint_r
5197         and add a "struct reent *" argument.
5198         (__sbprintf): Rename to __sbprintf_r, add a "struct reent *"
5199         argument and call _VFPRINTF_R instead of VFPRINTF.
5200         (_VFPRINTF_R): Add data pointer to call to cantwrite().
5201         Fix uses of __sprint() and __sbprintf.
5202
5203 2007-03-20  Nick Clifton  <nickc@redhat.com>
5204
5205         Reflect changes made to generic vfprintf.c:
5206         * libc/machine/powerpc/vfprintf.c (__sprint): Rename to __sprint_r
5207         and add a "struct reent *" argument.
5208         (__sbprintf): Rename to __sbprintf_r, add a "struct reent *"
5209         argument and call _VFPRINTF_R instead of VFPRINTF.
5210         (_VFPRINTF_R): Add data pointer to call to cantwrite().
5211         Fix uses of __sprint() and __sbprintf.
5212
5213 2007-03-16  Charles Wilson  <cygwin@...>
5214
5215         * libc/argz/argz_insert.c: "before" pointer is
5216         invalid after *argz realloc.  Compute offset
5217         between "before" and *argz, and use it after
5218         reallocation instead.
5219
5220 2007-03-16  Eric Blake  <ebb9@byu.net>
5221
5222         * libc/stdio64/fseek064.c (_fseeko64_r): Fix reentrancy.
5223         * libc/stdio64/freopen64.c (_freopen64_r): Ditto.
5224
5225 2007-03-15  Jeff Johnston  <jjohnstn@redhat.com>
5226
5227         * configure.in: Add new --enable-newlib-reent-small option.
5228         * configure: Regenerated.
5229         * acconfig.h: Add _WANT_REENT_SMALL.
5230         * newlib.hin: Regenerated minus PACKAGE macros to add
5231         _WANT_REENT_SMALL macro.
5232         * libc/include/sys/config.h[_WANT_REENT_SMALL]: Set _REENT_SMALL
5233         if not already set.
5234         * libc/stdio/fflush.c[_REENT_SMALL]: Return immediately if
5235         there is no buffer.
5236         * libc/stdio/local.h[_REENT_SMALL]: Fix CHECK_INIT macro to
5237         use reentrant pointer passed in when resetting the file
5238         pointer to one of the std streams.
5239
5240 2007-03-15  Eric Blake  <ebb9@byu.net>
5241
5242         * libc/stdio/local.h (cantwrite, FREEUB, FREELB): Make reentrant.
5243         (__smakebuf): Rename...
5244         (__smakebuf_r): to this.
5245         * libc/stdio/fvwrite.h (__swsetup_r): Rename, from __swsetup.
5246         * libc/stdio/makebuf.c (__smakebuf): Detect failed asprint
5247         allocation, then rename...
5248         (__smakebuf_r): ...to this and fix reentrancy.
5249         * libc/stdio/wsetup.c (__swsetup): Detect failed asprintf
5250         allocation, then rename...
5251         (__swsetup_r): ...to this and fix reentrancy.
5252         * libc/stdio/fseek.c (_fseek_r): Fix reentrancy.
5253         * libc/stdio/refill.c (__srefill_r): Likewise.
5254         * libc/stdio/fclose.c (_fclose_r): Likewise.
5255         * libc/stdio/fread.c (_fread_r): Likewise.
5256         * libc/stdio/freopen.c (_freopen_r): Likewise.
5257         * libc/stdio/wbuf.c (__swbuf_r): Likewise.
5258         * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.
5259         * libc/stdio/fvwrite.c (__sfvwrite_r): Set errno properly on
5260         failed asprintf allocation, and fix reentrancy.
5261         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Report overflow,
5262         as required by POSIX.
5263         * libc/stdio/sniprintf.c (sniprintf, _sniprintf_r): Likewise.
5264         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Likewise.
5265         * libc/stdio/vsniprintf.c (vsniprintf, _vsniprintf_r): Likewise.
5266
5267 2007-03-12  Eric Blake  <ebb9@byu.net>
5268
5269         * libc/stdio/fvwrite.c (__sfvwrite_r): Fix reentrancy.
5270         * libc/stdio/vasprintf.c (vasprintf, _vasprintf_r): Pass failed
5271         allocation to caller.
5272         * libc/stdio/asprintf.c (_asprintf_r, asprintf): Likewise.
5273         * libc/stdio/asiprintf.c (_asiprintf_r, asiprintf): Likewise.
5274         * libc/stdio/vasiprintf.c (vasiprintf, _vasiprintf_r): Likewise.
5275
5276 2007-02-23  Jeff Johnston  <jjohnstn@redhat.com>
5277
5278         * libm/math/w_pow.c: Fix typo in documentation comment.
5279
5280 2007-02-21  Patrick Mansfield <patmans@us.ibm.com>
5281
5282         * libc/reent/timer.c: Removed (split into two new files).
5283         * libc/reent/timesr.c: New file for _times_r.
5284         * libc/reent/gettimeofdayr.c: New file out _gettimeofday_r.
5285         * reent/Makefile.in: Remove timer.c, add timesr.c and
5286         gettimeofdayr.c.
5287         * libc/reent/Makefile.am: Regenerate.
5288
5289 2007-02-20  Patrick Mansfield <patmans@us.ibm.com>
5290
5291         * configure.host: Build SPU with default_newlib_atexit_dynamic_alloc="no".
5292
5293 2007-02-20  Kazunori Asayama <asayama@sm.sony.co.jp>
5294
5295         * libc/machine/spu/Makefile.am: Add new objects.
5296         * libc/machine/spu/Makefile.in: Regenerated.
5297         * libc/machine/spu/fiprintf.c: New file. Add implementation of
5298         integer-only version.
5299         * libc/machine/spu/fiscanf.c: Ditto.
5300         * libc/machine/spu/iprintf.c: Ditto.
5301         * libc/machine/spu/iscanf.c: Ditto.
5302         * libc/machine/spu/siprintf.c: Ditto.
5303         * libc/machine/spu/siscanf.c: Ditto.
5304         * libc/machine/spu/sniprintf.c: Ditto.
5305         * libc/machine/spu/vfiprintf.c: Ditto.
5306         * libc/machine/spu/vfiscanf.c: Ditto.
5307         * libc/machine/spu/viprintf.c: Ditto.
5308         * libc/machine/spu/viscanf.c: Ditto.
5309         * libc/machine/spu/vsiprintf.c: Ditto.
5310         * libc/machine/spu/vsiscanf.c: Ditto.
5311         * libc/machine/spu/vsniprintf.c: Ditto.
5312         * libc/machine/spu/fprintf.c: Add support for integer-only
5313         version.
5314         * libc/machine/spu/fscanf.c: Ditto.
5315         * libc/machine/spu/printf.c: Ditto.
5316         * libc/machine/spu/scanf.c: Ditto.
5317         * libc/machine/spu/snprintf.c: Ditto.
5318         * libc/machine/spu/sprintf.c: Ditto.
5319         * libc/machine/spu/sscanf.c: Ditto.
5320         * libc/machine/spu/vfprintf.c: Ditto.
5321         * libc/machine/spu/vfscanf.c: Ditto.
5322         * libc/machine/spu/vprintf.c: Ditto.
5323         * libc/machine/spu/vscanf.c: Ditto.
5324         * libc/machine/spu/vsnprintf.c: Ditto.
5325         * libc/machine/spu/vsprintf.c: Ditto.
5326         * libc/machine/spu/vsscanf.c: Ditto.
5327
5328 2007-02-20  Kazunori Asayama <asayama@sm.sony.co.jp>
5329
5330         * libc/include/stdio.h: Add declaration for vsiprintf.
5331
5332 2007-02-14  Patrick Mansfield <patmans@us.ibm.com>
5333
5334         Add a floating point environment for SPU (cell):
5335
5336         * configure.host: add libm_machine_dir=spu.
5337         * libm/machine/configure: Add spu.
5338         * libm/machine/configure.in: regenerated with spu added.
5339         * libc/machine/spu/include/fenv.h: New file.
5340         * libc/machine/spu/sys/fenv.h: Ditto.
5341         * libm/machine/spu/Makefile.am: Ditto.
5342         * libm/machine/spu/Makefile.in: Ditto.
5343         * libm/machine/spu/aclocal.m4: Ditto.
5344         * libm/machine/spu/configure: Ditto.
5345         * libm/machine/spu/configure.in: Ditto.
5346         * libm/machine/spu/fe_dfl_env.c: Ditto.
5347         * libm/machine/spu/feclearexcept.c: Ditto.
5348         * libm/machine/spu/fegetenv.c: Ditto.
5349         * libm/machine/spu/fegetexceptflag.c: Ditto.
5350         * libm/machine/spu/fegetround.c: Ditto.
5351         * libm/machine/spu/feholdexcept.c: Ditto.
5352         * libm/machine/spu/feraiseexcept.c: Ditto.
5353         * libm/machine/spu/fesetenv.c: Ditto.
5354         * libm/machine/spu/fesetexceptflag.c: Ditto.
5355         * libm/machine/spu/fesetround.c: Ditto.
5356         * libm/machine/spu/fetestexcept.c: Ditto.
5357         * libm/machine/spu/feupdateenv.c: Ditto.
5358         * libm/machine/spu/headers/feclearexcept.h: Ditto.
5359         * libm/machine/spu/headers/fefpscr.h: Ditto.
5360         * libm/machine/spu/headers/fegetenv.h: Ditto.
5361         * libm/machine/spu/headers/fegetexceptflag.h: Ditto.
5362         * libm/machine/spu/headers/fegetround.h: Ditto.
5363         * libm/machine/spu/headers/feholdexcept.h: Ditto.
5364         * libm/machine/spu/headers/feraiseexcept.h: Ditto.
5365         * libm/machine/spu/headers/fesetenv.h: Ditto.
5366         * libm/machine/spu/headers/fesetexceptflag.h: Ditto.
5367         * libm/machine/spu/headers/fesetround.h: Ditto.
5368         * libm/machine/spu/headers/fetestexcept.h: Ditto.
5369         * libm/machine/spu/headers/feupdateenv.h: Ditto.
5370
5371 2007-02-14  Corinna Vinschen  <corinna@vinschen.de>
5372
5373         * libc/include/sys/features.h: Add _POSIX_MESSAGE_PASSING for
5374         Cygwin.
5375
5376 2007-02-08  Corinna Vinschen  <corinna@vinschen.de>
5377
5378         * libc/include/sys/features.h: Add _POSIX_SHARED_MEMORY_OBJECTS for
5379         Cygwin.  Fix value of _POSIX_SEMAPHORES.  Fix formatting.
5380
5381 2007-02-07  Corinna Vinschen  <corinna@vinschen.de>
5382
5383         * libc/include/sys/features.h: Add definition of all supported
5384         _POSIX_xxx values for Cygwin.
5385         * libc/include/sys/types.h (pthread_rwlock_t): Omit definition
5386         on Cygwin.
5387         (pthread_rwlockattr_t): Ditto.
5388         * libc/include/sys/unistd.h: Define all _SC_xxx values as
5389         required by SUSv3.  Unify formatting.
5390
5391 2007-02-02  Ralf Corsépius <ralf.corsepius@rtems.org>
5392
5393         * libc/include/sys/errno.h: Add ECANCELED.
5394
5395 2007-02-01  Joel Schopp <jschopp@austin.ibm.com>
5396             Kazunori Asayama <asayama@sm.sony.co.jp>
5397
5398         * libc/machine/spu/Makefile.am: Add objects.
5399         * libc/machine/spu/Makefile.in: Regenerated.
5400         * libc/machine/spu/vsscanf.c: New file. Add a stdio function
5401         implementation.
5402         * libc/machine/spu/snprintf.c: Ditto.
5403         * libc/machine/spu/sprintf.c: Ditto.
5404         * libc/machine/spu/sscanf.c: Ditto.
5405         * libc/machine/spu/remove.c: Ditto.
5406         * libc/machine/spu/rename.c: Ditto.
5407         * libc/machine/spu/tmpnam.c: Ditto.
5408         * libc/machine/spu/vsnprintf.c: Add initialization routine of
5409         stdio stuffs.
5410         * libc/machine/spu/vsprintf.c: Ditto.
5411
5412 2007-02-01  Joel Schopp <jschopp@austin.ibm.com>
5413             Kazunori Asayama <asayama@sm.sony.co.jp>
5414
5415         * configure.host: Enable SPU specific stdio directory.
5416         * libc/machine/spu/Makefile.am: Add objects.
5417         * libc/machine/spu/Makefile.in: Regenerated.
5418         * libc/machine/spu/c99ppe.h: Add macros and function
5419         declarations to initialize SPU specific stdio stuffs.
5420         * libc/machine/spu/stdio.c: Add functions to manage Cell SPU
5421         specific FILE structures.
5422         * libc/machine/spu/perror.c: Add initialization routine of
5423         stdio stuffs.
5424         * libc/machine/spu/printf.c: Ditto.
5425         * libc/machine/spu/putchar.c: Ditto.
5426         * libc/machine/spu/puts.c: Ditto.
5427         * libc/machine/spu/vprintf.c: Ditto.
5428         * libc/machine/spu/clearerr.c: New file. Add a stdio function
5429         implementation.
5430         * libc/machine/spu/feof.c: Ditto.
5431         * libc/machine/spu/ferror.c: Ditto.
5432         * libc/machine/spu/fileno.c: Ditto.
5433         * libc/machine/spu/fopen.c: Ditto.
5434         * libc/machine/spu/fclose.c: Ditto.
5435         * libc/machine/spu/freopen.c: Ditto.
5436         * libc/machine/spu/fflush.c: Ditto.
5437         * libc/machine/spu/fseek.c: Ditto.
5438         * libc/machine/spu/ftell.c: Ditto.
5439         * libc/machine/spu/rewind.c: Ditto.
5440         * libc/machine/spu/fgetpos.c: Ditto.
5441         * libc/machine/spu/fsetpos.c: Ditto.
5442         * libc/machine/spu/fread.c: Ditto.
5443         * libc/machine/spu/fwrite.c: Ditto.
5444         * libc/machine/spu/getc.c: Ditto.
5445         * libc/machine/spu/getchar.c: Ditto.
5446         * libc/machine/spu/gets.c: Ditto.
5447         * libc/machine/spu/fgetc.c: Ditto.
5448         * libc/machine/spu/fgets.c: Ditto.
5449         * libc/machine/spu/ungetc.c: Ditto.
5450         * libc/machine/spu/putc.c: Ditto.
5451         * libc/machine/spu/fputc.c: Ditto.
5452         * libc/machine/spu/fputs.c: Ditto.
5453         * libc/machine/spu/vfprintf.c: Ditto.
5454         * libc/machine/spu/vfscanf.c: Ditto.
5455         * libc/machine/spu/fprintf.c: Ditto.
5456         * libc/machine/spu/fscanf.c: Ditto.
5457         * libc/machine/spu/scanf.c: Ditto.
5458         * libc/machine/spu/vscanf.c: Ditto.
5459         * libc/machine/spu/setbuf.c: Ditto.
5460         * libc/machine/spu/setvbuf.c: Ditto.
5461         * libc/machine/spu/tmpfile.c: Ditto.
5462
5463 2007-02-01  Jeff Johnston  <jjohnstn@redhat.com>
5464
5465         * libc/include/sys/config.h[__SPU__]: Define __CUSTOM_FILE_IO__.
5466         * libc/include/stdio.h[!__CUSTOM_FILE_IO__]: Add flag check
5467         around stdio macros that manipulate fields in the normal file
5468         structure.
5469         * libc/include/sys/reent.h[__CUSTOM_FILE_IO__]: Include
5470         <sys/custom_file.h> to define custom FILE structure.
5471         * libc/include/sys/custom_file.h: New default header file
5472         that generates error if not overridden when __CUSTOM_FILE_IO__ set.
5473         * libc/machine/spu/sys/custom_file.h: New file.
5474
5475 2007-01-31  Kazunori Asayama <asayama@sm.sony.co.jp>
5476
5477         * configure.host: Define stdio directory as a variable.
5478         * libc/Makefile.am: Define stdio related names
5479         as macros.
5480         * libc/configure.in: Add detection routine of stdio directory.
5481         * libc/Makefile.in: Regenerated.
5482         * libc/configure: Ditto.
5483         * libc/argz/Makefile.in: Ditto.
5484         * libc/ctype/Makefile.in: Ditto.
5485         * libc/errno/Makefile.in: Ditto.
5486         * libc/iconv/Makefile.in: Ditto.
5487         * libc/iconv/ccs/Makefile.in: Ditto.
5488         * libc/iconv/ccs/binary/Makefile.in: Ditto.
5489         * libc/iconv/ces/Makefile.in: Ditto.
5490         * libc/iconv/lib/Makefile.in: Ditto.
5491         * libc/locale/Makefile.in: Ditto.
5492         * libc/misc/Makefile.in: Ditto.
5493         * libc/posix/Makefile.in: Ditto.
5494         * libc/reent/Makefile.in: Ditto.
5495         * libc/search/Makefile.in: Ditto.
5496         * libc/signal/Makefile.in: Ditto.
5497         * libc/stdio/Makefile.in: Ditto.
5498         * libc/stdio64/Makefile.in: Ditto.
5499         * libc/stdlib/Makefile.in: Ditto.
5500         * libc/string/Makefile.in: Ditto.
5501         * libc/syscalls/Makefile.in: Ditto.
5502         * libc/time/Makefile.in: Ditto.
5503         * libc/unix/Makefile.in: Ditto.
5504
5505 2007-01-30  Ben Elliston  <bje@au.ibm.com>
5506
5507         * libc/machine/spu/vsnprintf.c (c99_vsnprintf_t): Const-qualify
5508         fmt member.
5509         * libc/machine/spu/printf.c (c99_printf_t): Likewise.
5510         (printf): Pass fmt to va_start to suppress a warning.
5511
5512         * libc/search/hash.c (init_hash): Make `info' parameter const.
5513
5514 2007-01-19  Kazunori Asayama <asayama@sm.sony.co.jp>
5515
5516         * libc/machine/spu/c99ppe.h: Replace vector with __vector.
5517         * libc/machine/spu/vec_literal.h: Ditto.
5518         * libc/machine/spu/strncmp.c: Ditto.
5519
5520 2007-01-15  Joseph Myers  <joseph@codesourcery.com>
5521             Kazu Hirata  <kazu@codesourcery.com>
5522
5523         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Add support
5524         for E500V1 and E500V2.
5525
5526 2007-01-11  Jeff Johnston  <jjohnstn@redhat.com>
5527
5528         * libm/configure.in: Always configure machine directory.
5529         * libm/Makefile.am: Make machine subdirectory part of SUBDIRS
5530         unconditionally.
5531         * libm/configure: Regenerated.
5532         * libm/Makefile.in: Ditto.
5533         * libm/*/Makefile.in: Ditto.
5534
5535 2007-01-05  Brian Ford  <Brian.Ford@FlightSafety.com>
5536
5537         * configure.host (*-*-cygwin*): Define HAVE_BLKSIZE.
5538
5539 2007-01-02  Ben Elliston  <bje@au.ibm.com>
5540
5541         * doc/makedoc.c: Include <stdlib.h>.
5542         (malloc, realloc): Remove extern declarations.
5543
5544 2006-12-18  Jeff Johnston  <jjohnstn@redhat.com>
5545
5546         * NEWS: Update with 1.15.0 info.
5547         * README: Ditto.
5548         * acinclude.m4: Change version number to 1.15.0.
5549         * aclocal.m4: Regenerated.
5550         * configure: Ditto.
5551         * doc/aclocal.m4: Ditto.
5552         * doc/configure: Ditto.
5553         * libc/*/aclocal.m4: Ditto.
5554         * libc/*/configure: Ditto.
5555         * libc/libc.texinfo: Ditto.
5556         * libm/*/aclocal.m4: Ditto.
5557         * libm/*/configure: Ditto.
5558         * libm/libm.texinfo: Ditto.
5559         * libc/sys/linux/shared.ld: Add VERS_1.15.
5560
5561 2006-12-18  Kazu Hirata  <kazu@codesourcery.com>
5562
5563         Merge from newlib-csl-20060320-branch:
5564         2006-12-01  Nathan Sidwell  <nathan@codesourcery.com>
5565                     Kazu Hirata  <kazu@codesourcery.com>
5566
5567         * configure.host: Recognize fido.
5568
5569 2006-12-18  Joel Schopp <jschopp@austin.ibm.com>
5570
5571         * libc/machine/spu/c99ppe.h: New file
5572         * libc/machine/spu/perror.c: New file to override libc/stdio version.
5573         * libc/machine/spu/printf.c: New file
5574         * libc/machine/spu/putchar.c: New file
5575         * libc/machine/spu/puts.c: New file
5576         * libc/machine/spu/vprintf.c: New file
5577         * libc/machine/spu/vsnprintf.c: New file
5578         * libc/machine/spu/vsprintf.c: New file
5579         * libc/machine/spu/Makefile.am: Add new targets.
5580         * libc/machine/spu/Makefile.in: Regenerated.
5581
5582 2006-12-18  Jeff Johnston  <jjohnstn@redhat.com>
5583
5584         * aclocal.m4 */aclocal.m4: Regenerated using aclocal 1.9.6.
5585         * Makefile.in */Makefile.in: Regenerated using automake 1.9.6.
5586
5587 2006-12-18  Jeff Johnston  <jjohnstn@redhat.com>
5588
5589         * libc/stdlib/mallocr.c (malloc_extend_top): Add patch from
5590         2.6.5 version of Doug Lea's malloc which is the basis of
5591         this code.
5592
5593 2006-12-18  Kazunori Asayama <asayama@sm.sony.co.jp>
5594
5595         * libc/include/machine/setjmp.h[__SPU__]: Replace vector with __vector.
5596
5597 2006-12-14  Jeff Johnston  <jjohnstn@redhat.com>
5598             Eric Blake  <ebb9@byu.net>
5599
5600         * libc/stdio/fflush.c (fflush): On seekable streams, always flush
5601         read but unused data.
5602         * libc/stdio/fclose.c (_fclose_r): Always flush streams, since
5603         even read streams may have side effects that must happen.
5604
5605 2006-12-13  Joel Schopp <jschopp@austin.ibm.com>
5606
5607         * libc/machine/spu/setjmp.S: Fix to handle registers past 115
5608         correctly.
5609
5610 2006-12-13  Joel Schopp <jschopp@austin.ibm.com>
5611
5612         * libc/include/alloca.h: Add undef alloca to work with xlc.
5613
5614 2006-12-12  Joel Schopp <jschopp@austin.ibm.com>
5615
5616         * libc/include/machine/setjmp.h[__SPU__]: Redefine _JBTYPE for
5617         cell spu.
5618
5619 2006-12-04  Kazunori Asayama  <asayama@sm.sony.co.jp>
5620
5621         * libc/machine/spu/strncpy.c: Add padding.
5622
5623 2006-12-04  Kazunori Asayama  <asayama@sm.sony.co.jp>
5624
5625         * testsuite/newlib.string/tstring.c:
5626
5627 2006-12-01  Kazunori Asayama  <asayama@sm.sony.co.jp>
5628
5629         * libc/machine/spu/strchr.c: Fix mask for misaligned string.
5630         * libc/machine/spu/strrchr.c: Ditto.
5631
5632 2006-11-30  Lev Bishop  <lev.bishop@gmail.com>
5633
5634         * libc/include/math.h: Allow C99 functions/macros to be
5635         defined for C++ even when __STRICT_ANSI__.
5636
5637 2006-11-29  Jeff Johnston  <jjohnstn@redhat.com>
5638
5639         * libc/stdio/makebuf.c (__smakebuf): If dealing with
5640         an asprintf-family buffer, make the default initial size 64.
5641
5642 2006-11-29  Eric Blake  <ebb9@byu.net>
5643
5644         * libc/stdio/fvwrite.c (__sfvwrite_r): Avoid off-by-one error in
5645         asprintf, as well as quadratic realloc behavior.
5646
5647 2006-11-29  Kazunori Asayama  <asayama@sm.sony.co.jpi
5648
5649         * libc/machine/spu/memset.c: Fix type of explicit cast.
5650         * libc/machine/spu/strncmp.c: Add explicit cast.
5651         * libc/machine/spu/strrchr.c: Ditto.
5652         * libc/machine/spu/strspn.c: Ditto.
5653
5654 2006-11-22  Luca Barbato  <lu_zero@gentoo.org>
5655
5656         * libc/machine/spu/memcpy.c: Use spu_splats, explicit cast.
5657         * libc/machine/spu/memmove.c: Use spu_splats, explicit cast.
5658         * libc/machine/spu/memset.c: Use spu_splats, remove apple-cast.
5659         * libc/machine/spu/strchr.c: Use spu_splats, remove apple-cast.
5660         * libc/machine/spu/strncat.c: Explicit cast.
5661         * libc/machine/spu/strncmp.c: Use spu_splats.
5662         * libc/machine/spu/strncpy.c: Explicit cast.
5663         * libc/machine/spu/strrchr.c: Use spu_splats.
5664         * libc/machine/spu/strspn.c: Use spu_splats.
5665
5666 2006-11-15  Till Straumann  <strauman@slac.stanford.edu>
5667
5668         * libc/time/tzset_r.c (_tzset_r): Initialize local variable.
5669
5670 2006-11-14  Eric Blake  <ebb9@byu.net>
5671
5672         * libc/stdio/vfprintf.c (_vfprintf_r): Support ' flag.
5673         (chclass): ' is a flag.  j, t, and z are modifiers.
5674
5675 2006-11-08  Jie Zhang  <jie.zhang@analog.com>
5676
5677         * configure.host: Add support for bfin.
5678         * libc/include/machine/ieeefp.h: Define __IEEE_LITTLE_ENDIAN for bfin.
5679         * libc/include/machine/setjmp.h: Define _JBLEN for bfin.
5680         * libc/machine/bfin/aclocal.m4: Generate.
5681         * libc/machine/bfin/configure.in: New.
5682         * libc/machine/bfin/configure: Generate.
5683         * libc/machine/bfin/Makefile.am: New.
5684         * libc/machine/bfin/Makefile.in: Generate.
5685         * libc/machine/bfin/setjmp.S: New.
5686         * libc/machine/bfin/longjmp.S: New.
5687         * libc/machine/configure.in: Add bfin support.
5688         * libc/machine/configure: Generate.
5689
5690 2006-11-07  Corinna Vinschen  <corinna@vinschen.de>
5691
5692         * libc/include/sys/unistd.h (_SC_STREAM_MAX): Define on Cygwin.
5693         (_PC_FILESIZEBITS): Add definition.
5694         (_PC_2_SYMLINKS): Ditto.
5695         (_PC_SYMLINK_MAX): Ditto.
5696
5697 2006-10-27  Joel Schopp  <jschopp@austin.ibm.com>
5698
5699         * libc/machine/spu/memcpy.c: Override generic function with vectorized
5700         version optimized for the cell spu.
5701         * libc/machine/spu/memmove.c: Ditto.
5702         * libc/machine/spu/memset.c: Ditto.
5703         * libc/machine/spu/strcat.c: Ditto.
5704         * libc/machine/spu/strchr.c: Ditto.
5705         * libc/machine/spu/strcmp.c: Ditto.
5706         * libc/machine/spu/strcpy.c: Ditto.
5707         * libc/machine/spu/strcspn.c: Ditto.
5708         * libc/machine/spu/strlen.c: Ditto.
5709         * libc/machine/spu/strncat.c: Ditto.
5710         * libc/machine/spu/strncmp.c: Ditto.
5711         * libc/machine/spu/strncpy.c: Ditto.
5712         * libc/machine/spu/strpbrk.c: Ditto.
5713         * libc/machine/spu/strrchr.c: Ditto.
5714         * libc/machine/spu/strspn.c: Ditto.
5715         * libc/machine/spu/strxfrm.c: Ditto.
5716         * libc/machine/spu/vec_literal.h: Add abstraction of vector literals,
5717         removing altivec style initializers.
5718         * libc/machine/spu/Makefile.am: Add new files to list so they build
5719         * libc/machine/spu/Makefile.in: Regenerate from new Makefile.am
5720
5721 2006-10-27  Jeff Johnston  <jjohnstn@redhat.com>
5722
5723         * README: Add a brief section on how to regenerate
5724         configuration files in newlib.
5725
5726 2006-10-25  Vladimir Prus  <vladimir@codesourcery.com>
5727
5728         * libc/include/math.h: (exception): Add a comment
5729         telling fixincludes that we handle C vs. C++ issue.
5730
5731 2006-10-11  Yang Tse  <yangsita@gmail.com>
5732
5733         * libc/include/machine/setjmp.h: Use __extension__ keyword for gcc's
5734         braced-groups.
5735
5736 2006-10-11  Corinna Vinschen  <corinna@vinschen.de>
5737
5738         * libc/reent/reeent.c (_reclaim_reent): Free _REENT_MP_RESULT.
5739
5740 2006-09-26  Jeff Johnston  <jjohnstn@redhat.com>
5741
5742         * libc/include/stdio.h[_REENT_SMALL]: Do not allow macros
5743         for clearerr, feof, or fileno.
5744         * libc/include/sys/reent.h[_REENT_SMALL](struct _reent): Change
5745         the dummy std stream scheme to use pointers to const external
5746         fake files, one for each standard stream.
5747         * libc/stdio/local.h (CHECK_INIT): Change to take a file pointer
5748         argument.  For _REENT_SMALL, reset the file pointer if it
5749         matches one of the fake std stream pointers.
5750         * libc/stdio/clearerr.c: Fix CHECK_INIT macro to add file pointer
5751         argument.
5752         * libc/stdio/fclose.c: Ditto.
5753         * libc/stdio/feof.c: Ditto.
5754         * libc/stdio/ferror.c: Ditto.
5755         * libc/stdio/fflush.c: Ditto.
5756         * libc/stdio/fgetc.c: Ditto.
5757         * libc/stdio/fgets.c: Ditto.
5758         * libc/stdio/fileno.c: Ditto.
5759         * libc/stdio/findfp.c: Ditto.
5760         * libc/stdio/fputc.c: Ditto.
5761         * libc/stdio/fputs.c: Ditto.
5762         * libc/stdio/fread.c: Ditto.
5763         * libc/stdio/freopen.c: Ditto.
5764         * libc/stdio/fseek.c: Ditto.
5765         * libc/stdio/ftell.c: Ditto.
5766         * libc/stdio/fwrite.c: Ditto.
5767         * libc/stdio/getc.c: Ditto.
5768         * libc/stdio/getdelim.c: Ditto.
5769         * libc/stdio/putc.c: Ditto.
5770         * libc/stdio/refill.c: Ditto.
5771         * libc/stdio/setvbuf.c: Ditto.
5772         * libc/stdio/ungetc.c: Ditto.
5773         * libc/stdio/vfprintf.c: Ditto.
5774         * libc/stdio/vfscanf.c: Ditto.
5775         * libc/stdio/wbuf.c: Ditto.: Ditto.
5776         * libc/stdio/wsetup.c: Ditto.
5777         * libc/stdio64/freopen64.c: Ditto.
5778         * libc/stdio64/fseeko64.c: Ditto.
5779         * libc/stdio64/ftello64.c: Ditto.
5780         * libc/machine/powerpc/vfprintf.c: Ditto.
5781         * libc/machine/powerpc/vfscanf.c: Ditto.
5782
5783 2006-09-22  Paul Brook  <paul@codesourcery.com>
5784
5785         * libc/include/sys/reent.h: Define and use __reent_assert.
5786
5787 2006-09-13  Joel Sherrill <joel@oarcorp.com>
5788
5789         * libc/include/pthread.h: Add pthread barriers,
5790         rwlocks, and spinlocks.  Change const to
5791         _CONST and prefix parameter names with
5792         an underscore.
5793         * libc/include/sys/types.h: Add id and attribute
5794         types for barriers, wrlocks, and spinlocks.
5795         * libc/include/sys/features.h: Enable barriers,
5796         wrlocks, and spinlocks for RTEMS.
5797
5798 2006-09-13  Patrick Mansfield <patmans@us.ibm.com>
5799
5800         * libc/include/math.h: Remove _CONST from _LIB_VERSION, as it is
5801         supposed to be writable.
5802         * libm/common/s_lib_ver.c: Ditto.
5803
5804 2006-09-12  Paul Brook  <paul@codesourcery.com>
5805
5806         * libc/stdlib/rand.c (srand): Add _REENT_CHECK_RAND48.
5807
5808 2006-09-07  Masaki Muranaka  <monaka@monami-software.com>
5809
5810
5811         * libc/machine/xstormy16/Makefile.am:
5812         Add $(lpfx) prefix to LIBADD objects.
5813         lib_a_DEPENDENCIES uses the value of lib_a_LIBADD.
5814         * libc/machine/xstormy16/Makefile.in: Regenerated.
5815
5816 2006-09-06  Eric Blake  <ebb9@byu.net>
5817
5818         * libc/stdio/vfprintf.c (_vfprintf_r, get_arg): Add 'hh', 'j',
5819         't', and 'z' modifiers.
5820
5821 2006-09-01  Kazu Hirata  <kazu@codesourcery.com>
5822
5823         Merge from newlib-csl-20060320-branch:
5824         2006-05-22  Sandra Loosemore <sandra@codesourcery.com>
5825
5826         * configure.host: Tell it we have _rename and _system when
5827         building m68k-unknown-elf.
5828
5829 2006-08-29  Paul Brook  <paul@codesourcery.com>
5830
5831         * libc/include/sys/config.h: Define _REENT_SMALL for Thumb-2.
5832
5833 2006-08-27  Joel Sherrill <joel.sherrill@OARcorp.com>
5834
5835         * libc/sys/rtems/machine/sys/param.h: Conditionalize definition of
5836         BLKDEV_IOSIZE and MAXPHYS so it will fit into small memory targets.
5837         This is needed to build all AVR and H8300 RTEMS multilib variants.
5838
5839 2006-08-23  Kazunori Asayama  <asayama@sm.sony.co.jp>
5840
5841         * libc/machine/configure.in: Add configuration for SPU.
5842         * libc/machine/configure: Regenerated.
5843         * libc/machine/spu/memcpy.c: Include string.h.
5844
5845 2006-08-22  Eric Blake  <ebb9@byu.net>
5846
5847         * libc/posix/popen.c (popen): Don't close output end of pipe in
5848         child if stdout was closed on entry.
5849         [HAVE_FCNTL]: In parent, mark file as close-on-exec, per POSIX.
5850
5851 2006-08-19  Ramana Radhakrishnan  <ramana.r@gmail.com>
5852
5853         * sys/types.h: Correct syntax error caused by missing '\' on #ifdef
5854         line.
5855
5856 2006-08-17  Brian Ford  <Brian.Ford@FlightSafety.com>
5857
5858         * libc/time/gmtime.c: Correct man page; clock is not a
5859         local time and no conversion occurs.
5860
5861 2006-08-16  Joel Schopp  <jschopp@austin.ibm.com>
5862
5863         * configure.host (newlib_cflags) [spu]: Add special compiler
5864         options to reduce size.
5865
5866 2006-08-16  Joel Schopp  <jschopp@austin.ibm.com>
5867
5868         * configure.host: Add spu support.
5869         * libc/include/stdint.h: Ditto.
5870         * libc/include/machine/ieeefp.h: Ditto.
5871         * libc/include/machine/setjmp.h: Ditto.
5872         * libc/include/sys/config.h: Ditto.
5873         * libc/include/sys/types.h: Ditto.
5874         * libc/machine/spu/Makefile.am: New file.
5875         * libc/machine/spu/Makefile.in: Ditto.
5876         * libc/machine/spu/aclocal.m4: Ditto.
5877         * libc/machine/spu/configure: Ditto.
5878         * libc/machine/spu/configure.in: Ditto.
5879         * libc/machine/spu/memcpy.c: Ditto.
5880         * libc/machine/spu/setjmp.S: Ditto.
5881
5882 2006-08-03  J"orn Rennecke  <joern.rennecke@st.com>
5883
5884         * dtoa.c (dtoa_r): Handle the denormalized _DOUBLE_IS_32BITS case
5885         properly.
5886
5887 2006-08-01  Jeff Johnston  <jjohnstn@redhat.com>
5888
5889         * libc/Makefile.am: Add libc_TEXINFOS dependency on
5890         generated .texi files.
5891         * libm/Makefile.am: Add libm_TEXINFOS dependency on
5892         generated .texi files.
5893         * libc/Makefile.in: Regenerated.
5894         * libm/Makefile.in: Ditto.
5895
5896 2006-08-01  Thiemo Seufer  <ths@mips.com>
5897             Nigel Stephens  <nigel@mips.com>
5898
5899         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): For MIPS
5900         define this to force _impure_ptr to live in the .sdata section.
5901
5902 2006-07-31  Jeff Johnston  <jjohnstn@redhat.com>
5903
5904         * acinclude.m4: Check for readelf tool.
5905         * configure.in: Use ${READELF} instead of hard-coding.
5906         * Regenerate all aclocal.m4, Makefile.in, and configure files.
5907
5908 2006-07-31  Jeff Johnston  <jjohnstn@redhat.com>
5909
5910         * libc/sys/linux/mmap.c: Remove include of sys/mman.h
5911         to avoid conflict with newer glibc's revision of mremap.
5912
5913 2006-07-05  Jeff Johnston  <jjohnstn@redhat.com>
5914
5915         * libc/stdlib/mprec.h [_DOUBLE_IS_32BITS]: Turn off C99 hex
5916         floating-point format support.  Also redefine
5917         dword0 and dword1 macros.
5918         * libc/stdlib/strtod.c: Add checks for _DOUBLE_IS_32BITS
5919         to prevent setting dword1 which is an rvalue only.
5920
5921 2006-06-22  Jeff Johnston  <jjohnstn@redhat.com>
5922
5923         * libc/stdlib/Makefile.am: Add new gdtoa routines.
5924         * libc/stdlib/Makefile.in: Regenerated.
5925         * libc/stdlib/gd_qnan.h: New file.
5926         * libc/stdlib/gdtoa-gethex.c: Ditto.
5927         * libc/stdlib/gdtoa-hexnan.c: Ditto.
5928         * libc/stdlib/gdtoa.h: Ditto.
5929         * libc/stdlib/mprec.c: Add new helper routines needed by
5930         the new gdtoa code.
5931         * libc/stdlib/mprec.h: Integrate some defines and prototypes
5932         used by gdtoa routines here.
5933         * libc/stdlib/strtod.c: Rebased on David M. Gay's gdtoa-strtod.c
5934         which adds C99 support such as nan, inf, and hexadecimal input
5935         format.
5936
5937 2006-06-15  Corinna Vinschen  <corinna@vinschen.de>
5938
5939         * libc/include/stdio.h (__sgetc_r): Fix typo.
5940         * libc/stdio/fread.c (_fread_r): Convert crlf calls to crlf_r.
5941         * libc/stdio/rget.c (__srbuf): Reinstantiate.
5942         * libc/stdio/wbuf.c (__swbuf): Ditto.
5943
5944 2006-06-14  Jeff Johnston  <jjohnstn@redhat.com>
5945
5946         * libc/include/stdio.h: Add new reentrant I/O prototypes for
5947         read/write functions.  Change getc/putc macros to have reentrant underlying
5948         macros/functions.  This includes __sgetc_raw_r, __sgetc_r, and __sputc_r.
5949         * libc/stdio/fgetc.c: Fix and/or add reentrant version to call
5950         new reentrant I/O functions/macros for reading/writing.
5951         * libc/stdio/fgets.c: Ditto.
5952         * libc/stdio/fputc.c: Ditto.
5953         * libc/stdio/fputs.c: Ditto.
5954         * libc/stdio/fread.c: Ditto.
5955         * libc/stdio/fseek.c: Ditto.
5956         * libc/stdio64/fseeko64.c: Ditto.
5957         * libc/stdio/fwrite.c: Ditto.
5958         * libc/stdio/getc.c: Ditto.
5959         * libc/stdio/getc_u.c: Ditto.
5960         * libc/stdio/getchar.c: Ditto.
5961         * libc/stdio/getchar_u.c: Ditto.
5962         * libc/stdio/putc.c: Ditto.
5963         * libc/stdio/putc_u.c: Ditto.
5964         * libc/stdio/putchar.c: Ditto.
5965         * libc/stdio/puts.c: Ditto.
5966         * libc/stdio/vfprintf.c: Ditto.
5967         * libc/stdio/vfscanf.c: Ditto.
5968         * libc/stdio/fvwrite.c: Change __sfvwrite into reentrant __sfvwrite_r.
5969         Change all previous callers of __sfvwrite.  Set errno to EBADF and
5970         set error flag on if attempt is made to write to file that does not
5971         allow writing.
5972         * libc/stdio/fvwrite.h: Fix new reentrant prototypes.
5973         * libc/stdio/local.h: Ditto.
5974         * libc/stdio/refill.c: Turn __srefill into reentrant __srefill_r.
5975         Set errno to EBADF and the error flag on if attempt is made to
5976         read unreadable file.  Change all previous callers of __srefill.
5977         * libc/stdio/rget.c
5978         * libc/stdio/wbuf.c: Turn __swbuf into reentrant __swbuf_r.  Change
5979         all previous callers of __swbuf.
5980         * libc/sys/linux/machine/i386/huge_val.h: Ifdef out file contents since
5981         huge value macros are already defined correctly for i386 by <math.h>.
5982
5983 2006-06-13  Sandra Loosemore <sandra@codesourcery.com>
5984
5985         * /libc/sys/arm/syscalls.c (_unlink, isatty, _system, _rename):
5986         Make them do something useful in the ARM_RDI_MONITOR case.
5987
5988 2006-06-07  Fred Fish  <fnf@specifix.com>
5989
5990         * libc/search/hash_bigkey.c (MIN,MAX): Remove
5991         defines that are already supplied by <sys/param.h>.
5992
5993 2006-06-07  Fred Fish  <fnf@specifix.com>
5994
5995         * configure.host: Remove references to HAVE_GETTIMEOFDAY.
5996
5997 2006-06-05  Shaun Jackman  <sjackman@gmail.com>
5998
5999         * libc/posix/Makefile.am (GENERAL_SOURCES): Add sleep.c and
6000         usleep.c.
6001         * libc/posix/Makefile.in: Regenerate.
6002         * libc/posix/sleep.c: New file.
6003         * libc/posix/usleep.c: Ditto.
6004
6005 2006-06-05  Shaun Jackman  <sjackman@gmail.com>
6006
6007         * configure.host (newlib_cflags) [arm, thumb, xscale]:  Remove
6008         -DABORT_PROVIDED flag.
6009         * newlib/libc/sys/arm/syscalls.c (kill, exit): Sync with libgloss.
6010         * newlib/libc/sys/arm/libcfunc.c (abort): Ditto.
6011
6012 2006-06-05  Jeff Johnston  <jjohnstn@redhat.com>
6013
6014         * Makefile.am (AM_MAKEFLAGS): Pass CCASFLAGS.
6015         * Makefile.in: Regenerated.
6016         * libc/machine/sh/Makefile.am (AM_CCASFLAGS): Remove
6017         extraneous CFLAGS reference now that CCASFLAGS are being extended
6018         properly via multilib.
6019         * libc/machine/sh/Makefile.in: Regenerated.
6020
6021 2006-06-02  Shaun Jackman  <sjackman@gmail.com>
6022
6023         * libc/unix/sigset.c: Undefine sigfillset, sigdelset, and
6024         sigismember.
6025
6026 2006-05-23  Jeff Johnston  <jjohnstn@redhat.com>
6027
6028         * libc/misc/dprintf.c: Removed.
6029         * libc/misc/__dprintf.c: Renamed from dprintf.c.
6030         * libc/misc/Makefile.am: Changed appropriately for rename.
6031         * libc/misc/Makefile.in: Regenerated.
6032
6033 2006-05-23  Jeff Johnston  <jjohnstn@redhat.com>
6034
6035         * libc/include/stdio.h: Protect dprintf prototype
6036         with #ifndef dprintf so as to not interfere with
6037         historical code defining their own dprintf macro.
6038
6039 2006-05-18  Jeff Johnston  <jjohnstn@redhat.com>
6040
6041         * libc/include/stdio.h: Add prototypes for fiscanf,
6042         iscanf, and siscanf.
6043
6044 2006-05-11  J"orn Rennecke <joern.rennecke@st.com>
6045
6046         * acinclude.m4 (_NEWLIB_VERSION): Rename to:
6047         (DEF_NEWLIB_VERSION).
6048         * configure.in (_NEWLIB_VERSION): Use NEWLIB_VERSION.
6049         * configure: Regenerate.
6050
6051 2006-05-09  Jeff Johnston  <jjohnstn@redhat.com>
6052
6053         * libc/ctype/Makefile.am: Add $(ELIX_SOURCES) to
6054         lib_a_SOURCES.
6055         * libc/ctype/Makefile.in: Regenerated.
6056
6057 2006-05-09  Kazu Hirata  <kazu@codesourcery.com>
6058
6059         * libc/machine/arm/Makefile.am: Fix a typo.
6060         * libc/machine/arm/Makefile.in: Regenerated.
6061
6062 2006-05-08  J"orn Rennecke <joern.rennecke@st.com>
6063
6064         * libc/machine/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
6065         * libc/machine/sh/Makefile.in: Regenerate.
6066
6067 2006-05-03  J"orn Rennecke <joern.rennecke@st.com>
6068
6069         * libc/sys/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
6070         * libc/sys/sh/Makefile.in (AM_CCASFLAGS): Likewise.
6071
6072 2006-05-02  Jeff Johnston  <jjohnstn@redhat.com>
6073
6074         * libc/sys/sysnec810/Makefile.am: Specify .S files instead of
6075         .s.
6076         * libc/sys/sysnec810/Makefile.in: Regenerated.
6077         * libc/sys/sysnec810/crt0.S: Renamed from .s file.
6078         * libc/sys/sysnec810/io.S: Ditto.
6079         * libc/sys/sysnec810/crt0.s: Renamed to .S file.
6080         * libc/sys/sysnec810/io.s: Ditto.
6081
6082 2006-05-01  Jeff Johnston  <jjohnstn@redhat.com>
6083
6084         * libc/argz/Makefile.am: Prefix any objects specified with $(lpfx).  If source file can
6085         be specified instead of object, do so.
6086         * libc/ctype/Makefile.am: Ditto.
6087         * libc/iconv/ccs/Makefile.am: Ditto.
6088         * libc/iconv/ces/Makefile.am: Ditto.
6089         * libc/iconv/lib/Makefile.am: Ditto.
6090         * libc/locale/Makefile.am: Ditto.
6091         * libc/posix/Makefile.am: Ditto.
6092         * libc/reent/Makefile.am: Ditto.
6093         * libc/search/Makefile.am: Ditto.
6094         * libc/stdio/Makefile.am: Ditto.
6095         * libc/stdio64/Makefile.am: Ditto.
6096         * libc/stdlib/Makefile.am: Ditto.
6097         * libc/string/Makefile.am: Ditto.
6098         * libc/syscalls/Makefile.am: Ditto.
6099         * libc/unix/Makefile.am: Ditto.
6100         * libc/machine/a29k/Makefile.am: Specify lib_a_CCASFLAGS so .S files will get
6101         prefix added automatically.  Any specified rules must use $(lpfx) for
6102         object file names.
6103         * libc/machine/arm/Makefile.am: Ditto.
6104         * libc/machine/cris/Makefile.am: Ditto.
6105         * libc/machine/crx/Makefile.am: Ditto.
6106         * libc/machine/d10v/Makefile.am: Ditto.
6107         * libc/machine/d30v/Makefile.am: Ditto.
6108         * libc/machine/fr30/Makefile.am: Ditto.
6109         * libc/machine/frv/Makefile.am: Ditto.
6110         * libc/machine/h8300/Makefile.am: Ditto.
6111         * libc/machine/h8500/Makefile.am: Ditto.
6112         * libc/machine/hppa/Makefile.am: Ditto.
6113         * libc/machine/i386/Makefile.am: Ditto.
6114         * libc/machine/i960/Makefile.am: Ditto.
6115         * libc/machine/iq2000/Makefile.am: Ditto.
6116         * libc/machine/m32c/Makefile.am: Ditto.
6117         * libc/machine/m32r/Makefile.am: Ditto.
6118         * libc/machine/m68hc11/Makefile.am: Ditto.
6119         * libc/machine/m68k/Makefile.am: Ditto.
6120         * libc/machine/m88k/Makefile.am: Ditto.
6121         * libc/machine/mips/Makefile.am: Ditto.
6122         * libc/machine/mn10200/Makefile.am: Ditto.
6123         * libc/machine/mn10300/Makefile.am: Ditto.
6124         * libc/machine/mt/Makefile.am: Ditto.
6125         * libc/machine/necv70/Makefile.am: Ditto.
6126         * libc/machine/powerpc/Makefile.am: Ditto.
6127         * libc/machine/sh/Makefile.am: Ditto.
6128         * libc/machine/sh/Makefile.in: Ditto.
6129         * libc/machine/sparc/Makefile.am: Ditto.
6130         * libc/machine/tic4x/Makefile.am: Ditto.
6131         * libc/machine/tic80/Makefile.am: Ditto.
6132         * libc/machine/v850/Makefile.am: Ditto.
6133         * libc/machine/w65/Makefile.am: Ditto.
6134         * libc/machine/xscale/Makefile.am: Ditto.
6135         * libc/machine/xstormy16/Makefile.am: Ditto.
6136         * libc/machine/z8k/Makefile.am: Ditto.
6137         * libc/sys/a29khif/Makefile.am: Ditto.
6138         * libc/sys/arm/Makefile.am: Ditto.
6139         * libc/sys/d10v/Makefile.am: Ditto.
6140         * libc/sys/h8300hms/Makefile.am: Ditto.
6141         * libc/sys/h8500hms/Makefile.am: Ditto.
6142         * libc/sys/linux/Makefile.am: Ditto.
6143         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
6144         * libc/sys/linux/net/Makefile.am: Ditto.
6145         * libc/sys/linux/stdlib/Makefile.am: Ditto.
6146         * libc/sys/m88kbug/Makefile.am: Ditto.
6147         * libc/sys/mmixware/Makefile.am: Ditto.
6148         * libc/sys/rdos/Makefile.am: Ditto.
6149         * libc/sys/rtems/Makefile.am: Ditto.
6150         * libc/sys/sh/Makefile.am: Ditto.
6151         * libc/sys/sun4/Makefile.am: Ditto.
6152         * libc/sys/sysmec/Makefile.am: Ditto.
6153         * libc/sys/sysnec810/Makefile.am: Ditto.
6154         * libc/sys/sysnecv850/Makefile.am: Ditto.
6155         * libc/sys/sysvi386/Makefile.am: Ditto.
6156         * libc/sys/sysvnecv70/Makefile.am: Ditto.
6157         * libc/sys/tic80/Makefile.am: Ditto.
6158         * libc/sys/w65/Makefile.am: Ditto.
6159         * libc/sys/z8ksim/Makefile.am: Ditto.
6160         * libc/machine/necv70/fastmath.S: Renamed from .s file.
6161         * libc/machine/necv70/setjmp.S: Ditto.
6162         * libc/machine/necv70/fastmath.s: Removed.
6163         * libc/machine/necv70/setjmp.s: Ditto.
6164         * libc/machine/w65/*.S: New files renamed from .s files.
6165         * libc/machine/w65/*.s: Renamed and removed.
6166         * libc/sys/a29khif/*.S: New files renamed from .s files.
6167         * libc/sys/a29khif/*.s: Renamed and removed.
6168         * libc/sys/sysvi386/*.S: New files renamed from .s files.
6169         * libc/sys/sysvi386/*.s: Renamed and removed.
6170         * libc/sys/sysvnecv70/*.S: New files renamed from .s files.
6171         * libc/sys/sysvnecv70/*.s: Renamed and removed.
6172         * libc/*Makefile.in: Regenerated as appropriate.
6173
6174 2006-04-24  DJ Delorie  <dj@redhat.com>
6175
6176         * libc/machine/sh/configure.in: Avoid link tests.
6177         * libc/machine/sh/configure: Regenerate.
6178
6179 2006-04-18  Jeff Johnston  <jjohnstn@redhat.com>
6180
6181         * libc/include/sys/signal.h (sigdelset, sigfillset, sigismember): New macros.
6182         (sigaddset, sigemptyset): Add return code.
6183
6184 2006-04-13  Ralf Corsepius  <ralf.corsepius@rtems.org>
6185
6186         * acinclude.m4: New _NEWLIB_VERSION.
6187         * acinclude.m4(NEWLIB_CONFIGURE): AC_REQUIRE(_NEWLIB_VERSION).
6188         Use AC_CANONICAL_HOST instead of AC_CANONICAL_SYSTEM.
6189         Use new form of AC_INIT_AUTOMAKE.
6190         * configure.in: AC_PREREQ(2.59).
6191         Use autoconf-2.5.x version of AC_INIT.
6192         Use AC_CONFIG_FILES and autoconf-2.5x AC_OUTPUT instead of
6193         autoconf-2.13's AC_OUTPUT.
6194         * libm/configure.in: Ditto.
6195         * libm/machine/configure.in: Ditto.
6196         * libm/machine/i386/configure.in: Ditto.
6197         * libc/configure.in: Ditto.
6198         * libc/machine/a29k/configure.in: Ditto.
6199         * libc/machine/arm/configure.in: Ditto.
6200         * libc/machine/configure.in: Ditto.
6201         * libc/machine/mn10300/configure.in: Ditto.
6202         * libc/machine/powerpc/configure.in: Ditto.
6203         * libc/machine/z8k/configure.in: Ditto.
6204         * libc/machine/h8300/configure.in: Ditto.
6205         * libc/machine/mips/configure.in: Ditto.
6206         * libc/machine/crx/configure.in: Ditto.
6207         * libc/machine/m68hc11/configure.in: Ditto.
6208         * libc/machine/h8500/configure.in: Ditto.
6209         * libc/machine/xscale/configure.in: Ditto.
6210         * libc/machine/d10v/configure.in: Ditto.
6211         * libc/machine/fr30/configure.in: Ditto.
6212         * libc/machine/sh/configure.in: Ditto.
6213         * libc/machine/tic80/configure.in: Ditto.
6214         * libc/machine/m32r/configure.in: Ditto.
6215         * libc/machine/xstormy16/configure.in: Ditto.
6216         * libc/machine/i386/configure.in: Ditto.
6217         * libc/machine/d30v/configure.in: Ditto.
6218         * libc/machine/mn10200/configure.in: Ditto.
6219         * libc/machine/frv/configure.in: Ditto.
6220         * libc/machine/mt/configure.in: Ditto.
6221         * libc/machine/i960/configure.in: Ditto.
6222         * libc/machine/v850/configure.in: Ditto.
6223         * libc/machine/necv70/configure.in: Ditto.
6224         * libc/machine/tic4x/configure.in: Ditto.
6225         * libc/machine/cris/configure.in: Ditto.
6226         * libc/machine/m68k/configure.in: Ditto.
6227         * libc/machine/m32c/configure.in: Ditto.
6228         * libc/machine/hppa/configure.in: Ditto.
6229         * libc/machine/w65/configure.in: Ditto.
6230         * libc/machine/iq2000/configure.in: Ditto.
6231         * libc/machine/sparc/configure.in: Ditto.
6232         * libc/machine/m88k/configure.in: Ditto.
6233         * libc/sys/linux/configure.in: Ditto.
6234         * libc/sys/linux/machine/configure.in: Ditto.
6235         * libc/sys/linux/machine/i386/configure.in: Ditto.
6236         * libc/sys/linux/linuxthreads/configure.in: Ditto.
6237         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
6238         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
6239         * libc/sys/arm/configure.in: Ditto.
6240         * libc/sys/configure.in: Ditto.
6241         * libc/sys/decstation/configure.in: Ditto.
6242         * libc/sys/a29khif/configure.in: Ditto.
6243         * libc/sys/sysnecv850/configure.in: Ditto.
6244         * libc/sys/d10v/configure.in: Ditto.
6245         * libc/sys/netware/configure.in: Ditto.
6246         * libc/sys/mmixware/configure.in: Ditto.
6247         * libc/sys/h8500hms/configure.in: Ditto.
6248         * libc/sys/sh/configure.in: Ditto.
6249         * libc/sys/tic80/configure.in: Ditto.
6250         * libc/sys/rdos/configure.in: Ditto.
6251         * libc/sys/sysmec/configure.in: Ditto.
6252         * libc/sys/sysvi386/configure.in: Ditto.
6253         * libc/sys/h8300hms/configure.in: Ditto.
6254         * libc/sys/sparc64/configure.in: Ditto.
6255         * libc/sys/arc/configure.in: Ditto.
6256         * libc/sys/sysnec810/configure.in: Ditto.
6257         * libc/sys/m88kbug/configure.in: Ditto.
6258         * libc/sys/sysvnecv70/configure.in: Ditto.
6259         * libc/sys/z8ksim/configure.in: Ditto.
6260         * libc/sys/rtems/configure.in: Ditto.
6261         * libc/sys/w65/configure.in: Ditto.
6262         * libc/sys/sun4/configure.in: Ditto.
6263         * doc/configure.in: Ditto.
6264         * iconvdata/configure.in: Ditto.
6265         * configure.in: Use AC_CONFIG_HEADER instead of AM_CONFIG_HEADER.
6266
6267 2006-04-11  Jeff Johnston  <jjohnstn@redhat.com>
6268
6269         * acinclude.m4: Properly add square brackets for
6270         AC_DEFUN macros.  Rewrite LIB_AC_PROG_CC to remove
6271         macros no longer available.  Add LIB_AM_PROG_AS to
6272         remove prereq of AC_PROG_CC.  Add LIB_AC_PROG_CC_GNU
6273         macro.  Substitute lpfx (library object prefix).
6274         * configure.host: Set lpfx depending on whether
6275         libtool is used or not.
6276         * configure.in: Individually specify libc and libm
6277         to AC_CONFIG_SUBDIRS.  Add square bracket quoting as
6278         necessary.
6279         * Makefile.am: Use $(lpfx) to get object names for
6280         math-library functions that should also be in libc.
6281         * libc/machine/configure.in: Use case statement to determine
6282         AC_CONFIG_SUBDIRS statement.
6283         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
6284         * libc/sys/linux/machine/configure.in: Ditto.
6285         * libc/sys/configure.in: Ditto.
6286         * libm/machine/configure.in: Ditto.
6287         * libc/sys/linux/configure.in: Fix up AC_CONFIG_SUBDIRS.
6288         * libm/configure.in: Add AM_CONDITIONAL statement
6289         for HAVE_LIBM_MACHINE_DIR.
6290         * libc/machine/a29k/Makefile.am: Modified to work with
6291         latest automake.  Change includes setting AM_CCASFLAGS
6292         so building .S files will properly pick up flags used
6293         to build C files.
6294         * libc/machine/arm/Makefile.am: Ditto.
6295         * libc/machine/crx/Makefile.am: Ditto.
6296         * libc/machine/d10v/Makefile.am: Ditto.
6297         * libc/machine/d30v/Makefile.am: Ditto.
6298         * libc/machine/fr30/Makefile.am: Ditto.
6299         * libc/machine/frv/Makefile.am: Ditto.
6300         * libc/machine/h8300/Makefile.am: Ditto.
6301         * libc/machine/h8500/Makefile.am: Ditto.
6302         * libc/machine/hppa/Makefile.am: Ditto.
6303         * libc/machine/i386/Makefile.am: Ditto.
6304         * libc/machine/iq2000/Makefile.am: Ditto.
6305         * libc/machine/m32c/Makefile.am: Ditto.
6306         * libc/machine/m32r/Makefile.am: Ditto.
6307         * libc/machine/m68hc11/Makefile.am: Ditto.
6308         * libc/machine/m68k/Makefile.am: Ditto.
6309         * libc/machine/m88k/Makefile.am: Ditto.
6310         * libc/machine/mips/Makefile.am: Ditto.
6311         * libc/machine/mn10200/Makefile.am: Ditto.
6312         * libc/machine/mn10300/Makefile.am: Ditto.
6313         * libc/machine/mt/Makefile.am: Ditto.
6314         * libc/machine/necv70/Makefile.am: Ditto.
6315         * libc/machine/powerpc/Makefile.am: Ditto.
6316         * libc/machine/sh/Makefile.am: Ditto.
6317         * libc/machine/sparc/Makefile.am: Ditto.
6318         * libc/machine/tic4x/Makefile.am: Ditto.
6319         * libc/machine/tic80/Makefile.am: Ditto.
6320         * libc/machine/v850/Makefile.am: Ditto.
6321         * libc/machine/w65/Makefile.am: Ditto.
6322         * libc/machine/xscale/Makefile.am: Ditto.
6323         * libc/machine/xstormy16/Makefile.am: Ditto.
6324         * libc/machine/z8k/Makefile.am: Ditto.
6325         * libc/sys/a29khif/Makefile.am: Ditto.
6326         * libc/sys/arc/Makefile.am: Ditto.
6327         * libc/sys/arm/Makefile.am: Ditto.
6328         * libc/sys/d10v/Makefile.am: Ditto.
6329         * libc/sys/decstation/Makefile.am: Ditto.
6330         * libc/sys/h8300hms/Makefile.am: Ditto.
6331         * libc/sys/h8500hms/Makefile.am: Ditto.
6332         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
6333         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
6334         * libc/sys/m88kbug/Makefile.am: Ditto.
6335         * libc/sys/mmixware/Makefile.am: Ditto.
6336         * libc/sys/netware/Makefile.am: Ditto.
6337         * libc/sys/rdos/Makefile.am: Ditto.
6338         * libc/sys/rtems/Makefile.am: Ditto.
6339         * libc/sys/sh/Makefile.am: Ditto.
6340         * libc/sys/sparc64/Makefile.am: Ditto.
6341         * libc/sys/sysmec/Makefile.am: Ditto.
6342         * libc/sys/sysnec810/Makefile.am: Ditto.
6343         * libc/sys/sysnecv850/Makefile.am: Ditto.
6344         * libc/sys/sysvi386/Makefile.am: Ditto.
6345         * libc/sys/sysvnecv70/Makefile.am: Ditto.
6346         * libc/sys/tic80/Makefile.am: Ditto.
6347         * libc/sys/w65/Makefile.am: Ditto.
6348         * libc/sys/z8ksim/Makefile.am: Ditto.
6349         * libm/machine/i386/Makefile.am: Ditto.
6350         * libc/sys/arm/Makefile.am: Ditto plus add EXTRA sources including
6351         trap.S so that automake will generate a .S.o suffix rule.
6352         * libc/argz/Makefile.am: Modified to work with
6353         latest automake.  Change includes adding lib_a_CFLAGS
6354         so automake doesn't complain about libtool and non-libtool
6355         libraries sharing objects.
6356         * libc/ctype/Makefile.am: Ditto.
6357         * libc/errno/Makefile.am: Ditto.
6358         * libc/iconv/ccs/Makefile.am: Ditto.
6359         * libc/iconv/ces/Makefile.am: Ditto.
6360         * libc/iconv/lib/Makefile.am: Ditto.
6361         * libc/locale/Makefile.am: Ditto.
6362         * libc/misc/Makefile.am: Ditto.
6363         * libc/posix/Makefile.am: Ditto.
6364         * libc/reent/Makefile.am: Ditto.
6365         * libc/search/Makefile.am: Ditto.
6366         * libc/signal/Makefile.am: Ditto.
6367         * libc/stdio/Makefile.am: Ditto.
6368         * libc/stdio64/Makefile.am: Ditto.
6369         * libc/stdlib/Makefile.am: Ditto.
6370         * libc/string/Makefile.am: Ditto.
6371         * libc/sys/linux/Makefile.am: Ditto.
6372         * libc/sys/linux/argp/Makefile.am: Ditto.
6373         * libc/sys/linux/cmath/Makefile.am: Ditto.
6374         * libc/sys/linux/dl/Makefile.am: Ditto.
6375         * libc/sys/linux/iconv/Makefile.am: Ditto.
6376         * libc/sys/linux/intl/Makefile.am: Ditto.
6377         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
6378         * libc/sys/linux/net/Makefile.am: Ditto.
6379         * libc/sys/linux/stdlib/Makefile.am: Ditto.
6380         * libc/syscalls/Makefile.am: Ditto.
6381         * libc/time/Makefile.am: Ditto.
6382         * libc/unix/Makefile.am: Ditto.
6383         * libm/Makefile.am: Ditto.
6384         * libm/common/Makefile.am: Ditto.
6385         * libm/math/Makefile.am: Ditto.
6386         * libm/mathfp/Makefile.am: Ditto.
6387         * Regenerate all aclocal.m4, Makefile.in, and configure files.
6388
6389 2006-04-07  Jeff Johnston  <jjohnstn@redhat.com>
6390
6391         * libc/time/time.c (time): Do not check for HAVE_GETTIMEOFDAY
6392         anymore.  Assume there is a gettimeofday syscall.
6393
6394 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
6395
6396         * libc/sys/linux/include/netinet/ip.h: Include netinet/in_systm.h
6397         for the declaration of n_long.
6398
6399 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
6400
6401         * libc/sys/linux/include/net/if.h: Include sys/socket.h for
6402         struct sockaddr.
6403         (IFF_SMART): Replace this define with IFF_NOTRAILERS.
6404         (IFF_CANTCHANGE): Replace IFF_SMART reference with IFF_NOTRAILERS.
6405         (IFF_NOTRAILERS): New define.
6406         (struct ifreq): Add ifru_netmask.
6407         (ifr_netmask): New define.
6408
6409 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
6410
6411         * libc/sys/linux/sys/ioccom.h (ioctl): Change declaration to
6412         match sys/ioctl.h.
6413
6414 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
6415
6416         * libtool.m4: Set lt_cv_deplibs_check_method=pass_all for
6417         linux-newlib libc implementations.
6418
6419 2006-03-29  Eric Blake  <ebb9@byu.net>
6420
6421         * libc/stdio/freopen.c (_freopen_r) [__SCLE]: Fix typo.
6422         * libc/stdio64/freopen64.c (_freopen64_r) [__SCLE]: Likewise.
6423
6424 2006-03-29  Jeff Johnston  <jjohnstn@redhat.com>
6425
6426         * libc/sys/linux/io.c (__mknod): Fix declaration of
6427         syscall to pass a dev_t as third argument rather than
6428         a pointer to dev_t.
6429
6430 2006-03-29  Jeff Johnston  <jjohnstn@redhat.com>
6431
6432         * libc/sys/linux/net/name6.c: Fix struct references.
6433
6434 2006-03-22  Mark Mitchell  <mark@codesourcery.com>
6435
6436         * configure.host: Allow hosts to set the default
6437         newlib_atexit_dynamic_alloc value.
6438         * configure.in: Likewise.
6439         * configure: Regenerated.
6440
6441 2006-03-20  Mark Mitchell  <mark@codesourcery.com>
6442
6443         * acconfig.h (_ATEXIT_DYNAMIC_ALLOC): Undef.
6444         * configure.in (--disable-newlib-atexit-dynamic-alloc): New
6445         option.
6446         * configure: Regenerated.
6447         * newlib.hin: Regenerated.
6448         * libc/stdlib/__atexit.c (__register_exitproc): Don't call malloc
6449         if _ATEXIT_DYNAMIC_ALLOC is undefined.
6450         * libc/stdlib/__call_atexit.c (__call_exitprocs): Don't call free
6451         if _ATEXIT_DYNAMIC_ALLOC is undefined.
6452
6453 2006-03-17  Jeff Johnston  <jjohnstn@redhat.com>
6454
6455         * libc/sys/linux/linuxthreads/config.h: Remove definition
6456         of UINT32_C.
6457
6458 2006-03-15  Jeff Johnston  <jjohnstn@redhat.com>
6459
6460         * libc/stdio/wsetup.c (__swsetup): Don't make a buffer
6461         for a string I/O file that isn't using the asprintf family.
6462
6463 2006-03-07  Eric Blake  <ebb9@byu.net>
6464
6465         * libc/stdio/freopen.c (_freopen_r) [HAVE_FCNTL]: For NULL
6466         filename, allow read-only or write-only FILE atop O_RDWR file
6467         descriptor.
6468         * libc/stdio64/freopen64.c (_freopen64_r) [HAVE_FCNTL]: Likewise.
6469
6470 2006-03-07  Jeff Johnston  <jjohnstn@redhat.com>
6471
6472         * libm/common/sf_isinf.c[_DOUBLE_IS_32BITS]: Undef isinf.
6473         * libm/common/sf_isnan.c[_DOUBLE_IS_32BITS]: Undef isnan.
6474
6475 2006-03-02  Jeff Johnston  <jjohnstn@redhat.com>
6476
6477         * libm/math/math.tex: Fix reference to sisnan.def which
6478         is now in common subdirectory.
6479         * libm/mathfp/mathfp.tex: Ditto.
6480
6481 2006-02-27  Jeff Johnston  <jjohnstn@redhat.com>
6482
6483         * Makefile.am (MATHOBJS_IN_LIBC): Add s_isinfd, sf_isinff,
6484         s_isnand, and sf_isnanf object files.
6485         * Makefile.in: Regenerated.
6486         * libc/include/ieeefp.h: Undef isnan and isinf to avoid
6487         conflict if <math.h> has previously been included.
6488         * libc/include/math.h
6489         * libc/include/math.h: Make isnan and isinf macros to
6490         conform to C99.
6491         (__isinfd, __isinff, __isnand, __isnanf): New functions.
6492         * libm/common/Makefile.am: Add new s_isinfd, s_isnand, sf_isinff,
6493         and sf_isnanf files.  Also support s_isnan, sf_isnan, s_isinf, and
6494         sf_isinf files which have been moved from math/mathfp directories.
6495         * libm/common/Makefile.in: Regenerated.
6496         * libm/common/s_isinfd.c: New file.
6497         * libm/common/s_isnand.c: Ditto.
6498         * libm/common/sf_isinff.c: Ditto.
6499         * libm/common/sf_isnanf.c: Ditto.
6500         * libm/common/s_isinf.c: Moved from libm/math directory.
6501         * libm/common/s_isnan.c: Ditto.
6502         * libm/common/sf_isinf.c: Ditto.
6503         * libm/common/sf_isnan.c: Ditto.
6504         * libm/math/Makefile.am: Remove isinf and isnan family functions
6505         which have been moved into common directory.
6506         * libm/mathfp/Makefile.am: Ditto.
6507         * libm/math/Makefile.in: Regenerated.
6508         * libm/mathfp/Makefile.in: Ditto.
6509         * libm/math/s_isinf.c: Removed.
6510         * libm/math/s_isnan.c: Ditto.
6511         * libm/math/sf_isinf.c: Ditto.
6512         * libm/math/sf_isnan.c: Ditto.
6513         * libm/mathfp/s_isinf.c: Ditto.
6514         * libm/mathfp/s_isnan.c: Ditto.
6515         * libm/mathfp/sf_isinf.c: Ditto.
6516         * libm/mathfp/sf_isnan.c: Ditto.
6517
6518 2006-02-20  Jeff Johnston  <jjohnstn@redhat.com>
6519
6520         * libc/stdio/fflush.c (fflush): For an fflush on a read-only
6521         stream, turn off fseek/rewind optimization as per POSIX/SUSv3.
6522         * libc/stdio/fseek.c (_fseek_r): After a successful unoptimized
6523         seek, turn off the __SNPT no-optimization flag.
6524
6525 2006-02-16  Jeff Johnston  <jjohnstn@redhat.com>
6526
6527         * libc/sys/linux/aio.c: Define _GNU_SOURCE so struct aioinit
6528         will be defined.
6529         * libc/sys/linux/sys/types.h: Move <sys/config.h> ahead of
6530         <features.h> to preset special flags.
6531
6532 2006-02-15  Corinna Vinschen  <corinna@vinschen.de>
6533
6534         * libc/include/sys/time.h (struct timeval): Change member types
6535         according to SUSv3.
6536         * libc/include/sys/types.h (useconds_t): Change to unsigned
6537         according to SUSv3.
6538         (suseconds_t): Define type.
6539
6540 2006-02-13  Jeff Johnston  <jjohnstn@redhat.com>
6541             David Carne  <davidcarne@gmail.com>
6542
6543         * libc/string/strndup_r.c (_strndup_r): Use strnlen logic
6544         instead of strlen to determine number of bytes to copy.
6545         * libc/string/strnlen.c (strnlen): Fix so check for max limit occurs
6546         before looking at storage location.
6547
6548 2006-02-07  Paul Brook  <paul@codesourcery.com>
6549
6550         * libc/machine/arm/setjmp.S: Add Thumb-2 support.
6551         * libc/sys/arm/crt0.S: Add Thumb-2 startup code.
6552         * libc/sys/arm/libcfunc.c (do_AngelSWI): Use AngelSWIInsn.
6553         * libc/sys/arm/swi.h (AngelSWIInsn, AngelSWIAsm): Define.
6554         * libc/sys/arm/trap.S: Disable for Thumb-2.
6555
6556 2006-01-31  Leif Ekblad  <leif@rdos.net>
6557
6558         * configure.host: RDOS support added
6559         * libc/include/sys/config.h: Ditto.
6560         * libc/sys/rdos/Makefile.am, libc/sys/rdos/Makefile.in: New files.
6561         * libc/sys/rdos/aclocal.m4, libc/sys/rdos/chown.c: Ditto.
6562         * libc/sys/rdos/close.c, libc/sys/rdos/config.h: Ditto.
6563         * libc/sys/rdos/configure, libc/sys/rdos/configure.in: Ditto.
6564         * libc/sys/rdos/crt0.S, libc/sys/rdos/execve.c: Ditto.
6565         * libc/sys/rdos/fork.c, libc/sys/rdos/fstat.c: Ditto.
6566         * libc/sys/rdos/getenv.c, libc/sys/rdos/getpid.c: Ditto.
6567         * libc/sys/rdos/gettod.c, libc/sys/rdos/isatty.c: Ditto.
6568         * libc/sys/rdos/kill.c, libc/sys/rdos/link.c: Ditto.
6569         * libc/sys/rdos/lseek.c, libc/sys/rdos/open.c: Ditto.
6570         * libc/sys/rdos/rdos.S, libc/sys/rdos/rdos.h: Ditto.
6571         * libc/sys/rdos/rdoshelp.c, libc/sys/rdos/read.c: Ditto.
6572         * libc/sys/rdos/readlink.c, libc/sys/rdos/sbrk.c: Ditto.
6573         * libc/sys/rdos/stat.c, libc/sys/rdos/symlink.c: Ditto.
6574         * libc/sys/rdos/times.c, libc/sys/rdos/unlink.c: Ditto.
6575         * libc/sys/rdos/user.def, libc/sys/rdos/wait.c: Ditto.
6576         * libc/sys/rdos/write.c: Ditto.
6577
6578 2006-01-24  Jeff Johnston  <jjohnstn@redhat.com>
6579
6580         * acinclude.m4: Add nodefine to AM_INIT_AUTOMAKE macro invocation
6581         so as not to define PACKAGE and VERSION in newlib.h.
6582         * aclocal.m4: Regenerated.
6583         * configure: Ditto.
6584         * newlib.hin: Ditto.
6585
6586 2006-01-20  Jeff Johnston  <jjohnstn@redhat.com>
6587
6588         * acconfig.h: New file to generate newlib.hin from.
6589         * newlib.hin: Regenerated.
6590         * stamp-h.in: Regenerated.
6591         * Makefile.am: Add ACLOCAL_AMFLAGS so aclocal can be
6592         called automatically.
6593         * Makefile.in: Regenerated.
6594         * acinclude.m4: Add proper comment for hack in previous change.
6595         * aclocal.m4 */aclocal.m4: Regenerated.
6596         * configure */configure: Regenerated.
6597
6598 2006-01-11  Jeff Johnston  <jjohnstn@redhat.com>
6599
6600         * acinclude.m4: Add hack to prevent INSTALL in subdirs
6601         from being set to "../".
6602         * Makefile.am: Pass INSTALL in AM_MAKEFLAGS.
6603         * aclocal.m4: Regenerated.
6604         * configure: Ditto.
6605         * Makefile.in: Ditto.
6606         * doc/aclocal.m4: Ditto.
6607         * doc/configure: Ditto.
6608         * iconvdata/aclocal.m4: Ditto.
6609         * iconvdata/configure: Ditto.
6610         * libc/*/aclocal.m4: Ditto.
6611         * libc/*/configure: Ditto.
6612         * libc/libc.texinfo: Ditto.
6613         * libm/*/aclocal.m4: Ditto.
6614         * libm/*/configure: Ditto.
6615
6616 2006-01-10  Eric Blake  <ebb9@byu.net>
6617
6618         * libc/stdio/freopen.c (_freopen_r): Fix use of oflags.
6619         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
6620
6621 2006-01-10  Jeff Johnston  <jjohnstn@redhat.com>
6622
6623         * libm/mathfp/s_frexp.c: Check for special values on
6624         the original input, not the manipulated output value.
6625         * libm/mathfp/sf_frexp.c: Ditto.
6626         * libm/mathfp/s_atangent.c: Don't use local value branch
6627         when checking for quadrant.
6628         * libm/mathfp/sf_atangent.c: Ditto.
6629
6630 2006-01-09  Jeff Johnston  <jjohnstn@redhat.com>
6631
6632         * libc/stdio/freopen.c: Switch to use isatty instead of _isatty.
6633         * libc/stdio64/freopen64.c: Ditto.
6634
6635 2006-01-09  Eric Blake  <ebb9@byu.net>
6636
6637         * libc/stdio/freopen.c (_freopen_r): Accept NULL filename.
6638         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
6639
6640 2006-01-06  Jeff Johnston  <jjohnstn@redhat.com>
6641
6642         * libc/sys/linux/include/getopt.h: Add macros needed by
6643         new version of getopt.c in libc/stdlib.
6644
6645 2006-01-04  Gregory Pietsch  <gpietsch@comcast.net>
6646
6647         * libc/stdlib/getopt.c: Replaced with version
6648         that adds getopt_long and getopt_long_only support.
6649         * libc/include/getopt.h: New file.
6650
6651 2005-12-16  Jeff Johnston  <jjohnstn@redhat.com>
6652
6653         * NEWS: Update with 1.14.0 info.
6654         * README: Ditto.
6655         * acinclude.m4: Change version number to 1.14.0.
6656         * aclocal.m4: Regenerated.
6657         * configure: Ditto.
6658         * doc/aclocal.m4: Ditto.
6659         * doc/configure: Ditto.
6660         * libc/*/aclocal.m4: Ditto.
6661         * libc/*/configure: Ditto.
6662         * libc/libc.texinfo: Ditto.
6663         * libm/*/aclocal.m4: Ditto.
6664         * libm/*/configure: Ditto.
6665         * libm/libm.texinfo: Ditto.
6666         * libc/sys/linux/shared.ld: Add VERS_1.14.
6667
6668 2005-12-16  Jeff Johnston  <jjohnstn@redhat.com>
6669
6670         * libc/sys/linux/sys/stat.h: Change *stat64 prototypes to
6671         take a pointer to struct stat64 rather than struct stat.
6672
6673 2005-12-16  Ralf Corsepius <ralf.corsepius@rtems.org>
6674
6675         * libc/include/stdint.h: Prefer long over int for int32_t.
6676         Use __have_long32 to set up int32_t.
6677         * libc/include/inttypes.h: Use "#if xxx" instead of "#ifdef xxx"
6678         (Sync with stdint.h).
6679
6680 2005-12-14  Corinna Vinschen  <corinna@vinschen.de>
6681
6682         * libc/include/sys/fcntl.h: Define O_SYNC unconditionally.  Fix
6683         typo in O_NDELAY comment.
6684
6685 2005-12-13  Nathan Sidwell  <nathan@codesourcery.com>
6686
6687         * libc/include/machine/ieeefp.h (__mt__): Renamed from __ms1__.
6688         * libc/include/machine/setjmp.h (__mt__): Likewise.
6689         * libc/machine/mt/setjmp.S: Rename ms1 reference to mt.
6690         * libc/machine/configure.in: Ditto.
6691
6692 2005-12-12  Nathan Sidwell  <nathan@codesourcery.com>
6693
6694         * configure.host: Replace ms1 arch with mt arch.
6695         * libc/machine/mt: Renamed from ms1 dir.
6696
6697 2005-12-08  Shaun Jackman  <sjackman@gmail.com>
6698
6699         * libc/include/sys/types.h: Remove the ifdef armour around
6700         standard POSIX types.
6701
6702 2005-12-06  Ralf Corsepius <ralf.corsepius@rtems.org>
6703
6704         * libc/sys/rtems/crt0.c: Add rtems_gxx_key_create,
6705         rtems_gxx_key_delete, rtems_gxx_getspecific,
6706         rtems_gxx_setspecific, rtems_gxx_mutex_trylock,
6707         rtems_gxx_recursive_mutex_init, rtems_gxx_recursive_mutex_lock,
6708         rtems_gxx_recursive_mutex_trylock, rtems_gxx_recursive_mutex_unlock.
6709
6710 2005-12-05  Christopher Faylor  <cgf@timesys.com>
6711
6712         * libc/include/stdlib.h: Move cygwin declarations to cygwin-specific
6713         file.  Declare unsetenv and _unsetenv_r when not cygwin.
6714
6715 2005-11-18  Jeff Johnston  <jjohnstn@redhat.com>
6716
6717         * libc/time/strptime.c (strptime): Don't abort for %c and %Z.
6718         Treat %c as "%a %b %e %H:%M:%S %Y" and ignore %Z.
6719
6720 2005-11-18  Christopher Faylor  <cgf@timesys.com>
6721
6722         * include/sys/time.h: Move more cygwin stuff to cygwin-specific header.
6723
6724 2005-11-18  Christopher Faylor  <cgf@timesys.com>
6725
6726         * include/time.h: Remove more cygwin-specific stuff.
6727
6728 2005-11-18  Christopher Faylor  <cgf@timesys.com>
6729
6730         * include/time.h: Move cygwin declarations to cygwin-specific header.
6731         * include/sys/time.h: Rename cygwin include to "sys_time.h".
6732
6733 2005-11-17  Jeff Johnston  <jjohnstn@redhat.com>
6734
6735         * libc/sys/linux/dl/dl-local.h: New file based on old dlfcn.h
6736         in libc/sys/linux/include.
6737         * libc/sys/linux/dl/dlfcn.h: Moved to libc/sys/linux/include.
6738         * libc/sys/linux/dl/ldsodefs.h: Include dl-local.h instead of dlfcn.h.
6739         * libc/sys/linux/include/dlfcn.h: Replaced with dlfcn.h formerly
6740         in libc/sys/linux/dl.
6741
6742 2005-11-11  Christopher Faylor  <cgf@timesys.com>
6743
6744         * libc/include/sys/time.h: For cygwin, use general header rather than
6745         specific "sys/select.h".
6746
6747 2005-11-08  Tom Walsh  <tom@openhardware.net>
6748
6749         * libc/time/tzvars.c: New file.
6750         * libc/time/tzset_r.c: Moved globals into tzvars.c
6751         so other time functions needn't link in __tzset_r and its
6752         dependencies.
6753         * libc/time/Makefile.am: Add the new file.
6754         * libc/time/Makefile.in: Regenerated.
6755
6756 2005-11-08  Christopher Faylor  <cgf@timesys.com>
6757
6758         * libc/include/string.h: Add cygwin-specific function declaration.
6759
6760 2005-11-07  Corinna Vinschen  <corinna@vinschen.de>
6761
6762         * libc/include/ieeefp.h: Add C++ guards.
6763
6764 2005-11-03  Jeff Johnston  <jjohnstn@redhat.com>
6765
6766         * libc/unix/getcwd.c: Don't use non-reentrant syscall names.
6767         * libc/unix/getlogin.c: Ditto.
6768         * libc/unix/getpass.c: Ditto.
6769         * libc/unix/getut.c: Ditto.
6770         * libc/unix/ttyname.c: Ditto.
6771
6772 2005-11-03  Shaun Jackman  <sjackman@gmail.com>
6773
6774         * libc/include/sys/unistd.h (readlink, symlink): Provide these
6775         prototypes by default.
6776         * libc/sys/linux/include/unistd.h (readlink): Remove this
6777         prototype.
6778         * libc/sys/linux/sys/unistd.h (readlink, symlink): New
6779         prototypes.
6780
6781 2005-11-01  Ralf Corsepius <ralf.corsepius@rtems.org>
6782
6783         * libc/include/stdint.h: Cleanup #if vs. #ifdef.
6784
6785 2005-10-31  Darin Johnson  <darin@usa.net>
6786
6787         * libm/mathfp/s_mathcnst.c: Fix endian-ness check to be
6788         correct for constants.
6789
6790 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
6791
6792         * libc/stdio/siprintf.c: Wrap long lines in ANSI_SYNOPSIS.
6793         * libc/stdio/siscanf.c: Likewise.
6794         * libc/stdio/sprintf.c: Likewise.
6795         * libc/stdio/sscanf.c: Likewise.
6796         * libc/stdio/vfprintf.c: Likewise.
6797         * libc/stdio/vfscanf.c: Likewise.
6798         * libc/stdio/viprintf.c: Likewise.
6799         * libc/stdio/viscanf.c: Likewise.
6800
6801 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
6802
6803         * libc/sys.tex (Stubs): Format examples consistently.   Change sbrk
6804         example to use "_end" symbol instead of "end".  Change write  example
6805         to use "outbyte" instead of "writechar".
6806
6807 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
6808
6809         * libc/ctype/ctype.tex: Use hyphens as appropriate, but not  otherwise.
6810         * libc/ctype/islower.c: Likewise.
6811         * libc/ctype/isupper.c: Likewise.
6812         * libc/ctype/iswalnum.c: Likewise.
6813         * libc/ctype/iswalpha.c: Likewise.
6814         * libc/ctype/iswblank.c: Likewise.
6815         * libc/ctype/iswcntrl.c: Likewise.
6816         * libc/ctype/iswdigit.c: Likewise.
6817         * libc/ctype/iswgraph.c: Likewise.
6818         * libc/ctype/iswlower.c: Likewise.
6819         * libc/ctype/iswprint.c: Likewise.
6820         * libc/ctype/iswpunct.c: Likewise.
6821         * libc/ctype/iswspace.c: Likewise.
6822         * libc/ctype/iswupper.c: Likewise.
6823         * libc/ctype/iswxdigit.c: Likewise.
6824         * libc/ctype/tolower.c: Likewise.
6825         * libc/ctype/toupper.c: Likewise.
6826         * libc/ctype/towctrans.c: Likewise.
6827         * libc/ctype/towlower.c: Likewise.
6828         * libc/ctype/towupper.c: Likewise.
6829         * libc/string/strcasecmp.c: Likewise.
6830         * libc/string/strcoll.c: Likewise.
6831         * libc/string/strings.tex: Likewise.
6832         * libc/string/strlwr.c: Likewise.
6833         * libc/string/strncasecmp.c: Likewise.
6834         * libc/string/strupr.c: Likewise.
6835         * libc/string/wcscoll.c: Likewise.
6836         * libc/string/wcslcat.c: Likewise.
6837         * libc/string/wcslcpy.c: Likewise.
6838         * libc/string/wcsnlen.c: Likewise.
6839         * libc/string/wcsstr.c: Likewise.
6840         * libc/string/wcstrings.tex: Likewise.
6841         * libc/string/wmemchr.c: Likewise.
6842         * libc/string/wmemcmp.c: Likewise.
6843         * libc/string/wmemcpy.c: Likewise.
6844         * libc/string/wmemmove.c: Likewise.
6845         * libc/string/wmemset.c: Likewise.
6846
6847 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
6848
6849         * libc/misc/unctrl.c: Replace FUNCTION description.
6850         * libc/signal/signal.c: Remove documentation for raise and  _raise_r.
6851         * libc/stdio/getdelim.c: Fix spelling errors.
6852         * libc/stdio/getw.c: Put RETURNS on a separate line.  Fix  punctuation.
6853         * libc/stdio/putw.c: Likewise.
6854         * libc/stdlib/a64l.c: Fix formatting, spelling and  punctuation in
6855         documentation.
6856         * libc/stdlib/assert.c: Do not capitalize FUNCTION description.
6857         * libc/stdlib/efgcvt.c: Add spaces to FUNCTION description.
6858         * libc/stdlib/envlock.c: Use em-dash in FUNCTION description.
6859         * libc/stdlib/mlock.c: Likewise.
6860         * libc/stdlib/mstats.c: Likewise.
6861         * libc/time/tzlock.c: Likewise.
6862         * libc/stdlib/rand.c: Use "multi-threaded" and "thread-safe"  in NOTES.
6863         * libc/stdlib/rand48.c: Remove extra space in FUNCTION  description
6864         and hyphenate "pseudo-random".
6865         * libc/string/bcmp.c: Remove extra blank lines in  documentation.
6866         * libc/string/strncat.c: Likewise.
6867         * libc/string/memchr.c: Remove extra ">" character in  documentation.
6868         * libc/string/strcspn.c: Use "characters" instead of "chars".
6869         * libc/string/strpbrk.c: Likewise.
6870         * libc/string/strerror_r.c: Capitalize "GNU".
6871         * libc/string/strnlen.c: Likewise.
6872         * libc/string/strtok.c: Fix formatting, spelling and  punctuation in
6873         documentation.  Use "multi-threaded" and "thread-safe" in  NOTES.
6874         * libc/string/wcscat.c: Split PORTABILITY into two paragraphs.
6875         * libc/string/wcschr.c: Likewise.
6876         * libc/string/wcscmp.c: Likewise.
6877         * libc/string/wcscpy.c: Likewise.
6878         * libc/string/wcscspn.c: Likewise.
6879         * libc/string/wcslen.c: Likewise.
6880         * libc/string/wcsncat.c: Likewise.
6881         * libc/string/wcsncmp.c: Likewise.
6882         * libc/string/wcsncpy.c: Likewise.
6883         * libc/string/wcsnlen.c: Likewise.
6884         * libc/string/wcspbrk.c: Likewise.
6885         * libc/string/wcsrchr.c: Likewise.
6886         * libc/string/wcsspn.c: Likewise.
6887         * libc/string/wmemchr.c: Likewise.
6888         * libc/string/wmemcmp.c: Likewise.
6889         * libc/string/wmemcpy.c: Likewise.
6890         * libc/string/wmemset.c: Likewise.
6891         * libc/string/wmemmove.c: Likewise.  Also fix FUNCTION  description.
6892         * libc/string/wcswidth.c: Formatting and punctuation in  documentation.
6893         * libc/string/wcwidth.c: Likewise.
6894         * libm/common/s_modf.c: Remove extra period from documentation.
6895         * libm/math/s_isnan.c: Fix formatting, grammar and  punctuation in
6896         documentation.
6897         * libm/mathfp/s_isnan.c: Likewise.
6898         * libm/math/s_ldexp.c: Fix punctuation.
6899         * libm/mathfp/s_ldexp.c: Likewise.
6900         * libm/math/w_log.c: Likewise.
6901         * libm/mathfp/s_logarithm.c: Likewise.
6902         * libm/math/w_j0.c: Add spaces to FUNCTION description.
6903         * libm/mathfp/w_jn.c: Likewise.
6904
6905 2005-10-26  Shaun Jackman  <sjackman@gmail.com>
6906
6907         * libc/posix/scandir.c (scandir): Update the function
6908         prototype to match the header.
6909         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Remove an
6910         extraneous #endif.
6911         * libc/sys/linux/sys/lock.h: Do not include
6912         machine/weakalias.h, since it's not used by this file.
6913
6914 2005-10-26  Jeff Johnston  <jjohnstn@redhat.com>
6915
6916         * libc/Makefile.am: Reorder SUBLIBS so machine and sys
6917         directories can override properly.
6918
6919 2005-10-20  Jeff Johnston  <jjohnstn@redhat.com>
6920
6921         * libc/include/math.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): When
6922         gcc is 3.3 or greater, use special gcc builtins.
6923
6924 2005-10-20  Corinna Vinschen <corinna@vinschen.de>
6925
6926         * libc/include/sys/time.h: Declare futimes and lutimes for Cygwin.
6927
6928 2005-10-18  Corinna Vinschen <corinna@vinschen.de>
6929
6930         * libc/include/sys/features.h: Define _POSIX_MEMLOCK_RANGE for Cygwin.
6931
6932 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
6933
6934         * libc/include/math.h (HUGE_VALF, HUGE_VALL): New.
6935         * libm/common/Makefile.am: Add s_infconst.c support.
6936         * libm/common/Makefile.in: Regenerated.
6937         * libm/common/s_infconst.c: New file with float and
6938         long double infinity support added.
6939         * libm/math/Makefile.am: Remove s_infconst.c support.
6940         * libm/math/Makefile.in: Regenerated.
6941         * libm/math/s_infconst.c: Moved to common directory.
6942         * libm/mathfp/Makefile.am: Remove s_infconst.c support.
6943         * libm/mathfp/Makefile.in: Regenerated.
6944         * libm/mathfp/s_infconst.c: Moved to common directory.
6945
6946 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
6947
6948         * libc/sys/linux/net/gethostbydns.c (dprintf): Rename to
6949         dbgprintf to prevent conflict with new dprintf function.
6950
6951 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
6952
6953         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix up "inf" and
6954         "nan" processing for systems that have long double support.
6955
6956 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
6957
6958         * libc/sys/linux/sys/types.h (int8_t): Add type.
6959
6960 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
6961
6962         * libm/common/Makefile.am (doc): Do not append to $(TARGETDOC).
6963         * libm/common/Makefile.in: Regenerate.
6964         * libm/common/common.tex: Delete file.
6965         * libm/math/math.tex: Include .def files from common/.
6966         * libm/mathfp/mathfp.tex: Likewise.
6967
6968 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
6969
6970         * libc/libc.texinfo (Top): Surround this node with @ifnottex
6971         instead of @ifinfo.  Update menu to add Introduction and match
6972         SUBDIRS order.
6973         (Introduction): New section.
6974
6975 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
6976
6977         * libc/reent/reent.tex (Reentrancy): Replace "Cygnus C Library"
6978         with "Red Hat newlib C Library".
6979         * libc/sys.tex (Stubs): Likewise.
6980         * libm/math/math.tex (Math): Likewise.
6981         * libm/mathfp/mathfp.tex (Math): Likewise.
6982
6983 2005-10-11  Shaun Jackman  <sjackman@gmail.com>
6984
6985         * libc/include/stdio.h (dprintf): New declaration.
6986         (vdprintf): Ditto.
6987         * libc/stdio/Makefile.am (GENERAL_SOURCES): Add dprintf.c
6988         and vdprintf.c.
6989         * libc/stdio/Makefile.in: Regenerate.
6990         * libc/stdio/dprintf.c: New file.
6991         * libc/stdio/vdprintf.c: New file.
6992         * libc/stdio/stdio.tex (dprintf): New entry.
6993
6994 2005-10-11  David Weatherford  <weath@tensilica.com>
6995
6996         * libc/stdio/vfprintf.c (_VFPRINTF_R): Recognize 'F' format.
6997         Print "inf" and "nan" in lowercase for e/f/g formats and in
6998         uppercase for E/F/G formats.
6999
7000 2005-10-07  Bob Wilson  <bob.wilson@acm.org>
7001
7002         * libc/stdlib/mallocr.c (mALLOc, rEALLOCc, mEMALIGn): Set errno
7003         to ENOMEM on failure.
7004
7005 2005-10-06  Ralf Corsepius <ralf.corsepius@rtems.org>
7006
7007         * libc/include/stdint.h: Add [u]int_fast<N>_t types.
7008
7009 2005-10-04  Ralf Corsepius <ralf.corsepius@rtems.org>
7010
7011         * libc/include/stdint.h: Move magic to set __have_long* to the
7012         beginning.  Use #if __have* instead of #if defined(__have*).
7013         Minor typo fixes.
7014
7015 2005-10-04  James E Wilson  <wilson@specifix.com>
7016
7017         * libc/include/sys/dirent.h (_DIRENT_H_): Delete #include_next.  Add
7018         #error.
7019
7020 2005-10-03  Jeff Johnston  <jjohnstn@redhat.com>
7021
7022         * libc/sys/linux/include/stdint.h: Include <sys/types.h> and
7023         incorporate Ralf's change below.
7024
7025 2005-10-03  Ralf Corsepius <ralf.corsepius@rtems.org>
7026
7027         * libc/include/stdint.h:
7028         Use __INTMAX_TYPE__ to derive intmax_t.
7029         Use __UINTMAX_TYPE__ to derive uintmax_t.
7030         Fix minor typo.
7031
7032 2005-09-27  Ralf Corsepius <ralf.corsepius@rtems.org>
7033
7034         * libc/include/stdint.h: Correct __STDINT_EXP macro incorrectly
7035         handling GCC >= 4.
7036
7037 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
7038
7039         * libc/sys/linux/include/stdint.h: Update to match functionality
7040         of generic newlib stdint.h.
7041
7042 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
7043
7044         * libc/include/stdint.h (__EXP): Rename to __STDINT_EXP
7045         and do not #undef the macro after it is used.  Fix typos.
7046         Also change 64-bit constants to use the __have_long64 and
7047         __have_longlong64 flags to determine if long or long long
7048         constants should be used.
7049         * libc/include/inttypes.h: Include stddef.h to get wchar_t
7050         type defined.
7051
7052 2005-09-20  Shaun Jackman  <sjackman@gmail.com>
7053
7054         * libc/include/stdint.h: Fix typo in names of
7055         LEAST macros.
7056
7057 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
7058
7059         * libc/sys/rtems/include/inttypes.h: Moved to...
7060         * libc/include/inttypes.h: ...here.
7061
7062 2005-09-19  Jeff Johnston  <jjohnstn@redhat.com>
7063
7064         * libc/sys/rtems/include/stdint.h: Moved to...
7065         * libc/include/stdint.h: ...here.
7066
7067 2005-09-08  Jeff Johnston  <jjohnstn@redhat.com>
7068
7069         * Makefile.am: Add include files under bits sub-directory.
7070         * Makefile.in: Regenerated.
7071         * libc/sys/linux/argp/argp-fs-xinl.c: Set __OPTIMIZE__ to
7072         actual value of 1 to be compatible with newer glibc headers.
7073         * libc/sys/linux/sys/cdefs.h: Fix to be compatible with newer
7074         glibc headers.
7075         * libc/sys/linux/sys/dirent.h: Ditto.
7076         * libc/sys/linux/argp/argp-xinl.c: Ditto.
7077         * libc/sys/linux/dl/dl-runtime.c: Make sure fixup and
7078         profile_fixup routines are marked used so they won't be
7079         optimized away.
7080         * libc/sys/linux/dl/dl-cache.c: Don't use weak_extern macro
7081         to mark functions as weak.
7082         * libc/sys/linux/dl/dl-open.c: Ditto.
7083         * libc/sys/linux/iconv/gconv_open.c: Fix to obey new gcc4
7084         rules about lvalues.
7085         * libc/sys/linux/iconv/gconv_simple.c: Ditto.
7086         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Don't use
7087         weak_extern macro to mark functions as weak.  Instead always
7088         use #pragma weak.
7089         * iconvdata/jis0208.h: Fix to work with gcc4.
7090         * libc/sys/linux/dl/dl-load.c: Ditto.
7091         * libc/sys/linux/dl/dl-reloc.c: Ditto.
7092         * libc/sys/linux/dl/do-rel.h: Ditto.
7093         * libc/sys/linux/dl/dynamic-link.h: Ditto.
7094         * libc/sys/linux/include/ltdl.h: Ditto.
7095         * libc/sys/linux/machine/i386/dl-machine.h: Ditto.
7096         * libc/sys/linux/machine/i386/weakalias.h: Ditto.
7097         * libc/sys/linux/net/ns_ntoa.c: Ditto.
7098         * libc/sys/linux/bits/initspin.h: New file.
7099         * libc/sys/linux/bits/libc-lock.h: Ditto.
7100         * libc/sys/linux/bits/pthreadtypes.h: Ditto.
7101         * libc/sys/linux/bits/typesizes.h: Ditto.
7102
7103 2005-09-08  Eric Blake  <ebb9@byu.net>
7104
7105         * libc/argz/argz_insert.c (argz_insert): Don't die with EINVAL when
7106         before is NULL.
7107
7108 2005-09-08  Brian Dessent  <brian@dessent.net>
7109
7110         * sf_lrint.c (lrintf): Mask 'i0' correctly when extracting
7111         mantissa.
7112         * s_lrint.c: Ditto.
7113
7114 2005-09-02  Jeff Johnston  <jjohnstn@redhat.com>
7115
7116         * libc/include/stdio.h: Add prototype for viprintf.
7117
7118 2005-09-01  Jeff Johnston  <jjohnstn@redhat.com>
7119
7120         * libm/mathfp/s_pow.c: (pow): Change code so 0 raised to
7121         any positive power results in 0.
7122         * libm/mathfp/sf_pow.c (powf): Ditto.
7123
7124 2005-08-31  Paul Brook  <paul@codesourcery.com>
7125
7126         * configure.host: Set have_crt0 to no for Arm targts when not
7127         providing syscalls.  Set sys_dir=arm unconditionally.
7128         Default have_crt0 based on sys_dir.
7129         * configure.in: Use have_crt0.
7130         * libc/configure.in: Ditto.
7131         * libc/sys/configure.in: Ditto.
7132         * configure: Regenerate.
7133         * libc/configure: Regenerate.
7134         * libc/sys/configure: Regenerate.
7135         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add aeabi_atexit.c.
7136         Only build other files when providing syscalls.
7137         * libc/sys/arm/Makefile.in: Regenerate.
7138         * libc/sys/arm/aeabi_atexit.c: New file.
7139
7140 2005-08-26  Christopher Faylor  <cgf@timesys.com>
7141
7142         * libc/include/string.h: Revert previous change.
7143
7144 2005-08-25  Christopher Faylor  <cgf@timesys.com>
7145
7146         * libc/include/string.h: For Cygwin, Define strerror_r as per ISO C.
7147
7148 2005-08-22  Shaun Jackman  <sjackman@gmail.com>
7149
7150         * libc/include/_syslist.h: If HAVE_OPENDIR is not defined,
7151         define _opendir as opendir, _readdir as readdir, and
7152         _closedir as closedir so that the implementations in
7153         libc/posix will be used.
7154
7155 2005-08-10  DJ Delorie  <dj@redhat.com>
7156
7157         * MAINTAINERS (CPU Ports): Add CPU port maintainer section.
7158
7159 2005-08-10  Stephen Huw Clarke  <stephen.clarke@st.com>
7160
7161         * libm/common/sf_fmax.c: Fix to properly handle NaNs.
7162         * libm/common/s_max.c: Ditto.
7163         * libm/common/sf_fmin.c: Ditto.
7164         * libm/common/s_min.c: Ditto.
7165
7166 2005-08-10  DJ Delorie  <dj@redhat.com>
7167
7168         * configure.host: Add m32c support.
7169         * libc/include/machine/ieeefp.h: Likewise.
7170         * libc/include/machine/setjmp.h: Likewise.
7171         * libc/include/sys/config.h: Likewise.
7172         * libc/machine/m32c: New directory, Renesas R8C/M16C/M32C support.
7173         * libc/machine/m32c/aclocal.m4: New file.
7174         * libc/machine/m32c/configure: Ditto.
7175         * libc/machine/m32c/configure.in: Ditto.
7176         * libc/machine/m32c/Makefile.am: Ditto.
7177         * libc/machine/m32c/Makefile.in: Ditto.
7178         * libc/machine/m32c/setjmp.S: Ditto.
7179
7180 2005-08-02  Bob Wilson  <bob.wilson@acm.org>
7181
7182         * libm/math/ef_hypot.c (__ieee754_hypotf): Add missing exponent bias
7183         to the value for 2^126.
7184
7185 2005-07-26  Hans-Peter Nilsson  <hp@bitrange.com>
7186
7187         * libc/machine/cris/libcdtor.c (defaultors): Mark artificially as
7188         used.
7189
7190 2005-07-20  Bob Wilson  <bob.wilson@acm.org>
7191            Darin Petkov <darin@tensilica.com>
7192
7193        * libm/math/ef_atan2.c (pi, pi_lo): Use round-to-nearest value of pi.
7194
7195 2005-07-19  Paul Brook  <paul@codesourcery.com>
7196
7197         * libc/sys/arm/crt0.S: Ensure doubleword stack alignment.
7198
7199 2005-07-18  Joseph S. Myers  <joseph@codesourcery.com>
7200
7201         * testsuite/lib/checkoutput.exp (newlib_check_output): Use test
7202         names after PASS and FAIL which do not depend on source directory
7203         name or on whether test passed or failed.
7204         * testsuite/lib/passfail.exp (newlib_pass_fail): Likewise.
7205
7206 2005-07-08  Ola Hugosson   <Ola.Hugosson@anoto.com>
7207
7208         * libc/string/wcsspn.c (wcsspn): Add missing increment of q.
7209
7210 2005-07-07  Shaun Jackman  <sjackman@gmail.com>
7211
7212         * libc/unix/ttyname.c (ttyname): Avoid calling _closedir
7213         twice for the same directory. _closedir calls free, and freeing
7214         the same pointer twice may cause a crash.
7215
7216 2005-07-06  Aldy Hernandez  <aldyh@redhat.com>
7217
7218         * configure.host: Added entry for ms1*.
7219         * libc/include/machine/ieeefp.h: Handle ms1.
7220         * libc/include/machine/setjmp.h (_JBLEN): Define for ms1.
7221         * libc/machine/ms1/aclocal.m4: New.
7222         * libc/machine/ms1/configure: New.
7223         * libc/machine/ms1/configure.in: New.
7224         * libc/machine/ms1/Makefile.am: New.
7225         * libc/machine/ms1/Makefile.in: New.
7226         * libc/machine/ms1/setjmp.S: New.
7227
7228 2005-07-04  Mark Mitchell  <mark@codesourcery.com>
7229
7230         * Makefile.am (site.exp): Set tmpdir.
7231         * Makefile.in: Regenerated.
7232         * testsuite/lib/checkoutput.exp (newlib_check_output): Put
7233         executables in $tmpdir.
7234         * testsuite/lib/flags.exp (libgloss_link_flags): Use the original
7235         libgloss version if not running in the build directory.
7236         * testsuite/lib/newlib.exp (newlib_init): Put testglue.o in
7237         $tmpdir.
7238         * testsuite/lib/passfail.exp (newlib_pass_fail): Put executables
7239         in $tmpdir.
7240
7241 2005-06-28  Dave Korn  <dave.korn@artimi.com>
7242
7243         * libm/common/s_lrint.c (lrint):  Fix signed-vs-unsigned comparison
7244         and miscalculation caused by fp representation of zero.
7245         * libm/common/sf_lrint.c (lrintf):  Likewise.
7246
7247 2005-06-16  Christopher Faylor  <cgf@timesys.com>
7248
7249         * libc/stdio/vfprintf.c (cvt): Don't rely on pointer aliasing to
7250         determine characteristics of long double.  Use a union instead.
7251         * ldtoa.c (_ldtoa_r): Ditto.
7252         (_ldcheck): Ditto.
7253         (_strtold): Ditto.
7254         (union uconv): New union.
7255
7256 2005-06-03  Jeff Johnston  <jjohnstn@redhat.com>
7257
7258         * libc/stdlib/mallocr.c (MALLOC_COPY): Switch to use memmove
7259         instead of memcpy.
7260
7261 2005-05-12  Jeff Johnston  <jjohnstn@redhat.com>
7262
7263         * configure.host (mn10300-*): Add long long I/O support by default.
7264
7265 2005-05-12  Jeff Johnston  <jjohnstn@redhat.com>
7266
7267         * libc/sys/linux/getpwuid.c: Removed.
7268         * libc/sys/linux/getpwnam.c: Removed.
7269         * libc/sys/linux/getpwent.c: New file containing logic
7270         from files removed above.  This allows overriding of file
7271         in libc/unix.
7272         * libc/sys/linux/Makefile.am: Support changes above.
7273         * libc/sys/linux/Makefile.in: Regenerated.
7274
7275 2005-04-28  Jeff Johnston  <jjohnstn@redhat.com>
7276
7277         * libc/stdio/vfscanf.c (__svfscanf_r): Fix code thinko
7278         when checking for multiple flags.
7279
7280 2005-04-18  Hans-Peter Nilsson  <hp@axis.com>
7281
7282         * configure.host <cris-*-* | crisv32-*-*>: Set
7283         default_newlib_io_long_long="yes".
7284
7285 2005-04-08  Jeff Johnston  <jjohnstn@redhat.com>
7286
7287         * libc/include/libgen.h: New file.
7288
7289 2005-04-08  Shaun Jackman  <sjackman@gmail.com>
7290
7291         * libc/unix/Makefile.am: Add support for basename and dirname.
7292         * libc/unix/Makefile.in: Regenerated.
7293         * libc/unix/basename.c: New file.
7294         * libc/unix/dirname.c: New file.
7295
7296 2005-04-07  Shaun Jackman  <sjackman@gmail.com>
7297
7298         * libc/sys/linux/inode.c (lchown): New function.
7299
7300 2005-04-07  Shaun Jackman  <sjackman@gmail.com>
7301
7302         * libc/unix/Makefile.am (LIB_OBJS): Include all the ELIX objects if no
7303         ELIX level is defined.
7304         * libc/unix/Makefile.in: Regenerated.
7305
7306 2005-04-05  Dave Korn  <dave.korn@artimi.com>
7307
7308         * libc/stdio/vfscanf.c (__svfscanf_r): If an error occurs processing
7309         something that looks like a "NaN", put back the characters processed.
7310
7311 2005-04-01  Corinna Vinschen  <corinna@vinschen.de>
7312
7313         * libc/stdlib/strtod.c (_strtod_r): Never change s00.
7314
7315 2005-03-23  Christopher Faylor  <cgf@timesys.com>
7316
7317         * configure.host: For cygwin, redefine CC with cygwin include directory
7318         first to mimic the behavior of the top-level configury.  Move include
7319         directory out of newlib_cflags.
7320
7321 2005-03-22  Jeff Johnston  <jjohnstn@redhat.com>
7322
7323         * configure.host: For arc, set -DREENTRANT_SYSCALLS_PROVIDED flag on.
7324         * libc/sys/arc/syscalls.c: Change functions to use __errno_r rather
7325         than errno.
7326
7327 2005-03-22  Christopher Faylor  <cgf@timesys.com>
7328
7329         * libc/include/machine/_types.h: Make trivial change to comment to
7330         avoid a spurious warning from gcc.
7331
7332 2005-03-21  Nicholas Wourms  <nwourms@netscape.net>
7333
7334         * libc/stdio/vfprintf.c: Move newlib.h before _WANT_IO_POS_ARGS test,
7335         since _WANT_IO_POS_ARGS is now defined in there.  Remove duplicate
7336         reent.h include.
7337
7338 2005-03-18  Hans-Peter Nilsson  <hp@axis.com>
7339             Corinna Vinschen  <corinna@vinschen.de>
7340
7341         * libc/include/ctype.h: Remove invalid +1 offset from
7342         ctype macro references to __ctype_ptr.
7343         (_ctype_): Move declaration outside #ifndef __cplusplus.
7344
7345 2005-03-18  Corinna Vinschen  <corinna@vinschen.de>
7346
7347         * libc/include/machine/setjmp.h (sigsetjmp): Use GCC extension to
7348         evaluate first parameter only once.
7349         (siglongjmp): Ditto.
7350
7351 2005-03-17  Jeff Johnston  <jjohnstn@redhat.com>
7352
7353         * configure.in: Add new check to see if compiler supports
7354         aliasing of arrays and define _HAVE_ARRAY_ALIASING if true.
7355         * configure: Regenerated.
7356         * Makefile.in: Ditto.
7357         * newlib.hin: Add _HAVE_ARRAY_ALIASING.
7358         * libc/ctype/ctype_.c: Check for _HAVE_ARRAY_ALIASING before
7359         aliasing the _ctype_ array to _ctype_b.
7360         * libc/include/ctype.h: Change macros to use __ctype_ptr.  Mark
7361         _ctype_ as deprecated.
7362
7363 2005-03-17  Hans-Peter Nilsson  <hp@axis.com>
7364
7365         * configure.host (newlib_cflags) <cris-*-*, crisv32-*-*>: Add
7366         -DCOMPACT_CTYPE.
7367
7368 2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>
7369
7370         * libc/sys/rtems/include/inttypes.h: New file.
7371         * libc/sys/rtems/include/stdint.h: Ditto.
7372
7373 2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>
7374
7375         * libc/string/memcmp.c: Fix to avoid pointer signedness warning.
7376
7377 2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>
7378
7379         * libc/include/machine/_types.h: New file.
7380         * libc/include/sys/types.h: Do not check for __rtems__
7381         when including <machine/_types.h>.  Remove some redundant
7382         declarations now that <machine/_types.h> is included.
7383         * libc/sys/rtems/machine/_types.h: Removed.  Replaced with
7384         shared header file.
7385
7386 2005-02-25  Ralf Corsepious  <ralf.corsepius@rtems.org>
7387
7388         * libm/common/fdlibm.h (FLT_UWORD_MAX, FLT_UWORD_HALF_MAX): Add
7389         L qualifier for these long constants.
7390
7391 2005-02-25  Eric Blake  <ebb9@byu.net>
7392
7393         * libc/include/time.h (__tzrule_struct): Make offset long, since
7394         a 16-bit int overflows on a 12-hour offset.
7395         * libc/sys/linux/include/time.h: Ditto.
7396         * libc/time/mktime.c (mktime): Use new type of __tzrule.offset.
7397         * libc/time/mktm_r.c: Ditto.
7398         * libc/time/gettzinfo.c: Ditto.
7399         * libc/time/strftime.c (strftime): Fix '%x' to deal with negative
7400         years.  Fix '%z' to use long, not int.
7401
7402 2005-02-24  Ralf Corsepious  <ralf.corsepius@rtems.org>
7403
7404         * libm/common/s_fpclassify.c: Use __uint32_t instead of int to
7405         manipulate float values in integer form.
7406         * libm/common/sf_round.c: Ditto.
7407
7408 2005-02-24  Ralf Corsepious  <ralf.corsepius@rtems.org>
7409
7410         * libc/include/sys/types.h [__rtems__]: Include new
7411         header file machine/_types.h.
7412         * libc/include/machine/types.h: Ditto.
7413         * libc/sys/rtems/machine/_types.h: New file.
7414
7415 2005-02-23  Corinna Vinschen  <corinna@vinschen.de>
7416
7417         * libc/include/time.h (_timezone): Change to long also for Cygwin.
7418         (timezone): Drop cast from definition.
7419
7420 2005-02-23  Jeff Johnston  <jjohnstn@redhat.com>
7421
7422         * libc/include/time.h [!CYGWIN](_timezone): Change to long.
7423         (__tzrule_type, __tzinfo_type): New types.
7424         (__gettzinfo): New function.
7425         * libc/sys/linux/include/time.h: Ditto.
7426         * libc/time/Makefile.am: Add gettzinfo.c.
7427         * libc/time/Makefile.in: Regenerated.
7428         * libc/time/local.h: Moved __tzrule_type to time.h.
7429         * libc/time/mktime.c: Call __gettzinfo to reference
7430         __tznorth, __tzyear, and __tzrule array.
7431         * libc/time/mktm_r.c: Ditto.
7432         * libc/time/strftime.c: Ditto.
7433         * libc/time/tzset_r.c: Ditto.  Also remove definition
7434         of __tzrule which is now in gettzinfo.c.  Change _timezone
7435         references to not cast to time_t.
7436         * libc/time/gettzinfo.c: New file.
7437
7438 2005-02-23  Corinna Vinschen  <corinna@vinschen.de>
7439
7440         * libc/include/sys/unistd.h: Define getpeereid for Cygwin.
7441
7442 2005-02-22  Corinna Vinschen  <corinna@vinschen.de>
7443
7444         * libc/include/sys/unistd.h: Define fdatasync also for Cygwin.
7445
7446 2005-02-16  Eric Blake  <ebb9@byu.net>
7447
7448         * libc/time/time.tex: Improve the documentation.
7449         * libc/time/strftime.c: Improve the documentation.
7450         (iso_year_adjust): New helper function.
7451         (strftime): Simplify '%E' and '%O'. Change '%c' to use
7452         recursion. Fix '%C', '%y', and '%Y' to deal with years with more
7453         than 4 characters.  Combine '%d' and '%e'. Implement '%D', '%F',
7454         '%g', '%G', '%n', '%R', '%t', '%T', '%u', '%V', '%X', and '%z'.
7455         Avoid core dumps on valid inputs (maxsize == 0, or
7456         tim_p->tm_isdst > 1).
7457
7458 2005-02-08  Corinna Vinschen  <corinna@vinschen.de>
7459
7460         * libc/include/pwd.h (struct passwd): Change pw_uid and pw_gid
7461         members to uid_t and gid_t according to SUSv3.
7462         * libc/include/sys/time.h (utimes):  Change second parameter
7463         to const according to SUSv3.
7464
7465 2005-02-07  Antony King  <antony.king@st.com>
7466
7467         * libc/stdio/clearerr.c (clearerr): Ensure CHECK_INIT() is
7468         called before _flockfile to prevent lock object use before
7469         initialisation. _REENT_SMALL_CHECK_INIT() and CHECK_INIT()
7470         take a struct _reent * instead of a FILE *.
7471         * libc/stdio/fclose.c (_fclose_r): Ditto.
7472         * libc/stdio/feof.c (feof): Ditto.
7473         * libc/stdio/ferror.c (ferror): Ditto.
7474         * libc/stdio/fflush.c (fflush): Ditto.
7475         * libc/stdio/fgetc.c (fgetc): Ditto.
7476         * libc/stdio/fgets.c (fgets): Ditto.
7477         * libc/stdio/fileno.c (fileno): Ditto.
7478         * libc/stdio/fputc.c (fputc): Ditto.
7479         * libc/stdio/fputs.c (fputs): Ditto.
7480         * libc/stdio/fread.c (fread): Ditto.
7481         * libc/stdio/freopen.c (_freopen_r): Ditto.
7482         * libc/stdio/fseek.c (_fseek_r): Ditto.
7483         * libc/stdio/ftell.c (_ftell_r): Ditto.
7484         * libc/stdio/fwrite.c (fwrite): Ditto.
7485         * libc/stdio/getc.c (getc): Ditto.
7486         * libc/stdio/getdelim.c (__getdelim): Ditto.
7487         * libc/stdio/putc.c (putc): Ditto.
7488         * libc/stdio/setvbuf.c (setvbuf): Ditto.
7489         * libc/stdio/ungetc.c (_ungetc_r): Ditto.
7490         * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
7491         * libc/stdio64/freopen64.c (_freopen64_r): Ditto.
7492         * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
7493         * libc/stdio64/ftello64.c (_ftello64_r): Ditto.
7494         * libc/stdio/local.h (CHECK_INIT): Argument is now a struct
7495         _reent * instead of a FILE * and so replace incorrect use of
7496         _REENT with argument.
7497         * libc/sys/arm/syscalls.c (CHECK_INIT): Ditto.
7498         * libc/stdio/getchar.c (getchar): _REENT_SMALL_CHECK_INIT() and
7499         CHECK_INIT() take a struct _reent * instead of a FILE *.
7500         * libc/stdio/iprintf.c (iprintf, _iprintf_r): Ditto.
7501         * libc/stdio/iscanf.c (iscanf, _iscanf_r): Ditto.
7502         * libc/stdio/perror.c (perror): Ditto.
7503         * libc/stdio/printf.c (printf, _printf_r): Ditto.
7504         * libc/stdio/putchar.c (putchar): Ditto.
7505         * libc/stdio/puts.c (puts): Ditto.
7506         * libc/stdio/refill.c (__srefill): Ditto.
7507         * libc/stdio/scanf.c (scanf, _scanf_r): Ditto.
7508         * libc/stdio/vfscanf.c (VFSCANF, _VFSCANF_R): Ditto.
7509         * libc/stdio/viprintf.c (viprintf, _viprintf_r): Ditto.
7510         * libc/stdio/viscanf.c (viscanf, _viscanf_r): Ditto.
7511         * libc/stdio/vprintf.c (vprintf, _vprintf_r): Ditto.
7512         * libc/stdio/vscanf.c (vscanf, _vscanf_r): Ditto.
7513         * libc/stdio/wbuf.c (__swbuf): Ditto.
7514         * libc/stdio/wsetup.c (__swsetup): Ditto.
7515         * libc/stdlib/mallocr.c (malloc_stats): Ditto.
7516         * libc/stdlib/mstats.c (_mstats_r): Ditto.
7517         * libc/include/sys/reent.h (_REENT_SMALL_CHECK_INIT): Ditto.
7518         * libc/machine/powerpc/vfscanf.c (vfscanf): Ditto.
7519         * libc/stdio/fgetpos.c (_fgetpos_r): Removed unnecessary calls
7520         to _flockfile and _funlockfile; rely on locking in _ftell_r.
7521         * libc/stdio64/fgetpos64.c (_fgetpos64_r): Ditto (_ftello64_r).
7522         * libc/machine/powerpc/vfprintf.c (__sbprintf): Removed unnecessary
7523         initialision of _data field in FILE structure.
7524         * libc/machine/powerpc/vfprintf.c (VFPRINTF): Added CHECK_INIT() call.
7525
7526 2005-02-07  Jeff Johnston  <jjohnstn@redhat.com>
7527
7528         * libc/stdio/findfp.c (__sinit): Protect with new lock.
7529         (__sinit_lock): New lock.
7530         (__sinit_lock_acquire, __sinit_lock_release): New functions.
7531         * libc/stdio/local.h: Add reference to new __sinit locking
7532         functions.
7533
7534 2005-02-07  Jeff Johnston  <jjohnstn@redhat.com>
7535
7536         * libc/include/math.h (isfinite, isnormal, isunordered): Change
7537         input variable names to avoid mixups with nesting macros.
7538
7539 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
7540
7541         * configure.host: Add support for cris-*-* and crisv32-*-*.
7542         * libc/include/machine/ieeefp.h: Ditto.
7543         * libc/include/machine/setjmp.h: Ditto.
7544         * libc/machine/cris/configure.in, libc/machine/cris/Makefile.am,
7545         libc/machine/cris/libcdtor.c, libc/machine/cris/setjmp.c,
7546         libc/machine/cris/memmove.c, libc/machine/cris/memcpy.c,
7547         libc/machine/cris/memset.c, libc/machine/cris/include/pthread.h,
7548         libc/machine/cris/sys/signal.h, libc/machine/cris/sys/fcntl.h,
7549         libc/machine/cris/sys/errno.h, libc/machine/cris/aclocal.m4,
7550         libc/machine/cris/configure, libc/machine/cris/Makefile.in: New
7551         files.
7552
7553 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
7554
7555         * testsuite/newlib.string/memmove1.c: New test.
7556
7557 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
7558
7559         * testsuite/include/check.h: Include stdlib.h.
7560
7561 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
7562
7563         * Makefile.am (stmp-targ-include): Support include header files
7564         from machine directories.
7565         (install-data-local): Ditto.
7566         * Makefile.in: Regenerate.
7567
7568 2005-01-24  Jeff Johnston  <jjohnstn@redhat.com>
7569
7570         * libc/include/string.h: Remove Linux-specific declaration of
7571         strsignal and add #include <sys/string.h>.
7572         * libc/include/sys/string.h: New file.
7573         * libc/include/sys/linux/sys/string.h: New file with strsignal
7574         declaration deleted above.
7575
7576 2005-01-20  Jeff Johnston  <jjohnstn@redhat.com>
7577
7578         * libc/time/strftime.c (strftime): Change %r and %x to be compliant
7579         to POSIX standard for "C" locale.  Allow %E and %O modifiers
7580         to be ignored as long as they precede valid specifiers according
7581         to POSIX.
7582
7583 2005-01-19  Shaun Jackman  <sjackman@gmail.com>
7584
7585         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
7586         environment variable is set.
7587
7588 2005-01-19  Shaun Jackman  <sjackman@gmail.com>
7589
7590         * tzset_r.c (_tzname): Add a comma.
7591
7592 2005-01-18  Aldy Hernandez  <aldyh@redhat.com>
7593
7594         * libc/machine/powerpc/vfprintf.c: Use _REENT when calling
7595         _VFPRINTF_R.
7596
7597 2005-01-07  Paul Brook  <paul@codesourcery.com>
7598
7599         * configure.in: Add test for .init_array.
7600         * configure: Regenerate.
7601         * newlib.hin: Add HAVE_INITFINI_ARRAY.
7602         * libc/misc/Makefile.am: Add init.c
7603         * libc/misc/Makefile.in: Regenerate.
7604         * libc/misc/init.c: New file.
7605         * libc/sys/arm/crt0.S: Call __libc_{init,fini}_array instead of
7606         _init/_fini if they exist.
7607
7608 2005-01-06  Jeff Johnston  <jjohnstn@redhat.com>
7609
7610         * libc/stdlib/strtod.c (_strtod_r): Add NaN support.
7611         * (strtof): Ditto.
7612         * libc/stdio/vfscanf.c (__svfscanf_r): Ditto.
7613         * Makefile.am (MATHOBJS_IN_LIBC): Add s_nan and sf_nan
7614         functions for use by strtod and strtof.
7615         * Makefile.in: Regenerated.
7616
7617 2005-01-06  Hans-Peter Nilsson  <hp@axis.com>
7618
7619         * libc/stdio/ftell.c (ftell_r): Add parenthesis for __SWR
7620         bit-test in combination with NULL test.
7621
7622 2005-01-06  Hans-Peter Nilsson  <hp@axis.com>
7623
7624         * README: Fix typo of LGPL.  Change "license" to "copyright".
7625
7626 2004-12-17  Jeff Johnston  <jjohnstn@redhat.com>
7627
7628         * NEWS: Update with 1.13.0 info.
7629         * README: Ditto.
7630         * acinclude.m4: Change version number to 1.13.0.
7631         * aclocal.m4: Regenerated.
7632         * configure: Ditto.
7633         * doc/aclocal.m4: Ditto.
7634         * doc/configure: Ditto.
7635         * libc/*/aclocal.m4: Ditto.
7636         * libc/*/configure: Ditto.
7637         * libc/libc.texinfo: Ditto.
7638         * libm/*/aclocal.m4: Ditto.
7639         * libm/*/configure: Ditto.
7640         * libm/libm.texinfo: Ditto.
7641         * libc/sys/linux/shared.ld: Add VERS_1.13.
7642
7643 2004-12-17  Christian Groessler  <chris@groessler.org>
7644
7645         * libc/machine/z8k/memcmp.S: New file.
7646         * libc/machine/z8k/memcpy.S: Ditto.
7647         * libc/machine/z8k/memmove.S: Ditto.
7648         * libc/machine/z8k/memset.S: Ditto.
7649         * libc/machine/z8k/Makefile.am: Add new files.
7650         * libc/machine/z8k/Makefile.in: Regenerated.
7651         * libc/machine/z8k/setjmp.S: Fix indirect register usage in Z8002
7652         part.  Implement Z8002 stdcall version.
7653
7654 2004-12-13  Jeff Johnston  <jjohnstn@redhat.com>
7655
7656         * libc/stdio/fread.c (fread): For unbuffered I/O, attempt
7657         a low-level read if we don't get the full amount of bytes so
7658         EOF or error flags will be set.
7659
7660 2004-12-09  Alex Mogilnikov  <alx@intellectronika.ru>
7661
7662         * libc/time/tzset_r (_tzset_r): Properly skip over
7663         '/' when it is detected.
7664
7665 2004-12-08  Alex Mogilnikov  <alx@intellectronika.ru>
7666
7667         * libc/time/tzset_r (_tzset_r): Fix loop.
7668
7669 2004-12-08  Alex Mogilnikov  <alx@intellectronika.ru>
7670
7671         * libc/time/mktm_r (_mktm_r): Fix overflow calculation for
7672         m_day.
7673         (__tzcalc_limits): Fix reference to month array to be zero-based.
7674
7675 2004-12-07  Jeff Johnston  <jjohnstn@redhat.com>
7676
7677         * libc/sys/linux/sys/unistd.h: Add prototypes for ftruncate, truncate,
7678         and usleep.
7679
7680 2004-12-03  Jeff Johnston  <jjohnstn@redhat.com>
7681
7682         * Makefile.am (libc_la_LDFLAGS): Add -lgcc to handle any
7683         libgcc dependencies.
7684         (libm_la_LDFLAGS): Ditto.
7685         * Makefile.in: Regenerated.
7686
7687 2004-12-03  Shaun Jackman  <sjackman@gmail.com>
7688
7689         * libc/sys/linux/linuxthreads/Makefile.am (install-data-local): Fix
7690         our link to use readlink so as to preserve any relative link created
7691         by install-toollibLIBRARIES.
7692         * libc/sys/linux/linuxthreads/Makefile.in: Regenerated.
7693
7694 2004-12-02  Shaun Jackman  <sjackman@gmail.com>
7695
7696         * libc/sys/linux/stdlib/glob.c: Include <sys/types.h> which defines
7697         time_t before including sys/stat.h, which uses it.
7698         * libc/sys/linux/sys/stat.h: Include <sys/types.h> and
7699         <linux/time.h> just prior to definition of __KERNEL__ so as to
7700         allow building on Debian Linux where otherwise, mktime would
7701         be redefined.
7702
7703 2004-11-26  Paul Brook  <paul@codesourcery.com>
7704
7705         * libc/sys/arm/crt0.S (_start): Add .cantunwind annotation.
7706
7707 2004-11-24  Jeff Johnston  <jjohnstn@redhat.com>
7708
7709         * libc/include/stdlib.h (putenv, _putenv_r): Change to remove
7710         const for value string parameter to match Single Unix and glibc.
7711         * libc/stdlib/putenv.c: Ditto.
7712         * libc/stdlib/putenv_r.c: Ditto.
7713
7714 2004-11-24  Jeff Johnston  <jjohnstn@redhat.com>
7715
7716         * libc/stdio/Makefile.am: Fix missing vfscanf.
7717         * libc/stdio/Makefile.in: Regenerated.
7718
7719 2004-11-23  Jeff Johnston  <jjohnstn@redhat.com>
7720
7721         * libc/include/stdio.h: Add new iprintf and iscanf variants.  Also
7722         do some reordering.
7723         * libc/machine/powerpc/vfscanf.c: Remove __sccl function.
7724         * libc/stdio/Makefile.am: Add support for new iprintf and iscanf
7725         family functions.
7726         * libc/stdio/Makefile.in: Regenerated.
7727         * libc/stdio/fiprintf.c: Remove doc to siprintf.c.
7728         * libc/stdio/iprintf.c: Ditto.
7729         * libc/stdio/local.h (__svfiscanf_r): New prototype.
7730         * libc/stdio/siprintf.c: Add docs for various iprintf family functions.
7731         * libc/stdio/sniprintf.c: Move docs to siprintf.c.
7732         * libc/stdio/stdio.tex: Add new functions.
7733         * libc/stdio/vfscanf.c: Split out __sccl function to separate
7734         file and add special name defines so this file can be used
7735         to build vfiscanf.o.
7736         * libc/stdio/asiprintf.c: New file.
7737         * libc/stdio/fiscanf.c: Ditto.
7738         * libc/stdio/iscanf.c: Ditto.
7739         * libc/stdio/sccl.c: Ditto.
7740         * libc/stdio/siscanf.c: Ditto.
7741         * libc/stdio/vasiprintf.c: Ditto.
7742         * libc/stdio/viprintf.c: Ditto.
7743         * libc/stdio/viscanf.c: Ditto.
7744         * libc/stdio/vsiprintf.c: Ditto.
7745         * libc/stdio/vsiscanf.c: Ditto.
7746         * libc/stdio/vsniprintf.c: Ditto.
7747
7748 2004-11-19  Shaun Jackman  <sjackman@gmail.com>
7749
7750         * libc/include/stdio.h: Add sniprintf.
7751         * libc/stdio/Makefile.am: Add sniprintf.c.
7752         * libc/stdio/Makefile.in: Regenerated.
7753         * libc/stdio/sniprintf.c: New file.
7754         * libc/stdio/stdio.tex: Add sniprintf.
7755
7756 2004-11-17  Christopher Faylor  <cgf@timesys.com>
7757
7758         * libc/stdio/refill.c (__srefill): Try again after EOF on Cygwin.  Clear
7759         EOF flag if successful.
7760
7761 2004-10-28  Christopher Faylor  <cgf@timesys.com>
7762
7763         * libc/include/sys/signal.h: Move <signal.h> include to bottom of file
7764         so that all relevant definitions have been performed for use in the
7765         include.
7766
7767 2004-10-26  Jason Tishler  <jason@tishler.net>
7768
7769         * libc/stdio/fread.c (fread): Fix return value for unbuffered
7770         fread.
7771
7772 2004-10-25  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
7773
7774         * libc/include/machine/setjmp.h: Add AVR support.
7775         * libc/sys/rtems/crt0.S [__AVR__]: Add __stack.
7776
7777 2004-10-08  Jeff Johnston  <jjohnstn@redhat.com>
7778
7779         * libc/include/sys/signal.h: If <signal.h> didn't include
7780         this header file, include <signal.h> to account for
7781         applications that take advantage that the two header
7782         files are the same in glibc.
7783
7784 2004-10-05  Tomer Levi  <Tomer.Levi@nsc.com>
7785
7786         * configure.host: Add support for crx.
7787         * libc/include/machine/ieeefp.h: Ditto.
7788         * libc/include/machine/setjmp.h: Ditto.
7789         * libc/machine/crx/Makefile.am: New file.
7790         * libc/machine/crx/configure.in: Ditto.
7791         * libc/machine/crx/setjmp.S: Ditto.
7792         * libc/machine/crx/getenv.c: Ditto.
7793         * libc/machine/crx/aclocal.m4: Generate.
7794         * libc/machine/crx/configure: Ditto.
7795         * libc/machine/crx/Makefile.in: Ditto.
7796         * libc/machine/crx/sys/asm.h: New file.
7797         * libc/machine/crx/sys/libh.h: Ditto.
7798         * libc/machine/crx/sys/syscall.h: Ditto.
7799
7800 2004-10-05  Jeff Johnston  <jjohnstn@redhat.com>
7801
7802         * Makefile.am (stmp-targ-include): Support sys header files
7803         from machine directories.
7804         * Makefile.in: Regenerated.
7805
7806 2004-10-04  Jeff Johnston  <jjohnstn@redhat.com>
7807
7808         * libc/stdio/vfscanf.c (__svfscanf_r): For int conversions,
7809         count skipped zero characters as part of the nread count for %n.
7810         * libc/machine/powerpc/vfscanf.c: Ditto.
7811
7812 2004-09-24  Jeff Johnston  <jjohnstn@redhat.com>
7813
7814         * libc/stdio/local.h: Include <stdlib.h>.
7815
7816 2004-09-24  Corinna Vinschen  <corinna@vinschen.de>
7817
7818         * libc/stdio/fread.c (fread): Include <malloc.h>.
7819
7820 2004-09-22  Jeff Johnston  <jjohnstn@redhat.com>
7821
7822         * libc/stdio/fread.c (fread):  For non-space-optimized case,
7823         add special code for unbuffered files to use user buffer and
7824         only require one low-level system read.
7825
7826 2004-09-21  Ian Lance Taylor  <ian@wasabisystems.com>
7827
7828         * libc/machine/xscale/setjmp.S: New file, copied from
7829         libc/machine/arm/setjmp.S.
7830         * libc/machine/xscale/Makefile.am (lib_a_SOURCES): Add setjmp.S.
7831         * libc/machine/xscale/Makefile.in: Regenerate.
7832
7833 2004-09-16  Antony King  <antony.king@st.com>
7834
7835         * libc/include/sys/lock.h: Replaced empty {} with (0) to conform
7836         with locking API.
7837         * libc/include/sys/stdio.h: (_flockfile)[!_SINGLE_THREAD]: Add
7838         check for__SSTR in _flags and if set, skip lock request.
7839         (_funlockfile)[!SINGLE_THREAD]: Ditto.
7840         * libc/stdio/local.h (CHECK_INIT): Added check that _REENT is
7841         not NULL.
7842         * libc/stdio/siprintf.c (siprintf, _siprintf_r): Added missing
7843         initialisation of _file to -1 in local FILE.
7844         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Ditto.
7845         * libc/stdio/sscanf.c (sscanf, _sscanf_r): Ditto.
7846         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
7847         * libc/stdio/vsscanf.c (_vsscanf_r): Ditto.
7848         * libc/stdio/sscanf.c (sscanf, _sscanf_r): Added __SSTR flag to
7849         _flags in local FILE to prevent locking.
7850         * libc/stdio/vsscanf.c (_vsscanf_r): Ditto.
7851
7852 2004-09-16  Antony King  <antony.king@st.com>
7853
7854         * libc/stdio/fwalk.c (_fwalk): Remove check for _GLOBAL_REENT
7855         and only walk the reentrancy parameter.
7856         (_fwalk_reent): Ditto.
7857         * libc/stdlib/exit.c: Remove out of date _REENT_ONLY check.
7858
7859 2004-09-16  Antony King  <antony.king@st.com>
7860
7861         * libc/stdio64/freopen64.c: Remove casting of fp lock to
7862         _LOCK_RECURSIVE_T.
7863
7864 2004-09-16  Antony King  <antony.king@st.com>
7865
7866         * libc/time/tzlock.c: Add default stubs that use generic
7867         locking code.
7868
7869 2004-09-16  Antony King  <antony.king@st.com>
7870
7871         * libc/ctype/ctype.tex: Added missing documentation.
7872         * libc/stdio/stdio.tex Ditto.
7873         * libc/stdlib/stdlib.tex Ditto.
7874         * libc/string/strings.tex Ditto.
7875         * libc/time/time.tex: Ditto.
7876         * libc/stdio/setbuffer.c: Removed setlinebuf documentation.
7877
7878 2004-09-15  Corinna Vinschen  <vinschen@redhat.com>
7879
7880         * libc/reent/impure.c (reent_data): Define as alias to impure_data
7881         when building for Cygwin.
7882         * libc/include/sys/reent.h (_GLOBAL_REENT): Revert definition to
7883         _global_impure_ptr.
7884
7885 2004-09-15  Jeff Johnston  <jjohnstn@redhat.com>
7886
7887         * configure.host: Reverting 2004-09-14 change as fix has occurred on
7888         Cygwin side.
7889         * configure.in: Ditto.
7890         * libc/configure.in: Ditto.
7891         * libc/sys/configure.in: Ditto.
7892         * configure: Ditto.
7893         * libc/configure: Ditto.
7894         * libc/sys/configure: Ditto.
7895         * libc/include/sys/reent.h: Ditto.
7896         * libc/stdlib/__atexit.c: Ditto.
7897         * libc/stdlib/__call_atexit.c: Ditto.
7898         * libc/stdlib/cxa_atexit.c: Ditto.
7899         * libc/stdlib/cxa_finalize.c: Ditto.
7900         * libc/sys/cygwin/Makefile.am: Removed again.
7901         * libc/sys/cygwin/Makefile.in: Ditto.
7902         * libc/sys/cygwin/aclocal.m4: Ditto.
7903         * libc/sys/cygwin/configure: Ditto.
7904         * libc/sys/cygwin/configure.in: Ditto.
7905         * libc/sys/cygwin/dummy.c: Ditto.
7906         * libc/sys/cygwin/sys/reent.h: Ditto.
7907
7908 2004-09-14  Jeff Johnston  <jjohnstn@redhat.com>
7909
7910         * configure.host: Add Cygwin sys directory.
7911         * configure.in: Do not set CRT0 for cygwin.
7912         * libc/configure.in: Ditto.
7913         * libc/sys/configure.in: Ditto.
7914         * configure: Regenerated.
7915         * libc/configure: Ditto.
7916         * libc/sys/configure: Ditto.
7917         * libc/include/sys/reent.h: Add __REENT_HAS_CXA_SUPPORT flag.
7918         * libc/stdlib/__atexit.c: Keep cxa support protected by new
7919         __REENT_HAS_CXA_SUPPORT flag.
7920         * libc/stdlib/__call_atexit.c: Ditto.
7921         * libc/stdlib/cxa_atexit.c: Ditto.
7922         * libc/stdlib/cxa_finalize.c: Ditto.
7923         * libc/sys/cygwin/Makefile.am: New file.
7924         * libc/sys/cygwin/Makefile.in: Ditto.
7925         * libc/sys/cygwin/aclocal.m4: Ditto.
7926         * libc/sys/cygwin/configure: Ditto.
7927         * libc/sys/cygwin/configure.in: Ditto.
7928         * libc/sys/cygwin/dummy.c: Ditto.
7929         * libc/sys/cygwin/sys/reent.h: Ditto.  This file is stabilized
7930         version of reent.h.
7931
7932 2004-09-13 Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
7933
7934         * libc/iconv/iconv.tex: Updated with new content.
7935         * libc/iconv/lib/iconvnls.c: Reference ICONV_DEFAULT_NLSPATH
7936         instead of NLS_DEFAULT_NLSPATH.
7937         * libc/iconv/lib/iconvnls.h: Fix typo.
7938         * libc/include/sys/iconvnls.h: New file.
7939
7940 2004-09-09  Paul Brook  <paul@codesourcery.com>
7941
7942         * libc/include/sys/reent.h (struct _on_exit_args): Add _dso_handle
7943         and _is_cxa.
7944         (struct _atexit): Add _next when _REENT_SMALL.
7945         (struct _reent): Add _atexit0 when _REENT_SMALL.
7946         (_REENT_INIT_PTR): Adjust.
7947         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add __atexit.c and
7948         __call_exit.c.
7949         (EXTENDED_SOURCES): Add cxa_atexit.c and cxa_finalize.c.
7950         * libc/stdlib/Makefile.in: Regenerate.
7951         * libc/stdlib/__atexit.c: New file.
7952         * libc/stdlib/__call_atexit.c: New file.
7953         * libc/stdlib/atexit.h: Remove old definitions.  Add new.
7954         * libc/stdlib/atexit.c (atexit): Use __register_exitproc.
7955         * libc/stdlib/cxa_atexit.c: New file.
7956         * libc/stdlib/cxa_finalize.c: New file.
7957         * libc/stdlib/exit.c (exit): Use __call_exitprocs.
7958         * libc/stdlib/on_exit.c (on_exit): Use __register_exitproc.
7959         2004-09-09  Jeff Johnston  <jjohnstn@redhat.com>
7960         * libc/reent/reent.c [_REENT_SMALL]: Fix reference to
7961         _on_exit_args_ptr.
7962
7963 2004-08-23  Jeff Johnston  <jjohnstn@redhat.com>
7964
7965         * libc/include/sys/unistd.h (getpass): Change prototype to use
7966         const instead of __const.
7967
7968 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
7969
7970         * libc/stdio/vfscanf.c (_NO_LONGLONG): Move out of FLOATING_POINT
7971         #if.
7972
7973 2004-08-12  Jeff Johnston  <jjohnstn@redhat.com>
7974
7975         * libc/sys/linux/sys/types.h (u64): New typedef to allow building
7976         on linux systems with glibc 2.3.3 installed.
7977         * libc/sys/linux/dl/dl-runtime.c: Fix prototypes for fixup and
7978         profile_fixup so newlib can build on fc3 system.
7979
7980 2004-07-30  Alexandre Oliva  <aoliva@redhat.com>
7981
7982         Introduce SH2a support.
7983         2004-03-16  Corinna Vinschen  <vinschen@redhat.com>
7984         * libc/include/machine/ieeefp.h: Define _DOUBLE_IS_32BITS for
7985         __SH2A_SINGLE_ONLY__, too.
7986         * libc/machine/sh/asm.h: Define DELAYED_BRANCHES for __SH2A__, too.
7987         2004-02-24  Corinna Vinschen  <vinschen@redhat.com>
7988         * libc/sys/sh/crt0.S (start_l): Support sh2a-nofpu.  Fix comments.
7989         2004-02-10  DJ Delorie  <dj@redhat.com>
7990         * libc/sys/sh/crt0.S (start_l): Support sh2a.
7991
7992 2004-07-29  Jeff Johnston  <jjohnstn@redhat.com>
7993
7994         * libc/time/strptime.c: Correct full-name of "March" typo.
7995
7996 2004-07-16  Anil Paranjpe  <anilp1@kpitcummins.com>
7997
7998         * configure.host (h8300*-*-*): Default long long printing support.
7999
8000 2004-07-16  Jeff Johnston  <jjohnstn@redhat.com>
8001
8002         * libc/stdio/fvwrite.c (_sfvwrite):  For asprintf family
8003         calls, if realloc fails, free up buffer as it is no longer
8004         used.
8005
8006 2004-07-07  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
8007
8008         * libc/iconv/iconv.tex: Updated to represent recent changes.
8009         * libc/iconv/lib/iconv.c: Documentation updated.
8010
8011 2004-07-07  Nick Clifton  <nickc@redhat.com>
8012
8013         * configure.host (newlib_cflags): Define PREFER_SIZE_OVER_SPEED
8014         for xStormy16.
8015
8016 2004-07-06  Chris Demetriou  <cgd@broadcom.com>
8017
8018         * configure.host (mips*-*-elf*): Default long long printing
8019         support.
8020
8021 2004-07-05  Jeff Johnston  <jjohnstn@redhat.com>
8022
8023         * libc/Makefile.am (libc.dvi): Add target and specify
8024         same dependencies as libc.info.
8025         * libc/Makefile.in: Regenerated.
8026         * libm/Makefile.am (libm.dvi): Add target and specify
8027         same dependencies as libm.info.
8028         * libm/Makefile.in: Regenerated.
8029
8030 2004-06-29  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
8031
8032         * acinclude.m4: Move --enable-newlib-iconv option back here.
8033         * configure.in: Remove --enable-newlib-iconv option.  Don't
8034         tie iconv support to --enable-newlib-mb.
8035         * aclocal.m4: Regenerated.
8036         * configure: Ditto.
8037         * doc/aclocal.m4, doc/configure: Ditto.
8038         * iconvdata/aclocal.m4, iconvdata/configure: Ditto.
8039         * libm/*/aclocal.m4: Ditto.
8040         * libm/*/configure: Ditto.
8041         * libc/*/aclocal.m4: Ditto.
8042         * libc/*/configure: Ditto.
8043
8044 2004-06-25  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
8045
8046         * acinclude.m4: Move iconv options into configure.in.
8047         * aclocal.m4: Regenerated.
8048         * configure: Ditto.
8049         * configure.in: Add iconv options.
8050         * newlib.hin: Add new iconv encodings and remove deleted ones.
8051         * doc/aclocal.m4: Regenerated.
8052         * doc/configure: Ditto.
8053         * iconvdata/aclocal.m4: Ditto.
8054         * iconvdata/configure: Ditto.
8055         * libc/iconv: Design change.  New size-optimized ccs format.
8056         * libc/iconv/AUTHORS: Removed.
8057         * libc/iconv/COPYING: Ditto.
8058         * libc/iconv/README.ORIGINAL: Ditto.
8059         * libc/iconv/README.TODO: Ditto.
8060         * libc/iconv/charset.aliases: Ditto.
8061         * libc/iconv/encoding.aliases: New file.
8062         * libc/iconv/Makefile.am: Updated.
8063         * libc/iconv/Makefile.in: Regenerated.
8064         * libc/iconv/iconv.tex: Updated.
8065         * libc/iconv/ccs/Makefile.am: Ditto.
8066         * libc/iconv/ccs/Makefile.in: Regenerated.
8067         * libc/iconv/ccs/big5.c: Updated.
8068         * libc/iconv/ccs/cns11643_plane1.c: Ditto.
8069         * libc/iconv/ccs/cns11643_plane14.c: Ditto.
8070         * libc/iconv/ccs/cns11643_plane2.c: Ditto.
8071         * libc/iconv/ccs/cp775.c: Ditto.
8072         * libc/iconv/ccs/cp850.c: Ditto.
8073         * libc/iconv/ccs/cp852.c: Ditto.
8074         * libc/iconv/ccs/cp855.c: Ditto.
8075         * libc/iconv/ccs/cp866.c: Ditto.
8076         * libc/iconv/ccs/iso_8859_1.c: Ditto.
8077         * libc/iconv/ccs/README.CCS.SOURCES: Removed.
8078         * libc/iconv/ccs/gb_2312_80.c: Ditto.
8079         * libc/iconv/ccs/iconv_mktbl: Ditto.
8080         * libc/iconv/ccs/jis_x0201.c: Ditto.
8081         * libc/iconv/ccs/jis_x0208_1983.c: Ditto.
8082         * libc/iconv/ccs/shift_jis.c: Ditto.
8083         * libc/iconv/ccs/us_ascii.c: Ditto.
8084         * libc/iconv/ccs/ccs.h: New file.
8085         * libc/iconv/ccs/ccsbi.c: Ditto.
8086         * libc/iconv/ccs/ccsbi.h: Ditto.
8087         * libc/iconv/ccs/ccsnames.h: Ditto.
8088         * libc/iconv/ccs/iso_8859_10.c: Ditto.
8089         * libc/iconv/ccs/iso_8859_11.c: Ditto.
8090         * libc/iconv/ccs/iso_8859_13.c: Ditto.
8091         * libc/iconv/ccs/iso_8859_14.c: Ditto.
8092         * libc/iconv/ccs/iso_8859_3.c: Ditto.
8093         * libc/iconv/ccs/iso_8859_6.c: Ditto.
8094         * libc/iconv/ccs/iso_8859_7.c: Ditto.
8095         * libc/iconv/ccs/iso_8859_8.c: Ditto.
8096         * libc/iconv/ccs/iso_8859_9.c: Ditto.
8097         * libc/iconv/ccs/iso_ir_111.c: Ditto.
8098         * libc/iconv/ccs/jis_x0201_1976.c: Ditto.
8099         * libc/iconv/ccs/jis_x0208_1990.c: Ditto.
8100         * libc/iconv/ccs/koi8_ru.c: Ditto.
8101         * libc/iconv/ccs/koi8_uni.c: Ditto.
8102         * libc/iconv/ccs/mktbl.pl: Ditto.
8103         * libc/iconv/ccs/win_1250.c: Ditto.
8104         * libc/iconv/ccs/win_1251.c: Ditto.
8105         * libc/iconv/ccs/win_1252.c: Ditto.
8106         * libc/iconv/ccs/win_1253.c: Ditto.
8107         * libc/iconv/ccs/win_1254.c: Ditto.
8108         * libc/iconv/ccs/win_1255.c: Ditto.
8109         * libc/iconv/ccs/win_1256.c: Ditto.
8110         * libc/iconv/ccs/win_1257.c: Ditto.
8111         * libc/iconv/ccs/win_1258.c: Ditto.
8112         * libc/iconv/ccs/iso_8859_15.c: Updated.
8113         * libc/iconv/ccs/iso_8859_2.c: Ditto.
8114         * libc/iconv/ccs/iso_8859_4.c: Ditto.
8115         * libc/iconv/ccs/iso_8859_5.c: Ditto.
8116         * libc/iconv/ccs/jis_x0212_1990.c: Ditto.
8117         * libc/iconv/ccs/koi8_r.c: Ditto.
8118         * libc/iconv/ccs/koi8_u.c: Ditto.
8119         * libc/iconv/ccs/ksx1001.c: Ditto.
8120         * libc/iconv/ccs/binary/gb_2312_80.cct: Removed.
8121         * libc/iconv/ccs/binary/jis_x0201.cct: Ditto.
8122         * libc/iconv/ccs/binary/shift_jis.cct: Ditto.
8123         * libc/iconv/ccs/binary/us_ascii.cct: Ditto.
8124         * libc/iconv/ccs/binary/jis_x0208_1983.cct: Ditto.
8125         * libc/iconv/ccs/binary/Makefile.am: Updated.
8126         * libc/iconv/ccs/binary/Makefile.in: Regenerated.
8127         * libc/iconv/ccs/binary/big5.cct: Updated.
8128         * libc/iconv/ccs/binary/cns11643_plane1.cct: Ditto.
8129         * libc/iconv/ccs/binary/cns11643_plane14.cct: Ditto.
8130         * libc/iconv/ccs/binary/cns11643_plane2.cct: Ditto.
8131         * libc/iconv/ccs/binary/cp775.cct: Updated.: Ditto.
8132         * libc/iconv/ccs/binary/cp850.cct: Ditto.: Ditto.
8133         * libc/iconv/ccs/binary/cp852.cct: Ditto.: Ditto.
8134         * libc/iconv/ccs/binary/cp855.cct: Ditto.: Ditto.
8135         * libc/iconv/ccs/binary/cp866.cct: Ditto.: Ditto.
8136         * libc/iconv/ccs/binary/iso_8859_1.cct: Ditto.
8137         * libc/iconv/ccs/binary/iso_8859_15.cct: Ditto.
8138         * libc/iconv/ccs/binary/iso_8859_4.cct: Ditto.
8139         * libc/iconv/ccs/binary/iso_8859_5.cct: Ditto.
8140         * libc/iconv/ccs/binary/iso_8859_2.cct: Ditto.
8141         * libc/iconv/ccs/binary/jis_x0212_1990.cct: Ditto.
8142         * libc/iconv/ccs/binary/koi8_r.cct: Ditto.
8143         * libc/iconv/ccs/binary/koi8_u.cct: Ditto.
8144         * libc/iconv/ccs/binary/ksx1001.cct: Ditto.
8145         * libc/iconv/ccs/binary/iso_8859_10.cct: New file.
8146         * libc/iconv/ccs/binary/iso_8859_11.cct: Ditto.
8147         * libc/iconv/ccs/binary/iso_8859_13.cct: Ditto.
8148         * libc/iconv/ccs/binary/iso_8859_14.cct: Ditto.
8149         * libc/iconv/ccs/binary/iso_8859_3.cct: Ditto.
8150         * libc/iconv/ccs/binary/iso_8859_6.cct: Ditto.
8151         * libc/iconv/ccs/binary/iso_8859_7.cct: Ditto.
8152         * libc/iconv/ccs/binary/iso_8859_8.cct: Ditto.
8153         * libc/iconv/ccs/binary/iso_8859_9.cct: Ditto.
8154         * libc/iconv/ccs/binary/iso_ir_111.cct: Ditto.
8155         * libc/iconv/ccs/binary/jis_x0201_1976.cct: Ditto.
8156         * libc/iconv/ccs/binary/jis_x0208_1990.cct: Ditto.
8157         * libc/iconv/ccs/binary/koi8_ru.cct: Ditto.
8158         * libc/iconv/ccs/binary/koi8_uni.cct: Ditto.
8159         * libc/iconv/ccs/binary/win_1250.cct: Ditto.
8160         * libc/iconv/ccs/binary/win_1251.cct: Ditto.
8161         * libc/iconv/ccs/binary/win_1252.cct: Ditto.
8162         * libc/iconv/ccs/binary/win_1253.cct: Ditto.
8163         * libc/iconv/ccs/binary/win_1254.cct: Ditto.
8164         * libc/iconv/ccs/binary/win_1255.cct: Ditto.
8165         * libc/iconv/ccs/binary/win_1256.cct: Ditto.
8166         * libc/iconv/ccs/binary/win_1257.cct: Ditto.
8167         * libc/iconv/ccs/binary/win_1258.cct: Ditto.
8168         * libc/iconv/ces/Makefile.am: Updated.
8169         * libc/iconv/ces/Makefile.in: Regenerated.
8170         * libc/iconv/ces/ucs-2-internal.c: Updated.
8171         * libc/iconv/ces/ucs-4-internal.c: Ditto.
8172         * libc/iconv/ces/utf-16.c: Ditto.
8173         * libc/iconv/ces/utf-8.c: Ditto.
8174         * libc/iconv/ces/cesbi.c: New file.
8175         * libc/iconv/ces/cesbi.h: Ditto.
8176         * libc/iconv/ces/cesdeps.h: Ditto.
8177         * libc/iconv/ces/euc.c: Ditto.
8178         * libc/iconv/ces/mkdeps.pl: Ditto.
8179         * libc/iconv/ces/table-pcs.c: Ditto.
8180         * libc/iconv/ces/table.c: Ditto.
8181         * libc/iconv/ces/ucs-2.c: Ditto.
8182         * libc/iconv/ces/ucs-4.c: Ditto.
8183         * libc/iconv/ces/us-ascii.c: Ditto.
8184         * libc/iconv/ces/euc-jp.c: Removed.
8185         * libc/iconv/ces/euc-kr.c: Ditto.
8186         * libc/iconv/ces/euc-tw.c: Ditto.
8187         * libc/iconv/ces/gb2312.c: Ditto.
8188         * libc/iconv/ces/iso-10646-ucs-2.: Ditto.c
8189         * libc/iconv/ces/iso-10646-ucs-4.c: Ditto.
8190         * libc/iconv/lib/Makefile.am: Updated.
8191         * libc/iconv/lib/Makefile.in: Regenerated.
8192         * libc/iconv/lib/endian.h: Updated.
8193         * libc/iconv/lib/iconv.c: Ditto.
8194         * libc/iconv/lib/local.h: Ditto.
8195         * libc/iconv/lib/aliases.c: Removed.
8196         * libc/iconv/lib/bialiasesi.c: Ditto.
8197         * libc/iconv/lib/biccs.c: Ditto.
8198         * libc/iconv/lib/bices.c: Ditto.
8199         * libc/iconv/lib/ccs.c: Ditto.
8200         * libc/iconv/lib/ces.c: Ditto.
8201         * libc/iconv/lib/ces_euc.c: Ditto.
8202         * libc/iconv/lib/ces_iso2022.c: Ditto.
8203         * libc/iconv/lib/ces_table.c: Ditto.
8204         * libc/iconv/lib/converter.c: Ditto.
8205         * libc/iconv/lib/deps.h: Ditto.
8206         * libc/iconv/lib/loaddata.c: Ditto.
8207         * libc/iconv/lib/aliasesbi.c: New file.
8208         * libc/iconv/lib/aliasesi.c: Ditto.
8209         * libc/iconv/lib/conv.h: Ditto.
8210         * libc/iconv/lib/encnames.h: Ditto.
8211         * libc/iconv/lib/encoding.deps: Ditto.
8212         * libc/iconv/lib/iconvnls.c: Ditto.
8213         * libc/iconv/lib/iconvnls.h: Ditto.
8214         * libc/iconv/lib/nullconv.c: Ditto.
8215         * libc/iconv/lib/ucsconv.c: Ditto.
8216         * libc/iconv/lib/ucsconv.h: Ditto.
8217         * libc/include/iconv.h: Update copyright.
8218         * libc/*/aclocal.m4: Regenerated.
8219         * libc/*/configure: Ditto.
8220         * libm/*/aclocal.m4: Ditto.
8221         * libm/*/configure: Ditto.
8222
8223 2004-06-22  Alexandre Oliva  <aoliva@redhat.com>
8224
8225         * libc/include/machine/setjmp.h [__H8300__] (_JBTYPE): Define,
8226         instead of typedefing jmp_buf.
8227
8228         2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
8229         * libc/machine/h8300/Makefile.am (lib_a_SOURCES): Add h8sx_strcpy.S.
8230         * libc/machine/h8300/defines.h (LEN): New macro.
8231         * libc/machine/h8300/memcpy.S: Add h8sx version.
8232         * libc/machine/h8300/memset.S: Likewise.
8233         * libc/machine/h8300/strcmp.S: Likewise.
8234         * libc/machine/h8300/setjmp.S: Use h8sx move instructions.
8235         * libc/machine/h8300/h8sx_strcpy.S: New file.
8236         2003-06-30  Richard Sandiford  <rsandifo@redhat.com>
8237         * libc/include/machine/ieeefp.h: Extend __H8300S__ handling to
8238         __H8300SX__.
8239         * libc/include/machine/setjmp.h: Likewise.
8240         * libc/include/sys/config.h: Likewise.
8241         * libc/machine/h8300/defines.h: Likewise.
8242         * libc/machine/h8300/setjmp.S: Likewise.
8243         * libc/machine/h8300/strcmp.S: Likewise.
8244         * libc/sys/h8300hms/close.S: Likewise.
8245         * libc/sys/h8300hms/fstat.S: Likewise.
8246         * libc/sys/h8300hms/lseek.S: Likewise.
8247         * libc/sys/h8300hms/read.S: Likewise.
8248         * libc/sys/h8300hms/write.S: Likewise.
8249         * libc/sys/h8300hms/crt0.S: Likewise.
8250         * libc/machine/h8300/setarch.h: Use .h8300sx or .h8300sxn if
8251         __H8300SX__ is defined.
8252         * libc/sys/h8300hms/setarch.h: Likewise.
8253
8254 2004-06-17  Jeff Johnston  <jjohnstn@redhat.com>
8255
8256         * libc/include/sys/reent.h (_GLOBAL_REENT): Back
8257         out change which set _GLOBAL_REENT to _global_impure_ptr until
8258         we understand why Cygwin breaks because of it.
8259
8260 2004-06-14  Jeff Johnston  <jjohnstn@redhat.com>
8261
8262         * libc/sys/linux/machine/i386/syscall.h: For now, set up
8263         __syscall_return macro for systems with vsyscall.
8264
8265 2004-06-11  Antony King  <antony.king@st.com>
8266
8267         * libc/include/sys/_types.h: Include <sys/lock.h> and change
8268         _flock_t to be of type _LOCK_RECURSIVE_T.
8269         * libc/include/sys/reent.h: (_REENT_INIT): Reformat.
8270         (_REENT_INIT_PTR): Ditto.  Use memset where appropriate.
8271         (_global_impure_ptr): New declaration.
8272         (_GLOBAL_REENT): Change to be _global_impure_ptr.
8273         * libc/include/sys/stdio.h: Include <sys/lock.h> and
8274         <sys/reent.h>.
8275         (_flockfile)[!_SINGLE_THREAD]: Add code for lock call.
8276         (_funlockfile)[!SINGLE_THREAD]: Ditto.
8277         * libc/reent/impure.c: Set _global_impure_ptr to _impure_ptr.
8278         * libc/stdio/fclose.c: Remove casting of fp lock to
8279         _LOCK_RECURSIVE_T.
8280         * libc/stdio/findfp.c: Ditto.
8281         * libc/stdio/fopen.c: Ditto.
8282         * libc/stdio/freopen.c: Ditto.
8283         * libc/stdio/vfprintf.c: Ditto.
8284         * libc/stdio64/fopen64.c: Ditto.
8285         * libc/stdlib/envlock.c: Add default stubs that use generic
8286         locking code.
8287         * libc/stdlib/mlock.c: Ditto.
8288
8289         Jeff Johnston  <jjohnstn@redhat.com>
8290         * libc/sys/linux/sys/_types.h (__flock_mutex_t): New subtype.
8291         (_flock_t): Change to be a struct containing a single member
8292         named mutex which is of type __flock_mutex_t.
8293
8294 2004-06-09  Jeff Johnston  <jjohnstn@redhat.com>
8295
8296         * libc/sys/linux/Makefile.am: Change siglist.inc to be generated
8297         from /usr/include/asm/signal.h instead of kernel sources.  Also
8298         default max to 32 if not found in header file.
8299         * libc/sys/linux/Makefile.in: Regenerated.
8300         * libc/sys/linux/machine/i386/socketcall.h: Fix for Fedora Core 2
8301         systems where __syscall_return is not defined.
8302         * libc/sys/linux/machine/i386/syscall.h: Change for Fedora Core 2
8303         systems to use syscall() function instead of assembler interrupt.
8304
8305 2004-06-09  Toralf Lund  <toralf@procaptura.com>
8306
8307         * libc/sys/arm/setjmp.S, libc/sys/arm/access.c: Move
8308         files from libc/sys/arm to libc/machine/arm.
8309         * libc/machine/arm/Makefile.am, libc/machine/arm/Makefile.in: Add
8310         library build support for files moved from libc/sys/arm.
8311         * libc/sys/arm/Makefile.am, libc/sys/arm/Makefile.in:  Remove
8312         references to access and setjmp.
8313         * configure.host: Add checks for newlib_may_supply_syscalls to
8314         determine whether or not to use sys/arm directory and use
8315         special compiler flags: ARM_RDI_MONITOR and ARM_RDP_MONITOR.
8316
8317 2004-06-02  Jeff Johnston  <jjohnstn@redhat.com>
8318
8319         * libc/stdio/vfscanf.c (__svfscanf_r): For CT_INT conversions,
8320         reset digit flags appropriately after we have discovered "0x".
8321         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
8322
8323 2004-05-27  Jeff Johnston  <jjohnstn@redhat.com>
8324
8325         * libc/stdio/vfprintf.c (_VFPRINTF): Move file locking
8326         from here ...
8327         (_VFPRINTF_R): ... to here so all I/O printf routines
8328         are covered.
8329
8330 2004-05-26  Jeff Johnston  <jjohnstn@redhat.com>
8331
8332         * libc/search/hash_buf.c: Protect MAX and MIN macros from
8333         redefinition.
8334         * libc/search/hash.c: Ditto.
8335
8336 2004-05-25  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8337
8338         * newlib.hin: (_WANT_IO_POS_ARGS): New define.
8339         (_WANT_IO_LONG_LONG): Ditto.
8340         (_WANT_IO_LONG_DOUBLE): Ditto.
8341         * configure.in: Add new configuration options
8342         --enable-newlib-io-long-long and --enable-newlib-io-long-double
8343         which tie to new defines in newlib.hin.
8344         * configure: Regenerated.
8345         * configure.host: Add checks for new configuration options.  Also
8346         fix up check for --enable-newlib-io-pos-args so configuration
8347         option will override any default for a given platform.
8348         Remove defining compiler flags for the _WANT_IO* options.
8349         * libc/stdio/vfprintf.c: Change to use new newlib.hin defines
8350         instead of looking for old compiler flags.
8351         * libc/stdio/vfscanf.c: Ditto.
8352         * libc/stdio/vfieeefp.h: Ditto.
8353         * libc/machine/powerpc/vfprintf.c: Ditto.
8354         * libc/machine/powerpc/vfscanf.c: Ditto.
8355
8356 2004-05-25  Jeff Johnston  <jjohnstn@redhat.com>
8357
8358         * testsuite/include/check.h: Add include of <stdio.h>.
8359
8360 2004-05-17  Corinna Vinschen  <corinna@vinschen.de>
8361
8362         * libc/include/grp.h: Declare getgrnam_r and getgrgid_r also on Cygwin.
8363
8364 2004-05-11  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8365
8366         * libc/stdio/vfprintf.c (VFPRINTF_R): Use _free_r instead
8367         of free.
8368
8369 2004-05-07  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8370
8371         * libc/stdio/iprintf.c (_iprintf_r): Fix old-style argument
8372         list for reentrant pointer.  Call _vfiprintf_r.
8373         * libc/stdio/siprintf.c (_siprintf_r): New function.
8374         * libc/stdio/vfprintf.c (__sbprintf): Add reetrant struct
8375         pointer argument.  Change all callers.  Call _VFPRINTF_R.
8376         * libc/include/stdio.h (_siprintf_r, _vfiprintf_r): New
8377         prototypes.
8378
8379 2004-05-07  Jeff Johnston  <jjohnstn@redhat.com>
8380
8381         * libc/include/sys/param.h: Remove endian info and include
8382         <machine/endian.h> instead.
8383         * libc/include/machine/endian.h: New file.
8384         * libc/include/machine/param.h: Ditto.
8385         * libc/machine/arm/machine/endian.h: Ditto.
8386         * libc/machine/arm/machine/param.h: Ditto.
8387         * libc/sys/arm/sys/param.h: Removed.
8388         * libc/sys/sysvi386/sys/param.h: Ditto.
8389         * libc/sys/rtems/sys/param.h: Modified to include <machine/endian.h>.
8390
8391 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8392
8393         * libc/stdio/vfprintf.c (_VFPRINTF_R): Set error flag when
8394         multibyte functions return failure for %C, %S, %lc, and %ls
8395         format specifiers.
8396
8397 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8398
8399         * testsuite/include/check.h (CHECK): Add flush of stdout.
8400
8401 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8402
8403         * libc/include/stdio.h (_ungetc_r): New prototype.
8404         * libc/stdio/ungetc.c (_ungetc_r): New reentrant function.
8405         (__submore): Add reentrant struct pointer argument.
8406         (ungetc): Change to call _ungetc_r.
8407
8408 2004-04-28  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8409
8410         * libc/stdio/local.h (_fwalk_reent): Specify prototype of
8411         function pointer argument.
8412         * libc/stdio/fwalk.c (_fwalk, _fwalk_reent): Change prototypes
8413         to specify function pointer arguments.
8414         (__fwalk, __fwalk_reent): Ditto.
8415
8416 2004-04-26  Aldy Hernandez  <aldyh@redhat.com>
8417
8418         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Fix typo in
8419         CT_INT case.
8420
8421 2004-04-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8422
8423         * configure.in: Define _MB_CAPABLE if mb supported.
8424         * configure: Regenerated.
8425         * configure.host: Remove manual setting of MB_CAPABLE compiler
8426         flag.
8427         * newlib.hin: Add _MB_CAPABLE flag.
8428         * libc/ctype/iswalpha.c, libc/ctype/iswblank.c: Include <newlib.h>
8429         and check for _MB_CAPABLE flag instead of MB_CAPABLE.
8430         * libc/ctype/iswcntrl.c, libc/ctype/iswprint.c: Ditto.
8431         * libc/ctype/iswpunct.c, libc/ctype/iswspace.c: Ditto.
8432         * libc/ctype/jp2uc.c: Ditto.
8433         * libc/ctype/towlower.c, libc/ctype/towupper.c: Ditto.
8434         * libc/locale/locale.c: Ditto
8435         * libc/machine/powerpc/vfscanf.c: Ditto
8436         * libc/stdio/vfprintf.c, libc/stdio/vfscanf.c: Ditto
8437         * libc/stdlib/mblen.c: Ditto
8438         * libc/stdlib/mblen_r.c, libc/stdlib/mbrlen.c: Ditto
8439         * libc/stdlib/mbrtowc.c, libc/stdlib/mbsrtowcs.c: Ditto
8440         * libc/stdlib/mbstowcs.c, libc/stdlib/mbtowc.c: Ditto
8441         * libc/stdlib/mbtowc_r.c, libc/stdlib/wcrtomb.c: Ditto
8442         * libc/stdlib/wcsrtombs.c, libc/stdlib/wcstombs.c: Ditto
8443         * libc/stdlib/wctomb.c, libc/sys/linux/intl/dcigettext.c: Ditto
8444         * libc/sys/linux/intl/explodename.c: Ditto
8445         * libc/sys/linux/intl/finddomain.c: Ditto
8446         * libc/sys/linux/intl/l10nflist.c: Ditto
8447         * libc/sys/linux/intl/loadmsgcat.c: Ditto
8448         * libc/sys/linux/intl/localealias.c: Ditto
8449
8450 2004-04-23  Jeff Johnston  <jjohnstn@redhat.com>
8451
8452         * libc/machine/powerpc/vfscanf.c (NNZDIGITS): New define.
8453         (__svfscanf_r): In integer conversions, leave out leading zeroes
8454         which are not part of a base prefix.
8455         Keep track of width truncation to fit into buf, not counting left-out
8456         zeroes against width till the truncation has been compensated for.
8457         This is based on Joern's patch of 04/21 for libc/stdio/vfscanf.c.
8458
8459 2004-04-23  Jeff Johnston  <jjohnstn@redhat.com>
8460
8461         * libc/include/stdio.h: (_ftell_r, _fseek_r): New prototypes.
8462
8463 2004-04-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8464
8465         * libc/stdio/asprintf.c libc/stdio/clearerr.c,
8466         libc/stdio/fclose.c libc/stdio/fcloseall.c libc/stdio/fdopen.c,
8467         libc/stdio/feof.c libc/stdio/ferror.c libc/stdio/fflush.c,
8468         libc/stdio/fgetc.c libc/stdio/fgetpos.c libc/stdio/fgets.c,
8469         libc/stdio/fileno.c libc/stdio/findfp.c libc/stdio/fiprintf.c,
8470         libc/stdio/flags.c libc/stdio/fopen.c libc/stdio/fprintf.c,
8471         libc/stdio/fputc.c libc/stdio/fputs.c libc/stdio/fread.c,
8472         libc/stdio/freopen.c libc/stdio/fscanf.c libc/stdio/fseek.c,
8473         libc/stdio/fseeko.c libc/stdio/fsetpos.c libc/stdio/ftell.c,
8474         libc/stdio/ftello.c libc/stdio/fvwrite.c libc/stdio/fwalk.c,
8475         libc/stdio/fwrite.c libc/stdio/getc.c libc/stdio/getc_u.c,
8476         libc/stdio/getchar.c libc/stdio/getchar_u.c,
8477         libc/stdio/getdelim.c libc/stdio/getline.c libc/stdio/gets.c,
8478         libc/stdio/getw.c libc/stdio/iprintf.c libc/stdio/local.h,
8479         libc/stdio/makebuf.c libc/stdio/mktemp.c libc/stdio/perror.c,
8480         libc/stdio/printf.c libc/stdio/putc.c libc/stdio/putc_u.c,
8481         libc/stdio/putchar.c libc/stdio/putchar_u.c libc/stdio/puts.c,
8482         libc/stdio/putw.c libc/stdio/refill.c libc/stdio/remove.c,
8483         libc/stdio/rename.c libc/stdio/rewind.c libc/stdio/rget.c,
8484         libc/stdio/scanf.c libc/stdio/setbuf.c libc/stdio/setbuffer.c,
8485         libc/stdio/setlinebuf.c libc/stdio/setvbuf.c,
8486         libc/stdio/siprintf.c libc/stdio/snprintf.c,
8487         libc/stdio/sprintf.c libc/stdio/sscanf.c libc/stdio/stdio.c,
8488         libc/stdio/tmpfile.c libc/stdio/tmpnam.c libc/stdio/ungetc.c,
8489         libc/stdio/vasprintf.c libc/stdio/vfieeefp.h,
8490         libc/stdio/vfprintf.c libc/stdio/vfscanf.c,
8491         libc/stdio/vprintf.c libc/stdio/vscanf.c,
8492         libc/stdio/vsnprintf.c libc/stdio/vsprintf.c,
8493         libc/stdio/vsscanf.c libc/stdio/wbuf.c,
8494         libc/stdio/wsetup.c: Perform minor formatting changes.  Move
8495         copyright notices to top of file, ensure that <_ansi.h> is
8496         included, be consistent with open parentheses, use _DEFUN macro,
8497         include "local.h" where needed, and remove various compiler
8498         warnings.
8499
8500 2004-04-21  J"orn Rennecke <joern.rennecke@superh.com>
8501
8502         * libc/stdio/vfscanf.c (NNZDIGITS): New define.
8503         (__svfscanf_r): In integer conversions, leave out leading zeroes
8504         which are not part of a base prefix.
8505         Keep track of width truncation to fit into buf, not counting left-out
8506         zeroes against width till the truncation has been compensated for.
8507
8508 2004-04-20  Corinna Vinschen  <corinna@vinschen.de>
8509
8510         * libc/include/sys/unistd.h (ttyname_r): Add missing comma.
8511
8512 2004-04-20  Corinna Vinschen  <corinna@vinschen.de>
8513
8514         * libc/include/sys/unistd.h (ttyname_r): Add declaration for Cygwin.
8515
8516 2004-04-10  Corinna Vinschen  <corinna@vinschen.de>
8517
8518         * libc/include/sys/unistd.h (sync): Define void on Cygwin according
8519         to SUSv3.
8520
8521 2004-04-08  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8522
8523         * libc/stdio/fclose.c (_fclose_r): New function.
8524         * libc/stdio/freopen.c (_freopen_r): Call _fclose_r.
8525         * libc/stdio/fcloseall.c (_fcloseall_r): Call _fwalk_reent.
8526         * libc/stdio64/freopen64.c (_freopen64_r): Use _fclose_r.
8527         * libc/include/stdio.h (_fclose_r): New prototype.
8528         * libc/stdio/fopen.c: Fix typo in comment.
8529
8530 2004-04-08  Jeff Johnston  <jjohnstn@redhat.com>
8531
8532         * libc/stdio/fwalk.c (_fwalk_reent): New version of _fwalk
8533         to handle _r reentrant functions.
8534
8535 2004-04-08  Eric Christopher  <echristo@redhat.com>
8536
8537         * libc/include/machine/setjmp.h: Fix endif locations.
8538
8539 2004-04-01  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8540
8541         * libc/time/strptime.c: Add standard includes to avoid
8542         warning messages at compilation time.
8543
8544 2004-04-01  Jeff Johnston  <jjohnstn@redhat.com>
8545
8546         * libc/stdio/vfscanf.c (__svfscanf_r): Add locking/unlocking
8547         of file.
8548
8549 2004-03-30  Jeff Johnston  <jjohnstn@redhat.com>
8550
8551         * libc/machine/h8300/Makefile.am: Reformat slightly.
8552         * libc/machine/h8300/Makefile.in: Regenerate.
8553
8554 2004-03-30  Thomas Pfaff  <tpfaff@gmx.net>
8555
8556         * libc/stdio/findfp.c (__fp_lock_all): Add call to
8557         __sfp_lock_acquire.
8558         (__fp_unlock_all): Add call to __sfp_lock_release.
8559
8560 2004-03-25  Thomas Pfaff  <tpfaff@gmx.net>
8561
8562         * libc/stdio/fclose.c (fclose): Protect file pointer list when
8563         releasing a file.
8564          * libc/stdio/fcloseall.c (_fcloseall_r): Close all files via
8565         fwalk.
8566         * libc/stdio/fdopen.c (_fdopen_r): Add calls to
8567         _flockfile/_funlockfile.
8568         * libc/stdio/findfp.c: Move __sfp_lock. Change __sfp_lock type
8569         to recursive.
8570         Change __lock_acquire/__lock_release calls for __sfp_lock to
8571         __sfp_lock_acquire/__sfp_lock_release throughout.
8572         (std): Make sure that file lock is only initialized once.
8573         (__sfp): Move _file initialization. Initialize file lock.
8574         (__sfp_lock_acquire): New function.
8575         (__sfp_lock_release): Ditto.
8576         (__fp_lock_all): Remove __sfp_lock_acquire call.
8577         (__fp_unlock_all): Remove __sfp_lock_release call.
8578         * libc/stdio/fopen.c (_fopen_r): Protect file pointer list.
8579         Add calls to _flockfile/_funlockfile. Remove
8580         __lock_init_recursive call.
8581         * libc/stdio/freopen.c (_freopen_r): Protect file pointer list.
8582         * libc/stdio/fwalk.c (__fwalk): New static function.
8583         (_fwalk): Protect file pointer list. Use __fwalk to walk through
8584         file pointers.
8585         * libc/stdio/local.h: Add defines for
8586         __sfp_lock_acquire/__sfp_lock_release when
8587         single threaded. Add function prototypes otherwise.
8588         * libc/stdio64/fdopen64.c (_fdopen64_r): Add calls to
8589         _flockfile/_funlockfile.
8590         * libc/stdio/fopen64.c (_fopen64_r): Protect file pointer list.
8591         Add calls to _flockfile/_funlockfile. Remove
8592          __lock_init_recursive call.
8593         * libc/stdio/freopen64.c (_freopen64_r): Protect file pointer
8594         list.
8595
8596 2004-03-25  Jeff Johnston  <jjohnstn@redhat.com>
8597
8598         * libc/sys/linux/sys/lock.h: Turn on __USE_GNU flag if not already
8599         defined.  Change __LOCK_RECURSIVE_INIT to be __LOCK_INIT_RECURSIVE.
8600         * libc/sys/linux/dl/dl-support.c: Change __LOCK_RECURSIVE_INIT
8601         to be __LOCK_INIT_RECURSIVE.
8602
8603 2004-03-11  Kazu Hirata  <kazu@cs.umass.edu>
8604
8605         * libc/sys/h8300hms/Makefile.am (lib_a_SOURCES): Replace
8606         _exit.c with _exit.S.
8607         * libc/sys/h8300hms/Makefile.in: Regenerate.
8608         * libc/sys/h8300hms/_exit.c: Remove.
8609         * libc/sys/h8300hms/_exit.S: New.
8610
8611 2004-03-09  Thomas Pfaff  <tpfaff@gmx.net>
8612
8613         * libc/stdio/findfp.c (__sfp): Rename lock to __sfp_lock.
8614         Change __sfp_lock to static global.
8615         (__fp_lock): New static function.
8616         (__fp_unlock): Ditto.
8617         (__fp_lock_all): New function.
8618         (__fp_unlock_all): Ditto.
8619
8620 2004-02-10  Christopher Faylor  <cgf@redhat.com>
8621
8622         * libm/mathfp/er_gamma.c (gamma): Add new non-reentrant function.
8623         * libm/mathfp/er_lgamma.c (lgamma): Ditto.
8624         * libm/mathfp/erf_gamma.c (gammaf): Ditto.
8625         * libm/mathfp/erf_lgamma.c (lgammaf): Ditto.
8626
8627 2004-02-09  Christopher Faylor  <cgf@redhat.com>
8628
8629         * libc/include/time.h (TIMER_RELTIME): New define.
8630
8631 2004-02-09  Jeff Johnston  <jjohnstn@redhat.com>
8632
8633         * libc/stdlib/Makefile.am: Add mallstatsr to LIBADD_OBJS.
8634         * libc/stdlib/Makefile.in: Regenerated.
8635
8636 2004-02-08  Christopher Faylor  <cgf@redhat.com>
8637
8638         * libc/include/sys/features.h: Add _POSIX_TIMERS define for __CYGWIN__.
8639         * libc/include/sys/reent.h (__getreent): Protect against possibly being
8640         defined.
8641         * libc/include/sys/unistd.h (fdatasync): Don't define for __CYGWIN__.
8642
8643 2004-02-05  Paul Brook  <paul@codesourcery.com>
8644
8645         * libc/include/machine/ieeefp.h[__arm__][__VFP_FP__]: Set
8646         IEEE_{BIG,LITTLE} based on __ARMEL__ flag.
8647
8648 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
8649
8650         * NEWS: Update with 1.12.0 info.
8651         * README: Ditto.
8652         * acinclude.m4: Change version number to 1.12.0.
8653         * aclocal.m4: Regenerated.
8654         * configure: Ditto.
8655         * doc/aclocal.m4: Ditto.
8656         * doc/configure: Ditto.
8657         * libc/*/aclocal.m4: Ditto.
8658         * libc/*/configure: Ditto.
8659         * libc/libc.texinfo: Ditto.
8660         * libm/*/aclocal.m4: Ditto.
8661         * libm/*/configure: Ditto.
8662         * libm/libm.texinfo: Ditto.
8663         * libc/sys/linux/shared.ld: Add VERS_1.12.
8664
8665 2004-02-02  Joel Sherrill  <joel@oarcorp.com>
8666
8667         * configure.host: Add support for tic4x.
8668         * libc/include/machine/ieeefp.h: Ditto.
8669         * libc/include/machine/setjmp.h: Ditto.
8670         * libc/machine/tic4x/Makefile.am: New file.
8671         * libc/machine/tic4x/configure.in: Ditto.
8672         * libc/machine/tic4x/setjmp.S: Ditto.
8673         * libc/machine/tic4x/aclocal.m4: Generated.
8674         * libc/machine/tic4x/configure: Ditto.
8675         * libc/machine/tic4x/Makefile.in: Ditto.
8676
8677 2004-01-30  Jeff Johnston  <jjohnstn@redhat.com>
8678
8679         * libc/stdio/fwalk.c (_fwalk.c): Don't traverse the
8680         file chain on the passed in reentrancy struct if it
8681         is _GLOBAL_REENT.
8682
8683 2004-01-30  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8684             Jeff Johnston  <jjohnstn@redhat.com>
8685
8686         * libc/iconv/iconv.tex: Updated with more information.
8687
8688 2004-01-30  Thomas Pfaff  <tpfaff@gmx.net>
8689             Jeff Johnston  <jjohnstn@redhat.com>
8690
8691         * libc/stdio/fwalk.c (_fwalk): Traverse the given reentrancy
8692         struct for std streams and traverse the global reeentrancy
8693         struct for all other streams.
8694
8695 2004-01-27  Jeff Johnston  <jjohnstn@redhat.com>
8696
8697         * libc/stdlib/atexit.c: Protect global atexit list with a
8698         lock when newlib is multithreaded.
8699
8700 2004-01-27  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8701
8702         * configure.in: Add support to generate iconv converter flags
8703         for newlib.h
8704         * newlib.hin: Add iconv converter flags.
8705         * configure: Regenerated.
8706         * libc/Makefile.in: Ditto.
8707         * libc/configure.in: Moved iconv converter parsing logic to
8708         top level newlib configure.in.
8709         * libc/configure: Regenerated.
8710         * libc/iconv/Makefile.in: Ditto.
8711         * libc/iconv/README.TODO
8712         * libc/iconv/charset.aliases: Remove wrong BE aliases for
8713         UCS2/UCS4/UTF8.
8714         * libc/iconv/ccs/Makefile.am: Remove C flag setting now that
8715         newlib.h can be used.
8716         * libc/iconv/ces/Makefile.am: Ditto.
8717         * libc/iconv/lib/Makefile.am: Ditto.
8718         * libc/iconv/ccs/Makefile.in: Regenerated.
8719         * libc/iconv/ces/Makefile.in: Ditto.
8720         * libc/iconv/lib/Makefile.in: Ditto.
8721         * libc/iconv/ccs/README.CCS.SOURCES: Updated.
8722         * libc/iconv/ccs/iconv_mktbl: Don't write junk strings to binaries.
8723         * libc/iconv/ccs/big5.c: Switch to use new underscored flags
8724         defined in newlib.h.
8725         * libc/iconv/ccs/cns11643_plane1.c: Ditto.
8726         * libc/iconv/ccs/cns11643_plane14.c: Ditto.
8727         * libc/iconv/ccs/cns11643_plane2.c: Ditto.
8728         * libc/iconv/ccs/cp775.c: Ditto.
8729         * libc/iconv/ccs/cp850.c: Ditto.
8730         * libc/iconv/ccs/cp852.c: Ditto.
8731         * libc/iconv/ccs/cp855.c: Ditto.
8732         * libc/iconv/ccs/cp866.c: Ditto.
8733         * libc/iconv/ccs/gb_2312_80.c: Ditto.
8734         * libc/iconv/ccs/iso_8859_1.c: Ditto.
8735         * libc/iconv/ccs/iso_8859_15.c: Ditto.
8736         * libc/iconv/ccs/iso_8859_2.c: Ditto.
8737         * libc/iconv/ccs/iso_8859_4.c: Ditto.
8738         * libc/iconv/ccs/iso_8859_5.c: Ditto.
8739         * libc/iconv/ccs/jis_x0201.c: Ditto.
8740         * libc/iconv/ccs/jis_x0208_1983.c: Ditto.
8741         * libc/iconv/ccs/jis_x0212_1990.c: Ditto.
8742         * libc/iconv/ccs/koi8_r.c: Ditto.
8743         * libc/iconv/ccs/koi8_u.c: Ditto.
8744         * libc/iconv/ccs/ksx1001.c: Ditto.
8745         * libc/iconv/ccs/shift_jis.c: Ditto.
8746         * libc/iconv/ccs/us_ascii.c: Ditto.
8747         * libc/iconv/ccs/binary/big5.cct: Newly generated.
8748         * libc/iconv/ccs/binary/cns11643_plane1.cct: Ditto.
8749         * libc/iconv/ccs/binary/cns11643_plane14.cct: Ditto.
8750         * libc/iconv/ccs/binary/cns11643_plane2.cct: Ditto.
8751         * libc/iconv/ccs/binary/cp775.cct: Ditto.
8752         * libc/iconv/ccs/binary/cp850.cct: Ditto.
8753         * libc/iconv/ccs/binary/cp852.cct: Ditto.
8754         * libc/iconv/ccs/binary/cp855.cct: Ditto.
8755         * libc/iconv/ccs/binary/cp866.cct: Ditto.
8756         * libc/iconv/ccs/binary/gb_2312_80.cct: Ditto.
8757         * libc/iconv/ccs/binary/iso_8859_1.cct: Ditto.
8758         * libc/iconv/ccs/binary/iso_8859_15.cct: Ditto.
8759         * libc/iconv/ccs/binary/iso_8859_2.cct: Ditto.
8760         * libc/iconv/ccs/binary/iso_8859_4.cct: Ditto.
8761         * libc/iconv/ccs/binary/iso_8859_5.cct: Ditto.
8762         * libc/iconv/ccs/binary/jis_x0201.cct: Ditto.
8763         * libc/iconv/ccs/binary/jis_x0208_1983.cct: Ditto.
8764         * libc/iconv/ccs/binary/jis_x0212_1990.cct: Ditto.
8765         * libc/iconv/ccs/binary/koi8_r.cct: Ditto.
8766         * libc/iconv/ccs/binary/koi8_u.cct: Ditto.
8767         * libc/iconv/ccs/binary/ksx1001.cct: Ditto.
8768         * libc/iconv/ccs/binary/shift_jis.cct: Ditto.
8769         * libc/iconv/ccs/binary/us_ascii.cct: Ditto.
8770         * libc/iconv/lib/bialiasesi.c: Sync with charset.aliases.
8771         * libc/iconv/ces/euc-jp.c: Use newlib.h macros.
8772         * libc/iconv/ces/euc-kr.c: Ditto.
8773         * libc/iconv/ces/euc-tw.c: Ditto.
8774         * libc/iconv/ces/gb2312.c: Ditto.
8775         * libc/iconv/ces/iso-10646-ucs-2.c: Ditto.
8776         * libc/iconv/ces/iso-10646-ucs-4.c: Ditto.
8777         * libc/iconv/ces/ucs-2-internal.c: Ditto.
8778         * libc/iconv/ces/ucs-4-internal.c: Ditto.
8779         * libc/iconv/ces/utf-16.c: Ditto.
8780         * libc/iconv/ces/utf-8.c: Ditto.
8781         * libc/iconv/lib/aliases.c: Ditto.
8782         * libc/iconv/lib/biccs.c: Ditto.
8783         * libc/iconv/lib/bices.c: Ditto.
8784         * libc/iconv/lib/ccs.c: Ditto.
8785         * libc/iconv/lib/ces.c: Ditto.
8786         * libc/iconv/lib/ces_euc.c: Ditto.
8787         * libc/iconv/lib/ces_iso2022.c: Ditto.
8788         * libc/iconv/lib/ces_table.c: Ditto.
8789         * libc/iconv/lib/converter.c: Ditto.
8790         * libc/iconv/lib/deps.h: Ditto.
8791         * libc/iconv/lib/endian.h: Ditto.
8792         * libc/iconv/lib/iconv.c: Ditto.
8793         * libc/iconv/lib/loaddata.c: Ditto.
8794         * libc/iconv/lib/local.h: Include newlib.h.
8795         * libc/argz/Makefile.in: Regenerated.
8796         * libc/ctype/Makefile.in: Ditto.
8797         * libc/errno/Makefile.in: Ditto.
8798         * libc/iconv/ccs/binary/Makefile.in: Ditto.
8799         * libc/locale/Makefile.in: Ditto.
8800         * libc/misc/Makefile.in: Ditto.
8801         * libc/posix/Makefile.in: Ditto.
8802         * libc/reent/Makefile.in: Ditto.
8803         * libc/search/Makefile.in: Ditto.
8804         * libc/signal/Makefile.in: Ditto.
8805         * libc/stdio/Makefile.in: Ditto.
8806         * libc/stdio64/Makefile.in: Ditto.
8807         * libc/stdlib/Makefile.in: Ditto.
8808         * libc/string/Makefile.in: Ditto.
8809         * libc/syscalls/Makefile.in: Ditto.
8810         * libc/time/Makefile.in: Ditto.
8811         * libc/unix/Makefile.in: Ditto.
8812         * testsuite/newlib.iconv/iconv.exp: New file.
8813         * testsuite/newlib.iconv/iconvjp.c: Ditto.
8814         * testsuite/newlib.iconv/iconvnm.c: Ditto.
8815         * testsuite/newlib.iconv/iconvru.c: Ditto.
8816
8817 2004-01-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8818
8819         * acinclude.m4 (--enable-newlib-iconv): New configuration option.
8820         (--enable-newlib-builtin-converters): Ditto.
8821         * configure.in: Add code to set _ICONV_ENABLED flag.
8822         Set _MB_LEN_MAX to 1 if not mb enabled.
8823         * configure: Regenerated.
8824         * aclocal.m4: Ditto.
8825         * Makefile.in: Ditto.
8826         * newlib.hin: Add _ICONV_ENABLED flag.
8827         * libc/Makefile.am: Add support for iconv.
8828         * libc/configure.in: Ditto.
8829         * libc/Makefile.in: Regenerated.
8830         * libc/aclocal.m4: Ditto.
8831         * libc/configure: Ditto.
8832         * libc/libc.texinfo: Add iconv documentation.
8833         * libc/iconv/AUTHORS, libc/iconv/COPYING, libc/iconv/Makefile.am,
8834         libc/iconv/Makefile.in, libc/iconv/README.ORIGINAL,
8835         libc/iconv/README.TODO, libc/iconv/charset.aliases,
8836         libc/iconv/iconv.tex, libc/iconv/ccs/Makefile.am,
8837         libc/iconv/ccs/Makefile.in, libc/iconv/ccs/README.CCS.SOURCES,
8838         libc/iconv/ccs/big5.c, libc/iconv/ccs/cns11643_plane1.c,
8839         libc/iconv/ccs/cns11643_plane14.c, libc/iconv/ccs/cns11643_plane2.c,
8840         libc/iconv/ccs/cp775.c, libc/iconv/ccs/cp850.c,
8841         libc/iconv/ccs/cp852.c, libc/iconv/ccs/cp855.c,
8842         libc/iconv/ccs/cp866.c, libc/iconv/ccs/gb_2312_80.c,
8843         libc/iconv/ccs/iconv_mktbl, libc/iconv/ccs/iso_8859_1.c,
8844         libc/iconv/ccs/iso_8859_15.c, libc/iconv/ccs/iso_8859_2.c,
8845         libc/iconv/ccs/iso_8859_4.c, libc/iconv/ccs/iso_8859_5.c,
8846         libc/iconv/ccs/jis_x0201.c, libc/iconv/ccs/jis_x0208_1983.c,
8847         libc/iconv/ccs/jis_x0212_1990.c, libc/iconv/ccs/koi8_r.c,
8848         libc/iconv/ccs/koi8_u.c, libc/iconv/ccs/ksx1001.c,
8849         libc/iconv/ccs/shift_jis.c, libc/iconv/ccs/us_ascii.c,
8850         libc/iconv/ccs/binary/Makefile.am, libc/iconv/ccs/binary/Makefile.in,
8851         libc/iconv/ccs/binary/big5.cct,
8852         libc/iconv/ccs/binary/cns11643_plane1.cct,
8853         libc/iconv/ccs/binary/cns11643_plane14.cct,
8854         libc/iconv/ccs/binary/cns11643_plane2.cct,
8855         libc/iconv/ccs/binary/cp775.cct, libc/iconv/ccs/binary/cp850.cct,
8856         libc/iconv/ccs/binary/cp852.cct, libc/iconv/ccs/binary/cp855.cct,
8857         libc/iconv/ccs/binary/cp866.cct, libc/iconv/ccs/binary/gb_2312_80.cct,
8858         libc/iconv/ccs/binary/iso_8859_1.cct,
8859         libc/iconv/ccs/binary/iso_8859_15.cct,
8860         libc/iconv/ccs/binary/iso_8859_2.cct,
8861         libc/iconv/ccs/binary/iso_8859_4.cct,
8862         libc/iconv/ccs/binary/iso_8859_5.cct,
8863         libc/iconv/ccs/binary/jis_x0201.cct,
8864         libc/iconv/ccs/binary/jis_x0208_1983.cct,
8865         libc/iconv/ccs/binary/jis_x0212_1990.cct,
8866         libc/iconv/ccs/binary/koi8_r.cct, libc/iconv/ccs/binary/koi8_u.cct,
8867         libc/iconv/ccs/binary/ksx1001.cct,
8868         libc/iconv/ccs/binary/shift_jis.cct,
8869         libc/iconv/ccs/binary/us_ascii.cct,
8870         libc/iconv/ces/Makefile.am, libc/iconv/ces/Makefile.in,
8871         libc/iconv/ces/euc-jp.c, libc/iconv/ces/euc-kr.c,
8872         libc/iconv/ces/euc-tw.c, libc/iconv/ces/gb2312.c,
8873         libc/iconv/ces/iso-10646-ucs-2.c, libc/iconv/ces/iso-10646-ucs-4.c,
8874         libc/iconv/ces/ucs-2-internal.c, libc/iconv/ces/ucs-4-internal.c,
8875         libc/iconv/ces/utf-16.c, libc/iconv/ces/utf-8.c,
8876         libc/iconv/lib/Makefile.am, libc/iconv/lib/Makefile.in,
8877         libc/iconv/lib/aliases.c, libc/iconv/lib/bialiasesi.c,
8878         libc/iconv/lib/biccs.c, libc/iconv/lib/bices.c,
8879         libc/iconv/lib/ccs.c, libc/iconv/lib/ces.c,
8880         libc/iconv/lib/ces_euc.c, libc/iconv/lib/ces_iso2022.c,
8881         libc/iconv/lib/ces_table.c, libc/iconv/lib/converter.c,
8882         libc/iconv/lib/deps.h, libc/iconv/lib/endian.h,
8883         libc/iconv/lib/iconv.c, libc/iconv/lib/loaddata.c,
8884         libc/iconv/lib/local.h, libc/include/iconv.h: New files.
8885         * libc/sys/linux/include/iconv.h: Ditto.
8886         * libc/include/sys/_types.h (_iconv_t): Added.
8887         * doc/aclocal.m4: Regenerated.
8888         * doc/configure: Ditto.
8889         * doc/Makefile.in: Ditto.
8890         * iconvdata/Makefile.in: Ditto.
8891         * iconvdata/aclocal.m4: Ditto.
8892         * iconvdata/configure: Ditto.
8893         * libc/*aclocal.m4: Ditto.
8894         * libc/*Makefile.in: Ditto.
8895         * libc/*configure: Ditto.
8896         * libm/*aclocal.m4: Ditto.
8897         * libm/*Makefile.in: Ditto.
8898         * libm/*configure: Ditto.
8899
8900 2004-01-22  Thomas Pfaff  <tpfaff@gmx.net>
8901
8902         * libc/stdio/findfp.c (__sfp): Protect global FILE pointer list
8903         by a lock when newlib is multithreaded.
8904
8905 2004-01-21  Jeff Johnston  <jjohnstn@redhat.com>
8906
8907         * libc/stdlib/mbrtowc.c (_mbrtowc_r): Fix case where s is null
8908         pointer to match C99 spec.
8909         * libc/stdlib/mbsrtowcs.c (_mbsrtowc_r): Fix to ignore len when
8910         dst is NULL.  Also fix to not alter src pointer when dst is NULL
8911         and call _mbrtowc_r instead of _mbtowc_r.
8912         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Call _wcrtomb_r instead
8913         of _wctomb_r.
8914
8915 2004-01-19  Thomas Pfaff  <tpfaff@gmx.net>
8916
8917         * libc/stdio/fclose.c (fclose): Release FILE as the last step.
8918         * libc/stdio/freopen.c (freopen): Ditto.
8919
8920 2004-01-16  Christopher Faylor  <cgf@redhat.com>
8921
8922         * libc/stdio/vfprintf.c: Add sys/lock.h include.
8923
8924 2004-01-16  Thomas Pfaff  <tpfaff@gmx.net>
8925
8926         * libc/stdio/findfp.c (__sfp): Remove unnecessary memset.
8927         * libc/stdio/vfprintf.c (__sbprintf): Ditto.
8928         Add calls to __lock_init_recursive and __lock_close_recursive
8929         instead.
8930
8931 2004-01-15  Thomas Pfaff  <tpfaff@gmx.net>
8932
8933         * libc/stdio/fclose.c: Include sys/lock.h.
8934         (fclose): Destroy lock when file is closed.
8935         * libc/stdio/findfp.c (__sfp): Initialize file pointers _lock
8936         member.
8937         * libc/stdio/freopen.c: Include sys/lock.h.
8938         (_freopen_r): Destroy lock when file is closed.
8939         * libc/stdio/vfprintf.c (__sbprintf): Initialize file pointers
8940         _lock member.
8941
8942 2004-01-08  Joel Sherrill  <joel@oarcorp.com>
8943
8944         * libc/ctype/iswctype.c, include/sys/reent.h, libc/stdlib/a64l.c:
8945         Remove warnings.
8946
8947 2004-01-08  Joel Sherrill  <joel@oarcorp.com>
8948
8949         * libc/sys/rtems/sys/queue.h: New file.
8950         * libc/include/sys/signal.h: Reflect renumbering of signals to
8951         fit into 32-bit mask.
8952         * libc/include/sys/unistd.h: Add fdatasync() prototype.
8953         * libc/sys/rtems/crt0.c: Add more symbols which may be implicitly
8954         required.  In particular, add the reentrant variants of libc calls.
8955         * libc/sys/rtems/sys/dirent.h: Add scandir() prototype.
8956
8957 2004-01-06  Mark Mitchell  <mark@codesourcery.com>
8958
8959         * libc/sys/arm/syscalls.c (unistd.h): Include it.
8960         (remap_handle): Use STDIN_FILENO instead of __sfileno(stdin).
8961         Similarly for stdout and stderr.
8962
8963 2004-01-06  Jeff Johnston  <jjohnstn@redhat.com>
8964
8965         * libc/libc.texinfo: Correct escape character for @ sign
8966         so file will be processed by make info.  Update copyright years.
8967         * libm/libm.texinfo: Ditto.
8968
8969 2003-12-05  Jeff Johnston  <jjohnstn@redhat.com>
8970
8971         * libc/include/sys/stat.h: No longer include stat-dj.h.
8972         * libc/include/sys/stat-dj.h: Removed.
8973
8974 2003-12-05  Jeff Johnston  <jjohnstn@redhat.com>
8975
8976         * libc/include/wchar.h: Include <sys/reent.h>.
8977
8978 2003-12-05  Christopher Faylor  <cgf@redhat.com>
8979
8980         * libc/stdlib/mbrlen.c: Change include order to prevent compiler errors
8981         when defining _mbrtowc.
8982         * libc/stdlib/mbsinit.c: Ditto.
8983         * libc/stdlib/mbsrtowcs.c: Ditto.
8984         * libc/stdlib/wcrtomb.c: Ditto.
8985         * libc/stdlib/wcsrtombs.c: Ditto.
8986         * libc/stdlib/wctob.c: Ditto.
8987
8988 2003-12-05  Christopher Faylor  <cgf@redhat.com>
8989
8990         * libc/stdlib/mbrlen.c: Change include order to prevent compiler
8991         errors when defining _mbrtowc.
8992         * libc/stdlib/mbsinit.c: Ditto.
8993         * libc/stdlib/mbsrtowcs.c: Ditto.
8994
8995 2003-12-05  Christopher Faylor  <cgf@redhat.com>
8996
8997         * libc/stdlib/mbrtowc.c: Change include order to prevent compiler
8998         errors when defining _mbrtowc.
8999
9000 2003-12-04  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9001
9002         * libc/stdio/vfprintf.c (_VFPRINTF_R): Use _r versions
9003         of mb routines for %lc and %ls support.
9004         * libc/stdio/vfscanf.c (_svfscanf_r): Add %lc, %C,
9005         %ls, and %S support.  Remove CYGNUS_NEC markers and
9006         code within.
9007
9008 2003-12-04  Jeff Johnston  <jjohnstn@redhat.com>
9009
9010         * libc/include/wchar.h: Add prototypes for _mbrtowc_r,
9011         _wcrtomb_r, and _wcsrtombs_r.
9012
9013 2003-12-01  Corinna Vinschen  <corinna@vinschen.de>
9014
9015         * libc/include/sys/fcntl.h: Don't define struct flock when on
9016         Cygwin.  This is done in winsup/cygwin/include/cygwin/types.h now.
9017
9018 2003-11-28  Christopher Faylor  <cgf@redhat.com>
9019
9020         * libc/include/sys/signal.h: Use system specific signal file when
9021         building on cygwin.
9022
9023 2003-11-27  Jeff Johnston  <jjohnstn@redhat.com>
9024
9025         * libc/include/stdlib.h (_atoi_r): New prototype.
9026         * libc/stdlib/atoi.c (_atoi_r): New reentrant function.
9027
9028 2003-11-27  Jeff Johnston  <jjohnstn@redhat.com>
9029
9030         * libc/include/stdlib.h (_atoll_r, _atol_r): New prototypes.
9031         * libc/stdlib/atol.c (_atol_r): New reentrant function.
9032         * libc/stdlib/atoll.c (_atoll_r): Ditto.
9033
9034 2003-11-27  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9035             Jeff Johnston  <jjohnstn@redhat.com>
9036
9037         * libc/include/stdlib.h (lldiv_t): New type.
9038         (atoll, llabs, lldiv): New prototypes.
9039         * libc/stdlib/Makefile.am: Add support for atoll, llabs, and lldiv.
9040         * libc/stdlib/stdlib.tex: Ditto.
9041         * libc/stdlib/Makefile.in: Regenerated.
9042         * libc/stdlib/atoll.c: New file.
9043         * libc/stdlib/llabs.c: Ditto.
9044         * libc/stdlib/lldiv.c: Ditto.
9045
9046 2003-11-26  Corinna Vinschen  <corinna@vinschen.de>
9047
9048         * libc/include/fcntl.h: Declare syscalls only when building newlib.
9049         * libc/include/unistd.h: Ditto.
9050         * libc/include/stat.h: Ditto.  Also declare struct stat64.
9051
9052 2003-11-24  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9053
9054         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix check for 'C' format
9055         specifier to use ch instead of *fmt.
9056
9057 2003-11-21  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9058
9059         * libc/stdio/vfprintf.c (_VFPRINTF_R, get_arg): Move mb-specific
9060         code within checks for MB_CAPABLE.  For non-mb-capable platforms,
9061         use simple byte logic.
9062
9063 2003-11-21  Jeff Johnston  <jjohnstn@redhat.com>
9064
9065         * libc/stdio/vfscanf.c (__svfscanf_r)[!_NO_LONGDBL]: Don't use
9066         _strtold routine for processing floats and doubles since it
9067         is not as fast as _strtod_r.
9068
9069 2003-11-20 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
9070
9071         * libc/machine/h8300/defines.h : Correct pointer register defines
9072         for normal mode.
9073         * libc/machine/h8300/memcpy.S : Use add/sub instead of adds/subs
9074         for normal mode.
9075         * libc/machine/h8300/reg_memcpy.S : Likewise.
9076         * libc/machine/h8300/reg_memset.S : Likewise.
9077         * libc/machine/h8300/strcmp.S : Likewise.
9078
9079 2003-11-19  Nicholas Wourms  <nwourms@netscape.net>
9080
9081         * configure.host: Enable positional arguments for printf
9082         family for Cygwin.
9083         * libc/stdio/vfprintf.c (_VFPRINTF_R): Remove extraneous
9084         pointer reference for quad_ptr_t.
9085
9086 2003-11-19  Jeff Johnston  <jjohnstn@redhat.com>
9087
9088         * libc/stdio/scanf.c: Don't include local.h more than once.
9089
9090 2003-11-18  Corinna Vinschen  <corinna@vinschen.de>
9091
9092         * libc/include/sys/fcntl.h: Declare _open64.
9093         * libc/include/sys/stat.h: Declare _fstat64.
9094         * libc/include/sys/unistd.h: Declare _lseek64.
9095
9096 2003-11-17  Corinna Vinschen  <corinna@vinschen.de>
9097
9098         * libc/include/stdlib.h (getprogname): Declare for Cygwin.
9099         (setprogname): Ditto.
9100
9101 2003-11-10  Jeff Johnston  <jjohnstn@redhat.com>
9102
9103         * libc/machine/powerpc/ufix64toa.c (_ufix64to_r): Fix shifts
9104         to use (Ebits + 1) which accounts for the sign-bit.
9105
9106 2003-11-07  Jeff Johnston  <jjohnstn@redhat.com>
9107
9108         * configure.host: Remove -DLOOSE_KERNEL_NAMES flag for linux
9109         x86 build.
9110         * iconvdata/Makefile.am: Make dependent on newlib's configure.host
9111         and set up default flags to pass to aclocal.
9112         * iconvdata/Makefile.in: Regenerated.
9113         * libc/sys/linux/Makefile.am: Add _ELIX_LEVEL_4 getlogin, getpwnam,
9114         and getpwuid routines.
9115         * libc/sys/linux/Makefile.in: Regenerated.
9116         * libc/sys/linux/getlogin.c: New stub file to allow x86-linux
9117         applications to link with newlib's shared libc library.
9118         * libc/sys/linux/getpwnam.c: Ditto.
9119         * libc/sys/linux/getpwuid.c: Ditto.
9120         * libc/sys/linux/sys/types.h: Include <features.h> and supply types
9121         that were formerly supplied by /usr/include/linux/types.h with
9122         kernel types.
9123         * testsuite/newlib.wctype/twctype.c: Fix testcase to properly
9124         test _ELIX_LEVEL macro.
9125
9126 2003-11-07  Jeff Johnston  <jjohnstn@redhat.com>
9127
9128         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix typos that should be
9129         referring to _NO_LONGLONG macro.
9130
9131 2003-11-06  Jeff Johnston  <jjohnstn@redhat.com>
9132
9133         * libc/sys/linux/linuxthreads/td_init.c: Replace function name
9134         in LOG() macro so this will compile on gcc 3.4 and up.
9135         * libc/sys/linux/linuxthreads/td_log.c: Ditto.
9136         * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto.
9137         * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto.
9138         * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto.
9139         * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto.
9140         * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto.
9141         * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto.
9142         * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto.
9143         * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto.
9144         * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto.
9145         * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto.
9146         * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto.
9147         * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto.
9148         * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto.
9149         * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto.
9150         * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto.
9151         * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto.
9152         * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto.
9153         * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto.
9154         * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto.
9155         * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto.
9156         * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto.
9157         * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto.
9158         * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto.
9159         * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto.
9160         * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto.
9161         * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto.
9162         * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto.
9163         * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto.
9164         * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto.
9165         * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto.
9166         * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto.
9167         * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto.
9168         * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto.
9169         * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto.
9170         * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto.
9171
9172 2003-11-05  Jeff Johnston  <jjohnstn@redhat.com>
9173             Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9174
9175         * libc/stdio/vfprintf.c (_VFPRINTF_R): Add support for
9176         %ls, %S, %lc, and %C format specifiers.
9177         (get_arg): Ditto.
9178         * libc/stdio/sprintf.c: Add documentation regarding new
9179         format specifiers added in vfprintf.c.
9180
9181 2003-11-05  Jeff Johnston  <jjohnstn@redhat.com>
9182
9183         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Numerous fixes
9184         to make code work as specified in standard.
9185
9186 2003-10-23  Jeff Johnston  <jjohnstn@redhat.com>
9187
9188         * configure.in: Use absolute newlib basedir when forming
9189         CC_FOR_NEWLIB include options.
9190         * configure: Regenerated.
9191
9192 2003-10-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9193
9194         * libc/string/wcsnlen.c: New file.
9195         * libc/include/wchar.h: Add wcsnlen prototype.
9196         * libc/string/Makefile.am: Add wcsnlen support.
9197         * libc/string/Makefile.in: Regenerated.
9198         * libc/string/wcstrings.tex: Add wcsnlen documentation.
9199
9200 2003-10-22  Richard Sandiford  <rsandifo@redhat.com>
9201
9202         * libc/stdlib/exit.c (exit): Handle null _GLOBAL_REENT->_atexits.
9203
9204 2003-10-20  Bob Wilson  <bob.wilson@acm.org>
9205
9206         * libc/locale/locale.c: Use double quotes in code.
9207         * libc/locale/locale.tex: Likewise.
9208         * libc/libc.texinfo: Hyphenate "floating-point".
9209         * libc/machine/necv70/necv70.tex: Likewise.
9210         * libc/stdio/sprintf.c: Likewise.
9211         * libc/stdio/sscanf.c: Likewise.
9212         * libc/stdlib/atof.c: Likewise.
9213         * libc/stdlib/ldtoa.c: Fix comment typo.
9214         * libc/stdlib/div.c: Use @ifnottex instead of @ifinfo.
9215         * libc/stdlib/ldiv.c: Likewise.
9216         * libm/common/s_expm1.c: Likewise.
9217         * libm/common/s_ilogb.c: Hyphenate "floating-point".  Use "nonzero".
9218         * libm/common/s_infinity: Hyphenate "double- and single-precision".
9219         * libm/common/s_nan.c: Likewise.  Also correct the FUNCTION summary.
9220         * libm/common/s_nextafter.c: Fix typo.  Hyphenate "double-precision"
9221         and "floating-point".
9222         * libm/common/s_scalbn.c: Correct the FUNCTION summary.
9223         * libm/math/e_pow.c: Fix comment typo.
9224         * libm/math/math.tex: Hyphenate "single-precision" and "floating-point".
9225         * libm/math/s_asinh.c: Use @ifnottex instead of @ifinfo.
9226         * libm/math/s_atan.c: Likewise.
9227         * libm/math/s_frexp.c: Likewise.  Also use "nonzero".
9228         * libm/math/s_isnan.c: Hyphenate "single-precision" and
9229         "floating-point".  Use "nonzero".
9230         * libm/math/s_ldexp.c: Use @ifnottex instead of @ifinfo.
9231         * libm/math/w_acos.c: Likewise.
9232         * libm/math/w_acosh.c: Likewise.
9233         * libm/math/w_asin.c: Likewise.
9234         * libm/math/w_atan2.c: Likewise.
9235         * libm/math/w_atanh.c: Likewise.
9236         * libm/math/w_cosh.c: Likewise.
9237         * libm/math/w_exp.c: Likewise.
9238         * libm/math/w_exp2.c: Likewise.  Add missing @end and missing @tex
9239         version of 2^x in the description.
9240         * libm/math/w_fmod.c: Use @ifnottex instead of @ifinfo.
9241         * libm/math/w_gamma.c: Likewise.
9242         * libm/math/w_hypot.c: Likewise.
9243         * libm/math/w_j0.c: Likewise.
9244         * libm/math/w_sinh.c: Likewise.
9245         * libm/math/w_pow.c: Replace "exp1.0nt" with "exponent".
9246         * libm/mathfp/mathfp.tex: Hyphenate "single-precision" and
9247         "floating-point".
9248         * libm/mathfp/e_acosh.c: Use @ifnottex instead of @ifinfo.
9249         * libm/mathfp/e_atanh.c: Likewise.
9250         * libm/mathfp/e_hypot.c: Likewise.
9251         * libm/mathfp/er_lgamma.c: Likewise.
9252         * libm/mathfp/s_acos.c: Likewise.
9253         * libm/mathfp/s_asine.c: Likewise.
9254         * libm/mathfp/s_asinh.c: Likewise.
9255         * libm/mathfp/s_atan.c: Likewise.
9256         * libm/mathfp/s_atan2.c: Likewise.
9257         * libm/mathfp/s_atangent.c: Likewise.
9258         * libm/mathfp/s_cosh.c: Likewise.
9259         * libm/mathfp/s_exp.c: Likewise.
9260         * libm/mathfp/s_fmod.c: Likewise.
9261         * libm/mathfp/s_frexp.c: Likewise.  Also use "nonzero".
9262         * libm/mathfp/s_isnan.c: Hyphenate "single-precision" and
9263         "floating-point".  Use "nonzero".
9264         * libm/math/s_pow.c: Replace "exp1.0nt" with "exponent".
9265         * libm/mathfp/s_ldexp.c: Use @ifnottex instead of @ifinfo.
9266         * libm/mathfp/s_sineh.c: Likewise.
9267         * libm/mathfp/w_jn.c: Likewise.
9268
9269 2003-10-15  Alexandre Oliva  <aoliva@redhat.com>
9270
9271         * Makefile.am: Add $(MAKE) comments to multido and multiclean
9272         lines, to enable parallel make.
9273         * Makefile.in: Rebuilt.
9274
9275 2003-10-14  Christopher Faylor  <cgf@redhat.com>
9276
9277         * libc/time/clock.c: Clarify documentation of return value when no
9278         measurement is available.
9279
9280 2003-09-29  Ian Lance Taylor  <ian@wasabisystems.com>
9281
9282         * libm/configure.in: Check libm_machine_dir, not machine_dir.
9283         * libm/configure: Regenerate.
9284         * libm/Makefile.in: Ditto.
9285
9286 2003-09-29  J"orn Rennecke <joern.rennecke@superh.com>
9287
9288         * libc/machine/sh/strncpy.S: New file.
9289         * libc/machine/sh/Makefile.am: Add entry & rule for new file.
9290         * libc/machine/sh/Makefile.in: Regenerate.
9291
9292 2003-09-11  James E Wilson  <wilson@specifixinc.com>
9293
9294         * MAINTAINERS: Update my e-mail address.
9295
9296 2003-09-10  Corinna Vinschen  <corinna@vinschen.de>
9297
9298         * libc/include/sys/unistd.h: Declare function daemon for Cygwin.
9299
9300 2003-09-09  Jeff Johnston  <jjohnstn@redhat.com>
9301
9302         * libc/machine/powerpc/fix64.h: Fix typo for _simdldcheck
9303         prototype.
9304         * libc/machine/powerpc/simdldtoa.c: Remove prototype for
9305         _simdldcheck().  Also add unsigned cast for index variable in
9306         for loop using sizeof operators.
9307         * libc/machine/powerpc/strtoufix32.c: Remove unused variable.
9308         * libc/machine/powerpc/strtosfix64.c: Fix call to _simdldcheck.
9309         * libc/machine/powerpc/strtoufix64.c (_strtoufix64_r): Ditto
9310         plus fix shift calculation for determining if there is a
9311         carry from word2.
9312
9313 2003-09-09  Corinna Vinschen  <corinna@vinschen.de>
9314
9315         * libc/include/grp.h: Don't define setgrfile, group_from_gid and
9316         setgroupent for Cygwin.
9317
9318 2003-09-05  Jeff Johnston  <jjohnstn@redhat.com>
9319
9320         * libc/stdlib/exit.c (exit): Setting of struct _atexit ptr p
9321         is different for _REENT_SMALL than when using regular reent
9322         struct.
9323
9324 2003-09-05  Ben Elliston  <bje@wasabisystems.com>
9325
9326         * libc/ctype/wctype.c (_DEFUN): Remove empty default case, as
9327         modern versions of GCC issue a warning.
9328
9329         * libc/machine/xscale/memcmp.c (memcmp): Strip trailing whitespace
9330         after continuation characters that induces a warning from modern
9331         versions of GCC.
9332
9333 2003-09-04  Ben Elliston  <bje@wasabisystems.com>
9334
9335         * libc/stdlib/mstats.c[_ELIX_LEVEL]: Fix guards.  #ifndef FOO ||
9336         FOO >= 2 is invalid; use #if !defined (FOO) || FOO >= 2 instead.
9337
9338 2003-09-02  Thomas Pfaff  <tpfaff@gmx.net>
9339
9340         * libc/stdlib/atexit.c: Rename _REENT to _GLOBAL_REENT throughout.
9341         * libc/stdlib/exit.c : Ditto.
9342         * libc/stdlib/on_exit.c: Ditto.
9343
9344 2003-08-27  Corinna Vinschen  <corinna@vinschen.de>
9345
9346         * libc/include/reent.h: Define stat64 as __stat64 when
9347         compiling newlib for Cygwin.
9348
9349 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
9350
9351         * libc/include/sys/stat.h[__CYGWIN__]: Only define stat64 as
9352         __stat64 when compiling newlib.
9353
9354 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
9355
9356         * libc/include/stdio.h: Allow the io64 function prototypes for
9357         Cygwin when compiling newlib.
9358         * libc/include/sys/stat.h[__CYGWIN__]: Define stat64 as __stat64
9359         to expose the Cygwin struct __stat64 type.
9360         * libc/stdio64/fseeko64.c: Use _fstat64_r and pass a struct stat64
9361         pointer.
9362         * libc/stdio64/tmpfile64.c(_tmpfile64_r): Call _fopen64_r.
9363
9364 2003-08-23  Christopher Faylor  <cgf@redhat.com>
9365
9366         * libc/stdio64/fseeko64.c (fseeko64_r): Rename second fseeko64_r
9367         definition to fseeko64.
9368
9369 2003-08-22  Jeff Johnston  <jjohnstn@redhat.com>
9370
9371         * libc/include/sys/reent.h: Add _GLOBAL_REENT macro.
9372         * libc/stdio: Globally remove/replace all references to fp->_data.
9373         Replace with _REENT or _GLOBAL_REENT where appropriate.
9374         * libc/stdio/asprintf.c: Ditto.
9375         * libc/stdio/fclose.c: Ditto.
9376         * libc/stdio/fvwrite.c: Ditto.
9377         * libc/stdio/makebuf.c: Ditto.
9378         * libc/stdio/refill.c: Ditto.
9379         * libc/stdio/local.h: Ditto.
9380         * libc/stdio/setvbuf.c: Ditto.
9381         * libc/stdio/sscanf.c: Ditto.
9382         * libc/stdio/stdio.c: Ditto.
9383         * libc/stdio/ungetc.c: Ditto.
9384         * libc/stdio/vfscanf.c: Ditto.
9385         * libc/stdio/vsscanf.c: Ditto.
9386         * libc/stdio/fopen.c: Ditto.  Also use _fseek_r in _fopen_r.
9387         * libc/stdio/vasprintf.c: Ditto.  Also call _vfprintf_r directly.
9388         * libc/stdio/vsnprintf.c: Ditto.
9389         * libc/stdio/vsprintf.c: Ditto.
9390         * libc/stdio/fcloseall.c(fcloseall): Use _GLOBAL_REENT macro
9391         instead of _REENT to walk file list.
9392         * libc/stdio/fflush.c: Ditto.
9393         * libc/stdio/fgetpos.c: Add reentrant version and have regular
9394         version call reentrant version with _REENT argument.
9395         * libc/stdio/fsetpos.c: Ditto.
9396         * libc/stdio/fseek.c: Ditto.
9397         * libc/stdio/fseeko.c: Ditto.
9398         * libc/stdio/ftell.c: Ditto.
9399         * libc/stdio/ftello.c: Ditto.
9400         * libc/stdio/freopen.c: Ditto.
9401         * libc/stdio/findfp.c: Use _GLOBAL_REENT pointer when adding
9402         new files to chain.  Also use _GLOBAL_REENT pointer for
9403         cleaning up.
9404         * libc/stdio/fiprintf.c: Reformatted to minimize duplicate code.
9405         * libc/stdio/siprintf.c: Ditto.
9406         * libc/stdio/iprintf.c: Ditto.
9407         * libc/stdio/fprintf.c: Ditto.
9408         * libc/stdio/printf.c: Ditto.
9409         * libc/stdio/snprintf.c: Call _vfprintf_r directly.
9410         * libc/stdio/sprintf.c: Ditto.
9411         * libc/stdio/vprintf.c: Ditto.  Also add _REENT_ONLY check.
9412         * libc/stdio/rewind.c: Call _fseek_r directly.
9413         * libc/stdio/tmpfile.c: Call _fopen_r and _remove_r directly.
9414         * libc/stdio/vfprintf.c (_VFPRINTF_R): Change _r routines to use
9415         data pointer.
9416         (get_arg): Add extra struct _reent pointer argument.
9417         * libc/stdio64/fgetpos64.c: Add _r versions, remove any reference
9418         to fp->_data.
9419         * libc/stdio64/fopen64.c: Ditto.
9420         * libc/stdio64/freopen64.c: Ditto.
9421         * libc/stdio64/fsetpos64.c: Ditto.
9422         * libc/stdio64/ftello64.c: Ditto.
9423         * libc/stdio64/local64.h: Ditto.
9424         * libc/stdio64/stdio64.c: Ditto.
9425         * libc/stdio64/fseeko64.c: Ditto plus use _fstat_r instead of
9426         _fstat64_r for the meantime.
9427
9428 2003-08-19  Jeff Johnston  <jjohnstn@redhat.com>
9429
9430         * libc/stdlib/mallocr.c (mALLOc, rEALLOc, mEMEALIGn): Enhance
9431         overflow detection.
9432
9433 2003-08-13  Aldy Hernandez  <aldyh@redhat.com>
9434
9435         * libc/machine/powerpc/machine/stdlib.h: Wrap SPE functions in
9436         extern "C".
9437
9438 2003-08-13  Jeff Johnston  <jjohnstn@redhat.com>
9439
9440         * libc/include/math.h: Add prototypes for __signbitf and
9441         __signbitd.
9442
9443 2003-07-31  Jeff Johnston  <jjohnstn@redhat.com>
9444
9445         * libc/ctype/iswalpha.c: Fix calls to __jp2uc to pass the
9446         correct type of conversion when dealing with EUCJP or SJIS.
9447         * libc/ctype/iswblank.c: Ditto.
9448         * libc/ctype/iswcntrl.c: Ditto.
9449         * libc/ctype/iswprint.c: Ditto.
9450         * libc/ctype/iswpunct.c: Ditto.
9451         * libc/ctype/iswspace.c: Ditto.
9452         * libc/ctype/towlower.c: Ditto.
9453         * libc/ctype/towupper.c: Ditto.
9454
9455 2003-07-31  Nick Clifton  <nickc@redhat.com>
9456
9457         * libc/sys/sysnecv850/crt0.S (_start): Allocate 4 slots on stack
9458         before calling main, in case it saves its argument registers.
9459         Remove reference to deleted v850ea port.
9460         * configure.host: Remove reference to deleted v850ea port.
9461         Do not use -mv850 when building for v850e target.  This
9462         prevents the ctbp system register from being initialised.
9463
9464 2003-07-29  Honda Hiroki  <hhonda@ipflex.com>
9465
9466         * libc/stdio/vfprintf.c: Set output size to 1 when
9467         we have %f format with precision 0 and # flag not specified.
9468
9469 2003-07-29  Alexandre Oliva  <aoliva@redhat.com>
9470
9471         * libc/machine/mn10300/setjmp.S: Never emit both .am33 and
9472         .am33_2.
9473
9474 2003-07-25  Christopher Faylor  <cgf@redhat.com>
9475
9476         * libc/stdio64/fdopen64.c: Include sys/lock.h.
9477
9478 2003-07-25  Christopher Faylor  <cgf@redhat.com>
9479
9480         * configure.host: Find cygwin include directory, when appropriate.
9481
9482 2003-07-24  Christopher Faylor  <cgf@redhat.com>
9483
9484         * libc/stdio64/fdopen64.c: New file.
9485         * libc/stdio64/Makefile.am (LIB_OBJS): Add fdopen64.o
9486         * libc/stdio64/Makefile.in: Regenerate.
9487         * libc/include/stdio.h (fdopen64): Define.
9488         * libc/include/stdio.h (_fdopen64_r): Ditto.
9489
9490 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
9491
9492         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
9493         * libc/include/machine/setjmp.h (_JBLEN, AM33/2.0): Set to 26.
9494         * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Save and
9495         restore callee-saved FP registers.
9496
9497 2003-07-10  J"orn Rennecke <joern.rennecke@superh.com>
9498
9499         * libc/include/sys/unistd.h (ftruncate, truncate): Also declare
9500         for __sh__.
9501         * libc/sys/sh/Makefile.am (lib_a_SOURCES): Add ftruncate.c and
9502         truncate.c.
9503         * libc/sys/sh/Makefile.in: Regenerate.
9504         * libc/sys/sh/sys/syscall.h: (SYS_truncate, SYS_ftruncate): Define.
9505         * libc/sys/sh/ftruncate.c: New file.
9506         * libc/sys/sh/truncate.c: Likewise.
9507
9508 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
9509
9510         * libc/include/math.h (nan, nanf): Update prototype to C99.
9511         * libm/common/s_nan.c (nan): Likewise.
9512         * libm/common/s_nanf.c (nanf, nan): Likewise.
9513         * libc/sys/linux/cmath/math_private.h (nan, nanf): Likewise.
9514
9515 2003-07-07  Jeff Johnston  <jjohnstn@redhat.com>
9516
9517         * libc/include/stdbool.h: Removed as this is defined by gcc.
9518
9519 2003-07-03  Shaun Jackman  <sjackman@pathwayconnect.com>
9520
9521         * libc/include/stdbool.h: New header file defined by C99.
9522
9523 2003-07-02  Jeff Johnston  <jjohnstn@redhat.com>
9524
9525         * libc/include/sys/types.h (int8_t): Make signed.
9526
9527 2003-07-02  Jeff Johnston  <jjohnstn@redhat.com>
9528
9529         * libc/sys/linux/include/mqueue.h: Add include of <sys/fcntl.h>.
9530
9531 2003-06-27  Jose Goncalves  <jose.goncalves@inov.pt>
9532
9533         * libc/sys/linux/mq_open.c (mq_open): Only set created flag
9534         on if we actually created the shared memory file exclusively.
9535
9536 2003-06-27  Joe Vornehm  <joev@mitre.org>
9537
9538         * libm/common/s_fpclassify.c (__fpclassifyf): Fix
9539         comparisons to account for unsigned internal value w.
9540
9541 2003-06-26  Jeff Johnston  <jjohnstn@redhat.com>
9542
9543         * libc/sys/linux/mq_open.c (mq_open): Must allocate rdbuf and
9544         wrbuf for a non-creating open.
9545
9546 2003-06-24  Kazu Hirata  <kazu@cs.umass.edu>
9547
9548         * libc/machine/h8300/setarch.h: New.
9549         * libc/machine/h8300/memcpy.S: Use it.
9550         * libc/machine/h8300/memset.S: Likewise.
9551         * libc/machine/h8300/reg_memcpy.S: Likewise.
9552         * libc/machine/h8300/reg_memset.S: Likewise.
9553         * libc/machine/h8300/setjmp.S: Likewise.
9554         * libc/machine/h8300/strcmp.S: Likewise.
9555
9556 2003-06-24  Richard Sandiford  <rsandifo@redhat.com>
9557
9558         * libc/sys/h8300hms/crt0.S (_start): Fix register sizes in call
9559         to atexit().
9560
9561 2003-06-20  Jeff Johnston  <jjohnstn@redhat.com>
9562
9563         * configure.host (iq2000): Add tabs.
9564
9565 2003-06-20  Jeff Johnston  <jjohnstn@redhat.com>
9566
9567         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix macros
9568         to handle latest on_exit change.
9569         * libc/sys/linux/Makefile.am: Remove special compilation
9570         for malloc.c and mcheck.c.
9571         * libc/sys/linux/Makefile.in: Regenerated.
9572         * libc/sys/linux/mntent.c: Add definition of _LIBC flag
9573         after including <features.h>.
9574         * libc/sys/linux/mcheck.c: Ditto.
9575         * libc/sys/linux/malloc.c: Ditto plus define _GNU_SOURCE
9576         for <features.h>.
9577         * libc/sys/linux/intl/Makefile.am: Remove -D_LIBC and
9578         add -DNOT_IN_libc to C flags.
9579         * libc/sys/linux/intl/Makefile.in: Regenerated.
9580         * libc/sys/linux/intl/config.h: Add definition of _LIBC.
9581         * libc/sys/linux/linuxthreads/semaphore.h: Include
9582         <bits/pthreadtypes.h>.
9583         * libc/sys/linux/sys/dirent.h: Define _LIBC and NOT_IN_libc after
9584         including <features.h>.
9585         * libc/sys/linux/sys/lock.h: Ditto.
9586
9587 2003-06-11  Nick Clifton  <nickc@redhat.com>
9588
9589         * libc/reent/reent.c (reclaim_reent): Fix typo in code to free
9590         _on_exit_args_ptr.
9591
9592 2003-06-10  Stan Cox  <scox@redhat.com>
9593             Anthony Green  <green@redhat.com>
9594
9595         * configure.host: Add iq2000 support.
9596         * newlib/libc/include/machine/ieeefp.h: Ditto.
9597         * newlib/libc/include/machine/setjmp.h: Ditto.
9598         * libc/machine/iq2000, libc/machine/iq2000/setjmp.S,
9599         libc/machine/iq2000/aclocal.m4, libc/machine/iq2000/configure,
9600         libc/machine/iq2000/configure.in, libc/machine/iq2000/Makefile.am,
9601         libc/machine/iq2000/Makefile.in: New files.
9602
9603 2003-06-10  Richard Sandiford  <rsandifo@redhat.com>
9604
9605         * libc/sys/h8300hms/setarch.h: New file.
9606         * libc/sys/h8300hms/close.S, libc/sys/h8300hms/fstat.S,
9607         libc/sys/h8300hms/lseek.S, libc/sys/h8300hms/open.S,
9608         libc/sys/h8300hms/read.S, libc/sys/h8300hms/stat.S,
9609         libc/sys/h8300hms/write.S, libc/sys/h8300hms/crt0.S: Use it.
9610
9611 2003-06-06  Jeff Johnston  <jjohnstn@redhat.com>
9612
9613         * libc/argz/argz_add.c: Change to use _DEFUN macro for function
9614         definition.
9615         * libc/argz/argz_add_sep.c: Ditto.
9616         * libc/argz/argz_append.c libc/argz/argz_count.c: Ditto.
9617         * libc/argz/argz_create.c libc/argz/argz_create_sep.c: Ditto.
9618         * libc/argz/argz_delete.c libc/argz/argz_extract.c: Ditto.
9619         * libc/argz/argz_insert.c libc/argz/argz_next.c: Ditto.
9620         * libc/argz/argz_replace.c libc/argz/argz_stringify.c: Ditto.
9621         * libc/argz/envz_add.c libc/argz/envz_entry.c: Ditto.
9622         * libc/argz/envz_get.c libc/argz/envz_merge.c: Ditto.
9623         * libc/argz/envz_remove.c libc/argz/envz_strip.c: Ditto.
9624         * libc/locale/nl_langinfo.c libc/misc/ffs.c: Ditto.
9625         * libc/posix/closedir.c libc/posix/creat.c: Ditto.
9626         * libc/posix/execl.c libc/posix/execle.c: Ditto.
9627         * libc/posix/execlp.c libc/posix/execve.c: Ditto.
9628         * libc/posix/isatty.c libc/posix/opendir.c: Ditto.
9629         * libc/posix/popen.c libc/posix/readdir.c: Ditto.
9630         * libc/posix/readdir_r.c libc/posix/rewinddir.c: Ditto.
9631         * libc/posix/scandir.c libc/posix/seekdir.c: Ditto.
9632         * libc/posix/telldir.c libc/search/hcreate.c: Ditto.
9633         * libc/search/tdelete.c libc/search/tdestroy.c: Ditto.
9634         * libc/search/tfind.c libc/search/tsearch.c: Ditto.
9635         * libc/search/twalk.c libc/signal/signal.c: Ditto.
9636
9637 2003-06-05  Nick Clifton  <nickc@redhat.com>
9638
9639         * libc/include/sys/reent.h (struct _on_exit_args): New
9640         structure containing fields used by the on_exit() function.
9641         (struct _atexit): Include struct _on_exit_args.  For
9642         _REENT_SMALL do his via a pointer that is initialised when
9643         needed.
9644         * libc/reent/reent.c (_reclaim_reent): Free the _on_exit_args
9645         structure, if one has been allocated.
9646         * libc/stdlib/atexit.c (atexit): Update indirection to
9647         _fntypes field.
9648         * libc/stdlib/on_exit.c (on_exit): Indirect via the
9649         _on_exit_args structure.  For _REENT_SMALL, allocate a
9650         structure if one does not exist.
9651         * libc/stdlib/exit.c (exit): Indirect via the _on_exit_args
9652         structure.
9653
9654 2003-06-04  Jeff Johnston  <jjohnstn@redhat.com>
9655
9656         * libc/sys/linux/net/Makefile.am: Remove extraneous markers.
9657         * libc/sys/linux/net/Makefile.in: Regenerated.
9658
9659 2003-06-03  Jeff Johnston  <jjohnstn@redhat.com>
9660
9661         * libc/reent/execr.c: Use _DEFUN macro for function declaration.
9662         * libc/reent/fcntlr.c: Ditto.
9663         * libc/reent/fstat64r.c: Ditto.
9664         * libc/reent/linkr.c: Ditto.
9665         * libc/reent/lseek64r.c: Ditto.
9666         * libc/reent/lseekr.c: Ditto.
9667         * libc/reent/openr.c: Ditto.
9668         * libc/reent/readr.c: Ditto.
9669         * libc/reent/reent.c: Ditto.
9670         * libc/reent/sbrkr.c: Ditto.
9671         * libc/reent/signalr.c: Ditto.
9672         * libc/reent/signgam.c: Ditto.
9673         * libc/reent/statr.c: Ditto.
9674         * libc/reent/timer.c: Ditto.
9675         * libc/reent/unlinkr.c: Ditto.
9676         * libc/reent/writer.c: Ditto.
9677         * libc/syscalls/sysclose.c: Ditto.
9678         * libc/syscalls/sysexecve.c: Ditto.
9679         * libc/syscalls/sysfcntl.c: Ditto.
9680         * libc/syscalls/sysfork.c: Ditto.
9681         * libc/syscalls/sysfstat.c: Ditto.
9682         * libc/syscalls/sysgetpid.c: Ditto.
9683         * libc/syscalls/sysgettod.c: Ditto.
9684         * libc/syscalls/syskill.c: Ditto.
9685         * libc/syscalls/syslink.c: Ditto.
9686         * libc/syscalls/syslseek.c: Ditto.
9687         * libc/syscalls/sysopen.c: Ditto.
9688         * libc/syscalls/sysread.c: Ditto.
9689         * libc/syscalls/syssbrk.c: Ditto.
9690         * libc/syscalls/sysstat.c: Ditto.
9691         * libc/syscalls/systimes.c: Ditto.
9692         * libc/syscalls/sysunlink.c: Ditto.
9693         * libc/syscalls/syswait.c: Ditto.
9694         * libc/syscalls/syswrite.c: Ditto.
9695
9696 2003-06-03  Till Straumann  <strauman@SLAC.Stanford.EDU>
9697
9698         * libc/time/tzset_r.c: Change local variables that are
9699         set via sscanf using the %h format specifier to be unsigned short
9700         instead of int.
9701
9702 2003-05-30  Kelley Cook  <kelleycook@wideopenwest.com>
9703
9704         * configure.host:  Allow i[34567]86 variant.
9705         * configure.in: Likewise.
9706         * README: Likewise to the docs.
9707         * configure: Regenerated.
9708         * Makefile.in: Ditto.
9709
9710 2003-05-28  Jeff Johnston  <jjohnstn@redhat.com>
9711             Tom Fitzsimmons  <fitzsim@redhat.com>
9712
9713         * configure.in: Add iconvdata support for x86 linux.
9714         * configure: Regenerated.
9715         * libc/sys/linux/Makefile.am: Add EL/IX level 3 network, dynamic
9716         library, iconv, and linuxthreads support.
9717         * libc/sys/linux/configure.in: Ditto.
9718         * libc/sys/linux/Makefile.in: Regenerated.
9719         * libc/sys/linux/configure: Ditto.
9720         * iconvdata/EUC-JP.irreversible: New file.
9721         * iconvdata/Makefile.am: Ditto.
9722         * iconvdata/Makefile.in: Ditto.
9723         * iconvdata/SJIS.irreversible: Ditto.
9724         * iconvdata/aclocal.m4: Ditto.
9725         * iconvdata/configure: Ditto.
9726         * iconvdata/configure.in: Ditto.
9727         * iconvdata/dummy.c: Ditto.
9728         * iconvdata/euc-jp.c: Ditto.
9729         * iconvdata/gconv-modules: Ditto.
9730         * iconvdata/jis0201.c: Ditto.
9731         * iconvdata/jis0201.h: Ditto.
9732         * iconvdata/jis0208.c: Ditto.
9733         * iconvdata/jis0208.h: Ditto.
9734         * iconvdata/jis0212.c: Ditto.
9735         * iconvdata/jis0212.h: Ditto.
9736         * iconvdata/sjis.c: Ditto.
9737         * libc/include/errno.h: Protect definition of error_t.
9738         * libc/sys/linux/gethostid.c: New file.
9739         * libc/sys/linux/sethostid.c: Ditto.
9740         * libc/sys/linux/dl/Makefile.am: Ditto.
9741         * libc/sys/linux/dl/Makefile.in: Ditto.
9742         * libc/sys/linux/dl/abi-tag.h: Ditto.
9743         * libc/sys/linux/dl/atomicity.h: Ditto.
9744         * libc/sys/linux/dl/dl-addr.c: Ditto.
9745         * libc/sys/linux/dl/dl-cache.c: Ditto.
9746         * libc/sys/linux/dl/dl-cache.h: Ditto.
9747         * libc/sys/linux/dl/dl-close.c: Ditto.
9748         * libc/sys/linux/dl/dl-debug.c: Ditto.
9749         * libc/sys/linux/dl/dl-deps.c: Ditto.
9750         * libc/sys/linux/dl/dl-dst.h: Ditto.
9751         * libc/sys/linux/dl/dl-error.c: Ditto.
9752         * libc/sys/linux/dl/dl-fini.c: Ditto.
9753         * libc/sys/linux/dl/dl-init.c: Ditto.
9754         * libc/sys/linux/dl/dl-iteratephdr.c: Ditto.
9755         * libc/sys/linux/dl/dl-libc.c: Ditto.
9756         * libc/sys/linux/dl/dl-librecon.h: Ditto.
9757         * libc/sys/linux/dl/dl-load.c: Ditto.
9758         * libc/sys/linux/dl/dl-lookup.c: Ditto.
9759         * libc/sys/linux/dl/dl-lookupcfg.h: Ditto.
9760         * libc/sys/linux/dl/dl-minimal.c: Ditto.
9761         * libc/sys/linux/dl/dl-misc.c: Ditto.
9762         * libc/sys/linux/dl/dl-object.c: Ditto.
9763         * libc/sys/linux/dl/dl-open.c: Ditto.
9764         * libc/sys/linux/dl/dl-osinfo.h: Ditto.
9765         * libc/sys/linux/dl/dl-profile.c: Ditto.
9766         * libc/sys/linux/dl/dl-profstub.c: Ditto.
9767         * libc/sys/linux/dl/dl-reloc.c: Ditto.
9768         * libc/sys/linux/dl/dl-runtime.c: Ditto.
9769         * libc/sys/linux/dl/dl-support.c: Ditto.
9770         * libc/sys/linux/dl/dl-sym.c: Ditto.
9771         * libc/sys/linux/dl/dl-version.c: Ditto.
9772         * libc/sys/linux/dl/dlfcn.h: Ditto.
9773         * libc/sys/linux/dl/do-lookup.h: Ditto.
9774         * libc/sys/linux/dl/do-rel.h: Ditto.
9775         * libc/sys/linux/dl/dynamic-link.h: Ditto.
9776         * libc/sys/linux/dl/kernel-features.h: Ditto.
9777         * libc/sys/linux/dl/ldsodefs.h: Ditto.
9778         * libc/sys/linux/dl/libintl.h: Ditto.
9779         * libc/sys/linux/dl/trusted-dirs.h: Ditto.
9780         * libc/sys/linux/dl/unsecvars.h: Ditto.
9781         * libc/sys/linux/iconv/Makefile.am: Ditto.
9782         * libc/sys/linux/iconv/Makefile.in: Ditto.
9783         * libc/sys/linux/iconv/categories.def: Ditto.
9784         * libc/sys/linux/iconv/dummy-repertoire.c: Ditto.
9785         * libc/sys/linux/iconv/gconv.c: Ditto.
9786         * libc/sys/linux/iconv/gconv_builtin.c: Ditto.
9787         * libc/sys/linux/iconv/gconv_builtin.h: Ditto.
9788         * libc/sys/linux/iconv/gconv_cache.c: Ditto.
9789         * libc/sys/linux/iconv/gconv_charset.h: Ditto.
9790         * libc/sys/linux/iconv/gconv_close.c: Ditto.
9791         * libc/sys/linux/iconv/gconv_conf.c: Ditto.
9792         * libc/sys/linux/iconv/gconv_db.c: Ditto.
9793         * libc/sys/linux/iconv/gconv_dl.c: Ditto.
9794         * libc/sys/linux/iconv/gconv_int.h: Ditto.
9795         * libc/sys/linux/iconv/gconv_open.c: Ditto.
9796         * libc/sys/linux/iconv/gconv_simple.c: Ditto.
9797         * libc/sys/linux/iconv/gconv_trans.c: Ditto.
9798         * libc/sys/linux/iconv/hash-string.h: Ditto.
9799         * libc/sys/linux/iconv/iconv.c: Ditto.
9800         * libc/sys/linux/iconv/iconv.h: Ditto.
9801         * libc/sys/linux/iconv/iconv_charmap.c: Ditto.
9802         * libc/sys/linux/iconv/iconv_close.c: Ditto.
9803         * libc/sys/linux/iconv/iconv_open.c: Ditto.
9804         * libc/sys/linux/iconv/iconvconfig.c: Ditto.
9805         * libc/sys/linux/iconv/iconvconfig.h: Ditto.
9806         * libc/sys/linux/iconv/loadinfo.h: Ditto.
9807         * libc/sys/linux/iconv/localeinfo.h: Ditto.
9808         * libc/sys/linux/iconv/loop.c: Ditto.
9809         * libc/sys/linux/iconv/skeleton.c: Ditto.
9810         * libc/sys/linux/iconv/strtab.c: Ditto.
9811         * libc/sys/linux/include/dl-hash.h: Ditto.
9812         * libc/sys/linux/include/dlfcn.h: Ditto.
9813         * libc/sys/linux/include/fnmatch.h: Ditto.
9814         * libc/sys/linux/include/gconv.h: Ditto.
9815         * libc/sys/linux/include/glob.h: Ditto.
9816         * libc/sys/linux/include/hesiod.h: Ditto.
9817         * libc/sys/linux/include/ifaddrs.h: Ditto.
9818         * libc/sys/linux/include/libc_private.h: Ditto.
9819         * libc/sys/linux/include/link.h: Ditto.
9820         * libc/sys/linux/include/namespace.h: Ditto.
9821         * libc/sys/linux/include/netconfig.h: Ditto.
9822         * libc/sys/linux/include/netdb.h: Ditto.
9823         * libc/sys/linux/include/nsswitch.h: Ditto.
9824         * libc/sys/linux/include/regex.h: Ditto.
9825         * libc/sys/linux/include/resolv.h: Ditto.
9826         * libc/sys/linux/include/rune.h: Ditto.
9827         * libc/sys/linux/include/runetype.h: Ditto.
9828         * libc/sys/linux/include/semaphore.h: Ditto.
9829         * libc/sys/linux/include/setlocale.h: Ditto.
9830         * libc/sys/linux/include/un-namespace.h: Ditto.
9831         * libc/sys/linux/include/wordexp.h: Ditto.
9832         * libc/sys/linux/include/arpa/ftp.h: Ditto.
9833         * libc/sys/linux/include/arpa/inet.h: Ditto.
9834         * libc/sys/linux/include/arpa/nameser.h: Ditto.
9835         * libc/sys/linux/include/arpa/nameser_compat.h: Ditto.
9836         * libc/sys/linux/include/arpa/telnet.h: Ditto.
9837         * libc/sys/linux/include/arpa/tftp.h: Ditto.
9838         * libc/sys/linux/include/net/bpf.h: Ditto.
9839         * libc/sys/linux/include/net/bpf_compat.h: Ditto.
9840         * libc/sys/linux/include/net/bpfdesc.h: Ditto.
9841         * libc/sys/linux/include/net/bridge.h: Ditto.
9842         * libc/sys/linux/include/net/ethernet.h: Ditto.
9843         * libc/sys/linux/include/net/fddi.h: Ditto.
9844         * libc/sys/linux/include/net/if.h: Ditto.
9845         * libc/sys/linux/include/net/if_arc.h: Ditto.
9846         * libc/sys/linux/include/net/if_arp.h: Ditto.
9847         * libc/sys/linux/include/net/if_atm.h: Ditto.
9848         * libc/sys/linux/include/net/if_dl.h: Ditto.
9849         * libc/sys/linux/include/net/if_gif.h: Ditto.
9850         * libc/sys/linux/include/net/if_ieee80211.h: Ditto.
9851         * libc/sys/linux/include/net/if_llc.h: Ditto.
9852         * libc/sys/linux/include/net/if_media.h: Ditto.
9853         * libc/sys/linux/include/net/if_mib.h: Ditto.
9854         * libc/sys/linux/include/net/if_ppp.h: Ditto.
9855         * libc/sys/linux/include/net/if_pppvar.h: Ditto.
9856         * libc/sys/linux/include/net/if_slvar.h: Ditto.
9857         * libc/sys/linux/include/net/if_sppp.h: Ditto.
9858         * libc/sys/linux/include/net/if_stf.h: Ditto.
9859         * libc/sys/linux/include/net/if_tap.h: Ditto.
9860         * libc/sys/linux/include/net/if_tapvar.h: Ditto.
9861         * libc/sys/linux/include/net/if_tun.h: Ditto.
9862         * libc/sys/linux/include/net/if_tunvar.h: Ditto.
9863         * libc/sys/linux/include/net/if_types.h: Ditto.
9864         * libc/sys/linux/include/net/if_var.h: Ditto.
9865         * libc/sys/linux/include/net/if_vlan_var.h: Ditto.
9866         * libc/sys/linux/include/net/intrq.h: Ditto.
9867         * libc/sys/linux/include/net/iso88025.h: Ditto.
9868         * libc/sys/linux/include/net/net_osdep.h: Ditto.
9869         * libc/sys/linux/include/net/netisr.h: Ditto.
9870         * libc/sys/linux/include/net/pfil.h: Ditto.
9871         * libc/sys/linux/include/net/pfkeyv2.h: Ditto.
9872         * libc/sys/linux/include/net/ppp_comp.h: Ditto.
9873         * libc/sys/linux/include/net/ppp_defs.h: Ditto.
9874         * libc/sys/linux/include/net/radix.h: Ditto.
9875         * libc/sys/linux/include/net/raw_cb.h: Ditto.
9876         * libc/sys/linux/include/net/route.h: Ditto.
9877         * libc/sys/linux/include/net/slcompress.h: Ditto.
9878         * libc/sys/linux/include/net/slip.h: Ditto.
9879         * libc/sys/linux/include/net/zlib.h: Ditto.
9880         * libc/sys/linux/include/netinet/icmp6.h: Ditto.
9881         * libc/sys/linux/include/netinet/icmp_var.h: Ditto.
9882         * libc/sys/linux/include/netinet/if_atm.h: Ditto.
9883         * libc/sys/linux/include/netinet/if_ether.h: Ditto.
9884         * libc/sys/linux/include/netinet/igmp.h: Ditto.
9885         * libc/sys/linux/include/netinet/igmp_var.h: Ditto.
9886         * libc/sys/linux/include/netinet/in.h: Ditto.
9887         * libc/sys/linux/include/netinet/in_gif.h: Ditto.
9888         * libc/sys/linux/include/netinet/in_pcb.h: Ditto.
9889         * libc/sys/linux/include/netinet/in_systm.h: Ditto.
9890         * libc/sys/linux/include/netinet/in_var.h: Ditto.
9891         * libc/sys/linux/include/netinet/ip.h: Ditto.
9892         * libc/sys/linux/include/netinet/ip6.h: Ditto.
9893         * libc/sys/linux/include/netinet/ip_dummynet.h: Ditto.
9894         * libc/sys/linux/include/netinet/ip_ecn.h: Ditto.
9895         * libc/sys/linux/include/netinet/ip_encap.h: Ditto.
9896         * libc/sys/linux/include/netinet/ip_flow.h: Ditto.
9897         * libc/sys/linux/include/netinet/ip_fw.h: Ditto.
9898         * libc/sys/linux/include/netinet/ip_icmp.h: Ditto.
9899         * libc/sys/linux/include/netinet/ip_mroute.h: Ditto.
9900         * libc/sys/linux/include/netinet/ip_var.h: Ditto.
9901         * libc/sys/linux/include/netinet/ipprotosw.h: Ditto.
9902         * libc/sys/linux/include/netinet/tcp.h: Ditto.
9903         * libc/sys/linux/include/netinet/tcp_debug.h: Ditto.
9904         * libc/sys/linux/include/netinet/tcp_fsm.h: Ditto.
9905         * libc/sys/linux/include/netinet/tcp_seq.h: Ditto.
9906         * libc/sys/linux/include/netinet/tcp_timer.h: Ditto.
9907         * libc/sys/linux/include/netinet/tcp_var.h: Ditto.
9908         * libc/sys/linux/include/netinet/tcpip.h: Ditto.
9909         * libc/sys/linux/include/netinet/udp.h: Ditto.
9910         * libc/sys/linux/include/netinet/udp_var.h: Ditto.
9911         * libc/sys/linux/include/netinet6/ah.h: Ditto.
9912         * libc/sys/linux/include/netinet6/ah6.h: Ditto.
9913         * libc/sys/linux/include/netinet6/esp.h: Ditto.
9914         * libc/sys/linux/include/netinet6/esp6.h: Ditto.
9915         * libc/sys/linux/include/netinet6/esp_rijndael.h: Ditto.
9916         * libc/sys/linux/include/netinet6/icmp6.h: Ditto.
9917         * libc/sys/linux/include/netinet6/in6.h: Ditto.
9918         * libc/sys/linux/include/netinet6/in6_gif.h: Ditto.
9919         * libc/sys/linux/include/netinet6/in6_ifattach.h: Ditto.
9920         * libc/sys/linux/include/netinet6/in6_pcb.h: Ditto.
9921         * libc/sys/linux/include/netinet6/in6_prefix.h: Ditto.
9922         * libc/sys/linux/include/netinet6/in6_var.h: Ditto.
9923         * libc/sys/linux/include/netinet6/ip6.h: Ditto.
9924         * libc/sys/linux/include/netinet6/ip6_ecn.h: Ditto.
9925         * libc/sys/linux/include/netinet6/ip6_fw.h: Ditto.
9926         * libc/sys/linux/include/netinet6/ip6_mroute.h: Ditto.
9927         * libc/sys/linux/include/netinet6/ip6_var.h: Ditto.
9928         * libc/sys/linux/include/netinet6/ip6protosw.h: Ditto.
9929         * libc/sys/linux/include/netinet6/ipcomp.h: Ditto.
9930         * libc/sys/linux/include/netinet6/ipcomp6.h: Ditto.
9931         * libc/sys/linux/include/netinet6/ipsec.h: Ditto.
9932         * libc/sys/linux/include/netinet6/ipsec6.h: Ditto.
9933         * libc/sys/linux/include/netinet6/mld6_var.h: Ditto.
9934         * libc/sys/linux/include/netinet6/nd6.h: Ditto.
9935         * libc/sys/linux/include/netinet6/pim6.h: Ditto.
9936         * libc/sys/linux/include/netinet6/pim6_var.h: Ditto.
9937         * libc/sys/linux/include/netinet6/raw_ip6.h: Ditto.
9938         * libc/sys/linux/include/netinet6/scope6_var.h: Ditto.
9939         * libc/sys/linux/include/netinet6/tcp6_var.h: Ditto.
9940         * libc/sys/linux/include/netinet6/udp6_var.h: Ditto.
9941         * libc/sys/linux/include/netns/idp.h: Ditto.
9942         * libc/sys/linux/include/netns/idp_var.h: Ditto.
9943         * libc/sys/linux/include/netns/ns.h: Ditto.
9944         * libc/sys/linux/include/netns/ns_error.h: Ditto.
9945         * libc/sys/linux/include/netns/ns_if.h: Ditto.
9946         * libc/sys/linux/include/netns/ns_pcb.h: Ditto.
9947         * libc/sys/linux/include/netns/sp.h: Ditto.
9948         * libc/sys/linux/include/netns/spidp.h: Ditto.
9949         * libc/sys/linux/include/netns/spp_debug.h: Ditto.
9950         * libc/sys/linux/include/netns/spp_timer.h: Ditto.
9951         * libc/sys/linux/include/netns/spp_var.h: Ditto.
9952         * libc/sys/linux/include/rpc/Makefile: Ditto.
9953         * libc/sys/linux/include/rpc/auth.h: Ditto.
9954         * libc/sys/linux/include/rpc/auth_des.h: Ditto.
9955         * libc/sys/linux/include/rpc/auth_kerb.h: Ditto.
9956         * libc/sys/linux/include/rpc/auth_unix.h: Ditto.
9957         * libc/sys/linux/include/rpc/clnt.h: Ditto.
9958         * libc/sys/linux/include/rpc/clnt_soc.h: Ditto.
9959         * libc/sys/linux/include/rpc/clnt_stat.h: Ditto.
9960         * libc/sys/linux/include/rpc/des.h: Ditto.
9961         * libc/sys/linux/include/rpc/des_crypt.h: Ditto.
9962         * libc/sys/linux/include/rpc/nettype.h: Ditto.
9963         * libc/sys/linux/include/rpc/pmap_clnt.h: Ditto.
9964         * libc/sys/linux/include/rpc/pmap_prot.h: Ditto.
9965         * libc/sys/linux/include/rpc/pmap_rmt.h: Ditto.
9966         * libc/sys/linux/include/rpc/raw.h: Ditto.
9967         * libc/sys/linux/include/rpc/rpc.h: Ditto.
9968         * libc/sys/linux/include/rpc/rpc_com.h: Ditto.
9969         * libc/sys/linux/include/rpc/rpc_msg.h: Ditto.
9970         * libc/sys/linux/include/rpc/rpcb_clnt.h: Ditto.
9971         * libc/sys/linux/include/rpc/rpcb_prot.h: Ditto.
9972         * libc/sys/linux/include/rpc/rpcb_prot.x: Ditto.
9973         * libc/sys/linux/include/rpc/rpcent.h: Ditto.
9974         * libc/sys/linux/include/rpc/svc.h: Ditto.
9975         * libc/sys/linux/include/rpc/svc_auth.h: Ditto.
9976         * libc/sys/linux/include/rpc/svc_dg.h: Ditto.
9977         * libc/sys/linux/include/rpc/svc_soc.h: Ditto.
9978         * libc/sys/linux/include/rpc/types.h: Ditto.
9979         * libc/sys/linux/include/rpc/xdr.h: Ditto.
9980         * libc/sys/linux/intl/Makefile.am: Ditto.
9981         * libc/sys/linux/intl/Makefile.in: Ditto.
9982         * libc/sys/linux/intl/bindtextdom.c: Ditto.
9983         * libc/sys/linux/intl/catgets.c: Ditto.
9984         * libc/sys/linux/intl/catgetsinfo.h: Ditto.
9985         * libc/sys/linux/intl/config.h: Ditto.
9986         * libc/sys/linux/intl/dcgettext.c: Ditto.
9987         * libc/sys/linux/intl/dcigettext.c: Ditto.
9988         * libc/sys/linux/intl/dcngettext.c: Ditto.
9989         * libc/sys/linux/intl/dgettext.c: Ditto.
9990         * libc/sys/linux/intl/dngettext.c: Ditto.
9991         * libc/sys/linux/intl/explodename.c: Ditto.
9992         * libc/sys/linux/intl/finddomain.c: Ditto.
9993         * libc/sys/linux/intl/gettext.c: Ditto.
9994         * libc/sys/linux/intl/gettext.h: Ditto.
9995         * libc/sys/linux/intl/gettextP.h: Ditto.
9996         * libc/sys/linux/intl/hash-string.h: Ditto.
9997         * libc/sys/linux/intl/l10nflist.c: Ditto.
9998         * libc/sys/linux/intl/loadinfo.h: Ditto.
9999         * libc/sys/linux/intl/loadmsgcat.c: Ditto.
10000         * libc/sys/linux/intl/locale.alias: Ditto.
10001         * libc/sys/linux/intl/localealias.c: Ditto.
10002         * libc/sys/linux/intl/ngettext.c: Ditto.
10003         * libc/sys/linux/intl/open_catalog.c: Ditto.
10004         * libc/sys/linux/intl/plural.c: Ditto.
10005         * libc/sys/linux/intl/plural.y: Ditto.
10006         * libc/sys/linux/intl/stpcpy.c: Ditto.
10007         * libc/sys/linux/intl/textdomain.c: Ditto.
10008         * libc/sys/linux/linuxthreads/LICENSE: Ditto.
10009         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
10010         * libc/sys/linux/linuxthreads/Makefile.in: Ditto.
10011         * libc/sys/linux/linuxthreads/aclocal.m4: Ditto.
10012         * libc/sys/linux/linuxthreads/attr.c: Ditto.
10013         * libc/sys/linux/linuxthreads/barrier.c: Ditto.
10014         * libc/sys/linux/linuxthreads/bp-sym.h: Ditto.
10015         * libc/sys/linux/linuxthreads/cancel.c: Ditto.
10016         * libc/sys/linux/linuxthreads/condvar.c: Ditto.
10017         * libc/sys/linux/linuxthreads/config.h: Ditto.
10018         * libc/sys/linux/linuxthreads/configure: Ditto.
10019         * libc/sys/linux/linuxthreads/configure.in: Ditto.
10020         * libc/sys/linux/linuxthreads/defs.awk: Ditto.
10021         * libc/sys/linux/linuxthreads/ecmutex.c: Ditto.
10022         * libc/sys/linux/linuxthreads/events.c: Ditto.
10023         * libc/sys/linux/linuxthreads/getcpuclockid.c: Ditto.
10024         * libc/sys/linux/linuxthreads/getreent.c: Ditto.
10025         * libc/sys/linux/linuxthreads/internals.h: Ditto.
10026         * libc/sys/linux/linuxthreads/join.c: Ditto.
10027         * libc/sys/linux/linuxthreads/joinrace.c: Ditto.
10028         * libc/sys/linux/linuxthreads/kernel-features.h: Ditto.
10029         * libc/sys/linux/linuxthreads/libc-internal.h: Ditto.
10030         * libc/sys/linux/linuxthreads/libc-symbols.h: Ditto.
10031         * libc/sys/linux/linuxthreads/linuxthreads.texi: Ditto.
10032         * libc/sys/linux/linuxthreads/lockfile.c: Ditto.
10033         * libc/sys/linux/linuxthreads/manager.c: Ditto.
10034         * libc/sys/linux/linuxthreads/mq_notify.c: Ditto.
10035         * libc/sys/linux/linuxthreads/mutex.c: Ditto.
10036         * libc/sys/linux/linuxthreads/no-tsd.c: Ditto.
10037         * libc/sys/linux/linuxthreads/oldsemaphore.c: Ditto.
10038         * libc/sys/linux/linuxthreads/posix-timer.h: Ditto.
10039         * libc/sys/linux/linuxthreads/prio.c: Ditto.
10040         * libc/sys/linux/linuxthreads/proc_service.h: Ditto.
10041         * libc/sys/linux/linuxthreads/pt-machine.c: Ditto.
10042         * libc/sys/linux/linuxthreads/ptclock_gettime.c: Ditto.
10043         * libc/sys/linux/linuxthreads/ptclock_settime.c: Ditto.
10044         * libc/sys/linux/linuxthreads/ptfork.c: Ditto.
10045         * libc/sys/linux/linuxthreads/pthread.c: Ditto.
10046         * libc/sys/linux/linuxthreads/ptlongjmp.c: Ditto.
10047         * libc/sys/linux/linuxthreads/queue.h: Ditto.
10048         * libc/sys/linux/linuxthreads/reent.c: Ditto.
10049         * libc/sys/linux/linuxthreads/reqsyscalls.c: Ditto.
10050         * libc/sys/linux/linuxthreads/restart.h: Ditto.
10051         * libc/sys/linux/linuxthreads/rwlock.c: Ditto.
10052         * libc/sys/linux/linuxthreads/semaphore.c: Ditto.
10053         * libc/sys/linux/linuxthreads/semaphore.h: Ditto.
10054         * libc/sys/linux/linuxthreads/shlib-compat.h: Ditto.
10055         * libc/sys/linux/linuxthreads/signals.c: Ditto.
10056         * libc/sys/linux/linuxthreads/specific.c: Ditto.
10057         * libc/sys/linux/linuxthreads/spinlock.c: Ditto.
10058         * libc/sys/linux/linuxthreads/spinlock.h: Ditto.
10059         * libc/sys/linux/linuxthreads/sysctl.c: Ditto.
10060         * libc/sys/linux/linuxthreads/td_init.c: Ditto.
10061         * libc/sys/linux/linuxthreads/td_log.c: Ditto.
10062         * libc/sys/linux/linuxthreads/td_symbol_list.c: Ditto.
10063         * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto.
10064         * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto.
10065         * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto.
10066         * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto.
10067         * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto.
10068         * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto.
10069         * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto.
10070         * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto.
10071         * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto.
10072         * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto.
10073         * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto.
10074         * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto.
10075         * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto.
10076         * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto.
10077         * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto.
10078         * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto.
10079         * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto.
10080         * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto.
10081         * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto.
10082         * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto.
10083         * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto.
10084         * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto.
10085         * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto.
10086         * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto.
10087         * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto.
10088         * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto.
10089         * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto.
10090         * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto.
10091         * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto.
10092         * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto.
10093         * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto.
10094         * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto.
10095         * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto.
10096         * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto.
10097         * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto.
10098         * libc/sys/linux/linuxthreads/testrtsig.h: Ditto.
10099         * libc/sys/linux/linuxthreads/thread_db.h: Ditto.
10100         * libc/sys/linux/linuxthreads/thread_dbP.h: Ditto.
10101         * libc/sys/linux/linuxthreads/timer_create.c: Ditto.
10102         * libc/sys/linux/linuxthreads/timer_delete.c: Ditto.
10103         * libc/sys/linux/linuxthreads/timer_getoverr.c: Ditto.
10104         * libc/sys/linux/linuxthreads/timer_gettime.c: Ditto.
10105         * libc/sys/linux/linuxthreads/timer_routines.c: Ditto.
10106         * libc/sys/linux/linuxthreads/timer_settime.c: Ditto.
10107         * libc/sys/linux/linuxthreads/tst-cancel.c: Ditto.
10108         * libc/sys/linux/linuxthreads/tst-context.c: Ditto.
10109         * libc/sys/linux/linuxthreads/tststack.c: Ditto.
10110         * libc/sys/linux/linuxthreads/unload.c: Ditto.
10111         * libc/sys/linux/linuxthreads/weaks.c: Ditto.
10112         * libc/sys/linux/linuxthreads/wrapsyscall.c: Ditto.
10113         * libc/sys/linux/linuxthreads/bits/initspin.h: Ditto.
10114         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Ditto.
10115         * libc/sys/linux/linuxthreads/bits/libc-tsd.h: Ditto.
10116         * libc/sys/linux/linuxthreads/bits/local_lim.h: Ditto.
10117         * libc/sys/linux/linuxthreads/bits/posix_opt.h: Ditto.
10118         * libc/sys/linux/linuxthreads/bits/pthreadtypes.h: Ditto.
10119         * libc/sys/linux/linuxthreads/bits/sigthread.h: Ditto.
10120         * libc/sys/linux/linuxthreads/machine/Makefile.am: Ditto.
10121         * libc/sys/linux/linuxthreads/machine/Makefile.in: Ditto.
10122         * libc/sys/linux/linuxthreads/machine/aclocal.m4: Ditto.
10123         * libc/sys/linux/linuxthreads/machine/configure: Ditto.
10124         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
10125         * libc/sys/linux/linuxthreads/machine/generic/generic-sysd: Ditto.ep.h
10126         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
10127         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Ditto.
10128         * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Ditto.
10129         * libc/sys/linux/linuxthreads/machine/i386/bp-asm.h: Ditto.
10130         * libc/sys/linux/linuxthreads/machine/i386/clone.S: Ditto.
10131         * libc/sys/linux/linuxthreads/machine/i386/configure: Ditto.
10132         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
10133         * libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.S: Ditto.
10134         * libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.h: Ditto.
10135         * libc/sys/linux/linuxthreads/machine/i386/pspinlock.c: Ditto.
10136         * libc/sys/linux/linuxthreads/machine/i386/pt-machine.h: Ditto.
10137         * libc/sys/linux/linuxthreads/machine/i386/sigcontextinfo.h: Ditto.
10138         * libc/sys/linux/linuxthreads/machine/i386/stackinfo.h: Ditto.
10139         * libc/sys/linux/linuxthreads/machine/i386/sysdep.S: Ditto.
10140         * libc/sys/linux/linuxthreads/machine/i386/sysdep.h: Ditto.
10141         * libc/sys/linux/linuxthreads/machine/i386/useldt.h: Ditto.
10142         * libc/sys/linux/machine/i386/dl-machine.h: Ditto.
10143         * libc/sys/linux/net/Makefile.am: Ditto.
10144         * libc/sys/linux/net/Makefile.in: Ditto.
10145         * libc/sys/linux/net/addr2ascii.3: Ditto.
10146         * libc/sys/linux/net/addr2ascii.c: Ditto.
10147         * libc/sys/linux/net/ascii2addr.c: Ditto.
10148         * libc/sys/linux/net/base64.c: Ditto.
10149         * libc/sys/linux/net/bindresvport.c: Ditto.
10150         * libc/sys/linux/net/byteorder.3: Ditto.
10151         * libc/sys/linux/net/ether_addr.c: Ditto.
10152         * libc/sys/linux/net/ethers.3: Ditto.
10153         * libc/sys/linux/net/getaddrinfo.3: Ditto.
10154         * libc/sys/linux/net/getaddrinfo.c: Ditto.
10155         * libc/sys/linux/net/gethostbydns.c: Ditto.
10156         * libc/sys/linux/net/gethostbyht.c: Ditto.
10157         * libc/sys/linux/net/gethostbyname.3: Ditto.
10158         * libc/sys/linux/net/gethostbynis.c: Ditto.
10159         * libc/sys/linux/net/gethostnamadr.c: Ditto.
10160         * libc/sys/linux/net/getifaddrs.3: Ditto.
10161         * libc/sys/linux/net/getifaddrs.c: Ditto.
10162         * libc/sys/linux/net/getipnodebyname.3: Ditto.
10163         * libc/sys/linux/net/getnameinfo.3: Ditto.
10164         * libc/sys/linux/net/getnameinfo.c: Ditto.
10165         * libc/sys/linux/net/getnetbydns.c: Ditto.
10166         * libc/sys/linux/net/getnetbyht.c: Ditto.
10167         * libc/sys/linux/net/getnetbynis.c: Ditto.
10168         * libc/sys/linux/net/getnetent.3: Ditto.
10169         * libc/sys/linux/net/getnetnamadr.c: Ditto.
10170         * libc/sys/linux/net/getproto.c: Ditto.
10171         * libc/sys/linux/net/getprotoent.3: Ditto.
10172         * libc/sys/linux/net/getprotoent.c: Ditto.
10173         * libc/sys/linux/net/getprotoname.c: Ditto.
10174         * libc/sys/linux/net/getservbyname.c: Ditto.
10175         * libc/sys/linux/net/getservbyport.c: Ditto.
10176         * libc/sys/linux/net/getservent.3: Ditto.
10177         * libc/sys/linux/net/getservent.c: Ditto.
10178         * libc/sys/linux/net/herror.c: Ditto.
10179         * libc/sys/linux/net/hesiod.3: Ditto.
10180         * libc/sys/linux/net/hesiod.c: Ditto.
10181         * libc/sys/linux/net/if_indextoname.3: Ditto.
10182         * libc/sys/linux/net/ifname.c: Ditto.
10183         * libc/sys/linux/net/inet.3: Ditto.
10184         * libc/sys/linux/net/inet6_option_s: Ditto.pace.3
10185         * libc/sys/linux/net/inet6_rthdr_space.3: Ditto.
10186         * libc/sys/linux/net/inet_addr.c: Ditto.
10187         * libc/sys/linux/net/inet_lnaof.c: Ditto.
10188         * libc/sys/linux/net/inet_makeaddr.c: Ditto.
10189         * libc/sys/linux/net/inet_net.3: Ditto.
10190         * libc/sys/linux/net/inet_net_ntop.c: Ditto.
10191         * libc/sys/linux/net/inet_net_pton.c: Ditto.
10192         * libc/sys/linux/net/inet_neta.c: Ditto.
10193         * libc/sys/linux/net/inet_netof.c: Ditto.
10194         * libc/sys/linux/net/inet_network.c: Ditto.
10195         * libc/sys/linux/net/inet_ntoa.c: Ditto.
10196         * libc/sys/linux/net/inet_ntop.c: Ditto.
10197         * libc/sys/linux/net/inet_pton.c: Ditto.
10198         * libc/sys/linux/net/innetgr-stub.c: Ditto.
10199         * libc/sys/linux/net/ip6opt.c: Ditto.
10200         * libc/sys/linux/net/iso_addr.3: Ditto.
10201         * libc/sys/linux/net/iso_addr.c: Ditto.
10202         * libc/sys/linux/net/issetugid-stub.c: Ditto.
10203         * libc/sys/linux/net/linkaddr.3: Ditto.
10204         * libc/sys/linux/net/linkaddr.c: Ditto.
10205         * libc/sys/linux/net/map_v4v6.c: Ditto.
10206         * libc/sys/linux/net/name6.c: Ditto.
10207         * libc/sys/linux/net/namespace.h: Ditto.
10208         * libc/sys/linux/net/ns.3: Ditto.
10209         * libc/sys/linux/net/ns_addr.c: Ditto.
10210         * libc/sys/linux/net/ns_name.c: Ditto.
10211         * libc/sys/linux/net/ns_netint.c: Ditto.
10212         * libc/sys/linux/net/ns_ntoa.c: Ditto.
10213         * libc/sys/linux/net/ns_parse.c: Ditto.
10214         * libc/sys/linux/net/ns_print.c: Ditto.
10215         * libc/sys/linux/net/ns_ttl.c: Ditto.
10216         * libc/sys/linux/net/nsap_addr.c: Ditto.
10217         * libc/sys/linux/net/nsdispatch.3: Ditto.
10218         * libc/sys/linux/net/nsdispatch.c: Ditto.
10219         * libc/sys/linux/net/nslexer.c: Ditto.
10220         * libc/sys/linux/net/nslexer.l: Ditto.
10221         * libc/sys/linux/net/nsparser.c: Ditto.
10222         * libc/sys/linux/net/nsparser.h: Ditto.
10223         * libc/sys/linux/net/nsparser.y: Ditto.
10224         * libc/sys/linux/net/rcmd.3: Ditto.
10225         * libc/sys/linux/net/rcmd.c: Ditto.
10226         * libc/sys/linux/net/rcmdsh.3: Ditto.
10227         * libc/sys/linux/net/rcmdsh.c: Ditto.
10228         * libc/sys/linux/net/recv.c: Ditto.
10229         * libc/sys/linux/net/res_comp.c: Ditto.
10230         * libc/sys/linux/net/res_config.h: Ditto.
10231         * libc/sys/linux/net/res_data.c: Ditto.
10232         * libc/sys/linux/net/res_debug.c: Ditto.
10233         * libc/sys/linux/net/res_init.c: Ditto.
10234         * libc/sys/linux/net/res_mkquery.c: Ditto.
10235         * libc/sys/linux/net/res_mkupdate.c: Ditto.
10236         * libc/sys/linux/net/res_query.c: Ditto.
10237         * libc/sys/linux/net/res_send.c: Ditto.
10238         * libc/sys/linux/net/res_update.c: Ditto.
10239         * libc/sys/linux/net/resolver.3: Ditto.
10240         * libc/sys/linux/net/rthdr.c: Ditto.
10241         * libc/sys/linux/net/send.c: Ditto.
10242         * libc/sys/linux/net/un-namespace.h: Ditto.
10243         * libc/sys/linux/net/vars.c: Ditto.
10244         * libc/sys/linux/stdlib/COPYRIGHT: Ditto.
10245         * libc/sys/linux/stdlib/Makefile.am: Ditto.
10246         * libc/sys/linux/stdlib/Makefile.in: Ditto.
10247         * libc/sys/linux/stdlib/cclass.h: Ditto.
10248         * libc/sys/linux/stdlib/cname.h: Ditto.
10249         * libc/sys/linux/stdlib/collate.c: Ditto.
10250         * libc/sys/linux/stdlib/collate.h: Ditto.
10251         * libc/sys/linux/stdlib/collcmp.c: Ditto.
10252         * libc/sys/linux/stdlib/engine.c: Ditto.
10253         * libc/sys/linux/stdlib/fnmatch.3: Ditto.
10254         * libc/sys/linux/stdlib/fnmatch.c: Ditto.
10255         * libc/sys/linux/stdlib/glob.3: Ditto.
10256         * libc/sys/linux/stdlib/glob.c: Ditto.
10257         * libc/sys/linux/stdlib/reallocf.c: Ditto.
10258         * libc/sys/linux/stdlib/regcomp.c: Ditto.
10259         * libc/sys/linux/stdlib/regerror.c: Ditto.
10260         * libc/sys/linux/stdlib/regex.3: Ditto.
10261         * libc/sys/linux/stdlib/regex2.h: Ditto.
10262         * libc/sys/linux/stdlib/regexec.c: Ditto.
10263         * libc/sys/linux/stdlib/regfree.c: Ditto.
10264         * libc/sys/linux/stdlib/utils.h: Ditto.
10265         * libc/sys/linux/stdlib/wordexp.c: Ditto.
10266         * libc/sys/linux/stdlib/wordfree.c: Ditto.
10267         * libc/sys/linux/sys/dlfcn.h: Ditto.
10268         * libc/sys/linux/sys/elfclass.h: Ditto.
10269         * libc/sys/linux/sys/event.h: Ditto.
10270         * libc/sys/linux/sys/ioccom.h: Ditto.
10271         * libc/sys/linux/sys/libc-tsd.h: Ditto.
10272         * libc/sys/linux/sys/link.h: Ditto.
10273         * libc/sys/linux/sys/lock.h: Ditto.
10274         * libc/sys/linux/sys/param.h: Ditto.
10275         * libc/sys/linux/sys/socket.h: Ditto.
10276         * libc/sys/linux/sys/sockio.h: Ditto.
10277
10278 2003-05-28  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
10279
10280         * newlib/libc/machine/h8300/memcpy.S: Use .h8300hn and .h8300sn for
10281         normal mode
10282         * newlib/libc/machine/h8300/memset.S: Likewise
10283         * newlib/lib/machine/h8300/reg_memcpy.S: Likewise
10284         * newlib/lib/machine/h8300/reg_memset.S: Likewise
10285         * newlib/lib/machine/h8300/setjmp.S: Likewise
10286         * newlib/lib/machine/h8300/strcmp.S: Likewise
10287         * newlib/lib/sys/h8300hms/crt0.S: Likewise
10288
10289 2003-05-13  Corinna Vinschen  <corinna@vinschen.de>
10290
10291         * libc/ctype/ctype_.c: Remove checks for deprecated __CYGWIN32__.
10292         * libc/include/stdio.h: Ditto.
10293         * libc/include/sys/config.h: Ditto.
10294         * libc/stdio/mktemp.c: Ditto.
10295
10296 2003-05-13  Corinna Vinschen  <corinna@vinschen.de>
10297
10298         * libc/locale/ldpart.c (__part_load_locale): Substitute
10299         __CYGWIN_USE_BIG_TYPES__ by __USE_INTERNAL_STAT64.
10300         * libc/search/hash.c (__hash_open): Ditto.
10301         (init_hash): Ditto.
10302         * libc/stdio/fseek.c (fseek): Ditto.
10303         * libc/stdio/makebuf.c (__smakebuf): Ditto.
10304         * libc/stdio/mktemp.c (_gettemp): Ditto.
10305
10306 2003-05-12  Corinna Vinschen  <corinna@vinschen.de>
10307
10308         * libc/include/stdio.h: Change one __CYGWIN__ to __CYGWIN32__.
10309
10310 2003-05-12  Corinna Vinschen  <corinna@vinschen.de>
10311
10312         * configure.host: Accomodate removing the libc/sys/cygwin dir.
10313         * libc/locale/ldpart.c (__part_load_locale): Use 64 bit stat call
10314         if __CYGWIN_USE_BIG_TYPES__ is set.
10315         * libc/search/hash.c (__hash_open): Ditto.
10316         (init_hash): Ditto.
10317         * libc/stdio/fseek.c (fseek): Ditto.
10318         * libc/stdio/makebuf.c (__smakebuf): Ditto.
10319         * libc/stdio/mktemp.c (_gettemp): Ditto.
10320         * libc/sys/cygwin/Makefile.am: Remove.
10321         * libc/sys/cygwin/Makefile.in: Remove.
10322         * libc/sys/cygwin/aclocal.m4: Remove.
10323         * libc/sys/cygwin/configure: Remove.
10324         * libc/sys/cygwin/configure.in: Remove.
10325         * libc/sys/cygwin/crt0.c: Move to winsup/cygwin directory.
10326         * libc/sys/cygwin/sys/dirent.h: Move to winsup/cygwin/include/sys
10327         directory.
10328         * libc/sys/cygwin/sys/param.h: Ditto.
10329         * libc/sys/cygwin/sys/utime.h: Ditto.
10330         * libc/sys/cygwin/sys/utmp.h: Ditto.
10331
10332 2003-05-11  Corinna Vinschen  <corinna@vinschen.de>
10333
10334         * libc/include/sys/types.h: Don't define key_t for Cygwin.
10335
10336 2003-05-10  Christopher Faylor  <cgf@redhat.com>
10337
10338         * libc/sys/cygwin/sys/dirent.h (struct dirent): Accommodate (slightly)
10339         64 bit inodes.
10340
10341 2003-05-09  Corinna Vinschen  <corinna@vinschen.de>
10342
10343         * libc/include/sys/config.h: Remove all Cygwin specific configuration.
10344         Include cygwin/config.h instead.
10345
10346 2003-04-16  Jeff Johnston  <jjohnstn@redhat.com>
10347
10348         * newlib/libc/machine/powerpc (ato*fix*.c,strto*fix*.c): Shield
10349         all code with #ifdef __SPE__ test.
10350         * newlib/libc/machine/powerpc (simdldtoa.c, ufix64toa.c): Ditto.
10351
10352 2003-04-15  Chris January <chris@atomice.net>
10353
10354         * newlib/libc/include/sys/unistd.h: add declaration for gethostid on
10355         Cygwin.
10356
10357 2003-04-09  J"orn Rennecke <joern.rennecke@superh.com>
10358
10359         * libc/machine/sh/memset.S: Avoid clobbering volatile
10360         objects following a tiny to-be-set array in the same quadword.
10361
10362 2001-04-09  Corinna Vinschen  <corinna@vinschen.de>
10363
10364         * libc/include/wchar.h: Add definitions for wcswidth and wcwidth.
10365         * libc/string/Makefile.am: Add wcswidth.c and wcwidth.c
10366         * libc/string/Makefile.in: Regenerated.
10367         * libc/string/wcswidth.c: New file.
10368         * libc/string/wcwidth.c: New file.
10369         * libc/string/wcstrings.tex: Add wcswidth and wcwidth.
10370
10371 Thu Apr  3 14:01:16 2003  J"orn Rennecke <joern.rennecke@superh.com>
10372
10373         * libc/machine/sh/memset.S: Fix problem with alloco region
10374         exceeding destination region for length >= 88 bytes, start
10375         & 0x16 == 0, end & 0x1f == 18.
10376
10377 2001-04-03  Corinna Vinschen  <corinna@vinschen.de>
10378
10379         * libc/string/wcscoll.c: Fix comment.
10380
10381 2001-04-02  Corinna Vinschen  <corinna@vinschen.de>
10382
10383         * libc/include/wchar.h: Add definition for wcscoll.
10384         * libc/string/Makefile.am: Add wcscoll.c.
10385         * libc/string/Makefile.in: Regenerated.
10386         * libc/string/wcscoll.c: New file.
10387         * libc/string/wcstrings.tex: Add wcscoll.
10388
10389 2003-04-01  Corinna Vinschen  <corinna@vinschen.de>
10390
10391         * libc/stdio/sscanf.c: Update flags description.
10392         * libc/stdio/vfscanf.c: Add CHAR flag value to denote 8 bit target
10393         type.
10394         (__svfscanf_r): Add 'hh' and 'll' handling.
10395
10396 2003-04-01  Corinna Vinschen  <corinna@vinschen.de>
10397
10398         * libc/sys/cygwin/sys/dirent.h (struct DIR): Change type of
10399         __d_position member to _off_t.
10400
10401 2003-03-20  Jeff Johnston  <jjohnstn@redhat.com>
10402
10403         * libc/stdio/vfscanf.c (__svfscanf_r): For floating point conversion,
10404         count all characters used to create number against maximum width.
10405         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
10406
10407 2003-03-18  D.Venkatasubramanian  <dvenkat@noida.hcltech.com>
10408
10409         * libc/include/sys/h8300hms/crt0.S[__SIMULATOR__]: Add commandline
10410         support.
10411         * configure.host (h8300*-*-*): Added comment regarding -D__SIMULATOR__
10412         flag to support simulator only extensions.
10413
10414 2003-03-17  Bob Cassels  <bcassels@abinitio.com>
10415
10416         * libc/string/wcschr.c: (wcschr): Look for character first,
10417         then for end of string, so you can do wcschr(x, '\0').
10418
10419 2003-03-10  Corinna Vinschen  <corinna@vinschen.de>
10420
10421         * libc/include/stdio.h: Declare fgetpos, fsetpos, fseeko and ftello
10422         with internal (_fpos_t and _off_t) datatypes when compiling newlib.
10423         * libc/include/sys/unistd.h: Declare _lseek using _off_t.
10424         * libc/reent/lseekr.c (_lseek_r): Use _off_t instead of off_t.
10425         * libc/stdio/fseeko.c (fseeko): Ditto.
10426         * libc/stdio/ftello.c (ftello): Ditto.
10427         * libc/stdio/stdio.c (__swrite): Ditto.
10428         (__sseek): Ditto.
10429         * libc/stdio/fgetpos.c (fgetpos): Use _fpos_t instead of fpos_t.
10430         * libc/stdio/fseek.c (fseek): Ditto.
10431         * libc/stdio/fsetpos.c (fsetpos): Ditto.
10432         * libc/stdio/ftell.c (ftell): Ditto.
10433         * libc/stdio/local.h: Declare __sseek using _off_t.
10434
10435 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
10436
10437         * libc/reent/lseekr.c (lseek_r): Use _off_t instead of off_t.
10438
10439 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
10440
10441         * libc/include/sys/config.h: Define __CYGWIN_USE_BIG_TYPES__ for
10442         Cygwin.
10443
10444 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
10445
10446         * libc/include/pwd.h: Add guards to avoid type clashes when compiling
10447         Cygwin.
10448         * libc/include/sys/stat.h: Ditto.
10449         * libc/include/sys/unistd.h: Ditto.
10450         * libc/sys/cygwin/sys/dirent.h: Ditto.
10451
10452 2003-03-07  Christopher Faylor  <cgf@redhat.com>
10453
10454         * libc/include/sys/unistd.h: Guard getopt.h call to force only
10455         declaration of getopt and avoid getopt_long declaration.
10456         * libc/sys/cygwin/include/unistd.h: Remove.
10457
10458 2003-03-07  Corinna Vinschen  <corinna@vinschen.de>
10459
10460         * configure.host: Define stdio64_dir for Cygwin.
10461         * libc/include/stdio.h: Change definition of fpos_t to fulfill
10462         Cygwin 64bit file access requirements.
10463         Drop definition of f*64() functions when compiled for Cygwin.
10464         * libc/include/sys/config.h: Define __LARGE64_FILES for Cygwin.
10465         * libc/reent/lseek64r.c: Use _off64_t instead of off64_t.
10466         * libc/stdio64/local64.h: Use _fpos64_t instead of fpos64_t.
10467
10468 2003-03-07   Jeff Johnston  <jjohnstn@redhat.com>
10469
10470         * libc/include/sys/reent.h: Remove extraneous _sig_func
10471         declaration.
10472
10473 2003-02-25   D.Venkatasubramanian <dvenkat@noida.hcltech.com>
10474
10475         * libc/sys/h8300hms/Makefile.am: Add support for new files.
10476         * libc/sys/h8300hms/Makefile.in: Regenerated.
10477         * libc/sys/h8300hms/close.S: New file.
10478         * libc/sys/h8300hms/fstat.S: Ditto.
10479         * libc/sys/h8300hms/lseek.S: Ditto.
10480         * libc/sys/h8300hms/open.S: Ditto.
10481         * libc/sys/h8300hms/stat.S: Ditto.
10482         * libc/sys/h8300hms/read.S: New file to replace read.c.
10483         * libc/sys/h8300hms/read.c: Removed.
10484         * libc/sys/h8300hms/syscalls.c: Removed functions _open,
10485         _lseek, _close, _stat, _fstat.
10486         * libc/sys/h8300hms/write.S: New file to replace write.c.
10487         * libc/sys/h8300hms/write.c: Removed.
10488
10489 2003-02-20  Nick Clifton  <nickc@redhat.com>
10490
10491         * Add support for Cirrus Maverick ARM co-processor:
10492
10493         2000-09-13  Aldy Hernandez  <aldyh@redhat.com>
10494
10495                 * libc/include/machine/ieeefp.h: Set IEEE_BIG_ENDIAN or
10496                 IEEE_LITTLE_ENDIAN depending on endian mode (cirrus).
10497
10498         2000-08-11  Aldy Hernandez  <aldyh@redhat.com>
10499
10500                 * configure.host: set sys_dir, syscall_dir, and
10501                 newlib_cflags for ep9312 host.
10502
10503         * configure.host: Restore alpha sorting of entries in case
10504         statements.
10505
10506 2003-02-19  Jeff Johnston  <jjohnstn@redhat.com>
10507
10508         * libc/stdlib/mallocr.c (unlink): Revert 02/18 fix.
10509
10510 2003-02-18  Christian Groessler  <chris@groessler.org>
10511
10512         * libc/machine/z8k/setjmp.S (_setjmp / _longjmp): Fix to
10513         support z8001 segmented mode.
10514
10515 2003-02-18  Earnie Boyd  <earnie@users.sf.net>
10516
10517         * libc/stdlib/mallocr.c (unlink): Don't assign a value to a pointer
10518         with a NULL value.
10519
10520 2003-02-10  Christopher Faylor  <cgf@redhat.com>
10521
10522         * libc/include/sys/types.h: Don't define __MS_types__ for Cygwin.
10523         Don't define some types under cygwin.
10524
10525 2003-02-07  Jeff Johnston  <jjohnstn@redhat.com>
10526
10527         * acinclude.m4 (--disable-newlib-supplied-syscalls): New configuration
10528         option to allow disabling of syscalls being supplied in newlib.
10529         * aclocal.m4: Regenerated.
10530         * configure: Ditto.
10531         * configure.host: Add support of new configuration option and add
10532         -D__NO_SYSCALLS__ if newlib supplied syscalls are disabled.
10533         * doc/aclocal.m4: Regenerated.
10534         * doc/configure: Ditto.
10535         * libc/*aclocal.m4: Ditto.
10536         * libc/*configure: Ditto.
10537         * libm/*aclocal.m4: Ditto.
10538         * libm/*configure: Ditto.
10539         * libc/sys/arm/Makefile.am: Don't build syscalls.o if new option
10540         is disabled.
10541         * libc/sys/arm/Makefile.in: Regenerated.
10542
10543 2003-02-05  Jonathan Larmour  <jifl@eCosCentric.com>
10544
10545         * libc/stdio/vsprintf.c (vsprintf, _vsprintf_r): Set _file fd to
10546         -1 to be sure it cannot later match a valid file fd causing
10547         isatty() to return 1.
10548         * libc/stdio/asprintf.c (asprintf, _asprintf_r): Ditto.
10549         * libc/stdio/sprintf.c (sprintf, _sprintf_r): Ditto.
10550         * libc/stdio/vasprintf.c (vasprintf, _vasprintf_r): Ditto.
10551
10552 2003-02-03  Jeff Johnston  <jjohnstn@redhat.com>
10553
10554         * libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate the format
10555         buffer based on the precision, after we have processed the input value
10556         in a local buffer and know its relative magnitude.
10557
10558 2003-01-31  Michael Snyder  <msnyder@redhat.com>
10559
10560         * libc/sys/h8300hms/_exit.c (_exit, __exit):  Slip a magic cookie
10561         into registers r1 and r2, so that the simulator can distinguish
10562         this trap from a breakpoint trap.  Copied from libgloss.
10563
10564 2003-01-31  Michael Snyder  <msnyder@redhat.com>
10565
10566         * libc/sys/h8300hms/crt0.S (_start): Change local label
10567         from .loop to .Loop, so that ld and gdb will ignore it.
10568
10569 2003-01-29  Jason Tishler  <jason@tishler.net>
10570
10571         * libc/include/time.h: Declare nanosleep() under Cygwin.
10572
10573 2003-01-24  Nick Clifton  <nickc@redhat.com>
10574
10575         * Add sh2e support:
10576
10577         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
10578
10579                 * libc/machine/sh/asm.h: Added __SH2E__ next to __SH3E__.
10580                 * libc/machine/sh/setjmp.S: Likewise.
10581                 * libc/include/machine/ieeefp.h: Likewise.
10582
10583 2003-01-24  Corinna Vinschen  <corinna@vinschen.de>
10584
10585         * libc/include/sys/unistd.h: Add setregid and setreuid declarations
10586         for Cygwin.
10587
10588 2003-01-21 Anita Kulkarni  <anitak@kpit.com>
10589
10590         * libc/time/difftime.c : Typecast the result to double.
10591
10592 2003-01-20  Christopher Faylor  <cgf@redhat.com>
10593
10594         * libc/include/sys/unistd.h: Add rresvport declaration for cygwin.
10595
10596 2003-01-18  Nick Clifton  <nickc@redhat.com>
10597
10598         * libc/include/machine/ieeefp.h : Define __IEEE_BIG_ENDIAN,
10599         __SMALL_BITFIELDS and _DOUBLE_IS_32BITS for IP2K.
10600
10601 2003-01-16  Joel Sherrill <joel@OARcorp.com>
10602
10603         * libc/sys/rtems/include/limits.h, libc/sys/rtems/sys/param.h,
10604         libc/sys/rtems/sys/syslimits.h: Update to be in sync with what
10605         constants are defined in each file in the shared versions in
10606         libc/include.
10607         * libc/sys/rtems/crt0.c: Define extra symbols on SH and HP-PA to
10608         autoconf can link programs.
10609         * libc/include/machine/types.h: Explicitly specify signed on
10610         intXX_t types to ensure they are signed.
10611
10612 2003-01-14  Christopher Faylor  <cgf@redhat.com>
10613
10614         * libc/time/strftime.c (strftime): Add '%h' and '%l, %k' GNU
10615         extensions.
10616
10617 2003-01-08  Richard Sandiford  <rsandifo@redhat.com>
10618
10619         * configure.host (mips64vr-elf, mips64vrel-elf): New config.
10620
10621 2003-01-07  Charles Wilson  <cwilson@ece.gatech.edu>
10622
10623         * libc/stdio/sprintf.c: fix typo
10624         * libc/stdio/vfprintf.c: fix typo
10625
10626 2003-01-07  Jeff Johnston  <jjohnstn@redhat.com>
10627
10628         * configure.host: Support long double I/O for x86-linux.
10629         * libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate a buffer
10630         large enough to hold formatted result.
10631         * libc/machine/powerpc/simdldtoa.c (_simdldtoa_r): Ditto.
10632
10633 2003-01-06  Charles Wilson  <cwilson@ece.gatech.edu>
10634
10635         * Makefile.am: Add vasprintf.
10636         * Makefile.in: Regenerated.
10637
10638 2003-01-06  Charles Wilson  <cwilson@ece.gatech.edu>
10639
10640         * asprintf.c (_asprintf_r): insure both declarations
10641         are the same.
10642
10643 2002-12-28  Christopher Faylor  <cgf@redhat.com>
10644
10645         * libc/include/sys/unistd.h: Under cygwin, just include getopt.h rather
10646         than defining getopt directly.
10647
10648 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
10649
10650         * NEWS: Update with 1.11.0 info.
10651         * README: Ditto.
10652         * acinclude.m4: Change version number to 1.11.0.
10653         * aclocal.m4: Regenerated.
10654         * configure: Ditto.
10655         * doc/aclocal.m4: Ditto.
10656         * doc/configure: Ditto.
10657         * libc/*/aclocal.m4: Ditto.
10658         * libc/*/configure: Ditto.
10659         * libc/libc.texinfo: Ditto.
10660         * libm/*/aclocal.m4: Ditto.
10661         * libm/*/configure: Ditto.
10662         * libm/libm.texinfo: Ditto.
10663         * libc/sys/linux/shared.ld: Add VERS_1.11.
10664
10665 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
10666
10667         * libc/machine/i386/f_atan2.S: Change copyright from Cygnus
10668         Solutions to Red Hat Inc.
10669         * libc/machine/i386/f_atan2f.S: Ditto.
10670         * libc/machine/i386/f_exp.c: Ditto.
10671         * libc/machine/i386/f_expf.c: Ditto.
10672         * libc/machine/i386/f_frexp.S: Ditto.
10673         * libc/machine/i386/f_frexpf.S: Ditto.
10674         * libc/machine/i386/f_ldexp.S: Ditto.
10675         * libc/machine/i386/f_ldexpf.S: Ditto.
10676         * libc/machine/i386/f_log.S: Ditto.
10677         * libc/machine/i386/f_log10.S: Ditto.
10678         * libc/machine/i386/f_log10f.S: Ditto.
10679         * libc/machine/i386/f_logf.S: Ditto.
10680         * libc/machine/i386/f_pow.c: Ditto.
10681         * libc/machine/i386/f_powf.c: Ditto.
10682         * libc/machine/i386/f_tan.S: Ditto.
10683         * libc/machine/i386/f_tanf.S: Ditto.
10684         * libc/machine/i386/memchr.S: Ditto.
10685         * libc/machine/i386/memcmp.S: Ditto.
10686         * libc/machine/i386/memcpy.S: Ditto.
10687         * libc/machine/i386/memmove.S: Ditto.
10688         * libc/machine/i386/memset.S: Ditto.
10689         * libc/machine/i386/strchr.S: Ditto.
10690         * libc/machine/i386/strlen.S: Ditto.
10691         * libm/machine/i386/f_atan2.S: Ditto.
10692         * libm/machine/i386/f_atan2f.S: Ditto.
10693         * libm/machine/i386/f_exp.c: Ditto.
10694         * libm/machine/i386/f_expf.c: Ditto.
10695         * libm/machine/i386/f_frexp.S: Ditto.
10696         * libm/machine/i386/f_frexpf.S: Ditto.
10697         * libm/machine/i386/f_ldexp.S: Ditto.
10698         * libm/machine/i386/f_ldexpf.S: Ditto.
10699         * libm/machine/i386/f_log.S: Ditto.
10700         * libm/machine/i386/f_log10.S: Ditto.
10701         * libm/machine/i386/f_log10f.S: Ditto.
10702         * libm/machine/i386/f_logf.S: Ditto.
10703         * libm/machine/i386/f_pow.c: Ditto.
10704         * libm/machine/i386/f_powf.c: Ditto.
10705         * libm/machine/i386/f_tan.S: Ditto.
10706         * libm/machine/i386/f_tanf.S: Ditto.
10707
10708 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
10709
10710         * libc/stdlib/environ.c: Update license to Red Hat.
10711         * libc/machine/hppa/setjmp.S: Ditto.
10712         * libm/test/Makefile.in: Ditto.
10713
10714 2002-12-19  Jeff Johnston  <jjohnstn@redhat.com>
10715
10716         * configure.host: Remove references to go32.
10717         * libc/sys/go32/*: Removed.
10718
10719 2002-12-16  Kazu Hirata  <kazu@cs.umass.edu>
10720
10721         * libc/include/sys/config.h: Change setting of INT_MAX
10722         and UINT_MAX, to use __INT_MAX__ for __H8300__, __H8300H__,
10723         __H8300S__.  Also consolidate flag settings for these
10724         platforms.
10725
10726 2002-12-10  Joel Sherrill  <joel@OARcorp.com>
10727
10728         * libc/include/machine/setjmp.h: Make sure _JBLEN is defined
10729         for i386-rtems targets.
10730
10731 2002-12-06  Jeff Johnston  <jjohnstn@redhat.com>
10732
10733         * libc/include/stdlib.h (strtof): New prototype (from C99).
10734         (strtodf): Changed from prototype to macro which redefines
10735         to strtof.
10736         * libc/stdlib/atof.c: Change documentation to refer to strtof
10737         instead of strtodf.
10738         * libc/stdlib/atoff.c (atoff): Change to call strtof instead of
10739         strtodf.
10740         * libc/stdlib/strtod.c (strtodf): Renamed to strtof.
10741         (strtof): New function.
10742         * libm/test/convert.c (test_strtodf): Renamed to test_strtof which
10743         calls strtof.
10744
10745 2002-11-27  Christopher Faylor  <cgf@redhat.com>
10746
10747         * libc/string/memset.c (memset): Fix comment.
10748
10749 2002-11-26  Christopher Faylor  <cgf@redhat.com>
10750
10751         * libc/string/memset.c (memset): Move initialization of 'd' earlier in
10752         function.
10753
10754 2002-11-25  Christopher Faylor  <cgf@redhat.com>
10755
10756         * libc/string/memset.c (memset): Minor optimization: Use new 'd'
10757         variable, introduced below, everywhere.
10758
10759 2002-11-25  Kazu Hirata  <kazu@cs.umass.edu>
10760
10761         * libc/string/memset.c (memset): Make it safe even if
10762         sizeof (int) = 2.
10763
10764 2002-11-22  Joe Buehler  <jbuehler@hekimian.com>
10765
10766         * configure.in: Change check for libc/include in ${CC} to
10767         use an intermediate value so as to work with different shells.
10768         * configure: Regenerated.
10769         * Makefile.in: Ditto.
10770
10771 2002-11-22  Vijay L. Khuspe  <vijayk1@kpit.com>
10772
10773         * libc/sys/h8300hms/read.c: Add support for normal mode
10774         architecture.
10775
10776 2002-11-20  Ryo Tsuruta  <ryo@kitanet.ne.jp>
10777
10778         * libc/machine/h8300/setjmp.S (setjmp, longjmp): Combine common
10779         code for __H8300H__ and __H8300S__.  Also return 32-bit return code
10780         when -mint32 is used.
10781
10782 2002-11-18  Nick Clifton  <nickc@redhat.com>
10783
10784         * libc/sys/arm/crt0.S: Add NULL to end of argv array.
10785
10786 2002-11-14  Jeff Johnston  <jjohnstn@redhat.com>
10787
10788         * testsuite/lib/passfail.exp (newlib_pass_fail): Changed to
10789         only issue one pass/fail message for a compile/link/execute.
10790         * testsuite/newlib.elix/elix.exp: New file.
10791         * testsuite/newlib.elix/tmmap.c: Ditto.
10792
10793 2002-11-06  Christopher Faylor  <cgf@redhat.com>
10794
10795         * libc/stdlib/malign.c: Don't compile if MALLOC_PROVIDED.
10796         * libc/stdlib/mlock.c: Ditto.
10797         * libc/stdlib/msize.c: Ditto.
10798         * libc/stdlib/msize.c: Ditto.
10799         * libc/stdlib/mtrim.c: Ditto.
10800         * libc/stdlib/valloc.c: Ditto.
10801
10802 2002-11-12  Jeff Johnston  <jjohnstn@redhat.com>
10803
10804         * libc/stdlib/ldtoa.c (e64toe): When checking the exponent
10805         for inf/nan, make sure that the check ignores the sign bit.
10806
10807 2002-11-07  Joel Sherrill <joel@OARcorp.com>
10808
10809         * libc/sys/rtems/machine: New directory.
10810         * libc/sys/rtems/machine/limits.h, libc/sys/rtems/machine/param.h,
10811         libc/sys/rtems/sys/param.h, libc/sys/rtems/sys/syslimits.h,
10812         libc/sys/rtems/sys/utime.h: New files added to make *-rtems newlib
10813         targets more BSD like when installed without requiring files to
10814         be overwritten at install point when RTEMS itself is installed.
10815         * Makefile.am: Pick up system dependent machine .h files such as
10816         might be found on a BSD-ish system.
10817         * Makefile.in: Regenerate.
10818         * libc/include/machine/types.h: When on an RTEMS target, define a
10819         few BSD flavor types.
10820
10821 2002-11-06  Sergey Okhapkin  <sos@prospect.com.ru>
10822
10823         * include/utmp.h: Define WTMP_FILE.  Define and use UT_IDLEN.
10824
10825 2002-11-06  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
10826
10827         * libc/include/wchar.h: Use _{BEGIN,END}_STD_C instead of extern "C".
10828         * libc/include/wctype.h: Ditto.
10829
10830 2002-11-04  Jeff Johnston  <jjohnstn@redhat.com>
10831
10832         * libc/include/wchar.h: Add extern "C" specifier if C++.
10833         * libc/include/wctype.h: Ditto.
10834
10835 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
10836
10837         * testsuite/newlib.wctype/tiswctype.c: New test case.
10838         * testsuite/newlib.wctype/twctrans.c: Ditto.
10839
10840 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
10841
10842         * libc/sys/linux/machine/i386/include/endian.h: New file.
10843         * libc/sys/linux/machine/i386/include/param.h: Ditto.
10844
10845 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
10846
10847         * libm/machine/i386/aclocal.m4: Regenerated.
10848         * libm/machine/i386/configure: Ditto.
10849
10850 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
10851
10852         * testsuite/include/check.h: New header file to use with
10853         test cases.
10854         * testsuite/lib/newlib.exp: Add testsuite/include directory
10855         to list of header files to use.
10856         * testsuite/newlib.wctype/twctype.c: New test case for iswctype fns.
10857         * testsuite/newlib.wctype/wctype.exp: New file.
10858
10859 2002-10-11  Graham Stott  <graham.stott@btinternet.com>
10860             Richard Sandiford  <rsandifo@redhat.com>
10861
10862         * libc/include/sys/config.h (SIZE_T_SMALLER_THAN_LONG): Undefine.
10863         * libc/stdlib/mallocr.c (long_sub_size_t): Define in a way that
10864         doesn't require the SIZE_T_SMALLER_THAN_LONG macro.
10865
10866 2002-10-07      Joel Sherrill <joel@OARcorp.com>
10867
10868         * libc/sys/rtems/crt0.c: Add even more symbols so gcc() can link
10869         dummy programs.
10870
10871 2002-10-07      Joel Sherrill <joel@OARcorp.com>
10872
10873         * libc/include/pthread.h: Define PTHREAD_CANCELED.
10874
10875 2002-10-07      Joel Sherrill <joel@OARcorp.com>
10876
10877         * libc/machine/hppa/DEFS.h, libc/machine/hppa/pcc_prefix.s,
10878         libc/machine/hppa/setjmp.S, libc/machine/hppa/DEFS.h: Make this
10879         compile with current GNU tools.
10880
10881 2002-10-07  Jeff Johnston  <jjohnstn@redhat.com>
10882
10883         * Makefile.am: Add EXTRA_DIRS to allow future dependencies on
10884         the build library.
10885         * configure.in: Ditto.
10886         * Makefile.in: Regenerated.
10887         * configure: Ditto.
10888         * libc/sys/linux/Makefile.am: Add EXTRA_SUBDIRS and EXTRA_SUBLIBS
10889         for specifying configured libraries/directories.
10890         * libc/sys/linux/configure.in: Ditto.
10891         * libc/sys/linux/Makefile.in: Regenerated.
10892         * libc/sys/linux/configure: Ditto.
10893
10894 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
10895
10896         * libc/include/reent.h: Update documentation at start of file.
10897
10898 2002-09-27  Jim Wilson  <wilson@redhat.com>
10899
10900         * libc/sys/sysnecv850/crt0.S (start): Delete v850 code for initializing
10901         the ctbp register.
10902
10903 2002-09-27  Jeff Johnston  <jjohnstn@redhat.com>
10904
10905         * libc/ctype/jp2uc.c: Change to use multiple arrays in jp2uc.h.
10906         Also convert to EUCJP before using arrays.  For values not in
10907         the conversion arrays, return WEOF.
10908         * libc/ctype/jp2uc.h: Change from one array to a number of
10909         arrays to account for the fact that the originating table
10910         is not contiguous for the input values since some are invalid.
10911
10912 2002-09-24  Jeff Johnston  <jjohnstn@redhat.com>
10913
10914         * libc/time/ctime.c: Fix prototype documentation.
10915
10916 2002-09-24  Corinna Vinschen  <corinna@vinschen.de>
10917
10918         * libc/include/sys/errno.h: Add EOVERFLOW.
10919
10920 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
10921
10922         * libc/include/wctype.h: New file.
10923
10924 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
10925
10926         * libc/ctype/Makefile.am: Add new files.
10927         * libc/ctype/Makefile.in: Regenerated.
10928         * libc/ctype/ctype.tex: Add new iswxxxx, towxxxx, wctype,
10929         and wctrans functions to documentation index.
10930         * libc/ctype/iswalnum.c: New file.
10931         * libc/ctype/iswalpha.c: Ditto.
10932         * libc/ctype/iswblank.c: Ditto.
10933         * libc/ctype/iswcntrl.c: Ditto.
10934         * libc/ctype/iswctype.c: Ditto.
10935         * libc/ctype/iswdigit.c: Ditto.
10936         * libc/ctype/iswgraph.c: Ditto.
10937         * libc/ctype/iswlower.c: Ditto.
10938         * libc/ctype/iswprint.c: Ditto.
10939         * libc/ctype/iswpunct.c: Ditto.
10940         * libc/ctype/iswspace.c: Ditto.
10941         * libc/ctype/iswupper.c: Ditto.
10942         * libc/ctype/iswxdigit.c: Ditto.
10943         * libc/ctype/jp2uc.c: Ditto.
10944         * libc/ctype/jp2uc.h: Ditto.
10945         * libc/ctype/local.h: Ditto.
10946         * libc/ctype/towctrans.c: Ditto.
10947         * libc/ctype/towlower.c: Ditto.
10948         * libc/ctype/towupper.c: Ditto.
10949         * libc/ctype/utf8alpha.h: Ditto.
10950         * libc/ctype/utf8print.h: Ditto.
10951         * libc/ctype/utf8punct.h: Ditto.
10952         * libc/ctype/wctrans.c: Ditto.
10953         * libc/ctype/wctype.c: Ditto.
10954         * libc/locale/locale.c (__lc_ctype): New external array to
10955         replace static lc_ctype array.
10956         * libc/stdlib/mbtowc_r.c: Use __lc_ctype to check current lc_ctype
10957         rather than reentrancy structure's _current_locale field.
10958         * libc/stdlib/wctomb_r.c: Ditto.
10959
10960 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
10961
10962         * configure.host: Minor comment and formatting changes.
10963         * libc/Makefile.am: Add libc_la_DEPENDENCIES.
10964         * libc/Makefile.in: Regenerated.
10965         * libc/include/sys/config.h: Minor format change.
10966
10967 2002-09-19  Jeff Johnston  <jjohnstn@redhat.com>
10968
10969         * libc/syscalls/sysfcntl.c (fcntl): Fix typo in preprocessor
10970         statement comment.
10971
10972 2002-09-19  Jeff Johnston  <jjohnstn@redhat.com>
10973
10974         * libc/posix/opendir.c (opendir): Change code to check
10975         for HAVE_FCNTL before calling fcntl.
10976         * libc/search/hash.c (hash_open): Ditto.
10977         * libc/search/hash_page.c (open_tmp): Ditto.
10978         * libc/reent/Makefile.am: Add fcntlr.c.
10979         * libc/reent/Makefile.in: Regenerated.
10980         * libc/reent/fcntlr.c: New file.
10981         * libc/stdio/fdopen.c (_fdopen_r): Change to call _fcntl_r
10982         instead of _fcntl when HAVE_FCNTL flag is set.
10983         * libc/syscalls/sysfcntl.c (fcntl): Check for HAVE_FCNTL flag
10984         to see if _fcntl or _fcntl_r should be called.  If flag is not
10985         set, default to ENOSYS stub.
10986
10987 2002-09-16  Jeff Johnston  <jjohnstn@redhat.com>
10988
10989         * libc/include/wchar.h (mbstate_t): Change protective flag to
10990         be _MBSTATE_T.
10991         * libc/include/sys/_types.h (_mbstate_t): Remove protective flag.
10992         [__CYGWIN__]: Remove special code that defines mbstate_t and WEOF
10993         for Cygwin.
10994         * libc/sys/linux/sys/_types.h (_mbstate_t): Remove protective flag.
10995
10996 2002-09-11  Jeff Johnston  <jjohnstn@redhat.com>
10997
10998         * acinclude.m4 (enable-newlib-mb): Change check to
10999         default newlib_mb variable to empty string rather than "no".
11000         * configure.host: Remove hard-coding of -DMB_CAPABLE for
11001         x86-linux and Cygwin.  Add code to check for newlib_mb
11002         being unset in which case set to "yes" for x86-linux and
11003         Cygwin.  Change check for newlib_mb being "yes" to allow
11004         for an empty string.
11005         * configure.in (_MB_LEN_MAX): New AC_DEFINE.
11006         * newlib.hin (_MB_LEN_MAX): New define to configure.
11007         * aclocal.m4: Regenerated.
11008         * configure: Ditto.
11009         * libc/include/limits.h: New file.
11010         * libc/sys/linux/include/limits.h: Ditto.
11011         * doc/aclocal.m4 doc/configure libc/aclocal.m4
11012           libc/configure libc/machine/aclocal.m4
11013           libc/machine/configure libc/machine/a29k/aclocal.m4
11014           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
11015           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
11016           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
11017           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
11018           libc/machine/fr30/configure libc/machine/frv/aclocal.m4
11019           libc/machine/frv/configure libc/machine/h8300/aclocal.m4
11020           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
11021           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
11022           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
11023           libc/machine/i386/configure libc/machine/i960/aclocal.m4
11024           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
11025           libc/machine/m32r/configure libc/machine/m68hc11/aclocal.m4
11026           libc/machine/m68hc11/configure libc/machine/m68k/aclocal.m4
11027           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
11028           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
11029           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
11030           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
11031           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
11032           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
11033           libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
11034           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
11035           libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
11036           libc/machine/tic80/configure libc/machine/v850/aclocal.m4
11037           libc/machine/v850/configure libc/machine/w65/aclocal.m4
11038           libc/machine/w65/configure libc/machine/xscale/aclocal.m4
11039           libc/machine/xscale/configure
11040           libc/machine/xstormy16/aclocal.m4
11041           libc/machine/xstormy16/configure libc/machine/z8k/aclocal.m4
11042           libc/machine/z8k/configure libc/sys/aclocal.m4
11043           libc/sys/configure libc/sys/a29khif/aclocal.m4
11044           libc/sys/a29khif/configure libc/sys/arc/aclocal.m4
11045           libc/sys/arc/configure libc/sys/arm/aclocal.m4
11046           libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
11047           libc/sys/cygwin/configure libc/sys/d10v/aclocal.m4
11048           libc/sys/d10v/configure libc/sys/decstation/aclocal.m4
11049           libc/sys/decstation/configure libc/sys/go32/aclocal.m4
11050           libc/sys/go32/configure libc/sys/h8300hms/aclocal.m4
11051           libc/sys/h8300hms/configure libc/sys/h8500hms/aclocal.m4
11052           libc/sys/h8500hms/configure libc/sys/idt/aclocal.m4
11053           libc/sys/idt/configure libc/sys/linux/aclocal.m4
11054           libc/sys/linux/configure
11055           libc/sys/linux/machine/aclocal.m4
11056           libc/sys/linux/machine/configure
11057           libc/sys/linux/machine/i386/aclocal.m4
11058           libc/sys/linux/machine/i386/configure
11059           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
11060           libc/sys/mmixware/aclocal.m4 libc/sys/mmixware/configure
11061           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
11062           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
11063           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
11064           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
11065           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
11066           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
11067           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
11068           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
11069           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
11070           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
11071           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
11072           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
11073           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
11074           libm/aclocal.m4 libm/configure: Regenerated.
11075
11076 2002-09-09  Jeff Johnston  <jjohnstn@redhat.com>
11077
11078         * libc/sys/linux/machine/i386/crt0.c (_start): Remove
11079         code that clears the .bss section.
11080
11081 2002-09-09  Jeff Johnston  <jjohnstn@redhat.com>
11082
11083         * libc/include/sys/_types.h (_mbstate_t): Changed to use
11084         unsigned char internally.
11085         * libc/sys/linux/sys/_types.h: Ditto.
11086         * libc/include/sys/reent.h
11087         * libc/stdlib/mblen.c (mblen): Use function-specific state
11088         value from default reentrancy structure.
11089         * libc/stdlib/mblen_r.c (_mblen_r):  If return code from
11090         _mbtowc_r is less than 0, reset state __count value and
11091         return -1.
11092         * libc/stdlib/mbrlen.c (mbrlen): If the input state pointer
11093         is NULL, use the function-specific pointer provided in the
11094         default reentrancy structure.
11095         * libc/stdlib/mbrtowc.c: Add reentrant form of function.
11096         If input state pointer is NULL, use function-specific area
11097         provided in reentrancy structure.
11098         * libc/stdlib/mbsrtowcs.c: Ditto.
11099         * libc/stdlib/wcrtomb.c: Ditto.
11100         * libc/stdlib/wcsrtombs.c: Ditto.
11101         * libc/stdlib/mbstowcs.c: Reformat.
11102         * libc/stdlib/wcstombs.c: Ditto.
11103         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): If an error occurs,
11104         reset the state's __count value and return -1.
11105         * libc/stdlib/mbtowc.c: Ditto.
11106         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Add restartable functionality.
11107         If number of bytes is used up before completing a valid multibyte
11108         character, return -2 and save the state.
11109         * libc/stdlib/wctomb_r.c (_wctomb_r): Define __state as __count
11110         and change some __count references to __state for clarity.
11111
11112 2002-09-06  Jeff Johnston  <jjohnstn@redhat.com>
11113
11114         * libc/include/sys/config.h (MB_LEN_MAX): Removed as this
11115         is defined by <limits.h>.
11116
11117 2002-09-05  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
11118
11119         * libc/include/wchar.h (WCHAR_MAX): Only define if not already
11120         defined.
11121
11122 2002-09-04  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
11123
11124         * libc/include/sys/config.h: Define accordingly __WCHAR_MAX__.
11125         * libc/include/wchar.h: Define WCHAR_MIN as 0 and WCHAR_MAX as
11126         __WCHAR_MAX__ or 0x7fffffffu.
11127         * libc/string/wcscmp.c: Delete wrong and unnecessary type cast.
11128         * libc/string/wcsncmp.c: Ditto.
11129
11130 2002-09-03  Jeff Johnston  <jjohnstn@redhat.com>
11131
11132         * libc/string/wcschr.c: Add include of <stddef.h>.
11133         * libc/string/wcspbrk.c: Ditto.
11134         * libc/string/wcsrchr.c: Ditto.
11135         * libc/string/wcsstr.c: Ditto.
11136
11137 2002-09-03  Jeff Johnston  <jjohnstn@redhat.com>
11138
11139         * libc/include/sys/_types.h (_flock_t): Added.
11140         * libc/include/sys/lock.h (__lock_try_acquire): New interface.
11141         (__lock_try_acquire_recursive): Ditto.
11142         * libc/include/sys/reent.h (__sFILE, __sFILE64): Add new
11143         _lock field.
11144         * libc/stdio/findfp.c (std)[!__SINGLE_THREAD__]: Initialize _lock
11145         field.
11146         * libc/stdio/fopen.c (_fopen_r)[!__SINGLE_THREAD__]: Ditto.
11147         * libc/stdio64/fopen64.c (_fopen64_r)[!__SINGLE_THREAD__]: Ditto.
11148         * libc/sys/linux/include/time.h (struct timespec): Moved from
11149         <sys/types.h> and added check for __need_timespec flag so type
11150         can be defined by itself.
11151         * libc/sys/linux/sys/_types.h (_flock_t): New type.
11152         * libc/sys/linux/sys/types.h (struct timespec): Moved to
11153         <time.h>.
11154
11155 2002-08-29  Thomas Fitzsimmons  <fitzsim@redhat.com>
11156
11157         * libc/sys/linux/argp: New directory.
11158         * libc/sys/linux/getopt.c: New file.
11159         * libc/sys/linux/getopt1.c: New file.
11160         * libc/sys/linux/getoptlong.c: Remove file.
11161         * libc/sys/linux/include/argp.h: New file.
11162         * libc/sys/linux/Makefile.am: Define argp_dir and ARGP_LIB,
11163         based on ELIX level.
11164         (SUBDIRS): Add argp_dir.
11165         (SUBLIBS): Add ARGP_LIB.
11166         (ELIX_2_OBJS): Add getopt.$(oext), getopt1.$(oext), remove
11167         getopt_long.$(oext).
11168         * libc/sys/linux/configure.in (AC_OUTPUT): Add argp/Makefile.
11169
11170 2002-08-29  Jeff Johnston  <jjohnstn@redhat.com>
11171
11172         * libc/libc.texinfo: Add node reference to wide-character strings.
11173         * libc/string/wcstrings.tex: New file.
11174         * libc/string/strtok_r.c: Remove outdated advertising clause.
11175         * libc/string/Makefile.am (doc): Add wide-character string
11176         chapter to documentation.
11177         * libc/string/Makefile.in: Regenerated.
11178
11179 2002-08-29  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
11180
11181         * libc/include/wchar.h: Define NULL. Define WEOF more general
11182         way. Declare functions in newlib manner.
11183         * libc/stdlib/Makefile.am: Delete wmem*.c
11184         * libc/stdlib/Makefile.in: Regenerated.
11185         * libc/stdlib/wmemchr.c: Delete.
11186         * libc/stdlib/wmemcmp.c: Ditto.
11187         * libc/stdlib/wmemcpy.c: Ditto.
11188         * libc/stdlib/wmemmove.c: Ditto.
11189         * libc/stdlib/wmemset.c: Ditto.
11190         * libc/string/Makefile.am: Add wmem*.c and wcs*.c.
11191         * libc/string/Makefile.in: Regenerated.
11192         * libc/string/wcscat.c: New file derived from the NetBSD C Library.
11193         * libc/string/wcschr.c: Ditto.
11194         * libc/string/wcscmp.c: Ditto.
11195         * libc/string/wcscpy.c: Ditto.
11196         * libc/string/wcscspn.c: Ditto.
11197         * libc/string/wcslcat.c: Ditto.
11198         * libc/string/wcslcpy.c: Ditto.
11199         * libc/string/wcslen.c: Ditto.
11200         * libc/string/wcsncat.c: Ditto.
11201         * libc/string/wcsncmp.c: Ditto.
11202         * libc/string/wcsncpy.c: Ditto.
11203         * libc/string/wcspbrk.c: Ditto.
11204         * libc/string/wcsrchr.c: Ditto.
11205         * libc/string/wcsspn.c: Ditto.
11206         * libc/string/wcsstr.c: Ditto.
11207         * libc/string/wmemchr.c: Ditto.
11208         * libc/string/wmemcmp.c: Ditto.
11209         * libc/string/wmemcpy.c: Ditto.
11210         * libc/string/wmemmove.c: Ditto.
11211         * libc/string/wmemset.c: Ditto.
11212
11213 2002-08-29  Jeff Johnston  <jjohnstn@redhat.com>
11214
11215         * libc/locale/locale.c (_setlocale_r)[MB_CAPABLE]: Fix so
11216         default locale "" is accepted for LC_CTYPE or LC_MESSAGES
11217         and is treated as if "C" was specified.
11218
11219 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
11220
11221         * Makefile.am (install-data-local): Move install of build
11222         newlib.h after installing headers in libc/include so as to
11223         overwrite default newlib.h.
11224         * Makefile.in: Regenerated.
11225
11226 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
11227
11228         * libc/include/newlib.h: New file for tools that use newlib
11229         headers but don't build newlib first (e.g. gcc).
11230
11231 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
11232
11233         * libc/stdlib/wmemchr.c: Explicitly include <_ansi.h>.
11234         * libc/stdlib/wmemcmp.c: Ditto.
11235         * libc/stdlib/wmemcpy.c: Ditto.
11236         * libc/stdlib/wmemmove.c: Ditto.
11237         * libc/stdlib/wmemset.c: Ditto.
11238
11239 2002-08-27  Egor Duda  <deo@logos-m.ru>
11240
11241         * libc/stdlib/wmemchr.c: New file.
11242         * libc/stdlib/wmemcmp.c: Ditto.
11243         * libc/stdlib/wmemcpy.c: Ditto.
11244         * libc/stdlib/wmemmove.c: Ditto.
11245         * libc/stdlib/wmemset.c: Ditto.
11246         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add new files.
11247         * configure.host: Default -DMB_CAPABLE for cygwin.
11248         * libc/include/wchar.h: Declare wmemchr(), wmemcmp(), wmemcpy(),
11249         wmemmove() and wmemset().  Add include of <_ansi.h>.
11250         * libc/stdlib/Makefile.in: Regenerate.
11251
11252 2002-08-27  Jeff Johnston  <jjohnstn@redhat.com>
11253
11254         * configure.host: Remove _ELIX_LEVEL flag setting.
11255         * Makefile.am(stmp-targ-include): Copy newlib.h to targ-include.
11256         (install-data-local): Install newlib.h.
11257         * Makefile.in: Regenerated.
11258         * aclocal.m4: Ditto.
11259         * configure: Ditto.
11260         * configure.in: Add AM_CONFIG_HEADER to generate newlib.h based on
11261         newlib.hin.  Add AC_DEFINE_UNQUOTED entries for _ELIX_LEVEL
11262         and _NEWLIB_VERSION to fill in newlib.h header file entries.
11263         In AC_OUTPUT statement, unset ac_file so multilib support does
11264         not use last ac_file temporary used in newlib.h configuration.
11265         * libc/include/_ansi.h: Include <newlib.h>.
11266         * newlib.hin: New template file for newlib.h.
11267         * stamp-h.in: New file.
11268
11269 2002-08-26  Wu Yongwei <adah@netstd.com>
11270
11271         * time.h (timezonevar): Change "#if" to "#ifdef".
11272
11273 2002-08-26  Jeff Johnston  <jjohnstn@redhat.com>
11274
11275         * Makefile.am(LIBC_OBJECTLISTS): Add STDIO64_OBJECTLIST.
11276         * Makefile.in: Regenerated.
11277         * acinclude.m4: Add support for --enable-newlib-elix-level option.
11278         * aclocal.m4: Regenerated.
11279         * configure: Ditto.
11280         * configure.host: Add code to define _ELIX_LEVEL if
11281         --enable-newlib-elix-level option is used.
11282         * configure.in:
11283         * libc/aclocal.m4: Regenerated.
11284         * libc/configure: Ditto.
11285         * libc/argz/Makefile.am: Add EL/IX level checking.
11286         * libc/argz/Makefile.in: Regenerated.
11287         * libc/argz/dummy.c: New file.
11288         * libc/ctype/Makefile.am: Add EL/IX level checking.
11289         * libc/ctype/Makefile.in: Regenerated.
11290         * libc/locale/Makefile.am: Add EL/IX level checking.
11291         * libc/locale/Makefile.in: Regenerated.
11292         * libc/posix/Makefile.am: Add EL/IX level checking.
11293         * libc/posix/Makefile.in: Regenerated.
11294         * libc/posix/telldir.c: Add EL/IX level checking.
11295         * libc/reent/Makefile.am: Ditto.
11296         * libc/reent/fstat64r.c: Ditto.
11297         * libc/reent/lseek64r.c: Ditto.
11298         * libc/reent/open64r.c: Ditto.
11299         * libc/reent/Makefile.in: Regenerated.
11300         * libc/search/Makefile.am: Add EL/IX level checking.
11301         * libc/search/Makefile.in: Regenerated.
11302         * libc/stdio/Makefile.am: Add EL/IX level checking.
11303         * libc/stdio/Makefile.in: Regenerated.
11304         * libc/stdio64/Makefile.am: Add EL/IX level checking.
11305         * libc/stdio64/Makefile.in: Regenerated.
11306         * libc/stdio64/dummy.c: New file.
11307         * libc/stdio64/fgetpos64.c: Fix so _LARGE64_FILES macro is checked
11308         after first include.
11309         * libc/stdio64/fopen64.c: Ditto.
11310         * libc/stdio64/freopen64.c: Ditto.
11311         * libc/stdio64/fseeko64.c: Ditto.
11312         * libc/stdio64/fsetpos64.c: Ditto.
11313         * libc/stdio64/ftello64.c: Ditto.
11314         * libc/stdio64/tmpfile64.c: Ditto.
11315         * libc/stdlib/Makefile.am: Add EL/IX level checking.
11316         * libc/stdlib/Makefile.in: Regenerated.
11317         * libc/stdlib/mstats.c: Add EL/IX level checking.
11318         * libc/string/Makefile.am: Ditto.
11319         * libc/string/Makefile.in: Regenerated.
11320         * libc/sys/linux/Makefile.am: Add EL/IX level checking.
11321         * libc/sys/linux/Makefile.in: Regenerated.
11322         * libc/sys/linux/aclocal.m4: Ditto.
11323         * libc/sys/linux/configure: Ditto.
11324         * libc/sys/linux/aio.c: Add EL/IX level checking.
11325         * libc/sys/linux/ftok.c: Ditto.
11326         * libc/sys/linux/getdate.c: Ditto.
11327         * libc/sys/linux/ids.c: Ditto.
11328         * libc/sys/linux/inode.c: Ditto.
11329         * libc/sys/linux/io.c: Ditto.
11330         * libc/sys/linux/process.c: Ditto.
11331         * libc/sys/linux/resource.c: Ditto.
11332         * libc/sys/linux/sched.c: Ditto.
11333         * libc/sys/linux/sig.c: Ditto.
11334         * libc/sys/linux/termios.c: Ditto.
11335         * libc/sys/linux/wait.c: Ditto plus add __waitpid and
11336         __libc___waitpid weak aliases.
11337         * libc/sys/linux/machine/i386/syscall.h: Add new _base macros
11338         that generate the code for a syscall, but do not create a
11339         weak alias.
11340         * libc/syscalls/Makefile.am: Add EL/IX level checking.
11341         * libc/syscalls/Makefile.in: Regenerated.
11342         * libc/time/tzset_r.c: Change to replace strdup with equivalent
11343         functionality.
11344         * libc/unix/Makefile.am: Add EL/IX level checking.
11345         * libc/unix/Makefile.in: Regenerated.
11346
11347 2002-08-26  Christopher Faylor  <cgf@redhat.com>
11348
11349         * libc/include/malloc.h: On cygwin, define malloc _r functions as
11350         wrapper macros to standard malloc functions.
11351         * libc/include/stdlib.h: Ditto.
11352         * configure.host: Always define MALLOC_PROVIDED on cygwin.
11353
11354 2002-08-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
11355
11356         * libc/include/langinfo.h: New file.
11357         * libc/include/wchar.h: Likewise.
11358         * libc/include/sys/syslimits.h: Likewise.
11359         * libc/locale/fix_grouping.c: Likewise.
11360         * libc/locale/ldpart.c: Likewise.
11361         * libc/locale/ldpart.h: Likewise.
11362         * libc/locale/lmessages.c: Likewise.
11363         * libc/locale/lmessages.h: Likewise.
11364         * libc/locale/lmonetary.c: Likewise.
11365         * libc/locale/lmonetary.h: Likewise.
11366         * libc/locale/lnumeric.c: Likewise.
11367         * libc/locale/lnumeric.h: Likewise.
11368         * libc/locale/nl_langinfo.3: Likewise.
11369         * libc/locale/nl_langinfo.c: Likewise.
11370         * libc/locale/timelocal.c: Likewise.
11371         * libc/locale/timelocal.h: Likewise.
11372         * libc/stdlib/btowc.c: Likewise.
11373         * libc/stdlib/mbrlen.c: Likewise.
11374         * libc/stdlib/mbrtowc.c: Likewise.
11375         * libc/stdlib/mbsinit.c: Likewise.
11376         * libc/stdlib/mbsrtowcs.c: Likewise.
11377         * libc/stdlib/wcrtomb.c: Likewise.
11378         * libc/stdlib/wcsrtombs.c: Likewise.
11379         * libc/stdlib/wctob.c: Likewise.
11380         * libc/sys/linux/prof-freq.c: Likewise.
11381         * libc/sys/linux/profile.c: Likewise.
11382         * libc/sys/linux/machine/i386/dl-procinfo.c: Likewise.
11383         * libc/sys/linux/machine/i386/dl-procinfo.h: Likewise.
11384         * libc/include/stdlib.h: Change re-entrant functions to take
11385         mbstate_t pointers.
11386         * libc/include/sys/_types.h: Define _mbstate_t.
11387         * libc/include/sys/config.h (MB_LEN_MAX): New macro.
11388         * libc/include/sys/errno.h (EILSEQ): New error code.
11389         * libc/include/sys/reent.h: Include wchar.h.  Change reentrant
11390         structure to use mbstate_t.
11391         * libc/locale/Makefile.am (LIB_SOURCES): Add new files.
11392         * libc/machine/powerpc/vfprintf.c: Use mbstate_t.
11393         * libc/machine/powerpc/vfscanf.c: Likewise.
11394         * libc/stdio/getdelim.c: Reallocate buffer only when necessary.
11395         * libc/stdio/vfprintf.c: Likewise.
11396         * libc/stdio/vfscanf.c: Likewise.
11397         * libc/stdlib/Makefile.am (LIB_SOURCES): Add new files.
11398         * libc/stdlib/mblen.c: Use mbstate_t.
11399         * libc/stdlib/mblen_r.c: Likewise.
11400         * libc/stdlib/mbstowcs.c: Likewise.
11401         * libc/stdlib/mbstowcs_r.c: Likewise.
11402         * libc/stdlib/mbtowc.c: Likewise.
11403         * libc/stdlib/mbtowc_r.c: Likewise.
11404         * libc/stdlib/wcstombs.c: Likewise.
11405         * libc/stdlib/wcstombs_r.c: Likewise.
11406         * libc/stdlib/wctomb_r.c: Likewise.
11407         * libc/sys/linux/Makefile.am (LIB_SOURCES): Add prof-freq.c and
11408         profile.c.
11409         * libc/sys/linux/machine/i386/Makefile.am (LIB_SOURCES): Add
11410         dl-procinfo.c.
11411         * libc/sys/linux/sys/errno.h (EILSEQ): New error code.
11412         * libc/sys/linux/sys/types.h (off_t): Define type.
11413         * testsuite/newlib.locale/UTF-8.c: Change locale name from UTF-8
11414         to C-UTF-8.
11415         * testsuite/newlib.locale/UTF-8.exp: Likewise.
11416
11417 2002-08-20  Casper S. Hornstrup  <chorns@users.sourceforge.net>
11418
11419         * libc/stdlib/mallocr.c: #include windows.h on Win32.
11420           (AlignPage): Continue macro on next line.
11421
11422 2002-08-19  Jeff Johnston  <jjohnstn@redhat.com>
11423
11424         * libc/sys/linux/include/pthread.h: New file.
11425
11426 2002-08-19  Jeff Johnston  <jjohnstn@redhat.com>
11427
11428         * libc/include/sys/types.h: Support __need_inttypes macro
11429         that only sets the __intxx and __uintxx types.
11430         * libc/machine/powerpc/Makefile.am: Add stdlib to include directories
11431         to get mprec.h.
11432         * libc/machine/powerpc/Makefile.in: Regenerated.
11433         * libc/machine/powerpc/vfprintf.c: Fix state variable type.
11434         * libc/machine/powerpc/vfscanf.c: Fix state variable type.  Remove
11435         redundant fixed-point conversion prototypes.
11436         * libc/machine/powerpc/machine/stdlib.h[__SPE__]: Include <sys/types.h>
11437         after setting __need_inttypes.
11438
11439 2002-08-18  Christopher Faylor  <cgf@redhat.com>
11440
11441         * libc/include/sys/unistd.h: Add getsid declaration for cygwin.
11442
11443 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
11444
11445         * libc/include/sys/config.h[__PPC__][__SPE__]: Set
11446         _LONG_DOUBLE to double.
11447
11448 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
11449
11450         * configure.host: Add powerpc*-*-eabispe* configuration.
11451         * libc/machine/powerpc/atosfix16.c: New fixed-point conversion file.
11452         * libc/machine/powerpc/atosfix32.c: Ditto.
11453         * libc/machine/powerpc/atosfix64.c: Ditto.
11454         * libc/machine/powerpc/atoufix16.c: Ditto.
11455         * libc/machine/powerpc/atoufix32.c: Ditto.
11456         * libc/machine/powerpc/atoufix64.c: Ditto.
11457         * libc/machine/powerpc/fix64.h: Ditto.
11458         * libc/machine/powerpc/simdldtoa.c: Ditto.
11459         * libc/machine/powerpc/strtosfix16.c: Ditto.
11460         * libc/machine/powerpc/strtosfix32.c: Ditto.
11461         * libc/machine/powerpc/strtosfix64.c: Ditto.
11462         * libc/machine/powerpc/strtoufix16.c: Ditto.
11463         * libc/machine/powerpc/strtoufix32.c: Ditto.
11464         * libc/machine/powerpc/strtoufix64.c: Ditto.
11465         * libc/machine/powerpc/ufix64toa.c: Ditto.
11466         * libc/machine/powerpc/configure.in: Add check for
11467         powerpc*-eabispe and add fixed-point conversion functions.
11468         * libc/machine/powerpc/configure: Regenerated.
11469         * libc/machine/powerpc/vfprintf.c[__SPE__]: Add support for
11470         %r and %R format specifiers which handle fixed-point data.
11471         * libc/machine/powerpc/vfscanf.c[__SPE__]: Ditto.
11472         * libc/machine/powerpc/machine/stdlib.h[__SPE__]: Add fixed-point
11473         function prototypes.
11474
11475 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
11476
11477         *  Makefile.am: Move cmath stuff into libc/sys/linux.
11478         *  Makefile.in: Regenerated.
11479         *  configure.host: Default -DMB_CAPABLE for x86-linux.
11480         *  libc/include/reent.h: Define _sbrk to take signed int argument.
11481         *  libc/include/sys/unistd.h: Ditto for _sbrk_r and sbrk.
11482         *  libc/locale/locale.c[MB_CAPABLE]: Add LC_MESSAGES support and
11483         make locale name checking more efficient.  Also allow "C-ISO-8859-1"
11484         locale for LC_CTYPE and LC_MESSAGES.
11485         *  libc/reent/sbrkr.c: Change prototype to take ptrdiff_t.
11486         *  libc/sys/linux/brk.c: Change sbrk prototype.
11487         *  libc/sys/linux/include/time.h: Remove Cygwin stuff and
11488         include <sys/features.h>.
11489         (CLOCK_THREAD_CPUTIME): Renamed to CLOCK_THREAD_CPUTIME_ID.
11490         (CLOCK_PROCESS_CPUTIME): Renamed to CLOCK_PROCESS_CPUTIME_ID.
11491         *  libc/sys/linux/sys/cdefs.h: Replace with glibc sys/cdefs.h
11492         with a few local additions.
11493         *  libc/sys/linux/sys/features.h: New file.
11494         *  libc/sys/linux/sys/unistd.h: Change _sbrk_r and sbrk prototypes
11495         to take signed argument.
11496         *  libc/syscalls/syssbrk.c: Change sbrk, _sbrk_r, and _sbrk
11497         prototypes to take signed size argument.
11498
11499 2002-08-16  Thomas Fitzsimmons  <fitzsim@redhat.com>
11500
11501         * libc/sys/linux/cmath: New directory.
11502         * libc/sys/linux/include/cmathcalls.h: New file.
11503         * libc/sys/linux/include/complex.h: New file.
11504         * libc/sys/linux/machine/i386/huge_val.h: New file
11505         * libm/math/w_sincos.c: New file
11506         * libm/math/wf_sincos.c: New file
11507         * libm/mathfp/s_sincos.c: New file
11508         * libm/mathfp/sf_sincos.c: New file
11509         * Makefile.am (LIBC_OBJECTLISTS): Add cmath/objectlist.awk.in.
11510         * libc/include/math.h: Add sincos and sincosf declarations.
11511         * libc/sys/linux/Makefile.am (SUBDIRS): Add cmath.
11512         (SUBLIBS): Likewise.
11513         * libc/sys/linux/configure.in (AC_OUTPUT): Add cmath.
11514         * libm/math/Makefile.am (src): Add w_sincos.c.
11515         (fsrc): Add wf_sincos.c.
11516         * libm/mathfp/Makefile.am (src): Add s_sincos.c
11517         (fsrc): Add sf_sincos.c.
11518
11519 2002-08-12  Jeff Johnston  <jjohnstn@redhat.com>
11520
11521         * libc/sys/linux/machine/i386/crt0.c (__bss_start,_end):
11522         Declare as extern chars and use the address operator to
11523         properly use values set in linker script.
11524
11525 2002-08-09  Jason Tishler  <jason@tishler.net>
11526
11527         * libc/stdlib/mallocr.c: Include <limits.h>.
11528         (request2size): Change macro to do
11529         unsigned long comparisons and avoid signed overflow.
11530         (mALLOc): Add overflow check for the number of bytes to allocate.
11531         (rEALLOc): Ditto.
11532
11533 2002-08-09  Jeff Johnston  <jjohnstn@redhat.com>
11534
11535         * configure.host: Add check for --enable-newlib-io-pos-args
11536         and define WANT_IO_POS_ARGS flag if enabled.  Define
11537         the flag by default for x86-linux configurations.
11538         * configure.in: Add support for --enable-newlib-io-pos-args.
11539         * libc/configure.in: Ditto.
11540         * configure: Regenerated.
11541         * libc/configure: Ditto.
11542         * libc/stdio/Makefile.am: Specify -fshort-enums for compiling
11543         vfprintf.c and vfiprintf.c.
11544         * libc/stdio/Makefile.in: Regenerated.
11545         * libc/stdio/vfprintf.c: Add positional argument support that
11546         is enabled by compiling with -DWANT_IO_POS_ARGS.
11547
11548 2002-08-07  Richard Sandiford  <rsandifo@redhat.com>
11549
11550         * libc/include/machine/setjmp.h: For mips, define _JBLEN based
11551         based on __mips_soft_float rather than __mips64.
11552         * libc/machine/mips/setjmp.S: Provide hard and soft float versions
11553         of both 32-bit and 64-bit code.
11554
11555 2002-08-04  Christopher Faylor  <cgf@redhat.com>
11556
11557         * libc/stdio/popen.c (popen): Allow "rb", "rt", "wb", and "wt"
11558         arguments for popen to match similar functionality in fopen.
11559
11560 2002-07-29  Pierre Humblet  <pierre.humblet@ieee.org>
11561
11562         * libc/include/sys/unistd.h: Add setgroups prototype for Cygwin.
11563
11564 2002-07-29  Jeff Johnston  <jjohnstn@redhat.com>
11565
11566         * libc/sys/linux/Makefile.am: Add aio64.c.
11567         * libc/sys/linux/Makefile.in: Regenerated.
11568         * libc/sys/linux/aio.c (aio_init): ENOSYS stub added.
11569         * libc/sys/linux/aio64.c: New file.
11570
11571 2002-07-26  Jeff Johnston  <jjohnstn@redhat.com>
11572
11573         *  libc/include/sys/param.h (MAX, MIN): Added macros.
11574         *  libc/sys/linux/Makefile.am: Add new files.
11575         *  libc/sys/linux/Makefile.in: Regenerated.
11576         *  libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
11577         *  libc/sys/linux/inode.c (fchdir): Added syscall.
11578         *  libc/sys/linux/ftw.c: New file.
11579         *  libc/sys/linux/ftw64.c: Ditto.
11580         *  libc/sys/linux/getwd.c: Ditto.
11581         *  libc/sys/linux/scandir64.c: Ditto.
11582         *  libc/sys/linux/strverscmp.c: Ditto.
11583         *  libc/sys/linux/versionsort.c: Ditto.
11584         *  libc/sys/linux/versionsort64.c: Ditto.
11585
11586 2002-07-26  Jeff Johnston  <jjohnstn@redhat.com>
11587
11588         * libc/string/strings.tex: Fix typo for memccpy.
11589
11590 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
11591
11592         * libc/sys/linux/io64.c (truncate64, ftruncate64): Added.
11593         * libc/sys/linux/sys/types.h (off64_t): Definition added.
11594
11595 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
11596
11597         * libc/sys/linux/Makefile.am: Add fclean.c.
11598         * libc/sys/linux/Makefile.in: Regenerated.
11599         * libc/sys/linux/fclean.c: New file.
11600
11601 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
11602
11603         * libc/sys/linux/Makefile.am: Add confstr.c.
11604         * libc/sys/linux/Makefile.in: Regenerated.
11605         * libc/sys/linux/confstr.c: New file.
11606         * libc/sys/linux/confstr.h: Ditto.
11607         * libc/sys/linux/sys/unistd.h: Include <features.h> and
11608         <bits/environments.h>.
11609
11610 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
11611
11612         * libc/sys/linux/config.h (__set_errno): Macro definition removed.
11613         * libc/sys/linux/fpathconf.c (__set_errno): Ditto.
11614         * libc/sys/linux/libc-internal.h (__set_errno): Ditto.
11615         * libc/sys/linux/pathconf.c (__set_errno): Ditto.
11616         * libc/sys/linux/ttyname_r.c (__set_errno): Ditto.
11617         * libc/sys/linux/sys/errno.h (__set_errno): Macro definition added.
11618
11619 2002-07-24  Jeff Johnston  <jjohnstn@redhat.com>
11620
11621         * libc/sys/linux/Makefile.am: Add new files.
11622         * libc/sys/linux/Makefile.in: Regenerated.
11623         * libc/sys/linux/fstab.c: New file.
11624         * libc/sys/linux/fstatvfs.c: Ditto.
11625         * libc/sys/linux/fstatvfs64.c: Ditto.
11626         * libc/sys/linux/internal_statvfs.c: Ditto.
11627         * libc/sys/linux/mntent.c: Ditto.
11628         * libc/sys/linux/mntent_r.c: Ditto.
11629         * libc/sys/linux/statvfs.c: Ditto.
11630         * libc/sys/linux/statvfs64.c: Ditto.
11631         * libc/sys/linux/include/paths.h: Ditto.
11632         * libc/sys/linux/inode.c (statfs, fstatfs): New syscalls
11633         with double-underscore weak-aliases.
11634         * libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
11635
11636 2002-07-24  Jeff Johnston  <jjohnstn@redhat.com>
11637
11638         * libc/include/signal.h (SIG_IGN, SIG_DFL, SIG_ERR): Change
11639         to use _sig_func_ptr type casted constants.
11640         (_sig_func_ptr): Typedef moved to sys/signal.h.
11641         * libc/include/sys/signal.h (_sig_func_ptr): Typedef added.
11642         For __rtems, use POSIX definition, otherwise default to ANSI.
11643         * libc/sys/linux/sys/signal.h (_sig_func_ptr): Typedef added.
11644
11645 2002-07-24  Stephane Carrez  <stcarrez@nerim.fr>
11646
11647         * configure.host: Recognize m6811-elf and m6812-elf targets.
11648         * libc/include/machine/setjmp.h (_JBLEN): Define for 68hc11/68hc12.
11649         * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Define for 68HC11.
11650         (_DOUBLE_IS_32BITS): Define when compiling with -fshort-double.
11651         * libc/include/sys/config.h (INT_MAX, UINT_MAX): Define
11652         according to __INT_MAX__.
11653         (_POINTER_INT): Define to short.
11654         * libc/machine/m68hc11/Makefile.am: New file.
11655         * libc/machine/m68hc11/Makefile.in: New file.
11656         * libc/machine/m68hc11/configure.in: New file.
11657         * libc/machine/m68hc11/configure: New file.
11658         * libc/machine/m68hc11/aclocal.m4: New file.
11659         * libc/machine/m68hc11/setjmp.S: New file.
11660
11661 2002-07-23  Jeff Johnston  <jjohnstn@redhat.com>
11662
11663         * libc/include/string.h: Add mempcpy, strndup, and _strndup_r
11664         prototypes.
11665         * libc/stdlib/Makefile.am: Remove strdup.c and strdup_r.c.
11666         * libc/stdlib/Makefile.in: Regenerated.
11667         * libc/stdlib/strdup.c: Removed.
11668         * libc/stdlib/strdup_r.c: Removed.
11669         * libc/string/Makefile.am: Add strdup.c, strdup_r.c, memccpy.c,
11670         mempcpy.c, strndup.c, and strndup_r.c.
11671         * libc/string/Makefile.in: Regenerated.
11672         * libc/string/memccpy.c: New file.
11673         * libc/string/mempcpy.c: Ditto.
11674         * libc/string/strndup.c: Ditto.
11675         * libc/string/strndup_r.c: Ditto.
11676         * libc/string/strdup.c: New file moved from stdlib.
11677         * libc/string/strdup_r.c: Ditto.
11678         * libc/string/strings.tex: Add memccpy and mempcpy documentation.
11679
11680 2002-07-23  Jeff Johnston  <jjohnstn@redhat.com>
11681
11682         * libc/include/stdio.h: Move fcloseall prototype within
11683         #ifndef _REENT_ONLY section.
11684         * libc/sys/linux/Makefile.am: Add new files.
11685         * libc/sys/linux/Makefile.in: Regenerated.
11686         * libc/sys/linux/sys/stdio.h: Add ctermid prototype.
11687         * libc/sys/linux/sys/unistd.h: Add ttyname_r prototype.
11688         * libc/sys/linux/sys/types.h: Add ino64_t type.
11689         * libc/sys/linux/ctermid.c: New file.
11690         * libc/sys/linux/ttyname_r.c: Ditto.
11691         * libc/sys/linux/readdir64.c: Ditto.
11692
11693 2002-07-22  Jeff Johnston  <jjohnstn@redhat.com>
11694
11695         * libc/include/stdio.h (fcloseall, _fcloseall_r): Added prototypes.
11696         * libc/stdio/Makefile.am: Added fcloseall.c support.
11697         * libc/stdio/Makefile.in: Regenerated.
11698         * libc/stdio/fcloseall.c: New file.
11699         * libc/stdio64/Makefile.am: Remove missing .def references.
11700         * libc/stdio64/Makefile.in: Regenerated.
11701
11702 2002-07-22  Jeff Johnston  <jjohnstn@redhat.com>
11703
11704         * libc/machine/powerpc/time.c: Removed..renamed to times.c.
11705         * libc/machine/powerpc/times.c: New file.
11706         * libc/machine/powerpc/Makefile.am: Change time.c to times.c.
11707         * libc/machine/powerpc/Makefile.in: Regenerated.
11708
11709 2002-07-22  Aldy Hernandez  <aldyh@redhat.com>
11710
11711         * libc/machine/powerpc/time.c: New file.
11712         * libc/machine/powerpc/Makefile.am (lib_a_SOURCES): Add
11713         time.c.
11714         * libc/machine/powerpc/Makefile.in: Regenerated.
11715
11716 2002-07-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
11717
11718         * libc/libc.texinfo: Change copyright notices to Red Hat from
11719         Cygnus.
11720         * libm/libm.texinfo: Likewise.
11721         * README: Change docs URL to
11722         http://sources.redhat.com/newlib/docs.html.
11723
11724 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
11725
11726         * libc/sys/linux/Makefile.am: Add pathconf.c and fpathconf.c.
11727         * libc/sys/linux/Makefile.in: Regenerated.
11728         * libc/sys/linux/inode.c: Add chmod, fchmod, and chown syscalls.
11729         * libc/sys/linux/io.c: Add ftruncate syscall.
11730         * libc/sys/linux/fpathconf.c: New file.
11731         * libc/sys/linux/pathconf.c: Ditto.
11732         * libc/sys/linux/linux_fsinfo.h: Ditto.
11733         * libc/sys/linux/sys/unistd.h: Ditto.
11734
11735 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
11736
11737         * libc/stdio64/Makefile.am: Remove missing files.
11738         * libc/stdio64/Makefile.in: Regenerated.
11739
11740 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
11741
11742         * libc/include/sys/config.h[__i386__][__linux__]: Define
11743         _LARGE64FILE_SOURCE to 1.
11744         * libc/sys/linux/Makefile.am: Add getrlimit64.c and setrlimit64.c.
11745         * libc/sys/linux/Makefile.in: Regenerated.
11746         * libc/sys/linux/resource.c: Add __getrlimit and __setrlimit aliases.
11747         * libc/sys/linux/sys/linux_time.h: Protect struct timeval definition.
11748         * libc/sys/linux/sys/resource.h: Include <bits/resource.h> instead
11749         of <linux/resource.h>.
11750         * libc/sys/linux/getrlimit64.c: New file.
11751         * libc/sys/linux/setrlimit64.c: Ditto.
11752
11753 2002-07-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
11754
11755         * libc/argz/argz_replace.c: Include buf_findstr.h.
11756         * libc/argz/buf_findstr.c: Likewise.
11757         * libc/argz/envz_entry.c: Include buf_findstr.h.  Cast return
11758         value to (char *).
11759         * libc/argz/envz_get.c: Likewise.
11760         * libc/include/sys/unistd.h: Add getopt and getsubopt declarations.
11761         * libc/stdlib/Makefile.am (LIB_SOURCES): Add getsubopt.c.
11762         * libc/stdlib/getsubopt.3: New file.
11763         * libc/stdlib/getsubopt.c: New file.
11764         * libc/sys/linux/machine/i386/socketcall.h (__sockcall_base):
11765         Change esp to ebp.
11766
11767 2002-07-17  Jeff Johnston  <jjohnstn@redhat.com>
11768
11769         * configure.host(stdio64_dir): New setting that is used to
11770         enable building of new stdio64 directory.
11771         * libc/Makefile.am[HAVE_STDIO64_DIR]: Add support for
11772         large files.
11773         (stmp-stdio64,stdio64.texi): New targets to optionally add in
11774         stdio64 info to info files.
11775         * libc/Makefile.in: Regenerated.
11776         * libc/configure: Ditto.
11777         * libc/configure.in: Add configuration variables that are set
11778         when stdio64 is selected as subdir in configure.host.
11779         * libc/libc.texinfo: Add optional menu item for Stdio64, based
11780         on whether STDIO64 flag is set or not.
11781         * libc/sys.tex: Add optional stdio64 syscalls based on whether
11782         STDIO64 flag is set or not.
11783         * libc/include/reent.h[__LARGE64_FILES]: Add new stdio64
11784         _r sycall routines.
11785         * libc/include/stdio.h[__LARGE64_FILES]: Add new stdio64 prototypes.
11786         (FILE): Typedef'd to __FILE instead of struct __sFILE directly.
11787         (__SL64): New file flag indicating file is opened via fopen64.
11788         * libc/include/sys/_types.h(_off64_t): Added.
11789         * libc/include/sys/config.h: For x86-linux, define __LARGE64_FILES.
11790         * libc/include/sys/reent.h(struct __sFILE64): New file structure
11791         for 64-bit offset large file support.
11792         (__FILE): New intermediate type either set to struct __sFILE64 or
11793         struct __sFILE, depending on whether __LARGE64_FILES is set or not.
11794         * libc/reent/Makefile.am[HAVE_STDIO64_DIR]: Add new files.
11795         * libc/reent/Makefile.in: Regenerated.
11796         * libc/reent/fstat64r.c: New file.
11797         * libc/reent/lseek64r.c: Ditto.
11798         * libc/reent/open64r.c: Ditto.
11799         * libc/reent/reent.tex: Optionally add stdio64 reentrant syscalls
11800         based on whether STDIO64 flag is set.
11801         * libc/stdio/stdio.tex: Add blank line.
11802         * libc/stdio64/Makefile.am: New file.
11803         * libc/stdio64/Makefile.in: Ditto.
11804         * libc/stdio64/fgetpos64.c: Ditto.
11805         * libc/stdio64/fopen64.: Ditto.
11806         * libc/stdio64/freopen64.c: Ditto.
11807         * libc/stdio64/fseeko64.c: Ditto.
11808         * libc/stdio64/fsetpos64.c: Ditto.
11809         * libc/stdio64/ftello64.c: Ditto.
11810         * libc/stdio64/local64.h: Ditto.
11811         * libc/stdio64/stdio64.c: Ditto.
11812         * libc/stdio64/stdio64.tex: Ditto.
11813         * libc/stdio64/tmpfile64.c: Ditto.
11814         * libc/sys/linux/io64.c: Add weak aliases for lseek64, fstat64, and
11815         open64.
11816
11817 2002-07-16  Jeff Johnston  <jjohnstn@redhat.com>
11818
11819         * libc/Makefile.am (stmp-extra): New target to set makeinfo flag
11820         if LIBC_EXTRA_LIB is present.
11821         * libc/Makefile.in: Regenerated.
11822         * libc/libc.texinfo: Add blank line.
11823         * libc/argz/Makefile.am: Add doc support.
11824         * libc/search/Makefile.am: Ditto.
11825         * libc/argz/Makefile.in: Regenerated.
11826         * libc/search/Makefile.in: Ditto.
11827         * libc/misc/misc.tex: Add ffs function.
11828         * libc/stdio/ftell.c: Fix missing doc delimeter in description.
11829
11830 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
11831
11832         * libc/include/sys/config.h[__H8300__]: Replace __SMALL_BITFIELDS
11833         definition that was removed in error.
11834
11835 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
11836
11837         * libc/include/machine/ieeefp.h: Change to only define
11838         floating point defines (e.g one of __IEEE_BIG_ENDIAN or
11839         __IEEE_LITTLE_ENDIAN must be defined for each platform).
11840         * libc/include/sys/config.h: Include <machine/ieeefp.h> and
11841         remove redundant floating point definitions.
11842
11843 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
11844
11845         * libc/sys/linux/callocr.c: Fix so code references
11846         calloc.
11847
11848 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
11849
11850         * libc/sys/linux/Makefile.am: Add new files.
11851         * libc/sys/linux/Makefile.in: Regenerated.
11852         * libc/sys/linux/bp-sym.h: Moved to include directory.
11853         * libc/sys/linux/mmap.c: Add weak aliases: __mmap, __munmap, __mremap.
11854         * libc/sys/linux/inode.c: Set _LIBC to 1.
11855         * libc/sys/linux/mq_close.c: Ditto.
11856         * libc/sys/linux/mq_getattr.c: Ditto.
11857         * libc/sys/linux/mq_open.c: Ditto.
11858         * libc/sys/linux/mq_receive.c: Ditto.
11859         * libc/sys/linux/mq_send.c: Ditto.
11860         * libc/sys/linux/mq_setattr.c: Ditto.
11861         * libc/sys/linux/mq_unlink.c: Ditto.
11862         * libc/sys/linux/calloc.c: New file.
11863         * libc/sys/linux/callocr.c: Ditto.
11864         * libc/sys/linux/cfreer.c: Ditto.
11865         * libc/sys/linux/config.h: Ditto.
11866         * libc/sys/linux/free.c: Ditto.
11867         * libc/sys/linux/freer.c: Ditto.
11868         * libc/sys/linux/msize.c: Ditto.
11869         * libc/sys/linux/msizer.c: Ditto.
11870         * libc/sys/linux/mstats.c: Ditto.
11871         * libc/sys/linux/mtrim.c: Ditto.
11872         * libc/sys/linux/mtrimr.c: Ditto.
11873         * libc/sys/linux/pvallocr.c: Ditto.
11874         * libc/sys/linux/realloc.c: Ditto.
11875         * libc/sys/linux/reallocr.c: Ditto.
11876         * libc/sys/linux/thread-m.h: Ditto.
11877         * libc/sys/linux/vallocr.c: Ditto.
11878         * libc/sys/linux/bp-checks.h: Ditto.
11879         * libc/sys/linux/libc-symbols.h: Ditto.
11880         * libc/sys/linux/libc-tsd.h: Ditto.
11881         * libc/sys/linux/libintl.h: Ditto.
11882         * libc/sys/linux/malign.c: Ditto.
11883         * libc/sys/linux/malignr.c: Ditto.
11884         * libc/sys/linux/mallinfor.c: Ditto.
11885         * libc/sys/linux/malloc.c: Ditto.
11886         * libc/sys/linux/mallocr.c: Ditto.
11887         * libc/sys/linux/malloptr.c: Ditto.
11888         * libc/sys/linux/mallstatsr.c: Ditto.
11889         * libc/sys/linux/mcheck.c: Ditto.
11890         * libc/sys/linux/mhooks.h: Ditto.
11891         * libc/sys/linux/include/bp-sym.h: Ditto.
11892         * libc/sys/linux/include/malloc.h: Ditto.
11893         * libc/sys/linux/include/mcheck.h: Ditto.
11894         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Remove
11895         getpagesize.c.
11896         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Regenerated.
11897         * libc/sys/linux/linuxthreads/machine/i386/getpagesize.c: Moved.
11898         * libc/sys/linux/machine/i386/getpagesize.c: New file.
11899         * libc/sys/linux/machine/i386/Makefile.am: Add getpagesize.c.
11900         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
11901         * libc/sys/linux/machine/i386/sysdep.h: New file.
11902         * libc/sys/linux/machine/i386/weakalias.h: Add weak_function support.
11903         * libc/sys/linux/sys/dirent.h: Set _LIBC to 1.
11904         * libc/sys/linux/sys/lock.h: Include <machine/weakalias.h>.
11905
11906 2002-07-12  Jeff Johnston  <jjohnstn@redhat.com>
11907
11908         * libc/sys/linux/include/mqueue.h: Change to use <bits/siginfo.h>
11909         instead of <asm/siginfo.h>.
11910         * libc/sys/linux/sys/signal.h: Change to include various linux
11911         <bits/xxx.h> header files, rather than <linux/signal.h> so as
11912         to work with multiple releases of glibc header files.
11913
11914 2002-07-11  Chris Demetriou  <cgd@broadcom.com>
11915
11916         * testsuite/newlib.search/hsearchtest.c: New file to test
11917         newlib/libc/search.
11918         * testsuite/newlib.search/hsearchtest.exp: Likewise.
11919
11920 2002-07-10  Florian Schrack  <florian.schrack@freenet.de>
11921
11922         * libc/sys/mmixware/read.c: Use SYS_Fgets syscall if dealing with
11923         a terminal.
11924         * libc/sys/mmixware/sys/syscall.h (SYS_Fgets): Definition added.
11925
11926 2002-07-08  Jeff Johnston  <jjohnstn@redhat.com>
11927
11928         * libc/include/math.h (MAXFLOAT): Added.
11929
11930 Mon Jul  8 13:55:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
11931
11932         * libc/machine/sh/Makefile.am (lib_a_SOURCES):
11933         Make strcmp.S unconditional.
11934         * libc/machine/sh/Makefile.in: Regenerate.
11935         * libc/machine/sh/asm.h (DELAYED_BRANCHES, SL): Also for __SH5__ .
11936         * strcmp.S (strcmp): Add SHmedia variant.  Use different registers
11937         for SHcompact.
11938
11939 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
11940
11941         * libc/sys/linux/inode.c: Fix utime prototype and add _LIBC
11942         define before including <sys/lock.h>.
11943
11944 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
11945
11946         * libc/include/utime.h: Add include of <_ansi.h>.
11947         * libc/sys/linux/Makefile.am: Add utimes.c.
11948         * libc/sys/linux/Makefile.in: Regenerated.
11949         * libc/sys/linux/inode.c(__umask): New static routine.
11950         (umask): Written to use __umask and attempt to thread lock.
11951         (getumask): New function written to use __umask and thread lock.
11952         * libc/sys/linux/utimes.c: New file.
11953         * libc/sys/linux/sys/time.h: Fix utimes prototype.
11954         * libc/sys/linux/sys/utime.h: New file.
11955
11956 2002-07-04  Thomas Fitzsimmons  <fitzsim@redhat.com>
11957
11958         * libtool.m4: New file.
11959         * libc/sys/linux/process.c: Implement vfork in terms of fork,
11960         rather than as a syscall.
11961
11962 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
11963
11964         * libc/include/stdio.h: Add new prototypes.
11965         * libc/stdio/Makefile.am: Add fseeko.c and ftello.c.
11966         * libc/stdio/Makefile.in: Regenerated.
11967         * libc/stdio/fseek.c: Add fseeko documentation.
11968         * libc/stdio/ftell.c: Add ftello documentation.
11969         * libc/stdio/fseeko.c: New file.
11970         * libc/stdio/ftello.c: New file.
11971
11972 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
11973
11974         * libc/stdio/Makefile.am: Add asprintf.c and vasprintf.c.
11975         * libc/stdio/Makefile.in: Regenerated.
11976         * libc/stdio/asprintf.c: New file.
11977         * libc/stdio/vasprintf.c: Ditto.
11978         * libc/stdio/fvwrite.c: Add code to dynamically reallocate
11979         the buffer for asprintf support.
11980         * libc/stdio/sprintf.c: Add asprintf documentation.
11981         * libc/stdio/vfprintf.c: Add vasprintf documentation.
11982         * libc/include/stdio.h: Add new prototypes.
11983
11984 2002-07-02  Thomas Fitzsimmons  <fitzsim@redhat.com>
11985
11986         * libc/search/hcreate.c: Remove advertising clause from license.
11987         * libc/search/hcreate_r.c: Likewise.
11988
11989 2002-07-02  Chris Demetriou  <cgd@broadcom.com>
11990
11991         * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN)
11992         (__IEEE_BIG_ENDIAN): Define appropriately for MIPS.
11993         Check that one of them is defined and error out if not.
11994         Add any platforms defined in <machine/ieeefp.h> that are missing.
11995         * libc/search/hash.h (DB_BYTE_ORDER, DB_BIG_ENDIAN)
11996         (DB_LITTLE_ENDIAN): New defines.
11997         * libc/search/hash.c: Replace all incorrect checks for
11998         _IEEE_LITTLE_ENDIAN with tests of BYTE_ORDER, and all uses of
11999         BYTE_ORDER, LITTLE_ENDIAN, and BIG_ENDIAN with DB_* versions.
12000         * libc/search/hash_page.c: Likewise.
12001
12002 2002-06-28  Thomas Fitzsimmons  <fitzsim@redhat.com>
12003
12004         * libm/mathfp/sf_pow.c (powf): Change k from int to float.
12005
12006 2002-06-27  Benjamin Kosnik  <bkoz@redhat.com>
12007
12008         * libc/include/stdio.h: Untangle, add _BEGIN_STD_C and _END_STD_C.
12009         * libc/include/time.h: Same.
12010         * libc/include/string.h: Same.
12011         * libc/include/stdlib.h: Same.
12012         * libc/include/signal.h: Same.
12013         * libc/include/setjmp.h: Same.
12014         * libc/include/math.h: Same.
12015         * libc/include/locale.h: Same.
12016         * libc/include/ctype.h: Same.
12017         * libc/include/machine/setjmp.h: Same.
12018         * libc/include/_ansi.h (_BEGIN_STD_C): Add.
12019         (_END_STD_C): Add.
12020
12021 2002-06-27  Jeff Johnston  <jjohnstn@redhat.com>
12022
12023         * libc/include/sys/_types.h: Define _ssize_t as int if int is
12024         32-bits, otherwise define it as long.
12025         * libc/include/sys/types.h: Include <_ansi.h> and <sys/_types.h>
12026         and define ssize_t as _ssize_t.
12027         * libc/reent/readr.c: Change return type to _ssize_t.
12028         * libc/reent/writer.c: Ditto.
12029         * libc/sys/linux/Makefile.am: Add aio.c.
12030         * libc/sys/linux/Makefile.in: Regenerated.
12031         * libc/sys/linux/aio.c: New file.
12032         * libc/sys/linux/sys/cdefs.h: Add __restrict_arr definition.
12033         * libm/common/fdlibm.h: Undef __P before defining it.
12034
12035 2002-06-27  Thomas Fitzsimmons  <fitzsim@redhat.com>
12036
12037         * libm/mathfp/s_pow.c (pow): Fix checks on variable k.  Add
12038         exponent_is_even_int variable.  Handle case where x is
12039         negative, and y is an odd integer.
12040         * libm/mathfp/sf_pow.c (powf): Likewise.
12041
12042         * libm/mathfp/er_lgamma.c: Remove __kernel references.
12043         * libm/mathfp/erf_lgamma.c: Likewise.
12044         * libm/mathfp/s_tgamma.c: Likewise.
12045         * libm/mathfp/sf_tgamma.c: Likewise.
12046
12047 2002-06-27  Jeff Johnston  <jjohnstn@redhat.com>
12048
12049         * libc/sys/linux/Makefile.am: Add new clock routines.
12050         * libc/sys/linux/Makefile.in: Regenerated.
12051         * libc/sys/linux/clock_getres.c: New file.
12052         * libc/sys/linux/clock_gettime.c: Ditto.
12053         * libc/sys/linux/clock_settime.c: Ditto.
12054         * libc/sys/linux/hp-timing.h: Ditto.
12055         * libc/sys/linux/libc-internal.h: Ditto.
12056         * libc/sys/linux/sysconf.c: Fix typo.
12057         * libc/sys/linux/include/time.h: Add include of <sys/linux_time.h>.
12058         * libc/sys/linux/machine/hp-timing.h: New file.
12059         * libc/sys/linux/machine/i386/Makefile.am: Add new files.
12060         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
12061         * libc/sys/linux/machine/i386/get_clockfreq.c: New file.
12062         * libc/sys/linux/machine/i386/hp-timing.c: Ditto.
12063         * libc/sys/linux/machine/i386/hp-timing.h: Ditto.
12064         * libc/sys/linux/sys/linux_time.h: New file.
12065         * libc/sys/linux/sys/time.h: Remove include of <linux/time.h> and
12066         replace with <sys/linux_time.h>.
12067
12068 Wed Jun 26 16:33:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
12069
12070         * libc/sys/sh/crt0.S: Remove vestigial .section directive.
12071
12072 2002-06-25  Jeff Johnston  <jjohnstn@redhat.com>
12073
12074         * libc/sys/linux/Makefile.am: Consolidate additional items under
12075         ADD_OBJS.
12076         * libc/sys/linux/Makefile.in: Regenerated.
12077
12078 2002-06-25  Jeff Johnston  <jjohnstn@redhat.com>
12079
12080         * libc/sys/linux/sethostname.c: New file.
12081         * libc/sys/linux/Makefile.am: Add sethostname.c support.
12082         * libc/sys/linux/Makefile.in: Regenerated.
12083
12084 2002-06-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
12085
12086         * libc/search/db_local.h: New file.
12087         * libc/include/db.h: Remove.
12088         * libc/search/Makefile.am (LIB_SOURCES): Add db_local.h.
12089         * libc/search/hash.c (MIN,MAX): Add macros.  Change <db.h> to
12090         "db_local.h".
12091         * libc/search/hash_bigkey.c: Likewise.
12092         * libc/search/hash_buf.c: Likewise.
12093         * libc/search/hash_func.c: Likewise.
12094         * libc/search/hash_log2.c: Likewise.
12095         * libc/search/hash_page.c: Likewise.
12096
12097 2002-06-24  J"orn Rennecke <joern.rennecke@superh.com>
12098
12099         * libc/machine/sh/strlen.S: New file.
12100         * libc/machine/sh/Makefile.am (lib_a_SOURCES): Add rule for it.
12101         * libc/machine/sh/Makefile.am: Regenerate.
12102
12103 2002-06-24  Jeff Johnston  <jjohnstn@redhat.com>
12104
12105         * libc/sys/linux/gethostname.c: Change name to __gethostname and
12106         add gethostname alias.
12107
12108 2002-06-24  Jeff Johnston  <jjohnstn@redhat.com>
12109
12110         * libc/include/math.h: Remove <sys/types.h>.
12111         (__dmath): Use __ULong instead of __uint32_t.
12112         * libc/include/sys/reent.h: If long or int is not 32-bits,
12113         include <sys/types.h> to get definitions for __int32_t and __uint32_t.
12114         * libc/stdlib/mprec.h: Include <sys/types.h> to get integer defs.
12115         * libm/common/fdlibm.h: Ditto.
12116
12117 2002-06-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
12118
12119         * libc/include/ndbm.h: Remove.
12120         * libc/search/ndbm.c: Remove.
12121
12122 2002-06-24  WATANABE Hirofumi <eban@os.rim.or.jp>
12123
12124         * libc/stdio/fseek.c (fseek): Fix braces.
12125
12126 2002-06-21  Corinna Vinschen  <corinna@vinschen.de>
12127
12128         * libc/time/strftime.c (strftime): Add %e format specifier.
12129
12130 2002-06-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
12131
12132         * libc/search/hash.h (LITTLE_ENDIAN, BIG_ENDIAN): Define if not
12133         previously defined.
12134
12135 2002-06-21  Richard Earnshaw  (rearnsha@arm.com)
12136
12137         * libc/sys/arm/sys/param.h (BIG_ENDIAN, LITTLE_ENDIAN): Define.
12138         (BYTE_ORDER): Define as appropriate for the target.
12139
12140 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
12141
12142         * libc/include/sys/config.h[__linux__]: Set _READ_WRITE_RETURN_TYPE
12143         to _ssize_t.
12144         * libc/sys/linux/io.c (read, write): Change to return ssize_t.
12145
12146 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
12147
12148         * libc/include/stdio.h (__getline, __getdelim): New prototypes.
12149         * libc/include/time.h [HAVE_GETDATE](getdate, getdate_r): Ditto.
12150         [HAVE_GETDATE](getdate_err): New error code.
12151         * libc/stdio/Makefile.am: Add support for getline.c and getdelim.c.
12152         * libc/stdio/Makefile.in: Regenerated.
12153         * libc/stdio/getdelim.c: New file.
12154         * libc/stdio/getline.c: Ditto.
12155         * libc/sys/linux/Makefile.am: Add support for getdate.c, getdate_err.c
12156         and ntp_gettime.c.  Also add AM_CFLAGS to point to libc/stdio.
12157         * libc/sys/linux/Makefile.in: Regenerated.
12158         * libc/sys/linux/getdate.c: New file.
12159         * libc/sys/linux/getdate_err.c: Ditto.
12160         * libc/sys/linux/ntp_gettime.c: Ditto.
12161         * libc/sys/linux/time.c (adjtimex, ntp_adjtime): New functions.
12162         * libc/sys/linux/sys/stdio.h (getline, getdelim): New macros.
12163
12164 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
12165
12166         * libc/include/math.h: Add <sys/types.h> to get _uint32_t definition.
12167         * libc/include/machine/types.h: Skip __off_t, __pid_t, and
12168         __loff_t definitions if special _HAVE_SYSTYPES macro defined.
12169         * libc/include/sys/config.h: Removed _uint*, _int* definitions.
12170         * libc/include/sys/param.h: Remove i386 case which is handled
12171         by default case.
12172         (BIG_ENDIAN, LITTLE_ENDIAN): Protect
12173         definitions in case they are already defined.
12174         (BYTE_ORDER): Add default case using _IEEE_BIG_ENDIAN and
12175         _IEEE_LITTLE_ENDIAN flags.
12176         * libc/include/sys/reent.h: Change __uint32_t references to
12177         use _ULong instead.
12178         (_REENT_GETDATE_REENT_P): New macro.
12179         * libc/include/sys/types.h (__int16_t, __uint16_t): Added.
12180         (__int32_t, __uint32_t, __int64_t, __uint64_t): Ditto.
12181         * libc/search/hash.h: Add default setting of BYTE_ORDER,
12182         LITTLE_ENDIAN, and BIG_ENDIAN, if not already defined.
12183         * libc/sys/linux/sys/types.h: Include <sys/_types.h>.  Define
12184         ssize_t based on _ssize_t.  Remove __socklen_t, __uintptr_t,
12185         pid_t, off_t, loff_t, caddr_t, and daddr_t type
12186         definitions which are done by subsequent glibc headers.
12187         Add macro definitions to prevent subsequent header files from
12188         defining pid_t, off_t, ssize_t, and key_t.  Move uintptr_t and
12189         intptr_t to after glibc definitions of types they are based on.
12190
12191 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
12192
12193         * libc/include/errno.h: Protect from multiple inclusion.
12194
12195 2002-06-21  Nick Clifton  <nickc@cambridge.redhat.com>
12196
12197         * libc/sys/arm/swi.h (ADP_Stopped_RunTimeError): Set correct value.
12198
12199 2002-06-20  Thomas Fitzsimmons  <fitzsim@redhat.com>
12200
12201         * Makefile.am (LIB_OBJECTLISTS): Add
12202         libc/search/objectlist.awk.in.
12203         * libc/Makefile.am (SUBDIRS): Add search.
12204         (SUBLIBS): Add search/libsearch.la.
12205         * libc/configure.in (AC_OUTPUT): Add search/Makefile.
12206         * libc/search: New directory.
12207         * libc/search/Makefile.am: New file.
12208         * libc/search/extern.h: New file.
12209         * libc/search/hash.c: New file.
12210         * libc/search/hash.h: New file.
12211         * libc/search/hash_bigkey.c: New file.
12212         * libc/search/hash_buf.c: New file.
12213         * libc/search/hash_func.c: New file.
12214         * libc/search/hash_log2.c: New file.
12215         * libc/search/hash_page.c: New file.
12216         * libc/search/hcreate.3: New file.
12217         * libc/search/hcreate.c: New file.
12218         * libc/search/hcreate_r.c: New file.
12219         * libc/search/ndbm.c: New file.
12220         * libc/search/page.h: New file.
12221         * libc/search/tdelete.c: New file.
12222         * libc/search/tdestroy.c: New file.
12223         * libc/search/tfind.c: New file.
12224         * libc/search/tsearch.3: New file.
12225         * libc/search/tsearch.c: New file.
12226         * libc/search/twalk.c: New file.
12227         * libc/include/db.h: New file.
12228         * libc/include/ndbm.h: New file.
12229         * libc/include/search.h: New file.
12230         * libc/include/sys/queue.h: New file.
12231         * libc/include/sys/cdefs.h: New file.
12232         * libc/include/sys/param.h
12233         [__IEEE_LITTLE_ENDIAN,__IEEE_BIG_ENDIAN]: Set BYTE_ORDER to
12234         LITTLE_ENDIAN or BIG_ENDIAN.
12235         * libc/include/sys/errno.h (EFTYPE): New macro.
12236         * libc/search/bsearch.c: Move from libc/stdlib.
12237         * libc/search/qsort.c: Likewise.
12238         * libc/stdlib/Makefile.am (LIB_SOURCES): Remove bsearch.c and
12239         qsort.c.
12240         (CHEWOUT_FILES): Remove bsearch.def and qsort.def.
12241         * libc/stdlib/stdlib.tex: Remove references to bsearch and qsort.
12242
12243 2002-06-19  Jeff Johnston  <jjohnstn@redhat.com>
12244
12245         * libc/sys/linux/Makefile.am: Add support for message queue routines,
12246         ipc routines, and ftok.
12247         * libc/sys/linux/Makefile.in: Regenerated.
12248         * libc/sys/linux/ftok.c: New file.
12249         * libc/sys/linux/ipc.c: Ditto.
12250         * libc/sys/linux/mq_close.c: Ditto.
12251         * libc/sys/linux/mq_getattr.c: Ditto.
12252         * libc/sys/linux/mq_notify.c: Ditto.
12253         * libc/sys/linux/mq_open.c: Ditto.
12254         * libc/sys/linux/mq_receive.c: Ditto.
12255         * libc/sys/linux/mq_send.c: Ditto.
12256         * libc/sys/linux/mq_setattr.c: Ditto.
12257         * libc/sys/linux/mq_unlink.c: Ditto.
12258         * libc/sys/linux/mqlocal.h: Ditto.
12259         * libc/sys/linux/include/mqueue.h: Ditto.
12260         * libc/sys/linux/sys/types.h: Define __gid_t_defined and
12261         __uid_t_defined.
12262
12263 2002-06-19  J"orn Rennecke <joern.rennecke@superh.com>
12264
12265         * libm/common/sf_lround.c (round): Change name to: (lround).
12266         * libm/common/sf_remquo.c (remquo): Pass all arguemnts to
12267         remquof.
12268
12269 2002-06-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
12270
12271         * testsuite/lib/passfail.exp (newlib_pass_fail_all): New
12272         procedure.
12273         (newlib_pass_fail): Change to compile and run only one file.
12274         * testsuite/newlib.locale/locale.exp: Use new
12275         newlib_pass_fail_all procedure.
12276         * testsuite/newlib.string/string.exp: Likewise.
12277
12278 2002-06-18  Dave Brolley  <brolley@redhat.com>
12279
12280         From Catherine Moore, Michael Meissner, Richard Sandiford:
12281         * libc/include/machine/setjmp.h (_JBLEN): Define for __frv__.
12282         (_JBTYPE): Ditto.
12283         * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Ditto.
12284         (__ATTRIBUTE_IMPURE_PTR__): Ditto.
12285         * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Ditto.
12286         * configure.host: Support frv-*-*.
12287         * libc/machine/frv/Makefile.am: New file.
12288         * libc/machine/frv/configure.in: New file.
12289         * libc/machine/frv/setjmp.S: New file.
12290
12291 2002-06-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
12292
12293         * libc/include/ctype.h: Remove isblank macro.
12294
12295         * libc/ctype/Makefile.am (LIB_SOURCES): Add isblank.c.
12296         * libc/ctype/isblank.c: New file.
12297         * libc/include/ctype.h [!__STRICT_ANSI__]: Add isblank
12298         declaration.  Add isblank macro.
12299
12300 2002-06-18  Jeff Johnston  <jjohnstn@redhat.com>
12301
12302         * testsuite/newlib.stdlib/atexit.c: New file.
12303         * testsuite/newlib.stdlib/atexit.exp: Ditto.
12304         * testsuite/newlib.string/tstring.c: Change default start size
12305         to something more reasonable for embedded platforms.
12306
12307 2002-06-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
12308
12309         * libc/sys/linux/sys/errno.h (EFTYPE): Add macro.
12310
12311         * libc/argz: New directory.
12312         * libc/argz/*: New files.
12313         * libc/argz/argz_add.c: New file.
12314         * libc/argz/argz_add_sep.c: New file.
12315         * libc/argz/argz_append.c: New file.
12316         * libc/argz/argz_count.c: New file.
12317         * libc/argz/argz_create.c: New file.
12318         * libc/argz/argz_create_sep.c: New file.
12319         * libc/argz/argz_delete.c: New file.
12320         * libc/argz/argz_extract.c: New file.
12321         * libc/argz/argz_insert.c: New file.
12322         * libc/argz/argz_next.c: New file.
12323         * libc/argz/argz_replace.c: New file.
12324         * libc/argz/argz_stringify.c: New file.
12325         * libc/argz/buf_findstr.c: New file.
12326         * libc/argz/envz_add.c: New file.
12327         * libc/argz/envz_entry.c: New file.
12328         * libc/argz/envz_get.c: New file.
12329         * libc/argz/envz_merge.c: New file.
12330         * libc/argz/envz_remove.c: New file.
12331         * libc/argz/envz_strip.c: New file.
12332         * libc/include/argz.h: New file.
12333         * libc/include/envz.h: New file.
12334         * Makefile.am (LIBC_OBJECTLISTS): Add
12335         libc/argz/objectlist.awk.in.
12336         * libc/Makefile.am (SUBDIRS): Add argz.
12337         (SUBLIBS): Add argz/libargz.la.
12338         * libc/configure.in (AC_OUTPUT): Add argz/Makefile.
12339         * libc/include/errno.h: Add error_t typedef.
12340
12341 2002-06-13  Jeff Johnston  <jjohnstn@redhat.com>
12342
12343         * libc/include/stdlib.h: Add _Exit prototype.
12344         * libc/stdlib/Makefile.am: Add _Exit.c support.
12345         * libc/stdlib/Makefile.in: Ditto.
12346         * libc/stdlib/_Exit.c: New file.
12347
12348 2002-06-13  Stephen L. Moshier  <steve@moshier.net>
12349
12350         * libm/math/e_pow.c (__ieee754_pow): Fix case whereby
12351         x is close to -1.0 and y is very large to use ax (absolute value)
12352         instead of x.
12353         * libm/math/ef_pow.c (__ieee754_powf): Ditto.
12354
12355 Thu Jun 13 19:23:40 2002  J"orn Rennecke <joern.rennecke@superh.com>
12356
12357         * libc/machine/sh/strcpy.S (strcpy, __SHMEDIA__ code):
12358         Fix clobbering bytes before destination if src and dst have same
12359         non-zero misalignment.
12360
12361         * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
12362         Fixed bug in writing end of set region.
12363
12364 2002-06-10  Christopher Faylor  <cgf@redhat.com>
12365
12366         * libc/include/process.h: Remove cygwin-only sexec* declarations.  Fix
12367         spawnve declaration.
12368
12369 2002-06-06  Thomas Fitzsimmons  <fitzsim@redhat.com>
12370
12371         * libm/common/s_fdim.c: New file.
12372         * libm/common/s_fma.c: Likewise.
12373         * libm/common/s_fmax.c: Likewise.
12374         * libm/common/s_fmin.c: Likewise.
12375         * libm/common/s_fpclassify.c: Likewise.
12376         * libm/common/s_lrint.c: Likewise.
12377         * libm/common/s_lround.c: Likewise.
12378         * libm/common/s_nearbyint.c: Likewise.
12379         * libm/common/s_remquo.c: Likewise.
12380         * libm/common/s_round.c: Likewise.
12381         * libm/common/s_scalbln.c: Likewise.
12382         * libm/common/s_signbit.c: Likewise.
12383         * libm/common/s_trunc.c: Likewise.
12384         * libm/common/sf_fdim.c: Likewise.
12385         * libm/common/sf_fma.c: Likewise.
12386         * libm/common/sf_fmax.c: Likewise.
12387         * libm/common/sf_fmin.c: Likewise.
12388         * libm/common/sf_lrint.c: Likewise.
12389         * libm/common/sf_lround.c: Likewise.
12390         * libm/common/sf_nearbyint.c: Likewise.
12391         * libm/common/sf_remquo.c: Likewise.
12392         * libm/common/sf_round.c: Likewise.
12393         * libm/common/sf_scalbln.c: Likewise.
12394         * libm/common/sf_trunc.c: Likewise.
12395         * libm/math/w_exp2.c: Likewise.
12396         * libm/math/w_tgamma.c: Likewise.
12397         * libm/math/wf_exp2.c: Likewise.
12398         * libm/math/wf_tgamma.c: Likewise.
12399         * libm/mathfp/s_exp2.c: Likewise.
12400         * libm/mathfp/s_tgamma.c: Likewise.
12401         * libm/mathfp/sf_exp2.c: Likewise.
12402         * libm/mathfp/sf_tgamma.c: Likewise.
12403         * libm/math/er_gamma.c: Fix return value.
12404         * libm/math/erf_gamma.c: Likewise.
12405         * libm/mathfp/er_gamma.c: Likewise.
12406         * libm/mathfp/erf_gamma.c: Likewise.
12407         * libc/include/math.h (!__STRICT_ANSI__): Include ISOC99-specific
12408         declarations and macros.
12409         Regenerated all Makefile.in, aclocal.m4 and configure files to
12410         use new libtool macros in top-level libtool.m4
12411
12412 2002-06-05  Jeff Johnston  <jjohnstn@redhat.com>
12413
12414         * libc/include/string.h[__linux__]: Add strsignal prototype.
12415         * libc/include/sys/lock.h: New file with default locking support.
12416         * libc/include/sys/reent.h: Add signal buffer support for strsignal
12417         and psignal.
12418         * libc/posix/Makefile.am: Add support for readdir_r.c.
12419         * libc/posix/Makefile.in: Regenerated.
12420         * libc/posix/closedir.c: Add locking support and hash table cleanup.
12421         * libc/posix/opendir.c: Add lock support.
12422         * libc/posix/readdir.c: Ditto.
12423         * libc/posix/rewinddir.c: Ditto.
12424         * libc/posix/scandir.c: Ditto.
12425         * libc/posix/seekdir.c: Ditto.
12426         * libc/posix/telldir.c: Ditto plus add _cleanupdir routine to
12427         clean up leftover hash table entries.
12428         * libc/posix/readdir_r.c: New file.
12429         * libc/sys/linux/Makefile.am: Add psignal.c and strsignal.c support.
12430         * libc/sys/linux/Makefile.in: Regenerated.
12431         * libc/sys/linux/sys/dirent.h: Add dd_lock to DIR structure.
12432         * libc/sys/linux/sys/signal.h: Add psignal prototype.
12433         * libc/sys/linux/psignal.c: New file.
12434         * libc/sys/linux/strsignal.c: Ditto.
12435
12436 2002-06-03  Corinna Vinschen  <corinna@vinschen.de>
12437
12438         * libc/include/sys/types.h: Don't define dev_t when compiling for
12439         Cygwin.
12440
12441 2002-05-31  Jeff Johnston  <jjohnstn@redhat.com>
12442
12443         * libc/sys/linux/Makefile.am: Add sig.c and sigaction.c.  Also
12444         make siglist.inc dependent on sig.c instead of signal.c.
12445         * libc/sys/linux/Makefile.in: Regenerated.
12446         * libc/sys/linux/sig.c: Rename from signal.c and change code to
12447         use NSIG instead of _NSIG.
12448         * libc/sys/linux/sigaction.c: New file.
12449         * libc/sys/linux/signal.c: Changed to be linux signal() function
12450         so as to override regular newlib default signal.c.
12451         * libc/sys/linux/machine/i386/Makefile.am: Remove sigset.c.
12452         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
12453         * libc/sys/linux/machine/i386/sigset.c: Moved to linux main directory.
12454         * libc/sys/linux/sigset.c: Moved from machine/i386 directory.
12455         * libc/sys/linux/sys/signal.h: Redefine NSIG to _NSIG and override
12456         default linux sigset_t typedef by defining it equal to __sigset_t.
12457         * libc/unix/sigset.c: Add check so code isn't compiled on systems
12458         with a sigset_t that isn't implemented with a single int.
12459
12460 2002-05-30  Jeff Johnston  <jjohnstn@redhat.com>
12461
12462         * libc/sys/linux/Makefile.am: Add support for new files.
12463         * libc/sys/linux/Makefile.in: Regenerated.
12464         * libc/sys/linux/ids.c: Add __getuid weak alias for getuid.
12465         * libc/sys/linux/signal.c: Change to use real-time syscalls for
12466         sigsuspend, sigprocmask, and sigpending.  Also remove sigaction as
12467         it is in a separate file now.
12468         * libc/sys/linux/machine/i386/Makefile.am
12469         * libc/sys/linux/machine/i386/Makefile.in
12470         * libc/sys/linux/sys/signal.h: Add include of <bits/signum.h>.
12471         * libc/sys/linux/sigaction.c: New file.
12472         * libc/sys/linux/sigqueue.c: Ditto.
12473         * libc/sys/linux/sigwait.c: Ditto.
12474         * libc/sys/linux/machine/i386/sigaction.c: Ditto.
12475         * libc/sys/linux/kernel_sigaction.h: Ditto.
12476
12477 2002-05-28  Jeff Johnston  <jjohnstn@redhat.com>
12478
12479         * libc/sys/linux/Makefile.am: Add support for cfspeed.c and
12480         tcsendbrk.c.
12481         * libc/sys/linux/Makefile.in: Regenerated.
12482         * libc/sys/linux/termios.c: Add tcflow(), tcflush(),
12483         tcgetpgrp(), and tcsetpgrp() functions.
12484         * libc/sys/linux/sys/termios.h: Add include of machine/termios.h
12485         to get __MAX_BAUD rate.
12486         * libc/sys/linux/machine/i386/include/termios.h: New file.
12487         * libc/include/machine/termios.h: Ditto.
12488         * libc/sys/linux/cfspeed.c: Ditto.
12489         * libc/sys/linux/tcsendbrk.c: Ditto.
12490
12491 2002-05-24  Jeff Johnston  <jjohnstn@redhat.com>
12492
12493         * libc/include/string.h: Add strnlen and strerror_r prototypes.
12494         * libc/string/Makefile.am: Add strnlen.c and strerror_r.c support.
12495         * libc/string/Makefile.in: Regenerated.
12496         * libc/string/strerror_r.c: New file.
12497         * libc/string/strnlen.c: New file.
12498         * libc/sys/linux/Makefile.am: Add rename.c.
12499         * libc/sys/linux/Makefile.in: Regenerated.
12500         * libc/sys/linux/rename.c: New file to override default rename.
12501
12502 2002-05-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
12503
12504         * libc/sys/linux/sys/cdefs.h: Add __weak_reference macros.
12505         * libc/sys/linux/sys/time.h: Add conversion macros.
12506         * libc/sys/linux/sys/types.h: Add FD_ macros.  Include <bits/types.h>.
12507         * libc/sys/linux/ids.c: Add setresuid and syslog syscalls.
12508         * libc/sys/linux/gethostname.c: New file.
12509         * libc/sys/linux/seteuid.c: New file.
12510         * libc/sys/linux/sysctl.c: New file.
12511
12512 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
12513
12514         * libc/string/Makefile.am: Add support for strsep.c.
12515         * libc/string/Makefile.in: Regenerated.
12516         * libc/string/strsep.c: New file.
12517         * libc/string/strtok.c: Change to call __strtok_r service routine.
12518         * libc/string/strtok_r.c: Add __strtok_r routine which takes
12519         additional flag parameter regarding whether to skip leading delimeters.
12520         Change strtok_r to call __strtok_r.
12521
12522 2002-05-23  Gareth Pearce  <tilps@hotmail.com>
12523
12524         * libc/stdio/Makefile.am: Modify to add setbuffer.c and setlinebuf.c.
12525         * libc/stdio/Makefile.in: Regenerated.
12526         * libc/stdio/setbuffer.c: New file.
12527         * libc/stdio/setlinebuf.c: New file.
12528
12529 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
12530
12531         * libc/sys/linux/Makefile.am: Add resource.c.
12532         * libc/sys/linux/Makefile.in: Regenerated.
12533         * libc/sys/linux/resource.c: New file.
12534         * libc/sys/linux/time.c: Add settimeofday, getitimer, and setitimer.
12535         * libc/sys/linux/machine/i386/Makefile.am: Remove syscalls.c.
12536         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
12537         * libc/sys/linux/machine/i386/syscalls.c: Removed as functions
12538         are now found in libc/sys/linux/resource.c.
12539
12540 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
12541
12542         * libc/include/string.h (bcmp, bcopy, bzero): Change prototypes
12543         to use void * pointers and comply with Single Unix spec.
12544         * libc/string/bcmp.c: Change to use void * instead of char *.
12545         * libc/string/bcopy.c: Ditto.
12546         * libc/string/bzero.c: Ditto.
12547
12548 2002-05-22  Jeff Johnston  <jjohnstn@redhat.com>
12549
12550         * libc/sys/linux/shm_open.c: New file.
12551         * libc/sys/linux/shm_unlink.c: Ditto.
12552         * libc/sys/linux/Makefile.am: Add support for shm_open.c and
12553         shm_unlink.c.
12554         * libc/sys/linux/Makefile.in: Regenerated.
12555         * libc/sys/linux/sys/types.h: Add some additional checks to see
12556         if clock_t or time_t is already defined.
12557
12558 2002-05-22  Jeff Johnston  <jjohnstn@redhat.com>
12559
12560         * Makefile.am: Don't pass $toollibdir down directly in
12561         AM_MAKEFLAGS as it causes all multilibs to use the same toollibdir.
12562         Pass it under the name: top_toollibdir.
12563         * Makefile.in: Regenerated.
12564
12565 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
12566
12567         * libc/include/sys/types.h: Revert previous patch.
12568
12569 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
12570
12571         * libc/include/sys/types.h: Include cygwin/types.h always under
12572         Cygwin, not only if _POSIX_THREADS is defined.
12573
12574 2002-05-21 Dhananjay Deshpande <dhananjayd@kpit.com>
12575
12576         * configure.host: Specify sys_dir=h8300hms for h8300-*-coff* target.
12577
12578 2002-05-17  Jeff Johnston  <jjohnstn@redhat.com>
12579
12580         * Makefile.am: Copy and install headers from sys/machine/include
12581         directory.  Also pass $toollibdir to lower-level directories.
12582         * Makefile.in: Regenerated.
12583         * libc/include/stdio.h[!_REENT_ONLY]: Change stdin, stdout, and
12584         stderr to use _REENT macro instead of _impure_ptr directly.
12585         * libc/include/sys/config.h[__i386__][__linux__]: Define
12586         __DYNAMIC_REENT__.
12587         * libc/include/sys/reent.h[!_REENT_ONLY]: Change _REENT macro to be
12588         call to __getreent() function if !__SINGLE_THREAD__ and
12589         __DYNAMIC_REENT__ is set.
12590         * libc/reent/Makefile.am: Add support for getreent.c.
12591         * libc/reent/Makefile.in: Regenerated.
12592         * libc/string/strerror.c: Add check if EOPNOTSUPP and ENOTSUP are same.
12593         * libc/sys/linux/Makefile.am: Add support for new files.
12594         * libc/sys/linux/configure.in: Add $EXTRA_DIRS variable.
12595         * libc/sys/linux/Makefile.in: Regenerated.
12596         * libc/sys/linux/configure: Ditto.
12597         * libc/sys/linux/io.c: Add poll syscall.  Also weak-alias
12598         __close, __read, __write, __poll, __open, __lseek, __fcntl from
12599         their __libc_ counterparts.
12600         * libc/sys/linux/io64.c: Add __libc_ prefix to lseek64 and open64
12601         and weak-alias to regular names.
12602         * libc/sys/linux/pread64.c: Rename to __libc_pread64 and weak-alias
12603         to pread64 and __pread64.
12604         * libc/sys/linux/process.c: Weak_alias __libc_getpid to __getpid.
12605         * libc/sys/linux/pwrite64.c: Rename to __libc_pwrite64 and
12606         weak-alias to pwrite64.
12607         * libc/sys/linux/sched.c: Weak-alias __libc_sched_getparam,
12608         __libc_sched_getscheduler, __libc_sched_get_priority_max,
12609         __libc_sched_get_priority_min, and __libc_sched_setschedule to
12610         name with __ instead of __libc_.
12611         * libc/sys/linux/siglongjmp.c: Include <machine/weakalias.h>.
12612         Rename siglongjmp to __libc_siglongjmp and weak-alias to siglongjmp.
12613         Call __libc_longjmp instead of longjmp, from __libc_siglongjmp.
12614         * libc/sys/linux/signal.c: Rename raise to __libc_raise and weak-alias
12615         to raise.
12616         * libc/sys/linux/socket.c: Weak-alias __libc_connect to __connect and
12617         __libc_send to __send.
12618         * libc/sys/linux/time.c: Weak-alias __libc_gettimeofday to
12619         __gettimeofday.
12620         * libc/sys/linux/wait.c: Rename wait to __libc_wait and weak-alias
12621         it to wait.  Rename wait3 to __libc_wait3 and weak-alias it to wait3.
12622         * libc/sys/linux/include/setjmp.h: Use __jmp_buf in sigjmp_buf
12623         type and typedef __jmp_buf to jmp_buf.
12624         * libc/sys/linux/machine/i386/Makefile.am: Add syscalls.c and
12625         setjmp.S.
12626         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
12627         * libc/sys/linux/machine/i386/crt0.c: Add support to clear .bss
12628         section.
12629         * libc/sys/linux/machine/i386/socketcall.h: Change to use __libc_
12630         prefix for function macros and then use weak_alias() to regular names.
12631         * libc/sys/linux/machine/i386/syscall.h: Ditto.
12632         * libc/sys/linux/sys/errno.h: Define EOPNOTSUP to be ENOTSUP.
12633         * libc/sys/linux/sys/stdio.h: Define _flockfile and _funlockfile
12634         to be flockfile() and funlockfile() respectively.
12635         * libc/sys/linux/sys/types.h
12636         * libc/reent/getreent.c: New file.
12637         * libc/sys/linux/flockfile.c: Ditto.
12638         * libc/sys/linux/funlockfile.c: Ditto.
12639         * libc/sys/linux/getreent.c: Ditto.
12640         * libc/sys/linux/pread.c: Ditto.
12641         * libc/sys/linux/pwrite.c: Ditto.
12642         * libc/sys/linux/raise.c: Ditto.
12643         * libc/sys/linux/system.c: Ditto.
12644         * libc/sys/linux/tcdrain.c: Ditto.
12645         * libc/sys/linux/machine/i386/i386mach.h: Ditto.
12646         * libc/sys/linux/machine/i386/setjmp.S: Ditto.
12647         * libc/sys/linux/machine/i386/syscalls.c: Ditto.
12648         * libc/sys/linux/machine/i386/weakalias.h: Ditto.
12649         * libc/sys/linux/machine/i386/include/setjmp.h: Ditto.
12650
12651 2002-05-14 Dhananjay Deshpande <dhananjayd@kpit.com>
12652
12653         * newlib/libc/sys/h8300hms/Makeile.am (lib_a_SOURCES): Add read.c.
12654         * newlib/libc/sys/h8300hms/read.c: New file.  Magic trap 0xC8 for sim.
12655         * newlib/libc/sys/h8300hms/syscalls.c: Move _read() to read.c.
12656         * newlib/libs/sys/h8300hms/sys/syscall.h: New file.
12657
12658 Thu May 16 17:24:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
12659
12660         * libc/machine/sh/strcpy.S (strcpy): Replace LITTLE_ENDIAN with
12661         __LITTLE_ENDIAN__.  make sure r0 has right value at first loop
12662         exit point.
12663
12664 2002-05-15  Thomas Fitzsimmons  <fitzsim@redhat.com>
12665
12666         * testsuite/lib/newlib.exp: Add newlib_include_flags to compile
12667         options when testing natively on i[3456]86-*-linux.
12668
12669         * testsuite/lib/checkoutput.exp (newlib_check_output): Output
12670         only one pass or fail per test file.  Trim \r's from output
12671         values received from test programs.  Remove support for named
12672         tests.
12673         * testsuite/newlib.locale/UTF-8.exp: Update to support new
12674         newlib_check_output behaviour.
12675         * testsuite/newlib.locale/UTF-8.c: Likewise.
12676
12677 2002-05-15  Jeff Johnston  <jjohnstn@redhat.com>
12678
12679         * libc/include/stdlib.h: Add on_exit prototype.
12680         * libc/include/sys/reent.h (struct _atexit): Add argument array
12681         and bits to track type of exit routine to support both on_exit
12682         and atexit.
12683         (_REENT_INIT_PTR): Add missing fields that won't be zeroed out
12684         by default and change the setting of the atexit structure.
12685         (_REENT_INIT)[!_REENT_SMALL]: Remove extraneous end brace.
12686         * libc/stdlib/on_exit.c: New file.
12687         * libc/stdlib/Makefile.am: Add support for on_exit.
12688         * libc/stdlib/Makefile.in: Regenerated.
12689         * libc/stdlib/atexit.c: Change to initialize types field.
12690         * libc/stdlib/exit.c: Change to look at types field for each
12691         exit routine and either call an atexit-style or an on_exit-style
12692         routine accordingly.
12693
12694 2002-05-13  Jeff Johnston  <jjohnstn@redhat.com>
12695
12696         * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Don't
12697         allow v specifier with n or L specifiers.  For vector c format,
12698         move tmp declaration to the top.
12699
12700 2002-05-13  Jeff Johnston  <jjohnstn@redhat.com>
12701
12702         * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Restore
12703         the original format specifier when looping for vectors to compensate
12704         for any changes made in vector %g format processing.
12705         Also add syntax checking for various invalid scenarios
12706         involving vector format extensions.
12707         * libc/machine/powerpc/vfscanf.c(__VFSCANF_R)[__ALTIVEC__]: Fix
12708         return code setting for vector formats.  Also treat vector
12709         separator mismatch as a match error instead of an input error.
12710         Perform some syntax checking for vector formats.
12711
12712 2002-05-10  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
12713
12714         * libc/include/string.h (!__STRICT_ANSI__): Add strlcat and strlcpy.
12715         * libc/string/Makefile.am: Add strlcat.c and strlcpy.c.
12716         * libc/string/strlcat.c: New file.
12717         * libc/string/strlcpy.c: New file.
12718
12719 2002-05-10  Jeff Johnston  <jjohnstn@redhat.com>
12720
12721         * libc/string/strchr.c: Fix comment typo.
12722
12723 2002-05-08  Thomas Fitzsimmons  <fitzsim@redhat.com>
12724
12725         * acinclude.m4: Add support for --enable-newlib-multithread.
12726         * configure.host (newlib_cflags): Add -D__SINGLE_THREAD__ if
12727         --enable-newlib-multithread=no.
12728
12729         * libc/stdio/getc_u.c: New file.
12730         * libc/stdio/getchar_u.c: New file.
12731         * libc/stdio/putc_u.c: New file.
12732         * libc/stdio/putchar_u.c: New file.
12733         * libc/include/stdio.h: Add declarations for getc_unlocked,
12734         getchar_unlocked, putc_unlocked and putchar_unlocked.
12735         * libc/stdio/Makefile.am (LIB_SOURCES): Add new files.
12736         (CHEWOUT_FILES): Add new files' .def's.
12737         * libc/stdio/putchar.c (_putchar_r): Replace __sputc with putc.
12738
12739 Wed May  8 17:47:35 2002  J"orn Rennecke <joern.rennecke@superh.com>
12740
12741         * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
12742         Also handle as single quad word when destination ends at last
12743         byte of first quad word.  Fix byte selection in single quad code.
12744
12745 2002-05-07  Thomas Fitzsimmons  <fitzsim@redhat.com>
12746
12747         * libc/include/sys/stdio.h: New file.
12748         * libc/sys/linux/sys/stdio.h: New file.
12749         * libc/include/stdio.h: Add declarations for flockfile,
12750         ftrylockfile, and funlockfile.  Include <sys/stdio.h>.
12751         * libc/stdio/clearerr.c: Add file locking.
12752         * libc/stdio/fclose.c: Likewise.
12753         * libc/stdio/feof.c: Likewise.
12754         * libc/stdio/ferror.c: Likewise.
12755         * libc/stdio/fflush.c: Likewise.
12756         * libc/stdio/fgetc.c: Likewise.
12757         * libc/stdio/fgetpos.c: Likewise.
12758         * libc/stdio/fgets.c: Likewise.
12759         * libc/stdio/fileno.c: Likewise.
12760         * libc/stdio/fputc.c: Likewise.
12761         * libc/stdio/fputs.c: Likewise.
12762         * libc/stdio/fread.c: Likewise.
12763         * libc/stdio/freopen.c: Likewise.
12764         * libc/stdio/fseek.c: Likewise.
12765         * libc/stdio/ftell.c: Likewise.
12766         * libc/stdio/fwrite.c: Likewise.
12767         * libc/stdio/getc.c: Likewise.
12768         * libc/stdio/putc.c: Likewise.
12769         * libc/stdio/setvbuf.c: Likewise.
12770         * libc/stdio/ungetc.c: Likewise.
12771         * libc/stdio/vfprintf.c: Likewise.
12772
12773 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
12774
12775         * libc/machine/powerpc/vfprintf.c[__ALTIVEC__]: Add vector
12776         support for 'p' format.  Fix code to print bytes for vector
12777         integer formats that do not specify 'h' or 'l'.
12778         * libc/machine/powerpc/vfscanf.c[__ALTIVEC__]: Add vector support
12779         for 'p' specifier.  Fix code to scan 16 bytes for vector integer
12780         formats that do not specify 'h' or 'l'.
12781
12782         * libc/include/stdlib.h (a64l, l64a, _l64a_r): Added prototypes.
12783
12784 2002-05-06  Nick Clifton  <nickc@cambridge.redhat.com>
12785
12786         * libc/sys/arm/syscalls.c (_rename): Add parameter names.
12787         (_sbrk): Add cast of return value.
12788
12789 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
12790
12791         *  libc/include/sys/reent.h (_l64a_buf): New reentrant area.
12792         (_REENT_L64A_BUF): New macro for accessing area.
12793         *  libc/stdlib/Makefile.am: Add a64l.c and l64a.c.
12794         *  libc/stdlib/Makefile.in: Regenerated.
12795         *  libc/stdlib/a64l.c: New file.
12796         *  libc/stdlib/l64a.c: New file.
12797
12798 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
12799
12800         * libc/unix/pread.c: Fix typo for _pread_r.
12801         * libc/unix/pwrite.c: Fix type for _pwrite_r.
12802         * libc/sys/linux/pread64.c: Fix typo for read syscall.
12803         * libc/sys/linux/pwrite64.c: Fix typo for write syscall.
12804
12805 2002-05-03  Christopher Faylor  <cgf@redhat.com>
12806
12807         * libc/include/sys/unistd.h: Define getdomainname under cygwin.
12808
12809 2002-05-03  Thomas Fitzsimmons  <fitzsim@redhat.com>
12810
12811         * configure.in (CC_FOR_NEWLIB): Change -isystem's to -I's.
12812
12813 2002-05-01  Christopher Faylor  <cgf@redhat.com>
12814
12815         * utmp.h: Define more UNIX constants.
12816
12817 2002-05-01  Thomas Fitzsimmons  <fitzsim@redhat.com>
12818
12819         * Makefile.am: Add support for checking multilibs.
12820
12821         * libc/Makefile.am (SUBLIBS): Add LIBC_EXTRA_LIB.
12822         (SUBDEFS): Add LIBC_EXTRA_DEF.
12823         * libc/configure.in (LIBC_EXTRA_LIB): New variable.
12824         (LIBC_EXTRA_DEF): Likewise.
12825         (extra_dir): Likewise.
12826         * libc/machine/xscale/machine: New directory.
12827         * libc/machine/xscale/machine/profile.h: New file.
12828
12829         * Makefile.am (site.exp): Remove newlib_cflags.  Add
12830         multibuildtop.
12831         * testsuite/newlib.locale/UTF-8.c: Change fprintf's to printf's.
12832         * testsuite/lib/flags.exp: New file.
12833         * testsuite/lib/newlib.exp: Load flags.exp.
12834         (newlib_target_compile): Remove libgloss directory references.
12835         (newlib_init): Remove newlib_cflags references.
12836
12837 2002-04-30  Thomas Fitzsimmons  <fitzsim@redhat.com>
12838
12839         * testsuite/lib/newlib.exp (newlib_target_compile): Change
12840         method of finding libgloss_target_dir.
12841
12842         * Makefile.am (site.exp): Change host_alias, host_triplet,
12843         target_alias, target_triplet to refer to gcc's host and target
12844         variables (newlib's build and host variables).
12845         * testsuite/lib/newlib.exp (newlib_init): Change build
12846         references to host references, host references to target
12847         references to reflect Makefile.am changes.
12848         (newlib_target_compile): Likewise.
12849         (newlib_finish): Likewise.
12850
12851 2002-04-29  Jeff Johnston  <jjohnstn@redhat.com>
12852
12853         * libc/sys/linux/io64.c (fstat64, lstat64): New syscalls added.
12854
12855 2002-04-29  Jonathan Larmour  <jlarmour@redhat.com>
12856
12857         * libc/sys/arm/syscalls.c (_rename): New function. Just a stub.
12858         (_system): New function. Ditto.
12859         * libc/stdlib/system.c (_system_r): Call _system if HAVE_SYSTEM.
12860         * configure.host: define HAVE_SYSTEM and HAVE_RENAME for xscale
12861         targets.
12862
12863 2002-04-29  Jeff Johnston  <jjohnstn@redhat.com>
12864
12865         *  libc/include/sys/unistd.h (pread, pwrite): Added prototypes.
12866         *  libc/unix/Makefile.am: Add pread.c and pwrite.c.
12867         *  libc/sys/linux/Makefile.am: Add pread64.c and pwrite64.c.
12868         *  libc/sys/linux/Makefile.in: Regenerated.
12869         *  libc/unix/Makefile.in: Ditto.
12870         *  libc/sys/linux/pread64.c: New file.
12871         *  libc/sys/linux/pwrite64.c: Ditto.
12872         *  libc/unix/pread.c: Ditto.
12873         *  libc/unix/pwrite.c: Ditto.
12874
12875 2002-04-26  Jeff Johnston  <jjohnstn@redhat.com>
12876
12877         *  libc/sys/linux/Makefile.am: Add io64.c.
12878         *  libc/sys/linux/Makefile.in: Regenerated.
12879         *  libc/sys/linux/io.c(mkfifo, fsync, fdatasync): Added syscalls.
12880         *  libc/sys/linux/signal.c (sigwaitinfo, sigtimedwait): Ditto.
12881         *  libc/sys/linux/io64.c: New file.
12882
12883 2002-04-26  Jeff Johnston  <jjohnstn@redhat.com>
12884
12885         * configure.in (CC_FOR_NEWLIB): New variable that
12886         bases on $(CC) and adds targ-include and libc/include as
12887         -isystem directives if they are not already part of $(CC).
12888         * Makefile.am (AM_MAKEFLAGS): Change setting of CC to equal
12889         $(CC_FOR_NEWLIB).
12890         * configure: Regenerated.
12891         * Makefile.in: Ditto.
12892
12893 2002-04-25  Jeff Johnston  <jjohnstn@redhat.com>
12894
12895         *  libc/sys/linux/Makefile.am: Add support for sched.c.
12896         *  libc/sys/linux/Makefile.in: Regenerated.
12897         *  libc/sys/linux/sched.c: New file.
12898         *  libc/sys/linux/sys/types.h: Add struct timespec.
12899
12900 2002-04-25  Thomas Fitzsimmons  <fitzsim@redhat.com>
12901
12902         * configure.in (CC_FOR_BUILD): Set to gcc whether
12903         cross-compiling or not.
12904         (CC): Add -isystem's for targ-include and libc/include when they
12905         do not already appear in CC.
12906
12907 2002-04-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
12908
12909         * Makefile.am (check-DEJAGNU): New target.
12910         (site.exp): Likewise.
12911         * acinclude.m4 (NEWLIB_CONFIGURE): Replace AC_CANONICAL_HOST
12912         with AC_CANONICAL_SYSTEM.  Remove AC_CANONICAL_BUILD.
12913         * libc/locale/locale.c (_setlocale_r): Add UTF-8 support.
12914         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Likewise.
12915         * libc/stdlib/wctomb_r.c (_wctomb_r): Likewise.
12916         * testsuite: New directory.
12917         * testsuite/config: Likewise.
12918         * testsuite/lib: Likewise.
12919         * testsuite/newlib.locale: Likewise.
12920         * testsuite/newlib.string: Likewise.
12921         * testsuite/config/default.exp: New file.
12922         * testsuite/lib/checkoutput.exp: New file.
12923         * testsuite/lib/newlib.exp: New file.
12924         * testsuite/lib/passfail.exp: New file.
12925         * testsuite/newlib.locale/UTF-8.c: New file.
12926         * testsuite/newlib.locale/UTF-8.exp: New file.
12927         * testsuite/newlib.locale/locale.exp: New file.
12928         * testsuite/newlib.string/string.exp: New file.
12929         * testsuite/newlib.string/tstring.c: New file.
12930
12931 2002-04-23  Jeff Johnston  <jjohnstn@redhat.com>
12932
12933         *  libc/include/machine/types.h (__pid_t, __off_t, __loff_t): Added.
12934         *  libc/sys/linux/Makefile.am: Add support for mmap.c.
12935         *  libc/sys/linux/Makefile.in: Regenerated.
12936         *  libc/sys/linux/mmap.c: New file.
12937         *  libc/sys/linux/machine/i386/syscall.h: Add _syscall6 macro.
12938         *  libc/sys/linux/sys/types.h (pid_t, off_t, loff_t): Added.
12939
12940 2002-04-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
12941
12942         * acinclude.m4 (newlib_cflags): Remove include directories that
12943         are already specified in the top-level configure.in's FLAGS_FOR_TARGET.
12944
12945 2002-04-19  Bill Siegmund  <ctc-dsl@pacbell.net>
12946
12947         * libc/machine/xscale/memchr.c: Don't use multi-line strings.
12948         * libc/machine/xscale/memcmp.c: Ditto.
12949         * libc/machine/xscale/memcpy.c: Ditto.
12950         * libc/machine/xscale/memmove.c: Ditto.
12951         * libc/machine/xscale/memset.c: Ditto.
12952         * libc/machine/xscale/strchr.c: Ditto.
12953         * libc/machine/xscale/strcmp.c: Ditto.
12954         * libc/machine/xscale/strcpy.c: Ditto.
12955         * libc/machine/xscale/strlen.c: Ditto.
12956
12957 2002-04-19  Alexandre Oliva  <aoliva@redhat.com>
12958
12959         * libc/include/sys/config.h: Remove include of <limits.h>.
12960         (__INT_MAX__, __LONG_MAX__): Define like GCC's limits.h would
12961         define INT_MAX and LONG_MAX.  Use them in tests.
12962
12963 2002-04-19  Jeff Johnston  <jjohnstn@redhat.com>
12964
12965         *  configure.host: Add support for powerpc-eabialtivec*.
12966         *  libc/include/malloc.h: Add include of <machine/malloc.h>.
12967         *  libc/include/stdlib.h: Add include of <machine/stdlib.h>.
12968         *  libc/include/machine/malloc.h: New file.
12969         *  libc/include/machine/stdlib.h: Ditto.
12970         *  libc/include/machine/setjmp.h: Add support for powerpc altivec.
12971         *  libc/machine/powerpc/Makefile.am: Add conditional objects and
12972         sources based on configuration.
12973         *  libc/machine/powerpc/Makefile.in: Regenerated.
12974         *  libc/machine/powerpc/configure: Ditto.
12975         *  libc/machine/powerpc/configure.in: Add check for
12976         powerpc-eabialtivec* in which case add in additional source files.
12977         *  libc/machine/powerpc/setjmp.S: Add altivec support.
12978         *  libc/machine/powerpc/vec_calloc.c: New file.
12979         *  libc/machine/powerpc/vec_free.c: Ditto.
12980         *  libc/machine/powerpc/vec_malloc.c: Ditto.
12981         *  libc/machine/powerpc/vec_mallocr.c: Ditto.
12982         *  libc/machine/powerpc/vec_realloc.c: Ditto.
12983         *  libc/machine/powerpc/machine/malloc.h: Ditto.
12984         *  libc/machine/powerpc/machine/stdlib.h: Ditto.
12985         *  libc/machine/powerpc/vfprintf.c: New file that is vfprintf.c
12986         with added altivec format specifiers.
12987         *  libc/machine/powerpc/vfscanf.c: New file that is vfscanf.c with
12988         added altivec format specifiers.
12989
12990 2002-04-19      Joel Sherrill <joel@OARcorp.com>
12991
12992         * libs/sys/rtems/crt0.c: Satisfy gcc's references to libc functions
12993         while autoconf is trying to link main(){}.
12994
12995 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
12996
12997         * libc/sys/linux/signal.c: Remove include of <bits/sigset.h>.
12998         * libc/sys/linux/sys/signal.h: Add include of <bits/sigset.h>.
12999
13000 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
13001
13002         * libc/time/time.tex: Add tzset info.
13003
13004 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
13005
13006         * libc/include/time.h (tzset, _tzset_r): Added prototypes.
13007         (strptime): Moved prototype to be within !__STRICT_ANSI__.
13008         (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
13009         (tzname): Defined for all platforms.
13010         (daylight, timezone): Defined only for CYGWIN.
13011         * libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
13012         environment set up.
13013         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
13014         environment variable is set.
13015         * libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
13016         tzset_r.c.
13017         * libc/time/Makefile.in: Regenerated.
13018         * libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
13019         * libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
13020         * libc/time/lcltime_r.c (lcltime_r): Ditto.
13021         * libc/time/local.h: New local header file.
13022         * libc/time/mktime.c (mktime): Add timezone support.
13023         * libc/time/mktm_r.c: New file which is the common engine
13024         for gmtime_r and lcltime_r.  This code has timezone support.
13025         * libc/time/strftime.c (strftime): Add %Z timezone support.
13026         * libc/time/tzlock.c: New file containing timezone lock stubs.
13027         * libc/time/tzset.c: New file containing tzset() routine.
13028         * libc/time/tzset_r.c: New file containing _tzset_r and
13029         internal routine for calculating timezone changes for specified year.
13030
13031 2002-04-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
13032
13033         * configure.in (CRT0_DIR): Set to libc/.
13034         (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
13035         * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
13036         $(CRT0_DIR)$(CRT0) to prevent make warnings.  Likewise for
13037         $(CRT1_DIR)/$(CRT1).
13038         * libc/machine/xstormy16/Makefile.in: Regenerated.
13039         * libc/machine/xstormy16/aclocal.m4: Regenerated.
13040         * libc/machine/xstormy16/configure: Regenerated.
13041
13042 2002-04-13  Alexandre Oliva  <aoliva@redhat.com>
13043
13044         * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
13045         fails, don't bail out, and try to correct next time.
13046
13047         * libc/include/sys/config.h: Include limits.h.
13048
13049 2002-04-12  Eric Norum  <eric.norum@usask.com>
13050
13051         * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
13052         routine to allow autoconf to determine that building executables
13053         for rtems works.
13054         (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
13055         (rtems_gxx_mutex_once): Ditto.
13056
13057 2002-04-09  Tom Rix  <trix@redhat.com>
13058
13059         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
13060
13061 2002-04-09  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
13062
13063         * libc/include/time.h: Fix strptime declaration.
13064         * libc/time/Makefile.am: Add strptime.c.
13065         * libc/time/Makefile.in: Regenerated.
13066         * libc/time/strptime.c: New file.
13067
13068 2002-04-08  Jeff Johnston  <jjohnstn@redhat.com>
13069
13070         * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
13071         siglongjmp prototype, and sigsetjmp macro definition.
13072         * libc/sys/linux/siglongjmp.c: New file.
13073         * libc/sys/linux/Makefile.am: Add support for siglongjmp.
13074         * libc/sys/linux/Makefile.in: Regenerated.
13075
13076 2002-04-04  Jeff Johnston  <jjohnstn@redhat.com>
13077
13078         * Makefile.am: Add support for installing crt1.o if one exists.
13079         * configure.host: Specify crt1.o for linux.
13080         * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
13081         * Makefile.in: Regenerated.
13082         * configure: Ditto.
13083         * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
13084         Added for non-Cygwin, non-RTEMS configurations.
13085         * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
13086         * libc/sys/linux/Makefile.in: Regenerated.
13087         * libc/sys/linux/crt1.c: New empty file to override one defaulted
13088         by gcc.  This fixes problem with reconfiguring linux newlib build.
13089         * libc/sys/linux/sysconf.c: New file.
13090
13091 2002-04-03  Jeff Johnston  <jjohnstn@redhat.com>
13092
13093         * configure.host: Add support for machine subdirectory of
13094         sys subdirectory.
13095         * configure.in: Add check for sys machine subdirectory.
13096         * Makefile.am: Ditto.
13097         * configure: Regenerated.
13098         * Makefile.in: Ditto.
13099         * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
13100         * libc/sys/linux/sys/syscall.h: Ditto.
13101         * libc/sys/linux/sleep.c: New file.
13102         * libc/sys/linux/socket.c: Ditto.
13103         * libc/sys/linux/sockops.h: Ditto.
13104         * libc/sys/linux/stack.c: Ditto.
13105         * libc/sys/linux/usleep.c: Ditto.
13106         * libc/sys/linux/machine/Makefile.am: Ditto.
13107         * libc/sys/linux/machine/Makefile.in: Ditto.
13108         * libc/sys/linux/machine/aclocal.m4: Ditto.
13109         * libc/sys/linux/machine/configure: Ditto.
13110         * libc/sys/linux/machine/configure.in: Ditto.
13111         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
13112         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
13113         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
13114         * libc/sys/linux/machine/i386/configure: Ditto.
13115         * libc/sys/linux/machine/i386/configure.in: Ditto.
13116         * libc/sys/linux/machine/i386/crt0.c: Ditto.
13117         * libc/sys/linux/machine/i386/sigset.c: Ditto.
13118         * libc/sys/linux/machine/i386/sigstack.h: Ditto.
13119         * libc/sys/linux/machine/i386/socketcall.h: Ditto.
13120         * libc/sys/linux/machine/i386/syscall.h: Ditto.
13121         * libc/sys/linux/sys/select.h: Ditto.
13122         * libc/sys/linux/configure.in: Add support for machine directory.
13123         * libc/sys/linux/Makefile.am: Ditto plus add new files above.
13124         * libc/sys/linux/Makefile.in: Regenerated.
13125         * libc/sys/linux/configure: Ditto.
13126         * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
13127         * libc/sys/linux/inode.c: Ditto.
13128         * libc/sys/linux/linux.c: Ditto.
13129         * libc/sys/linux/process.c: Ditto.
13130         * libc/sys/linux/systat.c: Ditto.
13131         * libc/sys/linux/time.c: Ditto.
13132         * libc/sys/linux/wait.c: Ditto.
13133         * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
13134         * libc/sys/linux/io.c: Change header plus add readv/writev.
13135         * libc/sys/linux/signal.c: Change header plus change sigsuspend to
13136         use __sigsuspend syscall.
13137         * libc/sys/linux/select.c: Change header plus change select to
13138         use _newselect syscall.
13139         * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
13140         used by glibc header files.
13141         * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
13142         types.
13143
13144 2002-04-01  Jeff Johnston  <jjohnstn@redhat.com>
13145
13146         * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
13147         initializing a struct _reent that has been dynamically allocated.
13148         (_REENT_CHECK_MISC): New macro that checks _misc struct for
13149         _REENT_SMALL and does nothing otherwise.
13150         (_REENT_STRTOK_LAST): New macro for reentrant strtok.
13151         (_REENT_MBLEN_STATE): New macro for reentrant mblen.
13152         (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
13153         (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
13154         [_REENT_SMALL](struct _misc_reent): New structure containing
13155         miscellaneous reentrant areas needed by newlib.
13156         [_REENT_SMALL](struct _reent): Add _misc pointer.
13157         [_REENT_SMALL](_REENT_INIT_MISC): New macro.
13158         * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
13159         and _REENT_STRTOK_LAST macros.
13160         * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
13161         and _REENT_MBLEN_STATE macros.
13162         * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
13163         and _REENT_MBTOWC_STATE macros.
13164         * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
13165         and _REENT_WCTOMB_STATE macros.
13166
13167 2002-04-01  Till Straumann <strauman@SLAC.Stanford.EDU>
13168
13169         * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
13170
13171 Wed Mar 27 07:34:44 2002  Jason Tishler <jason@tishler.net>
13172
13173         * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
13174
13175 Tue Mar 26 17:17:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
13176
13177         * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
13178         Store high part of leading bytes too.
13179
13180 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
13181
13182         * libm/math/ef_hypot.c: Increase scale factor to 68.
13183
13184 2002-03-13  Alexandre Oliva  <aoliva@redhat.com>
13185
13186         * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
13187         error.
13188
13189 2002-03-12  Jeff Johnston  <jjohnstn@redhat.com>
13190
13191         * libc/sys/go32/access.c: Change license to relaxed license
13192         used in identical file throughout newlib/libgloss.
13193
13194 2002-03-12  Richard Earnshaw  <rearnsha@arm.com>
13195
13196         * libc/sys/arm/access.c: New file.
13197         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
13198         * libc/sys/arm/Makefile.in: Regenerate.
13199         * libc/sys/arm/syscalls.c (_stat): New function.
13200
13201 2002-03-11  Michael Meissner  <meissner@redhat.com>
13202
13203         * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
13204         variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
13205         * libc/machine/mips/Makefile.in: Regenerate.
13206         * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
13207         * libc/machine/mips/memset.c: Dito.
13208         * libc/machine/mips/strcmp.c: Dito.
13209         * libc/machine/mips/strlen.c: Dito.
13210         * libc/machine/mips/strncmp.c: Dito.
13211
13212 2002-03-06  Jeff Johnston  <jjohnstn@redhat.com>
13213
13214         * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
13215         object so it works for shared library or statici library.
13216 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
13217
13218         *  libc/include/time.h (tzset, _tzset_r): Added prototypes.
13219         (strptime): Moved prototype to be within !__STRICT_ANSI__.
13220         (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
13221         (tzname): Defined for all platforms.
13222         (daylight, timezone): Defined only for CYGWIN.
13223         *  libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
13224         environment set up.
13225         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
13226         environment variable is set.
13227         *  libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
13228         tzset_r.c.
13229         *  libc/time/Makefile.in: Regenerated.
13230         *  libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
13231         *  libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
13232         *  libc/time/lcltime_r.c (lcltime_r): Ditto.
13233         *  libc/time/local.h: New local header file.
13234         *  libc/time/mktime.c (mktime): Add timezone support.
13235         *  libc/time/mktm_r.c: New file which is the common engine
13236         for gmtime_r and lcltime_r.  This code has timezone support.
13237         *  libc/time/strftime.c (strftime): Add %Z timezone support.
13238         *  libc/time/tzlock.c: New file containing timezone lock stubs.
13239         *  libc/time/tzset.c: New file containing tzset() routine.
13240         *  libc/time/tzset_r.c: New file containing _tzset_r and
13241         internal routine for calculating timezone changes for specified year.
13242
13243 2002-04-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
13244
13245         * configure.in (CRT0_DIR): Set to libc/.
13246         (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
13247         * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
13248         $(CRT0_DIR)$(CRT0) to prevent make warnings.  Likewise for
13249         $(CRT1_DIR)/$(CRT1).
13250         * libc/machine/xstormy16/Makefile.in: Regenerated.
13251         * libc/machine/xstormy16/aclocal.m4: Regenerated.
13252         * libc/machine/xstormy16/configure: Regenerated.
13253
13254 2002-04-13  Alexandre Oliva  <aoliva@redhat.com>
13255
13256         * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
13257         fails, don't bail out, and try to correct next time.
13258
13259         * libc/include/sys/config.h: Include limits.h.
13260
13261 2002-04-12  Eric Norum  <eric.norum@usask.com>
13262
13263         * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
13264         routine to allow autoconf to determine that building executables
13265         for rtems works.
13266         (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
13267         (rtems_gxx_mutex_once): Ditto.
13268
13269 2002-04-09  Tom Rix  <trix@redhat.com>
13270
13271         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
13272
13273 2002-04-09  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
13274
13275         * libc/include/time.h: Fix strptime declaration.
13276         * libc/time/Makefile.am: Add strptime.c.
13277         * libc/time/Makefile.in: Regenerated.
13278         * libc/time/strptime.c: New file.
13279
13280 2002-04-08  Jeff Johnston  <jjohnstn@redhat.com>
13281
13282         * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
13283         siglongjmp prototype, and sigsetjmp macro definition.
13284         * libc/sys/linux/siglongjmp.c: New file.
13285         * libc/sys/linux/Makefile.am: Add support for siglongjmp.
13286         * libc/sys/linux/Makefile.in: Regenerated.
13287
13288 2002-04-04  Jeff Johnston  <jjohnstn@redhat.com>
13289
13290         * Makefile.am: Add support for installing crt1.o if one exists.
13291         * configure.host: Specify crt1.o for linux.
13292         * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
13293         * Makefile.in: Regenerated.
13294         * configure: Ditto.
13295         * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
13296         Added for non-Cygwin, non-RTEMS configurations.
13297         * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
13298         * libc/sys/linux/Makefile.in: Regenerated.
13299         * libc/sys/linux/crt1.c: New empty file to override one defaulted
13300         by gcc.  This fixes problem with reconfiguring linux newlib build.
13301         * libc/sys/linux/sysconf.c: New file.
13302
13303 2002-04-03  Jeff Johnston  <jjohnstn@redhat.com>
13304
13305         * configure.host: Add support for machine subdirectory of
13306         sys subdirectory.
13307         * configure.in: Add check for sys machine subdirectory.
13308         * Makefile.am: Ditto.
13309         * configure: Regenerated.
13310         * Makefile.in: Ditto.
13311         * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
13312         * libc/sys/linux/sys/syscall.h: Ditto.
13313         * libc/sys/linux/sleep.c: New file.
13314         * libc/sys/linux/socket.c: Ditto.
13315         * libc/sys/linux/sockops.h: Ditto.
13316         * libc/sys/linux/stack.c: Ditto.
13317         * libc/sys/linux/usleep.c: Ditto.
13318         * libc/sys/linux/machine/Makefile.am: Ditto.
13319         * libc/sys/linux/machine/Makefile.in: Ditto.
13320         * libc/sys/linux/machine/aclocal.m4: Ditto.
13321         * libc/sys/linux/machine/configure: Ditto.
13322         * libc/sys/linux/machine/configure.in: Ditto.
13323         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
13324         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
13325         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
13326         * libc/sys/linux/machine/i386/configure: Ditto.
13327         * libc/sys/linux/machine/i386/configure.in: Ditto.
13328         * libc/sys/linux/machine/i386/crt0.c: Ditto.
13329         * libc/sys/linux/machine/i386/sigset.c: Ditto.
13330         * libc/sys/linux/machine/i386/sigstack.h: Ditto.
13331         * libc/sys/linux/machine/i386/socketcall.h: Ditto.
13332         * libc/sys/linux/machine/i386/syscall.h: Ditto.
13333         * libc/sys/linux/sys/select.h: Ditto.
13334         * libc/sys/linux/configure.in: Add support for machine directory.
13335         * libc/sys/linux/Makefile.am: Ditto plus add new files above.
13336         * libc/sys/linux/Makefile.in: Regenerated.
13337         * libc/sys/linux/configure: Ditto.
13338         * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
13339         * libc/sys/linux/inode.c: Ditto.
13340         * libc/sys/linux/linux.c: Ditto.
13341         * libc/sys/linux/process.c: Ditto.
13342         * libc/sys/linux/systat.c: Ditto.
13343         * libc/sys/linux/time.c: Ditto.
13344         * libc/sys/linux/wait.c: Ditto.
13345         * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
13346         * libc/sys/linux/io.c: Change header plus add readv/writev.
13347         * libc/sys/linux/signal.c: Change header plus change sigsuspend to
13348         use __sigsuspend syscall.
13349         * libc/sys/linux/select.c: Change header plus change select to
13350         use _newselect syscall.
13351         * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
13352         used by glibc header files.
13353         * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
13354         types.
13355
13356 2002-04-01  Jeff Johnston  <jjohnstn@redhat.com>
13357
13358         * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
13359         initializing a struct _reent that has been dynamically allocated.
13360         (_REENT_CHECK_MISC): New macro that checks _misc struct for
13361         _REENT_SMALL and does nothing otherwise.
13362         (_REENT_STRTOK_LAST): New macro for reentrant strtok.
13363         (_REENT_MBLEN_STATE): New macro for reentrant mblen.
13364         (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
13365         (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
13366         [_REENT_SMALL](struct _misc_reent): New structure containing
13367         miscellaneous reentrant areas needed by newlib.
13368         [_REENT_SMALL](struct _reent): Add _misc pointer.
13369         [_REENT_SMALL](_REENT_INIT_MISC): New macro.
13370         * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
13371         and _REENT_STRTOK_LAST macros.
13372         * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
13373         and _REENT_MBLEN_STATE macros.
13374         * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
13375         and _REENT_MBTOWC_STATE macros.
13376         * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
13377         and _REENT_WCTOMB_STATE macros.
13378
13379 2002-04-01  Till Straumann <strauman@SLAC.Stanford.EDU>
13380
13381         * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
13382
13383 Wed Mar 27 07:34:44 2002  Jason Tishler <jason@tishler.net>
13384
13385         * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
13386
13387 Tue Mar 26 17:17:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
13388
13389         * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
13390         Store high part of leading bytes too.
13391
13392 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
13393
13394         * libm/math/ef_hypot.c: Increase scale factor to 68.
13395
13396 2002-03-13  Alexandre Oliva  <aoliva@redhat.com>
13397
13398         * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
13399         error.
13400
13401 2002-03-12  Jeff Johnston  <jjohnstn@redhat.com>
13402
13403         * libc/sys/go32/access.c: Change license to relaxed license
13404         used in identical file throughout newlib/libgloss.
13405
13406 2002-03-12  Richard Earnshaw  <rearnsha@arm.com>
13407
13408         * libc/sys/arm/access.c: New file.
13409         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
13410         * libc/sys/arm/Makefile.in: Regenerate.
13411         * libc/sys/arm/syscalls.c (_stat): New function.
13412
13413 2002-03-11  Michael Meissner  <meissner@redhat.com>
13414
13415         * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
13416         variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
13417         * libc/machine/mips/Makefile.in: Regenerate.
13418         * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
13419         * libc/machine/mips/memset.c: Dito.
13420         * libc/machine/mips/strcmp.c: Dito.
13421         * libc/machine/mips/strlen.c: Dito.
13422         * libc/machine/mips/strncmp.c: Dito.
13423
13424 2002-03-06  Jeff Johnston  <jjohnstn@redhat.com>
13425
13426         * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
13427         object so it works for shared library or statici library.
13428         * libc/machine/i386/Makefile.in: Regenerated.
13429
13430 Wed Mar  6 10:24:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
13431
13432         * libc/machine/sh/Makefile.am (lib_a_SOURCES, SH64 case):
13433         Add memcpy.S, memset.S and strcpy.S.
13434         * libc/machine/sh/Makefile.in: Regenerate.
13435         * libc/machine/sh/asm.h (_ENTRY): Set SH5 alignment to 8 bytes.
13436         (SHHI, SHLO): Define.
13437         * libc/machine/sh/memset.S: Add code for SH5.
13438         * libc/machine/sh/memset.S: Likewise.
13439         * libc/machine/sh/strcpy.S: Likewise.
13440
13441 2002-02-27  Jeff Johnston  <jjohnstn@redhat.com>
13442
13443         * configure.host: Add check for --disable-newlib-io-float
13444         configuration option and add -DNO_FLOATING_POINT to newlib cflags
13445         if appropriate.
13446         * acinclude.m4: Added --disable-newlib-io-float option.
13447         * aclocal.m4: Regenerated.
13448         * configure: Ditto.
13449         * doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
13450         * libc/*/aclocal.m4 libc/*/configure
13451         * libm/*/aclocal.m4 libm/*/configure: Ditto.
13452         * libc/stdio/vfprintf.c [!INTEGER_ONLY]: Only set FLOATING_POINT
13453         if NO_FLOATING_POINT flag is not defined.
13454
13455 2002-02-25  Jeff Johnston  <jjohnstn@redhat.com>
13456
13457         * libc/include/sys/config.h: Add __extension__ in front of
13458         long long references.
13459
13460 2002-02-23  Corinna Vinschen  <corinna@vinschen.de>
13461
13462         * libc/include/sys/stat.h (_fstat): Don't declare when compiling Cygwin.
13463         (_stat): Ditto.
13464
13465 2002-02-23  Corinna Vinschen  <corinna@vinschen.de>
13466
13467         * libc/sys/cygwin/sys/dirent.h (struct __DIR): Use __off32_t instead
13468         of off_t.
13469
13470 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
13471
13472         * libc/machine/xscale/strchr.c (strchr): Add 'r1' to the list of
13473         clobbered registers.
13474
13475 2002-02-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
13476
13477         * configure.host (newlib_cflags): When host is in m68* add
13478         -DCOMPACT_CTYPE.
13479
13480 2002-02-15  Jeff Johnston  <jjohnstn@redhat.com>
13481
13482         * libc/include/sys/config.h: Add definitions for
13483         __int16_t, __uint16_t, __int64_t, and __uint64_t.
13484
13485 2002-02-12  Hans-Peter Nilsson  <hp@bitrange.com>
13486
13487         * libc/sys/mmixware/link.c: New.
13488         * libc/sys/mmixware/sys/syscall.h (TRAP1i, I3f): Make asm
13489         volatile.
13490         * libc/sys/mmixware/times.c (_times): Renamed from times.
13491         * libc/sys/mmixware/open.c (_open): Attempt to handle O_APPEND
13492         properly by reading previous contents, not through BinaryReadWrite.
13493         * libc/sys/mmixware/Makefile.am (lib_a_SOURCES): Add link.c
13494         * libc/sys/mmixware/Makefile.in: Regenerate.
13495
13496 2002-02-10  Corinna Vinschen  <corinna@vinschen.de>
13497
13498         * libc/include/grp.h: Don't declare group functions when compiling
13499         Cygwin.
13500
13501 2002-02-09  Corinna Vinschen  <corinna@vinschen.de>
13502
13503         * libc/include/grp.h: Include Cygwin specific header.
13504         * libc/include/sys/stat.h: Ditto.  Don't define `struct stat'
13505         when compiling for Cygwin.
13506         * libc/include/sys/types.h: Don't define off_t, uid_t
13507         and gid_t when compiling for Cygwin.
13508
13509 2002-02-08  matthew green  <mrg@redhat.com>
13510
13511         * libc/include/sys/reent.h (_REENT_CHECK_EMERGENCY): Allocate
13512         _REENT_EMERGENCY_SIZE, not sizeof(char *).
13513
13514 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
13515
13516         Contribute sh64-elf.
13517         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
13518         * configure.host (newlib_cflags) [sh*-*-*]: Enable long long
13519         support in printf.
13520         2001-01-29  Alexandre Oliva  <aoliva@redhat.com>
13521         * libc/machine/sh/setjmp.S [SH5]: Switch to SHmedia mode before
13522         any labels.
13523         2001-01-24  Alexandre Oliva  <aoliva@redhat.com>
13524         * libc/sys/sh/trap.S (___trap34) [SH5]: Don't trash r2.
13525         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
13526         * libc/machine/sh/configure.in: Rework conditionals.
13527         * libc/machine/sh/Makefile.am: Likewise.
13528         * libc/machine/sh/configure, libc/machine/sh/Makefile.in: Rebuilt.
13529         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
13530         * configure.host: Match `sh*'.
13531         * libc/include/machine/setjmp.h: Define for SH5.
13532         * libc/machine/sh/configure.in: Detect SH5.
13533         * libc/machine/sh/configure: Rebuilt.
13534         * libc/machine/sh/Makefile.am: Use only setjmp.S for SH5.
13535         * libc/machine/sh/Makefile.in: Rebuilt.
13536         * libc/machine/sh/asm.h: Adjust for SH5.
13537         * libc/machine/sh/setjmp.S: Implement in SHmedia.
13538         * libc/sys/sh/crt0.S: Likewise.
13539         * libc/sys/sh/trap.S: Likewise.
13540
13541 2002-02-07  Jeff Johnston  <jjohnstn@redhat.com>
13542
13543         * libc/machine/i386/Makefile.am: (mach_add_src): Remove.
13544         (mach_add_obj): Conditionally set to setjmp.o or nothing.
13545         (LIB_SOURCES): Remove $(mach_add_src).
13546         (lib_a_LIBADD, lib_a_DEPENDENCIES): Add and set to $(mach_add_src).
13547         (lib_la_LIBADD, lib_la_DEPENDENCIES): Ditto.
13548         * libc/machine/i386/Makefile.in: Regenerate.
13549
13550 2002-02-05  Manik Raina <manik@cisco.com>
13551
13552         * libc/misc/dprintf.c (parse_number): #if 0 unused function.
13553         * libc/stdlib/ldtoa.c (_ldcheck): Remove unused local variables
13554         s, p, k, and outstr.
13555         * libc/stdlib/dtoa.c (_dtoa_r): Initialize mlo.
13556
13557 2002-02-04  Jeff Johnston  <jjohnstn@redhat.com>
13558
13559         * libc/include/sys/reent.h [(!_REENT_SMALL]: Add
13560         _REENT_CHECK_EMERGENCY macro.
13561
13562 2002-02-03  matthew green  <mrg@redhat.com>
13563
13564         * libc/reent/signgam.c (__signgam): Fix error in previous.
13565
13566 2002-02-02  matthew green  <mrg@redhat.com>
13567
13568         * libc/include/sys/config.h (_REENT_SMALL): Define for Xstormy16.
13569
13570         * libc/reent/reent.c (_reclaim_reent): Clean for _REENT_SMALL case.
13571         * libc/reent/reent.tex: Add blurb about _REENT_SMALL.
13572         * libc/include/sys/reent.h (struct _reent): Completely new version
13573         for _REENT_SMALL.
13574         (_REENT_INIT): New defines, different defintion depending on _REENT_SMALL.
13575         (_REENT_CHECK, _REENT_CHECK_TM): Likewise.
13576         (_REENT_CHECK_ASCTIME_BUF, _REENT_INIT_RAND48): Likewise.
13577         (_REENT_CHECK_RAND48, _REENT_INIT_MP, _REENT_CHECK_MP): Likewise.
13578         (_REENT_CHECK_EMERGENCY, _REENT_SIGNGAM, _REENT_RAND_NEXT): Likewise.
13579         (_REENT_RAND48_SEED, _REENT_RAND48_MULT, _REENT_RAND48_ADD): Likewise.
13580         (_REENT_MP_RESULT, _REENT_MP_RESULT_K, _REENT_MP_P5S): Likewise.
13581         (_REENT_MP_FREELIST, _REENT_ASCTIME_BUF, _REENT_TM): Likewise.
13582         (_REENT_EMERGENCY): Likewise.
13583
13584         * libc/include/sys/reent.h (struct __sFILE_fake): New struct, same as
13585         the start of the real __sFILE, used for stdin, stdout and stderr until
13586         they are setup properly.
13587         (struct __sFILE): Move location of _data in _REENT_SMALL case.
13588         * libc/stdio/findfp.c (__sinit): Rearrange for _REENT_SMALL case by
13589         allocated stdin, stdout and stderr.
13590         * libc/stdio/getchar.c (_getchar_r): Call _REENT_SMALL_CHECK_INIT().
13591         * libc/stdio/iprintf.c (iprintf, _iprintf_r): Likewise.
13592         * libc/stdio/perror.c (_perror_r): Likewise.
13593         * libc/stdio/printf.c (printf, _printf_r): Likewise.
13594         * libc/stdio/putchar.c (_putchar_r): Likewise.
13595         * libc/stdio/puts.c (_puts_r): Likewise.
13596         * libc/stdio/scanf.c (scanf, _scanf_r): Likewise.
13597         * libc/stdio/vprintf.c (vprintf): Likewise.
13598         * libc/stdio/vscanf.c (vscanf, _vscanf_r): Likewise.
13599
13600         * libc/stdio/tmpnam.c (_tmpnam_r): Use _REENT_EMERGENCY().
13601
13602         * libc/reent/reent.c (_wrapup_reent): Adjust for _REENT_SMALL atexit.
13603         * libc/include/sys/reent.h (_atexit): Limit atexit() entries to 32
13604         for _REENT_SMALL.
13605         * libc/stdlib/atexit.c (atexit): Rearrange for _REENT_SMALL case.
13606         * libc/stdlib/exit.c (exit): Rearrange for _REENT_SMALL case.
13607
13608         * libc/include/sys/reent.h (struct _rand48): Keep _rand_next if
13609         _REENT_SMALL.
13610         * libc/stdlib/drand48.c (_drand48_r): Call _REENT_CHECK_RAND48().
13611         * libc/stdlib/lcong48.c (_lcong48_r): Likewise.
13612         * libc/stdlib/lrand48.c (_lrand48_r): Likewise.
13613         * libc/stdlib/mrand48.c (_mrand48_r): Likewise.
13614         * libc/stdlib/rand48.c (__dorand48): Likewise.
13615         * libc/stdlib/seed48.c (_seed48_r): Likewise.
13616         * libc/stdlib/srand48.c (_srand48_r): Likewise.
13617         * libc/stdlib/rand48.h (__rand48_seed, __rand48_mult, __rand48_add): Define
13618         as _REENT_RAND48_SEED(), _REENT_RAND48_MULT() and _REENT_RAND48_ADD().
13619         * libc/stdlib/dtoa.c (_dtoa_r): Call _REENT_CHECK_MP().  Use
13620         _REENT_MP_RESULT() and _REENT_MP_RESULT_K().
13621         * libc/stdlib/ldtoa.c (_ldtoa_r): Likewise.
13622         * libc/stdlib/rand.c (srand): Use _REENT_RAND_NEXT().
13623         * libc/stdlib/rand.c (rand): Likewise.
13624
13625         * libc/stdlib/mallocr.c (malloc_stats): Call _REENT_SMALL_CHECK_INIT().
13626         * libc/stdlib/mstats.c (_mstats_r): Call _REENT_SMALL_CHECK_INIT().
13627
13628         * libc/stdlib/mprec.c (Balloc): Call _REENT_CHECK_MP.  Use
13629         _REENT_MP_FREELIST() and _REENT_MP_P5S.
13630         * libc/include/sys/reent.h (struct _mprec): New structure.
13631
13632         * libc/include/sys/reent.h (struct _reent): Rename _strtok_last to
13633         _unused_strtok_last.
13634         * libc/string/strtok.c (strtok): Use a local static variable.
13635
13636         * libc/include/sys/reent.h (_REENT_ASCTIME_SIZE): New define.
13637         (_REENT_EMERGENCY_SIZE): Likewise.
13638         * libc/time/asctime.c (asctime): Call _REENT_CHECK_ASCTIME_BUF().  Use
13639         _REENT_ASCTIME_BUF().
13640         * libc/time/lcltime.c (localtime): Call _REENT_CHECK_TM().  Use
13641         _REENT_TM().
13642
13643         * libc/include/math.h (__singam_r): Use _REENT_SIGNGAM().
13644         * libc/reent/signgam.c (__signgam): Use _REENT_SIGNGAM().
13645         * libm/math/w_gamma.c (gamma): Use _REENT_SIGNGAM().
13646         * libm/math/w_lgamma.c (lgamma): Use _REENT_SIGNGAM().
13647         * libm/math/wf_gamma.c (gammaf): Use _REENT_SIGNGAM().
13648         * libm/math/wf_lgamma.c (lgammaf): Use _REENT_SIGNGAM().
13649
13650 2002-02-01  Geoffrey Keating  <geoffk@redhat.com>
13651
13652         * configure.host (xstormy16): Don't use the generic malloc.
13653         * libc/machine/xstormy16/Makefile.am: Build tiny-malloc.
13654         * libc/machine/xstormy16/Makefile.in: Regenerate.
13655         * libc/machine/xstormy16/mallocr.c: New file.
13656         * libc/machine/xstormy16/tiny-malloc.c: New file.
13657
13658 2002-01-28  Thomas Fitzsimmons  <fitzsim@redhat.com>
13659
13660         * libc/include/sys/signal.h [__CYGWIN__]: Issue error message
13661         when _CYGWIN_TYPES_H is not defined.
13662
13663 2002-01-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
13664
13665         * libc/include/sys/signal.h: Revert 2002-01-23 change.
13666
13667 2002-01-23  Thomas Fitzsimmons  <fitzsim@redhat.com>
13668
13669         * libc/include/sys/signal.h: Remove pthread_kill declaration
13670         when __CYGWIN__ is defined.
13671
13672 2002-01-18  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
13673
13674         * libc/include/time.h: Add prototype for strptime for Cygwin.
13675
13676 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
13677
13678         * libc/machine/xscale/memset.c (memset): Fix bug when len == 1 and
13679         dst was not word aligned.
13680
13681         * libc/sys/arm/syscalls.c (_sbrk): Return -1 rather than aborting
13682         if too much memory is requested.
13683
13684 2002-01-11 Jeff Johnston  <jjohnstn@redhat.com>
13685
13686         * libc/stdio/vfscanf.c (__svfscanf_r): Change loop that
13687         reads blanks from the input file to break if EOF reached
13688         rather than end processing.
13689
13690 2002-01-07 Jeff Johnston  <jjohnstn@redhat.com>
13691
13692         * MAINTAINERS: Change e-mail addresses to refer to redhat domain.
13693
13694 2002-01-07 Alan Matsuoka <alanm@redhat.com>
13695
13696         * libc/include/machine/ieeefp.h: Configure d10v doubles to
13697         be 32 bits if __DOUBLE__ == 32  otherwise doubles are 64 bits.
13698         libc/include/sys/config.h: Ditto.
13699
13700 2001-12-28  Corinna Vinschen  <corinna@vinschen.de>
13701
13702         * libc/sys/cygwin/sys/utmp.h: Add definition of UTMP_FILE.
13703
13704 2001-12-22  Geoffrey Keating  <geoffk@redhat.com>
13705             Catherine Moore  <clm@redhat.com>
13706             Richard Henderson  <rth@redhat.com>
13707             Corinna Vinschen  <vinschen@redhat.com>
13708
13709         * configure.host: Add support for xstormy16.
13710         * libc/include/machine/ieeefp.h: Add support for xstormy16.
13711         * libc/include/machine/setjmp.h: Add support for xstormy16.
13712         * libc/include/sys/config.h: Add support for xstormy16.
13713         * libc/machine/xstormy16/Makefile.am: New file.
13714         * libc/machine/xstormy16/Makefile.in: New file.
13715         * libc/machine/xstormy16/aclocal.m4: New file.
13716         * libc/machine/xstormy16/configure: New file.
13717         * libc/machine/xstormy16/configure.in: New file.
13718         * libc/machine/xstormy16/setjmp.S: New file.
13719
13720 2001-12-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
13721
13722         * libm/machine/configure.in (HAVE_LIBM_MACHINE_DIR): New conditional.
13723         * libm/machine/Makefile.am [HAVE_LIBM_MACHINE_DIR] (LIBM_MACHLIB): New variable.
13724
13725 2001-12-19  Corinna Vinschen  <corinna@vinschen.de>
13726
13727         * libm/machine/Makefile.am: Change rules to create correct lib.a.
13728         * libm/machine/Makefile.in: Regenerated through automake.
13729
13730 2001-12-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
13731
13732         * Makefile.am (DOCDIR): Force to empty string when doc
13733         directory is not present.
13734
13735 2001-12-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
13736
13737         * libc/machine/i386/f_*: Move to libm/machine/i386.
13738
13739 2001-12-18      Joel Sherrill <joel@OARcorp.com>
13740
13741         * libm/machine/Makefile.am: Add dummy doc stub so
13742         "make info" works.
13743
13744 2001-12-17      Joel Sherrill <joel@OARcorp.com>
13745
13746         * libc/include/sys/types.h (ino_t): RTEMS uses long also.
13747
13748 2001-12-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
13749
13750         * libc/stdlib/Makefile.am (LIB_COMPILE): Change to equal
13751         $(COMPILE) rather than $(CC).
13752         * libc/stdio/Makefile.am (LIB_COMPILE): Likewise.
13753         (vfprintf.$(oext)): Remove $(INCLUDES), made redundant by
13754         $(LIB_COMPILE) change.
13755         (vfiprintf.$(oext)): Likewise.
13756
13757 2001-12-17  Corinna Vinschen  <vinschen@redhat.de>
13758
13759         * libc/sys/cygwin/include/unistd.h: Add __UNISTD_GETOPT_ to allow
13760         conditionalized including of getopt stuff.
13761
13762 2001-12-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
13763
13764         * libc/stdio/Makefile.am (vfprintf.$(oext)): Add $(INCLUDES) to
13765         compile line.
13766         (vfiprintf.$(oext)): Likewise.
13767
13768 2001-12-13  Thomas Fitzsimmons  <fitzsim@redhat.com>
13769
13770         * Makefile.shared: New file.
13771         * libc/sys/linux/shared.ld: New file.
13772         * libm/machine/*: New files.
13773         * libm/machine/i386/*: New files.
13774         * Makefile.am: Add libtool support.  Change math and mathfp
13775         references to variables.
13776         * configure.host: Add variables for libtool support.  Add
13777         libm_machine_dir variable.
13778         * configure.in: Add objectlist variables, for libtool
13779         support.  Add CC_FOR_BUILD tests.
13780         * libc/Makefile.am: Add libtool support.  Change crt0.o
13781         reference to be a variable reference.
13782         * libc/configure.in: Add libtool support.  Change sublib
13783         names to be lib${subdir}.la when using libtool.
13784         * libc/ctype/Makefile.am: Add libtool support.
13785         * libc/errno/Makefile.am: Likewise.
13786         * libc/locale/Makefile.am: Likewise.
13787         * libc/machine/Makefile.am: Likewise.
13788         * libc/machine/configure.in: Likewise.
13789         * libc/machine/i386/Makefile.am: Likewise.
13790         * libc/machine/i386/configure.in: Likewise.
13791         * libc/misc/Makefile.am: Likewise.
13792         * libc/posix/Makefile.am: Likewise.
13793         * libc/reent/Makefile.am: Likewise.
13794         * libc/signal/Makefile.am: Likewise.
13795         * libc/stdio/Makefile.am: Likewise.
13796         * libc/stdlib/Makefile.am: Likewise.
13797         * libc/string/Makefile.am: Likewise.
13798         * libc/sys/Makefile.am: Likewise.
13799         * libc/sys/configure.in: Likewise.
13800         * libc/sys/linux/Makefile.am: Add libtool support.  Change
13801         awk reference to a variable reference.  Change signal.h
13802         reference to a variable reference.
13803         * libc/sys/linux/configure.in: Add libtool support.
13804         * libc/syscalls/Makefile.am: Likewise.
13805         * libc/time/Makefile.am: Likewise.
13806         * libc/unix/Makefile.am: Likewise.
13807         * libm/Makefile.am: Add libtool support.  Change math and
13808         mathfp references to variables.
13809         * libm/configure.in: Add libtool support.  Add
13810         LIBM_MACHINE_LIB variable.
13811         * libm/common/Makefile.am: Add libtool support.
13812         * libm/math/Makefile.am: Likewise.
13813         * libm/mathfp/Makefile.am: Likewise.
13814         Regenerate all Makefile.in, aclocal.m4, and configure.
13815
13816 2001-12-13 Anita Kulkarni <anitak@kpit.com>
13817
13818         * libc/sys/sh/crt0.S: Remove stack symbol definition 0xdeaddead.
13819
13820 2001-12-06  John Peacock <jpeacock@rowman.com>
13821
13822         * libc/include/sys/unistd.h: Correct ualarm declaration.
13823
13824 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
13825
13826         * libc/sys/arm/crt0.S: For __USES_INITFINI__ preserve the argument
13827         vector before calling the initialisation functions.
13828
13829 2001-11-29  Christopher Faylor  <cgf@redhat.com>
13830
13831         * libc/include/dirent.h: Protect against multiple inclusion.
13832
13833 2001-11-27  Christopher Faylor  <cgf@redhat.com>
13834
13835         * libc/include/sys/types.h: Define useconds_t.
13836         * libc/include/sys/ulimit.h: Declare ualarm.
13837
13838 2001-11-21  Christopher Faylor  <cgf@redhat.com>
13839
13840         * libc/sys/cygwin/sys/dirent.h (DIR): Add another internal element.
13841
13842 2001-11-19  Hans-Peter Nilsson  <hp@bitrange.com>
13843
13844         * libc/sys/mmixware/*: Tweak license header in all source files.
13845
13846 2001-11-12  Corinna Vinschen  <vinschen@redhat.com>
13847
13848         * libc/include/alloca.h: Move libc/sys/linux/include/alloca.h
13849         to here.  Rearrange for general inclusion by stdlib.h.
13850         * libc/include/stdlib.h: Include <alloca.h> if __STRICT_ANSI__
13851         isn't defined.
13852         * libc/sys/linux/include/alloca.h: Move to libc/include.
13853
13854 2001-11-12  Anthony Green  <green@redhat.com>
13855
13856         * libc/sys/arm/crt0.S (__stack_base__): New symbol.
13857
13858 2001-11-13  Hans-Peter Nilsson  <hp@bitrange.com>
13859
13860         * libc/sys/mmixware/*: Correct spacing in all source files.
13861         * libc/sys/mmixware/syscall.h: Move misplaced file...
13862         * libc/sys/mmixware/sys/syscall.h: ...here.
13863
13864 2001-11-12  Hans-Peter Nilsson  <hp@bitrange.com>
13865
13866         * libc/include/machine/ieeefp.h: Add support for mmix target.
13867         * libc/include/machine/setjmp.h: Ditto.
13868         * configure.host: Ditto.
13869         * libc/sys/mmixware/Makefile.am, libc/sys/mmixware/_exit.c,
13870         libc/sys/mmixware/access.c, libc/sys/mmixware/aclocal.m4,
13871         libc/sys/mmixware/chmod.c, libc/sys/mmixware/chown.c,
13872         libc/sys/mmixware/close.c, libc/sys/mmixware/configure.in,
13873         libc/sys/mmixware/creat.c, libc/sys/mmixware/crt0.c,
13874         libc/sys/mmixware/execv.c, libc/sys/mmixware/execve.c,
13875         libc/sys/mmixware/fork.c, libc/sys/mmixware/fstat.c,
13876         libc/sys/mmixware/getpid.c, libc/sys/mmixware/gettime.c,
13877         libc/sys/mmixware/isatty.c, libc/sys/mmixware/kill.c,
13878         libc/sys/mmixware/lseek.c, libc/sys/mmixware/open.c,
13879         libc/sys/mmixware/pipe.c, libc/sys/mmixware/read.c,
13880         libc/sys/mmixware/sbrk.c, libc/sys/mmixware/setjmp.S,
13881         libc/sys/mmixware/stat.c, libc/sys/mmixware/sys/syscall.h,
13882         libc/sys/mmixware/time.c, libc/sys/mmixware/times.c,
13883         libc/sys/mmixware/unlink.c, libc/sys/mmixware/utime.c,
13884         libc/sys/mmixware/wait.c, libc/sys/mmixware/write.c: New files.
13885         * libc/sys/mmixware/configure, libc/sys/mmixware/Makefile.in,
13886         libc/sys/mmixware/aclocal.m4: Generate.
13887
13888 2001-11-05  Corinna Vinschen  <corinna@vinschen.de>
13889
13890         * libc/include/sys/unistd.h: Add prototypes for endusershell(),
13891         getusershell(), iruserok(), revoke(), ruserok() and setusershell()
13892         when __CYGWIN__ is defined.
13893         * libc/sys/cygwin/sys/utmp.h: Add prototypes for login_tty() and
13894         logwtmp().
13895
13896 2001-11-01  Arati Dikey  <aratidikey@hotmail.com>
13897
13898         * libm/mathfp/sf_isinf.c (isinff): Change to use _DEFUN macro.
13899         [_DOUBLE_IS_32BITS](isinf): New function that calls isinff.
13900         * libm/mathfp/sf_isnan.c (isnanf): Change to use _DEFUN macro.
13901         [_DOUBLE_IS_32BITS](isnan): New function that calls isnanf.
13902
13903 2001-10-24  Christopher Faylor  <cgf@redhat.com>
13904
13905         * libc/stdio/fseek.c: Reset pointer to buffer base
13906         when forced to seek outside of current buffer contents.
13907         This prevents the code from erroneously thinking there is
13908         anything in the current buffer.
13909
13910 2001-10-22  Geoffrey Keating  <geoffk@redhat.com>
13911
13912         * libc/include/math.h: The C++ standard adds the single-precision
13913         versions of the elementary functions.
13914
13915 2001-10-22  Christopher Faylor  <cgf@redhat.com>
13916
13917         * libc/posix/execvp.c: Remove obsolete CYGWIN32 considerations
13918         throughout.
13919         * signal.h: Change comment to reflect __CYGWIN__ rather than __CYGWIN32__.
13920         * popen.c (popen): Use __CYGWIN_ rather than __CYGWIN32__.
13921         * system.c (_system_r): Ditto.
13922
13923 2001-10-17  Corinna Vinschen  <corinna@vinschen.de>
13924
13925         * libc/include/sys/unistd.h: Add prototype for fchdir() when
13926         __CYGWIN__ or __rtems__ is defined.
13927
13928 2001-10-01  Charles Wilson  <cwilson@ece.gatech.edu>
13929
13930         * libc/include/stdlib.h: add declarations for
13931         _strtoull_r, _strtoll_r, strtoull, and strtoll.
13932         * libc/stdio/local.h: remove declarations of
13933         __strtoull_r and __strtoll_r.
13934         * libc/stdio/vfscanf.c(__svfscanf_r): call
13935         _strtoull_r instead of __strtoull_r. Ditto
13936         _strtoll_r vs. __strtoll_r.
13937         * libc/stdlib/Makefile.am: add new files to
13938         .c list and .def list
13939         * libc/stdlib/Makefile.in: regenerate
13940         * libc/stdlib/strtoll_r.c: rename __strtoll_r
13941         as _strtoll_r
13942         * libc/stdlib/strtoull_r.c: rename __strtoull_r
13943         as _strtoull_r
13944         * libc/stdlib/strtoull.c: new file
13945         * libc/stdlib/strtoll.c: new file
13946
13947 Mon Sep 17 17:29:47 2001  Christopher Faylor <cgf@cygnus.com>
13948
13949         * libc/include/process.h: Add getpid() declaration.
13950
13951 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
13952
13953         * libc/sys/arm/crt0.S: Add calls to _init and _fini (via atexit)
13954         for new style arm/elf ctor/dtor handling.
13955         Minor formatting tidy up.
13956
13957 2001-09-13  Jeff Johnston  <jjohnstn@redhat.com>
13958
13959         * libc/stdlib/Makefile.am: Add support to build strtoll_r.c
13960         and strtoull_r.c.
13961         * libc/stdlib/Makefile.in: Regenerated.
13962         * libc/stdlib/strtoll_r.c: New file.
13963         * libc/stdlib/strtoull_r.c: New file.
13964         * libc/stdio/local.h: Add prototypes for long long string
13965         conversion routines.
13966         * libc/stdio/vfscanf.c (__svfscanf_r): Add optional long long support
13967         tied to %L integer conversion specifier.
13968
13969 Thu Sep 13 08:49:49 2001  Jason Tishler <jason@tishler.net>
13970
13971         * strftime.c (strftime): Fix "%W" implementation to properly handle
13972         Mondays too.
13973
13974 2001-09-07  Jeff Law  <law@redhat.com>
13975
13976         * libc/sys/h8300hms/crt0.S: For H8/300H and H8/S, load address of
13977         __fini with "mov.l" instead of "mov.w".
13978
13979 2001-09-05  Corinna Vinschen  <corinna@vinschen.de>
13980
13981         * libc/sys/cygwin/include/unistd.h: New file, wrapping sys/unistd.h
13982         and getopt.h.
13983
13984 2001-09-04  Jason Merrill  <jason_merrill@redhat.com>
13985
13986         * libc/sys/h8300hms/crt0.S: Support ELF initialization.
13987
13988 2001-09-03  Corinna Vinschen  <corinna@vinschen.de>
13989
13990         * libc/sys/cygwin/sys/dirent.h (struct dirent): Add version number
13991         field.
13992         (__DIRENT_VERSION): New define.
13993
13994 2001-09-03  Corinna Vinschen  <corinna@vinschen.de>
13995
13996         * libc/sys/cygwin/sys/dirent.h (struct dirent): Add `d_fd' member.
13997         Shrink __d_reserved accordingly to keep structure size.
13998         (dirfd): Declare external.
13999
14000 2001-08-29  Joel Sherrill <joel@OARcorp.com>
14001
14002         * libc/include/sys/unistd.h: Prototype chroot() for RTEMS.
14003
14004 2001-08-29  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
14005
14006         * libc/machine/i386/f_atan2.S, libc/machine/i386/f_atan2f.S,
14007           libc/machine/i386/f_exp.c, libc/machine/i386/f_expf.c,
14008           libc/machine/i386/f_frexp.S, libc/machine/i386/f_frexpf.S,
14009           libc/machine/i386/f_ldexp.S, libc/machine/i386/f_ldexpf.S,
14010           libc/machine/i386/f_log.S, libc/machine/i386/f_log10.S,
14011           libc/machine/i386/f_log10f.S, libc/machine/i386/f_logf.S,
14012           libc/machine/i386/f_pow.c, libc/machine/i386/f_powf.c,
14013           libc/machine/i386/f_tan.S, libc/machine/i386/f_tanf.S:
14014         Add conditional compilation to avoid HW FPU instructions
14015         when compiled for soft-float.
14016
14017 2001-08-29  Jeff Johnston  <jjohnstn@redhat.com>
14018
14019         * Makefile.am: Add check for ln failing when creating libg.a
14020         so that cp gets used as a backup.
14021         * Makefile.in: Regenerated.
14022
14023 2001-08-29  Jeff Johnston  <jjohnstn@redhat.com>
14024
14025         * libc/include/sys/reent.h: Add include of <sys/_types.h>.
14026         No longer include time.h.  Add struct __tm to use for
14027         _localtime_buf in the reentrant structure.  Add a
14028         _NULL definition to use in initializing the reentrant struct.
14029         * libc/include/sys/config.h: For CYGWIN32 and RTEMS, change
14030         the _READ_WRITE_RETURN_TYPE to _ssize_t which is found in
14031         <sys/_types.h>.
14032         * libc/include/sys/unistd.h: Include <sys/_types.h>.
14033         * libc/time/lcltime.c (localtime): Cast the reentrant struct
14034         _localtime_buf to be struct tm *.
14035
14036 Wed Aug 29 14:17:38 2001  J"orn Rennecke <amylaar@redhat.com>
14037
14038         * configure.host (h8300-*-elf*, h8500-*-elf*): New cases.
14039         * libc/sys/h8300hms/crt1.c (__main): Don't reference __ctors /
14040         __ctors_end.
14041         * libc/sys/h8300hms/syscalls.c: Include errno.h.
14042         (_unlink): New stub function.
14043
14044 Sat Aug 25 22:22:25 2001  Christopher Faylor <cgf@cygnus.com>
14045
14046         * libc/include/sys/errno.h: Add a cautionary comment.
14047
14048 2001-08-21  Jeff Johnston  <jjohnstn@redhat.com>
14049
14050         * libc/stdlib/mallocr.c [!defined(MALLOC_ALIGNMENT)]: Add conditional
14051         for SIZE_SZ so that alignment ends up a minimum of 8.
14052
14053 Mon Aug 13 22:26:01 2001  Christopher Faylor <cgf@cygnus.com>
14054
14055         * libc/include/machine/setjmp.h: Protect sigsetjmp/siglongjmp macro
14056         arguments.
14057
14058         * libc/include/sys/errno.h: Declare sys_errlist and sys_nerr, under
14059         Cygwin.
14060
14061 2001-08-13  Jeff Johnston  <jjohnstn@redhat.com>
14062
14063         * libc/include/malloc.h (M_MXFAST, M_NLBLKS, M_GRAIN, M_KEEP): New
14064         macro constants for mallopt options.
14065         (M_TRIM_THRESHOLD, M_TOP_PAD, M_MMAP_THRESHOLD, M_MMAP_MAX): Ditto.
14066
14067 2001-08-02  Jeff Johnston  <jjohnstn@redhat.com>
14068
14069         * libc/include/stdio.h (BUFSIZ): Define to __BUFSIZ__ if provided,
14070         otherwise default.
14071
14072 2001-07-12  Aldy Hernandez  <aldyh@redhat.com>
14073
14074         * libc/machine/mips/setjmp.S: Allow mips16 and mips64 to coexist.
14075
14076 2001-06-27  Nick Clifton  <nickc@cambridge.redhat.com>
14077
14078         * libc/include/machine/ieeefp.h (__IEEE_BYTES_LITTLE_ENDIAN):
14079         Define for little endian ARMs.
14080
14081         * libc/stdlib/mprec.h (Storeinc): Use little endian version if
14082         __IEEE_BYTES_LITTLE_ENDIAN is defined.
14083
14084 2001-06-11  Danny Smith  <dannysmith@users.sourceforge.net>
14085
14086         * /libc/include/ctype.h (is* and to* macros): Do not define if C++.
14087
14088 2001-06-11  Egor Duda  <deo@logos-m.ru>
14089
14090         * libc/ctype/ctype_.c: When compiled with gcc on platforms
14091         with signed char, make _ctype_[-128] ... _ctype[-1] refer to
14092         initialized memory region. Platform can define COMPACT_CTYPE
14093         to avoid allocation of the additional 128 bytes of data.
14094         Add pointer to _ctype_ array. Always initialize all _ctype_
14095         array elements.
14096
14097 2001-06-08  Jonathan Larmour  <jlarmour@redhat.com>
14098
14099         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Avoid dereferencing
14100         NULL pointer.
14101
14102 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
14103
14104         * libc/stdio/vfprintf.c (_VFPRINTF_R): Handle printf ("%#.0o",0)
14105
14106 2001-05-25  Nick Clifton  <nickc@cambridge.redhat.com>
14107
14108         * libc/machine/xscale/memcmp.c: Fix bug when both pointers have
14109         matching, non-word alignment, and the length is <= 4 but more than
14110         enough to move them over a word boundary.
14111         Add comments explaining what each instruction does.
14112
14113 Mon May  7 20:39:25 2001  Christopher Faylor <cgf@cygnus.com>
14114
14115         * libc/include/sys/stat.h: Revert March 3, Cygwin change.
14116         * libc/include/sys/unistd.h: Ditto.
14117
14118 2001-05-04  Earnie Boyd  <earnie@users.sourceforge.net>
14119
14120         * libc/string/strrchr.c: Use strchr for the speed improvements.
14121
14122 2001-05-01  Jeff Johnston  <jjohnstn@redhat.com>
14123
14124         * libc/stdio/findfp (__sinit)[HAVE_FCNTL]: For platforms that have
14125         real file systems, let __smakebuf() determine if line buffering
14126         should be used for stdout.
14127
14128 2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>
14129
14130         * libc/stdio/vfscanf.c (__svfscanf_r): Initialize new_exp local var.
14131
14132 2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>
14133
14134         * libc/include/stdlib.h: Add prototype for _strtod_r.
14135
14136 2001-04-24  Charles Wilson  <cwilson@ece.gatech.edu
14137
14138         * libc/stdio/vprintf.c (vprintf): fix signature to use _DEFUN
14139         * libc/stdio/vprintf.c (_vprintf_r): new function
14140         * libc/stdio/vsnprintf.c (vsnprintf): fix signature to use _DEFUN
14141         * libc/stdio/vsnprintf.c (_vsnprintf_r): fix signature to use
14142         _DEFUN, and call _vfprintf_r, not vfprintf.
14143         * libc/stdio/vsprintf.c (vsprintf.c): fix signature to use _DEFUN
14144         * libc/stdio/vsprintf.c (_vsprintf_r): fix signature to use
14145         _DEFUN, and call _vfprintf_r, not vfprintf.
14146
14147 2001-04-22  Earnie Boyd  <earnie@users.sourceforge.net>
14148
14149         * libc/include/sys/unistd.h [X_OK]: Use better protection against
14150         Cygwin X_OK definitions in sys/file.h.
14151
14152 Fri Apr 20 23:17:51 2001  Christopher Faylor <cgf@cygnus.com>
14153
14154         * libc/include/sys/time.h: Define timercmp and other macros for
14155         __CYGWIN__, too.
14156
14157 2001-04-20  Jeff Johnston  <jjohnstn@redhat.com>
14158
14159         * acinclude.m4: Added --enable-malloc-debugging configure flag.
14160         * configure.host: For Cygwin specify -DMALLOC_PROVIDED if
14161         --enable-malloc-debugging selected.
14162         * aclocal.m4 configure: Regenerated.
14163           libm/aclocal.m4 libm/configure: Ditto.
14164         * libc/aclocal.m4 libc/configure: Ditto.
14165         * libc/machine/aclocal.m4 libc/machine/configure: Ditto.
14166         * libc/machine/*/aclocal.m4 libc/machine/*/configure: Ditto.
14167         * libc/sys/aclocal.m4 libc/sys/configure: Ditto.
14168         * libc/sys/*/aclocal.m4 libc/sys/*/configure: Ditto.
14169         * doc/aclocal.m4 doc/configure: Ditto.
14170
14171 2001-04-20  Jeff Johnston  <jjohnstn@redhat.com>
14172
14173         * libc/include/stdio.h[!_REENT_ONLY]: Moved various functions together
14174         into one list.
14175         [!__STRICT_ANSI__]: Moved non-ANSI I/O functions in this list.
14176         (vfscanf, vscanf, vsscanf, _vfscanf_r, _vscanf_r, _vsscanf_r): New
14177         function prototypes.
14178         (_fscanf_r, _sscanf_r): Ditto.
14179         * libc/include/stdlib.h: Added _strtod_r prototype.
14180         * libc/stdio/Makefile.am: Add new v*scanf functions.
14181         * libc/stdio/Makefile.in: Regenerate.
14182         * libc/stdio/fscanf.c: Reorganized so HAVE_STDC only affects prototype
14183         and code is shared.  Added reentrant _fscanf_r which calls __svfscanf_r.
14184         * libc/stdio/scanf.c: Changed to call __svfscanf_r.
14185         * libc/stdio/sscanf.c: Changed documentation to add reentrant routines.
14186         (sscanf): Changed to call __svfscanf_r with _REENT argument.
14187         (_sscanf_r): New routine.
14188         * libc/stdio/local.h: Removed __svfscanf prototype and replaced it
14189         with __svfscanf_r prototype.
14190         * libc/stdio/vfscanf.c (vfscanf, _vfscanf_r: New
14191         routines.
14192         (__svfscanf_r): Reentrant version of __svfscanf which takes reetrancy
14193         structure as argument as calls reentrant versions of helper functions
14194         (e.g. _strtol_r, _strtoul_r). Also replaced calls to atol and atof
14195         to _strtol_r and _strtod_r respectively.
14196         * libc/stdio/vfscanf.c: Also changed __svfscanf to call __svfscanf_r.
14197         * libc/stdlib/strtod.c (strtod): Changed to call _strtod_r with
14198         _REENT argument.
14199         * libc/stdio/vscanf.c: New file.
14200         * libc/stdio/vsscanf.c: Ditto.
14201
14202 2001-04-19  Robert Collins  <rbtcollins@hotmail.com>
14203
14204         * include/time.h[__CYGWIN__]:  Define tzname to _tzname if not defined.
14205         Define daylight to _daylight if it is not defined
14206         Prepare a variable export of timezone based on timezonevariable.
14207         (Cannot be used with the timezone() function.)
14208
14209 2001-04-17  Stephen L. Moshier  <moshier@moshier.ne.mediaone.net>
14210
14211         * newlib/libm/math/ef_asin.c (pio2_hi, pio2_lo, pio4_hi):
14212          Correct the numerical values.
14213
14214 2001-04-13  Robert Collins <rbtcollins@hotmail.com>
14215
14216         * libc/include/sys/unistd.h: Add pthread_atfork (Cygwin only).
14217
14218 Thu Apr 12 23:11:00 2001  Corinna Vinschen <corinna@vinschen.de>
14219
14220         * libc/include/sys/errno.h: Add ECASECLASH to indicate case clash
14221         on case insensitve file systems.
14222
14223 2001-04-12  Robert Collins <rbtcollins@hotmail.com>
14224
14225         * libc/include/sys/features.h: Add appropriate defines for Cygwin
14226         pthread support.
14227         * libc/include/sys/signal.h: Remove unneeded __CYGWIN__ protection.
14228         * libc/include/sys/types.h: Protect __CYGWIN__ from the rtems pthreads
14229         types.  Include <cygwin/types.h> for the cygwin specific typedefs.
14230
14231 2001-04-04  Richard Sandiford  <rsandifo@redhat.com>
14232
14233         * libc/include/machine/ieeefp.h: Comment about new configuration
14234         macros _FLT_LARGEST_EXPONENT_IS_NORMAL and _FLT_NO_DENORMALS.
14235         * libm/common/fdlib.h: Define new macros for testing floats.
14236         * libm/common/sf_*: Use them.
14237         * libm/math/ef_*: Likewise.
14238         * libm/math/sf_*: Likewise.
14239
14240 2001-03-29  Jeff Johnston  <jjohnstn@redhat.com>
14241
14242         * libc/sys/arm/setjmp.S: Added .code 16 specifier for thumb-mode
14243         prolog to by-pass possible assembler error.
14244
14245 2001-03-21  Egor Duda  <deo@logos-m.ru>
14246
14247         Allow building internal stubs for non-reentrant syscalls
14248         if target provides its own malloc
14249         * libc/reent/reent.c (errno): Move definition here.
14250         * libc/reent/sbrkr.c: From here.
14251
14252 2001-03-20  Danny Smith <dannysmith@users.sourceforge.net>
14253
14254         * libc/include/sys/types.h (BSD int typedefs): Guard with
14255         _BSDTYPES_DEFINED rather than _WINSOCK_H.
14256         (fd_set): Add !defined __USE_W32_SOCKETS to guard; define
14257         _SYS_TYPES_FD_SET.
14258         * libc/include/sys/unistd.h (gethostname): Don't declare if defined
14259         (_WINSOCK_H) || defined (__USE_W32_SOCKETS).
14260
14261 Sat Mar 17 18:30:00 2001  Corinna Vinschen <corinna@vinschen.de>
14262
14263         * libc/include/sys/unistd.h: Add _PC_POSIX_PERMISSONS and
14264         _PC_POSIX_SECURITY constants for Cygwin.
14265
14266 Wed Mar 14  9:34:00 2001  Corinna Vinschen <corinna@vinschen.de>
14267
14268         * libc/sys/cygwin/crt0.c: Add copyright hint.
14269         * libc/sys/cygwin/sys/dirent.h: Ditto.
14270         * libc/sys/cygwin/sys/param.h: Ditto.
14271         * libc/sys/cygwin/sys/utime.h: Ditto.
14272         * libc/sys/cygwin/sys/utmp.h: Ditto.
14273
14274 2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
14275
14276         * libc/stdio/vfprintf.c (QUADINT) [_NO_LONGLONG]: Make it
14277         equivalent to LONGINT.
14278
14279 2001-03-08  Richard Sandiford  <rsandifo@redhat.com>
14280
14281         * (libc/include/machine/setjmp.h): Use 23 long long ints for a
14282         jmpbuf on MIPS64 targets.
14283         * (libc/machine/mips/setjmp.S): Add MIPS64 version.
14284
14285 Wed Mar  7 16:02:07 2001  Christopher Faylor <cgf@cygnus.com>
14286
14287         * libc/include/sys/config.h: Use ssize_t for Cygwin read/write
14288           declarations.
14289
14290 Mon Mar  5 21:48:54 2001  J"orn Rennecke <amylaar@redhat.com>
14291
14292         * libc/include/sys/config.h (_READ_WRITE_RETURN_TYPE): Define.
14293         For RTEMS, define to be ssize_t.  Default to int if not defined.
14294         * libc/stdio/sscanf.c (eofread): Return _READ_WRITE_RETURN_TYPE.
14295         * libc/stdio/stdio.c (__sread, __swrite): Likewise.
14296         * libc/stdio/local.h (__sread, __swrite): Likewise.
14297         * libc/include/sys/reent.h (_read, _write): Likewise.
14298         * libc/include/sys/unistd.h (read, write, _read, _write): Likewise.
14299         * libc/syscalls/sysread.c (read): Likewise.
14300         * libc/syscalls/syswrite.c (write): Likewise.
14301
14302 2001-03-05  Jeff Johnston  <jjohnstn@redhat.com>
14303
14304         * libc/time/mktime.c: Add L suffix to _SEC_IN_xxxx constants.
14305
14306 Sat Mar  3 00:34:14 2001  Christopher Faylor <cgf@cygnus.com>
14307
14308         * libc/include/sys/stat.h: Use special defines for executable stat bits
14309         when compiling for Cygwin.
14310         * libc/include/sys/unistd.h: Use special define for X_OK when compiling
14311         for Cygwin.
14312
14313 2001-03-02  Jeff Johnston  <jjohnstn@redhat.com>
14314
14315         * libc/string/strtok.c: Add #undef of __STRICT_ANSI__ so prototype
14316         of strtok_r is always defined.
14317
14318 2001-03-02  Jeff Johnston  <jjohnstn@redhat.com>
14319
14320         * libc/include/machine/ansi.h: New dummy header file.
14321
14322 2001-02-22  Jeff Johnston  <jjohnstn@redhat.com>
14323
14324         * libc/include/machine/setjmp-dj.h: With DJ Delorie's permission,
14325         changed the copyright information to allow free modification of the
14326         file with no reference to "copying.dj".
14327         * libc/include/sys/stat-dj.h: Ditto.
14328         * libc/machine/i386/setjmp.S: Ditto.
14329         * libc/sys/h8300hms/sys/file.h: Ditto.
14330         * libc/sys/sysmec/access.c: Ditto.
14331         * libc/sys/sysnecv850/access.c: Ditto.
14332         * libc/stdio/mktemp.c: Fixed typo for the word copyright.
14333         * libc/stdlib/getenv_r.c: Ditto.
14334         * libc/stdlib/putenv_r.c: Ditto.
14335         * libc/stdlib/setenv_r.c: Ditto.
14336         * libc/stdlib/getenv.c: Removed DJ reference since any possible
14337         modifications will now be in the _r version of this file.
14338         * libc/stdlib/putenv.c: Ditto.
14339         * libc/stdlib/setenv.c: Ditto.
14340         * libc/sys/go32/copying.dj: Removed DJ's address which is no longer
14341         valid.  Added a reference to DJ's web page that contains his address.
14342         * libc/sys/go32/*.s: Removed references to DJ's old address.
14343         * libc/sys/go32/*.c: Ditto.
14344         * libc/sys/go32/*.h: Ditto.
14345         * libc/sys/go32/*.S: Ditto.
14346         * libc/sys/go32/sys/*.h: Ditto.
14347
14348 2001-02-21  Jeff Johnston  <jjohnstn@redhat.com>
14349
14350         * libc/stdio/fdopen.c (fdopen): Protect calls to _fcntl() with
14351         HAVE_FCNTL flag check.
14352         * configure.host: Define HAVE_FCNTL for Cygwin, go32, RTEMS, sparc64,
14353         powerpcle, x86 netware, x86 sco, x86 Linux and Vxworks.
14354
14355 Thu Feb 15 01:39:51 2001  Christopher Faylor <cgf@cygnus.com>
14356
14357         * libc/include/sys/signal.h: Always include sys/types.h under Cygwin.
14358
14359 2001-02-14  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
14360
14361         * libc/include/stdlib.h: Add declarations of rand48 functions and
14362         their reentrant versions.
14363         * libc/include/sys/reent.h: Move macros from rand48.h. Add
14364         struct _rand48 for shared parameters of rand48 functions.
14365         (struct _reent): Add a variable _r48 of struct _rand48.
14366         (_REENT_INIT): Add _r48 initialization.
14367         * libc/stdlib/Makefile.am (lib_a_SOURCES): Add rand48 functions.
14368         (CHEWOUT_FILES): Add rand48.def.
14369         * libc/stdlib/Makefile.am: Add dependencies for rand48 functions.
14370         * libc/stdlib/Makefile.in: Regenerated.
14371         * libc/stdlib/drand48.c (drand48, _drand48_r): Derived from the
14372         NetBSD C library.
14373         * libc/stdlib/erand48.c (erand48, _erand48_r): Ditto.
14374         * libc/stdlib/jrand48.c (jrand48, _jrand48_r): Ditto.
14375         * libc/stdlib/lcong48.c (lcong48, _lcong48_r): Ditto.
14376         * libc/stdlib/lrand48.c (lrand48, _lrand48_r): Ditto.
14377         * libc/stdlib/mrand48.c (mrand48, _mrand48_r): Ditto.
14378         * libc/stdlib/nrand48.c (nrand48, _nrand48_r): Ditto.
14379         * libc/stdlib/seed48.c (seed48, _seed48_r): Ditto.
14380         * libc/stdlib/srand48.c (srand48, _srand48_r): Ditto.
14381         * libc/stdlib/rand48.c (__dorand48): Ditto.
14382         * libc/stdlib/rand48.h: Ditto, and modify declarations of global
14383         parameters into macros referring them in the reentrant structure.
14384
14385 2001-02-12  Jeff Johnston  <jjohnstn@redhat.com>
14386
14387         * libc/include/sys/stat.h: Add mknod for Cygwin now that
14388         Cygwin definition has correct prototype.
14389
14390 2001-02-08  Jeff Johnston  <jjohnstn@redhat.com>
14391
14392         * libc/include/sys/stat.h: Must revert change for mknod
14393         for CYGWIN until winsup/cygwin/syscalls.cc changes mknod
14394         prototype.
14395
14396 2001-02-08  Jeff Johnston  <jjohnstn@redhat.com>
14397
14398         * libc/include/stdio.h: Revert putw prototype.
14399
14400 2001-02-08  Edward M. Lee  <tailbert@yahoo.com>
14401
14402         * libc/include/grp.h: add prototype for initgroups.
14403         * libc/include/stdio.h: fix prototype for putw.
14404         * libc/include/sys/signal.h: add prototype for killpg.
14405         * libc/include/sys/stat.h: enable mknod/lstat for CYGWIN.
14406         * libc/include/sys/unistd.h: add prototypes for getpgid, setpgrp,
14407         vhangup and remove duplicate sysconf prototype.
14408
14409 2001-02-07  Jeff Johnston  <jjohnstn@redhat.com>
14410
14411         * libc/sys/rtems/sys/types.h: Removed.
14412
14413 2001-02-05  Charles Wilson  <cwilson@ece.gatech.edu>
14414
14415         * libc/include/locale.h: add LC_MESSAGES definition
14416
14417 2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
14418
14419         * libc/sys/sh/sys/syscall.h (SYS_get_argc, SYS_get_argN_len,
14420         SYS_get_argN):
14421         * libc/sys/sh/syscalls.c (__setup_argv_for_main,
14422         __setup_argv_and_call_main): New.
14423
14424 2001-01-31  Jeff Johnston  <jjohnstn@redhat.com>
14425
14426         * libc/include/stdio.h (FILENAME_MAX): Changed to use __FILENAME_MAX__
14427         if defined.
14428         (FOPEN_MAX): Changed to use __FOPEN_MAX__ if defined.
14429         (L_tmpnam): Changed to use __L_tmpnam__ if defined.
14430         * libc/include/sys/config.h: Changed to set __FILENAME_MAX__
14431         appropriately for Cygwin and RTEMS so not to exceed PATH_MAX.
14432
14433 Mon Jan 29 23:03:06 2001  Christopher Faylor <cgf@cygnus.com>
14434
14435         * libc/stdlib/mallocr.c: Undefine windows preprocessor variables when
14436         compiling under Cygwin.
14437
14438 2001-01-29  Jeff Johnston  <jjohnstn@redhat.com>
14439
14440         * libc/include/math.h (signgam): Change to errno-like solution
14441         using a function to return the address of the real signgam.
14442         * libc/reent/signgam.c: New file containing __signgam().
14443         * libc/reent/Makefile.am: Added signgam.c to list of files.
14444         * libc/reent/Makefile.in: Regenerated.
14445
14446 2001-01-25  Alexandre Oliva  <aoliva@redhat.com>
14447
14448         * libc/sys/sh/syscalls.c (_times): New.
14449
14450         * configure.host (sh*-*-*): Add -DHAVE_GETTIMEOFDAY to newlib_cflags.
14451         * libc/sys/sh/syscalls.c (_gettimeofday): New.
14452
14453 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
14454
14455         * libc/include/math.h (signgam): Regress previous fix as
14456         it does not handle programs with extern int signgam in them.
14457
14458 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
14459
14460         * libc/include/math.h (signgam): Changed to a macro refering to
14461         its location in the reentrant structure.
14462
14463 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
14464
14465         * libc/stdio/vfprintf.c (_VFPRINTF_R): Modification to fix
14466         that suppressed . for %.0f, 0.1.  Check now looks if there
14467         are padding zeroes (expt) in addition to any digits (ndig) to
14468         print.
14469
14470 2001-01-18  Jeff Johnston  <jjohnstn@redhat.com>
14471
14472         * libc/sys/arc/Makefile.am: New file.
14473         * libc/sys/arc/Makefile.in: Ditto.
14474         * libc/sys/arc/aclocal.m4: Ditto.
14475         * libc/sys/arc/configure: Ditto.
14476         * libc/sys/arc/configure.in: Ditto.
14477         * libc/sys/arc/crt0.S: Ditto.
14478         * libc/sys/arc/isatty.c: Ditto.
14479         * libc/sys/arc/mem-layout.c: Ditto.
14480         * libc/sys/arc/sbrk.c: Ditto.
14481         * libc/sys/arc/syscalls.c: Ditto.
14482         * libc/sys/arc/sys/syscall.h: Ditto.
14483
14484 Wed Jan 17 23:20:56 2001  Christopher Faylor <cgf@cygnus.com>
14485
14486         * libc/include/sys/unistd.h: Use correct declaration for setdtablesize.
14487
14488 Fri Jan 12 00:34:31 2001  Christopher Faylor <cgf@cygnus.com>
14489
14490         * libc/include/sys/signal.h: Add some SA_* defines for Cygwin.
14491
14492 Thu Jan 11 20:42:06  2001  Earnie Boyd  <earnie_boyd@yahoo.com>
14493
14494         * libc/include/sys/features.h: __CYGWIN__ preferred over __CYGWIN32__
14495
14496 2001-01-09  Nick Clifton  <nickc@redhat.com>
14497
14498         * configure.host (v859): Remove unsupported compiler options.
14499
14500 Fri Jan  5 19:57:00 EST 2001  Aaron J. Grier  <aaron@frye.com>
14501
14502         * src/newlib/configure.host (*-*-rtems*): add printf long long
14503         support for RTEMS.
14504
14505 2000-12-19  Graham Stott <grahams@redhat.com>
14506
14507         * libc/machine/xscale/memcmp.c (memcmp): Add clobber for "lr".
14508
14509 Wed Dec 14  Jeff Johnston  <jjohnstn@redhat.com>
14510
14511         * configure.host: Turn on long double I/O for Cygwin.
14512
14513 Wed Dec 14  Jeff Johnston  <jjohnstn@redhat.com>
14514
14515         * MAINTAINERS: Removed Ranjith.
14516         * NEWS: Updated for 1.9.0.
14517         * README: Updated.
14518         * acinclude.m4: Updated to release 1.9.0.
14519         * aclocal.m4 configure
14520           doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
14521           libc/machine/aclocal.m4 libc/machine/configure
14522           libc/machine/a29k/aclocal.m4 libc/machine/a29k/configure
14523           libc/machine/arm/aclocal.m4 libc/machine/arm/configure
14524           libc/machine/d10v/aclocal.m4 libc/machine/d10v/configure
14525           libc/machine/d30v/aclocal.m4 libc/machine/d30v/configure
14526           libc/machine/fr30/aclocal.m4 libc/machine/fr30/configure
14527           libc/machine/h8300/aclocal.m4 libc/machine/h8300/configure
14528           libc/machine/h8500/aclocal.m4 libc/machine/h8500/configure
14529           libc/machine/hppa/aclocal.m4 libc/machine/hppa/configure
14530           libc/machine/i386/aclocal.m4 libc/machine/i386/configure
14531           libc/machine/i960/aclocal.m4 libc/machine/i960/configure
14532           libc/machine/m32r/aclocal.m4 libc/machine/m32r/configure
14533           libc/machine/m68k/aclocal.m4 libc/machine/m68k/configure
14534           libc/machine/m88k/aclocal.m4 libc/machine/m88k/configure
14535           libc/machine/mips/aclocal.m4 libc/machine/mips/configure
14536           libc/machine/mn10200/aclocal.m4 libc/machine/mn10200/configure
14537           libc/machine/mn10300/aclocal.m4 libc/machine/mn10300/configure
14538           libc/machine/necv70/aclocal.m4 libc/machine/necv70/configure
14539           libc/machine/powerpc/aclocal.m4 libc/machine/powerpc/configure
14540           libc/machine/sh/aclocal.m4 libc/machine/sh/configure
14541           libc/machine/sparc/aclocal.m4 libc/machine/sparc/configure
14542           libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
14543           libc/machine/v850/aclocal.m4 libc/machine/v850/configure
14544           libc/machine/w65/aclocal.m4 libc/machine/w65/configure
14545           libc/machine/xscale/aclocal.m4 libc/machine/xscale/configure
14546           libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
14547           libc/sys/aclocal.m4 libc/sys/configure
14548           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
14549           libc/sys/arm/aclocal.m4 libc/sys/arm/configure
14550           libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
14551           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
14552           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
14553           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
14554           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
14555           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
14556           libc/sys/linux/aclocal.m4 libc/sys/linux/configure
14557           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
14558           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
14559           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
14560           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
14561           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
14562           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
14563           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
14564           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
14565           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
14566           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
14567           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
14568           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
14569           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
14570           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
14571           libm/aclocal.m4 libm/configure: Regenerated.
14572
14573 Wed Dec 13 11:52:00 2000  Corinna Vinschen <vinschen@cygnus.com>
14574
14575         * libc/include/sys/unistd.h: Add declarations for `chroot' and `getwd'
14576         when __CYGWIN__ is defined.
14577
14578 2000-12-13  Jeff Johnston  <jjohnstn@redhat.com>
14579
14580         * libc/stdlib/ldtoa.c (_ldcheck): New routine
14581         that categorizes a long double as NaN, Infinity, or other.
14582         * libc/stdio/vfprintf.c [WANT_IO_LONG_DBL](_VFPRINTF_R): Removed
14583         isinfl and isnanl static routines which were i386-specific.  Changed
14584         calls to the two removed routines to a single _ldcheck call.
14585         * libc/stdio/vfieeefp.h (ldieee): Fixed missing semi-colons.
14586
14587 2000-12-13  Jeff Johnston  <jjohnstn@redhat.com>
14588
14589         * Makefile.am: Fixed install-data-local target to use
14590         $(mkinstalldirs) for the installed header files to ensure
14591         the directories exist before copying.
14592         * Makefile.in: Regenerated.
14593
14594 2000-12-12  Jeff Johnston  <jjohnstn@redhat.com>
14595
14596         * libc/include/sys/unistd.h: Restored Cygwin _SC
14597         constants and moved new constants appropriately
14598         so Cygwin will build.
14599
14600 2000-12-11  Joel Sherrill <joel@OARcorp.com>
14601
14602         * Merge RTEMS specific .h files into main libc/include.
14603         * libc/sys/rtems/include/signal.h: Removed.
14604         * libc/sys/rtems/include/time.h: Removed.
14605         * libc/sys/rtems/sys/features.h: Removed.
14606         * libc/sys/rtems/sys/sched.h: Removed.
14607         * libc/sys/rtems/sys/siginfo.h: Removed.
14608         * libc/sys/rtems/sys/signal.h: Removed.
14609         * libc/sys/rtems/sys/time.h: Removed.
14610         * libc/sys/rtems/sys/times.h: Removed.
14611         definitions for time_t and clock_t since these are
14612         no longer in time.h.
14613         * libc/include/pthread.h: New file.
14614         * libc/include/sys/sched.h: New file.
14615         * libc/include/sys/features.h: New file.
14616         * libc/include/time.h: Removed duplicate definition of clock_t
14617         and time_t, get them from <sys/types.h> instead.  Add prototypes
14618         for POSIX clock and timer functionality.
14619         * libc/sys/linux/sys/types.h: Changed to include
14620         * libc/include/machine/types.h: Add _CLOCKID_T_ and _TIMER_T_.
14621         * libc/include/sys/signal.h: Add more complete set of POSIX
14622         signal functionality including real-time and threaded signals.
14623         * libc/include/sys/types.h: Add clock_t, time_t, struct
14624         timespec, and struct itimerspec.  Centralizing these makes
14625         things cleaner.  RTEMS uses 64-bit dev_t.
14626         Added numerous primitive definitions
14627         for pthreads including macros, pthread_attr_t,
14628         pthread_mutexattr_t, pthread_condattr_t, pthread_key_t,
14629         pthread_once_t, and pthread_t.
14630         * libc/include/sys/unistd.h: Added getlogin_r() prototype.
14631         If RTEMS follow POSIX on read(), write() and sbrk() prototype.
14632         Feature flags removed and moved to new file <sys/features.h>.
14633         Full set of POSIX sysconf() constants
14634
14635 2000-12-08  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14636
14637         * configure.host: Added x86 linux target.
14638         * libc/unix/getpass.c (_PATH_PASSWD, _PASSWORD_LEN): Default
14639         definitions provided if not already defined.
14640         * libc/sys/linux/crt0.c: New file.
14641         * libc/sys/linux/Makefile.am: Ditto.
14642         * libc/sys/linux/Makefile.in: Ditto.
14643         * libc/sys/linux/aclocal.m4: Ditto.
14644         * libc/sys/linux/brk.c: Ditto.
14645         * libc/sys/linux/configure: Ditto.
14646         * libc/sys/linux/configure.in: Ditto.
14647         * libc/sys/linux/getoptlong.c: Ditto.
14648         * libc/sys/linux/ids.c: Ditto.
14649         * libc/sys/linux/inode.c: Ditto.
14650         * libc/sys/linux/io.c: Ditto.
14651         * libc/sys/linux/linux.c: Ditto.
14652         * libc/sys/linux/process.c: Ditto.
14653         * libc/sys/linux/realpath.c: Ditto.
14654         * libc/sys/linux/select.c: Ditto.
14655         * libc/sys/linux/signal.c: Ditto.
14656         * libc/sys/linux/systat.c: Ditto.
14657         * libc/sys/linux/termios.c: Ditto.
14658         * libc/sys/linux/time.c: Ditto.
14659         * libc/sys/linux/wait.c: Ditto.
14660         * libc/sys/linux/include/alloca.h: Ditto.
14661         * libc/sys/linux/include/getopt.h: Ditto.
14662         * libc/sys/linux/include/stdint.h: Ditto.
14663         * libc/sys/linux/include/unistd.h: Ditto.
14664         * libc/sys/linux/sys/cdefs.h: Ditto.
14665         * libc/sys/linux/sys/dirent.h: Ditto.
14666         * libc/sys/linux/sys/errno.h: Ditto.
14667         * libc/sys/linux/sys/fcntl.h: Ditto.
14668         * libc/sys/linux/sys/file.h: Ditto.
14669         * libc/sys/linux/sys/ioctl.h: Ditto.
14670         * libc/sys/linux/sys/resource.h: Ditto.
14671         * libc/sys/linux/sys/signal.h: Ditto.
14672         * libc/sys/linux/sys/stat.h: Ditto.
14673         * libc/sys/linux/sys/syscall.h: Ditto.
14674         * libc/sys/linux/sys/termios.h: Ditto.
14675         * libc/sys/linux/sys/time.h: Ditto.
14676         * libc/sys/linux/sys/types.h: Ditto.
14677         * libc/sys/linux/sys/utmp.h: Ditto.
14678         * libc/sys/linux/sys/utsname.h: Ditto.
14679         * libc/sys/linux/sys/wait.h: Ditto.
14680
14681 2000-12-08  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
14682
14683         * Makefile.am: $(INSTALL), $(INSTALL_DATA), and $(INSTALL_PROGRAM)
14684         can be a relative path to $(top_srcdir)/install.sh so ensure the
14685         autoconf detected settings are properly passed recursively.
14686         Similarly, add AM_MAKEFLAGS to FLAGS_TO_PASS so they also get passed
14687         properly to subdirectories.
14688         * Makefile.in: Regenerated.
14689
14690 2000-12-07  Jay Kulpinski <jskulpin@eng01.gdds.com>
14691
14692         * libc/stdio/vfprintf.c: Minor modification to avoid requiring
14693         a floating point register unless really printing a floating
14694         point number.
14695
14696 2000-12-07  Jeff Johnston  <jjohnstn@redhat.com>
14697
14698         * libc/stdlib/ldtoa.c: Removed include of alloca.h.
14699         Also removed \r's.
14700         (asctoeg): Replaced alloca call with stack array and malloc
14701         when storage exceeds reasonable limit.
14702         (e53toe): Fixed einfin calls missing ldp parameter.
14703         (eiisinf): Hide behind check for LDBL_MANT_DIG == 64.
14704
14705 2000-12-06  Jeff Johnston  <jjohnstn@redhat.com>
14706
14707
14708         * libc/stdio/vfscanf.c: Fix typo for _NO_LONGDBL macro.
14709
14710 2000-12-06  Jeff Johnston  <jjohnstn@redhat.com>
14711
14712         * libc/stdlib/Makefile.am: Added ldtoa.c to list of sources.
14713         * libc/stdlib/Makefile.in: Regenerated.
14714         * libc/stdio/floatio.h: Added suitable MAXEXP for long double.
14715         * libc/stdio/vfieeefp.h: Added long double bit structures.
14716         * libc/stdio/vfprintf.c[WANT_IO_LONG_DBL]: Added long double support.
14717         [WANT_IO_LONG_DBL](isinfl, isnanl): New static long double routines.
14718         (exponent): Changed expbuf to reasonable maximum instead of MAXEXP.
14719         * libc/stdio/vfscanf.c[WANT_IO_LONG_DBL]: Added long double support.
14720         * libc/stdlib/ldtoa.c: New file containing _ldtoa_r and
14721         _strtold routines used for conversions between character
14722         and long double.
14723
14724 Wed Dec  6 12:01:00 2000  Corinna Vinschen <vinschen@cygnus.com>
14725
14726         * libc/include/stdlib.h: Add declarations for `mkstemp' and `mktemp'.
14727
14728 2000-12-04  Joel Sherrill <joel@OARcorp.com>
14729
14730         * libc/include/machine/time.h: RTEMS systems can configure clock
14731         tick rate so use sysconf() to ask.
14732
14733 2000-12-04  Joel Sherrill <joel@OARcorp.com>
14734
14735         * libc/include/sys/times.h: Add reference to POSIX standard.
14736
14737 2000-12-04  Joel Sherrill <joel@OARcorp.com>
14738
14739         * libc/include/sys/time.h: Added BSD timer manipulation macros
14740         used by RTEMS code.
14741
14742 2000-12-04  Joel Sherrill <joel@OARcorp.com>
14743
14744         * libc/sys/rtems/crt0.c: Add stubs for functions implicitly
14745         referenced by code generated by gcc 2.8.1.
14746         (a29k): Add stubs for V_SPILL, V_FILL, V_BSD_OS, V_EPI_OS to
14747         satisfy gcc.
14748
14749 2000-12-04  Joel Sherrill <joel@OARcorp.com>
14750
14751         * libc/stdlib/system.c: Avoid compiling do_system() for RTEMS.
14752
14753 2000-12-04  Joel Sherrill <joel@OARcorp.com>
14754
14755         * libc/include/ieeefp.h: Added entries for OpenCores CPUs.
14756
14757 2000-12-04  Joel Sherrill <joel@OARcorp.com>
14758
14759         * configure.host (or16, or32): New entries for OpenCores
14760         OpenRisc CPUs.
14761         (*-*-rtems*): Add -DNO_EXEC.
14762
14763 2000-12-04  Keith Outwater <vac4050@cae597.rsc.raytheon.com>
14764
14765         * libc/include/sys/errno.h: Added comments on many error numbers.
14766         * libc/string/strerror.c: Added some more strings.
14767
14768 2000-11-30  Jeff Johnston <jjohnstn@redhat.com>
14769
14770         * libc/sys/sh/syscalls.c (_link): New stub.
14771
14772 2000-11-29  Nick Clifton  <nickc@redhat.com>
14773
14774         * configure.host: Add xscale target.
14775         * libc/machine/xscale: New directory.
14776         * libc/machine/xscale/Makefile.am: New file.
14777         * libc/machine/xscale/Makefile.in: New file.
14778         * libc/machine/xscale/aclocal.m4: New file.
14779         * libc/machine/xscale/configure: New file.
14780         * libc/machine/xscale/configure.in: New file.
14781         * libc/machine/xscale/memchr.S: New file.
14782         * libc/machine/xscale/memcmp.S: New file.
14783         * libc/machine/xscale/memcpy.S: New file.
14784         * libc/machine/xscale/memmove.S: New file.
14785         * libc/machine/xscale/memset.S: New file.
14786         * libc/machine/xscale/strchr.S: New file.
14787         * libc/machine/xscale/strcmp.S: New file.
14788         * libc/machine/xscale/strcpy.S: New file.
14789         * libc/machine/xscale/strlen.S: New file.
14790
14791 Sat Nov 25 11:24:00 2000  Corinna Vinschen <vinschen@cygnus.com>
14792
14793         * libc/include/sys/types.h: Change i to `__i' in FD_ZERO macro to
14794         avoid compiler warnings.
14795
14796 2000-11-22  Michael Meissner  <meissner@redhat.com>
14797
14798         * libc/posix/execl.c (execl): Don't reference environ directly,
14799         reference it only via a static pointer to avoid problems with some
14800         shared library systems and with different uses of small data where
14801         the user specifies his own version of environ.
14802         * libc/posix/execv.c (execv): Ditto.
14803         * libc/stdlib/getenv_r.c (_findenv_r): Ditto.
14804         * libc/stdlib/setenv_r.c (_setenv_r,_unsetenv_r): Ditto.
14805         * libc/stdlib/system.c (system, !cygwin32 case): Ditto.
14806
14807         * libc/stdlib/getenv.c (environ): Delete unused reference to
14808         environ.
14809
14810         * libc/stdlib/getenv_r.c: Make initial comment friendlier to emacs
14811         colorization.
14812         * libc/stdlib/system.c: Ditto.
14813
14814 Tue Nov 21 20:32:21 2000  Christopher Faylor <cgf@cygnus.com>
14815
14816         * libc/sys/cygwin/sys/dirent.h: Change definition to avoid necessity of
14817         including windows headers.
14818
14819 2000-11-20  Jeff Johnston  <jjohnstn@redhat.com>
14820
14821         * libc/include/sys/unistd.h: Removed definition of MAXNAMLEN.
14822         * libc/include/dirent.h: Added definition of MAXNAMLEN if
14823         not defined by sys/dirent.h.
14824         * libc/posix/execvp.c: Added include of dirent.h to get
14825         MAXNAMLEN value which used to be in unistd.h.
14826
14827 Mon Nov  6 12:56:00 2000  Corinna Vinschen <vinschen@cygnus.com>
14828
14829         * libc/include/sys/types.h: Change type of i to `size_t' in
14830         FD_ZERO macro to avoid compiler warnings.
14831
14832 Sun Oct 29 20:06:41 2000  Christopher Faylor <cgf@cygnus.com>
14833
14834         * libc/include/stdlib.h: Avoid declaring cfree under Cygwin.
14835         * libc/include/malloc.h: Ditto.  Also remove obsolete declaration.
14836
14837 Tue Oct 24 20:16:00 2000  Corinna Vinschen <vinschen@cygnus.com>
14838
14839         * libc/include/sys/unistd.h: Add defines for sysconf values
14840         _SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES and
14841         _SC_AVPHYS_PAGES.
14842
14843 Mon Oct  9 20:26:33 2000  Christopher Faylor <cgf@cygnus.com>
14844
14845         * libc/include/sys/unistd.h: Add getdtablesize and setdtablesize
14846         declarations for __CYGWIN__.
14847
14848 2000-09-19  Geoffrey Keating  <geoffk@cygnus.com>
14849
14850         * libc/signal/signal.c (__sigtramp_r): ISO C requires
14851         case labels to be integral constant expressions, so
14852         use an if/else tree instead.
14853         (_raise_r): Likewise.
14854
14855 2000-09-13  Jeff Johnston  <jjohnstn@redhat.com>
14856
14857         * libc/machine/v850/setjmp.S: Fixed tab problems caused by
14858         clipping patch from e-mail reader.
14859
14860 2000-09-13  Will Cohen  <wcohen@redhat.com>
14861
14862         * libc/machine/v850/setjmp.S (_setjmp): Save r1 rather than r0.
14863         Added return value 0.
14864         (_longjmp): Allow longjmp to return value of second argument
14865         passed to it.
14866
14867 2000-09-06  Jeff Johnston <jjohnstn@redhat.com>
14868
14869         * libc/include/sys/types.h (FD_ZERO): Remove call to bzero and
14870         inline code to prevent having to include another header file.
14871
14872 Wed Sep  6 15:06:40 2000  Christopher Faylor <cgf@cygnus.com>
14873
14874         * Makefile.am: Fix space vs. tab problem in install-data-local.
14875         * Makefile.in: Regenerate.
14876
14877 Wed Sep  6 13:49:51 2000  Christopher Faylor <cgf@cygnus.com>
14878
14879         * libc/include/_ansi.h (_EXFUN): Define specially for __CYGWIN__.
14880         (_EXPARM): New macro for defining a function parameter.
14881         * libc/include/stdlib.h: Use _EXPARM.
14882         * libc/stdlib/mallocr.c: Don't build cfree for Cygwin.
14883
14884 2000-09-05  Manfred Hollstein  <manfredh@redhat.com>
14885
14886         * Makefile.am (install-data-local): Use optional $(DESTDIR) where
14887         required, as documented in the gnu coding standards.
14888         * Makefile.in: Regenerate.
14889
14890 2000-09-05  Jeff Johnston <jjohnstn@redhat.com>
14891
14892         * libc/include/fcntl.h (_FNDELAY): Changed to be _FNONBLOCK to
14893         make O_NDELAY and O_NONBLOCK have the same value.
14894
14895 2000-08-30  Kazu Hirata  <kazu@hxi.com>
14896
14897         * libc/sys/h8300hms/crt0.S: Optimize for both speed and code size.
14898
14899 2000-08-30  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14900
14901         * libc/posix/execve.c: included unistd.h for "_execve" prototype.
14902         * libc/misc/unctrl.c libc/sys/sysvi386/crt0.c (sccsid): changed
14903         "#ifndef lint" to "#if defined(LIBC_SCCS) && !defined(lint)" like
14904         everywhere else.
14905
14906 2000-08-30  Geoffrey Keating  <geoffk@cygnus.com>
14907
14908         * libc/string/swab.c: Specify that it's defined in <unistd.h>.
14909         * libc/include/string.h: Don't include <sys/types.h>,
14910         as it causes really bad namespace pollution.  Don't declare
14911         swab(), it is properly declared in unistd.h.
14912
14913 2000-08-29  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14914
14915         * libc/unix/getpwent.c (getpwnam, getpwuid, getpwent): removed
14916         (broken) support for non-existent /etc/passwd field "comment".
14917
14918 2000-08-27  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14919
14920         * libc/posix/scandir.c (DIRSIZ, scandir): use struct dirent.d_namlen
14921         only if _DIRENT_HAVE_D_NAMLEN is defined.
14922         (alphasort): aligned prototype with
14923         libc/sys/cygwin/sys/dirent.h and simplified function body.
14924         * libc/posix/telldir.c (telldir): changed "telldir" prototype to
14925         long telldir (DIR *) as mentioned in annex B of POSIX.1
14926
14927 2000-08-27  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14928
14929         * libc/machine/i386/i386mach.h: added SOTYPE_FUNCTION to set type
14930         of global entry points if _I386MACH_NEED_SOTYPE_FUNCTION is defined;
14931         Added __CLI and __STI macros (controlled via
14932         _I386MACH_ALLOW_HW_INTERRUPTS macro).
14933         * libc/machine/i386/f_atan2.S libc/machine/i386/f_atan2f.S
14934         libc/machine/i386/f_frexp.S libc/machine/i386/f_frexpf.S
14935         libc/machine/i386/f_ldexp.S libc/machine/i386/f_ldexpf.S
14936         libc/machine/i386/f_log.S libc/machine/i386/f_log10.S
14937         libc/machine/i386/f_log10f.S libc/machine/i386/f_logf.S
14938         libc/machine/i386/f_tan.S libc/machine/i386/f_tanf.S
14939         libc/machine/i386/memchr.S libc/machine/i386/memcmp.S
14940         libc/machine/i386/memcpy.S libc/machine/i386/memmove.S
14941         libc/machine/i386/memset.S libc/machine/i386/setjmp.S
14942         libc/machine/i386/strchr.S libc/machine/i386/strlen.S:
14943         (that's libc/machine/i386/*.S) added SOTYPE_FUNCTION(symbol)
14944         for all global entry points.
14945         * libc/machine/i386/setjmp.S: removed code replicated in
14946         libc/machine/i386/i386mach.h and included i386mach.h instead;
14947         Use __CLI and __STI instead of cli and sti.
14948
14949 2000-08-25  DJ Delorie  <dj@redhat.com>
14950
14951         * libc/include/sys/unistd.h (environ): this one isn't from the
14952         DLL, no __IMPORT
14953
14954 Fri Aug 25 13:37:11 2000  Christopher Faylor <cgf@cygnus.com>
14955
14956         * libc/stdlib/system.c (do_system): Eliminate explicit declaration of
14957         environ when compiling under cygwin since it is already declared in
14958         unistd.h.
14959
14960 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14961
14962         * libc/stdlib/mprec.c (ulp, b2d, d2b): changed a few expressions
14963         like  x << y-z  to the equivalent  x << (y-z).
14964         (d2b): changed if statements with assignment to perform the
14965         assignment prior to the if check.
14966         * libc/reent/reent.c: included stdlib.h for "_free_r" prototype.
14967         * libc/unix/getpass.c (getpass): moved "echo" assignment out of if.
14968         * libc/unix/ttyname.c: included string.h for "strcpy" prototype.
14969         * libc/unix/getcwd.c (ISDOT): added parentheses to clarify && and ||
14970         precedence.
14971         * libc/include/sys/unistd.h: added "vfork" prototype (for popen.c).
14972         Added "_execve" prototype (for execl.c, execle.c, execv.c, and
14973         execve.c).
14974         * libc/posix/popen.c (popen): added parentheses to clarify && and ||
14975         precedence.
14976         * libm/math/e_cosh.c (__ieee754_cosh): changed parentheses to
14977         clarify && and || precendence (and to remove pascalism).
14978         * libm/math/e_sinh.c (__ieee754_sinh): Ditto.
14979         * libm/math/s_infconst.c: added another pair of braces to all
14980         initializers for __infinity (need three: for __infinity[1] array,
14981         for union __dmath, and for i[2]).
14982
14983 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14984
14985         * libc/stdlib/abort.c: changed description: uses "raise" instead of
14986         "getpid" and "kill"; added: uses "write" and "_exit".
14987         Also included unistd.h for "_exit" prototype.
14988         * libc/stdlib/system.c: included unistd.h for "execve" prototype,
14989         reent.h for "_fork_r" and "_wait_r" prototypes.
14990         (do_system): changed  extern char *environ[] to POSIX-friendly
14991         extern char **environ.
14992         * libc/stdlib/wctomb_r.c: included string.h for "strlen" and "strcmp"
14993         prototypes.
14994         * libc/stdlib/remove.c: included reent.h for "_unlink_r" prototype.
14995         * libc/reent/execr.c: included sys/wait.h for "wait" prototype.
14996         * libc/reent/fstatr.c: included sys/stat.h for "fstat" prototype.
14997         * libc/reent/openr.c: included fcntl.h for "open" prototype.
14998         * libc/reent/signalr.c: included signal.h for "kill" prototype,
14999         unistd.h for "getpid" prototype.
15000         * libc/reent/statr.c: included sys/stat.h for "stat" prototype.
15001         * libc/reent/timer.c: included sys/time.h for "gettimeofday" prototype.
15002         * libc/unix/getut.c (utmpname): removed local, incorrect "strdup"
15003         prototype.  Also included stdlib.h for "abort", string.h for
15004         "strdup" and "strncmp" prototypes.
15005         * libc/unix/getlogin.c: included string.h for "strncmp", "memset", and
15006         "strncpy", unistd.h for "read" and "close" prototypes.
15007         * libc/posix/execvp.c: included string.h for "strchr", "strlen", and
15008         "strcat" prototypes.
15009
15010 2000-08-23  Werner Almesberger  <Wernen Almesberger@epfl.ch>
15011
15012         * libc/stdio/stdio.c (__swrite): declare "oldmode" only if it's
15013         used later (ifdef __SCLE)
15014         * libc/stdio/vfscanf.c (__svfscanf): declare "state" only if it's
15015         used later (ifdef MB_CAPABLE)
15016         * libc/string/memset.c (memset): removed unused variables "count"
15017         and "unaligned_addr"
15018         * libc/locale/locale.c (_setlocale_r): declare "lc_ctype" and
15019         "last_lc_ctype" only of they're used later (ifdef MB_CAPABLE)
15020         * libc/unix/getpwent.c (getpwnam): removed unused variables "uid"
15021         and "gid"
15022
15023 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
15024
15025         * libc/stdlib/envlock.c: changed documented "__env_lock" and
15026         "__env_unlock" prototype from "void *" or "char *" to
15027         "struct _reent *" to match real function.  Also added include
15028         of envlock.h.
15029         * libc/stdlib/mlock.c: changed documented "__malloc_lock" and
15030         "__malloc_unlock" prototype from "void *" or "char *" to
15031         "struct _reent *" to match real function.
15032         * libc/stdlib/envlock.h: added "__env_lock" and "__env_unlock"
15033         prototypes (for getenv_r.c and setenv_r.c).
15034
15035 2000-08-22  Werner Almesberger  <Werner.Almesberger@epfl.ch>
15036
15037         * libc/unix/getut.c (utmpname): added _CONST to reflect common use
15038         and prototype in cygwin's utmp.h
15039
15040 2000-08-16  Eric Fifer  <efifer@sanwaint.com>
15041
15042         * libc/stdio/vfprintf.c (_vfprintf_r): suppress . with "%.0f", 0.1
15043
15044 2000-08-09  Nick Clifton  <nickc@cygnus.com>
15045
15046         * libc/sys/arm/setjmp.S: Recode to clean up function prologues and
15047         epilogue and to allow the functions to be used in a Thumb based
15048         toolchain.
15049
15050 2000-08-08  Jeff Johnston <jjohnstn@redhat.com>
15051
15052         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Fixed code
15053         so size of 0 results in nothing being written to string.
15054         Also fixed code so that when size is non-zero, there is only
15055         a maximum of size - 1 characters written to the array and
15056         a nul terminator is appended at the end.
15057         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
15058
15059 2000-08-01  DJ Delorie  <dj@redhat.com>
15060
15061         * libc/include/sys/config.h: define __IMPORT appropriately
15062         * libc/include/ctype.h (_ctype_): use __IMPORT
15063         * libc/include/math.h (__infinity, signam, _LIB_VERSION): ditto
15064         * libc/include/math.h (__mb_cur_max): ditto
15065         * libc/include/time.h (_timezone, _daylight, _tzname): ditto
15066         * libc/include/unctrl.h (__unctrl, __unctrllen): ditto
15067         * libc/include/errno.h (_sys_errlist, _sys_nerr): ditto
15068         * libc/include/unistd.h (environ): ditto
15069
15070 2000-07-28  Michael Meissner  <meissner@redhat.com>
15071
15072         * libc/include/math.h (__infinity): Declare as an array without
15073         bounds to get around small data support.  Rewrite Cygwin support
15074         to be more general.
15075         * libm/math/s_infconst.c (__infinity): Ditto.
15076         * libm/mathfp/s_infconst.c (__infinity): Ditto.
15077
15078 Thu Jul 27 10:46:01 2000  Christopher Faylor <cgf@cygnus.com>
15079
15080         * libc/include/math.h: Use appropriate dll import linkage for
15081         __infinity under Cygwin.
15082
15083 2000-07-13  DJ Delorie  <dj@cygnus.com>
15084
15085         * libc/stdio/vfprintf.c: pad 0.0 correctly with %e
15086
15087 Wed Jun 28 14:08:00 2000  Keith Walker  <keith.walker@arm.com>
15088
15089         * libc/sys/arm/crt0.S (.LC30): Added missing length parameter
15090         to argument list for AngelSWI_Reason_GetCmdLine.
15091
15092 Tue Jun 27 15:49:00 2000  Marek Michalkiewicz  <marekm@linux.org.pl>
15093
15094         * configure.host: Add support for AVR target.
15095         * libc/include/machine/ieeefp.h: Likewise.
15096         * libc/include/sys/config.h: Likewise.
15097
15098 Thu Jun 22 18:35:00 2000  Ranjith Kumaran  <ranjith@cygnus.com>
15099
15100         * README: Newlib 1.8.2 must be built in a separate directory
15101         than the sources.
15102
15103 Tue Jun 20 14:30:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
15104
15105         * libc/include/sys/reent.h (_rand_next): Added __extension__
15106         qualifier as long long type is not strict ANSI.
15107         * libc/stdlib/rand.c (rand): Added __extension__ qualifier
15108         to long long constant.
15109
15110 Fri Jun 16 23:02:00 2000  Corinna Vinschen <corinna@vinschen.de>
15111
15112         * libc/include/sys/unistd.h: Add prototypes for `seteuid' and
15113         `setegid' provided by Cygwin.
15114
15115 Thu Jun 15  0:21:00 2000  Corinna Vinschen <corinna@vinschen.de>
15116
15117         * libc/stdio/fdopen.c: Take explicit given bin/textmode into
15118         account for Cygwin.
15119
15120 Fri Jun  9 14:28:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
15121
15122         * libc/include/sys/reent.h (_rand_next): Changed to
15123         unsigned long long and moved to end of _reent struct in _new union.
15124         (_REENT_INIT): Changed to move _rand_next initialization.
15125         * libc/stdlib/rand.c (rand): Changed to use unsigned long long
15126         linear congruential algorithm that is used by DJGPP.
15127
15128 Thu Jun  8 21:18:00 2000  Ranjith Kumaran  <ranjith@cygnus.com>
15129
15130         * libc/include/stdlib.h: Set RAND_MAX to __RAND_MAX.
15131         * libc/include/sys/config.h: Define __RAND_MAX.
15132
15133 Thu Jun  8 17:54:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
15134
15135         * libc/stdlib/rand_r.c: New algorithm that meets minimal
15136         standard.
15137
15138 Fri Jun  2 23:02:11 2000  Christopher Faylor <cgf@cygnus.com>
15139
15140         * libc/include/string.h: Work around problem with strsignal and gdb.
15141
15142 Tue May 30 13:13:01 2000  Christopher Faylor <cgf@cygnus.com>
15143
15144         * libc/include/ctype.h: __CYGWIN32__ -> __CYGWIN__
15145         * libc/include/malloc.h: Ditto.
15146         * libc/include/process.h: Ditto.
15147         * libc/include/stdio.h: Ditto.
15148         * libc/include/stdlib.h: Ditto.
15149         * libc/include/time.h: Ditto.
15150         * libc/include/machine/setjmp.h: Ditto.
15151         * libc/include/sys/errno.h: Ditto.
15152         * libc/include/sys/signal.h: Ditto.
15153         * libc/include/sys/stat.h: Ditto.
15154         * libc/include/sys/time.h: Ditto.
15155         * libc/include/sys/unistd.h: Ditto.
15156         * libc/include/string.h: Ditto.  strsignal should return a const char *.
15157
15158 2000-05-26  Marek Michalkiewicz  <marekm@linux.org.pl>
15159
15160         * libm/common/s_expm1.c (expm1): Add curly braces, avoid warnings.
15161         * libm/common/s_log1p.c (log1p): Likewise.
15162         * libm/common/s_scalbn.c (scalbn): Likewise.
15163         * libm/math/e_log.c: Likewise.
15164         * libm/math/e_asin.c: Likewise.
15165         * libm/math/ef_asin.c: Likewise.
15166         * libm/math/e_j0.c (pzero, qzero): Remove redundant test.
15167         * libm/math/e_j1.c (pone, qone): Likewise.
15168         * libm/math/ef_j0.c (pzerof, qzerof): Likewise.
15169         * libm/math/ef_j1.c (ponef, qonef): Likewise.
15170         * libm/mathfp/e_j0.c (pzero, qzero): Likewise.
15171         * libm/mathfp/e_j1.c (pone, qone): Likewise.
15172         * libm/mathfp/ef_j0.c (pzerof, qzerof): Likewise.
15173         * libm/mathfp/ef_j1.c (ponef, qonef): Likewise.
15174
15175 2000-05-19  DJ Delorie  <dj@cygnus.com>
15176
15177         * libc/stdio/stdio.c (__stextmode): new, see if file is text mode
15178         (__sread): always read in binary mode
15179         (__swrite): always write in binary mode
15180         * libc/include/stdio.h: no getc/putc macros for cygwin; causes
15181         compatibility issues with different dll versions
15182         * libc/stdio/fopen.c: use __stextmode
15183         * libc/stdio/fdopen.c: ditto
15184         * libc/stdio/freopen.c: ditto
15185         * libc/stdio/findfp.c: set up __SCLE for std{in,out,err}
15186         * libc/stdio/local.h: declare __stextmode
15187
15188 2000-05-18  DJ Delorie  <dj@cygnus.com>
15189
15190         * libc/stdio/fgets.c (fgets): perform CRLF conversions if __SCLE
15191
15192 Mon May 15 18:54:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
15193
15194         * libc/include/ctype.h: Changed tolower and toupper macros
15195         to use __extension__ to prevent pedantic warnings.
15196
15197 Mon May 15 14:26:00 2000  Joel Sherrill  <joel@oarcorp.com>
15198
15199         * libc/sys/rtems/sys/time.h: Add macros for manipulating timeval
15200         structures.
15201
15202 Wed May 10 19:24:53 2000  Jim Wilson  <wilson@cygnus.com>
15203
15204         * libc/include/machine/ieeefp.h: Add ia64 support.
15205         * configure.host: Likewise.
15206
15207 Wed May 10 13:52:24 2000  Egor Duda <deo@logos-m.ru>
15208
15209         * libc/time/asctime_r.c (asctime_r): Change output format. Day of
15210         month is now padded with space, not zero.  This now conforms to
15211         ANSI standard.
15212
15213 Wed May 03 17:57:00 2000  Corinna Vinschen <corinna@vinschen.de>
15214
15215         * libc/include/sys/errno.h: Add define for ENOSHARE ("No such
15216         host or network path") used by cygwin. Add some comments.
15217
15218 Tue May 02 23:45:48 2000  DJ Delorie  <dj@cygnus.com>
15219
15220         * libc/include/stdio.h (FILE): define __SCLE for "convert line
15221         endings" for Cygwin.
15222         (__sgetc): convert line endings if needed
15223         (__sputc): ditto
15224         * libc/stdio/fdopen.c (_fdopen_r): Remember if we opened in text mode
15225         * libc/stdio/fopen.c (_fopen_r): ditto
15226         * libc/stdio/freopen.c (freopen): ditto
15227         * libc/stdio/fread.c (fread): perform CRLF conversions if __SCLE
15228         * libc/stdio/fvwrite.c (__sfvwrite): ditto
15229
15230 Thu Apr 27 07:45:48 2000  Alexandre Oliva  <aoliva@cygnus.com>
15231
15232         * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Use
15233         post-increment when it is worth it, spacewise.
15234
15235 Mon Apr 17 12:46:00 2000  Marek Michalkiewicz <marekm@linux.org.pl>
15236
15237         * libc/signal/signal.c (_signal_r) : Removed unused local variable temp.
15238         * libc/stdio/findfp.c (std): Added declaration of flags and file.
15239         * libc/stdio/mktemp.c (_gettemp, _mkstemp_r, mkstemp): Added int
15240         return type.
15241         * libc/stdio/putchar.c (putchar): Added return statement.
15242         * libc/stdio/refill.c (lflush): Added correct parentheses.
15243         * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
15244         * libc/stdio/vfscanf.c (__svfscanf): Changed sprintf call which
15245         prints long value to use l qualifier.
15246         * libc/stdlib/dtoa.c (_dtoa_r): Added parentheses to remove warning
15247         messages and initialized local values: ilim, ilim1, and spec_case.
15248         * libc/stdlib/ecvtbuf.c (print_e): Removed unused variable dp.
15249         * libc/stdlib/mbctype.h (_issjis1, _issjis2): Added parentheses.
15250         * libc/stdlib/mprec.c: Ditto.
15251         * libc/stdlib/setenv_r.c: Ditto.
15252         * libc/stdlib/strtod.c: Ditto.
15253         * libc/stdlib/strtol.c: Ditto.
15254         * libc/stdlib/strtoul.c: Ditto.
15255         * libm/common/sf_expm1.c: Added curly braces to if else clauses.
15256         * libm/common/sf_log1p.c: Ditto.
15257         * libm/common/sf_scalbn.c: Ditto.
15258         * libm/math/ef_log.c: Ditto.
15259
15260 Sun Apr 16 12:45:00 2000  Corinna Vinschen <corinna@vinschen.de>
15261
15262         * libc/posix/execvp.c (execvp): Check path for
15263         trailing slash.
15264
15265 Fri Mar 31 20:39:00 2000  Corinna Vinschen <corinna@vinschen.de>
15266
15267         * libc/include/sys/unistd.h: Add prototypes for
15268         fchmod, fchown, lchown.
15269
15270 Fri Mar 24 15:34:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
15271
15272         * acinclude.m4: Changed release to 1.8.2.
15273         * aclocal.m4 configure doc/aclocal.m4 doc/configure
15274           libc/aclocal.m4 libc/configure libc/machine/aclocal.m4
15275           libc/machine/configure libc/machine/a29k/aclocal.m4
15276           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
15277           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
15278           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
15279           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
15280           libc/machine/fr30/configure libc/machine/h8300/aclocal.m4
15281           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
15282           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
15283           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
15284           libc/machine/i386/configure libc/machine/i960/aclocal.m4
15285           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
15286           libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
15287           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
15288           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
15289           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
15290           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
15291           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
15292           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
15293           libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
15294           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
15295           libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
15296           libc/machine/tic80/configure libc/machine/v850/aclocal.m4
15297           libc/machine/v850/configure libc/machine/w65/aclocal.m4
15298           libc/machine/w65/configure libc/machine/z8k/aclocal.m4
15299           libc/machine/z8k/configure libc/sys/aclocal.m4
15300           libc/sys/aclocal.m4 libc/sys/configure
15301           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
15302           libc/sys/arm/aclocal.m4 libc/sys/arm/configure
15303           libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
15304           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
15305           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
15306           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
15307           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
15308           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
15309           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
15310           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
15311           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
15312           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
15313           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
15314           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
15315           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
15316           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
15317           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
15318           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
15319           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
15320           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
15321           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
15322           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
15323           libm/aclocal.m4 libm/configure: Regenerated.
15324
15325 2000-03-24  Nick Clifton  <nickc@cygnus.com>
15326
15327         * libc/sys/arm/syscalls.c: Fix compile time warnings.
15328         (do_AngelSWI): Add "cc" to list o registers clobbered.
15329
15330 Thu Mar 22 14:57:00 2000  Fernando Nasser <fnasser@redhat.com>
15331
15332         * libc/sys/arm/syscalls.c (do_AngelSWI): Prevent registers with valid
15333         information to be clobbered by an Angel C library support syscall.
15334
15335 Tue Mar 21 19:08:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
15336
15337         * libc/stdlib/envlock.c: Fixed comment typo.
15338
15339 Fri Mar 17 15:37:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
15340
15341         * libc/stdio/vfscanf.c (__svfscanf): Fixed floating point
15342         code to update nread as each character is processed instead
15343         of using buffer contents which throw away leading zeroes.
15344
15345 Mon Mar 13 15:22:00 2000  Sergei Organov <osv@javad.ru>
15346
15347         * libm/mathfp/sf_sqrt.c: Change _DOUBLE_IS_32BITS sqrt call to sqrtf.
15348
15349 Fri Mar 10 16:09:20 2000  Jeff Johnston <jjohnstn@cygnus.com>
15350
15351         * libc/include/string.h: Include <sys/types.h>.
15352
15353 Fri Mar 10 14:53:50 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15354
15355         * libc/stdio/putw.c (putw): Return 0 on success, to be compliant
15356         with XSH5, not SVID.
15357
15358 Thu Mar  9 17:20:41 2000  Jeff Johnston <jjohnstn@cygnus.com>
15359
15360         * libc/include/string.h: Changed last argument back to ssize_t
15361         to make it compatible with XPG4 definition which is
15362         defined in <unistd.h>.  There is a conflict in the SVID 3
15363         and XPG4 definitions and newlib will settle with XPG4.
15364         * libc/string/swab.c: Ditto.
15365
15366 Wed Mar  8 17:11:41 2000  Jeff Johnston <jjohnstn@cygnus.com>
15367
15368         * libc/include/string.h: Changed last argument to size_t.
15369         * libc/string/swab.c: Changed last argument to size_t.
15370
15371 Wed Mar  8 00:46:41 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15372
15373         * libc/reent/Makefile.am (lib_a_SOURCES): Added unlinkr.c.
15374         (CHEWOUT_FILES): Added unlinkr.def.
15375         * libc/reent/Makefile.in: Rebuilt.
15376         * libc/sys.tex: Include unlinkr.def.
15377         * libc/reent/linkr.c (_unlink_r): Moved to...
15378         * libc/reent/unlinkr.c: ... new file.
15379
15380 Wed Mar  8 00:43:07 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15381
15382         * libc/string/Makefile.am (lib_a_SOURCES): Added swab.c.
15383         (CHEWOUT_FILES): Added swab.def.
15384         * libc/string/Makefile.in: Rebuilt.
15385         * libc/string/string.tex: Include swab.def.
15386         * libc/include/string.h (swab): Declare.
15387         * libc/string/swab.c: New file.
15388
15389 Wed Mar  8 00:38:35 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15390
15391         * libc/stdio/Makefile.am (lib_a_SOURCES): Added getw.c and putw.c.
15392         (CHEWOUT_FILES): Added getw.def and putw.def.
15393         * libc/stdio/Makefile.in: Rebuilt.
15394         * libc/stdio/stdio.tex: Include getw.def and putw.def.
15395         * libc/stdio/getw.c: New file.
15396         * libc/stdio/putw.c: New file.
15397
15398 Fri Feb 25 14:50:50 2000  Jeff Johnston <jjohnstn@cygnus.com>
15399
15400         * libc/stdio/flags.c (__sflags): Added check that mode[1]
15401         is non-null before looking at mode[2].
15402
15403 Thu Feb 24 11:43:00 2000  Ran Cabell <rcabell@norfolk.infi.net>
15404
15405         * libm/mathfp/sf_atan2.c: Fix atan2 typo for _DOUBLE_IS_32_BITS.
15406         * libm/mathfp/sf_atan.c: Ditto.
15407
15408 Thu Feb 24 11:39:00 2000  Joel Sherrill <joel@OARcorp.com>
15409
15410         * libc/include/sys/stat.h: Add RTEMS prototype for lstat.
15411
15412 Tue Feb 22 14:37:00 2000  Ran Cabell <rcabell@norfolk.infi.net>
15413
15414         * libm/mathfp/sf_exp.c: Corrected _DOUBLE_IS_32_BITS to be
15415         _DOUBLE_IS_32BITS.
15416
15417 Mon Feb 21 11:43:50 2000  Jeff Johnston <jjohnstn@cygnus.com>
15418
15419         * libc/stdio/vfprintf.c (VFPRINTF): Added CHECK_INIT
15420         call prior to calling _VFPRINTF_R so reentrant data area is set.
15421         (_VFPRINTF_R): Removed now extraneous CHECK_INIT call.
15422
15423 Thu Feb 17 01:42:50 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
15424
15425         * libc/stdio/vfscanf.c (limits.h): #include.
15426         (MAX_LONG_LEN): #define.
15427         (__svfscanf): Handle floating point numbers with arbitrary amounts
15428         of leading zeroes.
15429
15430 2000-02-15  Nick Clifton  <nickc@cygnus.com>
15431
15432         * libc/sys/arm/syscalls.c (_fstat): Initialise all fields to
15433         zero.  Set the blocksize to 1024/
15434
15435 Thu Jan 20 18:57:00 2000  Fernando Nasser <fnasser@redhat.com>
15436
15437         * setvbuf.c (setvbuf):  Set size to BUFSIZ when passed a zero size
15438         with line buffering.
15439
15440 Mon Jan 10 18:43:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
15441
15442         * acinclude.m4: Changed include directory for winsup headers.
15443         * aclocal.m4 configure libc/aclocal.m4
15444           libc/configure libc/ctype/Makefile.in libc/errno/Makefile.in
15445           libc/locale/Makefile.in libc/machine/aclocal.m4
15446           libc/machine/configure libc/machine/a29k/aclocal.m4
15447           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
15448           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
15449           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
15450           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
15451           libc/machine/fr30/configure
15452           libc/machine/h8300/aclocal.m4
15453           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
15454           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
15455           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
15456           libc/machine/i386/configure libc/machine/i960/aclocal.m4
15457           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
15458           libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
15459           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
15460           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
15461           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
15462           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
15463           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
15464           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
15465           libc/machine/powerpc/configure
15466           libc/machine/sh/aclocal.m4
15467           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
15468           libc/machine/sparc/configure
15469           libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
15470           libc/machine/v850/aclocal.m4 libc/machine/v850/configure
15471           libc/machine/w65/aclocal.m4 libc/machine/w65/configure
15472           libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
15473           libc/misc/Makefile.in libc/posix/Makefile.in
15474           libc/reent/Makefile.in
15475           libc/signal/Makefile.in
15476           libc/string/Makefile.in libc/sys/aclocal.m4 libc/sys/configure
15477           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
15478           libc/sys/arm/Makefile.in libc/sys/arm/aclocal.m4
15479           libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
15480           libc/sys/cygwin/configure libc/sys/d10v/Makefile.in
15481           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
15482           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
15483           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
15484           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
15485           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
15486           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
15487           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
15488           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
15489           libc/sys/sh/Makefile.in libc/sys/sh/aclocal.m4
15490           libc/sys/sh/configure libc/sys/sparc64/aclocal.m4
15491           libc/sys/sparc64/configure libc/sys/sun4/aclocal.m4
15492           libc/sys/sun4/configure libc/sys/sysmec/aclocal.m4
15493           libc/sys/sysmec/configure libc/sys/sysnec810/aclocal.m4
15494           libc/sys/sysnec810/configure libc/sys/sysnecv850/aclocal.m4
15495           libc/sys/sysnecv850/configure libc/sys/sysvi386/aclocal.m4
15496           libc/sys/sysvi386/configure libc/sys/sysvnecv70/aclocal.m4
15497           libc/sys/sysvnecv70/configure libc/sys/tic80/aclocal.m4
15498           libc/sys/tic80/configure libc/sys/w65/aclocal.m4
15499           libc/sys/w65/configure libc/sys/z8ksim/aclocal.m4
15500           libc/sys/z8ksim/configure libc/syscalls/Makefile.in
15501           libc/time/Makefile.in libc/unix/Makefile.in libm/aclocal.m4
15502           libm/configure: Regenerated.
15503
15504 Mon Jan 10 18:43:46 2000  Jeff Johnston <jjohnstn@cygnus.com>
15505
15506         * libc/stdlib/putenv_r.c (_putenv_r): New file.
15507         * libc/stdlib/strdup_r.c (_strdup_r): New file.
15508         * libc/include/string.h: Added _strdup_r.
15509         * libc/stdlib/putenv.c: Added call to reentrant version.
15510         * libc/stdlib/strdup.c: Ditto.
15511         * libc/stdlib/Makefile.am: Added _putenv_r and _unsetenv_r.
15512         * libc/include/stdlib.h: Ditto.
15513         * libc/stdlib/Makefile.in: Regenerated.
15514         * libc/string/Makefile.in: Regenerated.
15515         * libc/stdlib/setenv.c: Added reentrant version of unsetenv.
15516         * libc/stdlib/setenv_r.c: Added unsetenv_r and changed memory
15517         management calls to reentrant versions.
15518         * libc/stdlib/wcstombs.c: Added #ifndef _REENT_ONLY wrapper.
15519         * libc/stdlib/wctomb.c: Ditto.
15520         * libc/stdlib/mblen.c: Ditto.
15521         * libc/stdlib/mbstowcs.c: Ditto.
15522         * libc/stdlib/mbtowc.c: Ditto.
15523         * libc/stdlib/getenv.c: Ditto.
15524         * libc/reent/reent.tex: Added references to _putenv_r, _setenv_r,
15525         and _strdup_r.
15526
15527 Thu Jan  6 15:33:46 2000  Christopher Faylor <cgf@cygnus.com>
15528
15529         patch from Corinna Vinschen <corinna@vinschen.de>
15530         * libc/sys/cygwin/sys/param.h: Define NGROUP_MAX as 16.
15531
15532 Mon Jan 03 14:36:00 2000  Sergei Organov <osv@javad.ru>
15533
15534         * libm/mathfp/s_atangent.c: Fix exponent calculation.
15535         * libm/mathfp/s_ldexp.c: Ditto.
15536         * libm/mathfp/sf_atangent.c: Ditto.
15537         * libm/mathfp/sf_ldexp.c: Ditto.
15538
15539 Tue Dec 14 5:42:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
15540
15541         * libc/machine/i960/setjmp.S: fix typo leaving .link_pix uncommented
15542         * libc/include/locale.h: define NULL to be 0.
15543
15544 Tue Dec  7 15:41:45 1999  Jim Wilson  <wilson@cygnus.com>
15545
15546         * libc/sys/sh/syscalls.c (stack_ptr): Move definition before first
15547         function.
15548
15549 Wed Dec  1 17:39:29 1999  Jeffrey A Law  (law@cygnus.com)
15550
15551         * libc/machine/mn10300/setjmp.S: Handle am33.
15552
15553 1999-11-26  Nick Clifton  <nickc@cygnus.com>
15554
15555         * libc/sys/arm/syscalls.c: Add function prototypes.
15556         (stack_ptr): Move declaration before function definitions.
15557
15558 Sat Nov 20 17:13:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
15559
15560         * NEWS: Updated version information.
15561         * README: Ditto.
15562
15563 Tue Nov 09 12:19:21 1999  Jeff Johnston <jjohnstn@cygnus.com>
15564
15565         * libc/machine/i386/strchr.S: Fixed alignment test.
15566
15567 Thu Oct 28 05:30:46 1999  Andrew Cagney  <cagney@makita.cygnus.com>
15568
15569         * libc/sys/d10v/crt0.S (_start): Construct a real stack frame.
15570
15571 Thu Oct 28 15:29:11 1999  Andrew Cagney  <cagney@b1.cygnus.com>
15572
15573         * libc/sys/d10v/crt0.S (_start): Initialize both SPI and SPU
15574         ensuring that there is space between the two.
15575
15576 Thu Oct 14 13:39:21 1999  Christopher Faylor <cgf@cygnus.com>
15577
15578         * libc/stdio/flags.c: Conditionalize check for 't' for cygwin case
15579         only.
15580
15581 1999-10-08  Vadim Egorov  <egorovv@1c.ru>
15582
15583         * libc/include/stdlib.h: add ptsname, grantpt, unlockpt to cygwin
15584         section
15585
15586 Sat Oct  2 02:02:00 MEST 1999  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
15587
15588         * libc/machine/sh/asm.h: Added __SH4_SINGLE__ to DELAYED_BRANCHES
15589         * libc/machine/sh/memcpy.S: Fix line wrapping in SL macro
15590
15591 Fri Oct  1 13:17:59 CDT 1999  <joel@OARcorp.com>
15592         * libc/include/grp.h: Added getgrnam_r and getgrgid_r prototypes
15593           per POSIX 1003.1b.
15594         * libc/include/pwd.h: Added getpwnam_r and getpwuid_r prototypes
15595           per POSIX 1003.1b.
15596
15597 1999-09-13  DJ Delorie  <dj@cygnus.com>
15598
15599         * libc/stdio/mktemp.c (_gettemp): on cygwin, check for EACCESS
15600         also.
15601
15602 Thu Sep  9 15:31:00 1999  Jeff Johnston <jjohnstn@cygnus.com>
15603
15604         * setvbuf.c (setvbuf):  When mallocing a buffer of size BUFSIZ,
15605         also note BUFSIZ as its size.
15606
15607 Tue Sep  7 17:15:00 1999  Joel Sherrill <joel@OARcorp.com>
15608
15609         * configure.host: Corrected feature defines for RTEMS.
15610         * libc/include/sys/stat.h: Added protototype for RTEMS mknod.
15611         * libc/include/sys/stat.h: mkfifo() should take const path arg.
15612         * libc/include/sys/unistd.h: pathconf() should take const path arg.
15613           Enabled usleep(), ftruncate(), and truncate() prototypes for RTEMS.
15614           Added defines for _POSIX_JOB_CONTROL, _POSIX_SAVED_IDS, and
15615           _POSIX_VERSION for RTEMS.  Added defines for _PC_ASYNC_IO,
15616           _PC_PRIO_IO, and _PC_SYNC_IO.
15617         * libc/machine/m68k/Makefile.am: Added strcpy.c and strlen.c.
15618         * libc/machine/m68k/Makefile.in: Regenerated.
15619         * libc/machine/m68k/strcpy.c: New file.
15620         * libc/machine/m68k/strlen.c: New file.
15621         * libc/stdio/tmpnam.c: Always make the returned name usable.
15622         * libc/sys/rtems/crt0.c: New version that passes all autoconf tests.
15623         * libc/sys/rtems/sys/dirent.h: New file.
15624         * libc/sys/rtems/sys/types.h: Added dev_t.
15625
15626 Tue Sep  7 17:15:00 1999   Jay Kulpinski <jskulpin@eng01.gdds.com>
15627
15628         * libc/stdlib/mprec.c: Fixed unitialized variable problem.
15629
15630 Fri Sep  3 12:35:20 1999  Jeff Johnston <jjohnstn@cygnus.com>
15631
15632         * libc/stdio/ftell.c (ftell): Backing off Joern's fix and
15633         my patch.
15634
15635 Thu Sep  2 22:05:20 1999  Christopher Faylor <cgf@cygnus.com>
15636
15637         patch from Jeff Johnston <jjohnstn@cygnus.com>
15638         * libc/stdio/ftell.c (ftell): Avoid using buffer position when the
15639         buffer is not in a useful state.
15640
15641 1999-09-01  Nick Clifton  <nickc@cygnus.com>
15642
15643         * libc/sys/arm/syscalls.c (_link): Add stub.
15644
15645 Fri Aug 27 23:09:09 1999  J"orn Rennecke <amylaar@cygnus.co.uk>
15646
15647         * ftell.c (ftell): Use actual position within buffer for text mode.
15648         * findfp.c (std): Initialize ptr->_bf._size.
15649
15650 Wed Aug 18 18:48:02 1999  Christopher Faylor <cgf@cygnus.com>
15651
15652         * libc/include/sys/unistd.h: Add nice() declaration.
15653
15654 1999-08-09  Nick Clifton  <nickc@cygnus.com>
15655
15656         * libc/sys/arm/crt0.S (change_mode): Rename to __change_mode and
15657         declare as a thumb function so that the disassembler will see the
15658         mode change.
15659
15660 Thu Aug  5 17:37:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
15661
15662         * libc/reent/reent.tex: Updated list of reentrant functions.
15663
15664 1999-07-09  Michael Meissner  <meissner@cygnus.com>
15665
15666         * libc/include/stdlib.h (_findenv{,_r}): Add prototypes.
15667
15668 Tue Jul  6 10:46:24 1999  Jeff Johnston <jjohnstn@cygnus.com>
15669
15670         * libc/stdio/sprintf.c: Moved snprintf and _snprintf_r to
15671         separate file.
15672         * libc/stdio/snprintf.c: New file.
15673         * libc/stdio/vsprintf.c: Moved vsnprintf and _vsnprintf_r to
15674         separate file.
15675         * libc/stdio/vsnprintf.c: New file.
15676         * libc/stdio/Makefile.am: Added snprintf.c and vsnprintf.c.
15677         * libc/stdio/Makefile.in: Regenerated.
15678
15679 Mon Jul  5 14:43:24 1999  Christopher Faylor <cgf@cygnus.com>
15680
15681         Patch submitted by Egor Duda <deo@logos-m.ru>:
15682         * libc/include/stdio.h: Add declarations for *nprintf.
15683         * libc/stdio/sprintf.c (snprintf): New function.
15684         (_snprintf_r): New function.
15685         * libc/stdio/vsprintf.c (vsnprintf): New function.
15686         (_vnsprintf_r): New function.
15687
15688 Wed Jun 30 16:36:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15689
15690         * libc/Makefile.am (stmp-targetdep): Remove extraneous blank.
15691         * libm/Makefile.am (stmp-targetdep): Ditto.
15692         * libc/Makefile.in: Regenerated.
15693         * libm/Makefile.in: Ditto.
15694
15695 Fri Jun 25 10:49:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15696
15697         * libc/Makefile.am (stmp-targetdep): Ignore "." in SUBDIRS.
15698         * libm/Makefile.am (stmp-targetdep): Ditto.
15699         * libc/Makefile.in: Regenerated.
15700         * libm/Makefile.in: Ditto.
15701
15702 Thu June 03 16:25:00 1999  Jeff Johnston <jjohnstn@cygnus.com>
15703
15704         * Makefile.am: Removed dependencies on all-recursive and added "."
15705         to the SUBDIRS list to prevent infinite recursion from occurring.
15706         Also removed any references to EXTRA_DATA.
15707         * libc/Makefile.am: Ditto.
15708         * libc/machine/Makefile.am: Ditto.
15709         * libc/machine/i386/Makefile.am: Ditto.
15710         * libm/Makefile.am: Ditto.
15711         * libc/sys/Makefile.am: Ditto.
15712         * Makefile.in: Regenerated.
15713         * aclocal.m4: Ditto.
15714         * configure: Ditto.
15715         * doc/Makefile.in: Ditto.
15716         * doc/aclocal.m4: Ditto.
15717         * doc/configure: Ditto.
15718         * libc/Makefile.in: Ditto.
15719         * libc/aclocal.m4: Ditto.
15720         * libc/configure: Ditto.
15721         * libc/machine/Makefile.in: Ditto.
15722         * libc/machine/aclocal.m4: Ditto.
15723         * libc/machine/configure: Ditto.
15724         * libc/machine/mn10300/Makefile.in: Ditto.
15725         * libc/machine/mn10300/aclocal.m4: Ditto.
15726         * libc/machine/mn10300/configure: Ditto.
15727         * libc/sys/Makefile.in: Ditto.
15728         * libc/sys/aclocal.m4: Ditto.
15729         * libc/sys/configure: Ditto.
15730         * libm/Makefile.in: Ditto.
15731         * libm/aclocal.m4: Ditto.
15732         * libm/configure: Ditto.
15733
15734 Thu June 03 16:20:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
15735
15736         * libc/include/stdlib/stdlib.tex: Add link to env_lock.
15737
15738 Fri May 28 17:09:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
15739
15740         * libc/include/stdlib.h: Add reentrant routines.
15741         * libc/stdlib/Makefile.am: Add reentrant routines.
15742         * libc/stdlib/Makefile.in: Ditto.
15743         * libc/stdlib/envlock.c: New file.
15744         * libc/stdlib/envlock.h: New file.
15745         * libc/stdlib/getenv.c: Modify to call reentrant routine.
15746         * libc/stdlib/getenv_r.c: New file.
15747         * libc/stdlib/mblen.c: Modify to call reentrant routine.
15748         * libc/stdlib/mblen_r.c: New file.
15749         * libc/stdlib/setenv.c: Modify to call reentrant routine.
15750         * libc/stdlib/setenv_r.c: New file.
15751         * libc/stdlib/stdlib.tex: Add reentrant routines.
15752
15753 Mon May 17 22:01:38 1999  Christopher Faylor <cgf@cygnus.com>
15754
15755         * libc/include/sys/types.h: Define __MS_types__ whenever
15756         cygwin or win32.
15757
15758 Sun May 16 16:02:41 1999  Christopher Faylor <cgf@cygnus.com>
15759
15760         * libc/include/machine/ieeefp.h: Always default to little
15761         endian if Windows, regardless of architecture.
15762         * libc/include/machine/sethmp.h: Define JBLEN if CYGWIN
15763         regardless of architecture.
15764
15765 Mon May  3 11:49:18 1999  Geoffrey Noer  <noer@cygnus.com>
15766
15767         * libc/include/machine/setjmp.h: Accept CYGWIN define, even if
15768         _WIN32 isn't defined.
15769
15770 Mon May  3 11:41:51 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15771
15772         * libm/common/s_rint.c (rint): Add volatile qualifier for
15773         intermediate value w.
15774         * libm/common/sf_rint.c (rintf): Ditto.
15775
15776 Thu Apr 29 20:34:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15777
15778         * libc/sys/arm/syscalls.c (remap_handle): Added check to
15779         ensure that std streams are initialized before being referenced.
15780
15781 1999-04-27  Jason Molenda  (jsm@bugshack.cygnus.com)
15782
15783         * README: Update reference to newlib@cygnus.com new
15784         newlib@sourceware.cygnus.com address.
15785
15786 Mon Apr 26 18:17:33 1999  Geoffrey Noer  <noer@cygnus.com>
15787
15788         * libc/include/sys/types.h: Define MS_types if CYGWIN is defined.
15789         * libc/include/sys/fcntl.h: Define _O_BINARY et al if CYGWIN is
15790         defined, even if _WIN32 isn't defined.
15791
15792 Sat Apr 24 19:59:55 1999  Christopher Faylor <cgf@cygnus.com>
15793
15794         * libc/include/sys/fcntl.h: Correct _O_CREATE to _O_CREAT.
15795
15796 Wed Apr 21 18:01:00 1999  Ranjith Kumaran  <ranjith@cygnus.com>
15797
15798         * libc/include/sys/reent.h: Change Long and ULong to __Long and
15799         __ULong.
15800         * libc/stdlib/dtoa.c: Ditto.
15801         * libc/stdlib/mprec.c: Ditto.
15802         * libc/stdlib/mprec.h: Ditto.
15803         * libc/stdlib/strtod.c: Ditto.
15804
15805 1999-04-21  Nick Clifton  <nickc@cygnus.com>
15806
15807         * configure.host (mcore): Remove mcore machine directory.
15808
15809 1999-04-18  Nick Clifton  <nickc@cygnus.com>
15810
15811         * libc/include/machine/ieeefp.h: Add support for mcore target.
15812         * libc/include/machine/setjmp.h: Add support for mcore target.
15813         * configure.host: Add support for mcore target.
15814
15815 1999-04-13  Mark Salter  <msalter@cygnus.com>
15816
15817         * libc/sys/arm/libcfunc.c: Moved isatty to syscall.c
15818         * libc/sys/arm/syscalls.c: Added isatty.
15819
15820 Wed Apr 07 16:06:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15821
15822         * libc/stdlib/ecvtbuf.c (fcvtbuf): Fixed code to properly
15823         insert zeroes after significant digits.
15824
15825 Wed Mar 17 22:06:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15826
15827         * libc/stdio/vfprintf.c (cvt): Changed floating point
15828         cvt routine to use union used by dtoa to properly determine
15829         if the sign bit is on or not.
15830         * libc/stdio/vfieeefp.h: New file
15831
15832 Wed Mar 17 17:35:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15833
15834         * aclocal.m4: Regenerated.
15835         * configure: Regenerated.
15836
15837 Wed Mar 17 16:35:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15838
15839         * libc/machine/i386/Makefile.am (lib_a_SOURCES): Added missing
15840         f_tanf reference.
15841         * libc/machine/i386/Makefile.in: Regenerated.
15842
15843 Tue Mar 16 14:56:36 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15844
15845         * acinclude.m4: Changed to work with new automake.
15846         * configure: Regenerated.
15847         * libc/machine/i386/aclocal.m4: Regenerated.
15848         * libc/machine/i386/configure: Regenerated.
15849
15850 Tue Mar 16 13:55:36 1999  Corinna Vinschen  <corinna.vinschen@cityweb.de>
15851
15852         * libc/sys/cygwin/sys/dirent.h: Add additional prototypes
15853         for telldir() and seekdir().  Rename unused structure element
15854         for use with these two routines.
15855
15856 Fri Mar 12 19:11:58 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15857
15858         * libc/time/mktime.c (validate_structure): Multiple fixes to
15859         code to handle cases where input fields are outside valid ranges.
15860         * libc/stdlib/div.c (div): Modified invalid rounding check.
15861         * libc/stdlib/ldiv.c (ldiv): Ditto.
15862
15863 Thu Mar 11 21:32:13 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15864
15865         * libc/machine/i386/memcpy.S: Performance rewrite.
15866         * libc/machine/i386/memmove.S: Ditto.
15867         * libc/machine/i386/i386mach.h: Added more register definitions.
15868         * libc/include/math.h: Include <machine/fastmath.h> if -ffast-math
15869         option used.
15870         * libc/include/machine/fastmath.h: Add definitions for x86
15871         fast-math routines.
15872
15873 Wed Mar 10 17:56:00 1999 Ranjith Kumaran  <ranjith@cygnus.com>
15874
15875         * libc/stdlib/strtod.c: Change from unsigned long to ULong.
15876
15877 Tue Mar  9 14:31:58 1999  Geoffrey Noer  <noer@cygnus.com>
15878
15879         Adjust newlib headers for new Cygwin Win32 API header files:
15880         * libc/include/sys/time.h: Check _WINSOCK_H rather than
15881         _GNU_H_WINDOWS32_SOCKETS.
15882         * libc/include/sys/types.h: Ditto.
15883
15884 Tue Mar 09 15:55:00 1999 Ranjith Kumaran  <ranjith@cygnus.com>
15885
15886         *include/sys/reent.h: Add checks for size of Bigint element Long.
15887         *libc/dtoa.c: Change routines to use generic Long type.
15888         *libc/mprec.c: Change routines to use generic Long type.
15889         *libc/mprec.h: Change routines to use generic Long type.
15890
15891 Tue Mar 02 18:07:49 1999 Ranjith Kumaran  <ranjith@cygnus.com>
15892
15893         * libc/Makefile.am: Add .def files.
15894         * libc/Makefile.in: Regenerate.
15895         * libc/e_acosh.c: Documentation update.
15896         * libc/e_atanh.c: Documentation update.
15897         * libc/e_hypot.c: Documentation update.
15898         * libc/e_remainder.c: Documentation update.
15899         * libc/er_lgamma.c: Documentation update.
15900         * libc/mathfp.tex: Documentation update.
15901         * libc/s_acos.c: Documentation update.
15902         * libc/s_atan.c: Documentation update.
15903         * libc/s_atan2.c: Documentation update.
15904         * libc/s_cosh.c: Documentation update.
15905         * libc/s_fmod.c: Documentation update.
15906         * libc/s_isnan.c: Documentation update.
15907         * libc/s_log10.c: Documentation update.
15908         * libc/s_pow.c: Documentation update.
15909         * libc/w_jn.c: Documentation update.
15910
15911 Sun Feb 28 23:18:49 1999  Geoffrey Noer  <noer@cygnus.com>
15912
15913         * aclocal.m4: Regenerate.
15914         * configure: Regenerate.
15915
15916 Tue Feb 23 13:57:26 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15917
15918         * libc/machine/mn10300/setjmp.S (_longjmp): Fixed longjmp
15919         to return 1 if user specified return code is 0.
15920         * libc/machine/mn10200/setjmp.S (_longjmp): Ditto.
15921
15922 Thu Feb 18 11:13:28 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15923
15924         * libc/machine/mn10200/setjmp.S (_setjmp/_longjmp): Fixed setjmp
15925         to save the return address.  Fixed longjmp to return to the original
15926         calling address of setjmp and to return the user specified return code
15927         rather than default to 1.
15928         * libc/machine/mn10300/setjmp.S (_setjmp/_longjmp): Ditto.
15929
15930 Mon Feb 15 17:48:17 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15931
15932         * libc/stdlib/mprec.h (mult): Define mult to be _multiply instead of _mult.
15933
15934 1999-02-10  Nick Clifton  <nickc@cygnus.com>
15935
15936         * libc/sys/arm/syscalls.c (initialise_monitor_handles): Make block
15937         volatile so that its assignments will not be discarded.
15938
15939 Wed Feb 10 17:19:40 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15940
15941         * libc/include/_ansi.h: Corrected _STRICT_ANSI reference to
15942         be __STRICT_ANSI__ which is generated by compiler.
15943         * libc/include/ctype.h: Ditto.
15944         * libc/include/math.h: Ditto.
15945         * libc/include/stdio.h: Ditto.
15946         * libc/include/stdlib.h: Ditto.
15947         * libc/include/string.h: Ditto.
15948         * libc/include/sys/signal.h: Ditto.
15949
15950 1999-02-08  Nick Clifton  <nickc@cygnus.com>
15951
15952         * configure.host: Add support for StrongARM target.
15953
15954 Fri Feb  5 11:13:14 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15955
15956         * libc/string/strncpy.c (strncpy): Removed redundant code
15957         that was copying bytes if data unaligned.
15958
15959 1999-02-02  Brendan Kehoe  <brendan@cygnus.com>
15960
15961         * libc/stdlib/Makefile.{am,in} (CHEWOUT_FILES): Add mblen.def,
15962         mbstowcs.def, and wcstombs.def.
15963
15964 Sat Jan 30 02:36:33 1999  Christopher Faylor <cgf@cygnus.com>
15965
15966         * libc/include/sys/errno.h: Add Cygwin errno.
15967         * libc/stdio/flags.c: Don't default to O_TEXT if no other flag
15968         is specified.
15969
15970 1999-01-29  Nick Clifton  <nickc@cygnus.com>
15971
15972         * libc/sys/arm/syscalls.c: Move C library functions into seperate
15973         file.
15974
15975         * libc/sys/arm/libcfunc.c: New file containing C library functions
15976         from syscalls.c
15977
15978         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add libcfuncs.c
15979         * libc/sys/arm/Makefile.in (lib_a_SOURCES): Regenerate.
15980
15981
15982 1999-01-27  Michael Meissner  <meissner@cygnus.com>
15983
15984         * libc/include/machine/setjmp.h (D30V _JBLEN/_JBTYPE): Use double
15985         type, and cut size in half so that the jmp_buf array is guaranteed
15986         to be aligned on a 64-bit boundary.
15987
15988 Mon Jan 25 12:05:38 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15989
15990         * libc/string/strings.tex: Added information about
15991         strcasecmp and strncasecmp.
15992         * libc/stdlib/stdlib.tex: Added missing information
15993         about mblen, mbstowcs, and wcstombs.
15994         * libc/string/strchr.c: Changed how mask is built to use
15995         shift operators so register will be used instead of storage.
15996
15997 1999-01-22  DJ Delorie  <dj@cygnus.com>
15998
15999         * libc/include/stdlib.h: don't use dllimport if we're building
16000         newlib, since it's inside cygwin.dll
16001
16002 Fri Jan 22 14:57:18 1999  Christopher Faylor <cgf@cygnus.com>
16003
16004         * libc/ctype/ctype_.c: Need to use __declspec(dllexport) for
16005         _ctype_ under cygwin.
16006
16007 Fri Jan 22 09:50:19 1999  Christopher Faylor <cgf@cygnus.com>
16008
16009         * include/stdlib.h: Fix typo from previous checkin.
16010
16011 Thu Jan 21 22:42:21 1999  Christopher Faylor <cgf@cygnus.com>
16012
16013         * include/ctype.h: Use __declspec(dllimport) method for exporting
16014         variable from cygwin DLL.
16015         * include/time.h: Ditto.
16016         * sys/errno.h: Ditto.
16017         * include/stdlib.h: Export __mb_cur_max from cygwin DLL.
16018         * libc/locale/locale.c: Use __declspec(dllexport) method for
16019         exporting variable from cygwin DLL.
16020
16021 Sat Jan 16 13:29:54 1999  Christopher Faylor <cgf@cygnus.com>
16022
16023         * libc/stdio/setvbuf.c: Always clean up when _IONBF or possible
16024         access of bogus pointer will result in SIGSEGV.
16025
16026 1999-01-07  Nick Clifton  <nickc@cygnus.com>
16027
16028         * libc/sys/arm/setjmp.S: Use C macros to cope with the possibility
16029         of an underscore prefix to function names.
16030
16031 Fri Jan  8 19:00:07 1999  Jeff Johnston  <jjohnstn@cygnus.com>
16032
16033         * libc/machine/i386/i386mach.h (__REG_PREFIX__): Create new
16034         define __REG_PREFIX__ instead of using __REGISTER_PREFIX__.
16035
16036 1998-12-31  Michael Meissner  <meissner@cygnus.com>
16037
16038         * libc/machine/i386/i386mach.h (__REGISTER_PREFIX__): Only define
16039         to `%' if not already defined.
16040
16041 1998-12-30  Michael Meissner  <meissner@cygnus.com>
16042
16043         * libc/stdio/tmpnam.c (_tempnam_r): Make directory and prefix
16044         arguments const char *, not char *.
16045         * libc/include/stdio.h (_tempnam_r): Ditto.
16046
16047         * libc/include/sys/reent.h (struct _reent): The _sig_func type
16048         points to a function taking an integer, not void.
16049
16050 Tue Dec 29 14:35:53 1998  Christopher Faylor <cgf@cygnus.com>
16051
16052         * configure.host: Add a define for Cygwin builds.
16053         * libc/include/ctype.h: Don't use dll imported variables in newlib.
16054
16055 Mon Dec 28 09:19:56 1998  Christopher Faylor <cgf@cygnus.com>
16056
16057         * libc/include/ctype.h: Define _ctype_ as dll imported variable
16058         for use with Cygwin.
16059         * libc/include/sys/errno.h: Define _sys_errlist and _sys_nerr as
16060         dll imported variables for use with Cygwin.
16061         * libc/ctype/ctype_.c: Undefine _ctype_ in case it has been defined
16062         as a dll imported variable for Cygwin.
16063
16064 Sat Dec 26 00:13:53 1998  Christopher Faylor <cgf@cygnus.com>
16065
16066         * libc/include/sys/unistd.h: Add proto for getpass.
16067
16068 Fri Dec 18 19:28:19 1998  Geoffrey Noer  <noer@cygnus.com>
16069
16070         * libc/sys/cygwin/sys/dirent.h: add protos for scandir and
16071         alphasort.
16072
16073 Fri Dec 18 16:33:25 1998  Geoffrey Noer  <noer@cygnus.com>
16074
16075         * libc/posix/execvp.c (execvp): call cygwin_posix_path_list_p,
16076         not posix_path_list_p.
16077
16078 1998-12-15  Nick Clifton  <nickc@cygnus.com>
16079
16080         * libc/string/memchr.c: Treat 'c' argument as an unsigned byte not
16081         a signed int.
16082
16083 1998-12-13  Nick Clifton  <nickc@cygnus.com>
16084
16085         * libc/include/machine/setjmp.h (_JBLEN): Set to 10.
16086
16087 1998-12-12  Nick Clifton  <nickc@cygnus.com>
16088
16089         * libc/machine/fr30/setjmp.S: New file, supplied by Mark Slater
16090         <msalter@cygnus.com>
16091         * libc/machine/fr30/Makefile.am: Add build of setjmp.S
16092         * libc/machine/fr30/Makefile.in: Regenerated.
16093
16094 1998-12-11  Nick Clifton  <nickc@cygnus.com>
16095
16096         * configure.host: Remove use of libc/sys for FR30 port.
16097         * libc/sys/fr30: Remove directory (replaced by libgloss).
16098
16099 1998-12-10  Ken Raeburn  <raeburn@cygnus.com>
16100
16101         * libc/string/strcat.c (ALIGNED): Sense of result was reversed.
16102         * libc/string/strncat.c (ALIGNED): Ditto.
16103
16104 Wed Dec  9 14:37:57 1998  Geoffrey Noer  <noer@cygnus.com>
16105
16106         * libc/include/sys/time.h: include sys/types.h
16107
16108 Tue Dec  8 15:53:18 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16109
16110         * libc/machine/i386/memcmp.S (memcmp): Fix for unequal
16111         comparison found when checking word at a time.
16112
16113 1998-12-04  Nick Clifton  <nickc@cygnus.com>
16114
16115         * libc/sys/fr30/crt0.s (_start): Initialise frame pointer.
16116
16117 1998-12-03  Nick Clifton  <nickc@cygnus.com>
16118
16119         * libc/sys/fr30/syscalls.c (_times): New function stub.
16120
16121 Thu Dec  3 15:59:19 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16122
16123         * configure.host (mach_add_setjmp): Replaced mach_add_objs
16124         with mach_add_setjmp flag which indicates if setjmp should
16125         be added to the machine directory objects.
16126         * acinclude.m4: Removed reference to mach_add_objs.
16127         * aclocal.m4: Regenerated.
16128         * Makefile.in: Regenerated.
16129         * configure: Regenerated.
16130         * libc/aclocal.m4: Regenerated.
16131         * libc/Makefile.in: Regenerated.
16132         * libc/configure: Regenerated.
16133         * libc/machine/aclocal.m4: Regenerated.
16134         * libc/machine/Makefile.in: Regenerated.
16135         * libc/machine/configure: Regenerated.
16136         * libc/machine/i386/aclocal.m4: Regenerated.
16137         * libc/machine/i386/Makefile.am: Altered to selectively add
16138         setjmp.S to the src files list.
16139         * libc/machine/i386/Makefile.in: Regenerated.
16140         * libc/machine/i386/configure.in: Altered to test mach_add_setjmp.
16141         * libc/machine/i386/configure: Regenerated.
16142
16143 1998-12-02  Nick Clifton  <nickc@cygnus.com>
16144
16145         * libc/sys/fr30/crt0.s (_start): Fix function names.
16146
16147         * libc/machine/fr30: New directory
16148         * libc/machine/fr30/Makefile.am: New file.
16149         * libc/machine/fr30/Makefile.in: New generated file.
16150         * libc/machine/fr30/configure.in: New file.
16151         * libc/machine/fr30/configure: New generated file.
16152         * libc/machine/fr30/aclocal.m4: New generated file.
16153         * libc/sys/fr30/Makefile.am: New file.
16154         * libc/sys/fr30/Makefile.in: New generated file.
16155         * libc/sys/fr30/configure.in: New file.
16156         * libc/sys/fr30/configure: New generated file.
16157         * libc/sys/fr30/syscalls.c: New file.
16158
16159 Tue Dec  1 16:28:56 1998  Geoffrey Noer  <noer@cygnus.com>
16160
16161         * libc/sys/cygwin/sys/utmp.h: new file, moved from winsup/include.
16162
16163 1998-12-01  Ken Raeburn  <raeburn@cygnus.com>
16164
16165         * libc/time/strftime.c (strftime): Also handle %y for years before
16166         1900.
16167
16168 Tue Dec  1 13:26:07 1998  Christopher Faylor <cgf@cygnus.com>
16169
16170         * libc/string/strcasecmp.c (strcasecmp): Adhere to standard
16171         UNIX convention.  Perform tolower on characters before comparing
16172         them rather than use toupper.
16173         * libc/string/strncasecmp.c (strncasecmp): Ditto.
16174
16175 Mon Nov 30 16:24:19 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16176
16177         * configure.host: Added using i386 machine directory
16178         for all x86 cross-compiler and configuring
16179         which added object files to use via new "mach_add_objs" variable.
16180         * configure: Regenerated.
16181         * libc/configure: Regenerated.
16182         * libc/Makefile.in: Regenerated.
16183         * libc/aclocal.m4: Regenerated.
16184         * libc/ctype/Makefile.in: Regenerated.
16185         * libc/errno/Makefile.in: Regenerated.
16186         * libc/locale/Makefile.in: Regenerated.
16187         * libc/machine/Makefile.in: Regenerated.
16188         * libc/machine/aclocal.m4: Regenerated.
16189         * libc/machine/configure: Regenerated.
16190         * libc/posix/Makefile.in: Regenerated.
16191         * libc/reent/Makefile.in: Regenerated.
16192         * libc/signal/Makefile.in: Regenerated.
16193         * libc/stdio/Makefile.in: Regenerated.
16194         * libc/stdlib/Makefile.in: Regenerated.
16195         * libc/string/Makefile.in: Regenerated.
16196         * libc/string/memmove.c: Optimized code to use memcpy
16197         logic when performing a non-destructive copy.
16198         * libc/string/strncmp.c: Altered code to allow building
16199         optimized for size or speed.
16200         * libc/syscalls/Makefile.in: Regenerated.
16201         * libc/time/Makefile.in: Regenerated.
16202         * libc/unix/Makefile.in: Regenerated.
16203         * libc/machine/i386/Makefile.am: Added new files and reference
16204         to "mach_add_objs" to indicate optional object files.
16205         * libc/machine/i386/Makefile.in: Regenerated.
16206         * libc/machine/i386/aclocal.m4: Regenerated.
16207         * libc/machine/i386/configure: Regenerated.
16208         * libc/machine/i386/memchr.S: New file that implements
16209         function in Intel assembler.
16210         * libc/machine/i386/memcmp.S: ditto.
16211         * libc/machine/i386/memcpy.S: ditto.
16212         * libc/machine/i386/memmove.S: ditto.
16213         * libc/machine/i386/memset.S: ditto.
16214         * libc/machine/i386/strchr.S: ditto.
16215         * libc/machine/i386/strlen.S: ditto.
16216         * libc/machine/i386/f_atan2.S: New file that implements
16217         fast version of math function to be used by compiler when
16218         --ffast_math compile option is used.
16219         * libc/machine/i386/f_atan2f.S: ditto.
16220         * libc/machine/i386/f_exp.c: ditto.
16221         * libc/machine/i386/f_expf.c: ditto.
16222         * libc/machine/i386/f_frexp.S: ditto.
16223         * libc/machine/i386/f_frexpf.S: ditto.
16224         * libc/machine/i386/f_ldexp.S: ditto.
16225         * libc/machine/i386/f_ldexpf.S: ditto.
16226         * libc/machine/i386/f_log.S: ditto.
16227         * libc/machine/i386/f_logf.S: ditto.
16228         * libc/machine/i386/f_log10.S: ditto.
16229         * libc/machine/i386/f_log10f.S: ditto.
16230         * libc/machine/i386/f_math.h: New file.
16231         * libc/machine/i386/f_pow.c: ditto.
16232         * libc/machine/i386/f_powf.S: ditto.
16233         * libc/machine/i386/f_tan.S: ditto.
16234         * libc/machine/i386/f_tan.S: ditto.
16235         * libc/machine/i386/i386mach.h: New file.
16236
16237 Mon Nov 30 13:02:17 1998  Christopher Faylor <cgf@cygnus.com>
16238
16239         patch from Mumit Khan <khan@xraylith.wisc.edu>
16240         * libc/include/stdio.h (tempnam): Add prototype.
16241         * libc/stdio/tmpnam.c (_tempnam_r): Handle NULL prefix.
16242         (tempnam): Adhere to prototype.
16243
16244 Thu Nov 26 00:21:32 1998  Christopher Faylor <cgf@cygnus.com>
16245
16246         * Makefile.am: Add default for AR_FLAGS.
16247         * Makefile.in: Regenerate.
16248
16249 Tue Nov 24 18:48:56 1998  Geoffrey Noer  <noer@cygnus.com>
16250
16251         * libc/include/time.h: move __cplusplus wrapper after includes
16252         * libc/include/sys/time.h: ditto.  If Cygwin, include
16253         sys/select.h.
16254         * libc/include/sys/types.h: lose "32" in comment about Cygwin.
16255
16256 1998-11-23  Ken Raeburn  <raeburn@cygnus.com>
16257
16258         * libc/time/strftime.c (strftime): Handle %y after year 2000.
16259
16260 Wed Nov 18 12:22:41 1998  Nick Clifton  <nickc@cygnus.com>
16261
16262         * libc/sys/fr30/crt0.s (_start): Switch over to using int #9 as
16263         abnormnal end-of-crt0 marker.
16264
16265 Tue Nov 17 16:27:58 1998  Nick Clifton  <nickc@cygnus.com>
16266
16267         * libc/sys/fr30/crt0.s: New file/directory.
16268         * libc/include/machine/setjmp.h: Add FR30 target.
16269         * libc/include/machine/ieeefp.h: Add FR30 target.
16270         * configure.host: Add FR30 target.
16271
16272 Mon Nov  16 23:15:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
16273
16274         * libm/math: Files that are duplicated in common directory removed.
16275         * libm/math/fdlibm.h: Removed.
16276         * libm/math/s_cbrt.c: Removed.
16277         * libm/math/s_copysign.c: Removed.
16278         * libm/math/s_expm1.c: Removed.
16279         * libm/math/s_finite.c: Removed.
16280         * libm/math/s_ilogb.c: Removed.
16281         * libm/math/s_infinity.c: Removed.
16282         * libm/math/s_lib_ver.c: Removed.
16283         * libm/math/s_log1p.c: Removed.
16284         * libm/math/s_logb.c: Removed.
16285         * libm/math/s_matherr.c: Removed.
16286         * libm/math/s_modf.c: Removed.
16287         * libm/math/s_nan.c: Removed.
16288         * libm/math/s_nextafter.c: Removed.
16289         * libm/math/s_rint.c: Removed.
16290         * libm/math/s_scalbn.c: Removed.
16291         * libm/math/sf_cbrt.c: Removed.
16292         * libm/math/sf_copysign.c: Removed.
16293         * libm/math/sf_expm1.c: Removed.
16294         * libm/math/sf_finite.c: Removed.
16295         * libm/math/sf_ilogb.c: Removed.
16296         * libm/math/sf_infinity.c: Removed.
16297         * libm/math/sf_log1p.c: Removed.
16298         * libm/math/sf_logb.c: Removed.
16299         * libm/math/sf_modf.c: Removed.
16300         * libm/math/sf_nan.c: Removed.
16301         * libm/math/sf_nextafter.c: Removed.
16302         * libm/math/sf_rint.c: Removed.
16303         * libm/math/sf_scalbn.c: Removed.
16304         * libm/math/Makefile.am: Removed references to deleted files (above).
16305         * libm/math/Makefile.in: Regenerated.
16306         * libm/Makefile.am: Added common directory to math.
16307         * libm/Makefile.in: Regenerated.
16308
16309 Mon Nov  2 23:12:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
16310
16311         * libm/mathfp: Add non-ANSI functions.
16312         * libm/mathfp/e_acosh.c acosh(): New file.
16313         * libm/mathfp/e_atanh.c atanh(): New file.
16314         * libm/mathfp/e_hypot.c hypot(): New file.
16315         * libm/mathfp/e_j0.c j0(): New file.
16316         * libm/mathfp/e_j1.c j1(): New file.
16317         * libm/mathfp/e_remainder.c remainder(): New file.
16318         * libm/mathfp/e_scalb.c scalb(): New file.
16319         * libm/mathfp/ef_acosh.c acoshf(): New file.
16320         * libm/mathfp/ef_atanh.c atanhf(): New file.
16321         * libm/mathfp/ef_hypot.c hypotf(): New file.
16322         * libm/mathfp/ef_j0.c j0f(): New file.
16323         * libm/mathfp/ef_j1.c j1f(): New file.
16324         * libm/mathfp/ef_remainder.c remainderf(): New file.
16325         * libm/mathfp/ef_scalb.c scalbf(): New file.
16326         * libm/mathfp/er_gamma.c gamma_r: New file.
16327         * libm/mathfp/er_lgamma.c lgamma_r(): New file.
16328         * libm/mathfp/erf_gamma.c gamma_rf(): New file.
16329         * libm/mathfp/erf_lgamma.c lgamma_rf(): New file.
16330         * libm/mathfp/w_cabs.c cabs(): New file.
16331         * libm/mathfp/w_drem.c drem(): New file.
16332         * libm/mathfp/w_jn.c jn(): New file.
16333         * libm/mathfp/wf_cabs.c cabsf(): New file.
16334         * libm/mathfp/wf_drem.c dremf(): New file.
16335         * libm/mathfp/wf_jn.c jnf(): New file.
16336
16337 Mon Nov  2 16:43:18 1998  Geoffrey Noer  <noer@cygnus.com>
16338
16339         * libc/sys/cygwin32: remove directory and contents
16340         * libc/sys/cygwin: and add back, losing the "32".
16341         * configure.host: check for cygwin* instead of cygwin32.
16342         * acinclude.m4: ditto.
16343         * aclocal.m4: regenerate with aclocal
16344         * configure: regenerate with autoconf
16345
16346 Tue Oct 20 17:28:28 1998  Geoffrey Noer  <noer@cygnus.com>
16347
16348         * libc/stdio/tmpnam.c (_tempnam_r): not enough memory allocated
16349         for length
16350
16351 Tue Oct 20 18:49:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16352
16353         * libc/include/sys/reent.h (struct _reent): Added variables _rand_next, _strtok_last,
16354         _asctime_buf, _localtime_buf and _gamma_signgam to struct reent
16355         to make rand/srand, strtok, asctime, localtime, w_gamma,
16356         w_lgamma, wf_gamma, and wf_lgamma reentrant.  Included
16357         time.h to bring in struct tm definition.
16358         * libc/stdlib/rand.c (rand, srand): Don't emit functions 'rand' and 'srand' if
16359         '_REENT_ONLY' is set. Used variable '_rand_next' from struct reent.
16360         * libc/stdlib/strtok.c (strtok): Used variable '_strtok_last' from struct reent
16361         instead of static variable.
16362         * libc/stdlib/asctime.c (asctime): Used variable '_asctime_buf' from
16363         struct reent instead of static variable.
16364         * libc/stdlib/lcltime.c (localtime): Used variable '_localtime_buf' from
16365         struct reent instead of static variable.
16366         * libm/math/Makefile.am: Removed s_signgam.o.
16367         * libm/math/Makefile.in: Regenerated.
16368         * libm/math/w_gamma.c (gamma): Used variable '_gamma_signgam' from
16369         struct reent instead of global variable 'signgam'.
16370         * libm/math/w_lgamma.c (lgamma): Likewise.
16371         * libm/math/wf_gamma.c (gammaf): Likewise.
16372         * libm/math/wf_lgamma.c (lgammaf): Likewise.
16373         * libm/math/s_signgam.c: Removed.
16374         * libc/include/unctrl.h: Defined arrays __unctrl and __unctrllen
16375         to be const.
16376         * libc/misc/unctrl.c: Defined arrays __unctrl and __unctrllen
16377         to be const.
16378         * libc/reent/Makefile.am: Added dependence for impure.o on impure.c and
16379         libc/include/reent.h.
16380         * libc/reent/Makefile.in: Regenerated.
16381         * libc/stdio/vfprintf.c (_vfprintf_r): Defined arrays 'blanks' and 'zeroes'
16382         to be const.
16383         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Defined arrays 'JIS_state_table' and
16384         'JIS_action_table' to be const.
16385         * libm/math/s_lib_ver.c: define variable _LIB_VERSION to be const.
16386
16387 Mon Oct 12 00:26:33 1998  Christopher Faylor <cgf@cygnus.com>
16388
16389         * acinclude.m4:  $with_target_subdir should default to '.'
16390         or confusion results when configuring in same directory as sources.
16391         * Regenerate all aclocal.m4 and configure files.
16392
16393 Fri Oct  9 16:27:36 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16394
16395         * libc/stdlib/mallocr.c: Added 16 byte alignment support which
16396         can be set by defining MALLOC_ALIGNMENT=16.  Also added support
16397         for platforms where sizeof(size_t) < sizeof(long) via
16398         SIZE_T_SMALLER_THAN_LONG macro.
16399
16400 Wed Oct  7 14:02:40 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16401
16402         * libc/include/time.h (CLOCKS_PER_SEC): Change CLOCKS_PER_SEC
16403         to refer to _CLOCKS_PER_SEC_ and added including <machine/time.h>
16404         which sets _CLOCKS_PER_SEC_ for selected machines.
16405         * libc/include/machine/time.h: New file.
16406
16407 Tue Oct  6 16:08:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16408
16409         * libc/syscalls/sysexecve.c: New file.
16410         * libc/syscalls/sysgettod.c: New file.
16411         * libc/syscalls/systimes.c: New file.
16412         * libc/syscalls/Makefile.am: Added new objects.
16413         * libc/syscalls/Makefile.in: Regenerated.
16414         * libc/include/_syslist.h (_execve): Moved define in file.
16415         * libc/include/reent.h:  Added _execve_r declaration.
16416         * libc/Makefile.in: Regenerated.
16417         * libc/ctype/Makefile.in: Regenerated.
16418         * libc/errno/Makefile.in: Regenerated.
16419         * libc/locale/Makefile.in: Regenerated.
16420         * libc/machine/Makefile.in: Regenerated.
16421         * libc/misc/Makefile.in: Regenerated.
16422         * libc/posix/Makefile.in: Regenerated.
16423         * libc/reent/Makefile.in: Regenerated.
16424         * libc/reent/execr.c (_execve_r): Added _execve_r function.
16425         * libc/signal/Makefile.in: Regenerated.
16426         * libc/stdio/Makefile.in: Regenerated.
16427         * libc/time/Makefile.in: Regenerated.
16428         * libc/unix/Makefile.in: Regenerated.
16429         * libm/mathfp/Makefile.in: Regenerated.
16430
16431 Tue Oct  6 14:14:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16432
16433         * libc/string/Makefile.in: Regenerated.
16434         * libc/string/memchr.c (memchr): Moved code to reduce object size.
16435         * libc/string/memcpy.c (memcpy): Ditto.
16436         * libc/string/memcmp.c (memcmp): Ditto.
16437         * libc/string/memset.c (memset): Ditto.
16438         * libc/string/strchr.c (strchr): Ditto.
16439         * libc/string/strcmp.c (strcmp): Ditto.
16440         * libc/string/strcpy.c (strcpy): Ditto.
16441         * libc/string/strlen.c (strlen): Ditto.
16442
16443 Tue Oct  6 13:58:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16444
16445         * libm/acinclude.m4: Removed since newlib/acinclude.m4 can be used
16446         to generate aclocal.m4.
16447         * libm/Makefile.in: Regenerated.
16448         * libm/aclocal.m4: Regenerated.
16449         * libm/configure: Regenerated.
16450         * libm/math/Makefile.in: Regenerated.
16451         * libm/mathfp/Makefile.in: Regenerated.
16452
16453 1998-09-25  Mark Salter  <msalter@cygnus.com>
16454
16455         * libc/include/machine/setjmp.h: Fixed test for mn10300 and mn10200
16456         by adding leading and trailing underscores to symbol names.
16457
16458 Tue Sep 22 15:33:41 1998  Christopher Faylor <cgf@cygnus.com>
16459
16460         * Makefile.in: Add default for AR_FLAGS.
16461
16462 Tue Sep 22 15:02:49 1998  Christopher Faylor <cgf@cygnus.com>
16463
16464         patch from ian@airs.com (Ian Taylor):
16465         * acinclude.m4: Run AC_CANONICAL_BUILD explicitly before
16466         NEWLIB_CONFIGURE so AC_CANONICAL_HOST will be run before it
16467         is needed for detecting the build machine.  Required for
16468         cygwin native builds.
16469
16470         * Regenerate all aclocal.m4 and configure files.
16471
16472 Mon Sep 21 14:44:16 1998  Nick Clifton  <nickc@cygnus.com>
16473
16474         * libc/sys/arm/crt0.S: Prepend a period to all local labels that
16475         used to start with LC.
16476
16477 Thu Sep 17 18:18:11 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16478
16479         * libc/machine/sh/setjmp.S (setjmp): Handle __SH4* like __SH3E__ .
16480         (longjmp): Likewise.
16481
16482 Thu Sep 17 16:25:33 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16483
16484         * libc/machine/sh/memset.S (memset): Move copy from r4 to r4 before
16485         the test for small number of bytes.
16486
16487 Thu Sep 10 11:40:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
16488
16489         * Makefile.am: Add --enable-newlib-hw-fp check.  This builds the new
16490         math library that uses floating point algorithms instead of the old
16491         libm.
16492         * Makefile.in: Regenerate with automake version 1.3b.
16493         * configure: Rebuild.
16494         * libm/Makefile.in: Regenerate with automake version 1.3b.
16495         * libm/aclocal.m4: Regenerate.
16496         * libm/configure: Rebuild.
16497         * libm/configure.in: Add newlib_hw_fp definition and mathfp directory.
16498         * libm/acinclude.m4: Define macros for configure.in.
16499         * libm/config.h.in: Generate.
16500         * libm/mathfp/Makefile.am: New file.
16501         * libm/mathfp/Makefile.in: Generate.
16502         * libm/mathfp/s_acos.c (acos): New file.
16503         * libm/mathfp/s_asin.c (asin): New file.
16504         * libm/mathfp/s_asine.c (asine): New file.
16505         * libm/mathfp/s_atan.c (atan): New file.
16506         * libm/mathfp/s_atan2.c (atan2): New file.
16507         * libm/mathfp/s_atangent.c (atangent): New file.
16508         * libm/mathfp/s_ceil.c (ceil): New file.
16509         * libm/mathfp/s_copysign.c (copysign): New file.
16510         * libm/mathfp/s_cos.c (cos): New file.
16511         * libm/mathfp/s_cosh.c (cosh): New file.
16512         * libm/mathfp/s_exp.c (exp): New file.
16513         * libm/mathfp/s_fabs.c (fabs): New file.
16514         * libm/mathfp/s_finite.c (finite): New file.
16515         * libm/mathfp/s_floor.c (floor): New file.
16516         * libm/mathfp/s_fmod.c (fmod): New file.
16517         * libm/mathfp/s_frexp.c (frexp): New file.
16518         * libm/mathfp/s_infconst.c: New file.
16519         * libm/mathfp/s_isinf (isinf).c: New file.
16520         * libm/mathfp/s_isnan.c (isnan): New file.
16521         * libm/mathfp/s_ispos.c (ispos): New file.
16522         * libm/mathfp/s_ldexp.c (ldexp): New file.
16523         * libm/mathfp/s_log.c (log): New file.
16524         * libm/mathfp/s_log10.c (log10): New file.
16525         * libm/mathfp/s_logarithm.c (logarithm): New file.
16526         * libm/mathfp/s_mathcnst.c: New file.
16527         * libm/mathfp/s_modf (modf).c: New file.
16528         * libm/mathfp/s_numtest.c (numtest): New file.
16529         * libm/mathfp/s_pow.c (pow): New file.
16530         * libm/mathfp/s_scalbn.c (scalbn): New file.
16531         * libm/mathfp/s_sin (sin).c: New file.
16532         * libm/mathfp/s_sine.c (sine): New file.
16533         * libm/mathfp/s_sineh.c (sineh): New file.
16534         * libm/mathfp/s_sinf.c (sinf): New file.
16535         * libm/mathfp/s_sinh.c (sinh): New file.
16536         * libm/mathfp/s_sqrt.c (sqrt): New file.
16537         * libm/mathfp/s_tan.c (tan): New file.
16538         * libm/mathfp/s_tanh.c (tanh): New file.
16539         * libm/mathfp/sf_acos.c (acosf): New file.
16540         * libm/mathfp/sf_asin.c (asinf): New file.
16541         * libm/mathfp/sf_asine.c (asinef): New file.
16542         * libm/mathfp/sf_atan.c (atanf): New file.
16543         * libm/mathfp/sf_atan2.c (atan2f): New file.
16544         * libm/mathfp/sf_atangent.c (atangent): New file.
16545         * libm/mathfp/sf_ceil.c (ceilf): New file.
16546         * libm/mathfp/sf_copysign.c (copysignf): New file.
16547         * libm/mathfp/sf_cos.c (cosf): New file.
16548         * libm/mathfp/sf_cosh.c (coshf): New file.
16549         * libm/mathfp/sf_exp.c (expf): New file.
16550         * libm/mathfp/sf_fabs.c (fabsf): New file.
16551         * libm/mathfp/sf_finite.c (finitef): New file.
16552         * libm/mathfp/sf_floor.c (floorf): New file.
16553         * libm/mathfp/sf_fmod.c (fmodf): New file.
16554         * libm/mathfp/sf_frexp.c (frexpf): New file.
16555         * libm/mathfp/sf_isinf.c (isinff): New file.
16556         * libm/mathfp/sf_isnan.c (isnanf): New file.
16557         * libm/mathfp/sf_ispos.c (isposf): New file.
16558         * libm/mathfp/sf_ldexp.c (ldexpf): New file.
16559         * libm/mathfp/sf_log.c (logf): New file.
16560         * libm/mathfp/sf_log10.c (log10f): New file.
16561         * libm/mathfp/sf_logarithm.c (logarithmf): New file.
16562         * libm/mathfp/sf_modf.c (modff): New file.
16563         * libm/mathfp/sf_numtest.c (numtestf): New file.
16564         * libm/mathfp/sf_pow.c (powf): New file.
16565         * libm/mathfp/sf_scalbn.c (scalbnf): New file.
16566         * libm/mathfp/sf_sin.c (sinf): New file.
16567         * libm/mathfp/sf_sine.c (sinef): New file.
16568         * libm/mathfp/sf_sineh.c (sinehf): New file.
16569         * libm/mathfp/sf_sinh.c (sinhf): New file.
16570         * libm/mathfp/sf_sqrt.c (sqrtf): New file.
16571         * libm/mathfp/sf_tan.c (tanf): New file.
16572         * libm/mathfp/sf_tanh.c (tanhf): New file.
16573         * libm/mathfp/zmath.h: New file.
16574
16575 Wed Sep  2 02:49:03 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16576
16577         * libc/machine/sh/strcmp.S (L_char_loop): Re-load r0 at loop
16578         exit if it has been overwritten by pre-fetching in delay slot.
16579
16580 1998-09-01  Michael Meissner  <meissner@cygnus.com>
16581
16582         * Makefile.am (tooldir): Add in host_alias, so that multilib
16583         libraries are installed in the directory the compiler looks in.
16584         * Makefile.in: Regenerate.
16585
16586         * libc/stdlib/Makefile.in: Regenerate with automake version 1.3b.
16587
16588 Mon Aug 31 11:39:31 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16589
16590         * libc/machine/mn10300/memcpy.S (_memcpy): Move alignment test
16591         ahead of test for number of bytes being moved.
16592
16593 Thu Aug 27 14:07:53 1998  Christopher Faylor <cgf@cygnus.com>
16594
16595         * libc/include/sys/unistd.h: Nothing special needed for
16596         _exit under cygwin.
16597
16598 Wed Aug 26 15:05:21 1998  Nick Clifton  <nickc@cygnus.com>
16599
16600         * libc/sys/arm/syscalls.c (_sbrk): Rename '_end' to 'end' to
16601         conform to user label naming conventions.
16602
16603 Mon Aug 24 14:46:19 1998  Geoffrey Noer <noer@cygnus.com>
16604
16605         * libc/sys/cygwin32/sys/utime.h: variable names in
16606         protos should start with two leading underscores
16607         * libc/include/string.h: ditto
16608         * libc/include/sys/signal.h: ditto
16609         * libc/include/sys/stat.h: ditto
16610         * libc/include/sys/time.h: ditto
16611         * libc/include/sys/unistd.h: ditto
16612         * libc/include/ctype.h: ditto
16613         * libc/include/stdlib.h: ditto
16614         * libc/include/sys/reent.h: struct _atexit function ptr takes a
16615         void, same with _sig_func.
16616
16617 Fri Aug 21 14:44:14 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16618
16619         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Added preprocessor checks
16620         for MB_CAPABLE to reduce code size when newlib is not configured
16621         with --enable-newlib-mb.
16622         * libc/stdlib/Makefile.am: Specified -fshort-enums when building
16623         mbtowc_r.o to minimize size.
16624         * libc/stdlib/Makefile.in: Rebuild.
16625
16626 Wed Aug 19 16:20:13 1998  Jim Wilson  <wilson@cygnus.com>
16627
16628         * libc/sys/sparc64/Makefile.am (.S_r.o, .c_r.o): Change -DREENTRANT
16629         to -DREENT.
16630         * libc/sys/sparc64/Makefile.in: Rebuild.
16631
16632 Tue Aug 18 22:38:29 1998  Ian Lance Taylor  <ian@cygnus.com>
16633
16634         * Makefile.am (MAKEOVERRIDES): Define.
16635         * Makefile.in: Rebuild.
16636
16637 Tue Aug 18 12:38:47 1998  Jim Wilson  <wilson@cygnus.com>
16638
16639         * libc/sys/sparc64/sys/stat.h (stat): Add const.
16640
16641 Mon Aug 17 22:27:06 1998  Ian Lance Taylor  <ian@cygnus.com>
16642
16643         * acinclude.m4 (NEWLIB_CONFIGURE): Use top_builddir in
16644         newlib_cflags when looking for targ-include.
16645         * */aclocal.m4, */configure: Rebuild.
16646
16647 Fri Jul 31 10:57:42 1998  Catherine Moore  <clm@cygnus.com>
16648
16649         * libc/sys/arm/syscalls.c (_sbrk): Change "__end__"
16650         to "_end".
16651
16652 Wed Jul 29 00:02:01 1998  Mark Alexander  <marka@cygnus.com>
16653
16654         * libc/include/sys/config.h: Define __IEEE_LITTLE_ENDIAN
16655         on SPARCs with little-endian data.
16656         * libc/include/machine/ieeefp.h: Ditto.
16657
16658 Wed Jul 22 18:00:10 1998  Ian Lance Taylor  <ian@cygnus.com>
16659
16660         * acinclude.m4: Handle a relative srcdir correctly when setting
16661         newlib_cflags.
16662         * */aclocal.m4, */configure: Rebuild.
16663
16664 Wed Jul 22 17:11:33 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16665
16666         * libm/math/wrf_lgamma.c (lgammaf_r): Initialize exc.err to 0 and
16667         also set exc.arg1, exc.arg2 appropriately in case matherr is supplied.
16668         * libm/math/wrf_gamma.c (gammaf_r): ditto
16669         * libm/math/wr_lgamma.c (lgamma_r): ditto
16670         * libm/math/wr_gamma.c (gamma_r): ditto
16671         * libm/math/wf_sqrt.c (sqrtf): ditto
16672         * libm/math/wf_sinh.c (sinhf): ditto
16673         * libm/math/wf_scalb.c (scalbf): ditto
16674         * libm/math/wf_remainder.c (remainderf): ditto
16675         * libm/math/wf_pow.c (powf): ditto
16676         * libm/math/wf_log10.c (log10f): ditto
16677         * libm/math/wf_log.c (logf): ditto
16678         * libm/math/wf_lgamma.c (lgammaf): ditto
16679         * libm/math/wf_jn.c (jnf, ynf): ditto
16680         * libm/math/wf_j1.c (j1f, y1f): ditto
16681         * libm/math/wf_j0.c (j0f, y0f): ditto
16682         * libm/math/wf_hypot.c (hypotf): ditto
16683         * libm/math/wf_gamma.c (gammaf): ditto
16684         * libm/math/wf_fmod.c (fmodf): ditto
16685         * libm/math/wf_exp.c (expf): ditto
16686         * libm/math/wf_cosh.c (coshf): ditto
16687         * libm/math/wf_atanh.c (atanhf): ditto
16688         * libm/math/wf_atan2f.c (atan2f): ditto
16689         * libm/math/wf_asin.c (asinf): ditto
16690         * libm/math/wf_acosh.c (acoshf): ditto
16691         * libm/math/wf_acos.c (acosf): ditto
16692         * libm/math/w_sqrt.c (sqrt): ditto
16693         * libm/math/w_sinh.c (sinh): ditto
16694         * libm/math/w_scalb.c (scalb): ditto
16695         * libm/math/w_remainder.c (remainder): ditto
16696         * libm/math/w_pow.c (pow): ditto
16697         * libm/math/w_log10.c (log10): ditto
16698         * libm/math/w_log.c (log): ditto
16699         * libm/math/w_lgamma.c (lgamma): ditto
16700         * libm/math/w_jn.c (jn, yn): ditto
16701         * libm/math/w_j1.c (j1, y1): ditto
16702         * libm/math/w_j0.c (j0, y0): ditto
16703         * libm/math/w_hypot.c (hypot): ditto
16704         * libm/math/w_gamma.c (gamma): ditto
16705         * libm/math/w_fmod.c (fmod): ditto
16706         * libm/math/w_exp.c (exp): ditto
16707         * libm/math/w_cosh.c (cosh): ditto
16708         * libm/math/w_atanh.c (atanh): ditto
16709         * libm/math/w_atan2f.c (atan2): ditto
16710         * libm/math/w_asin.c (asin): ditto
16711         * libm/math/w_acosh.c (acosh): ditto
16712         * libm/math/w_acos.c (acos): ditto
16713
16714 Tue Jul 21 12:34:54 1998  Ian Lance Taylor  <ian@cygnus.com>
16715
16716         * libm/math/Makefile.am (src): Add w_cabs.c and w_drem.c.
16717         (fsrc): Add wf_cabs.c and wf_drem.c.
16718         * libm/math/Makefile.in: Rebuild.
16719
16720         * Makefile.am (AM_MAKEFLAGS): Add CFLAGS_FOR_BUILD.  Remove some
16721         unused directory variables.  Remove duplicate CFLAGS.
16722         * Makefile.in: Rebuild.
16723
16724         * doc/Makefile.am ($(MKDOC)): Don't use $(CFLAGS) when building
16725         with $(CC_FOR_BUILD).
16726         (makedoc.o): Likewise.
16727         * doc/Makefile.in: Rebuild.
16728
16729         * libc/sys/cygwin32/Makefile.am (EXTRA_LIBRARIES): Define, to
16730         force a definition of COMPILE.
16731         (libfoo_a_SOURCES): Define.
16732         * libc/sys/cygwin32/Makefile.in: Rebuild.
16733         * libc/sys/tic80/Makefile.am (EXTRA_LIBRARIES): Define, to
16734         force a definition of COMPILE.
16735         (libfoo_a_SOURCES): Define.
16736         * libc/sys/tic80/Makefile.in: Rebuild.
16737
16738 Mon Jul 20 20:49:24 1998  Christopher Faylor <cgf@cygnus.com>
16739
16740         * libc/include/sys/fcntl.h: Add O_NOINHERIT, Win32-specific
16741         flag.
16742
16743 Fri Jul 17 16:13:16 1998  Ian Lance Taylor  <ian@cygnus.com>
16744
16745         * Build using autoconf and automake.  Added many Makefile.am and
16746         configure.in files, plus generated files.  Old configure.in files
16747         and all old Makefile.in files completely replaced.  Removed
16748         host/any.  Added acinclude.m4 and configure.host.
16749
16750 Sat Jul 11 18:14:49 1998  Felix Lee  <flee@cygnus.com>
16751
16752         * libc/stdio/vfprintf.c: enable long long support, sometimes.
16753         * configure.in (*-*-cygwin32): add -DWANT_PRINTF_LONG_LONG.
16754
16755 Tue Jul  7 01:51:55 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16756
16757         * libc/machine/sh/strcmp.S, libc/machine/sh/strcpy.S: New files.
16758         * libc/machine/sh/Makefile.in: Add rules for new files.
16759
16760 Tue Jul  7 01:40:55 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16761
16762         * libc/machine/sh/asm.h (SL, DELAYED_BRANCHES): Define.
16763         * libc/machine/sh/memset.S (memset): Remove uses of dt; shorten code.
16764         * libc/machine/sh/memcpy.S (SL, DELAYED_BRANCHES): Don't define.
16765
16766 Thu Jul  2 10:33:16 1998  Nick Clifton  <nickc@cygnus.com>
16767
16768         * libc/sys/arm/syscalls.c (_exit): Add comment, noting that exit
16769         code is ignored.
16770
16771 Wed Jun 24 13:56:54 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16772
16773         * libc/stdio/tmpnam.c (_tmpnam_r): Changed routine to use
16774         internal static buffer when s is NULL, as prescribed by ANSI.
16775
16776 1998-06-22  Vladimir N. Makarov  <vmakarov@cygnus.com>
16777
16778         * libc/sys/h8300hms/Makefile.in (OFILES): malloc.o has been
16779         removed.
16780         * libc/sys/h8300hms/malloc.c: has been removed.  Now malloc.c from
16781         libc/stdlib will be used for h8300hms.
16782
16783 Thu Jun 18 16:56:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16784
16785         * libc/machine/mn10300/strlen.S (_strlen): New optimized assembler
16786         version that can be built either for speed or size.
16787         * libc/machine/mn10300/memset.S (_memset): ditto
16788         * libc/machine/mn10300/memchr.S (_memchr): ditto
16789         * libc/machine/mn10300/memcpy.S (_memcpy): ditto
16790         * libc/machine/mn10300/memcmp.S (_memcmp): ditto
16791         * libc/machine/mn10300/strchr.S (_strchr): ditto
16792         * libc/machine/mn10300/strcmp.S (_strcmp): ditto
16793         * libc/machine/mn10300/strcpy.S (_strcpy): ditto
16794         * libc/machine/mn10300/Makefile.in: Added entries for
16795         memchr.o, memcmp.o, memcpy.o, memset.o, strchr.o,
16796         strcmp.o, strcpy.o, and strlen.o.
16797
16798 Wed Jun 17 12:50:26 1998  Mark Alexander  <marka@cygnus.com>
16799
16800         * configure.in: Don't use libc/sys/sysmec for MN10200; it's
16801         been replaced with libgloss/mn10200.
16802
16803 Fri Jun 12 14:34:39 1998  Michael Meissner  <meissner@cygnus.com>
16804
16805         * libc/string/strchr.c (strchr): Make s a constant pointer to
16806         avoid warning.
16807
16808 Tue Jun  9 16:29:30 1998  Jason Molenda  (crash@bugshack.cygnus.com)
16809
16810         * configure.in (target == arm* or thumb*): Define ARM_RDI_MONITOR
16811         instead of ARM_RDP_MONITOR (sys/libc/arm/crt0.S to assume Angel
16812         board SWIs instead of Demon board SWIs).
16813
16814 Thu Jun  4 12:16:46 1998  Michael Meissner  <meissner@cygnus.com>
16815
16816         * libc/string/strncat.c (strncat):  Make -Os act the same as
16817         PREFER_SIZE_OVER_SPEED being defined.
16818
16819 Wed Jun  3 17:52:33 1998  Michael Meissner  <meissner@cygnus.com>
16820
16821         * libc/string/memchr.c (memchr): Make -Os act the same as
16822         PREFER_SIZE_OVER_SPEED being defined.
16823         * libc/string/memcmp.c (memcmp): Ditto.
16824         * libc/string/memcpy.c (memcpy): Ditto.
16825         * libc/string/memset.c (memset): Ditto.
16826         * libc/string/strcat.c (strcat): Ditto.
16827         * libc/string/strchr.c (strchr): Ditto.
16828         * libc/string/strcmp.c (strcmp): Ditto.
16829         * libc/string/strcpy.c (strcpy): Ditto.
16830         * libc/string/strlen.c (strlen): Ditto.
16831         * libc/string/strncat.c (strncat): Ditto.
16832         * libc/string/strncmp.c (strncmp): Ditto.
16833         * libc/string/strncpy.c (strncpy): Ditto.
16834
16835 Mon Jun  1 15:25:07 1998  Geoffrey Noer  <noer@cygnus.com>
16836
16837         * libc/include/sys/itimer.h: remove
16838         * libc/include/sys/time.h: itimer stuff should be here
16839
16840 Mon Jun  1 16:31:29 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16841
16842         * libc/stdio/vfprintf.c (cvt): Changed code to look at sign
16843         bit instead of comparing to 0 so -0.0 can be printed correctly.
16844
16845 Sat May 30 09:33:51 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16846
16847         * libc/stdlib/mprec.c (b2d): Inilialize d in non-VAX case too.
16848
16849 Fri May 29 22:25:10 1998  Geoffrey Noer  <noer@cygnus.com>
16850
16851         * libc/include/sys/unistd.h: fix sync() proto
16852         * libc/include/sys/fcntl.h: remove _close which is already
16853         defined in unistd.h.
16854         * libc/include/sys/time.h: add getitimer proto
16855
16856 Fri May 29 16:10:28 1998  Geoffrey Noer  <noer@cygnus.com>
16857
16858         * libc/string/strchr.c: convert arg to unsigned char
16859         * libc/include/stdlib.h: add protos for random, srandom
16860         * libc/include/sys/stat.h: add lstat proto
16861         * libc/include/sys/time.h: add setitimer proto
16862         * libc/include/sys/unistd.h: add readlink, symlink protos
16863         * libc/include/process.h: instead of including windows.h and using
16864         HANDLEs in sexec protos, just use void *s.  Need to include
16865         sys/types.h.
16866
16867 Fri May 29 03:04:29 1998  Geoffrey Noer  <noer@cygnus.com>
16868
16869         * libc/include/sys/fcntl.h: add _close proto for Cygwin32
16870
16871 Thu May 28 16:34:21 1998  Geoffrey Noer  <noer@cygnus.com>
16872
16873         * libc/include/process.h: add secure exec protos
16874
16875 Wed May 27 13:54:51 1998  Jeffrey A Law  (law@cygnus.com)
16876
16877         * libc/stdlib/dtoa.c (_dtoa_r): Use "double_union" for variables
16878         which are accessed as both doubles and integers.
16879         * libc/stdlib/mprec.c (ulp, b2d, ratio): Likewise.
16880         * libc/stdlib/strtod.c (_strtod_r): Likewise.
16881         * libc/stdlib/mprec.h: Add "union double_union" and change
16882         word0/word1 macros to use it.
16883
16884 Tue May 26 18:04:21 1998  Geoffrey Noer  <noer@cygnus.com>
16885
16886         * libc/include/sys/signal.h: add __cplusplus wrapper
16887
16888 Tue May 26 15:10:22 1998  Geoffrey Noer  <noer@cygnus.com>
16889
16890         * libc/include/sys/utime.h: new generic file that gets replaced by
16891         libc/sys/SYSDIR/sys/utime.h on systems that support the utime
16892         function.
16893         * sys/cygwin32/sys/utime.h: use _EXFUN in utime proto
16894         * libc/include/time.h: remove duplicate utime proto
16895         * libc/include/utime.h: add comment
16896
16897 Sun May 24 23:56:20 1998  Christopher Faylor <cgf@cygnus.com>
16898
16899         * libc/include/sys/time.h: Add missing include to
16900         allow use of _EXFUN.  Remove times function that is
16901         already defined in times.h.
16902
16903 Sun May 24 01:32:14 1998  Christopher Faylor <cgf@cygnus.com>
16904
16905         * libc/include/time.h: Fix typo in tzset.
16906
16907 Fri May 22 17:00:48 1998  Geoffrey Noer  <noer@cygnus.com>
16908
16909         * libc/include/sys/time.h: add missing Cygwin32 function protos
16910         * libc/include/sys/unistd.h: ditto
16911         * libc/include/time.h: ditto
16912
16913 Wed May 20 20:35:11 1998  Geoffrey Noer  <noer@cygnus.com>
16914
16915         * libc/sys/cygwin32/sys/param.h: add protected NULL def, remove
16916         FIXME.
16917         * libc/include/sys/types.h: add a new __MS_types__ section
16918         to define vm_offset_t, vm_size_t, int32_t et al, register_t,
16919         __BIT_TYPES_DEFINED__.
16920
16921 Wed May 20 18:49:21 1998  Geoffrey Noer  <noer@cygnus.com>
16922
16923         * libc/sys/cygwin32/sys/param.h: move here from winsup/include/sys
16924         since it overrides the one in libc/include/sys.  Also, start
16925         including types.h.
16926
16927 Wed May 20 14:45:40 1998  Geoffrey Noer  <noer@cygnus.com>
16928
16929         * libm/math/Makefile.in: add s_signgam.o to obj list
16930
16931 Tue May 19 11:57:11 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16932
16933         * libc/include/sys/reent.h (_REENT_INIT): Initialize current locale to "C".
16934
16935 Mon May 18 22:36:12 1998  Christopher Faylor <cgf@cygnus.com>
16936
16937         * libc/include/sys/signal.h: cygwin32 exports sig{empty,add}set,
16938         so don't use defines.
16939
16940 Mon May 18 19:01:02 1998  Michael Meissner  <meissner@cygnus.com>
16941
16942         * libc/sys/d10v/crt0.S: Use correct stab for 16-bit ints.
16943
16944 Sun May 17 18:40:32 1998  Frank Ch. Eigler  <fche@cygnus.com>
16945
16946         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Accept a NULL
16947         _current_locale as default locale.
16948
16949 Sat May 16 21:59:59 1998  Bob Manson  <manson@charmed.cygnus.com>
16950
16951         * libc/stdlib/mallocr.c (mALLOc): Add explicit tests for
16952         insufficient space in a chunk.
16953
16954 Tue May 12 14:41:01 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16955
16956         * configure.in (links): Added check for --enable-newlib-mb configure
16957         option which defines the MB_CAPABLE macro.
16958         * libc/locale/locale.c (_setlocale_r): Added support for setting
16959         LC_CTYPE to "C-JIS", "C-SJIS" or "C-EUCJP", when MB_CAPABLE is
16960         defined.
16961         * libc/stdlib/mbtowc_r.c (_mbtowc_r): New function _mbtowc_r that
16962         implements mbtowc() with multibyte support for JIS, SJIS, and EUC-JP.
16963         * libc/stdlib/wctomb_r.c (_wctomb_r): New function _wctomb_r that
16964         implements wctomb() with multibyte support for JIS, SJIS, and EUC-JP.
16965         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): New function _mbstowcs_r that
16966         implements mbstowcs() with multibyte support for JIS, SJIS, and EUC-JP.
16967         * libc/stdlib/wcstombs_r.c (_wcstombs_r): New function _wcstomb_r that implements
16968         wcstombs() with multibyte support for JIS, SJIS, and EUC-JP.
16969         * libc/stdlib/Makefile.in: Added new multibyte
16970         routines: _mbtowc_r(), _wctomb_r(), _mbstowcs_r(), and _wcstombs_r().
16971         * libc/include/stdlib.h: Added declarations of _mbtowc_r(), _wctomb_r(),
16972         _mbstowcs_r(), and _wcstombs_r().
16973         * libc/stdlib/mbctype.h: New internal header file that contains macros to test
16974         for JIS, SJIS, and EUC-JP characters.
16975         * libc/stdlib/mblen.c (mblen): Added code to call _mbtowc_r() if
16976         MB_CAPABLE defined.
16977         * libc/stdlib/mbtowc.c (mbtowc): Added code to call _mbtowc_r() if
16978         MB_CAPABLE defined.
16979         * libc/stdlib/wctomb.c (wctomb): Added code to call _wctomb_r() if
16980         MB_CAPABLE defined.
16981         * libc/stdlib/mbstowcs.c (mbstowcs): Added code to call _mbstowcs_r()
16982         if MB_CAPABLE defined.
16983         * libc/stdlib/wcstombs.c (wcstombs): Added code to call _wcstombs_r()
16984         if MB_CAPABLE defined.
16985         * libc/stdio/vfscanf.c (__svfscanf): Added multibyte tolerance
16986         to the format string processing when MB_CAPABLE.
16987         * libc/stdio/vfprintf.c (_VFPRINTF_R): Changed mbtowc() call to
16988         call _mbtowc_r().
16989
16990 Tue May  5 16:07:23 1998  Nick Clifton  <nickc@cygnus.com>
16991
16992         The following modifications are courtesy of Anthony Thompson,
16993         athompson@cambridge.arm.com:
16994         * libc/sys/arm/syscalls.c: Initialise and track stdin/out/err for
16995         boith RDI and RDP monitors.
16996         * libc/sys/arm/crt0.S: Call initialise_monitor_handles() for both
16997         RDI and RDP monitors.
16998
16999 Wed Apr 29 15:22:15 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17000
17001         * configure.in (links): Added -DHAVE_GETTIMEOFDAY for arm and thumb.
17002         * libc/sys/arm/syscalls.c (_gettimeofday _times): Added functions.
17003         (_swiopen): Fixed open flags to treat write with append as just append.
17004         (_swilseek): Fixed lseek support to properly handle offsets from SEEK_END.
17005         * libc/sys/arm/sys/param.h: New file to override param.h for ARM.
17006
17007 Fri Apr 24 18:00:09 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
17008
17009         * libc/machine/sh/memcpy.S (L_odddst, big endian version):
17010         When needing to transfer an initial 2-byte-word, store as
17011         two single bytes.
17012
17013 Wed Apr 22 17:56:03 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
17014
17015         * libc/sys/sh/crt0.S (start): Handle __SH4_SINGLE_ONLY__ like
17016         __SH3E__ .
17017         * libc/machine/sh/memcpy.S (DELAYED_BRANCHES, SL): Likewise.
17018         * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Likewise.
17019
17020 Wed Apr 22 12:28:03 1998  Michael Meissner  <meissner@cygnus.com>
17021
17022         * configure.in (target_cflags): If --enable-target-optspace, use
17023         -Os to compile newlib rather than -O2.  Default to using -Os for
17024         d10v, d30v and m32r if --{enable,disable}-target-optspace is not
17025         used.
17026
17027 Tue Apr 21 23:13:34 1998  Geoffrey Noer  <noer@cygnus.com>
17028
17029         * libc/include/machine/setjmp.h: change sigsetjmp and
17030         siglongjmp definitions to use an array instead of a struct
17031         for __CYGWIN32__
17032
17033 Tue Apr 14 11:47:47 1998  Doug Evans  <devans@canuck.cygnus.com>
17034
17035         * libc/reent/impure.c (__ATTRIBUTE_IMPURE_DATA__): Fix spelling.
17036
17037 Mon Apr  6 15:05:08 1998  Jonathan Larmour  <jlarmour@cygnus.co.uk>
17038
17039         * libc/string/strxfrm.c: fix to get correct return value
17040
17041 Wed Apr  1 16:09:05 1998  Nick Clifton  <nickc@cygnus.com>
17042
17043         * libc/sys/arm/crt0.S: Set top of RAM to be 0x800000 for PE
17044         builds.  Make mode change labels global so that they will be seen
17045         by the debugger.
17046
17047 Wed Mar 18 09:45:10 1998  Nick Clifton  <nickc@cygnus.com>
17048
17049         * configure.in (links): Do not use ARM debiugging protocols for PE
17050         builds.
17051
17052         * libc/sys/arm/syscalls.c (_sbrk): Add "_sbrk: " to error
17053         message.
17054
17055 Fri Mar 13 11:24:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17056
17057         * libc/stdio/findfp.c (__sinit): Made stdout default to
17058         line buffered mode as defined by ANSI.
17059
17060 Tue Mar 10 11:41:26 1997  Bob Manson  <manson@charmed.cygnus.com>
17061
17062         * libc/include/sys/itimer.h: New file.
17063
17064         * libc/signal/signal.c (__sigtramp_r,__sigtramp): New functions.
17065
17066 Mon Mar  9 14:19:26 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
17067
17068         * libc/machine/sh/memcpy.S: (_memcpy): Fix for execute/memcpy-1.c
17069         failure.
17070
17071 Fri Feb 27 13:56:10 1998  Michael Meissner  <meissner@cygnus.com>
17072
17073         * libc/machine/d30v/setjmp.S (longjmp): Fix order of parallel
17074         insns.
17075
17076 Wed Feb 25 09:29:54 1998  Nick Clifton  <nickc@cygnus.com>
17077
17078         * libc/sys/arm/syscalls.c (_open): Add varags to conform to prototype.
17079
17080 Tue Feb 24 18:00:13 1998  Michael Meissner  <meissner@cygnus.com>
17081
17082         * libc/machine/d30v/{setjmp.S,Makefile.in}: New files for D30V
17083         support.
17084
17085         * libc/include/machine/setjmp.h: Add D30V support.
17086
17087         * configure.in (d30v-*): Add d30v machine directory.
17088
17089 Mon Feb 23 09:32:58 1998  Mark Alexander  <marka@cygnus.com>
17090
17091         * configure.in: Don't use libc/sys/sysmec for MN10300; it's
17092         been replaced with libgloss/mn10300.
17093
17094 Sat Feb 21 17:44:43 1998  Geoffrey Noer  <noer@cygnus.com>
17095
17096         * libc/stdlib/mallocr.c: remove __malloc_copy routine now that
17097         it is no longer needed.
17098
17099 Thu Feb 19 16:15:10 1998  Geoffrey Noer  <noer@cygnus.com>
17100
17101         * libc/include/sys/signal.h: add sigpause proto for Cygwin32
17102
17103 Wed Feb 18 23:51:08 1998  Geoffrey Noer  <noer@cygnus.com>
17104
17105         * libc/stdio/fdopen.c (fdopen): Make all writes go to the end of
17106         the file when O_APPEND is set, wherever the EOF happens to be at
17107         that time.
17108
17109 Wed Feb 18 23:25:02 1998  Geoffrey Noer  <noer@cygnus.com>
17110
17111         patch from cgf@bbc.com (Christopher Faylor):
17112         * libc/stdio/freopen.c (freopen): Conform to standard UNIX
17113         convention of closing fp prior to attempting to open the file
17114         argument.  This allows correct operation when reopening
17115         stdin/stdout/stderr.  Replaces last freopen.c patch.
17116
17117 Wed Feb 18 16:27:40 1998  Geoffrey Noer  <noer@cygnus.com>
17118
17119         patch from cgf@bbc.com (Christopher Faylor):
17120         * libc/stdio/freopen.c: freopen was not preserving the fd
17121         of the stream being operated on.  This confuses programs that
17122         expect that the handles for stdout and stderr will be 1 and 2.
17123
17124 Mon Feb 16 23:34:07 1998  Andrew Cagney  <cagney@b1.cygnus.com>
17125
17126         * libc/sys/d10v/crt0.S (_start): Set PSW{SW} - select SPU.
17127
17128 Thu Feb 12 15:09:20 1998  Ranjith Kumaran <ranjith@cygnus.com>
17129
17130         * libc/sys/go32/longjmp.S: Fix longjmp to not return 0.
17131
17132 Wed Feb 11 17:50:45 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17133
17134         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Alignment code
17135         altered to not use a branch.  Also added hint that last
17136         bclr in longjmp will likely result in branch.
17137
17138
17139 Mon Feb  9 03:44:02 1998  Geoffrey Noer  <noer@cygnus.com>
17140
17141         * libc/sys/cygwin32/crt0.c: add missing args to main() extern
17142
17143 Fri Feb  6 16:32:32 1998  Nick Clifton  <nickc@cygnus.com>
17144
17145         * libc/sys/sysnecv850/crt0.S (_start): Initialise _ctbp even for
17146         v850 builds.
17147
17148         * configure.in: Add -msmall-sld to target_cflags for v850 builds.
17149
17150 Wed Feb  4 16:56:20 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17151
17152         * libc/machine/powerpc/setjmp.S (longjmp): Fixed code
17153         that loads FR14 to specify offset of 8 rather than 4
17154         so it loads from offset 96 (where setjmp stored it).
17155
17156 Tue Feb  3 18:08:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17157
17158         * libc/machine/sh/memcpy.S: (_memcpy): Update to
17159         latest version supplied by customer.
17160         * libc/machine/sh/memset.S (_memset): Ditto.
17161
17162 Mon Feb  2 16:20:39 1998  Nick Clifton  <nickc@cygnus.com>
17163
17164         * libc/sys/sysnecv850/Makefile.in (OFILES): Add link.o (for
17165         PR14730).
17166
17167 Mon Feb  2 15:13:26 1998  Geoffrey Noer  <noer@cygnus.com>
17168
17169         * libc/include/string.h: remove redefinition of ffs
17170
17171 Wed Jan 28 13:30:14 1998  Geoffrey Noer  <noer@cygnus.com>
17172
17173         * libc/include/sys/signal.h: include _ansi.h so _EXFUN is
17174         defined
17175
17176 Wed Jan 28 10:38:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17177
17178         * libc/machine/tic80/setjmp.S: Adding _setjmp to allow
17179         TI Libraries to link to libc.a
17180
17181 Sat Jan 24 10:15:56 1998  Michael Meissner  <meissner@cygnus.com>
17182
17183         * libc/include/sys/fcntl.h (_open,_fcntl): Add prototypes.
17184         * libc/include/sys/stat.h (_{,f}stat): Ditto.
17185         * libc/include/sys/wait.h (_wait): Ditto.
17186         * libc/include/sys/unistd.h (_close,_fork,_getpid): Ditto.
17187         (_link,_lseek,_read,_sbrk,_unlink,_write): Ditto.
17188
17189 Fri Jan 23 11:32:10 1998  Michael Meissner  <meissner@cygnus.com>
17190
17191         * libc/machine/d10v/setjmp.S: Change to new ABI.  Add simple
17192         minded stabs so function name shows up when running the simulator
17193         with -t.
17194         * libc/sys/d10v/{crt0,trap}.S: Ditto.
17195
17196 Thu Jan 22 15:57:14 1998  Fred Fish  <fnf@cygnus.com>
17197
17198         * libc/sys/d10v/trap.S: Change syscalls to use trap 15.
17199         * libc/sys/d10v/crt0.S: Use R6 where we used to use R2.
17200         Use R5 where we used to use R3.
17201
17202 Wed Jan 21 14:22:23 1998  Bill Moyer <billm@cygnus.com>
17203
17204         * libc/stdlib/getopt.c (getopt): replaced __progname
17205         with nargv[0] to improve portability to imbedded systems.
17206
17207 Thu Jan 15 12:32:38 1998  Nick Clifton  <nickc@cygnus.com>
17208
17209         * libc/sys/arm/syscalls.c (initialise_angel_handles): Applied
17210         patch supplied by Tont.Thompson@arm.com to fix the creation of the
17211         stdout file.
17212
17213 Wed Jan 14 13:00:19 1998  Ian Lance Taylor  <ian@cygnus.com>
17214
17215         * libc/stdio/tmpnam.c (worker): Generate a different file name
17216         each time.
17217
17218         * libc/posix/popen.c (popen): If __CYGWIN32__, and execing /bin/sh
17219         fails, try an execlp for sh.
17220
17221         * host/any (INCLUDES): If target_os is cygwin32, then add a -I
17222         option for the winsup include directory.
17223
17224 Wed Jan  7 17:02:58 1998  Nick Clifton  <nickc@cygnus.com>
17225
17226         * libc/sys/arm/syscalls.c: Applied patches for Angel based remote
17227         debugging interface from Tony.Thompson@arm.com.
17228
17229         * libc/sys/arm/crt0.S (_mainCRTStartup): ditto.
17230         * libc/sys/arm/swi.h: ditto.
17231
17232 Tue Jan  6 14:15:10 1998  Geoffrey Noer  <noer@cygnus.com>
17233
17234         * libc/sys/cygwin32/sys/dirent.h: add __d_dirhash field to
17235         DIR struct used for readdir hashes.
17236
17237 Thu Jan  1 11:22:22 1998  Jeffrey A Law  (law@cygnus.com)
17238
17239         * libc/string/strchr.c: Use "unsigned chars" as necessary.
17240
17241 Wed Dec 31 04:25:30 1997  Jeffrey A Law  (law@cygnus.com)
17242
17243         * libc/stdlib/mallocr.c (idx2binblock): Don't lose on 16bit
17244         integer targets.
17245
17246 Sat Dec 13 15:11:06 1997  Ian Lance Taylor  <ian@cygnus.com>
17247
17248         * libc/stdlib/mallocr.c (__malloc_copy): New function, compiled if
17249         INTERNAL_NEWLIB and __CYGWIN32__ and DEFINE_MALLOC.
17250         * libc/include/malloc.h: Add extern "C" if __cplusplus.
17251         (__malloc_copy): Declare.
17252
17253 Wed Dec 10 12:15:54 1997  Ian Lance Taylor  <ian@cygnus.com>
17254
17255         * libc/stdlib/mallocr.c: If INTERNAL_NEWLIB, include
17256         <sys/config.h>.
17257         (POINTER_UINT): Define.
17258         (DEFAULT_TRIM_THRESHOLD): Mark constants as long.
17259         (MALLOC_ALIGNMENT): Don't define if already defined.
17260         (malloc_extend_top): Cast pointers to POINTER_UINT, not unsigned
17261         long.
17262
17263 Tue Dec  9 19:23:42 1997  Michael Meissner  <meissner@cygnus.com>
17264
17265         * libc/string/memset.c (memset): Fiddle with code so that the long
17266         value being stored is not a stack value.  Unroll storing longs 4
17267         times.
17268
17269 Tue Dec  9 14:13:18 1997  Jeff Johnston  <jjohnstn@cygnus.com>
17270
17271         * Reduce code size for libm modules.
17272         * libm/math/w_sqrt.c (sqrt): Remove call to kernel_standard
17273         and simply move code into sqrt.
17274         * libm/math/wrf_lgamma.c (lgammaf_r): Likewise.
17275         * libm/math/wr_lgamma.c (lgamma_r): Likewise.
17276         * libm/math/wrf_gamma.c (gammaf_r): Likewise.
17277         * libm/math/wr_gamma.c (gamma_r): Likewise.
17278         * libm/math/wf_sinh.c (sinfh): Likewise.
17279         * libm/math/w_sinh.c (sinh): Likewise.
17280         * libm/math/wf_scalb.c (scalbf): Likewise.
17281         * libm/math/w_scalb.c (scalb): Likewise.
17282         * libm/math/wf_remainder.c (remainderf): Likewise.
17283         * libm/math/w_remainder.c (remainder): Likewise.
17284         * libm/math/wf_pow.c (powf): Likewise.
17285         * libm/math/w_pow.c (pow): Likewise.
17286         * libm/math/wf_log10.c (log10f): Likewise.
17287         * libm/math/w_log10.c (log10): Likewise.
17288         * libm/math/wf_log.c (logf): Likewise.
17289         * libm/math/w_log.c (log): Likewise.
17290         * libm/math/w_lgamma.c (lgamma): Likewise.
17291         * libm/math/wf_lgamma.c (lgammaf): Likewise.
17292         * libm/math/wf_jn.c (jnf): Likewise.
17293         * libm/math/w_jn.c (jn): Likewise.
17294         * libm/math/wf_j1.c (j1f): Likewise.
17295         * libm/math/w_j1.c (j1): Likewise.
17296         * libm/math/wf_j0.c (j0f): Likewise.
17297         * libm/math/w_j0.c (j0): Likewise.
17298         * libm/math/wf_hypot.c (hypotf): Likewise.
17299         * libm/math/w_hypot.c (hypot): Likewise.
17300         * libm/math/wf_gamma.c (gammaf): Likewise.
17301         * libm/math/w_gamma.c (gamma): Likewise.
17302         * libm/math/wf_fmod.c (fmodf): Likewise.
17303         * libm/math/w_fmod.c (fmod): Likewise.
17304         * libm/math/wf_exp.c (expf): Likewise.
17305         * libm/math/w_exp.c (exp): Likewise.
17306         * libm/math/wf_cosh.c (coshf): Likewise.
17307         * libm/math/w_cosh.c (cosh): Likewise.
17308         * libm/math/wf_atanh.c (atanhf): Likewise.
17309         * libm/math/w_atanh.c (atanh): Likewise.
17310         * libm/math/wf_atan2.c (atan2f): Likewise.
17311         * libm/math/w_atan2.c (atan2): Likewise.
17312         * libm/math/wf_asin.c (asinf): Likewise.
17313         * libm/math/w_asin.c (asin): Likewise.
17314         * libm/math/wf_acosh.c (acoshf): Likewise.
17315         * libm/math/w_acosh.c (acosh): Likewise.
17316         * libm/math/wf_acos.c (asocf): Likewise.
17317         * libm/math/w_acos.c (acos): Likewise.
17318         * libm/math/wf_sqrt.c (sqrtf): Likewise.
17319         * libm/math/k_standard.c (_k_standard): Don't require SVID behavior
17320         for embedded systems.
17321
17322 Mon Dec  8 12:12:58 1997  Ian Lance Taylor  <ian@cygnus.com>
17323
17324         * libc/stdlib/mallocr.c (malloc_extend_top): Add patch from Doug
17325         Lea in case of a foreign sbrk.
17326
17327 Fri Dec  5 23:27:28 1997  Ian Lance Taylor  <ian@cygnus.com>
17328
17329         Incorporate Doug Lea's malloc:
17330         * libc/stdlib/mallocr.c: Completely replaced.
17331         * libc/stdlib/malloc.c: Document malloc_usable_size and memalign.
17332         (realloc): Remove.
17333         * libc/stdlib/calloc.c (calloc): Just call _calloc_r.
17334         * libc/stdlib/mstats.c: Document mallinfo, malloc_stats, and
17335         mallopt.
17336         (mallinfo, malloc_stats, mallopt): New functions.
17337         (_mstats_r): Just call _malloc_stats_r.
17338         * libc/stdlib/malign.c: New file.
17339         * libc/stdlib/mlock.c: New file.
17340         * libc/stdlib/msize.c: New file.
17341         * libc/stdlib/mtrim.c: New file.
17342         * libc/stdlib/realloc.c: New file.
17343         * libc/stdlib/valloc.c: New file.
17344         * libc/stdlib/malloc.h: Remove.
17345         * libc/stdlib/callocr.c: Remove.
17346         * libc/stdlib/Makefile.in (OFILES): Add cfreer.o, freer.o,
17347         malign.o, malignr.o, mallinfor.o, malloptr.o, mallstatsr.o,
17348         mlock.o, msize.o, msizer.o, mtrim.o, pvallocr.o, realloc.o,
17349         reallocr.o, valloc.o, vallocr.o.
17350         (CHEWOUT_FILES): Add mlock.def, mstats.def.
17351         (MALLOC_CFLAGS): New variable.
17352         (mallocr.o): New target, build from mallocr.c.
17353         (freer.o, reallocr.o, callocr.o, cfreer.o, malignr.o): Likewise.
17354         (vallocr.o, pvallocr.o, mallinfor.o, mallstatsr.o): Likewise.
17355         (msizer.o, malloptr.o): Likewise.
17356         (malign.o, mlock.o, msize.o, mtrim.o, realloc.o): New targets.
17357         (valloc.o): New target.
17358         * libc/stdlib/stdlib.tex: Include mlock.def and mstats.def.
17359         * libc/include/malloc.h: Declare struct mallinfo, and new
17360         routines.
17361         * libc/include/stdlib.h (cfree): Correct declaration.
17362
17363 Tue Dec  2 10:12:16 1997  Nick Clifton  <nickc@cygnus.com>
17364
17365         * libc/include/machine/setjmp.h: Add support for Thumb target.
17366
17367         * libc/include/machine/ieeefp.h: Add support for Thumb target.
17368
17369         * configure.in (links): Add support for Thumb target.
17370
17371 Wed Nov 26 09:56:17 1997  Nick Clifton  <nickc@cygnus.com>
17372
17373         * libc/sys/arm/setjmp.S: Updated with version from branch.
17374
17375 Thu Nov 20 01:21:43 1997  Geoffrey Noer  <noer@cygnus.com>
17376
17377         * libc/include/stdio.h: add POSIX-required define L_ctermid
17378         for ctermid
17379
17380 Wed Nov 19 16:11:40 1997  Michael Meissner  <meissner@cygnus.com>
17381
17382         * configure.in (d30v-*-*): Define ABORT_MESSAGE, SMALL_MEMORY, in
17383         addition to MISSING_SYSCALL_NAMES.
17384
17385 Mon Nov 17 20:05:05 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
17386
17387         * libc/include/sys/config.h: (UINT_MAX, for D10V):  Make unsigned.
17388
17389 Mon Nov 10 22:26:55 1997  Geoffrey Noer  <noer@cygnus.com>
17390
17391         * libc/include/string.h: change strsignal proto to return
17392         a char *.  This eliminates compile problems in gdb resulting
17393         from gdb's definition of strsignal in defs.h.
17394
17395 Mon Nov 10 17:11:08 1997  Geoffrey Noer  <noer@cygnus.com>
17396
17397         * libc/sys/cygwin32/sys/utime.h: new (moved here from
17398         winsup/include) so as not to conflict with the one in
17399         libc/include.
17400         * libc/include/string.h: add protos for strsignal, strtosigno
17401
17402 Mon Nov 10 13:49:54 1997  Michael Meissner  <meissner@cygnus.com>
17403
17404         * libc/include/sys/config.h: Define __IEEE_BIG_ENDIAN if d30v.
17405
17406         * configure.in (d30v-*-*): Add configuration.
17407
17408 Thu Oct 30 14:01:23 1997  Nick Clifton  <nickc@cygnus.com>
17409
17410         * configure.in (links): Add -DARM_RD[P|I]_MONITOR to target_cflags
17411         to select which kind of debug monitor is in use for an ARM target.
17412
17413         * libc/sys/arm/crt0.S: New version: Supports Thumb startups and
17414         Angel and Demon debug monitors.  Part of this code was supplied by
17415         Tony Thompson at ARM: athompso@arm.com.
17416
17417 Fri Oct 24 18:57:05 1997  Jeffrey A Law  (law@cygnus.com)
17418
17419         * strncat.c (strncat): Don't call strncpy; strncay has the wrong
17420         semantics when the count is greater than the length of the second
17421         source string.
17422
17423 Thu Oct 23 01:37:41 1997  Geoffrey Noer  <noer@cygnus.com>
17424
17425         * libc/include/sys/signal.h: reorder CYGWIN32 signal numbers
17426         * libc/include/sys/unistd.h: add protos for usleep, truncate,
17427         truncate and ftruncate take off_t, not size_t
17428
17429 Tue Oct 21 18:42:00 1997  Jim Wilson  <wilson@cygnus.com>
17430
17431         * libc/string/strcat.c (strcat): Add missing comment end.
17432         * libc/string/strncat.c (strncat): Likewise.
17433
17434 Tue Oct 21 17:23:34 1997  Nick Clifton  <nickc@cygnus.com>
17435
17436         * configure.in (links): Define PREFER_SIZE_OVER_SPEED for v850
17437         targets.
17438         * libc/string/{memchr.c, memcmp.c, memcpy.c}:   Add space
17439         optimised version which is selected if PREFER_SIZE_OVER_SPEED is
17440         defined.
17441         * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
17442         * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
17443         * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
17444
17445 Mon Oct 13 15:12:35 1997  Ian Lance Taylor  <ian@cygnus.com>
17446
17447         * libc/include/sys/param.h (BIG_ENDIAN): Define if __i386__.
17448         (LITTLE_ENDIAN, BYTE_ORDER): Likewise.
17449
17450 Thu Oct  9 13:54:44 1997  Doug Evans  <dje@canuck.cygnus.com>
17451
17452         * libc/machine/i386/setjmp.S: New file.
17453         * libc/machine/i386/Makefile.in: Delete COPYOFILES.
17454         (OFILES): Add setjmp.o.
17455         (setjmp.o): Add rule for.
17456         * configure.in: Don't set machine_dir for *-*-{go32,sco*,cygwin32}.
17457
17458 Tue Oct  7 14:01:29 1997 Bill Moyer     (billm@cygnus.com)
17459                          Jeffrey A Law  (law@cygnus.com)
17460
17461         * libc/string/{memchr.c, memcmp.c, memcpy.c}: Reimplement to run faster.
17462         * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
17463         * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
17464         * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
17465
17466 Mon Oct  6 14:07:59 1997  Nick Clifton  <nickc@cygnus.com>
17467
17468         * libc/sys/sysnecv850/Makefile.in (crt0.o trap.o): Explicit
17469         rules.
17470
17471         * libc/include/sys/config.h: Use __v850 to select v850
17472         endianness.
17473
17474         * libc/include/machine/setjmp.h: Use __v850 to select v850 jump
17475         buffer size.
17476
17477         * libc/include/machine/ieeefp.h: Use __v850 to select v850
17478         endianness.
17479
17480 Thu Sep 25 14:11:37 1997  Geoffrey Noer  <noer@cygnus.com>
17481
17482         * libc/stdlib/setenv.c: change unsetenv definition to match
17483         style of setenv (with _DEFUN).  The string should be a const.
17484         * libc/include/stdlib.h: unsetenv proto should return void.
17485
17486 Tue Sep 23 18:17:20 1997  Geoffrey Noer  <noer@cygnus.com>
17487
17488         * libc/include/stdlib.h: define unsetenv proto for __CYGWIN32__
17489
17490 Thu Sep 18 12:50:15 1997  Angela Marie Thomas (angela@cygnus.com)
17491
17492         * libc/stdio/glue.h: remove.
17493         * libc/stdio/findfp.c, libc/stdio/fwalk.c: remove #include "glue.h"
17494         * libc/stdio/Makefile.in: remove glue.h dependencies
17495
17496 Wed Sep 17 17:42:27 1997  Nick Clifton  <nickc@cygnus.com>
17497
17498         * libc/sys/sysnecv850/crt0.S: Created V850e version.
17499
17500 Tue Sep  9 10:40:57 1997  Doug Evans  <dje@canuck.cygnus.com>
17501
17502         * configure.in (target_cpu): Add `arc'.
17503
17504 Tue Sep  9 10:40:42 1997  Joel Sherrill  <joel@OARcorp.com>
17505
17506         * newlib/configure.in (*-*-rtems*): Add -DSIGNAL_PROVIDED and
17507           -DREENTRANT_SYSCALLS_PROVIDED to the target_cflags.
17508         * newlib/libc/include/sys/errno.h: Add ENOTSUP.
17509         * newlib/libc/reent/reent.c: Add _wrapup_reent.
17510         * newlib/libc/sys/rtems/sys/types.h: Avoid redefinitions for go32.
17511
17512 Sun Sep  7 16:41:41 1997  Gavin Koch  <gavin@cygnus.com>
17513
17514         * libc/machine/mips/setjmp.S: Handle mips16 builds.
17515
17516 Thu Aug 21 20:05:38 1997  Ian Lance Taylor  <ian@cygnus.com>
17517
17518         * libc/include/stdio.h (siprintf): Declare.
17519
17520 Mon Aug 18 11:19:13 1997  Nick Clifton  <nickc@cygnus.com>
17521
17522         * libc/sys/sysnecv850/Makefile.in (.c.o): Add rule that includes
17523         TARGET_CFLAGS and NEWLIB_FLAGS.
17524
17525 Mon Aug 18 11:15:43 1997  Nick Clifton  <nickc@cygnus.com>
17526
17527         * configure.in (links): Add support for v850ea target.
17528
17529 Mon Aug 18 11:15:43 1997  Nick Clifton  <nickc@cygnus.com>
17530
17531         * configure.in (links): Add support for v850e target.
17532
17533 Wed Aug 13 19:16:54 1997  Nick Clifton  <nickc@cygnus.com>
17534
17535         * libc/sys/sysnecv850/crt0.S: Remove initial setting of r0 to 0.
17536
17537 Mon Aug 11 15:49:54 1997  Doug Evans  <dje@canuck.cygnus.com>
17538
17539         * configure.in (arc-*-*): Add support for.
17540         * libc/include/machine/ieeefp.h (__arc__): Add support for the ARC.
17541
17542 Fri Jul 25 17:37:41 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
17543
17544         * libc/sys/sh/crt0.S (start): Add fpscr initialization for SH4.
17545
17546 Thu Jul 24 18:32:17 1997  Geoffrey Noer  <noer@cygnus.com>
17547
17548         * libc/stdlib/bsearch.c (bsearch): remove last unneeded
17549         comparison which accesses invalid memory when the key is
17550         larger than the last member of the array.
17551         * libc/include/machine/setjmp.h: add sigsetjmp, siglongjmp
17552         for CYGWIN32
17553         * libc/include/sys/unistd.h: add _POSIX defines for CYGWIN32
17554
17555 Tue Jul 22 16:03:06 1997  Ian Lance Taylor  <ian@cygnus.com>
17556
17557         * libc/include/stdlib.h (realpath): Declare if __CYGWIN32__ and
17558         not _STRICT_ANSI.
17559
17560 Thu Jul 10 15:11:52 1997  Doug Evans  <dje@canuck.cygnus.com>
17561
17562         * libm/math/k_standard.c (__kernel_standard): Call fflush(stdout)
17563         ifndef _USE_WRITE, instead of ifdef _USE_WRITE.
17564
17565 Thu Jul 10 16:00:09 1997  Mike Meissner  <meissner@cygnus.com>
17566
17567         * libc/machine/tic80/setjmp.S (setjmp,longjmp): Use ld.d and st.d
17568         to load/store memory.
17569
17570 Mon Jul  7 17:38:17 1997  Ian Lance Taylor  <ian@cygnus.com>
17571
17572         * libc/include/sys/fcntl.h: Define _O_* symbols with leading
17573         underscores if _WIN32.
17574
17575 Wed Jul  2 10:07:20 1997  Doug Evans  <dje@canuck.cygnus.com>
17576
17577         * libm/math/k_standard.c (__kernel_standard): Delete reentrancy
17578         support ifdef _USE_WRITE missed in last change.
17579         From Anders Blomdell <anders.blomdell@control.lth.se>.
17580
17581 Wed Jun 25 10:18:49 1997  Doug Evans  <dje@canuck.cygnus.com>
17582
17583         * libc/stdio/tmpnam.c (worker): Handle _open_r being stubbed out.
17584         (_tmpnam_r, _tempnam_r): Update.
17585
17586 Wed Jun 25 00:16:55 1997  Mark Alexander  <marka@cygnus.com>
17587
17588         * libc/machine/sparc/setjmp.S: New file.
17589         * libc/machine/sparc/Makefile.in: Add setjmp.
17590         * libc/include/machine/setjmp.h: Increase jmpbuf size for sparc.
17591
17592 Tue Jun 24 23:27:38 1997  Mark Alexander  <marka@cygnus.com>
17593
17594         * libc/include/machine/setjmp.h: Use __TIC80__ instead of __tic80__.
17595
17596 Tue Jun 24 14:53:40 1997  Doug Evans  <dje@canuck.cygnus.com>
17597
17598         From Joel Sherrill <joel@oarcorp.com>.
17599         * libc/stdlib/getenv.c (_findenv): Avoid dereferencing null `environ'.
17600
17601         Add rtems support.  From Joel Sherrill <joel@oarcorp.com>.
17602         * configure.in: Recognize *-*-rtems*.
17603         * libc/sys/rtems/{Makefile.in,crt0.c,dummysys.c}: New files.
17604         * libc/sys/rtems/sys/{features.h,sched.h,siginfo.h,signal.h,
17605         time.h,times.h,types.h}: New files.
17606         * libc/sys/rtems/include/{limits.h,signal.h,time.h}. New files.
17607
17608 Fri Jun 20 11:13:16 1997  Geoffrey Noer  <noer@cygnus.com>
17609
17610         patch from sos@prospect.com.ru (Sergey Okhapkin):
17611         * include/sys/wait.h: correct operator precidence bug
17612         in WIFSIGNALED
17613
17614 Wed Jun 18 22:08:27 1997  Geoffrey Noer  <noer@cygnus.com>
17615
17616         * libc/include/stdlib.h: remove unsetenv proto since it conflicts
17617         with newlib's unsetenv function
17618         * libc/sys/cygwin32/sys: new directory for includes
17619         * libc/sys/cygwin32/sys/dirent.h: move cygwin32's dirent.h
17620         here from winsup/include/sys
17621
17622 Mon Jun 16 21:02:22 1997  Geoffrey Noer  <noer@cygnus.com>
17623
17624         * libc/include/sys/unistd.h: _exit should only be
17625         labelled noreturn when not __CYGWIN32__
17626         * libc/include/stdlib.h: for __CYGWIN32__, add proto for unsetenv
17627         * libc/include/sys/signal.h: add SIGIO to _WIN32 list and
17628         increment NSIG
17629
17630 Thu Jun 12 18:52:41 1997  Ian Lance Taylor  <ian@cygnus.com>
17631
17632         * libc/include/sys/time.h: Only define timeval and timezone if
17633         _GNU_H_WINDOWS32_SOCKETS is not defined.
17634         * libc/include/sys/stat.h: If _WIN32, define _S_IFMT, etc.
17635
17636 Wed Jun 11 09:46:26 1997  Jeffrey A Law  (law@cygnus.com)
17637
17638         * libc/machine/mn10200/setjmp.S: Implement setjmp/longjmp
17639         * libc/machine/mn10300/setjmp.S: Likewise.
17640
17641         * libc/sys/sysmec/crt0.S: Use "call" instead of "calls" for
17642         the mn10300 (more relaxing opportunities).
17643
17644 Tue Jun 10 17:24:45 1997  Mike Meissner  <meissner@cygnus.com>
17645
17646         * configure.in (powerpc*-*-{eabi,elf,linux,rtems,sysv,solaris}):
17647         Build libraries with -mstrict-align.
17648
17649 Fri Jun  6 14:07:59 1997  Ian Lance Taylor  <ian@cygnus.com>
17650
17651         * libc/string/strlwr.c: New file.
17652         * libc/string/strupr.c: New file.
17653         * libc/include/string.h: Declare strlwr and strupr.
17654         * libc/string/Makefile.in (OFILES): Add strlwr.o and strupr.o.
17655         (CHEWOUT_FILES): Add strlwr.def and strupr.def.
17656         (strlwr.o, strupr.o): New targets.
17657         * libc/string/strings.tex: Include strlwr and strupr docs.
17658
17659         * libc/include/sys/types.h: Don't define u_char, et. al., if
17660         _GNU_H_WINDOWS32_SOCKETS is defined.  Likewise for fd_set,
17661         et. al.  Make FD_SETSIZE default 64 rather than 60.  Define
17662         _types_fd_set rather than fd_set, and define fd_set as a macro.
17663
17664         * libc/include/malloc.h: New file.
17665
17666         * libc/include/string.h: Define strcmpi, stricmp, strncmpi, and
17667         strnicmp if they are not already defined.
17668
17669         * libc/include/time.h: If __CYGWIN32__, declare tzset and define
17670         _timezone, _daylight, and _tzname.
17671
17672 Wed Jun  4 12:51:16 1997  Doug Evans  <dje@canuck.cygnus.com>
17673
17674         * configure.in: Sort all configuration tables.
17675
17676         From Joel Sherrill <joel@oarcorp.com>
17677         * Makefile.in (stmp-targ-include): Copy $(sys_dir)/include/*.h.
17678
17679 Tue Jun  3 14:47:46 1997  Ian Lance Taylor  <ian@cygnus.com>
17680
17681         * libc/include/sys/signal.h: Don't include <sys/types.h>.  Just
17682         use int when declaring kill.
17683
17684         * libc/include/sys/timeb.h: New file.
17685
17686 Mon Jun  2 12:06:58 1997  Geoffrey Noer  <noer@cirdan.cygnus.com>
17687
17688         * libc/include/sys/time.h: add itimer support for Cygwin32
17689
17690 Mon May 19 11:56:46 1997  Mike Meissner  <meissner@cygnus.com>
17691
17692         * libc/stdlib/abort.c (abort): If ABORT_MESSAGE is defined, write
17693         out a message that abort was called to stderr.
17694
17695 Fri May 16 15:02:59 1997  Bob Manson  <manson@charmed.cygnus.com>
17696
17697         * libc/sys/sysmec/fstat.c (_fstat): Set st_blksize to 4096
17698         so that libio doesn't freak.
17699
17700         * libc/sys/sysmec/sbrk.c (_sbrk): The argument is a size_t, not
17701         int.
17702
17703         * libc/stdlib/mallocr.c (_morecore_r): Use size_t for
17704         memory sizes, not int.
17705
17706 Wed May 14 21:16:58 1997  Bob Manson  <manson@charmed.cygnus.com>
17707
17708         * libm/math/ef_hypot.c: Use long constants where
17709         appropriate.
17710         * libm/math/ef_sqrt.c: Ditto.
17711
17712         * libc/sys/sysmec/times.c(_times): Change to times.
17713
17714         * libc/sys/sysmec/read.c(_read): The third argument is
17715         size_t.
17716         * libc/sys/sysmec/write.c (_write): Ditto.
17717
17718         * libc/sys/sysmec/lseek.c: Include unistd.h for off_t.
17719         (_lseek): It's off_t for the second argument.
17720
17721 Wed May 14 15:23:36 1997  Mike Meissner  <meissner@cygnus.com>
17722
17723         * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN): Define here,
17724         as well as machine/ieeefp.h.
17725
17726 Thu May  8 15:47:25 1997  Geoffrey Noer  <noer@cygnus.com>
17727
17728         * libc/include/sys/signal.h: add signal protos for winsup
17729         functions (when __CYGWIN32__), include types.h
17730         * libc/include/sys/types.h: Change __go32_types__ internal
17731         define to __MS_types__ since it's used for more than just
17732         GO32 configs.  Define this if GO32, __MSDOS__, or _WIN32 are
17733         defined.
17734         * libc/include/sys/unistd.h: add ftruncate proto for
17735         winsup functions (when __CYGWIN32__)
17736
17737 Fri Apr 25 10:10:16 1997  Doug Evans  <dje@canuck.cygnus.com>
17738
17739         * libc/sys/h8300hms/sbrk.c (stack_ptr): Add definition.
17740
17741 Thu Apr 24 15:46:51 1997  Mike Stump  <mrs@cygnus.com>
17742
17743         * libc/include/machine/setjmp.h: Add tic80 support.
17744         * libc/machine/tic80/setjmp.S: Likewise.
17745
17746 Tue Apr 22 16:54:40 1997  Geoffrey Noer  <noer@pizza.cygnus.com>
17747
17748         * libc/sys/cygwin32/crt0.c: Add reference to main() so we can
17749         link programs from libraries only (such as in the X11
17750         distribution)
17751
17752 Mon Apr 21 15:02:12 1997  Fred Fish  <fnf@cygnus.com>
17753
17754         * libc/sys/arm/syscalls.c (signal): Remove stub, signal()
17755         supplied elsewhere in newlib.
17756
17757 Mon Apr 14 16:25:55 1997  Ian Lance Taylor  <ian@cygnus.com>
17758
17759         * Makefile.in (INSTALL): Change install.sh to install-sh.
17760
17761 Fri Apr 11 17:04:02 1997  Jason Molenda  (crash@godzilla.cygnus.co.jp)
17762
17763         * README: update WWW address for on-line documentation.
17764
17765 Wed Apr  9 00:38:13 1997  Geoffrey Noer  <noer@cygnus.com>
17766
17767         * libc/include/sys/signal.h: for _WIN32, define SIGCONT and
17768         increment NSIG
17769
17770 Mon Apr  7 23:54:00 1997  Jeffrey A Law  (law@cygnus.com)
17771
17772         * libc/sys/sysmec/crt0.S: Update for new calling conventions on the
17773         mn10300.
17774         * libc/sys/sysmec/trap.S: Don't compare a register to itself.
17775
17776 Tue Mar 25 08:47:43 1997  Jeffrey A Law  (law@cygnus.com)
17777
17778         * libc/sys/arm/syscalls.c: Fix/add stack/heap collision detection.
17779         * libc/sys/d10v/syscalls.c: Likewise.
17780         * libc/sys/h8300hms/sbrk.c: Likewise.
17781         * libc/sys/h8500hms/syscalls.c: Likewise.
17782         * libc/sys/m88kbug/syscalls.c: Likewise.
17783         * libc/sys/sh/syscalls.c: Likewise.
17784         * libc/sys/sysmec/sbrk.c: Likewise.
17785         * libc/sys/sysnecv850/sbrk.c: Likewise.
17786         * libc/sys/w65/syscalls.c: Likewise.
17787         * libc/sys.tex: Update sbrk sample code to include stack/heap collision.
17788
17789 Tue Mar 18 14:14:34 1997  Jeffrey A Law  (law@cygnus.com)
17790
17791         * libc/sys/sysmec/trap.S: Use "syscall" to trigger an
17792         emulated syscall instead of "trap".
17793
17794 Fri Mar 14 11:26:13 1997  Michael Meissner  <meissner@cygnus.com>
17795
17796         * libc/sys/d10v/trap.S (__trap0): Use trap 15 for system calls,
17797         not trap 0.
17798
17799 Sun Mar  9 23:27:04 1997  Doug Evans  <dje@seba.cygnus.com>
17800
17801         * configure.in (m32r-*-*): Add -msdata=sdata to target_cflags.
17802
17803 Sat Mar  8 09:05:01 1997  Fred Fish  <fnf@cygnus.com>
17804
17805         * libc/machine/arm/Makefile.in: Fix comment, is for "arm"
17806         not "sh".
17807         * libc/machine/m32r/Makefile.in: Fix comment, is for "m32r"
17808         not "d10v".
17809         * libc/sys/tic80/crt0.c: New file for TIc80.
17810         * libc/sys/tic80/Makefile.in: New file for TIc80.
17811         * libc/machine/tic80/Makefile.in: New file for TIc80.
17812
17813 Wed Mar  5 11:32:12 1997  J.T. Conklin  <jtc@cygnus.com>
17814
17815         * libc/machine/sh/memcpy.S: New file.
17816         * libc/machine/sh/memset.S: New file.
17817         * libc/machine/sh/Makefile.in (OFILES): Add memcpy.o and memset.o
17818
17819 Thu Feb 27 16:27:55 1997  Fred Fish  <fnf@cygnus.com>
17820
17821         * libc/include/machine/ieeefp.h (_IEEE_LITTLE_ENDIAN): Define
17822         for TIc80.
17823
17824 Wed Feb 26 13:43:39 1997  Jeffrey A Law  (law@cygnus.com)
17825
17826         * libc/sys/sysmec/crt0.S: Handle new calling conventions for
17827         the mn10200.
17828
17829 Wed Feb 26 07:11:03 1997  Michael Meissner  <meissner@cygnus.com>
17830
17831         * libc/machine/powerpc/setjmp.S (longjmp): Correct return status
17832         (patch from andrew@pogo.WV.TEK.COM).
17833
17834 Fri Feb 14 11:49:28 1997  Doug Evans  <dje@canuck.cygnus.com>
17835
17836         * libc/machine/m32r/setjmp.S (setjmp): Save r12.
17837         (longjmp): Restore r12. Fix code that handles returning 1 if passed 0.
17838
17839 Mon Feb 10 10:02:34 1997  Fred Fish  <fnf@cygnus.com>
17840
17841         * configure.in:  Add cases for "tic80" to set machine_dir,
17842         sys_dir, and syscall_dir.
17843
17844 Sun Feb  2 17:57:15 1997  Geoffrey Noer  <noer@cygnus.com>
17845
17846         * libc/sys/cygwin32/crt0.c: initialize floating pt registers
17847
17848 Wed Jan 29 15:57:38 1997  Geoffrey Noer  <noer@cygnus.com>
17849
17850         * libc/include/math.h: avoid conflicts with ANSI C++ <exception>
17851
17852 Mon Jan 27 12:50:01 1997  Doug Evans  <dje@seba.cygnus.com>
17853
17854         * libc/machine/m32r/setjmp.S: Use proper comment delimiter.
17855         Use proper constant prefix.
17856
17857 Fri Jan 24 10:59:04 1997  Jeffrey A Law  (law@cygnus.com)
17858
17859         * libc/sys/sysmec/*.c: Don't cast args to syscall to integers,
17860         that loses on the mn10200 where ints and pointers are different
17861         sizes.
17862
17863 Tue Jan 14 13:29:55 PST 1997  Jeremy Allison <jra@cygnus.com>
17864
17865         * configure.in: Added -DSIGNAL_PROVIDED to cygwin32
17866         target as signal is provided in winsup.
17867
17868 Tue Jan 14 11:10:13 1997  Jeremy Allison <jra@cygnus.com>
17869
17870         * libc/include/sys/process.h: Corrected const definitions
17871         in spawn functions. Added cwait.
17872
17873 Thu Jan  2 12:22:41 1997  Jeffrey A Law  (law@cygnus.com)
17874
17875         * libc/include/machine/ieeefp.h: mn10200 uses 16bit ints and 32bit
17876         doubles.
17877         * libc/include/sys/config.h: Similarly.
17878
17879 Tue Dec 31 18:36:14 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
17880
17881         * configure.in (sparc-sun-sunos*): Add -DSIGNAL_PROVIDED to the
17882         target_cflags.
17883         (i[3456]86-*-sco*): Ditto.
17884
17885         * libc/signal/Makefile.in (OFILES): Add signal.o.
17886         (CFILES): Add signal.c.
17887
17888         * libc/signal/raise.c (_raise_r): Only compile code if
17889         SIGNAL_PROVIDED is defined.
17890
17891         * libc/signal/signal.c: Redo whole file so that it works with
17892         current newlib.  Use _kill_r if no signal handler provided.
17893
17894         * libc/sys/{go32,sparc64,sysmec}/Makefile.in: Delete raise and
17895         signal stubs.
17896         * libc/sys/sysvnecv70/Makefile.in: Ditto.
17897         * libc/sys/sysnecv850/Makefile.in: Ditto.
17898
17899         * libc/sys/{go32,sparc64}/signal.c: Delete, stub no longer used.
17900         * libc/sys/sysmec/{raise,signal}.c: Ditto.
17901         * libc/sys/sysvnecv70/signal.s: Ditto.
17902         * libc/sys/sysnecv850/raise.c: Ditto.
17903
17904         * libc/sys/sysnecv850/kill.c (_kill): Encode signal # so that
17905         simulator and debugger can tell the difference between a signal
17906         being raised and an exit system call.
17907
17908         * NEWS: Document software signals being provided.
17909
17910 Mon Dec 23 11:54:19 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
17911
17912         * libc/reent/impure.c (_REENT_ATTR): Delete in favor of
17913         __ATTRIBUTE_IMPURE_PTR__.  Move PowerPC definition to
17914         include/sys/config.h.
17915         (impure_data): Use __ATTRIBUTE_IMPURE_DATA__ for attributes.
17916         Change from 'inpure_data'.
17917         (_impure_ptr): Use __ATTRIBUTE_IMPURE_PTR__ for attributes.  Use
17918         &impure_data, not &inpure_data.
17919
17920         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): If PowerPC
17921         and and System V ABI, define so that _impure_ptr lives in the
17922         .sdata section.
17923
17924 Sun Dec 22 23:33:05 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
17925
17926         * libc/include/sys/reent.h (__ATTRIBUTE_IMPURE_PTR__): Define as
17927         nothing if not defined.
17928         (_impure_ptr): Use __ATTRIBUTRE_IMPURE_PTR__, so a machine can set
17929         its attributes.
17930
17931         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__):
17932
17933 Wed Dec 18 10:12:04 1996  Jeffrey A Law  (law@cygnus.com)
17934
17935         * libc/sys/sysmec/crt0.S: Fix mn10200 stuff.
17936         * libc/sys/sysmec/trap.s: Handle mn10200 too.
17937         * libc/machine/mn10200/setjmp.S: Fix mn10200 stuff.
17938
17939 Mon Dec 16 10:05:36 1996  Jeffrey A Law  (law@cygnus.com)
17940
17941         * libc/sys/sysmec/crt0.S: Handle mn10200 too.
17942
17943 Fri Dec 13 11:05:20 1996  Jeremy Allison <jra@cygnus.com>
17944
17945         * libc/include/sys/errno.h: Added net errno's.
17946
17947 Wed Dec 11 16:24:25 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
17948
17949         * libc/misc/ffs.c: New file to support ffs function for GCC test
17950         gcc.c-torture/execute/960909-1.c.
17951
17952         * libc/misc/Makefile.in ({O,CHEWOUT_}FILES): Add ffs.
17953
17954 Sat Dec  7 10:12:37 1996  Jeffrey A Law  (law@cygnus.com)
17955
17956         * libc/sys/sysmec/crt0.S: Handle underscore prefix.
17957         * libc/sys/sysmec/trap.S: Likewise.
17958
17959 Fri Dec  6 15:08:49 1996  Jim Wilson  <wilson@cygnus.com>
17960
17961         * configure.in (mips*vr4300*-*-*): Delete use of sys/vr4300.
17962         * libc/sys/vr4300/{Makefile.in,crt0.S,syscalls.c}: Delete.
17963
17964 Wed Dec  4 16:25:27 1996  Jeffrey A Law  (law@cygnus.com)
17965
17966         * libc/sys/sysmec/signal.c: Dummy file.
17967         * libc/sys/sysmec/Makefile.in: Build it.
17968
17969 Wed Nov 27 13:10:18 1996  Ian Lance Taylor  <ian@cygnus.com>
17970
17971         * libc/machine/mips/machine/regdef.h: Define pc as $pc for
17972         mips16.
17973
17974 Mon Nov 25 09:58:28 1996  Jeffrey A Law  (law@cygnus.com)
17975
17976         * libc/sys/sysmec/{crt0.S,trap0.S}: Actually try to implement
17977         c-startup and simulator traps.
17978
17979
17980         * libc/sys/sysmec/crt0.S: Remove bogus '_' symbol prefixing
17981         * libc/sys/sysmec/trap0.S: Likewise.
17982
17983 Sat Nov 23 09:01:03 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
17984
17985         * libc/stdlib/mallocr.c (ROUND_TO): If SMALL_MEMORY, set to 0x7 to
17986         round to double word alignment.
17987         (_morecore_r): Combine rounding up pointers to both ROUND_TO and 8
17988         byte alignment.
17989
17990         * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Define if d10v.
17991
17992         * libc/sys/d10v/syscalls.c (_sbrk): Add better checks for running
17993         out of memory.
17994
17995 Mon Nov 18 13:08:26 1996  Jeffrey A Law  (law@cygnus.com)
17996
17997         * configure.in: Handle mn10200 and mn10300.
17998         * libc/include/machine/{ieeefp.h,setjmp.h}: Likewise.
17999         * libc/include/sys/config.h: Likewise.
18000         * libc/sys/sysmec: New directory for mec stuff.
18001         * libc/machine/mn10300: New directory for mn10300 stuff.
18002         * libc/machine/mn10200: Similarly for mn10200 stuff.
18003
18004 Fri Nov 15 16:41:41 1996  Doug Evans  <dje@canuck.cygnus.com>
18005
18006         * libc/sys/arm/crt0.S: Use .text, not .section .text.
18007         * libc/sys/arm/syscalls.c: Rewrite to set errno properly.
18008
18009         * libc/include/sys/types.h (_ST_INT32): New macro, local to file.
18010         (nlink_t): Change type from unsigned int to unsigned short.
18011         (mode_t): Ensure size is 32 bits even if int is 16.
18012         * libc/include/sys/stat.h (st_nlink): Change type to nlink_t.
18013         (st_spare[123]): Change type from int to long.
18014
18015 Fri Nov 15 11:41:50 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18016
18017         * libc/sys/d10v/syscalls.c (_sbrk): Align initial heap_end to 8
18018         byte boundary.
18019
18020         * configure.in (d10v*): Define SMALL_MEMORY.
18021
18022 Mon Nov 11 10:30:44 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18023
18024         * configure.in (powerpc*-{eabi,elf,linux,rtem,sysv,solaris}*): Add
18025         -mrelocatable-lib and -mno-eabi flags.
18026
18027 Mon Nov 11 09:01:39 1996  Jeffrey A Law  (law@cygnus.com)
18028
18029         * libc/machine/h8300/memcpy.S: Fix comments to reflect reality.
18030         Fix handling of mis-aligned source operand when both the
18031         destination & length are properly aligned.
18032
18033 Wed Oct 30 09:41:11 1996  Jeffrey A Law  (law@cygnus.com)
18034
18035         * libc/sys/sysnecv850/Makefile.in (OFILES): Add
18036         times.o, time.o and gettime.o
18037         * libc/sys/sysnecv850/{time.c, times.c, gettime.c}: New files.
18038         * libc/sys/sysnecv850/sys/syscall.h: Add SYS_times and
18039         SYS_gettimeofday.
18040
18041 Tue Oct 29 13:40:09 1996  Jeffrey A Law  (law@cygnus.com)
18042
18043         * libc/sys/sysnecv850/Makefile.in (OFILES): Add access.o
18044         * libc/sys/sysnecv850/access.c: New file.
18045
18046 Mon Oct 21 19:47:02 1996  Ian Lance Taylor  <ian@cygnus.com>
18047
18048         * libc/sys/vr4300/Makefile.in (clean): Remove $(OFILES).
18049
18050         * libc/stdlib/mprec.h (word0, word1): Use __uint32_t, not unsigned
18051         long.
18052
18053 Mon Oct 21 14:43:07 1996  Jeffrey A Law  (law@cygnus.com)
18054
18055         * libc/sys/sysnecv850/crt0.S: Initialize ep and gp registers.
18056
18057 Thu Oct 17 11:47:16 1996  Doug Evans  <dje@seba.cygnus.com>
18058
18059         * libc/include/machine/{ieeefp.h,setjmp.h}: Add m32r support.
18060         * libc/include/sys/config.h: Add m32r support.
18061
18062 Wed Oct 16 23:08:05 1996  Jeffrey A Law  (law@cygnus.com)
18063
18064         * libc/sys/sysnecv850/v850.ld: Remove.  It doesn't belong
18065         here.
18066
18067 Wed Oct 16 21:18:07 1996  Mark Alexander  <marka@cygnus.com>
18068
18069         * libc/include/machine/setjmp.h: Add D10v support.
18070
18071 Tue Oct 15 22:28:26 1996  Jeffrey A Law  (law@cygnus.com)
18072
18073         * configure.in: Configure the "libc/syscalls" directory for
18074         the v850.
18075
18076         * libc/sys/sysnecv850/{close.c, execve.c, fork.c}: Add missing '_'.
18077         * libc/sys/sysnecv850/{fstat.c, getpid.c, kill.c}: Likewise.
18078         * libc/sys/sysnecv850/{lseek.c, open.c, read.c}: Likewise.
18079         * libc/sys/sysnecv850/{sbrk.c, stat.c, unlink.c}: Likewise.
18080         * libc/sys/sysnecv850/{wait.c, write.c}: Likewise.
18081
18082 Tue Oct 15 16:24:39 1996  Stu Grossman  (grossman@critters.cygnus.com)
18083
18084         * libc/sys/sysnecv850/crt0.S (start):  Allocate spill space on
18085         stack for args for main and other routines.  Zero out args for
18086         main.
18087
18088         * libc/sys/sysnecv850/v850.ld:  New.  Linker script to layout memory
18089         correctly.
18090
18091 Tue Oct 15 11:51:42 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18092
18093         * libc/stdio/findfp.c (std): Remove extraneous ';' after
18094         function.
18095
18096         * libc/sys/d10v/sys/syscall.h (SYS_kill): Add.
18097
18098         * libc/sys/d10v/{syscalls.c,trap.S} (_kill,_getpid): Make these
18099         real system calls now.
18100
18101         * libc/stdio/setvbuf (setvbuf): Cast pointers to _POINTER_INT
18102         before casting them to int.
18103         * libc/stdio/tmpnam.c (_tempnam_r): Ditto.
18104
18105         * libc/stdlib/mallocr.c (_morecore_r): Use _POINTER_INT when
18106         aligning pointer.
18107         * libc/string/memset.c (memset): Ditto.
18108
18109         * libc/stdio/vfscanf.c (__svfscanf): When converting to pointer,
18110         first convert ints to _POINTER_INT to eliminate GCC warning.
18111
18112         * libc/stdio/vfprintf.c (_vfprintf_r): Use _POINTER_INT when
18113         processing %p.
18114
18115         * libm/math/ef_scalb.c (__ieee754_scalbf): Cut down range to 32000
18116         from 65000 if ints are only 16 bits.
18117
18118         * libm/math/sf_scalbn.c (scalbnf): Cut down overflow test to 30000
18119         from 50000 if ints are only 16 bits.
18120
18121         * libc/include/sys/config.h (_POINTER_INT): New macro, to give an
18122         int type that is the same size as a pointer.
18123
18124         * libc/misc/dprintf.c (__dprintf): Use _POINTER_INT when
18125         processing %p.
18126         (get_number): Explicitly cast number to long before shifting by 16
18127         or 24, in case ints are short.
18128
18129         * libc/include/sys/config.h (_POINTER_INT): Define as short.
18130
18131 Wed Oct  9 16:54:32 1996  Jeremy Allison <jra@cygnus.com>
18132
18133         * libc/string.h: Added ffs, removed swab.
18134         * libc/sys/errno.h: Added EOPNOTSUPP.
18135         * libc/sys/unistd.h: Added swab.
18136
18137 Thu Oct  3 17:08:50 1996  Jeremy Allison <jra@cygnus.com>
18138
18139         * libc/include/sys/stat.h: Added fchmod.
18140         * libc/include/sys/unistd.h: Added fsync.
18141
18142 Tue Oct  1 17:34:08 1996  Jeremy Allison <jra@cygnus.com>
18143
18144         * libc/include/sys/errno.h: Added defines for EPFNOSUPPORT (96)
18145         and ECONNRESET (104) for cygwin32.
18146
18147 Tue Oct  1 16:24:05 1996  Gavin Koch  <gavin@cygnus.com>
18148
18149         * libc/sys/sysnecv850/_exit.c: added _do_dtors to
18150         do the static destructors.
18151
18152 Mon Sep 30 15:59:05 1996  Stu Grossman  (grossman@critters.cygnus.com)
18153
18154         * libc/sys/sysnecv850/trap.S:  Change I/O to use trap 31.
18155
18156 Mon Sep 30 12:02:50 1996  Doug Evans  <dje@canuck.cygnus.com>
18157
18158         * libc/machine/m32r/{Makefile.in,setjmp.S}: New files.
18159         * configure.in: Recognize m32r-*-*.
18160
18161 Mon Sep 30 00:34:41 1996  James G. Smith  <jsmith@cygnus.co.uk>
18162
18163         * libc/sys/arm/trap.S (__rt_stkovf_split_big,
18164         __rt_stkovf_split_small): Added default software stack overflow
18165         handlers, which just call SWI_Exit.
18166         * libc/sys/arm/crt0.S (_mainCRTStartup): Simple software stack
18167         limit initialisation.
18168
18169 Fri Sep 27 13:08:03 1996  Mark Alexander  <marka@cygnus.com>
18170
18171         * libc/sys/d10v/{trap.S,sys/syscall.h}: Add time() function.
18172
18173 Fri Sep 27 12:32:00 1996  Jeremy Allison <jra@cygnus.com>
18174
18175         * libc/include/sys/types.h: Added ssize_t definition.
18176
18177 Wed Sep 25 14:52:18 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18178
18179         * libc/machine/d10v/setjmp.S: Use ';' for comments.
18180         * libc/sys/d10v/{crt0.S,trap.S}: Ditto.
18181
18182         * libc/machine/d10v/setjmp.S (longjmp): Use exef0t || instead of
18183         branch around a single ldi instruction.
18184
18185         * libc/sys/d10v/crt0.S (_start): Use auto-increment to zero bss.
18186         Call exit, instead of just issuing a stop instruction.
18187
18188 Sun Sep 22 17:26:55 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18189
18190         * libc/sys/d10v/{trap.S,syscalls.c}: Add -mint32 support.
18191
18192 Fri Sep 20 13:23:12 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18193
18194         * libc/stdlib/mprec.h: Explicitly declare all large constants as
18195         longs, and then cast them to __uint32_t.
18196
18197         * libc/include/sys/config.h: Protect against multiple inclusions.
18198
18199 Tue Sep 17 13:10:33 1996  Mark Alexander  <marka@cygnus.com>
18200
18201         * configure.in (d10v*): Set syscall_dir.
18202
18203 Sun Sep 15 10:41:59 1996  Mark Alexander  <marka@cygnus.com>
18204
18205         * libc/sys/d10v/crt0.S: Set stack pointer.
18206
18207 Thu Sep 12 13:02:38 1996  Mark Alexander  <marka@cygnus.com>
18208
18209         * libc/sys/d10v/{trap.S, syscalls.c}: Rewrite most system calls
18210         in assembly for efficiency.  Change calling convention to allow
18211         long ints to be returned.
18212
18213 Wed Sep 11 10:28:18 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18214
18215         * libc/machine/v850/Makefile.in (setjmp.o): Fix dependency.
18216
18217 Thu Sep  5 19:23:06 1996  Doug Evans  <dje@canuck.cygnus.com>
18218
18219         * libc/posix/execvp.c (execvp): Don't search PATH if file has '/'.
18220         Handle empty entries in $PATH.
18221
18222 Tue Sep 03 18:15:02 1996  Mark Alexander  <marka@cygnus.com>
18223
18224         * libc/machine/d10v/setjmp.S: Make it really work.
18225
18226 Tue Sep  3 12:16:26 1996  Ian Lance Taylor  <ian@cygnus.com>
18227
18228         * libc/sys/sh/crt0.S: If __ELF__, use ELF section attributes for
18229         the .stack section.
18230
18231 Tue Sep  3 10:08:45 1996  Jeffrey A Law  (law@cygnus.com)
18232
18233         * sys/sysnecv850/sys/file.h: Remove.
18234         * sys/sysnecv850/sys/syscall.h: New file.
18235         * sys/sysnecv850/{misc.c,syscalls.c,malloc.c}: Deleted.
18236         * sys/sysnecv850/{chmod.c, chown.c, close.c, creat.c} New files.
18237         * sys/sysnecv850/{execv.c, execve.c, fork.c, fstat.c} New files.
18238         * sys/sysnecv850/{getpid.c, isatty.c, kill.c, lseek.c} New files.
18239         * sys/sysnecv850/{open.c, pipe.c, raise.c, read.c} New files.
18240         * sys/sysnecv850/{stat.c, unlink.c, utime.c, wait.c} New files.
18241         * sys/sysnec850/trap.S: New file.
18242         * sys/sysnecv850/{_exit.c, write.c}: Use new TRAP0 mechanism for
18243         syscalls.
18244         * sys/sysnecv850/crt0.S: Use cmp/bl, not tst/bz.
18245         * sys/sysnec850/sbrk.c: New version.
18246
18247 Sun Sep  1 20:08:27 1996  Jeffrey A Law  (law@cygnus.com)
18248
18249         * sys/sysnecv850/crt0.S: Fix order of comparison args.  Loop
18250         as long as r6 is less than r7.
18251
18252 Sun Sep  1 13:54:19 1996  Ian Lance Taylor  <ian@cygnus.com>
18253
18254         * Makefile.in (mostlyclean): Separate from clean target.  Don't
18255         remove *.a or targ-include.
18256         * libc/machine/sparc/Makefile.in (mostlyclean): New target.
18257
18258 Sun Sep  1 11:35:26 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18259
18260         * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Define for
18261         d10v.
18262         (__SMALL_BITFIELDS): Ditto.
18263
18264         * libc/include/sys/config.h (_DOUBLE_IS_32BITS): Define for d10v.
18265
18266 Sat Aug 31 16:42:36 1996  Jeffrey A Law  (law@cygnus.com)
18267
18268         * libc/sys/sysnecv850/misc.c (raise, getpid, kill): Remove '_'
18269         prefix.
18270
18271         * libc/sys/sysnecv850/sbrk.c (sbrk): Remove '_' prefix.
18272         * libc/sys/sysnecv850/syscalls.c (read, lseek, close): Likewise.
18273         * libc/sys/sysnecv850/syscalls.c (fstat, open, close): Likewise.
18274         * libc/sys/sysnecv850/write.c (write): Likewise.
18275
18276         * libc/sys/sysnecv850/crt0.S: Don't try to zero out an empty
18277         .bss.
18278
18279 Fri Aug 30 11:18:45 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18280
18281         * libc/include/sys/config.h: Define INT_MAX, UINT_MAX
18282         appropriately for D10V, depending on -mint16/-mint32.
18283
18284 Thu Aug 29 16:09:37 1996  Mark Alexander  <marka@cygnus.com>
18285
18286         * configure.in: Add cases for D10V.
18287
18288 Thu Aug 29 17:03:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18289
18290         * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
18291
18292 Wed Aug 28 21:05:52 1996  Jeffrey A Law  (law@cygnus.com)
18293
18294         * libc/include/machine/ieeefp.h: Fix typo.
18295
18296 Wed Aug 28 19:47:55 1996  Mark Alexander  <marka@cygnus.com>
18297
18298         * libc/sys/d10v: New directory for D10V stuff.
18299         * libc/include/machine/ieeefp.h: Add D10V defines.
18300
18301 Mon Aug 26 13:34:58 1996  Doug Evans  <dje@canuck.cygnus.com>
18302
18303         * libc/include/sys/errno.h: Add winsup/include/sys/errno.h values:
18304         ELOOP, ENOBUFS, EAFNOSUPPORT, EPROTOTYPE, ENOTSOCK, ENOPROTOOPT,
18305         ESHUTDOWN, ECONNREFUSED, EADDRINUSE, ECONNABORTED, EWOULDBLOCK.
18306         * libc/string/strerror.c (strerror): Add them.
18307
18308 Thu Aug 22 16:38:19 1996  Jeffrey A Law  (law@cygnus.com)
18309
18310         * libc/sys/sysnecv850: New directory for v850 stuff.
18311
18312         * libc/machine/v850: New directory for v850 stuff.
18313         * libc/machine/v850/setjmp.S: setjmp/longjmp support.
18314
18315         * configure.in: Add support for the v850.
18316
18317         * libc/include/machine/ieeefp.h: Add v850 defines.
18318         * libc/include/machine/setjmp.h: Likewise.
18319         * libc/include/sys/config.h: Add v850 defines.
18320
18321 Sat Aug 17 04:06:36 1996  Geoffrey Noer  <noer@cygnus.com>
18322
18323         * libc/include/machine/ieeefp.h
18324         * libc/include/machine/setjmp.h
18325         * libc/include/sys/fcntl.h
18326         * libc/include/sys/signal.h
18327         * libc/include/sys/types.h
18328         * libc/stdlib/system.c:
18329         Fix preprocessor defines to match new scheme (_WIN32 for WIN32
18330         API availability, __CYGWIN32__ for cygwin32 environment specific).
18331
18332 Thu Aug 15 17:09:21 1996  Geoffrey Noer  <noer@cygnus.com>
18333
18334         * libc/include/stdlib.h: add multibyte character functions.  Add
18335         __eprintf for assert.
18336
18337 Thu Aug 15 11:15:40 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18338
18339         * libc/stdlib/malloc.h (MALLOC_ALIGNMENT): Use either pointer
18340         arithmetic or __alignof__ to properly get the alignment, instead
18341         of hardwiring it to 4.
18342
18343 Wed Aug 14 23:43:28 1996  Geoffrey Noer  <noer@cygnus.com>
18344
18345         * libc/stdio/fseek.c: add fflush call to adjust seek offset
18346         on append stream (fix from NetBSD sources), adjust curoff offset
18347         for ungetc's benefit.
18348         * libc/stdio/ftell.c: adjust curoff offset for ungetc's benefit.
18349         * libc/stdio/rewind.c: replace code with up to date NetBSD
18350         code to undo hacks made to work around above problem of not
18351         having fflush call mentioned above
18352
18353 Fri Aug  2 18:28:07 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
18354
18355         * libc/reent/{closer.c, execr.c, fstatr.c, linkr.c, lseekr.c,
18356         openr.c, readr.c, sbrkr.c, signalr.c, statr.c, timer.c, writer.c}:
18357         Partially revert last changes.  The thread specific errno is set
18358         iff if the underlying syscall fails and the global errno is not
18359         zero.
18360
18361 Fri Jul 19 11:41:52 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
18362
18363         * libc/reent/filer.c: Removed files, all functions have split out
18364         into their own files.
18365         * libc/reent/{closer.c, lseekr.c, openr.c, readr.c, writer.c}:
18366         New files containing functions formally in filer.c
18367         * libc/reent/Makefile.in: Updated for above change.
18368
18369         * libc/reent/execr.c (_fork_r, _wait_r): Set errno if underlying
18370         syscall fails, not if errno is changed.
18371         * libc/reent/filer.c (_open_r, _close_r, _lseek_r, _read_r,
18372         _write_r): Likewise.
18373         * libc/reent/fstatr.c (_fstat_r): Likewise.
18374         * libc/reent/linkr.c (_link_r, _unlink_r): Likewise.
18375         * libc/reent/sbrkr.c (_sbrk_r): Likewise.
18376         * libc/reent/signalr.c (_kill_r): Likewise.
18377         * libc/reent/statr.c (_stat_r): Likewise.
18378         * libc/reent/timer.c (_gettimeofday_r): Likewise.
18379
18380         * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, sbrkr.c,
18381         signalr.c, statr.c, timer.c} (errno): declare extern rather
18382         than as a common.
18383
18384         * libc/stdio/vfprintf.c (__sbprintf): Use the VFPRINTF macro
18385         instead of calling vfprintf so that i*printf will not require
18386         floating point support code.
18387
18388 Mon Jul 15 16:50:59 1996  Doug Evans  <dje@canuck.cygnus.com>
18389
18390         * libc/posix/execvp.c (execvp): Use posix_path_list_p to determine
18391         path delimiter.
18392         * libc/include/sys/unistd.h (_SC_PATH_RULES): Delete.
18393         (_PATH_RULES_{UNKNOWN,WIN32,POSIX}): Delete.
18394
18395 Thu Jul 11 14:34:14 1996  Geoffrey Noer  <noer@cygnus.com>
18396
18397         * libc/include/signal.h: _sig_func_ptr function takes an int
18398         * libc/include/sys/signal.h: sa_handler function takes an int
18399
18400 Tue Jul  9 21:22:32 1996  Jeffrey A Law  (law@cygnus.com)
18401
18402         * libc/include/machine/ieeefp.h: Simplify H8/S support.
18403         * libc/include/sys/config.h: Add missing H8/S conditional.
18404
18405 Sun Jun 30 12:05:46 1996  Doug Evans  <dje@canuck.cygnus.com>
18406
18407         * libc/include/sys/unistd.h (MAXPATHLEN): Add cygwin32 value.
18408
18409 Wed Jun 26 09:57:54 1996  Jeffrey A Law  (law@cygnus.com)
18410
18411         * libc/include/machine/setjmp.h: Handle H8/S.
18412         * libc/include/machine/ieeefp.h: Likewise.
18413         * libc/include/sys/config.h: Likewise.
18414         * libc/machine/h8300/{defines.h, memcpy.S, memset.S}: Likewise.
18415         * libc/machine/h8300/{reg_memcpy.S, reg_memset.S}: Likewise.
18416         * libc/machine/h8300/{strcmp.S, setjmp.S}: Likewise.
18417         * libc/sys/h8300hms/crt0.S: Likewise.
18418
18419 Tue Jun 25 23:15:45 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
18420
18421         * Makefile.in (datadir): Set to $(prefix)/share.
18422         (oldincludedir, docdir): Removed.
18423         * doc/Makefile.in (datadir): Set to $(prefix)/share.
18424         (oldincludedir, docdir): Removed.
18425         * libc/Makefile.in (datadir): Set to $(prefix)/share.
18426         (oldincludedir, docdir): Removed.
18427         * libm/Makefile.in (datadir): Set to $(prefix)/share.
18428         (oldincludedir, docdir): Removed.
18429
18430 Fri Jun 21 19:24:41 1996  Ian Lance Taylor  <ian@cygnus.com>
18431
18432         * libc/include/sys/reent.h (_REENT_INIT): Update for change to
18433         _reent struct.
18434
18435 Wed Jun 19 14:00:09 1996  Doug Evans  <dje@canuck.cygnus.com>
18436
18437         * libc/posix/execvp.c: Delete _WIN32 support.  For __CYGWIN32__
18438         fetch current path rules with sysconf and handler posix/win32
18439         appropriately.
18440
18441         * libc/include/sys/unistd.h (_PATH_RULES{,_POSIX,_WIN32}): Define.
18442
18443         * libc/include/process.h: Prepend '_' to P_{WAIT,NOWAIT,OVERLAY}.
18444         (WAIT_CHILD): Always define.
18445
18446 Sat Jun 15 17:50:42 1996  Ian Lance Taylor  <ian@cygnus.com>
18447
18448         * libc/stdlib/eprintf.c: New file.
18449         * libc/stdlib/Makefile.in (OFILES): Add eprintf.o.
18450         (eprintf.o): New target.
18451
18452 Thu Jun 13 16:44:32 1996  Doug Evans  <dje@canuck.cygnus.com>
18453
18454         * libc/sys/cygwin32/crt0.c (__cygwin_crt0_bp): New global.
18455         (mainCRTStartup): Do int3 if __cygwin_crt0_bp non-zero.
18456
18457 Thu Jun 13 17:45:17 1996  Mike Meissner  <meissner@rtl.cygnus.com>
18458
18459         * libc/include/machine/ieeefp.h: Add support for AIX and Windows
18460         NT in PowerPC endianess cases.
18461
18462 Tue Jun 11 12:26:28 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18463
18464         * libc/include/machine/ieeefp.h: Clean up PowerPC endianess.
18465
18466 Thu Jun  6 11:34:20 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18467
18468         * libc/string/strtok.c: Fix doc typo.
18469
18470 Mon Jun  3 11:30:00 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
18471
18472         * libc/include/sys/reent.h (struct _reent): Removed _asctime,
18473         _next, _scanpoint, _signgam fields.
18474
18475         * libc/include/stdlib.h (rand_r): Added new declaration.
18476         (_rand_r, _srand_r): Removed declarations.
18477         * libc/stdlib/rand.c (_rand_r, _srand_r): Removed, these functions
18478         have been made obsolete by rand_r.
18479         * libc/stdlib/rand_r.c: New file, rand_r function as specified
18480         by POSIX.1c.
18481
18482         * libc/string/strtok.c: Update documentation to describe
18483         strtok_r().
18484
18485 Sat Jun  1 23:50:39 1996  Michael Meissner  <meissner@cygnus.com>
18486
18487         * libc/include/sys/stat.h (stat structure): Use the expanded stat
18488         structure on Solaris, and PowerPC systems even though __svr4__ is
18489         defined.
18490
18491 Tue May 28 13:02:42 1996  Doug Evans  <dje@canuck.cygnus.com>
18492
18493         * libc/sys/go32/sys/errno.h (ENOSYS,ESPIPE): Keep values <= 255.
18494
18495 Fri May 17 10:34:44 1996  Ian Lance Taylor  <ian@cygnus.com>
18496
18497         * host/any: Use ../.. rather than .. to get to the main build
18498         directory.  This matches the current layout of the build
18499         directory.
18500
18501 Wed May 15 15:52:27 1996  Jeffrey A Law  (law@cygnus.com)
18502
18503         * libc/machine/h8300/__main.S: Delete.  No longer needed.
18504         * libc/machine/h8300/Makefile.in: Corresponding changes.
18505         * libc/sys/h8300hms/crt1.c: New file.
18506         * libc/sys/h8300hms/Makefile.in: Corresponding changes.
18507         * libc/sys/h8300hms/crt0.s: Call __main.
18508
18509         * libc/sys/h8300hms/crt0.S: Use temporary label names
18510         for branch targets.
18511
18512 Mon May 13 14:26:30 1996  Doug Evans  <dje@canuck.cygnus.com>
18513
18514         * libc/stdio/fopen.c (_fopen_r): Fix arguments to fseek.
18515
18516 Fri May  3 16:38:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18517
18518         * libc/reent/impure.c (_impure_ptr): Force the impure pointer into
18519         .sdata on the PowerPC so that we can link newlib with code
18520         compiled with -msdata.
18521
18522 Mon Apr 29 21:38:02 1996  Doug Evans  <dje@canuck.cygnus.com>
18523
18524         * libc/sys/arm/syscalls.c (_sbrk): Rename end to __end__.
18525
18526 Thu Apr 25 06:38:59 1996  Michael Meissner  <meissner@cygnus.com>
18527
18528         * libc/sys/cygwin32/crt0.c (mainCRTStartup): On PowerPC, set the
18529         exception handler to __cygwin_exception_handler.
18530
18531 Tue Apr 23 15:14:20 1996  Ian Lance Taylor  <ian@cygnus.com>
18532
18533         * libc/include/machine/setjmp.h: Check _AM29K, not ___AM29K__.
18534
18535 Sun Apr 21 12:11:51 1996  Doug Evans  <dje@blues.cygnus.com>
18536
18537         * libm/math/Makefile.in ({w,wf}_cabs.o,{w,wf}_drem.o): Add rule for
18538         SunOS VPATH.
18539         * libc/stdlib/Makefile.in (atoff.o,atol.o,mblen.o,mbstowcs.o,
18540         wcstombs.o): Likewise.
18541
18542 Thu Apr 18 12:37:01 1996  Doug Evans  <dje@canuck.cygnus.com>
18543
18544         * libc/stdlib/environ.c (initial_env): New static local.
18545         (environ): Point to `initial_env'.
18546
18547         * libc/include/machine/setjmp.h: Clean up.
18548         (__H8300H__,__PPC__): Define _JBTYPE.
18549         (__arm__): Provide entry for.
18550         (sigjmp_buf): Delete.
18551         (jmp_buf): Use _JBTYPE if defined, otherwise int.
18552
18553 Thu Apr 18 12:10:52 1996  Jeffrey A Law  (law@cygnus.com)
18554
18555         * libc/machine/h8300/strcmp.S: Sign extend the result to
18556         32bits so we don't lose with -mint32.
18557
18558 Sun Apr 14 19:59:52 1996  Doug Evans  <dje@canuck.cygnus.com>
18559
18560         * libc/sys/go32/sys/errno.h: New file.
18561         * libc/sys/go32/Makefile.in (stat.o): Depend on stat.c.
18562         * libc/sys/go32/gerrno.s (syscall_error): Call __errno to get
18563         errno's address (make compatible with rest of newlib).
18564         * libc/sys/go32/stat.c (fixinode): Set errno upon failure.
18565         * libc/string/strerror.c (strerror): Surround each case with #ifdef.
18566
18567 Thu Mar 28 13:44:42 1996  Doug Evans  <dje@canuck.cygnus.com>
18568
18569         * libc/machine/sparc/{scan.c,shuffle.c}: New files.
18570         * libc/machine/sparc/Makefile.in: Build them.
18571         * libc/machine/sparc/machine/sparclet.h: New file.
18572
18573 Mon Mar 25 15:29:14 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
18574
18575         * libc/machine/sh/asm.h: New file.
18576         * libc/machine/sh/setjmp.S: Only save clobbered registers.  Added
18577         support for SH3e's FP registers.  Use asm.h.
18578
18579 Mon Mar 25 11:59:23 1996  Jeffrey A Law  (law@cygnus.com)
18580
18581         * libc/stdio/vfprintf.c (cvt): Accept a reent structure
18582         as first argument.  Call _dtoa_r and pass the reent structure
18583         instead of calling __dtoa.
18584
18585 Fri Mar 22 13:59:37 1996  Jeffrey A Law  (law@cygnus.com)
18586
18587         * libc/include/sys/config.h: Define DOUBLE_IS_32BITS for
18588         the h8300, h8500, and others.  Add comments for some rather
18589         dubious code.
18590
18591 Thu Mar 14 18:04:43 1996  Ian Lance Taylor  <ian@cygnus.com>
18592
18593         * Makefile.in (check): Check that testsuite exists before cd.
18594
18595 Tue Mar 12 11:46:47 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18596
18597         * libc/include/string.h (strsep): Correct prototype.
18598
18599 Mon Mar 11 09:55:19 1996  Doug Evans  <dje@charmed.cygnus.com>
18600
18601         * libc/sys/h8300/_exit.c (_exit,__exit): Set r0 to 0 before `sleep'.
18602         * libc/sys/h8300/misc.c (_kill): Set r0 to indicate abort and `sleep'.
18603         * libc/sys/h8300/crt0.S (_start): Call exit instead of `sleep'.
18604
18605 Wed Mar  6 11:51:55 1996  Doug Evans  <dje@charmed.cygnus.com>
18606
18607         * libc/posix/{creat.c,isatty.c}: New files.
18608         * libc/posix/Makefile.in (OFILES): Add creat.o, isatty.o.
18609
18610         * libc/sys/sparc64/crt0.S (environ): Delete.
18611         (.LHaveBias): Renamed from HaveBias.
18612
18613 Thu Feb 15 10:48:37 1996  Doug Evans  <dje@charmed.cygnus.com>
18614
18615         * libc/stdlib/mallocr.c (etext): Move decl inside ifdef WARN_VLIMIT.
18616         (_morecore_r): Delete SBRK_IS_ALLOC support.
18617
18618 Tue Feb 13 09:44:09 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18619
18620         * libc/sys/cygwin32/Makefile.in (lib.a): Make lib.a with a dummy
18621         module rather than touch, so we don't get warning messages when
18622         all of the libraries are combined into libc.a.
18623
18624 Tue Feb 13 06:32:07 1996  Doug Evans  <dje@charmed.cygnus.com>
18625
18626         * libc/sys/sparclite/{Makefile.in,crt0.s}: Deleted.
18627         crt0.s replaced by version in libgloss.
18628
18629 Mon Feb  5 15:17:51 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
18630
18631         * libc/reent/Makefile.in (OFILES): Add impure.o.
18632         * libc/reent/impure.o: New file, define initial reentrancy struct.
18633         * libc/reent/reent.c: Remove above definition.
18634
18635         * libm/math/sf_asinh.c: Fix typo.
18636
18637         * Makefile.in (MATHOBJS_IN_LIBC): Removed sr_ldexp.o and
18638         srf_ldexp.o.
18639
18640         * libm/libm.texinfo: Change documentation to reflect changes
18641         in reentrancy model.
18642         * libm/math/w_gamma.c: Likewise.
18643
18644 Wed Jan 31 18:49:45 1996  Steve Chamberlain  <sac@slash.cygnus.com>
18645
18646         * configure.in (*-*-cygwin32): New.
18647         (*-*-win32): Deleted.
18648         * libc/sys/win32 renamed libc/sys/cygwin32.
18649
18650 Tue Jan 30 22:09:03 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18651
18652         * libc/include/sys/file.h: New include file.
18653
18654 Fri Jan 26 15:52:54 1996  Steve Chamberlain  <sac@slash.cygnus.com>
18655
18656         * libc/include/machine/setjmp.h: Increase size of PPC jmp_buf.
18657
18658 Tue Jan 23 17:49:16 1996  Steve Chamberlain  <sac@slash.cygnus.com>
18659
18660         * libc/include/sys/wait.h (WIFSIGNALED): Fix.
18661
18662 Tue Jan 16 09:28:10 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18663
18664         * doc/makedoc.c (realloc): Declare at file scope.
18665         (catchar): Not here.
18666
18667 Wed Dec 27 15:45:23 1995  Doug Evans  <dje@canuck.cygnus.com>
18668
18669         * Makefile.in (VERSION): Update to 1.7.0.
18670         * {libc,libm}/Makefile.in (VERSION): Likewise.
18671         * configure.in: Minor clean up of multilib stuff.
18672
18673         From David Johnson <davidj@ICSI.Berkeley.EDU>
18674         * {libc,libm}/Makefile.in (lib[cm].a): Delete library first.
18675
18676         * libc/stdlib/environ.c: New file.
18677         * libc/stdlib/Makefile.in (OFILES): Build it.
18678         * libc/sys/h8500hms/crt0.c (environ): Deleted.
18679         * libc/sys/m88kbug/crt0.c (environ): Deleted.
18680         * libc/sys/z8ksim/crt0.c (environ): Deleted.
18681         * libc/sys/netware/environ.c: Deleted.
18682
18683 Tue Dec 19 15:24:46 1995  Kim Knuttila  <krk@cygnus.com>
18684
18685         * configure.in (links): set sys_dir, posix_dir, syscall_dir
18686
18687 Wed Dec 13 04:16:25 1995  Michael Meissner  <meissner@wogglebug.tiac.net>
18688
18689         * doc/makedoc.c (init_string_with_size,nextword): Move malloc
18690         declaration out to external scope and declare it PTR, not char *.
18691
18692 Mon Dec 11 17:35:12 1995  steve chamberlain  <sac@slash.cygnus.com>
18693
18694         * libc/include/sys/unistd.h (getpagesize): New declaration.
18695         (_SC_PAGESIZE): New definition.
18696         * libc/include/time.h (CLK_TCK): Defined as CLOCKS_PER_SEC.
18697         * libc/configure.in (i[345]86-*-win32): Remove -DNO_FORK.
18698
18699 Fri Dec  1 16:48:46 1995  James G. Smith  <jsmith@cygnus.co.uk>
18700
18701         * libc/sys/vr4300/syscalls.c (sbrk): Fixed memory
18702         addressing. System call returns size, not (last address + 1).
18703
18704 Thu Nov 30 15:05:26 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18705
18706         * libm/math/*.c: Removed _foo_r() reentrancy API.
18707         * libc/include/math.h: Removed _foo_r prototypes and macros.
18708
18709         * libm/math/*.c: On systems with IEEE single precision "doubles"
18710         move foo() -> foof() wrapper code from the files that implement
18711         the standard IEEE double precision functions to the files that
18712         implement IEEE single precision functions. (ie. On those systems
18713         sin is moved from s_sin.c to sf_sin.c).  There should eventually
18714         be use of a C extension (like gcc's alias attribute) so that the
18715         wrappers are not needed at all.
18716
18717         * libc/sys/sysnec810/sbrk.c: Cast &end to char * to get around
18718         strict NEC V810 compiler.
18719         * libc/misc/dprintf.c (getnumber): Cast char * to unsigned char *
18720         for same reason.
18721
18722 Wed Nov 29 14:25:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18723
18724         * libc/stdlib/strtol.c (_strtol_r): Replaced with implementation
18725         from NetBSD C library.
18726         * libc/stdlib/strtoul.c (_strtoul_r): Likewise.
18727
18728         * libc/stdlib/assert.c (__assert): Renamed from __assertfail
18729         and adapted from implementation I wrote for NetBSD C library.
18730         The difference is __assert doesn't take a format argument,
18731         so that there won't be multiple copies of the same string
18732         constant in the executable if assertions are enabled in
18733         more than one source module.
18734         * libc/include/assert.h (assert): Changed to call __assert.
18735
18736 Tue Nov 28 16:54:26 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18737
18738         * libc/stdlib/strtod.c (_strtod_r): Changed to not assign to
18739         word1 on systems with 32 bit doubles.
18740         * libc/stdlib/qsort.c (qsort): Cast some void *'s to char *'s
18741         so that we can do arithmetic on them.
18742         * libc/misc/dprintf.c: Changed to support stdarg.h for ANSI
18743         compilers.
18744
18745 Tue Nov 28 16:03:32 1995  Doug Evans  <dje@canuck.cygnus.com>
18746
18747         * libc/sys/arm/crt0.S: Zero bss.
18748
18749 Fri Nov 24 16:09:23 1995  Doug Evans  <dje@deneb.cygnus.com>
18750
18751         * libc/include/unctrl.h: New file.
18752         * libc/misc/{Makefile.in,dprintf.c,unctrl.c,misc.tex}: New files.
18753         * configure.in (subdirs): Add libc/misc.
18754         * libc/Makefile.in (SUBDIRS): Add misc.
18755         (SUBLIBS): Add misc/lib.a.
18756
18757         * libc/include/sys/reent.h (struct _reent): Make __sf last member.
18758
18759 Wed Nov 22 19:49:47 1995  Doug Evans  <dje@deneb.cygnus.com>
18760
18761         * libc/stdio/vfprintf.c (__sbprintf): Init fake._data.
18762         (_vfprintf_r): Call CHECK_INIT.
18763
18764 Tue Nov 14 02:52:12 1995  Doug Evans  <dje@canuck.cygnus.com>
18765
18766         * Makefile.in (MULTITOP): Delete.
18767         (MULTISRCTOP, MULTIBUILDTOP): Add.
18768         * configure.in: Delete call to cfg-ml-com.in.  Call config-ml.in
18769         instead of cfg-ml-pos.in.
18770
18771 Wed Nov  8 01:24:08 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
18772
18773         * libc/sys/vr4300/syscalls.c: Added clean version of sbrk().
18774         * libc/sys/vr4300/crt0.S: Cleaned up. Added check for FPU
18775         presence.
18776
18777 Thu Nov  2 22:25:06 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
18778
18779         * libc/string/strtok.c: Include string.h to pick up strtok_r
18780         prototype.
18781
18782 Wed Nov  1 18:54:11 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
18783
18784         * libc/string/strtok.c: include <_ansi.h>.
18785         * libc/time/asctime_r.c: `reresult' -> `result'.
18786
18787 Wed Nov  1 14:35:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18788
18789         * libc/time/{ctime.c, gmtime.c, lcltime.c}: Wrap functions
18790         in #ifndef _REENT_ONLY ... #endif conditional.
18791
18792         * libc/include/string.h (_strtok_r): Remove declaration.
18793         * libc/include/time.h (_asctime_r): Remove declaration.
18794         * libc/string/strtok.c (_strtok_r): Removed.
18795         * libc/time/asctime.c (_asctime_r): Removed.
18796
18797         * libc/string/Makefile.in (OFILES): Add new object.
18798         * libc/string/strtok_r.c: New file.  strtok_r function as
18799         specified by POSIX.1c, adapted from strtok implementation
18800         from NetBSD C library.
18801         * libc/string/strtok.c (strtok): Reimplemented in terms of
18802         strtok_r.
18803
18804         * libc/time/Makefile.in (OFILES): Add new objects.
18805         * libc/time/{asctime_r.c, ctime_r.c, gmtime_r.c, lcltime_r.c}:
18806         New files, reentrant time functions specified by POSIX.1c.
18807         * libc/time/{asctime.c, ctime.c, gmtime.c, lcltime.c}: Non-
18808         reentrant time functions re-written in terms of reentrant
18809         functions.
18810         * libc/time/lcltime.c: Renamed from localtime.c
18811
18812         * libc/include/time.h: Add prototypes for asctime_r, ctime_r,
18813         gmtime_r, and localtime_r.
18814
18815 Sat Oct 28 14:34:31 1995  steve chamberlain  <sac@slash.cygnus.com>
18816
18817         * libc/sys/win32/crt0.c (mainCRTStartup): Call cygwin_crt0.
18818         * libc/include/sys/unistd.h (getlogin): Revert change of
18819         Oct 19.
18820         * libc/include/sys/signal.h (sigprocmask): Change prototype
18821         so it compiles with c++.
18822
18823 Wed Oct 25 15:43:18 1995  Michael Meissner  <meissner@cygnus.com>
18824
18825         * libc/include/machine/setjmp.h (PowerPC _JBLEN): Consider it a
18826         PowerPC if __PPC__ is defined.  Bump jump_buf length to 62 ints,
18827         to give some room in case we need to align the jmp_buf.
18828
18829         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Rewrite to use
18830         the new ppc-asm.h include file the compiler provides to specify
18831         function prologue/epilogue.  Eliminate saves of the xer and ctr
18832         registers, which are volatile.  Before starting to save registers,
18833         align to 8 byte boundary.
18834
18835 Mon Oct 23 11:20:51 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
18836
18837         * libc/sys/vr4300/syscalls.c: Added empty kill() function,
18838         referenced by standard libraries.
18839
18840 Thu Oct 19 21:39:47 1995  Fred Fish  <fnf@cygnus.com>
18841
18842         * libc/unix/Makefile.in, libc/string/Makefile.in,
18843         libc/stdio/Makefile.in, libc/reent/Makefile.in,
18844         libc/posix/Makefile.in:
18845         Remove tabs from otherwise empty line.  Confuses some
18846         older non-GNU versions of "make".
18847
18848 Thu Oct 19 16:32:17 1995  steve chamberlain  <sac@slash.cygnus.com>
18849
18850         * libc/sys/unistd.h (getlogin): Returns const char *.
18851
18852 Wed Oct 18 12:57:50 1995  steve chamberlain  <sac@slash.cygnus.com>
18853
18854         * libc/include/fcntl.h (O_BINARY, O_TEXT): New.
18855         * libc/include/errno.h: Moved into and include...
18856         * libc/include/sys/errno.h: New file.
18857         * libc/include/sys/wait.h: New file.
18858         * libc/stdio/rename.c (_rename_r): Use _rename system call if available.
18859         * libc/sys/win32/*: Moved out.
18860         * libc/sys/win32/crt0.c: Rewritten to cope with shared library.
18861         * configure.in (i[345]86-*-win32): HAVE_RENAME
18862
18863 Wed Oct 18 09:58:27 1995  Brendan Kehoe  <brendan@lisa.cygnus.com>
18864
18865         * libc/unix/sigset.c (sigemptyset, sigaddset): Prefix #undef to
18866         avoid macro expansion for these two names.
18867
18868 Tue Oct 17 08:45:33 1995  Doug Evans  <dje@canuck.cygnus.com>
18869
18870         * libc/machine/h8500/psi.S: r6 renamed to fp.
18871
18872 Sun Oct 15 12:58:10 1995  Michael Meissner  <meissner@wogglebug.tiac.net>
18873
18874         * configure.in (powerpc*): No longer need to define
18875         NO_LONGLONG_POINTERS to supress warnings.
18876
18877 Sat Oct 14 12:55:08 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
18878
18879         * libc/reent/reent.c (_reclaim_reent): Call cleanup indirectly
18880         through PTR instead of directly.
18881
18882         * libc/sys/sh/crt0.S: Clean up formatting.  Delete unused
18883         non-standard constructor support.
18884
18885 Thu Oct 12 11:39:42 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18886
18887         * libc/stdlib/dtoa.c (_dtoa_r): Set result pointer to the
18888         address of the Bigint instead of the address of its _x field,
18889         as the size the result buffer was calculated accordingly.
18890         Fix from Jim Wilson <wilson@chestnut@cygnus.com>.
18891
18892         * libc/stdlib/{div.c, ldiv.c}: Replaced with implementation
18893         from NetBSD C library.  No longer special cases division by
18894         zero (which needs to be done by the application anyway), but
18895         it doesn't need to call abs() (or labs()) four times either.
18896
18897         * libc/stdlib/qsort.c: Replaced with implementation from
18898         NetBSD C library.
18899
18900 Tue Oct 10 14:01:10 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18901
18902         * libc/stdio/vfprintf.c: Replaced with implementation from
18903         NetBSD C library (which is derived from the 4.4BSD C library).
18904         * libc/stdio/cvt.c: Removed.
18905         * libc/stdio/Makefile: Updated.
18906
18907 Tue Oct 10 12:15:23 1995  steve chamberlain  <sac@slash.cygnus.com>
18908
18909         * libc/sys/win32/syscalls.c (rename): New.
18910         * libc/sys/win32/include/winkernel.h (MoveFileExA): New.
18911
18912 Fri Oct  6 12:18:43 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
18913
18914         * libc/machine/sh/Makefile.in (setjmp.o): Depend on setjmp.S.
18915         * libc/machine/sh/setjmp.S: Rename from setjmp.s.
18916
18917         * libc/sys/sh/Makefile.in (OFILES, all): Delete setjmp.o.
18918         (setjmp.o): Delete rule to build setjmp.o.
18919         * libc/sys/sh/setjmp.S: Delete file.
18920
18921 Fri Oct  6 11:19:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18922
18923         * libc/stdlib/mprec.c (d2b): Added support for _DOUBLE_IS_32BITS.
18924         * libc/stdlib/mprec.h: Fixed constants used for IEEE single float
18925         format.  Added #defines to map d2b, i2b, low0bits, lshift, mult,
18926         pow5mult and s2b to identifiers with leading underscores.
18927         * libc/stdlib/Makefile.in: Add mprec.h as a dependency to dtoa.o,
18928         ecvtbuf.o, mprec.o and strtod.o.  Sort dependencies.
18929
18930 Thu Oct  5 17:27:30 1995  steve chamberlain  <sac@slash.cygnus.com>
18931
18932         * libc/sys/posix/popen.c (sys/types.h): Include.
18933
18934 Thu Oct  5 16:33:01 1995  Doug Evans  <dje@canuck.cygnus.com>
18935
18936         * libc/sys/win32/syscalls.h (fhandler): New struct.
18937         (__lookup_fhandler, __lookup_fhandler_hook): Declare.
18938         (__fhandler_normal): Declare.
18939         (hinfo): New member op_handlers.
18940         * libc/sys/win32/syscalls.c (__read): Don't validate fd.
18941         (__write): Likewise.
18942         (_read, _write, _open, _close, _lseek): Validate fd here.
18943         Move file type specific stuff to foo_normal.
18944         (read_normal, write_normal, open_normal, close_normal, lseek_normal):
18945         New functions.
18946         (__lookup_fhandler): New function.
18947         (__lookup_fhandler_hook, __fhandler_normal): New variables.
18948
18949         From anders.blomdell@control.lth.se (Anders Blomdell)
18950         * libc/sys/win32/crt0.c (vfork_init): Unset __FD_TABLE__.
18951         Don't touch standard handles.
18952         * libc/sys/win32/spawn.c (_spawn): Use STARTF_USESTDHANDLES.
18953         (_execve): Only create __FD_TABLE__ if necessary.
18954         * libc/sys/win32/include/winkernel.h (STARTF_*): Define.
18955
18956 Thu Oct  5 14:25:14 1995  steve chamberlain  <sac@slash.cygnus.com>
18957
18958         * libc/sys/win32/sys/termios.h (FLUSHO): New.
18959         * libc/sys/win32/include/win*.h: Moved a load of prototypes around.
18960         * libc/sys/win32/pipe.c (_fctnl): Ignore F_SETFL without errors.
18961         * libc/sys/win32/exception.c (ehandler3): set strace when a signal
18962         without a handler is received.
18963         * libc/sys/win32/Makefile.in: Remove --nodelete.
18964         * libc/sys/win32/resouce.c (gettimeofday): New.
18965         * libc/sys/win32/syscalls.c (path_to_real_path): New.
18966         * libc/sys/win32/syscalls.h (include/wincon.h): Don't include.
18967
18968 Wed Oct  4 13:10:35 1995  Doug Evans  <dje@canuck.cygnus.com>
18969
18970         * libc/sys/win32/dirsearch.c (opendir): stat real path name.
18971         Don't append "/*" to search pattern if trailing '/' already there,
18972         append "*".
18973         * libc/sys/win32/spawn.c (_spawn): CreateProcess doesn't seem to
18974         like /'s, convert them to \'s.  Handle //<drive>/ path names.
18975         Add space for quoted \'s in arg string.  Print translated prog name
18976         and original prog name.
18977         (_execve): Handle parent doing exec a teensy bit better.
18978         * libc/sys/win32/syscalls.h (__path_to_real_path): Update prototype.
18979         * libc/sys/win32/syscalls.c (__path_to_real_path): Don't assume
18980         path needs conversion, handle both cases.  Delete `const' from result.
18981         (hash_path_name): New function.
18982         (_open): Call it.
18983         (_stat): Likewise.  Fill in more fields for directories.
18984         * libc/sys/win32/wait.c (_wait): Explicitly pass -1 to waitpid.
18985         (wait_for_any): Fix trace message.
18986         (waitpid): Explicitly test for intpid == 0.
18987
18988         From anders.blomdell@control.lth.se (Anders Blomdell)
18989         * libc/sys/win32/spawn.c (__vfork_get_empty_entry): zero fill result
18990         so `next' is valid.
18991
18992 Sat Sep 30 15:00:15 1995  Jason Molenda  (crash@phyeaux.cygnus.com)
18993
18994         * libc/sys/win32/spawn.c (_spawn): Make quoting rules more
18995         complicated.
18996
18997 Sat Sep 30 10:25:57 1995  Jason Molenda    (crash@phydeaux.cygnus.com)
18998
18999         * libc/include/_ansi.h: set _HAVE_STDC if __STDC__ is defined
19000         at all, not just == 1.
19001         * libm/math/wf_acos.c (acosf): check for _HAVE_STDC, not __STDC__.
19002
19003 Sat Sep 30 04:30:09 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
19004
19005         * libc/sys/win32/include/winbase.h: include <wintypes.h> and <winnt.h>
19006         * libc/sys/win32/include/wintypes.h: include <winnt.h>
19007         * libc/sys/win32/include/winnt.h: avoid multiple inclusion of this
19008         file.
19009
19010 Fri Sep 29 01:49:17 1995  steve chamberlain  <sac@slash.cygnus.com>
19011
19012         * libc/sys/syscalls.c (getcwd): Fix off by one error.
19013
19014         * libc/sys/signal.c (sleep): Fill it in.
19015         * libc/sys/termios.c (tcflush): Use PurgeComm
19016         (tcsetattr): Set some more of the bits.
19017         * libc/sys/include/winkernel.h: Add PurgeComm and Sleep.
19018
19019 Fri Sep 29 04:33:53 1995  Doug Evans  <dje@deneb.cygnus.com>
19020
19021         * libc/sys/arm/crt0.S (fp): Initialize to 0.
19022         Conditionally include .idata$3 stuff ifdef __pe__.
19023
19024 Fri Sep 29 01:49:17 1995  steve chamberlain  <sac@slash.cygnus.com>
19025
19026         * libc/sys/win32/crt0.c (hmap_init): Call __init_hinfo.
19027         * libc/sys/win32/pipe.c (pipe): Ditto.
19028         * libc/sys/win32/syscalls.c (__read):  Use new vtime and vmin fields.
19029         * libc/sys/win32/syscalls.h (hinfo): vtime, vmin are new.
19030         * libc/sys/win32/termios.c (tcsetattr): Init new fields.
19031         (tcgetattr): Contents are new.
19032         * libc/sys/win32/include/winkernel.h (DCB): New.
19033         (GetCommState, SetCommState): New.
19034
19035 Thu Sep 28 16:29:09 1995  Doug Evans  <dje@deneb.cygnus.com>
19036
19037         * libc/sys/arm/crt0.S (_start): Define.
19038
19039 Thu Sep 28 12:26:45 1995  steve chamberlain  <sac@slash.cygnus.com>
19040
19041         * libc/sys/arm/crt0.S: Move stack to top of RAM on PIE board.
19042         * libc/sys/arm/syscalls.c (_read, _write): Use the SWI properly.
19043
19044         * libc/sys/win32/sysconf.c: New
19045         * libc/sys/win32/sys/winadvapi.h: New
19046         * libc/sys/win32/syscalls.h (hinfo): Added timeout_len, w_binary, r_binary.
19047         * libc/sys/win32/crt0.c (hmap_init): Initialize new fields.
19048         * libc/sys/win32/pipe.c (pipe): Ditto.
19049         * libc/sys/win32/signal.c (_raise): New.
19050         (_kill): Moved from spawn.c
19051         * libc/sys/win32/spawn.c (kill): Moved to signal.c
19052         * libc/sys/win32/syscalls.c (__read): Use new fields.
19053         (_open): Ditto.
19054         * libc/sys/win32/termios.c (tcflush, tcsetattr, tcgetattr): Fill in.
19055         * libc/sys/win32/exceptions.c (__stack_trace): Keep going for longer.
19056         * libc/include/sys/unistd.h (rmdir): Takes const path.
19057         * libc/include/sys/stat.h (mkdir): Takes const path.
19058         * libc/include/sys/signal.h (SIGTTOU, SIGTTIN): New for win32.
19059
19060 Thu Sep 28 10:11:27 1995  Doug Evans  <dje@canuck.cygnus.com>
19061
19062         * libc/sys/win32/spawn.c (_spawn): Fix quoting.
19063
19064         Add support for specifying paths as //<drive>/foo/bar.
19065         * libc/sys/win32/syscalls.h (__path_needs_conversion_p): Declare.
19066         (__path_to_real_path): Declare.
19067         (PATH_TO_REAL_PATH): New macro.
19068         * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): Minor cleanup.
19069         (__path_needs_conversion_p, __path_to_real_path): New functions.
19070         (_open): Fix test for error return from CreateFileA.
19071         Handle new path syntax.
19072         (_link, mkdir, rmdir, getcwd, chdir, stat): Handle new path syntax.
19073         * libc/sys/win32/dirsearch.c (opendir): Likewise.
19074
19075 Wed Sep 27 16:36:46 1995  steve chamberlain  <sac@slash.cygnus.com>
19076
19077         * libc/sys/win32/include/*.h: Reorganized
19078         * libc/sys/win32/include/WINREADME: New.
19079         * libc/sys/win32/Makefile.in (DLLS): Build version.a.
19080         * libc/sys/win32/*.c: Fix for new include scheme.
19081         * libc/sys/win32/crt0.c (__this_uinfo_buf, __this_uinfo): New.
19082         * libc/sys/win32/getlogin.c (getlogin): Use uinfo.
19083         * libc/sys/win32/passwd.c (*): Fix.
19084         * libc/sys/win32/syscalls.c (get[e|][g|u]id): Use passwd info.
19085         (_stat): Get directory owner and permissions right.
19086         * libc/sys/win32/syscalls.h (uinfo): New.
19087         * libc/sys/win32/version.def: Remove leading underscores.
19088
19089 Tue Sep 26 18:18:47 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19090
19091         * libc/sys/win32/key.c: include "include/wincon.h".
19092
19093 Tue Sep 26 07:21:48 1995  steve chamberlain  <sac@slash.cygnus.com>
19094
19095         * libc/sys/win32/{key, stubs}.c: New.
19096         * libc/sys/win32/Makefile: Adjust to cope.
19097         * libc/sys/win32/crt0.c (vfork_init_first): Cope with -ve pids.
19098         (environ_init): Change env names to upper case.
19099         * libc/sys/win32/dirsearch.c (readdir): Don't fill in inode number.
19100         * libc/sys/win32/passwd.c (*): Fill in the functions.
19101         * libc/sys/win32/pipe.c (_fcntl): F_GETFL returns O_RDWR.
19102         * libc/sys/win32/spawn.c (_spawn): Cope with -ve pids.
19103         * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): New function.
19104         (_open): Initialze hmap->execable_p too.
19105         * libc/sys/win32/syscalls.c (getuid, getgid, geteuid, getegid): Return from macros.
19106         (_fstat): Fill in permissions.
19107         * libc/sys/win32/syscalls.h (hinfo): Add execable_p.
19108
19109 Fri Sep 22 13:47:27 1995  Doug Evans  <dje@canuck.cygnus.com>
19110
19111         * configure.in (cfg-ml-com.in invocation): Use ${with_multilib_top}
19112         if defined.
19113         (cfg-ml-pos.in invocation): Likewise.
19114
19115 Fri Sep 22 11:43:44 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19116
19117         * Makefile.in (MATHOBJS_IN_LIBC): Added s_isinf.o, sf_isinf.o,
19118         s_isnan.o and sf_isnan.o.
19119
19120 Wed Sep 20 14:50:19 1995  Ian Lance Taylor  <ian@cygnus.com>
19121
19122         * All Makefile.in files: added maintainer-clean target as a
19123         synonym for realclean.
19124
19125 Wed Sep 20 11:02:50 1995  Jeff Law  (law@snake.cs.utah.edu)
19126
19127         * libc/include/machine/setjmp.h: Add hppa support.
19128         * libc/machine/hppa/setjmp.S: New file with setjmp/longjmp
19129         support.
19130         * libc/machine/hppa/Makefile.in: Related changes.
19131
19132 Tue Sep 19 12:09:01 1995  J.T. Conklin  <jtc@blues.cygnus.com>
19133
19134         * configure.in (machine_dir): Don't set for v810-*-*.
19135
19136 Fri Sep 15 20:22:08 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19137
19138         * libc/sys/win32/crt0.c (passover): Change to handle MKS quoting
19139         conventions correctly.
19140
19141 Thu Sep 14 13:37:22 1995  J.T. Conklin  <jtc@blues.cygnus.com>
19142
19143         * libc/stdio/puts.c: Update documentation of return value to match
19144         ANSI standard.
19145
19146 Thu Sep 14 01:52:37 1995  Doug Evans  <dje@canuck.cygnus.com>
19147
19148         Fix file descriptor inheritance.
19149         * libc/sys/win32/syscalls.h (CHILD_P): Define again.
19150         (NOT_OPEN_FD): Fix.
19151         * libc/sys/win32/spawn.c (vfork0): Only create inheritable handle if
19152         close-on-exec flag not set.  Initialize child's entire fd table.
19153         * libc/sys/win32/syscalls.c (_open): Only create inheritable handle if
19154         CHILD_P.
19155         * libc/sys/win32/pipe.c (pipe): Only create new handle as inheritable
19156         if CHILD_P.  Initialize entire hmap entry.
19157         (dup): Only create new handle as inheritable if CHILD_P.
19158         (dup2): Likewise.  Properly initialize hmap entry.
19159
19160         * libc/sys/win32/spawn.c (_execve): Don't pass _P_SEARCH_PATH to
19161         _spawn.
19162         (_exit): Use CHILD_P.
19163         * libc/sys/win32/syscalls.c (_fstat): Fix call to memset.
19164         (_stat): Likewise.
19165
19166 Mon Sep 11 23:09:39 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19167
19168         * libc/sys/win32/crt0.c (passover): fix up the state table.
19169         * libc/posix/popen.c: Added.
19170         * libc/posix/Makefile.in: compile popen.c.
19171
19172 Mon Sep 11 11:43:38 1995  J.T. Conklin  <jtc@cygnus.com>
19173
19174         * libc/include/machine/ieeefp.h: On the h8/300, h8/300h and
19175         h8/500 define _DOUBLE_IS_32BITS.
19176
19177 Sat Sep  9 17:55:54 1995  Doug Evans  <dje@canuck.cygnus.com>
19178
19179         Get vfork/exec/spawn/cwait/wait working again.
19180         * libc/sys/win32/syscalls.h (VFORK_NEWBORN_PSEUDO_PID): Define.
19181         (procinfo): New member vfork_level.
19182         * libc/sys/win32/crt0.c (__vfork_next_pid): Delete.
19183         (vfork_init_first): Use GetCurrentProcessId to get pid.
19184         Initialize vfork_level.
19185         (vfork_init): Delete __PID__.
19186         (environ_init): New function.  Undo patch of Aug 19, Posix says
19187         environment variables are case sensitive.
19188         (mainCRTStartup): Call it.
19189         * libc/sys/win32/spawn.c (__vfork_next_pid): Delete.
19190         (my_longjump: Make static.
19191         (_spawn): New argument `h'.  Delete setting of __PID__.
19192         Delete local `idx'.  Look for chars that need quotes, rather than
19193         ones that don't.  Set handle of created process in `h'.
19194         Result is process id if created task.
19195         (allocate_spawn_entry): New function.
19196         (spawnvp, spawnv): Call it.  Store handle and pid in procinfo entry.
19197         (_execve): Set __FD_TABLE__ before spawning child.
19198         Scan our fd table when passing fds, not our parent's.
19199         Store handle and pid in procinfo entry.
19200         (vfork0): Ensure strace message always printed.
19201         Set child pid to VFORK_NEWBORN_PSEUDO_PID.
19202         (vfork): Don't clobber result of vfork0.
19203         * libc/sys/win32/wait.c (cwait): Fix non-error result (is pid).
19204         (wait_for_any): Ignore processes in state FORK_STATE_VFORK_0.
19205
19206         * libc/sys/win32/syscalls.h (procinfo): New members `handle_valid_p'
19207         and `exit_code'.
19208         * libc/sys/win32/spawn.c (allocate_spawn_entry): Initialize them.
19209         (vfork0): Likewise.  Distinguish children, grandchildren, etc. by
19210         adding vfork level to pseudo-pid.
19211         (vfork1): If not root, set state back to FORK_STATE_VFORK_0.
19212         (spawnvp, spawnv, _execve): Set handle_valid_p if success.
19213         (_exit): If child, set exit code.
19214         (__vfork_record_death): Only close process handle if valid.
19215         * libc/sys/win32/wait.c (wait_for_single): Watch for children that
19216         didn't exec.
19217         (wait_for_any): Likewise.  Start scan after root entry.
19218
19219 Fri Sep  8 18:48:02 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
19220
19221         * libc/include/sys/types.h (off_t): off_t back to 32 bits.
19222         * libc/include/sys/_types.h (_off_t): _off_t back to 32 bits.
19223         * libc/sys/win32/syscalls.c (_fstat): st_size is lower 32-bits
19224         of actual file length.
19225
19226         * libc/sys/win32/sys/wait.h: include <sys/types.h>.
19227         * libc/include/paths.h: _PATH_BSHELL added.
19228         * libc/include/sys/unistd.h: define STDIN_FILENO, STDOUT_FILENO,
19229         and STDERR_FILENO.
19230
19231 Thu Sep  7 21:02:22 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
19232
19233         * libc/include/ar.h: Added.
19234         * libc/include/sys/types.h: ino_t goes back to 32-bits.
19235         * libc/sys/win32/syscalls.h (hinfo): added .namehash field.
19236         * libc/sys/win32/syscalls.c (_open): compute .namehash based
19237         on filename.
19238         (_fstat): use .namehash for inode number of the fd.
19239
19240 Thu Sep  7 12:57:19 1995  steve chamberlain  <sac@slash.cygnus.com>
19241
19242         * libc/sys/win32/{console,ioctl,pipe,spawn,syscalls,wait}.? (*):
19243          Change hinfo to __this_procinfo.
19244         * libc/sys/win32/crt0.c: Remove procinfo_list.
19245
19246 Wed Sep  6 18:38:26 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19247
19248         * libc/include/sys/types.h (ino_t): Define ino_t correctly for
19249         win32 environment.
19250
19251 Wed Sep  6 18:09:29 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
19252
19253         * libc/sys/win32/include/grp.h: Removed.
19254         * libc/sys/include/grp.h: Added.
19255         * libc/sys/win32/grp.c: Include <grp.h>.
19256
19257 Wed Sep  6 16:52:48 1995  steve chamberlain  <sac@slash.cygnus.com>
19258
19259         * libc/include/sys/signal.h (__need_MAX_SIGNALS): Removed.
19260         (sigset_t, sigaction, SIG_SETMASK, SIG_BLOCK, SIG_UNBLOCK):
19261         Defined for all but strict ANSI.
19262         * libc/include/sys/reent.h (__need_MAX_SIGNALS): Removed.
19263         * libc/include/machine/setjmp.h: Get win32 _JBLEN right.
19264         * libc/signal/signal.c (_signal_r): Changed from using
19265         _MAX_SIGNALS to NSIG.
19266         * libc/sys/win32/crt0.c (__current_pid, __parent_hmap, __child_hmap,
19267          __hmap): Deleted.
19268         (__strace, __vfork_next_pid): New.
19269         (__exe_suffix): Default to 1.
19270         (passover, table): Understand quoted arguments.
19271         (vfork_init_first): New.
19272         (vfork_init): Initialize new process structure.
19273         (mainCRTStartup): Pass environ to main.
19274         * exceptions.c (__sig_mask): New
19275         (ehandler3): Ignore signals in mask.
19276         (really_exit): Remove CHILD_P test.
19277         * pipe.c (pipe, dup, dup2): Use new process and file structure.
19278         * resource.c (getrusage): Ditto.
19279         * signal.c (sigprocmask): New.
19280         * spawn.c (*): Rewritten.
19281         * syscalls.c (*): Use new process and file structure.
19282         (find_unused_handle): New.
19283         * syscalls.h (MAX_HANDLES): Deleted.
19284         (hinfo): Removed child_created_p.
19285         (MAX_CHILDREN): Deleted.
19286         (vfork_jmp_info, procinfo): New.
19287         * wait.c (*): Mostly new.
19288         * sys/strace.h (_STRACE_PARANOID): New.
19289         * sys/param.h: New file.
19290
19291 Wed Sep  6 17:03:53 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19292
19293         * libc/include/sys/stat.h: add S_BLKSIZE.
19294         * libc/include/sys/_types.h: _off_t is a 64-bit type under win32.
19295         * libc/include/sys/types.h: define off_t and ino_t to be 64 bit
19296         types under win32.
19297         (mode_t): add a #else to avoid multiple definitons.
19298
19299         * libc/sys/win32/Makefile.in: add grp.c.
19300         * libc/sys/win32/grp.c: include grp.h correctly.
19301         * libc/sys/win32/syscalls.c (_fstat): set almost all of the fields
19302         of the st structure with real information.
19303         * libc/sys/win32 (dirent): d_ino is of type ino_t.
19304
19305 Wed Sep  6 10:41:34 1995  Doug Evans  <dje@canuck.cygnus.com>
19306
19307         * libc/include/sys/types.h (mode_t): Correct for svr4 sparc's
19308         and (maybe) sparc64.
19309         (nlink_t): Provide typedef.
19310
19311 Tue Sep  5 18:46:05 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
19312
19313         * libc/sys/win32/grp.c: New file.
19314         * libc/sys/win32/include/grp.h: New file.
19315
19316 Tue Sep  5 13:47:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19317
19318         * libc/include/machine/ieeefp.h: Added whitespace to make this
19319         file easier to maintain.
19320         On the sh, define either __IEEE_BIG_ENDIAN or __IEEE_LITTLE_ENDIAN
19321         depending on the value of __LITTLE_ENDIAN__.
19322         On the sh3e, define _DOUBLE_IS_32BITS.
19323
19324 Fri Sep  1 15:35:18 1995  James G. Smith  <jsmith@beauty.cygnus.com>
19325
19326         * libc/sys/vr4300/syscalls.c: Added missing support
19327         routines. _raise() and getpid().
19328
19329 Fri Sep  1 14:12:48 1995  James G. Smith  <jsmith@rtl.cygnus.com>
19330
19331         * configure.in (mips*vr4300*-*-elf): Fixed silly mistake
19332
19333 Fri Sep  1 08:42:11 1995  James G. Smith  <jsmith@beauty.cygnus.com>
19334
19335         * configure.in (mips*vr4300*-idt-*) Add support for RISQ monitor
19336         and VR4300 processor.
19337         * libc/sys/vr4300: Add directory.
19338         * libc/sys/vr4300/{Makefile.in, crt0.S, syscalls.c}: Add SIM
19339         monitor run-time support.
19340
19341 Thu Aug 31 09:16:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19342
19343         * libc/stdlib/Makefile.in (CHEWOUT_FILES): Removed atol.def.
19344         * libc/stdlib/stdlib.tex: Don't include atol.def.
19345
19346 Wed Aug 30 20:38:28 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19347
19348         * libc/sys/win32/uname.c (uname): hardcode processor as `i386'.
19349
19350 Wed Aug 30 10:48:08 1995  steve chamberlain  <sac@slash.cygnus.com>
19351
19352         * libc/ctype/Makefile.in: Fill in _to* dependencies.
19353
19354 Tue Aug 29 17:14:29 1995  steve chamberlain  <sac@slash.cygnus.com>
19355
19356         * libc/sys/win32/{dirsearch.c,sys/dirent.h}: Fix namespace problems.
19357         * libc/sys/win32/sys/dirent.h (struct dirent): Added d_ino.
19358         * libc/sys/win32/strace.c (__sys_printf): Increase size of buffer.
19359         * libc/sys/win32/smallprint.c (__small_vsprintf): Remove debug.
19360         * libc/sys/win32/dirsearch.c (readdir): Set d_ino.
19361
19362 Tue Aug 29 19:00:09 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19363
19364         * libc/stdlib/atol.c (atol): DEFUN -> _DEFUN.
19365
19366 Tue Aug 29 16:08:09 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19367
19368         * libc/stdlib/Makefile.in (OFILES): Added atoff.o and atol.o.
19369         * libc/stdlib/atoff.c: New file.
19370         * libc/stdlib/atof.c (atoff): Moved to atoff.c.
19371         * libc/stdlib/atoi.c (atol): Removed.
19372         * libc/stdlib/atol.c: Removed duplicate documentation.
19373
19374         * libc/include/ctype.h (_tolower, _toupper): Moved inside
19375         #ifndef _STRICT_ANSI conditional.
19376         * libc/ctype/Makefile.in (OFILES): Added _tolower.o and _toupper.o
19377         * libc/ctype/_tolower.c: New file.
19378         * libc/ctype/_toupper.c: New file.
19379         * libc/ctype/tolower.c (_tolower): Moved to _tolower.c.
19380         * libc/ctype/toupper.c (_toupper): Moved to _toupper.c.
19381         * libc/ctype/toascii.c (_toascii): Removed.
19382
19383 Tue Aug 29 12:17:32 1995  Doug Evans  <dje@canuck.cygnus.com>
19384
19385         * libc/sys/sparc64/sys/types.h: Deleted.
19386
19387 Mon Aug 28 22:06:08 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19388
19389         * libc/sys/win32/uname.c (uname): change `Windows/NT' to `Windows_NT'
19390         and recognize Windows_95 systems.
19391
19392 Mon Aug 28 19:50:54 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19393
19394         * libc/sys/win32/crt0.c (vfork_init, hmap_init): standard I/O fds
19395         and passed fds should be opened in text mode.
19396
19397 Mon Aug 28 18:51:22 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19398
19399         * libc/sys/win32/crt0.c (vfork_init): mark passed fds as used
19400         in __hmap, set to binary mode by default.
19401
19402 Tue Aug 22 14:12:37 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19403
19404         * libc/sys/sh/syscalls.c: Updated all functions to call __trap34.
19405         * libc/sys/sh/trap.S (__trap34): Renamed from __trap3.  Use trap
19406         vector 34.
19407
19408 Sat Aug 19 18:25:37 1995  steve chamberlain  <sac@slash.cygnus.com>
19409
19410         * Makefile.in (install): Install all libraries found in the
19411         top level.  If there's a sys/<type>/include directory,
19412         install those headers into include.
19413
19414         * libc/sys/win32/kernel.def351: Delete
19415         * libc/sys/win32/{comctl32.def, comdlg32.def, ctl3d32.def,
19416         glaux.def, glu32.def, largeint.def, libc.def, libcmt.def,
19417         lz32.def, mgmtapi.def, mpr.def, msacm32.def, msvcrt.def,
19418         nddeapi.def, netapi32.def, odbc32.def, odbccp32.def, oldnames.def,
19419         ole32.def, oleaut32.def, opengl32.def, rasapi32.def, rpcndr.def,
19420         rpcns4.def, rpcrt4.def, scrnsave.def, shell32.def, snmp.def,
19421         uuid.def, vdmdbg.def, version.def, vfw32.def, win32spl.def,
19422         winmm.def, winspool.def, winstrm.def, wsock32.def}: New.
19423
19424         * libc/sys/win32/Makefile.in: Update for new files and new dlltool options.
19425         * libc/sys/win32/crt0.c: Force all env names to upper case.
19426         * libc/sys/win32/sys/win*.h -> libc/sys/win32/include
19427         * libc/sys/win32/*.c: Headers have moved.
19428         * libs/sys/win32/*.[ch]: Test for open_p rather than BAD_HANDLE,
19429         __vfork_child_idx is now __vfork_child_ptr.
19430
19431         * posix/execvp (execvp): Don't crash if no PATH envname.
19432
19433 Fri Aug 18 12:22:59 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19434
19435         * libc/include/sys/reent.h (_Bigint): Removed _reclaim field.
19436         * libc/reent/reent.c (_reclaim_reent): Free Bigint's by going
19437         through the _freelist instead of through the _reclaim list.
19438         * libc/stdlib/mprec.c (_Balloc): Don't put new node on _reclaim list.
19439         * libc/stdlib/mprec.c (_Bcopy): Make like version in master dtoa.c
19440         sources.
19441
19442 Thu Aug 17 11:03:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19443
19444         * libc/machine/h8500/setjmp.S: New file.
19445         * libc/include/machine/setjmp.h: Updated for H8/500.
19446
19447 Wed Aug 16 16:19:11 1995  steve chamberlain  <sac@slash.cygnus.com>
19448
19449         * libc/sys/win32/syscalls.c (_open): More stracing.
19450         (_stat): Open the file in O_BINARY.
19451
19452 Wed Aug 16 15:49:01 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19453
19454         * libc/machine/h8300/setjmp.S: New file.
19455         * libc/include/machine/setjmp.h: Updated for H8/300 and H8/300H.
19456
19457 Tue Aug 15 10:31:09 1995  Doug Evans  <dje@canuck.cygnus.com>
19458
19459         * libc/sys/win32/crt0.c (__exe_suffix): New global.
19460         (mainCRTStartup): Set __exe_suffix from LIBC_EXE_SUFFIX.
19461         * libc/sys/win32/spawn.c (_spawn): Add .exe suffix based on
19462         __exe_suffix.  Free fd_tab after setting env variable.
19463         (spawnv,_execve): Update.
19464         * libc/sys/win32/syscalls.h (__exe_suffix): Declare.
19465         * libc/sys/win32/smallprint.c (puts,putn): New (static) functions.
19466         (__small_vfprintf): New function.
19467         * libc/sys/win32/strace.c (__sys_printf): Call __small_vfprintf.
19468         * libc/sys/win32/wait.c (cwait): Validate argument.
19469
19470         * libc/sys/win32/syscalls.c (queue_file_deletion): Add trace message.
19471         (process_deletion_queue): Likewise.
19472
19473         * libc/sys/win32/Makefile.in (lib.a): Don't call $(RANLIB).
19474
19475 Mon Aug 14 10:14:10 1995  steve chamberlain  <sac@slash.cygnus.com>
19476
19477         * libc/sys/win32: Copyrights and gratuitous indenting.
19478
19479 Mon Aug 14 01:32:58 1995  Doug Evans  <dje@canuck.cygnus.com>
19480
19481         * libc/sys/win32/syscalls.c (queue_file_deletion): Finish.
19482         (process_deletion_queue): Likewise.
19483         (__close_all_files): New function.
19484         (_close): Only queue file deletion if really a file.
19485         * libc/sys/win32/spawn.c (_spawn): Only ensure .exe suffix if
19486         _P_APPEND_EXE.
19487         (_exit): Call __close_all_files.
19488
19489         * libc/stdlib/system.c: #include <errno.h>.
19490         (_system_r): Fix results in -DNO_EXEC case.
19491
19492         * libc/sys/win32/sys/dirent.h (DIR): New member __d_dirname.
19493         Reorganize structure.
19494         * libc/sys/win32/dirsearch.c (opendir): Use stat to determine
19495         if argument is valid.  Save directory name in DIR.  malloc space
19496         for dirent struct separately.
19497         * libc/sys/win32/syscalls.c (stat): Fix test for directory.
19498
19499         * libc/include/errno.h (ENAMETOOLONG): Define.
19500         * libc/string/strerror.c (strerror): Reword ENFILE.
19501         Add ENOSYS, ENMFILE, ENOTEMPTY, ENAMETOOLONG.
19502
19503 Sun Aug 13 22:42:25 1995  Doug Evans  <dje@canuck.cygnus.com>
19504
19505         * libc/sys/win32/crt0.c (__progname): New global.
19506         (mainCRTStartup): Support strace=bitmask,filename.
19507         * libc/sys/win32/dirsearch.c (all fns): Add trace messages.
19508         * libc/sys/win32/syscalls.c (_write): Print parent trace message
19509         if error.
19510         (getcwd): Handle len too small.  Convert '\\' to '/'.
19511         * libc/sys/win32/sys/fcntl.h (O_RDWR): = O_RDONLY|O_WRONLY.
19512         Add prototypes for open, creat, fcntl.
19513         (O_APPEND): Change value to conform to Microsoft's value.
19514         * libc/sys/win32/sys/strace.h (_STRACE): Protect in do/while.
19515
19516         * libc/stdlib/getopt.c: New file.
19517         * libc/stdlib/Makefile.in: Build it.
19518
19519 Sat Aug 12 12:17:14 1995  Doug Evans  <dje@canuck.cygnus.com>
19520
19521         * libc/posix/execvp.c (execvp): Watch for DOS drives ifdef _WIN32.
19522         Fix scanning of $PATH.
19523         * libc/posix/exec*.c: Call _execve, not execve.
19524         * libc/posix/execve.c: New file.
19525         * libc/posix/Makefile.in (OFILES): Add execve.o.
19526
19527         * libc/sys/win32/sys/strace.h (_STRACE_ALL, _STRACE_UHOH,
19528         _STRACE_STARTUP, _STRACE_SYSCALL): More bit masks of things to trace.
19529         (_STRACE): If level==0, always print.  Handle new bit mask scheme.
19530         * libc/sys/win32/crt0.c: Update _STRACE calls.
19531         * libc/sys/win32/{pipe.c,resource.c,spawn.c,syscalls.c,wait.c}: Ditto.
19532
19533         * libc/sys/win32/smallprint.c (rn): Fix digit list.
19534
19535         * libc/sys/win32/syscalls.c (__really_exit): Move from here,
19536         * libc/sys/win32/exceptions.c (really_exit): to here. Avoid recursion.
19537         * libc/sys/win32/spawn.c (spawnvp): Pass `prog' as image name.
19538         Print __seterrno trace message first.
19539         (_execve): Renamed from execve.
19540         (vfork): Update __strace usage.
19541         (__vfork_child_pid): Deleted.
19542         (__vfork_children, __vfork_child_idx): New globals.
19543         (_spawnvp): New function.
19544         (spawnvp, spawnv, _execve): Call _spawnvp.
19545         (init_child): Record child in __vfork_children.
19546         (__vfork_get_entry, __vfork_record_death): New functions.
19547         * libc/sys/win32/crt0.c (mainCRTStartup): Initialize __vfork_children.
19548         * libc/sys/win32/kernel32.def (WaitForMultipleObjects): Define.
19549         * libc/sys/win32/syscalls.h (CHILD_P): New macro.  All files updated.
19550         (MAX_CHILDREN, CHILD_INTERIM_PID): Define.
19551         (children): New typedef.
19552         (__vfork_children,__vfork_child_idx): Declare.
19553         (__vfork_get_entry,__vfork_record_death): Declare.
19554         * libc/sys/win32/wait.c (wait_for_single,wait_for_any): New functions.
19555         (waitpid): Handle pid == -1.
19556         * libc/sys/win32/sys/wintypes.h (WaitForMultipleObjects): Declare.
19557         * configure.in (i386-win32): Add -DNO_FORK.
19558         * libc/syscalls/sysfork.c (fork): Don't define for NO_FORK.
19559         * libc/reent/execr.c (_fork_r): Likewise.
19560         * libc/stdlib/system.c (do_system): New function.
19561         If WIN32, try to get shell path from $SH_PATH, use vfork.
19562         (_system_r): Return 1 for (s == NULL) if WIN32 or unix,
19563         otherwise return 0.
19564
19565 Sat Aug 12 11:08:00 1995  steve chamberlain  <sac@slash.cygnus.com>
19566
19567         * libc/stdlib/{mallocr.c, mstats.c}: Move mstats from mallocr to mstats.c.
19568         * libc/sys/win32/fcntl.h: Don't include self.
19569         * libc/sys/win32/sys/strace.h (_STRACE_WM, _strace_wm): New.
19570         * libc/sys/win32/sys/winbase.h: (GetUserName) New.
19571         * libc/sys/win32/sys/wincon.h (HANDLER_ROUTINE): Define correctly.
19572         * libc/sys/win32/sys/wintypes.h (GetFileType, GetCurrentProcess, CloseHandle,
19573         SetFilePointer, CreateFileA, GetFileInformationByHandle, GetStdHandle):
19574         Correct prototypes.
19575         * libc/sys/win32/strace.c: New file.
19576         * libc/sys/win32/smallprint.c: New file.
19577         * libc/sys/win32/crt0.c (func): Delete.
19578         (mainCRTStartup): Fix alloca usage.  Set handles explictly.
19579         * libc/sys/win32/dirsearch.c: Clean up handle usage, fix calls to __seterrno.
19580         * libc/sys/win32/exceptions.c: Lint.
19581         * libc/sys/win32/{ioctl.c, pipe.c, resource.c, spawn.c, cwait.c, syscalls.c}:
19582         Clean up handle usage.
19583         * libc/sys/win32/syscalls.c (__sys_printf): Moved into strace.c
19584         (open.c): Default file type is text.
19585         * libc/sys/win32/uname.c (uname): Use __small_sprintf.
19586         * libc/sys/win32/advapi32.def: New
19587
19588 Fri Aug 11 17:11:52 1995  Doug Evans  <dje@canuck.cygnus.com>
19589
19590         * configure.in (posix_dir, libc_posix_lib): New variables.
19591         Define LIBC_POSIX_LIB in makefile to be $libc_posix_lib.
19592         (i[345]86-*-win32): Define posix_dir.
19593         Delete -DNO_EXEC.  Define -DHAVE_OPENDIR.
19594         (if unix_dir): Fix typo.
19595         * libc/posix/{Makefile.in,closedir,opendir,readdir,rewinddir,
19596         scandir,seekdir,telldir}: New files.
19597         * libc/posix/{execl.c,execle.c,execlp.c,execv.c,execvp.c}: Move here
19598         from libc/unix.
19599         * libc/Makefile.in (LIBC_POSIX_LIB): Define.
19600         (SUBDIRS): Add posix.
19601         (SUBLIBS): Add $(LIBC_POSIX_LIB).
19602
19603         * libc/include/sys/signal.h (SIGCHLD): Add for _WIN32.
19604         (NSIG): Increase to 21.
19605         * libc/include/sys/unistd.h (pid_t): Move from here,
19606         * libc/include/sys/types.h (pid_t): to here.
19607
19608         * libc/sys/win32/syscalls.h: #include "sys/strace.h".
19609         (__ptrace): Delete.
19610         (hinfo): New members close_exec_p, child_created_p.
19611         (struct exception_list): Define.
19612         (__hmap): Redefine as pointer to table.
19613         (__parent_hmap, __child_hmap): New globals.
19614         (__set_errno, __really_exit): Declare.
19615         (__vfork_child_pid): Declare.
19616         * libc/sys/win32/crt0.c (__strace, __trace_file): New global.
19617         (__orig_stdin, __orig_stdout, __orig_stderr): New globals.
19618         (__parent_hmap, __child_hmap): New globals.
19619         (__hmap): Redefine as pointer to active map.
19620         (__get_console): New function.
19621         (mainCRTStartup): Change leading '=' in environ vars to '!'.
19622         (env __FD_TABLE__): Watch for this and initialize our fd/handle
19623         mapping table from it if defined.
19624         (argv, envp): Dump if __strace >= 4.
19625         (main): Call here.
19626         * libc/sys/win32/exceptions.c (myp): Redefine.
19627         (__syscalls_b): Delete.
19628         (__stack_trace): New function.
19629         (ehandler3): Update to use _STRACE.  Print stack trace.
19630         Call __really_exit instead of exit.
19631         (init_exceptions): Delete args argc,argv.  New arg mine.
19632         * libc/sys/win32/kernel32.def (CreatePipe, DuplicateHandle, FindClose,
19633         FindFirstFileA, FindNextFileA, GetComputerNameA,
19634         GetEnvironmentVariableA, ReadFile, SetEnvironmentVariableA): Define.
19635         * libc/sys/win32/signal.c (signal): Validate arg.
19636         (alarm, sleep): Define as stubs for now.
19637         * libc/sys/win32/syscalls.c (all fns): Update to use _STRACE.
19638         (__syscalls_b, errno): Delete.
19639         (__vfork_child_pid, __vfork_jmp_buf): New globals.
19640         (__seterrno): Handle more errors.
19641         (__sys_printf): Renamed from _ptrace.
19642         (__really_exit): New function.
19643         (queue_file_deletion, process_deletion_queue): New functions.
19644         (__resume_parent): New function.
19645         (_unlink): Handle trying to delete open file.
19646         (__totime_t): Renamed from totime_t.
19647         (setsid, __read, __write): New functions.
19648         (cwait, spawnvp, R, D, getrusage, _execve, _fork, _wait): Delete.
19649         * libc/sys/win32/{dirsearch.c,getlogin.c,misc.c,resource.c,passwd.c,
19650         times.c,spawn.c,pipe.c,wait.c,termios.c,ioctl.c,uname.c}: New files.
19651         * libc/sys/win32/console.c: Update to new definition of __hmap.
19652         * libc/sys/win32/Makefile.in: Build new files.
19653         * libc/sys/win32/sys/{dirent.h,winerror.h,wait.h,termios.h}: New files.
19654         * libc/sys/win32/sys/{ioctl.h,utsname.h}: New files.
19655         * libc/sys/win32/sys/strace.h: Renamed from ptrace.h.
19656         * libc/sys/win32/sys/wintypes.h (GetCurrentDirectoryA): Fix prototype.
19657
19658 Thu Aug 10 16:32:52 1995  Doug Evans  <dje@canuck.cygnus.com>
19659
19660         * libc/sys/h8500hms/misc.c (kill): Handle SIGABRT.
19661
19662 Thu Aug 10 12:07:38 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19663
19664         * libc/stdlib/{dtoa.c, strtod.c}: Merged assorted changes that
19665         have been made to the master dtoa.c sources (from netlib.att.com)
19666         since they were integrated into newlib in early 1992.  Fixes
19667         problems with storage leaks and handling of numbers with very
19668         negative exponents.
19669
19670 Wed Aug  9 14:18:39 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19671
19672         * Makefile.in (all): set rootpre and srcrootpre before calling
19673         sub-makes.
19674
19675 Tue Aug  8 17:20:45 1995  steve chamberlain  <sac@slash.cygnus.com>
19676
19677         * libc/sys/win32/crt0.c: Change __hmap usage.
19678         * libc/sys/win32/exceptions.c: Use _ptrace call.
19679         * libc/sys/win32/syscalls.c: Use _ptrace call.
19680         (read, write): Cope with DOS style CRLF when in TEXT mode.
19681         * libc/sys/win32/syscalls.h: Declare hinfo struct.
19682         * libc/sys/win32/user32.def: Get DefWindowProc arg list right.
19683         * libc/sys/win32/sys/fcntl.h, ptrace.h: New.
19684         * libc/sys/win32/sys/windows.h: Fill in rest of messages.
19685         * libc/sys/win32/sys/wintypes.h: Fix attribute syntax.
19686
19687 Mon Aug  7 13:04:54 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19688
19689         * libc/include/math.h (cabs, cabsf, drem, dremf): New declarations.
19690
19691         * libm/math/{w_cabs.c, wf_cabs.c, w_drem.c, wf_drem.c}: New files,
19692         wrappers for hypot() and remainder() for BSD libm compatibility.
19693         These are public domain implementations written by me for the
19694         NetBSD libm some time ago.  Note cabs() is required by ucbtest.
19695         * libm/math/Makefile.in (obj): Added w_cabs.o and w_drem.o.
19696         (fobj): Added wf_cabs.o and wf_drem.o.
19697
19698 Thu Aug  3 08:13:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19699
19700         * libc/sys/h8500hms/misc.c: New file.
19701         * libc/sys/h8500hms/Makefile.in (OFILES): Add misc.o.
19702
19703 Wed Aug  2 16:46:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19704
19705         * libc/time/localtime.c (localtime): Fix problem with leap year
19706         handling.  Stole algorithm from Arthur David Olson's tz code.
19707
19708 Mon Jul 31 10:21:54 1995  steve chamberlain  <sac@slash.cygnus.com>
19709
19710         * configure.in: (z8k-*sim): Renamed z8k-*-coff.
19711
19712         * libc/sys/z8ksim/glue.c (_getpid, _kill): New
19713         (_exit): Use argument.
19714
19715 Fri Jul 28 15:17:04 1995  Doug Evans  <dje@canuck.cygnus.com>
19716
19717         * libc/sys/win32/sys/winbase.h (_WINBASE_H): Define.
19718
19719 Wed Jul 26 16:24:19 1995  steve chamberlain  <sac@slash.cygnus.com>
19720
19721         * libc/sys/sh/trap.S (perrno): Align correctly. (pr 7532)
19722
19723 Mon Jul 24 13:42:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19724
19725         * configure.in (sparc*): Add -DMALLOC_ALIGNMENT=8 to
19726         target_cflags.
19727
19728 Mon Jul 24 11:42:07 1995  steve chamberlain  <sac@slash.cygnus.com>
19729
19730         * libc/sys/win32/crt0.c (mainCRTStartup):  Look for
19731         ptrace with case insensitivity
19732         * libc/sys/win32/{user32.def, gdi32.def, exceptions.c, screen.c,
19733         sys/winbase.h,  sys/windows.h, sys/wintypes.h, sys/winuser.h}:
19734         New files.
19735
19736 Fri Jul 21 11:22:26 1995  Doug Evans  <dje@canuck.cygnus.com>
19737
19738         * Makefile.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
19739         (MULTITOP, MULTIDIRS, MULTISUBDIR, MULTIDO, MULTICLEAN): New variables.
19740         (all, install, *clean): Use new multilib support.
19741         * configure.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
19742
19743 Fri Jul 21 07:11:42 1995  steve chamberlain  <sac@slash.cygnus.com>
19744
19745         * libc/include/sys/signal.h (__WIN32__): New.
19746
19747         * configure.in (i386-*-win32): Remobe SBRK_IS_ALLOC.
19748
19749         * libc/stdlib/mprec.c (Balloc): Fix trampling problem.
19750         (ulp, b2d): Handle 32 bit doubles.
19751         * libc/stdlib/mprec.h:  Handle 32 bit doubles.
19752         * libc/stdlib/strtod.c (_strtod_r): Ditto.
19753
19754 Fri Jul 14 08:24:58 1995  steve chamberlain  <sac@slash.cygnus.com>
19755
19756         from medp@primag.co.uk:
19757         * libc/stdio/setvbuf.c (setvbuf): Fix line buffering on
19758         dynamically allocated buffers.
19759
19760 Thu Jul 20 10:11:03 1995  Fred Fish  <fnf@fishbowl>
19761
19762         * libc/include/sys/unistd.h (_exit):  Add _ATTRIBUTE ((noreturn)).
19763         * libc/stdlib/exit.c (unistd.h):  Include to pick up _exit() declaration.
19764
19765 Thu Jul 20 10:16:25 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
19766
19767         * configure.in (powerpc): Fix previous fix.
19768
19769 Wed Jul 19 14:08:55 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
19770
19771         * configure.in (powerpc-*eabiaix*): Update PowerPC multilib
19772         directories for this target.
19773
19774 Wed Jul 19 00:34:30 1995  Jeffrey A. Law  <law@rtl.cygnus.com>
19775
19776         * configure.in (hppa): Add machine_dir definition.
19777         * libc/machine/hppa: New directory with PA specific implementations
19778         of the basic memory/string functions.
19779
19780 Tue Jul 18 21:16:00 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
19781
19782         * configure.in: Update current PowerPC multilib directories.
19783         Split big and little endian configurations.
19784
19785 Tue Jul 18 11:55:33 1995  Ian Lance Taylor  <ian@cygnus.com>
19786
19787         * configure.in: Add --enable-single-float option to configure to
19788         control use of MIPS single-float directories.  Default to yes.
19789
19790         * Makefile.in (all): Don't recurse into multilib directory if it
19791         does not exist.
19792
19793 Mon Jul 17 15:51:30 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19794
19795         * libc/sys/sh/syscalls.c: Fix typo.
19796
19797 Mon Jul  3 14:38:52 1995  Steve Chamberlain  <sac@slash.cygnus.com>
19798
19799         * Makefile.in, libc/Makefile.in, libc/sys/Makefile.in:
19800         Pass down DLLTOOL.
19801         * libc/include/process.h: Define WAIT_CHILD.
19802         * libc/include/types.h: Get sizes right for win32.
19803         * configure.in (i386-*-pe): Becomes i386-win32.
19804         * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
19805         wintypes.h,sys/file.h,sys/resource.h}: Second pass.
19806         * libc/stdlib/mallocr.c: Don't round up memory block if SBRK_IS_ALLOC
19807         is defined.
19808
19809 Wed Jun 28 18:34:54 1995  Steve Chamberlain  <sac@slash.cygnus.com>
19810
19811         * configure.in (i[345]86-*-pe):  New target (NT).
19812         * host/any: DLLTOOL new.
19813         * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
19814         wintypes.h,sys/file.h,sys/resource.h}: Preliminary support for
19815         WIN32 (just enough to cross host the comp-tools).
19816
19817 Thu Jun 22 11:45:18 1995  Doug Evans  <dje@canuck.cygnus.com>
19818
19819         * libc/machine/h8300/{cmpsi.S,ucmpsi.S,divhi3.S,mulhi3.S,mulsi3.S}:
19820         Deleted.  These files live in gcc/config/h8300/lib1funcs.asm now.
19821
19822 Mon Jun 19 11:40:40 1995  Doug Evans  <dje@canuck.cygnus.com>
19823
19824         * libc/include/machine/ieeefp.h (arm): Change to always be
19825         __IEEE_BIG_ENDIAN (even on little endian ARM's).
19826
19827 Thu Jun  8 14:22:28 1995  Steve Chamberlain  <sac@slash.cygnus.com>
19828
19829         * libc/sys/crt0.S: Initialze sp, and call exit after main.
19830         * libc/sys/syscalls.c (abort): New.
19831         * configure.in (arm): Define ABORT_PROVIDED.
19832
19833 Wed Jun  7 14:04:35 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19834
19835         * configure.in (powerpc): Define multidirs.
19836
19837 Mon Jun  5 16:10:13 1995  Doug Evans  <dje@canuck.cygnus.com>
19838
19839         * libc/sys/arm/crt0.S: Add __USER_LABEL_PREFIX__ support.
19840
19841 Thu Jun  1 10:51:47 1995  Sean Eric Fagan <sef@cygnus.com>
19842
19843         * configure.in (sparclite): Delete target_cflags.  Define multidirs.
19844
19845 Wed May 24 14:23:25 1995  Steve Chamberlain  <sac@slash.cygnus.com>
19846
19847         * configure.in, libc/include/machine/ieeefp.h: Modified
19848         for arm:
19849         libc/machine/arm/*, libc/sys/arm/*: New
19850
19851 Tue May 23 13:53:07 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19852
19853         * libc/include/machine/ieeefp.h: Use __PPC__ instead of
19854           __powerpc__ when determining endianness.
19855
19856 Wed May 10 07:55:56 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19857
19858         * configure.in (m68*): Add multidir for the m68332.
19859
19860         * host/any (CC): Fix typo in last change.
19861
19862 Fri Apr 14 22:20:31 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
19863
19864         * libc/include/sys/config.h: Test __m68k__ instead of __m68000__
19865         when determining endianness.
19866         * libc/include/machine/ieeefp.h: Ditto.
19867         * libc/machine/m68k/setjmp.S: Use '&' instead of '#' for immediate
19868         operands.
19869
19870 Fri Apr 14 14:14:29 1995  Doug Evans  <dje@chestnut.cygnus.com>
19871
19872         * libc/include/errno.h (ENOTEMPTY): Define.
19873
19874 Thu Apr  6 12:21:20 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19875
19876         * configure.in (sparc-sun-sunos*): Add -DMALLOC_ALIGNMENT=8 to
19877           target_cflags.
19878
19879         * libc/sys/sun4/Makefile.in (COPYOFILES): Added rem.o, multiply.o,
19880           and umultiply.o.
19881
19882         * libc/stdio/tmpnam.c (worker): Unconditionally increment count
19883           instead of only when open succeeds.  ANSI requires that multiple
19884           calls to tmpnam() result in different files.
19885
19886         * libc/sys/sun4/Makefile.in (COPYRENAMEOFILES): New macro, list of
19887           objects pulled in from /lib/libc.a that must be renamed before
19888           being pulled into newlib.  /lib/libc.a's div.o conflicted with
19889           newlib's file with the same name.
19890
19891         * libc/stdlib/ldiv.c (ldiv): Call labs() instead of abs().
19892
19893         * host/any (CC, AS, AR, RANLIB): Changed so that executables in
19894           the build tree will only be used if the executables are present
19895           (instead of just the Makefiles).
19896
19897         * libc/include/stdlib.h (mblen, mbtowc, wctomb, mbstowcs,
19898           wcstombs): Define.
19899         * libc/stdlib/{mblen.c, mbstowcs.c, wcstombs.c}: New files, null
19900           versions of these functions that I orignally wrote for the
19901           NetBSD C library.
19902         * libc/stdlib/{mbtowc.c, wctomb.c}: Replaced functions with
19903           versions I wrote for NetBSD.
19904
19905 Wed Mar 29 12:42:42 1995  Kung Hsu  <kung@mexican.cygnus.com>
19906
19907         * libc/sys/sparclite/Makefile.in: add crt0.s and make info.
19908         * libc/sys/sparclite/crt0.s: ditto.
19909
19910 Tue Mar 28 20:28:03 1995  Rob Savoye  <rob@rtl.cygnus.com>
19911
19912         * configure.in: Add soft-float for proelf.
19913
19914 Mon Mar 27 12:07:56 1995  Steve Chamberlain  <sac@bang.hack.com>
19915
19916         * libc/stdlib/mprec.h (Bcopy): Copy the right number
19917         of bytes.
19918
19919 Mon Mar 27 11:24:22 1995  Doug Evans  <dje@chestnut.cygnus.com>
19920
19921         * Makefile.in (all): Depend on `force'.
19922         * configure.in (syscall_dir): Renamed from fake_sys_dir.
19923         (libc_syscall_lib): Renamed from libc_fake_sys_lib.
19924         (LIBC_SYSCALL_LIB): Renamed from LIBC_FAKE_SYS_LIB.
19925         * libc/Makefile.in: Likewise.
19926         * libc/include/reent.h: Update syscall references.
19927         (_fcntl_r): Add prototype.
19928         * libc/syscalls/*.c #include <reent.h>.
19929         (*) Call reentrant version if REENTRANT_SYSCALLS_PROVIDED.
19930
19931 Mon Mar 20 16:57:39 1995  Doug Evans  <dje@deneb.cygnus.com>
19932
19933         * libc/include/sys/stat-dj.h (S_ISBLK): Define.
19934         (S_ISCHR, S_ISDIR, S_ISFIFO, S_ISREG): Define.
19935         * libc/include/sys/stat.h (stat-dj.h): Include ifdef MSDOS.
19936         (time.h, sys/types.h): Always include (even if MSDOS).
19937         (stat): Fix prototype.
19938
19939 Fri Mar 10 11:30:38 1995  Ian Lance Taylor  <ian@cygnus.com>
19940
19941         * configure.in (i[345]86-*-go32): Compile with -DNO_EXEC.
19942
19943 Mon Feb 27 18:00:39 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
19944
19945         * libc/machine/h8500/psi.S (EXTPSIHI_RN_SN): Ifdef out.
19946
19947 Mon Feb 13 16:10:03 1995  Ian Lance Taylor  <ian@cygnus.com>
19948
19949         * libc/include/regdef.h: New file.
19950         * libc/machine/mips/machine/regdef.h: New file.
19951
19952 Mon Feb  6 15:24:29 1995  Doug Evans  <dje@canuck.cygnus.com>
19953
19954         * libc/sys/sparc64/sys/fcntl.h (open): Add ellipsis.
19955
19956 Fri Jan 27 13:52:10 1995  Steve Chamberlain  <sac@splat>
19957
19958         * libc/sys/sh/crt0.S: Pass main's return to exit.
19959         * libc/sys/sh/trap.S: Put errno in the right place.
19960
19961 Tue Jan 24 18:57:56 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
19962
19963         * libm/math/e_rem_pio2.c (__ieee754_rem_pio2): Integrate change
19964         from fdlibm 5.2: handle |x| < 3pi/4 more efficiently.
19965         * libm/math/ef_rem_pio2.c: Likewise.
19966         * libm/math/e_log10.c: Remove unused static one.
19967         * libm/math/ef_log10.c: Likewise.
19968         * libm/math/s_frexp.c: Likewise.
19969         * libm/math/sf_frexp.c: Likewise.
19970
19971 Sun Jan 22 21:26:14 1995  Steve Chamberlain  <sac@splat>
19972
19973         * libc/sys/go32/Makefile.in, clock.S, dir.c, setjmp.S, stat.c,
19974         longjmp.S: Upgraded.
19975         * libc/sys/go32/sys/setjmp.h: Upgraded.
19976         * libc/sys/go32/sys/go32.h, dpmi.h: New files.
19977
19978 Fri Jan 20 18:33:18 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
19979
19980         * configure.in: Add many entries to multidirs for mips targets.
19981
19982 Wed Jan 18 10:19:25 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19983
19984         * libm/math/e_jn.c (__ieee754_yn): Integrate change from fdlibm
19985           5.2 which fixes bug where jn(-1,x) is three times larger than
19986           the actual answer.
19987         * libm/math/ef_jn.c (__ieee754_ynf): Likewise.
19988
19989 Sun Jan 15 21:48:58 1995  Steve Chamberlain  <sac@splat>
19990
19991         * libc/sys/w65/sys/syscalls.h: New file
19992         * libc/include/machine/ieeefp.h: W65 support.
19993         * libc/include/sys/config.h: Ditto.
19994         * libc/machine/w65/Makefile.in, cmpsi, divsi3, lshrhi.s, mulsi3.c,
19995         sdivhi3.s, smulhi3.s, udivhi3.s, umodhi3.s: New files.
19996         * libc/sys/w65/Makefile.in, crt0.c, syscalls.c, trap.c: New files.
19997
19998 Wed Jan 11 15:59:01 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
19999
20000         * libc/sys/Makefile.in (lib.a, crt0.o): Depend upon subs.
20001
20002 Tue Jan  3 15:57:03 1995  Rob Savoye  <rob@darkstar.cygnus.com>
20003
20004         * Makefile.in, configure.in: Remove any references to the old
20005         "stub" dir.
20006
20007 Thu Dec 22 10:42:08 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
20008
20009         * libc/syscalls/sysopen.c: Write _HAVE_STDC version of open, which
20010         uses ... in prototype.
20011
20012
20013 Wed Nov 30 08:39:42 1994  Ian Lance Taylor  <ian@rtl.cygnus.com>
20014
20015         * libc/sys/a29khif/sys/libconfig.h: Remove.
20016         * libc/sys/go32/sys/libconfig.h: Remove.
20017         * libc/sys/sun4/sys/libconfig.h: Remove.
20018         * libc/sys/sysvi386/sys/libconfig.h: Remove.
20019         * libc/sys/sysvnecv70/sys/libconfig.h: Remove.
20020         * libc/sys/sparc64/sys/libconfig.h: Remove.
20021
20022         * libc/include/_ansi.h (_FLOAT_ARG, _FLOAT_RET): Don't define.
20023         * libc/include/sys/config.h (_FLOAT_ARG, _FLOAT_RET): Likewise.
20024         * libc/include/math.h: Change all uses of _FLOAT_RET and
20025         _FLOAT_ARG to float.
20026         * libm/test/math.c: Likewise.
20027         * testsuite/libm.sac/math.c: Likewise.
20028         * testsuite/libm.sac/working/math.c: Likewise.
20029
20030 Wed Nov 23 22:39:28 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
20031
20032         * libc/sys/sh/trap.s,crt0.s,setjmp.s: Renamed with .S so that
20033         gcc calls gas with endian option.
20034         * configure.in (sh): Build little endian version too.
20035
20036 Wed Nov 16 18:21:45 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
20037
20038         * configure.in: Configure big and little endian versions for MIPS
20039         targets.
20040
20041 Sat Nov 12 21:12:51 1994  Doug Evans  <dje@canuck.cygnus.com>
20042
20043         * libc/include/limits.h: Deleted.
20044         * libc/include/machine/limits.h: Deleted.
20045
20046 Thu Nov 10 15:32:44 1994  Rob Savoye  <rob@rtl.cygnus.com>
20047
20048         * ChangeLog: Remove stub directory. This has all been rewritten
20049         and moved to devo/libgloss.
20050
20051 Thu Sep 29 18:31:04 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
20052
20053         * Makefile.in (dvi): Add to info target, use $@ in sub make.
20054         (docs): Merge into info target.
20055         * libm/Makefile.in (dvi): Add $(srcdir).
20056         * libm/math/Makefile.in (chobjs): Remove underscores from file
20057         names.  Texinfo doesn't like them.
20058         (wacos.def, ...): Add explicit targets for all .def files.
20059         * libm/math/math.tex: Remove underscores from @include file names.
20060         * doc/Makefile.in (dvi): Add dummy target.
20061         * testsuite/Makefile.in (dvi): Add dummy target.
20062
20063 Mon Sep 26 21:17:46 1994  Doug Evans  (dje@canuck.cygnus.com)
20064
20065         * Makefile.in (VERSION): Define.  For net newlib releases.
20066
20067 Thu Sep 22 19:01:26 1994  Doug Evans  (dje@canuck.cygnus.com)
20068
20069         * README: New file.
20070
20071 Mon Sep 19 16:35:23 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
20072
20073         * libc/stdlib/ecvtbuf.c (_gcvt): Undo last change.
20074
20075 Mon Sep 19 11:44:23 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
20076
20077         * libc/stdlib/setenv.c (_findenv): Declare.
20078
20079         * libc/include/sys/fcntl.h: Fix declarations of open, creat, and
20080         fcntl to not use _EXFUN, and change string parameters to open and
20081         creat to be ``const char *''.
20082         * libc/sys/sparc64/sys/fcntl.h: Likewise.
20083         * libc/sys/sparc64/creat.c (creat): Make PATH const.
20084         * libc/syscalls/sysopen.c: Include <fcntl.h>.
20085         (open) Make _FILE const.
20086         * libc/sys/z8ksim/glue.c (_open): Make BUF const.
20087         (_creat): Make PATH const.
20088         * libc/sys/h8300hms/syscalls.c (_open): Make PATH const.
20089         * libc/sys/h8500hms/syscalls.c (_open): Likewise.
20090         * libc/sys/m88kbug/syscalls.c (open): Likewise.
20091         * libc/sys/sh/syscalls.c (_open): Likewise.
20092         * stub/shared/glue.c (open): Make BUF const.
20093         * stub/ex93x/syscalls.c (open): Make FILENAME const.
20094
20095 Thu Sep  8 16:39:12 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
20096
20097         * libc/include/errno.h: Add ENMFILE
20098         * libc/include/sys/config.h: Support Z8000.
20099         * libc/include/sys/signal.h: New signals for go32.
20100         * libc/machine/h8500/psi.S (__addpsir0r0): New function
20101         * libc/machine/h8500/cmpsi.S (__ucmppsi2): New function
20102         * libc/machine/sh/sdivsi3.s (__sdivsi3): Rewritten.
20103         * libc/stdlib/mallocr.c (_morecore_r): Minimum chunk
20104         size is variable, depending upon CHUNK_POWER.
20105         * libc/sys/go32/*.c: Upgrade to new go32 stuff.
20106
20107 Sun Sep  4 17:42:43 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
20108
20109         * libc/stdlib/ecvtbuf.c (_gcvt): Output '-' for negative numbers.
20110
20111 Fri Sep  2 10:56:01 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
20112
20113         * libc/include/_ansi.h (_PARAMS): Don't define if already defined.
20114
20115 Wed Aug 24 11:11:03 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
20116
20117         * configure.in: Change i[34]86 to i[345]86.
20118
20119         * libc/include/math.h: Don't define HUGE_VAL if it is already
20120         defined.
20121
20122 Wed Aug 17 15:18:02 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
20123
20124         * testsuite/libm.sac/test_erfc.c: Correct some result values.
20125         * testsuite/libm.sac/test_gammaf.c: Likewise.
20126         * testsuite/libm.sac/test_sin.c: Likewise.
20127         * testsuite/libm.sac/test_tanh.c: Likewise.
20128
20129 Tue Aug 16 16:12:53 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
20130
20131         * libc/include/machine/ieeefp.h: Don't try set endianness if it is
20132         already set.  Define typedefs __int32_t and __uint32_t.
20133         * libc/include/math.h: Include <machine/ieeefp.h>.
20134         (union __dmath): Use __uint32_t.
20135         * libm/math/fdlibm.h, libm/math/*.c: Use __int32_t and __uint32_t
20136         instead of int and unsigned int.
20137
20138 Thu Aug 11 15:16:09 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
20139
20140         Replace the math library with the SunPRO fdlibm package.
20141         * libm/math: Completely changed all files.
20142         * libm/ieeefp: Remove contents and directory.
20143         * libm/Makefile.in (LIBM_FP_LIB): Remove.
20144         (SUBDIRS): Just set to math/lib.a.
20145         * libm/libm.texinfo: Updated for new library.
20146         * libc/include/math.h: Extensive changes for new math library.
20147         * libc/include/ieeefp.h (isnanf, isinff, finitef): Change argument
20148         from _FLOAT_ARG to float.
20149         (maxpowtwo, maxpowtwof): Don't declare.
20150         * configure.in (fp_dir): Removed; was always ieeefp anyhow.
20151         (libm_fp_lib): Removed.
20152         * Makefile.in (MATHOBJS_IN_LIBC): Updated with new file names.
20153         * testsuite/libm.paranoia/Makefile.in (check): Correct --srcdir
20154         argument to ${RUNTEST}.
20155         * testsuite/libm.sac/Makefile.in (LOCAL_CFLAGS): Define.
20156         (.c.o): New rule.
20157         (RUNTESTFLAGS): Set CC and CFLAGS.
20158         (TESTS): Remove test_log2 and test_log2f.
20159         (${TESTS}): Pass ${LOCAL_CFLAGS}, not ${CFLAGS}.
20160         * testsuite/libm.sac/math.c (run_vector_1): Use float, not
20161         _FLOAT_ARG, for single precision argument type.
20162         * testsuite/libm.sac/sac.exp: Treat an error in bit 63 as an
20163         expected failure.  Close the input pipe.
20164         * testsuite/libm.sac/test.c (test_sok, test_iok, test_scok):
20165         Correct misspelling of inaccurate.
20166         (test_mok): Use ``inaccurate'', not ``wrong''.
20167         * testsuite/libm.sac/{test_acos.c, test_acosh.c, test_asin.c,
20168         test_asinh.c, test_atan.c, test_atanh.c, test_ceil.c,
20169         test_ceilf.c, test_cos.c, test_cosh.c, test_erf.c, test_erf.c,
20170         test_fabs.c, test_floor.c, test_floorf.c, test_fmod.c,
20171         test_fmodf.c, test_gamma.c, test_log1p.c, test_log1pf.c,
20172         test_yn.c): Correct many result values.  Many are still wrong.
20173
20174         * libc/stdlib/ecvtbuf.c (print_e): If _dtoa_r sets decpt to 9999,
20175         just copy the string.
20176         (_gcvt): Always return the buffer.
20177
20178 Tue Aug  9 13:43:23 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
20179
20180         * bcopy.c: fixed documentation, bcopy was not specified by ANSI.
20181
20182 Wed Aug  3 05:39:41 1994  D. V. Henkel-Wallace  (gumby@cygnus.com)
20183
20184         * libc/include/sys/reent.h: (struct _Bigint): add _reclaim
20185         structure.
20186         (struct _reent): add _p5s, _cvtlen, _cvtbuf.
20187         (_reclaim_reent): declare new entry point.
20188         * libc/reent/reent.c (cleanup_glue, _reclaim_reent): new
20189         functions.
20190
20191         * libc/stdlib/mprec.c (Balloc): Keep track of every struct bigint
20192         ever allocated, so that we can later reclaim them all.
20193         (pow5mult): make reentrant.
20194
20195         * libc/stdlib/ecvtbuf.c (fcvtbuf, ecvtbuf): extend these functions
20196         so that when given NULL as a buffer, return a pointer to static
20197         space in the rent structure.  This is not documented behaviour;
20198         it's only to support ecvt and fcvt, which aren't ANSI anyway.
20199         * libc/stdlib/efgcvt.c (fcvt, ecvt) Use new functionality (and
20200         therefore become reentrant).
20201
20202         * libc/stdlib/dtoastub.c: remove spurious inclusion of mprec.h.
20203
20204 Mon Aug  1 16:52:24 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
20205
20206         * libc/include/machine/ieeefp.h: Check _AM29K, not ___AM29K__.
20207
20208 Thu Jul 28 15:40:21 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
20209
20210         * Makefile.in: Make link to libg.a after libc.a; this is needed
20211           for the testsuites to build executables when everything comes
20212           from the tree.
20213
20214 Mon Jun 27 17:14:29 1994  Bill Cox  (bill@rtl.cygnus.com)
20215
20216         * libc/Makefile.in: Add a VERSION variable so we can keep track.
20217         * libm/Makefile.in: Add a VERSION variable so we can keep track.
20218
20219 Wed Jun 22 10:26:00 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
20220
20221         * libc/include/stdio.h: Use __VALIST, not va_list.
20222
20223 Tue May 17 15:43:28 1994  Bill Cox  (bill@rtl.cygnus.com)
20224
20225         * testsuite/config/unix-libm.exp, testsuite/lib/libm.exp,
20226         testsuite/libm.sac/execute.exp:
20227           Replace error proc calls with perror calls.
20228
20229 Wed May 11 09:25:28 1994  Doug Evans  (dje@canuck.cygnus.com)
20230
20231         * libc/include/*.h: #include "_ansi.h" instead of <_ansi.h>.
20232         * libc/include/time.h: #define NULL as 0L.
20233
20234 Mon May  9 18:41:20 1994  Doug Evans  (dje@canuck.cygnus.com)
20235
20236         * host/any (INCLUDES): Delete -I of gcc/include, gcc -B takes
20237         care of it.
20238
20239 Mon May  9 18:39:39 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20240
20241         * libc/include/sys/signal.h: Check for __GO32__, not __i386__ and
20242         not __unix__.
20243
20244 Sat May  7 17:07:36 1994  Steve Chamberlain  (sac@cygnus.com)
20245
20246         * configure.in (TARGET_CFLAGS): Set -O2 as default.
20247         (z8k-*-*): Use syscalls fake sys dir.
20248         * libc/sys/z8k/glue.c: Rename syscalls.
20249         * libc/sys/go32/Makefile.in: Use new routines.
20250         * libc/machine/Makefile.in: Fix typo in ln stuff.
20251
20252 Thu May  5 13:47:48 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20253
20254         * Makefile.in (libm.a, crt0.o): Use cp if ln fails.
20255         * libc/Makefile.in (crt0.o): Likewise.
20256         * libc/machine/Makefile.in (lib.a): Likewise.
20257         * libc/sys/Makefile.in (lib.a, crt0.o): Likewise.
20258
20259         All Makefile.in files: Added mostlyclean, realclean and distclean
20260         targets.
20261
20262         * Makefile.in: Don't bother to unexport XTRAFLAGS or
20263         XTRAFLAGS_FOR_TARGET, since they are no longer passed down from
20264         the top level Makefile.
20265
20266 Tue Apr 26 15:10:34 1994  Doug Evans  (dje@canuck.cygnus.com)
20267
20268         * libc/sys/sparc64/sys/stat.h: New file.
20269         * libc/sys/sparc64/sys/time.h: New file.
20270         * libc/sys/sparc64/sys/types.h: New file.
20271
20272 Fri Apr 22 12:58:24 1994  Stan Shebs  (shebs@andros.cygnus.com)
20273
20274         * stub/ex93x/crt0.s (start): Add code to clear bss.
20275
20276 Wed Apr 13 10:34:58 1994  Doug Evans  (dje@canuck.cygnus.com)
20277
20278         * libc/include/sys/types.h (time_t): Properly protect inside
20279         #ifndef __time_t_defined.
20280
20281         * libc/stdio/fileno.c: New file.
20282         * libc/stdio/Makefile.in (OFILES, CHEWOUT_FILES): Add fileno.
20283         (fileno.o): Add dependency.
20284         * libc/include/stdio.h (__sgetc): Rename never to _never.
20285         (fileno macro): Disable, needs to do CHECK_INIT first.
20286
20287 Mon Apr 11 17:37:09 1994  Bill Cox  (bill@rtl.cygnus.com)
20288
20289         * testsuite/Makefile.in (EXPECT, RUNTEST): Set these for the check
20290         goal.
20291
20292         * testsuite/Makefile.in (check): Set TCL_LIBRARY for runtest.
20293         * testsuite/libm.paranoia/Makefile.in (check): Set TCL_LIBRARY for
20294         runtest.
20295         * testsuite/libm.sac/Makefile.in (check): Set TCL_LIBRARY for
20296         runtest.
20297
20298 Sat Apr  9 16:18:09 1994  Doug Evans  (dje@cygnus.com)
20299
20300         * libc/sys/sparc64/sys/fcntl.h: New file, define solaris versions
20301         of the various constants.
20302
20303 Thu Apr  7 21:19:07 1994  Mark Eichin  (eichin@cygnus.com)
20304
20305         * libc/include/math.h: #ifndef __math_68881 around things which
20306         conflict with the (gcc-provided) inline functions in
20307         gcc/ginclude/math-68881.h.
20308
20309 Thu Apr  7 02:50:43 1994  Doug Evans  (dje@cygnus.com)
20310
20311         * libc/include/_syslist.h (_gettimeofday): Define.
20312         (_times): Ditto.
20313         * libc/include/reent.h: #include <machine/types.h> to get _CLOCK_T_.
20314         (struct tms, timeval, timezone): Declare.
20315         (_gettimeofday_r, _times_r): Declare.
20316         * libc/include/time.h (_CLOCK_T_): Don't #undef.  Remove
20317         #ifdef _CLOCK_T_ surrounding definition of clock_t.
20318         (time_t): Add multiple definition protection, __time_t_defined.
20319         * libc/include/sys/time.h: Don't #include <time.h>.
20320         Always define struct timezone (remove #ifndef _TIME_H_).
20321         * libc/include/sys/times.h (_CLOCK_T_): Don't #undef.  Remove
20322         #ifdef _CLOCK_T_ surrounding definition of clock_t.
20323         * libc/reent/Makefile.in (OFILES): Add timer.o.
20324         (CHEWOUT_FILES): Add timer.def.  Add timer.o/timer.c dependence.
20325         * libc/reent/timer.c: New file.
20326         * libc/time/clock.c: #include <reent.h>.
20327         (clock): Call _times_r instead of times.
20328         * libc/time/time.c (HAVE_GETTIMEOFDAY): Renamed from
20329         HAVE_GET_TIME_OF_DAY.
20330         Add comment regarding supporting OS routine(s) required (for docs).
20331         #include <reent.h>.
20332         (time): Call _gettimeofday_r instead of gettimeofday.
20333         * libc/time/asctime.c: Fix comment regarding supporting OS routines.
20334         * libc/time/ctime.c: Ditto.
20335         * libc/time/strftime.c: Ditto.
20336         * libc/sys/sparc64/Makefile.in (TEMPLATE_SFILES): Remove gettimeofday.
20337         (TEMPLATE_SFILES_R): Define here.  Also define times.
20338         Add times_r.o/times.S dependence.
20339         (time2.c, junk.c): Deleted.
20340         * libc/sys/sparc64/time2.c: Deleted.
20341         * configure.in (sparc64-*-*): Define HAVE_GETTIMEOFDAY.
20342
20343         * libc/stdio/mktemp.c (_getpid_r): Renamed from _getpid.
20344         * libc/stdio/tmpnam.c (_getpid_r): Ditto.
20345         * libc/sys/sparc64/junk.c: Deleted.
20346
20347 Mon Mar 21 16:51:03 1994  Doug Evans  (dje@canuck.cygnus.com)
20348
20349         * libc/sys/sparc64/Makefile.in: Add times syscall.
20350         * libc/sys/sparc64/crt0.S: Handle stack bias at run time so we can
20351         be used with and without it.  Add comment clarifying Medium/Anywhere
20352         model requirements.
20353         * libc/sys/sparc64/sigsetjmp.S (setjmp, longjmp): Add svr4 support.
20354         * libc/sys/sparc64/sys/syscall.h (SYS_times): Define for sunos4
20355         even if obsolete.
20356
20357 Sun Mar 20 15:51:47 1994  Doug Evans  (dje@cygnus.com)
20358
20359         * configure.in (target_cflags): Move init.
20360         (sparc64-*-*): Define HAVE_BLKSIZE.
20361
20362 Wed Mar  9 10:44:52 1994  Doug Evans  (dje@canuck.cygnus.com)
20363
20364         * libc/include/sys/_types.h: New file.
20365         * libc/include/reent.h: #include it.
20366         Add comment describing REENTRANT_SYSCALLS_PROVIDED and
20367         MISSING_SYSCALL_NAMES.
20368         Sort syscalls.
20369         * libc/include/_syslist.h: Remove _raise.
20370         * libc/reent/signalr.c: New file.
20371         * libc/reent/Makefile.in: Compile it.
20372         * libc/signal/signal.c: Only use ifdef SIMULATED_SIGNALS.
20373         Add doc for raise and _raise_r.
20374         * libc/signal/raise.c: Only use ifndef SIMULATED_SIGNALS.
20375         (raise): Call _raise_r.
20376         (_raise_r): Call _getpid_r and _kill_r.
20377         * libc/stdlib/abort.c: Remove inclusion of stdio.h and _syslist.h.
20378         (abort): Loop forever calling raise and _exit.
20379
20380 Mon Mar  7 14:40:08 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20381
20382         * configure.in: Remove extraneous echo.
20383
20384 Thu Mar  3 12:14:22 1994  Doug Evans  (dje@canuck.cygnus.com)
20385
20386         * libc/sys/sparc64/sys/dirent.h (MAXNAMLEN): #undef to avoid
20387         collision with unistd.h, and fix for svr4.
20388
20389 Wed Mar  2 13:55:25 1994  Doug Evans  (dje@canuck.cygnus.com)
20390
20391         * libc/stdio/local.h (_llicvt): Declare.
20392         (CVT_BUF_SIZE): Define (and buffer size from 512 to 128).
20393         * libc/stdio/cvt.c: Include "local.h" to get CVT_BUF_SIZE.
20394         (_llicvt): Define.
20395         (_sicvt): Fix function header (`value' is short).
20396         * libc/stdio/vfprintf.c (_vfprintf_r): Use CVT_BUF_SIZE.
20397         Add printing of long long's support.
20398         Add printing of 8 byte pointer support.
20399
20400 Fri Feb 11 21:52:11 1994  Steve Chamberlain  (sac@sphagnum.cygnus.com)
20401
20402         * libc/sys/sh/syscalls.c (pipe, execv, wait, fork, utime, chown,
20403         stat, chmod): New hooks.
20404         (sbrk): Abort if stack and heap collide.
20405         * libc/machine/sh/udivsi3, libc/machine/sh/sdivsi3 Modified to
20406         shortcut when given small args.
20407         * libc/machine/sh/setjmp.s: Rewritten.
20408         * libc/machine/sh/strcmp.s (strcmp): New function takes advantage
20409         of cmp/str instruction.
20410
20411 Wed Feb  9 15:12:35 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20412
20413         * configure.in: Accept powerpc* as a CPU type, using fp_dir ieeefp
20414         and machine_dir powerpc.
20415         * libc/include/machine/setjmp.h, libc/include/machine/ieeefp.h:
20416         Add cases for __powerpc__.
20417         * libc/machine/powerpc/Makefile.in, libc/machine/powerpc/setjmp.S:
20418         New files.
20419
20420         * libc/include/stdio.h (_iprintf_r): Declare correctly.
20421
20422 Thu Jan 27 10:36:27 1994  Steve Chamberlain  (sac@cygnus.com)
20423
20424         * libc/stdlib/callocr.c: New file with _calloc_r in it.
20425         * libc/stdlib/calloc.c (calloc_r): Now in callocr.c
20426
20427 Thu Jan 20 15:14:37 1994  Doug Evans  (dje@canuck.cygnus.com)
20428
20429         * libc/stdlib/ecvtbuf.c (print_f): Remove local "done".
20430         (print_e): More comments to describe args, etc.
20431         "type" arg may now be 'g' or 'G' for %g/G format --> remove
20432         trailing blanks.
20433         (_gcvt): Remove locals decpt, sign, end, p, done.
20434         More comments for print_e invocation.
20435         Pass "type" to print_e as is (g/G).
20436
20437 Wed Jan 19 16:34:18 1994  Rob Savoye  (rob@darkstar.cygnus.com)
20438
20439         * stub/shared/m68k-crt0.S: Changed so it compiles (and runs) on a
20440         stock m68000.
20441
20442 Mon Jan 17 15:41:53 1994  Doug Evans  (dje@canuck.cygnus.com)
20443
20444         * libc/stdlib/mallocr.c (_morecore_r): Fix aligning of pointer so it
20445         works with any sized pointer, including ones bigger than ints and
20446         longs.
20447
20448 Thu Jan  6 14:53:21 1994  Doug Evans  (dje@canuck.cygnus.com)
20449
20450         * libc/sys/sparc64/{time2.c,utime.S,utime2.c}: New files.
20451
20452 Sat Dec 11 16:17:20 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
20453
20454         * libc/include/stdlib.h (_calloc_r): Add prototype.
20455         * libc/machine/h8500/negsi2.c: New file.
20456         * libc/machine/h8500/divsi3.c: Prevent overflow when dividing v
20457         large unsigned numbers.
20458         * libc/machine/h8500/cmpsi.c: Add cmppsi.
20459         * libc/stdlib/mallocr.c (morecore_r): Fix aligning pointers so it
20460         works when sizeof(size_t) != sizeof(char *).
20461         * libc/stdlib/mprec.c (Balloc): Call calloc rather than malloc to
20462         get play area
20463         * libc/stdlib/mprec.h: Define Just_16 if generating for z8000.
20464
20465 Mon Dec  6 15:59:53 1993  Doug Evans  (dje@rtl.cygnus.com)
20466
20467         * libc/include/assert.h (assert): Handle -traditional.
20468
20469 Tue Nov 16 15:49:24 1993  Mark Eichin  (eichin@cygnus.com)
20470
20471         * Makefile.in: added ; after every "fi" and "done" that wasn't at
20472         the end of a line (ie. anything before a backslash continuation)
20473         so that bash handles them.
20474
20475 Tue Nov 16 12:31:57 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
20476
20477         * libc/sys/go32/lstat.s: new file, copied from stat.s and renamed
20478         stat to lstat
20479
20480 Mon Nov 15 15:50:43 1993  Steve Chamberlain  (sac@jonny.cygnus.com)
20481
20482         * libc/sys/sh/crt0.s, libc/sys/sh/trap.s,
20483         libc/machine/sh/sdivsi3.s, libc/machine/sh/setjmp.s,
20484         libc/machine/sh/udivsi3.s: Use new calling convention.
20485
20486 Mon Nov 15 15:25:38 1993  Mark Eichin  (eichin@cygnus.com)
20487
20488         * libc/include/sys/unistd.h, libc/include/sys/stat.h: ANSI-fy
20489         chmod, access, chdir, chown by making _path const. Also fix _amode
20490         param of access.
20491
20492 Fri Nov 12 20:25:28 1993  Mark Eichin  (eichin@cygnus.com)
20493
20494         * libc/sys/a29khif/_tmpnam.s (_tmpnam): renamed function to
20495         _khif_tmpnam, because it doesn't comply with ANSI but may be
20496         useful anyway. Real tmpnam was already in libc/stdio, and was
20497         colliding with this one (pr 2176.)
20498         * libc/sys/a29khif/stubs.s (tmpnam): removed tmpnam. This file is
20499         the wrong idea anyhow.
20500
20501 Mon Nov  8 07:50:16 1993  Doug Evans  (dje@canuck.cygnus.com)
20502
20503         * configure.in: Remove h8300h, we have multilib now.
20504
20505 Fri Nov  5 12:37:27 1993  Mark Eichin  (eichin@cygnus.com)
20506
20507         * libc/string/strcasecmp.c, libc/string/strncasecmp.c: new
20508         functions, to get preference over the ones in libiberty (since we
20509         provide correct declarations in <string.h>.
20510         * libc/string/Makefile.in: add support for strncasecmp,
20511         strcasecmp.
20512
20513 Fri Nov  5 09:05:45 1993  D. V. Henkel-Wallace  (gumby@blues.cygnus.com)
20514
20515         * Change netware config not to look for cpu explicitly.
20516
20517 Thu Nov  4 14:21:25 1993  Doug Evans  (dje@canuck.cygnus.com)
20518
20519         * libc/sys/sparc64/{creat.c,junk.c}: New files.
20520         * libc/sys/sparc64/Makefile.in: Add dependencies.
20521
20522 Wed Nov  3 10:42:49 1993  Doug Evans  (dje@canuck.cygnus.com)
20523
20524         * configure.in: Clean up v9 a bit, new "os" aoutv8.
20525
20526 Tue Nov  2 10:00:44 1993  D. V. Henkel-Wallace  (gumby@cygnus.com)
20527
20528         * libc/include/sys/reent.h: make structure smaller by allocating
20529         some stuff when needed.
20530         * libc/signal/signal.c: allocate as needed
20531         * libc/stdio/findfp.c,stdio/local.h: ditto
20532         * libc/stdlib/mprec.c: ditto
20533
20534         * libc/time/localtime.c: don't return a dangling stack ptr.
20535
20536 Wed Sep 29 20:42:34 1993  Rob Savoye  (rob@darkstar.cygnus.com)
20537
20538         * stub/mvme135/crt0.S, stub/mvme135/glue.c: Moved to stub/generic.
20539
20540 Wed Sep 29 16:27:49 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20541
20542         * libc/include/stdio.h (__sputc): comment out static inline which
20543           confuses coff toolchains.
20544
20545 Thu Sep  2 16:31:36 1993  Mark Eichin  (eichin@cygnus.com)
20546
20547         * libc/sys/a29khif/{_close.s, _fstat.s, _lseek.s, _sbrk.s,
20548         _write.s, getpid.c, kill.c, read.s}:
20549         * libc/sys/a29khif/stubs.s: eliminated stubs that already go
20550         through the syscalls directory.
20551
20552 Fri Oct 29 13:59:58 1993  Jeffrey Wheat  (cassidy@cygnus.com)
20553
20554         * configure.in: fixed double quote gotcha.
20555
20556 Wed Oct 27 15:27:09 1993  Rob Savoye  (rob@darkstar.cygnus.com)
20557
20558         * stub/ex931: stub library for sparclite board.
20559         * stub/idp: Renamed from mc68ec. Added contructor table
20560         stuff to linker script.
20561         * stub/mvme135: Renamed from m68kmvme. Added contructor table
20562         stuff to linker script.
20563
20564 Tue Oct 26 17:01:23 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20565
20566         * configure.in: Configure testsuites only if they exist.
20567
20568 Tue Oct 26 12:37:11 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20569
20570         * configure.in: Don't set machine_dir for i386 until there is
20571         something in libc/machine/i386 to compile.  For i[34]86-*-netware*
20572         use sys/netware, don't use signal, define NO_EXEC, ABORT_PROVIDED,
20573         CLOCK_PROVIDED and MALLOC_PROVIDED.
20574
20575         * libc/sys/netware: New directory.  Contains simplistic and
20576         probably incorrect stubs for NetWare.  Should be enough to load
20577         the library.
20578         * libc/sys/netware/crt0.c, libc/sys/netware/environ.c,
20579         libc/sys/netware/getpid.c, libc/sys/netware/link.c: New NetWare
20580         stub files.
20581
20582         * libc/reent/execr.c: Don't use if NO_EXEC is defined.
20583         * libc/reent/sbrkr.c: Don't use if MALLOC_PROVIDED is defined.
20584         * libc/stdlib/abort.c: Don't use if ABORT_PROVIDED is defined.
20585         * libc/time/clock.c: Don't use if CLOCK_PROVIDED is defined.
20586
20587 Mon Oct 25 16:48:08 1993  Roland H. Pesch  (pesch@cygnus.com)
20588
20589         * testsuite/Makefile.in: add "docs" dummy target for consistency
20590         with rest of newlib; turn "info" and "install-info" into dummy
20591         targets, since they wouldn't have worked.  (Depended on
20592         nonexistent "doc" subdir.)
20593
20594 Fri Oct 22 20:37:32 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
20595
20596         * configure.in: handle mips* instead of mips
20597
20598 Thu Oct 21 08:57:24 1993  Ian Lance Taylor  (ian@cygnus.com)
20599
20600         * libc/include/sys/dirent.h: New file.  If it is not overridden by
20601         a version of libc/sys/*/sys/dirent.h, it includes the next
20602         <dirent.h> file in case there is one lurking somewhere.
20603
20604 Fri Oct 15 14:17:40 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20605
20606         * libc/stdlib/strtoul.c (_strtoul_r): Several changes for ANSI
20607         compliance, namely: Accept a minus sign.  Consider a single 0 with
20608         a radix of 0 as being a conversion.  Determine overflow correctly.
20609         If an overflow occurs, set *ptr to the end of the number, not the
20610         middle.
20611         * lib/stdlib/strtol.c (_strtol_r): Determine overflow correctly.
20612
20613 Thu Oct 14 21:49:52 1993  Doug Evans  (dje@canuck.cygnus.com)
20614
20615         * libc/machine/h8300/divsi3.S (divmodsi4): Fix h8300h case.
20616
20617 Fri Oct  1 17:17:34 1993  Doug Evans  (dje@canuck.cygnus.com)
20618
20619         * Makefile.in (INSTALL): Use $srcrootpre.
20620         (crt0.o): Replace $< with $(CRT0_DIR)/$(CRT0), Sun make
20621         can't handle it.
20622         * libc/Makefile.in (crt0.o): Spell out $<, Sun make can't handle
20623         it.
20624         * libc/sys/Makefile.in (crt0.o, lib.a): Ditto.
20625         * stub/Makefile.in (crt0.o, TARGETLIB): Ditto.
20626         * libc/sys/sparc64/Makefile.in (isatty.o): Sun VPATH lossage.
20627         * libm/math/Makefile.in (matherr.o): Ditto.
20628
20629 Thu Sep 30 11:09:17 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
20630
20631         * configure.in: Build multidirs for z8k.
20632         * libc/include/stdlib.h (_strtoul_r): add prototype.
20633         * libc/include/machine/limits.h: Get INT_MIN right for all the z8k family.
20634         * libc/include/machine/setjmp.h: Add for z8k.
20635         * libc/machine/z8k/{mulsi.o, udivsi3.o, umodsi3.o, modsi3.o} obsolete.
20636         * libc/sys/z8ksim/glue.c: tidy up.
20637
20638 Mon Sep 20 14:04:46 1993  Doug Evans  (dje@canuck.cygnus.com)
20639
20640         * libc/unix/{execl.c execle.c execlp.c execv.c execvp.c}:
20641         New files.  Requires execve system call.
20642         * libc/unix/Makefile.in: Use them.
20643         * libc/sys/sparc64/{execl.c execle.c execlp.c execv.c execvp.c}:
20644         Deleted, moved to libc/unix.
20645         * libc/sys/sparc64/Makefile.in: Remove them.
20646
20647 Mon Sep 20 10:38:32 1993  Doug Evans  (dje@canuck.cygnus.com)
20648
20649         * libc/sys/sparc64/{template.S template_r.S}: New files.
20650         * libc/sys/sparc64/Makefile.in: Build source for trivial syscalls
20651         from templates.
20652         * libc/sys/sparc64/{chdir.S chmod.S close.S dup.S fcntl.S
20653         fork.S fstat.S lseek.S link.S mkdir.S open.S pipe.S read.S rmdir.S
20654         umask.S unlink.S wait4.S write.S}: Removed, now built from
20655         templates.
20656
20657 Sun Sep 19 14:52:57 1993  Doug Evans  (dje@canuck.cygnus.com)
20658
20659         * libc/time/time.c: #include <_ansi.h>.
20660
20661 Sun Sep 19 13:43:25 1993  Doug Evans  (dje@canuck.cygnus.com)
20662
20663         * configure.in (sparc64-*-*): Remove -D__SIZE_TYPE__.
20664
20665 Mon Sep 13 13:52:16 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20666
20667         * configure.in: match m8* rather than m88k so that m88110 is
20668           recognized as well.
20669
20670 Tue Sep  7 12:19:32 1993  Doug Evans  (dje@canuck.cygnus.com)
20671
20672         * libc/sys/h8300hms/{Makefile.in, _exit.c, misc.c}:
20673         Renamed exit.c to _exit.c to avoid collision with stdlib/exit.c.
20674         misc.c: New file.
20675
20676         * configure.in: Add multilib support to h8300.
20677
20678 Mon Sep  6 14:07:06 1993  Doug Evans  (dje@canuck.cygnus.com)
20679
20680         * libc/stdlib/abort.c (abort): Remove _VOLATILE from return type.
20681         * libc/include/_ansi.h (_ATTRIBUTE): New macro for __attribute__.
20682         * libc/include/stdlib.h (exit, abort): Add noreturn attribute.
20683
20684 Mon Sep  6 14:24:18 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20685
20686         * configure.in: Corrected multidirs for sparc target.
20687
20688 Mon Aug 30 15:56:44 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20689
20690         Support for building newlib multiple times with different
20691         compilation flags.
20692         * configure.in: Only configure doc at top level.  Set multidirs
20693         when appropriate for target, unless not at top level.  If
20694         multidirs is set, independently configure each subdirectory.
20695         Adjust TOP, MULTIDIRS and MULTISUBDIR appropriately in Makefile.
20696         * Makefile.in (MULTIDIRS, MULTISUBDIR): New variables,
20697         automagically set by configure.in.
20698         (all): If MULTIDIRS is set, build multiple copies of libraries.
20699         (install): If MULTIDIRS is set, install multiple copies of
20700         libraries.  Install in $(tooldir)/lib/$(MULTISUBDIR).  If
20701         MULTISUBDIR is set, don't bother to install header files.
20702         * host/any (INCLUDES, CHEW): Use $(SRCTOP) rather than $(TOP) from
20703         ${srcrootpre}.
20704         * stub/configure.in: Set MULTISUBDIR appropriately.
20705         * stub/Makefile.in (install): Install in
20706         $(tooldir)/lib/$(MULTISUBDIR).
20707         * All Makefile.in files: Define SRCTOP as well as TOP.
20708
20709 Mon Aug 30 10:34:24 1993  Doug Evans  (dje@canuck.cygnus.com)
20710
20711         * libc/machine/h8300/{mulhi3.S, divhi3.S}: Comment out if h8300h.
20712         * libc/machine/h8300/{mulsi3.S, divsi3.S}: Add h8300h support.
20713
20714 Thu Aug 26 19:38:12 1993  Doug Evans  (dje@canuck.cygnus.com)
20715
20716         * libc/sys/h8300hms/exit.c (_exit): New function.
20717
20718 Wed Aug 25 16:31:48 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20719
20720         * configure.in: recognize m88110.
20721
20722 Fri Aug 20 16:46:23 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20723
20724         * libc/sys/m88kbug/crt0.c: pretty up, remove extraneous comments,
20725           prototype main and call with args.
20726
20727 Fri Jul 30 16:52:47 1993  K. Richard Pixley  (rich@cygnus.com)
20728
20729         First real try at system traps for m88k-bug.
20730         * libc/sys/m88kbug/syscalls.c: many changes.  Convert from stubs
20731           to real trap calls.
20732         * libc/sys/m88kbug/sys/systraps.h: new file.
20733
20734 Tue Jul 27 16:31:16 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20735
20736         Patches to fix info building when target does not use sys
20737         directory.
20738         * libc/Makefile.in (targetdep.tex): add sys.tex separately.
20739         * libc/sys.tex, libc/sys/sys.tex: moved from libc/sys/sys.tex to
20740           libc/sys.tex.
20741         * libc/sys/Makefile.in (doc): do nothing.
20742
20743 Mon Jul 26 17:08:11 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20744
20745         * libc/Makefile.in (CRT0): new macro.
20746           (all): depend on $(CRT0) rather than crt0.o.
20747
20748         * configure.in: fix libc_sys_dir -> libc_sys_lib thinko.
20749           do not default crt0, instead, set crt0 and crt0_dir based on
20750           sys_dir and stub_dir.
20751
20752         * Makefile.in (CRT0_DIR): new macro.
20753           (all): depend on $(CRT0) rather than crt0.o which may not exist.
20754           (crt0.o): depend on $(CRT0_DIR)/$(CRT0) rather than simply
20755           $(CRT0).
20756           ($(CRT0)): recur by cd'ing into $(CRT0_DIR).
20757
20758 Sun Jul 25 17:51:51 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
20759
20760         * testsuite/lib/libm.exp:
20761                 added code to support compiling and linking of tests for
20762                 libm.sac (paranoia to be added next) and processing the
20763                 pass or failure of the tests.
20764
20765         * testsuite/config/unix-libm.exp:
20766                 platform specific proc's for dealing with compiler, linker
20767                 and the way we execute and process the test results.
20768
20769         * testsuite/libm.sac/execute.exp:
20770                 generic framework for the sac tests. the config and lib
20771                 expect code for specific platforms tie it all together.
20772
20773         * testsuite/libm.sac/test_is.c:
20774                 changed the output of the test to be consistant with the
20775                 other tests. parsing of pass nad fail messages is now fixed.
20776
20777 Fri Jul 23 19:20:07 1993  Per Bothner  (bothner@kalessin)
20778
20779         * libc/include/{assert.h, ctype.h, dirent.h, errno.h, fastmath.h,
20780         locale.h, math.h, pwd.h, reent.h, setjmp.h, signal.h, stdio.h,
20781         stdlib.h, string.h, termios.h, time.h, utime.h, utmp.h}: For C++:
20782         #ifdef __cplusplus, surround by extern ""C { ... }.
20783         * libc/include/assert.h:  Do *not* protect assert.h against
20784         multiple inclusion!  Also, #undef it before #define, to allow
20785         redefinition.
20786         * libc/include/stdio.h (getlogin, cuserid):  Removed.  These
20787         should be only in unistd.h.
20788
20789         * libc/include/sys/{fcntl.h, reent.h, stat.h, time.h, times.h,
20790         unistd.h}: For C++: #ifdef __cplusplus, surround by extern ""C {
20791         ... }.
20792
20793 Fri Jul 23 10:15:33 1993  Doug Evans  (dje@canuck.cygnus.com)
20794
20795         * libc/machine/sparc/Makefile.in: Must create a library, even
20796         if empty.
20797
20798 Wed Jul 21 16:00:37 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20799
20800         * configure.in: set machine_dir for m88k.  edit crt0 definition
20801           into makefiles.
20802
20803         * Makefile.in, libc/Makefile.in (crt0): pull up from lower directories.
20804
20805         * libc/Makefile.in (all): also build crt0.o.
20806
20807         * libc/machine/i386/Makefile.in, libc/machine/sparc/Makefile.in,
20808           libc/machine/z8k/Makefile.in, libm/Makefile.in (clean): no need
20809           to remove CRT0.
20810
20811         * libc/machine/m88k/Makefile.in (TOP, TARGETLIB): removed.
20812           (all): reworked to build in place.
20813           (clean): remove lib.a
20814           (Makefile): remove redundant ./, call $(SHELL) rather than sh.
20815
20816         * libc/sys/m88kbug/crt0.c (start): renamed to _start.
20817           (_start): key off edata rather than _start_bss.
20818
20819 Wed Jul 21 14:29:47 1993  david d `zoo' zuhn  (zoo@cygnus.com)
20820
20821         * libc/include/sys/unistd.h, libc/include/reent.h,
20822         libc/reent/sbrkr.c: change sbrk to return void* instead of char*.
20823
20824 Tue Jul 20 13:19:18 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20825
20826         * libm/Makefile.in, libc/Makefile.in ($(SUBDIRS)): dollar escape a dollar sign.
20827
20828         * Makefile.in (libc.a): break into two rules, one for libc.a and
20829           one for libc/libc.a.  Force subdirs current before rebuilding
20830           library.
20831           (libm.a): break into two rules, one for libm.a and one for
20832           libm/libm.a.  Force subdirs current before rebuilding library.
20833
20834         * libc/Makefile.in (SUBLIBS): fix typo.
20835
20836         * libc/sys/Makefile.in (all): force descent into subdirs, then
20837           rebuild library iff out of of date.
20838
20839 Fri Jul 16 17:47:57 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20840
20841         Rework so that library is built and then finished rather than
20842         being built on each invocation of make.
20843
20844         * host/any (machine_dir, sys_dir, signal_dir): these are not
20845           shared and have been moved to their associated Makefile.in's.
20846           (AR_FLAGS): switch to qc which is faster.
20847         * configure.in: no longer assign machine_dir for m88k.  set
20848           stub_dir, stub_lib, & crt0 for m68k*-unknown-{aout,coff}.  If
20849           stub_dir set, then add to configdirs.  add comment about silly
20850           configuration.
20851           (configdirs): drop stub.  It will be added only
20852           when needed.
20853           (libm_fp_lib, libc_unix_lib, libc_signal_lib, libc_machine_lib,
20854           libc_sys_dir, fake_sys_dir, libc_fake_sys_lib, stub_dir,
20855           stub_lib, crt0): new variables for tailoring lower level
20856           makefiles.  Assign accordingly and edit into makefiles.
20857         * libm/Makefile.in: updated copyright.
20858           (TARGETLIB): removed.
20859           (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir.
20860           (SUBDIRS): removed TARGETDEP_DIRS.
20861           (LIBM_FP_LIB, SUBLIBS): new macros.
20862           (all): reworked.
20863           (force): new target to force rebuilds.
20864           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
20865         * libc/sys/a29khif/Makefile.in, libc/sys/decstation/Makefile.in,
20866           libc/sys/go32/Makefile.in, libc/sys/h8300hms/Makefile.in,
20867           libc/sys/h8500hms/Makefile.in, libc/sys/m88kbug/Makefile.in,
20868           libc/sys/sh/Makefile.in, libc/sys/sparc64/Makefile.in,
20869           libc/sys/sun4/Makefile.in, libc/sys/sysvi386/Makefile.in,
20870           libc/sys/sysvnecv70/Makefile.in, libc/sys/z8ksim/Makefile.in,
20871           stub/m68kmvme/Makefile.in: updated copyright.
20872           (TARGETLIB, TARGETCRT0, CRT0): macros removed.
20873           (all): reworked.  made this the default rule.
20874           (clean): also remove lib.a.
20875           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
20876         * stub/Makefile.in: updated copyright.
20877           (TARGETLIB, TARGETCRT0, CRT0, TOP): removed.
20878           (stub_lib): new macro.
20879           (FLAGS_TO_PASS): removed TARGETLIB, stub_dir, TARGETCRT0.  Added
20880           RANLIB.
20881           (all): reworked.
20882           (clean, install): assume stub_dir exists.
20883           (Makefile): depend on configure.in.  call $(SHELL) rather than
20884           sh.  drop redundant ./
20885         * stub/configure.in (stublib): new macro, assign it, edit it into
20886           makefiles.
20887         * Makefile, libc/Makefile.in, doc/Makefile.in, libc/sys/Makefile.in:
20888           updated copyright.
20889           (all): reworked.
20890           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
20891         * libc/Makefile.in (TARGETCRT0): removed.
20892           (FLAGS_TO_PASS): dropped TARGETLIB, machine_dir, sys_dir,
20893           TARGETCRT0.
20894           (SUBDIRS): drop TARGETDEP_DIRS.
20895           (LIBC_SIGNAL_LIB, LIBC_SYS_LIB, LIBC_MACHINE_LIB, LIBC_UNIX_LIB,
20896           LIBC_FAKE_SYS_LIB, SUBLIBS): new macros for configuration.
20897           (force): new target to force rebuilds.
20898         * libc/sys/Makefile.in (TARGETCRT0, sys_dir): removed.
20899           (FLAGS_TO_PASS): TARGETLIB, machine_dir, sys_dir, TARGETCRT0
20900           removed.
20901           (clean): assume sys_dir always exists.
20902         * libm/test/Makefile.in (Makefile): call $(SHELL) rather than sh.
20903           drop redundant ./
20904         * libc/ctype/Makefile.in, libc/errno/Makefile.in,
20905           libc/locale/Makefile.in, libc/machine/Makefile.in,
20906           libc/machine/a29k/Makefile.in, libc/machine/h8300/Makefile.in,
20907           libc/machine/h8500/Makefile.in, libc/machine/i386/Makefile.in,
20908           libc/machine/i960/Makefile.in, libc/machine/m68k/Makefile.in,
20909           libc/machine/mips/Makefile.in, libc/machine/necv70/Makefile.in,
20910           libc/machine/sh/Makefile.in, libc/machine/sparc/Makefile.in,
20911           libc/machine/z8k/Makefile.in, libc/reent/Makefile.in,
20912           libc/signal/Makefile.in, libc/stdio/Makefile.in,
20913           libc/stdlib/Makefile.in, libc/string/Makefile.in,
20914           libc/sys/Makefile.in, libc/syscalls/Makefile.in,
20915           libc/time/Makefile.in, libc/unix/Makefile.in,
20916           libm/ieeefp/Makefile.in, libm/math/Makefile.in: updated copyright.
20917           (TARGETLIB): removed.
20918           (all): reworked.
20919           (clean): also remove lib.a.
20920           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
20921         * Makefile.in: (machine_dir, sys_dir, stub_dir, stub_lib, CRT0):
20922           new macros.
20923           (SUBDIRS): moved to follow frag inclusion, change stub to
20924           stub_dir.
20925           (FLAGS_TO_PASS): removed machine_dir, sys_dir, signal_dir which
20926           are now set in the libc Makefile.
20927         * libc/machine/Makefile.in (TARGETCRT0, machine_dir): removed.
20928           (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir,
20929           TARGETCRT0.
20930           (force): new target to force rebuilds.
20931         * stub/configure.in: determine and set stub_lib for for Makefile.
20932
20933 Thu Jul 15 12:01:27 1993  Doug Evans  (dje@canuck.cygnus.com)
20934
20935         * libc/sys/h8300hms/Makefile.in: Make `all' the default target.
20936         crt0.s renamed to crt0.S.
20937         * libc/sys/h8300hms/crt0.S: Add h8/300h support.
20938
20939         * libc/machine/h8300/Makefile.in: Make `all' the default target.
20940         * libc/machine/h8300/{cmpsi.S,ucmpsi.S}: #ifdef out entire file if
20941         h8300h.
20942         * libc/machine/h8300/defines.h: Add macros to handle pointers for
20943         h8300 (16 bits) and h8300h (32 bits).
20944         * libc/machine/h8300/{divsi3.S,mulsi3.S,memcpy.S,memset.S,
20945         reg_memcpy.S,reg_memset.S,strcmp.S}: Add h8300h support.
20946
20947 Thu Jul 15 10:13:29 1993  Ian Lance Taylor  (ian@cygnus.com)
20948
20949         * libc/machine/m88k/setjmp.S, Makefile.in: New files; a simple
20950         implementation of setjmp and longjmp for the m88k.
20951         * libc/include/machine/setjmp.h: Added __m88000__ case.
20952
20953 Wed Jul 14 10:10:30 1993  Doug Evans  (dje@canuck.cygnus.com)
20954
20955         * configure.in: Recognize h8300h as variant of h8300.
20956
20957 Tue Jul 13 12:24:11 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
20958
20959         * libc/include/sys/unistd.h (read, write): get prototypes right.
20960         (sbrk): New prototype.
20961         * libc/reent/sbrkr.c (sbrkr): Use correct sbrk prototype.
20962         * libc/stdio/local.h: Include unistd.h.
20963         * libc/machine/h8300/syscalls.c: Names have changed.
20964
20965 Mon Jul 12 18:08:42 1993  K. Richard Pixley  (rich@cygnus.com)
20966
20967         * configure.in: add sys_dir assignment for m88k-bug.
20968
20969 Thu Jul  8 09:16:21 1993  Doug Evans  (dje@canuck.cygnus.com)
20970
20971         * libc/sys/sparc64/sys/syscallasm.h: New macros to handle either
20972         a.out or elf.
20973         * libc/sys/sparc64: all *.S files: Use new macros.
20974         * libc/sys/sparc64/isatty.c: New file.
20975         * libc/sys/sparc64/Makefile.in: Stop using /lib/libc.a for
20976         functions beyond what newlib provides.
20977
20978 Thu Jul  8 09:11:28 1993  Doug Evans  (dje@canuck.cygnus.com)
20979
20980         * libc/include/sys/stat.h: Move st_atime so not doubly defined for
20981         svr4.
20982
20983 Thu Jul  8 09:09:16 1993  Doug Evans  (dje@canuck.cygnus.com)
20984
20985         * libc/include/machine/ieeefp.h: Add support for h8/300h.
20986
20987 Fri Jul  2 10:11:20 1993  K. Richard Pixley  (rich@cygnus.com)
20988
20989         * configure.in: add m88k.
20990         * libc/include/machine/ieeefp.h: add case for m88k.  Also add
20991         sanity check so no one else need ever chase what I did to find
20992         this.
20993
20994         * libm/math/Makefile.in (FAKEC): added atanf.c log1pf.c scalbnf.c.
20995
20996 Fri Jul  2 09:15:21 1993  Ian Lance Taylor  (ian@cygnus.com)
20997
20998         * doc/makedoc.c: Include <ctype.h>.
20999
21000 Wed Jun 30 09:35:06 1993  Doug Evans  (dje@canuck.cygnus.com)
21001
21002         * libc/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
21003         * libc/sys/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
21004         * libc/machine/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
21005
21006         * libm/test/Makefile.in (all): Link with ../../lib[cm].a.
21007
21008 Sun Jun 27 17:05:20 1993  Doug Evans  (dje@sphagnum.cygnus.com)
21009
21010         * libc/include/errno.h (ENOSYS): Added.
21011
21012         * libc/unix/getpwd.c (getcwd): Fix typo (_up -> up).
21013
21014 Mon Jun 21 09:03:32 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
21015
21016         * libc/stdio/fflush.c (fflush): Check for reent struct
21017         initialization.
21018         * libc/stdio/fdopen.c (fdopen): Avoid namespace conflict.
21019
21020 Fri Jun 18 16:06:05 1993  Mark Eichin  (eichin@rtl.cygnus.com)
21021
21022         * libc/stdlib/dtoastub.c: new file -- move user callable "dtoa"
21023         out of dtoa.c so it doesn't pollute the namespace.
21024         * libc/include/_syslist.h: new file -- mappings from _function to
21025         function, for systems where we can't win (by default, all of them,
21026         until we start updating system calls.)
21027         * libc/syscalls: new directory -- stubs for exporting _function
21028         names as unmodified function names.
21029         * libc/configure.in: add MISSING_SYSCALL_NAMES to enable
21030         _syslist.h on all platforms by default, but put hooks in for
21031         fake_sys_dir so we can include it when we've renamed the system
21032         calls.
21033         * libc/reent/execr.c libc/reent/filer.c libc/reent/fstatr.c
21034         libc/reent/linkr.c libc/reent/sbrkr.c libc/reent/statr.c
21035         libc/signal/raise.c libc/signal/signal.c libc/stdio/fdopen.c
21036         libc/stdio/mktemp.c libc/stdio/tmpnam.c libc/stdlib/abort.c
21037         libc/stdlib/system.c libc/unix/getcwd.c libc/unix/getlogin.c
21038         libc/unix/getpass.c libc/unix/getut.c libc/unix/ttyname.c: change
21039         non ANSI functions to call _function.
21040
21041 Wed Jun  9 09:48:26 1993  Ian Lance Taylor  (ian@cygnus.com)
21042
21043         * libc/stdlib/strtoul.c (_strtoul_r): Handle leading 0 correctly
21044         when base 16 is specified.  Don't accept non-digits if radix > 10.
21045
21046 Thu Jun  3 10:01:15 1993  Doug Evans  (dje@canuck.cygnus.com)
21047
21048         * libc/include/math.h: Rename xxx_r fns to _xxx_r.
21049
21050 Wed Jun  2 16:54:16 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
21051
21052         * libc/include/sys/stat.h: Surround text after #endif with
21053         comments.
21054
21055 Wed Jun  2 12:47:32 1993  Ian Lance Taylor  (ian@cygnus.com)
21056
21057         * libc/stdlib/mallocr.c: If MALLOC_PROVIDED is defined, just make
21058         _malloc_r, _realloc_r, and free_r call the corresponding
21059         non-reentrant functions.
21060
21061         * libm/math/modf.c (modf): We now take the address of ipart, so
21062         don't make it a register variable.
21063
21064 Tue Jun  1 18:25:54 1993  Doug Evans  (dje@canuck.cygnus.com)
21065
21066         * libm/math/*: Rename all xxx_r fns to _xxx_r.
21067
21068 Wed May 26 22:06:35 1993  Roland H. Pesch  (pesch@cygnus.com)
21069
21070         * libc/libc.texinfo and embedded docn throughout: formatting
21071         improvements, minor rephrasing for clarity, and improved
21072         reentrancy docn.
21073
21074 Sun May 23 17:29:49 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
21075
21076         * libm/ieeefp/infinity.c (maxpowtwof): Fix initialzation bug.
21077
21078         * libc/stdio/cvt.c (_licvt): Print the right value on machines
21079         where sizeof(int) != sizeof(long).
21080
21081 Fri May 21 22:09:32 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
21082
21083         * libc/reent/execr.c, libc/reent/filer.c, libc/reent/linkr.c,
21084         libc/reent/sbrkr.c, libc/reent/statr.c, libc/stdio/tmpnam.c,
21085         libc/stdlib/atol.c, libc/stdlib/rand.c, libc/string/strpbrk.c,
21086         libc/string/strspn.c, libm/ieeefp/isnan.c, libm/math/bessel.c,
21087         libm/math/matherr.c: changes for better docn formatting (info).
21088
21089         * libc/libc.texinfo, libc/ctype/ctype.tex, libc/locale/locale/tex,
21090         libc/reent/reent.tex, libc/signal/signal.tex,
21091         libc/stdio/stdio.tex, libc/stdlib/stdlib.tex,
21092         libc/string/strings.tex, libc/sys/sys.tex, libc/time/time.tex,
21093         libm/libm.texinfo, libm/ieeefp/ieeefp.tex, libm/math/math.tex: use
21094         makeinfo node defaulting to get better Info file node structure.
21095         (Requires recent sac change to doc/makedoc.c and doc/doc.str.)
21096         Also include a few formerly missing sections (subroutines).
21097
21098         * doc/doc.str: delete fossil expansion for "func"
21099
21100         * default.menu, no-signal.menu: delete.
21101
21102         * Makefile.in, libc/Makefile.in, configure.in, host/any: simplify
21103         method used to adjust doc for missing "signals" chapter when
21104         signal_dir is empty.
21105
21106 Thu May 20 21:38:37 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
21107
21108         * configure.in: added testsuite/libm.sac
21109
21110 Wed May 19 14:52:34 1993  Doug Evans  (dje@thepub.cygnus.com)
21111
21112         * libc/sys/sparc64/crt0.S: Set %g4 to 0 (to test Medium/Anywhere
21113         code model).
21114
21115 Tue May 18 13:17:21 1993  Ian Lance Taylor  (ian@cygnus.com)
21116
21117         * libm/Makefile.in: Use $(MAKE) rather than make, and define
21118         MAKEOVERRIDES to be empty.
21119
21120 Mon May 17 08:42:44 1993  Ian Lance Taylor  (ian@cygnus.com)
21121
21122         * configure.in: Don't build mips-*-* with -msoft-float, since that
21123         makes it incompatible with hard floating point.
21124
21125 Mon May 17 00:03:35 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
21126
21127         * Makefile.in: added recursive 'make check'
21128
21129 Thu May 13 16:24:18 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
21130
21131         * configure.in: added ./testsuite ./testsuite/libm.paranoia
21132         * ./testsuite/Makefile.in: created
21133         * ./testsuite/libm.paranoia: paranoia tests added
21134
21135 Thu May 13 10:30:24 1993  Ian Lance Taylor  (ian@cygnus.com)
21136
21137         * configure.in: For mips-*-* set machine_dir to mips.
21138
21139         * libc/machine/mips: New directory.
21140         * libc/machine/mips/Makefile.in: New file.
21141         * libc/machine/mips/setjmp.S: New file; simplistic MIPS version of
21142         setjmp and longjmp.
21143         * libc/include/machine/setjmp.h: Added __mips__ case.
21144
21145         * libc/machine/lmips: Removed unused and useless directory.
21146
21147 Mon May  3 10:22:31 1993  Ian Lance Taylor  (ian@cygnus.com)
21148
21149         * configure.in: Accept i486-*-sco* as well as i386-*-sco*.
21150
21151 Thu Apr 15 15:16:44 1993  Doug Evans  (dje@canuck.cygnus.com)
21152
21153         * libc/sys/sparc64/crt0.S: Add comment (%g1 contains atexit arg at
21154         start up).
21155
21156 Fri Apr  9 13:32:26 1993  Ian Lance Taylor  (ian@cygnus.com)
21157
21158         * libc/include/machine/setjmp-dj.h: Use _SETJMP_DJ_H rather than
21159         SETJMP_H.
21160
21161 Thu Apr  8 10:07:18 1993  Doug Evans  (dje@canuck.cygnus.com)
21162
21163         * libm/test/convert.c: structure member errno -> errno_val.
21164         Must include <errno.h> to use errno, it's a macro now.
21165         * libm/test/math.c: Ditto.
21166         * libm/test/math2.c: Include errno.h.
21167         * libm/test/string.c: Ditto.
21168         * libm/test/test.h: structure member errno -> errno_val.
21169         Remove extern int errno decl.
21170
21171 Thu Apr  8 07:56:33 1993  Ian Lance Taylor  (ian@cygnus.com)
21172
21173         * libc/stdio/Makefile.in: Added dependencies on local header
21174         files.
21175         * libc/stdio/std.h, libc/stdio/vfprintf.h: Removed unused header
21176         files.
21177
21178 Wed Apr  7 16:19:32 1993  Ian Lance Taylor  (ian@cygnus.com)
21179
21180         * libc/include/machine/ieeefp.h: Added __MIPSEB__ case.
21181
21182 Wed Apr  7 10:55:21 1993  Doug Evans  (dje@canuck.cygnus.com)
21183
21184         * libc/stdio/siprintf.c libc/stdio/sscanf.c libc/stdio/vsprintf.c:
21185         Initialize _data.
21186
21187         * libc/stdio/vfprintf.c: No need to declare _icvt, _licvt, _sicvt.
21188         * libc/stdio/local.h: Add prototype for _licvt.
21189
21190         * libc/stdio/ungetc.c (__submore): Use _malloc_r,_realloc_r
21191         instead of malloc,reealloc.
21192
21193         * libc/stdlib/local.h: New file.
21194         * libc/stdlib/efgcvt.c: #include local.h.
21195         (gcvt): Fix call to _gcvt.
21196         * libc/stdlib/ecvtbuf.c: #include local.h.
21197
21198         * libc/stdlib/Makefile.in: new files mallocr.c mstats.c.
21199         * libc/stdlib/mallocr.c mstats.c malloc.h: New files.
21200         * libc/stdlib/malloc.c: main routines moved to mallocr.c.
21201
21202         * libc/stdlib/atexit.c: moved global data to struct _reent.
21203         * libc/stdlib/exit.c: use struct _atexit in struct _reent.
21204
21205         * libc/reent/reent.c (inpure_data): _REENT_INIT macro modified.
21206
21207 Wed Apr  7 09:41:50 1993  Doug Evans  (dje@canuck.cygnus.com)
21208
21209         * libc/include/sys/reent.h: Stuff required by ANSI headers moved
21210         here from ../reent.h.
21211
21212 Tue Apr  6 12:56:01 1993  Ian Lance Taylor  (ian@cygnus.com)
21213
21214         * Makefile.in (MATHOBJS_IN_LIBC): List of object files which
21215         should be provided in both libc.a and libm.a.
21216         (libc.a): Depend on targ-include and libm.a.  Copy
21217         $(MATHOBJS_IN_LIBC) from libm.a to libc.a.
21218         (libm.a): Depend on targ-include.
21219         * configure.in (subdirs): Removed libc/math.
21220
21221 Mon Apr  5 10:18:16 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
21222
21223         * libm/ieeefp/infinity.c (maxpowtwo): Fix initialization bug.
21224
21225 Sat Apr  3 11:06:07 1993  Doug Evans  (dje@canuck.cygnus.com)
21226
21227         * libc/include/{errno.h, math.h, stdio.h, stdlib.h}: Use
21228         sys/reent.h instead of reent.h.
21229         * libc/include/reent.h: Split into two parts: stuff needed by ANSI
21230         headers moved to sys/reent.h.
21231         * libc/include/signal.h: _MAX_SIGNALS moved to sys/signal.h.
21232         * libc/include/sys/signal.h: Define _MAX_SIGNALS if
21233         __need__MAX_SIGNALS defined.
21234         * libc/include/stdio.h: struct __sFILE moved to sys/reent.h.
21235         std{in,out,err} refer to new _std{in,out,err} members.
21236
21237 Fri Apr  2 11:27:12 1993  Doug Evans  (dje@canuck.cygnus.com)
21238
21239         * libc/include/sys/signal.h: #define _SYS_SIGNAL_H for general
21240         case.
21241
21242 Fri Apr  2 09:41:10 1993  Doug Evans  (dje@canuck.cygnus.com)
21243
21244         * libc/sys/sparc64/execve.S (execve): Insert nop in delay slot,
21245         rather than whatever macro seterrno() has.
21246
21247 Thu Apr  1 16:47:08 1993  Doug Evans  (dje@canuck.cygnus.com)
21248
21249         * libc/locale/locale.c: Reentrant routines _r_xxx renamed to
21250         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
21251
21252         * libc/include/machine/fastmath.h: Use _HAVE_STDC instead of
21253         __STDC__.
21254
21255         * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, reent.c,
21256         reent.tex, sbrkr.c, statr.c}: _r_xxx reentrant routines renamed to
21257         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
21258
21259         * libc/signal/signal.c: Reentrant routines _r_xxx renamed to
21260         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
21261
21262         * libc/stdio/{fclose.c, fdopen.c, findfp.c, fiprintf.c, flags.c,
21263         fopen.c, fprintf.c, freopen.c, fscanf.c, fseek.c, ftell.c,
21264         fwalk.c, getchar.c, gets.c, iprintf.c, local.h, makebuf.c,
21265         mktemp.c, perror.c, printf.c, putchar.c, puts.c, refill.c,
21266         remove.c, rename.c, scanf.c, setvbuf.c, siprintf.c, sprintf.c,
21267         sscanf.c, stdio.c, tmpfile.c, tmpnam.c, vfprintf.c, vfprintf.h,
21268         vfscanf.c, vprintf.c, vsprintf.c}: Reentrant routines _r_xxx
21269         renamed to _xxx_r.  struct reent_struct renamed to struct _reent
21270         for ANSI.  structure members given leading "_" for ANSI.  Use
21271         _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
21272
21273         * libc/stdlib/{__adjust.c, calloc.c, dtoa.c, ecvtbuf.c, malloc.c,
21274         mprec.c, mprec.h, rand.c, std.h, strtod.c, strtol.c, strtoul.c,
21275         system.c}: Reentrant routines _r_xxx renamed to _xxx_r.  struct
21276         reent_struct renamed to struct _reent for ANSI.
21277         Structure members given leading "_" for ANSI.
21278         _CONST --> const in prototypes.
21279         Use _HAVE_STDC instead of __STDC__.
21280
21281         * libc/string/strtok.c: Reentrant routines _r_xxx renamed to
21282         _xxx_r.
21283         struct reent_struct renamed to struct _reent for ANSI.
21284         Structure members given leading "_" for ANSI.
21285
21286         * libc/time/asctime.c: Reentrant routines _r_xxx renamed to
21287         _xxx_r.
21288         struct reent_struct renamed to struct _reent for ANSI.
21289
21290         * libm/math/{acos.h, acosh.h, asin.c, asinh.h, atanh.h, bessel.h,
21291         cbrt.h, cosh.h, erf.c, erf.h, error.c, exp.c, fmod.c, frexp.h,
21292         gamma.h, hypot.h, ldexp.c, log.h, log10.c, log1p.c log2.c,
21293         mathimpl.h, pow.c, remainder.c, sincos.c, sinh.h, sqrt.h, tan.c,
21294         tanh.h}: struct reent_struct renamed to struct _reent for ANSI.
21295
21296         * libc/include/{_ansi.h, ctype.h, math.h, reent.h, locale.h,
21297         signal.h, stdio.h, stdlib.h, string.h, time.h}:
21298         Use _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
21299         #ifndef _STRICT_ANSI non-ANSI routines.
21300         Reentrant routines renamed from _r_xxx to _xxx_r.
21301         No need to use _STRICT_ANSI on _xxx_r reentrant routines.
21302         Use _STRICT_ANSI instead of __STRICT_ANSI, _ANSI_SOURCE, etc.
21303         Clean up namespace (structure members have leading "_").
21304         struct reent_struct renamed to struct _reent for ANSI compliance.
21305         _CONST --> const in function prototypes.
21306
21307         * libc/include/string.h: Add NULL and size_t.
21308
21309         * libc/sys/sparc64/Makefile.in: New syscall routines for link,
21310         unlink, wait, wait4. Reentrant syscall routines close, fork,
21311         fstat, link, lseek, open, read, sbrk, stat, unlink, wait, wait4,
21312         write.
21313         * libc/sys/sparc64/cerror.S (cerror_r): New routine.
21314         * libc/sys/sparc64/{close.S, fork.S, fstat.S, link.S, lseek.S,
21315         open.S, read.S, sbrk.S, stat.S, unlink.S, wait.S, wait4.S,
21316         write.S}: Define reentrant versions.
21317         * libc/sys/sparc64/sys/syscallasm.h (defsyscall_r): New macro for
21318         reentrant syscalls.
21319
21320         * libc/sys/sparc64/crt0.S (start): Fix initialization of environ.
21321
21322         * libc/include/stdlib.h (RAND_MAX): Fix value.
21323
21324 Thu Apr  1 12:28:30 1993  Ian Lance Taylor  (ian@cygnus.com)
21325
21326         * libc/sys/a29khif/_main.c: Removed unnecessary file.
21327         * libc/sys/a29khif/Makefile.in (OFILES): Removed _main.c, moved
21328         VPATH support targets after all: target.
21329
21330         * stub/mvme135/mvme.S: Renamed exceptionhandler to
21331         exceptionHandler, which is what mvme135-stub.c expects.
21332
21333 Wed Mar 31 17:42:03 1993  Doug Evans  (dje@cygnus.com)
21334
21335         * libc/stdio/tmpnam.c (worker): Fix test for _r_open() failure.
21336
21337         * libc/unix/getpass.c (getpass): Use stdin,stderr instead of
21338         def_stdin/def_stderr (latter removed from stdio.h to make it ANSI
21339         compliant).
21340
21341 Tue Mar 30 09:58:21 1993  Doug Evans  (dje@canuck.cygnus.com)
21342
21343         * libc/reent/execr.c (_r_wait): Re-order args to make reent_struct
21344         first.
21345         libc/reent/filer.c (_r_open, _r_close, _r_lseek, _r_read,
21346         _r_write): Ditto.
21347         libc/reent/fstatr.c (_r_fstat): Ditto.
21348         libc/reent/linkr.c (_r_link, _r_unlink): Ditto.
21349         libc/reent/sbrkr.c (_r_sbrk): Ditto.
21350         libc/reent/statr.c (_r_stat): Ditto.
21351
21352         * libc/stdio/fopen.c (_r_fopen): Re-order args to _r_open.
21353         * libc/stdio/freopen.c (freopen): Ditto for _r_open, _r_free.
21354         * libc/stdio/fseek.c (fseek): Ditto for _r_fseek.
21355         * libc/stdio/makebuf.c (__smakebuf): Ditto for _r_fstat.
21356         * libc/stdio/mktemp.c (_gettemp): Ditto for _r_stat, _r_open.
21357         * libc/stdio/remove.c (_r_remove): Ditto for _r_unlink.
21358         * libc/stdio/rename.c (_r_rename): Ditto for _r_link, _r_unlink.
21359         * libc/stdio/stdio.c (__sread): Ditto for _r_read.
21360         (__swrite): Ditto for _r_lseek, _r_write.
21361         (__sseek): Ditto for _r_lseek.
21362         (__close): Ditto for _r_close.
21363         * libc/stdio/tmpnam.c (worker): Ditto for _r_open, _r_close.
21364
21365         * libc/stdlib/malloc.c (_r_morecore): Re-order args to _r_sbrk.
21366         * libc/stdlib/system.c (_r_system): Ditto for _r_wait.
21367
21368         * libc/include/reent.h: Re-order arguments to _r_xxx syscall fns
21369         to make reent_struct the first argument (and thus consistent with
21370         the rest of newlib).
21371
21372         * stub/mvme135/mvme135-stub.c (initializeRemcomErrorFrame): Remove
21373         reference to __STDC__.
21374
21375 Mon Mar 29 12:34:32 1993  Doug Evans  (dje@canuck.cygnus.com)
21376
21377         * libc/stdlib/exit.c (exit): Use _REENT->__cleanup instead of
21378         global __cleanup.
21379
21380 Wed Mar 24 11:54:35 1993  Doug Evans  (dje@canuck.cygnus.com)
21381
21382         * libc/stdio/freopen.c (freopen): Ensure stdio is initialized
21383         first.
21384         libc/stdio/fclose.c (fclose): Ditto.
21385
21386 Tue Mar 23 01:26:52 1993  Doug Evans  (dje@rtl.cygnus.com)
21387
21388         * Run through indent and rename reentrant routines for ANSI.
21389         libc/stdio/{clearerr.c cvt.c fclose.c fdopen.c feof.c ferror.c
21390         fflush.c fgetc.c fgetpos.c fgets.c findfp.c fiprintf.c flags.c
21391         fopen.c fprintf.c fputc.c fputs.c fread.c freopen.c fscanf.c
21392         fseek.c fsetpos.c ftell.c fvwrite.c fwalk.c fwrite.c getc.c
21393         getchar.c gets.c iprintf.c makebuf.c mktemp.c perror.c printf.c
21394         putc.c putchar.c puts.c refill.c remove.c rename.c rewind.c rget.c
21395         scanf.c setbuf.c setvbuf.c siprintf.c sprintf.c sscanf.c stdio.c
21396         tmpfile.c tmpnam.c ungetc.c vfprintf.c vfscanf.c vprintf.c
21397         vsprintf.c wbuf.c wsetup.c local.h}
21398
21399         * libc/locale/locale.c: Reformat and rename for ANSI, GNU style.
21400
21401         * Run through indent and rename xxx_r fns to _r_xxx for ANSI.
21402         libc/stdlib/{__adjust.c __exp10.c __ten_mu.c abort.c abs.c
21403         assert.c atexit.c atof.c atoi.c atol.c bsearch.c calloc.c div.c
21404         dtoa.c ecvtbuf.c efgcvt.c exit.c getenv.c labs.c ldiv.c malloc.c
21405         mbtowc.c mprec.c putenv.c qsort.c rand.c setenv.c strdup.c
21406         strtod.c strtol.c strtoul.c system.c wctomb.c mprec.h}
21407
21408         * Run through indent.
21409         libc/string/{bcmp.c bcopy.c bzero.c index.c memchr.c memcmp.c
21410         memcpy.c memmove.c memset.c rindex.c strcat.c strchr.c strcmp.c
21411         strcoll.c strcpy.c strcspn.c strerror.c strlen.c strncat.c
21412         strncmp.c strncpy.c strpbrk.c strrchr.c strspn.c strstr.c strtok.c
21413         strxfrm.c}
21414
21415         * libc/time/{asctime.c clock.c ctime.c difftime.c gmtime.c
21416         localtime.c mktime.c strftime.c time.c}:
21417         Run through indent and rename xxx_r (reentrant) fns to _r_xxx for ANSI.
21418
21419         * Reformatting + renaming (for ANSI, GNU style, consistency).
21420         libc/include/{_ansi.h, assert.h, ctype.h, errno.h, fastmath.h,
21421         ieeefp.h, locale.h, math.h, paths.h, pwd.h, reent.h, setjmp.h,
21422         signal.h, stdio.h, stdlib.h, string.h, time.h, unistd.h}
21423
21424 Fri Mar 19 11:28:01 1993  Doug Evans  (dje@cygnus.com)
21425
21426         * libc/include/stdio.h (stdin_r): Fix.
21427
21428 Fri Mar 19 09:43:48 1993  Ian Lance Taylor  (ian@cygnus.com)
21429
21430         * Makefile.in: Unexport some variables to keep GNU make from
21431         putting them in the environment and using up needed ARG_MAX space
21432         (a hack is used to let this work with older makes as well).
21433
21434 Tue Mar 16 15:11:08 1993  Ian Lance Taylor  (ian@cygnus.com)
21435
21436         * Makefile.in: Use $(MAKE) rather than make.
21437         (MAKEOVERRIDES): Define to be empty.
21438         (FLAGS_TO_PASS): Don't pass down LD (it's not used).
21439         (libc.a, libm.a): Depend on targ-include.
21440         * host/any (LD): Don't define.
21441         (INCLUDES): Use targ-include.
21442         * stub/Makefile.in (MAKEOVERRIDES): Define to be empty.
21443         (FLAGS_TO_PASS): Don't pass down LD (it's not used).
21444         * libc/Makefile.in: Use $(MAKE) rather than make.
21445         (MAKEOVERRIDES): Define to be empty.
21446         (FLAGS_TO_PASS): Don't pass LD (it's not used).
21447         (all): Rewrote to be slightly smaller.
21448         * libc/machine/Makefile.in, libc/sys/Makefile.in (MAKEOVERRIDES):
21449         Define to be empty.
21450         (FLAGS_TO_PASS): Don't pass LD (it's not used).
21451         * libm/Makefile.in (FLAGS_TO_PASS): Don't pass LD (it's not used).
21452
21453 Mon Mar 15 08:45:41 1993  Ian Lance Taylor  (ian@cygnus.com)
21454
21455         * libc/sys/go32/gerrno.s: Renamed from errno.s to avoid conflict
21456         with errno/errno.c.
21457
21458 Fri Mar 12 09:46:54 1993  Ian Lance Taylor  (ian@cygnus.com)
21459
21460         * Changes for reentrancy.
21461         libc/stdio/fdopen.c, libc/stdio/freopen.c, libc/stdio/perror.c:
21462         Use ptr->_errno, not errno.
21463         libc/stdio/mktemp.c (mkstemp_r, mktemp_r): New functions.
21464         libc/stdio/remove.c (remove_r): New function.
21465         libc/stdio/rename.c (rename_r): New function.
21466         libc/stdio/fopen.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
21467         libc/stdio/makebuf.c, libc/stdio/mktemp.c, libc/stdio/remove.c,
21468         libc/stdio/rename.c, libc/stdio/stdio.c, libc/stdio/tmpnam.c: Use
21469         reentrant versions of system calls.
21470         libc/stdio/gets.c: Call getchar_f, not nonexistent getchar_r.
21471         libc/stdio/scanf.c: Use stdin_r, not nonexistent stdin_n.
21472         libc/stdio/tmpfile.c: Use tmpnam_f, not nonexistent tmpnam_r.
21473         libc/stdio/findfp.c: Include <string.h>.
21474         libc/stdio/fread.c, libc/stdio/rget.c, libc/stdio/scanf.c: Include
21475         "local.h".
21476         libc/stdio/wbuf.c: Include "fvwrite.h"
21477
21478         * libc/stdlib/{dtoa.c, ecvtbuf.c, mprec.c, strtod.c}: Include
21479         <string.h>.
21480         libc/stdlib/malloc.c: Call sbrk_r rather than sbrk.
21481         (NULL): Don't define if already defined.
21482         libc/stdlib/system.c: Call reentrant versions of system calls.
21483         (system_r): New function.
21484
21485         * Changes for reentrancy.
21486         libc/include/_ansi.h (_PARAMS): New macro.
21487         libc/include/errno.h: Define errno as a macro that calls __errno.
21488         (__errno_r): New macro for reentrant code.
21489         libc/include/math.h: Include reent.h.  Declare many reentrant
21490         functions.
21491         (signgam): Now a macro, not a variable.
21492         (struct exception): Added err field.
21493         libc/include/reent.h: Don't declare __sglue.  Added function
21494         declarations.
21495         (struct reent_struct): Moved errno to beginning.  Added _signgam.
21496         libc/include/stdio.h, libc/include/stdlib.h: Added function
21497         declarations.
21498
21499         * More reentrancy hacking.
21500         libc/errno/errno.c (__errno): New function.
21501         libc/reent/execr.c, libc/reent/filer.c, libc/reent/fstatr.c,
21502         libc/reent/linkr.c, libc/reent/sbrkr.c, libc/reent/statr.c: New
21503         files.
21504
21505         * Added many new reentrant functions to libm/math/*.
21506         libm/math/error.c (__matherror): Added reent_struct pointer
21507         argument. Changed all callers.
21508         libm/math/gamma.c (signgam): Removed. Set ptr->_signgam, instead.
21509         libm/math/exp.h, libm/math/pow.h, libm/math/sincos.h,
21510         libm/math/tan.h: Removed obsolete unused header files.
21511
21512         * libc/sys/a29khif/stubs.s: Use register lr0, not v0.
21513
21514         * libc/sys/sun/Makefile.in (COPYOFILES): Don't pull in errno.o.
21515
21516 Mon Mar  8 16:43:43 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
21517
21518         * libc/sys/a29khif/stubs.s: clobber safe register, and fill all
21519         delay slots.
21520
21521 Tue Mar  2 14:47:00 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
21522
21523         * libc/libc.texinfo:  comment out reentrancy chapter (duh)
21524
21525 Tue Mar  2 14:34:16 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
21526
21527         * libc/reent/reent.tex:  New file.  (text from
21528         newlib/libc/libc.texinfo)
21529         * libc/stdio/tmpnam.c:  fixed doc typo
21530         * libc/stdlib/rand.c:   fixed doc typo
21531
21532 Tue Mar  2 14:34:16 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
21533
21534         * libc/reent/reent.tex:  New file.  (text from
21535         newlib/libc/libc.texinfo)
21536
21537 Fri Feb 26 12:20:54 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
21538
21539         support for reentrancy
21540         * libc/reent/reent.c, libc/reent/Makefile.in, libc/reent/reent.c:
21541         new files
21542         * libc/errno/errno.c, libc/include/ieeefp.h,
21543         libc/include/locale.h, libc/include/reent.h,
21544         libc/include/signal.h, libc/include/stdio.h,
21545         libc/include/stdlib.h, libc/include/string.h, libc/include/time.h,
21546         libc/signal/signal.c libc/stdio/cvt.c, libc/stdio/fclose.c,
21547         libc/stdio/fdopen.c, libc/stdio/fflush.c, libc/stdio/fgets.c,
21548         libc/stdio/findfp.c, libc/stdio/flags.c, libc/stdio/fopen.c,
21549         libc/stdio/fputc.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
21550         libc/stdio/ftell.c, libc/stdio/fwalk.c, libc/stdio/getchar.c,
21551         libc/stdio/gets.c, libc/stdio/glue.h, libc/stdio/iprintf.c,
21552         libc/stdio/local.h, libc/stdio/makebuf.c, libc/stdio/perror.c,
21553         libc/stdio/printf.c, libc/stdio/putchar.c, libc/stdio/puts.c,
21554         libc/stdio/refill.c, libc/stdio/scanf.c, libc/stdio/setvbuf.c,
21555         libc/stdio/sprintf.c, libc/stdio/tmpfile.c, libc/stdio/tmpnam.c,
21556         libc/stdio/ungetc.c, libc/stdio/vfprintf.c, libc/stdio/vfprintf.h,
21557         libc/stdio/vfscanf.c, libc/stdio/vprintf.c, libc/stdio/wsetup.c,
21558         libc/stdlib/__adjust.c, libc/stdlib/__exp10.c,
21559         libc/stdlib/assert.c, libc/stdlib/atexit.c, libc/stdlib/atol.c,
21560         libc/stdlib/dtoa.c, libc/stdlib/ecvtbuf.c, libc/stdlib/malloc.c,
21561         libc/stdlib/mprec.c, libc/stdlib/mprec.h, libc/stdlib/rand.c,
21562         libc/stdlib/setenv.c, libc/stdlib/std.h, libc/stdlib/strtod.c,
21563         libc/stdlib/strtol.c, libc/stdlib/strtoul.c, libc/string/strtok.c,
21564         libc/time/asctime.c, libc/time/localtime.c, libc/time/mktime.c,
21565         libc/time/strftime.c: modify to provide reentracy.
21566
21567         new routines:
21568         strtok_r, asctime_r, fdopen_r, _cleanup_r, fopen_r, iprintf_r,
21569         perror_r, printf_r, putchar_r, puts_r, scanf_r, sprintf_r,
21570         tmpfile_r, vfiprintf_r, vfprintf_r, strtod_r, dtoa_r, rand_r,
21571         srand_r, strtoul_r,strtol_r, free_r, malloc_r, morecore_r,
21572         mstats_r, realloc_r, localeconv_r, setlocale_r
21573
21574 Wed Feb 17 20:17:15 1993  Mark Eichin  (eichin@cygnus.com)
21575
21576         * libc/include/machine/ieeefp.h, libc/include/machine/setjmp.h,
21577         libc/include/sys/config.h, libc/include/sys/signal.h,
21578         libc/include/sys/stat.h, libc/include/sys/types.h: For compiler
21579         provided macros (such as m68000), use the ansi version
21580         (__m68000__) so that the library can be used with code compiled
21581         -ansi. In particular, m68000, mc68000, _AM29K, i386, MIPSEL, unix,
21582         and sparc.
21583
21584 Wed Feb 17 13:01:34 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
21585
21586         * configure.in (sparc*): Don't set -fsoft-float for sparc
21587         configurations.  Do set -fsoft-float for sparclite configurations.
21588
21589 Fri Feb 12 16:25:52 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
21590
21591         * default.menu, no-signal.menu: alternate forms of libc main menu
21592           (in newlib rather than newlib/libc due to configuration restrictions)
21593
21594         * configure.in: select one of the two menus above, link to
21595         libc.menu
21596
21597         * libc/libc.texinfo: include menu from separate file
21598
21599 Fri Feb 12 12:50:06 1993  Ian Lance Taylor  (ian@cygnus.com)
21600
21601         * Makefile.in (FLAGS_TO_PASS): Put INSTALL back in.
21602         (info): Split long shell command in half.
21603         * libc/Makefile.in (info, targetdep.tex): Don't pass everything to
21604         sub-makes, just CHEW and TARGETDOC.
21605         (targetdep.tex): Removed now special handling of sys and machine
21606         subdirectories, made obsolete some time ago.
21607         * libc/machine/Makefile.in (doc): Don't pass everything to
21608         sub-make, just CHEW and TARGETDOC.
21609         (Makefile): New target.
21610         * libc/sys/Makefile.in (Makefile): New target.
21611
21612 Thu Feb 11 15:25:15 1993  Ian Lance Taylor  (ian@cygnus.com)
21613
21614         * Makefile.in (here and most subdirectories): Only pass down CHEW
21615         and TARGETDOC when making info, not for other targets.
21616
21617         * Makefile.in (here and most subdirectories), host/any: Use $(AR)
21618         $(AR_FLAGS) rather than $(ARUPDATE).
21619
21620 Wed Feb 10 11:57:52 1993  Ian Lance Taylor  (ian@cygnus.com)
21621
21622         * Try to reduce command line length:
21623         * Makefile.in (FLAGS_TO_PASS): don't pass down exec_prefix,
21624         CC_FOR_BUILD, CFLAGS_FOR_BUILD, INSTALL or CHEW.
21625         (info, docs): pass CC_FOR_BUILD and CFLAGS_FOR_BUILD to doc.
21626         (info): Pass CHEW to other subdirs.
21627
21628 Tue Feb  9 14:01:42 1993  Mark Eichin  (eichin@cygnus.com)
21629
21630         * configure.in: add signal_dir, like unix_dir, but by default it
21631         is set to "signal" so that a29khif can turn it off (since a29khif
21632         has raise() as part of machine-specific signal.s.)
21633
21634 Fri Jan 15 12:09:50 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
21635
21636         * libc/sys/config.h, libc/machine/ieeefp.h: add Z8000 support
21637         * libc/stdio/Makefile.in: pass CFLAGS so vfiprintf.c gets built
21638         correctly.
21639         * libc/stdio/fdopen.c, libc/stdio/fgets.c, libc/stdio/fscanf.c,
21640         libc/stdio/vfprintf: type lint.
21641         * libc/sys/z8ksim/crt0.c (start): Z8001/Z8002 independent
21642         initialzation code.
21643         * libc/sys/z8ksim/glue.c: Z8001/Z8002 clean system calls.
21644
21645 Tue Dec 29 10:15:33 1992  Ian Lance Taylor  (ian@cygnus.com)
21646
21647         * stub/mvme135/mvme135-asm.S: new file.
21648         stub/mvme135mvme135-stub.c: moved all assembler routines into
21649         mvme135-asm.S.
21650         stub/mvme135/Makefile.in: build mvme135-stub.o.
21651
21652 Mon Dec 28 12:40:43 1992  Ian Lance Taylor  (ian@cygnus.com)
21653
21654         * Makefile.in: don't pass down $(CPP); use $(CC) -E in
21655         sub-Makefiles instead, to try to avoid line length limitations.
21656
21657 Mon Dec 21 18:36:13 1992  Per Bothner  (bothner@rtl.cygnus.com)
21658
21659         * libc/include/unistd.h (read, write):  Use void* instead of
21660         char*.
21661
21662 Thu Dec 17 13:49:46 1992  Mark Eichin  (eichin@cygnus.com)
21663
21664         * stub/go32/resetpc: sample script to send a reset packet to the
21665         stub
21666
21667         * stub/go32/I386STUB.C: new file, gdb/i386stub.c modified for the
21668         DOS environment, which compiles with Turbo C.
21669
21670         * stub/go32/DSER32.LNK: new file, linker commands for serial
21671         remote stub.
21672
21673         * stub/go32/CONTROL.C: turn off debug_mode, add CYGNUS tag line to
21674         start up message to identify version; call set_debug_traps.
21675
21676         * stub/go32/DEBUG.C: turn off debug_mode (so stub doesn't need any
21677         keyboard interaction); call handle_exception() in go_til_stop,
21678         rather than return, so that the remote stub gets control.
21679
21680         * stub/go32/MAKEFILE: fixed to actually use DOS commands (del and
21681         rename, rather than mv), set flags that work with current Turbo C,
21682         including using the /3 flag; also, add commands to build dser32.
21683
21684         * stub/go32/DEBUG32.LNK, stub/go32/GO32.LNK: fix paths to match
21685         default Turbo C installation (\tc rather than \usr)
21686
21687         * stub/go32/MONO.C (printf): current Turbo C uses "..." instead of
21688         "&..."
21689
21690 Mon Dec 14 09:37:33 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
21691
21692         * libc/include/math.h: added _DOUBLE_IS_32BITS checks
21693
21694 Thu Nov 12 22:31:04 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
21695
21696         * libc/stdio/cvt.c (licvt): new function to convert ints when
21697         sizeof(int) != sizeof(long).
21698
21699         * libc/include/stdio.h: added prototype for iprintf.
21700         * libc/include/machine/limits.h machine/ieeefp.h: z8k stuff
21701
21702 Tue Nov 10 12:18:12 1992  Ian Lance Taylor  (ian@cygnus.com)
21703
21704         * libc/machine/m68k/setjmp.S: use __USER_LABEL_PREFIX__ and
21705         __REGISTER_PREFIX__.
21706
21707 Mon Nov  2 13:50:14 1992  Ian Lance Taylor  (ian@cygnus.com)
21708
21709         * libc/sys/m68kbare: moved into stub directory.
21710
21711 Mon Nov  2 13:40:42 1992  Ian Lance Taylor  (ian@cygnus.com)
21712
21713         * configure.in, Makefile.in: created new directory stub, to hold
21714         sample code for specific targets.
21715
21716 Wed Oct 28 02:19:55 1992  Mark Eichin  (eichin@cygnus.com)
21717
21718         * restored libc/sys/go32/sys/fcntl.h, to override incorrect values
21719         in the unified libc/include/sys/fcntl.h.
21720
21721 Wed Oct 21 13:55:58 1992  Doug Evans  (dje@rtl.cygnus.com)
21722
21723         * libc/stdlib/ecvtbuf.c: (print_f,_gcvt): printf("%f", 0.01)
21724         printed .01, not 0.01.
21725
21726 Mon Oct 19 11:05:55 1992  Ian Lance Taylor  (ian@cygnus.com)
21727
21728         * configure.in: compile with -m68000 for m68* targets.
21729
21730 Sun Oct 18 05:29:05 1992  Mark Eichin  (eichin@cygnus.com)
21731
21732         * libm/math/remainder.c (remainder): document the svr4 and sunos
21733         references used to construct the function.
21734
21735 Sat Oct 17 21:46:16 1992  Mark Eichin  (eichin@cygnus.com)
21736
21737         * libm/math/remainder.c (rint, remainder): fix old typos.
21738         * libm/math/Makefile.in: actually build remainder.c (functions
21739         rint and remainder, from SysVr4 Programmer's Guide floor(3m) man
21740         page.)
21741
21742 Thu Oct 15 07:48:05 1992  Ian Lance Taylor  (ian@cygnus.com)
21743
21744         * libc/string/bcopy.c: BSD version works on overlapping strings,
21745         so ours should too.
21746
21747         * libc/stdlib/system.c: always invoke /bin/sh, not getenv
21748         ("SHELL").
21749
21750 Wed Oct 14 11:07:11 1992  Ian Lance Taylor  (ian@cygnus.com)
21751
21752         * Makefile.in (docs): new target.
21753
21754 Wed Oct 14 07:44:25 1992  Ian Lance Taylor  (ian@cygnus.com)
21755
21756         * libc/include/sys/times.h: define clock_t as required by POSIX.
21757         libc/include/time.h: protect clock_t from multiple definitions.
21758
21759 Wed Oct  7 11:02:21 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
21760
21761         * libm/math/sqrt.h (sqrt): actually, the final version of fp-bit
21762         does not need more than the original three iterations to get
21763         within 1 ulp. (Paranoia tests for rounding to better than that,
21764         but further iterations *don't* help, only more subtle changes
21765         can.)
21766
21767 Tue Oct  6 09:22:12 1992  Ian Lance Taylor  (ian@cygnus.com)
21768
21769         * libc/sys/vxworks68, libc/sys/vxworks960: removed, since they
21770         were doing nothing useful.
21771
21772 Tue Oct  6 08:48:13 1992  Ian Lance Taylor  (ian@cygnus.com)
21773
21774         * configure.in: define MALLOC_PROVIDED for vxworks targets;
21775         removed sys_dir settings of vxworks68 and vxworks960.
21776         host/any: don't pass -nostdinc to gcc, since newlib no longer
21777         provides all required header files.
21778
21779         * libc/stdlib/malloc.c: only compile this file if MALLOC_PROVIDED
21780         is not defined; this provides a hook for VxWorks.
21781
21782 Mon Oct  5 03:44:57 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
21783
21784         * libc/stdio/setvbuf.c (setvbuf): while ANSI does say to malloc a
21785         buffer if buf is NULL, don't do it here -- it is already being
21786         done by makebuf elsewhere in stdio.
21787
21788 Fri Oct  2 13:12:07 1992  Ian Lance Taylor  (ian@cygnus.com)
21789
21790         * libc/sys/a29khif/Makefile.in: assemble Steve's list of stubs so
21791         that C programs can call functions without using initial
21792         underscores.
21793
21794 Thu Oct  1 09:37:47 1992  Ian Lance Taylor  (ian@cygnus.com)
21795
21796         * libc/stdlib/abort.c (abort): call exit, in case kill returns.
21797
21798 Wed Sep 30 08:22:18 1992  Ian Lance Taylor  (ian@cygnus.com)
21799
21800         * configure.in: set TARGET_CFLAGS for certain CPU types to
21801         -msoft-float.
21802
21803 Tue Sep 29 21:09:32 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
21804
21805         * libc/sys/m68kbare/glue.c: use <_ansi.h> instead of <ansidecl.h>
21806
21807 Mon Sep 28 14:58:44 1992  Ian Lance Taylor  (ian@cygnus.com)
21808
21809         * configure.in: added sys_dir m68kbare for m68k*-unknown-aout and
21810         m68k*-unknown-coff.
21811
21812 Fri Sep 25 08:33:21 1992  Ian Lance Taylor  (ian@cygnus.com)
21813
21814         * libc/include/stdio.h: define __need___va_list before including
21815         <stdarg.h>, to avoid defining va_arg, et. al.
21816
21817 Tue Sep 22 13:47:00 1992  Ian Lance Taylor  (ian@cygnus.com)
21818
21819         * libc/sys/Makefile.in: handle the case of an empty $(sys_dir)
21820         (don't cd to the user's home directory).
21821
21822         * libc/Makefile.in: replaced all instances of $(MAKE) with make.
21823         In general this is the wrong thing to do, but I can't get around
21824         GNU make's insistence on passing command line arguments any other
21825         way.
21826
21827 Tue Sep 22 10:12:44 1992  Ian Lance Taylor  (ian@cygnus.com)
21828
21829         * configure.in: always configure the libc/sys directory, since it
21830         now provides a required documentation file.
21831
21832         * Makefile.in: replaced all instances of $(MAKE) with make.  In
21833         general this is the wrong thing to do, but I can't get around GNU
21834         make's insistence on passing command line arguments any other way.
21835
21836 Mon Sep 21 22:42:26 1992  Ian Lance Taylor  (ian@tweedledumbest.cygnus.com)
21837
21838         * libc/stdlib/ecvtbuf.c (_gcvt): string for 0 was not null
21839         terminated.
21840
21841         * libc/stdio/local.h: include <stdarg.h> to define va_list.
21842         libc/stdio/vsprintf.c: include <stdarg.h> rather than <varargs.h>.
21843
21844         * libc/include/float.h, libc/include/stdarg.h,
21845         libc/include/stddef.h, libc/include/varargs.h: removed; use gcc
21846         versions instead.
21847         libc/include/stdio.h: get size_t from <stddef.h>, and va_list from
21848         <stdarg.h>, not from <machine/types.h>.  Protect definition of
21849         NULL.
21850         libc/include/time.h: get size_t from stddef.h.  Protect definition
21851         of NULL.
21852         libc/include/machine/limits.h: override gcc <limits.h> by defining
21853         _LIMITS_H___.  Don't define CLK_TCK.  Copied in gcc <limits.h> to
21854         get correct INT_MIN and LONG_LONG values.
21855         libc/include/machine/types.h: don't define ptrdiff_t, wchar_t,
21856         size_t or va_list at all; they're now gotten from stddef.h
21857         instead.
21858         libc/include/machine/varargs.h: removed; use gcc version instead.
21859         libc/include/sys/types.h: explicitly include <machine/types.h>.
21860
21861         * libm/math/sqrt.h: using the fp-bit routines appears to require
21862         more iterations.
21863
21864         * Makefile.in, host/any: let system include files override machine
21865         include files.
21866
21867 Sat Sep 19 21:10:06 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
21868
21869         * libc/include/machine/types.h: allow __*_TYPE__ from cpp to
21870         override _*_T_ definitions defaulted here.
21871
21872 Tue Sep 15 11:14:46 1992  Ian Lance Taylor  (ian@cygnus.com)
21873
21874         * Makefile.in (install): install the include files in
21875         $(tooldir)/include, not $(exec_prefix)/include.
21876
21877 Fri Sep 11 15:48:43 1992  Ian Lance Taylor  (ian@cygnus.com)
21878
21879         * Makefile.in (install): fixed typo, and changed install to not
21880         force rebuild of libc.a and libm.a.
21881
21882 Thu Sep 10 10:46:09 1992  Ian Lance Taylor  (ian@cygnus.com)
21883
21884         * libc/sys/a29khif/*: Changed all .include's to include
21885         sys/sysmac.h, not plain sysmac.h.  The header files live in sys so
21886         that they will be installed for the user.
21887
21888         * Makefile.in (all): create targ-include, a directory holding the
21889         machine and system specific header files during the build.
21890         (install): fixed installation of machine and system specific
21891         header files.
21892
21893         * Makefile.in: fixed comment.
21894         host/any: change .s.o rule to use $(AS) rather than $(CC), so that
21895         we can pass $(INCLUDES) to it.
21896
21897 Thu Sep 10 10:13:13 1992  Ian Lance Taylor  (ian@cygnus.com)
21898
21899         * libc/include/sys/param.h: new generic file, which may be
21900         overridden for specific systems.
21901
21902         * libc/include/sys/signal.h: define all ANSI signal names, and
21903         NSIG (which is not ANSI) for a29k.
21904
21905 Tue Sep  8 09:04:30 1992  Ian Lance Taylor  (ian@cygnus.com)
21906
21907         * Makefile.in: don't pass down arguments the lower level makes
21908         will not need.
21909         * libc/Makefile.in: recurse directly, rather than using subdir_do,
21910         in hopes of avoiding argument length limits.
21911         * libm/Makefile.in: recurse directly, rather using subdir_do, in
21912         hopes of avoiding argument length limits.
21913
21914 Tue Sep  8 08:27:22 1992  Ian Lance Taylor  (ian@cygnus.com)
21915
21916         * libc/include/sys/fcntl.h: include <sys/types.h> to ensure that
21917         mode_t is defined.
21918
21919 Mon Sep  7 14:02:07 1992  Ian Lance Taylor  (ian@cygnus.com)
21920
21921         * Fixed make info and make install-info for newlib, changing most
21922         Makefile.in and several *.tex files.  Moved doc directory from
21923         libc to top level.
21924
21925         * libc/time/mktime.c (_DAYS_IN_MONTH): actually, not const.
21926         Should be rewritten.
21927
21928         * libc/string/strings.tex: renamed node index to node index
21929         function, so that it does not conflict with the top level index
21930         node.
21931
21932         * libc/include/sys/config.h: define __IEEE_BIG_ENDIAN for h8300.
21933
21934 Fri Sep  4 02:34:06 1992  Ian Lance Taylor  (ian@cygnus.com)
21935
21936         * Overhauled general configuration for newlib.  Eliminated all
21937         target dependent Makefile fragments.  Create libraries in newlib
21938         rather than newlib/libc and newlib/libm.  Use CC, et. al., rather
21939         than CROSS_CC, et. al.  Broke make docs; will fix later.
21940
21941         * libc/time/localtime.c (_DAYS_IN_MONTH): actually, not const.
21942         Should be rewritten.
21943
21944 Tue Sep  1 15:21:14 1992  Ian Lance Taylor  (ian@cygnus.com)
21945
21946         * libc/configure.in: cleaned up somewhat; switch on ${target}
21947         rather than ${target_alias}.
21948         * libm/configure.in: cleaned up somewhat; switch on ${target}
21949         rather than ${target_alias}.
21950
21951         * libc/ctype/ctype_.c: marked _ctype_ array _CONST.
21952         * libc/include/ctype.h: marked _ctype_ as _CONST.
21953
21954         * libc/locale/locale.c (lconv, localeconv): marked static lconv as
21955         _CONST.
21956
21957         * libc/stdio/cvt.c, libc/stdio/findfp.c (__sfmoreglue),
21958         libc/stdio/vfscanf.c (__svfscanf): made static variables const.
21959         libc/stdio/gets.c (gets): removed non-ANSI warning message.
21960         libc/stdio/tmpnam.c (tmpnam): removed unneeded filename variable.
21961
21962         * libc/stdlib/mprec.h, libc/stdlib/mprec.c (pow5mult, tens,
21963         bigtens, tinytens): marked arrays _CONST.
21964         libc/stdlib/qsort.c (swap): if __GNUC__, use _builtin_alloca
21965         rather than a static variable.
21966
21967         * libc/time/asctime.c (asctime), libc/time/localtime.c
21968         (_DAYS_IN_MONTH), libc/time/mktime.c (_DAYS_IN_MONTH,
21969         _DAYS_BEFORE_MONTH), libc/time/strftime.c (dname_len, dname,
21970         mname_len, mname): Marked static arrays _CONST.
21971
21972         * libm/math/gamma.h: made local variables non-static.
21973
21974         * libm/math/acos.h, libm/math/bessel.c, libm/math/erf.c,
21975         libm/math/exp.c, libm/math/gamma.h: marked static arrays as
21976         _CONST.
21977
21978         * libm/math/constants.c: removed file, because the constants it
21979         defined were never referenced.
21980         libm/math/Makefile.in: removed references to constants.c.
21981         libm/math/mathimpl.h: removed declarations of constants.
21982
21983 Wed Aug 26 21:09:06 1992  Ian Lance Taylor  (ian@cygnus.com)
21984
21985         * libc/include/machine/varargs.h: only call __builtin_saveregs if
21986         it is sensibly defined in libgcc2.  Checks preprocessor defines,
21987         which is not a good solution.
21988
21989         * libm/sqrt.c: sqrt(Infinity) should not be a domain error.
21990
21991         * libm/frexp.c: handle denormalized numbers as arguments.
21992
21993         * libm/math/Makefile.in: added some dependencies for .c files
21994         which include local .h files.
21995
21996 Mon Aug 24 12:57:58 1992  Ian Lance Taylor  (ian@cygnus.com)
21997
21998         * libc/configure.in: set target_alias for OSE*.  Replace
21999         target_makefile_frag if it is blank.
22000
22001         * libc/Makefile.in: make sure everything is passed to subsidiary
22002         makes; create all directories when installing.
22003
22004         * libm/ieeefp/Makefile.in, libm/math/Makefile.in: use
22005         CROSS_ARUPDATE instead of AR.
22006
22007         * libm/configure.in: set target_alias for OSE*.  Replace
22008         target_makefile_frag if it is blank.
22009
22010         * libm/Makefile.in: make sure everything is passed to subsidiary
22011         makes; create all directories when installing.
22012
22013 Thu Aug 20 15:11:51 1992  Mark Eichin  (eichin@cygnus.com)
22014
22015         * add following change from libc copy.
22016
22017 Wed Aug 19 18:54:49 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
22018
22019         * libc/libc.texinfo: make copyright disclaimers appear on back of
22020         title page; make format of same slightly less ugly; avoid using
22021         underbars in section headings (avoids nasty texinfo bug in table
22022         of contents).
22023
22024         * libc/ctype/tolower.c, libc/ctype/toupper.c: (doc changes in
22025           comments only) avoid using underbars in section headings
22026
22027         * libc/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
22028           isnan ieeefp/fpmask.c, ieeefp/fpround.c, ieeefp/fpsticky.c (doc
22029           changes in comments only): shorten headings ieeefp/infinity.c,
22030           ieeefp/isnan.c: (doc, comments only) more informative headings
22031
22032         * libc/math/bessel.c: (doc, comments only) shorten heading
22033
22034         * libc/stdlib/efgcvt.c, libc/stdlib/mbtowc.c, libc/stdlib/wctomb.c
22035         (doc, comments only) shorten headings
22036
22037         * libc/time/localtime.c (doc, comments only): shorten headings
22038
22039         * libm/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
22040           isnan
22041           libm/ieeefp/fpmask.c, libm/ieeefp/fpround.c,
22042           libm/ieeefp/fpsticky.c (doc changes in comments only): shorten
22043           headings
22044           libm/ieeefp/infinity.c, libm/ieeefp/isnan.c: (doc, comments
22045           only) more informative headings
22046         * libm/math/bessel.c: (doc, comments only) shorten heading
22047
22048 Wed Aug 19 07:06:37 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
22049
22050         * .../Makefile.in: use CROSS_ARUPDATE consistently.
22051         * config/*.mt: define CROSS_AR as well as CROSS_ARUPDATE
22052         * config/*.mt: define CROSS_CPP based on CROSS_CC, not /lib/cpp.
22053         * .../Makefile.in: get rid of .c.o rule - if TOP is correctly
22054         defined, the one from the .mt file will be correct.
22055         * libc/include/machine, libc/include/sys: created, and populated
22056         with common files from machine/*/machine. ifdefs were used for
22057         most, typically by handling exceptions first and then filling in
22058         defaults. Files with D.J. Delorie copyright #included rather than
22059         copied. Most files in include/sys really were the same in the
22060         original.
22061         * libc/include/...: cleaned up use of _EXFUN.
22062         * libc/stdlib/mprec.c: mprec.h doesn't get installed, so include
22063         it with double quotes, not angles.
22064
22065 Mon Aug 10 11:43:20 1992  Ian Lance Taylor  (ian@dumbest.cygnus.com)
22066
22067         * libc/Makefile.in: always create installation directories.
22068
22069 Sun Aug  9 22:45:48 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
22070
22071         * libc/configure.in: handle host properly (using canonical
22072         triples), better error message for the case of target not found
22073
22074 Thu May 28 01:56:37 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
22075
22076         * libc/Makefile.in (insincdir): Ensure this directory exists
22077         before attempting installation.
22078
22079 Fri May  1 18:16:42 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
22080
22081         * libc/stdlib/assert.c: now calls abort like it should
22082         * libc/sys/a29khif: many many patches for 29khif work
22083         * libc/machine/i386: gnulib2 expanded there.
22084
22085 Tue Apr 28 19:08:37 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
22086
22087         Added accurate fp conversion routines to stdlib, moved dcvt from
22088         stdio to stdlib and called it ecvtbuf:
22089         * libc/stdlib/mprec.c, mprec.h: new files for multiprec arithmetic
22090         * libc/stdlib/Makefile.in, efgcvt.c, strtod.c: modified to use new
22091         routines
22092         * libc/libc.texinfo: Modifed to include the copyright info from
22093         the mprec files
22094         * libc/stdlib/efgcvt.c: now xref to ecvtbuf in stdlib.
22095         * libc/test/ : many vector which tested for the implementation
22096         defined returns of strange conversion requests have been updated
22097         to relflect the new implementation
22098
22099 Mon Apr 27 13:41:33 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
22100
22101         * libc/libc.texinfo: new chapter on variable arg lists
22102         (stdarg.h/varargs.h)
22103         * libc/libc.texinfo: new title
22104         * libc/time/gmtime.c, libc/time/localtime./c, libc/time/mktime.c:
22105         (doc only) shorter headings for better formatting.
22106
22107 Fri Apr 24 11:26:48 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
22108
22109         * libc/libc.texinfo: three more info menu entries
22110         * libc/locale/locale.tex: new chapter
22111         * libc/locale/locale.c: new doc for setlocale, localeconv
22112         * libc/locale/Makefile.in: use new locale doc
22113         * libc/signal/signal.tex: new chapter
22114         * libc/signal/raise.c, libc/signal/signal.c: new doc
22115         * libc/signal/Makefile.in: use new doc
22116         * libc/time/time.tex: new chapter
22117         * libc/time/asctime.c libc/time/clock.c libc/time/ctime.c
22118         libc/time/difftime.c libc/time/gmtime.c libc/time/localtime.c
22119         libc/time/mktime.c libc/time/strftime.c libc/time/time.c: new doc
22120         * libc/time/Makefile.in: use new doc
22121
22122 Tue Apr 21 14:48:50 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
22123
22124         * libm/math/log1p.c: split to use the new function way of float
22125         function definition. math/log1p.h deleted
22126         * libm/math/scalb.c: obsolete and deleted
22127         * libm/math/scalbn.c: created from part log1p.c
22128         * libm/math/Makefile.in: know about log1p and scalbn
22129
22130 Tue Apr 21 12:32:21 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
22131
22132         * libc/ctype/isupper.c: revise doc;
22133           libc/ctype/ctype.tex: use doc from isupper.c
22134
22135         * libc/string/bzero.c: new doc
22136
22137 Mon Apr 20 14:19:42 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
22138
22139         * libc/stdlib/system.c, libc/stdlib/exit.c, libc/stdlib/abort.c:
22140         new doc
22141         * libc/stdlib/Makefile.in: extract new doc
22142         * libc/stdlib/stdlib.tex: use new doc
22143
22144         * libc/string/strerror.c: expanded doc.
22145
22146         * libc/stdio/Makefile.in: extract doc from more files
22147         * libc/stdio/fopen.c, libc/stdio/perror.c, libc/stdio/remove.c,
22148         libc/stdio/rename.c, libc/stdio/rewind.c, libc/stdio/setbuf.c,
22149         libc/stdio/setvbuf.c, libc/stdio/sprintf.c, libc/stdio/tmpfile.c,
22150         libc/stdio/tmpnam.c, libc/stdio/vfprintf.c, libc/stdio/vprintf.c,
22151         libc/stdio/vsprintf.c: new doc
22152         * libc/stdio/stdio.tex: use new doc
22153
22154 Mon Apr 20 09:38:17 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
22155
22156         * libc/config/ebmon29k: added CROSS_CPP rule and other fixes
22157         * libc/include/ieeefp.h: fixed ansi conflict with isnanf, isinff,
22158         finitef functions.
22159         * libc/sys/a29khif/sys/*.h: ansidecl.h was renamed to _ansi.h some
22160         time ago.
22161
22162         * libc/stdio/stdio.h: added P_tmpdir for /tmp (SVID thing)
22163         * libc/stdio/setbuf.c: added ansi style definition.
22164         * libc/stdio/setvbuf.c: added ansi definition, now mallocs own
22165         buffer if none provided.
22166         * libc/stdio/tmpfile.c: lint
22167         * libc/stdio/tmpnam.c (worker): created. (tmpnam): mallocs buffer
22168         rather than using static, also make sure file isn't already
22169         present.  Uses P_tmpdir. (tempnam): rewritten to use new
22170         subroutine, and uses P_tmpdir.
22171         * libc/stdio/siprintf.c: created
22172
22173 Mon Apr 13 09:12:58 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
22174
22175         Release 1.03 for NEC, major mods. Main differences from release
22176         1.02::
22177
22178         More tests in test/:
22179         * jn_vec.c, jnf_vec.c, yn_vec.c, ynf_vec.c, log2_vec.c,
22180         log2f_vec.c, atan2_vec.c, atan2f_vec.c: new test vectors.
22181         * test_ieee.c: tests for ieee flags & masks - get/set rounding,
22182         get/set mask, get/set sticky and get/set roundtoi.  Tests
22183         that setting the bits changes the way arithmetic is done.
22184         * string.c: added test to make sure memcmp does it with unsigned
22185         chars.
22186         * test.c: cleaned up and removed lint.
22187         * sprint_vec, sprint_ivec.c, convert.c, conv_vec.c, iconf_vec.c,
22188         dvec.c: tests for string to value conversions,  sprintf, scanf,
22189         atof, atoff, strtod, strtodf, atoi, atol, strtol, ecvtbuf, ecvt,
22190         ecvtf,  fcvtbuf, fcvt, fcvtf, gcvt, gcvtf.  Some attention paid to
22191         rounding in sprintf too.
22192         * test_is.c: tests for  isalnum, isalpha, isascii, iscntrl,
22193         isdigit, isgraph, islower, isprint, ispunct, isspace, isupper,
22194         isxdigit, toascii, tolower, toupper, _tolower, _toupper in macro
22195         and function form.
22196         * math2.c: test for frexp, frexpf, ldexp, ldexpf, modf modff, pow,
22197         powf
22198
22199         In the library:
22200         * libc/stdlib/div.c, libc/stdlib/ldiv.c, libc/stdlib/strtod.c,
22201         libc/stdlib/strtol.c, libc/stdlib/stroul.c, libc/stdlib/abs.c,
22202         libc/stdlib/bsearch.c, libc/stdlib/calloc.c, libc/stdlib/getenv.c,
22203         libc/stdlib/labs.c, libc/stdlib/malloc.c: new documentation
22204         * libc/stdlib/efgcvt.c: rewritten to use new _dcvt routines rather
22205         than sprintf.
22206         * libc/stdio/dcvt.c: rewritten to make more useful elsewhere.
22207         * Method of producting float versions of double functions has
22208         changed, functions will be modified gradually. So far:
22209         libm/math/exp.c, libm/math/pow.c, libm/math/modf.c,
22210         libm/math/sincos.c, libm/math/fmod.c, libm/math/tan.c have been
22211         altered
22212         * libc/string/memcmp.c: now uses unsigned chars
22213         * libc/string/bcmp.c, libc/string/strcpy.c,
22214         libc/stsring/strxfrm.c: fixed doc
22215         * libc/sys/sysvnecv70.tex: fix example of sbrk code
22216 \f
22217 Local Variables:
22218 version-control: never
22219 End: